/* Home v3 (Eugene's go-ahead "go ahead with the home draft", 2 Dec 2026; Design home_draft_v2), on the switch home_v3,
   loaded after home_v2.css on templates/v2/pages/home_v3.html only. Every colour is a tokens.css variable (rgba() only
   as a transparent tint of a token's own value); the platform cards' risk chip is components.css's .ci-level. Phones
   first (390 px): one column, the news row shows its first four cards; from 640 px two columns; from 900 px the news
   in two columns, the platforms in four, the open cards in three. Nothing loads late and nothing moves (CLS): images
   keep their box (aspect-ratio). */

/* 1 · The compact hero: the search, popular checks, a row of small links and three data cards */
.ci-hv3__hero.ci-hv2__hero--check { padding: var(--ci-s5) 0; }
.ci-hv3 .ci-hhc { gap: var(--ci-s4); }
.ci-hv3 .ci-hhc__text { gap: var(--ci-s3); }
.ci-hv3 .ci-hhc h1 { font-size: 32px; }
.ci-hv3 .ci-hhc__popular { margin: 0 0 0 2px; }
.ci-hv2 .ci-hv3__small-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ci-s2) var(--ci-s4); margin: 0 0 0 2px;
    font: 600 13px/1.4 var(--ci-sans); }
.ci-hv3__small-links a, .ci-hv3__small-links button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0;
    background: none; font: inherit; color: var(--ci-forest); text-decoration: none; cursor: pointer; }
.ci-hv3__small-links .ci-icon { width: 16px; height: 16px; flex: none; }
.ci-hv3__small-links .ci-hv3__ask { color: var(--ci-clay-ink); }
.ci-hv3__small-links a:hover, .ci-hv3__small-links button:hover { text-decoration: underline; }
.ci-hv3__small-links button:focus-visible, .ci-hv3__small-links a:focus-visible { outline: none; box-shadow: var(--ci-focus-ring); border-radius: 4px; }
.ci-hv3__data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ci-s2); }
.ci-hv3__data li { display: flex; min-width: 0; }
.ci-hv3__data li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ci-hhc .ci-hv3__data a { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid var(--ci-line);
    border-radius: var(--ci-r-card); background: var(--ci-surface); color: var(--ci-ink); text-decoration: none; }
.ci-hhc .ci-hv3__data a:hover { border-color: var(--ci-forest); color: var(--ci-ink); }
.ci-hv3__data-n { font: 600 26px/1.05 var(--ci-serif); color: var(--ci-forest); }
.ci-hv3__data strong { font: 600 14px/1.3 var(--ci-sans); }

/* Shared: the card grids, the "Read →" ends and the "All … →" links */
.ci-hv3__grid { display: grid; gap: var(--ci-s3); margin: var(--ci-s4) 0 0 !important; }
.ci-hv3__grid > li { display: flex; min-width: 0; }
.ci-hv3__go { font: 600 13px/1.4 var(--ci-sans); color: var(--ci-forest); white-space: nowrap; }
.ci-hv3__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ci-s3); margin-top: auto; padding-top: var(--ci-s2);
    font: 400 12px/1.4 var(--ci-sans); color: var(--ci-muted); }
.ci-hv2 .ci-hv3__links { display: flex; flex-wrap: wrap; gap: var(--ci-s2) var(--ci-s5); margin: var(--ci-s4) 0 0; font: 600 15px/1.4 var(--ci-sans); }
.ci-hv3__links a { color: var(--ci-forest); }

/* 3 · News that could help you avoid a loss: a clay edge, the figure big */
.ci-hv3__ncard { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: var(--ci-s3) var(--ci-s4); border: 1px solid var(--ci-line);
    border-left: 3px solid var(--ci-clay); border-radius: var(--ci-r-card); background: var(--ci-surface); color: var(--ci-ink); text-decoration: none; }
.ci-hv3__ncard:hover { border-color: var(--ci-clay); }
.ci-hv3__ncard:focus-visible { outline: none; box-shadow: var(--ci-focus-ring); }
.ci-hv3__kind { font: 600 11px/1.2 var(--ci-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ci-muted); }
.ci-hv3__figure { font: 600 30px/1.1 var(--ci-serif); color: var(--ci-clay-ink); overflow-wrap: anywhere; }
.ci-hv3__figure--name { font-size: 24px; }
.ci-hv3__ntitle { font: 600 15px/1.35 var(--ci-sans); }
.ci-hv3__news-item--more { display: none !important; }  /* a phone shows the first four (NEWS_PHONE) */

/* 4 · Read about your platforms */
.ci-hv3__pcard { flex-direction: column; gap: var(--ci-s2); width: 100%; padding: var(--ci-s3) var(--ci-s4); border: 1px solid var(--ci-line);
    border-radius: var(--ci-r-card); background: var(--ci-white); }
.ci-hv3__phead { display: flex; align-items: center; gap: var(--ci-s3); color: var(--ci-ink); text-decoration: none; }
.ci-hv3__phead strong { display: block; font: 600 16px/1.25 var(--ci-sans); }
.ci-hv3__phead small { display: block; font: 400 12px/1.35 var(--ci-sans); color: var(--ci-muted); }
.ci-hv3__phead:hover strong { color: var(--ci-forest); text-decoration: underline; }
.ci-hv2 .ci-hv3__pscore { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--ci-s2); margin: 0; font: 400 13px/1.4 var(--ci-sans); color: var(--ci-muted); }
.ci-hv3__pscore b { font: 600 24px/1 var(--ci-serif); color: var(--ci-forest); }
.ci-hv3__of { margin-left: -6px; }
.ci-hv3__pcard .ci-hv3__go { margin-top: auto; }

/* 5 · Open now: a photo on top, the badge and score on it */
.ci-hv3__ocard { width: 100%; }
.ci-hv3__ocard > a { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--ci-line); border-radius: var(--ci-r-card);
    background: var(--ci-surface); color: var(--ci-ink); text-decoration: none; }
.ci-hv3__ocard > a:hover { border-color: var(--ci-forest); }
.ci-hv3__ocard > a:focus-visible { outline: none; box-shadow: var(--ci-focus-ring); }
.ci-hv3__photo { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--ci-logo-tile); }
.ci-hv3__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-hv3__badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--ci-r-pill); background: var(--ci-white);
    font: 600 11px/1.4 var(--ci-sans); color: var(--ci-ink); }
[data-ci-open-card="review"] .ci-hv3__badge { background: var(--ci-deep-forest); color: var(--ci-white); }
.ci-hv3__score { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: center; padding: 4px 10px;
    border-radius: var(--ci-r-field); background: var(--ci-white); font: 600 11px/1.3 var(--ci-sans); color: var(--ci-ink); }
.ci-hv3__score b { font: 600 22px/1.1 var(--ci-serif); color: var(--ci-forest); }
.ci-hv3__obody { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; padding: var(--ci-s3) var(--ci-s4); }
.ci-hv3__otitle { font: 600 16px/1.3 var(--ci-serif); }
.ci-hv3__sub { font: 400 13px/1.4 var(--ci-sans); color: var(--ci-muted); }
.ci-hv3__facts { font: 400 13px/1.4 var(--ci-sans); }
.ci-hv3__verdict { font: 400 14px/1.45 var(--ci-sans); }
.ci-hv3__bar { display: block; width: 100%; height: 6px; margin-top: 4px; }
.ci-hv3__track { fill: var(--ci-track); }
.ci-hv3__fill { fill: var(--ci-forest); }

/* 6 · Find your type: the tiles without the scale; no short line */
.ci-hv3__tiles .ci-rk__tile { gap: 6px; }

@media (min-width: 640px) {
    .ci-hv3__grid--news, .ci-hv3__grid--platforms, .ci-hv3__grid--open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ci-hv3__news-item--more { display: flex !important; }
    .ci-hv3__data { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ci-hv3__data li:last-child:nth-child(odd) { grid-column: auto; }
}

@media (min-width: 900px) {
    .ci-hv3__hero.ci-hv2__hero--check { padding: var(--ci-s6) 0 var(--ci-s5); }
    .ci-hv3 .ci-hhc h1 { font-size: 46px; }
    .ci-hv3 .ci-hhc__text { max-width: 760px; }
    .ci-hv3 .ci-hhc__search { max-width: 640px; }
    .ci-hv3__data { max-width: 880px; gap: var(--ci-s3); }
    .ci-hhc .ci-hv3__data a { padding: 14px var(--ci-s4); }
    .ci-hv3__data-n { font-size: 30px; }
    .ci-hv3__grid--platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ci-hv3__grid--open { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ci-hv3__figure { font-size: 34px; }
}
