/* DetectDock guides (19 Nov 2026, the owner: "guide pages Google can read"): plain pages in the about page's look,
   readable on a phone, no script. */
:root {
  color-scheme: dark;
  --bg: #0d100c; --card: #161b15; --line: rgba(255, 255, 255, 0.09); --line-lime: rgba(181, 227, 75, 0.28);
  --fg: #f2f4ee; --fg-2: #c3c9bd; --fg-3: #8e968a; --lime: #b5e34b; --lime-ink: #10170a; --amber: #e0b872; --red: #f87171; --teal: #5eead4;
  --r: 16px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--lime); text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* header and footer, as the about page */
.top { position: sticky; top: 0; z-index: 20; background: rgba(13, 16, 12, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand svg { width: 32px; height: 32px; flex: none; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1; }
.wordmark b { color: var(--lime); font-weight: 700; }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--fg-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 700 15px/1.2 var(--font); text-decoration: none; text-align: center; border: 1px solid transparent; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #c4ec62; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--fg); }
.top .btn { min-height: 38px; padding: 0 15px; font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

@media (max-width: 360px) {
  .top .wrap { gap: 8px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .top .brand { gap: 6px; }
  .top .btn { padding-inline: 10px; min-height: 44px; white-space: normal; }
}

footer { border-top: 1px solid var(--line); margin-top: 56px; padding-block: 26px calc(26px + env(safe-area-inset-bottom)); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
footer nav a { text-decoration: none; color: var(--fg-2); padding-block: 8px; }
footer nav a:hover { color: var(--fg); }
footer .tag { margin-left: auto; font-size: 13px; color: var(--fg-3); }
@media (max-width: 760px) { footer .tag { margin-left: 0; width: 100%; } }

/* the article */
.crumbs { margin: 26px 0 0; font-size: 14px; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 0.16em; }
.crumbs a:hover { color: var(--fg); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
@media (max-width: 920px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .aside { display: none; } }
article { max-width: 44rem; min-width: 0; }
h1 { margin: 14px 0 12px; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.lede { margin: 0 0 22px; font-size: 1.15rem; color: var(--fg-2); }
.meta { margin: 0 0 26px; font-size: 13.5px; color: var(--fg-3); }
h2 { margin: 44px 0 10px; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; scroll-margin-top: 76px; }
h3 { margin: 26px 0 6px; font-size: 1.12rem; line-height: 1.3; }
p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 16px; padding-left: 1.3em; }
article li { margin-bottom: 7px; }
article li::marker { color: var(--lime); }
strong { color: var(--fg); }
.note { margin: 20px 0; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 15.5px; color: var(--fg-2); }
.note.warn { border-color: rgba(248, 113, 113, 0.5); background: linear-gradient(180deg, rgba(127, 29, 29, 0.25), rgba(127, 29, 29, 0.1)); }
.note.key { border-color: var(--line-lime); background: linear-gradient(180deg, #172015, #121711); }
.note > strong:first-child { display: block; margin-bottom: 4px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: var(--r); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--card); font-size: 13.5px; letter-spacing: 0.02em; color: var(--fg-2); }
tr:last-child td { border-bottom: 0; }
.cta { margin: 30px 0; padding: 20px; border-radius: var(--r); border: 1px solid var(--line-lime); background: linear-gradient(90deg, #172015, #121711); display: grid; gap: 10px; }
.cta h2 { margin: 0; font-size: 1.25rem; }
.cta p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sources { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); }
.sources h2 { margin-top: 0; font-size: 1.15rem; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }

/* the side column: the other guides */
.aside { position: sticky; top: 84px; margin-top: 60px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.aside h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside a { display: block; padding: 7px 0; text-decoration: none; color: var(--fg-2); }
.aside a:hover, .aside a[aria-current="page"] { color: var(--lime); }
.more { margin-top: 40px; }
.more h2 { font-size: 1.2rem; }
.more ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.more a { display: block; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.more a:hover { border-color: var(--line-lime); }
.more a small { display: block; color: var(--fg-2); font-size: 14px; margin-top: 2px; }

/* the guides' index */
.cards { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.cards a { display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.cards a:hover { border-color: var(--line-lime); }
.cards b { font-size: 1.15rem; line-height: 1.3; }
.cards span { color: var(--fg-2); font-size: 15px; }
.cards em { font-style: normal; color: var(--lime); font-size: 14px; font-weight: 650; }

/* (21 Nov 2026 SEO brief) the new guides: a copyable template, drawn figures, numbered steps, small print */
.template { margin: 16px 0 20px; padding: 16px; border-radius: var(--r); background: #0a0d09; border: 1px solid var(--line); color: var(--fg); font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.small { font-size: 14.5px; color: var(--fg-3); }
.fig { margin: 22px 0; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
.fig figcaption { margin-top: 10px; font-size: 14.5px; color: var(--fg-3); }
.steps { counter-reset: none; }
.steps li { margin-bottom: 8px; }
.sources .small { margin: 10px 0 0; }
@media print {
  :root { color-scheme: light; --fg: #000; --fg-2: #222; --fg-3: #333; --lime: #183b12; --card: white; }
  body { background: white; color: black; }
  .top, footer, .aside, .cta, .more, .crumbs { display: none; }
  .layout { display: block; }
  article { max-width: none; }
  article:has(.template) > :not(.template) { display: none; }
  .template { display: block; background: #fff; color: #000; border: 0; font-size: 12pt; }
}
/* (21 Nov 2026) county pages: the periods table with its bars */
.periods { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; margin: 8px 0 14px; font-size: 15.5px; }
.periods th:first-child { width: 38%; } .periods th:nth-child(2) { width: 24%; }
.periods th, .periods td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.periods td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.periods td:last-child { overflow: hidden; }
.periods .bar { display: block; height: 10px; border-radius: 5px; background: var(--lime); opacity: 0.75; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.periods caption { caption-side: top; text-align: left; padding: 0 0 6px; font-size: 14.5px; color: var(--fg-3); }
.small.data { margin-top: 4px; }

.guide-contents { margin: 20px 0; border-block: 1px solid var(--line); }
.guide-contents summary { padding: 10px 0; cursor: pointer; font-weight: 650; }
.guide-contents a { display: inline-block; padding-block: 5px; }
@media print { .guide-contents { display: none; } }
