/* /plan and /ar/plan (STUDY_PLAN_SPEC.md phase 2). Uses the site tokens from cards.css / cards-v4.css. */
.plan-main{padding:28px 0 64px}
.plan-wrap{max-width:580px}
.plan-wrap h1{font-size:clamp(32px,7vw,46px);line-height:1.08;margin:0}
[dir="rtl"] .plan-wrap h1{line-height:1.3}
.plan-wrap .lead{font-size:18px;margin:14px 0 0;color:var(--text)}
.plan-wrap .lead b{color:var(--action)}
.plan-change{margin:8px 0 0;font-size:14px}
.plan-wrap a:not(.btn-primary):not(.btn-ghost){color:var(--action);font-weight:600}
.plan-cta{margin-top:18px}

.stations{list-style:none;padding:0;margin:28px 0 0;position:relative}
/* date | dot on the line | stop (owner 2026-10-18: date on the opposite side of the path, as numbers) */
.stations::before{content:"";position:absolute;inset-inline-start:73px;top:10px;bottom:10px;width:4px;border-radius:2px;background:var(--line)}
.sta{position:relative;display:grid;grid-template-columns:52px 26px minmax(0,1fr);column-gap:10px;align-items:start;padding:0 0 26px}
.sta .sd{display:grid;justify-items:end;padding-top:2px;text-align:end}
.sta .sd b{font-size:20px;line-height:22px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.sta .sd em{font-style:normal;font-size:13px;line-height:16px;font-weight:700;color:var(--ink)}
.sta .sd small{font-size:12px;font-weight:700;color:var(--muted)}
.sta>i{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;background:var(--surface);border:4px solid var(--line)}
.sta.done>i{background:var(--action);border-color:var(--action)}
.sta.now>i{border-color:var(--action);box-shadow:0 0 0 5px var(--select,#E7F2FA)}
.sta.check>i,.sta.ex>i{border-color:#F2C75C}
.sta.fin>i{background:var(--ink);border-color:var(--ink)}
.sta>div{min-width:0}
.sta .st{display:block;font-size:18px;line-height:26px;color:var(--ink)}
.sta p{margin:3px 0 0;color:var(--muted);font-size:15px}
.sta p b{color:var(--ink)}
.sta .here{font-size:13px;font-weight:700;color:var(--action)}
.tw{margin-top:10px;background:var(--select,#E7F2FA);border-radius:14px;padding:10px 12px}
.tw b{font-size:14px;color:var(--ink)}
.tw p{margin:2px 0 0;font-size:14px;color:var(--ink)}
.tw p b{color:var(--action)}
.sta details{margin-top:8px;font-size:14px}
.sta summary{cursor:pointer;color:var(--action);font-weight:600;min-height:32px;display:flex;align-items:center}
.wl{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:6px}
.wl li{display:flex;gap:10px}
.wl li span{flex:none;min-width:56px;white-space:nowrap;font-weight:700;color:var(--ink)}
.wl li div{display:flex;flex-direction:column}
.wl li b{font-weight:600;color:var(--ink)}
.wl li small{font-size:13px;color:var(--muted)}
.wl li.now b{color:var(--action)}

.deckbox,.filebox{margin-top:14px;background:var(--surface);border:2px solid var(--line);border-radius:20px;padding:18px}
.deckbox h2,.filebox h2{font-size:20px;margin:0;line-height:1.25}
.deckbox p,.filebox p{margin:6px 0 0;color:var(--muted)}
.deckbox .ctas{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.deckbox .ctas a,.filebox .btn-primary{width:100%;justify-content:center;text-align:center}
.filebox{scroll-margin-top:80px}
.file-lang{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0;font-size:14px;color:var(--muted)}
.file-lang button{border:2px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:4px 12px;font:inherit;font-weight:600;cursor:pointer;min-height:36px}
.file-lang button[aria-pressed="true"]{border-color:var(--action);color:var(--action)}
.file-status{font-size:14px;min-height:1em}

/* "Edit plan": all four answers behind one control (owner 2026-10-18: "don't like this part" on the always-open form) */
.add-exam{white-space:nowrap}
.plan-edit{margin:12px 0 0}
.plan-edit summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:2px solid var(--line);border-radius:999px;background:var(--surface);color:var(--action);font-weight:700;cursor:pointer;list-style:none}
.plan-edit summary::-webkit-details-marker{display:none}
.plan-edit summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.plan-edit[open] summary{background:var(--select,#E7F2FA);border-color:transparent}
.plan-tune{display:grid;gap:14px;margin:12px 0 4px;padding:16px;border-radius:20px;background:var(--select,#E7F2FA)}
.plan-tune fieldset{margin:0;padding:0;border:0;min-width:0}
.plan-tune legend,.tune-date>span{display:block;margin-bottom:8px;padding:0;font-weight:700;font-size:15px;color:var(--ink)}
.tune-date small{font-weight:500;color:var(--muted)}
.tune-chips{display:flex;flex-wrap:wrap;gap:8px}
.tune-chips input{position:absolute;opacity:0;pointer-events:none}
.tune-chips span{display:grid;place-items:center;min-width:48px;min-height:44px;padding:0 12px;border:2px solid var(--line);border-radius:12px;background:var(--surface);font-weight:800;color:var(--ink);cursor:pointer}
.tune-chips input:checked+span{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.tune-chips input:disabled+span{opacity:.35;cursor:not-allowed}
.tune-chips input:focus-visible+span{outline:3px solid var(--action);outline-offset:2px}
.tune-date input{min-height:44px;padding:0 12px;border:2px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit}
.plan-velang { font-weight: 700; color: var(--action); }

/* print link + print sheet (also previewed on screen with ?print=1) */
.plan-print{padding:0;border:0;background:none;color:var(--action);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.print-note,.print-sheet{display:none}
@media print{ @page{size:A4;margin:12mm} }
html.is-printing body{background:#fff!important}
html.is-printing .site-header,html.is-printing .site-footer,html.is-printing .buy-bar,html.is-printing .plan-wrap>*:not(.print-sheet){display:none!important}
html.is-printing .plan-main,html.is-printing .plan-wrap{padding:0!important;margin:0!important;max-width:none!important}
html.is-printing .print-sheet{display:block;color:#000;font-size:11px;line-height:1.3;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.print-sheet header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:10px;border-bottom:2px solid #000}
.print-sheet .brand{margin:0;font-size:11px;font-weight:700;letter-spacing:.04em}
.print-sheet h1{margin:2px 0 6px;font-size:24px;line-height:1.15;color:#000}
.print-sheet .rule{margin:0;font-size:13px;color:#000}
.print-sheet .tick{margin:3px 0 0;font-size:11px;color:#333}
.print-sheet .qr{margin:0;width:96px;flex:none;text-align:center}
.print-sheet .qr svg{width:84px;height:84px}
.print-sheet .qr figcaption{font-size:8.5px;line-height:1.25;color:#333}
.print-sheet .weeks{list-style:none;margin:8px 0 0;padding:0}
.print-sheet .weeks.two{columns:2;column-gap:18px}
.print-sheet li{display:flex;align-items:center;gap:6px;min-height:var(--rh,20px);break-inside:avoid}
.print-sheet .wd{flex:none;width:44px;font-weight:700;white-space:nowrap;text-align:end}
/* the road: one line through every row, a node per row (owner: keep the journey on paper) */
.print-sheet .rd{position:relative;flex:none;width:24px;align-self:stretch}
.print-sheet .rd::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:3px;margin-left:-1.5px;background:#000}
.print-sheet li:first-child .rd::before{top:50%}
.print-sheet li:last-child .rd::before{bottom:50%}
.print-sheet .rd::after{content:"";position:absolute;left:50%;top:50%;width:7px;height:7px;border-radius:50%;background:#000;transform:translate(-50%,-50%)}
.print-sheet .stop .rd::after{width:17px;height:17px;background:#fff;border:3px solid #000;box-sizing:border-box}
.print-sheet .stop.start .rd::after,.print-sheet .stop.fin .rd::after{background:#000}
.print-sheet .stop.fin .rd::after{width:21px;height:21px}
.print-sheet .ms .rd::after{width:12px;height:12px;border-radius:2px;background:#fff;border:2px solid #000;box-sizing:border-box;transform:translate(-50%,-50%) rotate(45deg)}
.print-sheet .stop b,.print-sheet .ms b{flex:none;font-size:13px}
.print-sheet .stop.fin b{font-size:15px}
.print-sheet .wb{flex:none;display:flex;gap:2px}
.print-sheet .bx{display:grid;place-items:center;width:calc(var(--rh,20px) * .62);height:calc(var(--rh,20px) * .62);max-width:20px;max-height:20px;border:1.3px solid #000;border-radius:3px;font-size:7.5px;color:#888}
.print-sheet .bx.off{border-color:#ccc;color:transparent;background:repeating-linear-gradient(45deg,transparent 0 3px,#ddd 3px 4px)}
.print-sheet .wp{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#444}
.print-sheet .wk .wp{font-size:10.5px}
html.is-printing .plan-wrap{color:#000}
[dir="rtl"] .print-sheet .wd{width:62px}

/* add to my calendar */
.calbox .cal-time{display:flex;align-items:center;gap:10px;margin-top:12px;font-weight:700;color:var(--ink)}
.calbox .cal-time input{min-height:44px;padding:0 12px;border:2px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit}
.calbox .ctas{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.calbox .ctas a,.calbox .ctas button{width:100%;justify-content:center;text-align:center}
.calbox .cal-note{font-size:13px}

/* end of the plan: one primary action, tools behind one switch (owner 2026-10-18: no stacked same-weight boxes) */
.plan-band{margin-top:28px;padding:26px 20px 18px;border-radius:24px;background:#2E7CB4;color:#fff;text-align:center}
[data-theme="dark"] .plan-band{background:#1F5A86}
.plan-band h2{margin:0;font-size:24px;line-height:1.2;color:#fff}
.plan-band p{margin:6px 0 16px;color:#E7F2FA}
.plan-band .btn-primary{width:100%;justify-content:center;background:#fff;color:#1F5A86;box-shadow:0 5px 0 #1F5A86}
[data-theme="dark"] .plan-band .btn-primary{background:#F3F7FB;color:#0F2742;box-shadow:0 5px 0 #0A1C30}
.plan-band .plan-demo{display:inline-flex;align-items:center;min-height:48px;margin-top:6px;color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.plan-keep{margin-top:30px}
.plan-keep h2{margin:0 0 12px;font-size:20px}
.keep-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;border-radius:18px;background:var(--select,#E7F2FA)}
.keep-tabs button{display:grid;justify-items:center;gap:4px;min-height:64px;padding:8px 4px;border:0;border-radius:14px;background:transparent;color:var(--muted);font:700 14px/1.1 var(--font-display,inherit);cursor:pointer}
.keep-tabs button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.keep-tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 3px 0 var(--line)}
.keep-tabs button:focus-visible{outline:3px solid var(--action);outline-offset:2px}
.keep-panel{padding:16px 2px 0}
.keep-panel p{margin:0;color:var(--muted)}
.keep-panel .btn-primary{width:100%;justify-content:center;margin-top:14px}
.keep-panel .file-lang{margin-top:12px}
.plan-wrap .plan-band a.plan-demo{color:#fff}
