/* Card 1156. The answer card at the top of the hours pages, and the dated rows the date
   searches land on. Homepage first-light theme (home-firstlight.css tokens, restated here so
   the hours pages need not load the homepage sheet): cream card, navy ink, coral accents,
   Fraunces numbers. hx- prefix. */

.hx-ans, .hx-hub {
  --hx-ink: #10294a; --hx-ink-2: #34496a; --hx-ink-3: #5d6f8a;
  --hx-cream: #fff3df; --hx-paper: #fffaf1; --hx-sand: #fbe7c8;
  --hx-coral: #f4502f; --hx-coral-deep: #d2381a; --hx-gold: #f0b13a; --hx-blue: #0e66a3;
  --hx-ok: #0d8670; --hx-warn: #a96a05;
  --hx-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hx-ui: var(--ui, "Hanken Grotesk", system-ui, sans-serif);
  --hx-ease: cubic-bezier(.2, .8, .2, 1);
}

.hx-ans {
  position: relative; margin: 18px 0 0; padding: clamp(18px, 2.6vw, 28px);
  border-radius: 28px; color: var(--hx-ink); font-family: var(--hx-ui);
  background: radial-gradient(130% 90% at 0% 0%, var(--hx-paper) 0, var(--hx-cream) 58%, var(--hx-sand) 100%);
  box-shadow: 0 40px 80px -46px rgb(0 0 0 / 0.85), 0 2px 0 rgb(255 255 255 / 0.6) inset;
  overflow: hidden; isolation: isolate;
}
.hx-ans::after {
  /* a soft sunrise glow in the corner, the homepage's first light */
  content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(244 80 47 / 0.22), rgb(240 177 58 / 0.12) 60%, transparent);
}
.hx-ans-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.hx-ans-when { font: 800 12px/1 var(--hx-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-ink-3); }
.hx-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px;
  font: 800 13px/1.1 var(--hx-ui); background: #fff; color: var(--hx-ink);
  box-shadow: 0 8px 20px -14px rgb(16 41 74 / 0.6), inset 0 0 0 1px rgb(16 41 74 / 0.08);
}
.hx-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--hx-ok); box-shadow: 0 0 0 4px rgb(13 134 112 / 0.16); }
.hx-pill.is-typical i { background: var(--hx-gold); box-shadow: 0 0 0 4px rgb(240 177 58 / 0.22); }
.hx-pill.is-mixed i { background: linear-gradient(90deg, var(--hx-ok) 50%, var(--hx-gold) 50%); box-shadow: 0 0 0 4px rgb(16 41 74 / 0.08); }

.hx-today {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 0; padding: 12px 14px;
  border-radius: 16px; background: var(--hx-ink); color: #fff; text-decoration: none;
  box-shadow: 0 16px 30px -20px rgb(16 41 74 / 0.9);
}
.hx-today:hover { background: #17365f; }
.hx-today-k { font: 700 13px/1.2 var(--hx-ui); color: rgb(255 255 255 / 0.72); }
.hx-today b { font: 900 20px/1.1 var(--hx-display); letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; color: var(--hx-cream); }
.hx-today small { font: 800 11px/1 var(--hx-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--hx-gold); }

.park-page .hx-ans .hx-ans-k, .hx-ans-k {
  margin: 18px 0 0; padding: 0; border: 0; font: 800 13px/1.2 var(--hx-ui); letter-spacing: .02em; color: var(--hx-coral-deep);
  text-transform: none;
}
.hx-big {
  margin: 4px 0 0; font-family: var(--hx-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(42px, 7vw, 72px); line-height: .98; letter-spacing: -0.035em; color: var(--hx-ink);
  font-variant-numeric: lining-nums; text-wrap: balance;
}
.hx-big em { font-style: italic; font-weight: 600; font-size: .52em; letter-spacing: 0; color: var(--hx-coral); vertical-align: .18em; margin: 0 .1em; }
.hx-big span { white-space: nowrap; }
.hx-big.is-small { font-size: clamp(30px, 4.6vw, 44px); }
.hx-sub { margin: 8px 0 0; font: 700 15px/1.4 var(--hx-ui); color: var(--hx-ink-2); }

.hx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 18px 0 0; }
.hx-facts > div { padding: 11px 12px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgb(16 41 74 / 0.07); }
.hx-facts dt { font: 800 11px/1.2 var(--hx-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-ink-3); }
.hx-facts dd { margin: 5px 0 0; font: 900 22px/1.05 var(--hx-display); letter-spacing: -0.02em; color: var(--hx-ink); font-variation-settings: "SOFT" 100; }
.hx-facts dd small { display: block; margin-top: 3px; font: 700 12.5px/1.2 var(--hx-ui); letter-spacing: 0; color: var(--hx-ink-3); }

.park-page .hx-ans .hx-status, .hx-status { margin: 14px 0 0; max-width: 60ch; font: 500 14.5px/1.5 var(--hx-ui); color: var(--hx-ink-2); }

.hx-jump { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed rgb(16 41 74 / 0.18); }
.hx-jump label { display: block; font: 800 12px/1.2 var(--hx-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-coral-deep); }
.hx-jump-row { display: flex; gap: 8px; margin-top: 8px; }
.hx-jump select {
  flex: 1; min-width: 0; height: 48px; padding: 0 40px 0 14px; border: 0; border-radius: 14px;
  font: 700 16px/1 var(--hx-ui); color: var(--hx-ink); background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(16 41 74 / 0.16); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hx-ink) 50%), linear-gradient(135deg, var(--hx-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat;
}
.hx-jump select:focus-visible { outline: 3px solid var(--hx-coral); outline-offset: 2px; }
.hx-jump button {
  flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 15px/1 var(--hx-ui); color: #fff; background: var(--hx-coral);
  box-shadow: 0 12px 22px -12px rgb(210 56 26 / 0.8); transition: background-color .2s ease, transform .2s var(--hx-ease);
}
.hx-jump button:hover { background: var(--hx-coral-deep); transform: translateY(-1px); }

/* ---- the dated rows on the month table ---- */
.nc-table tr.nc-tr { scroll-margin-top: 96px; }
.nc-table tr.nc-tr > * { border-bottom: 0; padding-bottom: 2px; }
.nc-table tr.nc-say > td { padding-top: 0; padding-bottom: 11px; white-space: normal; }
.nc-table tr.nc-say p { margin: 0; max-width: 70ch; font: 500 13.5px/1.45 var(--nc-ui, system-ui); color: var(--nc-ink-3, #b9b4cc); }
.nc-table tr.nc-say.is-est p { font-style: italic; }
.nc-table tr.nc-tr:target > *, .nc-table tr.nc-tr:target + tr.nc-say > *,
.nc-table tr.is-hit > * { background: oklch(86% 0.13 84 / 0.16); }
.nc-table tr.nc-tr:target > th, .nc-table tr.nc-tr.is-hit > th { box-shadow: inset 4px 0 0 var(--nc-gold, #f0b13a); }
@media (prefers-reduced-motion: no-preference) {
  .nc-table tr.is-hit > * { animation: hx-hit 2.4s ease-out both; }
}
@keyframes hx-hit { 0%, 30% { background: oklch(86% 0.13 84 / 0.32); } 100% { background: oklch(86% 0.13 84 / 0.12); } }

/* ---- the month page around the card ---- */
@media (max-width: 640px) {
  .nc .nc-back { margin-bottom: 12px; }
  .nc .nc-title { font-size: 27px; line-height: 1.08; }
  .hx-ans { margin-top: 14px; padding: 16px 16px 18px; border-radius: 24px; }
  .hx-big { font-size: 46px; }
  .hx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-facts dd { font-size: 20px; }
  .hx-today b { font-size: 18px; }
  .hx-jump button { display: none; }
}
@media (max-width: 380px) { .hx-big { font-size: 42px; } }

/* ---- Hub answer card (card 1156). The hero grows to fit the card instead of clipping it. ---- */
.hd13-hero.has-hx { height: auto; min-height: min(68vh, 600px); display: flex; align-items: flex-end; }
.hd13-hero.has-hx .hd13-in { position: relative; width: 100%; padding-top: 120px; }
.hd13-hero.has-hx .hd13-h1 { margin-bottom: 18px; font-size: clamp(38px, 5.2vw, 64px); }
.hx-hub { max-width: 640px; margin: 0; box-shadow: 0 30px 60px -28px rgb(4 6 30 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.5) inset; }
.hx-hub .hx-ans-k { margin-top: 14px; }
.hx-hub .hx-sub { display: flex; align-items: center; gap: 8px; }
.hx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-coral); box-shadow: 0 0 0 0 rgb(244 80 47 / 0.5); animation: hx-pulse 2s ease-out infinite; }
@keyframes hx-pulse { 0% { box-shadow: 0 0 0 0 rgb(244 80 47 / 0.45); } 100% { box-shadow: 0 0 0 10px rgb(244 80 47 / 0); } }
@media (prefers-reduced-motion: reduce) { .hx-live { animation: none; } }
.hx-hub.is-typical .hx-pill { background: #fff7e3; }
.hx-jump input[type="date"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 14px;
  font: 700 16px/1 var(--hx-ui); color: var(--hx-ink); background: #fff;
  box-shadow: inset 0 0 0 1px rgb(16 41 74 / 0.14), 0 6px 14px -10px rgb(16 41 74 / 0.5);
}
.hx-jump input[type="date"]:focus-visible { outline: 3px solid var(--hx-coral); outline-offset: 2px; }
.hx-jump-msg { margin: 8px 0 0; font: 700 13.5px/1.4 var(--hx-ui); color: var(--hx-coral-deep); }
a.hd13-dy { color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s var(--hx-ease); }
a.hd13-dy:hover { border-color: var(--hd-gold, #f0b13a); transform: translateY(-2px); }
a.hd13-dy:focus-visible { outline: 3px solid var(--hx-coral, #f4502f); outline-offset: 2px; }

@media (max-width: 640px) {
  .hd13-hero.has-hx { min-height: 0; }
  .hd13-hero.has-hx .hd13-in { padding: 96px 16px 22px; }
  .hd13-hero.has-hx .hd13-kick { font-size: 13px; }
  .hd13-hero.has-hx .hd13-h1 { font-size: 30px; line-height: 1.02; margin: 6px 0 14px; }
  .hx-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hx-sm-hide { display: none; }
  .hx-hub .hx-jump button { display: inline-flex; align-items: center; padding: 0 16px; white-space: nowrap; }
  .hx-hub .hx-facts > .hx-wide dd { font-size: 18px; white-space: nowrap; }
  .hx-hub .hx-facts > .hx-wide:last-child:nth-child(odd) dd { font-size: 20px; }
}

/* Card 1156 fix: on phones the date table fits the screen, so each row's sentence wraps inside
   the viewport instead of running off a horizontally scrolling table. Fixed layout, tighter
   cells, and the long early entry header ("Early Park Admission") may wrap. */
@media (max-width: 640px) {
  .nc-table table { table-layout: fixed; }
  .nc-table thead th:first-child { width: 33%; }
  .nc-table th, .nc-table td { padding: 9px 7px; }
  .nc-table th:first-child, .nc-table td:first-child { padding-left: 12px; }
  .nc-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
  .nc-table tbody td { font-size: 13.5px; }
  .nc-table tr.nc-say > td { padding: 0 12px 11px; }
  .nc-table tr.nc-say p { max-width: none; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .nc-table th, .nc-table td { padding: 8px 5px; }
  .nc-table thead th { font-size: 10px; letter-spacing: 0.04em; }
  .nc-table tbody th { font-size: 13px; }
  .nc-table tbody td { font-size: 12.5px; }
}

/* Card 1156 fix: the hub's "hour by hour" and "Plan around these" columns stacked side by side
   on phones and squeezed the cards and itinerary into narrow strips (and past the edge at 320px). */
@media (max-width: 760px) {
  .hd13-cols { grid-template-columns: minmax(0, 1fr); }
  .hd13-stop { grid-template-columns: 76px minmax(0, 1fr); }
}
.churro-jar { transition: opacity .25s ease, transform .25s ease; }
body.hx-jar-off .churro-jar { opacity: 0; transform: translateY(12px); pointer-events: none; }
/* The closed phone day sheet is also hidden from view and focus, not only moved off screen. */
.nc-sheet:not(.is-open) { visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
.nc-sheet.is-open { visibility: visible; }
