/* ==========================================================================
   Learn Index — compiled theme styles
   Source of truth: brand guide (growth-ring mark, moss/slate/rust accents)
   ========================================================================== */

:root {
	--paper: #FBFBF7;
	--card: #FFFFFF;
	--ink: #211E18;
	--ink-soft: #5C594E;
	--ink-faint: #8D8A7C;
	--line: #E6E3D9;
	--line-strong: #D3CFC0;

	--green: #3C6E47;
	--green-soft: #E6EEE4;
	--green-strong: #2A4F33;
	--blue: #3B6A80;
	--blue-soft: #E4EDF0;
	--blue-strong: #294C5C;
	--rust: #A8452F;
	--rust-soft: #F5E3DC;
	--rust-strong: #7C3524;
	--danger: #96691F;

	--shadow: 0 1px 2px rgba(33, 30, 24, .05), 0 10px 30px rgba(33, 30, 24, .06);
	--radius: 14px;
	--font-display: 'Lexend', -apple-system, 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--content-width: 760px;
	--wide-width: 1120px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #17140F;
		--card: #211D16;
		--ink: #F1EEE6;
		--ink-soft: #B8B3A4;
		--ink-faint: #83806F;
		--line: #332D22;
		--line-strong: #463F30;
		--green: #7FBF8C;
		--green-soft: #1E2B20;
		--green-strong: #A6D6AE;
		--blue: #7FB8CE;
		--blue-soft: #1B2A30;
		--blue-strong: #A9D3E1;
		--rust: #E08A6E;
		--rust-soft: #301C15;
		--rust-strong: #F0B39C;
		--danger: #D9AC5C;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
	}
}

:root[data-theme="dark"] {
	--paper: #17140F;
	--card: #211D16;
	--ink: #F1EEE6;
	--ink-soft: #B8B3A4;
	--ink-faint: #83806F;
	--line: #332D22;
	--line-strong: #463F30;
	--green: #7FBF8C;
	--green-soft: #1E2B20;
	--green-strong: #A6D6AE;
	--blue: #7FB8CE;
	--blue-soft: #1B2A30;
	--blue-strong: #A9D3E1;
	--rust: #E08A6E;
	--rust-soft: #301C15;
	--rust-strong: #F0B39C;
	--danger: #D9AC5C;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- base ---------- */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.65;
	font-size: 16px;
}

/* Ragged-right, never justified. Reinforced everywhere, no exceptions. */
p,
li,
blockquote {
	text-align: left;
	letter-spacing: .01em;
	max-width: 75ch;
}

::selection {
	background: var(--green-soft);
	color: var(--ink);
}

a {
	color: var(--blue);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0 0 .5em;
	line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.mono {
	font-family: var(--font-mono);
}

button {
	font-family: inherit;
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* No sentence-length all-caps anywhere in the theme's own chrome. */

img {
	border-radius: 8px;
}

.wrap {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 24px;
}

.content-narrow {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- skip link ---------- */
.skip-link {
	position: absolute;
	left: -999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 9999;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
	top: 0;
	width: auto;
	height: auto;
}

/* ---------- top bar / header ---------- */
header.top {
	position: sticky;
	top: 0;
	z-index: 30;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.top-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.wordmark {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	min-height: 44px;
}

.wordmark svg {
	width: 26px;
	height: 26px;
	flex: none;
}

.wordmark-text {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.12rem;
	letter-spacing: -0.01em;
}

.wordmark-text .learn { color: var(--ink); }
.wordmark-text .dot { color: var(--ink-faint); padding: 0 1px; }
.wordmark-text .index { color: var(--green); }

.top-nav {
	display: flex;
	gap: 2px;
	margin-left: auto;
	flex-wrap: wrap;
	align-items: center;
}

.top-nav ul {
	list-style: none;
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.top-nav a {
	font-size: .85rem;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	padding: 11px 14px;
	border-radius: 999px;
	letter-spacing: .01em;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
	background: var(--green-soft);
	color: var(--green-strong);
}

.theme-btn,
.menu-toggle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: var(--card);
	cursor: pointer;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-soft);
	flex: none;
}

.menu-toggle {
	border-radius: 10px;
	display: none;
}

/* ---------- theme toggle — minimal circular contrast icon, in the style
   of thecollector.com's dark/light switch: a plain half-filled circle
   rather than an emoji, rotating a half-turn between the two states. ---------- */
.theme-btn {
	padding: 0;
	color: var(--ink);
	transition: background-color .2s ease, border-color .2s ease;
}

.theme-btn:hover,
.theme-btn:focus-visible {
	background: var(--green-soft);
	border-color: transparent;
	color: var(--green-strong);
}

.theme-btn svg {
	width: 20px;
	height: 20px;
	flex: none;
	transition: transform .35s ease;
}

:root[data-theme="dark"] .theme-btn svg {
	transform: rotate(180deg);
}

/* ---------- masthead (front page) ---------- */
.masthead {
	padding: 56px 0 40px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 16px;
}

.eyebrow .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
}

.masthead h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.15rem);
	max-width: 22ch;
}

.masthead .dek {
	color: var(--ink-soft);
	font-size: 1.1rem;
	max-width: 60ch;
	margin-top: 14px;
}

.masthead .actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
}

/* ---------- buttons ---------- */
.btn {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: .92rem;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

.btn-primary {
	background: var(--green);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--green-strong);
	color: #fff;
}

.btn-secondary {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: var(--card);
}

.btn-ghost {
	background: transparent;
	color: var(--blue);
	border-color: transparent;
	padding-left: 8px;
	padding-right: 8px;
}

/* White-background button — used beside .btn-primary on the hero, where
   the background is a soft color wash rather than plain white, so a
   white pill reads as a clear second, lower-emphasis action. Text/border
   are fixed dark tones (not the --ink token) so the button stays legible
   against its own white background even in dark mode, where --ink flips
   to a near-white color that would otherwise vanish on white. */
.btn-white {
	background: #fff;
	color: #211E18;
	border-color: #D3CFC0;
}

.btn-white:hover,
.btn-white:focus-visible {
	background: #F5F4EF;
	border-color: #8D8A7C;
	color: #211E18;
}

/* ---------- hero (front page) ---------- */
.hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: calc(100vh - 65px);
	width: 100%;
	background:
		radial-gradient(620px circle at 10% 18%, color-mix(in srgb, var(--green) 28%, transparent), transparent 68%),
		radial-gradient(580px circle at 58% 0%, color-mix(in srgb, var(--blue) 24%, transparent), transparent 70%),
		radial-gradient(520px circle at 96% 34%, color-mix(in srgb, var(--rust) 23%, transparent), transparent 72%),
		linear-gradient(180deg, color-mix(in srgb, var(--paper) 78%, #fff 22%), color-mix(in srgb, var(--paper) 70%, var(--line) 30%));
}

.hero::before {
	content: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
	gap: clamp(36px, 6vw, 72px);
	align-items: center;
	width: 100%;
	padding-top: clamp(64px, 9vh, 112px);
	padding-bottom: clamp(64px, 9vh, 112px);
}

.hero-copy h1 {
	max-width: 18ch;
	font-size: clamp(2.35rem, 5vw, 4.55rem);
	line-height: .98;
}

.hero-copy .dek {
	color: var(--ink-soft);
	font-size: clamp(1.08rem, 1.4vw, 1.24rem);
	max-width: 52ch;
	margin-top: 20px;
}

.hero-copy .actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 32px;
}

.hero-copy .actions .btn-primary {
	box-shadow: 0 10px 28px color-mix(in srgb, var(--green) 35%, transparent);
}

.hero-visual {
	display: flex;
	justify-content: flex-end;
}

/* ---------- LearnIndex Score widget (interactive demo on the hero) ----------
   Sized 20% larger than the base component scale (320px card → 384px, and
   every inner measurement scaled to match) so it reads as the hero's focal
   point. */
.score-widget {
	position: relative;
	background: var(--card);
	border: 1.5px solid var(--line-strong);
	border-radius: 36px;
	box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 13%, transparent);
	padding: 46px 38px 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 430px;
	width: 100%;
	overflow: hidden;
}

.score-widget::before {
	content: "";
	position: absolute;
	top: 0;
	left: 34px;
	right: 34px;
	height: 7px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--green), var(--blue), var(--rust));
}

.score-widget-eyebrow {
	font-family: var(--font-mono);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 12px;
}

.score-widget-figure {
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.score-widget-value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 3.6rem;
	color: var(--ink);
	line-height: 1;
}

.score-widget-max {
	font-family: var(--font-mono);
	color: var(--ink-faint);
	font-size: 1.26rem;
}

.score-widget .score-band-pill {
	margin-top: 14px;
	background: var(--line);
	color: var(--ink-soft);
	font-size: .91rem;
	padding: 9px 18px;
	border-radius: 999px;
}

.score-widget .score-band-pill.li-band-emerging { background: var(--rust-soft); color: var(--rust-strong); }
.score-widget .score-band-pill.li-band-developing { background: var(--blue-soft); color: var(--blue-strong); }
.score-widget .score-band-pill.li-band-proficient { background: var(--green-soft); color: var(--green-strong); }
.score-widget .score-band-pill.li-band-advanced { background: var(--green-strong); color: #fff; }

.score-widget-note {
	margin: 17px 0 22px;
	font-size: 1.02rem;
	color: var(--ink-soft);
	min-height: 2.6em;
}

.score-widget .btn {
	width: 100%;
	font-size: 1.1rem;
	padding: 14px 26px;
	min-height: 52px;
}

.score-widget.sample-report {
	align-items: stretch;
	text-align: left;
}

.score-widget.sample-report h2 {
	font-size: 1.55rem;
	margin-bottom: 12px;
	text-align: left;
}

.sample-report-list {
	list-style: none;
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 10px;
	color: var(--ink-soft);
	font-size: .96rem;
}

.sample-report-list strong {
	color: var(--ink);
}

.report-btn {
	margin-top: 20px;
}

.report-selector-tabs {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.report-selector-tab {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: var(--line);
	cursor: pointer;
	padding: 0;
}

.report-selector-tab.is-active {
	background: var(--green);
	border-color: var(--green-strong);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}

/* ---------- homepage sections below the hero ----------
   `.hero` keeps its own full-height + full-bleed treatment above. Every
   section after it now uses fixed breathing room — 100px above and below —
   rather than locking to the viewport height, so a section is only as
   tall as its content needs. */
.screen-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 100px;
	padding-bottom: 100px;
	position: relative;
	overflow: hidden;
}

.screen-section:nth-of-type(odd) {
	background: var(--paper);
}

.screen-section:nth-of-type(even) {
	background: color-mix(in srgb, var(--paper) 76%, var(--line) 24%);
}

.screen-section + .screen-section,
.hero + .screen-section,
.screen-section + .cta-band {
	border-top: 1px solid var(--line);
}

.screen-section h2,
.cta-band-inner h2 {
	text-align: center;
}

.screen-section > .wrap {
	width: 100%;
}

/* Offsets anchor-jumps (the logged-out one-page nav) from under the sticky
   top bar, so a section's heading isn't hidden behind it on landing. */
#why-learnindex,
#how-it-works,
#whats-inside,
#score,
#learning-roadmap,
#trust {
	scroll-margin-top: 65px;
}

/* The homepage manages its own vertical rhythm per full-screen section, so
   it doesn't need the generic top/bottom padding every other page gets
   around its content. */
body.home main {
	padding: 0;
}

/* ---------- how it works (numbered step row) ----------
   Vertical spacing now comes from `.screen-section` (both classes are on
   the same section element) — no padding declared here to avoid the two
   rules fighting over the same property. */
#how-it-works {
	position: relative;
}

#how-it-works > .wrap {
	position: relative;
	z-index: 1;
}

.steps-row {
	list-style: none;
	margin: 48px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.step {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 20px 22px;
	position: relative;
}

.step-number {
	display: block;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--blue);
	margin-bottom: 10px;
}

.step h3 {
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.step p {
	color: var(--ink-soft);
	font-size: .92rem;
	margin: 0;
}

/* ---------- "How It Works" visual treatment ----------
   A colored leaf-like badge per step cycles the three brand colors and
   keeps the timeline connected without using decorative circles. */
.steps-row-visual {
	position: relative;
	margin-top: 56px;
	counter-reset: none;
}

.steps-row-visual .step {
	padding-top: 40px;
	border-top: 3px solid transparent;
}

.steps-row-visual .step-number {
	position: absolute;
	top: -44px;
	left: 50%;
	transform: translateX(-50%);
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	box-shadow: var(--shadow);
	z-index: 1;
}

.steps-row-visual .step h3,
.steps-row-visual .step p {
	text-align: center;
}

.steps-row-visual .step-green { border-top-color: var(--green); }
.steps-row-visual .step-green .step-number { background: var(--green); }

.steps-row-visual .step-blue { border-top-color: var(--blue); }
.steps-row-visual .step-blue .step-number { background: var(--blue); }

.steps-row-visual .step-rust { border-top-color: var(--rust); }
.steps-row-visual .step-rust .step-number { background: var(--rust); }

/* ---------- score, roadmap, and trust sections ---------- */
.two-column-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
	gap: 44px;
	align-items: center;
}

.two-column-section h2 {
	text-align: left;
	max-width: 15ch;
}

.two-column-section p {
	color: var(--ink-soft);
	font-size: 1.02rem;
	max-width: 62ch;
}

.section-intro {
	color: var(--ink-soft);
	font-size: 1.05rem;
	margin: 12px auto 0;
	max-width: 760px;
	text-align: center;
}

.section-kicker {
	color: var(--green-strong);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.info-panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 32px;
	box-shadow: var(--shadow);
	padding: 28px;
	position: relative;
	overflow: hidden;
}

.info-panel h3 {
	font-size: 1.15rem;
	margin-bottom: 14px;
}

.info-panel ul {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--ink-soft);
}

.info-panel li + li {
	margin-top: 9px;
}

.sample-card .sample-score {
	color: var(--green-strong);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
	margin: 4px 0 18px;
}

.sample-card .btn {
	margin-top: 18px;
}

.score-coverage-label {
	background: var(--green-soft);
	border: 1px solid var(--green);
	border-radius: 999px;
	color: var(--green-strong);
	display: inline-flex;
	font-size: .84rem;
	font-weight: 800;
	margin: 4px 0 12px;
	padding: 7px 12px;
}

.sample-subject-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 16px 0;
}

.sample-subject-grid div {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 12px;
}

.sample-subject-grid strong,
.sample-subject-grid span {
	display: block;
}

.sample-subject-grid span {
	color: var(--ink-soft);
	font-size: .86rem;
	margin-top: 4px;
}

.faq-list {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
}

.faq-list dt {
	color: var(--blue-strong);
	font-weight: 800;
}

.faq-list dd {
	color: var(--blue-strong);
	margin: 0;
}

.journey-strip,
.weekly-preview-grid {
	display: grid;
	gap: 12px;
	margin: 28px auto 0;
	max-width: 980px;
}

.journey-strip {
	grid-template-columns: repeat(6, 1fr);
}

.journey-strip span,
.weekly-preview-grid > div {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow);
	color: var(--ink);
	font-weight: 700;
	padding: 14px;
	text-align: center;
}

.weekly-preview-grid {
	grid-template-columns: repeat(5, 1fr);
}

.weekly-preview-grid strong,
.weekly-preview-grid span {
	display: block;
}

.weekly-preview-grid span {
	color: var(--ink-soft);
	font-size: .88rem;
	font-weight: 500;
	margin-top: 8px;
}

.trust-list {
	color: var(--ink-soft);
	margin: 20px 0 0;
	padding-left: 1.2rem;
}

.roadmap-section .section-kicker,
.roadmap-section h2 {
	text-align: center;
}

.roadmap-section h2 {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

.roadmap-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 42px;
	position: relative;
}

.roadmap-grid::before {
	content: "";
	position: absolute;
	left: 11%;
	right: 11%;
	top: 34px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--green), var(--blue), var(--rust), var(--green));
	z-index: 0;
}

.roadmap-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 32px;
	box-shadow: var(--shadow);
	padding: 24px 22px;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.roadmap-card::before {
	content: "";
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--green);
	border: 5px solid var(--card);
	box-shadow: 0 0 0 1px var(--line-strong);
	margin: -2px auto 16px;
}

.roadmap-card:nth-child(2)::before {
	background: var(--blue);
}

.roadmap-card:nth-child(3)::before {
	background: var(--rust);
}

.roadmap-card:nth-child(4)::before {
	background: var(--green);
}

.roadmap-card span {
	color: var(--rust-strong);
	display: block;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .06em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.roadmap-card h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.roadmap-card p,
.trust-note p {
	color: var(--ink-soft);
	font-size: .94rem;
	margin: 0;
}

.trust-note {
	border-color: var(--blue);
	background: var(--blue-soft);
}

.trust-note h3,
.trust-note p {
	color: var(--blue-strong);
}

/* ---------- closing CTA band ---------- */
.cta-band {
	background:
		radial-gradient(circle at 16% 35%, color-mix(in srgb, var(--green-soft) 90%, transparent), transparent 34%),
		radial-gradient(circle at 88% 42%, color-mix(in srgb, var(--rust-soft) 80%, transparent), transparent 32%),
		color-mix(in srgb, var(--paper) 62%, var(--line) 38%);
	border-top: 2px solid var(--line-strong);
	border-bottom: 2px solid var(--line-strong);
	margin-top: 0;
	padding: 72px 0;
}

.cta-band-inner {
	text-align: center;
	max-width: 640px;
}

.cta-band-inner h2 {
	color: var(--green-strong);
}

.cta-band-inner p {
	color: var(--ink-soft);
	margin: 0 auto 24px;
	max-width: 52ch;
}

/* On the homepage, the CTA band is the last section before the footer —
   close that gap entirely, and use the same three-color gradient line the
   How It Works section used to divide the two instead of the footer's
   plain border. */
body.home footer.site-footer {
	margin-top: 20px;
	border-top: none;
	padding: 48px 0 0;
	position: relative;
}

body.home footer.site-footer::before {
	display: none;
}

/* ---------- feature blocks (front page "why Learn Index") ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 48px 0;
}

.feature-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.feature-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 32px;
	box-shadow: var(--shadow);
	padding: 26px 24px;
}

.feature-card .feature-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.feature-card.accent-green .feature-icon { background: var(--green-soft); color: var(--green-strong); }
.feature-card.accent-blue .feature-icon { background: var(--blue-soft); color: var(--blue-strong); }
.feature-card.accent-rust .feature-icon { background: var(--rust-soft); color: var(--rust-strong); }

.feature-card h3 {
	font-size: 1.15rem;
	margin-bottom: 8px;
}

.feature-card p {
	color: var(--ink-soft);
	font-size: .95rem;
	margin: 0;
}

/* ---------- "What's Inside LearnIndex" — each card fully tinted in one
   brand color, a bolder treatment than the icon-only feature-card above. ---------- */
.inside-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 32px 0 48px;
}

.inside-card {
	border-radius: 32px;
	padding: 28px 24px;
	border: 1.5px solid transparent;
}

.inside-card h3 {
	font-size: 1.15rem;
	margin-bottom: 10px;
}

.inside-card p {
	margin: 0;
	font-size: .95rem;
}

.inside-card.tint-green { background: var(--green-soft); border-color: var(--green); }
.inside-card.tint-green h3 { color: var(--green-strong); }
.inside-card.tint-green p { color: var(--green-strong); }

.inside-card.tint-blue { background: var(--blue-soft); border-color: var(--blue); }
.inside-card.tint-blue h3 { color: var(--blue-strong); }
.inside-card.tint-blue p { color: var(--blue-strong); }

.inside-card.tint-rust { background: var(--rust-soft); border-color: var(--rust); }
.inside-card.tint-rust h3 { color: var(--rust-strong); }
.inside-card.tint-rust p { color: var(--rust-strong); }

/* ---------- content / entry ---------- */
main {
	display: block;
	padding: 40px 0 80px;
}

.entry-header {
	margin-bottom: 28px;
}

.entry-header .entry-meta {
	font-family: var(--font-mono);
	font-size: .78rem;
	color: var(--ink-faint);
	margin-bottom: 10px;
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content blockquote {
	border-left: 3px solid var(--green);
	padding-left: 18px;
	color: var(--ink-soft);
	font-style: normal;
}

.entry-content img {
	box-shadow: var(--shadow);
}

/* cards / archive listing */
.article-index {
	max-width: 1120px;
}

.article-hero {
	margin-top: 40px;
	margin-bottom: 16px;
	padding: 24px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.article-hero h1 {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	margin: 12px 0 8px;
}

.article-hero p {
	color: var(--ink-soft);
	max-width: 72ch;
	margin: 0;
}

/* Toolbar row — same flex-row toggle pattern as the Curriculum page's
   .toolbar (single line, wraps only when it has to), with every control
   inside it (collapse/expand, category filter, status pills) sized and
   styled to match the Curriculum page's .btn instead of the theme's
   normal pill buttons. */
.article-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 18px 0 20px;
}

.article-toolbar .btn {
	box-sizing: border-box;
	font-weight: 600;
	padding: .55rem 1.3rem;
	border-radius: 14px;
	border: 1.5px solid var(--line);
	background: var(--card);
	color: var(--ink);
	height: 3rem;
	min-height: 3rem;
	white-space: nowrap;
	appearance: none;
	-webkit-appearance: none;
}

.article-toolbar #article-toggle-all {
	flex: 0 0 auto;
}

.article-filter {
	display: inline-flex;
	align-items: center;
}

.article-filter select {
	min-width: 180px;
	padding-right: 34px;
	font: inherit;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235C594E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

.article-status-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.article-category-sections {
	display: grid;
	gap: 18px;
}

.popular-articles-section {
	margin: 8px 0 22px;
	padding: 22px;
	border: 1.5px solid var(--line);
	border-radius: 18px;
	background:
		radial-gradient(360px circle at 0% 0%, color-mix(in srgb, var(--green-soft) 80%, transparent), transparent 70%),
		radial-gradient(320px circle at 100% 20%, color-mix(in srgb, var(--blue-soft) 78%, transparent), transparent 72%),
		var(--card);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.popular-articles-section::after {
	content: "";
	position: absolute;
	width: 210px;
	height: 210px;
	right: -92px;
	bottom: -104px;
	border-radius: 50%;
	border: 28px solid color-mix(in srgb, var(--rust) 9%, transparent);
	pointer-events: none;
}

.popular-articles-head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.popular-articles-head p {
	color: var(--green-strong);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.popular-articles-head h2 {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	margin: 0;
}

.popular-article-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.popular-article-card {
	min-height: 0;
}

.popular-article-link {
	color: inherit;
	text-decoration: none;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	padding: 18px 14px 16px;
	min-height: 158px;
}

.popular-article-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--green-strong);
	background:
		radial-gradient(circle at center, var(--card) 0 34%, transparent 35%),
		conic-gradient(from 35deg, var(--green-soft), var(--blue-soft), var(--rust-soft), var(--green-soft));
	border: 1px solid var(--line);
	box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--card) 72%, transparent);
}

.popular-article-icon svg {
	width: 38px;
	height: 38px;
}

.popular-article-copy {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-right: 34px;
}

.popular-article-category {
	color: var(--blue-strong);
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.popular-article-title {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.25;
}

.popular-article-excerpt {
	color: var(--ink-soft);
	font-size: .84rem;
	line-height: 1.45;
}

.popular-article-card:hover,
.popular-article-card:focus-within {
	border-color: var(--green);
	transform: translateY(-1px);
}

.article-cat-box {
	padding: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--card);
	border: 1.5px solid var(--line);
	box-shadow: var(--shadow);
}

.article-cat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 18px 20px;
	list-style: none;
}

.article-cat-head::-webkit-details-marker {
	display: none;
}

.article-cat-toggle {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--line);
	color: var(--ink-soft);
	font-size: 1.6rem;
	line-height: 1;
	transition: transform .2s ease;
}

.article-cat-box[open] .article-cat-toggle {
	transform: rotate(90deg);
}

.article-cat-title {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--ink);
}

.article-cat-sub {
	display: block;
	color: var(--ink-soft);
	font-size: .9rem;
	font-weight: 600;
}

.article-card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding: 0 20px 20px;
}

@media (max-width: 1100px) {
	.article-card-grid,
	.popular-article-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.article-card-grid,
	.popular-article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.article-card-grid,
	.popular-article-grid {
		grid-template-columns: 1fr;
	}

	.popular-articles-section {
		padding: 18px;
	}

	.popular-articles-head {
		align-items: start;
		flex-direction: column;
	}

	.popular-article-link {
		grid-template-columns: 64px minmax(0, 1fr);
		min-height: 0;
	}

	.popular-article-icon {
		width: 64px;
		height: 64px;
	}

	.popular-article-icon svg {
		width: 32px;
		height: 32px;
	}
}

.article-thumb-card {
	position: relative;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	box-shadow: 0 8px 18px rgba(33,30,24,.06);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: background .2s ease, border-color .2s ease;
}

/* Tint the whole card once a status circle is selected, same idea as the
   Experience Collector's .badge-card.is-done/.is-working/.is-skip tints. */
.article-thumb-card.is-read {
	background: color-mix(in srgb, var(--ink) 12%, var(--card));
	border-color: color-mix(in srgb, var(--ink) 30%, var(--line));
}

.article-thumb-card.is-saved {
	background: color-mix(in srgb, var(--blue) 16%, var(--card));
	border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}

.article-thumb-card.is-skip {
	background: color-mix(in srgb, var(--rust) 14%, var(--card));
	border-color: color-mix(in srgb, var(--rust) 40%, var(--line));
}

.article-thumb-body {
	padding: 40px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.article-thumb-body h2 {
	font-size: 1rem;
	line-height: 1.3;
	margin: 0;
}

.article-thumb-body h2 a {
	color: var(--ink);
	text-decoration: none;
}

.article-thumb-body h2 a:hover {
	color: var(--green-strong);
}

.article-thumb-body p {
	color: var(--ink-soft);
	font-size: .86rem;
	margin: 0;
}

/* Article status circles — same selectable-circle component as the
   Experience Collector's .status-dot (always-colored by type, a ring
   highlights whichever one is currently selected), positioned top-right
   of each article card instead of the old checkbox row. */
.article-status-controls {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 1;
}

.article-status-dot {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2px solid var(--line-strong);
	display: inline-block;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(33,30,24,.06) inset;
	transition: transform .12s ease, box-shadow .12s ease;
}

.article-status-dot:hover {
	transform: scale(1.12);
}

.article-status-dot.is-read {
	background: var(--green);
}

.article-status-dot.is-saved {
	background: var(--blue);
}

.article-status-dot.is-skip {
	background: var(--rust);
}

.article-status-dot.is-read[aria-pressed="true"] {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 45%, transparent);
}

.article-status-dot.is-saved[aria-pressed="true"] {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 45%, transparent);
}

.article-status-dot.is-skip[aria-pressed="true"] {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rust) 45%, transparent);
}

/* Status filter buttons — same idea as the Experience Collector's
   filterAll/filterWorking/filterDone/filterSkip buttons, styled to match
   the Curriculum page's .btn (sized and placed via .article-toolbar .btn
   above) instead of a separate pill shape. */
.status-filter-pill:hover {
	transform: translateY(-1px);
}

.status-filter-pill.is-read[aria-pressed="true"] {
	background: var(--ink-soft);
	border-color: var(--ink);
	color: var(--card);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 25%, transparent);
}

.status-filter-pill.is-saved[aria-pressed="true"] {
	background: var(--blue);
	border-color: var(--blue-strong);
	color: var(--card);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent);
}

.status-filter-pill.is-skip[aria-pressed="true"] {
	background: var(--rust);
	border-color: var(--rust-strong);
	color: var(--card);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rust) 30%, transparent);
}

/* ---------- Article-inspired shared surface treatment ---------- */
.home .hero,
.home .score-explainer .info-panel,
.home .sample-card,
.home .feature-card,
.home .roadmap-card,
.home .inside-card,
.home .trust-note,
.home .cta-band,
.shortcode-host,
.post-card,
.status-block {
	border: 1.5px solid var(--line);
	box-shadow: var(--shadow);
}

.home .hero {
	background:
		radial-gradient(420px circle at 6% 12%, color-mix(in srgb, var(--green-soft) 86%, transparent), transparent 72%),
		radial-gradient(390px circle at 94% 18%, color-mix(in srgb, var(--blue-soft) 84%, transparent), transparent 72%),
		var(--card);
	border-radius: 18px;
	margin: 24px auto 20px;
	max-width: 1120px;
	min-height: auto;
	overflow: hidden;
}

.home .hero-inner {
	min-height: min(720px, calc(100vh - 120px));
	padding: 54px 24px;
}

.home .screen-section {
	min-height: 0;
	padding: 72px 0;
}

.home .screen-section > .wrap,
.home .cta-band-inner {
	max-width: 1120px;
}

.home .score-widget,
.home .info-panel,
.home .feature-card,
.home .roadmap-card,
.home .inside-card {
	border-radius: 18px;
}

.home .section-kicker,
.home .score-widget-eyebrow,
.home .roadmap-card span {
	font-family: var(--font-mono);
	letter-spacing: .08em;
}

.home .feature-card:hover,
.home .roadmap-card:hover,
.home .inside-card:hover,
.home .sample-card:hover {
	border-color: var(--green);
	transform: translateY(-1px);
}

.home .journey-strip span,
.home .weekly-preview-grid > div {
	border: 1.5px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 8px 18px rgba(33,30,24,.06);
}

.article-single-page {
	position: relative;
}

.article-single-actions {
	max-width: var(--content-width);
	margin: 0 auto 16px;
	padding: 0 24px;
	display: flex;
	justify-content: flex-end;
}

.btn-blue {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.btn-blue:hover {
	background: var(--blue-strong);
	border-color: var(--blue-strong);
	color: #fff;
}

.article-complete-btn {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
	margin-bottom: 16px;
}

.article-complete-btn[aria-pressed="true"] {
	background: var(--green-soft);
	border-color: var(--green);
	color: var(--green-strong);
}

@media (min-width: 760px) {
	.article-index .post-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-card {
	border: 1.5px solid var(--line);
	border-radius: 14px;
	padding: 22px;
	background: var(--card);
	box-shadow: var(--shadow);
}

.post-card .ce-meta {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--ink-faint);
	margin-bottom: 8px;
}

.post-card h2,
.post-card h3 {
	font-size: 1.2rem;
	margin: 0 0 8px;
}

.post-card h2 a,
.post-card h3 a {
	color: var(--ink);
	text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
	color: var(--green-strong);
}

.post-card p {
	color: var(--ink-soft);
	font-size: .92rem;
	margin: 0;
}

/* pagination */
.pagination-row {
	display: flex;
	gap: 10px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.pagination-row a,
.pagination-row span {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	font-size: .88rem;
}

.pagination-row a:hover {
	background: var(--green-soft);
	color: var(--green-strong);
}

/* pills / tags — color always paired with a text label */
.pill {
	font-family: var(--font-mono);
	font-size: .76rem;
	font-weight: 600;
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--green-soft);
	color: var(--green-strong);
	display: inline-flex;
	align-items: center;
}

/* ---------- comments ---------- */
.comments-area {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 14px;
	background: var(--card);
}

.comment-list .comment-author {
	font-weight: 700;
	font-size: .92rem;
}

.comment-list .comment-meta a {
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--ink-faint);
	text-decoration: none;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	margin-bottom: 14px;
	min-height: 44px;
}

.comment-form textarea {
	min-height: 120px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: .88rem;
	margin-bottom: 6px;
}

/* ---------- 404 / search ---------- */
.status-block {
	text-align: center;
	padding: 60px 0;
}

.status-block .mono {
	font-size: 3rem;
	color: var(--ink-faint);
	display: block;
	margin-bottom: 12px;
}

/* 404's mock "assessment result" — a joke on the score cards in the
   parent/student dashboards (see .li-score-value/.pill in dashboard.css).
   Rust is the brand guide's colour for "absence", which is exactly what
   a missing page is, so the joke uses it on purpose rather than the
   usual green "good score" treatment. */
.status-block .error-score {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 4.2rem;
	color: var(--rust);
	line-height: 1;
}

.status-block .error-score .of {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--ink-faint);
}

.status-block .error-band {
	margin: 14px 0 26px;
	background: var(--rust-soft);
	color: var(--rust-strong);
}

.status-block .error-causes {
	text-align: left;
	max-width: 440px;
	margin: 0 auto 30px;
	list-style: none;
	padding: 0;
}

.status-block .error-causes li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 2px;
	border-bottom: 1px solid var(--line);
	font-size: .95rem;
	color: var(--ink-soft);
}

.status-block .error-causes li:last-child {
	border-bottom: none;
}

.status-block .error-causes li .check {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-radius: 5px;
	border: 1.5px solid var(--line-strong);
}

.search-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 480px;
	margin: 24px auto 0;
}

.search-form input[type="search"] {
	flex: 1;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
}

/* ---------- widget area (used only if a template opts in) ---------- */
.widget-area .widget {
	margin-bottom: 28px;
}

.widget-area .widget-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 12px;
}

/* ---------- plugin shortcode host area ----------
   The LearnIndex Suite plugin scopes its own styles under a .li- prefix.
   This theme deliberately avoids styling any .li- classes and gives
   shortcode output room to breathe. Matches --wide-width so an ordinary
   content page (page.php) reads at the same width as the full-width app
   templates (template-parent-dashboard.php's .li-admin-panel-page, used
   by the Curriculum/Assessment/Dashboard pages, whose own .wrap is also
   --wide-width — see curriculum.css/assessment.css). */
.shortcode-host {
	max-width: var(--wide-width);
	margin: 0 auto;
}

/* The global "p, li, blockquote { max-width: 75ch }" readability rule
   (further up this file) is right for narrow article columns, but on
   this now --wide-width host it just forces an early wrap well short of
   the 1120px container — text reads no wider than it did before the
   container was widened. Let paragraphs/lists here run the full column
   width instead; headings were never capped in ch, so they're unaffected. */
.shortcode-host p,
.shortcode-host li,
.shortcode-host blockquote {
	max-width: none;
}

.shortcode-host.wide {
	max-width: var(--wide-width);
}

/* ---------- profile menu (logged-in header) ---------- */
.profile-menu {
	position: relative;
	flex: none;
}

.profile-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: var(--card);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	overflow: hidden;
	color: var(--ink-soft);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .85rem;
}

.profile-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.profile-btn:hover,
.profile-btn:focus-visible,
.profile-btn[aria-expanded="true"] {
	border-color: var(--green);
}

.profile-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 200px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 8px;
	display: none;
	z-index: 40;
}

.profile-dropdown.is-open {
	display: block;
}

.profile-dropdown a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none;
	font-size: .92rem;
	font-weight: 600;
}

.profile-dropdown a:hover,
.profile-dropdown a:focus-visible {
	background: var(--green-soft);
	color: var(--green-strong);
}

.profile-dropdown .menu-divider {
	height: 1px;
	background: var(--line);
	margin: 6px 4px;
}

/* ---------- footer (4 columns + copyright bar) ---------- */
footer.site-footer {
	border-top: 1px solid var(--line);
	margin-top: 20px;
	padding: 48px 0 0;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}

.footer-col h2,
.footer-col .footer-col-heading {
	font-family: var(--font-mono);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 14px;
}

.footer-brand .wordmark {
	margin-bottom: 10px;
}

.footer-brand address {
	font-style: normal;
	color: var(--ink-soft);
	font-size: .92rem;
	line-height: 1.3;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col ul li + li {
	margin-top: 1px;
}

.footer-col ul a {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	line-height: 1.2;
	color: var(--ink-soft);
	text-decoration: none;
	font-size: .92rem;
	border-radius: 8px;
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
	color: var(--green-strong);
}

.footer-bottom {
	border-top: 1px solid var(--line);
	padding: 20px 0;
}

.footer-bottom .copyright {
	font-size: .82rem;
	color: var(--ink-faint);
}

/* ---------- responsive nav ---------- */
@media (max-width: 760px) {
	.feature-grid,
	.feature-grid-4,
	.inside-grid,
	.roadmap-grid,
	.journey-strip,
	.weekly-preview-grid,
	.sample-subject-grid,
	.two-column-section {
		grid-template-columns: 1fr;
	}

	.two-column-section h2 {
		max-width: none;
	}

	.roadmap-grid::before {
		display: none;
	}

	.hero-inner {
		grid-template-columns: 1fr;
		padding-top: 32px;
		padding-bottom: 32px;
		text-align: left;
	}

	.hero-visual {
		order: -1;
		justify-content: flex-start;
	}

	.screen-section {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.steps-row {
		grid-template-columns: 1fr;
	}

	.step:not(:last-child)::after {
		display: none;
	}

	.footer-columns {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
	}

	.menu-toggle {
		display: flex;
	}

	.top-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		flex-direction: column;
		align-items: stretch;
		padding: 8px 24px 16px;
		display: none;
	}

	.top-nav.is-open {
		display: flex;
	}

	.top-nav ul {
		flex-direction: column;
		width: 100%;
	}

	.top-nav a {
		width: 100%;
	}

	.top-inner {
		position: relative;
		flex-wrap: wrap;
	}

	.member-btn {
		flex: 1 1 100%;
		justify-content: center;
		padding-left: 14px;
		padding-right: 14px;
		white-space: normal;
	}

	.theme-btn {
		margin-left: auto;
	}
}

@media (min-width: 761px) {
	.menu-toggle {
		display: none;
	}
}

/* ---------- admin-panel pages (parent dashboard etc.) ----------
   Assigned via the "LearnIndex Admin Panel (Full Width)" page template.
   Keeps the shared top bar but drops the site's usual vertical rhythm
   (no bottom padding under #site-content, no page/section spacing) so a
   full-width app shell — e.g. the dashboard's own left nav rail — can
   run edge to edge right under the sticky top bar. */
.page-template-template-parent-dashboard-php #site-content {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 65px);
}

.li-admin-panel-page {
	flex: 1;
	display: flex;
}

.li-admin-panel-page > .li-shell {
	flex: 1;
}

/* ==========================================================================
   Pricing chart (Pricing page) — free plan card (white) vs. Family Premium
   card (blue), each with a sign-up button anchored to the bottom.
   ========================================================================== */
.li-pricing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin: 36px 0;
	align-items: stretch;
}

.li-pricing-card {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	padding: 36px 32px;
	border: 1px solid var(--line-strong);
	background: #fff;
	box-shadow: 0 1px 2px rgba(33, 30, 24, 0.04);
	position: relative;
}

.li-pricing-card--premium {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
	box-shadow: 0 12px 28px rgba(59, 106, 128, 0.25);
}

.li-pricing-badge {
	position: absolute;
	top: -14px;
	left: 32px;
	background: var(--green);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
}

.li-pricing-card h2 {
	margin-top: 0;
	margin-bottom: 6px;
}

.li-pricing-card--premium h2 {
	color: #fff;
}

.li-pricing-price {
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
	color: var(--ink);
}

.li-pricing-card--premium .li-pricing-price {
	color: #fff;
}

.li-pricing-price small {
	font-size: 1rem;
	font-weight: 500;
	opacity: 0.75;
}

.li-pricing-price-alt {
	margin: 4px 0 0;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.li-pricing-card--premium .li-pricing-price-alt {
	color: rgba(255, 255, 255, 0.85);
}

.li-pricing-card ul {
	list-style: none;
	margin: 24px 0 28px;
	padding: 0;
	flex: 1;
}

.li-pricing-card ul li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	padding-left: 26px;
	position: relative;
}

.li-pricing-card ul li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 10px;
	font-weight: 700;
	color: var(--green);
}

.li-pricing-card--premium ul li {
	border-bottom-color: rgba(255, 255, 255, 0.22);
}

.li-pricing-card--premium ul li::before {
	color: #fff;
}

.li-pricing-btn {
	margin-top: auto;
	display: inline-block;
	text-align: center;
	padding: 14px 24px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.li-pricing-btn:hover {
	opacity: 0.88;
}

.li-pricing-card--free .li-pricing-btn {
	background: var(--green);
	color: #fff;
}

.li-pricing-card--premium .li-pricing-btn {
	background: #fff;
	color: var(--blue);
}

@media (max-width: 760px) {
	.li-pricing-grid {
		grid-template-columns: 1fr;
	}
}

/* Free pricing card has a fixed white background (not var(--card)), so its
   text needs fixed dark tones too — same reasoning as .btn-white above:
   var(--ink) flips to a near-white color in dark mode and would vanish on
   the card's own permanently-white background. */
.li-pricing-card--free h2,
.li-pricing-card--free .li-pricing-price,
.li-pricing-card--free .li-pricing-price-alt,
.li-pricing-card--free ul li {
	color: #211E18;
}

.li-pricing-card--free .li-pricing-price small {
	color: #5C594E;
}

.li-pricing-card--free ul li::before {
	color: #3C6E47;
}

/* Monthly/yearly toggle switch on the Premium pricing card. */
.li-pricing-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 18px;
}

.li-toggle-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.65);
	transition: color 0.15s ease;
}

.li-toggle-label[data-active="true"] {
	color: #fff;
}

.li-pricing-savings {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
	vertical-align: middle;
}

.li-toggle-switch {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.li-toggle-switch[aria-checked="true"] {
	background: rgba(255, 255, 255, 0.55);
}

.li-toggle-switch:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.li-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}

.li-toggle-switch[aria-checked="true"] .li-toggle-thumb {
	transform: translateX(20px);
	background: var(--blue-strong);
}

.li-price-yearly[hidden],
.li-alt-yearly[hidden],
.li-price-monthly[hidden],
.li-alt-monthly[hidden] {
	display: none;
}

/* Initials in the profile button (no Gravatar). */
.profile-btn { font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
