/* county-times.css — shared styles for the County Times Checker pages.
   Light reading sheet (warm-paper blog tokens) inside a dark HSC frame; red is
   the single action colour. Small red TEXT on light uses #C32114 (AA). */

.ct-frame { background: var(--bg); padding: 16px 12px 48px; border-top: 3px solid var(--accent); }
@media (min-width: 768px) { .ct-frame { padding: 40px 32px 72px; } }

/* Light zone: re-point the site tokens so shared components (FAQ etc.) go dark-on-light */
.ct-light {
  --text: #0A0807; --mid: #5E5852; --rule: rgba(10,8,7,0.13); --surface: rgba(10,8,7,0.04);
  --bg: #FFFFFF; --bg2: #F5F1EB; --ink: #C32114; --line: rgba(10,8,7,0.22);
  color: var(--text);
}
.ct-sheet { max-width: 1080px; margin: 0 auto; background: #FFFFFF; padding: 20px 16px 28px; box-shadow: 0 0 0 1px rgba(255,46,32,0.35); }
@media (min-width: 768px) { .ct-sheet { padding: 40px 48px 48px; } }
.ct-light a { color: var(--text); text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; }
.ct-light :focus-visible { outline: 3px solid #0A0807; outline-offset: 2px; }

/* Steps */
.ct-step { padding: 0 0 26px; }
.ct-step + .ct-step { border-top: 1px solid var(--rule); padding-top: 24px; }
.ct-step-h { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 28px); letter-spacing: .03em; color: var(--text); margin: 0 0 16px; }
.ct-step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; flex-shrink: 0; }

.ct-controls { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .ct-controls { grid-template-columns: 1.2fr 1fr 0.9fr; gap: 20px; align-items: end; } }
.ct-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.ct-field legend, .ct-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--mid); margin-bottom: 6px; padding: 0; }
.ct-seg { display: flex; border: 1px solid var(--line); background: var(--bg); }
.ct-seg label { flex: 1; position: relative; cursor: pointer; }
.ct-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.ct-seg span { display: block; text-align: center; padding: 11px 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.ct-seg label + label span { border-left: 1px solid var(--line); }
.ct-seg input:checked + span { background: var(--text); color: #fff; }
.ct-seg input:focus-visible + span { outline: 3px solid #0A0807; outline-offset: 2px; }
.ct-tool select, .ct-tool input[type="text"], .ct-tool textarea, .ct-notify input {
  width: 100%; background: #fff; color: var(--text); border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 16px; padding: 11px 12px; border-radius: 0; }
.ct-tool select { height: 46px; }
.ct-tool input:focus, .ct-tool select:focus, .ct-tool textarea:focus, .ct-notify input:focus { outline: 3px solid #0A0807; outline-offset: 0; border-color: #0A0807; }
.ct-age { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--text); font-weight: 500; text-wrap: pretty; }

/* Stroke tabs */
.ct-tabs { display: flex; border-bottom: 2px solid var(--rule); margin-bottom: 4px; }
.ct-tabs [role="tab"] { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 4px 10px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--mid); cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.ct-tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.ct-tabs [role="tab"]:hover { color: var(--text); }
.ct-count:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* Rows: strict grid. Desktop: Event | Time | Status | Detail. Mobile: Event+Time / Status+Detail */
.ct-rows:focus-visible { outline: 3px solid #0A0807; outline-offset: 2px; }
.ct-row { display: grid; grid-template-columns: 84px 1fr 112px; grid-template-areas: "ev ev in" "pill det det"; column-gap: 12px; row-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 768px) {
  .ct-row { grid-template-columns: 150px 120px 84px 1fr; grid-template-areas: "ev in pill det"; column-gap: 18px; }
}
.ct-row[hidden] { display: none; }
.ct-ev { grid-area: ev; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-ev label { font-weight: 700; font-size: 16px; color: var(--text); }
.ct-std { font-size: 12.5px; color: var(--mid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-row input { grid-area: in; text-align: right; font-variant-numeric: tabular-nums; }
.ct-row input:disabled { background: var(--surface); color: var(--mid); }
.ct-pill, .ct-li .ct-pill { grid-area: pill; justify-self: start; width: 84px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 0; border-radius: 999px; }
.ct-pill:empty { visibility: hidden; }
.ct-detail { grid-area: det; font-size: 14px; line-height: 1.45; color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; }
.ct-detail:empty { display: none; }
.ct-row .ct-pill:empty, .ct-row .ct-detail:empty { display: none; }
.ct-row:not(.is-qt):not(.is-ct):not(.is-no):not(.is-out):not(.is-off):not(.is-bad) { grid-template-areas: "ev ev in"; }
@media (min-width: 768px) { .ct-row:not(.is-qt):not(.is-ct):not(.is-no):not(.is-out):not(.is-off):not(.is-bad) { grid-template-areas: "ev in pill det"; } }
.ct-row.is-off .ct-detail, .ct-row.is-bad .ct-detail { grid-column: 1 / -1; }
@media (min-width: 768px) { .ct-row.is-off .ct-detail, .ct-row.is-bad .ct-detail { grid-column: auto; grid-area: det; } }
.ct-sub { display: block; font-size: 12.5px; color: var(--mid); margin-top: 2px; }
.is-qt .ct-pill { background: #DCF2E3; color: #0B6B33; }
.is-ct .ct-pill { background: #FBEBC8; color: #7A4F00; }
.is-no .ct-pill { background: #ECE8E3; color: #46413C; }
.is-out .ct-pill { background: #FCE3D6; color: #9A3412; }
.is-bad .ct-detail { color: #B42318; }
.is-off .ct-ev, .is-off .ct-detail { color: var(--mid); }

/* Fill from rankings */
.ct-fill { margin-top: 18px; border: 1px solid var(--rule); padding: 12px 14px; background: var(--bg2); }
.ct-fill summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text); }
.ct-fill-body { padding-top: 12px; display: grid; gap: 12px; }
.ct-fill-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mid); text-wrap: pretty; }
.ct-fill-body textarea { min-height: 90px; font-size: 14px; }
.ct-inline { display: flex; gap: 8px; }
.ct-inline input { flex: 1; min-width: 0; }
.ct-btn { background: var(--ink); color: #fff; border: 0; padding: 12px 18px; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ct-btn:hover { background: #A51B10; }
.ct-btn:disabled { opacity: .6; cursor: wait; }
.ct-btn-ghost { background: none; border: 1px solid var(--line); color: var(--text); padding: 10px 16px; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; }
.ct-fill-msg { font-size: 14px; color: var(--text); min-height: 1.4em; margin: 10px 0 0; }

/* Results */
.ct-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.ct-big { background: var(--bg2); padding: 14px 10px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ct-big-n { font-family: var(--font-disp); font-weight: 900; font-size: clamp(38px, 7vw, 54px); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.ct-big-l { font-size: 13px; font-weight: 600; color: var(--mid); }
.ct-big:first-child .ct-big-n { color: #0B6B33; }
.ct-big:nth-child(2) .ct-big-n { color: #7A4F00; }
.ct-list { margin-top: 12px; }
.ct-empty { margin: 0; padding: 14px 0; font-size: 14px; color: var(--mid); }
.ct-ul { list-style: none; margin: 0; padding: 0; }
.ct-li { display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "ev ev t" "pill d d"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
@media (min-width: 768px) { .ct-li { grid-template-columns: 110px 90px 84px 1fr; grid-template-areas: "ev t pill d"; column-gap: 18px; } }
.ct-li-ev { grid-area: ev; font-weight: 700; color: var(--text); }
.ct-li-t { grid-area: t; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.ct-li .ct-pill { grid-area: pill; }
.ct-li-d { grid-area: d; color: var(--mid); font-variant-numeric: tabular-nums; }
.ct-li abbr { text-decoration: none; color: var(--mid); margin-left: 3px; font-size: 11px; font-weight: 700; }
.ct-actions { margin-top: 14px; }
.ct-help { font-size: 13.5px; color: var(--mid); line-height: 1.65; margin: 12px 0 0; text-wrap: pretty; }

/* Reference sections */
.ct-ref { border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 30px; }
.ct-ref-h { font-size: clamp(22px, 3vw, 28px); letter-spacing: .03em; color: var(--text); margin: 0 0 12px; }
.ct-ref-h3 { font-size: 18px; color: var(--text); margin: 6px 0 4px; letter-spacing: .03em; }
.ct-facts { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0; }
@media (min-width: 768px) { .ct-facts { grid-template-columns: 1fr 1fr; } }
.ct-facts div { background: #fff; padding: 14px 16px; }
.ct-facts dt { font-size: 13px; font-weight: 600; color: var(--mid); margin-bottom: 4px; }
.ct-facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.ct-table-wrap { overflow-x: auto; border: 1px solid var(--rule); margin: 14px 0 22px; -webkit-overflow-scrolling: touch; }
.ct-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.ct-table caption { text-align: left; padding: 12px 14px; font-weight: 700; font-size: 15px; background: var(--bg2); }
.ct-table th, .ct-table td { padding: 8px 8px; border-top: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.ct-table thead th { font-size: 12px; color: var(--mid); font-weight: 600; }
.ct-table th[scope="row"] { text-align: left; font-weight: 700; position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 var(--rule); }
.ct-table tbody tr:nth-child(even) td, .ct-table tbody tr:nth-child(even) th { background: #FAF8F5; }
.ct-table td.ct-na { color: var(--mid); text-align: center; }
.ct-table .ct-age-h { text-align: center; color: var(--text); border-left: 1px solid var(--rule); }
.ct-table td.ct-q { border-left: 1px solid var(--rule); }
.ct-caps { padding-left: 18px; }
.ct-caps li { margin-bottom: 4px; }
.ct-light .faq-btn-text { color: var(--text); }
.ct-light .faq-icon { color: var(--ink); }
.ct-light .faq-answer-inner { color: #3D3833; }
.ct-notify { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-width: 520px; }
.ct-notify input { flex: 1 1 220px; min-width: 0; }
.ct-source { margin-top: 26px; }

/* Hub (/county-times/) */
.ct-hub-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .ct-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ct-hub-grid { grid-template-columns: repeat(3, 1fr); } }
.ct-light a.ct-hub-card, .ct-hub-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); min-height: 150px; }
.ct-light a.ct-hub-card:hover { border-color: var(--text); }
.ct-hub-n { font-family: var(--font-disp); font-weight: 900; font-size: 26px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.ct-hub-d { font-size: 14.5px; font-weight: 600; color: var(--text); }
.ct-hub-m { font-size: 13.5px; color: var(--mid); }
.ct-hub-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ct-hub-soon { background: var(--bg2); border-style: dashed; }
.ct-hub-soon .ct-hub-d { color: var(--mid); }
.ct-lead { font-size: 15.5px; color: #3D3833; }
.ct-table-1 { min-width: 560px; }
.ct-summary--plain .ct-big:nth-child(2) .ct-big-n { color: var(--text); }
.is-check .ct-pill { background: #FCE3D6; color: #9A3412; }
.is-std .ct-pill { background: #DCF2E3; color: #0B6B33; }
.is-check .ct-detail { color: #9A3412; }

/* County switcher: step 1, a grid of equal boxes (6 across on desktop, 3 x 2 on tablets, 2 x 3 on phones) */
.ct-switch { padding: 0 0 26px; }
.ct-sw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
@media (min-width: 600px) { .ct-sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ct-sw-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ct-sw-grid li { display: flex; margin: 0; padding: 0; }
.ct-sw { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; min-height: 68px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; position: relative; }
.ct-light a.ct-sw { color: var(--text); text-decoration: none; }
.ct-light a.ct-sw:hover { border-color: var(--text); }
.ct-light a.ct-sw:focus-visible { outline: 3px solid #0A0807; outline-offset: 2px; }
.ct-sw-n { font-size: 16.5px; font-weight: 700; line-height: 1.2; color: var(--text); }
.ct-sw-d { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--mid); }
.ct-light a.ct-sw[aria-current="page"] { background: var(--text); border-color: var(--text); box-shadow: inset 0 3px 0 var(--accent); }
.ct-light a.ct-sw[aria-current="page"] .ct-sw-n { color: #fff; }
.ct-light a.ct-sw[aria-current="page"] .ct-sw-d { color: #D9D4CF; }
.ct-sw-soon { background: var(--bg2); border-style: dashed; cursor: default; }
.ct-sw-soon .ct-sw-n { color: var(--mid); }
#ct-county { border-top: 1px solid var(--rule); padding-top: 24px; }

/* Info sections */
.ct-how-p { font-size: 15.5px; line-height: 1.65; color: #2A2520; margin: 0 0 10px; max-width: 70ch; text-wrap: pretty; }
.ct-unconfirmed { font-size: 14.5px; line-height: 1.6; color: #2A2520; background: #FBF0D9; padding: 10px 12px; margin: 12px 0 0; max-width: 70ch; }
.ct-tbl { margin: 12px 0 0; border: 1px solid var(--rule); }
.ct-tbl > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 15px; background: var(--bg2); list-style-position: inside; }
.ct-tbl .ct-table-wrap { margin: 0; border: 0; border-top: 1px solid var(--rule); }
.ct-hub-prompt { padding-top: 2px; }
