/* Para Network uses the Para Apparel brand: warm paper, ink, deep blue, clay accent,
   Georgia serif headlines, monospace labels, square corners, uppercase buttons. */
:root {
  --paper: #f4f1ea; --paper-deep: #e9e3d7; --white: #fcfbf7;
  --ink: #1c2024; --muted: #60666b; --line: rgba(28, 32, 36, .22);
  --blue: #1e5f8c; --blue-dark: #124461; --blue-pale: #dce8ee; --clay: #c1602c;
  --clay-pale: #f3e0d4; --danger: #a8361b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* Top bar + header */
.band { background: var(--blue-dark); color: var(--white); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.band .wrap { padding-block: .55rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand span { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 10px; }
.header-link { font-size: .8rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.header-link:hover { color: var(--blue); }

/* Hero */
.hero .wrap { padding-block: 48px 12px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0; color: var(--blue-dark); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 44px; height: 1px; background: currentColor; content: ""; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.045em; line-height: .95; margin: 0; max-width: 14ch; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.sub { color: var(--muted); margin: 0; max-width: 60ch; font-size: 1.05rem; }

/* Controls */
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); min-width: 0; }
button, .btn { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .075em; line-height: 1; text-transform: uppercase; cursor: pointer; border-radius: 0; border: 1px solid var(--ink); padding: 15px 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; transition: transform .18s ease, background .18s ease, color .18s ease; }
.primary { background: var(--ink); color: var(--paper); }
.primary:hover { transform: translateY(-2px); }
.ghost { background: transparent; color: var(--ink); }
.ghost:hover { background: var(--ink); color: var(--paper); }
.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.small { min-height: 36px; padding: 9px 12px; font-size: .7rem; }
.searchrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.searchrow input { flex: 1 1 300px; min-height: 52px; }
.searchrow button { min-height: 52px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.filters select { padding: 9px 12px; font-size: .9rem; }
.filters label.check { display: flex; gap: 6px; align-items: center; }
.filters input[type=checkbox] { accent-color: var(--blue); }

/* Results */
.reading { margin: 28px 0 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.reading b { color: var(--blue-dark); }
.results { display: flex; flex-direction: column; gap: 18px; padding-block: 4px 56px; }
.card { background: var(--white); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta, .note { color: var(--muted); font-size: .9rem; margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 8px; color: var(--muted); }
.tablebox { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--ink); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); font-size: .82rem; }
.pill { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; background: var(--clay); color: var(--white); white-space: nowrap; }
.pill.full { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.hl td:first-child { box-shadow: inset 3px 0 0 var(--clay); }
.offseason { background: var(--blue-pale); padding: 14px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--paper); padding: 13px 16px; max-width: min(92vw, 520px); font-size: .92rem; z-index: 40; }
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 22px 36px; font-size: .82rem; color: var(--muted); }

/* Handoff sheet */
.overlay { position: fixed; inset: 0; background: rgba(28, 32, 36, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 30; padding: 12px; }
@media (min-width: 640px) { .overlay { align-items: center; } }
.sheet { background: var(--paper); color: var(--ink); width: min(100%, 580px); max-height: 92vh; overflow-y: auto; padding: 26px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--ink); }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.sheet h4 { margin: 0 0 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input { margin-top: 4px; accent-color: var(--blue); }
.choice small { display: block; color: var(--muted); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::marker { font-family: var(--mono); color: var(--clay); }
.shared { background: var(--blue-pale); padding: 14px 16px; font-size: .9rem; }
.shared ul { margin: 6px 0 0; padding-left: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Admin */
.panel { background: var(--white); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; min-width: 0; }
.field span { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 18px; padding-block: 18px 48px; }
td input { width: 5.5em; padding: 6px 8px; }
.error { color: var(--danger); font-size: .9rem; margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-deep); padding: 1px 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 520px) { .searchrow button { flex: 1 1 100%; } }
footer .wrap { display: flex; flex-direction: column; gap: 6px; }
footer a { color: var(--blue); }
.pricebox { display: flex; flex-direction: column; gap: 4px; }
.aid { font-size: .88rem; font-weight: 700; color: var(--blue); }
.series-only[hidden] { display: none !important; }

.fresh { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.fresh a { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; min-height: 0; font: inherit; font-size: .82rem; letter-spacing: 0; text-transform: none; color: var(--blue); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { transform: none; }
/* Admin: main column + sticky "Needs checking" box on the right */
.wide { max-width: 1320px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.admin-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.side h2 { font-size: 1.3rem; }
.side h3 { margin: 4px 0 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); }
.check-item { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.check-item b { font-weight: 700; }
.check-item .meta { font-size: .8rem; }
.check-item .actions { justify-content: flex-start; gap: 6px; }
.check-item .small { min-height: 30px; padding: 6px 9px; font-size: .64rem; }
.report-tag { display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--clay); color: var(--white); padding: 2px 6px; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; order: -1; }
}
.side a, .check-item a { color: var(--blue); }
