/* Skill Factory section styles. Same tokens and type as the design system
   (01-marketing/brand/design-system/DESIGN.md): Exo 2 display, Inter body,
   the dark-gray surface ramp, Signal Red as the one accent, flat matte. */
:root {
    --surface-dim: #191C20;
    --structural: #1D2024;
    --surface: #24272C;
    --outline-subtle: #2E3339;
    --elevated: #2A2E33;
    --container: #30353B;
    --container-high: #373D44;
    --stroke: #3F454D;
    --outline: #4E555E;
    --ink: #EDEEF0;
    --ink-2: #A5ABB3;
    --ink-3: #767D86;
    --accent: #FD1528;
    --accent-muted: #D6101F;
    --on-accent: #FFFFFF;
    --positive: #22C55E;
    --display: 'Exo 2', 'Inter', system-ui, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 6px; color: var(--ink-2); }
li::marker { color: var(--ink-3); }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 880px; margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: 1240px; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0;
    color: var(--ink);
}
h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 20ch; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; }
h2 + p, h2 + .article, h2 + .grid2, h2 + .steps, h2 + .card, h2 + .tbl-wrap, h2 + .checks, h2 + ol, h2 + ul, h2 + .faq, h2 + .cards { margin-top: 26px; }
h3 + p { margin-top: 0; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 22px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--accent);
    transform: skewX(-12deg);
}
.lead { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 640px; margin: 24px 0 0; }
.byline { font-size: 13.5px; color: var(--ink-3); margin: 20px 0 0; }
.byline a { color: var(--ink-2); border-bottom: 1px solid var(--outline); }
.byline a:hover { color: var(--ink); }
.verified { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 0; }

/* Nav */
.nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    height: 72px;
    background: var(--structural);
    border-bottom: 1px solid var(--stroke);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* Section tabs under the nav: Overview, How to create a skill, Mine your data with Copilot */
.subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
    padding: 12px 0;
    border-bottom: 1px solid var(--outline-subtle);
    margin-bottom: 56px;
}
.subnav-label {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-right: 6px;
}
.subnav a {
    font-size: 14px;
    color: var(--ink-2);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero { padding: 96px 0 88px; background: var(--surface-dim); border-bottom: 1px solid var(--outline-subtle); }
.hero-print {
    background: url(../img/frontier/site-ink-dark-1440.png) no-repeat center bottom / 100% auto var(--surface-dim);
}
@media (min-width: 1600px), (min-width: 1000px) and (min-resolution: 1.5dppx) {
    .hero-print { background-image: url(../img/frontier/site-ink-dark-1920.png); }
}

.sec { padding-block: 72px; border-top: 1px solid var(--outline-subtle); }
.sec.panel { background: var(--structural); }
.sec.tight { padding-block: 48px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 0;
    cursor: pointer;
    transition: background .15s ease;
}
.btn:hover { background: var(--accent-muted); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--outline); }
.btn-ghost:hover { background: var(--container); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.textlink { font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--outline); transition: color .15s ease, border-color .15s ease; }
.textlink:hover { color: var(--accent); border-color: var(--accent); }

/* Article prose */
.article p { color: var(--ink-2); max-width: 720px; }
.article a, .card a, .faq a, .tldr a, li a { color: var(--ink); border-bottom: 1px solid var(--outline); transition: color .15s ease, border-color .15s ease; }
.article a:hover, .card a:hover, .faq a:hover, .tldr a:hover, li a:hover { color: var(--accent); border-color: var(--accent); }
.article h3 { margin-top: 32px; }
.article h4 { margin-top: 24px; color: var(--ink); }
.article ol, .article ul { max-width: 720px; }
.article .note { font-size: 14.5px; color: var(--ink-3); }
.centered { max-width: 720px; margin-inline: auto; }

/* TL;DR */
.tldr {
    border: 1px solid var(--outline);
    background: var(--structural);
    padding: 22px 26px;
    margin: 40px 0 0;
}
.tldr h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.tldr ul { margin: 0; padding-left: 0; list-style: none; }
.tldr li { color: var(--ink-2); margin: 0 0 8px; }

/* Definition block */
.def {
    border: 1px solid var(--outline);
    background: var(--elevated);
    padding: 22px 26px;
    margin: 28px 0;
    max-width: 720px;
}
.def h3 { margin: 0 0 8px; }
.def dfn { font-style: normal; }
.def p { margin: 0; color: var(--ink-2); }

/* Cards */
.card {
    border: 1px solid var(--outline);
    background: var(--structural);
    padding: 22px 24px;
}
.card h3 { margin: 0 0 10px; }
.card p { color: var(--ink-2); }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 20px; }
.card li { margin: 0 0 5px; }
.card.soft { background: var(--surface); }
.cards { display: grid; gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.grid2 .article p { max-width: none; }

/* Four-step diagram */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; counter-reset: step; }
.step {
    position: relative;
    border: 1px solid var(--outline);
    background: var(--structural);
    padding: 20px 20px 18px;
}
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* Prompt block with a copy button */
.prompt-card { border: 1px solid var(--outline); background: var(--surface-dim); }
.prompt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--outline-subtle);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.prompt-card pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}
.prompt-card code { font-family: inherit; }

/* Checklists */
.checks { list-style: none; padding-left: 0; margin: 0 0 16px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); margin: 0 0 8px; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--outline);
    border-radius: 2px;
}
.checks.done li::before { border-color: var(--positive); }

/* Tables: minimal padding, a hairline under every row, a slightly darker rule under every third row,
   monospace right-aligned numerals. */
.tbl-wrap { overflow-x: auto; margin: 24px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--outline);
    font-family: var(--display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.tbl td { padding: 6px 10px; border-bottom: 1px solid var(--outline-subtle); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.tbl tbody tr:nth-child(3n) td { border-bottom-color: var(--stroke); }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl .num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.num { text-align: right; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.faq h3 { font-size: 17px; margin: 0 0 8px; }
.faq p { margin: 0; color: var(--ink-2); font-size: 15px; }
.faq p + p { margin-top: 10px; }

/* Roster / people list */
.roster { list-style: none; padding: 0; margin: 0; }
.roster li { padding: 10px 0; border-bottom: 1px solid var(--outline-subtle); color: var(--ink-2); }
.roster li:last-child { border-bottom: 0; }

/* Sources */
.sources { font-size: 13.5px; color: var(--ink-3); columns: 2; column-gap: 40px; padding-left: 18px; }
.sources li { break-inside: avoid; margin: 0 0 6px; color: var(--ink-3); }
.sources a { color: var(--ink-2); border-bottom: 1px solid var(--outline-subtle); }
.sources a:hover { color: var(--ink); }

/* Final CTA band */
.cta-band { padding: 96px 0; background: var(--structural); border-top: 1px solid var(--outline-subtle); }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 56px); max-width: 18ch; }
.cta-band .lead { margin-top: 20px; }

/* Workbench band (same block as the partnership page) */
.wb-cta { border: 1px solid var(--outline-subtle); background: var(--surface); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.wb-copy { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.wb-copy .eyebrow { margin: 0; }
.wb-copy h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.wb-copy p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.wb-copy .btn { align-self: flex-start; margin-top: 6px; }
.wb-shot { display: block; border-left: 1px solid var(--outline-subtle); background: #F4F6F7; min-height: 100%; }
.wb-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Footer */
.footer { border-top: 1px solid var(--outline-subtle); background: var(--structural); padding-block: 36px; }
.f-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.f-bar a { color: var(--ink-2); }
.f-bar a:hover { color: var(--ink); }

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid2 { grid-template-columns: 1fr; gap: 28px; }
    .faq { grid-template-columns: 1fr; }
    .cards.two { grid-template-columns: 1fr; }
    .sources { columns: 1; }
    .wb-cta { grid-template-columns: 1fr; }
    .wb-copy { padding: 36px 28px; }
    .wb-shot { border-left: 0; border-top: 1px solid var(--outline-subtle); min-height: 0; }
    .wb-shot img { height: auto; aspect-ratio: 4 / 3; object-position: center top; }
}
@media (max-width: 640px) {
    .hero { padding-top: 84px; padding-bottom: 64px; }
    .subnav { margin-bottom: 40px; gap: 4px 16px; }
    .steps { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-logo img { height: 20px; }
    .nav-links .nav-m-hide { display: none; }
    .wb-copy { padding: 28px 20px; gap: 14px; }
    .wb-copy p { font-size: 16px; }
    .wb-copy .btn { align-self: stretch; text-align: center; }
    .wb-shot img { aspect-ratio: 6 / 7; }
    .tldr { padding: 18px 18px; }
    .card { padding: 18px 18px; }
}
@media (max-width: 400px) {
    .nav-logo img { height: 16px; }
    .nav-links a { font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; }
}
