/* ============================================================================
   quietest-days.css, card 1208. The 10 quietest days at Disneyland before
   Christmas 2026. Builds on christmas-day-parks.css (the xd system) and the
   homepage daylight theme tokens (--hl). Crowd bands use one scale:
   light green, moderate blue, busy orange, packed coral.
   ========================================================================== */

.xq { --q-light: #0d8670; --q-moderate: #1f7fbf; --q-busy: #e0661f; --q-packed: #c8341a; }

/* answer box: big date, copy, podium of the top three, stats */
.xq-answer { grid-template-areas: "big p" "big pod" "big stats"; }
.xq-big { align-items: center; text-align: center; justify-content: center; }
.xq-big-m { font-size: 15px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd27a; }
.xq-podium { grid-area: pod; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xq-podium li { min-width: 0; }
.xq-podium a {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n d s" "n h s"; align-items: center; gap: 0 10px;
  padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--hl-ink);
  background: color-mix(in oklab, var(--pc) 9%, white); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pc) 30%, white);
}
.xq-podium a:hover { box-shadow: inset 0 0 0 2px var(--pc); color: var(--hl-ink); }
.xq-pod-n { grid-area: n; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--pc); color: #fff; font-family: var(--hl-display); font-weight: 900; font-size: 17px; }
.xq-pod-d { grid-area: d; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xq-pod-d b { font-weight: 800; }
.xq-pod-h { grid-area: h; font-size: 12.5px; color: var(--hl-ink-2); white-space: nowrap; }
.xq-pod-s { grid-area: s; font-size: 12px; font-weight: 700; color: var(--hl-ink-3); }
.xq-pod-s b { font-family: var(--hl-display); font-size: 24px; font-weight: 900; color: var(--pc); }

/* heat calendar */
.xq-heat { padding: 16px; }
.xq-cal { display: grid; gap: 6px; }
.xq-cal-h, .xq-cal-r { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.xq-cal-h span { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl-ink-3); }
.xq-c {
  --b: var(--hl-sky-2); position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 72px; padding: 7px 9px; border-radius: 12px; text-decoration: none; color: #fff; background: var(--b);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.12); transition: transform 0.12s ease;
}
.xd a.xq-c { color: #fff; }
a.xq-c:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 18px -10px var(--b); }
.xq-c.is-light { --b: var(--q-light); }
.xq-c.is-moderate { --b: var(--q-moderate); }
.xq-c.is-busy { --b: var(--q-busy); }
.xq-c.is-packed { --b: var(--q-packed); }
.xq-c.is-out { background: transparent; box-shadow: none; min-height: 0; }
.xq-c.is-past { --b: #dfe6ef; color: var(--hl-ink-3); box-shadow: none; }
.xd a.xq-c.is-past { color: var(--hl-ink-3); }
.xq-c.is-nov:not(.is-past) { opacity: 0.78; }
.xq-c.is-break { outline: 2px dashed rgb(255 255 255 / 0.85); outline-offset: -5px; }
.xq-c-d { font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0.92; }
.xq-c-s { font-family: var(--hl-display); font-weight: 900; font-size: 26px; line-height: 1; }
.xq-c-r {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--hl-ink); font-size: 12px; font-weight: 900; box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
}
.xq-c.is-top { box-shadow: inset 0 0 0 3px #ffd27a, inset 0 -3px 0 rgb(0 0 0 / 0.12); }
.xq-k { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }
.xq-k + .xq-k, .xq-heat figcaption .xq-k:not(:first-child) { margin-left: 8px; }
.xq-k.is-light { background: var(--q-light); }
.xq-k.is-moderate { background: var(--q-moderate); }
.xq-k.is-busy { background: var(--q-busy); }
.xq-k.is-packed { background: var(--q-packed); }
.xq-k-pin { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: #fff; font-size: 10px; font-weight: 900; box-shadow: 0 0 0 2px #ffd27a, 0 1px 4px rgb(0 0 0 / 0.2); }

/* ranked days */
.xq-method { max-width: 74ch; }
.xq-list { display: grid; gap: 12px; counter-reset: q; }
.xq-day {
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: center;
  padding: 16px 18px 16px 16px; border-radius: 18px; background: var(--hl-card);
  box-shadow: var(--hl-shadow-sm), inset 0 0 0 1px var(--hl-line); overflow: hidden; scroll-margin-top: 90px;
}
.xq-day::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--pc); }
.xq-day:target { box-shadow: var(--hl-shadow-sm), inset 0 0 0 3px #ffd27a; }
.xq-day-n {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; margin-left: 4px;
  background: var(--pc); color: #fff; font-family: var(--hl-display); font-weight: 900; font-size: 26px;
}
.xq-day h3 { margin: 0; font-family: var(--hl-display); font-weight: 900; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.xq-why { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--hl-ink-2); }
.xq-facts { margin: 0; display: grid; grid-template-columns: 0.7fr 1fr 1fr 1fr; gap: 8px; }
.xq-facts div { min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--hl-sky-2); }
.xq-facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xq-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; }
.xq-facts dd small { font-size: 12px; font-weight: 600; color: var(--hl-ink-3); }
.xq-f-crowd dd { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.xq-f-crowd dd b { font-family: var(--hl-display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--pc); }
.xq-f-pick dd a { color: var(--hl-ink); }

/* busiest table */
.xq-tr { grid-template-columns: 44px minmax(0, 2.2fr) 82px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr); }
.xq-tr .c-p { display: flex; flex-direction: column; min-width: 0; }
.xq-tr .c-p b { font-size: 16px; }
.xq-tr .c-p small { font-size: 13px; color: var(--hl-ink-3); line-height: 1.4; }
.xq-tr .c-s { display: flex; flex-direction: column; }
.xq-tr .c-s b { font-family: var(--hl-display); font-size: 26px; line-height: 1; color: var(--pc); }
.xq-tr .c-s small { font-size: 12px; color: var(--hl-ink-3); }
.xq-tr .c-h, .xq-tr .c-k { font-size: 14px; font-weight: 700; }
.xq-l { display: none; }

/* weekday bars */
.xq-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; height: 220px; }
.xq-bars li { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 6px; }
.xq-bar-v { font-family: var(--hl-display); font-weight: 900; font-size: 18px; color: var(--pc); }
.xq-bar-t { position: relative; border-radius: 10px; background: repeating-linear-gradient(0deg, var(--hl-sky-2) 0 calc(10% - 1px), var(--hl-line) calc(10% - 1px) 10%); }
.xq-bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px; background: var(--pc); box-shadow: 0 8px 16px -10px var(--pc); }
.xq-bar-l { font-size: 13px; font-weight: 800; color: var(--hl-ink-2); }

/* before and after */
.xq-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xq-side { position: relative; padding: 18px 20px; border-radius: 18px; background: var(--hl-card); box-shadow: var(--hl-shadow-sm), inset 0 0 0 1px var(--hl-line); border-top: 6px solid var(--pc); }
.xq-side-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hl-ink-3); }
.xq-side-n { margin: 4px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.xq-side-n b { font-family: var(--hl-display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--pc); }
.xq-side-n small { font-size: 14px; color: var(--hl-ink-2); }
.xq-side ul { display: grid; gap: 6px; }
.xq-side li { font-size: 15px; color: var(--hl-ink-2); padding-left: 16px; position: relative; }
.xq-side li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.xq-side li b { color: var(--hl-ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .xq-day { grid-template-columns: 54px minmax(0, 1fr); }
  .xq-facts { grid-column: 2; }
}
@media (max-width: 980px) {
  .xq-tr { grid-template-columns: 40px minmax(0, 1.8fr) 70px minmax(0, 1fr) minmax(0, 1fr); }
  .xq-tr .c-k, .xq-th .c-k { display: none; }
}
@media (max-width: 760px) {
  .xq-answer { grid-template-columns: 62px 1fr; grid-template-areas: "big p" "pod pod"; }
  .xq-big-m { font-size: 10px; letter-spacing: 0.08em; }
  .xq-podium { gap: 6px; }
  .xq-podium a { grid-template-columns: 1fr auto; grid-template-areas: "d n" "s s" "h h"; gap: 0 4px; padding: 7px 8px; border-radius: 12px; }
  .xq-pod-n { width: 20px; height: 20px; font-size: 12px; border-radius: 6px; }
  .xq-pod-d { font-size: 12.5px; }
  .xq-pod-s { font-size: 11px; line-height: 1.1; }
  .xq-pod-s b { font-size: 20px; }
  .xq-pod-h { font-size: 11px; }
  #calendar .xd-lede { font-size: 14px; }
  .xq-heat { padding: 10px 8px; }
  .xq-cal, .xq-cal-h, .xq-cal-r { gap: 4px; }
  .xq-cal-h span { font-size: 10px; letter-spacing: 0.02em; }
  .xq-c { min-height: 50px; padding: 4px 5px; border-radius: 8px; }
  .xq-c-d { font-size: 10px; }
  .xq-c-s { font-size: 18px; }
  .xq-c-r { top: 3px; right: 3px; width: 15px; height: 15px; font-size: 9px; }
  .xq-c.is-top { box-shadow: inset 0 0 0 2px #ffd27a; }
  .xq-c.is-break { outline-offset: -3px; outline-width: 1.5px; }
  .xq-heat figcaption { font-size: 12px; }
  .xq-day { grid-template-columns: 38px minmax(0, 1fr); gap: 10px 10px; padding: 12px 12px 12px 10px; border-radius: 16px; }
  .xq-day-n { width: 36px; height: 36px; font-size: 19px; border-radius: 11px; }
  .xq-day h3 { font-size: 18px; }
  .xq-why { font-size: 14px; margin-top: 4px; line-height: 1.45; }
  .xq-facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .xq-facts div { padding: 7px 9px; }
  .xq-facts dd { font-size: 13px; }
  .xq-tr { grid-template-columns: 26px minmax(0, 1fr) 64px; grid-template-areas: "n p s" "n h s" "n h2 s"; gap: 2px 10px; padding: 10px 12px 10px 10px; }
  .xq-tr .c-n { grid-area: n; align-self: start; }
  .xq-tr .c-p { grid-area: p; }
  .xq-tr .c-p small { display: block; font-size: 12.5px; }
  .xq-tr .c-s { grid-area: s; align-items: flex-end; text-align: right; }
  .xq-tr .c-h { font-size: 12.5px; font-weight: 600; color: var(--hl-ink-2); }
  .xq-tr .c-h:nth-of-type(4) { grid-area: h; }
  .xq-tr .c-h:nth-of-type(5) { grid-area: h2; }
  .xq-l { display: inline; font-style: normal; font-weight: 800; color: var(--hl-ink-3); margin-right: 4px; }
  .xq-l::after { content: " "; }
  .xq-bars { height: 170px; gap: 6px; }
  .xq-bar-v { font-size: 14px; }
  .xq-bar-l { font-size: 11px; }
  .xq-split { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .xq-side { padding: 14px 16px; }
  .xq-side-n b { font-size: 40px; }
  .xq-pick .xd-mini-t small { white-space: normal; }
}
@media (max-width: 360px) {
  .xq-answer { grid-template-columns: 54px 1fr; }
  .xq-pod-d { font-size: 11.5px; }
  .xq-pod-h { font-size: 10px; }
  .xq-c-d { font-size: 9px; }
  .xq-c-s { font-size: 16px; }
}

/* ---------------------------------------------------------------- round two */
.xq { --q-light: #0a7262; --q-moderate: #1a68a0; --q-busy: #b4501b; --q-packed: #b02e15; }
.xq-range { font-weight: 700; color: var(--hl-ink); }
.xq-range-x { font-weight: 400; color: var(--hl-ink-2); }
.xq-c.is-nov:not(.is-past) { opacity: 1; }
.xq-facts dt { white-space: normal; overflow: visible; line-height: 1.2; }
.xq-f-crowd dd small { flex-basis: 100%; }

/* hours timeline on the park pick */
.xq-time { padding: 18px 20px 14px; }
.xq-time-axis { position: relative; height: 18px; margin: 0 190px 4px 96px; font-size: 12px; font-weight: 700; color: var(--hl-ink-3); }
.xq-time-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.xq-time-axis span:first-child { transform: none; }
.xq-time-axis span:last-child { transform: translateX(-100%); }
.xq-time-rows { display: grid; gap: 8px; }
.xq-time-rows li { display: grid; grid-template-columns: 86px minmax(0, 1fr) 180px; gap: 10px; align-items: center; }
.xd a.xq-time-d { font-weight: 800; font-size: 14px; color: var(--hl-ink); text-decoration: none; white-space: nowrap; }
.xd a.xq-time-d:hover { color: var(--hl-coral-deep); text-decoration: underline; }
.xq-time-t {
  position: relative; height: 38px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--hl-sky-2) 0 calc(25% - 1px), var(--hl-line) calc(25% - 1px) 25%);
}
.xq-time-b { position: absolute; height: 17px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; overflow: hidden; }
.xq-time-b span { font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xq-time-b.is-dl { top: 1px; background: #1a68a0; }
.xq-time-b.is-dca { bottom: 1px; background: #6a3ab0; }
.xq-time-b.is-pick { box-shadow: 0 0 0 2px #ffd27a; }
.xq-time-p { display: flex; flex-direction: column; min-width: 0; }
.xq-time-p b { font-size: 14px; }
.xq-time-p small { font-size: 12px; color: var(--hl-ink-3); line-height: 1.3; }
.xq-k.is-dl { background: #1a68a0; }
.xq-k.is-dca { background: #6a3ab0; margin-left: 10px; }
.xq-time figcaption .xq-k { margin-right: 4px; }

@media (max-width: 760px) {
  .xq-range-x { display: none; }
  .xq-podium a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d n" "s s" "h h"; }
  .xq-pod-d { display: flex; flex-direction: column-reverse; line-height: 1.1; white-space: nowrap; overflow: visible; }
  .xq-pod-d span { font-weight: 800; font-size: 13px; }
  .xq-pod-w { font-size: 10.5px; font-weight: 700; color: var(--hl-ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
  .xq-pod-s { margin-top: 2px; }
  .xq-time { padding: 12px 10px; }
  .xq-time-axis { margin: 0 0 4px; }
  .xq-time-rows { gap: 12px; }
  .xq-time-rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d p" "t t"; gap: 4px 8px; }
  .xq-time-d { grid-area: d; }
  .xq-time-t { grid-area: t; height: 40px; }
  .xq-time-p { grid-area: p; align-items: flex-end; text-align: right; }
  .xq-time-p small { display: none; }
  .xq-time-b span { font-size: 10.5px; }
}
@media (max-width: 360px) {
  .xq-pod-d span { font-size: 12px; }
}
.xq-leg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-right: 12px; }
.xq-heat figcaption .xq-leg .xq-k, .xq-heat figcaption .xq-leg .xq-k-pin { margin-left: 0; }
.xq-k.is-brk { background: var(--q-packed); outline: 1.5px dashed #fff; outline-offset: -3px; }
@media (max-width: 760px) {
  .xq-c-m { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1; margin-bottom: 1px; }
  .xq-c.has-m .xq-c-d { line-height: 1; }
  .xq-leg { margin-right: 8px; gap: 4px; }
}
.xq-time figcaption .xq-k { margin-left: 0; }
.xq-k.is-pickk { background: #fff; box-shadow: 0 0 0 2px #ffd27a; }
@media (max-width: 760px) {
  .xq-c-r { top: auto; bottom: 5px; right: 4px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .xq-podium a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d n" "s s" "h h"; gap: 2px 6px; }
  .xq-pod-d { display: flex; flex-direction: column-reverse; line-height: 1.15; white-space: nowrap; overflow: visible; }
  .xq-pod-d span { font-weight: 800; font-size: 15px; }
  .xq-pod-w { font-size: 11px; font-weight: 700; color: var(--hl-ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
}
