/* Keelmark (vibecodecertified.com) - "Intaglio" design system. Own identity: Libre Bodoni + Catamaran + PT Mono,
   ivory paper, midnight ink, engraving steel-teal, garnet seal. No sister-kit CSS. */

@font-face { font-family: "Libre Bodoni"; src: url("/assets/fonts/libre-bodoni-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Bodoni"; src: url("/assets/fonts/libre-bodoni-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Catamaran"; src: url("/assets/fonts/catamaran-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Mono"; src: url("/assets/fonts/pt-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F4EE; --paper-2: #EDE9DE; --card: #FFFEFA;
  --ink: #121A2B; --ink-2: #39435A; --ink-3: #5F687D;
  --rule: #D8D2C4; --rule-2: #BDB4A2;
  --engrave: #2C5F6E; --engrave-wash: #E6EFF0; --engrave-line: #A9C0C6;
  --seal: #8E2A3B; --seal-wash: #F5E6E8;
  --pass: #2F6B4E; --pass-wash: #E3EFE7;
  --foil: #B89650; --foil-light: #DCC48E;
  --serif: "Libre Bodoni", Didot, "Bodoni 72", "Times New Roman", serif;
  --sans: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "PT Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); font-feature-settings: "kern"; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--engrave); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .08em .36em; border-radius: 3px; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
:focus-visible { outline: 3px solid var(--engrave); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; border-radius: 4px; }
.skip:focus { top: 12px; }
.frame { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.frame--read { max-width: 820px; }
.free { color: var(--pass); font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 10px 22px; border-radius: 2px; border: 1px solid transparent; font: 600 16px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--engrave); color: #fff; }
.btn--seal { background: var(--seal); color: #fff; }
.btn--seal:hover { background: #6F1F2D; color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; color: var(--ink); }
.btn--line-light { background: transparent; color: var(--paper); border-color: rgba(246, 244, 238, .6); }
.btn--line-light:hover { border-color: var(--paper); color: #fff; }
.btn--danger { color: var(--seal); border-color: var(--seal); }
.btn--danger:hover { background: var(--seal); color: #fff; }

/* ---------- masthead ---------- */
.mast { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 10; }
.mast__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font: 600 27px/1 var(--serif); letter-spacing: .005em; }
.mark__ring { fill: none; stroke: var(--foil); stroke-width: 2.5; }
.mark__band { fill: none; stroke: var(--engrave); stroke-width: 2; }
.mark__dot { fill: var(--seal); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15.5px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--engrave); }
.recbtn { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.recbtn:hover, .recbtn.is-on { background: var(--ink); color: var(--paper); }
.recbtn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); }
.recbtn__dot.is-live { background: var(--pass); box-shadow: 0 0 0 3px var(--pass-wash); }
.menu { display: none; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__bars { width: 16px; height: 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.menu__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid var(--ink); }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px rgba(18, 26, 43, .12); display: grid; padding: 8px var(--gut) 16px; }
.menu__panel a { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 600; text-decoration: none; }
.menu__panel a[aria-current="page"] { color: var(--engrave); }

/* ---------- shared heads ---------- */
.eyebrow { font: 400 12.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--engrave); margin: 0 0 14px; }
.eyebrow--light { color: var(--foil-light); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: .45em; }
.section-lede { font-size: 1.12rem; color: var(--ink-2); }
.pagehead { padding: 72px 0 52px; border-bottom: 1px solid var(--rule); }
.pagehead--slim { padding: 52px 0 36px; }
.pagehead__title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; max-width: 18em; }
.pagehead__title em { font-style: italic; color: var(--seal); }
.pagehead__lede { font-size: 1.18rem; color: var(--ink-2); max-width: 42em; }
.pagehead__form { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.pagehead__small { font-size: .95rem; color: var(--ink-3); }
.pagehead--exam { background: var(--ink); color: var(--paper); border-bottom: 0; position: relative; overflow: hidden; }
.pagehead--exam::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 88% 30%, rgba(169, 192, 198, .13) 0 1px, transparent 1px 10px); pointer-events: none; }
.pagehead--exam .frame { position: relative; }
.pagehead--exam .eyebrow { color: var(--foil-light); }
.pagehead--exam .pagehead__title em { color: var(--foil-light); }
.pagehead--exam .pagehead__lede { color: rgba(246, 244, 238, .82); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero__engrave { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 80% 46%, rgba(169, 192, 198, .12) 0 1px, transparent 1px 9px),
    repeating-radial-gradient(circle at 70% 60%, rgba(220, 196, 142, .07) 0 1px, transparent 1px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero__title { font-size: clamp(3.3rem, 7.4vw, 6.6rem); line-height: .94; letter-spacing: -.025em; font-weight: 400; margin: 0 0 28px; color: var(--paper); }
.hero__title em { font-style: italic; color: var(--foil-light); }
.hero__lede { font-size: 1.16rem; line-height: 1.62; color: rgba(246, 244, 238, .84); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__facts { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid rgba(246, 244, 238, .18); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; font: 400 11.5px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(246, 244, 238, .66); }
.hero__facts li { border-left: 1px solid rgba(220, 196, 142, .35); padding-left: 14px; }
.hero__facts strong { display: block; color: var(--paper); font: 400 2.05rem/1 var(--serif); letter-spacing: 0; text-transform: none; margin: 0 0 8px; }
.hero__object { position: relative; }
.hero__object .cert { transform: rotate(-2.2deg); box-shadow: 0 34px 70px rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .3); }
.hero__caption { margin: 28px 0 0; font-size: .9rem; color: rgba(246, 244, 238, .62); max-width: 34em; }

/* ---------- the certificate (scales with its own width) ---------- */
.cert { container-type: inline-size; background: var(--card); color: var(--ink); border-radius: 2px;
  background-image: radial-gradient(ellipse at 30% 20%, #FFFFFF 0%, transparent 60%), radial-gradient(ellipse at 80% 90%, #F4EFE2 0%, transparent 55%); }
.cert__frame { position: relative; aspect-ratio: auto; min-height: calc(100cqi / 1.414); padding: 6.2cqi 7.4cqi 5.6cqi; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1.4cqi var(--card), inset 0 0 0 1.6cqi var(--foil), inset 0 0 0 2.3cqi var(--card), inset 0 0 0 2.42cqi var(--engrave); }
.cert__head { display: flex; justify-content: space-between; align-items: center; gap: 2cqi; margin-bottom: 4cqi; }
.cert__issuer { display: inline-flex; align-items: center; gap: 1.2cqi; margin: 0; font: 600 3.4cqi/1 var(--serif); }
.cert__mark { width: 4.2cqi; height: 4.2cqi; }
.cert__kind { margin: 0; font: 400 1.65cqi/1.2 var(--mono); text-transform: uppercase; letter-spacing: .24em; color: var(--engrave); }
.cert__pre { margin: 0 0 .6cqi; font: italic 400 2.1cqi/1.3 var(--serif); color: var(--ink-3); }
.cert__name { margin: 0 0 1.8cqi; max-width: 64%; padding-bottom: 1cqi; border-bottom: .18cqi solid var(--rule-2); font: italic 400 6.6cqi/1.08 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cert__body { margin: 0 0 2.4cqi; max-width: 60%; font-size: 2.05cqi; line-height: 1.45; color: var(--ink-2); }
.cert__facts { display: flex; flex-wrap: wrap; gap: 1.2cqi 3.4cqi; margin: 0 0 2cqi; max-width: 66%; }
.cert__facts dt { font: 400 1.35cqi/1.2 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); }
.cert__facts dd { margin: .4cqi 0 0; font: 500 2.25cqi/1.2 var(--serif); }
.cert__facts dd.mono { font: 400 2.05cqi/1.2 var(--mono); letter-spacing: .06em; }
.cert__check { margin: auto 0 .8cqi; font: 400 max(1.45cqi, 9px)/1.3 var(--mono); color: var(--engrave); letter-spacing: .03em; overflow-wrap: anywhere; }
.cert__fine { margin: 0; max-width: 60%; font-size: max(1.32cqi, 9px); line-height: 1.4; color: var(--ink-3); }
/* v1.0.4: the frame keeps the A-paper proportion as a MINIMUM at every width (was a fixed aspect-ratio above 560px), so a
   long name never pushes the "not a professional certification / not an accredited credential" line out of view. */
/* v1.0.3 (review T8): on a phone-width certificate the check line and the "not accredited" line keep a readable size,
   and the frame grows to fit them instead of cutting them off */
@container (max-width: 560px) {
  .cert__frame { aspect-ratio: auto; min-height: calc(100cqi / 1.414); }
  .cert__body { font-size: max(2.05cqi, 9.5px); max-width: 64%; }
  .cert__facts dt { font-size: max(1.35cqi, 7.5px); }
  .cert__fine { max-width: 64%; }
}
.cert__seal { position: absolute; right: 6.4cqi; bottom: 6.4cqi; width: 26cqi; }
.cert__overprint { position: absolute; left: 20%; top: 34%; margin: 0; transform: rotate(-17deg); font: 600 12.5cqi/1 var(--serif); text-transform: uppercase; letter-spacing: .12em; color: transparent; -webkit-text-stroke: .22cqi var(--seal); opacity: .38; pointer-events: none; }
.seal { display: block; width: 100%; height: auto; overflow: visible; }
.seal__ring { fill: none; stroke: var(--foil); stroke-width: 1.6; }
.seal__ticks { fill: none; stroke: var(--engrave); stroke-width: 1.3; }
.seal__band { fill: none; stroke: var(--engrave); stroke-width: 1; opacity: .9; }
.seal__inner { fill: none; stroke: var(--seal); stroke-width: 1; opacity: .85; }
.seal__core { fill: none; stroke: var(--engrave); stroke-width: 1.1; }
.seal__text { font: 400 13px var(--mono); letter-spacing: 3.2px; fill: var(--ink-3); text-transform: uppercase; }

/* ---------- plain truth ---------- */
.plain { padding: 88px 0 40px; }
.plain__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plain__col { background: var(--card); border: 1px solid var(--rule); padding: 30px 32px 22px; border-top-width: 4px; }
.plain__col--is { border-top-color: var(--pass); }
.plain__col--not { border-top-color: var(--seal); }
.plain__col h3 { font-size: 1.55rem; }
.plain__col ul { list-style: none; margin: 0; padding: 0; }
.plain__col li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--rule); }
.plain__col li:first-child { border-top: 0; }
.plain__col--is li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--pass); border-bottom: 2px solid var(--pass); transform: rotate(-45deg); }
.plain__col--not li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 16px; border-top: 2px solid var(--seal); }

/* ---------- syllabus ledger ---------- */
.ledger { padding: 72px 0 88px; }
.ledger--full { padding-top: 48px; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 44px; }
.plate { border-top: 1px solid var(--ink); padding-top: 16px; }
.plate__numeral { margin: 0 0 6px; font: italic 400 4.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px var(--engrave); letter-spacing: .02em; }
.plate__title { font-size: 1.6rem; margin-bottom: .35em; }
.plate__lead { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; min-height: 4.6em; }
.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.row:hover .row__title { color: var(--engrave); text-decoration: underline; text-underline-offset: 3px; }
.row__no { font: 400 13px var(--mono); color: var(--ink-3); flex: none; }
.row__title { font-weight: 600; line-height: 1.35; }
.row__title small { display: block; font-weight: 400; color: var(--ink-3); font-size: 14.5px; margin-top: 3px; }
.row__dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted var(--rule-2); transform: translateY(-4px); }
.row__min { flex: none; font: 400 13px var(--mono); color: var(--ink-3); }
.row--done .row__no { color: var(--pass); }
.plates--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates--full .plate__lead { min-height: 0; }
.ledger__after { margin-top: 48px; }

/* ---------- steps ---------- */
.steps { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 80px 0; }
.steps__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps__list::before { content: ""; position: absolute; left: 32px; right: 32px; top: 32px; border-top: 1px solid var(--engrave-line); }
.steps__list li { position: relative; }
.steps__no { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 1px solid var(--engrave); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--engrave-line); font: italic 400 1.9rem/1 var(--serif); color: var(--engrave); margin-bottom: 18px; position: relative; }
.steps__list h3 { font-size: 1.35rem; }
.steps__list p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- verify ---------- */
.verify { background: var(--paper-2); padding: 72px 0; }
.verify__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lookup label { display: block; font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 8px; }
.lookup__row { display: flex; gap: 0; }
.lookup__row input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 1px solid var(--ink); border-right: 0; background: var(--card); font: 400 1.1rem var(--mono); letter-spacing: .08em; color: var(--ink); border-radius: 2px 0 0 2px; }
.lookup__row .btn { height: 56px; border-radius: 0 2px 2px 0; }
.lookup--page { margin-top: 28px; max-width: 560px; }
.lookup__error { margin-top: 12px; color: var(--seal); font-weight: 600; }
.lookup__help { color: var(--ink-3); font-size: .95rem; margin-top: 16px; }

/* ---------- rates ---------- */
.rates { padding: 88px 0; }
.rates--page { padding-top: 48px; }
.tariffs__table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); }
.tariffs__table th, .tariffs__table td { padding: 16px 20px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tariffs__table thead th { border-top: 0; font: 500 1.3rem/1.2 var(--serif); padding-top: 24px; }
.tariffs__table tbody th { font-weight: 600; width: 34%; }
.tariffs__table .is-pick { background: var(--engrave-wash); }
.tariffs__table thead .is-pick { box-shadow: inset 0 4px 0 var(--engrave); }
.tariffs__table small { display: block; color: var(--ink-3); font-size: 13.5px; }
.yes, .no { display: inline-flex; align-items: baseline; gap: 8px; }
.yes::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--pass); border-bottom: 2px solid var(--pass); transform: rotate(-45deg) translateY(-2px); flex: none; }
.no { color: var(--ink-3); }
.no::before { content: ""; width: 10px; border-top: 2px solid var(--rule-2); flex: none; transform: translateY(-4px); }
.tariffs__price td strong { font: 500 1.6rem/1.1 var(--serif); }
.tariffs__foot { margin-top: 18px; color: var(--ink-3); font-size: .95rem; }
.tariff { background: var(--card); border: 1px solid var(--ink); padding: 22px 24px; }
.tariff__what { font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 8px; }
.tariff__line { font-size: 1.05rem; margin-bottom: 8px; }
.tariff__note { font-size: .92rem; color: var(--ink-3); margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0 96px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 500 1.25rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.6rem/1 var(--sans); color: var(--engrave); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 44em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(246, 244, 238, .78); padding: 64px 0 34px; font-size: 15px; }
.foot a { color: var(--paper); }
.foot__top { display: grid; grid-template-columns: auto 1fr; gap: 10px 48px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid rgba(246, 244, 238, .16); }
.brand--foot { color: var(--paper); }
.brand--foot .mark__band { stroke: var(--engrave-line); }
.foot__tag { margin: 4px 0 0; }
.foot__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; }
.foot__nav a { text-decoration: none; font-weight: 600; }
.foot__nav a:hover { text-decoration: underline; }
.notice { padding: 26px 0 10px; max-width: 70em; }
.notice__line { font-size: 14px; line-height: 1.6; }
.notice__line strong { color: var(--paper); font-weight: 600; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(246, 244, 238, .16); font: 400 12.5px var(--mono); letter-spacing: .06em; }

/* ---------- lesson ---------- */
.lessonwrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 96px; }
.rail { position: sticky; top: 24px; align-self: start; }
.rail__unit { font: 600 1.05rem/1.3 var(--serif); margin-bottom: 14px; }
.rail__numeral { display: block; font: italic 400 3rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--engrave); margin-bottom: 6px; }
.rail__list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.rail__list a { display: block; padding: 11px 0 11px 12px; border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.rail__list a:hover { color: var(--ink); }
.rail__list a[aria-current="page"] { border-left-color: var(--engrave); color: var(--ink); font-weight: 700; }
.rail__no { display: block; font: 400 12px var(--mono); color: var(--ink-3); margin-bottom: 2px; }
.rail__done { display: inline-block; margin-left: 6px; font: 400 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pass); }
.rail__all { font-size: 14.5px; font-weight: 600; }
.lesson { max-width: 720px; }
.lesson__title { font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.05; margin-bottom: 16px; }
.lesson__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 26px; }
.lesson__meta span + span::before { content: "/"; margin-right: 18px; color: var(--rule-2); }
.lesson__lede { font-size: 1.28rem; line-height: 1.55; color: var(--ink-2); padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.lesson__sec h2 { font-size: 1.65rem; margin-top: 1.6em; }
.lesson__sec p { font-size: 1.07rem; line-height: 1.75; }
.trythis { margin: 40px 0; padding: 22px 26px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--engrave); }
.trythis__label { font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--engrave); margin-bottom: 8px; }
.trythis p:last-child { margin: 0; }
.words { margin: 40px 0; }
.words h2, .sources h2 { font-size: 1.45rem; }
.words dl { margin: 0; border-top: 1px solid var(--ink); }
.words dl div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.words dt { font: italic 500 1.12rem/1.35 var(--serif); }
.words dd { margin: 0; color: var(--ink-2); }
.sources ol { padding-left: 22px; margin: 0 0 10px; }
.sources li { padding: 4px 0; }
.sources li::marker { font-family: var(--mono); color: var(--ink-3); }
.sources__note { font-size: .92rem; color: var(--ink-3); }
.lesson__caution { margin: 0 0 34px; padding: 16px 20px 16px 18px; border-left: 3px solid var(--seal); background: var(--paper); font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.lesson__caution strong { display: block; margin-bottom: 4px; font: 400 11.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--seal); }
.replace { flex-basis: 100%; padding: 16px 18px; border: 1px solid var(--rule-2); background: var(--paper); }
.replace p { margin: 0 0 10px; }
.replace__link { overflow-wrap: anywhere; font-size: .92rem; }
.replace .tick { margin: 6px 0 0; }
.checkform { margin-top: 56px; background: var(--card); border: 1px solid var(--ink); padding: 34px 36px 30px; }
.checkform__head { border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.checkform__head h2 { font-size: 1.85rem; margin-bottom: .2em; }
.checkform__head p { color: var(--ink-2); }
.checkform__keep { color: var(--pass); font-weight: 600; }
.q { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 14px; font: 500 1.24rem/1.35 var(--serif); display: flex; gap: 12px; }
.q__no { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--engrave); font: 400 13px var(--mono); color: var(--engrave); transform: translateY(1px); }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--card); cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--ink-3); }
.opt input { margin: 0; width: 18px; height: 18px; accent-color: var(--engrave); }
.opt__letter { font: 400 13px var(--mono); color: var(--ink-3); }
.opt__text { line-height: 1.4; }
.opt:has(input:checked) { border-color: var(--engrave); background: var(--engrave-wash); box-shadow: inset 0 0 0 1px var(--engrave); }
.tick { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 22px; cursor: pointer; line-height: 1.45; }
.tick input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--engrave); }
.tick--boxed { padding: 16px 18px; border: 1px solid var(--rule-2); background: var(--paper); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; color: var(--ink); font: 500 1.12rem/1.3 var(--serif); }
.pager a:hover { color: var(--engrave); }
.pager small { display: block; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 4px; }
.pager__next { text-align: right; }

/* ---------- results ---------- */
.resultwrap { padding-top: 56px; padding-bottom: 96px; }
.verdict { border-top: 4px solid var(--seal); padding-top: 26px; margin-bottom: 34px; position: relative; }
.verdict--pass { border-top-color: var(--pass); }
.verdict__stamp { display: inline-block; margin: 0 0 14px; padding: 8px 16px; border: 2px solid currentColor; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px currentColor; border-radius: 3px; font: 400 14px var(--mono); letter-spacing: .24em; text-transform: uppercase; transform: rotate(-3deg); }
.verdict--pass .verdict__stamp { color: var(--pass); }
.verdict--miss .verdict__stamp { color: var(--seal); }
.verdict__score { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 10px; }
.verdict__note { color: var(--ink-2); font-size: 1.08rem; }
.review { list-style: none; margin: 0; padding: 0; }
.review__item { padding: 22px 0 22px 22px; border-left: 3px solid var(--seal); border-bottom: 1px solid var(--rule); }
.review__item--right { border-left-color: var(--pass); }
.review__q { font: 500 1.18rem/1.4 var(--serif); display: flex; gap: 12px; margin-bottom: 12px; }
.review__opts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.review__opts li { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); }
.review__opts li.is-right { border-color: var(--pass); background: var(--pass-wash); color: var(--ink); }
.review__opts li.is-mine:not(.is-right) { border-color: var(--seal); background: var(--seal-wash); }
.review__why { color: var(--ink-2); margin: 0; }
.review__none { color: var(--seal); font-weight: 600; }
.review__mark { margin: 0; }
.review__mark a { font-weight: 600; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); font: 400 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); vertical-align: 1px; white-space: nowrap; }
.tag--pass { background: var(--pass-wash); color: var(--pass); }
.tag--miss { background: var(--seal-wash); color: var(--seal); }
.resultwrap__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.resultwrap__cert { font-size: 1.1rem; }
.issue { background: var(--card); border: 1px solid var(--ink); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--foil); padding: 36px 38px; margin: 0 0 40px; }
.issue h2 { font-size: 1.85rem; }
.issue .tariff { margin: 18px 0 22px; border-color: var(--rule-2); }
.issue__error { padding: 12px 16px; background: var(--seal-wash); color: var(--seal); font-weight: 600; border-left: 4px solid var(--seal); }
.field { display: grid; gap: 8px; margin-bottom: 8px; }
.field span { font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.field input { height: 58px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; font: italic 400 1.5rem var(--serif); color: var(--ink); width: 100%; }
.field__hint { font-size: .93rem; color: var(--ink-3); }

/* ---------- exam ---------- */
.examwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 52px; padding-bottom: 96px; align-items: start; }
.status { background: var(--card); border: 1px solid var(--ink); padding: 30px 32px; margin-bottom: 44px; }
.status__title { font-size: 1.6rem; }
.status__good { color: var(--pass); font-weight: 700; }
.status__small { color: var(--ink-3); font-size: .93rem; margin-top: 12px; }
.todo { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.todo li { break-inside: avoid; }
.todo a { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.rules h2 { font-size: 1.6rem; }
.rules ol { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.rules li { counter-increment: r; position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.rules li::before { content: counter(r, upper-roman); position: absolute; left: 0; top: 10px; font: italic 400 1.25rem var(--serif); color: var(--engrave); }
.examwrap__side { position: sticky; top: 24px; }
.examwrap__more { margin-top: 12px; font-weight: 600; }
.examform { padding: 40px 0 0; }
.q--exam { padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.handin { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; background: var(--paper); border-top: 1px solid var(--ink); margin-top: 10px; }
.handin__count { margin: 0; font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* ---------- certificate check page ---------- */
.certpage { padding-top: 48px; padding-bottom: 96px; }
.certpage__sheet { max-width: 980px; margin: 0 auto 48px; }
.certpage__sheet .cert { box-shadow: 0 24px 50px rgba(18, 26, 43, .16), 0 2px 6px rgba(18, 26, 43, .08); }
.flash { max-width: 980px; margin: 0 auto 28px; padding: 14px 18px; background: var(--pass-wash); border-left: 4px solid var(--pass); font-weight: 600; }
.checked { max-width: 980px; margin: 0 auto; }
.checked__status { display: inline-flex; align-items: center; gap: 10px; font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--pass); margin-bottom: 10px; }
.checked__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 4px var(--pass-wash); }
.checked__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.checked__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 22px 0 30px; border-top: 1px solid var(--ink); }
.checked__facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.checked__facts dt { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.checked__facts dd { margin: 4px 0 0; font-size: 1.08rem; }
.checked__facts small { color: var(--ink-3); }
.checked__means { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.checked__means > div { background: var(--card); border: 1px solid var(--rule); padding: 22px 24px; border-top: 4px solid var(--pass); }
.checked__means > div + div { border-top-color: var(--seal); }
.checked__means h2 { font-size: 1.3rem; }
.checked__means p { margin: 0; color: var(--ink-2); }
.checked__seal { color: var(--ink-3); font-size: .95rem; margin-top: 22px; }
.checked__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.withdraw { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--seal); max-width: 640px; }
.withdraw h2 { font-size: 1.35rem; }
.certpage--gone .pagehead__title { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- record ---------- */
.recordwrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-top: 44px; padding-bottom: 96px; align-items: start; }
.board__unit { margin-bottom: 26px; }
.board__numeral { margin: 0 0 10px; font: italic 400 1.5rem var(--serif); color: var(--engrave); }
.board__numeral span { font: 600 1rem var(--sans); font-style: normal; color: var(--ink); margin-left: 8px; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cell a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 3px; color: var(--ink); text-decoration: none; }
.cell a:hover { border-color: var(--ink); }
.cell__no { font: 400 12px var(--mono); color: var(--ink-3); }
.cell__title { font-weight: 600; line-height: 1.3; font-size: 15px; }
.cell__state { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.cell--pass a { border-color: var(--pass); background: var(--pass-wash); }
.cell--pass .cell__state { color: var(--pass); }
.cell--tried a { border-style: dashed; border-color: var(--ink-3); }
.panel { border-top: 1px solid var(--ink); padding: 18px 0 26px; }
.panel h2 { font-size: 1.35rem; }
.panel--danger { border-top-color: var(--seal); }
.secret { background: var(--paper-2); padding: 12px 14px; border-radius: 3px; overflow-wrap: anywhere; font-size: 14px; }
.sits { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14.5px; }
.sits th, .sits td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.sits th { font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* ---------- prose pages ---------- */
.prose { padding: 40px 0 96px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.5em; }
.prose p { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose li { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lessonwrap { gap: 48px; grid-template-columns: 220px minmax(0, 1fr); }
  .examwrap, .recordwrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 900px) {
  :root { --gut: 22px; }
  .nav, .recbtn { display: none; }
  .menu { display: block; margin-left: auto; }
  .mast__in { min-height: 66px; }
  .hero__in { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
  .hero__object { max-width: 560px; }
  .plain__cols, .verify__in { grid-template-columns: 1fr; gap: 24px; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .steps__list::before { display: none; }
  .lessonwrap { grid-template-columns: 1fr; padding-top: 36px; }
  .rail { position: static; order: 2; border-top: 1px solid var(--ink); padding-top: 20px; }
  .examwrap, .recordwrap { grid-template-columns: 1fr; }
  .examwrap__side { position: static; }
  .checked__facts, .checked__means { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 16.5px; }
  .brand__word { font-size: 24px; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .hero__object .cert { transform: rotate(-1.4deg); }
  .plates, .plates--full { grid-template-columns: 1fr; gap: 44px; }
  .plate__lead { min-height: 0; }
  .steps__list { grid-template-columns: 1fr; }
  .plain__col { padding: 24px 20px 16px; }
  .words dl div { grid-template-columns: 1fr; gap: 2px; }
  .checkform { padding: 24px 18px 22px; margin-left: -4px; margin-right: -4px; }
  .issue { padding: 26px 20px; }
  .status { padding: 22px 20px; }
  .todo { columns: 1; }
  .board ol { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { text-align: left; }
  .handin { flex-direction: column; align-items: stretch; }
  .tariffs__table thead { display: none; }
  .tariffs__table, .tariffs__table tbody, .tariffs__table tr, .tariffs__table th, .tariffs__table td { display: block; width: 100%; }
  .tariffs__table tr { padding: 14px 16px; border-top: 1px solid var(--rule); }
  .tariffs__table tr:first-child { border-top: 0; }
  .tariffs__table tbody th { width: auto; padding: 0 0 8px; border: 0; }
  .tariffs__table td { padding: 6px 0 6px 0; border: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; background: transparent !important; }
  .tariffs__val { min-width: 0; }
  .tariffs__table td::before { content: attr(data-plan); font: 400 11.5px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
  .lookup__row { flex-direction: column; gap: 10px; }
  .lookup__row input { border-right: 1px solid var(--ink); border-radius: 2px; }
  .lookup__row .btn { border-radius: 2px; }
  .cert__body, .cert__name, .cert__fine { max-width: 66%; }
}

/* ---------- print: the certificate alone, landscape ---------- */
@media print {
  @page { size: landscape; margin: 10mm; }
  body { background: #fff; }
  .mast, .foot, .flash, .checked, .skip { display: none !important; }
  .certpage { padding: 0; }
  .certpage__sheet { max-width: none; margin: 0; }
  .certpage__sheet .cert { box-shadow: none; }
  .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* AdEngine banner (adengine.us, v1.0.6): one slot after the main content on public reading pages only. The label and the
   reserved height live on the <ins>, so when tag.js hides an unfilled slot the label and the space go with it. */
.ae-slot { margin: 0; padding: 0 var(--gut); }
.ae-slot:has(> ins.adengine[style*="none"]) { display: none; }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 0 auto 64px; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font: 400 11px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ae-slot ins.adengine a { display: inline-block; vertical-align: top; }
@media (max-width: 767px) { .ae-slot ins.adengine { max-width: 300px; min-height: 270px; margin-bottom: 48px; } }
@media print { .ae-slot { display: none; } }
