/* Feature-status page (/features). Data-driven: js/features.js renders data/features.json.
   Built on the ev-ui tokens; colour is never the only signal: every status also has an icon shape and a text label. */

.ft-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* spacing-ok: optical */

/* status colours: one custom property per status, set on the element that carries data-st */
[data-st="original"] { --ft-c: var(--ev-mint, #7ef0c4); }
[data-st="new"]      { --ft-c: var(--ev-cy-hi, #8cebf0); }
[data-st="planned"]  { --ft-c: var(--ev-blue, #4aa6d8); }
[data-st="undecided"]{ --ft-c: var(--ev-amber, #ffd479); }
[data-st="excluded"] { --ft-c: var(--ev-red, #ff9db1); }
.ft-ic { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ft-c); background: color-mix(in srgb, var(--ft-c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ft-c) 45%, transparent); }
.ft-ic .ev-i { font-size: 18px; }

/* ---------------- hero ---------------- */
.ft-hero { position: relative; isolation: isolate; overflow: hidden; background: #04090f; }
.ft-hero-art { position: absolute; inset: 0; z-index: -1; }
.ft-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(1.1) contrast(1.05) brightness(.8); }
.ft-hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(4, 9, 15, .92) 0, rgba(4, 9, 15, .62) 46%, rgba(4, 9, 15, .2) 100%),
  linear-gradient(180deg, rgba(4, 9, 15, .7) 0, rgba(4, 9, 15, 0) 28%, rgba(4, 9, 15, 0) 55%, #04090f 100%); }
.ft-hero-grid { position: absolute; inset: 0; opacity: .55; background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
  linear-gradient(115deg, transparent 0 62%, rgba(94, 224, 232, .1) 62.1% 62.4%, transparent 62.5% 100%); }
.ft-hero-in { display: grid; gap: 12px; align-content: end; min-height: 360px; padding-top: calc(var(--ev-bar-h) + 48px); padding-bottom: 76px; } /* spacing-ok: optical */
.ft-h { margin: 0; font-size: clamp(38px, 8vw, 84px); line-height: .95; letter-spacing: -.005em; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.ft-h em { font-style: normal; background: linear-gradient(90deg, #8ef0f5 0%, #7ef0c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(94, 224, 232, .35)); }
.ft-lead { margin: 0; max-width: 44ch; }
@media (min-width: 900px) { .ft-hero-in { min-height: 440px; padding-bottom: 104px; } .ft-lead { margin-top: 4px; } } /* spacing-ok: optical */

/* ---------------- legend: five glass cards, titles and meanings each on ONE line ---------------- */
.ft-legend-wrap { position: relative; z-index: 3; margin-top: 0; }
.ft-headwrap { padding-top: 16px; } .ft-headwrap .ca-crumbs { margin-bottom: 12px; }
.ft-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ft-legend { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ft-legend { grid-template-columns: repeat(5, 1fr); } }
.ft-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "i t n" "i d n"; column-gap: 12px; row-gap: 1px; align-items: center; padding: 12px 16px; border: 1px solid var(--ev-line-soft); border-top: 2px solid var(--ft-c); border-radius: var(--ev-r-md); background: rgba(6, 18, 27, .82); backdrop-filter: blur(10px); box-shadow: var(--ev-sh-md, 0 8px 24px rgba(0, 0, 0, .4)); } /* spacing-ok: optical */
.ft-legend .ft-ic { grid-area: i; }
.ft-legend b { grid-area: t; font: 600 15px var(--ev-head); letter-spacing: .02em; color: var(--ev-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-legend small { grid-area: n; font: 500 12px var(--ev-mono); color: var(--ft-c); }
.ft-legend .ft-lg-t { grid-area: d; font-size: 13px; color: var(--ev-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1100px) { .ft-legend li { grid-template-areas: "i t n" "d d d"; row-gap: 8px; } }

.ft-sec-main { padding-top: var(--ev-s6); }
@media (min-width: 900px) { .ft-sec-main { padding-top: 48px; padding-bottom: 96px; } } /* spacing-ok: optical */

/* ---------------- layout: sticky contents (wide) or a dropdown (phone) ---------------- */
.ft-layout { display: grid; gap: var(--ev-s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .ft-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; } }
.ft-toc { min-width: 0; }
.ft-toc h2 { margin: 0 0 8px; font: 500 var(--ev-fs-2xs) var(--ev-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ev-mute); }
.ft-toc ol { display: none; list-style: none; margin: 0; padding: 8px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-md); background: linear-gradient(180deg, rgba(10, 30, 42, .8), rgba(6, 18, 27, .8)); gap: 2px; } /* spacing-ok: optical */
.ft-toc li[hidden] { display: none; }
.ft-toc-a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: var(--ev-r-sm); color: var(--ev-text); text-decoration: none; }
.ft-toc-a:hover { background: rgba(94, 224, 232, .1); color: var(--ev-ink); }
.ft-toc-i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(140, 235, 240, .32); background: rgba(94, 224, 232, .07); color: var(--ev-cy); }
.ft-toc-i .ev-i { font-size: 18px; }
.ft-toc-t { flex: 1; min-width: 0; font: 600 14px/1.25 var(--ev-head); letter-spacing: .02em; }
.ft-toc-a small { flex: none; min-width: 26px; padding: 2px 8px; border-radius: var(--ev-r-pill); background: rgba(94, 224, 232, .1); font: 500 11px var(--ev-mono); color: var(--ev-cy-hi); text-align: center; } /* spacing-ok: optical */
.ft-toc-a[aria-current="true"] { background: linear-gradient(90deg, rgba(94, 224, 232, .18), transparent); box-shadow: inset 3px 0 0 var(--ev-cy); color: #fff; }
.ft-toc-a[aria-current="true"] .ft-toc-i { background: var(--ev-cy); border-color: var(--ev-cy); color: #03121a; }
@media (min-width: 900px) {
  .ft-toc { position: sticky; top: calc(var(--ev-bar-h) + 20px); }
  .ft-toc ol { display: grid; }
  .ft-toc .ft-dd-host { display: none; }
}
@media (max-width: 899px) { .ft-toc h2 { display: none; } }

/* ---------------- dropdown (the Live now mobile-filter pattern) ---------------- */
.ft-dd-host { position: relative; min-width: 0; }
.ft-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--ev-line-strong); border-radius: var(--ev-r-md); background: var(--ev-bg-input); color: var(--ev-ink); font: 600 14px var(--ev-head); cursor: pointer; text-align: left; }
.ft-pick[data-st] .ft-pick-i { color: var(--ft-c); }
.ft-pick-i { display: grid; place-items: center; color: var(--ev-cy-hi); }
.ft-pick-i .ev-i, .ft-opt .ev-i { font-size: 18px; }
.ft-pick-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-pick-n { font: 500 11px var(--ev-mono); color: var(--ev-dim); }
.ft-pick-c { display: grid; place-items: center; color: var(--ev-mute); transition: transform var(--ev-t-fast, .15s); }
.ft-pick-c .ev-i { font-size: 18px; }
.ft-pick[aria-expanded="true"] .ft-pick-c { transform: rotate(180deg); }
.ft-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); display: grid; max-height: 60vh; overflow-y: auto; padding: 8px; border: 1px solid var(--ev-line-strong); border-radius: var(--ev-r-md); background: #0a1722; box-shadow: var(--ev-sh-lg, 0 12px 32px rgba(0, 0, 0, .6)); }
.ft-menu[hidden] { display: none; }
.ft-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--ev-r-sm); background: none; color: var(--ev-ink); font: 600 14px var(--ev-head); text-align: left; cursor: pointer; }
.ft-opt[data-st] .ev-i:first-child { color: var(--ft-c); }
.ft-opt:hover, .ft-opt:focus-visible { background: rgba(94, 224, 232, .1); }
.ft-opt-t { flex: 1; }
.ft-opt small { font: 500 11px var(--ev-mono); color: var(--ev-dim); }
.ft-opt-c { visibility: hidden; display: grid; color: var(--ev-cy-hi); }
.ft-opt[aria-selected="true"] .ft-opt-c { visibility: visible; }
.ft-opt[aria-selected="true"] { background: rgba(94, 224, 232, .14); }

/* ---------------- toolbar: search + status filter ---------------- */
.ft-bar { display: grid; gap: 12px; margin-bottom: var(--ev-s5); }
.ft-filters { display: none; }
@media (min-width: 600px) { .ft-bar { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
#ft-filter-dd .ft-pick-l::before { content: "Status: "; color: var(--ev-mute); font-weight: 500; }
.ft-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-pill); background: rgba(8, 24, 34, .55); color: var(--ev-text); font: 600 13px var(--ev-head); letter-spacing: .03em; cursor: pointer; }
.ft-filters button .ev-i { font-size: 17px; color: var(--ft-c, var(--ev-cy-hi)); }
.ft-filters button small { font: 500 11px var(--ev-mono); color: var(--ev-mute); }
.ft-filters button:hover { border-color: var(--ev-cy); }
.ft-filters button[aria-pressed="true"] { border-color: var(--ft-c, var(--ev-cy)); background: color-mix(in srgb, var(--ft-c, var(--ev-cy)) 16%, transparent); color: #fff; }
.ft-count { margin: 0; font: 500 var(--ev-fs-2xs) var(--ev-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ev-mute); }
.ft-hint { margin-left: 8px; color: var(--ev-dim); letter-spacing: .06em; text-transform: none; }

/* ---------------- sections and rows ---------------- */
.ft-sec { scroll-margin-top: calc(var(--ev-bar-h) + 16px); margin-bottom: var(--ev-s5); }
.ft-sec[hidden] { display: none; }
.ft-sec > header { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 2px solid rgba(94, 224, 232, .28); background: linear-gradient(rgba(94, 224, 232, .12), transparent); }
.ft-sec-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--ev-r-md); border: 1px solid rgba(140, 235, 240, .32); background: rgba(94, 224, 232, .08); color: var(--ev-cy); }
.ft-sec-i .ev-i { font-size: 22px; }
.ft-sec h3 { margin: 0; font: 700 clamp(20px, 3.4vw, 28px) var(--ev-head); letter-spacing: .04em; text-transform: uppercase; color: var(--ev-ink); }
.ft-sec header p { margin: 2px 0 0; font-size: 14px; color: var(--ev-mute); max-width: 62ch; } /* spacing-ok: optical */
.ft-rows { list-style: none; margin: 0; padding: 0; }
.ft-row { border-top: 1px solid var(--ev-line-soft); }
.ft-row:first-child { border-top: 0; }
.ft-row[hidden] { display: none; }
.ft-row > button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ft-row > button:hover { background: rgba(94, 224, 232, .06); }
.ft-row > button:focus-visible { outline-offset: -3px; }
.ft-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 16px/1.25 var(--ev-head); letter-spacing: .02em; color: var(--ev-ink); }
.ft-note { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ev-mute); } /* spacing-ok: optical */
.ft-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border: 1px solid rgba(255, 212, 121, .5); border-radius: var(--ev-r-pill); background: rgba(255, 212, 121, .1); color: var(--ev-amber); font: 600 10.5px var(--ev-mono); letter-spacing: .1em; text-transform: uppercase; }
.ft-side { display: flex; align-items: center; gap: 12px; color: var(--ev-mute); }
.ft-side em { display: none; font: 500 var(--ev-fs-2xs) var(--ev-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ft-c); }
@media (min-width: 640px) { .ft-side em { display: inline; } }
.ft-chev { transition: transform var(--ev-t) var(--ev-ease); }
.ft-row > button[aria-expanded="true"] .ft-chev { transform: rotate(180deg); }
.ft-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s var(--ev-ease), visibility 0s .28s; }
.ft-panel[data-open] { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s var(--ev-ease), visibility 0s; }
.ft-panel-in { min-height: 0; overflow: hidden; }
.ft-box { position: relative; display: grid; gap: 12px; margin: 16px; padding: 16px 16px 16px 48px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-md); background: rgba(94, 224, 232, .06); }
.ft-box-i { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; fill: none; stroke: var(--ev-cy-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft-box p { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--ev-text); }
.ft-box figure { margin: 0; max-width: 420px; }
.ft-box img { display: block; width: 100%; height: auto; border: 1px solid var(--ev-line); border-radius: var(--ev-r-sm); background: #05121b; }
.ft-box figcaption { margin-top: 4px; font-size: 12px; color: var(--ev-dim); }
.ft-box a.ft-more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ev-cy-hi); font: 600 13px var(--ev-head); letter-spacing: .04em; text-decoration: none; }
.ft-box a.ft-more:hover { text-decoration: underline; }
@media (max-width: 480px) { .ft-box { margin: 12px; padding: 14px 14px 14px 42px; } .ft-box-i { left: 14px; top: 15px; } .ft-sec-i { width: 38px; height: 38px; } }

.ft-empty { display: grid; gap: 12px; justify-items: start; padding: 24px; border: 1px dashed var(--ev-line); border-radius: var(--ev-r-md); color: var(--ev-mute); }
.ft-empty[hidden] { display: none; }
.ft-empty p { margin: 0; }
.ft-foot { margin: var(--ev-s5) 0 0; font-size: 13px; color: var(--ev-dim); max-width: 70ch; }

@media (prefers-reduced-motion: reduce) { .ft-chev, .ft-pick-c, .ft-panel, .ft-panel[data-open] { transition: none; } }
@media (forced-colors: active) { .ft-filters button, .ft-toc ol, .ft-legend li, .ft-rows, .ft-pick, .ft-menu { border-color: ButtonText; } .ft-filters button[aria-pressed="true"] { border-color: Highlight; } }
@media (max-width: 380px) { .ft-h { font-size: 33px; } }
