/* Playbook section styles — extends the design system from the site's index.html */
:root{
  --ink:#1a1a1a; --muted:#6b6b6b; --line:#e6e6e6; --accent:#1f3a5f;
  --bg:#ffffff; --soft:#f7f8fa; --code-bg:#f4f6f8; --code-ink:#24292f;
  --maxw:860px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  line-height:1.6; font-size:17px; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 22px}

/* Nav */
nav{position:sticky; top:0; background:rgba(255,255,255,.92);
    backdrop-filter:saturate(180%) blur(8px);
    border-bottom:1px solid var(--line); z-index:10}
nav .wrap{display:flex; gap:18px; align-items:center; height:52px; font-size:14px}
nav .brand{font-weight:700; letter-spacing:.04em}
nav a{color:var(--muted)}
nav a:hover{color:var(--ink); text-decoration:none}
/* Breadcrumb trail */
nav .bc{display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-left:14px}
nav .bc .sep{color:#c9ced6}
nav .bc a{color:var(--muted)}
nav .bc .cur{color:var(--ink); font-weight:600}
@media(max-width:560px){ nav .bc .hide-sm{display:none} }

/* Page header */
header.page{padding:40px 0 6px}
header.page .kicker{font-size:13px; text-transform:uppercase; letter-spacing:.12em;
    color:var(--accent); font-weight:700; margin:0 0 10px}
header.page h1{font-size:34px; line-height:1.15; margin:0 0 6px; letter-spacing:-.01em}
header.page .lede{color:var(--muted); margin:0}

/* Content */
main{padding:14px 0 10px}
.content h2{font-size:24px; margin:34px 0 12px; letter-spacing:-.01em;
    padding-bottom:6px; border-bottom:1px solid var(--line)}
.content h3{font-size:19px; margin:26px 0 8px}
.content h4{font-size:16px; margin:20px 0 6px}
.content h5{font-size:14px; text-transform:uppercase; letter-spacing:.08em;
    color:var(--muted); margin:16px 0 6px}
.content p{margin:0 0 14px}
.content ul,.content ol{margin:0 0 14px; padding-left:22px}
.content li{margin-bottom:7px}
.content li>ul,.content li>ol{margin:7px 0 0}
.content strong{font-weight:700}
.content hr{border:0; border-top:1px solid var(--line); margin:30px 0}

/* Anchor links on headings */
.content h2,.content h3,.content h4{scroll-margin-top:64px; position:relative}
.content .anchor{opacity:0; color:var(--muted); margin-left:8px; font-weight:400;
    text-decoration:none; font-size:.8em}
.content h2:hover .anchor,.content h3:hover .anchor,.content h4:hover .anchor{opacity:1}

/* Inline code */
.content code{background:var(--code-bg); color:var(--code-ink);
    font-family:"SF Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:.86em; padding:2px 6px; border-radius:5px}

/* Code blocks */
.content pre{background:var(--code-bg); border:1px solid var(--line);
    border-radius:10px; padding:16px 18px; overflow-x:auto; margin:0 0 16px;
    line-height:1.5}
.content pre code{background:none; padding:0; font-size:13.5px; color:var(--code-ink)}
.content pre .lang-tag{display:block; font-size:11px; text-transform:uppercase;
    letter-spacing:.08em; color:var(--muted); margin:-4px 0 8px; user-select:none}

/* Blockquotes / callouts */
.content blockquote{margin:0 0 16px; padding:12px 16px; background:var(--soft);
    border-left:3px solid var(--accent); border-radius:6px; color:#333}
.content blockquote p{margin:0 0 6px}
.content blockquote p:last-child{margin:0}

/* Tables */
.table-scroll{overflow-x:auto; margin:0 0 18px;
    border:1px solid var(--line); border-radius:10px}
.content table{border-collapse:collapse; width:100%; font-size:14.5px}
.content th,.content td{text-align:left; padding:9px 13px;
    border-bottom:1px solid var(--line); vertical-align:top}
.content th{background:var(--soft); font-weight:700; white-space:nowrap}
.content tr:last-child td{border-bottom:0}
.content td code{font-size:.82em}
/* Wide tables (6+ columns, e.g. the choice matrix) break out past the text
   column on large screens so they fit without horizontal scrolling. */
@media(min-width:1080px){
  .table-scroll.wide{width:94vw; max-width:1200px;
      margin-left:50%; transform:translateX(-50%)}
}

/* Wikilinks that resolve within the section */
.content a.wikilink{border-bottom:1px dotted var(--accent); }
.content a.wikilink.dead{color:var(--muted); border-bottom-style:dotted; cursor:help}

/* Auto-linked framework references (deep links to the frameworks page) */
.content a.fwref{border-bottom:1px dotted #9aa7b8}
.content a.fwref:hover{border-bottom-color:var(--accent); text-decoration:none}

/* "Find your framework" starter path at the very top of the frameworks page */
.startpath{border:1px solid #d7e0ec; border-radius:12px; background:#f2f6fb;
    padding:14px 20px; margin:6px 0 18px}
.startpath-eyebrow{display:block; font-size:12px; text-transform:uppercase;
    letter-spacing:.1em; color:var(--accent); font-weight:700; margin-bottom:10px}
.startpath-steps{margin:0; padding:0; list-style:none; counter-reset:sp;
    display:flex; flex-wrap:wrap; gap:10px 20px}
.startpath-steps li{counter-increment:sp; margin:0; font-size:14.5px;
    position:relative; padding-left:28px}
.startpath-steps li::before{content:counter(sp); position:absolute; left:0; top:1px;
    width:19px; height:19px; border-radius:50%; background:var(--accent); color:#fff;
    font-size:11px; font-weight:700; line-height:19px; text-align:center}

/* Cross-module jump pills: entry <-> template (and back) */
.content h3 .jumplink,.content h4 .jumplink{font-size:10.5px; font-weight:700;
    letter-spacing:.04em; text-transform:uppercase; color:var(--accent);
    background:var(--soft); border:1px solid var(--line); border-radius:999px;
    padding:2px 9px; margin-left:10px; white-space:nowrap; vertical-align:middle;
    position:relative; top:-1px}
.content h3 .jumplink:hover,.content h4 .jumplink:hover{background:var(--accent);
    color:#fff; border-color:var(--accent); text-decoration:none}

.startpath-more{margin:10px 0 0; font-size:14px; color:#333}

/* ---- Build Your Recipe: interactive builder ---- */
.builder{border:1px solid #d7e0ec; border-radius:14px; background:#fbfcfe;
    padding:18px 20px; margin:6px 0 22px}
.builder-head,.out-head{display:flex; align-items:center; gap:10px; margin:0 0 10px}
.builder-head strong,.out-head strong{font-size:15px}
.builder .btn{margin-left:auto; font:inherit; font-size:13px; font-weight:600;
    cursor:pointer; border:1px solid var(--accent); background:var(--accent);
    color:#fff; border-radius:8px; padding:6px 13px}
.builder .btn:hover{filter:brightness(1.08)}
.builder .btn.ghost{margin-left:0; background:#fff; color:var(--accent)}
.builder .btn.ghost:first-of-type{margin-left:auto}
.out-head .btn{margin-left:auto}
.princ-l{display:block; font-size:13px; font-weight:600; color:var(--muted);
    margin:4px 0 5px}
.builder textarea{width:100%; font:inherit; font-size:14px; padding:9px 11px;
    border:1px solid var(--line); border-radius:8px; resize:vertical; background:#fff}
.builder .axes{display:grid; grid-template-columns:1fr; gap:12px; margin:14px 0}
@media(min-width:720px){ .builder .axes{grid-template-columns:1fr 1fr} }
fieldset.ax{border:1px solid var(--line); border-radius:10px; padding:12px 14px;
    margin:0; background:#fff}
fieldset.ax legend{font-weight:700; font-size:14px; padding:0 6px}
fieldset.ax legend .axl{display:inline-block; width:20px; height:20px; line-height:20px;
    text-align:center; border-radius:5px; background:var(--accent); color:#fff;
    font-size:12px; margin-right:4px; vertical-align:middle}
.axq{font-size:13px; color:var(--muted); margin:2px 0 4px}
.axan{font-size:12.5px; color:#8a94a3; font-style:italic; margin:0 0 10px; line-height:1.4}
.axex{font-size:12.5px; line-height:1.5; margin:10px 0 0; padding:7px 10px;
  background:var(--soft); border-left:3px solid var(--accent); border-radius:0 8px 8px 0}
.axex b{color:var(--accent)}
label.rb{display:flex; gap:8px; align-items:flex-start; font-size:13.5px;
    padding:4px 0; cursor:pointer; line-height:1.4}
label.rb input{margin-top:3px; flex:none}
label.rb.skip span{color:var(--muted)}
label.rb.skip em{font-style:normal}
label.nest{display:flex; gap:7px; align-items:center; font-size:13px; margin-top:8px;
    padding-top:8px; border-top:1px dashed var(--line); color:#333}
.content pre.recipe-out{background:#0f1b2d; color:#e7edf6; border:0; font-size:13px;
    white-space:pre; overflow-x:auto}
.content pre.recipe-out:empty::before{content:"Pick options above, your recipe card builds here.";
    color:#9db0c9}

/* ---- Task profile + live advice (recipe builder feedback) ---- */
.taskprofile{border:1px solid #d7e0ec; border-radius:10px; background:#f2f6fb; padding:12px 14px; margin:0 0 14px}
.tp-head{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:0 0 10px}
.tp-head strong{font-size:14px}
.tp-hint{font-size:12px; color:var(--muted)}
.tp-grid{display:grid; grid-template-columns:1fr; gap:8px}
@media(min-width:620px){ .tp-grid{grid-template-columns:1fr 1fr} }
.tp-q{display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; font-size:13px}
.tp-q .tp-l{font-weight:600; color:var(--muted)}
.tp-q label{display:inline-flex; gap:5px; align-items:center}
.tp-c{display:flex; gap:7px; align-items:flex-start; font-size:13px; line-height:1.35}
.tp-c input,.tp-q input[type=radio]{margin-top:2px; flex:none}
.tp-q input[type=text]{flex:1; min-width:150px; font:inherit; font-size:13px; padding:6px 9px; border:1px solid var(--line); border-radius:7px}
.sugg{display:inline-block; margin-left:8px; font-size:11px; font-weight:600; color:#1f6f43; background:#e6f4ec; border:1px solid #bfe3cf; border-radius:999px; padding:1px 8px; vertical-align:middle}
.sugg:empty{display:none}
.lint{margin:8px 0 0}
.lint:empty{display:none}
.lint .msg{display:block; font-size:12px; line-height:1.4; padding:5px 9px; border-radius:7px; margin-top:5px}
.lint .warn{background:#fdf0e3; border:1px solid #f2d3ad; color:#8a5a12}
.lint .ok{background:#e9f5ee; border:1px solid #c6e6d3; color:#256b41}
.lint .info{background:#eef2f8; border:1px solid #d7e0ec; color:#41556f}
.out-head .btn+.btn{margin-left:0}
/* Shown after "Get an AI critique" copies: the clipboard says nothing on its own. */
.nextstep{margin:0 0 10px; padding:11px 13px; border:1px solid #c6e6d3; border-radius:9px; background:#f2f9f5; font-size:13px; line-height:1.5}
.nextstep[hidden]{display:none}
.nextstep p{margin:0}
.nextstep ol{margin:6px 0 0; padding-left:20px}
.nextstep li{margin:4px 0}
.nextstep .tp-hint{display:block; margin-top:8px}

/* ---- Assembly flow (dims to the user's recipe) ---- */
.asmflow{display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin:16px 0; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fff}
.asm-stage{flex:1; min-width:120px; display:flex; flex-direction:column; gap:3px; padding:9px 11px; border:1px solid var(--line); border-radius:9px; background:var(--soft); transition:opacity .15s, border-color .15s, background .15s}
.asm-stage.on{border-color:#bfe3cf; background:#eef7f1}
.asm-stage.dim{opacity:.38}
.asm-n{font-size:11px; font-weight:700; color:#fff; background:var(--accent); width:18px; height:18px; line-height:18px; text-align:center; border-radius:5px}
.asm-t{font-weight:700; font-size:13px}
.asm-ax{font-size:11.5px; color:var(--muted); line-height:1.35}
.asm-arrow{align-self:center; color:var(--muted); font-size:15px}
@media(max-width:620px){ .asmflow{flex-direction:column} .asm-arrow{transform:rotate(90deg); align-self:center} }

/* ---- Lifecycle list (hub) ---- */
ol.lifecycle{margin:10px 0 22px; padding-left:22px}
ol.lifecycle li{margin-bottom:8px; line-height:1.5}

/* ---- Eval-prompt generator ---- */
.ev-l{font-size:13px; font-weight:600; color:var(--muted); margin:14px 0 8px}
.ev-fws{display:grid; grid-template-columns:1fr; gap:6px 14px; margin:0 0 8px}
@media(min-width:620px){ .ev-fws{grid-template-columns:1fr 1fr} }
label.ev-fw{display:flex; gap:7px; align-items:center; font-size:13.5px}
label.ev-fw input{flex:none}

/* ---- Axis reference cards (static, no-JS fallback + readable) ---- */
.axis-cards{display:grid; grid-template-columns:1fr; gap:14px; margin:10px 0 22px}
@media(min-width:720px){ .axis-cards{grid-template-columns:1fr 1fr} }
.axis-card{border:1px solid var(--line); border-radius:12px; padding:14px 16px;
    background:#fff}
.axis-card h4{margin:0 0 2px; font-size:15px}
.axis-card h4 .axl{display:inline-block; width:20px; height:20px; line-height:20px;
    text-align:center; border-radius:5px; background:var(--accent); color:#fff;
    font-size:12px; margin-right:5px}
table.axis-tbl{width:100%; border-collapse:collapse; font-size:13.5px; margin:8px 0}
table.axis-tbl th{background:var(--soft); text-align:left; font-weight:700;
    padding:6px 10px; border-bottom:1px solid var(--line); white-space:nowrap}
table.axis-tbl td{padding:6px 10px; border-bottom:1px solid var(--line);
    vertical-align:top}
table.axis-tbl tr:last-child td{border-bottom:0}
table.axis-tbl .c{color:var(--accent); font-weight:700; font-size:.85em}
.axmeta{font-size:12.5px; color:var(--muted); margin:4px 0 0; line-height:1.45}

/* Framework index (top of the frameworks page) — NOT sticky */
.fw-index{position:static; border:1px solid var(--line); border-radius:12px;
    background:var(--soft); padding:18px 20px; margin:6px 0 30px}
.fw-index h2{border:0; margin:0 0 12px; font-size:13px; text-transform:uppercase;
    letter-spacing:.1em; color:var(--accent); font-weight:700}
.fw-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px 22px}
@media(min-width:760px){ .fw-grid{grid-template-columns:repeat(4,1fr)} }
.fw-axis-label{display:block; font-weight:700; font-size:12px; color:var(--muted);
    text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px}
.fw-index ul{list-style:none; margin:0; padding:0}
.fw-index li{margin:0 0 4px; font-size:14px; line-height:1.35}
.fw-index li b{color:var(--accent); font-variant-numeric:tabular-nums}
.fw-index li a{color:var(--ink)}
.fw-index li a:hover{color:var(--accent); text-decoration:none}

/* Hub cards */
.cards{display:grid; grid-template-columns:1fr; gap:14px; margin:8px 0 20px}
@media(min-width:640px){ .cards{grid-template-columns:1fr 1fr} }
.card{border:1px solid var(--line); border-radius:12px; padding:18px 20px;
    background:#fff; transition:box-shadow .15s, border-color .15s}
.card:hover{box-shadow:0 4px 16px rgba(0,0,0,.07); border-color:#d9dde3}
.card h3{margin:0 0 6px; font-size:18px}
.card h3 a{color:var(--ink)}
.card p{margin:0; color:var(--muted); font-size:15px}
.card .tag{display:inline-block; margin-top:10px; font-size:12px;
    color:var(--accent); background:var(--soft); border:1px solid var(--line);
    border-radius:999px; padding:3px 10px}

/* Mermaid — render at natural size, scroll instead of shrinking to column */
.content pre.mermaid{background:#fff; text-align:center; overflow-x:auto;
    padding:22px; border:1px solid var(--line); border-radius:10px}
.content pre.mermaid svg{max-width:none !important; height:auto}
/* let the diagram use more than the text column on wide screens */
@media(min-width:1080px){
  .content pre.mermaid{width:96vw; max-width:1160px;
      margin-left:50%; transform:translateX(-50%)}
}

footer{padding:30px 0 48px; color:var(--muted); font-size:13.5px;
    text-align:center; border-top:1px solid var(--line); margin-top:30px}
footer .footer-cta{margin:0 0 16px; font-size:15px; font-weight:600; color:var(--ink)}
footer .footer-cta a{color:var(--accent)}
