/* ==========================================================================
   Platform Roadmap (/roadmap)
   The page's own parts on top of the shared Toybox Calm look (assets/css/toybox-calm.css, loaded first by
   _ToyboxCalmHead): the status dots and counts in the header, the status filters, and the timeline (year pills on a
   dashed rail, an icon tile per item and its card). Every class starts with prm-. Views/Public/Roadmap.cshtml links it
   in its FinalHeader section with a ?v= cache buster from StaticAssetVersion; Scripts/platform-roadmap/platform-roadmap.js
   runs the filters.
   ========================================================================== */

/* A status's colour: in progress yellow, pending coral, complete green (an ink ring keeps each one visible) */
.prm-dot { flex: none; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--tc-ink); border-radius: 50%; background: var(--tc-sky-2); }
.prm-dot--progress { background: var(--tc-yellow); }
.prm-dot--pending { background: var(--tc-coral); }
.prm-dot--complete { background: var(--tc-green); }

/* The counts in the header */
.prm-stats .tc-chip { gap: 6px; }
.prm-stats b { font-variant-numeric: tabular-nums; }

/* The intro column (sticky beside the timeline on desktop): the heading, the filters and the count */
.prm-main { min-width: 0; }
@media (min-width: 992px) and (max-width: 1199.98px) { .prm-split { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; } }
/* The base makes the intro sticky from 992px; here it waits until the page has loaded (platform-roadmap.js adds
   prm-split--sticky on load), so a link to #DevelopmentTimeline or #roadmapFilters lands on the heading instead of
   drifting down the timeline while Chrome re-applies the fragment during loading */
@media (min-width: 992px) {
  .tc-root .prm-intro { position: static; }
  .tc-root .prm-split--sticky .prm-intro { position: sticky; }
}
.prm-filters { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 6px 0 14px; }
.tc-root .prm-filter { min-height: 44px; padding: 8px 15px 7px; cursor: pointer; }
/* The base chip link turns yellow on focus and hover; here yellow means "pressed", so a focused filter stays white
   (its focus ring shows it) and a hovered one turns butter */
.tc-root .prm-filter:focus { background: #fff; }
.tc-root .prm-filter:hover { background: var(--tc-butter); }
.tc-root .prm-filter[aria-pressed="true"] { background: var(--tc-yellow); }
.prm-shown { margin: 0; font-weight: 600; color: var(--tc-ink-2); }
.prm-shown b { color: var(--tc-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 991.98px) { .prm-intro { margin-bottom: 4px; } }

/* The related links: the base chip link is 40px tall; 44px here, a full tap target */
.tc-root .prm-related .tc-chiplink { min-height: 44px; }

.prm-empty { margin: 0 0 18px; padding: 30px 18px; border: 2px dashed rgba(47, 42, 79, .35); border-radius: 18px; text-align: center; font: 600 1.0625rem/1.4 var(--tc-display); color: var(--tc-ink-2); }

/* ---------- The timeline ---------- */
.prm-timeline { position: relative; }
.prm-year-group + .prm-year-group { margin-top: 34px; }
.prm-year { margin: 0 0 16px; }
.prm-year span { display: inline-flex; align-items: center; justify-content: center; width: 68px; padding: 5px 0 4px; border: 3px solid var(--tc-ink); border-radius: 999px; background: var(--tc-night); box-shadow: 0 3px 0 var(--tc-ink); font: 700 1.125rem/1.2 var(--tc-display); font-variant-numeric: tabular-nums; color: #fff; }
.prm-items { display: grid; gap: 18px; }

/* An item: phones put the icon tile beside the title inside the card */
.prm-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; padding: 16px 16px 18px; background: #fff; border: 3px solid var(--tc-ink); border-radius: 20px; box-shadow: 0 4px 0 var(--tc-ink); }
.prm-item > .prm-item__meta, .prm-item > .prm-item__desc { grid-column: 1 / -1; }
.prm-item__icon { grid-row: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--tc-ink); border-radius: 13px; background: var(--a, var(--tc-sky)); background-image: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%); box-shadow: 0 3px 0 var(--tc-ink); font-size: 1.3rem; color: var(--tc-ink); }
.tc-root .prm-item__title { margin: 0; font: 700 1.1875rem/1.25 var(--tc-display); color: var(--tc-ink); overflow-wrap: anywhere; }
/* A title that links to its product page. The vertical padding (an inline box, so the layout doesn't move) makes each
   line of the link a 44px+ tap target; with keyboard focus it goes, so the focus ring stays tight around the words */
.tc-root .prm-item__link { padding: 11px 0; color: var(--tc-ink); text-decoration: underline; text-decoration-color: var(--tc-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tc-root .prm-item__link:focus-visible { padding: 0; }
.tc-root .prm-item__link:hover, .tc-root .prm-item__link:focus { color: var(--tc-ink); text-decoration-color: var(--tc-coral); }
.prm-item__link i { margin-left: 3px; font-size: 1.15em; vertical-align: -3px; }
.prm-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 8px; }
.prm-item__cat, .prm-item__status { flex: none; }
.prm-item__eta { font: 600 .875rem/1.4 var(--tc-display); font-variant-numeric: tabular-nums; color: var(--tc-muted); }
.prm-item__eta del { text-decoration-thickness: 1.5px; text-decoration-color: rgba(47, 42, 79, .6); }
.prm-item__desc { margin: 0; color: var(--tc-ink-2); }

/* Status: in progress has a yellow ring, pending a dashed outline; the launches are milestones on butter */
.prm-item--progress { outline: 4px solid var(--tc-yellow); outline-offset: 3px; }
.prm-item--progress .prm-item__icon { box-shadow: 0 3px 0 var(--tc-ink), 0 0 0 5px var(--tc-yellow); }
.prm-item--pending { border-style: dashed; box-shadow: none; }
.prm-item--milestone { background: var(--tc-butter); }

/* Wider screens: the tiles sit on a dashed rail to the left of the cards, with the year pills on the same rail */
@media (min-width: 576px) {
  .prm-timeline::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 40px; border-left: 3px dashed rgba(47, 42, 79, .3); }
  .prm-year { position: relative; }
  .prm-year span { margin-left: -8px; }
  .prm-items { padding-left: 74px; }
  .prm-item { display: block; padding: 18px 22px 20px; }
  .prm-item__icon { position: absolute; left: -77px; top: 6px; width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; }
  .tc-root .prm-item__title { font-size: 1.25rem; }
}
