/* features/features.css (FR-129). Page-owned. Layout for /features/, drawn from the approved
   fourth-draft mock. Colours and fonts come from the site's own custom properties (set by the
   skin and swapped by chrome.js in dark mode), so nothing here repeats a colour. The three
   --ft-radius names are page-local: 6px controls, 10px cards, 4px checks, nothing a pill.
   Contrast: body text, subtitles and chips use --ink (full ink), never --ink-muted, on the tinted
   column panel and on chips; no chip mixes a tint, no text sits on a coloured fill. */
.ft { --ft-radius-control: 6px; --ft-radius-card: 10px; --ft-radius-check: 4px;
  font-family: 'Lexend', system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); }
.ft a { color: var(--ink); }
.ft a:focus-visible, .ft summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* In-page links land below the sticky header. */
.ft [id] { scroll-margin-top: var(--ct-topbar-height, 110px); }
.ft-wrap { max-width: 78rem; margin: 0 auto; padding: 0 18px 3rem; }

/* head */
.ft-hero { padding: 3rem 0 1.2rem; max-width: 46rem; }
.ft-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--ink); margin: 0 0 .4rem; }
.ft h1 { font-family: var(--font-display); font-weight: 400; font-size: 3.1rem; line-height: 1.05; margin: 0 0 1rem; }
.ft-head { font-size: 1.15rem; margin: 0; }

/* jump links: phone only */
.ft-jump { display: none; }

/* the board */
.ft-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; margin-top: 1.2rem; }
.ft-col { background: var(--surface-alt); border: 2px solid var(--ink); border-top-width: 8px; border-radius: var(--ft-radius-card); padding: 1rem; box-shadow: var(--cms-shadow-card); min-width: 0; }
.ft-col-live { border-top-color: var(--accent-assessments); }
.ft-col-soon { border-top-color: var(--primary); }
.ft-col-next { border-top-color: var(--highlight); }
.ft-col header { padding: 0 .2rem .8rem; }
.ft h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 0; }
.ft-sub { margin: .2rem 0 0; font-size: .92rem; color: var(--ink); }
.ft-stack { display: grid; gap: .8rem; }

/* cards: a native details element per card, no script */
.ft-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--ft-radius-card); box-shadow: var(--cms-shadow-card); color: var(--ink); }
.ft-card details { padding: 0; }
.ft-card summary { list-style: none; cursor: pointer; padding: .9rem 2.6rem .9rem 1rem; position: relative; border-radius: var(--ft-radius-card); }
.ft-card summary::-webkit-details-marker { display: none; }
.ft-card summary::after { content: ""; position: absolute; right: 1.1rem; top: 1.3rem; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.ft-card details[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.ft-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .35rem; font-weight: 700; }
.ft-words { display: block; margin: 0 0 .6rem; font-size: .95rem; }
.ft-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ft-chip { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; border: 1px solid var(--ink); border-radius: var(--ft-radius-control); padding: .05rem .6rem; background: var(--chip-bg); color: var(--ink); }

/* what opens */
.ft-detail { padding: 0 1rem 1rem; border-top: 1px solid var(--border-strong); }
.ft-detail h4 { margin: .9rem 0 .25rem; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.ft-detail p { margin: .2rem 0; font-size: .93rem; }

/* tier key */
.ft-key { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; margin: 1.6rem 0 0; padding: .9rem 1.1rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--ft-radius-card); box-shadow: var(--cms-shadow-card); font-size: .93rem; }
.ft-keyitem { display: inline-flex; flex-wrap: wrap; gap: .1rem .45rem; align-items: center; }
/* the colon is in the text for readers and screen readers; the chip carries the label for the eye */
.ft-colon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Suggest a feature (slice A): the hero button and the dialog. Full ink and surface only; a filled
   button is ink on surface, never text on a coloured fill. */
.ft-acts { margin: 1.1rem 0 0; }
.ft-btn { display: inline-block; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; background: var(--ink); color: var(--surface); border: 2px solid var(--ink); border-radius: var(--ft-radius-control); padding: .55rem 1.1rem; }
.ft a.ft-btn { color: var(--surface); }
.ft a.ft-btn-quiet { color: var(--ink); }
.ft-btn-quiet { background: var(--surface); color: var(--ink); }
.ft-btn:disabled { cursor: not-allowed; opacity: .55; }
.ft-btn:focus-visible, .ft-x:focus-visible, .ft-form input:focus-visible, .ft-form textarea:focus-visible, .ft-dialog h2:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ft-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 0; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--ft-radius-card); box-shadow: var(--cms-shadow-card); }
.ft-dialog::backdrop { background: var(--ink); opacity: .55; }
.ft-sheet { position: relative; padding: 1.4rem 1.4rem 1.3rem; }
.ft-sheet h2 { font-size: 1.6rem; margin: 0 2.8rem .7rem 0; }
.ft-sheet h4 { margin: 1rem 0 .3rem; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.ft-x { position: absolute; top: .8rem; right: .9rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--ft-radius-control); padding: .15rem .7rem; }
.ft-lead { margin: 0 0 .9rem; }
.ft-small { margin: .7rem 0 0; font-size: .93rem; }
.ft-error { margin: .7rem 0 0; font-weight: 700; border: 2px solid var(--ink); border-radius: var(--ft-radius-control); padding: .5rem .7rem; }
.ft-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.ft-form label { display: block; font-weight: 700; margin: 0 0 .9rem; }
.ft-form label span { display: block; font-weight: 400; font-size: .88rem; }
.ft-form input, .ft-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .3rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--ft-radius-control); padding: .5rem .6rem; }
/* Suggested by members (slice B), drawn from the approved mock: a dotted section under the board,
   a heading with a quiet button, and either a dashed line box or a grid of cards. */
.ft-sec { margin-top: 3.2rem; padding: 22px 20px 24px; background: var(--surface-alt); border: 2px dotted var(--ink); border-radius: var(--ft-radius-card); box-shadow: var(--cms-shadow-card); }
.ft-sec-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.ft-sec-head > div { min-width: 0; flex: 1 1 18rem; }
.ft-sec-head h2 { margin: .1rem 0 .3rem; }
.ft-sec-head p { margin: 0; max-width: 44rem; font-size: .95rem; }
.ft-sec-head .ft-eyebrow { margin-bottom: .2rem; }
.ft-empty { background: var(--surface); border: 2px dashed var(--ink); border-radius: var(--ft-radius-card); padding: 16px; font-size: .93rem; }
.ft-empty strong { display: block; }
.ft-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.ft-sugg { padding: .9rem 1rem; min-width: 0; overflow-wrap: anywhere; }
.ft-sugg .ft-words { margin: 0; }
/* Voting (first voting deploy). The strip under the hero, the note under the section intro, and the
   vote area on each card. The slot keeps a minimum height so a control appearing after the session
   check does not move the cards. Full ink and surface only, no new colours. */
.ft-mine { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--ft-radius-card); box-shadow: var(--cms-shadow-card); margin: 1.2rem 0 0; padding: .7rem 1rem; font-size: .93rem; }
.ft-mine[hidden], .ft-mine p[hidden] { display: none; }
.ft-mine p { margin: 0; }
.ft-pips { display: inline-flex; gap: 6px; margin-left: .6rem; vertical-align: middle; }
.ft-pip { display: inline-block; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: var(--ft-radius-check); }
.ft-pip.on { background: var(--ink); }
.ft-sec-head p.ft-vnote { margin-top: .5rem; }
.ft-vote { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--border-strong); }
.ft-count { margin: 0 0 .4rem; font-weight: 700; font-size: .93rem; }
.ft-count[hidden] { display: none; }
.ft-vote-act { min-height: 2.6rem; }
.ft-voted { margin: 0 0 .4rem; font-weight: 700; }
.ft-outofvotes { margin: .4rem 0 0; }
.ft-vote-act .ft-error { margin: .5rem 0 0; }
.ft-steps { margin: 0; padding-left: 1.3rem; }
.ft-steps li { margin: .25rem 0; }

@media (max-width: 900px) {
  .ft { font-size: 16px; }
  .ft h1 { font-size: 2.3rem; }
  .ft-hero { padding-top: 2rem; }
  .ft-board { grid-template-columns: 1fr; gap: 1rem; }
  .ft-jump { display: flex; gap: .5rem; position: sticky; top: 0; z-index: 5; background: var(--canvas); padding: .6rem 0; overflow-x: auto; border-bottom: 1px solid var(--border-strong); }
  .ft-jump a { flex: none; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--ft-radius-control); padding: .4rem .9rem; }
  /* The site header scrolls away on this page (as on the membership page), so the jump row pins to the top of the screen, and the column targets land just below it (row is about 59px tall). */
  .ft .ft-col { scroll-margin-top: 3.8rem; }
}
@media (prefers-reduced-motion: reduce) { .ft * { transition: none !important; scroll-behavior: auto !important; } }
