/* Guide pages: passing score, how hard, PBQs, study guide, SY0-701, objective 2.6.
   Page-group components only. Tokens only: every colour and font size comes from site.css. */

/* =========================== Jump chips (in-page navigation) =========================== */
.chips.jump li { padding: 0; border: 0; background: none; }
.chips.jump a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: .45rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); text-decoration: none;
}
.chips.jump a:hover { border-color: var(--brand); color: var(--brand); }
.chips.jump a small { font: 600 var(--text-label)/1 var(--font-mono); color: var(--ink-3); }

/* =========================== Raw points → scaled score (two rulers) =========================== */
.convert { max-width: 940px; margin: 0 auto; }
.cv-name { margin: 0 0 12px; font: 600 var(--text-label)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cv-name.low { margin: 14px 0 0; }
.cv-bar { position: relative; height: 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.cv-bar.raw { background: linear-gradient(90deg, var(--surface) 0 68.75%, color-mix(in srgb, var(--mint) 22%, var(--surface)) 68.75%); }
.cv-bar.scaled { background: linear-gradient(90deg, var(--surface) 0 81.25%, color-mix(in srgb, var(--mint) 22%, var(--surface)) 81.25%); }
.cv-dot { position: absolute; top: 50%; left: var(--x); width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--brand); }
.cv-dot.line { width: 3px; height: 34px; border-radius: 2px; background: var(--ink); }
.cv-dot.you { width: 16px; height: 16px; background: var(--coral); box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 25%, transparent); }
.cv-labels { position: relative; height: 18px; font: 600 var(--text-mono)/1 var(--font-mono); color: var(--ink-2); }
.cv-labels.top { margin-bottom: 8px; }
.cv-labels.bottom { margin-top: 8px; }
.cv-labels span { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.cv-labels span.start { transform: none; }
.cv-labels span.end { transform: translateX(-100%); }
.cv-labels .pass { color: var(--ink); font-weight: 700; }
.cv-links { display: block; width: 100%; height: 96px; overflow: visible; }
.cv-links line { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.cv-links line.pass { stroke: var(--ink); stroke-dasharray: none; }
.cv-links line.you { stroke: var(--coral); stroke-dasharray: none; stroke-width: 3; }
.cv-mid { position: relative; }
.cv-mid span.you { position: absolute; left: var(--x); transform: translateX(-50%); padding: 3px 7px; border-radius: 7px; white-space: nowrap;
  font: 700 var(--text-mono)/1 var(--font-mono); color: var(--coral-ink); background: var(--bg); border: 1.5px solid var(--coral); }
.section-alt .cv-mid span.you { background: var(--surface-2); }
.cv-mid span.you.t { top: 10px; }
.cv-mid span.you.b { bottom: 10px; }
.table-wrap.slim table.data { min-width: 0; }
@media (max-width: 560px) { .table-wrap.slim table.data th, .table-wrap.slim table.data td { padding: .6rem .65rem; } }

/* Short path chain (A+ → Network+ → Security+): stack vertically when it can't fit on one line */
@media (max-width: 480px) {
  .chain.path { flex-direction: column; align-items: center; gap: 14px; }
  .chain.path li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -13px; width: 0; height: 10px; border-top: 0; border-left: 2px solid var(--line-strong); }
}
.cv-cap { max-width: 64ch; margin: 22px auto 0; text-align: center; font-size: var(--text-sm); color: var(--ink-3); }

/* =========================== Objective map (27 cells, scenario ones lit) =========================== */
.objmap { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.om-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.om-d { font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.om-row ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 72px)); gap: 6px; }
.om-row li {
  display: grid; place-items: center; height: clamp(40px, 6vw, 56px); border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font: 600 var(--text-label)/1 var(--font-mono); color: var(--ink-3);
}
.om-row li.on { background: var(--coral); border-color: var(--coral); color: var(--night); font-weight: 700; }
.om-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 22px 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--ink-2); }
.om-legend li { display: inline-flex; align-items: center; gap: 8px; }
.om-legend i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); }
.om-legend i.on { background: var(--coral); border-color: var(--coral); }

/* =========================== Six-key PBQ switcher =========================== */
@media (min-width: 760px) { .keys.six { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .keys.six { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.keys.six .keycap { padding: 12px 14px 14px; }
.grade-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); }
.grade-note .icon { color: var(--brand); margin-top: 2px; }
.grade-note strong { color: var(--ink); }
table.rules.matrix td, table.rules.matrix th { white-space: nowrap; }
table.rules.matrix tbody th { font-weight: 600; color: var(--ink); text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
table.rules.matrix tbody tr:last-child th { border-bottom: 0; }
td.cell-no { background: var(--rose-soft); }
.sev { display: inline-block; padding: .1rem .45rem; border-radius: 6px; font-weight: 600; }
.sev.crit { background: var(--rose-soft); color: var(--rose); }
.sev.high { background: var(--coral-soft); color: var(--coral-ink); }
.sev.med { background: var(--surface-2); color: var(--ink-2); }

/* =========================== Study plan: tabs, week strip, week rows =========================== */
.plan { max-width: 980px; margin: 0 auto; }
.plan-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto 36px; }
@media (max-width: 559px) { .plan-tabs .tp-tab small { display: none; } }
.no-js .plan-tabs { display: none; }
.plan-tabs .tp-tab { min-height: 60px; }
@media (min-width: 560px) { .plan-tabs .tp-tab { min-height: 84px; } }
.plan-panel[hidden] { display: none; }
.no-js .plan-panel + .plan-panel { margin-top: 64px; }
.plan-head { text-align: center; margin: 0 auto 26px; max-width: 62ch; }
.plan-head h3 { margin: 0 0 .3rem; font-size: var(--step-2); }
.plan-head p { margin: 0; color: var(--ink-2); font-size: var(--text-ui); }
.strip { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; padding-top: 22px; }
.strip i { position: relative; height: 16px; border-radius: 5px; background: var(--c, var(--line-strong)); }
.strip i.prep { --c: repeating-linear-gradient(-45deg, var(--line-strong) 0 5px, var(--surface-2) 5px 10px); }
.strip i.mk::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 6px); width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 24%, transparent); }
.strip-axis { display: flex; justify-content: space-between; margin-bottom: 30px; font: 500 var(--text-label)/1 var(--font-mono); color: var(--ink-3); }
.weeks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.wk { position: relative; display: grid; gap: 6px 22px; padding: 18px 0 18px 22px; border-bottom: 1px solid var(--line-strong); }
.wk::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 6px; border-radius: 6px; background: var(--c, var(--line-strong)); }
.wk.prep::before { background: repeating-linear-gradient(-45deg, var(--line-strong) 0 5px, var(--surface-2) 5px 10px); }
@media (min-width: 820px) { .wk { grid-template-columns: 96px 1fr 190px; align-items: center; } }
.wk-n { font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wk-n b { display: block; margin-top: 4px; font: 800 var(--display-s)/.9 var(--font-display); letter-spacing: -.05em; color: var(--ink); text-transform: none; }
@media (max-width: 819px) { .wk-n b { display: inline; margin: 0 0 0 6px; font-size: var(--step-2); } }
.wk h4 { margin: 0 0 .2rem; font-size: var(--text-title); }
.wk p { margin: 0; font-size: var(--text-ui); line-height: 1.55; color: var(--ink-2); }
.wk-cp { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: .4rem .75rem; border-radius: 999px; background: var(--coral-soft); color: var(--coral-ink); font: 700 var(--text-mono)/1.2 var(--font-mono); }
.wk-cp.drill { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 820px) { .wk-cp { justify-self: end; } }
.wk-cp .icon { width: 1rem; height: 1rem; }
.plan-key { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: var(--text-sm); color: var(--ink-2); }
.plan-key li { display: inline-flex; align-items: center; gap: 8px; }
.plan-key i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.plan-key i.prep { background: repeating-linear-gradient(-45deg, var(--line-strong) 0 3px, var(--surface-2) 3px 6px); }
.plan-key i.mk { border-radius: 50%; background: var(--coral); }
.c-rev { --c: var(--ink); }

/* =========================== 100-square waffle (one square = 1% of the exam) =========================== */
.waffle.w100 { grid-template-columns: repeat(10, minmax(0, 1fr)); max-width: 420px; margin: 0 auto; }
@media (min-width: 760px) { .waffle.w100 { grid-template-columns: repeat(20, minmax(0, 1fr)); max-width: 820px; } }

/* =========================== AI threat atlas =========================== */
.atlas-group + .atlas-group { margin-top: clamp(48px, 6vw, 72px); }
.atlas-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; max-width: 1000px; margin: 0 auto 4px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.atlas-head h3 { margin: 0; font-size: var(--step-2); }
.atlas-head p { margin: 0; color: var(--ink-3); font-size: var(--text-ui); }
.atlas { list-style: none; max-width: 1000px; margin: 0 auto; padding: 0; }
.atlas > li { display: grid; gap: 8px 36px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 860px) { .atlas > li { grid-template-columns: 280px 1fr; } }
.at-name .n { display: block; margin-bottom: 6px; font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); }
.at-name h4 { margin: 0; font-size: var(--step-1); }
.at-body p { margin: 0; color: var(--ink-2); font-size: var(--text-ui); line-height: 1.6; }
.at-body p.ex { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--coral-soft) 65%, transparent); color: var(--ink); }
.at-body p.ex b { display: block; font: 600 var(--text-label)/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); }

/* =========================== Look-alike pairs (term vs term) =========================== */
.duels { list-style: none; max-width: 980px; margin: 0 auto; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.duel { display: grid; gap: 10px 22px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 860px) { .duel { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: start; } }
.duel .side b { display: block; font: 700 var(--text-title)/1.3 var(--font-display); color: var(--ink); }
.duel .side p { margin: 4px 0 0; font-size: var(--text-ui); line-height: 1.55; color: var(--ink-2); }
.duel .vs-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 var(--text-label)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 860px) { .duel .vs-badge { justify-self: center; margin-top: 2px; } .duel .side:last-child { text-align: left; } }
.duel .tell { grid-column: 1 / -1; margin: 4px 0 0; font-size: var(--text-sm); color: var(--ink-3); }
.duel .tell strong { color: var(--coral-ink); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

/* =========================== Where AI appears (three objectives) =========================== */
.pipe .node.coral { border-color: var(--coral); color: var(--coral-ink); background: var(--coral-soft); }
.pipe .node b { font: 800 var(--text-title)/1 var(--font-display); color: inherit; letter-spacing: -.02em; }
.pipe .chips { margin-top: 14px; }

/* =========================== Published / not published =========================== */
.pubs { max-width: 1000px; margin: 0 auto; display: grid; gap: 30px; }
@media (min-width: 900px) { .pubs { grid-template-columns: 1fr 1fr; gap: 48px; } }
.pubs h3 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-size: var(--text-title); text-align: center; }
.pubs h3 .icon { width: 1.2em; height: 1.2em; }
.pubs .yes .icon { color: var(--mint); }
.pubs .no .icon { color: var(--rose); }

/* =========================== Demo PBQ stage =========================== */
.demo-art { max-width: 920px; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--night); }
.demo-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) { .demo-art img { aspect-ratio: 21 / 9; object-position: 50% 30%; } }
.demo-meta { max-width: 760px; margin: 26px auto 0; text-align: center; }
.demo-meta .specs { margin-bottom: 22px; }
.demo-meta .hero-ctas { margin-top: 0; }

/* =========================== Timeline months: let the 12 columns shrink below their label width at 320px =========================== */
.tl-months { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 400px) { .tl-months span { padding-left: 2px; } }
