@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/public-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/public-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-2: #e7e2d6;
  --raised: #fffcf6;
  --ink: #1c2421;
  --muted: #4a5550;
  --line: #d9d2c4;
  --juniper: #1e5a4b;
  --juniper-deep: #143f35;
  --moss: #e5f0ea;
  --sand: #f7f1e4;
  --clay: #8a4632;
  --focus: #0f6b56;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --shadow: 0 12px 40px rgba(28, 36, 33, 0.06);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(30, 90, 75, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--juniper-deep);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--focus);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.banner {
  background: var(--juniper-deep);
  color: #f4f7f5;
  font-size: 0.92rem;
}

.banner p {
  margin: 0;
  padding: 0.55rem 0;
}

.banner a {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 999px;
  padding: 0 0.9rem;
  font: inherit;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
}

.nav a[aria-current="page"] {
  background: var(--juniper);
  color: white;
}

.nav a:hover {
  background: var(--paper-2);
}

.nav a[aria-current="page"]:hover {
  background: var(--juniper-deep);
  color: white;
}

main {
  padding-bottom: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: end;
  padding: 2.4rem 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin: 0 0 0.8rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 2.2rem 0 0.6rem;
}

h3 {
  font-size: 1.35rem;
  margin: 1.4rem 0 0.4rem;
}

.lede {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  max-width: 42rem;
  margin-top: 0;
}

.page-intro {
  padding-top: 2rem;
  max-width: 46rem;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--juniper-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.8rem 0 0.3rem;
}

select,
button,
.button {
  font: inherit;
}

select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.4rem 0.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--juniper-deep);
  background: var(--juniper);
  color: white;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--juniper-deep);
}

.button:hover {
  background: var(--juniper-deep);
  color: white;
}

.result {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.result[hidden] {
  display: none;
}

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0 0.5rem;
}

.step {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 0.95rem 1rem;
  min-height: 100%;
}

.step span {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--juniper);
}

.onpage {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.4rem;
}

.onpage a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  text-decoration: none;
  font-size: 0.92rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card .index {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--clay);
  margin: 0;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0.2rem 0;
}

.card .button {
  margin-top: auto;
  align-self: flex-start;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

.diagram {
  margin: 1rem 0 1.4rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem;
}

.diagram img {
  display: block;
  width: 100%;
  background: #f7f4ee;
  border-radius: 12px;
}

.diagram figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.7rem 0.3rem 0.2rem;
}

.callout {
  border-left: 4px solid var(--juniper);
  background: var(--moss);
  padding: 0.8rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
}

.callout.warn {
  border-left-color: var(--clay);
  background: var(--sand);
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  margin: 0.8rem 0 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f6f3eb;
}

tr:last-child td {
  border-bottom: 0;
}

.scroll-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.refs {
  font-size: 0.95rem;
}

.refs li {
  margin: 0.45rem 0;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--juniper-deep);
}

.placeholder {
  border: 1px dashed var(--clay);
  background: var(--sand);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ebe6dc;
  padding: 1.6rem 0 2.2rem;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid-4 {
  grid-template-columns: 1.25fr 0.9fr 0.95fr 0.8fr;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.7rem;
  color: var(--line);
}

.site-footer h2 {
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.4rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0.25rem 0;
}

.fine {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.measure {
  max-width: 68ch;
}

ul.clean li + li,
ol.clean li + li {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    position: static;
    flex: 1 0 100%;
    flex-direction: column;
    padding: 0.15rem 0 0.45rem;
    background: transparent;
    border-bottom: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .hero,
  .path,
  .cards,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .banner,
  .nav-toggle,
  .site-header,
  .button,
  form {
    display: none !important;
  }

  body {
    background: white;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Shared, keyboard-native checklists and page-specific FAQs. */
.decision-checklist,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  padding: 0.75rem 1rem;
  margin: 0.8rem 0;
  overflow-wrap: anywhere;
}
.decision-checklist summary,
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  align-content: center;
}
.decision-checklist[open] summary,
.faq-item[open] summary {
  margin-bottom: 0.5rem;
}
.decision-checklist h3,
#agreed-disputed h3 {
  margin-top: 0.5rem;
}
.result-next-steps {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.panel .decision-checklist .split {
  display: block;
}
.panel .decision-checklist {
  padding: 0.6rem 0.7rem;
}
.faq-section {
  margin-top: 2rem;
}
