/* StatutoryDesk content & generator stylesheet. Token authority: DESIGN.md. */
@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap
}

@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap
}

@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap
}

@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap
}

@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap
}

:root {
  --bg: oklch(98.2% .004 250);
  --surface: oklch(99.5% .002 250);
  --ink: oklch(24% .035 258);
  --navy: oklch(31% .06 258);
  --navy-deep: oklch(24% .05 258);
  --soft: oklch(46% .025 258);
  --faint: oklch(53% .015 258);
  --line: oklch(90% .01 258);
  --cta: oklch(72% .16 55);
  --cta-press: oklch(66% .16 52);
  --cta-soft: oklch(95% .03 60);
  --alert: oklch(49% .18 28);
  --alert-bg: oklch(96.5% .025 28);
  --ok: oklch(42% .12 155);
  --ok-bg: oklch(96% .025 155);
  --on-navy: oklch(96% .005 250);
  --on-navy-soft: oklch(80% .015 252);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --font: 'Switzer', system-ui, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--font)
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.02em
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px)
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px
}

::selection {
  background: var(--cta-soft)
}

/* White-Label Partner Banner */
.wl-bar {
  background: var(--navy-deep);
  color: var(--on-navy);
  font-size: 13.5px;
  border-bottom: 1px solid oklch(35% .05 258);
  padding: 9px 0
}

.wl-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--on-navy)
}

.wl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
  display: inline-block
}

.wl-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--on-navy-soft);
  font-size: 13px
}

.wl-meta a {
  color: var(--on-navy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid oklch(50% .04 258)
}

.wl-meta a:hover {
  color: var(--cta);
  border-color: var(--cta)
}

/* Top Navigation */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line)
}

.logo {
  font-weight: 800;
  font-size: 19.5px;
  letter-spacing: -.025em;
  color: var(--ink);
  text-decoration: none
}

.logo span {
  color: var(--navy);
  font-weight: 600
}

.logo small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: .02em;
  margin-top: 1px
}

.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap
}

.top nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none
}

.top nav a:hover {
  color: var(--ink)
}

.top nav a.navcta {
  color: var(--navy-deep);
  background: var(--cta);
  border: 1px solid var(--cta-press);
  padding: 7px 14px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px
}

.top nav a.navcta:hover {
  background: var(--cta-press)
}

@media(max-width:720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px
  }

  .top nav {
    gap: 14px
  }
}

/* Article & Programmatic SEO Layout */
.article {
  max-width: 48rem;
  padding: clamp(28px, 4vw, 48px) 0 12px
}

.crumbs {
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 18px
}

.crumbs a {
  color: var(--faint);
  text-decoration: none
}

.crumbs a:hover {
  color: var(--ink)
}

.article h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance
}

.byline {
  font-size: 13.5px;
  color: var(--faint);
  margin: 14px 0 0
}

.answer {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 17px
}

.answer .q {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 8px
}

.answer p {
  margin: 0
}

.body {
  font-size: 16.5px
}

.body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px
}

.body h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin: 28px 0 8px
}

.body p {
  margin: 14px 0;
  max-width: 68ch
}

.body ul,
.body ol {
  padding-left: 24px;
  max-width: 66ch
}

.body li {
  margin: 7px 0
}

.body li::marker {
  color: var(--navy);
  font-weight: 600
}

.body strong {
  font-weight: 600
}

.body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  margin: 20px 0;
  background: var(--surface)
}

.body th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soft);
  border-bottom: 1px solid var(--ink);
  padding: 10px 12px
}

.body td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  font-variant-numeric: tabular-nums
}

.body blockquote {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin: 20px 0;
  padding: 14px 20px;
  color: var(--soft);
  font-size: 15.5px
}

.body code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .9em
}

/* FAQ & Sources */
.faq {
  margin: 44px 0 0;
  border-top: 1px solid var(--line)
}

.faq h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 6px
}

.faq details {
  border-bottom: 1px solid var(--line)
}

.faq summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 15px 30px 15px 2px;
  list-style: none;
  position: relative
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 20px;
  color: var(--faint)
}

.faq details[open] summary::after {
  content: "-"
}

.faq p {
  color: var(--soft);
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: 15.5px
}

.sources {
  margin: 40px 0 0;
  font-size: 13.5px;
  color: var(--faint)
}

.sources h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--soft);
  margin: 0 0 8px
}

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

.sources li {
  margin: 5px 0
}

.sources a {
  color: var(--faint);
  word-break: break-all
}

.related {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 28px
}

.related h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--soft)
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px
}

.related a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line)
}

.related a:hover {
  border-color: var(--navy)
}

/* Bands & CTAs */
.band {
  background: var(--navy-deep);
  color: var(--on-navy);
  border-radius: 16px;
  margin: clamp(28px, 4vw, 48px) auto;
  padding: clamp(30px, 4vw, 44px) clamp(26px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  max-width: 1040px
}

.band h2 {
  color: var(--on-navy);
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 800
}

.band p {
  color: var(--on-navy-soft);
  margin: 8px 0 0;
  font-size: 15px;
  max-width: 34rem
}

.cta {
  display: inline-block;
  background: var(--cta);
  border: 1px solid var(--cta-press);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease)
}

.cta:hover {
  background: var(--cta-press)
}

.band .subnote {
  color: var(--on-navy-soft);
  font-size: 13px;
  margin-top: 12px
}

/* Generator Forms & Ledgers */
fieldset {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 24px 24px;
  margin: 0 0 22px;
  min-width: 0
}

legend {
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  padding: 0 8px
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  margin: 12px 0 4px
}

label .req {
  color: var(--cta-press);
  font-weight: 700
}

input[type=text],
input[type=date],
input[type=number],
input[type=email],
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease)
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--faint)
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy)
}

.grid {
  display: grid;
  gap: 0 16px
}

.g4 {
  grid-template-columns: repeat(4, 1fr)
}

.g3 {
  grid-template-columns: repeat(3, 1fr)
}

.g2 {
  grid-template-columns: repeat(2, 1fr)
}

@media(max-width:800px) {

  .g4,
  .g3 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:520px) {

  .g4,
  .g3,
  .g2 {
    grid-template-columns: 1fr
  }
}

.trustbadge {
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 16px;
  margin: 20px 0 24px;
  font-size: 14.5px;
  color: var(--ink)
}

.alertbox {
  border: 1.5px solid var(--alert);
  border-radius: 10px;
  background: var(--alert-bg);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--ink)
}

.alertbox b.num {
  color: var(--alert);
  font-variant-numeric: tabular-nums;
  font-weight: 800
}

.okbox {
  border: 1.5px solid var(--ok);
  border-radius: 10px;
  background: var(--ok-bg);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--ink)
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease)
}

button:hover {
  border-color: var(--faint)
}

button.primary {
  background: var(--cta);
  border-color: var(--cta-press);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 13px 24px;
  font-size: 16px
}

button.primary:hover {
  background: var(--cta-press)
}

/* Listing & Footer */
.listing {
  max-width: 52rem;
  padding: clamp(28px, 4vw, 48px) 0
}

.listing h1 {
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 800
}

.listing .lead {
  color: var(--soft);
  margin: 14px 0 0
}

.cards {
  margin: 30px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line)
}

.cards a {
  display: block;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink)
}

.cards a:hover h3 {
  color: var(--navy)
}

.cards h3 {
  font-size: 17.5px;
  font-weight: 700
}

.cards p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 14.5px;
  max-width: 64ch
}

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 60px;
  font-size: 13.5px;
  color: var(--soft);
  margin-top: 48px
}

footer p {
  margin: 0 0 12px;
  max-width: 62rem
}

footer a {
  color: var(--soft)
}

/* === Ultra-Clean Mobile & Thin-Screen (320px-480px) Optimization === */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.workbench > *,
.grid > *,
.cards > *,
fieldset,
section,
article,
.card {
  min-width: 0;
  max-width: 100%;
}
.workbench:has(> section.card) {
  grid-template-columns: 1fr;
}
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
td.r, th.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dispatch-meta {
  flex: 1 1 min(100%, 380px);
  min-width: 0;
}
button, .cta {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
select, input {
  max-width: 100%;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 14px 48px !important;
  }
  .wl-bar {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0 12px;
  }
  .logo {
    font-size: 20px;
  }
  .logo small {
    font-size: 11px;
    line-height: 1.3;
  }
  nav, .top nav {
    width: 100%;
    gap: 6px 10px;
  }
  nav a, .top nav a {
    font-size: 13px;
    padding: 4px 0;
  }
  nav a.navcta, .top nav a.navcta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 2px;
  }
  h1, .article h1 {
    font-size: clamp(22px, 6.2vw, 28px) !important;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  fieldset {
    padding: 12px 12px 14px;
    margin: 0 0 14px;
  }
  legend {
    font-size: 13px;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
  }
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px;
    padding: 9px 10px;
  }
  button.primary,
  .WorkbenchToolbar button,
  .WorkbenchToolbar .cta,
  .band .cta,
  .dispatch-actions .cta {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    font-size: 13.5px;
  }
  .dispatch-ledger {
    padding: 14px 12px;
    gap: 12px;
  }
  .dispatch-actions {
    width: 100%;
    align-items: stretch;
  }
  .dispatch-actions > div {
    flex-direction: column;
    width: 100%;
  }
  .band {
    padding: 16px 14px !important;
    margin: 22px 0 18px;
    gap: 14px;
  }
  .band > div {
    width: 100%;
    text-align: left !important;
  }
  table {
    font-size: 12.5px;
  }
  th, td, .body th, .body td {
    padding: 7px 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  td.r, th.r {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    padding-left: 8px;
  }
}

/* Bespoke Brand Crest + Wordmark Lockup */
.top .logo, a.logo {
  display: block !important;
  position: relative !important;
  padding-left: 50px !important;
  min-height: 40px !important;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.025em;
  line-height: 1.15 !important;
}
.top .logo::before, a.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: url('/favicon.svg') no-repeat center / contain;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.top .logo span, a.logo span {
  display: inline !important;
}
.top .logo small, a.logo small {
  display: block !important;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0;
  margin-top: 2px;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .top .logo, a.logo {
    padding-left: 44px !important;
    min-height: 36px !important;
    font-size: 19.5px !important;
  }
  .top .logo::before, a.logo::before {
    width: 34px;
    height: 34px;
    top: 2px;
    transform: none;
  }
  .top .logo small, a.logo small {
    font-size: 11px;
    line-height: 1.28;
  }
}

/* Readability, Scannable Nav Pills & Quick-Rule Strip Overhaul */
.top nav, nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px !important;
}
.top nav a, nav a {
  display: inline-flex;
  align-items: center;
  background: var(--paper, #ffffff);
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 6px;
  padding: 6px 11px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.top nav a:hover, nav a:hover {
  border-color: var(--accent, var(--navy, #0f172a));
  background: var(--tint, #f1f5f9);
}
.top nav a.navcta, nav a.navcta {
  background: var(--ink, #0f172a) !important;
  color: #ffffff !important;
  border-color: var(--ink, #0f172a) !important;
  font-weight: 700 !important;
}
.crumbs {
  display: inline-block;
  font-size: 11.5px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, var(--navy, #0f5d46)) !important;
  background: var(--tint, #eef2ee);
  border: 1px solid var(--line, #cad5cf);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px !important;
}
.crumbs a {
  color: inherit !important;
  text-decoration: none !important;
}
header p, .hero p.lead, .hero p.sub {
  font-size: 16.5px !important;
  line-height: 1.55 !important;
  color: var(--soft) !important;
  max-width: 60ch !important;
  margin: 8px 0 14px !important;
}
.quick-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}
.quick-rule {
  background: var(--paper, #ffffff);
  border: 1px solid var(--line, #cbd5cf);
  border-left: 3.5px solid var(--accent, var(--navy, #0f5d46));
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.38;
  color: var(--soft);
}
.quick-rule strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.body p, .article p {
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 68ch;
}
@media (max-width: 640px) {
  .top nav, nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 100%;
  }
  .top nav a, nav a {
    justify-content: center;
    text-align: center;
    padding: 8px 8px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top nav a.navcta, nav a.navcta {
    grid-column: 1 / -1 !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
  }
  .quick-rules {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* === Scenario Link & Post-PDF Conversion Strip === */
.copy-scenario-btn {
  background: var(--paper, #fff);
  color: var(--ink, #0f172a);
  border: 1.5px solid var(--line, #cbd5e1);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.copy-scenario-btn:hover {
  border-color: var(--ink, #0f172a);
  background: rgba(15, 23, 42, 0.03);
}
.post-pdf-upsell {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1.5px solid #16a34a;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-pdf-upsell-text strong {
  display: block;
  font-size: 14.5px;
  color: #14532d;
  margin-bottom: 2px;
}
.post-pdf-upsell-text span {
  font-size: 13px;
  color: #166534;
}
.post-pdf-upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-pdf-upsell-actions a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.post-pdf-upsell-actions a.up-primary {
  background: #15803d;
  color: #ffffff;
}
.post-pdf-upsell-actions a.up-secondary {
  background: #ffffff;
  color: #14532d;
  border: 1px solid #16a34a;
}
