/* =============================================================================
   for-v11.css - the /for pages on the homepage v11 look (English, 2026-10-26).

   Markup: app/server/views/frontend/v4/for_v11.pug (and for_hub_v11.pug).
   The page carries body.hv-v11 so home-v11.css draws the shared pieces
   (hero frame, fan, lit sentence, ink panel, parts list, AI chat, who-for
   row, close); this file adds only what the /for family needs, every rule
   under body.fv11. Raw: the route hands the file's mtime as ?v=.

   Same house rules as the homepage: no gradients, no glass, hover changes
   colour only, lime only as a fill.
   ============================================================================= */

/* The hero H1 names the buyer's search term, so it runs longer than the
   homepage's two-line title: one balanced block, a little smaller. */
html:root body.fv11 main .h11-h1.f11-h1 { max-width: 17em; font-size: clamp(34px, 3.9vw, 58px); }
html:root body.fv11 main .h11-sub { max-width: 760px; }

/* Anchors land under the header bar. */
html:root body.fv11 #make,
html:root body.fv11 #built-in,
html:root body.fv11 #faq { scroll-margin-top: 72px; }

/* A panel with fewer tabs: the tabs still hug their words (desktop only; a
   phone lays them out as an even grid across the panel). */
@media (min-width: 700px) {
    html:root body.fv11 .f11-show--n3 .h11-tabs,
    html:root body.fv11 .f11-show--n4 .h11-tabs { width: fit-content; }
}

/* The results end on the panel's right edge on every tab, so the empty band
   does not grow and shrink as the tabs move on (design review, 2026-10-26). */
@media (min-width: 1100px) {
    html:root body.fv11 .h11-pane-flow { justify-content: flex-end; }
    html:root body.fv11 .h11-outs { flex: 0 0 auto; }
}

/* A tab whose results are wider than three 4:5 pictures (three squares, say)
   sets --fsum, so the row shrinks to fit beside the copy instead of running
   under it (visual review, 2026-10-26). */
html:root body.fv11 .h11-pane-flow > * { --oh: min(320px, calc((100cqi - 100px) / var(--fsum, 2.95))); }

/* One tab left (its video tabs wait for their clips): no tab bar for it. */
html:root body.fv11 .f11-show--n1 .h11-tabs { display: none; }

/* The editor card's six chips stay on one row at 1440. */
html:root body.fv11 .h11-v-tools { gap: 5px; }
html:root body.fv11 .h11-v-tools > span { padding: 5px 7px; }

/* The plain note about AI-made people, under the panel. */
html:root body.fv11 main p.f11-honesty { max-width: 760px; margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: #8f8d89; }

/* Questions: the head left, the questions right (home-v4.css draws this for
   the homepage; this family does not load that sheet). */
html:root body.fv11 .hv-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
html:root body.fv11 .hv-faq-side { position: sticky; top: 96px; }
html:root body.fv11 .hv-faq-side .v4-head { margin-bottom: 0; }
html:root:root body.fv11 main a.h11-faq-more { margin-top: 24px; }

/* The hub: every buyer as a picture card, in groups. */
html:root body.fv11 .f11-hub-g + .f11-hub-g { margin-top: clamp(40px, 4.4vw, 64px); }
html:root body.fv11 .f11-hub-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
html:root body.fv11 main .f11-hub-t { margin: 0; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
html:root body.fv11 main p.f11-hub-d { margin: 0; font-size: 15px; line-height: 1.5; color: #6f6d6a; }
html:root body.fv11 .f11-hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
html:root body.fv11 .f11-hub-grid li { margin: 0; min-width: 0; }

@media (max-width: 1099.98px) {
    html:root body.fv11 .f11-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
    html:root body.fv11 .hv-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    html:root body.fv11 .hv-faq-side { position: static; }
}
/* Phones: the tabs fill even rows (two by two for four, three then two for
   five), never one tab alone on a row. */
@media (max-width: 699.98px) {
    html:root body.fv11 .f11-show--n2 .h11-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html:root body.fv11 .f11-show--n4 .h11-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* A long label wraps inside its pill instead of touching the edge. */
    html:root body.fv11 main button.h11-tab { white-space: normal; text-align: center; line-height: 1.15; padding: 4px 6px; }
    html:root body.fv11 .f11-show--n5 .h11-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    html:root body.fv11 .f11-show--n5 .h11-tab { grid-column: span 2; }
    html:root body.fv11 .f11-show--n5 .h11-tab:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 599.98px) {
    html:root body.fv11 main .h11-h1.f11-h1 { font-size: 29px; line-height: 1.12; }
    html:root body.fv11 main p.f11-honesty { margin-top: 12px; font-size: 12.5px; }
    html:root body.fv11 .f11-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    html:root body.fv11 main .f11-hub-t { font-size: 20px; }
    html:root body.fv11 main p.f11-hub-d { font-size: 13.5px; }
    html:root body.fv11 .f11-hub-gh { margin-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 4px; }
    /* An odd last card takes the whole row, in a wide crop, rather than sitting alone. */
    html:root body.fv11 .f11-hub-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    html:root body.fv11 .f11-hub-grid li:last-child:nth-child(odd) .h11-ind-pic { aspect-ratio: 16 / 9; }
}
