/* Technokolla Waterproofing Academy · Surtec palette sampled from the supplied logo */
:root {
  --mag: #E50A4C; --mag-d: #B8083D; --teal: #006074; --teal-d: #00495A; --teal-l: #E3EEF0;
  --ink: #242B32; --ink-2: #4E5A63; --line: #DAD6CE; --stone: #F3F1EC; --stone-2: #E9E5DD; --white: #fff;
  --ok: #1F7A4D; --warn: #9A6200; --warn-bg: #FFF5E0;
  --serif: 'EB Garamond', Georgia, serif; --sans: 'Lato', system-ui, -apple-system, sans-serif;
  --r: 14px; --r-s: 8px; --max: 1120px; --read: 720px;
  --shadow: 0 1px 2px rgba(36,43,50,.06), 0 8px 24px rgba(36,43,50,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--sans); color: var(--ink); background: var(--stone); }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { position: relative; width: 26px; height: 26px; flex: none; }
.brand-mark i { position: absolute; width: 13px; height: 13px; background: var(--teal); }
.brand-mark i:first-child { right: 0; top: 0; } .brand-mark i:last-child { left: 0; bottom: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--teal); }
.brand-text span { font-family: var(--serif); font-size: 19px; }
.bar-right { display: flex; align-items: center; gap: 8px; }
.by { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.surtec { height: 30px; width: auto; }


.banner { background: var(--warn-bg); color: #5c3b00; font-size: 13px; padding: 8px 16px; text-align: center; border-bottom: 1px solid #f0d9a8; }

main { min-height: 70vh; outline: none; }
main:focus, main:focus-visible { outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; color: var(--teal); }
h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 22px; }
.it { font-style: italic; }
.eyebrow { font: 900 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mag); margin-bottom: 12px; display: block; }
.rule { width: 64px; height: 4px; background: var(--mag); border: 0; margin: 18px 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* Hero */
.hero { background: var(--teal); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 48px 20px 44px; max-width: var(--max); margin: 0 auto; }
.hero h1 { color: #fff; } .hero .it { color: #9FD6E1; }
.hero p { font-size: 19px; max-width: 34em; color: #E3F1F4; }
.hero .rule { background: var(--mag); }
.hero-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; max-height: 440px; justify-self: end; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 26px; padding: 0; list-style: none; }
.hero-stats li { font-size: 14px; color: #CFE6EB; } .hero-stats b { display: block; font: 500 30px/1 var(--serif); color: #fff; }
@media (max-width: 820px) { .hero-in { grid-template-columns: 1fr; padding-top: 32px; } .hero-photo { justify-self: stretch; aspect-ratio: 16/10; max-height: 260px; order: -1; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 2px solid transparent; background: var(--mag); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--mag-d); }
.btn.ghost { background: transparent; border-color: currentColor; color: var(--teal); }
.hero .btn.ghost { color: #fff; }
.btn.teal { background: var(--teal); } .btn.teal:hover { background: var(--teal-d); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Progress */
.progress { height: 6px; background: rgba(0,96,116,.14); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--mag); border-radius: 99px; transition: width .4s; }
.hero .progress { background: rgba(255,255,255,.2); max-width: 420px; }

/* Module cards */
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }
.mcard { display: grid; grid-template-columns: 132px 1fr; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.mcard:hover { border-color: var(--teal); transform: translateY(-2px); }
.mcard .ph { background: var(--stone-2) center/cover no-repeat; min-height: 160px; position: relative; }
.mcard .no { position: absolute; left: 10px; top: 10px; background: var(--mag); color: #fff; font: 900 13px/1 var(--sans); padding: 7px 9px; border-radius: 6px; }
.mcard .bd { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.mcard h3 { margin: 0; font-size: 24px; }
.mcard .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); gap: 10px; }
.pill { font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: var(--teal-l); color: var(--teal); white-space: nowrap; }
.pill.done { background: #DFF2E7; color: var(--ok); } .pill.mag { background: #FDE3EA; color: var(--mag-d); } .pill.warn { background: var(--warn-bg); color: var(--warn); }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr 1fr; } }
.how div { background: #fff; border-radius: var(--r); padding: 18px; }
.how b { display: block; font: 500 34px/1 var(--serif); color: var(--mag); margin-bottom: 6px; }

/* Module page / lesson layout */
.crumbs { font-size: 13px; color: var(--ink-2); padding: 18px 0 0; }
.crumbs a { color: var(--ink-2); }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 18px 0 60px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 12px; } }
.side { position: sticky; top: 74px; background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .side { position: static; } .side details:not([open]) .side-list { display: none; } }
.side summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.side summary::-webkit-details-marker { display: none; }
.side-list { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: l; }
.side-list a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.3; }
.side-list a:hover { background: var(--stone); }
.side-list a[aria-current] { background: var(--teal-l); color: var(--teal); font-weight: 700; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #fff; }
.tick.on { background: var(--ok); border-color: var(--ok); }
.side-list .quiz a { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }

.lesson { min-width: 0; }
.lesson-head { margin-bottom: 26px; }
.lesson-head .mins { font-size: 13px; color: var(--ink-2); }
.block { margin: 0 0 28px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: var(--read); }

/* Media */
.media { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.media .svgwrap { padding: 16px; background: #fff; }
.media figcaption, .cap { font-size: 14px; color: var(--ink-2); padding: 12px 16px; border-top: 1px solid var(--stone-2); display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.media video { width: 100%; background: #000; aspect-ratio: 1280/1080; max-height: 70vh; }
.speed { display: flex; gap: 6px; padding: 10px 16px 0; }
.speed button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 13px; }
.speed button[aria-pressed=true] { background: var(--teal); color: #fff; border-color: var(--teal); }
.pending-media { aspect-ratio: 16/7; display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--stone) 0 14px, var(--stone-2) 14px 28px); color: var(--ink-2); }
.pending-media b { display: block; color: var(--teal); font: 500 22px var(--serif); margin-bottom: 6px; }
.yt { position: relative; aspect-ratio: 16/9; background: var(--ink); display: grid; place-items: center; color: #fff; text-align: center; }
.yt button { background: var(--mag); color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery button { padding: 0; border: 0; background: #fff; border-radius: var(--r-s); overflow: hidden; text-align: left; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery span { display: block; font-size: 13px; padding: 8px 10px; color: var(--ink-2); line-height: 1.35; }

/* Content blocks */
.card { background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.steps h3, .card h3 { font: 900 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 900 17px/1.4 var(--sans); color: var(--mag); }
.steps li + li { border-top: 1px solid var(--stone-2); padding-top: 14px; } .steps li + li::before { top: 12px; }
.src { font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.src::before { content: 'Source: '; font-weight: 700; }

.hold { background: var(--teal); color: #fff; border-radius: var(--r); padding: 20px 22px; }
.hold h3 { color: #fff; font: 900 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.hold h3::before { content: ''; width: 14px; height: 14px; background: var(--mag); border-radius: 3px; flex: none; }
.hold ul, .wrong ul, .compare ul { margin: 0; padding-left: 20px; } .hold li { margin: 6px 0; }
.wrong { border-left: 4px solid var(--mag); background: #fff; border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; }
.wrong h3 { color: var(--mag-d); font: 900 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.note { background: var(--teal-l); border-radius: var(--r); padding: 16px 20px; color: var(--ink); }
.note.pending, .conflict { background: var(--warn-bg); border: 1px solid #F0D9A8; }
.conflict { border-radius: var(--r); padding: 16px 20px; }
.conflict h3 { font: 900 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
.warranty { border: 2px solid var(--teal); border-radius: var(--r); padding: 18px 20px; background: #fff; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stone-2); vertical-align: top; }
th { background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
tbody tr:nth-child(even) td { background: #FAF9F6; }
td:first-child { font-weight: 700; color: var(--teal); }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.products.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .products { grid-template-columns: 1fr 1fr; } }
.prod { background: #fff; border-radius: var(--r); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.prod img { height: 120px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.prod b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--teal); }
.prod span { font-size: 13px; color: var(--ink-2); }
.phead { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: #fff; border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); }
.phead img { height: 120px; width: auto; object-fit: contain; }
.phead h2 { margin: 0 0 4px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.compare > div { background: #fff; border-radius: var(--r); padding: 18px 20px; } .compare > div:first-child { border-top: 4px solid var(--ink-2); } .compare > div:last-child { border-top: 4px solid var(--mag); }
.figure { display: flex; gap: 22px; align-items: center; background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.figure b { font: 500 46px/1 var(--serif); color: var(--mag); white-space: nowrap; }
.calc { background: var(--ink); color: #fff; border-radius: var(--r); padding: 20px 22px; }
.calc h3 { color: #9FD6E1; font: 900 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.lesson-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 36px; flex-wrap: wrap; }

/* Quiz */
.quiz { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.qcount { display: flex; gap: 6px; margin: 14px 0 22px; }
.qcount i { flex: 1; height: 6px; border-radius: 99px; background: var(--stone-2); } .qcount i.on { background: var(--teal); } .qcount i.cur { background: var(--mag); }
.qtext { font: 500 clamp(22px, 3.4vw, 28px)/1.3 var(--serif); color: var(--ink); margin-bottom: 20px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-height: 56px; color: var(--ink); line-height: 1.4; }
.opt:hover { border-color: var(--teal); }
.opt .k { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); font-weight: 900; font-size: 14px; color: var(--teal); }
.opt[aria-checked=true] { border-color: var(--teal); background: var(--teal-l); } .opt[aria-checked=true] .k { background: var(--teal); color: #fff; }
.result { text-align: center; padding: 30px 0; }
.score { font: 500 96px/1 var(--serif); color: var(--teal); }
.score small { font-size: 40px; color: var(--ink-2); }
.rlist { text-align: left; display: grid; gap: 8px; margin: 24px 0; }
.rlist div { display: flex; gap: 12px; background: #fff; border-radius: var(--r-s); padding: 12px 14px; align-items: flex-start; }
.rlist .ok { color: var(--ok); font-weight: 900; } .rlist .no { color: var(--mag); font-weight: 900; }

/* Certificate */
.cert { position: relative; background: #fff; max-width: 860px; margin: 30px auto; padding: 56px 56px 40px; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.cert::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--teal); pointer-events: none; }
.cert .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(var(--mag) 0 30%, var(--teal) 30%); }
.cert h1 { font-size: 46px; margin-top: 16px; }
.cert .name { font: 500 italic 44px/1.1 var(--serif); color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 18px 0 8px; }
.cert .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; font-size: 14px; }
.cert .grid b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cert .logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; margin-top: 26px; }
.cert .logos img { height: 56px; width: auto; }
.watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 900 64px/1 var(--sans); color: rgba(229,10,76,.12); transform: rotate(-18deg); letter-spacing: .08em; }
@media (max-width: 640px) { .cert { padding: 40px 24px 28px; } .cert h1 { font-size: 32px; } .cert .name { font-size: 32px; } .cert .grid { grid-template-columns: 1fr 1fr; } }

/* Forms */
.field { display: grid; gap: 6px; margin: 16px 0; } .field input { font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-s); background: #fff; }
.field input:focus { border-color: var(--teal); outline: none; }
.panel { max-width: 520px; margin: 40px auto; background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,24,28,.94); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox p { color: #ddd; font-size: 14px; max-width: 640px; text-align: center; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; }

.foot { background: var(--ink); color: #BFC7CC; font-size: 13px; margin-top: 40px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.foot .tk { background: #fff; padding: 14px 18px; border-radius: 8px; width: 240px; height: auto; }
.foot .ver { grid-column: 2; color: #8E99A0; margin: 0; }
@media (max-width: 600px) { .foot-in { grid-template-columns: 1fr; } .foot .ver { grid-column: 1; } }

@media print {
  .bar, .foot, .banner, .no-print { display: none !important; }
  body { background: #fff; } .cert { box-shadow: none; margin: 0 auto; }
}

.photo { padding: 0; border: 0; background: none; display: block; width: 100%; }
.photo img { width: 100%; max-height: 520px; object-fit: cover; }
.gtitle { font: 900 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ba button { position: relative; padding: 0; border: 0; background: var(--stone); border-radius: var(--r-s); overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.ba img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ba-cap { display: block; font-size: 13px; padding: 8px 10px; color: var(--ink-2); line-height: 1.35; }
.ba-tag { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font: 900 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 5px; }
.ba-tag.after { background: var(--teal); }
.foot-logos { display: grid; gap: 14px; }

.navlink { font-weight: 700; font-size: 14px; color: var(--teal); text-decoration: none; padding: 8px 12px; border-radius: 99px; margin-right: 8px; }
.navlink:hover { background: var(--teal-l); }
.vband { background: var(--ink); color: #fff; } .vband h2 { color: #fff; } .vband .btn.ghost { color: #fff; }
.vstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .vstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vthumb { color: #fff; text-decoration: none; display: grid; gap: 6px; }
.vimg { position: relative; aspect-ratio: 4/3; border-radius: var(--r-s); background: #333 center/cover; display: grid; place-items: center; }
.vimg b { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); font-size: 12px; padding: 3px 6px; border-radius: 4px; }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--mag); position: relative; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.play::after { content: ''; position: absolute; left: 21px; top: 16px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vt { font-weight: 700; } .vc { font-size: 13px; color: #AEB8BE; }
.lib-head { padding: 18px 0 8px; }
.lib-cat { margin: 26px 0 36px; } .lib-cat h2 { border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .lib-grid { grid-template-columns: 1fr; } }
.vcard { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.vcard video { width: 100%; aspect-ratio: 4/3; background: #000; object-fit: contain; }
.vcard .yt { aspect-ratio: 4/3; }
.vbody { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .vtop h3 { margin: 0; font-size: 22px; }
.watch { margin: 4px 0; padding-left: 18px; font-size: 14px; } .watch li { margin: 3px 0; }
.vnote { color: var(--warn); margin: 0; }
.vfoot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }


.links { list-style: none; margin: 0 0 10px; padding: 0; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--stone-2); text-decoration: none; color: var(--ink); min-height: 44px; }
.links a:hover span { color: var(--teal); text-decoration: underline; }
.links em { font-style: normal; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mag-d); background: #FDE3EA; padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.refs { border-top: 4px solid var(--teal); }

.field select { font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-s); background: #fff; }

.navlink.acct { background: var(--teal); color: #fff; } .navlink.acct:hover { background: var(--teal-d); }
.panel.auth { max-width: 560px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--stone); border-radius: 999px; padding: 4px; margin: 6px 0 18px; }
.tabs a { text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.tabs a[aria-selected=true] { background: #fff; color: var(--teal); box-shadow: var(--shadow); }
.btn.wide { width: 100%; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.form-msg { min-height: 1.2em; font-size: 14px; margin: 12px 0 0; } .form-msg.bad { color: var(--mag-d); } .form-msg.ok { color: var(--ok); }


.navlink { white-space: nowrap; }

/* ── Lesson video gate */
.lvideo { position: relative; margin: 0 0 30px; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.lvideo video { width: 100%; height: auto; max-height: 72vh; background: #000; display: block; }
.lv-play { position: absolute; inset: 0 0 auto 0; bottom: 52px; display: grid; place-content: center; justify-items: center; gap: 12px; border: 0; cursor: pointer; background: linear-gradient(0deg, rgba(36,43,50,.55), rgba(36,43,50,.15)); color: #fff; font: 700 15px var(--sans); }
.lv-play .play { width: 72px; height: 72px; transition: transform .2s; }
.lv-play .play::after { left: 29px; top: 22px; border-left-width: 20px; border-top-width: 14px; border-bottom-width: 14px; }
.lv-play:hover .play { transform: scale(1.06); }
.lv-play span { background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 99px; }
.lv-bar { height: 4px; background: var(--stone-2); } .lv-bar i { display: block; height: 100%; width: 0; background: var(--mag); transition: width .3s linear; }
.lvideo figcaption { font-size: 14px; color: var(--ink-2); padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill.mag { background: #FCE4EB; color: var(--mag-d); }

/* ── Lesson footer: what is left, then Next */
.end-mark { height: 1px; }
.lesson-nav { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 36px -12px 0; padding: 14px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -8px 24px rgba(36,43,50,.08); }
.gates { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.gates li { display: flex; align-items: center; gap: 7px; }
.gates span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: all .2s; }
.gates li.ok { color: var(--ok); font-weight: 700; } .gates li.ok span { background: var(--ok); border-color: var(--ok); }
.gates li.ok span::after { content: '✓'; color: #fff; font-size: 11px; line-height: 1; }
.lesson-nav.ready .gates { display: none; }
.nav-btns { display: flex; gap: 10px; margin-left: auto; }
.btn[aria-disabled=true] { background: #C9CED1; border-color: #C9CED1; color: #fff; cursor: not-allowed; box-shadow: none; }
@media (max-width: 600px) { .lesson-nav { margin: 30px -16px 0; border-radius: 0; } .nav-btns { width: 100%; } .nav-btns .btn { flex: 1; justify-content: center; text-align: center; padding-left: 10px; padding-right: 10px; } }

/* ── Ask Surtec */
.ask { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--r); padding: 18px 20px; }
.ask h3 { font-size: 22px; margin-bottom: 4px; } .ask p { margin: 0 0 8px; }
.ask a { font-weight: 700; color: var(--teal); }
.ask-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 500 24px var(--serif); }

/* ── Locks */
.side-list li.locked a { color: #9AA3A8; } .side-list li.locked .tick { color: #9AA3A8; border-color: var(--stone-2); }
.locked-panel { text-align: center; } .lock-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--teal-l); color: var(--teal); display: grid; place-items: center; } .lock-ic svg { width: 22px; height: 22px; }

/* ── Job stage bar */
.stagebar { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.stagebar li { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; line-height: 1.2; color: #8A949A; }
.stagebar li::before { content: ''; height: 5px; border-radius: 3px; background: var(--stone-2); }
.stagebar b { display: none; }
.stagebar li.past { color: var(--teal); } .stagebar li.past::before { background: var(--teal); opacity: .45; }
.stagebar li.now { color: var(--mag); font-weight: 700; } .stagebar li.now::before { background: var(--mag); }
@media (max-width: 700px) { .stagebar li span { display: none; } .stagebar { margin-bottom: 14px; } }

/* ── Step-by-step walk-through */
.walk > h3 { font-size: 28px; margin-bottom: 14px; }
.wsteps { list-style: none; margin: 0; padding: 0; counter-reset: w; }
.wsteps > li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.wsteps > li:not(:last-child)::before { content: ''; position: absolute; left: 22px; top: 46px; bottom: 4px; width: 2px; background: var(--stone-2); }
.wnum { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 500 22px/1 var(--serif); position: relative; z-index: 1; }
.wbody { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.wbody h4 { margin: 2px 0 6px; font: 700 18px/1.3 var(--sans); color: var(--ink); }
.wbody p { margin: 0 0 8px; }
.wtip { background: var(--teal-l); border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.wwarn { background: #FCE4EB; color: #7A0629; border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.wwarn::before { content: 'Watch out: '; font-weight: 700; }
.wmedia { display: grid; gap: 10px; margin-top: 10px; }
.wmedia.n2, .wmedia.n4 { grid-template-columns: 1fr 1fr; } .wmedia.n3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .wmedia.n3, .wmedia.n4 { grid-template-columns: 1fr 1fr; } .wsteps > li { grid-template-columns: 34px 1fr; gap: 10px; } .wnum { width: 34px; height: 34px; font-size: 18px; } .wsteps > li:not(:last-child)::before { left: 16px; top: 34px; } .wbody { padding: 14px; } }
.mt { margin: 0; } .mt button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; }
.mt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mt.is-dwg img { object-fit: contain; background: #fff; padding: 6px; }
.wmedia.n1 { grid-template-columns: minmax(0, 520px); }
.mt button::after { content: '⤢'; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(36,43,50,.7); color: #fff; display: grid; place-items: center; font-size: 15px; }
.mt-tag { position: absolute; left: 8px; top: 8px; font: 700 10px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 99px; background: rgba(36,43,50,.75); color: #fff; }
.mt.is-dwg .mt-tag { background: var(--teal); }
.mt figcaption { font-size: 13.5px; color: var(--ink-2); padding: 6px 2px 0; line-height: 1.4; }
.mt figcaption a { font-weight: 700; color: var(--teal); white-space: nowrap; }
.lightbox.white { background: rgba(255,255,255,.98); } .lightbox.white p { color: var(--ink); } .lightbox.white .lb-close { color: var(--ink); }
.lightbox.white img { max-width: min(1200px, 96vw); }

/* ── Kit list and whole-job sequence */
.kit { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kit h3 { font-size: 22px; } .kit ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.kit li { break-inside: avoid; padding: 6px 0 6px 28px; position: relative; } .kit li::before { content: ''; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border: 2px solid var(--teal); border-radius: 4px; }
@media (max-width: 600px) { .kit ul { columns: 1; } }
.seq { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seq li { background: var(--stone); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
.seq b { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--mag); color: #fff; display: grid; place-items: center; font: 500 17px var(--serif); }
.seq span { font-weight: 700; } .seq small { color: var(--ink-2); font-size: 13px; line-height: 1.35; }
@media (max-width: 640px) { .seq { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Learner view: reviewer notes hidden unless switched on */
body:not(.review) .note.pending, body:not(.review) .conflict, body:not(.review) .src, body:not(.review) .pill.warn, body:not(.review) .vnote { display: none !important; }
body:not(.review) .block:has(> .note.pending:only-child), body:not(.review) .block:has(> .conflict:only-child) { display: none; }
.review-toggle { border: 1px solid currentColor; background: #fff; color: var(--warn); border-radius: 99px; padding: 3px 10px; font: 700 12px var(--sans); cursor: pointer; margin-left: 6px; }

/* ── Tap-to-explain terms */
.term { all: unset; cursor: help; border-bottom: 2px dotted var(--teal); color: inherit; }
.term:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
#termpop { position: absolute; z-index: 70; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 15px; line-height: 1.45; }
#termpop b { display: block; color: #FF9AB5; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; } #termpop p { margin: 0; }
#termpop[hidden] { display: none; }

/* ── Remember card */
.remember { background: var(--teal); color: #fff; border-radius: var(--r); padding: 20px 22px; }
.remember .eyebrow { color: #FF9AB5; }
.remember ol { margin: 0; padding-left: 22px; font-size: 18px; line-height: 1.45; } .remember li { margin: 4px 0; }

/* ── Slimmer lesson bar on phones */
@media (max-width: 600px) {
  .lesson-nav { padding: 10px 12px; } .lesson-nav .gates { display: none; }
  .nav-btns .back { flex: 0 0 52px; padding: 0; } .nav-btns .back .lbl { display: none; }
}

/* ── Header v3: bigger brand, Surtec logo prominent, tabs on phones */
.bar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 20px; padding: 12px max(20px, env(safe-area-inset-left)); }
.brand { gap: 12px; } .brand-mark { width: 32px; height: 32px; } .brand-mark i { width: 16px; height: 16px; }
.brand-text strong { font-size: 14px; } .brand-text span { font-size: 23px; }
.bar-nav { display: flex; justify-content: center; gap: 4px; }
.surtec-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-decoration: none; }
.surtec-wrap .by { font-size: 10px; }
.surtec { height: 44px; width: auto; }
.navlink[aria-current="page"] { background: var(--teal-l); }
.navlink.acct[aria-current="page"] { background: var(--teal-d); }
@media (max-width: 860px) {
  .bar { position: static; grid-template-columns: 1fr auto; padding: 14px 16px 0; row-gap: 12px; }
  .bar-nav { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 -16px; border-top: 1px solid var(--line); }
  .bar-nav .navlink { border-radius: 0; text-align: center; padding: 13px 4px; font-size: 15px; font-weight: 700; margin: 0; border-bottom: 3px solid transparent; }
  .bar-nav .navlink[aria-current="page"] { background: transparent; color: var(--mag); border-bottom-color: var(--mag); }
  .bar-nav .navlink.acct { background: transparent; color: var(--teal); }
  .bar-nav .navlink.acct[aria-current="page"] { color: var(--mag); }
  .brand-text strong { font-size: 13px; } .brand-text span { font-size: 21px; }
  .brand-mark { width: 28px; height: 28px; } .brand-mark i { width: 14px; height: 14px; }
  .surtec { height: 36px; }
}
@media (max-width: 380px) { .brand-text span { font-size: 18px; } .surtec { height: 30px; } .surtec-wrap .by { display: none; } }
.foot-logos .tk { width: 300px; height: auto; }
.done-panel { text-align: left; } .done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }
/* ── RL80 or Tapas Mesh choice */
.choice h3 { font-size: 26px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.opt-card img { width: 110px; height: 110px; object-fit: contain; }
.opt-card h4 { margin: 8px 0 2px; font: 500 22px/1.15 var(--serif); color: var(--teal); }
.opt-card ol { margin: 8px 0 0; padding-left: 20px; } .opt-card li { margin: 3px 0; }
.choice-note { margin: 12px 0 0; background: var(--teal-l); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: 1fr; } .opt-card { grid-template-columns: 80px 1fr; } .opt-card img { width: 80px; height: 80px; } }
/* ── Product range */
.rgroup { margin: 0 0 30px; } .rgroup h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin-bottom: 4px; }
.rgroup h3 span { width: 32px; height: 32px; border-radius: 50%; background: var(--mag); color: #fff; display: grid; place-items: center; font: 500 18px var(--serif); flex: none; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.rcard { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px; }
.rimg { display: grid; place-items: center; } .rimg img { max-width: 92px; max-height: 110px; object-fit: contain; }
.rbody h4 { margin: 0; font: 700 17px/1.25 var(--sans); color: var(--teal); } .rpack { font-size: 12.5px; color: var(--ink-2); }
.rbody p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; } .ruse { color: var(--ink-2); } .ruse b { color: var(--ink); }
/* ── Interactive checklist */
.checklist { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
.cl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; } .cl-head b { font: 500 24px var(--serif); color: var(--teal); }
.cl-count { font-size: 14px; color: var(--ink-2); background: var(--teal-l); padding: 4px 10px; border-radius: 99px; } .cl-reset { margin-left: auto; border: 0; background: none; color: var(--teal); text-decoration: underline; font-size: 14px; }
.checklist fieldset { border: 0; padding: 0; margin: 16px 0 0; } .checklist legend { font: 900 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mag); margin-bottom: 6px; }
.cl-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid var(--stone-2); cursor: pointer; min-height: 44px; }
.cl-item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.cl-item:has(input:checked) span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(0,96,116,.4); }
@media print { .bar, .foot, .banner, .lvideo, .stagebar, .lesson-nav, .side, .remember, .crumbs, .no-print { display: none !important; } }

.links .ext { font-style: normal; color: var(--teal); font-weight: 700; }
/* ── At a glance, Q&A, experienced applicators, placeholders, audience */
.facts h3, .faq h3 { font-size: 26px; }
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 0; }
.facts dl div { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px; border-top: 4px solid var(--teal); }
.facts dt { font: 900 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.facts dd { margin: 0; font: 500 21px/1.2 var(--serif); color: var(--teal); }
@media (max-width: 640px) { .facts dl { grid-template-columns: 1fr 1fr; } .facts dd { font-size: 19px; } }
.faq details { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 8px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 700; position: relative; list-style: none; min-height: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--teal-l); color: var(--teal); display: grid; place-items: center; font-size: 18px; }
.faq details[open] summary::after { content: '–'; background: var(--teal); color: #fff; }
.faq details[open] summary { color: var(--teal); }
.faq-a { padding: 0 18px 14px; } .faq-a p { margin: 0 0 6px; }
.switch { background: #FFF8EC; border: 1px solid #F1DDB6; border-left: 5px solid var(--warn); border-radius: var(--r); padding: 18px 20px; }
.switch .eyebrow { color: var(--warn); } .switch h3 { font-size: 23px; margin-bottom: 4px; } .switch p { margin: 0 0 8px; } .switch ul { margin: 0; padding-left: 20px; } .switch li { margin: 4px 0; }
.ph-box { aspect-ratio: 4/3; border: 2px dashed #C9CED1; border-radius: 10px; background: repeating-linear-gradient(135deg, #FAFAF8 0 12px, #F3F1EC 12px 24px); display: grid; place-items: center; }
.ph-box span { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8A949A; background: #fff; padding: 6px 10px; border-radius: 99px; }
.mt.ph figcaption { color: var(--warn); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.who > div { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; } .who h3 { font-size: 24px; } .who p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .who { grid-template-columns: 1fr; } }

/* system build-up */
.stk { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 4px; }
.stk li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line, #e3e1dc); border-left: 14px solid var(--lc); border-radius: 8px; padding: 12px 14px; }
.stk li > b { width: 34px; height: 34px; border-radius: 50%; background: var(--teal, #0b5d6b); color: #fff; display: grid; place-items: center; font: 500 17px var(--serif); }
.stk h4, .stk-x h4 { margin: 2px 0 4px; font-size: 16px; } .stk p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips span { background: var(--stone, #f2f0eb); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.stk-x { border: 1px dashed var(--line, #d6d3cc); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.small { font-size: 13px; }
@media (max-width: 640px) { .stk li { grid-template-columns: 1fr; border-left-width: 10px; } .stk li > b { width: 28px; height: 28px; font-size: 15px; } }
.wanim { margin: 12px 0 0; } .wanim video { width: 100%; border-radius: 10px; background: #e9edf0; display: block; } .wanim figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.nw { white-space: nowrap; }
details.rgroup { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 0 0 10px; }
details.rgroup > summary { list-style: none; cursor: pointer; padding: 12px 34px 8px 0; position: relative; }
details.rgroup > summary::-webkit-details-marker { display: none; }
details.rgroup > summary::after { content: '+'; position: absolute; right: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-l); color: var(--teal); display: grid; place-items: center; font: 700 20px/1 var(--sans); }
details.rgroup[open] > summary::after { content: '–'; }
details.rgroup > summary h3 { margin: 0; } details.rgroup > summary h3 em { font: 600 13px var(--sans); color: var(--ink-2); margin-left: 10px; font-style: normal; }
details.rgroup > summary p { margin: 6px 0 4px; } details.rgroup[open] { padding-bottom: 16px; }
.mcard .meta { flex-wrap: wrap; row-gap: 6px; } .mcard > div, .mcard .body { min-width: 0; }
@media (max-width: 640px) { .hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 18px; } .hero-stats li { font-size: 12.5px; line-height: 1.25; } .hero-stats b { font-size: 26px; } }
.mcard { grid-template-columns: 132px minmax(0, 1fr); } .mcard .meta { justify-content: flex-start; } .mcard .meta > :last-child { margin-left: auto; }

/* branded printable checklist */
#printsheet { display: none; }
@media print {
  body.printing > *:not(#printsheet) { display: none !important; }
  body.printing #printsheet { display: block; font: 11pt/1.4 var(--sans); color: #242B32; }
  @page { size: A4; margin: 14mm; }
}
.ps-head { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid #E50A4C; padding-bottom: 10px; }
.ps-head img:first-child { height: 44px; } .ps-head img:last-child { height: 40px; margin-left: auto; }
.ps-t b { display: block; font: 600 15pt var(--serif); color: #006074; } .ps-t span { font-size: 10pt; letter-spacing: .08em; text-transform: uppercase; color: #E50A4C; font-weight: 700; }
.ps-job { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 14px; margin: 16px 0 12px; }
.ps-job span { border-bottom: 1px solid #9aa3a9; padding-top: 16px; font-size: 8.5pt; color: #4E5A63; }
.ps-cols { columns: 2; column-gap: 26px; }
.ps-cols section { break-inside: avoid; margin-bottom: 12px; }
.ps-cols h3 { font: 700 10.5pt var(--sans); color: #006074; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.ps-cols ul { list-style: none; margin: 0; padding: 0; } .ps-cols li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; border-bottom: 1px dotted #d0d4d7; }
.ps-cols li i { flex: 0 0 13px; height: 13px; border: 1.5px solid #242B32; border-radius: 2px; margin-top: 2px; }
.ps-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid #d0d4d7; font-size: 8.5pt; color: #4E5A63; }
/* lesson pages */
.pager { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; font-size: 14px; color: var(--ink-2); }
.pg-bar { display: flex; gap: 5px; flex: 1; max-width: 340px; } .pg-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--stone-2); }
.pg-bar i.done { background: var(--teal); } .pg-bar i.on { background: var(--mag); }
.lpage[hidden] { display: none !important; }
.wpart { margin: -4px 0 12px; font-size: 13px; font-weight: 700; color: var(--mag); letter-spacing: .04em; text-transform: uppercase; }
.nav-btns [hidden] { display: none !important; }
.plink { color: inherit; text-decoration: none; } .plink:hover { text-decoration: underline; } .plink .ext { font-size: .7em; color: var(--mag); font-style: normal; }
details.rgroup.single { background: none; border: 0; padding: 0; }
details.rgroup.single > summary { cursor: default; pointer-events: none; padding-right: 0; }
details.rgroup.single > summary::after { display: none; }
details.rgroup.single > summary h3 { font-size: 26px; }

/* technical system layers */
.layers h4 { margin: 18px 0 8px; font-size: 15px; color: var(--teal); }
.lay-img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; margin: 12px 0 4px; position: relative; cursor: zoom-in; }
.lay-img img { width: 100%; display: block; }
.lay-list { margin: 0; padding-left: 22px; } .lay-list li { margin: 0 0 6px; line-height: 1.45; }
.lay-rules { background: var(--stone); border-radius: 10px; padding: 4px 16px 10px; margin-top: 14px; } .lay-rules ul { margin: 0; padding-left: 20px; } .lay-rules li { margin: 0 0 6px; }

/* competitor match on product cards */
.cmp { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: 13px; }
.cmp-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cmp-b b { display: inline-block; min-width: 46px; } .cmp-b em { font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.cmp-close { background: #e2f1ec; color: #1d6b52; } .cmp-differs { background: #fbefd9; color: #8a5a00; } .cmp-system, .cmp-none { background: var(--stone-2); color: var(--ink-2); }
.res-banner { display: block; width: 100%; max-width: 420px; border-radius: 12px; margin: 6px 0 14px; }

.phead .branz-badge { position: absolute; top: 12px; right: 14px; width: 56px; height: auto; } .phead h2 { padding-right: 60px; }
.lead-badge { display: flex; gap: 18px; align-items: center; } .lead-badge img { width: 92px; flex: 0 0 auto; }
@media (max-width: 640px) { .lead-badge img { width: 56px; } .phead .branz-badge { width: 42px; top: 10px; right: 10px; } .phead h2 { padding-right: 44px; } }
.phead { position: relative; }

/* optional reference */
.refcard { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--teal); border-radius: var(--r); padding: 14px; margin-top: 22px; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.refcard .ph { height: 100px; border-radius: 10px; background: #fff center/contain no-repeat; border: 1px solid var(--line); }
.refcard h3 { margin: 4px 0 6px; } .refcard:hover { border-style: solid; }
@media (max-width: 700px) { .refcard { grid-template-columns: 1fr; } .refcard .ph { height: 140px; } }

.trade-card { margin-top: 22px; } .trade-card h4 { margin: 16px 0 8px; color: var(--teal); }
.trade-steps { margin: 0 0 16px; padding-left: 22px; } .trade-steps li { margin: 0 0 8px; } .trade-steps b { display: block; } .trade-steps span { color: var(--ink-2); font-size: 14px; }

/* link thumbnails */
.links li.has-thumb a { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.lthumb { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
img.lthumb[src$=".png"] { object-fit: contain; padding: 4px; }

/* photo placeholders: reviewers only */
.mt.ph, .media-ph { display: none; } body.review .mt.ph, body.review .media-ph { display: revert; }
.block:has(> .media-ph) { display: none; } body.review .block:has(> .media-ph) { display: block; }
.wmedia:not(:has(.mt:not(.ph))) { display: none; } body.review .wmedia { display: grid; }

.media-small .photo img{max-width:260px;margin:0 auto;display:block}

/* YouTube poster placeholders */
.yt.has-poster { background: var(--ink) center/cover no-repeat; overflow: hidden; border-radius: var(--r-s); }
.yt-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,43,50,.05) 40%, rgba(36,43,50,.75)); pointer-events: none; }
.yt .yt-play { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; padding: 0; background: var(--mag); border: 0; box-shadow: 0 6px 20px rgba(0,0,0,.35); display: grid; place-items: center; transition: transform .15s; }
.yt .yt-play::before { content: ''; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt .yt-play:hover { transform: scale(1.06); }
.yt-title { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; z-index: 1; color: #fff; font-weight: 700; text-align: left; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Course complete: celebration and certification */
.done-wrap { max-width: 860px; }
.celebrate { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, var(--teal) 0%, var(--teal-d) 100%); color: #fff; border-radius: var(--r); padding: 40px 22px 30px; margin: 18px 0 22px; box-shadow: var(--shadow); }
.celebrate .eyebrow { color: #9fd3de; }
.celebrate h1 { font: 500 clamp(34px, 6vw, 52px)/1.1 var(--serif); margin: 8px 0 8px; color: #fff; }
.celebrate .lead { color: #d8ecf0; max-width: 520px; margin: 0 auto 20px; }
.cel-ring { --p: 1; width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--mag) calc(var(--p) * 360deg), rgba(255,255,255,.18) 0); animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.cel-ring span { width: 108px; height: 108px; border-radius: 50%; background: var(--teal-d); display: grid; place-items: center; font: 500 44px/1 var(--serif); }
.cel-ring small { font-size: 18px; color: #9fd3de; display: block; margin-top: -10px; }
.ach { list-style: none; padding: 0; margin: 0 auto 20px; max-width: 560px; display: grid; gap: 8px; text-align: left; }
.ach li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; background: rgba(255,255,255,.1); border-radius: 10px; padding: 9px 14px; animation: rise .5s ease both; }
.ach li:nth-child(1) { animation-delay: .15s } .ach li:nth-child(2) { animation-delay: .25s } .ach li:nth-child(3) { animation-delay: .35s } .ach li:nth-child(4) { animation-delay: .45s } .ach li:nth-child(5) { animation-delay: .55s }
.ach-n { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--teal); font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.ach b { color: #fff; }
.cel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.cel-stats div { background: rgba(0,0,0,.15); border-radius: 10px; padding: 10px 8px; }
.cel-stats b { display: block; font-size: 17px; } .cel-stats span { font-size: 12px; color: #bfe0e7; text-transform: uppercase; letter-spacing: .06em; }
.cel-burst { position: absolute; inset: 0; pointer-events: none; }
.cel-burst i { position: absolute; left: 50%; top: 92px; width: 8px; height: 14px; border-radius: 2px; background: var(--mag); opacity: 0;
  transform: rotate(calc(var(--k) * 20deg)) translateY(0); animation: burst 1.4s .2s ease-out both; }
.cel-burst i:nth-child(3n) { background: #fff; } .cel-burst i:nth-child(3n+1) { background: #9fd3de; }
@keyframes burst { 0% { opacity: 1; transform: rotate(calc(var(--k) * 20deg)) translateY(0); } 100% { opacity: 0; transform: rotate(calc(var(--k) * 20deg)) translateY(-170px) rotate(160deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cel-burst { display: none; } .cel-ring, .ach li { animation: none; } }
@media (max-width: 560px) { .cel-stats b { font-size: 14px; } .cel-stats span { font-size: 10px; } .details { grid-template-columns: 1fr; gap: 2px; } .details dd { margin-bottom: 8px; } }
.cert-form, .cert-status { margin-bottom: 22px; } .cert-form h2, .cert-status h2 { margin: 4px 0 8px; }
.field em { font-style: normal; color: var(--ink-2); font-weight: 400; }
.field input:disabled { background: var(--stone); color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: t; }
.timeline li { position: relative; padding: 38px 6px 0; text-align: center; font-size: 14px; counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--stone-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 900; }
.timeline li.ok::before { content: '✓'; background: var(--ok); color: #fff; } .timeline li.now::before { background: var(--mag); color: #fff; }
.timeline b { display: block; } .timeline span { color: var(--ink-2); font-size: 13px; }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 16px; } }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; padding: 14px 16px; background: var(--stone); border-radius: var(--r-s); font-size: 15px; }
.details dt { color: var(--ink-2); } .details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.subs { width: 100%; font-size: 14px; } .subs td, .subs th { vertical-align: top; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--teal); text-decoration: underline; font-size: 13px; }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; gap: 0; } .details dd { margin-bottom: 10px; } }
.res-banner-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.profile-edit { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 16px; background: #fff; } .profile-edit summary { cursor: pointer; font-weight: 700; color: var(--teal); }

/* Landing page */
.hero-eyebrow { color: #FF9DB5; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; font-size: 13px; color: #CFE6EB; }
.trust img { width: 38px; height: 38px; background: #fff; border-radius: 8px; padding: 4px; object-fit: contain; }
.trust b { color: #fff; } .trust .sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); }
@media (max-width: 560px) { .trust .sep { display: none; } }
.steps-band { background: #fff; border-bottom: 1px solid var(--line); }
.steps4 { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps4 li { position: relative; padding-top: 4px; }
.steps4 .n { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 500 22px/1 var(--serif); margin-bottom: 12px; position: relative; z-index: 1; }
.steps4 li:last-child .n { background: var(--mag); }
.steps4 li:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: 52px; right: -10px; height: 2px; background: var(--teal-l); }
.steps4 h3 { font: 500 21px/1.2 var(--serif); color: var(--teal); margin: 0 0 6px; }
.steps4 p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .steps4 { grid-template-columns: 1fr; gap: 0; } .steps4 li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 20px; } .steps4 .n { grid-row: span 2; margin: 0; } .steps4 li:not(:last-child)::after { top: 48px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; } }
.lead-s { max-width: 44em; margin: -6px 0 22px; }
.cta-band { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(140deg, var(--teal), var(--teal-d)); color: #fff; border-radius: var(--r); padding: 28px; }
.cta-band h2 { color: #fff; margin: 0 0 4px; } .cta-band .it { color: #9FD6E1; } .cta-band p { margin: 0; color: #D8ECF0; }
.navlink.signout { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink-2); }
.navlink.signout:hover { color: var(--mag); }
@media (max-width: 760px) { .bar-nav.five { grid-template-columns: repeat(5, 1fr); } .bar-nav.five .navlink { font-size: 13.5px; padding-left: 2px; padding-right: 2px; } }
@media (max-width: 820px) { .hero-photo { max-height: 190px; } }

/* Install as an app */
.install-card { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 40px 16px 16px; margin: 18px 0; box-shadow: var(--shadow); }
.install-card img { border-radius: 12px; } .install-card b { color: var(--teal); }
.install-card .btn { padding: 10px 18px; font-size: 15px; }
.install-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.ios-share { display: inline-block; width: 14px; height: 16px; border: 2px solid var(--teal); border-top: 0; border-radius: 2px; position: relative; vertical-align: -2px; margin: 0 2px; }
.ios-share::before { content: ''; position: absolute; left: 4px; top: -7px; width: 2px; height: 11px; background: var(--teal); }
@media (display-mode: standalone) { .bar { padding-top: max(10px, env(safe-area-inset-top)); } }
