/* Hartford Today (V3) — a daily programme sheet.
   Modelled on the information design of a real cruise daily: flat colour bands,
   heavy caps section heads, ruled rows, compact right-aligned times, no kitsch.
   Mobile-first, light + dark, printable. */

:root {
  --page: #eef2f1;
  --paper: #ffffff;
  --ink: #14202b;
  --ink-2: #40525f;
  --muted: #6b7d8c;
  --rule: #d6dee2;
  --rule-strong: #b4c1c9;
  --band: #bfe3e0;          /* masthead band */
  --strip: #ffe27a;         /* facts strip */
  --strip-ink: #3a2f00;
  --accent: #0b6b8f;
  --now: #c8362a;
  --next: #9a6b00;
  --box: #f6f9fa;
  --radius: 3px;
  --wrap: 1150px;
}

[data-theme="dark"] {
  --page: #070f13;
  --paper: #0f1b21;
  --ink: #e9f2f5;
  --ink-2: #b6c8d1;
  --muted: #8298a4;
  --rule: #22343d;
  --rule-strong: #354a55;
  --band: #10333a;
  --strip: #4a3d05;
  --strip-ink: #ffe27a;
  --accent: #61c6e8;
  --now: #ff8574;
  --next: #ffc857;
  --box: #13232b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: .5rem .8rem; z-index: 9; }
.skip:focus { left: 0; }

/* --------------------------------------------------------------- masthead */
.mast { background: var(--band); border-bottom: 3px solid var(--ink); }
.mast__inner, .strip__inner, .sheet, .foot { max-width: var(--wrap); margin: 0 auto; }
.mast__inner { padding: 1.1rem 1rem .8rem; }

.mast__name {
  font-size: clamp(2.2rem, 10vw, 4.6rem);
  font-weight: 200;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: .95;
}
.mast__sub {
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* facts strip — label/value pairs, exactly as a ship's daily prints them */
.strip { background: var(--strip); color: var(--strip-ink); border-bottom: 3px solid var(--ink); }
.strip__inner {
  display: flex; flex-wrap: wrap; gap: .3rem 1.4rem;
  padding: .5rem 1rem;
  font-size: .8rem; letter-spacing: .02em;
}
.strip__pair { display: flex; gap: .45rem; align-items: baseline; }
.strip__pair b { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.strip__pair span { font-weight: 600; }

/* ------------------------------------------------------------ weather strip (V1) */
/* Copied verbatim from the Hartford Daily Brief's src/build/static/style.css — the strip
   the owner asked for exactly. The only addition is the block of custom properties at the
   top: V1's rules read --line / --ink / --ink-soft / --serif-display, and scoping V1's
   values here keeps every rule below byte-identical while leaving V3's own palette alone. */
.weather-strip {
  --line: #e6dcc7;
  --ink: #221d17;
  --ink-soft: #5f554a;
  --serif-display: "Fraunces", Georgia, serif;

  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.3rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65rem 1rem; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(61, 90, 128, 0.07), rgba(47, 79, 63, 0.07));
  font-size: 0.88rem;
}
.weather-strip__now { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.weather-strip__temp { font-family: var(--serif-display); font-size: 1.35rem; font-weight: 700; }
.weather-strip__short { color: var(--ink); }
.weather-strip__day { color: var(--ink-soft); font-style: italic; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.weather-strip__hours { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.weather-hour { display: flex; flex-direction: column; align-items: center; font-size: 0.66rem; color: var(--ink-soft); }
.weather-hour b { font-size: 0.82rem; color: var(--ink); }
.weather-hour i { font-style: normal; color: #3d5a80; font-size: 0.62rem; }
.weather-strip__sun { color: var(--ink-soft); }
.weather-strip__alert { color: #8b1a1a; font-weight: 600; background: #fbeaea; border-radius: 6px; padding: 0.2rem 0.5rem; }

/* V1's border is drawn for V1's paper. Its #e6dcc7 line is a warm hairline sitting on the
   Daily Brief's cream (#faf6ee); on this sheet's cool #eef2f1 the two are within a couple of
   percent of each other and the border disappears. So V1's own paper goes under V1's own
   rule — the palette is still V1's, it just has the surface it was drawn for. The tinted
   gradient above still paints over it. */
.weather-strip { background-color: #fffdf7; }

/* V1 has no dark theme to copy from, so only the four values above are re-pointed for
   V3's dark sheet; every rule stays as V1 wrote it. */
[data-theme="dark"] .weather-strip {
  --line: #2a3a45;
  --ink: #e9f2f5;
  --ink-soft: #a9bcc6;
  background-color: #0f1b21;   /* V3's paper, since V1 has no dark surface to borrow */
}
[data-theme="dark"] .weather-strip__alert { color: #ffb4ab; background: #3a1d1b; }
[data-theme="dark"] .weather-hour i { color: #7fb2e0; }

/* ------------------------------------------------------------------ sheet */
.sheet { padding: 1.1rem 1rem 0; }

.lede { margin: 0 0 1rem; }
.lede h1 {
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.lede p { margin: .4rem 0 0; max-width: 62ch; color: var(--ink-2); font-size: .97rem; }

.datecard {
  margin: .9rem 0 1.2rem;
  border: 2px solid var(--ink);
  background: var(--strip);
  color: var(--strip-ink);
  padding: .5rem .7rem;
  display: inline-block;
  min-width: 180px;
}
.datecard b { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.datecard .datecard__day { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
.datecard .datecard__date { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* section heads: heavy caps over a rule, like the printed daily */
.sec { margin: 0 0 1.4rem; }
.sec > h2 {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
}
.sec > h2 .count { font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.sec__sub { margin: .35rem 0 .5rem; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------- timetable (the centre) */
.tt { margin: 0; padding: 0; list-style: none; }
.tt__row {
  display: grid;
  grid-template-columns: 74px 1fr;
  grid-template-areas: "time what" "time where" "time act";
  gap: 0 .85rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}
.tt__row:last-child { border-bottom: 0; }
.tt__time {
  grid-area: time;
  align-self: start;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  padding-top: .1rem;
  white-space: nowrap;
}
.tt__time .range { display: block; font-weight: 600; color: var(--ink-2); font-size: .76rem; }
/* flags get their own line. `:not([hidden])` is load-bearing — a plain `display: block`
   here would beat the UA's `[hidden] { display: none }` and un-hide every flag. */
.tt__time .flag:not([hidden]) { display: block; }
.tt__what-col { grid-area: what; }
.tt__act { grid-area: act; }
.tt__where {
  grid-area: where;
  margin: .35rem 0 0;
  display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline;
  font-size: .82rem; color: var(--ink-2);
}
.tt__venue { font-weight: 600; }
.tt__cost { font-weight: 700; }
.tt__addr { color: var(--muted); font-size: .78rem; }
.tt__what { font-size: 1rem; font-weight: 700; letter-spacing: -.005em; }
.tt__what a { color: inherit; text-decoration: none; }
.tt__what a:hover { text-decoration: underline; }
.tt__note { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
.tt__act { margin: .3rem 0 0; font-size: .8rem; font-weight: 700; display: flex; gap: .7rem; flex-wrap: wrap; }
.tt__act a { text-decoration: none; }
.tt__act .via { font-weight: 400; color: var(--muted); }

.flag { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--next); }
.tt__row.is-now .flag { color: var(--now); }
.tt__row.is-now .tt__what::after { content: ""; }
.tt__row.is-now { border-left: 3px solid var(--now); padding-left: .5rem; margin-left: -.5rem; }
.tt__row.is-next { border-left: 3px solid var(--next); padding-left: .5rem; margin-left: -.5rem; }
.tt__row.is-past { opacity: .55; }
/* the "earlier today" stamp: muted, and deliberately not an alarm — the row has
   happened, it hasn't been cancelled. The sheet keeps the whole day on purpose.
   It may break across two lines: it is wider than the 104px time column, and letting
   it wrap is better than letting it spill over the description beside it. */
.tt__row.is-past .flag--past {
  color: var(--muted); letter-spacing: .08em; white-space: normal; max-width: 6rem;
}

.dress {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.dress--outdoor { color: var(--accent); }
.dress__ico { width: 12px; height: 12px; fill: currentColor; flex: 0 0 auto; }
/* an emoji rather than a glyph, so it inherits no fill and sits on the text baseline */
.dress__ico--wx { width: auto; height: auto; font-size: .95rem; line-height: 1; }
.dress__wx { font-style: normal; font-weight: 700; opacity: .85; }

.chip { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chip--free { color: #0a7d4f; }
[data-theme="dark"] .chip--free { color: #5fd39b; }

/* ---------------------------------------------------------- sidebar lists */
.cols { display: grid; gap: 1.4rem; }

.list { margin: 0; padding: 0; list-style: none; }
.list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 0 .7rem;
  padding: .42rem 0; border-bottom: 1px solid var(--rule);
  font-size: .9rem;
}
.list li:last-child { border-bottom: 0; }
.list time, .list .t { font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 700; color: var(--ink-2); padding-top: .12rem; }
.list .w { font-weight: 600; }
.list .v { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.list .p { font-size: .78rem; font-weight: 700; color: var(--ink-2); }

/* boxes for practical notices */
.notice { border: 1px solid var(--rule-strong); background: var(--box); padding: .7rem .8rem; font-size: .86rem; margin-top: .6rem; }
.notice h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: .3rem; }
.notice p { margin: 0; color: var(--ink-2); }
.notice a { font-weight: 600; }

.notes { margin: 0; padding: 0; list-style: none; }
.notes li { padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.notes li:last-child { border-bottom: 0; }
.notes p { margin: 0 0 .2rem; }
.notes a { font-size: .78rem; font-weight: 700; }

.places { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem .9rem;
          grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.places li { border-left: 3px solid var(--rule-strong); padding-left: .7rem; }
.places b { display: block; font-size: .93rem; }
.places span { display: block; font-size: .84rem; color: var(--ink-2); }
.places .meta { margin-top: .15rem; font-size: .78rem; color: var(--muted); }

.tomorrow { margin: 0; padding: 0; list-style: none; }
.tomorrow li { padding: .3rem 0; font-size: .92rem; border-bottom: 1px solid var(--rule); }
.tomorrow li:last-child { border-bottom: 0; }
.tomorrow .v { color: var(--muted); font-size: .84rem; }

/* ------------------------------------------------------------------ footer */
.foot {
  margin-top: 1.6rem;
  border-top: 3px solid var(--ink);
  padding: .9rem 1rem 3rem;
  font-size: .78rem;
  color: var(--muted);
}
.foot p { margin: 0 0 .45rem; max-width: 88ch; }
.foot b { color: var(--ink-2); }

.themebtn {
  position: fixed; right: .8rem; bottom: .8rem; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  font-size: 1rem; cursor: pointer;
}
.themebtn:hover { color: var(--accent); }

.skipnav { display: flex; flex-wrap: nowrap; gap: .1rem; overflow-x: auto; padding: .45rem .8rem; background: var(--paper); border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.skipnav::-webkit-scrollbar { display: none; }
.skipnav a {
  flex: 0 0 auto; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: .25rem .55rem; white-space: nowrap;
}
.skipnav a:hover { color: var(--accent); }

/* -------------------------------------------------------------- responsive */
@media (min-width: 700px) {
  .sheet { padding-top: 1.5rem; }
  .tt__row { grid-template-columns: 92px 1fr; padding: .55rem 0; }
  .list li { grid-template-columns: 72px 1fr; }
  .lede { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: start; }
  .datecard { margin: 0; }
}

@media (min-width: 860px) {
  /* the Daily Planner pattern: item | time | place, so the venue scans like a column */
  .tt__row { grid-template-columns: 84px 1fr 196px;
             grid-template-areas: "time what where" "time act where"; }
  .tt__where {
    flex-direction: column; align-items: flex-start; gap: .22rem;
    margin: 0; padding-left: .85rem; border-left: 1px solid var(--rule);
  }
}

@media (min-width: 960px) {
  /* The events are the page; the rail is reference. A fixed slim strip (not a
     1fr share) gives the programme ~800px of the 1118px sheet instead of 658px,
     which is what makes the three-column rows readable. */
  .cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 1.6rem; align-items: start; }
  .cols--even { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  /* tighter time gutter so the narrower rail keeps two lines of headline room */
  .rail .list li { grid-template-columns: 58px 1fr; }
  .rail .sec > h2 { font-size: .78rem; letter-spacing: .13em; }
  /* keep the third column at this width too: it was falling back to two tracks
     while the areas still named three, which only *looked* right because the
     `where` area landed on an implicit track. */
  .tt__row { grid-template-columns: 104px 1fr 210px;
             grid-template-areas: "time what where" "time act where"; }
}

@media print {
  .skipnav, .themebtn { display: none; }
  body { background: #fff; }
  .cols { grid-template-columns: 1.5fr 1fr; }
}

/* ==========================================================================
   v0.5 — the live hour block, the map, emergency numbers, "you have to try
   this", and the care directory. Same sheet: flat panels, heavy rules, caps
   heads, tabular numerals.
   ========================================================================== */

.strip__pair--clock span { font-variant-numeric: tabular-nums; }

/* ------------------------------------------- trending: plan your day around */
.picks { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.pick {
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--now);
  background: var(--paper);
  padding: .55rem .75rem .65rem;
}
.pick__flag {
  margin: 0; font-size: .66rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--now);
}
.pick__title { margin: .18rem 0 0; font-size: 1.02rem; font-weight: 800; letter-spacing: -.005em; }
.pick__title a { color: inherit; text-decoration: none; }
.pick__title a:hover { text-decoration: underline; }
.pick__meta {
  margin: .28rem 0 0; font-size: .78rem; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pick__note { margin: .32rem 0 0; font-size: .86rem; color: var(--ink-2); }
.pick__why {
  margin: .35rem 0 0; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------- on right now */
.now {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: .6rem .8rem .55rem;
}
.now__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  border-bottom: 2px solid var(--ink); padding-bottom: .25rem;
}
.now__head > h2 { border: 0; padding: 0; }
.now__clock {
  margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.now__clock b { color: var(--ink); font-variant-numeric: tabular-nums; }
.nowlist { margin: .15rem 0 0; padding: 0; list-style: none; }
.nowrow {
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: .4rem 0; border-bottom: 1px solid var(--rule);
}
.nowrow:last-child { border-bottom: 0; }
.nowrow__t {
  font-variant-numeric: tabular-nums; font-size: .76rem; font-weight: 700;
  color: var(--ink-2); white-space: nowrap;
}
.nowrow__w { font-size: .92rem; }
.nowrow__w a { color: inherit; font-weight: 700; text-decoration: none; }
.nowrow__w a:hover { text-decoration: underline; }
.nowrow__v { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.nowrow__tag {
  grid-column: 2; font-size: .64rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--now);
}
.nowrow.is-free { border-left: 3px solid #1f7a4d; padding-left: .5rem; margin-left: -.5rem; }
.nowlist__empty { margin: .5rem 0 .2rem; font-size: .88rem; color: var(--ink-2); }
.morebtn {
  margin: .5rem 0 .1rem; padding: .35rem .7rem;
  border: 1px solid var(--rule-strong); background: var(--box); color: var(--ink);
  font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
}
.morebtn:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ map */
.hood-map { height: 320px; border: 1px solid var(--rule-strong); background: var(--box); }
.map-legend {
  display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center;
  margin: .5rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2);
}
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .32rem; }
.mapbtn {
  margin-left: auto; padding: .25rem .55rem;
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  font: inherit; font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
}
.mapbtn:hover { color: var(--accent); border-color: var(--accent); }
.mapbtn[disabled] { opacity: .6; cursor: default; }
.fine { margin: .5rem 0 0; font-size: .74rem; color: var(--muted); max-width: 88ch; }
.leaflet-container { font-family: inherit; }

/* ------------------------------------------------ emergency numbers (rail) */
/* Compact on purpose: six one-line entries in two columns. It is a panel you hope
   never to need, not a section that should own a third of the page. The full
   wording of every number rides in the link's title. */
.help { border: 2px solid var(--now); background: var(--paper); padding: .35rem .5rem .35rem; }
.help > h2 { border-bottom-color: var(--now); font-size: .72rem; padding-bottom: .2rem; }
.help__list {
  margin: .28rem 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .05rem .8rem;
}
.help__row a { display: block; padding: .07rem 0; text-decoration: none; color: inherit; }
.help__row a:hover .help__num { text-decoration: underline; }
.help__label {
  display: block; font-size: .59rem; line-height: 1.2; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.help__num {
  display: block; font-size: .82rem; line-height: 1.2; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.help__row--first .help__label { color: var(--ink); }
.help__row--first .help__num { color: var(--now); font-size: .95rem; }
/* hospital entries share the grid with the service numbers — same shape, no
   emphasis, so 911 still wins the eye */
.help__row--er .help__label { color: var(--ink-2); }

/* ------------------------------------------------------- you have to try */
.tries { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.try {
  border: 1px solid var(--rule-strong);
  border-left: 4px solid #a8730a;
  background: var(--paper);
  padding: .55rem .75rem .6rem;
}
/* the card in first position is the featured one — mark it, don't decorate it */
.try--lead { border-left-color: var(--now); border-top: 3px solid var(--now); }
.try--lead .try__place { font-size: 1.1rem; }
.try__place { font-size: 1rem; font-weight: 800; }
.try__place a { color: inherit; text-decoration: none; }
.try__place a:hover { text-decoration: underline; }
.try__dish { margin: .25rem 0 0; font-size: .9rem; }
.try--lead .try__dish { font-size: .98rem; }
.try__why { margin: .3rem 0 0; font-size: .85rem; color: var(--ink-2); }
.try__today { margin: .3rem 0 0; font-size: .8rem; font-weight: 700; color: var(--now); }
.try__where, .try__src { margin: .3rem 0 0; font-size: .75rem; color: var(--muted); }

/* -------------------------------------------------- care (removed 2026-09-11) */
/* The "Care when you need it" directory (clinics / pharmacies / ERs at the foot of
   the page) was removed at the owner's request. Its emergency rooms now render as
   ordinary entries in the .help panel above; the data still lives in
   data/geo/care.json for when it is wanted back. */

/* the map legend swatch for the "you are here" marker */
.map-legend i.lg-here { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(192, 57, 43, .55); }

/* --- "You are here": the map's orientation marker ------------------------- */
/* A ringed dot that pulses. Deliberately NOT the same shape as the event pins (flat
   circles) — this is a fixed point of reference, not a happening.

   Near-black rather than red: at city zoom Hartford's roads render red/pink and a red
   dot disappears into them. The pulse ring is the accent red, which reads against the
   tiles, the pins and the boundary fill alike. */
.here { background: none; border: 0; }
.here__dot {
  display: block; width: 15px; height: 15px; border-radius: 50%;
  background: #111417; border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 0 0 4px rgba(192, 57, 43, .28);
  animation: herePulse 2.6s ease-out infinite;
}
@keyframes herePulse {
  0%   { box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 0 2px rgba(192,57,43,.50); }
  70%  { box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 0 14px rgba(192,57,43,0); }
  100% { box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 0 2px rgba(192,57,43,0); }
}
@media (prefers-reduced-motion: reduce) { .here__dot { animation: none; } }

/* the permanent label beside it — solid, not the pale default tooltip, or it gets
   lost among the pins. Kept to two short lines on purpose. */
.leaflet-tooltip.here__tip {
  background: var(--paper); color: var(--ink); border: 1.5px solid #111417;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2); border-radius: 2px; opacity: 1;
  font-size: .68rem; line-height: 1.2; padding: .2rem .4rem; white-space: nowrap;
}
.leaflet-tooltip-right.here__tip::before { border-right-color: #111417; }
.leaflet-tooltip-left.here__tip::before { border-left-color: #111417; }
.leaflet-tooltip-top.here__tip::before { border-top-color: #111417; }
.here__tip b { display: block; font-size: .74rem; }
.here__note { color: var(--muted); }

/* a pin click flashes the matching programme line */
.tt__row.row-flash { background: var(--strip); outline: 2px solid var(--ink); }

@media (max-width: 560px) {
  /* the clock and the count fight over the same line on a phone */
  .now__head { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .now__head > h2 { width: 100%; }
  /* One column: time, then title, then the tag. Every child has to be placed in
     column 1 — `.nowrow__tag { grid-column: 2 }` otherwise conjures an implicit
     second track and puts the time *beside* the title, which reads as
     "10:00a-2:00pFarmers Market". */
  .nowrow { grid-template-columns: 1fr; }
  .nowrow > * { grid-column: 1; }
}

@media (min-width: 561px) {
  .nowrow { grid-template-columns: 104px 1fr; gap: 0 .7rem; align-items: baseline; }
}

@media (min-width: 700px) {
  /* auto-fit, not a fixed 3: late in the day only one or two picks may still qualify,
     and a fixed three-column grid would leave the strip half empty */
  .picks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  /* auto-fit, not a fixed 4: the band holds three cards today and the count is
     meant to move as the pool grows */
  .tries { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .hood-map { height: 420px; }
}

@media (min-width: 960px) {
  .hood-map { height: 460px; }
}

@media print {
  .hood-map { display: none; }
  .now, .help, .pick, .try { break-inside: avoid; }
  .picks { grid-template-columns: repeat(3, 1fr); }
}
