/* appt.now: paper, ink, mono numerals. Content takes the width of the screen; the map is one
   part of a page. One inverted block per page (the answer), one signage yellow (alerts). */
:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --ink: #121212;
  --ink-2: #55544f;
  --ink-3: #76746d;
  --hair: #e1dfd8;
  --rule: #cdcbc4;
  --water: #e3e6e8;
  --later: #bdbbb4;
  --accent: #ffcc00;
  /* One ink scale for "how much": light → dark, validated as an ordinal ramp. */
  --s1: #aaa8a1;
  --s2: #66645f;
  --s3: var(--ink);
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --edge: max(32px, calc((100% - 1176px) / 2)); /* side padding that centers a 1176px column */
  font: 15px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { padding: 0 var(--edge) 64px; }
a { color: inherit; }
i { font-style: normal; }
section { min-width: 0; }

/* ---- top bar: name, search, the main pages ---- */
.top { display: grid; grid-template-columns: auto minmax(200px, 400px) 1fr auto; align-items: center; gap: 12px 32px; padding: 13px var(--edge); border-bottom: 1px solid var(--hair); }
.mark { font: 500 16px var(--mono); text-decoration: none; }
.mark span { color: var(--ink-3); }
.main { display: flex; justify-content: flex-end; gap: 22px; font-size: 13.5px; white-space: nowrap; }
.main a { color: var(--ink-2); text-decoration: none; }
.main a:hover, .main a[aria-current] { color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.main .n { display: none; } /* the short label, for phones */
.end { display: flex; align-items: center; gap: 14px; }
.live { font: 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
/* the one button in the bar: alerts are something to do, the links beside it are places to look */
.get { padding: 4px 10px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.get:hover { background: var(--ink); color: var(--paper); }
.live::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; vertical-align: 1px;
  border-radius: 50%; background: var(--ink); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }

/* ---- search ---- */
.where { position: relative; display: flex; align-items: baseline; gap: 8px; padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.where label { font-size: 13.5px; color: var(--ink-2); }
#q { flex: 1; min-width: 0; padding: 0; border: 0; background: none; outline: none; font: 500 15px var(--sans); color: var(--ink); }
#q::placeholder { color: var(--ink-3); font-weight: 400; }
#locate { padding: 0 2px; border: 0; background: none; cursor: pointer; font: 11.5px var(--mono); color: var(--ink-2); white-space: nowrap; }
#locate:hover { color: var(--ink); }
.find { display: none; }
.hero .where { align-items: center; padding: 9px 9px 9px 12px; border: 1.5px solid var(--ink); }
.hero .find { display: block; margin-left: 6px; padding: 7px 16px; border: 0; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); cursor: pointer; }
#suggest {
  position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 8px 22px rgb(0 0 0 / 10%);
}
#suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 10px; text-decoration: none; }
#suggest a:hover, #suggest a.on { background: #eceae4; }
#suggest small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.radius { margin: 10px 0 0; font: 12px var(--mono); color: var(--ink-3); }
.radius a { margin: 0 3px; padding: 1px 2px; color: var(--ink-3); text-decoration: none; }
.radius a[aria-current] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }
.msg, .note { margin: 14px 0 0; color: var(--ink-2); }
.more { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; font-size: 13.5px; }
.more a { text-underline-offset: 3px; }

/* ---- page titles ---- */
h1 { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.center { padding-top: 22px; }
.center h1 { margin-top: 10px; }
.center h1 span { display: block; margin-top: 5px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.back { font: 12px var(--mono); color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); }
nav.back a { color: inherit; text-decoration: none; }
nav.back a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- the grid: sections side by side, as many as fit ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 40px; align-items: start; margin-top: 26px; }
/* a center page: three columns of stacked blocks, balanced by the server so none runs short */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; align-items: start; margin-top: 20px; }
.col { display: grid; gap: 30px; align-content: start; min-width: 0; }
.cell { min-width: 0; }
.stack { display: grid; gap: 30px; min-width: 0; }
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sec h3 { margin: 0; font: 600 13.5px var(--sans); }
.sec span { font: 12px var(--mono); color: var(--ink-2); text-align: right; }
.fine { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.fine a { text-underline-offset: 3px; }
.cols { columns: 3 300px; column-gap: 40px; margin-top: 28px; }
.cols .table { break-inside: avoid; margin: 0 0 28px; }
.one { max-width: 640px; margin-top: 26px; }
.prose { max-width: 720px; }

/* ---- the answer: the one inverted block on the page ---- */
.ans { --soft: #b4b2ab; padding: 15px 18px 16px; background: var(--ink); color: var(--paper); }
.lbl { margin: 0; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.ans .lbl { color: var(--soft); }
.big { margin: 0; font: 500 44px/1 var(--mono); letter-spacing: -0.045em; }
.ans .big { margin-top: 10px; font-size: 56px; }
.ans .big small { display: block; margin-top: 8px; font: 400 15px/1.3 var(--sans); letter-spacing: 0; color: var(--soft); }
.ans a { text-underline-offset: 3px; text-decoration-color: var(--soft); }

/* labeled facts: a short label on the left, the value on the right */
.facts { --line: var(--hair); margin: 0; border-top: 1px solid var(--line); }
.ans .facts { --line: #3b3a37; margin-top: 15px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts dt { color: var(--ink-2); white-space: nowrap; }
.ans .facts dt { color: var(--soft); }
.facts dd { min-width: 0; margin: 0; font-weight: 500; text-align: right; }
.nb { white-space: nowrap; } /* a fact that must not break in the middle */
.ans .big.long { font-size: 40px; } /* a date with its year */
/* the one action: book on CBP's own site */
.go { display: block; margin-top: 16px; padding: 11px 12px; background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 600; text-align: center; text-decoration: none; }
.go:hover { background: #fff; }
/* Alerts aren't built: one quiet line at the foot says so. Yellow is kept for a cancellation that is open now. */
/* ways around a wait: a label, a line of live numbers, and at most a quieter line or two under it */
.ways { margin-top: 24px; }
.sec span a { text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.routes { margin: 0; }
.routes div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.routes dt { color: var(--ink-2); white-space: nowrap; }
.routes dd { min-width: 0; margin: 0; font-weight: 500; }
.routes dd a { text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.routes small { display: block; margin-top: 3px; font: 400 12.5px/1.4 var(--sans); color: var(--ink-2); }
.routes small a { color: inherit; }

/* a second button, outlined: something to do other than book */
.go.line { margin-top: 14px; background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.go.line:hover { background: var(--hair); }
.go.line.small { display: inline-block; margin-top: 0; padding: 8px 14px; border: 0; font: 500 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.go.dark { display: inline-block; margin-top: 0; padding: 11px 22px; border: 0; background: var(--ink); color: var(--paper); font-family: inherit; cursor: pointer; }
.go.dark:hover { background: #2a2a28; }
/* the alerts form: a label column and a value column, one column on a phone */
.alert { display: grid; gap: 22px; max-width: 640px; margin-top: 26px; }
.alert .f { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; align-items: baseline; margin: 0; padding: 0; border: 0; min-width: 0; }
.alert .l { padding: 0; font-weight: 600; font-size: 14px; }
.alert legend.l { float: left; width: 120px; }
.alert .v { margin: 0; font-family: var(--mono); }
.alert input[type="email"], .alert input[type="date"], .alert input[type="search"], .alert select { box-sizing: border-box; width: 100%; max-width: 340px; padding: 9px 10px; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: 16px var(--sans); }
.alert .fine { margin-top: 6px; }
.cks { display: grid; gap: 0; min-width: 0; }
.ck { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 14px; cursor: pointer; }
.ck input { margin: 0; accent-color: var(--ink); }
.ck span { font-weight: 500; }
.ck small { font: 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.pick { margin-top: 10px; }
.pick summary { cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pick .filter { margin: 10px 0 4px; }
.pick .all { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--hair); }
.msg.ok { color: var(--ink); font-weight: 500; }
.alert.link { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }
.alert .row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.alert .row2 input { flex: 1 1 220px; }
.prose form { margin-top: 18px; }

.soon { margin: 36px 0 0; font-size: 13px; color: var(--ink-3); }
.charts { display: grid; gap: 16px; margin-top: 16px; }

/* ---- one number and one bar; a row of labeled figures ---- */
.pic { margin-top: 22px; }
.pic .big small { margin-left: 12px; font: 400 16px var(--sans); letter-spacing: 0; color: var(--ink-2); }
.split { display: flex; gap: 2px; height: 10px; max-width: 520px; margin-top: 12px; }
.split i { display: block; min-width: 3px; }
.split .week { background: var(--ink); }
.split .month { box-shadow: inset 0 0 0 1.5px var(--ink); }
.split .later { background: var(--later); }
.key { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.key b { font: 500 12.5px var(--mono); color: var(--ink); }
.k { display: inline-block; border-radius: 50%; margin-left: 9px; }
.k:first-child { margin-left: 0; }
.k.week { width: 8px; height: 8px; background: var(--ink); }
.k.month { width: 7px; height: 7px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.k.later { width: 5px; height: 5px; background: var(--later); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 18px; }
.fig { margin: 0; font: 500 18px/1.1 var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.cap { margin: 4px 0 0; max-width: 24ch; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }

/* ---- home ---- */
.home { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 40px; align-items: start; padding-top: 36px; }
.hero { grid-column: span 5; }
.mapwrap { grid-column: span 7; }
.home .list { grid-column: span 4; }
.hero h1 { font-size: 40px; }
.lede { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.hero .where { margin-top: 24px; }
.hero #q { font-size: 19px; }
.hero .table { margin-top: 20px; }

/* ---- the map: shown only where a page leaves a slot for it ---- */
#map { display: none; position: relative; background: var(--paper); }
.mapslot { height: 440px; outline: 1px solid var(--hair); }
.mapslot.small { height: 300px; }
.mapnote { margin: 7px 0 2px; min-height: 1.4em; font: 11.5px var(--mono); color: var(--ink-2); }
.mapslot #map { display: block; height: 100%; }
.maplibregl-popup-content {
  padding: 6px 9px; border-radius: 0; background: var(--paper); color: var(--ink);
  font: 12.5px/1.4 var(--sans); box-shadow: 0 0 0 1px var(--hair), 0 6px 18px rgb(0 0 0 / 8%);
}
.maplibregl-popup-content .m { font: 11.5px var(--mono); color: var(--ink-2); }
.maplibregl-popup-tip { display: none; }
.maplibregl-ctrl-group { border-radius: 0 !important; box-shadow: 0 0 0 1px var(--hair) !important; }

/* ---- tables ---- */
.thead, .row { display: grid; grid-template-columns: 1fr 28px 64px 92px; gap: 8px; align-items: baseline; }
.thead.two, .row.two { grid-template-columns: 1fr 96px; }
.thead.two.wide, .row.two.wide { grid-template-columns: minmax(0, 1fr) auto; }
.row.near { grid-template-columns: 1fr 52px 70px; }
.thead { padding-bottom: 5px; border-bottom: 1px solid var(--ink); }
.thead span { margin: 0; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
figcaption { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.thead span { text-align: right; }
.thead span:first-child { font: 600 13.5px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); text-align: left; }
.thead a { text-decoration: none; }
.thead a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { break-inside: avoid; }
.rows.cols2 { columns: 2 320px; column-gap: 40px; }
.rows.cols3 { columns: 3 300px; column-gap: 40px; }
.row { padding: 7px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
a.row:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.nm { font-size: 14px; font-weight: 500; line-height: 1.3; }
.nm small { margin-left: 2px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); white-space: nowrap; }
.nm em { display: block; margin-top: 2px; font: 400 12px var(--sans); font-style: normal; color: var(--ink-3); }
.row.two.wide .nm { min-width: 0; }
.row.two.wide .nm em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c { font: 13px var(--mono); text-align: right; white-space: nowrap; }
/* the ranking: a wide row whose last four cells fold into one labeled line on narrow screens */
.rk { display: inline-block; min-width: 22px; font: 500 12px var(--mono); color: var(--ink-3); }
.thead.hard, .row.hard { grid-template-columns: minmax(0, 1fr) 56px 64px 112px 70px 360px 74px; gap: 14px; }
.x { display: contents; }
.thead .t, .c.t { text-align: left; }
.c.t { font: 13px var(--sans); overflow: hidden; text-overflow: ellipsis; } /* words, not numbers */
.rank { margin-top: 28px; }
.row.hard .nm { padding-left: 22px; text-indent: -22px; }
.row.hard .rk { text-indent: 0; }
/* the guide: the four ways at a glance, then each one, two across */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; list-style: none; margin: 22px 0 0; padding: 0; }
.steps a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 3px 0; padding: 10px 0 11px; border-top: 2px solid var(--ink); text-decoration: none; }
.steps a:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.steps .c { grid-column: 2; text-align: left; color: var(--ink-2); }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; margin-top: 28px; }
.way { display: grid; gap: 14px; align-content: start; min-width: 0; }
.way .sec { margin-bottom: 0; }
.way .sec h3 { font-size: 16px; }
.way .stats { margin-top: 0; }
.way .cap a { color: inherit; text-underline-offset: 3px; }
.how { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.how a { text-underline-offset: 3px; }
.c.dim { color: var(--ink-3); }
mark { padding: 1px 4px; background: color-mix(in srgb, var(--accent) 50%, var(--paper)); color: inherit; font-weight: 500; } /* a cancellation that is open right now */

/* ---- calendar: weeks are rows, weekdays are columns ---- */
.cal { display: grid; gap: 2px; }
.wk { display: grid; grid-template-columns: 46px repeat(7, 1fr); gap: 2px; align-items: center; }
.wk > span { font: 10px var(--mono); color: var(--ink-3); }
.wk.head b { font: 500 10px var(--mono); color: var(--ink-3); text-align: center; }
.wk i { display: block; height: 22px; font: 11px/22px var(--mono); text-align: center; border-radius: 2px; }
.wk i.past { visibility: hidden; }
.wk i.off { color: var(--later); }
.wk i.full { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); }
.wk i.o1 { background: var(--s1); }
.wk i.o2 { background: var(--s2); color: var(--paper); }
.wk i.o3 { background: #45433f; color: var(--paper); } /* not full black: that belongs to the answer block */
/* the daily history uses the map's three marks: this week, this month, later */
.wk i.h7 { background: var(--ink); color: var(--paper); }
.wk i.h30 { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wk i.hl { background: var(--later); }
.wk i.hn { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hair); }
.wk i.today { text-decoration: underline; text-underline-offset: 3px; }
.wk i[data-r]:hover { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.gap { margin: 3px 0 3px 48px; padding: 3px 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); font: 10.5px var(--mono); color: var(--ink-3); text-align: center; }
.read { margin: 8px 0 0; min-height: 1.45em; font: 12px var(--mono); }
.lg { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); }
.lg i { width: 10px; height: 10px; border-radius: 2px; }
.lg .full { box-shadow: inset 0 0 0 1px var(--rule); }
.lg .o1 { margin-left: 10px; background: var(--s1); }
.lg .o2 { background: var(--s2); }
.lg .o3 { background: #45433f; }
.lg .h7 { background: var(--ink); }
.lg .h30 { margin-left: 10px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.lg .hl { margin-left: 10px; background: var(--later); }
.lg .hn { margin-left: 10px; box-shadow: inset 0 0 0 1px var(--rule); }

/* ---- bars: one per day, or per bucket ---- */
figure { margin: 0; }
figcaption { margin-bottom: 4px; }
.bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; height: 52px; border-bottom: 1px solid var(--ink); }
.bars i { height: max(var(--h), 1px); background: var(--ink); border-radius: 1.5px 1.5px 0 0; }
.bars i.z { background: var(--rule); }
.bars i.part { min-height: 3px; background: none; box-shadow: inset 0 0 0 1.5px var(--ink); } /* a day we only partly watched */
.bars i.part.z { box-shadow: inset 0 0 0 1px var(--rule); }
.bars i.none { height: 0; background: none; }
.ticks { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 3px; font: 10px var(--mono); color: var(--ink-3); }
.ticks.mid { text-align: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pair .bars { height: 40px; }

/* ---- when they appear: weekday rows, hour columns ---- */
.heat { display: grid; gap: 2px; }
.hr { display: grid; grid-template-columns: 30px repeat(24, 1fr); gap: 2px; align-items: center; }
.hr.head { grid-template-columns: 30px repeat(4, 1fr); }
.hr > span, .hr.head b { font: 10px var(--mono); font-weight: 400; color: var(--ink-3); }
.hr i { display: block; aspect-ratio: 1; border-radius: 2px; }
.hr i.u { background: radial-gradient(circle, var(--rule) 1px, transparent 1.5px); } /* not watched yet */
.hr i.z { box-shadow: inset 0 0 0 1px var(--hair); }
.hr i.l1 { background: var(--s1); }
.hr i.l2 { background: var(--s2); }
.hr i.l3 { background: var(--s3); }
.log { list-style: none; margin: 4px 0 0; padding: 0; font: 11.5px var(--mono); color: var(--ink-2); }

/* ---- hours, the place, CBP's own words ---- */
.hours { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hours th { width: 78px; padding: 3px 0; font: 500 13px var(--mono); text-align: left; vertical-align: top; white-space: nowrap; }
.hours th small { display: block; font: 10px var(--mono); color: var(--ink-3); }
.hours td { padding: 3px 0 3px 10px; vertical-align: top; }
.hours td:nth-child(2) { font: 13px var(--mono); white-space: nowrap; }
.hours td:last-child { color: var(--ink-2); }
.hours .off th, .hours .off td { color: var(--ink-3); font-weight: 400; }
.hours.dated th { width: 96px; }
.addr { margin: 0; font-size: 14px; line-height: 1.45; }
.addr a { margin-left: 6px; font-size: 12.5px; color: var(--ink-2); text-underline-offset: 3px; }
.cbp { margin: 8px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--rule); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.cbp span { display: block; margin-bottom: 2px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
.fold summary { cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold[open] summary { display: none; }

/* ---- the page in sentences, under its own heading ---- */
.summary { max-width: 820px; margin-top: 52px; }
.sum { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sum li { margin: 5px 0; }
.sum time { white-space: nowrap; }

/* ---- the two text pages ---- */
.lead { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
.prose p { margin: 12px 0 0; line-height: 1.55; }
.prose section { margin-top: 30px; }
.prose section p:first-of-type { margin-top: 0; }
.prose a { text-underline-offset: 3px; }
.defs { margin: 0; }
.defs dt { margin-top: 10px; font-weight: 600; }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: 1px 0 0; line-height: 1.5; color: var(--ink-2); }

/* ---- footer ---- */
.foot { margin-top: auto; padding: 22px var(--edge) 26px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--ink-3); }
.foot p { margin: 4px 0 0; }
.foot .nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; font-size: 13px; }
.foot .nav a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---- medium screens: two columns ---- */
@media (max-width: 1100px) {
  :root { --edge: 28px; }
  .top { grid-template-columns: auto minmax(200px, 1fr) auto; }
  .main { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  /* two columns: the answer's and the calendar's stacks side by side, the third stack flowing in two columns under them */
  .cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
  .col:nth-child(3) { grid-column: 1 / -1; display: block; columns: 2; column-gap: 36px; }
  .col:nth-child(3) .cell { break-inside: avoid; margin-bottom: 30px; }
  .hero, .mapwrap { grid-column: span 6; }
  .home .list { grid-column: span 6; }
}
@media (min-width: 761px) {
  .span2 { grid-column: span 2; }
}
@media (max-width: 1180px) {
  .thead.hard, .row.hard { grid-template-columns: minmax(0, 1fr) 62px 56px; gap: 4px 8px; }
  .thead.hard span:nth-child(n + 4) { display: none; }
  .x { display: flex; flex-wrap: wrap; gap: 2px 14px; grid-column: 1 / -1; padding-left: 22px; }
  .x .c { font: 12px var(--sans); color: var(--ink-2); text-align: left; white-space: normal; overflow: visible; }
  .x .c::before { content: attr(data-l) " "; color: var(--ink-3); }
  .x .dim { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- phones: one column, the answer first; the map follows the first list ---- */
@media (max-width: 760px) {
  :root { --edge: 16px; }
  .top { grid-template-columns: 1fr auto; gap: 10px 12px; padding-top: 12px; padding-bottom: 10px; }
  .top .where { grid-column: 1 / -1; grid-row: 2; }
  .main { grid-row: 3; justify-content: space-between; gap: 10px; font-size: 13px; }
  .main .w { display: none; }
  .main .n { display: inline; }
  .top > span:empty { display: none; }
  .end { gap: 10px; }
  .live:has(+ .get) .cw { display: none; } /* "1 min ago" beside the button */
  h1 { font-size: 24px; }
  .hero h1 { font-size: 30px; }
  .center { padding-top: 16px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .cols3 { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .col, .col:nth-child(3) { display: contents; }
  .cell, .col:nth-child(3) .cell { order: var(--o); margin-bottom: 0; }
  .big { font-size: 40px; }
  .ans .big { font-size: 48px; }
  .pic .big small { display: block; margin: 7px 0 0; font-size: 15px; }
  .home { display: flex; flex-direction: column; align-items: stretch; padding-top: 24px; gap: 26px; }
  .hero #q { font-size: 16px; }
  .home .mapwrap { order: 2; margin: 0 calc(-1 * var(--edge)); }
  .home .mapwrap .key { padding: 0 var(--edge); }
  .home .list { order: 3; }
  .home .mapwrap + .list { order: 1; }
  .home.results .mapwrap { order: 0; }
  .mapslot { height: 46vh; }
  .mapslot.small { height: 240px; }
  .thead, .row { grid-template-columns: 1fr 26px 60px 88px; gap: 6px; }
  .hr { grid-template-columns: 28px repeat(24, 1fr); gap: 1.5px; }
  .hr.head { grid-template-columns: 28px repeat(4, 1fr); }
  .summary { margin-top: 40px; }
  .alert .f { grid-template-columns: 1fr; }
  .alert legend.l { float: none; width: auto; margin-bottom: 6px; }
  .alert input[type="email"], .alert input[type="date"], .alert input[type="search"], .alert select { max-width: none; }
  .guide { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; margin-top: 16px; border-bottom: 1px solid var(--ink); }
  .steps a { grid-template-columns: 22px minmax(0, 1fr) auto; padding: 8px 0; border-top: 1px solid var(--hair); }
  .steps li:first-child a { border-top: 2px solid var(--ink); }
  .steps .c { grid-column: 3; }
  .thead.hard, .row.hard { grid-template-columns: minmax(0, 1fr) 58px 70px; }
}
