/* ═══════════════════════════════════════════════════════════════════════════
   Claude certification guide (claude-certification.html)
   Page layer on top of rb.css. The hero sheet carries the title, the largest
   exam domain as one big number (top-aligned with the H1), a "Start here"
   row for episode 1, and the exam facts in the right column under the number. The
   vermilion band closes the page.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────── hero ─────────────── */
.cert-hero { padding-bottom: 88px; }
.cert-hero .hero-sheet { padding-bottom: 44px; min-height: 0; }
.cert-hero .hero-top { flex: none; }
/* Number and title share a top edge: the 27% reads beside the H1, not in a
   hole under it. */
.cert-hero .hero-top { align-items: start; }
.cert-hero .hero-copy { grid-column: 1 / span 7; }
.cert-hero h1 { font-size: clamp(56px, 6.1vw, 88px); }
.cert-hero .hero-dek { max-width: 34em; }

/* Right column: the largest domain as the sheet's one big number, then the
   exam facts as a compact list, so the column runs as tall as the title and
   dek beside it instead of leaving a hole under the number. */
.cert-side {
    grid-column: 8 / span 5;
    /* The number's figure tops sit on the H1 cap line (measured: the H1 cap
       is ~0.115em below its box; the figures ~0.035em below theirs). */
    margin-top: calc(clamp(56px, 6.1vw, 88px) * .115 - clamp(72px, 7vw, 100px) * .035);
}
.cert-domain-num {
    font-size: clamp(72px, 7vw, 100px);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: .82;
    font-variant-numeric: tabular-nums;
}
/* F4: the number carries its own label (the domain and its share) on the
   figure's baseline, so it never reads as a pass rate. */
.cert-domain-head { display: flex; align-items: flex-end; gap: 22px; }
.cert-domain-head .cert-domain-num { flex: none; }
.cert-domain-label {
    padding-bottom: 2px;
    font-size: 17px; line-height: 1.3; letter-spacing: -0.01em;
    color: var(--ink-2);
}
.cert-domain-label b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.cert-domain-num i { font-style: normal; color: var(--red); font-size: .62em; letter-spacing: -0.02em; margin-left: .04em; }
/* The caption explains the number at a glance: right under it, ink, 19px. */
.cert-domain-cap {
    margin-top: 14px; padding-top: 12px;
    border-top: 1.5px solid var(--ink);
    font-size: 17.5px; line-height: 1.45; letter-spacing: -0.01em;
    color: var(--ink);
}
.cert-domain-cap b { color: var(--ink); font-weight: 600; }

/* ─────────────── start here: episode 1, inside the hero ─────────────── */
.ep-list { margin-top: 36px; border-top: 1.5px solid var(--ink); }
.ep {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
    padding: 26px 0 8px;
}
.ep + .ep { margin-top: 24px; border-top: 1px solid var(--rule); }
/* F4: the episode picture fills a 16:9 frame edge to edge. YouTube's
   hqdefault is 4:3 with letterbox bars top and bottom; object-fit: cover in
   16:9 crops exactly those bars, so the whole video frame shows, in black
   and white like the site's portraits (centred: cover only trims height).
   A small ink play disc in the light top-right corner marks it as a video. Same remote image. */
.ep-thumb {
    grid-column: 1 / span 4;
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ink);
}
.ep-thumb img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 50%;
    filter: grayscale(1) contrast(1.05);
}
/* z-index: the img filter makes it a painted layer that would cover ::before. */
.ep-thumb::before, .ep-thumb::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.ep-thumb::before {
    right: 14px; top: 14px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--ink);
    transition: background-color .18s var(--ease-out);
}
.ep-thumb::after {
    right: 30px; top: 29px;
    border-style: solid; border-color: transparent transparent transparent #fff;
    border-width: 9px 0 9px 15px;
}
.ep-thumb:hover::before { background: var(--red-band); }
.ep-body { grid-column: 5 / span 8; }
.ep-meta { font-size: 16px; color: var(--ink-2); }
.ep-meta b { color: var(--red-ink); font-weight: 600; }
.ep-title {
    margin-top: 12px;
    font-size: clamp(26px, 2.1vw, 30px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
}
.ep-summary { margin-top: 12px; max-width: 46em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ep .hero-ctas { margin-top: 20px; column-gap: 28px; }
.ep-more { font-size: 16px; color: var(--ink-2); }
.ep-more .ln { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; }

/* ─────────────── exam facts: compact list in the right column ─────────────── */
.facts { margin-top: 26px; }
.facts-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--ink);
}
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
.fact { padding: 8px 0 9px; border-bottom: 1px solid var(--rule); }
.fact dt { font-size: 14.5px; color: var(--ink-2); }
.fact dd { margin-top: 2px; line-height: 1.3; }
.fv { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fs { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
/* The facts' caveat, as the sheet's footnote under the episode row. */
.facts-note {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    /* F6: rule and text run the sheet's full content width. */
    max-width: none;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-2);
}
.facts-note a {
    color: var(--ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.facts-note a:hover { color: var(--red-ink); text-decoration-color: var(--red); }

/* ─────────────── closing band: text links in white ─────────────── */
/* One inner edge: the band's copy starts on the hero's text line. */
.cert-close .wrap { padding-left: calc(var(--gut) + var(--sheet-pad)); padding-right: calc(var(--gut) + var(--sheet-pad)); }
.cert-close .h2 { max-width: 8.5em; }
/* The page's own copy marks the English word "Tamil" lang=ta; keep it in Geist. */
.cert-close p [lang="ta"] { font-family: inherit; }
.cert-close .hero-ctas { column-gap: 32px; }
.cert-close .btn-light { min-height: 56px; padding: 0 28px; font-size: 18px; gap: 14px; }
.cert-close .ln {
    display: inline-flex; align-items: center; min-height: 44px;
    color: #fff; font-size: 17px;
    text-decoration-color: rgba(255, 255, 255, .7);
}
.cert-close .ln:hover { color: #fff; text-decoration-color: #fff; text-decoration-thickness: 2.5px; }

/* ═══════════════════ responsive ═══════════════════ */
@media (max-width: 1100px) {
    .cert-hero .hero-copy { grid-column: 1 / span 7; }
    .cert-side { grid-column: 8 / span 5; }
    .ep-thumb { grid-column: 1 / span 4; }
    .ep-body { grid-column: 5 / span 8; }
    .ep-title { font-size: 26px; }
}

@media (max-width: 820px) {
    .cert-hero { padding-bottom: 48px; }
    .cert-hero .hero-sheet { padding-bottom: 28px; }
    .cert-hero h1 { font-size: clamp(36px, 10.4vw, 64px); }
    .cert-hero .hero-dek { display: block; }
    /* Phone order (F6): title, intro and its CTA, the episode row, then
       the number with its caption and the exam facts. */
    .cert-hero .hero-sheet { display: flex; flex-direction: column; }
    .cert-hero .hero-top, .cert-hero .cert-side { display: contents; }
    .cert-hero .hero-copy { order: 1; }
    .cert-hero .ep-list { order: 2; }
    .cert-hero .cert-domain { order: 3; }
    .cert-hero .facts { order: 4; }
    .cert-hero .facts-note { order: 5; }
    /* Number above, caption full width under it. */
    .cert-domain { margin-top: 36px; }
    .cert-domain-num { font-size: 72px; }
    .cert-domain-head { gap: 18px; }
    .cert-domain-cap { margin-top: 14px; font-size: 18px; max-width: 34em; }

    .facts { margin-top: 36px; }
    .facts-title { font-size: 24px; }
    .facts-grid { column-gap: 14px; }
    .fv { font-size: 18px; }
    .fs { font-size: 15px; }
    .facts-note { margin-top: 24px; font-size: 15.5px; }

    .ep-list { margin-top: 32px; }
    .ep { display: block; padding: 20px 0 4px; }
    .ep-thumb { width: 100%; }
    .ep-body { margin-top: 18px; }
    .ep-meta { font-size: 15px; }
    .ep-title { margin-top: 10px; font-size: 24px; }
    .ep-summary { margin-top: 12px; font-size: 16.5px; }
    .ep .hero-ctas { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 12px; }

    .cert-close .hero-ctas { flex-direction: column; align-items: flex-start; gap: 4px; }
    .cert-close .ln { font-size: 16px; }
}

@media (min-width: 641px) and (max-width: 820px) {
    .ep { display: grid; }
    .ep-thumb { grid-column: 1 / span 5; width: auto; }
    .ep-body { grid-column: 6 / span 7; margin-top: 0; }
}

/* F4: the band's kolam shows whole at every width (it was cut by the
   band's right edge on wide screens and by its foot at 821-1359). The
   drawing fills 87% of its box, so a 6.4% inset per side is subtracted to
   put the drawn line on the page's inner edge. Phones use rb.css. */
@media (min-width: 1360px) {
    .cert-close .close-kolam {
        --ks: clamp(460px, 38vw, 600px);
        width: var(--ks); height: var(--ks); margin-top: calc(var(--ks) / -2);
        right: calc(var(--gut) + var(--sheet-pad) - var(--ks) * .064);
    }
}
/* 821-1359: the copy needs the width, so the kolam sits whole under it on
   the inner right edge. */
@media (min-width: 821px) and (max-width: 1359px) {
    .cert-close .wrap { padding-bottom: 392px; }
    .cert-close .close-kolam { width: 320px; height: 320px; top: auto; bottom: 36px; right: calc(var(--gut) + var(--sheet-pad) - 20px); margin-top: 0; }
}

/* F3: the episode 1 button under the intro at every width; the episode row
   keeps the same URL as a quieter text link. */
.cert-hero .cert-early { margin-top: 32px; }
.ep .ep-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; }
@media (max-width: 819.98px) {
    .cert-hero .cert-early { display: flex; margin-top: 24px; }
    .cert-hero .cert-early .btn-primary { width: 100%; }
}
