/* Portal theme: Version A (Navy and Amber). Change the tokens below to restyle the whole portal. */
:root { --navy: #14213d; --navy-2: #1c2c4f; --navy-3: #2a3b63; --gold: #fca311; --grey: #e5e5e5; --paper: #f6f6f6; --white: #fff; --ink: var(--navy); --line: rgba(20,33,61,.16); --ok: #1f8a4c; --bad: #b3261e;
  --font: "Schibsted Grotesk", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans SC", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --r: 14px; --shadow: 0 1px 2px rgba(20,33,61,.06), 0 12px 30px rgba(20,33,61,.09); --shadow-hi: 0 2px 4px rgba(20,33,61,.08), 0 18px 40px rgba(20,33,61,.15); --gutter: clamp(18px, 3vw, 44px); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 var(--font); }
a { color: inherit; } img { max-width: 100%; display: block; } h1, h2, h3, p, ul, form, table { margin: 0; padding: 0; } ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.hdr { background: var(--navy); color: #fff; } .hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.logo { font-weight: 600; letter-spacing: -.02em; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; } .logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); display: block; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .nav a { padding: 8px 12px; text-decoration: none; font-size: .9375rem; } .nav a:hover { color: var(--gold); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; } .muted { opacity: .72; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; } h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; } h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; }
.sec { padding-block: clamp(32px, 5vw, 64px); } .sec--dark { background: var(--navy); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 1rem var(--font); text-decoration: none; border: 0; cursor: pointer; background: var(--navy); color: #fff; transition: background-color .2s, transform .2s; border-radius: var(--r); }
.btn:hover { transform: translateY(-2px); } .btn--gold { background: var(--gold); color: var(--navy); } .btn--gold:hover { background: var(--navy); color: var(--gold); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; } .btn--sm { min-height: 38px; padding: 0 16px; font-size: .875rem; } .btn--bad { background: var(--bad); color: #fff; } .btn--ok { background: var(--ok); color: #fff; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; } .card--dark { background: var(--navy); color: #fff; box-shadow: none; }
.price { font-size: 2.2rem; letter-spacing: -.05em; font-weight: 500; line-height: 1; } .tag { display: inline-block; width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 500 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; } .tag--soft { background: transparent; box-shadow: inset 0 0 0 1px currentColor; color: inherit; }
.tag--ok { background: var(--ok); color: #fff; } .tag--bad { background: var(--bad); color: #fff; }
.flash { background: var(--gold); color: var(--navy); padding: 12px var(--gutter); font-weight: 500; text-align: center; }
form.stack { display: grid; gap: 14px; max-width: 520px; } label { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; }
input, select, textarea { font: inherit; color: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--navy); background: #fff; border-radius: var(--r); } textarea { min-height: 120px; resize: vertical; } input[type=checkbox] { width: 20px; min-height: 20px; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 400; } .err { color: var(--bad); font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: #fff; } th, td { text-align: left; padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--line); vertical-align: top; } th { font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .65; } .tablewrap { overflow-x: auto; }
.bar { height: 8px; background: var(--grey); } .bar i { display: block; height: 100%; background: var(--gold); }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } .side a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; } .side a:hover, .side a.on { background: var(--navy); color: var(--gold); }
.stat b { font-size: 2.2rem; letter-spacing: -.05em; font-weight: 500; display: block; line-height: 1; } .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; } .vid { aspect-ratio: 16/9; background: #000; } .vid iframe { width: 100%; height: 100%; border: 0; }
.outline a { display: flex; gap: 10px; padding: 10px 12px; text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); } .outline a.on { background: var(--navy); color: #fff; } .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; flex: none; margin-top: 3px; } .dot.done { background: var(--gold); box-shadow: none; }
.prose p { margin-bottom: 14px; max-width: 70ch; }
.cert { background: #fff; padding: clamp(28px, 6vw, 70px); text-align: center; box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 12px var(--navy); display: grid; gap: 18px; justify-items: center; min-height: 480px; align-content: center; } .cert h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.foot { padding-block: 36px; font-size: .875rem; box-shadow: inset 0 1px 0 var(--line); margin-top: 40px; }
/* reader: nothing selectable, nothing printable */
.reader { position: fixed; inset: 0; background: #20232b; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr); z-index: 50; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.reader__bar { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: var(--navy); flex-wrap: wrap; } .reader__bar b { margin-right: auto; font-weight: 500; letter-spacing: -.02em; }
.reader__bar button, .reader__bar a { min-height: 38px; min-width: 38px; padding: 0 12px; background: rgba(255,255,255,.1); color: #fff; border: 0; font: inherit; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; } .reader__bar button:hover, .reader__bar a:hover { background: var(--gold); color: var(--navy); }
.reader__bar .pg { font: 500 .8125rem var(--mono); min-width: 90px; text-align: center; }
.reader__stage { overflow: auto; padding: 18px; display: grid; justify-items: center; align-content: start; gap: 16px; scroll-behavior: smooth; }
.reader__stage img { width: calc(min(100%, 980px) * var(--zoom, 1)); max-width: none; height: auto; background: #fff; pointer-events: none; -webkit-user-drag: none; user-drag: none; }
.reader.flip .reader__stage { align-content: center; } .reader.flip img { display: none; } .reader.flip img.cur { display: block; }
.reader__cover { position: absolute; inset: 0; z-index: 2; }
@media print { body { display: none !important; } }
@media (max-width: 860px) { .g2, .g3, .g4, .admin, .lesson { grid-template-columns: 1fr; } .logo span { max-width: 14ch; } }

/* floating, softly rounded look */
.card, table, .cert, .stat { border-radius: var(--r); box-shadow: var(--shadow); box-shadow: var(--shadow), inset 0 0 0 1px rgba(20,33,61,.06); }
.card { transition: transform .25s ease, box-shadow .25s ease; } .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi), inset 0 0 0 1px rgba(20,33,61,.06); }
.card--dark { box-shadow: 0 14px 34px rgba(20,33,61,.28); }
table { overflow: hidden; } .tablewrap { border-radius: var(--r); padding: 2px 2px 14px; }
.btn { border-radius: 12px; box-shadow: 0 6px 16px rgba(20,33,61,.18); transition: transform .2s ease, box-shadow .2s ease, background-color .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(20,33,61,.24); } .btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(20,33,61,.2); }
.btn--gold { box-shadow: 0 8px 20px rgba(252,163,17,.38); } .btn--gold:hover { box-shadow: 0 14px 28px rgba(252,163,17,.42); }
.btn--line { box-shadow: inset 0 0 0 1.5px currentColor; } .btn--line:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 8px 18px rgba(20,33,61,.14); }
.btn--sm { border-radius: 10px; } .hdr .btn { box-shadow: 0 6px 16px rgba(0,0,0,.25); }
input, select, textarea { border-radius: 10px; border-color: rgba(20,33,61,.35); transition: border-color .2s, box-shadow .2s; } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(252,163,17,.3); }
.bar, .bar i { border-radius: 99px; } .flash { box-shadow: 0 6px 18px rgba(20,33,61,.15); }
.outline { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; } .vid { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-hi); }
.side a { border-radius: 10px; } .sec--dark { border-radius: 0; }
.benefits { display: grid; gap: 8px; margin: 4px 0 2px; } .benefits li { display: flex; gap: 10px; align-items: flex-start; } .benefits li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }

.nav .cur { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; background: rgba(255,255,255,.12); font-weight: 600; font-size: 1.0625rem; } .nav .cur:hover { background: var(--gold); color: var(--navy); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; } .lang { min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: var(--navy); font: 600 1rem var(--font); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(20,33,61,.3), 0 3px 8px rgba(20,33,61,.08); transition: transform .15s, background-color .15s, box-shadow .15s; display: inline-flex; gap: 6px; align-items: center; }
.lang:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--navy), 0 8px 16px rgba(20,33,61,.14); } .lang.on { background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(20,33,61,.28); } .lang small { font: 500 .6rem var(--mono); text-transform: uppercase; opacity: .7; letter-spacing: .05em; }
.btn.off { background: #cfd3db; color: #5a6275; box-shadow: none; cursor: default; pointer-events: none; }
