/* Claims Postmark — postal / correspondence stylesheet. Mobile-first, no frameworks. */
:root {
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --stone: #E7E3DA;
  --stone-dark: #CFC8B8;
  --navy: #14213D;
  --navy-soft: #2B3A5C;
  --brick: #B23A2B;
  --brick-dark: #8E2C20;
  --ink: #1D2230;
  --muted: #4E5566;
  --rule: #D9D3C5;
  --focus: #B23A2B;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --radius: 4px;
  --measure: 70ch;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--brick); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-dark); text-decoration-thickness: 2px; }
main p, main li, main td { overflow-wrap: break-word; }
main p a, main li a { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: var(--s6) 0 var(--s3); font-weight: 700; }
h1 { font-size: clamp(1.85rem, 5.5vw, 2.75rem); margin-top: var(--s4); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.8vw, 1.9rem); padding-top: var(--s5); border-top: 1px solid var(--rule); }
h3 { font-size: 1.25rem; font-weight: 600; }
p, ul, ol, dl, table, address { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: var(--s2); }
strong { color: var(--navy); }
address { font-style: normal; }
code { font-family: Consolas, "Courier New", monospace; background: var(--stone); padding: 0 .3em; border-radius: 3px; font-size: .95em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: var(--s2) var(--s4); z-index: 10; }
.skip-link:focus { left: var(--s4); top: var(--s2); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: relative; }
.site-header::before {
  content: ""; display: block; height: 6px;
  background: repeating-linear-gradient(135deg, var(--navy) 0 12px, var(--card) 12px 18px, var(--brick) 18px 30px, var(--card) 30px 36px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 210px; height: 44px; display: block; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 600 .95rem var(--sans); color: var(--navy); background: transparent;
  border: 1px solid var(--navy); border-radius: var(--radius); padding: .45rem .8rem; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; border-top: 1px solid var(--rule); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--s2) 0 var(--s3); }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 600; color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--brick); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; border-top: 0; }
  .site-nav ul { display: flex; gap: var(--s5); padding: 0; }
  .site-nav a { padding: .4rem 0; border-bottom: 2px solid transparent; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brick); }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-top: var(--s5); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--stone-dark); }

/* Page head */
.page-head { padding: var(--s4) 0 var(--s2); }
.eyebrow { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin: var(--s5) 0 0; }
.meta { font-size: .92rem; color: var(--muted); margin-bottom: var(--s5); }
.lede { font-size: 1.15rem; color: var(--ink); max-width: var(--measure); }

/* Layout */
.layout { display: grid; gap: var(--s6); padding-bottom: var(--s8); }
.layout > * { min-width: 0; }
@media (min-width: 1024px) {
  .layout.has-aside { grid-template-columns: minmax(0, 1fr) 17rem; }
  .aside-sticky { position: sticky; top: var(--s5); }
}

/* Quick answer — styled as a postcard */
.quick-answer {
  background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--brick);
  padding: var(--s5); margin: var(--s4) 0 var(--s5); max-width: 46rem; border-radius: var(--radius);
}
.quick-answer .qa-label { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: var(--s2); }
.quick-answer address { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--navy); font-weight: 600; margin-bottom: var(--s3); }
.quick-answer p:last-child { margin-bottom: 0; }
.card-check { display: flex; gap: var(--s3); align-items: flex-start; background: var(--stone); padding: var(--s3) var(--s4); border-radius: var(--radius); margin: var(--s3) 0; }
.card-check svg { flex: 0 0 28px; width: 28px; height: 28px; margin-top: 2px; }
.card-check p { margin: 0; }

/* Table of contents */
.toc { background: var(--stone); padding: var(--s4) var(--s5); border-radius: var(--radius); margin: var(--s5) 0; max-width: 46rem; }
.toc h2 { border: 0; padding: 0; margin: 0 0 var(--s2); font-size: 1.15rem; }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: var(--s6); } }
.toc li { break-inside: avoid; margin-bottom: var(--s1); }

/* Envelope address cards */
.envelopes { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin: var(--s5) 0; }
@media (min-width: 700px) { .envelopes { grid-template-columns: 1fr 1fr; } }
.envelope {
  position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: calc(var(--s5) + 6px) var(--s5) calc(var(--s5) + 6px); box-shadow: 0 1px 0 var(--stone-dark);
  overflow: hidden;
}
.envelope::before, .envelope::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px; opacity: .9;
  background: repeating-linear-gradient(135deg, var(--navy) 0 10px, var(--card) 10px 15px, var(--brick) 15px 25px, var(--card) 25px 30px);
}
.envelope::before { top: 0; }
.envelope::after { bottom: 0; }
.env-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.env-kicker { font: 700 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin: 0; }
.postmark { width: 58px; height: 58px; flex: 0 0 58px; color: var(--brick); opacity: .55; transform: rotate(-8deg); }
.envelope h3 { margin: var(--s2) 0 var(--s3); font-size: 1.15rem; }
.env-addr {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--navy); font-weight: 600;
  padding: var(--s3) 0 var(--s3) var(--s4); border-left: 2px solid var(--stone-dark); margin-bottom: var(--s3);
}
.env-note { font-size: .95rem; color: var(--muted); }
.env-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.copy-btn {
  font: 600 .9rem var(--sans); color: #fff; background: var(--navy); border: 1px solid var(--navy);
  border-radius: var(--radius); padding: .5rem .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2);
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { background: var(--navy-soft); }
.copy-status { font-size: .9rem; color: var(--brick-dark); font-weight: 600; min-height: 1.4em; }
.envelope.is-hq { background: var(--stone); }
.envelope.is-hq::before, .envelope.is-hq::after { background: repeating-linear-gradient(135deg, var(--navy-soft) 0 10px, var(--stone) 10px 20px); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s4) 0 var(--s5); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; margin: 0; font-size: .97rem; }
caption { text-align: left; font: 600 .95rem var(--sans); color: var(--muted); padding: var(--s3) var(--s4); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: .7rem var(--s4); border-top: 1px solid var(--rule); }
thead th { background: var(--navy); color: #fff; font-weight: 600; border-top: 0; }
tbody th { font-weight: 600; color: var(--navy); }
tbody tr:nth-child(even) { background: #F6F4EF; }
.route-arrow { color: var(--brick); font-weight: 700; }

/* Callouts */
.callout { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: var(--s4) var(--s5); margin: var(--s5) 0; border-radius: var(--radius); max-width: var(--measure); }
.callout.warn { border-top-color: var(--brick); }
.callout h3 { margin-top: 0; font-size: 1.08rem; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

/* Step list */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: var(--measure); }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s4) 3.1rem; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 2px solid var(--brick); color: var(--brick); font: 700 1rem var(--serif); display: flex; align-items: center; justify-content: center; background: var(--card);
}
.steps > li strong { display: block; }

/* Envelope illustration */
.env-figure { margin: var(--s5) 0; max-width: 34rem; }
.env-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: var(--s2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: var(--s3) 0; max-width: var(--measure); }
.faq summary { cursor: pointer; font: 600 1.08rem var(--serif); color: var(--navy); list-style-position: outside; }
.faq details[open] summary { color: var(--brick-dark); }
.faq details p { margin: var(--s3) 0 0; }

/* Aside */
.aside-box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); margin-bottom: var(--s4); font-size: .95rem; }
.aside-box h2 { font-size: 1.05rem; border: 0; padding: 0; margin: 0 0 var(--s2); }
.aside-box ul { padding-left: 1.1rem; margin: 0; }
.aside-box address { font-family: var(--serif); color: var(--navy); font-weight: 600; }

/* Related guides */
.related { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin: var(--s4) 0 var(--s5); padding: 0; list-style: none; }
@media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
.related li { margin: 0; }
.related a { display: block; height: 100%; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--navy); padding: var(--s4); text-decoration: none; border-radius: var(--radius); }
.related a:hover { border-left-color: var(--brick); }
.related .r-title { font: 600 1.08rem var(--serif); color: var(--navy); display: block; margin-bottom: var(--s1); }
.related .r-desc { color: var(--muted); font-size: .93rem; }

/* Sources */
.sources ol { font-size: .93rem; color: var(--muted); max-width: var(--measure); }
.sources a { word-break: break-word; }

/* Map */
.map-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--stone); margin: var(--s4) 0; max-width: 46rem; }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #E9ECF3; padding: var(--s6) 0 var(--s5); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: #E2A196; }
.site-footer a:hover { color: #F3D3CD; }
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; border: 0; padding: 0; margin: 0 0 var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s1); }
.independence { border-top: 1px solid rgba(255,255,255,.2); margin-top: var(--s5); padding-top: var(--s4); color: #D5DAE5; }
.independence strong { color: #fff; }

/* 404 */
.not-found { padding: var(--s7) 0 var(--s8); max-width: var(--measure); }

/* long domains in emails and URLs must wrap on phones */
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; } /* long domains */
