/*
Theme Name: TotalGrader Atelier
Theme URI: https://totalgrader.com/
Author: TotalGrader
Description: A lightweight, warm editorial WordPress theme for grade calculators and learning resources.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: totalgrader-atelier
*/

:root {
	--tg-ink: #29251f;
	--tg-text: #514b43;
	--tg-muted: #81796f;
	--tg-paper: #fffdf9;
	--tg-cream: #f7f2e9;
	--tg-sand: #eee5d6;
	--tg-line: #e9e1d5;
	--tg-olive: #536044;
	--tg-olive-dark: #37432f;
	--tg-clay: #a55f4b;
	--tg-gold: #c5a873;
	--tg-content: 1190px;
	--tg-reading: 760px;
	--tg-radius: 18px;
	--tg-shadow: 0 22px 65px rgba(59, 48, 34, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--tg-ink);
	background: var(--tg-cream);
	font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--tg-olive-dark); text-decoration-thickness: .08em; text-underline-offset: .19em; }
a:hover { color: var(--tg-clay); }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
::selection { color: #fff; background: var(--tg-olive); }
:focus-visible { outline: 3px solid var(--tg-gold); outline-offset: 3px; }
.tg-wrap { width: min(var(--tg-content), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 8px; padding: 11px 15px;
	color: #fff; background: var(--tg-ink); border-radius: 8px; z-index: 10000;
}
.skip-link {
	position: fixed; z-index: 10000; top: 10px; left: 10px; padding: 10px 14px;
	color: #fff; background: var(--tg-ink); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Slim, practical masthead */
.utility-bar { color: #f8f4eb; background: var(--tg-olive-dark); font-size: 11px; letter-spacing: .045em; }
.utility-inner { min-height: 31px; display: flex; justify-content: center; align-items: center; text-align: center; }
.utility-bar p { margin: 0; }
.site-header { position: relative; z-index: 30; background: var(--tg-paper); border-bottom: 1px solid var(--tg-line); }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 40px; }
.site-branding { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--tg-ink); text-decoration: none; }
.site-branding:hover { color: var(--tg-ink); }
.brand-symbol {
	width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px;
	color: var(--tg-paper); background: var(--tg-olive); border-radius: 50%;
}
.brand-symbol svg { width: 23px; height: 23px; }
.brand-lockup { display: block; line-height: 1.08; }
.brand-name { display: block; font-size: 21px; font-weight: 750; letter-spacing: -.055em; }
.brand-name span { color: var(--tg-clay); }
.brand-caption { display: block; margin-top: 5px; color: var(--tg-muted); font-family: Georgia, "Times New Roman", serif; font-size: 10px; font-style: italic; letter-spacing: .025em; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 48px; }
.primary-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 25px; flex: 1; }
.primary-navigation ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { position: relative; }
.primary-navigation a { color: var(--tg-text); font-size: 13px; font-weight: 650; text-decoration: none; transition: color .15s ease; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current_page_item > a { color: var(--tg-clay); }
.primary-navigation .sub-menu {
	position: absolute; top: calc(100% + 12px); left: -15px; z-index: 40; display: none;
	min-width: 205px; padding: 9px; background: var(--tg-paper); border: 1px solid var(--tg-line);
	border-radius: 12px; box-shadow: var(--tg-shadow);
}
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { display: block; padding: 9px 10px; border-radius: 7px; }
.primary-navigation .sub-menu a:hover { background: var(--tg-cream); }
.header-cta, .button-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px;
	padding: 0 19px; color: #fff; background: var(--tg-olive); border: 1px solid var(--tg-olive);
	border-radius: 999px; font-size: 12px; font-weight: 750; text-decoration: none;
	transition: background .16s ease, transform .16s ease;
}
.header-cta:hover, .button-primary:hover { color: #fff; background: var(--tg-olive-dark); transform: translateY(-1px); }
.menu-toggle {
	display: none; width: 43px; height: 43px; padding: 0; color: var(--tg-ink);
	background: transparent; border: 1px solid var(--tg-line); border-radius: 50%;
}
.menu-toggle svg { width: 20px; height: 20px; }
.primary-navigation .search-form { display: none; }

/* Homepage: oversized editorial message plus a compact sample calculator card */
.site-main { min-height: 58vh; padding: 36px 0 76px; }
.hero {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
	align-items: center; gap: clamp(38px, 7vw, 100px); min-height: 445px;
	padding: clamp(35px, 6vw, 78px) clamp(28px, 6vw, 74px); overflow: hidden;
	background: #eee7db; border-radius: 4px 90px 4px 4px;
}
.hero::before {
	position: absolute; top: -145px; right: 20%; width: 390px; height: 390px;
	content: ""; border: 1px solid rgba(83, 96, 68, .12); border-radius: 50%;
	box-shadow: 0 0 0 34px rgba(83, 96, 68, .025), 0 0 0 68px rgba(83, 96, 68, .02);
	pointer-events: none;
}
.hero-copy, .grade-preview { position: relative; z-index: 1; }
.hero-kicker, .section-kicker {
	display: inline-flex; align-items: center; gap: 9px; color: var(--tg-olive);
	font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.hero-kicker::before, .section-kicker::before { width: 19px; height: 1px; content: ""; background: var(--tg-clay); }
.hero h1 {
	max-width: 580px; margin: 16px 0 17px; font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.9rem, 5.5vw, 5.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .99;
}
.hero h1 em { color: var(--tg-clay); font-weight: 400; }
.hero-copy > p { max-width: 475px; margin: 0; color: #655e54; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 27px; }
.hero-secondary { color: var(--tg-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.hero-secondary:hover { color: var(--tg-clay); }
.hero-note { margin-top: 23px; color: var(--tg-muted); font-size: 11px; }
.grade-preview {
	width: min(100%, 420px); justify-self: end; padding: 26px; background: var(--tg-paper);
	border: 1px solid rgba(255,255,255,.85); border-radius: 8px 52px 8px 8px; box-shadow: 0 25px 65px rgba(68, 55, 38, .13);
}
.preview-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid var(--tg-line); }
.preview-label { color: var(--tg-muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.preview-mark { width: 26px; height: 26px; display: grid; place-items: center; color: var(--tg-olive); background: #edf0e8; border-radius: 50%; }
.preview-mark svg { width: 13px; height: 13px; }
.preview-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 0 17px; }
.preview-number { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 6vw, 4.6rem); letter-spacing: -.07em; line-height: .95; }
.preview-number span { color: var(--tg-clay); font-size: .52em; }
.preview-caption { margin-top: 7px; color: var(--tg-muted); font-size: 11px; }
.preview-score { margin-bottom: 5px; color: var(--tg-olive); font-size: 12px; font-weight: 750; }
.preview-meter { height: 5px; overflow: hidden; background: #eee9df; border-radius: 99px; }
.preview-meter span { display: block; width: 88%; height: 100%; background: var(--tg-olive); border-radius: inherit; }
.preview-equation { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; color: var(--tg-muted); font-size: 10px; }
.preview-equation strong { color: var(--tg-text); font-weight: 700; }
.preview-example-note { margin: 17px 0 0; padding-top: 13px; color: #80786f; border-top: 1px solid var(--tg-line); font-size: 10px; }
.hero-stamp {
	position: absolute; right: -11px; bottom: -21px; display: grid; place-items: center; width: 72px; height: 72px;
	color: #fff; background: var(--tg-clay); border: 5px solid var(--tg-paper); border-radius: 50%;
	font-family: Georgia, "Times New Roman", serif; font-size: 11px; text-align: center; transform: rotate(8deg);
}
.benefit-strip { display: flex; justify-content: center; gap: clamp(18px, 5vw, 75px); padding: 21px 12px; color: var(--tg-text); border-bottom: 1px solid var(--tg-line); }
.benefit-item { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; }
.benefit-dot { width: 7px; height: 7px; background: var(--tg-clay); border-radius: 50%; }

/* Content surfaces and calculator blocks */
.homepage-content, .page-surface, .archive-surface, .search-surface, .error-surface {
	background: var(--tg-paper); border: 1px solid var(--tg-line); border-radius: 4px 4px 32px 4px;
}
.homepage-content { margin-top: 32px; padding: clamp(25px, 4vw, 55px); }
.page-surface { max-width: 930px; margin-inline: auto; padding: clamp(28px, 5vw, 64px); }
.archive-surface, .search-surface, .error-surface { padding: clamp(28px, 5vw, 62px); }
.entry-content { color: #49443d; line-height: 1.8; }
.entry-content > :first-child { margin-top: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--tg-ink); line-height: 1.2; }
.entry-content h1, .page-heading h1, .archive-heading h1 { margin: 0 0 19px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.05rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -.045em; }
.entry-content h2 { margin: 1.8em 0 .63em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 400; letter-spacing: -.03em; }
.entry-content h3 { margin: 1.55em 0 .55em; font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; }
.entry-content h4 { margin: 1.3em 0 .5em; font-size: 1.05rem; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin: .32em 0; padding-left: .18em; }
.entry-content blockquote { margin: 1.7em 0; padding: 18px 22px; color: var(--tg-text); background: #f6f1e8; border-left: 3px solid var(--tg-clay); }
.entry-content img { border-radius: 5px 28px 5px 5px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { color: var(--tg-muted); font-size: 12px; text-align: center; }
.entry-content table { width: 100%; margin: 1.3em 0 1.8em; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--tg-line); font-size: .93em; }
.entry-content th, .entry-content td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--tg-line); }
.entry-content th { color: var(--tg-ink); background: #f2eee5; font-weight: 750; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content hr { height: 1px; margin: 2.2em 0; background: var(--tg-line); border: 0; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .entry-content select, .entry-content textarea {
	max-width: 100%; min-height: 42px; padding: 10px 12px; color: var(--tg-ink); background: #fff;
	border: 1px solid #ded5c8; border-radius: 7px;
}
.entry-content input[type="submit"], .entry-content button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 18px;
	color: #fff; background: var(--tg-olive); border: 0; border-radius: 999px; font-weight: 750; text-decoration: none;
}
.entry-content input[type="submit"]:hover, .entry-content button:hover, .wp-block-button__link:hover { color: #fff; background: var(--tg-olive-dark); }
.entry-content .calculator, .entry-content .grade-calculator, .entry-content .grade-calculator-container,
.entry-content .calculator-container, .entry-content .tool-card, .entry-content .tool-box, .entry-content .tg-calculator {
	padding: clamp(19px, 3vw, 31px); background: #f4f1e9; border: 1px solid var(--tg-line); border-radius: 8px 32px 8px 8px;
}
.entry-content .result, .entry-content .result-box, .entry-content .grade-result { padding: 14px 17px; background: #edf1e7; border: 1px solid #dfe6d5; border-radius: 8px; }
.entry-content label { color: var(--tg-ink); font-weight: 650; }
.entry-content details { margin: 1em 0; padding: 14px 17px; background: #f7f3eb; border-radius: 7px; }
.entry-content summary { font-weight: 700; cursor: pointer; }

/* Editorial grids, guide cards, and topic collection */
.section-block { margin-top: 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-heading h2 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3.5vw, 2.65rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
.section-heading p { max-width: 530px; margin: 8px 0 0; color: var(--tg-muted); font-size: 13px; }
.section-kicker { font-size: 9px; }
.quiet-link { color: var(--tg-olive); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.quiet-link:hover { color: var(--tg-clay); }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topic-card {
	min-height: 130px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	padding: 19px; color: var(--tg-ink); background: var(--tg-paper); border: 1px solid var(--tg-line);
	border-radius: 4px 34px 4px 4px; text-decoration: none; transition: transform .18s ease, background .18s ease;
}
.topic-card:nth-child(2n) { background: #f0ece2; }
.topic-card:hover { color: var(--tg-ink); background: #e9e5d9; transform: translateY(-2px); }
.topic-name { max-width: 190px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.2; }
.topic-arrow { color: var(--tg-clay); font-size: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.post-card { min-width: 0; overflow: hidden; background: var(--tg-paper); border: 1px solid var(--tg-line); transition: transform .18s ease, box-shadow .18s ease; }
.post-card:nth-child(3n+2) { border-radius: 4px 38px 4px 4px; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--tg-shadow); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 1.54; background: var(--tg-sand); }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-image--empty { display: grid; place-items: center; color: var(--tg-olive); }
.post-card-image--empty svg { width: 45px; height: 45px; }
.post-card-body { padding: 17px 18px 20px; }
.post-card-category { display: block; margin-bottom: 7px; color: var(--tg-clay); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.post-card-title { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; line-height: 1.3; }
.post-card-title a { color: var(--tg-ink); text-decoration: none; }
.post-card-title a:hover { color: var(--tg-clay); }
.post-card-excerpt { margin: 0; color: var(--tg-muted); font-size: 12px; line-height: 1.65; }
.post-card-date { display: block; margin-top: 12px; color: var(--tg-muted); font-size: 10px; }

/* Post pages */
.article-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(220px, 270px); align-items: start; gap: 28px; }
.article-main, .sidebar-card { background: var(--tg-paper); border: 1px solid var(--tg-line); }
.article-main { overflow: hidden; }
.article-header { padding: clamp(27px, 5vw, 61px) clamp(24px, 5vw, 62px) 22px; }
.article-header h1 { margin: 8px 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.6vw, 3.65rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.04; }
.article-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.article-categories a { color: var(--tg-olive); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.article-deck { margin: 0 0 16px; color: var(--tg-muted); font-size: 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--tg-muted); font-size: 11px; }
.article-meta a { color: inherit; }
.article-featured { margin: 0 28px 26px; overflow: hidden; background: var(--tg-sand); }
.article-featured img { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.article-content { padding: 0 clamp(24px, 5vw, 62px) 39px; }
.article-content .entry-content { font-size: 16px; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--tg-line); }
.post-navigation a { font-size: 12px; font-weight: 700; text-decoration: none; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.article-sidebar { display: grid; gap: 14px; }
.sidebar-card { padding: 20px; }
.sidebar-card h2 { margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.sidebar-links { margin: 0; padding: 0; list-style: none; }
.sidebar-links li + li { border-top: 1px solid var(--tg-line); }
.sidebar-links a { display: block; padding: 9px 0; color: var(--tg-text); font-size: 11px; font-weight: 650; text-decoration: none; }
.sidebar-links a:hover { color: var(--tg-clay); }
.sidebar-card .widget { margin-bottom: 20px; }
.sidebar-card .widget:last-child { margin-bottom: 0; }

/* Archives, search, footer */
.page-heading, .archive-heading { margin-bottom: 30px; }
.page-heading .section-kicker, .archive-heading .section-kicker { margin-bottom: 10px; }
.page-heading h1, .archive-heading h1 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.045em; }
.archive-description { max-width: 700px; color: var(--tg-muted); font-size: 14px; }
.archive-tools { margin: 0 0 25px; padding: 18px; background: #f4f0e7; }
.archive-tools h2 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.category-chips a { padding: 6px 11px; color: var(--tg-olive-dark); background: var(--tg-paper); border: 1px solid var(--tg-line); border-radius: 999px; font-size: 10px; font-weight: 700; text-decoration: none; }
.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.page-numbers { min-width: 37px; padding: 7px 11px; color: var(--tg-text); background: var(--tg-paper); border: 1px solid var(--tg-line); text-align: center; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--tg-olive); border-color: var(--tg-olive); }
.search-form { display: flex; max-width: 560px; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 45px; padding: 9px 12px; color: var(--tg-ink); background: #fff; border: 1px solid var(--tg-line); }
.search-submit { min-height: 45px; padding: 0 18px; color: #fff; background: var(--tg-olive); border: 0; font-size: 12px; font-weight: 750; }
.search-result-list { display: grid; gap: 12px; margin-top: 25px; }
.search-result { padding: 18px 19px; background: var(--tg-paper); border: 1px solid var(--tg-line); }
.search-result h2 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.search-result h2 a { color: var(--tg-ink); text-decoration: none; }
.search-result p { margin: 0; color: var(--tg-muted); font-size: 12px; }
.empty-state { padding: 28px; background: #f5f1e9; text-align: center; }
.empty-state h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.site-footer { margin-top: 14px; color: #e9e4d9; background: #34392e; }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 38px; }
.footer-brand .site-branding { color: #fff; }
.footer-brand .brand-symbol { color: var(--tg-olive-dark); background: #e3dfd1; }
.footer-brand .brand-name span { color: #d9ae89; }
.footer-brand .brand-caption { color: #b8b6a9; }
.footer-brand .custom-logo-link { padding: 5px 9px; background: #fff; }
.footer-brand .custom-logo { max-height: 38px; }
.footer-description { max-width: 330px; margin: 15px 0 0; color: #c3c4b8; font-size: 12px; }
.footer-column h2 { margin: 0 0 13px; color: #f6f2e8; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; }
.footer-menu, .footer-policy-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-menu a, .footer-policy-links a { color: #c9c9bd; font-size: 11px; text-decoration: none; }
.footer-menu a:hover, .footer-policy-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 15px; padding-bottom: 17px; color: #b8b9ae; border-top: 1px solid rgba(255,255,255,.14); font-size: 10px; }
.footer-bottom p { margin: 0; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }
.comment-respond, .comments-area { margin-top: 32px; }
.comment-list { padding-left: 1.3em; }
.comment-body { padding: 13px 0; border-bottom: 1px solid var(--tg-line); }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--tg-line); }
.comment-form .submit { width: auto; padding: 10px 16px; color: #fff; background: var(--tg-olive); border: 0; }

@media (max-width: 1020px) {
	.header-inner { min-height: 75px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
	.menu-toggle { display: grid; place-items: center; margin-left: auto; }
	.header-cta { display: none; }
	.primary-navigation { order: 3; display: block; width: 100%; flex: 0 0 100%; padding-top: 4px; }
	.primary-navigation.is-collapsed { display: none; }
	.primary-navigation ul { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
	.primary-navigation a { display: block; padding: 10px 0; }
	.primary-navigation .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
	.hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); gap: 35px; }
	.article-layout { grid-template-columns: minmax(0, 1fr); }
	.article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.tg-wrap { width: min(calc(100% - 26px), var(--tg-content)); }
	.site-main { padding: 18px 0 52px; }
	.hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 36px 25px 43px; border-radius: 4px 54px 4px 4px; }
	.hero h1 { max-width: 500px; font-size: clamp(3rem, 13vw, 4.35rem); }
	.hero-copy > p { font-size: 14px; }
	.grade-preview { width: min(100%, 420px); justify-self: center; }
	.benefit-strip { justify-content: flex-start; overflow-x: auto; gap: 22px; white-space: nowrap; }
	.homepage-content { margin-top: 19px; padding: 24px 19px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
	.post-card-body { padding: 13px; }
	.post-card-title { font-size: 16px; }
	.post-card-excerpt { font-size: 11px; }
	.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topic-card { min-height: 105px; padding: 14px; }
	.topic-name { font-size: 17px; }
	.section-block { margin-top: 42px; }
	.section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
	.page-surface, .archive-surface, .search-surface, .error-surface { padding: 24px 19px; }
	.article-header { padding: 27px 20px 20px; }
	.article-header h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
	.article-featured { margin: 0 15px 20px; }
	.article-content { padding: 0 20px 28px; }
	.article-content .entry-content { font-size: 15px; }
	.article-sidebar { grid-template-columns: 1fr; }
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.footer-main { grid-template-columns: 1fr 1fr; gap: 25px 18px; padding-top: 34px; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom { flex-direction: column; gap: 5px; }
}
@media (max-width: 460px) {
	.brand-symbol { width: 35px; height: 35px; flex-basis: 35px; }
	.brand-name { font-size: 19px; }
	.brand-caption { font-size: 9px; }
	.utility-inner { min-height: 29px; font-size: 10px; }
	.post-grid { grid-template-columns: 1fr; }
	.post-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
	.post-card-image { height: 100%; min-height: 130px; aspect-ratio: auto; }
	.post-card-body { align-self: center; }
	.post-card-excerpt { display: none; }
	.topic-grid { gap: 8px; }
	.topic-card { min-height: 95px; }
	.hero-actions { gap: 14px; }
	.footer-main { gap: 22px 14px; }
	.search-form { flex-direction: column; }
	.search-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
