/* Shared styles for trade exam pages — extracted from b/index.html */
:root { --bg:#f3ead6; --card:#fff8ea; --ink:#2c2416; --muted:#6b5d48; --line:#e0d4c0; --btn:#8a5a20; --btnink:#fff; }
body[data-theme="evening"] { --bg:#1c1914; --card:#2a241c; --ink:#e8dcc8; --muted:#b5a894; --line:#4a4034; --btn:#d4a04a; --btnink:#1a140c; }
body[data-theme="focus"] { --bg:#f7f7f5; --card:#fff; --ink:#111; --muted:#444; --line:#ccc; --btn:#111; --btnink:#fff; }
body[data-theme="contrast"] { --bg:#000; --card:#000; --ink:#39ff14; --muted:#b6ff9a; --line:#39ff14; --btn:#39ff14; --btnink:#000; }
body[data-theme="contrast"] button, body[data-theme="contrast"] .choice, body[data-theme="contrast"] .secondary { background:#000; color:#39ff14; border:2px solid #39ff14; font-weight:700; }
body[data-theme="contrast"] .choice.selected { background:#39ff14; color:#000; border-color:#39ff14; box-shadow:inset 6px 0 0 #000; }
body[data-theme="evening"] { --muted:#d8c7aa; }
body[data-theme="evening"] .meta, body[data-theme="evening"] #pace { color:#f0e2c8; }
body[data-theme="exam"] { --bg:#fff; --card:#fff; --ink:#000; --muted:#222; --line:#0b5cab; --btn:#0b5cab; --btnink:#fff; font-family:Arial, Helvetica, sans-serif; font-size:16px; }
body[data-theme="exam"] .choice { font-family:Arial, Helvetica, sans-serif; border:1px solid #0b5cab; border-radius:2px; font-weight:400; }
body[data-theme="exam"] .choice.selected { background:#e7f1fb; color:#000; border:2px solid #0b5cab; font-weight:700; }
body[data-theme="exam"] h1, body[data-theme="exam"] h2 { font-family:Arial, Helvetica, sans-serif; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:Georgia, serif; font-size:18px; }
body.type-large { font-size:22px; }
body.type-xl { font-size:26px; }
main { max-width:760px; margin:0 auto; padding:16px 16px 48px; }
h1 { font-size:1.3em; margin:0; }
button, select, input { font:inherit; }
button { padding:10px 12px; margin:0 8px 8px 0; background:var(--btn); color:var(--btnink); border:0; border-radius:6px; }
button.secondary { background:transparent; color:var(--ink); border:1px solid var(--line); }
.card { background:var(--card); border:1px solid var(--line); border-top:4px solid #e2b657; border-radius:14px; padding:16px; margin:12px 0; box-shadow:0 8px 22px rgba(20,24,20,.05); }
label { display:block; margin:8px 0 4px; }
input, select { width:100%; box-sizing:border-box; padding:8px; color:var(--ink); background:var(--card); border:1px solid var(--line); }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:end; }
.row label { flex:1; min-width:140px; }
.choice { display:block; width:100%; text-align:left; background:var(--card); color:var(--ink); border:1px solid var(--line); margin:8px 0; }
.meta { color:var(--muted); }
.behind { color:#9b1c1c; font-weight:700; }
.ok { color:#146c43; font-weight:700; }
.bad { color:#9b1c1c; font-weight:700; }
.hidden { display:none; }
img.fig { max-width:100%; }
.top { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
#unlockMsg { color:#9b1c1c; }

html[data-theme="paper"], body[data-theme="paper"] { background:#f3ead6 !important; color:#2c2416 !important; }
html[data-theme="evening"], body[data-theme="evening"] { background:#1c1914 !important; color:#e8dcc8 !important; }
html[data-theme="focus"], body[data-theme="focus"] { background:#f7f7f4 !important; color:#161616 !important; }
html[data-theme="contrast"], body[data-theme="contrast"] { background:#000 !important; color:#ffe14a !important; }
html[data-theme="exam"], body[data-theme="exam"] { background:#e9edf2 !important; color:#1b1b1b !important; }
body[data-theme="paper"] .card { background:#fff8ea !important; color:#2c2416 !important; }
body[data-theme="evening"] .card { background:#2a241c !important; color:#e8dcc8 !important; }
body[data-theme="focus"] .card, body[data-theme="exam"] .card { background:#fff !important; color:#1b1b1b !important; }
body[data-theme="contrast"] .card { background:#000 !important; color:#ffe14a !important; }
input[type="checkbox"]{width:auto;padding:0;margin:0 8px 0 0;vertical-align:middle}label:has(input[type="checkbox"]){display:flex;align-items:center}
.choice.selected { border:2px solid #0b5cab; background:#e7f1fb; color:#1b1b1b; box-shadow:inset 6px 0 0 #0b5cab; }
body[data-theme="evening"] .choice.selected, body[data-theme="contrast"] .choice.selected { background:#243044; color:#fff; border-color:#7eb6ff; box-shadow:inset 6px 0 0 #7eb6ff; }
.choice.correct { border:2px solid #1f8a4c; background:#163324; box-shadow:inset 6px 0 0 #1f8a4c; }
.choice.wrong { border:2px solid #d2453a; background:#3a1c1c; box-shadow:inset 6px 0 0 #d2453a; }
body[data-theme="paper"] .choice.selected, body[data-theme="focus"] .choice.selected { background:#e7f1fb; color:#1b1b1b; border-color:#0b5cab; box-shadow:inset 6px 0 0 #0b5cab; }
body[data-theme="paper"] .choice.correct, body[data-theme="focus"] .choice.correct { background:#e8f6ee; color:#1b1b1b; }
body[data-theme="paper"] .choice.wrong, body[data-theme="focus"] .choice.wrong { background:#fdecea; color:#1b1b1b; }

.psi-bar { display:flex; justify-content:space-between; align-items:center; background:#003da5; color:#fff; padding:10px 14px; font-family:Arial, Helvetica, sans-serif; font-weight:700; margin-bottom:0; border-bottom:3px solid #002a73; }
.psi-bar .psi-tools { display:flex; gap:8px; }
.psi-bar .psi-tools button { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.5); border-radius:4px; padding:4px 10px; margin:0; font-size:13px; font-weight:400; cursor:pointer; }
.psi-bar .psi-tools button:hover { background:rgba(255,255,255,.15); }
/* PSI exam chrome: top function bar + status bar + modals */
.psi-funcbar { display:flex; justify-content:space-between; align-items:center; background:#003da5; color:#fff; padding:8px 12px; font-family:Arial, Helvetica, sans-serif; border-bottom:3px solid #002a73; }
.psi-funcbar .psi-tools { display:flex; gap:6px; flex-wrap:wrap; }
.psi-funcbar .psi-tools button { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.55); border-radius:4px; padding:5px 12px; margin:0; font-size:13px; font-weight:400; cursor:pointer; }
.psi-funcbar .psi-tools button:hover { background:rgba(255,255,255,.18); }
.psi-statusbar { display:flex; flex-wrap:wrap; gap:4px 18px; align-items:center; background:#dbe4f0; color:#1b1b1b; padding:7px 12px; font-family:Arial, Helvetica, sans-serif; font-size:13px; border-bottom:1px solid #b9c6da; }
.psi-statusbar span { white-space:nowrap; }
.psi-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:50; display:flex; align-items:center; justify-content:center; padding:20px; }
.psi-modal.hidden { display:none; }
.psi-modal-box { background:#fff; color:#1b1b1b; border-radius:8px; padding:20px 24px; max-width:560px; width:100%; max-height:85vh; overflow:auto; font-family:Arial, Helvetica, sans-serif; }
.psi-modal-box h2 { margin:0 0 12px; font-size:1.2rem; }
.psi-modal-box input[type="text"], .psi-modal-box input[type="number"], .psi-modal-box textarea { font:inherit; padding:8px; border:1px solid #999; border-radius:4px; width:100%; box-sizing:border-box; color:#1b1b1b; background:#fff; }
.psi-modal-box .bad { color:#9b1c1c; font-weight:700; }
.psi-goto-grid { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; max-height:240px; overflow:auto; }
.psi-goto-grid button { min-width:52px; margin:0; font-size:13px; }
.psi-calc-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:10px; }
.psi-calc-grid button { margin:0; font-size:18px; padding:12px 0; }
#psiCalcDisplay { font-size:22px; text-align:right; }
body[data-theme="exam"] .choice { display:flex; align-items:center; gap:10px; background:#fff; color:#000; border:1px solid #0b5cab; border-radius:2px; font-family:Arial, Helvetica, sans-serif; }
body[data-theme="exam"] .choice { align-items:flex-start; } body[data-theme="exam"] .choice .radio { width:16px; height:16px; margin-top:3px; border:2px solid #0b5cab; border-radius:50%; flex:0 0 16px; } body[data-theme="exam"] .choice .ctext { flex:1; min-width:0; }
body[data-theme="exam"] .choice.selected { background:#e7f1fb; color:#000; font-weight:700; }
body[data-theme="exam"] .choice.selected .radio { background:#0b5cab; box-shadow:inset 0 0 0 3px #fff; }

.clsbar{display:flex;gap:16px;align-items:center;background:#10243f;color:#f4f1ea;padding:12px 18px}
.clsbar .motto{font-style:italic;font-size:12px;opacity:.8;display:block}
.clsbar img{height:54px;width:auto;background:#fff;border-radius:6px;padding:4px}
.clslogo{flex:0 0 auto}
.clsbar div{flex:1}
.clsbar strong{display:block}
.clsbar span{display:block;color:#d7e4f5;font-size:14px}
.clsgo{background:#c4552a;color:#fff;text-decoration:none;font-weight:700;padding:10px 14px;border-radius:8px;white-space:nowrap}
.clsphone{background:#0b1b30;color:#d7e4f5;font-size:13px;padding:6px 18px}
.clsphone a{color:#fff}
@media(max-width:720px){.clsbar{flex-wrap:wrap}.clsgo{width:100%;text-align:center}}
.sitefoot{max-width:760px;margin:24px auto;padding:0 16px;color:#6b6357;font-size:13px;text-align:center}

/* ---- Free sample test ---- */
.sample-card{margin-top:20px;padding:18px;border:2px dashed #2f6fad;border-radius:12px;background:#f0f6fd;text-align:center}
.sample-card .sample-head{font-size:1.15rem;font-weight:700;margin:0 0 8px;color:#1e3a5f}
.sample-card p{margin:8px 0}
.sample-card button{font-size:1.05rem;padding:12px 24px;background:#1e3a5f;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:700}
.sample-card button:hover{background:#2f6fad}
.sample-modal{position:fixed;inset:0;background:rgba(11,27,48,.6);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}
.sample-modal-box{background:#fff;border-radius:14px;padding:28px;max-width:440px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.sample-modal-box h2{margin:0 0 12px;color:#1e3a5f;font-size:1.35rem}
.sample-modal-box p{margin:10px 0;line-height:1.5}
.sample-modal-box button{font-size:1rem;padding:10px 20px;margin-right:8px;border:none;border-radius:8px;cursor:pointer;background:#1e3a5f;color:#fff;font-weight:700}
.sample-modal-box button.secondary{background:#e8e2d4;color:#1c1915}
.sample-cta{margin:0 0 24px;padding:20px;border:2px solid #2f6fad;border-radius:12px;background:#f0f6fd;text-align:center}
.sample-cta .btn{display:inline-block;background:#c4552a;color:#fff;text-decoration:none;font-weight:700;padding:12px 28px;border-radius:8px;font-size:1.1rem;margin:8px 0}
.sample-cta .btn:hover{background:#a8431f}
.lead-form{margin:0 0 24px;padding:24px;border:2px solid #2f6fad;border-radius:12px;background:#f0f6fd;max-width:520px}
.lead-form h2{margin:0 0 10px;color:#1e3a5f;font-size:1.3rem}
.lead-form p{margin:10px 0;line-height:1.5}
.lead-form label{font-weight:600;color:#1e3a5f;font-size:.95rem}
.lead-form input[type=text],.lead-form input[type=tel],.lead-form input[type=email]{width:100%;max-width:380px;padding:10px 12px;font-size:1rem;border:1px solid #c9cfd8;border-radius:8px;margin-top:4px;box-sizing:border-box}
.lead-form button{font-size:1.05rem;padding:12px 28px;background:#1e3a5f;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:700}
.lead-form button:hover{background:#2f6fad}
.lead-err{color:#a02020;font-weight:600}
.lead-skip{color:#6b645b;font-size:.9rem}
@media(max-width:720px){
  .sample-modal{align-items:flex-end;padding:0}
  .sample-modal-box{border-radius:16px 16px 0 0;max-width:none;width:100%;padding:24px 20px 32px}
}

/* Marketability rule (2026-10-16): under-construction state for trade pages
   whose bank is not fully verified yet — gate contents hidden, only the
   UC panel (inserted by shared.js / shared-ge.js) shows. */
body.tpn-uc #gate > *:not(#tpnUcPanel){display:none!important}
#tpnUcPanel{padding:10px 4px}
#tpnUcPanel a{font-weight:700}
