/* The Crossing Report
   Signature: a highway guide-sign board for border waits. Everything else stays quiet.
   Type: Overpass (descended from the U.S. highway sign alphabet). */

:root {
  --sign: #00603f;        /* guide-sign green */
  --sign-deep: #004a31;
  --ink: #1d2b36;         /* Detroit River slate */
  --muted: #55636d;
  --paper: #f6f7f5;
  --surface: #ffffff;
  --rule: #d3d9d6;
  --amber: #f2a900;       /* reflective caution amber */
  --red: #b3261e;
  --link: #005a8c;
  --radius-sign: 10px;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 2.1rem;
  --step-4: 2.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Overpass, "Segoe UI", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(var(--step-3), 5vw, var(--step-4)); max-width: 22ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.prose p, .prose li { max-width: 68ch; }
.fine { font-size: var(--step--1); color: var(--muted); }
.empty { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Masthead */
.masthead { background: var(--ink); color: #fff; }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: var(--step-1); display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; border-radius: 4px; background: var(--sign); box-shadow: inset 0 0 0 2px #fff; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.masthead nav a { color: #d8e1e6; text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }

main { padding: 32px 0 48px; }
.intro { margin-bottom: 24px; }
.intro p { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* The board */
.board {
  background: var(--sign);
  color: #fff;
  border-radius: var(--radius-sign);
  padding: 20px;
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px #fff;
  margin-bottom: 24px;
}
.board a { color: #fff; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 4px 8px 12px; }
.board-head h2 { margin: 0; font-size: var(--step-1); }
.board-time { margin: 0; font-size: var(--step--1); color: #cfe3d8; }
.board-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding: 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.board-name { grid-column: 1 / -1; font-weight: 800; font-size: var(--step-1); }
.board-name a { text-decoration: none; }
.board-name a:hover { text-decoration: underline; }
.board-name span { display: block; font-weight: 400; font-size: var(--step--1); color: #cfe3d8; }
.cell { display: flex; flex-direction: column; }
.dir { font-size: var(--step--1); color: #cfe3d8; }
.wait { font-weight: 800; font-size: var(--step-2); line-height: 1.15; align-self: flex-start; white-space: nowrap; }
.wait.level-moderate { background: var(--amber); color: var(--ink); padding: 0 8px; border-radius: 4px; }
.wait.level-heavy { background: #fff; color: var(--red); padding: 0 8px; border-radius: 4px; }
.wait.level-closed { text-decoration: line-through; text-decoration-thickness: 3px; opacity: 0.85; }
.wait.level-none { font-size: var(--step-1); font-weight: 600; color: #cfe3d8; padding-top: 0.45em; }
.meta { font-size: var(--step--1); color: #cfe3d8; min-height: 1.4em; }
.board-foot { margin: 8px 8px 0; font-size: var(--step--1); color: #cfe3d8; }
.board-single .board-name { font-size: var(--step-2); }

@media (min-width: 760px) {
  .board-row { grid-template-columns: 1.4fr 1fr 1fr; align-items: center; }
  .board-name { grid-column: auto; }
  .wait { font-size: var(--step-3); }
}

/* Two-column home */
.columns { display: grid; gap: 32px; }
@media (min-width: 900px) { .columns { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.col-side > * + * { margin-top: 24px; }

/* News */
.stories { list-style: none; margin: 0 0 16px; padding: 0; }
.story { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.story a { font-weight: 600; font-size: 1.0625rem; color: var(--ink); text-decoration: none; display: block; }
.story a:hover { text-decoration: underline; color: var(--link); }
.story-meta { font-size: var(--step--1); color: var(--muted); }

/* Fuel */
.fuel { background: var(--surface); border-top: 6px solid var(--amber); padding: 20px; border-radius: 0 0 6px 6px; }
.fuel h2 { font-size: var(--step-1); }
.fuel-verdict { font-size: var(--step-1); }
.fuel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 12px; }
.fuel-grid dt { font-size: var(--step--1); color: var(--muted); }
.fuel-grid dd { margin: 0; font-size: var(--step-2); font-weight: 800; }
.fuel-grid small { display: block; font-size: var(--step--1); font-weight: 400; color: var(--muted); }

.chart { margin: 24px 0; background: var(--surface); padding: 16px; border-radius: 6px; }
.chart svg { width: 100%; height: auto; display: block; font-family: inherit; font-size: 12px; fill: var(--muted); }
.chart .grid { stroke: var(--rule); }
.chart .line { fill: none; stroke-width: 3; stroke-linejoin: round; }
.chart .line-mi { stroke: var(--sign); }
.chart .line-on { stroke: var(--amber); }
.chart figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.key { display: inline-block; width: 14px; height: 4px; vertical-align: middle; margin: 0 4px 0 8px; }
.key-mi { background: var(--sign); }
.key-on { background: var(--amber); }

/* Guides */
.quick ul, .guide-list, .place-list { list-style: none; margin: 0; padding: 0; }
.quick li, .guide-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.guide-list a { font-weight: 800; font-size: var(--step-1); }
.guide-list span { display: block; color: var(--muted); }
.place-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.place-list h3 { margin-bottom: 0.25em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.notice { background: #fff4d6; border-left: 4px solid var(--amber); padding: 12px 16px; }
section { margin-bottom: 32px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: var(--step--1); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
thead th { color: var(--muted); font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; max-width: 68ch; }

/* Newsletter */
.newsletter { background: var(--ink); color: #fff; padding: 20px; border-radius: 6px; }
.newsletter h2 { font-size: var(--step-1); }
.button { display: inline-block; background: var(--amber); color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 4px; text-decoration: none; }
.button:hover { background: #ffc233; color: var(--ink); }

/* Ads: fixed reserved heights prevent layout shift */
.ad { position: relative; display: flex; align-items: center; justify-content: center; margin: 24px 0; border: 1px dashed var(--rule); border-radius: 4px; overflow: hidden; }
.ad > ins { width: 100%; }
.ad-label { position: absolute; top: 4px; left: 8px; font-size: 0.6875rem; color: var(--muted); }
.ad-leader { min-height: 120px; }
.ad-rect { min-height: 270px; }
.ad-infeed { min-height: 160px; }
@media (min-width: 760px) { .ad-leader { min-height: 110px; } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 32px 0; font-size: var(--step--1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Daily brief */
.brief-teaser { border-left: 6px solid var(--sign); background: var(--surface); padding: 16px 20px; margin-bottom: 32px; border-radius: 0 6px 6px 0; }
.brief-teaser h2 { font-size: var(--step-2); margin-bottom: 0.35em; }
.brief-teaser h2 a { color: var(--ink); text-decoration: none; }
.brief-teaser h2 a:hover { text-decoration: underline; }
.brief-teaser p:last-child { margin-bottom: 0; }
.brief-kicker { font-size: var(--step--1); color: var(--sign); font-weight: 600; margin-bottom: 0.4em; }
.brief-head { margin-bottom: 24px; }
.brief-dek { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.brief-body { font-size: 1.0625rem; line-height: 1.65; }
.brief-body h2 { font-size: var(--step-1); margin-top: 1.6em; padding-top: 0.6em; border-top: 3px solid var(--sign); display: inline-block; }
.brief-body ul { padding-left: 1.2em; }
.brief-body li { margin-bottom: 0.5em; max-width: 66ch; }
.brief-nav { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.brief-item time { display: block; font-size: var(--step--1); color: var(--muted); }
.brief-item a { font-weight: 800; font-size: var(--step-1); color: var(--ink); text-decoration: none; }
.brief-item a:hover { text-decoration: underline; color: var(--link); }
.brief-item p { margin: 0.3em 0 0; color: var(--muted); max-width: 66ch; }

/* Newsletter signup */
.newsletter p { color: #d8e1e6; }
.signup { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.signup input[type="email"] { flex: 1 1 200px; min-width: 0; font: inherit; padding: 10px 12px; border: 2px solid transparent; border-radius: 4px; background: #fff; color: var(--ink); }
.signup input[type="email"]:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.signup .button { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.signup-note { font-size: var(--step--1); margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.newsletter a:not(.button) { color: #fff; }
