:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --white: #fffdf9;
  --ink: #29212e;
  --muted: #635968;
  --plum: #4d2863;
  --deep: #2d183d;
  --blue: #29477f;
  --gold: #ddaa56;
  --line: #ded4e0;
  --tint: #f0e9f4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--plum); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #9460be; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
figcaption { color: var(--muted); font-size: .81rem; padding-top: .45rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.06; margin: 0 0 .6em; color: var(--deep); }
h1 { font-size: clamp(3rem, 6.7vw, 6.3rem); letter-spacing: -.065em; margin-bottom: .24em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.25vw, 3.4rem); letter-spacing: -.042em; }
h3 { font-size: 1.55rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
li { padding-inline-start: .15rem; }
section[id] { scroll-margin-top: 1rem; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.narrow { max-width: 52rem; }
.reading { min-width: 0; max-width: 53rem; }
.small { font-size: .875rem; color: var(--muted); }
.skip { position: absolute; z-index: 10; left: 1rem; top: .8rem; transform: translateY(-180%); background: var(--white); padding: .6rem 1rem; }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--white); border-top: 4px solid var(--deep); border-bottom: 1px solid var(--line); }
.header-inner, .brand, .primary { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand { text-decoration: none; color: var(--deep); gap: .65rem; font-weight: 800; line-height: 1.2; }
.brand img { flex: none; }
.brand small { display: block; color: var(--muted); font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .22rem; }
.primary { flex-wrap: wrap; gap: .3rem 1.15rem; }
.primary a { text-decoration: none; color: var(--ink); font-size: .91rem; font-weight: 650; padding: .38rem .1rem; border-bottom: 2px solid transparent; }
.primary a:hover, .primary a[aria-current] { border-color: var(--plum); color: var(--plum); }

.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.6rem, 6vw, 5.5rem); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1rem 1rem 0 0; }
.hero-photo figcaption { display: flex; gap: .65rem; align-items: center; padding: .6rem .9rem; border-radius: 0 0 1rem 1rem; color: var(--gold); background: var(--deep); font-weight: 800; }
.hero-photo figcaption span { color: var(--white); font-weight: 600; }
.hero-photo figcaption small { color: #e3d5ea; font-size: .73rem; margin-inline-start: auto; font-weight: 500; }
.eyebrow { color: var(--plum); font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .75rem; }
.eyebrow span { display: inline-block; width: 1.8rem; height: .2rem; background: var(--gold); vertical-align: middle; margin-right: .4rem; }
.lead, .intro { color: var(--muted); max-width: 46rem; font-size: clamp(1.03rem, 1.75vw, 1.21rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border-radius: .5rem; border: 1px solid var(--plum); background: var(--plum); color: white; font: 700 .93rem/1.25 var(--sans); text-decoration: none; padding: .82rem 1rem; cursor: pointer; }
.button:hover { background: var(--deep); border-color: var(--deep); color: white; }
.outline { background: transparent; color: var(--plum); }
.category-band { background: var(--deep); color: var(--white); }
.category-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.3rem; padding-block: .6rem; }
.category-links a { color: var(--white); padding: .42rem 0; font-weight: 650; text-decoration-color: var(--gold); }
.section { padding-block: clamp(2.7rem, 5vw, 4.9rem); }
.tint { background: var(--tint); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.3rem, 5vw, 4.4rem); align-items: center; }
.photo img { width: 100%; border-radius: .85rem; }
.text-link { font-weight: 750; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1.75rem 0 0; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { border-top: 2px solid var(--gold); padding: 1.1rem .4rem 0 0; }
.steps h3, .card h2 { margin-top: .5rem; }
.number { color: var(--plum); font-size: .81rem; letter-spacing: .1em; font-weight: 800; }
.callout { border: 1px solid var(--line); border-left: 5px solid var(--gold); background: var(--white); border-radius: .5rem; padding: 1.2rem 1.4rem; }
.callout h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .35em; }
.callout p:last-child, .steps p:last-child { margin: 0; }

.page-heading { padding-top: clamp(2.5rem, 6vw, 5.1rem); padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.content-layout { display: grid; grid-template-columns: minmax(11rem, .29fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.7rem); padding-block: 2.4rem 4rem; }
.side-index nav { position: sticky; top: 1.2rem; background: var(--tint); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.side-index h2 { font: 800 .8rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; }
.side-index a { display: block; font-size: .9rem; margin: .38rem 0; }
.guide { padding-bottom: 1.9rem; }
.guide + .guide { border-top: 1px solid var(--line); padding-top: 1.9rem; }
.guide h2 { font-size: clamp(1.85rem, 4vw, 2.65rem); }
.resource-links { color: var(--muted); font-size: .91rem; }
.spaced li + li { margin-top: .5rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.card { border: 1px solid var(--line); background: var(--white); border-radius: .75rem; padding: clamp(1rem, 2.5vw, 1.6rem); }
.card h2 { font-size: clamp(1.5rem, 3vw, 2.18rem); }
.inline-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .88rem; font-weight: 650; }
.index-list { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 53rem; }
.index-list li { display: grid; grid-template-columns: 2.3rem 1fr; align-items: baseline; border-bottom: 1px solid var(--line); padding: .9rem 0; }
.index-list h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.index-list p { margin-bottom: 0; color: var(--muted); }

.worksheet-fields, .result { margin: 1.4rem 0 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); padding: clamp(.85rem, 3vw, 1.45rem); min-width: 0; }
.worksheet-fields legend { font-weight: 750; color: var(--deep); padding: 0 .35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { font-size: .9rem; font-weight: 700; }
label .small { font-weight: 500; }
input, select { display: block; width: 100%; min-width: 0; min-height: 2.65rem; margin-top: .32rem; padding: .5rem .58rem; border: 1px solid #a297a8; border-radius: .35rem; background: white; font: inherit; color: var(--ink); }
.action-label { display: block; margin-top: 1rem; max-width: 24rem; }
.result dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; gap: 1rem; }
.result dd { margin: 0; color: var(--plum); font-weight: 800; font-size: clamp(1.25rem, 4vw, 1.9rem); overflow-wrap: anywhere; }
.result-message { font-weight: 750; }
details { border-top: 1px solid var(--line); padding: .8rem 0 0; }
summary { cursor: pointer; color: var(--plum); font-weight: 700; }
details p { margin-top: .65rem; }
blockquote { border-left: 2px solid var(--gold); padding-left: .85rem; }

.site-footer { padding-block: 2.5rem 1.2rem; background: var(--deep); color: #eee4f1; }
.site-footer a, .site-footer h2 { color: var(--white); }
.site-footer .brand small { color: #d6c4dd; }
.site-footer p { margin-top: .8rem; max-width: 20rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 1.5rem; }
.footer-grid nav a { display: block; margin-block: .27rem; font-size: .88rem; }
.footer-grid h2 { font: 750 .8rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.footer-bottom { border-top: 1px solid #66536f; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1rem; margin-top: 1.6rem; font-size: .79rem; }

@media (max-width: 56rem) {
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .wrap { width: min(100% - 2rem, 73rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .4rem; padding-block: .65rem .42rem; }
  .primary { gap: .18rem .9rem; }
  .primary a { font-size: .82rem; }
  .hero, .split, .content-layout, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.6rem; }
  .hero-photo img { aspect-ratio: 3/2; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .side-index nav { position: static; }
  .category-links { justify-content: flex-start; gap: .15rem 1.05rem; }
  .category-links a { font-size: .88rem; }
}
@media (max-width: 33rem) {
  .steps.four, .card-grid, .form-grid, .result dl { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .site-footer, .skip, img, figcaption, .button { display: none !important; }
  body, .tint { color: black; background: white; }
  .section { padding-block: 1rem; }
}

.campaign-hero {
  margin-block: 1.5rem;
  padding: clamp(1.2rem, 4.5vw, 3.9rem);
  background: linear-gradient(130deg, #21122f, #3c204e);
  border-radius: 1.15rem;
  color: var(--white);
}
.campaign-hero h1 { color: var(--white); font-size: clamp(2.35rem, 5vw, 4.6rem); }
.campaign-hero .lead { color: #f1e5f1; }
.campaign-hero .eyebrow { color: var(--gold); }
.campaign-hero .button { background: #f4d192; color: #2d183d; border-color: #f4d192; }
.campaign-hero .button:hover { background: white; color: var(--deep); border-color: white; }
.campaign-hero .outline { background: transparent; color: var(--white); border-color: #d9badc; }
.campaign-hero .hero-photo { border: 1px solid #73587e; border-radius: 1rem; }
.case-strip {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: clamp(1.1rem, 4vw, 3rem);
  align-items: center;
  margin-block: 2rem;
  padding: clamp(1.15rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: .42rem solid var(--gold);
  border-radius: .7rem;
}
.case-amount { display: block; color: var(--deep); font: 700 clamp(3.2rem, 6vw, 5.4rem)/1 var(--serif); letter-spacing: -.055em; }
.case-strip p:last-child, .campaign-notes p:last-child { margin-bottom: 0; }
.campaign-notes { max-width: 54rem; padding-inline-start: clamp(.8rem, 3vw, 1.8rem); border-inline-start: .25rem solid var(--plum); }
.audit-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(13rem, 1fr); gap: clamp(1.25rem, 4vw, 3.2rem); }
.audit-sidebar { display: grid; gap: 1rem; align-content: start; }
.audit-note { background: var(--tint); padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .7rem; }
.audit-note p:last-child { margin-bottom: 0; }
.audit-note ol { padding-inline-start: 1.25rem; }
.wide-field { display: block; margin-top: .85rem; }
textarea {
  display: block;
  width: 100%;
  margin-top: .32rem;
  padding: .6rem;
  border: 1px solid #a297a8;
  border-radius: .35rem;
  background: white;
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
  resize: vertical;
}
.fee-row { padding: 1rem 0; margin-bottom: .7rem; border-bottom: 1px solid var(--line); }
.fee-row-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .85rem; }
.fee-row-heading .button { padding: .45rem .65rem; font-size: .79rem; }
.file-button { position: relative; }
.file-button:focus-within { outline: 3px solid #9460be; outline-offset: 4px; }
.file-button input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.case-loaders { flex-basis: 100%; margin-top: .2rem; }
.audit-results { overflow-wrap: anywhere; }
.audit-results h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.audit-findings { padding-inline-start: 1.25rem; }
.audit-findings li { margin-bottom: .75rem; }
.audit-findings p { margin-bottom: 0; }
.clause-findings { margin-bottom: 1rem; }
.clause-findings article { background: var(--tint); border-left: .22rem solid var(--plum); padding: .85rem 1rem; margin-bottom: .65rem; border-radius: .25rem; }
.clause-findings h4 { margin: 0 0 .35rem; color: var(--deep); }
.clause-findings article p { margin: 0 0 .45rem; }
.public-record { background: var(--tint); border-top: 1px solid var(--line); }
.public-layout { margin-top: 2.2rem; }
.public-layout .audit-note { background: var(--white); }
.evidence-tests dt { font-weight: 800; color: var(--deep); }
.evidence-tests dd { margin: .18rem 0 .9rem; }
.source-request { padding-inline-start: .8rem; border-inline-start: 2px solid var(--gold); }
.legal-findings { margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; overflow-wrap: anywhere; }
.legal-findings h3 { margin-bottom: .4rem; }
.legal-findings .clause-findings { margin-bottom: .45rem; }
.legal-findings ul { padding-inline-start: 1.3rem; }
.journey-steps { margin-block: 1.75rem; }
.journey-steps .text-link { display: inline-block; }
.review-layout { align-items: start; }
.review-topics { display: grid; gap: .7rem; margin-block: 1.25rem; }
.review-topic { padding: 0; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); }
.review-topic summary { padding: .85rem 1rem; }
.review-topic[open] summary { border-bottom: 1px solid var(--line); }
.review-topic-body { padding: 1rem; }
.review-topic-body p:last-of-type { margin-bottom: 0; }
.review-fields { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-badge { display: inline-block; margin-inline-start: .5rem; font-size: .78rem; color: var(--muted); }
#review-progress { margin-top: .7rem; }
@media (max-width: 46rem) {
  .audit-layout, .case-strip { grid-template-columns: minmax(0, 1fr); }
  .campaign-hero { padding-block: 1.65rem; }
}
