/* Printable PMP study sheets: A4 and Letter safe, WCAG AA on screen, 320px safe */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root { --navy: #122340; --gold: #F5C518; --ink: #1A2233; --muted: #4A5568; --line: #CBD5E1; --soft: #F4F6FA; }
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: #FFFFFF; line-height: 1.5; font-size: 15px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: var(--gold); color: var(--navy); padding: 8px 12px; z-index: 9; font-weight: 700; }
.bar { position: sticky; top: 0; background: var(--navy); border-bottom: 3px solid var(--gold); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.back { color: var(--gold); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.save { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 15px; cursor: pointer; }
.save:focus-visible, .back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.sheet { max-width: 900px; margin: 0 auto; padding: 18px 14px 24px; }
.head { border-bottom: 4px solid var(--navy); padding-bottom: 10px; margin-bottom: 14px; }
.brand-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.brand-head img { width: 30px; height: 30px; display: block; flex: none; transform: rotate(-4deg); box-shadow: 2px 2px 0 #111214; }
.kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
h1 { font-family: "Archivo", Arial, sans-serif; font-weight: 900; font-size: clamp(24px, 5vw, 34px); margin: 4px 0 6px; color: var(--navy); }
h2 { font-family: "Archivo", Arial, sans-serif; font-weight: 800; font-size: 18px; margin: 0 0 8px; color: var(--navy); }
h3 { font-size: 15px; margin: 0 0 6px; }
h3 span { font-weight: 400; color: var(--muted); font-size: 13px; }
.lead { margin: 0; color: var(--muted); }
.block { margin: 0 0 18px; break-inside: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.tbl th { background: var(--navy); color: #FFFFFF; font-size: 12px; }
.tbl tr { break-inside: avoid; }
.eq { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .eq { white-space: normal; } .tbl { font-size: 12.5px; } }
.box { width: 44px; }
.box::before { content: ""; display: block; width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 3px; margin: 2px auto; }
.tip { background: var(--soft); border-left: 5px solid var(--gold); padding: 12px 14px; }
.tip ul { margin: 0; padding-left: 18px; }
.rules { margin: 0; padding-left: 22px; columns: 2 320px; column-gap: 26px; }
.rules li { break-inside: avoid; margin-bottom: 8px; }
.rules strong { display: block; }
.rules span { color: var(--muted); }
.weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.week { border: 1px solid var(--line); border-radius: 8px; padding: 10px; break-inside: avoid; }
.check { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.check li { position: relative; padding-left: 24px; margin-bottom: 5px; }
.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border: 2px solid var(--navy); border-radius: 3px; }
.trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.tree { border: 1.5px solid var(--line); border-top: 5px solid var(--navy); border-radius: 8px; padding: 10px; break-inside: avoid; font-size: 13px; }
.tree h2 { font-size: 15px; display: flex; justify-content: space-between; gap: 6px; }
.dom { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; color: var(--muted); }
.tree .q { margin: 0 0 6px; font-weight: 600; }
.tree ul { margin: 0; padding-left: 16px; }
.tree li { margin-bottom: 5px; }
.if { color: var(--muted); }
.foot { margin-top: 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.more { max-width: 900px; margin: 0 auto 30px; padding: 0 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.more a { color: var(--navy); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media print {
  @page { margin: 12mm; }
  .no-print { display: none !important; }
  body { font-size: 11.5px; }
  .sheet { max-width: none; padding: 0; }
  .tbl th { background: #FFFFFF; color: #000000; border-bottom: 2px solid #000000; }
  a { color: inherit; text-decoration: none; }
}
/* Figures (review pass 5) */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.figs.one { grid-template-columns: 1fr; }
.fig { margin: 0 0 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; break-inside: avoid; }
.fig svg { width: 100%; height: auto; display: block; max-height: 260px; }
.fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fig .ax { stroke: var(--ink); stroke-width: 1.5; }
.fig .gd { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.fig .pv, .fig .ev, .fig .ac { fill: none; stroke-width: 3; }
.fig .pv { stroke: var(--navy); }
.fig .ev { stroke: #18754B; stroke-dasharray: 8 4; }
.fig .ac { stroke: #B54824; stroke-dasharray: 2 4; stroke-linecap: round; }
.fig .var { stroke: #B91C1C; stroke-width: 2.5; }
.fig .t { font-size: 12px; fill: var(--ink); font-family: "Inter", system-ui, sans-serif; }
.fig .t.b, .fig .b { font-weight: 700; }
.fig .t.s { font-size: 10.5px; }
.fig .q1, .fig .q4 { fill: #FEF3C7; stroke: #FFFFFF; stroke-width: 2; }
.fig .q2 { fill: #DCFCE7; stroke: #FFFFFF; stroke-width: 2; }
.fig .q3 { fill: #FEE2E2; stroke: #FFFFFF; stroke-width: 2; }
.fig .d1 { fill: #18754B; } .fig .d2 { fill: #1E54B0; } .fig .d3 { fill: #B54824; }
.fig .st { stroke: var(--navy); stroke-width: 1.5; }
.fig .s0 { fill: #DCFCE7; } .fig .s1 { fill: #E0F2FE; } .fig .s2 { fill: #FEF3C7; } .fig .s3 { fill: #FEE2E2; }
.fig rect.d2 + text, .fig rect.d3 + text { fill: var(--ink); }
@media print { .fig { border-color: #999999; } .fig svg { max-height: 200px; } }
/* Workbooks */
.work { min-width: 140px; height: 54px; }
.key { border-top: 3px dashed var(--line); padding-top: 12px; break-before: page; }
.key ol { padding-left: 22px; font-size: 13.5px; }
.key li { margin-bottom: 4px; }
.case { break-inside: auto; }
.case .setup { background: var(--soft); padding: 8px 10px; border-radius: 6px; }
.case > ol > li { margin-bottom: 10px; break-inside: avoid; }
.case > ol > li p { margin: 0 0 4px; }
.case ol[type="A"] { padding-left: 22px; margin: 0; font-size: 13.5px; }
@media (max-width: 560px) { .work { min-width: 0; width: 30%; } .tbl th, .tbl td { padding: 4px 4px; } .tbl { font-size: 11.5px; word-break: break-word; } }
.gloss { margin: 0; columns: 2 300px; column-gap: 24px; }
.gloss div { break-inside: avoid; margin-bottom: 8px; }
.gloss dt { font-weight: 700; }
.gloss dt span { font-weight: 400; font-size: 11px; color: var(--muted); }
.gloss dd { margin: 0; font-size: 13.5px; }
