/* Your Damage Claim Rights. Brand tokens match the FAQ email (wcr-faq-*.html). */
:root {
  --paper: #FFFFFF;
  --canvas: #E9EEF0;
  --mist: #EEF4F6;
  --tide: #B5D3DC;
  --petrol: #0F5568;
  --petrol-deep: #0A3F4E;
  --ink: #1B2A33;
  --muted: #5B6B73;
  --rule: #DCE6E9;
  --flag-bg: #FFF4D6;
  --flag-ink: #5C4100;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.65 var(--serif); }
img { max-width: 100%; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: .75rem; z-index: 10; background: var(--paper); padding: .5rem .75rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Prototype-only markers */
.pending { display: inline-block; font: 600 .78rem/1.35 var(--sans); background: var(--flag-bg); color: var(--flag-ink);
  border: 1px solid #E8C870; border-radius: 3px; padding: .2rem .55rem; vertical-align: .08em; }

/* Header and the tide band (3px petrol over 9px tide, as in the email) */
.tide { height: 12px; background: linear-gradient(var(--petrol) 0 3px, var(--tide) 3px 12px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; min-height: 4.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.wordmark { font: 700 1.25rem/1 var(--sans); letter-spacing: -.01em; color: var(--petrol); text-decoration: none; margin: 0; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0 0 0 -.75rem; padding: 0; }
.site-head nav a { display: block; padding: .65rem .75rem; font: 500 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; border-radius: 4px; }
.site-head nav a:hover { background: var(--mist); color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--petrol); box-shadow: inset 0 -2px 0 var(--petrol); border-radius: 4px 4px 0 0; }

/* Type */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; margin: 0 0 .75rem; max-width: 24ch; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 2.75rem 0 .75rem; scroll-margin-top: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--muted); max-width: 58ch; margin: 0; }

/* Guide pages */
.crumbs { font: 400 .9rem/1.4 var(--sans); color: var(--muted); padding: 1.5rem 0 0; }
.crumbs a { color: var(--muted); }
.page-head { padding: 1rem 0 2rem; border-bottom: 1px solid var(--rule); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: .5rem 0 4.5rem; }
.prose { max-width: var(--measure); }
.prose > h2:first-child { margin-top: 2rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin: .35rem 0; }
.page-foot { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 3rem !important; font: 400 .9rem/1.5 var(--sans); color: var(--muted); }

.rail { font: 400 .95rem/1.5 var(--sans); }
.rail-title { font: 700 .95rem/1.3 var(--sans); margin: 0 0 .5rem; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.toc { display: none; }
.toc a { display: block; padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--rule); color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--petrol); color: var(--petrol); }
.rail-box { background: var(--mist); border-left: 4px solid var(--petrol); padding: 1rem 1.1rem; }
.rail-box li { margin: .45rem 0; }
.rail-box p:last-child { margin: .9rem 0 0; }
@media (min-width: 62rem) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 17rem; }
  .rail { position: sticky; top: 1.5rem; align-self: start; padding-top: 2rem; }
  .toc { display: block; margin-bottom: 2rem; }
}

/* Components used by page fragments */
.note { background: var(--mist); border-left: 4px solid var(--petrol); padding: 1.1rem 1.25rem; margin: 1.5rem 0; font-size: 1.05rem; }
.note > :last-child { margin-bottom: 0; }

.ask { border: 1px solid var(--rule); border-radius: 6px; margin: 1.5rem 0; }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .5rem .5rem 1.1rem;
  background: var(--mist); border-bottom: 1px solid var(--rule); border-radius: 6px 6px 0 0; font: 600 .9rem/1.3 var(--sans); }
.ask blockquote { margin: 0; padding: 1.1rem 1.25rem; font-size: 1.1rem; }
.ask blockquote > :last-child { margin-bottom: 0; }
.copy { font: 600 .9rem/1 var(--sans); color: var(--petrol); background: var(--paper); border: 1px solid var(--petrol);
  border-radius: 4px; padding: .65rem .95rem; min-height: 2.75rem; cursor: pointer; transition: background-color .15s, color .15s; }
.copy:hover, .copy[data-done] { background: var(--petrol); color: #fff; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.9rem; margin: 0 0 1.25rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 1.95rem; height: 1.95rem; border-radius: 50%;
  background: var(--petrol); color: #fff; font: 700 .95rem/1.95rem var(--sans); text-align: center; }

.states { margin: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.state { border-top: 1px solid var(--rule); padding: 1rem 0 .4rem; display: grid; gap: .25rem 1.5rem; }
.state h3 { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.state p { margin: 0 0 .6rem; }
@media (min-width: 40rem) { .state { grid-template-columns: 8.5rem minmax(0, 1fr); } }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font: 400 .95rem/1.45 var(--sans); }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--mist); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Phones: each table row becomes a stacked block, with its column heading above each value (data-label from build.py) */
@media (max-width: 40rem) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td, .table-wrap tbody th { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { border-bottom: 1px solid var(--rule); padding: .75rem 0; }
  .table-wrap td, .table-wrap tbody th { border: 0; padding: .2rem 0; text-align: left; white-space: normal; }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; font: 600 .78rem/1.4 var(--sans); color: var(--muted); }
  .table-wrap tr > :first-child { font-weight: 700; }
  .table-wrap tr > :first-child::before { display: none; }
}
caption { caption-side: top; text-align: left; font: 600 .85rem/1.4 var(--sans); color: var(--flag-ink); padding: 0 0 .5rem; }

.sources { font: 400 .92rem/1.5 var(--sans); color: var(--muted); padding-left: 1.1rem; }
.sources li { margin: .4rem 0; }

.issue-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0 3rem; }
.issue-list li { border-top: 1px solid var(--rule); padding: 1rem 0 1.1rem; margin: 0; }
.issue-list a { font: 700 1.1rem/1.3 var(--sans); text-decoration: none; }
.issue-list a:hover { text-decoration: underline; }
.issue-list p { margin: .3rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 48rem) { .issue-list { grid-template-columns: 1fr 1fr; } }
.prose .issue-list { grid-template-columns: 1fr; }

/* Home */
/* Hero: the looping video sits under a petrol veil, darkest behind the text, so the copy keeps AA contrast on any frame. */
.hero-top { position: relative; isolation: isolate; overflow: hidden; background: var(--petrol-deep); padding: clamp(3rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 6.5rem); }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-top::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 63 78 / .9) 0%, rgb(10 63 78 / .84) 60%, rgb(10 63 78 / .35) 100%); }
@media (max-width: 40rem) { .hero-top::before { background: rgb(10 63 78 / .86); } }
.hero h1 { font-size: clamp(2.4rem, 1.1rem + 4.8vw, 4.6rem); line-height: 1.03; letter-spacing: -.035em; max-width: 19ch; margin: 0; color: #fff; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--tide); }
.hero-sub { font-size: 1.3rem; line-height: 1.55; color: rgb(255 255 255 / .9); max-width: 50ch; margin: 1.5rem 0 0; }
.hero-toggle { position: absolute; bottom: 1rem; right: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - 72rem) / 2 + 2.5rem));
  min-height: 2.75rem; padding: .5rem 1rem; font: 500 .9rem/1.2 var(--sans); color: #fff; cursor: pointer;
  background: rgb(10 63 78 / .7); border: 1px solid rgb(255 255 255 / .45); border-radius: 6px; }
.hero-toggle:hover { background: var(--petrol-deep); border-color: #fff; }
.hero-toggle:focus-visible { outline-color: #fff; }
.waterline { position: relative; isolation: isolate; padding: 2.5rem 0 3.5rem; }
.waterline::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--petrol) 0 3px, var(--tide) 3px 12px, var(--mist) 12px);
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .waterline::before { animation: none; } }
.chooser-label { font: 700 1.05rem/1.3 var(--sans); margin: 0 0 .9rem; }
.chooser { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.chooser a { display: flex; flex-direction: column; justify-content: center; min-height: 4.5rem; padding: .9rem 1.25rem;
  background: var(--petrol); color: #fff; border-radius: 6px; text-decoration: none; font: 700 1.2rem/1.2 var(--sans); }
.chooser a span { font: 400 .92rem/1.35 var(--sans); opacity: .88; margin-top: .25rem; }
.chooser a:hover { background: var(--petrol-deep); color: #fff; }
.chooser-note { font: 400 .95rem/1.5 var(--sans); color: var(--muted); margin: 1rem 0 0; }
@media (min-width: 40rem) { .chooser { grid-template-columns: repeat(3, minmax(0, 15rem)); } }

.band { padding: clamp(3rem, 7vw, 4.75rem) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band h2 { margin-top: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); max-width: 26ch; }
.band-intro { color: var(--muted); max-width: 58ch; margin: 0 0 1.75rem; }
.band .steps { max-width: var(--measure); }
.band-link { font: 700 1rem/1.4 var(--sans); }
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

/* Footer */
.site-foot { background: var(--canvas); }
.foot-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 1.5rem; font: 400 .95rem/1.55 var(--sans); }
.foot-grid p { margin: 0 0 .6rem; max-width: 48ch; }
.foot-grid .wordmark { margin-bottom: .8rem; }
.foot-title { font-weight: 700; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .35rem 0; }
.foot-fine { border-top: 1px solid #CFDADE; padding-top: 1.25rem; padding-bottom: 2.5rem; font: 400 .85rem/1.5 var(--sans); color: var(--muted); }
.foot-fine p { margin: .3rem 0; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Photos: lead image under a guide title, and images inside home bands. All are AI-generated and captioned as illustrative. */
.lead-figure { margin: 0 0 .5rem; padding-top: 1.75rem; }
.lead-figure img, .band-figure img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--mist); }
.lead-figure img { aspect-ratio: 21 / 9; object-fit: cover; }
.band-figure { margin: 1.75rem 0 0; }
.band-figure img { aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font: 400 .8rem/1.4 var(--sans); color: var(--muted); margin-top: .45rem; }
@media (max-width: 40rem) { .lead-figure img { aspect-ratio: 3 / 2; } }
