/* Court PDF Check: shared styles. Layout: masthead nav, working column + rule card on tool pages, reading column on guides. */
:root {
  --paper: #F4F6F9; --sheet: #FFFFFF; --ink: #17202E; --muted: #5A6577; --line: #DBE0E8; --rule: #C9D3E6;
  --accent: #2A4BB0; --accent-ink: #FFFFFF; --accent-soft: #E8EDFA;
  --fail: #B42318; --fail-bg: #FDECEA; --warn: #8F5A00; --warn-bg: #FFF3D6;
  --pass: #1D7444; --pass-bg: #E4F3E9; --info: #4B5565; --info-bg: #EDF0F5;
  --shadow: 0 1px 2px rgba(23,32,46,.06), 0 8px 24px rgba(23,32,46,.06);
  --f-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E131C; --sheet: #161D29; --ink: #E6EAF1; --muted: #9AA5B5; --line: #2A3342; --rule: #33405A;
    --accent: #8EA6F0; --accent-ink: #0E131C; --accent-soft: #1D2846;
    --fail: #FF8F80; --fail-bg: #3A1714; --warn: #F2C063; --warn-bg: #36290C;
    --pass: #71D39C; --pass-bg: #11301F; --info: #AEB8C7; --info-bg: #1E2532;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 40px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.shell { max-width: 1120px; margin: 0 auto; }

/* Site header */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.logo svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Page intro */
.intro { padding-block: 26px 18px; }
.intro h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.3rem); line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; max-width: 26ch; }
.intro p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; font-size: 16px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.privacy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin-top: 12px; }
.privacy svg { width: 15px; height: 15px; color: var(--pass); flex: none; }

/* Tool grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
@media (max-width: 640px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
select { width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; min-height: 48px; }
.drop { display: flex; align-items: center; gap: 14px; min-height: 48px; border: 1.5px dashed var(--rule); border-radius: var(--r); padding: 12px 14px; background: var(--sheet); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.drop strong { display: block; font-weight: 600; }
.drop .sub { color: var(--muted); font-size: 13px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop .btnlike { margin-left: auto; flex: none; font-weight: 600; font-size: 14px; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: 8px 14px; }
@media (max-width: 420px) { .drop .btnlike { display: none; } }

.sheet { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 22px 8px 34px; min-width: 0; }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 16px; width: 4px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.rhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .rhead { grid-template-columns: minmax(0, 1fr); } }
.stamp { font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; line-height: 1.25; text-align: center; padding: 10px 14px; border: 3px double currentColor; border-radius: 6px; transform: rotate(-3deg); max-width: 190px; }
.stamp small { display: block; font-size: 10px; letter-spacing: .1em; opacity: .85; margin-top: 3px; }
.stamp.fail { color: var(--fail); background: var(--fail-bg); }
.stamp.warn { color: var(--warn); background: var(--warn-bg); }
.stamp.pass { color: var(--pass); background: var(--pass-bg); }
.stamp.idle { color: var(--muted); background: var(--info-bg); }
.fname { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.tally { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.chip { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.chip.fail, .pill.fail { color: var(--fail); background: var(--fail-bg); }
.chip.warn, .pill.warn { color: var(--warn); background: var(--warn-bg); }
.chip.pass, .pill.pass { color: var(--pass); background: var(--pass-bg); }
.chip.info, .pill.info { color: var(--info); background: var(--info-bg); }
.copy { margin-left: auto; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: var(--accent-soft); }
.progress { padding: 18px 0; color: var(--muted); font-family: var(--f-mono); font-size: 13px; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
@media (max-width: 480px) { .check { grid-template-columns: minmax(0, 1fr); } }
.pill { align-self: start; justify-self: start; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.check h3 { font-size: 15px; font-weight: 600; margin: 0; }
.check p { margin: 2px 0 0; overflow-wrap: anywhere; }
.fix { color: var(--muted); font-size: 14px; }
.fix b { color: var(--ink); font-weight: 600; }
.cite { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.err { padding: 16px 0; color: var(--fail); }
.next { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 6px 0 14px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); font-size: 14px; }
.next b { font-weight: 600; }

.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rules { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; }
.rules h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 2px; line-height: 1.25; text-wrap: balance; }
.rules .sys { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.rules dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.rules dt { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rules dd { margin: 1px 0 0; font-size: 14px; }
.rules ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.rules li + li { margin-top: 4px; }
.src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.src a { display: block; margin-top: 4px; overflow-wrap: anywhere; }

/* Ads: hidden until an AdSense client is configured; space reserved to avoid layout shift */
.ad { display: block; min-height: 120px; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-wrap { margin-block: 8px; }

/* Content sections and articles */
.section { padding-block: 32px 8px; }
.section h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; margin: 0 0 12px; text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.card { display: block; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.card:hover { border-color: var(--accent); }
.card strong { display: block; font-weight: 600; }
.card span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; margin: 30px 0 8px; text-wrap: balance; }
.prose h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 16px; }
.prose li + li { margin-top: 6px; }
.prose code { font-family: var(--f-mono); font-size: 13.5px; background: var(--info-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.prose pre code { background: none; padding: 0; }
.note { background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; }
.cta { display: inline-block; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: 10px 16px; text-decoration: none; }
.faq dt { font-weight: 600; margin-top: 16px; font-size: 16px; }
.faq dd { margin: 4px 0 0; font-size: 16px; }
.table-wrap { overflow-x: auto; }
table.plain { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.plain th, table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.site-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 10px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--muted); }
.fine { max-width: 80ch; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
