/* ==========================================================================
   /masterclass.php — the Masterclass landing page (V86, Sprint 2 handoff
   "Masterclass v2"). Light console on base.css tokens; the two terminal
   blocks are dark teal. Dummy colors that sit outside the palette are
   translated: prompt #e1885d -> #e39a63, status cyan #a5f3fc -> #7fc9d1,
   [ OK ] stays the V79 #6FCF8E (all three are the Briefings handoff's
   dark-teal text registers). Hero + pipeline collapse to one column at
   <=860px (the dummy's breakpoint).
   ========================================================================== */

.mc-main {
    text-align: left;
    padding: 56px 0 72px;
}

.mc-wordmark {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}

/* ---- hero ---- */
.mc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    margin-bottom: 56px;
}

.mc-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    border: 1px solid #1A7F37;
    padding: 7px 12px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1A7F37;
    margin-bottom: 22px;
}

.mc-badge-dot { animation: blink-opacity 1.4s infinite; }

/* base.css styles every h1 as the centered lowercase brand flex row */
.mc-title {
    display: block;
    font-family: var(--font-code);
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-teal);
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
    text-align: left;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.mc-cursor {
    color: var(--brand-orange);
    animation: blink-opacity 1s step-end infinite;
}

.mc-hero-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
}

.mc-hero-text b { color: var(--dark-teal); }

.mc-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.mc-btn {
    display: inline-block;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
}

.mc-btn--primary {
    background: var(--dark-teal);
    color: #ffffff;
    padding: 13px 22px;
    border: none;
}

.mc-btn--primary:hover,
.mc-btn--primary:focus-visible {
    background: var(--brand-blue);
    color: #ffffff;
    text-decoration: none;
}

.mc-btn-sub {
    font-weight: 400;
    opacity: 0.8;
}

.mc-btn--license {
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    padding: 12px 22px;
}

.mc-btn--license:hover,
.mc-btn--license:focus-visible {
    background: var(--brand-orange);
    color: #ffffff;
    text-decoration: none;
}

.mc-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* ---- terminal-headed panels (spec.conf, ./compile) ---- */
.mc-panel {
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 48px;
}

.mc-panel-head {
    background: var(--brand-blue);
    padding: 8px 15px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 16px;
    overflow-wrap: anywhere;
}

.mc-panel-meta { opacity: 0.7; }

.mc-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    font-family: var(--font-code);
}

.mc-spec-cell {
    padding: 14px 18px;
    border-right: 1px solid var(--border-color);
}

.mc-spec-cell:last-child { border-right: none; }

.mc-spec-key {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.mc-spec-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-teal);
}

.mc-spec-val--ok { color: #1A7F37; }

/* ---- Installation Wizard + Pipeline Architecture ---- */
.mc-pipe {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 20px;
    margin-bottom: 48px;
}

.mc-card {
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 6px;
    padding: 26px 24px;
}

.mc-card-title {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 12px;
}

.mc-card-title--list { margin-bottom: 14px; }
.mc-card-title--tight { margin-bottom: 8px; }

.mc-card-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-main);
}

.mc-term {
    margin-top: 22px;
    background: var(--dark-teal);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--font-code);
    font-size: 0.76rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.65);
}

.mc-term-cmd { color: #7fc9d1; }
.mc-term-ok { color: #6FCF8E; }
.mc-term-active { color: #ffffff; }
.mc-term-run { color: #e39a63; }

.mc-arch { display: grid; }

.mc-arch-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px dashed var(--border-color);
}

.mc-arch-row:last-child { border-bottom: 1px dashed var(--border-color); }

.mc-arch-num {
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--brand-orange);
    white-space: nowrap;
    padding-top: 3px;
}

.mc-arch-text {
    font-size: 0.96rem;
    line-height: 1.65;
    min-width: 0;
}

.mc-arch-text b { color: var(--dark-teal); }

/* ---- Output Assets ---- */
.mc-output-body { padding: 26px 24px; }

.mc-output-intro {
    margin: 0 0 20px;
    font-size: 0.98rem;
    color: var(--text-main);
}

/* min(100%, 280px): the dummy's bare 280px overflowed ~42px at 320 */
.mc-assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.mc-asset {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 4px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
}

.mc-asset:hover,
.mc-asset:focus-visible {
    border-color: var(--brand-blue);
    text-decoration: none;
}

/* V89 (AH): page-1 preview of the sample PDF, top 3:2 crop, spanning both
   grid columns above the tag + text. width/height attributes reserve the
   box; height:auto is load-bearing (without it the box keeps 533px). */
.mc-asset-preview {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin: 0 0 4px;
}

.mc-asset-tag {
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    padding: 3px 7px;
}

.mc-asset-name {
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 4px;
}

.mc-asset-desc {
    font-size: 0.92rem;
    color: var(--text-dim);
}

.mc-asset-note {
    font-size: 0.88rem;
    color: var(--text-main);
    margin-top: 6px;
}

.mc-asset-link {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--brand-blue);
    margin-top: 10px;
}

.mc-zk {
    margin-top: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: baseline;
    font-family: var(--font-code);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-main);
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.mc-zk-tag {
    color: #1A7F37;
    font-weight: 700;
}

/* ---- GENERATE_GUEST_TOKEN ---- */
.mc-guest {
    border: 1px solid rgba(var(--brand-orange-rgb), 0.5);
    border-left: 6px solid var(--brand-orange);
    background: rgba(var(--brand-orange-rgb), 0.05);
    border-radius: 6px;
    padding: 24px 28px;
}

.mc-guest-title {
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.mc-guest-text {
    margin: 0 0 18px;
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.65;
}

.mc-guest-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    border: 1px dashed var(--border-color);
    background: #ffffff;
    border-radius: 2px;
    padding: 12px 16px;
    margin: 0 0 18px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-main);
}

.mc-guest-key { color: var(--text-dim); }
.mc-guest-info b { color: var(--dark-teal); }

.mc-form { margin: 0; }

.mc-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 560px;
}

/* 16px, not the dummy's 0.9rem: iOS Safari zooms into any focused input
   below 16px (the /deck gate inputs' house rule) */
.mc-input {
    flex: 1;
    min-width: min(100%, 220px);
    font-family: var(--font-code);
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--dark-teal);
    background: #ffffff;
}

.mc-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb), 0.1);
}

.mc-submit {
    font-size: 0.85rem;
    padding: 12px 22px;
    cursor: pointer;
}

.mc-form-hint {
    margin: 10px 0 0;
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ---- responsive ---- */
@media (max-width: 860px) {
    .mc-hero,
    .mc-pipe {
        grid-template-columns: 1fr;
    }
    .mc-hero-img { max-width: 420px; }
}

@media (max-width: 480px) {
    .mc-card,
    .mc-output-body { padding: 20px 16px; }
    .mc-guest { padding: 18px 16px; }
    /* key above text: the auto column would squeeze the copy to ~100px */
    .mc-guest-info,
    .mc-zk { grid-template-columns: 1fr; gap: 4px; }
    .mc-guest-info .mc-guest-key:not(:first-child) { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .mc-badge-dot,
    .mc-cursor { animation: none; }
}

/* house rule: every element with an explicit display needs this */
.mc-hero[hidden], .mc-badge[hidden], .mc-title[hidden], .mc-ctas[hidden],
.mc-btn[hidden], .mc-hero-img[hidden], .mc-panel-head[hidden],
.mc-spec-grid[hidden], .mc-pipe[hidden], .mc-arch[hidden],
.mc-arch-row[hidden], .mc-assets[hidden], .mc-asset[hidden], .mc-asset-preview[hidden],
.mc-zk[hidden], .mc-guest-info[hidden], .mc-form-row[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   V96 (CT): >_ FOR TEAMS — three one-page PDFs as tiles (handoff 12, variant
   A), markup from src/lib/teams-kit.php. HAND TWIN: this block is identical
   in masterclass.css and integrator.css (verify-v96 compares them); only the
   section's top margin is page-specific (below the block).
   -------------------------------------------------------------------------- */

.teams-panel {
    border: 1px solid var(--border-color);
    background: #fdfdfc;
    border-radius: 6px;
    padding: 26px 24px;
    text-align: left;
}

.teams-title {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    color: var(--dark-teal);
    margin: 0 0 8px;
}

.teams-intro {
    margin: 0 0 20px;
    font-size: 0.98rem;
    color: var(--text-main);
}

/* auto-fit + min(100%, 260px): three tiles side by side on desktop, one
   column at 320px without overflowing */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.teams-tile {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 4px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.teams-tile:hover,
.teams-tile:focus-visible {
    border-color: var(--brand-blue);
    text-decoration: none;
}

/* page 1 of the PDF; width/height attributes reserve the box, height:auto
   keeps the 340:481 ratio at the 84px column width */
.teams-preview {
    display: block;
    width: 84px;
    height: auto;
    aspect-ratio: 340 / 481;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.teams-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
}

.teams-tag {
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    padding: 3px 7px;
}

.teams-name {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-teal);
    overflow-wrap: anywhere;
}

.teams-desc {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.teams-link {
    font-family: var(--font-code);
    font-size: 0.72rem;
    /* #2F7A86 (4.94:1), not the draft's #358691 (4.23:1): small text needs AA */
    color: #2F7A86;
}

/* house rule: every element with an explicit display needs this */
.teams-panel[hidden],
.teams-grid[hidden],
.teams-tile[hidden],
.teams-preview[hidden],
.teams-text[hidden] {
    display: none;
}
/* ---- end of the FOR TEAMS hand twin ---- */

.mc-main .teams-kit {
    margin-top: 48px;
}

/* V96 (CT): the hero's text link to #teams, under the two CTAs */
.mc-teams-link {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    /* V96: #2F7A86, not the draft's #358691 (4.23:1 on white fails AA for
       12.8px text; CLAUDE.md: small bold code links take #2F7A86) */
    color: #2F7A86;
    text-decoration: none;
}

.mc-teams-link:hover,
.mc-teams-link:focus-visible {
    color: var(--dark-teal);
    text-decoration: none;
}

.mc-teams-link[hidden] {
    display: none;
}
