/* NXW website styles (from the NXW app, menu WEB > NXW) */
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Light.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Bold.ttf); font-weight: 700; font-display: swap; }
:root {
  --midnight: #070F22; --navy: #0B1A3A; --navy2: #0E2145; --royal: #0A4DB8; --sky: #2E9BFF; --gold: #D4A440; --gold2: #F0D890;
  --ink: #13203A; --muted: #5B6B84; --line: #E1E7F0; --paper: #F5F7FB;
  --orbit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='1.3'%3E%3Cellipse cx='840' cy='330' rx='980' ry='230' transform='rotate(-10 840 330)' stroke='rgba(46,155,255,.22)'/%3E%3Cellipse cx='800' cy='310' rx='1180' ry='330' transform='rotate(-12 800 310)' stroke='rgba(212,164,64,.22)'/%3E%3Cellipse cx='760' cy='300' rx='1400' ry='430' transform='rotate(-8 760 300)' stroke='rgba(46,155,255,.12)'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; font-size: 15.5px; }
a { color: var(--royal); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,15,34,.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(212,164,64,.45); }
.nav-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 22px; }
.brand { flex: 0 0 auto; } .brand img { height: 46px; width: auto; max-width: none; display: block; }
.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a { position: relative; color: #D5DEEC; text-decoration: none; font-weight: 500; font-size: 13.5px; letter-spacing: .6px; padding: 10px 12px; text-transform: uppercase; white-space: nowrap; transition: color .15s; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.menu a:hover { color: #fff; } .menu a:hover::after, .menu a.on::after { transform: scaleX(1); }
.menu a.on { color: var(--gold2); }
.menu a.cta-link { background: var(--gold); color: var(--navy); border-radius: 8px; padding: 8px 16px; margin-left: 6px; font-weight: 700; }
.menu a.cta-link::after { display: none; } .menu a.cta-link:hover { background: var(--gold2); }
.tools { display: flex; align-items: center; gap: 10px; }
.sbox { position: relative; display: flex; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 0 12px; }
.sbox:focus-within { border-color: var(--gold); background: rgba(255,255,255,.12); }
.sbox svg { width: 15px; height: 15px; color: #AFC0DA; flex: 0 0 15px; }
.sbox input { width: 140px; background: transparent; border: 0; outline: none; color: #fff; font: inherit; font-size: 13px; padding: 8px; transition: width .2s; }
.sbox input:focus { width: 200px; } .sbox input::placeholder { color: #8FA2C0; }
.sres { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 380px; max-height: 440px; overflow: auto; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: 0 18px 44px rgba(7,15,34,.35); padding: 6px; z-index: 60; }
.sres.on { display: block; }
.sres a { display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none; color: var(--ink); cursor: pointer; }
.sres a:hover, .sres a.sel { background: var(--paper); }
.sres a b { display: block; font-size: 14px; } .sres a span { display: block; font-size: 12.5px; color: var(--muted); }
.sres a em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--gold); text-transform: uppercase; }
.sres mark { background: rgba(212,164,64,.35); color: inherit; border-radius: 3px; }
.sres .none { padding: 10px; color: var(--muted); font-size: 13px; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 3px; }
.lang button { border: 0; background: transparent; color: #C8D4E8; font: inherit; font-weight: 700; font-size: 11.5px; letter-spacing: .6px; padding: 4px 9px; border-radius: 8px; cursor: pointer; }
.lang button.on { background: var(--gold); color: var(--navy); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 9px; padding: 5px 11px; font-size: 18px; cursor: pointer; }
@media (max-width: 1440px) { .menu a { padding: 9px 8px; font-size: 12.5px; letter-spacing: .3px; } .sbox input { width: 110px; } .sbox input:focus { width: 150px; } }
@media (max-width: 759px) { .burger { display: block; } .nav-in { flex-wrap: wrap; } .menu { display: none; width: 100%; flex-direction: column; margin: 6px 0; }
  .menu.open { display: flex; } .tools { width: 100%; order: 3; margin-bottom: 6px; } .sbox { flex: 1; } .sbox input, .sbox input:focus { width: 100%; } .sres { width: 100%; } }

/* ---------- pages, bands ---------- */
section.page { display: none; } section.page.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.band { position: relative; color: #fff; overflow: hidden;
  background: var(--orbit) center / cover no-repeat, radial-gradient(1100px 500px at 50% 40%, #163a78 0%, var(--navy2) 45%, var(--midnight) 100%); }
.hero { padding: 90px 0 104px; text-align: center; }
.hero img.logo { width: 330px; display: block; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.hero h1 { font-weight: 700; font-size: 46px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.hero h1 b { color: var(--gold); }
.hero p { font-weight: 300; font-size: 18px; max-width: 760px; margin: 0 auto 30px; color: #D5DEEC; }
.phead { padding: 62px 0 54px; }
.phead h1 { font-weight: 700; font-size: 38px; margin: 6px 0 10px; line-height: 1.2; }
.phead p { font-weight: 300; font-size: 17px; max-width: 760px; color: #D5DEEC; margin: 0; }
.kick { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 2.6px; font-size: 12px; text-transform: uppercase; }
.sec { padding: 64px 0; } .sec.alt { background: var(--paper); }
.sec h2 { font-size: 30px; font-weight: 700; margin: 6px 0 8px; color: var(--navy); line-height: 1.25; }
.lead { color: var(--muted); max-width: 760px; margin: 0 0 30px; font-weight: 300; font-size: 16.5px; }
.rule { width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 3px; margin: 10px 0 26px; }
.center { text-align: center; } .center .rule, .center .lead { margin-left: auto; margin-right: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: .3px;
  text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(212,164,64,.35); } .btn.gold:hover { background: var(--gold2); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); margin-left: 10px; } .btn.ghost:hover { border-color: var(--gold); color: var(--gold2); }
.btn.blue { background: var(--royal); color: #fff; } .btn.blue:hover { background: #0B5FE0; }
.btn.line { background: transparent; color: var(--royal); border: 1.5px solid var(--royal); padding: 7px 16px; font-size: 13px; }

/* ---------- cards: 3 per row ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .g2 { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 2px 10px rgba(11,26,58,.04);
  transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--royal), var(--sky), var(--gold)); opacity: 0; transition: opacity .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,26,58,.12); border-color: transparent; } .card:hover::before { opacity: 1; }
.card h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.card .foot { margin-top: auto; padding-top: 6px; }
.ico { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: var(--gold);
  background: linear-gradient(135deg, var(--navy), var(--royal)); box-shadow: 0 8px 18px rgba(10,77,184,.25); flex: 0 0 auto; }
.ico svg { width: 25px; height: 25px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 11px; border-radius: 8px; background: #EEF3FB; color: var(--royal); margin: 0 5px 6px 0; }

/* ---------- blocks ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 12px; border-left: 1px solid rgba(255,255,255,.12); } .stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat span { color: #C8D4E8; font-size: 13.5px; letter-spacing: .5px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.mvv div { padding: 14px 0; border-bottom: 1px solid var(--line); } .mvv div:last-child { border-bottom: 0; } .mvv p { margin: 4px 0 0; color: var(--ink); }
a.person { flex-direction: row; gap: 20px; align-items: center; text-decoration: none; color: inherit; cursor: pointer; }
.person img, .person .ph { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid var(--gold); flex: 0 0 104px; }
.person .ph { display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--navy); font-weight: 700; font-size: 30px; }
.person h3 { margin: 2px 0 6px; } .person .role { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.more { font-size: 13px; font-weight: 700; color: var(--royal); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { padding: 22px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.step b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; } .step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.step i { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); font-style: normal; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.code { font-weight: 700; letter-spacing: 2px; font-size: 12px; color: var(--gold); margin-top: 14px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
table.t th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-weight: 500; letter-spacing: .4px; }
table.t td { padding: 11px 16px; border-top: 1px solid var(--line); } table.t tr:nth-child(even) td { background: #FAFBFD; }
.tw { overflow-x: auto; }
.book { flex-direction: row; gap: 22px; align-items: center; } .book img { width: 130px; border-radius: 6px; box-shadow: 0 14px 30px rgba(7,15,34,.35); }
.course .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.course .meta span { font-size: 12px; font-weight: 500; color: var(--navy); background: #FFF6E2; border: 1px solid #F1DFAF; border-radius: 8px; padding: 2px 10px; }
.course ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 14px; } .course li { margin: 3px 0; }
.level { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 3px 10px; border-radius: 8px; }
.level.l1 { background: #E9F7F1; color: #1E7A57; } .level.l2 { background: #EAF1FC; color: var(--royal); } .level.l3 { background: #FDF0E1; color: #A3640F; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; } details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 14px; color: var(--muted); }
.gl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } @media (max-width: 900px) { .gl { grid-template-columns: 1fr 1fr; } } @media (max-width: 600px) { .gl { grid-template-columns: 1fr; } }
.gl div { background: #fff; border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 16px; } .gl b { color: var(--navy); } .gl p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
a.dl { flex-direction: row; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
a.dl .ico { width: 46px; height: 46px; border-radius: 12px; } a.dl b { display: block; color: var(--navy); } a.dl span { font-size: 13px; color: var(--muted); }
.ctaband { padding: 54px 0; } .ctaband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.ctaband h2 { margin: 0; font-size: 28px; font-weight: 700; } .ctaband p { margin: 6px 0 0; color: #C8D4E8; font-weight: 300; }

/* ---------- profiles ---------- */
.prof { display: flex; gap: 36px; align-items: center; padding: 30px 0 60px; }
.prof img, .prof .ph { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 5px solid var(--gold); flex: 0 0 210px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.prof .ph { display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 700; color: var(--gold); background: rgba(255,255,255,.06); }
.prof h1 { font-size: 42px; margin: 4px 0 6px; } .prof p { color: #D5DEEC; font-weight: 300; font-size: 17px; max-width: 640px; margin: 0 0 18px; }
.back { display: inline-flex; gap: 6px; color: var(--gold2); text-decoration: none; font-weight: 500; font-size: 14px; margin-top: 30px; }
.pgrid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; } @media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; } .prof { flex-direction: column; text-align: center; } }
.pgrid .card { margin-bottom: 22px; } .pgrid ul { margin: 0; padding-left: 20px; color: var(--muted); } .pgrid li { margin: 6px 0; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- contact ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(11,26,58,.06); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 700px) { .frow { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .flabel { font-size: 13px; font-weight: 500; color: var(--navy); }
.field label i, .req { color: #D9534F; font-style: normal; }
.field input, .field select, .field textarea { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(10,77,184,.12); }
.field.bad input, .field.bad textarea, .field.bad select { border-color: #D9534F; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--paper); user-select: none; }
.checks input { accent-color: var(--royal); }
.checks label:has(input:checked) { border-color: var(--royal); background: #EAF1FC; color: var(--royal); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 18px; } .consent.bad { color: #D9534F; }
.msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; }
.msg.ok { display: block; background: #E9F7F1; color: #1E7A57; border: 1px solid #A9DCC6; } .msg.err { display: block; background: #FDECEC; color: #B23A36; border: 1px solid #F3B8B6; }
.cinfo { background: linear-gradient(160deg, var(--navy), var(--midnight)); color: #fff; border: 0; }
.cinfo .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cinfo .row .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(212,164,64,.15); box-shadow: none; } .cinfo .row .ico svg { width: 20px; height: 20px; }
.cinfo b { display: block; font-size: 11.5px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.6px; }
.cinfo a { color: #fff; } .cinfo p { color: #C8D4E8; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
footer { background: var(--midnight); color: #AFC0DA; border-top: 1px solid rgba(212,164,64,.35); }
footer .in { max-width: 1200px; margin: 0 auto; padding: 44px 22px 26px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; font-size: 14px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
footer a { color: #AFC0DA; text-decoration: none; display: block; margin: 5px 0; } footer a:hover { color: var(--gold2); }
footer small { display: block; max-width: 1200px; margin: 0 auto; padding: 16px 22px 26px; color: #7F92B1; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
@media (max-width: 800px) { footer .in { grid-template-columns: 1fr; } }
.flash { animation: flash 1.8s ease; } @keyframes flash { 0%, 45% { box-shadow: 0 0 0 4px rgba(212,164,64,.8); } 100% { box-shadow: 0 0 0 0 rgba(212,164,64,0); } }

/* ---------- OPTIONS menu (top bar): Language EN / VN / FR, Mode Dark / Light and Logo Dark (NXW monitor app) / Light (website) ---------- */
.opts { position: relative; }
.obtn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #C8D4E8; cursor: pointer; padding: 0; }
.obtn:hover, .opts.open .obtn { border-color: var(--gold); color: var(--gold2); }
.obtn svg { width: 18px; height: 18px; }
.obtn { width: auto; padding: 0 12px 0 13px; gap: 7px; border-radius: 8px; } .olang { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; }
.opanel { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 44px rgba(7,15,34,.35); padding: 14px 16px 6px; z-index: 60; }
.opts.open .opanel { display: block; }
.opanel h5 { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.orow { margin-bottom: 12px; } .orow > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.seg { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.seg button svg { width: 14px; height: 14px; }
.seg button.on { background: var(--navy); color: var(--gold2); font-weight: 700; }
.seg button img { height: 16px; width: auto; }

/* ---------- LIGHT mode: light top bar, light bands and footer ---------- */
html[data-mode="light"] .nav { background: rgba(255,255,255,.96); border-bottom-color: rgba(212,164,64,.6); box-shadow: 0 2px 14px rgba(11,26,58,.06); }
html[data-mode="light"] .menu a { color: var(--navy); } html[data-mode="light"] .menu a:hover { color: var(--royal); }
html[data-mode="light"] .menu a.on { color: var(--royal); } html[data-mode="light"] .menu a.cta-link { color: var(--navy); }
html[data-mode="light"] .sbox { background: #F1F4FA; border-color: var(--line); } html[data-mode="light"] .sbox input { color: var(--ink); }
html[data-mode="light"] .sbox input::placeholder { color: #8796AE; } html[data-mode="light"] .sbox svg { color: #6B7A93; }
html[data-mode="light"] .lang, html[data-mode="light"] .obtn { border-color: var(--line); } html[data-mode="light"] .lang button { color: var(--navy); }
html[data-mode="light"] .obtn { background: #F1F4FA; color: var(--navy); }
html[data-mode="light"] .burger { color: var(--navy); border-color: var(--line); }
html[data-mode="light"] .band { color: var(--navy);
  background: var(--orbit) center / cover no-repeat, radial-gradient(1100px 500px at 50% 40%, #FFFFFF 0%, #EEF3FB 50%, #DCE7F7 100%); }
html[data-mode="light"] .hero p, html[data-mode="light"] .phead p, html[data-mode="light"] .prof p, html[data-mode="light"] .ctaband p { color: #44546E; }
html[data-mode="light"] .hero h1 b, html[data-mode="light"] .kick, html[data-mode="light"] .prof .ph { color: #B07F1F; }
html[data-mode="light"] .hero img.logo { filter: drop-shadow(0 10px 24px rgba(11,26,58,.18)); }
html[data-mode="light"] .btn.ghost { color: var(--navy); border-color: rgba(11,26,58,.45); } html[data-mode="light"] .btn.ghost:hover { color: var(--royal); border-color: var(--royal); }
html[data-mode="light"] .back { color: var(--royal); }
html[data-mode="light"] .prof img, html[data-mode="light"] .prof .ph { box-shadow: 0 16px 40px rgba(11,26,58,.2); } html[data-mode="light"] .prof .ph { background: #fff; }
html[data-mode="light"] footer { background: #EEF2F9; color: #4A5A75; } html[data-mode="light"] footer h4 { color: var(--navy); }
html[data-mode="light"] footer a { color: #4A5A75; } html[data-mode="light"] footer a:hover { color: var(--royal); }
html[data-mode="light"] footer small { color: #6B7A93; border-top-color: var(--line); }

/* ---------- DARK mode: dark content sections, cards and forms ---------- */
html[data-mode="dark"] { --ink: #DCE4F2; --muted: #9DB0CC; --line: #22355C; --paper: #0E1C3D; }
html[data-mode="dark"] body { background: #0A1530; }
html[data-mode="dark"] .sec p a, html[data-mode="dark"] .sec li a, html[data-mode="dark"] .more { color: #6FB3FF; }
html[data-mode="dark"] .sec h2, html[data-mode="dark"] .card h3, html[data-mode="dark"] .step b, html[data-mode="dark"] details.faq summary,
html[data-mode="dark"] .gl b, html[data-mode="dark"] a.dl b, html[data-mode="dark"] .field label, html[data-mode="dark"] .flabel { color: #fff; }
html[data-mode="dark"] .card, html[data-mode="dark"] .step, html[data-mode="dark"] table.t, html[data-mode="dark"] details.faq, html[data-mode="dark"] .gl div,
html[data-mode="dark"] .form, html[data-mode="dark"] .sres, html[data-mode="dark"] .opanel { background: #10224A; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
html[data-mode="dark"] .card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.45); }
html[data-mode="dark"] .cinfo { background: linear-gradient(160deg, #13295A, var(--midnight)); }
html[data-mode="dark"] table.t tr:nth-child(even) td { background: #0D1D40; }
html[data-mode="dark"] .field input:focus, html[data-mode="dark"] .field select:focus, html[data-mode="dark"] .field textarea:focus { background: #0A1530; box-shadow: 0 0 0 4px rgba(46,155,255,.18); border-color: var(--sky); }
html[data-mode="dark"] .field select option { background: #10224A; color: #DCE4F2; }
html[data-mode="dark"] .tag { background: rgba(46,155,255,.14); color: #8CC4FF; }
html[data-mode="dark"] .btn.line { color: #8CC4FF; border-color: #6FB3FF; }
html[data-mode="dark"] .course .meta span { background: rgba(212,164,64,.12); border-color: rgba(212,164,64,.35); color: var(--gold2); }
html[data-mode="dark"] .level.l1 { background: rgba(30,122,87,.25); color: #7FD9B2; } html[data-mode="dark"] .level.l2 { background: rgba(46,155,255,.18); color: #8CC4FF; }
html[data-mode="dark"] .level.l3 { background: rgba(212,164,64,.18); color: var(--gold2); }
html[data-mode="dark"] .checks label:has(input:checked) { background: rgba(46,155,255,.18); color: #8CC4FF; border-color: var(--sky); }
html[data-mode="dark"] .person .ph { color: #fff; }
html[data-mode="dark"] .book.card[style] { background: transparent; }
html[data-mode="dark"] .seg button.on { background: var(--gold); color: var(--navy); }

/* ---------- SEARCH icon: click to extend the search box (collapses again when empty) ---------- */
.sbox { cursor: pointer; padding: 0; width: 36px; height: 36px; justify-content: center; transition: width .25s, padding .25s; }
.sbox input { width: 0 !important; padding: 8px 0; }
.sbox.open { cursor: auto; width: 230px; padding: 0 12px; justify-content: flex-start; }
.sbox.open input { width: 100% !important; padding: 8px; }
.sbox:hover svg { color: var(--gold2); } html[data-mode="light"] .sbox:hover svg { color: var(--royal); }
@media (max-width: 759px) { .sbox, .sbox.open { width: auto; flex: 1; padding: 0 12px; justify-content: flex-start; cursor: auto; } .sbox input { width: 100% !important; padding: 8px; } }

/* ---------- partners (About page) ---------- */
a.partner { text-decoration: none; color: inherit; }
.pmark { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 700; font-size: 17px; letter-spacing: 1px;
  color: var(--gold2); background: linear-gradient(135deg, var(--navy), var(--royal)); box-shadow: 0 8px 18px rgba(10,77,184,.25); align-self: flex-start; }
.pdom { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--royal); }
html[data-mode="dark"] .pdom { color: #6FB3FF; }

/* ---------- company brochure flip book (HOME) ---------- */
.flipsec { background: radial-gradient(900px 420px at 50% 60%, #EAF1FC 0%, #fff 70%); }
html[data-mode="dark"] .flipsec { background: radial-gradient(900px 420px at 50% 60%, #12295A 0%, #0A1530 70%); }
.fb { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.fb-stage { perspective: 2600px; width: min(940px, 84vw); }
.fb-book { position: relative; width: 100%; aspect-ratio: 420 / 297; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.fb-book.closed { transform: translateX(-25%); } .fb-book.end { transform: translateX(25%); }
.fb-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3,.7,.2,1); cursor: pointer; }
.fb-leaf.flipped { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #fff;
  box-shadow: 0 18px 40px rgba(7,15,34,.28); }
.fb-face img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.fb-face.back { transform: rotateY(180deg); }
.fb-face.front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 7%); pointer-events: none; }
.fb-face.back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.18), rgba(0,0,0,0) 7%); pointer-events: none; }
.fb-nav { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 28px; line-height: 1;
  cursor: pointer; box-shadow: 0 6px 16px rgba(11,26,58,.12); transition: background .15s, color .15s, opacity .15s; }
.fb-nav:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); } .fb-nav:disabled { opacity: .3; cursor: default; }
html[data-mode="dark"] .fb-nav { background: #10224A; color: #fff; }
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; max-width: 940px; margin: 26px auto 0; }
.fb-count { font-weight: 700; color: var(--navy); letter-spacing: .5px; } html[data-mode="dark"] .fb-count { color: #fff; }
.fb-actions { display: flex; gap: 8px; flex-wrap: wrap; } .fb-actions .btn { margin: 0; padding: 9px 18px; font-size: 13px; }
.fb:fullscreen { background: #050B1A; padding: 2vh 2vw; } .fb:fullscreen .fb-stage { width: min(94vw, 136vh); }
/* phones: one page at a time */
.fb.single .fb-book { aspect-ratio: 210 / 297; transform: none !important; }
.fb.single .fb-leaf { display: none; }
.fb.single .fb-one { display: block; }
.fb-one { display: none; position: absolute; inset: 0; box-shadow: 0 14px 30px rgba(7,15,34,.28); }
.fb-one img { width: 100%; height: 100%; display: block; animation: fbIn .35s ease; } @keyframes fbIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .fb-stage { width: 74vw; } .fb-nav { width: 38px; height: 38px; font-size: 24px; } .fb-bar { justify-content: center; } }

/* ---------- highlights / latest news (HOME) ---------- */
.news .nw { padding: 0; }
.nimg { display: flex; align-items: center; justify-content: center; gap: 14px; height: 190px; overflow: hidden; text-decoration: none;
  background: var(--orbit) center / cover no-repeat, radial-gradient(500px 220px at 50% 50%, #163a78 0%, var(--navy2) 55%, var(--midnight) 100%); }
.nimg img.doc { height: 150px; width: auto; border-radius: 3px; box-shadow: 0 12px 26px rgba(0,0,0,.45); transition: transform .3s; }
.nimg img.d2 { margin-left: -6px; transform: rotate(4deg); } .nw:hover .nimg img.doc { transform: translateY(-4px); } .nw:hover .nimg img.d2 { transform: rotate(4deg) translateY(-4px); }
.nlogos { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 12px; }
.nlogos b { color: var(--gold2); border: 1px solid rgba(212,164,64,.45); border-radius: 8px; padding: 6px 10px; font-size: 13px; letter-spacing: 1px; text-align: center; background: rgba(7,15,34,.4); }
.nmeta { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 0; font-size: 12.5px; color: var(--muted); }
.ncat { font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.nw h3, .nw p { padding: 0 24px; } .nw h3 { margin-top: 8px; } .nw .more { padding: 0 24px 22px; margin-top: auto; text-decoration: none; }

/* ---------- activity detail pages (#act-*) ---------- */
a.actcard { text-decoration: none; color: inherit; cursor: pointer; } a.actcard h3 { transition: color .15s; } a.actcard:hover h3 { color: var(--royal); }
html[data-mode="dark"] a.actcard:hover h3 { color: var(--gold2); }
a.actcard .more { margin-top: auto; padding-top: 4px; }
.acthead { display: flex; align-items: center; gap: 18px; } .acthead h1 { margin: 2px 0 0; }
.ico.big { width: 68px; height: 68px; border-radius: 20px; flex: 0 0 68px; } .ico.big svg { width: 32px; height: 32px; }
.glance h3 { margin: 0 0 10px; } .gl-row { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.gl-row span { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); } .gl-row b { color: var(--navy); font-weight: 600; font-size: 14.5px; }
html[data-mode="dark"] .gl-row b { color: #fff; }
.act-steps { grid-template-columns: repeat(4, 1fr); } @media (max-width: 900px) { .act-steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .act-steps { grid-template-columns: 1fr; } }

/* ---------- Resources > Documents: brochure thumbnails ---------- */
a.docthumb { align-items: center; gap: 16px; } a.docthumb img { width: 72px; height: auto; flex: 0 0 72px; border-radius: 3px; box-shadow: 0 8px 18px rgba(7,15,34,.35); transition: transform .2s; }
a.docthumb:hover img { transform: translateY(-3px); } a.docthumb .more { font-style: normal; display: block; margin-top: 6px; }
.card.golink { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; } .card.golink:hover { transform: translateY(-3px); border-color: var(--gold); } .card.golink h3::after { content: "  →"; color: var(--gold); }
a.card.golink { text-decoration: none; color: inherit; display: block; }
.card.prog { cursor: pointer; border: 1.5px solid rgba(212,164,64,.55); transition: transform .15s ease, border-color .15s ease; display: flex; flex-direction: column; }
.card.prog:hover { transform: translateY(-3px); border-color: var(--gold); } .card.prog p { flex: 1; }
.btn.sm { padding: 8px 18px; font-size: 13px; align-self: flex-start; margin-top: 8px; }
.pmodal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(5,11,28,.72); backdrop-filter: blur(4px); padding: 40px 16px; overflow-y: auto; }
.pmodal.open { display: block; } .pc { display: none; } .pc.on { display: block; }
.pbox { position: relative; max-width: 860px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 22px; padding: 38px 42px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.pbox h2 { margin: 6px 0 10px; color: var(--navy); } .pbox h4 { margin: 22px 0 8px; color: var(--navy); font-size: 17px; }
.pbox ul { padding-left: 20px; color: var(--muted); } .pbox li { margin: 6px 0; } .pbox li b { color: var(--ink); }
.plead { font-size: 17px; color: var(--muted); } .pnote { font-size: 13px; font-style: italic; color: var(--muted); }
.pbox .btn { margin-top: 18px; }
.pclose { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
table.pt { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 12px; } table.pt th { background: var(--navy); color: var(--gold2); text-align: left; padding: 8px 10px; }
table.pt td { padding: 8px 10px; border-bottom: 1px solid var(--line); } table.pt td:first-child { font-weight: 700; color: var(--gold); text-align: center; }
html[data-mode="dark"] .pbox { background: #10224A; color: #DCE4F2; } html[data-mode="dark"] .pbox h2, html[data-mode="dark"] .pbox h4, html[data-mode="dark"] .pbox li b { color: #fff; }
html[data-mode="dark"] table.pt td { border-color: #22355C; }
@media (max-width: 640px) { .pbox { padding: 28px 20px; } table.pt { font-size: 12.5px; } }
/* NXW presentation video */
.vidbox { max-width: 960px; margin: 8px auto 0; border-radius: 16px; overflow: hidden; background: #0B1A3A; box-shadow: 0 18px 50px rgba(11,26,58,.28); border: 1px solid rgba(212,164,64,.45); }
.vidbox video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #0B1A3A; }
.vidcap { text-align: center; font-size: 13px; color: var(--muted, #6B7A90); margin-top: 12px; }
.bk-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.bk-parts span { font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid rgba(212,164,64,.45); color: var(--ink, inherit); opacity: .92; }
.bk-parts span b { color: var(--gold); margin-right: 6px; font-weight: 700; }
.bk-feat { margin: 6px 0 10px 18px; padding: 0; font-size: 13.5px; } .bk-feat li { margin: 2px 0; } .bk-feat li::marker { color: var(--gold); }
.bk-links { display: flex; flex-wrap: wrap; gap: 6px 18px; } .card.bk { align-items: flex-start; }

/* standalone site: anchors land below the sticky menu bar */
[id] { scroll-margin-top: 80px; }

/* ---------- EDUCATION: books online, reader, quiz, glossary ---------- */
a.edutopic { text-decoration: none; color: inherit; } a.edutopic:hover h3 { color: var(--royal); } .edu-tsub { font-size: 13px; font-style: italic; color: var(--muted); margin: 0 0 8px; }
.edu-prof img { width: 170px; height: auto; border-radius: 6px; box-shadow: 0 14px 30px rgba(7,15,34,.35); }
.edu-mod { margin: 0 0 30px; } .edu-mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.edu-mhead h3 { margin: 0; flex: 1; font-size: 18px; } .edu-num { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #0B1A3A; font-weight: 700; display: grid; place-items: center; flex: 0 0 34px; }
.edu-cnt { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
table.edu-toc td { vertical-align: top; } td.edu-no { width: 46px; font-weight: 700; color: var(--gold); text-align: center; } td.edu-go { width: 120px; text-align: right; white-space: nowrap; }
a.edu-ttl { font-weight: 600; text-decoration: none; } a.edu-ttl:hover { text-decoration: underline; } .edu-sub { font-size: 13px; color: var(--muted); font-style: italic; }
details.edu-secs { margin-top: 4px; font-size: 13px; } details.edu-secs summary { cursor: pointer; color: var(--muted); } a.edu-sec { display: block; padding: 2px 0 2px 12px; text-decoration: none; } a.edu-sec:hover { text-decoration: underline; }
a.edu-open { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--gold); text-decoration: none; }
a.edu-open.edu-locked { border-color: var(--line); color: var(--muted); } .edu-free { font-size: 10px; font-weight: 700; background: var(--gold); color: #0B1A3A; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.edu-rhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; } .edu-rhead b { flex: 1; font-size: 17px; }
.edu-rhead a { font-size: 14px; font-weight: 600; text-decoration: none; }
.edu-frame { width: 100%; height: 82vh; min-height: 520px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.quiz { padding: 30px; } .quiz h3 { margin: 6px 0 16px; font-size: 20px; } .quiz .qtop { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.qbar { height: 6px; background: var(--line); border-radius: 3px; margin: 10px 0 18px; overflow: hidden; } .qbar i { display: block; height: 100%; background: var(--gold); }
.qopt { display: block; width: 100%; text-align: left; font: inherit; padding: 12px 16px; margin: 0 0 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.qopt:hover:not([disabled]) { border-color: var(--gold); } .qopt b { color: var(--gold); margin-right: 10px; }
.qopt.ok { border-color: #1E9E6A; background: rgba(30,158,106,.12); } .qopt.ko { border-color: #D64545; background: rgba(214,69,69,.10); }
.qexp { border-left: 4px solid var(--gold); padding: 10px 14px; margin: 6px 0 16px; border-radius: 6px; background: rgba(212,164,64,.10); font-size: 14.5px; }
.qscore { font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1.1; } .qrev { margin: 18px 0; padding: 0; list-style: none; } .qrev li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.gl-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.gl-tools input, .gl-tools select { font: inherit; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.gl-tools input { flex: 1; min-width: 220px; } .gl-n { font-size: 13px; color: var(--muted); }
.gl-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; } .gl-letters a { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.glg { margin-bottom: 26px; } .gl-letter { font-size: 26px; margin: 0 0 10px; color: var(--gold); } .glg .gl b { display: inline; } .glg .gl .tag { font-size: 11px; margin: 0 0 0 6px; padding: 1px 8px; }
.gl-ex { font-size: 13px !important; } .gl-rel { font-size: 12.5px !important; } .glg .gl div:target { box-shadow: 0 0 0 3px rgba(212,164,64,.7); }
html[data-mode="dark"] .gl-tools input, html[data-mode="dark"] .gl-tools select { background: #0D1D40; color: #fff; border-color: rgba(255,255,255,.15); }
html[data-mode="dark"] .gl-letters a, html[data-mode="dark"] .qopt, html[data-mode="dark"] a.edu-open.edu-locked { border-color: rgba(255,255,255,.15); }
html[data-mode="dark"] .qbar { background: rgba(255,255,255,.1); } html[data-mode="dark"] .edu-frame { border-color: rgba(255,255,255,.15); background: #141925; }
html[data-mode="dark"] .edu-mhead h3, html[data-mode="dark"] .edu-rhead b, html[data-mode="dark"] .quiz h3 { color: #fff; }
@media (max-width: 640px) { td.edu-go { width: auto; } .edu-prof img { width: 120px; } .quiz { padding: 20px; } }
[hidden] { display: none !important; }

/* icon buttons: squares with rounded corners and a thin light border */
.sbox, .obtn, .burger { border-radius: 10px; border: 1px solid rgba(255,255,255,.32); background: transparent; }
.sbox { width: 40px; height: 40px; } .obtn { height: 40px; } .sbox svg { width: 18px; height: 18px; flex-basis: 18px; color: #fff; }
.sbox.open { width: 230px; } .burger { width: 40px; height: 40px; padding: 0; display: none; align-items: center; justify-content: center; }
.obtn { color: #fff; } .sbox:hover, .obtn:hover, .burger:hover { border-color: var(--gold); }
@media (max-width: 759px) { .burger { display: flex; } .sbox, .sbox.open { width: auto; } }
html[data-mode="light"] .sbox, html[data-mode="light"] .obtn, html[data-mode="light"] .burger { background: transparent; border-color: #C9D3E3; }
html[data-mode="light"] .sbox svg, html[data-mode="light"] .obtn { color: var(--navy); }
.fb-nav { border-radius: 12px; }
.obtn { width: 40px; padding: 0; gap: 0; } .obtn .olang { display: none; } .obtn svg { width: 20px; height: 20px; }

/* menu and submenus (style of the IMS app): bold caps, gold active item with underline, navy dropdown panel */
.menu { align-items: center; }
.menu a { font-weight: 700; letter-spacing: 1.2px; color: #E6ECF6; }
.menu a::after { left: 10px; right: 10px; bottom: -12px; }
.menu > a.on, .menu .mi > a.on { color: var(--gold2); }
.mi { position: relative; display: flex; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: 3px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.sub { display: none; position: absolute; top: calc(100% + 12px); left: 0; min-width: 260px; padding: 10px 0; background: #111D45; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 60; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mi:hover > .sub, .mi:focus-within > .sub { display: block; }
.menu .sub a { display: block; padding: 11px 26px; font-size: 15px; font-weight: 700; letter-spacing: .2px; text-transform: none; color: #fff; }
.menu .sub a::after { display: none; } .menu .sub a:hover { color: var(--gold2); background: rgba(255,255,255,.05); }
.mi:last-child .sub, .menu .mi:nth-last-child(-n+3) .sub { left: auto; right: 0; }
html[data-mode="light"] .sub { background: #fff; border-color: var(--line); box-shadow: 0 18px 40px rgba(11,26,58,.15); }
html[data-mode="light"] .menu .sub a { color: var(--navy); } html[data-mode="light"] .menu .sub a:hover { color: var(--royal); background: #F1F4FA; }
@media (max-width: 1440px) { .menu a { letter-spacing: .5px; } }
@media (max-width: 759px) { .menu { align-items: stretch; } .mi { flex-direction: column; } .menu a::after { bottom: 4px; }
  .sub, .mi:hover > .sub, .mi:focus-within > .sub { display: block; position: static; min-width: 0; padding: 0 0 6px 14px; background: none; border: 0; box-shadow: none; }
  .menu .sub a { padding: 7px 12px; font-size: 13.5px; font-weight: 500; color: #C8D4E8; } .caret { display: none; } }

/* card icon and title on one row */
.chead { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.chead h3 { margin: 0; } .chead .code { margin: 0 0 2px; }
.course .chead { margin-top: 22px; }

/* company web apps */
.appshot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(11,26,58,.18); }
.appshot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .3s; }
.appshot:hover img { transform: scale(1.03); }
.appcard .appshot { margin-bottom: 16px; } .appcard .kick { margin-bottom: 0; } .appcard h3 { margin-top: 4px; }
.appcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.btn.sm { padding: 8px 16px; font-size: 13px; }
.approw { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.approw:last-child { border-bottom: 0; } .approw:nth-child(even) .appshot { order: 2; }
.approw h2 { margin: 4px 0 12px; } .applink { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; } .applink span { font-size: 13px; color: var(--muted); word-break: break-all; }
@media (max-width: 860px) { .approw { grid-template-columns: 1fr; gap: 20px; } .approw:nth-child(even) .appshot { order: 0; } }
html[data-mode="dark"] .appshot { border-color: rgba(255,255,255,.14); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.applink .btn.gold, .appcard .btn.gold { color: #0B1A3A; text-decoration: none; }

/* buttons: same colors, rounded square corners instead of pill ends */
.btn, .menu a.cta-link, a.edu-open, .gl-tools input, .gl-tools select { border-radius: 10px; }
.btn.sm, a.edu-open { border-radius: 8px; }
.seg, .lang { border-radius: 10px; } .seg button, .lang button { border-radius: 7px; }
.step i, .edu-num { border-radius: 8px; }

/* contact = envelope icon button next to search and options */
.cbtn { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.32); color: #fff; }
.cbtn svg { width: 20px; height: 20px; } .cbtn:hover, .cbtn.on { border-color: var(--gold); color: var(--gold2); }
html[data-mode="light"] .cbtn { border-color: #C9D3E3; color: var(--navy); } html[data-mode="light"] .cbtn:hover, html[data-mode="light"] .cbtn.on { border-color: var(--gold); color: var(--royal); }
.ibtn-mi { display: flex; } .ibtn-mi .sub { left: auto; right: 0; top: calc(100% + 14px); }
@media (max-width: 759px) { .ibtn-mi .sub, .ibtn-mi:hover > .sub, .ibtn-mi:focus-within > .sub { display: none; } }
.ibtn-mi .sub a { display: block; padding: 11px 26px; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.ibtn-mi .sub a:hover { color: var(--gold2); background: rgba(255,255,255,.05); }
html[data-mode="light"] .ibtn-mi .sub a { color: var(--navy); } html[data-mode="light"] .ibtn-mi .sub a:hover { color: var(--royal); background: #F1F4FA; }
.split > * { min-width: 0; }

/* menu bar 15% taller (67px -> 77px) */
.nav-in { padding-top: 15px; padding-bottom: 15px; }
.menu a::after { bottom: -17px; } .sub { top: calc(100% + 17px); } .sub::before { top: -19px; height: 19px; } .ibtn-mi .sub { top: calc(100% + 19px); }
@media (max-width: 759px) { .menu a::after { bottom: 4px; } }

/* header like the IMS app: full width, main menu on the left, icon menu on the right, 82px, IMS colors */
.nav { background: #0a1238; border-bottom: 1px solid #c9a227; backdrop-filter: none; }
.nav-in { max-width: none; height: 82px; padding: 0 28px; gap: 22px; align-items: stretch; }
.brand { display: flex; align-items: center; } .brand img { height: 44px; }
.menu { margin-left: 0; align-items: stretch; gap: 0; }
.menu > a, .mi > a { display: flex; align-items: center; padding: 0 11px; font-size: 13.8px; font-weight: 700; letter-spacing: .08em; color: #e8ebf7; border-bottom: 2px solid transparent; }
.mi { align-items: stretch; }
.menu > a:hover, .mi > a:hover, .menu > a.on, .mi > a.on { color: #e9b54a; }
.menu > a.on, .mi > a.on { border-bottom-color: #e9b54a; }
.menu a::after { display: none; }
.tools { margin-left: auto; gap: 12px; }
.tools > *, .tools .ibtn-mi { align-self: center; }
.sbox, .obtn, .cbtn, .burger { width: 46px; height: 46px; flex-basis: 46px; border-radius: 8px; border-color: rgba(255,255,255,.3); }
.sbox.open { width: 260px; } .obtn { width: 46px; }
.sbox:hover, .obtn:hover, .cbtn:hover, .cbtn.on, .opts.open .obtn { border-color: #e9b54a; color: #e9b54a; } .sbox:hover svg { color: #e9b54a; }
.sbox svg { width: 19px; height: 19px; flex-basis: 19px; } .cbtn svg, .obtn svg { width: 21px; height: 21px; }
.sub, .ibtn-mi .sub { top: calc(100% + 6px); background: #121a4c; border: 1px solid rgba(241,205,120,.35); border-radius: 12px; padding: 8px; }
.sub::before { top: -8px; height: 8px; }
.menu .sub a, .ibtn-mi .sub a { color: #fff; border-radius: 8px; padding: 10.5px 16px; font-weight: 600; letter-spacing: .02em; }
.menu .sub a:hover, .ibtn-mi .sub a:hover { background: rgba(241,205,120,.12); color: #f1cd78; }
.menu .sub a.cur, .ibtn-mi .sub a.cur { background: #e0a43a; color: #0d1450; }
.ibtn-mi .sub { top: calc(100% + 18px); }
@media (max-width: 759px) {
  .nav-in { height: auto; min-height: 82px; padding: 18px 20px; align-items: center; }
  .menu > a, .mi > a { padding: 10px 6px; border-bottom: 0; } .menu > a.on, .mi > a.on { border-bottom: 0; }
  .tools { margin-left: 0; } .sbox, .sbox.open { width: auto; }
  .menu .sub a { padding: 7px 12px; color: #C8D4E8; font-weight: 500; } }
html[data-mode="light"] .nav { background: #fff; border-bottom-color: #c9a227; }
html[data-mode="light"] .menu > a, html[data-mode="light"] .mi > a { color: var(--navy); }
html[data-mode="light"] .menu > a.on, html[data-mode="light"] .mi > a.on, html[data-mode="light"] .menu > a:hover, html[data-mode="light"] .mi > a:hover { color: #b8862a; border-bottom-color: #c9a227; }
html[data-mode="light"] .sbox, html[data-mode="light"] .obtn, html[data-mode="light"] .cbtn, html[data-mode="light"] .burger { border-color: #C9D3E3; }
.mi.ibtn-mi > a.cbtn { padding: 0; justify-content: center; border: 1px solid rgba(255,255,255,.3); color: #fff; letter-spacing: 0; }
.mi.ibtn-mi > a.cbtn:hover, .mi.ibtn-mi > a.cbtn.on { border-color: #e9b54a; color: #e9b54a; }
html[data-mode="light"] .mi.ibtn-mi > a.cbtn { border-color: #C9D3E3; color: var(--navy); }

/* book pages: chapter titles 2px bigger (14 -> 16px) and gold */
a.edu-ttl, a.edu-ttl b { font-size: 16px; color: #e9b54a; } a.edu-ttl:hover { color: #f1cd78; }
html[data-mode="light"] a.edu-ttl, html[data-mode="light"] a.edu-ttl b { color: #a8761e; } html[data-mode="light"] a.edu-ttl:hover { color: #8a6012; }
html[data-mode="dark"] a.edu-open:not(.edu-locked) { color: #e9b54a; }
.quiz .btn { align-self: flex-start; }

/* sign-in screen */
html.locked body > *:not(#login) { visibility: hidden; } html.locked body { overflow: hidden; }
#login { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(900px 500px at 50% 35%, #17307a 0%, rgba(10,18,56,0) 70%), linear-gradient(180deg, #0b1440 0%, #070c2c 100%); }
.lg-card { width: 100%; max-width: 440px; background: rgba(13,23,71,.92); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.5); color: #e8ebf7; }
.lg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.lg-logo { display: grid; place-items: center; width: 108px; height: 58px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: #0a1238; }
.lg-logo img { max-width: 92px; max-height: 44px; }
.lg-head b { display: block; color: #e9b54a; font-size: 26px; letter-spacing: .14em; } .lg-head span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #c9cfe8; }
.lg-intro { color: #a9b0d6; font-size: 14px; margin: 6px 0 18px; }
.lg-f { display: block; margin-bottom: 14px; } .lg-f > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lg-f input { width: 100%; font: inherit; color: #fff; background: #0a1238; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 11px 13px; outline: none; }
.lg-f input:focus { border-color: #e9b54a; }
.lg-pw { position: relative; display: block; } .lg-pw input { padding-right: 44px; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #a9b0d6; cursor: pointer; padding: 6px; } .lg-eye svg { width: 20px; height: 20px; display: block; }
.lg-rem { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 2px 0 14px; } .lg-rem input { accent-color: #e9b54a; width: 16px; height: 16px; }
.lg-err { color: #ff9db5; font-size: 13.5px; margin: 0 0 12px; }
.lg-go { width: 100%; justify-content: center; }
#signout_row span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* "Learn more" as an outlined button (style of "About NXW") */
.btn.ghost.more-btn { margin-left: 0; align-self: flex-start; padding: 10px 20px; font-size: 13.5px; }
a.card:hover .btn.ghost.more-btn { border-color: var(--gold); color: var(--gold2); }
html[data-mode="light"] a.card:hover .btn.ghost.more-btn { border-color: var(--royal); color: var(--royal); }
.appcard .foot { justify-content: flex-start; gap: 12px; }
a.card.actcard { display: flex; flex-direction: column; } a.card.actcard .more-btn { margin-top: auto; }
a.card.actcard .more-btn { align-self: flex-end; } .appcard .foot { justify-content: space-between; }

/* partner logos (white tile so every logo reads in dark and light mode) */
.plogo { display: flex; align-items: center; justify-content: center; width: 170px; height: 84px; padding: 10px 14px; background: #fff; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.18); margin-bottom: 4px; }
.plogo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
html[data-mode="light"] .plogo { border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(11,26,58,.08); }
/* steps: number beside the title, compact card */
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 8px; align-items: center; align-content: start; padding: 18px 18px 16px; }
.step i { margin: 0; }
.step b { margin: 0; line-height: 1.25; }
.step p { grid-column: 1 / -1; }
/* active menu underline: just below the word (middle of the bar), not at its bottom edge */
@media (min-width: 760px) {
  .menu > a, .mi > a { position: relative; border-bottom-color: transparent !important; }
  .menu > a.on::after, .mi > a.on::after { display: block; content: ""; position: absolute; left: 11px; right: 11px; top: calc(50% + 13px); bottom: auto; height: 2px; border-radius: 2px; background: #e9b54a; transform: none; }
  html[data-mode="light"] .menu > a.on::after, html[data-mode="light"] .mi > a.on::after { background: #c9a227; }
  .mi > a.has-caret.on::after { right: 11px; }
}
/* tablets in landscape (1024-1280px): keep the full menu bar, just tighter */
@media (min-width: 760px) and (max-width: 1280px) {
  .nav-in { padding: 0 14px; gap: 12px; } .brand img { height: 38px; }
  .menu > a, .mi > a { padding: 0 7px; font-size: 12.5px; letter-spacing: .03em; }
  .menu > a.on::after, .mi > a.on::after, .mi > a.has-caret.on::after { left: 7px; right: 7px; }
  .tools { gap: 7px; --sbw: 40px; --sbg: 7px; } .sbox, .obtn, .cbtn, .burger { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (min-width: 760px) { .mi.open > .sub { display: block; } }
/* quiz: question sets and filters */
.qsets { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.qset { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.qset i { font-style: normal; font-weight: 600; opacity: .7; margin-left: 4px; }
.qset:hover { border-color: var(--gold); } .qset.on { background: #e0a43a; border-color: #e0a43a; color: #0d1450; }
.qfil { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; font-size: 14px; }
.qfil select { font: inherit; margin-left: 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: inherit; }
.qfil select option { color: #0d1450; }
.quiz h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
/* sign-in: register link and confirmation */
.lg-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: #a9b0d6; } .lg-alt a { color: #e9b54a; font-weight: 700; text-decoration: none; } .lg-alt a:hover { text-decoration: underline; }
.lg-ok { color: #9be3b4; font-size: 13.5px; margin: 0 0 12px; }
.lg-go[disabled] { opacity: .6; cursor: wait; }
#login { overflow-y: auto; }
/* from 1024px up: the search box opens to the left, over the menu, instead of squeezing the bar (it sits in place of the search icon) */
@media (min-width: 760px) {
  .tools { position: relative; }
  .sbox.open { position: absolute; top: 50%; right: calc(100% + var(--sbg, 12px)); transform: translateY(-50%); width: min(440px, 55vw); flex-basis: auto; height: var(--sbw, 46px); z-index: 70; background: #0a1238; box-shadow: -14px 0 18px #0a1238; }
  html[data-mode="light"] .sbox.open { background: #fff; box-shadow: -14px 0 18px #fff; }
}
/* sign-in title "Next Wealth" in the serif style of the Indexes Observatory */
.lg-title { font-family: Lora, Georgia, "Times New Roman", serif; font-weight: 700; font-size: 34px; line-height: 1.1; color: #fff; letter-spacing: 0; }
.lg-title i { font-weight: 400; font-style: italic; color: #e0a43a; }

/* ---------- SHOWROOM (from the NXW Monitor, RESOURCES > SHOWROOM), in the NXW theme ---------- */
.phead h1.sr-page-title, .sr-title { font-family: Lora, Georgia, "Times New Roman", serif; }
.phead h1.sr-page-title i, .sr-title i { font-weight: 400; color: #e0a43a; }
html[data-mode="light"] .phead h1.sr-page-title i { color: #B07F1F; }
.sec.showroom { padding-top: 40px; }
.sr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
a.sr-tab { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; text-decoration: none; }
a.sr-tab.on { background: var(--gold); color: var(--navy); }
.sr-hero { display: flex; gap: 36px; align-items: center; padding: 34px 38px; border-radius: 18px; color: #fff; border: 1px solid rgba(212,164,64,.35);
  background: radial-gradient(700px 400px at 80% 20%, rgba(46,155,255,.22), transparent 60%), linear-gradient(150deg, #0E2145 0%, #070F22 75%); }
.sr-cover { width: 230px; flex: none; border-radius: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.sr-hero .kick { color: var(--gold); }
.sr-title { font-weight: 700; font-size: 44px; line-height: 1.1; margin: 10px 0 8px; color: #fff; }
.sr-title i { font-size: 32px; }
.sr-auth { font-weight: 600; color: #DCE6F5; }
.sr-pitch { font-size: 15.5px; line-height: 1.65; color: #C8D4E8; margin: 14px 0; max-width: 820px; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sr-chips span { padding: 5px 13px; border-radius: 16px; border: 1px solid rgba(212,164,64,.55); color: var(--gold2); font-size: 13px; }
.sr-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sr-hero .btn.line { color: #fff; border-color: rgba(255,255,255,.55); padding: 11px 20px; font-size: 14px; } .sr-hero .btn.line:hover { border-color: var(--gold); color: var(--gold2); }
.sr-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0 8px; }
.sr-stat { border-radius: 14px; padding: 14px 10px; text-align: center; background: var(--paper); border: 1px solid var(--line); }
.sr-stat b { display: block; font-family: Lora, Georgia, serif; font-size: 30px; color: #B07F1F; line-height: 1.1; }
.sr-stat span { font-size: 12.5px; color: var(--muted); }
.sr-sec { margin-top: 40px; }
.sr-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sr-h h2 { margin: 0; font-size: 24px; }
.sr-n { flex: none; font-family: Lora, Georgia, serif; font-size: 15px; font-weight: 700; color: var(--navy); background: var(--gold); border-radius: 50%; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; }
.sr-text p, .sr-lead { font-size: 15.5px; line-height: 1.75; max-width: 980px; color: var(--ink); }
.sr-lead { color: var(--muted); margin: -4px 0 16px; }
.sr-hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sr-hl, .sr-st, .sr-part, .sr-fc, a.sr-np { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sr-hl { display: flex; gap: 14px; padding: 16px 18px; }
.sr-hl .ico, .sr-st .ico { flex: none; margin: 0; }
.sr-hl b, .sr-st b { font-size: 15.5px; color: var(--navy); } .sr-hl p, .sr-st p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.sr-st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sr-st { padding: 20px; border-top: 3px solid var(--gold); } .sr-st .ico { margin-bottom: 10px; } .sr-st b { display: block; }
.sr-np-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
a.sr-np { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; text-decoration: none; color: inherit; border-top: 3px solid var(--sky); transition: transform .15s, border-color .15s, box-shadow .15s; }
a.sr-np:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(11,26,58,.14); }
a.sr-np.sr-np-new { border-top-color: var(--gold); background: linear-gradient(160deg, rgba(212,164,64,.14), transparent 70%); }
.sr-np-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sr-np-num { font-family: Lora, Georgia, serif; font-size: 26px; font-weight: 700; color: var(--royal); line-height: 1; }
.sr-np-badge, .sr-fc-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 9px; background: var(--gold); color: var(--navy); }
a.sr-np b { font-size: 14.5px; line-height: 1.3; color: var(--navy); } a.sr-np p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sr-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sr-part { padding: 16px 18px; }
.sr-part-h { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.sr-part-r { font-family: Lora, Georgia, serif; color: #B07F1F; font-size: 20px; min-width: 34px; }
.sr-part ol { margin: 0; padding-left: 26px; font-size: 13.5px; line-height: 1.7; } .sr-part li a { color: var(--ink); text-decoration: none; } .sr-part li a:hover { color: var(--royal); text-decoration: underline; }
.sr-aud { display: flex; flex-wrap: wrap; gap: 10px; }
.sr-aud span { padding: 8px 16px; border-radius: 20px; background: rgba(46,155,255,.10); color: var(--navy); font-weight: 600; font-size: 14px; }
.sr-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px;
  border-radius: 16px; background: linear-gradient(150deg, #0E2145, #070F22); color: #DCE6F5; border: 1px solid rgba(212,164,64,.35); }
.sr-cta b { color: var(--gold2); font-size: 17px; }
.sr-fc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sr-fc { display: flex; gap: 16px; padding: 16px; }
.sr-fc img { width: 104px; height: 156px; object-fit: cover; flex: none; border-radius: 4px; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.sr-fc-vol { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
.sr-fc b { font-size: 16.5px; display: block; color: var(--navy); } .sr-fc-sub { font-family: Lora, Georgia, serif; font-style: italic; color: #B07F1F; font-size: 14px; }
.sr-fc p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 6px 0; } .sr-fc-auth { font-size: 12.5px; font-weight: 600; color: var(--muted); }
a.sr-fc-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #B07F1F; text-decoration: none; } a.sr-fc-link:hover { text-decoration: underline; }
.showroom .vidbox { margin: 0; max-width: 1100px; }
html[data-mode="dark"] .sr-hl, html[data-mode="dark"] .sr-st, html[data-mode="dark"] .sr-part, html[data-mode="dark"] .sr-fc, html[data-mode="dark"] a.sr-np { background: #10224A; }
html[data-mode="dark"] .sr-hl b, html[data-mode="dark"] .sr-st b, html[data-mode="dark"] a.sr-np b, html[data-mode="dark"] .sr-part-h, html[data-mode="dark"] .sr-fc b, html[data-mode="dark"] .sr-aud span { color: #fff; }
html[data-mode="dark"] .sr-stat b, html[data-mode="dark"] .sr-part-r, html[data-mode="dark"] .sr-fc-sub, html[data-mode="dark"] a.sr-fc-link { color: var(--gold2); }
html[data-mode="dark"] .sr-np-num { color: #6FB3FF; }
html[data-mode="dark"] .sr-part li a { color: #C8D4E8; } html[data-mode="dark"] .sr-part li a:hover { color: #8CC4FF; }
@media (max-width: 1100px) { .sr-np-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sr-fc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991px) { .sr-stats { grid-template-columns: repeat(3, 1fr); } .sr-st-grid { grid-template-columns: repeat(2, 1fr); } .sr-fc-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sr-hero { flex-direction: column; padding: 22px; } .sr-cover { width: 170px; } .sr-title { font-size: 34px; } .sr-title i { font-size: 26px; }
  .sr-hl-grid, .sr-st-grid { grid-template-columns: 1fr; } .sr-stats { grid-template-columns: repeat(2, 1fr); } .sr-np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1140px) { .menu > a, .mi > a { padding: 0 6px; font-size: 12px; letter-spacing: .02em; } .nav-in { gap: 10px; } }
/* ---- CMS (js/cms.js): admin icon, login window, Edit page button, edit bar and tools */
html.cms-wait body > *:not(#login) { visibility: hidden; }
.tools { position: relative; }
.cmsbtn.on { position: relative; }
.cms-hidden { display: none !important; }
body.cms-on .cms-hidden { display: revert !important; opacity: .35; outline: 2px dashed #e05a5a; }
.cms-menu { position: absolute; top: calc(100% + 12px); right: 58px; z-index: 80; min-width: 220px; background: #121a4c; border: 1px solid rgba(241,205,120,.35); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.cms-menu p { margin: 4px 10px 8px; font-size: 12.5px; color: #c9cfe8; } .cms-menu p b { color: #fff; }
.cms-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.cms-menu button:hover { background: rgba(241,205,120,.12); color: #f1cd78; }
.cms-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(4,8,28,.62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cms-box { width: 100%; max-width: 380px; background: #0a1238; border: 1px solid rgba(241,205,120,.3); border-radius: 12px; padding: 28px 30px; box-shadow: 0 30px 70px rgba(0,0,0,.5); color: #e8ebf7; }
.cms-box h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 26px; color: #fff; } .cms-box h3 svg { width: 26px; height: 26px; color: #e9b54a; }
.cms-box label { display: block; margin-bottom: 16px; } .cms-box label span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14.5px; }
.cms-box input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: #0d1640; color: #fff; font: inherit; }
.cms-box input:focus { outline: none; border-color: #e9b54a; box-shadow: 0 0 0 3px rgba(233,181,74,.18); }
.cms-err { color: #ff8a8a; font-size: 13.5px; margin: -4px 0 12px; }
.cms-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.cms-editbtn { position: fixed; z-index: 45; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); right: calc(22px + env(safe-area-inset-right, 0px)); display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 0; border-radius: 8px; background: #d93a3a; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.cms-editbtn svg { width: 17px; height: 17px; } .cms-editbtn:hover { background: #ec5050; }
#cms_bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px; background: #0a1238; border-top: 2px solid #e9b54a; color: #e8ebf7; box-shadow: 0 -12px 30px rgba(0,0,0,.35); }
#cms_bar .cms-t { flex: 1; min-width: 220px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; } #cms_bar .cms-t b { color: #e9b54a; }
#cms_bar .cms-t svg { width: 19px; height: 19px; color: #e9b54a; } #cms_bar small { flex-basis: 100%; color: #aab3d6; font-size: 12.5px; }
#cms_bar .cms-n { font-size: 13px; color: #c9cfe8; margin-right: 6px; }
#cms_bar .btn.ghost { color: #e8ebf7; } #cms_bar .btn[disabled] { opacity: .45; cursor: default; }
body.cms-on { padding-bottom: 90px; }
body.cms-on .cms-hov { outline: 1px dashed rgba(233,181,74,.75); outline-offset: 2px; cursor: text; }
body.cms-on img.cms-hov { outline: 2px dashed #e9b54a; cursor: pointer; }
.cms-cur { outline: 2px solid #e9b54a !important; outline-offset: 3px; background: rgba(233,181,74,.06); }
.cms-changed { box-shadow: inset 3px 0 0 #4fc38a; }
#cms_tool { position: absolute; z-index: 950; display: flex; gap: 4px; padding: 5px; background: #121a4c; border: 1px solid rgba(241,205,120,.45); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.4); }
#cms_tool button { background: none; border: 0; color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
#cms_tool button:hover { background: rgba(241,205,120,.15); color: #f1cd78; } #cms_tool button.ok { background: #e9a23b; color: #0a1238; }
#cms_toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 1100; background: #12305a; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; pointer-events: none; max-width: calc(100vw - 32px); }
#cms_toast.bad { background: #7a1f2b; }
@media (max-width: 1280px) { .cms-menu { right: 0; } }
@media (min-width: 760px) and (max-width: 1100px) { .tools { gap: 4px; } }   /* room for the CMS icon (FR menu at 1024 px) */

/* ---------- STARTER PAGE AND SIGN-IN, with the rules of VTPWEB (js/site.js > sign-in) ---------- */
/* signed out: the header and the 2-line menu stay; pages that need an account open the sign-in card */
/* Home signed out: only the starter band */
html:not(.signed) section#home > :not(.starter-band) { display: none !important; }
html:not(.signed) .starter-band { min-height: calc(100vh - 82px); display: flex; align-items: center; }
html:not(.signed) .starter-band > .wrap { width: 100%; }
.starter-band { padding: 64px 0 80px; }
.starter-band img.logo { width: 330px; max-width: 80%; }
/* platform name above the logo */
.st-name { display: inline-flex; align-items: center; gap: 26px; margin: 0 0 28px; }
.st-name span { font-size: 26px; font-weight: 700; letter-spacing: .36em; text-transform: uppercase; padding-left: .36em;
  background: linear-gradient(90deg, #F0D890, #D4A440 45%, #F0D890); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 26px rgba(212,164,64,.25); }
.st-name i { width: 170px; height: 2px; background: linear-gradient(90deg, transparent, #D4A440); position: relative; }
.st-name i:last-child { background: linear-gradient(90deg, #D4A440, transparent); }
.st-name i::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; transform: rotate(45deg); background: #D4A440; }
.st-name i:first-child::after { right: -4px; } .st-name i:last-child::after { left: -4px; }
html[data-mode="light"] .st-name span { background: linear-gradient(90deg, #8A6418, #B07F1F 45%, #8A6418); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 1100px) { .st-name span { font-size: 20px; letter-spacing: .28em; } .st-name i { width: 90px; } }
@media (max-width: 640px) { .st-name { gap: 12px; } .st-name span { font-size: 14px; letter-spacing: .2em; } .st-name i { width: 34px; } .starter-band h1 { font-size: 32px; } }
/* six section buttons, one colour each */
.assets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 1120px; margin: 14px auto 0; text-align: left; }
.abox { --c: var(--gold); --c2: var(--gold2); position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: #fff !important;
  min-height: 62px; padding: 10px 12px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, transparent) 0%, rgba(7,15,34,.72) 75%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s, border-color .2s; }
.abox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.abox::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent) 0%, transparent 70%); opacity: .55; transition: opacity .2s; pointer-events: none; }
.abox:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 35%, transparent); }
.abox:hover::after { opacity: 1; }
.abox .aic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 5px 14px color-mix(in srgb, var(--c) 45%, transparent); }
.abox .aic svg { width: 19px; height: 19px; }
.abox .atx { min-width: 0; }
.abox .atx b { display: block; font-size: 13px; line-height: 1.2; letter-spacing: .9px; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abox.act { --c: #D4A440; --c2: #F0D890; } .abox.proj { --c: #2E6BFF; --c2: #7FB2FF; } .abox.prod { --c: #E0702E; --c2: #FFB27A; }
.abox.apps { --c: #10B981; --c2: #6EE7B7; } .abox.edu { --c: #8B5CF6; --c2: #C4B5FD; } .abox.res { --c: #E11D74; --c2: #F9A8D4; }
html[data-mode="light"] .abox { color: var(--navy) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff) 0%, #fff 75%); box-shadow: 0 3px 12px rgba(11,26,58,.08); }
html[data-mode="light"] .abox .atx b { color: var(--navy); }
@media (max-width: 1200px) { .assets { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 600px) { .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .abox { padding: 9px 10px; } .abox .atx b { font-size: 12px; letter-spacing: .5px; } }
/* Sign up | Sign in under the buttons, hidden once signed in; a short welcome instead */
.home-auth { display: inline-flex; align-items: center; margin-top: 44px; border: 1px solid #2A4475; border-radius: 12px; padding: 5px; background: rgba(7,15,34,.45); backdrop-filter: blur(6px); }
.ha-btn { min-width: 150px; padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #E8EBF7 !important; text-align: center; transition: background .2s, color .2s; }
.ha-btn:hover { background: rgba(255,255,255,.06); }
.ha-in { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530 !important; } .ha-in:hover { background: linear-gradient(135deg, var(--gold2), var(--gold)); }
.ha-sep { width: 1px; height: 22px; background: #2A4475; margin: 0 5px; }
.hero p.home-auth-p { font-size: 13.5px; color: #9DB0CC; margin: 14px auto 0; font-weight: 400; }
html.signed .home-auth, html.signed .home-auth-p { display: none !important; }
html[data-mode="light"] .home-auth { background: #fff; border-color: #C9D4E6; } html[data-mode="light"] .ha-up { color: var(--navy) !important; }
.home-user { display: none; max-width: 760px; margin: 44px auto 0; }
html.signed .home-user { display: block; }
.home-user h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; color: #E8EBF7; } .home-user h3 b { color: var(--gold); font-weight: 700; }
.hero .home-user p { font-size: 15px; margin: 0 auto; color: #9DB0CC; }
html[data-mode="light"] .home-user h3 { color: var(--navy); }
@media (max-width: 480px) { .ha-btn { min-width: 0; padding: 12px 18px; } }
/* user icon of the top bar: initials when signed in, menu with the name and Sign out */
.ubox { position: relative; display: flex; }
.ubtn .u-ini { font-weight: 700; font-size: 14px; letter-spacing: .04em; color: #e9b54a; display: inline-flex; }
.ubtn .u-ini svg { width: 21px; height: 21px; color: #e8ebf7; }
html.signed .ubtn { border-color: rgba(233,181,74,.55); }
.umenu { display: none; position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; z-index: 2000; background: #121a4c;
  border: 1px solid rgba(241,205,120,.35); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ubox.open .umenu { display: block; }
.u-head { padding: 8px 10px 10px; border-bottom: 1px solid #22355C; margin-bottom: 6px; display: flex; flex-direction: column; }
.u-head b { color: #fff; font-size: 14px; } .u-head span { color: #9DB0CC; font-size: 12px; }
.u-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #C9D6EC !important; text-decoration: none; font-size: 14px; font-weight: 600; }
.u-item svg { width: 17px; height: 17px; } .u-item:hover { background: rgba(212,164,64,.14); color: #e9b54a !important; }
.u-out { color: #FCA5A5 !important; }
html[data-mode="light"] .umenu { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .u-head b { color: var(--navy); } html[data-mode="light"] .u-item { color: var(--navy) !important; }
/* the sign-in card (VTPWEB): full screen in front of a page that needs an account, over a blurred page elsewhere */
html.lg-open body { overflow: hidden; }
#login { z-index: 9000; overflow-y: auto; }
html:not(.locked) #login { background: rgba(5,11,26,.78); backdrop-filter: blur(6px); }
html.locked #login { background: radial-gradient(ellipse at 30% 20%, #1A3A7A 0%, #0A1530 55%, #060D20 100%); }
#login .lg-card { position: relative; max-width: 440px; background: rgba(16,34,74,.92); border: 1px solid #2A4475; border-radius: 18px; padding: 34px 34px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lg-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2A4475; background: transparent;
  color: #C9D6EC; font-size: 22px; line-height: 1; cursor: pointer; } .lg-x:hover { color: #e9b54a; border-color: #e9b54a; }
.lg-logo2 { height: 54px; display: block; margin: 0 auto 18px; }
.lg-kick { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #D4A440; margin-bottom: 4px; }
#login .lg-card h2 { font-size: 26px; font-weight: 700; color: #fff; margin: 4px 0 6px; text-align: center; }
.lg-sub { color: #9DB0CC; font-size: 13.5px; text-align: center; margin: 0 0 18px; }
#login .lg-f { margin-bottom: 12px; } #login .lg-f > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9FB0CF; }
#login .lg-f input { background: rgba(7,15,34,.6); border-color: #2A4475; }
#login .lg-f input:focus { border-color: #D4A440; box-shadow: 0 0 0 3px rgba(212,164,64,.15); }
.lg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#login .lg-rem { font-size: 13.5px; color: #C9D6EC; margin: 2px 0 10px; }
#login .lg-go { width: 100%; height: 44px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0A1530; margin-top: 6px; border-radius: 8px; }
.lg-msg { margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; font-size: 13px; background: rgba(220,38,38,.14); border: 1px solid rgba(220,38,38,.45); color: #FCA5A5; }
.lg-msg.ok { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.45); color: #6EE7B7; }
#login .lg-alt { font-size: 13.5px; color: #C9D6EC; margin: 16px 0 0; } #login .lg-alt a { color: #D4A440; font-weight: 600; }
.lg-note { display: block; text-align: center; color: #9DB0CC; margin-top: 18px; font-size: 11.5px; }
html[data-mode="light"].locked #login { background: radial-gradient(ellipse at 30% 20%, #FFFFFF 0%, #EAF0FA 60%, #DCE5F3 100%); }
html[data-mode="light"]:not(.locked) #login { background: rgba(220,229,243,.8); }
html[data-mode="light"] #login .lg-card { background: #fff; border-color: #DCE3EE; box-shadow: 0 30px 80px rgba(10,21,48,.15); color: var(--navy); }
html[data-mode="light"] #login .lg-card h2 { color: var(--navy); } html[data-mode="light"] #login .lg-alt, html[data-mode="light"] #login .lg-rem { color: #44546E; }
html[data-mode="light"] #login .lg-f input { background: #fff; color: var(--navy); border-color: #C9D4E6; } html[data-mode="light"] .lg-x { border-color: #C9D4E6; color: #44546E; }
@media (max-width: 480px) { #login .lg-card { padding: 28px 20px 22px; } .lg-two { grid-template-columns: 1fr; gap: 0; } }
button.cbtn.ubtn { background: transparent; cursor: pointer; padding: 0; font: inherit; }
button.cbtn.ubtn:hover { border-color: #e9b54a; color: #e9b54a; }
/* Home band (10-13): logo +20%, subtitle on two lines, section buttons only for signed-out visitors (signed in, the main menu does the job) */
.starter-band img.logo { width: 396px; }
.starter-band h1 + p { max-width: 1040px; font-size: 16.5px; }
.starter-band .assets { display: none; }
@media (max-width: 1100px) { .st-name i { width: 60px; } }
@media (max-width: 640px) { .starter-band h1 + p { font-size: 14.5px; } .st-name span { font-size: 12px; letter-spacing: .14em; } .st-name i { width: 20px; } }
/* an odd last app card sits centred under the others */
@media (min-width: 641px) { .grid.g2 > .appcard:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); } }

/* language: first-level icon in the tools bar (globe + current code), dropdown with the four languages */
.lbox { position: relative; display: flex; }
.lbtn { width: auto !important; flex-basis: auto !important; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; }
.lbtn svg { width: 19px !important; height: 19px !important; }
.lcode { font-weight: 700; font-size: 12.5px; letter-spacing: .05em; color: #e9b54a; }
.lbox.open .lbtn { border-color: #e9b54a; }
.lmenu { display: none; position: absolute; right: 0; top: calc(100% + 12px); min-width: 190px; z-index: 2000; background: #121a4c;
  border: 1px solid rgba(241,205,120,.35); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.lbox.open .lmenu { display: block; }
.lmenu button { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; background: transparent; color: #C9D6EC; font: inherit; font-size: 14px; font-weight: 500; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.lmenu button b { min-width: 34px; font-size: 12px; letter-spacing: .05em; color: #9DB0CC; }
.lmenu button:hover { background: rgba(212,164,64,.14); color: #e9b54a; }
.lmenu button.on { color: #e9b54a; } .lmenu button.on b { color: #e9b54a; }
html[data-mode="light"] .lmenu { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .lmenu button { color: var(--navy); }
@media (max-width: 1280px) { .lbtn { padding: 0 9px; } .lbtn svg { display: none; } }
button.cbtn.lbtn { background: transparent; }
@media (max-width: 640px) {
  .tools { gap: 5px; } .tools .sbox { min-width: 36px; }
  .sbox, .obtn, .cbtn, .burger { width: 36px; height: 36px; flex-basis: 36px; }
  .lbtn { padding: 0 7px; height: 36px; } .lcode { font-size: 11.5px; }
}
/* starter headline: full width, one line on desktop (all languages) */
.starter-band h1 { max-width: none; width: 100%; font-size: clamp(30px, 3.3vw, 60px); }
@media (min-width: 900px) { .starter-band h1 { white-space: nowrap; width: 96vw; margin-left: calc(50% - 48vw); margin-right: 0; font-size: clamp(30px, 3.3vw, 64px); } }
/* web apps still under construction (listed last) */
.uc-tag { display: inline-block; width: fit-content; align-self: flex-start; margin: 2px 0 6px; padding: 2px 9px; border: 1px solid var(--gold, #d4a24c); border-radius: 999px;
  color: var(--gold, #d4a24c); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
/* Projects: link to the project's website */
.projlink { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 16px; }
.projlink span { font-size: 12.5px; opacity: .75; word-break: break-all; }
.projlink .btn.gold, .projlink .btn.gold:hover { color: #0b1a3a !important; }
/* Projects: highlighted call to action to Our Apps, at the end of the page */
.appscta-sec { padding-top: 8px; }
.appscta { display: block; text-align: center; text-decoration: none; color: inherit; padding: 44px 28px; border-radius: 18px;
  border: 2px solid var(--gold); background: radial-gradient(120% 140% at 50% 0%, rgba(212,164,64,.22), rgba(212,164,64,.04) 60%), var(--card, #10244f);
  box-shadow: 0 0 0 6px rgba(212,164,64,.10), 0 18px 40px rgba(0,0,0,.30); transition: transform .2s, box-shadow .2s; }
.appscta:hover { transform: translateY(-3px); box-shadow: 0 0 0 8px rgba(212,164,64,.16), 0 22px 46px rgba(0,0,0,.36); }
.appscta h2 { margin: 6px 0 8px; } .appscta p { margin: 0 auto 22px; max-width: 640px; }
.appscta .btn.gold { color: #0b1a3a; }
.appscta-sec { padding-top: 48px !important; }
.appscta { background: radial-gradient(120% 140% at 50% 0%, rgba(212,164,64,.25), rgba(212,164,64,0) 60%), linear-gradient(135deg, #0b1a3a, #14306b) !important; color: #fff !important; }
.appscta h2 { color: #fff !important; } .appscta p { color: rgba(255,255,255,.82) !important; }
/* Projects: NXW structure poster */
.orgposter { display: block; margin-top: 26px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212,164,64,.55); box-shadow: 0 0 0 6px rgba(212,164,64,.10), 0 20px 44px rgba(0,0,0,.35); }
.orgposter img { display: block; width: 100%; height: auto; }

/* CMS structure: menu position, menus without visible sub-items, and the "Menu, icons & redirects" window */
header.nav.mpos-left .menu { margin-left: 0; margin-right: auto; }
header.nav.mpos-center .menu { margin-left: auto; margin-right: auto; }
.mi.nosub > .sub, .mi.nosub > a > .caret { display: none !important; }
.cms-sbox { max-width: 860px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 24px 26px; }
.cms-sbox h3 { margin-bottom: 14px; }
.cms-tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 12px; flex-wrap: wrap; }
.cms-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: #c9cfe8; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 12px; cursor: pointer; }
.cms-tabs button.on { color: #e9b54a; border-bottom-color: #e9b54a; }
.cms-sbody { overflow: auto; min-height: 160px; padding-right: 4px; }
.cms-note { margin: 0 0 12px; font-size: 13px; color: #aab3d6; }
.cms-pos { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; }
.cms-pos span { margin-right: 6px; }
.cms-pos button, .cms-sbody .cms-add, .cms-subbtn { white-space: nowrap; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #e8ebf7; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.cms-pos button.on { background: #e9a23b; border-color: #e9a23b; color: #0a1238; }
.cms-row { display: grid; grid-template-columns: 50px 26px minmax(0,1fr) minmax(0,1fr) 150px 30px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cms-row[data-r] { grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr) 30px; }
.cms-row.off > :not(.cms-mv):not(.cms-on):not(.cms-del) { opacity: .45; }
.cms-row input:not([type]), .cms-row input.cms-lbl, .cms-row input.cms-href, .cms-row select { width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.22); background: #0d1640; color: #fff; font: inherit; font-size: 13.5px; }
.cms-row input:focus, .cms-row select:focus { outline: none; border-color: #e9b54a; }
.cms-mv { display: flex; gap: 2px; }
.cms-mv button, .cms-del { width: 24px; height: 28px; padding: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; color: #e8ebf7; font-size: 11px; cursor: pointer; }
.cms-mv button[disabled] { opacity: .3; cursor: default; }
span.cms-del, span.cms-subbtn { visibility: hidden; }
button.cms-del { width: 28px; color: #ff9a9a; font-size: 13px; }
.cms-on input { width: 18px; height: 18px; accent-color: #e9a23b; cursor: pointer; }
.cms-ic { font-size: 14px; }
.cms-subs { margin: 2px 0 8px 58px; padding-left: 12px; border-left: 2px solid rgba(233,181,74,.35); }
.cms-subs .cms-row { grid-template-columns: 50px 26px minmax(0,1fr) minmax(0,1fr) 30px; }
.cms-subs .cms-row .cms-subbtn { display: none; }
.cms-sbody .cms-add { margin: 10px 0 4px; }
.cms-arr { text-align: center; color: #e9b54a; }
@media (max-width: 720px) { .cms-row, .cms-subs .cms-row { grid-template-columns: 50px 26px minmax(0,1fr) 30px; } .cms-row .cms-href, .cms-row .cms-subbtn { grid-column: 3 / 5; } .cms-subs { margin-left: 8px; } }
body.cms-on video.cms-hov { outline: 2px dashed #e9b54a; outline-offset: 2px; cursor: pointer; }
/* library cards: cover beside the heading, parts / features / buttons use the full card width (same DOM, so CMS edits keep their keys) */
.card.bk { display: grid; grid-template-columns: 130px minmax(0, 1fr); column-gap: 22px; row-gap: 0; align-items: start; align-content: start; }
.card.bk > img { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
.card.bk > div { display: contents; }
.card.bk > div > * { grid-column: 2; min-width: 0; }
.card.bk > div > .kick:first-child { margin-top: 2px; }
.card.bk > div > h3 { margin-top: 8px; }
.card.bk > div > .bk-parts, .card.bk > div > .bk-feat, .card.bk > div > p:nth-last-child(2), .card.bk > div > .bk-links { grid-column: 1 / -1; }
.card.bk > div > .bk-parts { margin-top: 14px; }
.card.bk > div > .bk-feat { columns: 2 260px; column-gap: 28px; }
.card.bk > div > .bk-feat li { break-inside: avoid; }
.card.bk > div > p:nth-last-child(2) { margin: 2px 0 12px; }
.bk-links { gap: 8px 10px; }
.bk-links a.more { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--royal); color: var(--royal); text-decoration: none; font-size: 13px; transition: background .2s, color .2s, transform .2s; }
.bk-links a.more:first-child { background: var(--royal); color: #fff; }
.bk-links a.more:hover { transform: translateY(-2px); background: var(--gold); border-color: var(--gold); color: var(--navy); }
html[data-mode="dark"] .bk-links a.more { color: #8CC4FF; border-color: #6FB3FF; }
html[data-mode="dark"] .bk-links a.more:first-child { background: #1f6fe0; border-color: #1f6fe0; color: #fff; }
html[data-mode="dark"] .bk-links a.more:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
@media (max-width: 560px) { .card.bk { grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; } .card.bk > img { width: 92px; } .card.bk > div > p:not(.kick):nth-child(-n+4):not(:nth-last-child(2)) { grid-column: 1 / -1; } }
/* Administration, as on VTPWEB: red admin icon in the header (green dot once signed in) and a red admin sign-in card */
.cbtn.cmsbtn, html[data-mode] .cbtn.cmsbtn { position: relative; color: #fff !important; background: linear-gradient(180deg, #EF4444, #B91C1C) !important; border-color: #F87171 !important; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
.cbtn.cmsbtn:hover, html[data-mode] .cbtn.cmsbtn:hover, .cbtn.cmsbtn.on { background: linear-gradient(180deg, #F87171, #DC2626) !important; color: #fff !important; }
.cbtn.cmsbtn svg { color: #fff !important; }
.cbtn.cmsbtn.on::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 6px #34D399; }
#cms_login .cms-box { background: linear-gradient(180deg, #7F1D1D, #450A0A); border-color: #EF4444; box-shadow: 0 20px 60px rgba(127,29,29,.55), 0 0 0 1px rgba(239,68,68,.35) inset; }
#cms_login .cms-box h3 { margin-bottom: 6px; } #cms_login .cms-box h3 svg { color: #FECACA; }
#cms_login .cms-sub { margin: 0 0 20px; font-size: 13.5px; color: #FECACA; }
#cms_login .cms-box label span { color: #FECACA; }
#cms_login .cms-box input { background: rgba(0,0,0,.28); border-color: rgba(254,202,202,.35); color: #fff; }
#cms_login .cms-box input:focus { border-color: #FCA5A5; box-shadow: 0 0 0 3px rgba(239,68,68,.25); }
#cms_login .cms-box .btn.gold { background: #EF4444; color: #fff; box-shadow: 0 8px 22px rgba(239,68,68,.35); } #cms_login .cms-box .btn.gold:hover { background: #F87171; }
#cms_login .cms-box .btn.ghost { color: #FECACA; border-color: rgba(254,202,202,.45); }
#cms_login .cms-err { color: #fff; background: rgba(0,0,0,.3); padding: 8px 10px; border-radius: 6px; }
.cms-menu { border-color: rgba(239,68,68,.55); }
/* ---------- Administration page (admin.html), like the VTPWEB Administration page ---------- */
.sec.adm, html[data-mode] .sec.adm { background: #0A1530; color: #DCE4F2; padding: 44px 0 70px; min-height: 70vh; }
.adm-wrap { max-width: 1320px; }
.adm-kick { display: block; color: var(--gold); letter-spacing: .28em; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.adm-h1 { font-family: Lora, Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: clamp(38px, 6vw, 60px); line-height: 1.1; color: #fff; margin: 8px 0 14px; }
.adm-h1::after { content: ""; display: block; width: 80px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px; }
.adm-root { margin-top: 26px; }
.adm-lock, .adm-card { border: 1px solid #22355C; border-radius: 14px; background: rgba(16,34,74,.6); padding: 24px 28px; margin-bottom: 20px; }
.adm-lock { border-color: rgba(239,68,68,.55); background: linear-gradient(180deg, rgba(127,29,29,.55), rgba(69,10,10,.55)); max-width: 640px; }
.adm-lock p { color: #FECACA; margin: 0 0 16px; } .adm-signin { background: #EF4444; color: #fff; } .adm-signin:hover { background: #F87171; }
.adm-wait, .adm-empty { color: #9FB0CC; }
.adm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; color: #9FB0CC; font-size: 14px; } .adm-top span { margin-right: auto; } .adm-top b { color: #fff; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.adm-tabs button { padding: 11px 20px; border-radius: 10px; border: 1px solid #2A4475; background: #0D1B3D; color: #E6EDF8; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.adm-tabs button:hover { border-color: var(--gold); color: var(--gold2); }
.adm-tabs button.on { border-color: var(--gold); color: #fff; background: linear-gradient(180deg, rgba(212,164,64,.35), rgba(212,164,64,.12)); box-shadow: 0 0 0 1px var(--gold) inset; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 20px; }
.adm-kpi { border: 1px solid #22355C; border-radius: 12px; padding: 18px 22px; background: rgba(16,34,74,.6); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adm-kpi b { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.15; overflow-wrap: anywhere; } .adm-kpi span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9FB0CC; }
.adm-kpi.ok b { color: #34D399; } .adm-kpi.wait b { color: var(--gold); } .adm-kpi.ban b { color: #F87171; } .adm-kpi.live b { color: #7FB2FF; }
.adm-card h2 { color: #fff; font-size: 22px; margin: 0 0 6px; letter-spacing: .02em; } .adm-note { color: #B8C6DE; font-size: 14.5px; margin: 0 0 16px; }
.adm-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .adm-filter > span { font-size: 12px; letter-spacing: .14em; color: #9FB0CC; font-weight: 700; text-transform: uppercase; } .adm-filter .sp { flex: 1; }
.adm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-chips button { padding: 7px 16px; border-radius: 8px; border: 1px solid #2A4475; background: transparent; color: #E6EDF8; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.adm-chips button.on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.adm-search { display: flex; align-items: center; gap: 10px; max-width: 340px; height: 46px; padding: 0 14px; border: 1px solid #2A4475; border-radius: 10px; background: #0D1B3D; margin-bottom: 16px; }
.adm-search svg { width: 18px; height: 18px; color: #9FB0CC; flex: none; } .adm-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; }
.adm-tw { overflow-x: auto; }
.adm-t { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14.5px; }
.adm-t th { text-align: left; color: #fff; font-weight: 700; padding: 12px 10px; border-bottom: 1px solid #2A4475; cursor: pointer; white-space: nowrap; user-select: none; }
.adm-t th::after { content: " \2195"; color: #4A6390; font-size: 12px; } .adm-t th.up::after { content: " \25B2"; color: var(--gold); } .adm-t th.dn::after { content: " \25BC"; color: var(--gold); }
.adm-t th.act, .adm-t td.act { text-align: right; cursor: default; } .adm-t th.act::after { content: ""; }
.adm-t td { padding: 11px 10px; border-bottom: 1px solid rgba(42,68,117,.5); color: #DCE4F2; vertical-align: top; overflow-wrap: break-word; }
.adm-t tbody tr:nth-child(even) td { background: rgba(16,34,74,.45); } .adm-t a { color: #8CC4FF; }
.adm-t td.act { white-space: nowrap; }
.adm-st { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(159,176,204,.15); color: #CBD5E1; }
.adm-st.approved { background: rgba(52,211,153,.14); color: #34D399; } .adm-st.pending { background: rgba(212,164,64,.16); color: var(--gold2); } .adm-st.rejected { background: rgba(248,113,113,.14); color: #F87171; }
.adm-b { border: 1px solid #2A4475; border-radius: 7px; background: transparent; color: #E6EDF8; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; margin-left: 6px; cursor: pointer; }
.adm-b:hover { border-color: var(--gold); color: var(--gold2); }
.adm-b.ok { color: #34D399; border-color: rgba(52,211,153,.5); } .adm-b.ok:hover { background: rgba(52,211,153,.14); }
.adm-b.ban, .adm-b.del { color: #F87171; border-color: rgba(248,113,113,.5); } .adm-b.ban:hover, .adm-b.del:hover { background: rgba(248,113,113,.14); }
.adm-b.big { margin-left: 0; padding: 10px 20px; font-size: 14px; }
.adm-msg { white-space: pre-wrap; max-width: 520px; } .adm-msg small { display: block; margin-top: 6px; color: #9FB0CC; }
.adm-n { color: var(--gold2); } .adm-na { color: #6B7FA3; } .adm-on { color: #34D399; font-weight: 700; } .adm-on::before { content: "\25CF  "; }
.adm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 20px; }
@media (max-width: 700px) { .adm-lock, .adm-card { padding: 18px 16px; } .adm-tabs button { padding: 9px 12px; font-size: 12px; } }
@media (max-width: 500px) { .adm-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .adm-kpi { padding: 14px 16px; } .adm-kpi b { font-size: 24px; } }
/* book buttons: no arrow, the three on one line (they wrap only on a narrow phone) */
.bk-links { flex-wrap: nowrap; gap: 8px; } .bk-links a.more { white-space: nowrap; padding: 7px 12px; font-size: 12.5px; }
@media (max-width: 1100px) { .bk-links { flex-wrap: wrap; } }

/* Our Apps and Options moved from the header to the Administration page (tabs Our Web Apps and Settings) */
header.nav .tools .ibtn-mi, header.nav .tools #opts { display: none !important; }
/* Administration title: red admin icon, like the header admin icon */
.adm-h1::before { content: ""; display: inline-block; vertical-align: -.1em; margin-right: 18px; width: .95em; height: .95em; border-radius: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='8' r='3.6'/%3E%3Cpath d='M3 20c0-3.6 2.9-6 6.5-6 1.2 0 2.3.3 3.2.8'/%3E%3C/g%3E%3Cg transform='translate(17.6 16.6)' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle r='2.1'/%3E%3Cpath d='M0-4.3v1.3M0 3v1.3M-4.3 0h1.3M3 0h1.3M-3-3l.9.9M2.1 2.1l.9.9M-3 3l.9-.9M2.1-2.1l.9-.9'/%3E%3C/g%3E%3C/svg%3E") center / 60% no-repeat, #D32F2F; }
/* Our Web Apps tab */
.adm-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.adm-app { border: 1px solid #22385F; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.02); display: flex; flex-direction: column; min-width: 0; }
.adm-app-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.adm-app-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; align-items: flex-start; }
.adm-app-c { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.adm-app h3 { color: #fff; font-size: 16px; margin: 0; }
.adm-app small { color: #8FA3C4; font-size: 12px; overflow-wrap: anywhere; }
.adm-app-f { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.adm-st.internal { background: rgba(127,178,255,.14); color: #7FB2FF; }
/* Settings tab */
.adm-set { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid #22385F; }
.adm-set b { display: block; color: #fff; font-size: 15.5px; } .adm-set small { color: #8FA3C4; font-size: 13px; }
.adm-tabs { gap: 8px; } .adm-tabs button { padding: 11px 15px; letter-spacing: .08em; }
a.adm-b { text-decoration: none; display: inline-flex; align-items: center; }
/* header like VTPWEB: search, contact, account, language, then the red admin button at the far right (CSS order only) */
.tools > #cms_btn { order: 99; }
.cbtn.cmsbtn, html[data-mode] .cbtn.cmsbtn { background: #D32F2F !important; border-color: #D32F2F !important; box-shadow: none; }
.cbtn.cmsbtn:hover, html[data-mode] .cbtn.cmsbtn:hover, .cbtn.cmsbtn.on { background: #E53935 !important; border-color: #E53935 !important; }
.cbtn.cmsbtn svg { width: 23px; height: 23px; }
/* tablets and phones: the language button is as wide as the other square header buttons */
@media (max-width: 1280px) { .tools .lbtn { min-width: 46px; justify-content: center; } }
@media (max-width: 1100px) { .tools .lbtn { min-width: 40px; } }
@media (max-width: 759px) { .tools .lbtn { min-width: 46px; } }
@media (max-width: 600px) { .tools .lbtn { min-width: 36px; } }
/* phones: compact header of the Menu, icons & redirects editor and its action buttons on one line */
@media (max-width: 600px) {
  .cms-sbox { padding: 18px 14px; } .cms-sbox h3 { font-size: 22px; }
  .cms-sbox .cms-acts { gap: 8px; margin-top: 14px; }
  .cms-sbox .cms-acts .btn { padding: 10px 12px; font-size: 13px; white-space: nowrap; min-height: 0; line-height: 1.2; }
}

/* =====================================================================================================
   VTPWEB / CCPR design (spec of 19 Oct 2026): two-line header, simple icons, red ADMIN button,
   Admin page (Access, Settings, Our Web Apps), grouped Administration tabs, USER | ADMIN sign-in card
   ===================================================================================================== */
header.nav.vtp { background: rgba(5,12,28,.94); border-bottom: 1px solid #16294D; }
html[data-mode="light"] header.nav.vtp { background: #fff; border-bottom-color: #D9E1EE; }
.nav-tag { display: flex; align-items: center; justify-content: center; gap: 14px; color: #E1BB64; font-weight: 700; font-size: clamp(12px, 1vw, 17px); letter-spacing: .145em; text-transform: uppercase; white-space: nowrap; }
.nav-tag span::before, .nav-tag span::after { content: "\25C6"; font-size: .6em; vertical-align: .25em; margin: 0 .9em; color: #D4A440; }
.nav-tag i { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, #D4A440); }
.nav-tag i:last-child { transform: scaleX(-1); }
html[data-mode="light"] .nav-tag { color: #A8791F; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu > a.home-ic { color: #E1BB64 !important; } .menu > a.home-ic svg { width: 27px; height: 27px; display: block; }
.menu > a.home-ic::after { display: none !important; }
html.cms-admin #ubox { display: none !important; }      /* an admin is signed in: no user icon */
.tools .libbtn { color: #5B9BFF !important; }
/* the red ADMIN button */
.admbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 18px; border-radius: 9px;
  background: linear-gradient(180deg, #E53935, #C62828); border: 1px solid #F0574F; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 15px;
  letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(211,47,47,.35); white-space: nowrap; }
.admbtn:hover, .admbtn.on { background: linear-gradient(180deg, #EF5350, #D32F2F); }
.admbtn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.admbtn.on::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 6px #34D399; }

@media (min-width: 760px) {
  header.nav.vtp .nav-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 54px 50px; align-items: center; column-gap: 24px; row-gap: 0;
    height: auto; min-height: 114px; max-width: none; padding: 5px 28px; }
  header.nav.vtp .brand { grid-column: 1; grid-row: 1 / 3; align-self: center; } header.nav.vtp .brand img { height: 92px; width: auto; }   /* the logo fills both lines of the header (intranet model) */
  header.nav.vtp .nav-tag { grid-column: 2; grid-row: 1; justify-self: center; }
  header.nav.vtp .menu { grid-column: 2; grid-row: 2; justify-self: center; align-self: stretch; margin: 0; gap: 26px; height: 50px; }
  header.nav.vtp .tools { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; gap: 12px; }
  header.nav.vtp #cms_btn { grid-column: 3; grid-row: 2; justify-self: end; }
  header.nav.vtp .burger { display: none !important; }
  header.nav.vtp .menu > a, header.nav.vtp .mi > a { padding: 0; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
  header.nav.vtp .menu > a.on::after, header.nav.vtp .mi > a.on::after, header.nav.vtp .mi > a.has-caret.on::after { left: 0; right: 0; top: calc(50% + 15px); }
  header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 48px; height: 46px; flex: 0 0 48px; border-radius: 9px; }
  header.nav.vtp .tools .sbox.open { width: 230px; flex-basis: 230px; }
  header.nav.vtp .tools .lbtn { width: auto !important; min-width: 48px; flex: 0 0 auto !important; padding: 0 12px; }
  header.nav.vtp .tools .lbtn svg { display: block; }
  header.nav.vtp .sub { top: calc(100% - 2px); }
}
@media (min-width: 760px) and (max-width: 1560px) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 16px; } header.nav.vtp .menu { gap: 22px; } }
@media (min-width: 760px) and (max-width: 1440px) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 14.5px; letter-spacing: .03em; } header.nav.vtp .menu { gap: 16px; } header.nav.vtp .brand img { height: 80px; } }
@media (min-width: 760px) and (max-width: 1300px) {
  header.nav.vtp .nav-in { padding: 5px 16px; column-gap: 14px; } header.nav.vtp .brand img { height: 80px; }
  header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 13px; letter-spacing: .02em; } header.nav.vtp .menu { gap: 13px; }
  header.nav.vtp .menu > a.home-ic svg { width: 23px; height: 23px; }
  header.nav.vtp .tools { gap: 8px; } header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 42px; height: 42px; flex-basis: 42px; }
  header.nav.vtp .tools .lbtn { min-width: 42px; padding: 0 9px; } header.nav.vtp .tools .lbtn svg { display: none; }
  .admbtn { height: 36px; padding: 0 14px; font-size: 13.5px; }
}
@media (min-width: 760px) and (max-width: 1120px) {
  header.nav.vtp .nav-in { padding: 5px 12px; column-gap: 10px; } header.nav.vtp .brand img { height: 68px; }
  header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 11.5px; letter-spacing: 0; } header.nav.vtp .menu { gap: 9px; }
  header.nav.vtp .menu > a.home-ic svg { width: 20px; height: 20px; }
  header.nav.vtp .tools { gap: 6px; } header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 38px; height: 38px; flex-basis: 38px; }
  .admbtn { padding: 0 10px; font-size: 12.5px; }
}

/* narrow windows (760-1023px, e.g. the RStudio viewer): still the 2-line menu; logo | title, icons, ADMIN on line 1, the menu on line 2 */
@media (min-width: 760px) and (max-width: 1023px) {
  header.nav.vtp .nav-in { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: 48px 44px; min-height: 96px; padding: 4px 10px; column-gap: 8px; }
  header.nav.vtp .brand img { height: 60px; }
  header.nav.vtp .nav-tag { grid-column: 2; grid-row: 1; font-size: 10px; letter-spacing: .08em; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; } header.nav.vtp .nav-tag i { width: 14px; }
  header.nav.vtp .tools { grid-column: 3; grid-row: 1; gap: 5px; }
  header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; }
  header.nav.vtp .tools .lbtn { min-width: 34px; padding: 0 7px; font-size: 12px; }
  header.nav.vtp #cms_btn { grid-column: 4; grid-row: 1; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; } header.nav.vtp #cms_btn span { display: none; }
  header.nav.vtp #cms_btn svg { width: 17px; height: 17px; flex-basis: 17px; }
  header.nav.vtp .menu { grid-column: 2 / 5; grid-row: 2; height: 44px; gap: 8px; }
  header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 11px; letter-spacing: 0; }
  header.nav.vtp .menu > a.home-ic svg { width: 18px; height: 18px; }
  header.nav.vtp .tools .sbox.open { width: 170px; flex-basis: 170px; }
}
@media (min-width: 760px) and (max-width: 819px) { header.nav.vtp .menu { gap: 6px; } header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 10.5px; } }
/* tablets (portrait) and phones: logo and burger, the title, then the icons and the ADMIN button on one line */
@media (max-width: 759px) {
  header.nav.vtp .nav-in { padding: 12px 20px 14px; gap: 10px 8px; }
  header.nav.vtp .nav-tag { order: 1; width: 100%; font-size: 12px; letter-spacing: .14em; } header.nav.vtp .nav-tag i { width: 50px; }
  header.nav.vtp .menu { order: 2; } header.nav.vtp .tools { order: 3; width: auto; flex: 1 1 0; min-width: 0; margin: 0; }
  header.nav.vtp #cms_btn { order: 4; width: 46px; height: 46px; padding: 0; } header.nav.vtp #cms_btn span { display: none; }
  header.nav.vtp .menu > a.home-ic { display: flex; align-items: center; gap: 10px; padding: 10px 6px; }
  header.nav.vtp .menu > a.home-ic .sr { position: static; width: auto; height: auto; clip: auto; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E6ECF6; font-size: 13.5px; }
  header.nav.vtp .menu > a.home-ic svg { width: 22px; height: 22px; }
}
@media (max-width: 640px) {
  header.nav.vtp .nav-in { padding: 10px 14px 12px; }
  header.nav.vtp .nav-tag { font-size: 10.5px; letter-spacing: .1em; gap: 6px; } header.nav.vtp .nav-tag i { width: 16px; }
  header.nav.vtp .nav-tag span::before, header.nav.vtp .nav-tag span::after { margin: 0 .5em; }
  header.nav.vtp #cms_btn { width: 36px; height: 36px; border-radius: 8px; } header.nav.vtp #cms_btn svg { width: 18px; height: 18px; flex-basis: 18px; }
}
/* the Admin page is reachable signed out too: show the header there (menu stays hidden until signed in) */
html.starter:has(body[data-page="admin"]) header.nav { display: block !important; }

/* ---- Admin page: three cards (3 columns on a computer, 2 on a tablet, 1 on a phone) */
.adm-wrap { position: relative; }
.hub-ver { position: absolute; top: 46px; right: 0; display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px; border: 1px solid #2A5BA8; border-radius: 10px; background: #0B1A3A; }
.hub-ver span { color: #7FB2FF; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; } .hub-ver b { color: #fff; font-size: 14.5px; letter-spacing: .04em; }
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 8px; }
.hub-c { background: #0B1A3A; border: 1px solid #22385F; border-top: 3px solid #D4A440; border-radius: 14px; overflow: hidden; }
.hub-c.hub-acc { border-top-color: #D32F2F; }
.hub-c h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 22px; border-bottom: 1px solid #1C3260; color: #E1BB64; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hub-c h2 svg { width: 18px; height: 18px; flex: 0 0 18px; }
.hub-i { display: block; width: 100%; padding: 14px 22px; border: 0; border-bottom: 1px solid #1C3260; background: none; color: #fff; text-align: left; font: inherit; cursor: pointer; text-decoration: none; }
.hub-i:last-child { border-bottom: 0; }
.hub-i b { display: block; font-size: 15.5px; font-weight: 700; } .hub-i small { display: block; margin-top: 3px; color: #8FA3C4; font-size: 13px; }
.hub-i:hover { background: rgba(255,255,255,.04); } .hub-i:hover b { color: #F0D890; }
.hub-i.cur b { color: #E1BB64; }
.hub-me { padding: 15px 22px; border-bottom: 1px solid #1C3260; color: #E1BB64; font-weight: 700; font-size: 15.5px; } .hub-me b { color: #fff; }
.hub-uc { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F0D890; border: 1px solid rgba(212,164,64,.5); border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 1100px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hub { grid-template-columns: 1fr; } .hub-ver { position: static; margin: 0 0 16px; } }

/* ---- Administration page: tabs in groups */
.adm-groups { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-end; }
.adm-grp { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.adm-gl { color: #8FA3C4; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.adm-grp > div { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-top .adm-back { margin-right: 4px; }

/* ---- sign-in card: USER | ADMIN, gold or red top bar, security question */
#login .lg-card { max-width: 400px; padding: 24px 24px 18px; border-top: 3px solid #D4A440; max-height: calc(100vh - 32px); overflow-y: auto; }
#login .lg-logo2 { height: 44px; margin-bottom: 8px; }
#login .lg-kick { margin-bottom: 14px; }
.lg-sw { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid #2A4475; border-radius: 10px; }
.lg-sw button { height: 38px; border: 0; border-radius: 7px; background: transparent; color: #E6EDF8; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.lg-sw button:hover { background: rgba(255,255,255,.05); }
.lg-user .lg-sw button.on { background: linear-gradient(90deg, #D4A440, #F0D890); color: #0A1530; }
#login .lg-card h2 { font-size: 22px; margin: 2px 0 4px; } #login .lg-sub { margin-bottom: 12px; }
.lg-forgot { display: block; margin: -6px 0 8px; text-align: right; font-size: 12.5px; color: #7FB2FF; }
.lg-q { margin: 0 0 12px; }
.lg-ql { display: block; margin-bottom: 6px; color: #E1BB64; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.lg-qrow { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 8px; }
.lg-qbox { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid #2A4475; border-radius: 8px; color: #F0D890; font-weight: 700; font-size: 17px; letter-spacing: .25em; user-select: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, rgba(255,255,255,.08) 6px 12px), #0B1A3A; }
.lg-qre { display: grid; place-items: center; height: 42px; border: 1px solid #2A4475; border-radius: 8px; background: transparent; color: #C9D6EC; cursor: pointer; }
.lg-qre:hover { color: #E1BB64; border-color: #E1BB64; } .lg-qre svg { width: 18px; height: 18px; }
.lg-qrow input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #2A4475; border-radius: 8px; background: rgba(7,15,34,.6); color: #fff; font: inherit; outline: none; }
.lg-qrow input:focus { border-color: #D4A440; }

/* ===== Sign-in card, CCPI model (2026-10-20): two columns, blue top for members, red for ADMIN ===== */
#login .lg-card.lg-wide { max-width: 900px; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 0 36px; padding: 30px 34px 28px;
  background: #0B1A3E; border: 1px solid #1F3768; border-top: 3px solid #2F6FD8; border-radius: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.lg-wide .lg-x { top: 14px; right: 16px; border: 0; width: 30px; height: 30px; font-size: 24px; color: #8FA3CC; }
.lg-wide .lg-side { display: flex; flex-direction: column; border-right: 1px solid #1F3768; padding-right: 32px; min-width: 0; }
.lg-wide .lg-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.lg-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #1F3768; }
.lg-prod { display: flex; flex-direction: column; line-height: 1; }
.lg-prod b { font-family: Montserrat, Poppins, sans-serif; font-size: 36px; font-weight: 800; letter-spacing: .1em; color: #E1BB64; }
.lg-prod i { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: #7FA9F2; margin-top: 8px; }
.lg-brand img { height: 52px; width: auto; flex: none; }
#login .lg-wide .lg-kick { text-align: left; margin: 0 0 6px; font-size: 12px; letter-spacing: .24em; color: #7FA9F2; }
#login .lg-wide h2 { text-align: left; font-size: 28px; margin: 0 0 8px; color: #fff; }
#login .lg-wide .lg-sub { text-align: left; color: #AAB6CC; font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.lg-points { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: #C9D3E6; }
.lg-points li { position: relative; padding-left: 22px; margin-bottom: 11px; line-height: 1.45; }
.lg-points li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; background: #5B8FE8; transform: rotate(45deg); }
#login .lg-wide .lg-alt { margin: auto 0 0; padding-top: 12px; text-align: left; font-size: 13.5px; line-height: 1.6; color: #AAB6CC; }
#login .lg-wide .lg-alt a { color: #7FA9F2; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lg-alt2 { display: inline-block; margin-top: 6px; font-size: 12.5px; }
.lg-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; margin: 0 0 16px; border: 1px solid #1F3768; border-radius: 10px; }
.lg-tabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: #C9D6EC; font: inherit; font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.lg-tabs button:hover { background: rgba(255,255,255,.05); } .lg-tabs button.on { background: #2F6FD8; color: #fff; }
.lg-pane[hidden] { display: none !important; }
#login .lg-wide .lg-f { margin-bottom: 14px; }
#login .lg-wide .lg-f > span, .lg-wide .lg-ql { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9CBCF5; margin-bottom: 7px; }
#login .lg-wide .lg-f input, .lg-wide .lg-qrow input { height: 48px; background: #050C1C; border: 1px solid #1F3768; border-radius: 8px; color: #fff; }
#login .lg-wide .lg-f input:focus, .lg-wide .lg-qrow input:focus { border-color: #5B8FE8; box-shadow: 0 0 0 3px rgba(91,143,232,.15); }
.lg-eye.on { color: #E1BB64; }
.lg-wide .lg-q { margin: 0 0 14px; }
.lg-wide .lg-qrow { display: grid; grid-template-columns: minmax(0, 180px) 48px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.lg-wide .lg-qrow canvas { width: 100%; height: 48px; border-radius: 8px; border: 1px solid #1F3768; display: block; }
.lg-wide .lg-qre { height: 48px; border-color: #1F3768; background: #050C1C; color: #E1BB64; }
.lg-wide .lg-qrow input { text-align: center; font-size: 16px; letter-spacing: .06em; padding: 0 10px; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
#login .lg-wide .lg-rem { margin: 0; font-size: 14px; color: #C9D3E6; } #login .lg-wide .lg-rem input { accent-color: #2F6FD8; }
.lg-wide .lg-forgot { margin: 0; font-size: 13px; color: #7FA9F2; }
#login .lg-wide .lg-go { height: 50px; margin: 0; border: 0; border-radius: 8px; background: #2F6FD8; color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: none; }
#login .lg-wide .lg-go:hover { background: #3D7EE6; }
.lg-fp, .lg-alt-btn { width: 100%; height: 50px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #2C4A83;
  border-radius: 8px; background: transparent; color: #DCE6F7; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.lg-fp svg { width: 22px; height: 22px; } .lg-fp:hover, .lg-alt-btn:hover { border-color: #5B8FE8; background: rgba(91,143,232,.1); }
.lg-soon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 10px 6px; color: #AAB6CC; }
.lg-soon-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 1px solid #2C4A83; color: #7FA9F2; margin-bottom: 14px; }
.lg-soon-ic svg { width: 42px; height: 42px; } .lg-soon b { color: #fff; font-size: 18px; } .lg-soon p { margin: 8px 0 6px; font-size: 14px; line-height: 1.5; max-width: 340px; }
.lg-soon .lg-alt-btn { max-width: 300px; }
#login .lg-wide .lg-msg { margin: 12px 0 0; }
.lg-wide.lg-reg .lg-main { justify-content: flex-start; }
@media (max-width: 860px) {
  #login .lg-card.lg-wide { display: block; max-width: 460px; padding: 24px 22px 22px; }
  .lg-wide .lg-side { border-right: 0; padding-right: 0; }
  .lg-brand { padding-right: 34px; } .lg-prod b { font-size: 30px; } .lg-prod i { font-size: 11.5px; } .lg-brand img { height: 42px; }
  .lg-points { display: none; } #login .lg-wide .lg-sub { margin-bottom: 16px; } #login .lg-wide h2 { font-size: 24px; }
  #login .lg-wide .lg-side .lg-alt { display: none; }
  .lg-wide .lg-main::after { content: none; }
  .lg-wide .lg-main .lg-alt-m { display: block; }
}
.lg-alt-m { display: none; margin: 16px 0 0; text-align: center; font-size: 13.5px; line-height: 1.6; color: #AAB6CC; } .lg-alt-m a { color: #7FA9F2; font-weight: 700; }
@media (max-width: 420px) {
  .lg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); align-self: stretch; } .lg-tabs button { padding: 0 6px; letter-spacing: .08em; font-size: 11.5px; }
  .lg-wide .lg-qrow { grid-template-columns: minmax(0, 1.2fr) 48px minmax(0, 1fr); gap: 8px; }
  .lg-two { grid-template-columns: 1fr; gap: 0; }
}
html[data-mode="light"] #login .lg-card.lg-wide { background: #fff; border-color: #DCE3EE; }
html[data-mode="light"] .lg-wide .lg-side, html[data-mode="light"] .lg-brand { border-color: #DCE3EE; }
html[data-mode="light"] #login .lg-wide h2, html[data-mode="light"] .lg-soon b { color: #0A1530; }
html[data-mode="light"] #login .lg-wide .lg-sub, html[data-mode="light"] .lg-points, html[data-mode="light"] #login .lg-wide .lg-rem,
html[data-mode="light"] #login .lg-wide .lg-alt, html[data-mode="light"] .lg-soon, html[data-mode="light"] .lg-alt-m { color: #44546E; }
html[data-mode="light"] .lg-prod i, html[data-mode="light"] #login .lg-wide .lg-kick, html[data-mode="light"] #login .lg-wide .lg-f > span, html[data-mode="light"] .lg-wide .lg-ql { color: #1D4FB8; }
html[data-mode="light"] .lg-prod b { color: #B8892A; }
html[data-mode="light"] #login .lg-wide .lg-f input, html[data-mode="light"] .lg-wide .lg-qrow input, html[data-mode="light"] .lg-wide .lg-qre { background: #fff; border-color: #C9D4E6; color: #0A1530; }
html[data-mode="light"] .lg-tabs, html[data-mode="light"] .lg-fp, html[data-mode="light"] .lg-alt-btn { border-color: #C9D4E6; } html[data-mode="light"] .lg-tabs button:not(.on), html[data-mode="light"] .lg-fp, html[data-mode="light"] .lg-alt-btn { color: #1D4FB8; }

/* starter page (signed out Home), like the Commodities portal: no header, no menu, no footer; only the blocks, centred in one screen.
   The header's Share and Language buttons sit at the top right (.st-tools, where the date was); the menu comes back after sign-in. */
.st-tools { display: none; }
html.starter body[data-page="home"] header.nav, html.starter body[data-page="home"] footer { display: none !important; }
html.starter body[data-page="home"] main { padding-top: 0 !important; }
html.starter .starter-band { position: relative; min-height: 100vh; padding: 9vh 0 4vh; box-sizing: border-box; }
html.starter .st-tools { display: flex; align-items: center; gap: 8px; position: absolute; top: 18px; right: 24px; z-index: 50; }
html.starter .st-tools .cbtn { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; }
html.starter .st-tools .cbtn svg { width: 17px; height: 17px; }
html.starter .st-tools .lbtn { min-width: 38px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
html.starter .st-tools .lbtn svg { display: block; width: 16px !important; height: 16px !important; }
html.starter .st-name { margin: 0 0 3.2vh; gap: 18px; }
html.starter .st-name span { font-size: clamp(14px, 1.3vw, 22px); letter-spacing: .34em; padding-left: .34em; }
html.starter .st-name i { width: clamp(40px, 7.5vw, 130px); }
html.starter .starter-band img.logo { width: min(30.5vw, 68.7vh, 520px) !important; max-width: 80%; margin: 0 auto; display: block; }
html.starter .starter-band h1 { font-size: clamp(28px, 3.6vw, 64px); font-weight: 800; letter-spacing: -.01em; margin: 3.6vh auto 2.6vh; width: auto; max-width: none; }
html.starter .starter-band h1 + p { font-size: clamp(15px, 1.2vw, 20px); max-width: 1050px; line-height: 1.45; margin: 0 auto; color: #D5DEEC; }
html.starter .home-auth { margin-top: 5.6vh; }
html.starter .ha-btn { min-width: 156px; padding: 15px 28px; font-size: 15px; letter-spacing: .18em; }
html.starter .hero p.home-auth-p { font-size: clamp(13px, .95vw, 15.5px); margin-top: 3vh; }
@media (max-width: 759px) {
  html.starter .starter-band { padding: 76px 0 40px; }
  html.starter .st-tools { top: 14px; right: 16px; gap: 6px; }
  html.starter .st-tools .cbtn { width: 36px; height: 36px; flex-basis: 36px; }
  html.starter .st-tools .lbtn { padding: 0 9px; }
  html.starter .st-tools .lbtn svg { display: none; }
  html.starter .starter-band img.logo { width: min(72vw, 360px) !important; }
  html.starter .st-name span { font-size: 12px; letter-spacing: .18em; }
  html.starter .st-name i { width: 26px; }
}

/* two-line header: the name row sits on the middle line (bottom) and the menu hangs from it (top), so both rows hug the middle */
@media (min-width: 760px) {
  header.nav.vtp .nav-tag { align-self: end; margin-bottom: 5px; line-height: 1.2; }
  header.nav.vtp .menu, header.nav.vtp .mi { align-items: flex-start; }
  header.nav.vtp .menu > a, header.nav.vtp .mi > a { align-items: center; padding-top: 2px; padding-bottom: 7px; }
  header.nav.vtp .menu > a.on::after, header.nav.vtp .mi > a.on::after, header.nav.vtp .mi > a.has-caret.on::after { top: auto; bottom: 1px; }
}
/* header logo at 85% (92 > 78px), with a margin all round so it never touches the header edges */
@media (min-width: 760px) {
  header.nav.vtp .brand { margin: 8px 10px 8px 8px; }
  header.nav.vtp .brand img { height: 78px; }
}
@media (min-width: 760px) and (max-width: 1440px) { header.nav.vtp .brand img { height: 68px; } }
@media (min-width: 760px) and (max-width: 1120px) { header.nav.vtp .brand img { height: 58px; } }
@media (min-width: 760px) and (max-width: 1023px) { header.nav.vtp .brand { margin: 6px 8px 6px 6px; } header.nav.vtp .brand img { height: 51px; } }
/* Access > Create / change pattern | fingerprint: a small centred dialog */
.sec-m { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,8,20,.66); backdrop-filter: blur(4px); }
.sec-c { position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow: auto; padding: 28px 28px 24px; border-radius: 16px; background: #0C1A3A; border: 1px solid #23406F; box-shadow: 0 24px 60px rgba(0,0,0,.5); color: #E8EBF7; text-align: center; }
.sec-c .lg-x { position: absolute; top: 10px; right: 12px; }
.sec-ic { display: inline-flex; width: 54px; height: 54px; border-radius: 14px; align-items: center; justify-content: center; background: rgba(212,164,64,.14); color: #E1BB64; }
.sec-ic svg { width: 30px; height: 30px; }
.sec-c h3 { margin: 12px 0 6px; font-size: 20px; }
.sec-s { margin: 0 0 14px; color: #9DB0CC; font-size: 14px; min-height: 20px; }
.sec-c .lg-f { text-align: left; }
.sec-go { width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 9px; font-weight: 700; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530 !important; cursor: pointer; } .sec-go:disabled { opacity: .45; cursor: not-allowed; }
.sec-pad { width: 220px; max-width: 70vw; margin: 0 auto 10px; }
.pp { display: block; width: 100%; height: auto; touch-action: none; user-select: none; cursor: pointer; }
.pp-d { fill: #3A5689; transition: fill .15s; } .pp-d.on { fill: #E1BB64; }
.pp-r { fill: transparent; stroke: #2A4475; stroke-width: 1.5; }
.pp-l, .pp-t { fill: none; stroke: #E1BB64; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
html[data-mode="light"] .sec-c { background: #fff; border-color: #C9D4E6; color: var(--navy); }
/* compact footer: one band about the logo's height. Logo + tagline side by side | Website links in 3 short columns | Contact; then the © line */
@media (min-width: 801px) {
  footer .in { max-width: 1320px; padding: 22px 22px 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) auto; gap: 36px; align-items: center; font-size: 13.5px; }
  footer .in > div:first-child { display: flex; align-items: center; gap: 18px; }
  footer .in > div:first-child img { width: 128px !important; flex: 0 0 128px; }
  footer .in > div:first-child p { margin: 0 !important; line-height: 1.5; font-size: 13px; }
  footer .in > div:nth-child(2) { display: grid; grid-template-columns: repeat(3, auto); column-gap: 26px; row-gap: 2px; justify-content: start; }
  footer .in > div:nth-child(2) h4 { grid-column: 1 / -1; }
  footer h4 { margin: 0 0 6px; font-size: 12px; }
  footer a { margin: 2px 0; }
  footer small { padding: 12px 22px 16px; max-width: 1320px; }
}
@media (min-width: 1200px) { footer .in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) auto; } footer .in > div:nth-child(2) { grid-template-columns: repeat(4, auto); } }
/* the menu (line 2) and the name (line 1) are centred on the screen, not in the space left by the logo: equal side columns */
@media (min-width: 1024px) { header.nav.vtp .nav-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } header.nav.vtp .brand { justify-self: start; } }
/* line 2 right: the user icon (initials) and the red ADMIN button side by side; the Library icon left the header (NXW Library is on the Admin page) */
.hd-acts { display: flex; align-items: center; gap: 12px; }
@media (min-width: 760px) {
  header.nav.vtp .hd-acts { grid-column: 3; grid-row: 2; justify-self: end; }
  header.nav.vtp .hd-acts .cbtn { width: 48px; height: 46px; border-radius: 9px; }
}
@media (min-width: 760px) and (max-width: 1300px) { header.nav.vtp .hd-acts { gap: 8px; } header.nav.vtp .hd-acts .cbtn { width: 42px; height: 42px; } }
@media (min-width: 760px) and (max-width: 1120px) { header.nav.vtp .hd-acts .cbtn { width: 38px; height: 38px; } }
@media (min-width: 760px) and (max-width: 1023px) { header.nav.vtp .hd-acts { grid-column: 4; grid-row: 1; gap: 5px; } header.nav.vtp .hd-acts .cbtn { width: 34px; height: 34px; border-radius: 8px; } }
@media (max-width: 759px) { header.nav.vtp .hd-acts { order: 4; gap: 8px; } }
@media (min-width: 860px) and (max-width: 1023px) { header.nav.vtp .menu, header.nav.vtp .nav-tag { grid-column: 1 / -1; justify-self: center; } }   /* RStudio width: the menu centred on the screen too */
/* sign-in box: Pattern and Fingerprint tabs */
.lg-alt-pane { text-align: center; }
.lg-alt-pane .lg-f { text-align: left; }
.lg-patl { font-size: 13px; font-weight: 600; margin: 2px 0 8px; color: #AAB6CC; }
.lg-pad { width: 200px; margin: 0 auto 6px; }
.lg-alt-pane .lg-soon-ic { margin: 8px auto 12px; }
.lg-fpt { font-size: 14px; color: #AAB6CC; margin: 0 auto 6px; max-width: 320px; line-height: 1.5; }
html[data-mode="light"] .lg-patl, html[data-mode="light"] .lg-fpt { color: #44546E; }
/* sign-in box, two columns (2026-10-23): tabs on the top line of the brand, Sign in button bottom on the last line of "No account yet?…", on every tab */
@media (min-width: 861px) {
  #login .lg-card.lg-wide:not(.lg-reg) { align-items: stretch; }
  #login .lg-wide:not(.lg-reg) .lg-main { justify-content: flex-start; }
  #login .lg-wide .lg-main > .lg-pane:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; }
  #login .lg-wide .lg-pane .lg-f > .lg-pw { margin-bottom: 0; }   /* its margin no longer collapses into the label's inside the flex column */
  #login .lg-wide .lg-pane .lg-go { margin: auto 0 0; }
  #login .lg-wide:not(.lg-reg) .lg-side .lg-alt { margin: auto 0 0; padding-bottom: 0; line-height: 1.4; }
}

/* starter page: Guest | Sign up | Sign in (2026-10-26). A guest sees the whole site but the pages closed to guests
   (Administration > Page access): their links get a small lock, and the page asks to sign in. Members do not see the
   links to pages closed to members. */
.ha-guest { color: #E8EBF7 !important; }
html[data-mode="light"] .ha-guest { color: var(--navy) !important; }
html.guest .ha-guest, html.guest .ha-gsep { display: none; }
a.acc-lock::before { content: ""; display: inline-block; flex: none; width: .78em; height: .78em; margin-right: .38em; vertical-align: -.04em; opacity: .75;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10.5V7.5a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1V21a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9.5a1 1 0 0 1 1-1zm2.2 0h5.6V7.5a2.8 2.8 0 0 0-5.6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10.5V7.5a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1V21a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9.5a1 1 0 0 1 1-1zm2.2 0h5.6V7.5a2.8 2.8 0 0 0-5.6 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
a.cbtn.acc-lock::before, a.home-ic.acc-lock::before, a.abox.acc-lock::before { display: none; }
a.abox.acc-lock { opacity: .62; }
a.abox.acc-lock .atx b::after { content: " \1F512"; font-size: .8em; }
a.acc-off { display: none !important; }
/* a member on a page closed to members */
#login .lg-deny { max-width: 460px; margin: auto; text-align: center; padding: 34px 30px 30px; }
#login .lg-deny .lg-deny-ic { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center; color: var(--gold); border: 1px solid currentColor; margin-bottom: 14px; }
#login .lg-deny .lg-deny-ic svg { width: 26px; height: 26px; }
#login .lg-deny h2 { margin: 0 0 10px; }
#login .lg-deny .lg-go { display: inline-block; margin-top: 18px; text-decoration: none; }
/* Administration > Page access */
.acc-t th.acc-c, .acc-t td.acc-c { text-align: center; white-space: nowrap; }
.acc-t .acc-all { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.acc-t .acc-all .adm-b { padding: 3px 8px; font-size: 11px; }
.acc-t input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.acc-t input[disabled] { cursor: default; opacity: .7; }
.acc-t .acc-f { display: block; opacity: .6; font-size: 11.5px; }
#login .lg-deny .lg-go { width: auto; height: auto; padding: 13px 28px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530 !important; }
@media (max-width: 520px) { .home-auth { max-width: 100%; box-sizing: border-box; } html.starter .ha-btn, .ha-btn { min-width: 0; padding: 13px 14px; font-size: 13px; letter-spacing: .1em; } }
/* a new visit opening another page first: hidden while it goes to the starter page */
html.leaving body { visibility: hidden; }
/* the ADMIN button says who is in (2026-10-26): blue GUEST for a guest, green MEMBER for a member, red ADMIN for an administrator */
.admbtn.as-guest { background: linear-gradient(180deg, #2F7BE5, #1A56C4); border-color: #5B9BF0; box-shadow: 0 4px 14px rgba(26,86,196,.38); }
.admbtn.as-guest:hover { background: linear-gradient(180deg, #4A8EEB, #2463D0); }
.admbtn.as-member { background: linear-gradient(180deg, #1F9D6B, #137A52); border-color: #3FBF8A; box-shadow: 0 4px 14px rgba(19,122,82,.38); }
.admbtn.as-member:hover { background: linear-gradient(180deg, #27B07A, #178A5D); }
/* a guest: no Sign up | Sign in on Home and no user icon; the blue GUEST button holds Sign in | Log out */
html.guest #ubox { display: none !important; }
.umenu.g-menu { display: block; position: fixed; z-index: 3000; }

/* share: icon in the tools bar, menu like the language menu (copy link, Teams, email, networks, the device's own share) */
.shbox { position: relative; display: flex; }
.shbox.open .shbtn { border-color: #e9b54a; color: #e9b54a; }
.shbox.open .shmenu { display: block; }
.shmenu { min-width: 260px; }
.shmenu h6 { margin: 4px 10px 6px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: #8FA3C2; text-transform: none; }
.shmenu a, .shmenu button { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; background: transparent; color: #C9D6EC; font: inherit; font-size: 14.5px; font-weight: 500; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; text-decoration: none; box-sizing: border-box; }
.shmenu a::before, .shmenu a::after { display: none !important; }
.shmenu svg { width: 18px; height: 18px; flex: 0 0 18px; }
.shmenu a:hover, .shmenu button:hover { background: rgba(212,164,64,.14); color: #e9b54a; }
.shmenu button.done { color: #5BD08A; }
.shmenu hr { border: 0; border-top: 1px solid rgba(241,205,120,.18); margin: 6px 4px; }
html[data-mode="light"] .shmenu a, html[data-mode="light"] .shmenu button { color: var(--navy); }
html[data-mode="light"] .shmenu h6 { color: #6B7A93; } html[data-mode="light"] .shmenu hr { border-top-color: #DCE3EE; }
@media (max-width: 520px) { .shmenu { position: fixed; left: 12px; right: 12px; top: 70px; min-width: 0; } }
/* header icons (search, contact, share, language): smaller, and the Share button drawn like the others (2026-10-29) */
button.cbtn.shbtn { background: transparent; cursor: pointer; padding: 0; font: inherit; }
@media (min-width: 760px) {
  header.nav.vtp .tools { gap: 8px; }
  header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; }
  header.nav.vtp .tools .sbox svg, header.nav.vtp .tools .cbtn svg { width: 17px; height: 17px; }
  header.nav.vtp .tools .lbtn { min-width: 38px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
  header.nav.vtp .tools .lbtn svg { width: 16px !important; height: 16px !important; }
  header.nav.vtp .tools .sbox.open { width: 230px; flex-basis: 230px; }
}
@media (min-width: 760px) and (max-width: 1120px) {
  header.nav.vtp .tools { gap: 6px; } header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 34px; height: 34px; flex-basis: 34px; }
  header.nav.vtp .tools .lbtn { min-width: 34px; padding: 0 8px; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  header.nav.vtp .tools { gap: 5px; } header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 32px; height: 32px; flex-basis: 32px; }
  header.nav.vtp .tools .lbtn { min-width: 32px; padding: 0 7px; font-size: 12px; }
}
/* LOG OUT button next to ADMIN / MEMBER when signed in (2026-10-29) */
.outbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.32);
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.outbtn[hidden] { display: none; }
.outbtn svg { width: 17px; height: 17px; flex: 0 0 17px; }
.outbtn:hover { border-color: #e9b54a; color: #e9b54a; }
html[data-mode="light"] .outbtn { border-color: #C9D3E3; color: var(--navy); }
@media (max-width: 1300px) { .outbtn { height: 36px; padding: 0 10px; font-size: 12px; } }
@media (max-width: 1120px) { .outbtn { width: 36px; padding: 0; } .outbtn span { display: none; } }
@media (max-width: 1023px) { .outbtn { width: 34px; height: 34px; border-radius: 8px; } }
/* tablets (touch screen, 760-1366 px, landscape and portrait): the header is 15% lower, with the logo, menu text, icon buttons and the
   GUEST / MEMBER / ADMIN and LOG OUT buttons scaled to fit. A PC (mouse) keeps the header above at every width. (2026-10-29) */
@media (min-width: 760px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  header.nav.vtp .nav-in { grid-template-rows: 46px 42px; min-height: 0; padding-top: 4px; padding-bottom: 4px; }
  header.nav.vtp .brand { margin: 6px 8px 6px 6px; } header.nav.vtp .brand img { height: 58px; }
  header.nav.vtp .nav-tag { font-size: clamp(10px, .85vw, 14.5px); }
  header.nav.vtp .menu { height: 42px; gap: 14px; }
  header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 12.5px; }
  header.nav.vtp .menu > a.home-ic svg { width: 23px; height: 23px; }
  header.nav.vtp .tools { gap: 7px; }
  header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; }
  header.nav.vtp .tools .sbox.open { width: 200px; flex-basis: 200px; }
  header.nav.vtp .tools .sbox svg, header.nav.vtp .tools .cbtn svg { width: 15px; height: 15px; }
  header.nav.vtp .tools .lbtn { height: 32px; min-width: 32px; padding: 0 8px; font-size: 11px; }
  header.nav.vtp .tools .lbtn svg { width: 14px !important; height: 14px !important; }
  header.nav.vtp .hd-acts { gap: 7px; } header.nav.vtp .hd-acts .cbtn { width: 39px; height: 39px; font-size: 13px; border-radius: 8px; }
  header.nav.vtp #cms_btn { height: 34px; padding: 0 15px; font-size: 13px; letter-spacing: 2px; border-radius: 8px; } header.nav.vtp #cms_btn svg { width: 17px; height: 17px; flex-basis: 17px; }
  header.nav.vtp .outbtn { height: 34px; padding: 0 12px; font-size: 11px; gap: 6px; border-radius: 8px; } header.nav.vtp .outbtn svg { width: 15px; height: 15px; flex-basis: 15px; }
}
@media (min-width: 760px) and (max-width: 1300px) and (hover: none) and (pointer: coarse) {
  header.nav.vtp .menu { gap: 11px; } header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 11px; }
  header.nav.vtp .menu > a.home-ic svg { width: 20px; height: 20px; }
  header.nav.vtp .hd-acts .cbtn { width: 36px; height: 36px; }
  header.nav.vtp #cms_btn { height: 31px; padding: 0 12px; font-size: 11.5px; letter-spacing: 1.8px; }
  header.nav.vtp .outbtn { height: 31px; padding: 0 9px; font-size: 10px; }
}
@media (min-width: 760px) and (max-width: 1120px) and (hover: none) and (pointer: coarse) {
  header.nav.vtp .brand img { height: 49px; }
  header.nav.vtp .menu { gap: 8px; } header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 10px; }
  header.nav.vtp .menu > a.home-ic svg { width: 17px; height: 17px; }
  header.nav.vtp .tools { gap: 5px; } header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 29px; height: 29px; flex-basis: 29px; }
  header.nav.vtp .tools .lbtn { height: 29px; min-width: 29px; padding: 0 7px; }
  header.nav.vtp .hd-acts .cbtn { width: 32px; height: 32px; font-size: 12px; }
  header.nav.vtp #cms_btn { padding: 0 9px; font-size: 10.5px; }
  header.nav.vtp .outbtn { width: 31px; padding: 0; }
}
@media (min-width: 760px) and (max-width: 1023px) and (hover: none) and (pointer: coarse) {
  header.nav.vtp .nav-in { grid-template-rows: 41px 37px; padding-top: 3px; padding-bottom: 3px; }
  header.nav.vtp .brand { margin: 5px 7px 5px 5px; } header.nav.vtp .brand img { height: 43px; }
  header.nav.vtp .nav-tag { font-size: 9px; }
  header.nav.vtp .menu { height: 37px; gap: 7px; } header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 10px; }
  header.nav.vtp .menu > a.home-ic svg { width: 15px; height: 15px; }
  header.nav.vtp .tools { gap: 4px; } header.nav.vtp .tools .sbox, header.nav.vtp .tools .cbtn { width: 28px; height: 28px; flex-basis: 28px; }
  header.nav.vtp .tools .sbox svg, header.nav.vtp .tools .cbtn svg { width: 14px; height: 14px; }
  header.nav.vtp .tools .lbtn { height: 28px; min-width: 28px; padding: 0 6px; font-size: 10px; }
  header.nav.vtp .hd-acts { gap: 4px; } header.nav.vtp .hd-acts .cbtn, header.nav.vtp #cms_btn, header.nav.vtp .outbtn { width: 29px; height: 29px; padding: 0; border-radius: 7px; }
  header.nav.vtp .hd-acts .cbtn { font-size: 11px; } header.nav.vtp #cms_btn svg { width: 15px; height: 15px; flex-basis: 15px; } header.nav.vtp .outbtn svg { width: 14px; height: 14px; flex-basis: 14px; }
}
/* ===== NXW HEADER TABLET (2026-10-29): on touch tablets the menu text is 1px larger (user: "In tablet, height menu is ok. Menu text size +1PX").
   Touch screens only ((pointer: coarse), 760-1600px wide, e.g. an Android tablet in landscape, 1280x800): the menu (line 2) is 1px larger
   than the desktop rules give at the same width; everything else (height, logo, title, icons, GUEST / MEMBER / ADMIN button) is unchanged.
   Desktop computers with a mouse and phones (759px and less) are unchanged. ===== */
@media (min-width: 1561px) and (max-width: 1600px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 18px; } }
@media (min-width: 760px) and (max-width: 1560px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 17px; } }
@media (min-width: 760px) and (max-width: 1440px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 15.5px; } }
@media (min-width: 760px) and (max-width: 1300px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 14px; } }
@media (min-width: 760px) and (max-width: 1120px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 12.5px; } }
@media (min-width: 760px) and (max-width: 1023px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 12px; } }
@media (min-width: 760px) and (max-width: 819px) and (pointer: coarse) { header.nav.vtp .menu > a, header.nav.vtp .mi > a { font-size: 11.5px; } }

/* starter page in one screen on PC and tablet (2026-10-29): logo, headline, text and spacing follow the screen height too,
   so the whole page (name, logo, headline, text, Guest | Sign in | Sign up, note) fits without scrolling. Phones keep their layout. */
@media (min-width: 760px) {
  html.starter .starter-band { min-height: 100vh; min-height: 100svh; padding: max(56px, 6vh) 0 18vh; }   /* more room below than above: the name line sits a little higher */
  html.starter .st-name { margin-bottom: 2.8vh; }
  html.starter .st-name span { font-size: clamp(13px, min(1.3vw, 2.4vh), 22px); }
  html.starter .starter-band img.logo { width: min(30.5vw, 50vh, 520px) !important; }
  html.starter .starter-band h1 { font-size: clamp(26px, min(3.6vw, 6.4vh), 64px); margin: 3.2vh auto 2.2vh; }
  html.starter .starter-band h1 + p { font-size: clamp(14px, min(1.2vw, 2.2vh), 20px); }
  html.starter .home-auth { margin-top: 4.4vh; }
  html.starter .ha-btn { padding: clamp(10px, 1.6vh, 15px) 28px; }
  html.starter .hero p.home-auth-p { margin-top: 2.4vh; white-space: nowrap; }
}
@media (max-width: 759px) { html.starter .starter-band { padding: 62px 0 72px; } }   /* phones: the name line a little higher too */

/* start page: GUEST / SIGN IN / SIGN UP boxes 20% lower (2026-10-29), same text size: PC and tablet 54.8px -> 43.8px (padding 15px -> 9.5px,
   less on short screens), phones 47.4px -> 37.5px (padding 13px -> 8px) */
@media (min-width: 521px) { html.starter .ha-btn { padding-top: clamp(6px, 1vh, 9.5px); padding-bottom: clamp(6px, 1vh, 9.5px); } }
@media (max-width: 520px) { html.starter .ha-btn { padding-top: 8px; padding-bottom: 8px; } }

/* no footer on the start page (2026-10-29): Home while signed out (the starter view, or its sign-in card) never shows the footer,
   whatever the state classes; the inside pages keep theirs */
html:not(.signed) body[data-page="home"] footer, html.starter body[data-page="home"] footer { display: none !important; }

/* inside pages (every page but the start page, index.html), TABLET only (2026-10-29): the left and right margins of the content doubled.
   The margin from the screen edge to the text was max(22px, (width - 1200px) / 2 + 22px) (centred 1200px box, 22px padding);
   it is now twice that: 44px up to 1244px wide, e.g. 124px at 1280. PC and phones keep theirs. */
@media (min-width: 761px) and (max-width: 1600px) and (pointer: coarse) {
  body:not([data-page="home"]) main .wrap { max-width: none; padding-left: calc(2 * max(22px, (100% - 1200px) / 2 + 22px)); padding-right: calc(2 * max(22px, (100% - 1200px) / 2 + 22px)); }
}

/* NXW HEADER TABLET (2026-10-29): on touch tablets the space between the main menu items is 25% larger (user: "tablet main menu items pad x1.25").
   The items have no side padding of their own; the space between them is the menu gap, so each tablet gap x1.25:
   26 -> 32.5, 22 -> 27.5, 16 -> 20, 14 -> 17.5, 11 -> 13.75, 8 -> 10, 7 -> 8.75px. Height, text size, PC (mouse) and phones are unchanged. */
@media (min-width: 1561px) and (max-width: 1600px) and (pointer: coarse) { header.nav.vtp .menu { gap: 32.5px; } }
@media (min-width: 760px) and (max-width: 1560px) and (pointer: coarse) { header.nav.vtp .menu { gap: 27.5px; } }
@media (min-width: 760px) and (max-width: 1440px) and (pointer: coarse) { header.nav.vtp .menu { gap: 20px; } }
@media (min-width: 760px) and (max-width: 1366px) and (pointer: coarse) { header.nav.vtp .menu { gap: 17.5px; } }
@media (min-width: 760px) and (max-width: 1300px) and (pointer: coarse) { header.nav.vtp .menu { gap: 13.75px; } }
@media (min-width: 760px) and (max-width: 1120px) and (pointer: coarse) { header.nav.vtp .menu { gap: 10px; } }
@media (min-width: 760px) and (max-width: 1023px) and (pointer: coarse) { header.nav.vtp .menu { gap: 8.75px; } }

/* LOG OUT as an icon only (2026-10-29, user: "Logout icon only"): on PC, tablet and phone the LOG OUT button next to ADMIN / MEMBER
   is a square icon button like the header's search, mail and share buttons (same size, corners and border); its name stays in the
   tooltip and for screen readers (title and aria-label, translated). The click is unchanged. */
.outbtn, header.nav.vtp .outbtn { width: 38px; height: 38px; flex: 0 0 38px; padding: 0; gap: 0; border-radius: 8px; letter-spacing: 0; }
.outbtn span, header.nav.vtp .outbtn span { display: none; }
.outbtn svg, header.nav.vtp .outbtn svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (min-width: 760px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  header.nav.vtp .outbtn { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; } header.nav.vtp .outbtn svg { width: 15px; height: 15px; flex-basis: 15px; } }
@media (min-width: 760px) and (max-width: 1120px) and (hover: none) and (pointer: coarse) { header.nav.vtp .outbtn { width: 29px; height: 29px; flex-basis: 29px; } }
@media (min-width: 760px) and (max-width: 1023px) and (hover: none) and (pointer: coarse) {
  header.nav.vtp .outbtn { width: 28px; height: 28px; flex-basis: 28px; } header.nav.vtp .outbtn svg { width: 14px; height: 14px; flex-basis: 14px; } }
@media (max-width: 759px) { .outbtn, header.nav.vtp .outbtn { width: 36px; height: 36px; flex-basis: 36px; } }

/* start page like the CCPR / CCPE start page (2026-10-30): on a screen held across (PC, tablet in landscape) the start page is the
   CCPE stage, design size 1520 x 696 scaled to fit the screen (--k, set in index.html): background with the big NXW logo
   (img/starter_bg.jpg, the CCPE bg.jpg), gold name line at the top, headline, text and the button box at the CCPE places and sizes.
   Phones and tablets held upright (html.st-portrait) keep the stacked start page. Why: user "STARTER PAGE STILL DIFFERENT", "USE THIS FOR MODEL" (CCPE). */
html.starter:not(.st-portrait), html.starter:not(.st-portrait) body[data-page="home"] { overflow: hidden; background: #060f22; }
html.starter:not(.st-portrait) .starter-band { position: fixed; inset: 0; min-height: 0; padding: 0; display: block; background: radial-gradient(ellipse at 50% 55%, #0c224b 0%, #08142d 55%, #050a17 100%); }
html.starter:not(.st-portrait) .starter-band::before { content: ""; position: absolute; left: calc(50vw - 760px * var(--k, .84)); top: calc(50vh - 348px * var(--k, .84));
  width: calc(1520px * var(--k, .84)); height: calc(696px * var(--k, .84)); background: url("../img/starter_bg.jpg") center/100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 98.5%, transparent 100%), linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 98.5%, transparent 100%), linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect; pointer-events: none; }
html.starter:not(.st-portrait) .starter-band > .wrap { position: static; max-width: none; padding: 0; }
:where(html.starter:not(.st-portrait) .starter-band > .wrap) > :where(:not(.st-tools)) { position: absolute; left: 0; right: 0; margin: 0 !important; }
html.starter:not(.st-portrait) .starter-band img.logo { display: none !important; }   /* the logo is in the background, as on CCPE */
html.starter:not(.st-portrait) .st-name { top: calc(50vh + (84.8px - 348px) * var(--k, .84)); display: flex; justify-content: center; align-items: center; gap: 0; }
html.starter:not(.st-portrait) .st-name span { font-size: calc(20.5px * var(--k, .84)); font-weight: 700; letter-spacing: .145em; line-height: 1; color: #e1bb64;
  padding: 0; margin: 0 calc(26px * var(--k, .84) - .145em) 0 calc(26px * var(--k, .84)); }
html.starter:not(.st-portrait) .st-name i { width: calc(110px * var(--k, .84)); height: calc(1.6px * var(--k, .84)); flex: none; }
html.starter:not(.st-portrait) .st-name i::after { width: calc(7px * var(--k, .84)); height: calc(7px * var(--k, .84)); top: 50%; margin-top: calc(-3.5px * var(--k, .84)); }
html.starter:not(.st-portrait) .starter-band h1 { top: calc(50vh + (437.4px - 348px) * var(--k, .84)); width: auto; max-width: none; white-space: nowrap;
  font-size: calc(44.7px * var(--k, .84)); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
html.starter:not(.st-portrait) .starter-band h1 b { color: #d4a440; font-weight: 700; }
html.starter:not(.st-portrait) .starter-band h1 + p { top: calc(50vh + (503.6px - 348px) * var(--k, .84)); left: calc(50vw - 550px * var(--k, .84)); right: auto; transform: none;
  width: calc(1100px * var(--k, .84)); max-width: none; font-size: calc(17px * var(--k, .84)); line-height: calc(24.8px * var(--k, .84)); font-weight: 300; color: #d5deec; }
/* the button box: the CCPE pill (Guest kept for NXW), SIGN IN gold on the right as on CCPE */
html.starter:not(.st-portrait) .home-auth { top: calc(50vh + (582.5px - 348px) * var(--k, .84)); left: calc(50vw - 235px * var(--k, .84) - 1px); right: auto; transform: none; width: max-content;
  display: flex; align-items: center; gap: calc(6px * var(--k, .84)); padding: calc(4px * var(--k, .84)); border: 1px solid rgba(212,164,64,.35);
  border-radius: calc(12px * var(--k, .84)); background: rgba(5,12,28,.65); backdrop-filter: none; }
html.starter:not(.st-portrait) .home-auth .ha-sep { display: none; }
html.starter:not(.st-portrait) .home-auth .ha-guest { order: 1; } html.starter:not(.st-portrait) .home-auth .ha-up { order: 2; } html.starter:not(.st-portrait) .home-auth .ha-in { order: 3; }
html.starter:not(.st-portrait) .ha-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0;
  width: calc(150px * var(--k, .84)); height: calc(38px * var(--k, .84)); padding: 0 !important; border-radius: calc(8px * var(--k, .84)); border: 0;
  font-size: calc(13px * var(--k, .84)); font-weight: 800; letter-spacing: .2em; line-height: 1; }
html.starter:not(.st-portrait) .ha-guest, html.starter:not(.st-portrait) .ha-up { background: transparent; color: #fff !important; }
html.starter:not(.st-portrait) .ha-guest:hover, html.starter:not(.st-portrait) .ha-up:hover { color: #e8c979 !important; }
html.starter:not(.st-portrait) .ha-in { background: linear-gradient(180deg, #e8c979, #d4a440); color: #0a1a3c !important; }
html.starter:not(.st-portrait) .hero p.home-auth-p { top: calc(50vh + (640px - 348px) * var(--k, .84)); left: 0; right: 0; width: auto; max-width: none; text-align: center; font-size: calc(13.5px * var(--k, .84)); white-space: nowrap; color: #9DB0CC; }

/* start page like the CCPR / CCPE start page, step 2 (2026-10-30): phones and tablets held upright (html.st-portrait) get the
   stacked CCPE start page: name line without the gold rules, the NXW logo (img/starter_logo.png, the CCPE nxw-logo.png), headline,
   text and the CCPE button pill under it. Why: user "NXW PREVIEW OK", step 2 of "STEP BY STEP". */
.st-logo-m { display: none; }
html.starter.st-portrait .starter-band { min-height: 100vh; min-height: 100svh; padding: 40px 18px; box-sizing: border-box; background: #08142d; display: block; }
html.starter.st-portrait .starter-band > .wrap { padding: 0; }
html.starter.st-portrait .st-name { margin: 0; gap: 0; justify-content: center; }
html.starter.st-portrait .st-name i { display: none; }
html.starter.st-portrait .st-name span { font-size: 12px; font-weight: 700; letter-spacing: .25em; padding-left: .25em; line-height: 1.4; color: #e1bb64; }
html.starter.st-portrait .starter-band img.logo { display: none !important; }
html.starter.st-portrait .st-logo-m { display: block; width: 86%; max-width: 420px; margin: 28px auto 0; }
html.starter.st-portrait .starter-band h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: normal; width: auto; margin: 36px auto 0; color: #fff; }
html.starter.st-portrait .starter-band h1 b { color: #d4a440; font-weight: 700; }
html.starter.st-portrait .starter-band h1 + p { font-size: 15px; line-height: 1.5; font-weight: 300; margin: 12px auto 0; color: #d5deec; }
html.starter.st-portrait .home-auth { display: flex; width: max-content; max-width: 100%; box-sizing: border-box; margin: 19.5px auto 0; gap: 6px; padding: 4px;
  border: 1px solid rgba(212,164,64,.35); border-radius: 12px; background: rgba(5,12,28,.65); backdrop-filter: none; }
html.starter.st-portrait .home-auth .ha-sep { display: none; }
html.starter.st-portrait .home-auth .ha-guest { order: 1; } html.starter.st-portrait .home-auth .ha-up { order: 2; } html.starter.st-portrait .home-auth .ha-in { order: 3; }
html.starter.st-portrait .ha-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: 0 1 150px; min-width: 0; width: 150px;
  height: 38px; padding: 0 6px !important; border-radius: 8px; border: 0; font-size: 13px; font-weight: 800; letter-spacing: .2em; line-height: 1; white-space: nowrap; }
html.starter.st-portrait .ha-guest, html.starter.st-portrait .ha-up { background: transparent; color: #fff !important; }
html.starter.st-portrait .ha-in { background: linear-gradient(180deg, #e8c979, #d4a440); color: #0a1a3c !important; }
html.starter.st-portrait .hero p.home-auth-p { font-size: 13px; margin: 14px auto 0; white-space: normal; color: #9DB0CC; }
@media (max-width: 520px) { html.starter.st-portrait .ha-btn { font-size: 12px; letter-spacing: .12em; } }
@media (max-width: 699px) { html.starter.st-portrait .starter-band { padding-top: 72px; } }   /* phones: the name line under the Share and Language buttons */
@media (min-width: 700px) {
  html.starter.st-portrait .starter-band { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 48px 110px; }
  html.starter.st-portrait .st-name span { font-size: 17px; }
  html.starter.st-portrait .st-logo-m { width: 70%; max-width: 540px; margin-top: 40px; }
  html.starter.st-portrait .starter-band h1 { font-size: 46px; margin-top: 44px; }
  html.starter.st-portrait .starter-band h1 + p { font-size: 19px; max-width: 660px; margin-top: 16px; }
  html.starter.st-portrait .home-auth { margin-top: 36px; }
}
