/* ===========================================================================
   Hatchure — the cover: a climb near you, its loops, the day's light
   ---------------------------------------------------------------------------
   The web port of the iOS Home cover (HomeCover.swift). Two surfaces: the
   homepage once it knows where the visitor is (#homeCover, #homeCoverMore)
   and the map while nothing is planned (#mapCover). Markup in
   js/home-cover-view.js; everything is .hc-prefixed so neither page's own
   rules reach in.

   The photo band and the horizon are dark in BOTH themes, like the
   homepage's hero band they stand in for: a photo's tones are not ours, so
   type on it is always light on a darkened foot. The map card's body and
   the climb tiles follow the page's theme through the brand tokens.
   =========================================================================== */

/* ---------- Shared pieces ---------- */

.hcEyebrow{
  font-family:var(--sans); font-weight:500; font-size:var(--fs-base); letter-spacing:0; text-transform:none;
  margin:0; color:var(--amber);
}
.hcEyebrow.isSepia{ color:var(--sepia); }
.hcIcon{ flex-shrink:0; }

.hcMasthead{
  font-family:var(--sans); font-weight:500; font-size:var(--fs-base); letter-spacing:0; text-transform:none;
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px;
}
.hcPlace{ text-transform:none; color:#EDEFE8; }
.hcDot{ color:#A7B2A9; }
.hcLight{ color:var(--amber); }
.hcChange{
  font:inherit; letter-spacing:0; text-transform:none; color:#EDEFE8;
  background:none; border:0; padding:4px 2px; cursor:pointer;
  text-decoration:underline; text-underline-offset:3px;
}

.hcCredit{ font-family:var(--sans); font-size:var(--fs-sm); margin:6px 0 0; color:rgba(237,239,232,0.72); }

/* The photo, and the scrims that keep type on it legible whatever it is. */
.hcPhoto, .hcCardHead > img{ position:absolute; inset:0; }
.hcPhoto img, .hcCardHead > img{
  width:100%; height:100%; object-fit:cover; object-position:50% 45%; display:block;
}
.hcScrim{
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(rgba(10,16,12,0.66), rgba(10,16,12,0) 34%),
    linear-gradient(rgba(10,16,12,0) 40%, rgba(10,16,12,0.86));
}

.hcCaption{ display:flex; flex-direction:column; gap:6px; color:#EDEFE8; }
/* A photo can be snow or sky behind any word: a soft shadow keeps the
   type readable where the scrim alone does not reach. */
.hcCaption, .hcMasthead{ text-shadow:0 1px 2px rgba(0,0,0,0.65), 0 0 12px rgba(0,0,0,0.35); }
.hcName{
  margin:0; font-family:var(--display); font-weight:800; line-height:0.98;
  letter-spacing:-0.02em; font-size:44px;
}
.hcName a{ color:inherit; text-decoration:none; }
.hcName a:hover{ text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; }
.hcLine{ margin:0; font-family:var(--mono); font-size:var(--fs-md); color:#EDEFE8; }

/* ---------- The sport switch (js/sport-strip.js) ----------
   "Ride 128 · Hike 307 · Run 406": iOS's one SportSwitch since a3d08c5c,
   Home's loop segments made general. Segments on one sunken ground, the
   chosen sport amber-ringed and in amber, each with its count beside its
   word in the data face. The same look as the loops bar's length switch
   (.loopSeg, css/loops.css), so the two read as one row of switches.
   Here rather than in route.css or loops.css because the homepage, which
   loads this file and neither of those, draws the switch too: over a
   climb's loops, and over the good days near you. On the map it is the
   loops bar's, the cover card's and a landmark's loops'.

   .sportSeg is the container (role="radiogroup", the caller's); .isFill
   shares a row of its own between the sports, where without it each takes
   its words' width (the loops bar's sideways row of switches). The
   buttons keep the route panel's .sportSwitchBtn class, so the scoped
   rules here outrank route.css's own strip. */
.sportSeg{
  display:flex; gap:2px; padding:2px; margin:0; box-sizing:border-box; min-width:0;
  border-radius:var(--radius-lg); background:var(--paper-dim); border:1px solid var(--line);
}
.sportSeg .sportSwitchBtn{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  flex:0 0 auto; min-width:0; min-height:40px; margin:0; padding:0 12px; box-sizing:border-box;
  border:0; border-radius:var(--radius-md); background:none; box-shadow:none; cursor:pointer;
  font-family:var(--sans); font-size:var(--fs-base); font-weight:400; line-height:1;
  letter-spacing:0; text-transform:none; white-space:nowrap; color:var(--ink-soft);
}
.sportSeg.isFill .sportSwitchBtn{ flex:1 1 0; padding:0 6px; }
.sportSeg .sportSwitchBtn .sportGlyph{ width:14px; height:14px; flex:none; }
.sportSeg .sportSwitchWord{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.sportSeg .sportSwitchBtn:hover{ color:var(--ink); }
/* A sport narrows what the row shows: chosen, it is amber, as the length
   switch's chosen length is. */
.sportSeg .sportSwitchBtn[aria-checked="true"]{
  background:var(--amber-tint); color:var(--amber-text); box-shadow:0 0 0 1px var(--amber); font-weight:600;
}
.sportSeg .sportSwitchBtn:focus-visible{ outline:2px solid var(--blaze, var(--amber)); outline-offset:1px; }
.sportSeg .sportSwitchBtn[aria-busy="true"]{ opacity:0.6; }
.sportSwitchCount{
  font-family:var(--mono); font-size:inherit; font-weight:500; font-variant-numeric:tabular-nums;
  letter-spacing:0; flex:none;
}
.sportSeg .sportSwitchBtn[aria-checked="false"] .sportSwitchCount{ opacity:0.8; }

/* ---------- The map credit on a loop's picture (js/loop-maps.js) ----------
   "© OpenMapTiles · © OpenStreetMap", the map's own words (iOS 7ac76b85),
   in the face of the map's attribution capsule (css/chrome.css): on a card's
   map a small plate of the dark ground in its corner; under a list of small
   maps, one line. */
.loopMapCredit{
  position:absolute; right:4px; bottom:2px; z-index:1; max-width:calc(100% - 8px);
  padding:1px 4px; border-radius:var(--radius-xs, 3px); background:rgba(15,24,19,0.72);
  color:#EDEFE8; font:500 12px/1.45 var(--sans); letter-spacing:0.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none;
}
.loopMapCreditLine{ margin:6px 0 0; color:var(--hc-soft, var(--ink-soft)); font:500 12px/1.45 var(--sans); letter-spacing:0.01em; }
.loopMapCreditLine a{ color:inherit; text-decoration:none; }
.loopMapCreditLine a:hover{ text-decoration:underline; }

/* ---------- The homepage's copies of the shared primitives ----------
   The map loads css/redesign.css, where .seeAll, .rowChev and .figure are
   drawn (js/ui-primitives.js); the homepage loads only tokens.css and this
   file. The same rules, for the cover and the good days on it. */
.hcCover .seeAll, .hcGood .seeAll{
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  min-width:44px; min-height:44px; padding:0; margin:0; box-sizing:border-box;
  background:none; border:0; cursor:pointer; text-decoration:none; white-space:nowrap;
  font-family:var(--sans); font-size:var(--fs-base); font-weight:500; color:var(--amber-text);
}
.hcCover .seeAllCount, .hcGood .seeAllCount{ font-family:var(--mono); font-size:var(--fs-sm); font-weight:500; font-variant-numeric:tabular-nums; }
.hcCover .seeAll:hover .seeAllWord, .hcGood .seeAll:hover .seeAllWord{ text-decoration:underline; }
.hcCover .seeAll:focus-visible, .hcGood .seeAll:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; border-radius:var(--radius-sm); }
.hcCover .rowChev, .hcGood .rowChev{ display:inline-flex; align-items:center; flex-shrink:0; color:var(--ink-soft); line-height:0; }
.hcCover .rowChev svg, .hcGood .rowChev svg{ display:block; width:7px; height:12px; }
.hcCover .rowChev.isAmber, .hcGood .rowChev.isAmber{ color:var(--amber-text); }
.hcCover .figure, .hcCardHead .figure{ font-family:var(--mono); font-size:inherit; font-weight:inherit; font-variant-numeric:tabular-nums; }
/* The cover's photo band and card are dark in both themes: the amber the
   brand writes on dark. */
.hcCover .seeAll, .hcCover .rowChev.isAmber{ color:var(--amber); }

/* ---------- The loops over the climb ---------- */

/* The sports over the climb's loops: the one sport switch (.sportSeg
   above), sharing its row. */
.hcSports{ margin:0 0 6px; }

.hcLoops{ list-style:none; margin:0; padding:4px 0 0; }
.hcLoops > li + li{ border-top:1px solid var(--hc-rule, #3A4A40); }
.hcLoop{
  display:flex; gap:14px; align-items:flex-start; padding:12px; margin:0 -12px;
  border-radius:10px; color:var(--hc-ink, #EDEFE8); text-decoration:none;
}
.hcLoop:hover, .hcLoop:focus-visible, .hcLoop.isPreviewing{ background:var(--hc-hover, rgba(237,239,232,0.06)); }
.hcLoop:focus-visible{ outline:2px solid var(--amber); outline-offset:-2px; }
.hcThumb{
  width:96px; height:70px; object-fit:cover; border-radius:var(--radius-md); flex-shrink:0;
  background:var(--hc-rule, #3A4A40);
}
.hcLoopText{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.hcKinds{ font-family:var(--sans); font-weight:500; font-size:var(--fs-base); letter-spacing:0; text-transform:none; color:var(--hc-sepia, #C9A57F); }
.hcLoopTitle{ font-weight:600; font-size:15px; line-height:1.25; }
.hcFigures{ font-family:var(--mono); font-size:12.5px; }
.hcFrom{ font-size:12.5px; color:var(--hc-soft, #A7B2A9); }
.hcDaylight{
  display:flex; gap:7px; align-items:flex-start; margin:0 0 10px;
  /* A sentence, its times figures in it (.figure): not a mono line. */
  font-family:var(--sans); font-size:var(--fs-sm); line-height:1.45; color:var(--hc-soft, #A7B2A9);
}
.hcDaylight .hcIcon{ margin-top:1px; }
.hcDaylight.is-dark{ color:var(--hc-warn, #FFB199); }
/* "All 12 ›" under the loops, to the climb's page. */
.hcLoopsFoot{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hcLoopsFoot .loopMapCreditLine{ margin:0; }

/* ---------- The horizon ---------- */

.hcHorizon{ display:block; width:100%; height:auto; overflow:visible; }
.hcHorizon .hcGround{ fill:var(--hc-ground, #0F1813); }
.hcHorizon .hcStrokes{ stroke:#EDEFE8; fill:none; }
.hcHorizon .hcBase{ stroke:#EDEFE8; stroke-opacity:0.35; }
.hcHorizon .hcSun{ fill:var(--amber); }
/* The sun's day, behind the hills: faint, so it reads as the sky's and
   not as one more ridge. */
.hcHorizon .hcSunArc{ fill:none; stroke:var(--amber); stroke-opacity:0.4; stroke-width:1.2; stroke-dasharray:2 5; stroke-linecap:round; }
.hcHorizon .hcSunNow{ fill:var(--amber); stroke:var(--amber); stroke-opacity:0.25; stroke-width:6; }
.hcHorizon .hcSunLabel, .hcHorizon .hcPeak{ font:10.5px var(--mono); }
.hcHorizon .hcSunLabel{ fill:var(--amber); font-size:10px; }
.hcHorizon .hcPeak{ fill:#EDEFE8; }
.hcHorizon .hcHeight{ fill:#A7B2A9; }
.hcHorizon .hcPlate{ fill:var(--hc-ground, #0F1813); fill-opacity:0.85; }
.hcHorizon .hcSummits{ fill:#EDEFE8; }
.hcHorizon .hcLeader{ stroke:#EDEFE8; stroke-opacity:0.55; }
.hcHorizon .hcCompass{ font:10px var(--mono); fill:#A7B2A9; }
.hcHorizon a:hover .hcPeak, .hcHorizon a:focus .hcPeak{ fill:var(--amber); }

/* ===========================================================================
   The homepage
   =========================================================================== */

/* The id: the wide screen's cover is a grid by #homeCover.hcCover, which
   would outrank a class-only [hidden] and leave an empty band on the page. */
#homeCover.hcCover[hidden], .hcCover[hidden], .hcMore[hidden]{ display:none; }
/* The homepage gives every <section> its band padding; the cover is a
   photo edge to edge, so it takes none. */
#homeCover.hcCover{ padding:0; margin:0; }
.hcCover{
  position:relative; background:var(--band); color:#EDEFE8;
  --hc-ink:#EDEFE8; --hc-soft:#A7B2A9; --hc-sepia:#C9A57F; --hc-line:#4C6053; --hc-rule:#3A4A40; --hc-ground:#0F1813;
}
/* The site's bar floats over the cover's top (css/site-header.css): the
   homepage pulls the cover up under it, so what sits at the top moves down
   by the bar's reach. */
.hcBand{ position:relative; min-height:calc(440px + var(--bar-space, 0px)); overflow:hidden; }
.hcBand .hcMasthead{ position:absolute; left:16px; right:16px; top:calc(16px + var(--bar-space, 0px)); z-index:1; }
.hcBand .hcCaption{ position:absolute; left:16px; right:16px; bottom:18px; z-index:1; }
.hcCard{ padding:12px var(--inset-card) 8px; }

.hcMore{ background:var(--paper); }
/* The search, on the cover's dark ground as on today's hero: a light glass
   capsule with the amber button inside it, and the map a glass pill. */
.hcSearchRow{
  position:relative; z-index:1;
  max-width:var(--wrap, 1080px); margin:0 auto; padding:20px 16px 28px;
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
}
.hcSearchRow form{
  flex:1 1 320px; display:flex; gap:4px; max-width:560px; padding:5px; border-radius:var(--radius-pill);
  background:color-mix(in srgb, #FFFFFF 88%, transparent);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0.5px 0 rgba(255,255,255,0.6), 0 12px 32px -12px rgba(0,0,0,0.6);
}
.hcSearchRow form:focus-within{ box-shadow:0 0 0 3px var(--amber), 0 12px 32px -12px rgba(0,0,0,0.6); }
.hcSearchRow input{
  flex:1 1 auto; min-width:0; height:46px; padding:0 16px; font:16px var(--sans);
  border:0; background:transparent; color:#14201A;
}
.hcSearchRow input::placeholder{ color:#6B776F; }
.hcSearchRow input:focus{ outline:none; }
.hcSearchRow button{
  flex-shrink:0; white-space:nowrap; height:46px; padding:0 20px; border:0; border-radius:var(--radius-pill); cursor:pointer;
  background:var(--amber); color:var(--on-amber); font:600 16px var(--sans);
}
.hcPill{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px;
  border:1px solid rgba(237,239,232,0.22); border-radius:var(--radius-pill); color:#EDEFE8; text-decoration:none; font-size:var(--fs-md);
  background:color-mix(in srgb, #14201A var(--glass-a-pill), transparent);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  box-shadow:var(--glass-edge);
}
.hcPill:hover{ border-color:var(--amber); color:#EDEFE8; }

/* The sport switch on the cover's dark ground, as over today's loop card
   (.ltBar): the ground a shade darker than the card, the chosen sport amber
   on amber's own dark tint. */
#homeCover .sportSeg{ background:rgba(10,16,12,0.35); border-color:rgba(237,239,232,0.14); }
#homeCover .sportSeg .sportSwitchBtn{ color:#D5DCD6; }
#homeCover .sportSeg .sportSwitchBtn:hover{ color:#EDEFE8; }
#homeCover .sportSeg .sportSwitchBtn[aria-checked="true"]{ background:rgba(240,179,58,0.16); color:var(--amber); }
#homeCover .sportSeg .sportSwitchBtn:focus-visible{ outline-color:var(--amber); outline-offset:2px; }

.hcHorizonBand{
  margin-top:36px; background:var(--band); color:#EDEFE8; padding:24px 0 18px;
  --hc-ground:var(--band);
}
.hcHorizonBand > *{ max-width:var(--wrap, 1080px); margin-left:auto; margin-right:auto; padding-left:16px; padding-right:16px; }
.hcHorizonTitle{ font-size:var(--fs-screen-title); margin:6px auto 0; font-family:var(--display); font-weight:800; line-height:1.15; }
.hcHorizonNote{ margin:6px auto 0; color:#A7B2A9; font-size:var(--fs-md); line-height:1.45; }
.hcHorizonArt{ margin-top:8px; }

.hcTilesWrap{ max-width:var(--wrap, 1080px); margin:0 auto; padding:32px 16px 8px; }
.hcTiles{
  list-style:none; margin:12px 0 0; padding:0; display:grid; gap:12px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
/* Fixed columns, so the first two rows home-page-cover.js shows are full. */
@media (min-width: 640px){ .hcTiles{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px){ .hcTiles{ grid-template-columns:repeat(6, minmax(0, 1fr)); } }
.hcTile{
  display:flex; flex-direction:column; height:100%; overflow:hidden; border-radius:14px;
  background:var(--surface); border:1px solid var(--line); color:var(--ink); text-decoration:none;
}
.hcTile:hover{ border-color:var(--amber); }
.hcTile img{ width:100%; height:110px; object-fit:cover; display:block; background:var(--line); }
.hcTiles > li[hidden], .hcCredits > span[hidden]{ display:none; }
/* A climb with no photo: the ground it would have had, and a peak on it. */
.hcTileBlank{
  display:flex; align-items:center; justify-content:center; height:110px;
  background:var(--paper-dim, var(--line)); color:var(--ink-soft);
}
span.hcTile{ cursor:default; }
span.hcTile:hover{ border-color:var(--line); }
.hcShowMore{
  display:inline-flex; align-items:center; min-height:44px; margin:16px 0 0; padding:0 18px; cursor:pointer;
  border:1px solid var(--line); border-radius:var(--radius-pill); background:none; color:var(--ink);
  font:600 14px var(--sans);
}
.hcShowMore:hover{ border-color:var(--amber); }
.hcShowMore:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }
.hcTileText{ display:flex; flex-direction:column; gap:3px; padding:10px 12px 12px; }
.hcTile .hcKinds{ color:var(--sepia); }
.hcTileName{ font-family:var(--display); font-weight:600; font-size:var(--fs-card-title); }
.hcTile .hcFigures{ font-size:var(--fs-sm); color:var(--ink-soft); }
.hcCredits{ font-family:var(--sans); font-size:var(--fs-sm); margin:10px 0 0; line-height:1.5; color:var(--ink-soft); }

/* The one new control on today's hero: where the cover comes from. */
.heroNear[hidden]{ display:none; }
.heroNear{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:18px 0 0; }
.heroNearBtn{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; cursor:pointer;
  border:1px solid var(--amber); border-radius:var(--radius-pill); background:rgba(240,179,58,0.12);
  color:var(--on-ink, #EDEFE8); font:600 14px var(--sans);
}
.heroNearBtn:hover{ background:rgba(240,179,58,0.2); }
.heroNearBtn[aria-busy="true"]{ opacity:0.7; cursor:progress; }
.heroNearNote{ font-size:var(--fs-base); color:var(--on-ink-3, #8B978E); }

/* A phone: the place and the light on two lines, no dot left hanging. */
@media (max-width: 959px){
  .hcBand .hcMasthead{ flex-direction:column; align-items:flex-start; gap:2px; }
  .hcBand .hcDot{ display:none; }
}

/* A wide screen: today's hero, with this climb in it. The photo fills the
   cover behind a scrim; the place, the climb and the search are the left
   column, the loops a card of their own in the right one — a column, not
   laid over the photo, so neither can run into the other however long the
   loop names are. The band's own box steps aside (display:contents) so its
   pieces are the grid's. */
@media (min-width: 960px){
  #homeCover.hcCover{
    --hc-edge:max(24px, calc((100vw - 1200px) / 2));
    display:grid; grid-template-columns:minmax(0, 1fr) 470px; grid-template-rows:auto 1fr auto auto;
    column-gap:56px; min-height:min(100vh, 900px); overflow:hidden;
    padding:calc(var(--bar-space, 0px) + 28px) var(--hc-edge) 72px;
  }
  .hcBand{ display:contents; }
  .hcBand .hcPhoto, .hcBand .hcScrim{ z-index:0; }
  /* The place and its light: a glass pill, as the day's climb is on
     today's hero. */
  .hcBand .hcMasthead{
    position:relative; z-index:1; grid-column:1; grid-row:1; justify-self:start;
    min-height:40px; padding:4px 8px 4px 16px; border-radius:var(--radius-pill); text-shadow:none;
    background:color-mix(in srgb, #14201A var(--glass-a-pill), transparent);
    -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
    border:1px solid rgba(237,239,232,0.22); box-shadow:var(--glass-edge), var(--glass-lift);
  }
  .hcBand .hcChange{ padding:6px 8px; }
  .hcBand .hcCaption{ position:relative; z-index:1; grid-column:1; grid-row:3; gap:10px; }
  .hcBand .hcName{ font-size:clamp(44px, 5.4vw, 104px); hyphens:auto; }
  .hcBand .hcLine{ font-size:17px; }
  .hcBand .hcScrim{
    background:
      linear-gradient(90deg, rgba(10,16,12,0.86) 0%, rgba(10,16,12,0.55) 40%, rgba(10,16,12,0.12) 72%),
      linear-gradient(rgba(10,16,12,0.45), rgba(10,16,12,0) 24%, rgba(10,16,12,0) 60%, rgba(10,16,12,0.8));
  }
  #homeCover .hcSearchRow{ grid-column:1; grid-row:4; margin:28px 0 0; padding:0; max-width:none; }
  .hcCard{
    position:relative; z-index:2; grid-column:2; grid-row:1 / -1; align-self:center;
    padding:14px 22px 10px; border-radius:22px;
    background:color-mix(in srgb, #14201A 94%, transparent); border:1px solid rgba(237,239,232,0.14);
    box-shadow:0 24px 60px -20px rgba(0,0,0,0.6);
  }
  .hcHorizonTitle{ font-size:32px; }
}

/* ===========================================================================
   The map
   =========================================================================== */

#mapCover[hidden]{ display:none; }
#mapCover{
  position:absolute; z-index:520; left:16px; top:calc(112px + env(safe-area-inset-top));
  width:392px; max-height:calc(100% - 220px); overflow:auto; overscroll-behavior:contain;
  border-radius:16px; background:var(--surface); border:1px solid var(--line);
  box-shadow:0 18px 44px rgba(0,0,0,0.35); color:var(--ink);
  --hc-ink:var(--ink); --hc-soft:var(--ink-soft); --hc-sepia:var(--sepia); --hc-line:var(--line);
  --hc-rule:var(--line); --hc-hover:var(--chalk-dim); --hc-warn:var(--closed);
}
.hcCardHead{ position:relative; height:184px; overflow:hidden; background:#0F1813; }
.hcCardHead .hcScrim{
  background:
    linear-gradient(rgba(10,16,12,0.72), rgba(10,16,12,0) 38%),
    linear-gradient(rgba(10,16,12,0) 22%, rgba(10,16,12,0.55) 52%, rgba(10,16,12,0.92));
}
.hcCardHead .hcMasthead{ position:absolute; left:14px; right:52px; top:16px; font-size:var(--fs-sm); flex-wrap:nowrap; white-space:nowrap; overflow:hidden; }
.hcCardHead .hcCaption{ position:absolute; left:14px; right:14px; bottom:12px; gap:3px; }
.hcCardHead .hcName{ font-size:30px; }
.hcCardHead .hcLine{ font-size:var(--fs-sm); }
.hcCardHead .hcCredit{ font-size:var(--fs-sm); margin-top:2px; }
.hcCardHead .hcEyebrow{ font-size:var(--fs-sm); }
.hcHide{
  position:absolute; right:10px; top:10px; z-index:1; width:36px; height:36px; border-radius:18px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  border:1px solid color-mix(in srgb, #EDEFE8 22%, transparent); color:#EDEFE8;
  /* Glass over the photo, as the app's controls over a picture are
     (css/tokens.css). */
  background:color-mix(in srgb, #14201A var(--glass-a-pill), transparent);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  box-shadow:var(--glass-edge);
}
.hcHide:focus-visible{ outline:2px solid var(--amber); }
.hcCardBody{ padding:0 16px 6px; }
#mapCover .hcThumb{ width:84px; height:62px; }
#mapCover .hcLoopTitle{ font-size:var(--fs-md); }

@media (max-width: 640px){
  #mapCover{
    left:12px; right:12px; width:auto; top:calc(116px + env(safe-area-inset-top));
    max-height:calc(100% - 300px);
  }
  .hcCardHead{ height:156px; }
  .hcCardHead .hcName{ font-size:26px; }
  #mapCover .hcLoops > li:nth-child(n+2){ display:none; }
}

.hero[hidden]{ display:none; }

/* Good days near you (js/home-good-near.js, docs/when-to-go.md §7): the
   loops near the place the forecast suits in the window, between the search
   and the horizon. Green only for a good day, as for an open stop. */
.hcGood{ max-width:var(--wrap, 1080px); margin:0 auto; padding:28px 16px 4px; }
.hcGoodHead{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 20px; margin-bottom:14px; }
.hcGoodHead > div:first-child{ flex:1 1 320px; }
.hcGoodEyebrow{ font-family:var(--sans); font-weight:500; font-size:var(--fs-base); letter-spacing:0; text-transform:none; color:var(--amber-text); }
.hcGood h2{ font-family:var(--display); font-weight:800; font-size:var(--fs-screen-title); margin:6px 0 0; line-height:1.15; color:var(--ink); }
/* The sport switch under the head, a row of its own (iOS HomeGoodNearRow):
   at its words' width, not across the page. */
.hcGoodSports{ display:flex; margin:0 0 14px; overflow-x:auto; scrollbar-width:none; }
.hcGoodSports .sportSeg{ flex:none; }
.hcGoodCards{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; }
.hcGoodCard{
  display:flex; flex-direction:column; height:100%; border:1px solid var(--line); border-radius:12px; overflow:hidden;
  background:var(--surface); color:var(--ink); text-decoration:none;
}
.hcGoodCard:hover{ border-color:var(--ink-soft); }
.hcGoodCard:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }
.hcGoodThumb{ position:relative; display:block; }
.hcGoodCard .hcThumb{ display:block; width:100%; height:120px; border-radius:0; }
.hcGoodText{ display:flex; flex-direction:column; gap:5px; padding:12px 14px 14px; }
.hcGoodDays{ display:flex; flex-wrap:wrap; gap:6px; }
.hcGoodChip{ font-size:12.5px; font-weight:600; color:var(--open); background:var(--open-tint); border-radius:var(--radius-pill); padding:3px 10px; }
.hcGoodCard .hcFigures{ color:var(--ink-soft); font-size:var(--fs-sm); }
.hcGoodFacts{ font-size:var(--fs-base); color:var(--ink-soft); line-height:1.4; }
.hcGoodNone{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; padding:18px 20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.hcGoodNone p{ margin:0; flex:1 1 320px; font-family:var(--display); font-weight:500; font-size:19px; color:var(--ink-soft); }
.hcGoodNone a{ min-height:44px; display:inline-flex; align-items:center; padding:0 16px; border:1px solid var(--line); border-radius:var(--radius-pill); color:var(--ink); text-decoration:none; font-weight:600; font-size:var(--fs-md); }
@media (max-width: 959px){ .hcGoodCards{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px){
  .hcGoodCards{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -16px; padding:0 16px 4px; }
  .hcGoodCards > li{ flex:0 0 240px; scroll-snap-align:start; }
}
.hcGood[hidden]{ display:none; }
