/* ============================================================================
   dsr.css, Best Restaurants at Disney Springs ranked feature.
   Brand-register hero (a dusk waterfront under string lights, with the Aerophile
   balloon and the Paddlefish steamboat) over a product-register tool (a sortable,
   filterable restaurant ranker). Built on v1.css tokens; the twilight blue night
   and warm string-light gold are local to this page. OKLCH throughout. Mirrors
   obb.css / mvmcp.css structure with a dsr- prefix.
   ========================================================================== */

.dsr {
  --dsr-night:  oklch(24% 0.055 250);   /* twilight blue */
  --dsr-night2: oklch(30% 0.060 240);
  --dsr-deep:   oklch(16% 0.045 255);
  --dsr-gold:   oklch(82% 0.135 85);    /* warm string-light gold */
  --dsr-glow:   oklch(82% 0.135 85 / 0.55);
  --dsr-water:  oklch(60% 0.075 215);   /* lake reflection teal */
}

.is-hidden { display: none !important; }

/* ----------------------------------------------------------------- the hero */
.dsr-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 78% 22%, var(--dsr-glow), transparent 52%),
    linear-gradient(180deg,
      oklch(26% 0.060 255) 0%,
      oklch(30% 0.065 245) 44%,
      oklch(17% 0.045 255) 100%);
}
.dsr-hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1; pointer-events: none;
}
/* a soft warm reflection breathing off the water at the foot of the hero */
.dsr-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 46% at 46% 92%, oklch(60% 0.08 215 / 0.40), transparent 70%);
  opacity: 0.6;
  animation: dsr-breathe 9s ease-in-out infinite;
}
@keyframes dsr-breathe {
  0%, 100% { opacity: 0.42; }
  50%      { opacity: 0.78; }
}

.dsr-skyline {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  width: 100%; height: clamp(130px, 27vw, 260px);
  pointer-events: none;
  filter: drop-shadow(0 0 24px oklch(82% 0.135 85 / 0.28));
}
.dsr-skyline svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dsr-fill   { fill: oklch(13% 0.035 258); }
.dsr-window { fill: var(--dsr-gold); opacity: 0.92; }
.dsr-balloon {
  fill: var(--dsr-gold);
  filter: drop-shadow(0 0 20px oklch(82% 0.135 85 / 0.6));
  animation: dsr-bob 11s ease-in-out infinite;
}
@keyframes dsr-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.dsr-wire  { fill: none; stroke: oklch(70% 0.02 250 / 0.5); stroke-width: 1.4; }
.dsr-bulbs circle { fill: var(--dsr-gold); filter: drop-shadow(0 0 6px oklch(82% 0.135 85 / 0.8)); }
.dsr-bulbs circle:nth-child(odd) { animation: dsr-twinkle 4s ease-in-out infinite; }
.dsr-bulbs circle:nth-child(3n)  { animation: dsr-twinkle 5.5s ease-in-out infinite; }
@keyframes dsr-twinkle {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.5; }
}
.dsr-water {
  fill: var(--dsr-water); opacity: 0.32;
}

.dsr-hero-in {
  position: relative; z-index: 3;
  padding-block: clamp(54px, 9vw, 100px) clamp(160px, 25vw, 250px);
  text-align: center;
}
.dsr-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.10em; text-transform: uppercase; color: oklch(96% 0.02 90);
  background: oklch(100% 0 0 / 0.08); border: 1px solid oklch(100% 0 0 / 0.16);
  padding: 7px 14px; border-radius: var(--r-pill); backdrop-filter: blur(3px);
}
.dsr-hero h1 {
  font-size: clamp(32px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.04; margin: 18px auto 0; max-width: 20ch; text-wrap: balance;
  color: oklch(98% 0.015 90);
  text-shadow: 0 2px 30px oklch(15% 0.05 255 / 0.7);
}
.dsr-hero .dsr-standfirst {
  margin: 16px auto 0; max-width: 62ch; font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.55; color: oklch(93% 0.02 90);
}
.dsr-hero-cta { margin-top: 26px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.dsr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
}
.dsr-btn-gold { background: var(--brand); color: var(--brand-ink); box-shadow: var(--halo); }
.dsr-btn-gold:hover { background: var(--brand-press); text-decoration: none; }
.dsr-btn-ghost { background: oklch(100% 0 0 / 0.06); color: oklch(97% 0.02 90); border-color: oklch(100% 0 0 / 0.22); }
.dsr-btn-ghost:hover { background: oklch(100% 0 0 / 0.12); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .dsr-hero::before, .dsr-balloon, .dsr-bulbs circle { animation: none; }
}

/* -------------------------------------------------------- answer block (AEO) */
.dsr-answer {
  margin-top: clamp(20px, 4vw, 32px);
  padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.dsr-answer-lead { margin: 0; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--ink); }
.dsr-answer-lead b { color: var(--brand); }
.dsr-updated { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* ----------------------------------------------------------- quick-pick grid */
.dsr-picks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
  margin-top: 22px;
}
.dsr-pick {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 15px;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.dsr-pick:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.dsr-pick-label {
  font-family: var(--display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.dsr-pick-name { font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.8vw, 19px); color: var(--ink); line-height: 1.15; }
.dsr-pick-note { color: var(--ink-2); font-size: 12.5px; }
.dsr-pick.is-top   { border-color: oklch(80% 0.13 85 / 0.55); }
.dsr-pick.is-top .dsr-pick-label { color: var(--brand); }
.dsr-pick.is-quick { border-color: oklch(81% 0.16 152 / 0.45); }
.dsr-pick.is-book  { border-color: oklch(73% 0.19 13 / 0.45); }

/* ----------------------------------------------------------------- controls */
.dsr-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin: 24px 0 18px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.dsr-ctl-group { display: flex; align-items: center; gap: 8px; }
.dsr-ctl-cap {
  font-family: var(--display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.dsr-select {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm, 10px);
  padding: 8px 10px; cursor: pointer;
}
.dsr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dsr-chip {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 13px; cursor: pointer; transition: all .14s ease;
}
.dsr-chip:hover { border-color: var(--brand); color: var(--ink); }
.dsr-chip.is-on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.dsr-ctl-tail { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dsr-decide {
  font: inherit; font-size: 13px; font-weight: 800; color: var(--brand-ink);
  background: var(--brand); border: 1px solid var(--brand); border-radius: var(--r-pill);
  padding: 8px 15px; cursor: pointer; box-shadow: var(--halo);
}
.dsr-decide:hover { background: var(--brand-press); }
.dsr-clear {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; cursor: pointer;
}
.dsr-clear:hover { border-color: var(--brand); color: var(--ink); }
.dsr-count { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.dsr-count b { color: var(--ink); }

/* --------------------------------------------------------------- card grid */
.dsr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.dsr-card {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 16px 15px; scroll-margin-top: 90px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dsr-card:hover { border-color: var(--brand); box-shadow: var(--halo); transform: translateY(-2px); }
.dsr-card.is-flash { border-color: var(--brand); box-shadow: 0 0 0 3px oklch(80% 0.13 85 / 0.35); }
.dsr-card-top { display: flex; align-items: center; gap: 9px; }
.dsr-rank {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  color: var(--brand-ink); background: var(--brand); border-radius: 999px; padding: 0 8px;
}
.dsr-toppick {
  font-family: var(--display); font-weight: 800; font-size: 10.5px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.dsr-price { font-weight: 800; color: var(--dsr-water); letter-spacing: 1px; margin-left: auto; }

/* featured top tier — make the ranking visible in the grid itself */
.dsr-card.is-featured { background: var(--surface-2); border-color: oklch(84% 0.13 86 / 0.42); }
.dsr-card.is-featured .dsr-rank { min-width: 34px; height: 34px; font-size: 16px; }
.dsr-card.is-featured .dsr-name { font-size: 21px; }
.dsr-card.is-top1 { background: var(--surface-3); border-color: oklch(84% 0.13 86 / 0.6); }
.dsr-card.is-top1 .dsr-name { font-size: clamp(23px, 2.6vw, 28px); }
.dsr-card.is-top1 .dsr-take { font-size: 16.5px; line-height: 1.55; color: var(--ink); max-width: 60ch; }
/* the #1 earns a hero footprint, but only in the default ranking view (no gaps on sort)
   and only where the grid actually has two columns (a single-column phone keeps it full width) */
@media (min-width: 640px) {
  .dsr-grid.is-ranksort .dsr-card.is-top1 { grid-column: span 2; }
}

/* one reading-view waypoint between the podium and the long tail */
.dsr-tier {
  grid-column: 1 / -1;
  margin: 14px 0 2px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.dsr-tier h3 {
  font-family: var(--display); font-size: 14px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0;
}
.dsr-tier p { margin: 0; font-size: 13px; color: var(--ink-3); }

/* the whole card opens its detail modal */
.dsr-card { cursor: pointer; }
.dsr-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dsr-card-more {
  align-self: flex-start; margin-top: 1px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 5px;
}
.dsr-card-more::after { content: "\2192"; transition: transform .15s ease; }
.dsr-card:hover .dsr-card-more, .dsr-card:focus-visible .dsr-card-more { color: var(--brand); }
.dsr-card:hover .dsr-card-more::after { transform: translateX(2px); }
.dsr-name { margin: 2px 0 0; font-size: 19px; font-weight: 800; line-height: 1.18; color: var(--ink); }
.dsr-meta { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.dsr-take { margin: 4px 0 2px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.dsr-tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.dsr-svc, .dsr-book, .dsr-badge {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.dsr-svc-table  { background: oklch(60% 0.075 215 / 0.14); color: var(--ink); border-color: oklch(60% 0.075 215 / 0.4); }
.dsr-svc-quick  { background: oklch(81% 0.16 152 / 0.14); color: var(--ink); border-color: oklch(81% 0.16 152 / 0.4); }
.dsr-svc-lounge { background: oklch(72% 0.14 320 / 0.14); color: var(--ink); border-color: oklch(72% 0.14 320 / 0.4); }
.dsr-book { color: var(--ink-2); }
.dsr-book.bk-tough { background: oklch(73% 0.19 13 / 0.12); color: oklch(55% 0.19 13); border-color: oklch(73% 0.19 13 / 0.4); }
.dsr-book.bk-plan  { background: oklch(80% 0.13 70 / 0.12); border-color: oklch(80% 0.13 70 / 0.4); }
.dsr-book.bk-open  { background: oklch(81% 0.16 152 / 0.10); border-color: oklch(81% 0.16 152 / 0.35); }
.dsr-badge { color: var(--ink-3); background: var(--bg); }

.dsr-empty { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 15px; }

/* plan-the-day rail — the ranker is no longer a dead end */
.dsr-plan {
  margin-top: clamp(22px, 4vw, 34px);
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.dsr-plan h2 { font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ink); }
.dsr-plan p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.dsr-plan-links { display: flex; flex-wrap: wrap; gap: 10px; }
.dsr-plan-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 10px 16px; text-decoration: none;
}
.dsr-plan-links a span { color: var(--brand); }
.dsr-plan-links a:hover { border-color: var(--brand); text-decoration: none; }
@media (min-width: 720px) {
  .dsr-plan { grid-template-columns: 1fr auto; align-items: center; }
}

/* ------------------------------------------------------------------- prose */
.dsr-prose h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.dsr-prose h3 { font-size: 17px; font-weight: 800; margin: 18px 0 4px; color: var(--ink); }
.dsr-prose p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; max-width: 70ch; }
.dsr-ranklist { margin: 0; padding-left: 22px; max-width: 72ch; }
.dsr-ranklist li { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dsr-ranklist li span { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.dsr-links { margin: 6px 0 0; padding-left: 20px; }
.dsr-links li { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; }

/* --------------------------------------------------------------------- FAQ */
.dsr-faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 4px 16px; margin-bottom: 10px;
}
.dsr-faq summary {
  font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink);
  padding: 12px 0; cursor: pointer; list-style: none;
}
.dsr-faq summary::-webkit-details-marker { display: none; }
.dsr-faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 20px; line-height: 1; }
.dsr-faq details[open] summary::after { content: "−"; }
.dsr-faq p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }

@media (max-width: 640px) {
  .dsr-ctl-tail { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------ detail modal (dialog) */
.dsr-modal {
  border: none; padding: 0; background: transparent; color: var(--ink);
  width: min(560px, 92vw); max-height: 88vh;
}
.dsr-modal::backdrop { background: oklch(14% 0.04 270 / 0.66); backdrop-filter: blur(2px); }
.dsr-modal-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 30px);
  max-height: 88vh; overflow-y: auto;
}
.dsr-modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.dsr-modal-x:hover { color: var(--ink); border-color: var(--brand); }
.dsr-modal-card .dsr-card-top { padding-right: 40px; }  /* keep the price clear of the close button */
.dsr-modal-name {
  font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 0; color: var(--ink);
  max-width: 22ch;
}
.dsr-modal-meta {
  margin: 5px 0 0; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3);
}
.dsr-modal-tags { margin-top: 13px; }
.dsr-modal-take { margin: 15px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.dsr-modal-order { margin-top: 18px; }
.dsr-modal-order h3 {
  font-family: var(--display); font-size: 12.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); margin: 0 0 9px;
}
.dsr-modal-order ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dsr-modal-order li { font-size: 15px; line-height: 1.4; color: var(--ink); }
.dsr-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dsr-modal-note { margin: 13px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }

.dsr-modal[open] { animation: dsr-modal-in .22s cubic-bezier(0.22, 1, 0.36, 1); }
.dsr-modal[open]::backdrop { animation: dsr-backdrop-in .2s ease; }
@keyframes dsr-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dsr-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .dsr-modal[open], .dsr-modal[open]::backdrop { animation: none; }
}

/* bottom sheet on phones */
@media (max-width: 560px) {
  .dsr-modal { width: 100vw; max-width: 100vw; margin: auto auto 0; }
  .dsr-modal-card { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 86vh; }
  @keyframes dsr-modal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
