/* ===================================================================
   Rivulet IQ — guides.css
   Insights index + the three guides (prototype-to-production,
   what-is-an-ai-application, ai-governance). Round 3: all three guides
   share one section order and one set of components:
   hero (split + screen) → on this page → the short answer → context table
   → art band → the core list (.gd-items) → honest limits (orange band)
   → the decision (.gd-stage cols / .gd-list) → worked example (.vx-split
   + .gd-steps + .gd-case) → FAQ → read next → outro.
   Built only on inner.css tokens. No boxes, no sticky, no numbering.
   =================================================================== */

/* ------------------------------------------------------------------ HERO extras */
/* byline + dates: one hairline row under the lead */
.gd-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--sp20) var(--sp60);
    padding-top: var(--sp25);
    border-top: 1px solid var(--white-20);
}
.gd-by {
    display: flex; align-items: center;
    gap: var(--sp20);
    max-width: 62ch;
    font-size: var(--f15);
    line-height: var(--lhLead);
    color: var(--white-75);
    & img { flex: 0 0 auto; width: 56px; height: 70px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
    & b { color: var(--white); font-weight: 700; }
}
.gd-dates { font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--light-grey); }

/* guide titles are long: a little smaller in the split hero */
.gd-hero.pg-hero--split .pg-hero__title { font-size: var(--f-h1-inner); }
.gd-hero-def.pg-hero--split .pg-hero__title { max-width: none; font-size: var(--f-h1-inner); }
@media (max-width: 991.98px) { .gd-hero.pg-hero--split .pg-hero__title, .gd-hero-def.pg-hero--split .pg-hero__title { font-size: var(--f-h1-inner); } }
@media (max-width: 767.98px) { .gd-hero.pg-hero--split .pg-hero__title, .gd-hero-def.pg-hero--split .pg-hero__title { font-size: var(--f-h1-inner); } }
.gd-hero .pg-hero__foot .gd-meta { order: 3; }
.gd-hero .pg-hero__art { align-self: end; display: flex; flex-direction: column; }

/* screens: the status column stays one line, long row text wraps */
.gd-screen .ui-rows > li, .gd-mock .ui-rows > li, .gd-run .ui-rows > li { padding-block: 10px; }
.gd-screen .ui-s, .gd-mock .ui-s, .gd-run .ui-s { white-space: nowrap; }
.gd-mt-rows { margin-top: 20px; }
.gd-qrows > li { grid-template-columns: auto minmax(0, 1fr); }
.gd-qrows .ui-s { display: none; }
.gd-run .ui-bars { height: 120px; }

/* ------------------------------------------------------------------ THE SHORT ANSWER (statement right under the hero) */
.gd-short { padding-top: var(--sp60); }

/* ------------------------------------------------------------------ CONTEXT TABLE */
.gd-table { margin-top: var(--sp15); }
/* the definition guide's comparison (five columns): the AI application column (4th) is the dark focus column */
.gd-table-wide {
    @media (min-width: 768px) { & tbody th { width: 16%; } & tbody td { font-size: var(--f15); } }
}
.gd-table-wide.gd-focus4 {
    & thead th:nth-child(4), & tbody td:nth-child(4) { background: #141414; color: #F4F4F4; font-weight: 500; padding-left: var(--sp20); padding-right: var(--sp20); }
    & thead th:nth-child(4) { color: var(--orange); }
    @media (min-width: 768px) { & thead th:nth-child(5), & tbody td:nth-child(5) { padding-left: var(--sp20); } }
    @media (max-width: 767.98px) { & tbody td:nth-child(4) { margin-top: var(--sp10); padding: var(--sp12); } }
}

/* ------------------------------------------------------------------ THE CORE LIST (seven gaps / six parts / seven questions) */
/* one hairline row per item: title left, the test or answer right. No numbers. */
.gd-items {
    list-style: none;
    border-bottom: 1px solid var(--white-20);
}
.gd-item {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--sp60);
    align-items: start;
    padding-block: var(--sp40);
    border-top: 1px solid var(--white-20);
    @media (max-width: 991.98px) { grid-template-columns: minmax(0, 1fr); gap: var(--sp15); padding-block: 7vw; }
}
.gd-item__t { font-size: var(--f30); font-weight: 700; line-height: var(--lhTight); letter-spacing: var(--ls-h3); }
.gd-item__b { display: flex; flex-direction: column; gap: var(--sp20); min-width: 0; }
.gd-item__d { font-size: var(--f20); line-height: var(--lhSnug); color: var(--white); }
@media (max-width: 767.98px) { .gd-item__d { font-size: var(--f17); line-height: var(--lhLead); } }
.gd-k { display: block; margin-bottom: var(--sp8, 8px); font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--orange); }

/* pass / fail (and why / answer): two open columns on a hairline */
.gd-pf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp45);
    padding-top: var(--sp20);
    border-top: 1px solid var(--white-10);
    & > div { display: flex; flex-direction: column; gap: var(--sp10); }
    & dt { display: inline-flex; align-items: center; gap: var(--sp10); font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--light-grey); }
    & dt::before { width: 8px; height: 8px; content: ""; border: 1px solid var(--white-40); }
    & .gd-pf__yes dt { color: var(--orange); }
    & .gd-pf__yes dt::before { border-color: var(--orange); background: var(--orange); }
    & dd { font-size: var(--f17); line-height: var(--lhLead); color: var(--white-75); }
    & .gd-pf__strong dd { color: var(--white); font-weight: 600; }
    @media (max-width: 767.98px) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
/* governance: the dl is the whole body, so drop its top rule */
.gd-item__b > .gd-pf:first-child { padding-top: 0; border-top: 0; }

/* ------------------------------------------------------------------ THE DECISION: three open columns, the word set large */
.gd-stage {
    & .pg-cols__t { font-size: var(--f55); }
    & > *:last-child .pg-cols__t { color: var(--orange); }
    & p { font-size: var(--f17); line-height: var(--lhLead); }
}

/* short criteria, set large between hairlines (definition guide) */
.gd-list {
    list-style: none;
    border-top: 1px solid var(--white-20);
    & > li {
        display: grid;
        grid-template-columns: calc(var(--cvw) * 4) minmax(0, 1fr);
        align-items: baseline;
        gap: var(--sp20);
        padding-block: var(--sp25);
        border-bottom: 1px solid var(--white-20);
        font-size: var(--f40);
        font-weight: 700;
        line-height: var(--lhTight);
        letter-spacing: var(--ls-h3);
    }
    & > li::before { content: ""; width: 7px; height: 7px; margin-top: .55em; background: var(--orange); }
    @media (max-width: 767.98px) { & > li { grid-template-columns: 28px minmax(0, 1fr); padding-block: 5vw; font-size: var(--f30); } }
}

/* ------------------------------------------------------------------ WORKED EXAMPLE: steps in order (a plain hairline list; scrolls normally) */
.gd-steps {
    list-style: none;
    & > li {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        gap: var(--sp60);
        padding-block: var(--sp30);
        border-top: 1px solid var(--white-20);
    }
    & > li:last-child { border-bottom: 1px solid var(--white-20); }
    & .gd-steps__t { font-size: var(--f25); font-weight: 700; line-height: var(--lhTight); letter-spacing: var(--ls-h3); }
    & .gd-steps__d { font-size: var(--f17); line-height: var(--lhLead); color: var(--white-75); }
    @media (max-width: 991.98px) { & > li { grid-template-columns: minmax(0, 1fr); gap: var(--sp10); padding-block: 6vw; } }
}
/* without titles: one line each, set a little larger, with the orange square */
.gd-steps--plain > li { grid-template-columns: 7px minmax(0, 1fr); gap: var(--sp20); align-items: baseline; }
.gd-steps--plain > li::before { content: ""; width: 7px; height: 7px; background: var(--orange); transform: translateY(-.15em); }
.gd-steps--plain .gd-steps__d { font-size: var(--f25); color: var(--white); line-height: var(--lhSnug); }
@media (max-width: 991.98px) { .gd-steps--plain > li { grid-template-columns: 7px minmax(0, 1fr); gap: var(--sp15); } }

/* case-study link + its note, under the steps */
.gd-case {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: var(--sp20) var(--sp60);
    margin-top: var(--sp45);
    & .pg-note { margin-top: 0; }
    @media (max-width: 767.98px) { flex-direction: column; margin-top: 10vw; }
}

/* a big answer sentence (governance: who owns it) */
.gd-answer { max-width: 30ch; font-size: var(--f40); font-weight: 700; line-height: var(--lhTight); letter-spacing: var(--ls-h1); text-wrap: balance; }
@media (max-width: 767.98px) { .gd-answer { font-size: var(--f30); } }

/* ------------------------------------------------------------------ INSIGHTS: the guide index (feature card, then a two-up grid) */
.gd-index-grid { margin-top: var(--sp30); }
@media (max-width: 767.98px) { .gd-index-grid { margin-top: var(--sp20); } }

/* long button labels ("About AI Product Development") must not clip in the stacked button group */
@media (min-width: 768px) and (max-width: 991.98px) { .btn-group .btn { width: auto; min-width: 40%; } }
@media (max-width: 767.98px) { .btn-group .btn { padding-inline: 6vw; } }
