:root {
  --bg: #f7f1e8;
  --ink: #1c2744;
  --muted: #5c6578;
  --line: #e2d8c8;
  --navy: #24345c;
  --terra: #c25b2c;
  --paper: #fffdf8;
  --serif: Georgia, "Palatino Linotype", serif;
  --sans: "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
body.has-anchor { padding-bottom: 116px; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.mast { padding: 18px 28px 8px; border-bottom: 4px solid var(--navy); background: var(--paper); }
.issue { margin: 0; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--terra); }
.wordmark { display: block; font: 500 42px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.mast nav { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 0 12px; }
.mast nav a { color: var(--navy); text-decoration: none; font-size: 15px; }
.mast nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--terra); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 18px 70px; }
h1 { font: 500 clamp(34px, 5vw, 52px)/1.05 var(--serif); margin: 0 0 8px; }
h2 { font: 500 28px var(--serif); }
.lede { font-size: 19px; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.panel, .card { background: var(--paper); border: 1px solid var(--line); padding: 14px; }
.fields label { display: grid; gap: 4px; font-size: 14px; margin-bottom: 8px; }
.weekend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
input, select, textarea { font: 16px var(--sans); padding: 8px; border: 1px solid #d5cbbd; width: 100%; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
button, .button { background: var(--navy); color: #fff; border: 0; min-height: 44px; padding: 10px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { display: contents; }
.dow span, .day { text-align: center; font-size: 13px; }
.day { border: 0; min-height: 36px; background: #e7f6ec; cursor: default; }
.day.both-closed { background: #d9d6d0; }
.day.a-closed { background: #d5e2f5; }
.day.b-closed { background: #f8d7c6; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; margin: 8px 0; }
.sw { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.sw.open { background: #e7f6ec; border: 1px solid #b7d7c2; }
.sw.a { background: #d5e2f5; }
.sw.b { background: #f8d7c6; }
.sw.both { background: #d9d6d0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.card h2 { font-size: 24px; margin: 0 0 6px; }
.explain { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-top: 22px; }
.geo-example { background: #fff; border-left: 4px solid var(--terra); padding: 10px 14px; }
.geo-example dt { font-weight: 700; margin-top: 8px; }
footer { display: flex; flex-wrap: wrap; gap: 14px; padding: 22px 28px; background: var(--navy); color: #fff; }
footer a { color: #fff; }
.ad-slot { margin: 28px 0; }
.ad-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-pending .ad-reserved { min-height: 90px; border: 1px dashed #cfc3b2; display: grid; place-items: center; background: rgba(255,255,255,.55); }
.ad-pending .ad-rectangle .ad-reserved, .ad-pending .ad-sidebar .ad-reserved { min-height: 250px; }
.ad-pending .ad-inArticle .ad-reserved, .ad-pending .ad-multiplex .ad-reserved { min-height: 200px; }
.ad-pending .ad-inFeed .ad-reserved { min-height: 110px; }
.ads-live .ad-pending-note { display: none; }
.ad-anchor { position: fixed; left: 0; right: 0; bottom: 0; background: #fffdf8; border-top: 3px solid var(--navy); padding: 8px 48px 10px 14px; z-index: 20; }
.ad-dismiss { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cookie-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 16px; background: #efe6c8; }
.cookie-bar[hidden], .ad-anchor[hidden] { display: none; }
.contact-form { display: grid; gap: 10px; max-width: 560px; }
.reasons { padding-left: 18px; }
@media (max-width: 860px) { .layout, .explain { grid-template-columns: 1fr; } .wordmark { font-size: 32px; } }
@media print { .ad-slot, .ad-anchor, .cookie-bar, .mast, footer { display: none !important; } }

/* ad-paused: units stay in HTML comments until a real publisher ID is set. */
.rail:not(:has(.ad-slot)) { display: none; }
.explain:not(:has(.ad-slot)) { grid-template-columns: 1fr; }
