/* ==========================================================================
   MyLocalDev — demo modal + the six demo sites
   Demos respond to the modal's width with container queries, so they look
   right in the desktop browser frame and in the full-screen mobile sheet.
   ========================================================================== */

/* ---------- Modal shell ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: clamp(0.75rem, 2.5vw, 2rem); }
.demo-backdrop { position: absolute; inset: 0; background: rgba(2, 10, 14, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-window {
  position: relative; display: flex; flex-direction: column;
  width: min(1180px, 100%); height: min(880px, 100%);
  border: 1px solid var(--rule-strong); border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(94, 234, 212, 0.06);
  animation: demo-in 0.24s var(--ease);
}
@keyframes demo-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } }

.demo-chrome { flex: none; background: #08171f; border-bottom: 1px solid var(--rule); }
.demo-chrome-top { display: flex; align-items: flex-end; gap: 0.75rem; padding: 0.45rem 0.45rem 0 1rem; }
.demo-chrome-top .frame-dots { align-self: center; padding-bottom: 0.35rem; }
.demo-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  display: flex; align-items: center; gap: 0.5rem; flex: 0 1 190px; min-width: 0; min-height: 40px;
  padding: 0.45rem 0.85rem; border: 0; border-radius: 9px 9px 0 0;
  background: transparent; color: var(--mist); font-size: 0.84rem; text-align: left;
}
.demo-tab span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tab .fav { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.demo-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.demo-tab[aria-selected="true"] { background: #13262f; color: var(--ink); }
.demo-tab:focus-visible { outline-offset: -2px; }
.demo-chrome-top .demo-close { margin-bottom: 0.2rem; border-color: transparent; }
.demo-urlbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; background: #13262f; }
.demo-url { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; padding: 0.4rem 0.85rem; border-radius: 99px; background: #08171f; color: #b9cdd3; font: 0.82rem/1.3 var(--font-mono); }
.demo-url svg { width: 14px; height: 14px; flex: none; color: var(--phos); }
.demo-url span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-flag { flex: none; padding: 0.3rem 0.7rem; border: 1px solid var(--rule-strong); border-radius: 99px; color: var(--mist); font-size: 0.78rem; }

.demo-mobilebar { display: none; }
.demo-pager { display: none; }

.demo-viewport {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  container: demo / inline-size;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #fff; color: #17202a;
}
.demo-viewport:focus { outline: none; }

@media (max-width: 759px) {
  .demo-modal { padding: 0; }
  .demo-window { width: 100%; height: 100%; border: 0; border-radius: 0; animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
  .demo-chrome { display: none; }
  .demo-mobilebar {
    display: flex; align-items: center; gap: 0.75rem; flex: none;
    padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem 0.5rem 1rem;
    background: #08171f; border-bottom: 1px solid var(--rule); color: var(--ink);
  }
  .demo-mobile-title { flex: 1; min-width: 0; }
  .demo-mobile-title h2 { font-size: 1rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
  .demo-mobile-title span { display: block; color: var(--mist); font-size: 0.78rem; }
  .demo-pager {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; flex: none;
    padding: 0.5rem 0.5rem max(0.5rem, env(safe-area-inset-bottom)); background: #08171f; border-top: 1px solid var(--rule);
  }
  .demo-pager .btn { min-width: 0; justify-content: flex-start; gap: 0.35rem; padding-inline: 0.6rem; }
  .demo-pager .btn:last-child { justify-content: flex-end; }
  .demo-pager .btn span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Shared demo-site primitives ---------- */
.ds {
  --ds-bg: #fff; --ds-ink: #17202a; --ds-muted: #5a6670; --ds-line: #e3e6e8; --ds-band: #f5f6f7;
  --ds-accent: #1f6feb; --ds-accent-ink: #fff; --ds-radius: 10px;
  --phos: var(--ds-accent); --rule-strong: var(--ds-line);
  min-height: 100%; background: var(--ds-bg); color: var(--ds-ink);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.55;
}
.ds :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
.ds h3 { font-size: clamp(1.7rem, 1.2rem + 3cqi, 3rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.ds h4 { font-size: clamp(1.3rem, 1.1rem + 1.2cqi, 1.75rem); letter-spacing: -0.02em; }
.ds h5 { font-size: 1.1rem; letter-spacing: -0.01em; }
.ds-muted { color: var(--ds-muted); }
.ds-wrap { max-width: 1040px; margin-inline: auto; padding: clamp(1.75rem, 1rem + 4cqi, 3.5rem) clamp(1rem, 0.5rem + 3cqi, 2.5rem); }
.ds-wrap > h4 + p { margin-top: 0.4rem; }
.ds-band { max-width: none; background: var(--ds-band); }
.ds-band > * { max-width: 1040px; margin-inline: auto; }

.ds-nav {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 1rem;
  padding: 0.65rem clamp(1rem, 0.5rem + 3cqi, 2.5rem); background: var(--ds-bg); border-bottom: 1px solid var(--ds-line);
}
.ds-logo { flex: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.ds-nav nav { display: flex; gap: 0.25rem; margin-left: auto; }
.ds-nav nav button { min-height: 44px; padding: 0 0.7rem; border: 0; border-radius: 8px; background: none; color: var(--ds-muted); font-weight: 600; }
.ds-nav nav button:hover { color: var(--ds-ink); }
.ds-nav > .ds-btn { flex: none; }

.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.55rem 1.05rem; border: 1px solid var(--ds-accent); border-radius: var(--ds-radius);
  background: var(--ds-accent); color: var(--ds-accent-ink); font-weight: 650; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.ds-btn:hover { filter: brightness(1.08); }
.ds-btn-ghost { background: transparent; color: var(--ds-ink); border-color: var(--ds-line); }
.ds-btn-ghost:hover { border-color: var(--ds-accent); filter: none; }
.ds-chip {
  min-height: 44px; padding: 0.45rem 1rem; border: 1px solid var(--ds-line); border-radius: 99px;
  background: var(--ds-bg); color: var(--ds-ink); font-weight: 600; font-size: 0.9rem;
}
.ds-chip[aria-pressed="true"] { background: var(--ds-ink); color: var(--ds-bg); border-color: var(--ds-ink); }

/* Hero with a photo behind the text */
.ds-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 46cqi, 540px); color: #fff; isolation: isolate; }
.ds-hero-photo { position: absolute; inset: 0; z-index: -2; }
.ds-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.72) 100%); }
.ds-hero-in { width: 100%; max-width: 1040px; margin-inline: auto; padding: 2.5rem clamp(1rem, 0.5rem + 3cqi, 2.5rem) clamp(1.75rem, 1rem + 3cqi, 3rem); }
.ds-hero-in p { margin-top: 0.75rem; max-width: 56ch; font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.ds-hero-in h3 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.ds-hero-in .ds-btn { margin-top: 1.25rem; }

.ds-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 1rem + 2cqi, 2.5rem); align-items: center; }
.ds-split > div > p { margin-top: 0.5rem; }

/* Interactive tool layout: controls + result card */
.ds-tool { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.25rem, 1rem + 2cqi, 2.5rem); margin-top: 1.5rem; align-items: start; }
.ds-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 1rem; font-weight: 650; font-size: 0.95rem; }
.ds-label:first-child { margin-top: 0; }
.ds-label output { font-family: var(--font-mono); font-weight: 600; color: var(--ds-ink); }
.ds input[type="range"]::-webkit-slider-thumb { background: #fff; }
.ds-result {
  display: flex; flex-direction: column; gap: 0.45rem; padding: 1.4rem;
  border: 1px solid var(--ds-line); border-radius: calc(var(--ds-radius) + 4px); background: var(--ds-bg);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.35);
}
.ds-result > strong { font-size: clamp(1.6rem, 1.2rem + 2cqi, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ds-result small { font-size: 0.8rem; line-height: 1.45; }
.ds-result .ds-btn { margin-top: 0.5rem; }
.ds-note { padding: 0.65rem 0.8rem; border-radius: 8px; background: var(--ds-band); font-size: 0.9rem; }

/* Segmented radio groups */
.ds-seg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; border: 0; min-width: 0; }
.ds-seg legend { width: 100%; margin-bottom: 0.5rem; padding: 0; }
.ds-seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-seg label { position: relative; display: block; min-width: 0; cursor: pointer; }
.ds-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ds-seg span { display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; height: 100%; min-height: 48px; padding: 0.55rem 0.8rem; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-bg); font-weight: 600; font-size: 0.93rem; line-height: 1.3; }
.ds-seg small { font-weight: 400; font-size: 0.8rem; color: var(--ds-muted); }
.ds-seg input:checked + span { border-color: var(--ds-accent); box-shadow: inset 0 0 0 1px var(--ds-accent); background: color-mix(in srgb, var(--ds-accent) 7%, var(--ds-bg)); }
.ds-seg input:focus-visible + span { outline: 2px solid var(--ds-accent); outline-offset: 2px; }

.ds-check { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; min-height: 46px; padding: 0.5rem 0.75rem; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); cursor: pointer; }
.ds-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ds-accent); }
.ds-check em { font-style: normal; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ds-muted); }

/* Forms inside demos */
.ds-form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.ds-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.ds-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-form label { display: grid; gap: 0.35rem; min-width: 0; font-weight: 600; font-size: 0.92rem; }
.ds-form input:not([type="radio"]):not([type="checkbox"]), .ds-form select {
  width: 100%; min-width: 0; min-height: 46px; padding: 0.55rem 0.75rem;
  border: 1px solid #c9ced2; border-radius: var(--ds-radius); background: #fff; color: #17202a; font-size: 1rem;
}
.ds-form > .ds-btn { justify-self: start; }
.ds-error { color: #b42318; font-weight: 600; font-size: 0.92rem; }
.ds-success { padding: 1rem 1.1rem; border-left: 3px solid var(--ds-accent); border-radius: 0 var(--ds-radius) var(--ds-radius) 0; background: var(--ds-band); }
.ds-success p { margin-top: 0.35rem; }
.ds-success .ds-btn { margin-top: 0.9rem; }

.ds-foot { padding: 1.25rem clamp(1rem, 0.5rem + 3cqi, 2.5rem); border-top: 1px solid var(--ds-line); color: var(--ds-muted); font-size: 0.85rem; text-align: center; }

/* Before/after comparison */
.ds-compare { position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: calc(var(--ds-radius) + 4px); background: #d9dde0; user-select: none; }
.ds-compare .photo-slot { position: absolute; inset: 0; background: #c9cfd3; }
.ds-compare .cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.ds-compare .cmp-after.is-missing { background: #aab3b8; }
.ds-compare input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; }
.cmp-handle::after {
  content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: #17202a; font-size: 1.3rem; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.ds-compare input:focus-visible ~ .cmp-handle::after { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
.cmp-tag { position: absolute; top: 0.75rem; z-index: 2; padding: 0.25rem 0.6rem; border-radius: 6px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.8rem; font-weight: 600; pointer-events: none; }
.cmp-tag-l { left: 0.75rem; }
.cmp-tag-r { right: 0.75rem; }

/* Small dialog inside the demo window */
.ds-dialog-wrap { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1rem; }
.ds-dialog-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 20, 0.55); }
.ds-dialog {
  position: relative; width: min(520px, 100%); max-height: calc(100% - 1rem); overflow-y: auto;
  padding: 1.4rem; border-radius: 14px; background: #fff; color: #17202a; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  animation: demo-in 0.2s var(--ease);
}
.ds-dialog:focus { outline: none; }
.ds-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ds-x { width: 44px; height: 44px; border: 0; border-radius: 8px; background: #f1f2f3; font-size: 1.5rem; line-height: 1; color: #17202a; }
.ds-osteria-dialog { --ds-accent: #2f4a3b; --ds-accent-ink: #fff; --ds-band: #f6efe2; --ds-line: #e4dccb; --ds-bg: #fff; --ds-radius: 4px; font-family: var(--font-sans); }
.ds-osteria-dialog h5 { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; }

/* Container queries: the demo adapts to the modal, not the screen */
@container demo (max-width: 760px) {
  .ds-split, .ds-tool { grid-template-columns: minmax(0, 1fr); }
  .ds-nav nav { display: none; }
  .ds-nav > .ds-btn { margin-left: auto; }
}
@container demo (max-width: 520px) {
  .ds-seg-3 { grid-template-columns: minmax(0, 1fr); }
  .ds-row, .ds-row-3 { grid-template-columns: minmax(0, 1fr); }
  .ds-nav { gap: 0.6rem; }
  .ds-nav > .ds-btn { padding-inline: 0.75rem; font-size: 0.88rem; }
  .ds-logo { font-size: 1rem; }
}
@container demo (max-width: 380px) {
  .ds-seg-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ======================= 1. Apex Coastal ======================= */
.ds-apex { --ds-ink: #13202e; --ds-muted: #4f5d6b; --ds-accent: #d9571c; --ds-band: #f4ede1; --ds-line: #e1dccf; --ds-radius: 4px; }
.ds-apex .ds-logo { font-weight: 900; letter-spacing: 0.06em; color: #10263f; }
.ds-apex .ds-logo b { margin-left: 0.35em; color: var(--ds-accent); font-weight: 900; }
.ds-apex .ds-hero::after { background: linear-gradient(90deg, rgba(16, 38, 63, 0.92) 0%, rgba(16, 38, 63, 0.55) 55%, rgba(16, 38, 63, 0.1) 100%); }
.ds-apex .ds-hero .photo-slot.is-missing { background: #10263f; }
.ds-apex h3 { text-transform: uppercase; font-weight: 900; letter-spacing: -0.01em; }
.apex-license { display: inline-flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0 0 1rem !important; padding: 0.35rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 4px; font-size: 0.85rem !important; font-weight: 700; }
.apex-license span + span { opacity: 0.8; font-weight: 500; }
.apex-code { margin-top: 1.25rem; padding: 1rem 1.1rem; border-left: 4px solid var(--ds-accent); background: var(--ds-band); }
.apex-code p { margin-top: 0.3rem; font-size: 0.93rem; color: var(--ds-muted); }
.ds-apex .ds-result > strong { color: #10263f; }

/* ======================= 2. Osteria Mare ======================= */
.ds-osteria { --ds-bg: #fbf7ef; --ds-ink: #1f2a22; --ds-muted: #5b6458; --ds-accent: #2f4a3b; --ds-band: #f2eadb; --ds-line: #e4dccb; --ds-radius: 4px; }
.ds-osteria .ds-logo, .ds-osteria h3, .ds-osteria h4, .ds-osteria h5 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.ds-osteria .ds-logo { font-style: italic; font-size: 1.45rem; }
.ds-osteria .ds-hero .photo-slot.is-missing { background: #233a2f; }
.ds-osteria h3 { letter-spacing: -0.01em; }
.os-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.os-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 2rem; margin-top: 1.5rem; align-items: start; }
.os-menu { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--ds-line); }
.os-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--ds-line); }
.os-item-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.os-item-head strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 400; }
.os-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.os-item p { margin-top: 0.2rem; color: var(--ds-muted); font-size: 0.93rem; }
.os-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem !important; }
.os-tag { padding: 0.1rem 0.5rem; border-radius: 99px; font-size: 0.74rem; font-weight: 600; }
.os-tag-gf { background: #e5eddc; color: #2f4a1f; }
.os-tag-local { background: #dbe9ee; color: #164454; }
.os-tag-chef { background: #f1e2c6; color: #6b4610; }
.os-none { padding: 1.25rem 0; }
.os-bill { position: sticky; top: 72px; padding: 1.25rem; border: 1px solid var(--ds-line); background: #fff; }
.os-bill ul { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.os-bill li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.os-qty { display: inline-flex; align-items: center; gap: 0.25rem; }
.os-qty button { width: 32px; height: 32px; border: 1px solid var(--ds-line); border-radius: 4px; background: var(--ds-bg); color: var(--ds-ink); line-height: 1; }
.os-line { min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.os-empty { margin-top: 0.75rem; font-size: 0.9rem; }
.os-totals { margin: 1rem 0; padding-top: 0.75rem; border-top: 1px solid var(--ds-line); display: grid; gap: 0.25rem; }
.os-totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.os-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.os-grand { padding-top: 0.4rem; font-weight: 700; font-size: 1.05rem !important; }
.os-bill .ds-btn { width: 100%; }
@container demo (max-width: 760px) {
  .os-layout { grid-template-columns: minmax(0, 1fr); }
  .os-bill { position: static; }
}
@media (hover: none) { .os-qty button { width: 44px; height: 44px; } }

/* ======================= 3. Pelican Point ======================= */
.ds-pelican { --ds-bg: #fbfaf6; --ds-ink: #1d3a4a; --ds-muted: #566a75; --ds-accent: #1d3a4a; --ds-band: #f1ede4; --ds-line: #e3ded2; --ds-radius: 6px; }
.ds-pelican .ds-logo, .ds-pelican h3, .ds-pelican h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.ds-pelican .ds-logo i { font-weight: 400; color: #9a6230; }
.pp-intro { padding-bottom: 0; }
.pp-intro p { margin-top: 0.6rem; }
.pp-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pp-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.pp-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--ds-line); border-radius: 10px; background: #fff; }
.pp-card[hidden] { display: none !important; }
.pp-photo { aspect-ratio: 3 / 2; background: #d7dcd6; }
.pp-photo.is-missing { background: #e4e1d8; }
.pp-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem; flex: 1; font-size: 0.92rem; }
.pp-area { color: #9a6230; font-weight: 700; font-size: 0.8rem; }
.pp-price { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.pp-body .ds-btn { margin-top: 0.75rem; align-self: flex-start; }
.pp-bar { display: flex; height: 12px; margin: 0.4rem 0; border-radius: 99px; overflow: hidden; background: var(--ds-line); }
.pp-bar span { display: block; transition: width 0.3s; }
#pp-bar-pi, .sw-pi { background: #1d3a4a; }
#pp-bar-tax, .sw-tax { background: #c99a62; }
.pp-break { margin: 0.25rem 0 0.5rem; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.pp-break div { display: flex; justify-content: space-between; gap: 1rem; }
.pp-break dt { display: flex; align-items: center; gap: 0.45rem; }
.pp-break dt i { width: 10px; height: 10px; border-radius: 3px; }
.pp-break dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
@container demo (max-width: 900px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container demo (max-width: 560px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ======================= 4. Velocity ======================= */
.ds-velocity { --ds-bg: #0e0e11; --ds-ink: #f2f2f4; --ds-muted: #a4a4ae; --ds-accent: #ff3b30; --ds-accent-ink: #fff; --ds-band: #16161b; --ds-line: #2a2a31; --ds-radius: 6px; }
.ds-velocity .ds-logo { font-style: italic; font-weight: 900; letter-spacing: -0.02em; }
.ds-velocity .ds-logo b { margin-left: 0.3em; color: var(--ds-accent); }
.ds-velocity h3, .ds-velocity h4 { font-style: italic; font-weight: 850; }
.ds-velocity .ds-hero .photo-slot.is-missing { background: #16161b; }
.ds-velocity .ds-result { background: #0e0e11; box-shadow: none; }
.ds-velocity .ds-seg span, .ds-velocity .ds-check { background: #0e0e11; }
.ds-velocity .ds-seg input:checked + span { background: rgba(255, 59, 48, 0.1); }
.ds-velocity .ds-note { background: #1d1d23; }
.ds-velocity .ds-compare { background: #1d1d23; }
.ds-velocity .ds-compare .photo-slot { background: #1d1d23; }
.ds-velocity .ds-compare .cmp-after.is-missing { background: #2a2a31; }
.vel-extras { display: grid; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; border: 0; min-width: 0; }
.vel-extras legend { width: 100%; margin-bottom: 0.5rem; padding: 0; }
.vel-lines { list-style: none; display: grid; gap: 0.3rem; margin: 0.4rem 0; padding: 0.6rem 0; border-block: 1px solid var(--ds-line); font-size: 0.9rem; }
.vel-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.vel-lines li span:last-child { font-family: var(--font-mono); white-space: nowrap; }

/* ======================= 5. Vanguard ======================= */
.ds-vanguard { --ds-bg: #fbf9f4; --ds-ink: #14213d; --ds-muted: #535d70; --ds-accent: #14213d; --ds-band: #f1ece1; --ds-line: #e2dccd; --ds-radius: 2px; }
.ds-vanguard .ds-logo, .ds-vanguard h3, .ds-vanguard h4, .ds-vanguard h5 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.ds-vanguard .ds-logo { letter-spacing: 0.12em; }
.ds-vanguard .ds-logo small { display: block; letter-spacing: 0.02em; font-size: 0.72rem; color: var(--ds-muted); }
.ds-vanguard .ds-hero::after { background: linear-gradient(180deg, rgba(20, 33, 61, 0.2), rgba(20, 33, 61, 0.88)); }
.ds-vanguard .ds-hero .photo-slot.is-missing { background: #14213d; }
.vg-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 1.5rem; counter-reset: s; }
.vg-steps li { position: relative; min-width: 0; }
.vg-steps li::after { content: ""; position: absolute; top: 22px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; background: var(--ds-line); }
.vg-steps li:last-child::after { display: none; }
.vg-steps li.is-done::after { background: #a8823a; }
.vg-steps button { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; min-height: 44px; padding: 0 0.4rem 0.6rem; border: 0; background: none; color: var(--ds-muted); font-size: 0.88rem; font-weight: 600; text-align: center; line-height: 1.3; }
.vg-n { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ds-line); border-radius: 50%; background: var(--ds-bg); color: var(--ds-ink); font-family: Georgia, serif; font-size: 1.1rem; }
.vg-steps li.is-done .vg-n { border-color: #a8823a; background: #a8823a; color: #fff; }
.vg-steps [aria-selected="true"] { color: var(--ds-ink); }
.vg-steps [aria-selected="true"] .vg-n { border-color: var(--ds-ink); background: var(--ds-ink); color: #fff; }
.vg-panel { margin-top: 1rem; padding: 1.4rem; border: 1px solid var(--ds-line); background: #fff; }
.vg-panel:focus-visible { outline: 2px solid var(--ds-accent); }
.vg-panel p { margin-top: 0.5rem; }
.vg-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.vg-panel dt { font-weight: 700; font-size: 0.85rem; }
.vg-panel dd { margin: 0.2rem 0 0; color: var(--ds-muted); font-size: 0.93rem; }
.vg-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.vg-checks { list-style: none; display: grid; gap: 0.6rem; }
.vg-switch { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0.85rem; align-items: center; min-height: 56px; padding: 0.75rem 1rem; border: 1px solid var(--ds-line); background: #fff; cursor: pointer; }
.vg-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vg-track { position: relative; width: 48px; height: 28px; border-radius: 99px; background: #cfd3db; transition: background-color 0.2s; }
.vg-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease); }
.vg-switch input:checked + .vg-track { background: #2e6b4f; }
.vg-switch input:checked + .vg-track::after { transform: translateX(20px); }
.vg-switch input:focus-visible + .vg-track { outline: 2px solid var(--ds-accent); outline-offset: 3px; }
.ds-vanguard .ds-result strong small { font-size: 1rem; color: var(--ds-muted); font-weight: 400; }
.vg-meter { height: 10px; border-radius: 99px; background: #e9e5da; overflow: hidden; }
.vg-meter span { display: block; height: 100%; border-radius: inherit; transition: width 0.35s var(--ease), background-color 0.35s; }
.vg-meter span[data-level="low"] { background: #2e6b4f; }
.vg-meter span[data-level="mid"] { background: #b7791f; }
.vg-meter span[data-level="high"] { background: #b42318; }
.vg-level { font-weight: 700; }
.vg-level[data-level="low"] { color: #2e6b4f; }
.vg-level[data-level="mid"] { color: #8a5a12; }
.vg-level[data-level="high"] { color: #b42318; }
.vg-fixes { margin: 0.25rem 0 0.5rem 1.1rem; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--ds-muted); }
@container demo (max-width: 620px) {
  .vg-steps { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .vg-steps li::after { display: none; }
  .vg-steps button { flex-direction: row; text-align: left; padding: 0; }
  .vg-panel dl { grid-template-columns: minmax(0, 1fr); }
}

/* ======================= 6. Sailfish ======================= */
.ds-sailfish { --ds-bg: #ffffff; --ds-ink: #06364d; --ds-muted: #4c6a78; --ds-accent: #0a7ea8; --ds-band: #eef7fa; --ds-line: #d5e7ee; --ds-radius: 8px; }
.ds-sailfish .ds-logo { color: #06364d; font-weight: 900; }
.ds-sailfish .ds-logo b { margin-left: 0.3em; color: var(--ds-accent); font-weight: 600; }
.ds-sailfish .ds-hero .photo-slot.is-missing { background: #0a4c6b; }
.sf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; }
.sf-sim { padding: 0.2rem 0.6rem; border-radius: 99px; background: #fff4d1; color: #6b4e00; font-size: 0.8rem; font-weight: 600; }
.sf-cond { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.sf-stat { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; padding: 1rem; border: 1px solid var(--ds-line); border-radius: 10px; background: var(--ds-band); font-size: 0.88rem; }
.sf-stat strong { font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sf-dir { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ds-muted); }
.sf-dir svg { width: 18px; height: 18px; color: var(--ds-accent); transition: transform 0.6s var(--ease); }
.sf-tide { margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--ds-line); border-radius: 10px; }
.sf-tide svg { width: 100%; height: auto; overflow: visible; }
.sf-tide figcaption { margin-top: 0.4rem; font-size: 0.82rem; }
.sf-boat-photo { aspect-ratio: 3 / 2; border-radius: 10px; background: #cfe3ea; }
.sf-boat-photo.is-missing { background: #0a4c6b; }
.sf-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.25rem; margin: 1rem 0 0; }
.sf-specs dt { color: var(--ds-muted); font-size: 0.82rem; }
.sf-specs dd { margin: 0.1rem 0 0; font-weight: 650; }
@container demo (max-width: 760px) { .sf-cond { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container demo (max-width: 360px) { .sf-cond, .sf-specs { grid-template-columns: minmax(0, 1fr); } }

/* Photos inside demos fill their frames */
.ds .photo-slot > img.photo { width: 100%; height: 100%; object-fit: cover; }
.ds .photo-slot.is-missing::after { content: none; }
.pp-card { transition: box-shadow 0.3s, transform 0.3s; }
.pp-card:hover { box-shadow: 0 18px 40px -26px rgba(29, 58, 74, 0.6); transform: translateY(-2px); }
.pp-photo { position: relative; }
.pp-badge { position: absolute; left: 0.6rem; top: 0.6rem; z-index: 1; padding: 0.2rem 0.55rem; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: #1d3a4a; font-size: 0.74rem; font-weight: 700; }
.sf-tide text { font-family: var(--font-sans); }
.demo-tab .fav { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
@container demo (max-width: 520px) {
  .sf-stat strong { font-size: 1.2rem; }
  .sf-stat { padding: 0.8rem; }
}
