/* ed.newstamford.com and dtv.newstamford.com — shared styles.
   Same brand tokens as learn.newstamford.com (brands/new-stamford/01_brand-foundation/visual-identity.md). */
:root {
  --ink: #0B1A44; --royal: #173D8A; --bright: #2F6FED; --slate: #29344A;
  --ice: #EEF5FC; --tint: #D8E9FC; --line: #DCE5F0; --sun: #FFC83D; --white: #fff;
  --teal: #0E9187; --teal-bg: #E4F6F3; --violet: #7054D6; --violet-bg: #F0ECFF; --amber-bg: #FFF4D6;
  --fd: 'Prompt', 'IBM Plex Sans', sans-serif;
  --fb: 'IBM Plex Sans', 'IBM Plex Sans Thai', 'Noto Sans SC', 'Noto Sans Myanmar', sans-serif;
  --gutter: 16px; --bar-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--white); color: var(--slate); font: 400 17px/1.65 var(--fb); padding-bottom: var(--bar-h); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--royal); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--fd); font-weight: 800; color: var(--ink); line-height: 1.25; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
[hidden] { display: none !important; }
h1 { font-size: clamp(30px, 6.6vw, 50px); }
h2 { font-size: clamp(25px, 5vw, 36px); }
h3 { font: 700 20px/1.4 var(--fb); color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 52px 0; }
.band.ice { background: var(--ice); }
.band > .wrap > h2 + p { margin-top: 10px; max-width: 38em; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; border-radius: 6px; }

/* Owner-review banner: hidden on the real address */
.mock { background: var(--sun); color: var(--ink); font: 600 14px/1.5 var(--fb); text-align: center; padding: 8px var(--gutter); }
html.live .mock { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px;
  border: 2px solid var(--royal); font: 600 17px/1.3 var(--fb); text-decoration: none; cursor: pointer; background: var(--white); color: var(--royal); text-align: center; }
.btn.fill { background: var(--royal); color: var(--white); }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.top .logo img { height: 40px; width: auto; }
.top .langs { margin-left: auto; display: flex; gap: 2px; }
.top .langs a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 6px; }
.top .langs a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.top .btn { display: none; }
@media (min-width: 760px) { .top .btn { display: inline-flex; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ice), var(--white)); padding: 38px 0 34px; }
.hero .grid { display: grid; gap: 26px; align-items: center; }
.hero p.sub { margin-top: 14px; font-size: 18.5px; max-width: 33em; }
.hero .btns { margin-top: 22px; }
.hero .fine { margin-top: 12px; font-size: 15px; }
.hero .side { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(11, 26, 68, .08); }
.hero .side h3 { font-size: 18px; }
.hero .side ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: n; }
.hero .side li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 1.5; }
.hero .side li::before { content: counter(n); width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 16px/34px var(--fd); text-align: center; }
@media (min-width: 900px) { .hero { padding: 50px 0 44px; } .hero .grid { grid-template-columns: 1.25fr .75fr; gap: 44px; } }

/* Trust strip */
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px; }
.trust li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.trust svg { width: 24px; height: 24px; color: var(--royal); }
.trust svg .a { stroke: var(--sun); }
@media (min-width: 760px) { .trust ul { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* Situation cards */
.cards { margin-top: 22px; display: grid; gap: 14px; }
.card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--slate); border-top: 6px solid var(--royal); }
.card.t { border-top-color: var(--teal); } .card.v { border-top-color: var(--violet); }
.card h3 { margin-bottom: 6px; }
.card .go { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--royal); }
a.card:hover { box-shadow: 0 8px 24px rgba(11, 26, 68, .1); }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Fee tables */
.prog { margin-top: 28px; }
.prog > p { margin-top: 6px; max-width: 40em; }
.scroll { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--white); }
table.fees { width: 100%; border-collapse: collapse; font-size: 16px; }
table.fees th, table.fees td { padding: 12px 12px; text-align: right; white-space: nowrap; }
table.fees th:first-child, table.fees td:first-child { text-align: left; white-space: normal; }
table.fees thead th { background: var(--royal); color: var(--white); font: 600 14.5px/1.35 var(--fb); white-space: normal; vertical-align: bottom; }
table.fees tbody tr:nth-child(odd) td { background: var(--ice); }
table.fees td.p { font-weight: 700; color: var(--ink); }
table.fees.t thead th { background: var(--teal); } table.fees.t tbody tr:nth-child(odd) td { background: var(--teal-bg); }
table.fees.v thead th { background: var(--violet); } table.fees.v tbody tr:nth-child(odd) td { background: var(--violet-bg); }
.note { margin-top: 10px; font-size: 15.5px; }
.inc { margin-top: 28px; display: grid; gap: 14px; }
.inc > div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.inc ul, .know ul, .uni ul, .check ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
@media (min-width: 800px) { .inc { grid-template-columns: 1fr 1fr; } }

/* Steps */
.routes { margin-top: 22px; display: grid; gap: 16px; }
.route { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.route .tag { display: inline-block; background: var(--tint); color: var(--royal); font: 700 13.5px/1 var(--fb); padding: 6px 10px; border-radius: 999px; margin-bottom: 8px; }
.route ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.route .after { margin-top: 12px; background: var(--amber-bg); border-radius: 10px; padding: 10px 12px; font-size: 15.5px; color: var(--ink); }
@media (min-width: 860px) { .routes { grid-template-columns: 1fr 1fr; } }

.check { display: grid; gap: 22px; align-items: start; }
.check .box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
@media (min-width: 860px) { .check { grid-template-columns: 1.1fr .9fr; } }

.know ul { list-style: none; padding: 0; gap: 12px; margin-top: 20px; max-width: 46em; }
.know li { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: 12px; padding: 12px 14px; }
.know strong { color: var(--ink); }

/* FAQ */
.faq { margin-top: 18px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 0; position: relative; font: 600 18px/1.5 var(--fb); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--royal); font: 700 20px/30px var(--fb); text-align: center; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; max-width: 38em; }

/* Form */
.formgrid { display: grid; gap: 24px; align-items: start; margin-top: 20px; }
@media (min-width: 900px) { .formgrid { grid-template-columns: 1.15fr .85fr; } }
form.lead { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.two { display: grid; gap: 14px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, fieldset legend { font: 600 16px/1.4 var(--fb); color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--slate); font-size: 14.5px; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: 400 17px/1.4 var(--fb); color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus { border-color: var(--bright); outline: none; }
.err { color: #B3261E; font-size: 14.5px; display: none; }
.bad > .err, .bad .err { display: block; }
.field.bad input, .field.bad select { border-color: #B3261E; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 600 16px/1.3 var(--fb); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.hint { font-size: 14.5px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.5; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; }
.formmsg { font-weight: 600; color: #B3261E; }
.done { background: var(--teal-bg); border-radius: 16px; padding: 20px; color: var(--ink); }
.done h3 { margin-bottom: 6px; }
.direct { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 12px; }
.direct .btn { width: 100%; }
.direct .wa { background: #128C4B; border-color: #128C4B; color: var(--white); }
.direct .ln { background: #06A94D; border-color: #06A94D; color: var(--white); }

footer { background: var(--ink); color: #D5DEEE; padding: 34px 0 40px; font-size: 15px; line-height: 1.7; }
footer p { margin: 0 0 8px; max-width: 48em; }
footer strong { color: var(--white); }
footer a { color: var(--white); margin-right: 16px; white-space: nowrap; }

/* Sticky action bar on phones */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bar-h); background: var(--white); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; padding: 10px var(--gutter); }
.bar .btn { min-height: 0; padding: 0 8px; font-size: 15.5px; line-height: 1.2; }
.bar.off { display: none; }
@media (min-width: 900px) { .bar { display: none; } body { padding-bottom: 0; } }

/* Space between a group question and its first field */
fieldset > legend { margin-bottom: 8px; }

/* DTV page: price line in the hero and the "at a glance" list */
.hero .price { margin-top: 14px; font-size: 18px; color: var(--ink); background: var(--amber-bg); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.hero .side ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hero .side ul li { display: block; position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.hero .side ul li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); }
.route ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
div.card { cursor: default; }

/* ---------- Review round 28 Nov 2026: Thai touch, award, pre-check, fee picker ---------- */
/* Thin Thai-pattern band (a simple four-petal motif, like the "prajam yam" border): a quiet local detail */
.thai { height: 18px; background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 2.500l3.200 6.500-3.200 6.500-3.200-6.500z' fill='%23FFC83D'/%3E%3Cpath d='M9 9l-4.500-2.200L0 9l4.500 2.200zM36 9l-4.500-2.200L27 9l4.500 2.200z' fill='%232F6FED'/%3E%3Ccircle cx='18' cy='9' r='1.400' fill='%230B1A44'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center; }

/* Mascot on the hero card */
.hero .side.has-masc { position: relative; margin-top: 74px; padding-right: 20px; }
.hero .side .masc { position: absolute; right: 8px; top: -112px; height: 150px; width: auto; pointer-events: none; }
.hero .side.has-masc h3 { padding-right: 96px; }
@media (min-width: 900px) { .hero .side.has-masc { margin-top: 60px; } }

/* DTV: two big numbers */
.stats { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats div { background: var(--ice); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stats strong { display: block; font: 800 40px/1 var(--fd); color: var(--royal); }
.stats span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.statnote { margin-top: 10px; font-size: 15px; text-align: center; }

/* Cards with a sticker */
.card.pic img { width: 76px; height: 76px; margin-bottom: 8px; }
.headpic { display: grid; gap: 14px; align-items: center; }
.headpic img { display: none; }
.headpic p { margin-top: 10px; max-width: 38em; }
@media (min-width: 760px) { .headpic { grid-template-columns: 1fr 120px; } .headpic img { display: block; width: 120px; height: 120px; } }

/* Fee picker */
.picker { margin-top: 22px; display: grid; gap: 18px; }
.qn { display: inline-block; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 15px/28px var(--fd); text-align: center; vertical-align: 1px; }
.quote { border: 2px solid var(--tint); border-radius: 20px; padding: 20px; background: var(--white); }
.quote[data-course="th"], .quote[data-course="pt"] { border-color: #BFE7E1; }
.quote[data-course="th"] table.fees thead th, .quote[data-course="pt"] table.fees thead th { background: var(--teal); }
.quote[data-course="th"] table.fees tbody tr:nth-child(odd) td, .quote[data-course="pt"] table.fees tbody tr:nth-child(odd) td { background: var(--teal-bg); }
.quote .qdesc { margin-top: 6px; max-width: 40em; }
.quote table.fees td.p { font-size: 18px; }
.qlists { margin-top: 16px; display: grid; gap: 14px; }
.qlists h4 { margin: 0; font: 700 16px/1.4 var(--fb); color: var(--ink); }
@media (min-width: 760px) { .qlists { grid-template-columns: 1fr 1fr; gap: 24px; } }
ul.ticks, ul.minus { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 16px; line-height: 1.5; }
ul.ticks li, ul.minus li { position: relative; padding-left: 28px; }
ul.ticks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 16px; height: 9px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); border-radius: 1px; }
ul.minus li::before { content: ''; position: absolute; left: 3px; top: 12px; width: 14px; height: 3px; background: #8A96AB; border-radius: 2px; }
.qnext { margin-top: 18px; }
details.all { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
details.all > summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 16px; font: 700 17px/1.4 var(--fb); color: var(--royal); position: relative; }
details.all > summary::-webkit-details-marker { display: none; }
details.all > summary::after { content: '+'; position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--royal); font: 700 22px/32px var(--fb); text-align: center; }
details.all[open] > summary::after { content: '–'; }
.allbody { padding: 0 16px 18px; }
.allbody h3 { margin-top: 18px; font-size: 18px; }

/* Eligibility pre-check */
.pre { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 10px 30px rgba(11, 26, 68, .06); max-width: 820px; }
.band:not(.ice) .pre { background: var(--ice); border-color: var(--tint); box-shadow: none; }
.prehead { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; }
.prehead img { width: 78px; height: auto; }
.prehead p { margin-top: 6px; }
.quiz { margin-top: 18px; display: grid; gap: 18px; }
.qq legend { font-size: 17px; }
.qres { border-radius: 16px; padding: 18px; background: var(--teal-bg); border-left: 6px solid var(--teal); display: grid; gap: 8px; }
.qres.ask { background: var(--amber-bg); border-left-color: var(--sun); }
.qres .qtag { justify-self: start; background: var(--white); color: var(--ink); font: 700 13px/1 var(--fb); padding: 6px 10px; border-radius: 999px; }
.qres p { color: var(--ink); }
.qres .qfine { font-size: 14.5px; color: var(--slate); }
.qres .btns { margin-top: 6px; }
.again { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--royal); font: 600 15px/1.4 var(--fb); text-decoration: underline; cursor: pointer; }

/* Timeline strip above the step list */
ul.flow { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
ul.flow li { position: relative; background: var(--ice); border-radius: 12px; padding: 10px 10px 10px 12px; display: grid; gap: 2px; border-top: 4px solid var(--sun); }
ul.flow strong { font: 700 15px/1.3 var(--fb); color: var(--ink); }
ul.flow span { font-size: 13.5px; line-height: 1.35; color: var(--slate); }
@media (min-width: 620px) { ul.flow { grid-template-columns: repeat(4, 1fr); } }

/* Award */
.band.sunny { background: linear-gradient(180deg, #FFF7DF, #FFFDF6); }
.proof { display: grid; gap: 24px; align-items: center; }
.ptext p { margin-top: 10px; max-width: 34em; }
.pimgs { display: grid; grid-template-columns: .7fr 1fr; gap: 14px; align-items: center; max-width: 520px; }
.pimgs img { border-radius: 14px; box-shadow: 0 10px 26px rgba(11, 26, 68, .16); background: var(--white); }
.pimgs .trophy { transform: rotate(-2deg); }
.pimgs .cert { transform: rotate(1.500deg); }
@media (min-width: 860px) { .proof { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------- Review round 3 (28 Nov 2026): trust cards, milestones, photos, lighter text ---------- */
/* Trust strip: three white cards, like learn.newstamford.com */
.trust { background: var(--ice); }
.trust ul { padding: 4px 0 26px; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 12px; grid-template-columns: none; padding: 14px 18px; background: var(--white); border-radius: 16px; box-shadow: 0 4px 16px rgba(11, 26, 68, .06); font-size: 16px; }
.trust svg { width: 34px; height: 34px; flex: none; color: var(--ink); }
.trust svg .f { fill: var(--sun); }
.hero { background: var(--ice); }

/* Hero photo */
.heroimg { margin: 0; }
.heroimg img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 14px 34px rgba(11, 26, 68, .16); }

/* "How we start": milestones on a line */
ol.miles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; counter-reset: m; }
ol.miles li { counter-increment: m; position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: start; padding: 0 0 26px 0; }
ol.miles li:last-child { padding-bottom: 0; }
ol.miles img { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: contain; position: relative; z-index: 1; background: var(--white); }
ol.miles h3 { font-size: 18px; }
ol.miles h3::before { content: counter(m); display: inline-block; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 14px/26px var(--fd); text-align: center; vertical-align: 2px; }
ol.miles p { grid-column: 2; margin-top: 2px; font-size: 16px; }
ol.miles li:not(:last-child)::after { content: ''; position: absolute; left: 31px; top: 64px; bottom: 0; border-left: 3px dotted var(--tint); }
@media (min-width: 800px) {
  ol.miles { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  ol.miles li { display: block; padding: 0; text-align: center; }
  ol.miles img { width: 92px; height: 92px; margin: 0 auto 12px; }
  ol.miles li:not(:last-child)::after { left: calc(50% + 60px); right: calc(-50% + 42px); top: 46px; bottom: auto; border-left: 0; border-top: 3px dotted #B9D3F3; }
  ol.miles p { max-width: 15em; margin-left: auto; margin-right: auto; }
}

/* Photo row */
.gallery { margin-top: 20px; display: grid; gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.gallery figcaption { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }

/* Long lists open on tap */
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; list-style: none; display: inline-block; font: 600 16px/1.4 var(--fb); color: var(--royal); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ' +'; }
details.more[open] > summary::after { content: ' –'; }
.know .faq { margin-top: 14px; }
.band { padding: 46px 0; }

/* Level card in the ED hero (same idea as the level ladder on learn.newstamford.com) */
.levels { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 10px 30px rgba(11, 26, 68, .08); }
.levels .spark { position: absolute; left: -14px; top: -16px; width: 34px; height: 34px; fill: var(--sun); }
.levels h3 { font-size: 17px; }
.levels .rungs { position: relative; margin-top: 14px; padding-right: 96px; }
.levels .rungs .masc { position: absolute; right: -6px; bottom: -6px; height: 168px; width: auto; }
.levels ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.levels li { width: var(--w); min-height: 46px; display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--violet-bg); color: var(--ink); font-size: 16px; line-height: 1.3; }
.levels li:nth-child(2) { background: var(--teal-bg); }
.levels li b { font: 800 18px/1 var(--fd); }
.levels li.you { background: var(--royal); color: var(--white); width: 100%; }
.levels li.you span { font-weight: 600; }
.levels li.you em { grid-column: 2; font-style: normal; font-size: 13.5px; color: #DCE8FF; }
.levels .rec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
@media (max-width: 899px) { .levels { margin-top: 6px; } }

/* Six-step ladder: one colour per CEFR band, wider code column for "Pre-A1" */
.levels li { grid-template-columns: 44px 1fr; min-height: 40px; padding: 6px 12px; font-size: 15.5px; }
.levels li b { font-size: 16px; }
.levels li:nth-child(1) { background: #FFF1D6; }
.levels li:nth-child(2) { background: #FFE9E7; }
.levels li:nth-child(3) { background: var(--violet-bg); }
.levels li:nth-child(4) { background: var(--teal-bg); }
.levels li:nth-child(5) { background: #E7EEFF; }
.levels li.you { grid-template-columns: 62px 1fr; background: var(--royal); }
.levels .rungs { padding-right: 84px; }
.levels .rungs .masc { height: 190px; right: -10px; bottom: -4px; }

/* ---------- DTV polish (28 Nov 2026): glance card, fee card, tiles ---------- */
.levels.glance li { grid-template-columns: 58px 1fr; min-height: 52px; background: var(--ice); }
.levels.glance li:nth-child(2) { background: var(--amber-bg); }
.levels.glance li b { font-size: 26px; color: var(--royal); }
.levels.glance li.you { grid-template-columns: 58px 1fr; background: var(--royal); }
.levels.glance li.you b { color: var(--sun); }
.levels.glance li.you span { font-weight: 500; }

.pricegrid { margin-top: 20px; display: grid; gap: 16px; align-items: start; }
@media (min-width: 860px) { .pricegrid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.pricecard { position: relative; background: var(--ice); border: 2px solid var(--tint); border-radius: 22px; padding: 22px 20px; }
.pricecard > img { position: absolute; right: 14px; top: 12px; width: 84px; height: 84px; }
.pricecard .lbl { display: block; font: 600 15.5px/1.4 var(--fb); color: var(--ink); padding-right: 96px; }
.pricecard > strong { display: block; margin-top: 4px; font: 800 44px/1.1 var(--fd); color: var(--royal); }
.pricecard > strong small { font: 700 18px/1 var(--fb); color: var(--ink); }
.pricecard ul.ticks { margin-top: 16px; }
.pricenote { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.pricenote p { margin-top: 8px; font-size: 16px; }

.tiles { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile { background: var(--white); border-radius: 18px; padding: 18px 16px; box-shadow: 0 4px 16px rgba(11, 26, 68, .06); display: grid; align-content: start; gap: 8px; }
.tile strong { font: 800 30px/1.1 var(--fd); color: var(--royal); min-height: 64px; display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; }
.tile strong small { font: 700 15px/1 var(--fb); color: var(--ink); }
.tile img { width: 64px; height: 64px; }
.tile p { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.hintbox { margin-top: 16px; background: var(--amber-bg); border-radius: 18px; padding: 18px 20px; display: grid; gap: 14px; align-items: center; }
.hintbox p { margin-top: 6px; font-size: 16px; max-width: 44em; }
.hintbox .btn { justify-self: start; white-space: nowrap; }
@media (min-width: 860px) { .hintbox { grid-template-columns: 1fr auto; } }
.inc ul.ticks { padding-left: 0; }

/* ---------- DTV colour touch (29 Nov 2026): same palette as the ED level ladder ---------- */
.dtv ol.miles img { background: #E7EEFF; border-radius: 50%; padding: 9px; box-sizing: border-box; }
.dtv ol.miles li:nth-child(2) img { background: var(--amber-bg); }
.dtv ol.miles li:nth-child(3) img { background: var(--teal-bg); }
.dtv ol.miles li:nth-child(4) img { background: var(--violet-bg); }
@media (min-width: 860px) { .dtv ol.miles img { padding: 13px; } }

.dtv #programme .card { background: var(--amber-bg); border-color: transparent; border-top-color: var(--sun); }
.dtv #programme .card.t { background: var(--teal-bg); border-top-color: var(--teal); }
.dtv #programme .card.v { background: var(--violet-bg); border-top-color: var(--violet); }

.dtv .tile { border-top: 5px solid var(--bright); }
.dtv .tile:nth-child(2) { border-top-color: var(--sun); }
.dtv .tile:nth-child(3) { border-top-color: var(--teal); }
.dtv .tile:nth-child(4) { border-top-color: var(--violet); }
