/* CourtLogin - single page. No external fonts, no third-party requests. */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #4a5361;
  --line: #d9d4c7;
  --accent: #1f3a5f;
  --accent-ink: #ffffff;
  --brass: #8a6418;
  --note: #efeadf;
  --focus: #1f3a5f;
  --logo-ink: #1f3a5f;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151d; --surface: #17202b; --ink: #e8e4da; --muted: #a9b1bd;
    --line: #2a3542; --accent: #9cc0e8; --accent-ink: #0f151d; --brass: #d6ae5f;
    --note: #1c2733; --focus: #9cc0e8; --logo-ink: #e8e4da; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151d; --surface: #17202b; --ink: #e8e4da; --muted: #a9b1bd;
  --line: #2a3542; --accent: #9cc0e8; --accent-ink: #0f151d; --brass: #d6ae5f;
  --note: #1c2733; --focus: #9cc0e8; --logo-ink: #e8e4da; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; min-height: 44px; }
.brand svg { width: 26px; height: 30px; color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; }
.nav a:hover { background: var(--note); }
.theme-btn { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.theme-btn:hover { color: var(--ink); border-color: var(--muted); }
.theme-btn svg { width: 16px; height: 16px; }
.logo-slot { display: inline-flex; }
.brand .logo-07 { width: 151px; height: 42px; color: inherit; }
.logo-07 .lt { fill: var(--logo-ink); }
.logo-07 .lr { stroke: var(--brass); }
.top .brand { margin-right: auto; }
.top .nav { order: 2; }
.top .theme-btn { order: 3; }
@media (max-width: 760px) {
  .top .wrap { padding-top: 8px; padding-bottom: 4px; row-gap: 0; }
  .top .theme-btn { order: 2; }
  .top .nav { order: 3; width: 100%; margin: 0 -8px; gap: 0; }
  .nav a { padding: 10px 4px; font-size: 13.5px; }
}

/* Hero */
.hero { padding: 72px 0 64px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.hero h1 { font-size: clamp(36px, 6vw, 60px); max-width: 14ch; }
.lede { font-size: 19px; color: var(--muted); max-width: 36em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }

/* Project slip: the page's signature element */
.slip { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px 24px; position: relative; }
.slip::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-bottom: 1px solid var(--brass); border-top: 1px solid var(--brass); transform: translateY(-50%); background: var(--surface); }
.slip h2 { font-size: 22px; }
.slip p { color: var(--muted); margin-top: 10px; }
.slip ul { list-style: none; margin: 14px 0 0; padding: 0; }
.slip li { padding: 11px 0; border-top: 1px dashed var(--line); display: flex; gap: 12px; align-items: baseline; }
.slip li:first-child { border-top: 0; }
.slip li span { font-family: var(--serif); color: var(--brass); font-weight: 600; font-size: 14px; min-width: 1.6em; }
.slip .small { font-size: 14px; margin-top: 12px; }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 44em; }
.section h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps .n { font-family: var(--serif); font-size: 15px; color: var(--brass); font-weight: 600; display: block; margin-bottom: 8px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.notice { margin-top: 40px; background: var(--note); border-radius: 8px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; max-width: 44em; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brass); }

.cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card p + p { margin-top: 10px; }

.confirm { background: #fff3c4; color: #4a3800; border-radius: 3px; padding: 0 4px; font-size: 0.92em; }
:root[data-theme="dark"] .confirm { background: #4a3d10; color: #ffe9a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .confirm { background: #4a3d10; color: #ffe9a8; } }

.sub { font-size: 22px; margin-bottom: 20px; }
@media (min-width: 640px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.standards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 44em; }
.standards li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; }
.standards li:last-child { border-bottom: 1px solid var(--line); }
.standards li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 10px; height: 6px; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
.aside-note { margin-top: 16px; font-size: 14px; }

.faq { max-width: 48em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; min-height: 44px; position: relative; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--sans); font-size: 24px; font-weight: 400; color: var(--brass); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 40em; }

.contact-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-grid dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.contact-grid dd { margin: 0; font-size: 19px; }
.contact-grid address { font-style: normal; }
.email { font-family: var(--mono); font-size: 18px; word-break: break-all; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot .brand { font-size: 17px; }
.foot .brand svg { width: 20px; height: 23px; }
.foot a { color: var(--muted); }
.foot-links { display: flex; gap: 4px 8px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.foot-links a:hover { color: var(--ink); }

/* Plain text pages (privacy, accessibility) */
.prose { padding: 56px 0 72px; }
.prose .wrap > * { max-width: 42em; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 15px; }
