/* CBEMT theme styles. Navy and red-orange on white. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/merriweather-latin-700-normal.woff2) format("woff2"); }

:root {
	--navy: #0E2747;
	--navy-deep: #091A31;
	--navy-soft: #1D3B63;
	--accent: #C93D1A;
	--accent-dark: #A6311A;
	--accent-bright: #F26B3A;
	--ink: #1B1B1B;
	--muted: #4A5565;
	--on-navy: #D5DDE8;
	--mist: #F2F4F7;
	--rule: #D6DCE4;
	--paper: #FFFFFF;
	--ok: #1F6B45;

	--sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--serif: "Merriweather", Georgia, "Times New Roman", serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
::selection { background: #FBD5C7; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(720px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(960px + 2 * var(--gutter)); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); color: var(--navy); padding: 8px 14px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7rem 1.25rem; border: 2px solid transparent; border-radius: var(--radius);
	font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: .5rem .95rem; font-size: .95rem; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.linkish:hover { color: var(--accent-dark); }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--accent); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__mark, .brand__logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand__logo { width: auto; max-height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; }
.brand__tag { font-size: .8125rem; color: var(--on-navy); }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list a {
	display: block; padding: .55rem .8rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
	border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: #fff; border-bottom-color: var(--accent-bright); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a, .nav__list .current_page_parent > a { border-bottom-color: var(--accent-bright); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--radius); padding: 6px 8px; cursor: pointer; line-height: 0; }

@media (max-width: 980px) {
	.site-header__inner { flex-wrap: wrap; gap: 12px; }
	.nav-toggle { display: inline-block; }
	.nav { order: 3; flex-basis: 100%; display: none; justify-content: flex-start; padding-bottom: 12px; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
	.nav__list a:hover { border-bottom-color: rgba(255,255,255,.12); color: var(--accent-bright); }
}
@media (max-width: 520px) {
	.brand__tag { font-size: .6875rem; }
	.brand__name { font-size: 1rem; }
	.site-header__actions .btn--sm { padding: .45rem .7rem; font-size: .875rem; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.25rem); line-height: 1.15; margin-bottom: .45em; max-width: 16ch; }
.hero__text { color: var(--on-navy); font-size: 1.1875rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.quote { margin: 0 0 28px; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent-bright); max-width: 60ch; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 0 .35em; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.6; color: #fff; }
.quote figcaption { font-size: .875rem; font-weight: 600; color: var(--accent-bright); }
.quote__item { animation: quote-in .5s ease both; }
@keyframes quote-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { max-width: 420px; }
}

/* Answer sheet illustration */
.sheet { position: relative; margin: 0; }
.sheet__paper {
	background: var(--paper); color: var(--ink); border-radius: 8px; padding: 20px 22px 18px;
	box-shadow: 0 24px 48px rgba(0,0,0,.28); border-top: 6px solid var(--accent);
}
.sheet__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet__title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.sheet__timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.sheet__cat { font-size: .8125rem; color: var(--muted); margin: 2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sheet__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sheet__row { column-gap: 14px; }
.sheet__row { display: grid; grid-template-columns: 2.2em repeat(4, minmax(0, 46px)) 1.5em; justify-content: start; align-items: center; gap: 8px; }
.sheet__num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); font-size: .875rem; text-align: right; }
.bubble {
	display: grid; place-items: center; height: 22px; border: 1.5px solid #9AA6B6; border-radius: 50%;
	font-size: .6875rem; font-weight: 700; color: #7B8796; transition: background-color .25s, border-color .25s, color .25s;
}
.bubble.is-filled { background: var(--navy); border-color: var(--navy); color: #fff; }
.bubble.is-wrong { background: var(--accent); border-color: var(--accent); color: #fff; }
.bubble.is-key { border-color: var(--ok); color: var(--ok); border-width: 2px; }
.sheet__mark { width: 18px; height: 18px; }
.sheet__mark.is-ok::before { content: ""; display: block; width: 6px; height: 11px; margin: 1px 0 0 6px; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.sheet__mark.is-no::before { content: "\00d7"; display: block; color: var(--accent); font-weight: 700; font-size: 1.25rem; line-height: 18px; text-align: center; }
.sheet__foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
.sheet__foot > span:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet__bar { flex: 1; height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.sheet__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.sheet__score {
	position: absolute; right: -14px; bottom: -22px; background: var(--navy-deep); color: #fff;
	border: 2px solid var(--accent-bright); border-radius: 8px; padding: 10px 16px; text-align: center;
	box-shadow: 0 12px 24px rgba(0,0,0,.3); animation: quote-in .4s ease both;
}
.sheet__score-num { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sheet__score-label { font-size: .75rem; color: var(--on-navy); }
@media (max-width: 520px) { .sheet__score { right: 6px; } .sheet__paper { padding: 16px; } .sheet__row { gap: 6px; grid-template-columns: 2em repeat(4, minmax(0, 42px)) 1.5em; } }

/* Sections */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--tight { padding: clamp(36px, 4.5vw, 56px) 0; }
.section--mist { background: var(--mist); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__link { font-weight: 600; }
.empty { color: var(--muted); }

/* Article cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: #AEB9C7; }
.card__media { display: block; text-decoration: none; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder {
	display: flex; align-items: flex-end; height: 100%; padding: 18px 20px; color: #fff;
	background: var(--navy); border-bottom: 4px solid var(--accent);
	font-family: var(--serif); font-weight: 700; font-size: 1.125rem;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__title { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.35; margin: 6px 0 8px; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt {
	color: var(--muted); font-size: 1rem; margin: 0 0 14px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card__more:hover { text-decoration: underline; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .875rem; color: var(--muted); }
.meta__item { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { width: 16px; height: 16px; color: #7B8796; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 60px; }
.step::before {
	content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px;
	display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff;
	font-family: var(--serif); font-weight: 700; font-size: 1.125rem;
}
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -20px; height: 2px; background: var(--rule); }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 24px; } .step { padding: 0 0 0 60px; } }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split__intro p { color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.cats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.cats__item { padding: 18px 0; border-top: 1px solid var(--rule); }
.cats dt { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); font-size: 1.0625rem; line-height: 1.3; margin-bottom: 6px; }
.cats__num {
	flex-shrink: 0; display: grid; place-items: center; min-width: 36px; height: 28px; padding: 0 6px;
	border: 2px solid var(--navy); border-radius: 4px; font-family: var(--serif); font-size: .875rem;
}
.cats dd { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 640px) { .cats { grid-template-columns: 1fr; } }

.refs { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.refs li { padding: 16px 20px 16px 52px; position: relative; border-top: 1px solid var(--rule); font-weight: 600; color: var(--navy); }
.refs li:first-child { border-top: 0; }
.refs li::before {
	content: ""; position: absolute; left: 20px; top: 19px; width: 16px; height: 20px;
	border: 2px solid var(--accent); border-radius: 2px 3px 3px 2px; box-shadow: inset 4px 0 0 var(--accent);
}

/* CTA band */
.cta { background: var(--navy); color: #fff; padding: clamp(44px, 5vw, 64px) 0; border-top: 3px solid var(--accent); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: var(--on-navy); margin: 0; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page heads and prose */
.page-head { background: var(--mist); border-bottom: 1px solid var(--rule); padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 40px); }
.page-head h1 { margin-bottom: .3em; }
.page-head__intro { color: var(--muted); font-size: 1.1875rem; max-width: 60ch; margin: 0; }

.prose { font-size: 1.125rem; }
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); font-family: var(--serif); font-style: italic; color: var(--navy); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0 0 1.5em; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--mist); color: var(--navy); }
.prose code { background: var(--mist); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
.prose .alignwide { max-width: 960px; }
.prose .alignfull { max-width: none; }
.wp-block-image figcaption, .wp-caption-text { font-size: .875rem; color: var(--muted); }

/* Single article */
.article__head { padding: clamp(40px, 5vw, 64px) 0 24px; }
.article__head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); }
.article__cat { margin: 0 0 10px; font-weight: 600; }
.article__cat a { text-decoration: none; }
.article__image { margin-bottom: 32px; }
.article__image img { width: 100%; border-radius: var(--radius); display: block; }
/* Single article: two columns */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 5vw, 72px); align-items: start; padding-bottom: 56px; }
.article-layout__main { min-width: 0; }
.article-layout .article__head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.article-layout .prose > * { max-width: none; }
.article-layout .prose h2 { scroll-margin-top: 96px; }
.article-layout__side { align-self: stretch; padding-top: clamp(40px, 5vw, 64px); }
.side { position: sticky; top: var(--side-top, 96px); display: flex; flex-direction: column; gap: 20px; }
.admin-bar .side { --side-top: 128px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 14px; font-size: .9375rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs a:last-child { color: var(--accent); font-weight: 600; }

.side-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.side-card__heading { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.side-card--test { background: var(--navy); border-color: var(--navy); color: var(--on-navy); border-top: 4px solid var(--accent); padding: 22px 22px 18px; }
.side-card--test p { margin: 0 0 16px; font-size: 1rem; line-height: 1.55; }
.side-card__eyebrow { font-size: .8125rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); margin: 0 0 6px !important; }
.side-card__title { color: #fff; font-size: 1.375rem; margin: 0 0 10px; }
.side-card__note { font-size: .875rem !important; margin: 12px 0 0 !important; color: var(--on-navy); opacity: .85; text-align: center; }

.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc__list li { counter-increment: toc; margin: 0; }
.toc__list a { display: grid; grid-template-columns: 1.6em 1fr; gap: 4px; padding: 6px 0 6px 10px; border-left: 2px solid var(--rule); color: var(--muted); text-decoration: none; font-size: .9375rem; line-height: 1.4; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); color: var(--rule); font-variant-numeric: tabular-nums; font-size: .8125rem; padding-top: .1em; }
.toc__list a:hover { color: var(--navy); border-left-color: var(--navy-soft); }
.toc__list a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc__list a.is-active::before { color: var(--accent); }
.toc--inline { display: none; }

.latest__list { list-style: none; margin: 0 0 14px; padding: 0; }
.latest__list li { padding: 11px 0; border-top: 1px solid var(--rule); }
.latest__list li:first-child { border-top: 0; padding-top: 2px; }
.latest__list a { display: block; color: var(--navy); font-weight: 600; text-decoration: none; line-height: 1.35; font-size: .96875rem; }
.latest__list a:hover { color: var(--accent); }
.latest__meta { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.latest__all { font-weight: 600; text-decoration: none; font-size: .9375rem; }

@media (max-width: 1020px) {
	.article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.article-layout__side { padding-top: 8px; }
	.side { position: static; }
	.toc--side { display: none; }
	.toc--inline { display: block; margin: 0 0 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--mist); }
	.toc--inline summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); }
	.toc--inline .toc__list { padding: 0 18px 14px; }
	.side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 640px) { .side { grid-template-columns: 1fr; } }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.post-navigation a { text-decoration: none; font-weight: 600; color: var(--navy); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--navy); font-weight: 600; }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Pricing */
.plans__title { font-size: 1.5rem; margin-bottom: .25em; }
.plans__title--gap { margin-top: 56px; }
.plans__intro { color: var(--muted); margin-bottom: 24px; }
.plans { display: grid; gap: 22px; align-items: stretch; }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; margin-top: 20px; }
@media (max-width: 1100px) { .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans--4, .plans--2 { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.plan--popular { border: 2px solid var(--accent); box-shadow: 0 10px 28px rgba(14,39,71,.10); }
.plan__flag { position: absolute; top: -13px; left: 22px; margin: 0; padding: 2px 12px; background: var(--accent); color: #fff; border-radius: 4px; font-size: .8125rem; font-weight: 700; }
.plan__name { margin: 0 0 10px; color: var(--navy); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.plan__amount { font-family: var(--serif); font-weight: 700; font-size: 2.25rem; color: var(--navy); line-height: 1; }
.plan__term { color: var(--muted); font-size: .9375rem; }
.plan__summary { color: var(--ink); font-size: 1rem; margin-bottom: 14px; }
.plan__points { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--rule); flex: 1; }
.plan__points li { display: flex; gap: 8px; align-items: flex-start; font-size: .9875rem; margin-bottom: 8px; line-height: 1.45; }
.plan__points .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plans__note { margin-top: 32px; color: var(--muted); }

/* Forms */
.form .field { margin: 0 0 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 1rem; }
.form input[type="text"], .form input[type="email"], .form input[type="search"], .form select, .form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-form .search-field {
	width: 100%; padding: .7rem .85rem; border: 1.5px solid #AEB9C7; border-radius: var(--radius);
	font: 400 1.0625rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
}
.form input:focus, .form select:focus, .form textarea:focus, .comment-form input:focus, .comment-form textarea:focus, .search-form .search-field:focus {
	outline: 3px solid rgba(201,61,26,.35); outline-offset: 0; border-color: var(--accent);
}
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }
.field--hp { position: absolute !important; left: -9999px; }
.notice { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.notice--ok { background: #E6F2EC; color: var(--ok); }
.notice--error { background: #FBE9E4; color: var(--accent-dark); }
.contact-form { margin: 8px 0 32px; padding: 24px; border: 1px solid var(--rule); border-radius: 8px; max-width: 70ch; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 16px 0 24px; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: .7rem 1.1rem; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; font: 600 1rem var(--sans); cursor: pointer; }

/* Comments */
.comments { padding: 24px 0 48px; border-top: 1px solid var(--rule); }
.comments__list { list-style: none; padding: 0; }
.comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.comments__list .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: .875rem; color: var(--muted); }
.comment-reply-title { font-family: var(--serif); font-size: 1.375rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 32px 0 28px; font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.site-footer__note { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__note a { text-decoration: underline; }
.site-footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.site-footer__copy { margin: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* Sign-in dialog */
.login { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); width: 440px; color: var(--ink); }
.login::backdrop { background: rgba(9,26,49,.68); }
.login[open] .login__panel { animation: dialog-in .2s ease-out both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.login__panel { position: relative; background: var(--paper); border-radius: 10px; padding: 32px 28px 24px; border-top: 6px solid var(--accent); }
.login__close { position: absolute; top: 12px; right: 12px; background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; line-height: 0; border-radius: 4px; }
.login__close:hover { color: var(--navy); background: var(--mist); }
.login__head { margin-bottom: 20px; }
.login__head .brand__mark { margin-bottom: 14px; }
.login__head h2 { font-size: 1.5rem; margin-bottom: .3em; }
.login__head p { color: var(--muted); margin: 0; font-size: 1.0625rem; }
.login__hint { font-size: .9375rem; color: var(--muted); margin: -4px 0 18px; }
.login__sent { font-size: 1rem; margin-bottom: 14px; }
.login__code { font-size: 1.5rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 1.1em !important; }
.login__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; font-size: .9375rem; }
.login__links [data-resend-wait] { color: var(--muted); }
.login__msg { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius); font-size: .9375rem; background: var(--mist); color: var(--navy); }
.login__msg.is-error { background: #FBE9E4; color: var(--accent-dark); }
.login__msg.is-ok { background: #E6F2EC; color: var(--ok); }
.login__legal { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
.btn[disabled] { opacity: .65; cursor: wait; }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v1.1 home-only layout */
.site-header__inner { justify-content: space-between; }
.section__head--stack { display: block; }
.section__head--stack p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.plans--2 { margin-top: 22px; }
.contact-links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-links li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-links .icon { color: var(--navy); flex-shrink: 0; }
#contact .contact-form { margin: 0; background: var(--paper); max-width: none; }

/* v1.1: problem section and infographic */
.insight__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .insight__grid { grid-template-columns: 1fr; } }
.insight__copy p { color: var(--muted); font-size: 1.1875rem; }
.insight__copy h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); }

.chart { margin: 0; padding: 24px 24px 20px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.chart__head { display: block; margin-bottom: 18px; }
.chart__title { display: block; font-weight: 700; color: var(--navy); font-size: 1.0625rem; }
.chart__sub { display: block; color: var(--muted); font-size: .875rem; }
.chart__plot { position: relative; height: 200px; margin-left: 40px; }
.chart__grid span { position: absolute; left: 0; right: 0; border-top: 1px solid #E6EAF0; }
.chart__grid span:last-child { border-top-color: #AEB9C7; }
.chart__grid em { position: absolute; left: -40px; top: -9px; width: 34px; text-align: right; font-style: normal; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart__bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2px; align-items: end; }
.chart__col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; cursor: default; }
.chart__col:focus-visible .chart__bar, .chart__col:hover .chart__bar { filter: brightness(1.25); }
.chart__bar { display: block; width: min(56px, 60%); background: var(--navy); border-radius: 4px 4px 0 0; }
.chart__bar--latest { background: var(--accent); }
.chart__val { font-weight: 700; color: var(--ink); font-size: .9375rem; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.chart__x { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 0 40px; font-size: .8125rem; color: var(--muted); text-align: center; }
.chart__tip { position: absolute; z-index: 2; max-width: 240px; padding: 8px 10px; background: var(--navy-deep); color: #fff; border-radius: 6px; font-size: .8125rem; line-height: 1.4; pointer-events: none; transform: translate(-50%, -100%); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.chart__src { margin: 16px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }

.facts { margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts > div { padding: 14px 12px 0 0; }
.facts > div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.facts dt { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts dd { margin: 4px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) {
	.facts { grid-template-columns: 1fr 1fr; }
	.facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
	.facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 14px; }
	.chart { padding: 18px 16px 16px; }
}

/* Problem / solution table */
.fit__table { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); overflow: hidden; }
.fit__row { display: grid; grid-template-columns: 1fr 1fr; }
.fit__row + .fit__row { border-top: 1px solid var(--rule); }
.fit__row > * { padding: 20px 24px; }
.fit__row > :last-child { border-left: 1px solid var(--rule); display: flex; gap: 10px; align-items: flex-start; }
.fit__row > :last-child::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.5 14.2-4.2-4.2 1.4-1.4 2.8 2.8 6.3-6.3 1.4 1.4-7.7 7.7Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.5 14.2-4.2-4.2 1.4-1.4 2.8 2.8 6.3-6.3 1.4 1.4-7.7 7.7Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fit__row--head > * { padding-top: 12px; padding-bottom: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: .9375rem; }
.fit__row--head > :last-child { border-left-color: rgba(255,255,255,.15); }
.fit__row--head > :last-child::before { display: none; }
.fit__row h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.fit__row p { margin: 0; color: var(--muted); font-size: 1rem; }
.fit__row > :last-child p { color: var(--ink); }
@media (max-width: 720px) {
	.fit__row { grid-template-columns: 1fr; }
	.fit__row > :last-child { border-left: 0; padding-top: 0; }
	.fit__row--head { display: none; }
}

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--navy); font-size: 1.0625rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq__item p { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }

/* Text-only article cards */
.card--text { padding: 22px 22px 20px; border-top: 3px solid var(--navy); }
.card--text:hover { border-top-color: var(--accent); }
.card--text .card__title { margin-top: 10px; }

/* v1.2: signed-in app (dashboard) */
.is-app { background: var(--mist); }
.site-header--app .site-header__inner { min-height: 64px; }
.app-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.app-welcome { margin: 0; color: var(--on-navy); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-welcome strong { color: #fff; font-weight: 600; }
.app-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.app-nav__item {
	display: inline-flex; align-items: center; gap: 8px; padding: .5rem .75rem; border-radius: var(--radius);
	color: #fff; text-decoration: none; font: 600 .9375rem/1.2 var(--sans); background: none; border: 0; cursor: pointer;
}
.app-nav__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-nav__item.is-current { box-shadow: inset 0 -2px 0 var(--accent-bright); border-radius: 0; }
.app-nav__item .icon { width: 20px; height: 20px; }
@media (max-width: 720px) {
	.app-nav__item span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
	.app-nav__item { padding: .55rem; }
	.app-welcome { font-size: .875rem; max-width: 46vw; }
}

.app { padding: clamp(28px, 4vw, 48px) 0 64px; min-height: calc(100vh - 140px); }
.app-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: 20px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; align-items: start; }
.app-grid + .panel { margin-bottom: 24px; }
@media (min-width: 901px) { .app-grid .refer-panel { grid-row: span 2; } }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; }
.panel--narrow { max-width: 520px; margin: 24px auto; border-top: 6px solid var(--accent); padding: 32px 28px; }
.panel__title { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 16px; }
.panel--narrow .panel__title { font-size: 1.6rem; }
.panel--narrow p { color: var(--muted); }

.app-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--rule); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form input[type="tel"], .form input[type="url"] {
	width: 100%; padding: .7rem .85rem; border: 1.5px solid #AEB9C7; border-radius: var(--radius);
	font: 400 1.0625rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
}
.form input[readonly] { background: var(--mist); color: var(--muted); border-color: var(--rule); }
.form input[aria-invalid="true"] { border-color: var(--accent); }
.req { color: var(--accent); }
.field__error { display: block; margin-top: 6px; color: var(--accent-dark); font-size: .875rem; font-weight: 600; }
.field__note { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__status { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--accent-dark); }

.plan-facts { margin: 0 0 20px; }
.plan-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.plan-facts dt { color: var(--muted); font-size: .9375rem; }
.plan-facts dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.plan-panel__actions { display: grid; gap: 10px; }
.plan-panel__actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.plan-panel__note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.empty-note { margin: 0; color: var(--muted); }

.site-footer--app { padding: 20px 0; text-align: center; }

/* v1.3: mock tests */
.btn--ghost-navy { background: var(--paper); color: var(--navy); border-color: #AEB9C7; }
.btn--ghost-navy:hover { border-color: var(--navy); color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--mist); color: var(--navy); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.tag--ok { background: #E6F2EC; color: var(--ok); }
.tag--warn { background: #FBE9E4; color: var(--accent-dark); }
.chip { padding: .35rem .8rem; border: 1.5px solid #AEB9C7; border-radius: 999px; background: var(--paper); color: var(--navy); font: 600 .875rem/1.2 var(--sans); cursor: pointer; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Dashboard history */
.history { overflow-x: auto; }
.history__table { width: 100%; border-collapse: collapse; font-size: .9875rem; }
.history__table th, .history__table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.history__table th { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.history__actions { white-space: nowrap; text-align: right; }
.history__actions a { font-weight: 600; margin-left: 14px; }
.history__pdf { display: inline-block; padding: 1px 8px; border: 1.5px solid var(--accent); border-radius: 4px; text-decoration: none; font-size: .8125rem; }

/* Choose */
.resume-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px; }
.resume-banner p { margin: 0; }
.choose-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .choose-grid { grid-template-columns: 1fr 1fr; } .choose-card--main { grid-column: 1 / -1; } }
@media (max-width: 640px) { .choose-grid { grid-template-columns: 1fr; } }
.choose-card { display: flex; flex-direction: column; align-items: flex-start; }
.choose-card--main { border-top: 4px solid var(--accent); }
.choose-card p { color: var(--muted); font-size: 1rem; }
.choose-card__meta { font-weight: 700; color: var(--navy) !important; margin-bottom: 8px; }
.choose-card .field { width: 100%; }
.choose-card select { width: 100%; padding: .6rem .7rem; border: 1.5px solid #AEB9C7; border-radius: var(--radius); font: 400 1rem var(--sans); background: var(--paper); }
.choose-card__note { margin: 12px 0 0; font-size: .875rem !important; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; width: min(520px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(9,26,49,.6); }
.modal__panel { background: var(--paper); border-radius: 10px; padding: 26px 26px 22px; border-top: 6px solid var(--accent); }
.modal__list { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink); }
.modal__list li { margin-bottom: 8px; font-size: 1rem; }
.modal__list li:empty { display: none; }
.modal__note { color: var(--muted); font-size: .9375rem; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Exam */
.is-testing .app--test { padding-top: 0; }
.is-testing .app { background: var(--mist); }
.exam-bar { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 2px 8px rgba(14,39,71,.06); }
.admin-bar .exam-bar { top: 32px; }
.exam-bar__inner { display: flex; align-items: center; gap: 12px 24px; min-height: 58px; flex-wrap: wrap; }
.exam-bar__inner p { margin: 0; }
.exam-bar__title { font-family: var(--serif); font-weight: 700; color: var(--navy); }
.exam-bar__pos { color: var(--muted); font-size: .9375rem; }
.exam-bar__timer { margin-left: auto !important; font: 700 1.25rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--navy); padding: 6px 12px; border: 2px solid var(--rule); border-radius: 6px; }
.exam-bar__timer.is-low { color: var(--accent-dark); border-color: var(--accent); background: #FBE9E4; }
.exam-bar__save { font-size: .8125rem; color: var(--muted); min-width: 10ch; }
.exam-bar__save.is-ok { color: var(--ok); }
.exam-bar__save.is-warn { color: var(--accent-dark); font-weight: 600; }
@media (max-width: 720px) {
	.exam-bar__inner { gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
	.exam-bar__title { width: 100%; font-size: .9375rem; }
	.exam-bar__save { display: none; }
	.exam-bar__timer { font-size: 1.0625rem; }
}

.exam { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 24px; padding-bottom: 32px; align-items: start; }
@media (max-width: 960px) { .exam { grid-template-columns: 1fr; } .exam__nav { order: -1; } }
.exam__main { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 24px clamp(18px, 3vw, 32px) 20px; }
.exam__cat { margin: 0 0 14px; font-size: .875rem; font-weight: 700; color: var(--accent-dark); }
.exam__keys { margin: 14px 0 0; font-size: .8125rem; color: var(--muted); }
@media (hover: none) { .exam__keys { display: none; } }

.exhibit { margin: 0 0 20px; padding: 14px; background: var(--mist); border: 1px solid var(--rule); border-radius: 6px; }
.exhibit__label { margin: 0 0 10px; font-size: .875rem; font-weight: 700; color: var(--navy); }
.exhibit__img { display: block; background: #fff; border: 1px solid var(--rule); }
.exhibit__img img { display: block; width: 100%; height: auto; }
.exhibit__text { margin-top: 10px; font-size: .9375rem; }
.exhibit__text summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.exhibit__text pre { white-space: pre-wrap; font: .875rem/1.5 ui-monospace, Consolas, monospace; background: #fff; padding: 12px; border: 1px solid var(--rule); border-radius: 4px; }

.question { border: 0; margin: 0; padding: 0; min-width: 0; }
.question__stem { padding: 0; margin: 0 0 18px; font-size: 1.125rem; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.question__num { font-weight: 700; color: var(--navy); }
.options { display: grid; gap: 10px; }
.option { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 8px; cursor: pointer; background: var(--paper); transition: border-color .12s, background-color .12s; }
.option:hover { border-color: #AEB9C7; background: #FAFBFC; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option:focus-within { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.option__letter { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid #AEB9C7; border-radius: 50%; font-weight: 700; color: var(--navy); font-size: .9375rem; flex-shrink: 0; }
.option__text { padding-top: 3px; font-size: 1.0625rem; line-height: 1.5; }
.option.is-selected { border-color: var(--navy); background: #EEF2F8; }
.option.is-selected .option__letter { background: var(--navy); border-color: var(--navy); color: #fff; }
.option-clear { justify-self: start; font-size: .875rem; margin-top: 2px; }
.exam__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.flag-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); cursor: pointer; }
.flag-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

.exam__nav { position: sticky; top: 76px; }
.navgrid { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 14px; }
.navgrid summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .9375rem; }
.navgrid summary span { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.navgrid__cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; margin-top: 12px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.cell { height: 34px; border: 1.5px solid #AEB9C7; border-radius: 5px; background: var(--paper); color: var(--navy); font: 600 .8125rem var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.cell:hover { border-color: var(--navy); }
.cell--answered { background: var(--navy); border-color: var(--navy); color: #fff; }
.cell--flagged::after { content: ""; position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--accent) transparent transparent; border-top-right-radius: 4px; }
.cell--current { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent-bright); }
.navgrid__legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8125rem; color: var(--muted); }
.navgrid__legend li { display: inline-flex; align-items: center; gap: 6px; }
.cell-key { width: 14px; height: 14px; border: 1.5px solid #AEB9C7; border-radius: 3px; display: inline-block; position: relative; }
.cell-key--answered { background: var(--navy); border-color: var(--navy); }
.cell-key--flagged::after { content: ""; position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent var(--accent) transparent transparent; }

/* Result */
.result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.result-head .app-title { margin-bottom: 4px; }
.result-head__meta { margin: 0; color: var(--muted); font-size: .9375rem; }
.result-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; margin-bottom: 28px; align-items: start; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }
.score-card__pct { margin: 0; font: 700 3.25rem/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.score-card__verdict { margin: 8px 0 16px; font-weight: 700; font-size: 1.125rem; }
.score-card__verdict.is-pass { color: var(--ok); }
.score-card__verdict.is-fail { color: var(--accent-dark); }
.score-card__detail { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; }
.score-meter { position: relative; height: 10px; background: var(--mist); border-radius: 5px; }
.score-meter > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.score-meter > span.is-pass { background: var(--ok); }
.score-meter > span.is-fail { background: var(--accent); }
.score-meter__mark { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--navy); }
.bycat { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bycat th, .bycat td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.bycat thead th { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.bycat tbody th { font-weight: 600; color: var(--navy); }
.bycat td:last-child { white-space: nowrap; }
.bycat__bar { display: inline-block; width: 70px; height: 6px; margin-right: 8px; background: var(--mist); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.bycat__bar span { display: block; height: 100%; background: var(--navy); }

.review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.review__head .panel__title { margin: 0; }
.review__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.review__exhibit { margin: 0 0 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; }
.review__exhibit img { display: block; width: 100%; height: auto; }
.review__exhibit figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.rq { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; }
.rq--right { border-left-color: var(--ok); }
.rq--wrong, .rq--blank { border-left-color: var(--accent); }
.rq__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rq__num { font-weight: 700; color: var(--navy); }
.rq__cat { color: var(--muted); font-size: .875rem; margin-right: auto; }
.rq__stem { white-space: pre-line; margin-bottom: 12px; }
.ropts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ropt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 6px; font-size: 1rem; }
.ropt em { font-style: normal; font-size: .8125rem; font-weight: 700; white-space: nowrap; padding-top: 4px; }
.ropt .option__letter { width: 26px; height: 26px; font-size: .8125rem; }
.ropt--key { background: #E6F2EC; }
.ropt--key em { color: var(--ok); }
.ropt--key .option__letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.ropt--wrong { background: #FBE9E4; }
.ropt--wrong em { color: var(--accent-dark); }
.ropt--wrong .option__letter { background: var(--accent); border-color: var(--accent); color: #fff; }
.rq__why { padding: 12px 14px; background: var(--mist); border-radius: 6px; font-size: .9375rem; }
.rq__why p { margin: 0 0 6px; }
.rq__why p:last-child { margin: 0; }
.rq__why a { word-break: break-all; }
.rq__ed { color: var(--muted); }
.rq__meta { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }

@media (max-width: 560px) {
	.exam__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.exam__actions .flag-toggle { grid-column: 1 / -1; order: -1; }
	.exam__main { padding: 18px 16px; }
	.option { padding: 10px 12px; gap: 10px; }
}

/* ---------- Theme 1.4.0: audit fixes ---------- */

/* Footer stays at the bottom of short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }

/* Hero on phones: headline first, quote after the buttons, full-width buttons, no answer sheet */
@media (max-width: 640px) {
	.hero__copy { display: flex; flex-direction: column; }
	.hero__copy .quote { order: 5; margin: 28px 0 0; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__art { display: none; }
}

/* Cards: the whole card is the link */
.card--text { position: relative; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card--text:focus-within { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.card__more { color: var(--accent); }
.card--text:hover .card__more { text-decoration: underline; }
.card--text:hover .card__title a { color: var(--accent); }

/* Bigger tap targets */
.section__link, .latest__all { display: inline-flex; align-items: center; min-height: 44px; }
.section__more { margin: 32px 0 0; text-align: center; }
@media (max-width: 620px) {
	.btn--block-sm { width: 100%; }
	.section--latest .section__head .section__link { display: none; }
	.section--latest .cards > :nth-child(n+4) { display: none; }
}

/* Blog: start-here panel */
.start-here { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); border-top: 4px solid var(--accent); padding: clamp(22px, 3vw, 32px); margin-bottom: 36px; }
.start-here__eyebrow { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); }
.start-here__title { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem); margin: 0 0 8px; }
.start-here__title a { color: #fff; text-decoration: none; }
.start-here__title a:hover { text-decoration: underline; }
.start-here__lead p { margin: 0; }
.start-here__list { list-style: none; margin: 0; padding: 0; }
.start-here__list li { border-top: 1px solid rgba(255,255,255,.14); }
.start-here__list li:first-child { border-top: 0; }
.start-here__list a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: #fff; font-weight: 600; text-decoration: none; }
.start-here__list a::after { content: "\2192"; margin-left: auto; padding-left: 12px; color: var(--accent-bright); }
.start-here__list a:hover { color: var(--accent-bright); }
@media (max-width: 760px) { .start-here { grid-template-columns: 1fr; } }

/* Article: Quick facts box */
.prose .quick-facts { margin: 0 0 1.6em; padding: 18px 22px 8px; background: var(--mist); border: 1px solid var(--rule); border-left: 4px solid var(--navy); border-radius: var(--radius); }
.prose .quick-facts__title { margin: 0 0 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.prose .quick-facts ul { margin: 0 0 .6em; }
.prose .quick-facts li { font-size: 1.0625rem; }

/* Article: tables scroll inside their own box */
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { margin: 0; }
.prose .table-wrap:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
@media (max-width: 600px) {
	.prose .table-wrap--wide table { min-width: 480px; }
	.prose .table-wrap--wide::after { content: "Swipe to see all columns \2192"; display: block; position: sticky; left: 0; padding-top: 6px; font-size: .8125rem; color: var(--muted); }
	.prose table { font-size: .9375rem; }
}

/* 404 */
.notfound__head { font-size: 1.25rem; margin: 32px 0 10px; }
.notfound__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.notfound__list a { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--navy); font-weight: 600; text-decoration: none; }
.notfound__list a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer: three columns, then the legal bar */
.site-footer__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand { margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: #fff; }
.site-footer__cols .site-footer__note { margin: 0; padding: 0; border: 0; max-width: 46ch; }
.site-footer__head { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 760px) {
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
	.footer__links a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Screen-reader-only tables still take width in some browsers: hide them as a block */
table.screen-reader-text { display: block; width: 1px; height: 1px; overflow: hidden; }

/* 1.4.1: long words (an email address) must not widen two-column sections on small phones */
.split > * { min-width: 0; }
.contact-links a, .site-footer__note, .prose a { overflow-wrap: anywhere; }

/* site-drop-2 (theme 1.5.0): Message Us, Delete account */
.btn--danger { background: var(--paper); color: var(--accent-dark); border-color: var(--accent); }
.btn--danger:hover { background: #FBEAE5; color: var(--accent-dark); }
.btn--danger:disabled { opacity: .55; cursor: not-allowed; }
.panel textarea { width: 100%; min-height: 110px; padding: .6em .75em; border: 1px solid #9AA6B5; border-radius: var(--radius); font: inherit; line-height: 1.5; resize: vertical; }
.panel textarea:focus { outline: 3px solid rgba(242,107,58,.45); border-color: var(--navy); }
.msg-list { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.msg-list__title { font-size: 1rem; margin: 0 0 8px; }
.msg-list__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 420px; overflow-y: auto; }
.msg { margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--mist); }
.msg p { margin: 0 0 .35em; overflow-wrap: anywhere; font-size: 1rem; }
.msg-meta { font-size: .8125rem !important; color: var(--muted); }
.msg-reply { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--navy); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.delete-panel p { color: var(--muted); }
.del-list { margin: 0 0 16px; padding-left: 1.2em; color: var(--ink); }
.del-list li { margin-bottom: .35em; }
.del-check { display: flex; gap: .5rem; align-items: center; margin: 0 0 16px; font-weight: 600; cursor: pointer; }
.del-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.sandbox-flag { display: inline-block; margin-left: .5rem; padding: .1em .55em; border-radius: 4px; background: #FFF4DB; color: #7A4B00; font: 700 .75rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }

/* engine-drop-4 (theme 1.6.0): buying plans */
.buy { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 0; border-radius: 10px; border-top: 6px solid var(--accent); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.buy::backdrop { background: rgba(9,26,49,.6); }
.buy__inner { position: relative; padding: 26px 24px 22px; }
.buy h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 12px; padding-right: 36px; }
.buy__test { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; background: #FFF4DB; color: #7A4B00; font-size: .9375rem; font-weight: 600; }
.buy__closed { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; background: var(--mist); color: var(--muted); }
.buy__plans { border: 0; margin: 0 0 14px; padding: 0; }
.buy__plans legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.buy-plan { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; margin-bottom: 8px; border: 2px solid var(--rule); border-radius: 8px; cursor: pointer; }
.buy-plan:has(input:checked) { border-color: var(--accent); background: #FFF8F5; }
.buy-plan input { width: 18px; height: 18px; accent-color: var(--accent); grid-row: span 2; }
.buy-plan__name { font-weight: 700; color: var(--navy); }
.buy-plan__price { font-weight: 700; font-size: 1.125rem; color: var(--ink); text-align: right; }
.buy-plan__gives { grid-column: 2 / 4; font-size: .875rem; color: var(--muted); }
.buy__pay-label { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.buy__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buy__actions .btn { flex: 1 1 180px; }
.btn--paypal { background: #FFC439; color: #111; }
.btn--paypal:hover { background: #F2B42A; color: #111; }
.buy__note { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); }
.pay-status { margin: 0 0 18px; padding: 12px 16px; border-radius: 8px; border-left: 4px solid var(--navy-soft); background: #E8EEF6; }
.pay-status--ok { border-color: var(--ok); background: #E7F3EC; color: #14472E; }
.pay-status--error { border-color: var(--accent); background: #FBEAE5; color: #6E1F0D; }
.pay-status--info { border-color: #C98A00; background: #FFF4DB; color: #7A4B00; }

/* engine-drop-5 (theme 1.7.0): referrals */
.refer-panel p { color: var(--muted); }
.refer-rules { margin: 0 0 14px; padding-left: 1.2em; font-size: 1rem; }
.refer-rules li { margin-bottom: .2em; }
.refer-link { display: flex; gap: 8px; margin-bottom: 8px; }
.refer-link input { flex: 1; min-width: 0; min-height: 44px; padding: .5em .7em; border: 1px solid #9AA6B5; border-radius: var(--radius); font: inherit; background: var(--mist); }
.refer-list { margin: 10px 0 0; padding-left: 1.2em; font-size: .9375rem; }
.refer-list .muted { color: var(--muted); }
.buy-plan__was { color: var(--muted); font-weight: 400; font-size: .9375rem; }
.buy-plan__deal { color: var(--ok); }

/* Contact form human check (1.8.0): the sum and the Send button share one row */
.contact-form__send { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.hc { display: flex; align-items: center; gap: 10px; margin: 0; }
.form .hc__label { display: inline; margin: 0; font-size: 1.125rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.form input.hc__input { width: 4.5rem; flex: none; padding-left: .4rem; padding-right: .4rem; text-align: center; font-weight: 600; }
@media (max-width: 420px) {
	#contact .contact-form { padding: 16px; }
	.contact-form__send { gap: 12px; }
}
.hc.is-wrong .hc__input { border-color: var(--accent); }
.hc__note { margin-top: 8px; }
.hc__note.is-error { color: var(--accent-dark); font-weight: 600; }

/* Legal pages (1.9.0): Terms, Privacy, Refund, Disclaimer */
.legal-head { background: var(--navy); color: #fff; padding: clamp(32px, 5vw, 60px) 0 clamp(28px, 4vw, 44px); }
.legal-head h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.875rem); margin: 12px 0 12px; }
.legal-head__intro { color: var(--on-navy); font-size: 1.1875rem; line-height: 1.55; max-width: 62ch; margin: 0 0 26px; }
.legal-head__meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.legal-head__meta dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); }
.legal-head__meta dd { margin: 3px 0 0; font-weight: 600; color: #fff; }
.crumbs--light { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--on-navy); }
.crumbs--light a { color: var(--on-navy); text-decoration: none; }
.crumbs--light a:hover { color: #fff; text-decoration: underline; }

.legal-tabs { background: var(--paper); border-bottom: 1px solid var(--rule); }
.legal-tabs__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.legal-tabs__list::-webkit-scrollbar { display: none; }
.legal-tabs__link { display: block; padding: 16px 14px 13px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.legal-tabs__link:hover { color: var(--navy); border-bottom-color: var(--rule); }
.legal-tabs__link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }

.legal-body { background: var(--mist); }
.legal-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: clamp(28px, 4vw, 48px); padding-bottom: 72px; }
.legal-layout__side { align-self: stretch; }
.legal-doc { min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 4vw, 56px); box-shadow: 0 1px 3px rgba(14,39,71,.05); }
.legal-prose { counter-reset: legal; font-size: 1.0625rem; }
.legal-prose > * { max-width: 72ch; }
.legal-prose h2 { counter-increment: legal; display: flex; gap: .55em; align-items: baseline; font-size: 1.375rem; margin: 2em 0 .6em; padding-top: 1.3em; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.legal-prose h2::before { content: counter(legal) "."; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 1.3em; }
.legal-prose h3 { font-family: var(--sans); font-size: 1.0625rem; margin: 1.5em 0 .4em; }
.legal-prose li { margin-bottom: .4em; }
.legal-summary { background: var(--mist); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 20px 24px 14px; margin: 0 0 32px; }
.legal-summary__title { font-size: .8125rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px !important; }
.legal-summary ul { margin: 0; padding-left: 1.15rem; }
.legal-summary li { margin-bottom: .45em; color: var(--ink); }
.legal-notice { background: var(--mist); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; margin: 0 0 1.2em; }
.legal-notice p { margin: 0; font-size: .875rem; line-height: 1.65; letter-spacing: .01em; }
.legal-prose .legal-table { width: 100%; max-width: none; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; margin: 0 0 1.5em; border: 1px solid var(--rule); }
.legal-table th { text-align: left; background: var(--navy); color: #fff; padding: 10px 14px; font-weight: 600; }
.legal-table td { padding: 11px 14px; border-top: 1px solid var(--rule); vertical-align: top; }
.legal-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.legal-table td:first-child { font-weight: 600; color: var(--navy); }
.legal-doc__foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.legal-doc__foot p { margin: 0 0 4px; }
.legal-contact p { margin: 0 0 12px; color: var(--muted); font-size: .9375rem; }
.legal-contact__mail { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy) !important; overflow-wrap: anywhere; }
.legal-contact__mail .icon { flex-shrink: 0; color: var(--navy); }

@media (max-width: 1020px) {
	.legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.legal-layout__side { order: 2; }
	.legal-toc-inline { background: var(--paper); }
}
@media (max-width: 640px) {
	.legal-doc { border-radius: 8px; }
	.legal-prose h2 { font-size: 1.25rem; }
	.legal-prose .legal-table { display: block; overflow-x: auto; }
	.legal-head__meta { gap: 12px 28px; }
}
@media print {
	.site-header, .site-footer, .legal-tabs, .legal-layout__side, .legal-toc-inline, .skip-link { display: none !important; }
	.legal-head, .legal-body { background: none; color: #000; padding: 0; }
	.legal-head h1, .legal-head__meta dd { color: #000; }
	.legal-head__intro, .crumbs--light { display: none; }
	.legal-head__meta dt { color: #444; }
	.legal-layout { display: block; padding: 0; }
	.legal-doc { border: 0; box-shadow: none; padding: 0; }
	.legal-prose h2 { break-after: avoid; }
	.legal-table th { background: #eee; color: #000; }
}

/* Recorded acceptance (1.9.0): sign-in notice and checkout checkbox */
.buy__agree { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 16px; padding: 12px 14px; background: var(--mist); border: 1px solid var(--rule); border-radius: var(--radius); font-size: .9375rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.buy__agree input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--navy); }

/* 1.9.2: phone and postal address */
address { font-style: normal; }
.contact-links .contact-links__address { align-items: flex-start; }
.contact-links .contact-links__address .icon { margin-top: 2px; }
.contact-links__addr { font-weight: 600; line-height: 1.5; color: var(--ink); }
.site-footer__addr { margin: 14px 0 6px; line-height: 1.55; color: var(--on-navy); font-size: .9375rem; }
.site-footer__reach { margin: 0; font-size: .9375rem; }
.legal-contact__addr { margin: 0 0 14px; padding-left: 28px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

/* ---------- Theme 1.9.5: test-payment guide ---------- */
.test-guide { margin: 0 0 24px; padding: 20px 24px; background: #FFF8E6; border: 1px solid #F0D48A; border-left: 6px solid #E0A100; border-radius: 8px; }
.test-guide__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.test-guide__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #7A4B00; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.test-guide__title { margin: 0; font-size: 1.25rem; color: var(--navy); }
.test-guide__lead { margin: 0 0 10px; color: #4A3A12; }
.test-guide__steps { margin: 0 0 16px; padding-left: 1.3em; color: #3B2F10; }
.test-guide__steps li { margin: 2px 0; }
.test-guide__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.test-card { background: #fff; border: 1px solid #EBD9A6; border-radius: 8px; padding: 14px 16px; }
.test-card__label { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.test-card__list { margin: 0; }
.test-card__list > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 0; border-top: 1px solid #F3E9CC; }
.test-card__list > div:first-child { border-top: 0; }
.test-card__list dt { flex: 0 0 96px; font-size: .875rem; color: #5B5240; }
.test-card__list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.test-guide code, .buy__test code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; font-weight: 700; background: #FFF4DB; color: #1B1B1B; padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; white-space: nowrap; }
.test-guide code[data-tg="pp-email"], .buy__test code[data-tg="pp-email"] { white-space: normal; }
.test-card__hint { font-size: .8125rem; color: #6B6150; }
.test-card__note { margin: 10px 0 0; font-size: .8125rem; color: #6B6150; }
.test-guide__foot { margin: 14px 0 0; font-size: .8125rem; color: #7A4B00; font-weight: 600; }
.copy-btn { padding: 3px 10px; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 4px; font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.copy-btn:hover, .copy-btn:focus-visible { background: var(--navy); color: #fff; }
.buy__test p { margin: 0 0 4px; }
.buy__test p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .test-guide { padding: 16px; } .test-card__list dt { flex-basis: 100%; } }
