/*
Theme Name: English Teacher Melanie 2026
Description: Clean, fast, reading-first theme for englishteachermelanie.com. SEO output is left to Yoast.
Version: 1.2.0
Author: Mostash
Text Domain: etm-2026
*/

:root {
	--bg: #fbf8f4;
	--surface: #ffffff;
	--ink: #241c1c;
	--ink-2: #4a3f3d;
	--muted: #756864;
	--line: #ebe3db;
	--tint: #f4ece4;
	--brand: #6a191a;
	--brand-2: #8c2627;
	--brand-soft: #f6e6e2;
	--hl: #ffe08a;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(36, 28, 28, .05), 0 6px 20px rgba(36, 28, 28, .06);
	--wrap: 1180px;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body.etm {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.etm-nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.etm-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.etm-skip:focus { left: 12px; color: #fff; }
.etm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.etm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 248, 244, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.etm-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(36, 28, 28, .05); }
.etm-header__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.etm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.etm-brand:hover { color: var(--ink); }
.etm-brand__mark {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	background: var(--ink-2); color: #fff;
	font: 600 26px/1 var(--serif);
	border-radius: 12px 12px 12px 3px;
	padding-bottom: 5px;
	position: relative;
}
.etm-brand__mark::after {
	content: ""; position: absolute; left: 6px; bottom: -7px;
	border-left: 8px solid transparent; border-top: 8px solid var(--ink-2);
}
.etm-brand__text { display: flex; flex-direction: column; font: 650 22px/1 var(--serif); color: var(--brand); letter-spacing: .01em; text-transform: uppercase; }
.etm-brand__text small { font: 500 12px/1.2 var(--sans); color: var(--ink-2); text-transform: none; letter-spacing: .02em; margin-bottom: 3px; }
.etm-brand--light .etm-brand__text { color: #fff; }
.etm-brand--light .etm-brand__text small { color: rgba(255, 255, 255, .7); }
.etm-brand--light .etm-brand__mark { background: var(--brand-2); }
.etm-brand--light .etm-brand__mark::after { border-top-color: var(--brand-2); }

.etm-nav { margin-left: auto; }
.etm-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.etm-nav__list a {
	display: block; padding: 8px 12px; border-radius: 999px;
	color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px;
	transition: background .15s, color .15s;
}
.etm-nav__list a:hover { background: var(--tint); color: var(--ink); }
.etm-nav__list a[aria-current="page"], .etm-nav__list .current-menu-item > a { background: var(--brand-soft); color: var(--brand); }
.etm-header__tools { display: flex; gap: 4px; }
.etm-iconbtn {
	display: grid; place-items: center; width: 42px; height: 42px;
	border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.etm-iconbtn:hover { background: var(--tint); color: var(--ink); }
.etm-menubtn { display: none; }
.etm-searchbar { border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }

@media (max-width: 960px) {
	.etm-menubtn { display: grid; }
	.etm-header__tools { margin-left: auto; }
	.etm-nav {
		position: fixed; inset: 72px 0 0 0; margin: 0;
		background: var(--bg); padding: 16px 20px 40px;
		transform: translateX(100%); visibility: hidden;
		transition: transform .25s ease, visibility .25s;
		overflow-y: auto;
	}
	.etm-nav.is-open { transform: none; visibility: visible; }
	.etm-nav__list { flex-direction: column; gap: 2px; }
	.etm-nav__list a { font-size: 20px; padding: 14px 16px; border-radius: 12px; font-family: var(--serif); font-weight: 500; }
}

/* ---------- Search ---------- */
.etm-search {
	display: flex; align-items: center; gap: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	padding: 6px 6px 6px 16px; color: var(--muted);
	box-shadow: var(--shadow);
}
.etm-search:focus-within { border-color: var(--brand); }
.etm-search svg { flex-shrink: 0; }
.etm-search input {
	flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
	font: inherit; font-size: 16px; color: var(--ink); padding: 8px 4px;
}
.etm-search button {
	border: 0; border-radius: 999px; background: var(--brand); color: #fff;
	font: 600 15px/1 var(--sans); padding: 12px 18px; cursor: pointer;
}
.etm-search button:hover { background: var(--brand-2); }
.etm-search--big { padding: 8px 8px 8px 20px; }
.etm-search--big input { font-size: 17px; padding: 10px 4px; }
.etm-search--big button { padding: 14px 22px; }

/* ---------- Chips & tones ---------- */
.etm-chip {
	display: inline-block; padding: 5px 12px; border-radius: 999px;
	font: 600 13px/1.3 var(--sans); letter-spacing: .01em; text-decoration: none;
	background: var(--t-bg); color: var(--t-fg);
}
.etm-chip:hover { filter: brightness(.96); color: var(--t-fg); }
.etm-tone--maroon { --t-bg: #f6e3df; --t-fg: #7a1f20; --t-deep: #6a191a; }
.etm-tone--ink    { --t-bg: #ebe6e3; --t-fg: #3a302e; --t-deep: #3a302e; }
.etm-tone--plum   { --t-bg: #efe3f0; --t-fg: #5d2a62; --t-deep: #5d2a62; }
.etm-tone--moss   { --t-bg: #e4eedf; --t-fg: #35592b; --t-deep: #35592b; }
.etm-tone--sky    { --t-bg: #e0ebf3; --t-fg: #1f4e6e; --t-deep: #1f4e6e; }
.etm-tone--amber  { --t-bg: #fbeccd; --t-fg: #7a4d05; --t-deep: #8a5a0c; }

/* ---------- Hero ---------- */
.etm-hero { padding: 56px 0 64px; background:
	radial-gradient(900px 400px at 85% 0%, #f6e3df 0%, transparent 60%),
	radial-gradient(700px 300px at 0% 100%, #fbeccd 0%, transparent 60%); }
.etm-hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.etm-eyebrow { margin: 0 0 12px; font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.etm-hero__title { margin: 0 0 16px; font: 650 clamp(40px, 6vw, 68px)/1.02 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.etm-hero__sub { margin: 0 0 28px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.etm-hero__chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.etm-hero__chips--center { justify-content: center; }
.etm-hero__chips .etm-chip { font-size: 14px; padding: 7px 14px; }
.etm-note {
	background: var(--surface); border-radius: 20px; padding: 30px 30px 26px;
	box-shadow: 0 2px 4px rgba(36, 28, 28, .04), 0 24px 60px rgba(106, 25, 26, .12);
	transform: rotate(1.2deg);
	background-image: repeating-linear-gradient(transparent 0 35px, #efe7df 35px 36px);
	background-position: 0 22px;
	border-left: 4px solid #e9b8b0;
}
.etm-note__label { margin: 0 0 6px; font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.etm-note__phrase { margin: 0 0 4px; font: 600 26px/1.3 var(--serif); color: var(--ink); }
.etm-note__phrase--sm { font-size: 22px; }
.etm-note__meaning { margin: 0; color: var(--ink-2); font-size: 15px; }
.etm-note__rule { height: 22px; }
.etm-note mark { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 2px; }
@media (max-width: 900px) {
	.etm-hero { padding: 36px 0 44px; }
	.etm-hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.etm-note { transform: none; }
}
@media (max-width: 520px) {
	.etm-hero__card { display: none; }
	.etm-hero__sub { font-size: 17px; }
	.etm-search--big button { padding: 12px 16px; }
}

/* ---------- Sections & grids ---------- */
.etm-section { padding: 48px 0; }
.etm-section--tint { background: var(--tint); }
.etm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.etm-section__title { margin: 0; font: 650 clamp(26px, 3vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
.etm-link { font-weight: 600; text-decoration: none; }
.etm-link:hover { text-decoration: underline; }
.etm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.etm-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .etm-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .etm-grid, .etm-grid--3 { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Cards ---------- */
.etm-card {
	display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.etm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e0d5cb; }
.etm-card__media {
	display: block; aspect-ratio: 16 / 9; overflow: hidden;
	background: var(--t-bg); position: relative;
}
.etm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.etm-card:hover .etm-card__media img { transform: scale(1.03); }
.etm-card__glyph {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
	font: 650 28px/1.1 var(--serif); color: var(--t-deep); letter-spacing: -.01em;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .55) 0 18%, transparent 19%),
		radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .35) 0 22%, transparent 23%);
}
.etm-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.etm-card__body .etm-chip { align-self: flex-start; font-size: 12px; padding: 4px 10px; }
.etm-card__title { margin: 0; font: 600 20px/1.3 var(--serif); letter-spacing: -.005em; }
.etm-card__title a { color: var(--ink); text-decoration: none; }
.etm-card__title a:hover { color: var(--brand); }
.etm-card__title a::after { content: ""; position: absolute; inset: 0; }
.etm-card { position: relative; }
.etm-card .etm-chip { position: relative; z-index: 1; }
.etm-card__excerpt { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.etm-card__meta { margin: auto 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.etm-card--sm .etm-card__title { font-size: 18px; }
.etm-card--sm .etm-card__body { padding: 16px 18px 18px; }

/* ---------- Topics ---------- */
.etm-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1080px) { .etm-topics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .etm-topics { grid-template-columns: 1fr 1fr; gap: 10px; } }
.etm-topic {
	display: flex; flex-direction: column; gap: 6px; height: 100%;
	padding: 18px; border-radius: var(--radius); text-decoration: none;
	background: var(--t-bg); color: var(--t-fg);
	transition: transform .18s ease, box-shadow .18s;
}
.etm-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--t-fg); }
.etm-topic__name { font: 650 21px/1.15 var(--serif); color: var(--t-deep); }
.etm-topic__blurb { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.etm-topic__count { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { .etm-topic__blurb { display: none; } .etm-topic { padding: 14px; } .etm-topic__name { font-size: 18px; } }

/* ---------- Page heads (archives, search) ---------- */
.etm-pagehead { padding: 44px 0 36px; background: var(--tint); border-bottom: 1px solid var(--line); }
.etm-pagehead--maroon, .etm-pagehead--ink, .etm-pagehead--plum, .etm-pagehead--moss, .etm-pagehead--sky, .etm-pagehead--amber { background: var(--t-bg); }
.etm-pagehead--maroon { --t-bg: #f6e3df; } .etm-pagehead--ink { --t-bg: #ece6e2; } .etm-pagehead--plum { --t-bg: #efe3f0; }
.etm-pagehead--moss { --t-bg: #e4eedf; } .etm-pagehead--sky { --t-bg: #e0ebf3; } .etm-pagehead--amber { --t-bg: #fbeccd; }
.etm-pagehead--center { text-align: center; padding: 80px 0; }
.etm-pagehead--center .etm-pagehead__search { margin-left: auto; margin-right: auto; }
.etm-pagehead__title { margin: 0 0 10px; font: 650 clamp(34px, 5vw, 52px)/1.08 var(--serif); letter-spacing: -.02em; }
.etm-pagehead__sub { color: var(--ink-2); font-size: 18px; max-width: 40em; }
.etm-pagehead--center .etm-pagehead__sub { margin-left: auto; margin-right: auto; }
.etm-pagehead__sub p { margin: 0; }
.etm-pagehead__count { margin: 12px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.etm-pagehead__search { max-width: 620px; margin-top: 22px; }
.etm-empty { font-size: 18px; }

/* ---------- Breadcrumbs ---------- */
.etm-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.etm-crumbs a { color: var(--ink-2); text-decoration: none; }
.etm-crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Single ---------- */
.etm-single { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 64px; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
.etm-page { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
@media (max-width: 1100px) { .etm-single { grid-template-columns: minmax(0, 720px); } .etm-aside { display: none; } }
.etm-article__head { margin-bottom: 28px; }
.etm-article__head .etm-chip { margin-bottom: 14px; }
.etm-article__title { margin: 0 0 14px; font: 650 clamp(32px, 4.6vw, 46px)/1.1 var(--serif); letter-spacing: -.02em; }
.etm-article__meta { margin: 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.etm-article__meta a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.etm-article__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.etm-taglist { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.etm-taglist span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.etm-taglist a { background: var(--surface); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.etm-taglist a:hover { border-color: var(--brand); color: var(--brand); }
.etm-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.etm-postnav__item {
	display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--ink); font: 600 17px/1.35 var(--serif);
}
.etm-postnav__item span { font: 600 13px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.etm-postnav__item:hover { border-color: var(--brand); color: var(--brand); }
.etm-postnav__item--next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .etm-postnav { grid-template-columns: 1fr; } .etm-postnav__item--next { grid-column: auto; } }

.etm-aside { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.etm-aside__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.etm-aside__h { margin: 0 0 12px; font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.etm-aside .etm-search { box-shadow: none; padding: 4px 4px 4px 12px; }
.etm-aside .etm-search button { padding: 10px 12px; font-size: 14px; }
.etm-aside .etm-search input { font-size: 15px; }
.etm-aside__topics { list-style: none; margin: 0; padding: 0; }
.etm-aside__topics a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.etm-aside__topics a:hover { background: var(--tint); color: var(--brand); }

/* ---------- Prose (legacy classic-editor content) ---------- */
.etm-prose { font-size: 18.5px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.etm-prose > * + * { margin-top: 1.1em; }
.etm-prose p { margin: 0 0 1.1em; }
.etm-prose h2, .etm-prose h3, .etm-prose h4 { font-family: var(--serif); font-weight: 650; line-height: 1.25; letter-spacing: -.01em; margin: 1.8em 0 .6em; }
.etm-prose h2 { font-size: 30px; }
.etm-prose h3 { font-size: 24px; }
.etm-prose h4 { font-size: 20px; }
.etm-prose strong, .etm-prose b { font-weight: 650; color: var(--ink); }
.etm-prose ul, .etm-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.etm-prose li { margin: .35em 0; }
.etm-prose li::marker { color: var(--brand); }
.etm-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(106, 25, 26, .35); }
.etm-prose a:hover { text-decoration-color: currentColor; }
.etm-prose img { border-radius: 10px; }
.etm-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.etm-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.etm-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.etm-prose .alignnone { display: block; }
.etm-prose .wp-caption { max-width: 100%; }
.etm-prose .wp-caption-text, .etm-prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.etm-prose::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
	.etm-prose { font-size: 17.5px; }
	.etm-prose .alignleft, .etm-prose .alignright { float: none; margin: 1em auto; max-width: 100%; display: block; }
}
.etm-prose blockquote {
	margin: 1.6em 0; padding: 18px 22px; background: var(--brand-soft);
	border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; font-size: 18px;
}
.etm-prose blockquote p:last-child { margin-bottom: 0; }
.etm-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.etm-prose iframe, .etm-prose embed, .etm-prose object, .etm-prose video { max-width: 100%; border: 0; border-radius: 12px; }
.etm-prose iframe[src*="youtube"], .etm-prose iframe[src*="youtu.be"], .etm-prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.etm-tablewrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.etm-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.etm-prose th, .etm-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.etm-prose tr:last-child td { border-bottom: 0; }
.etm-prose th { background: var(--tint); font-weight: 650; }
.etm-prose code { background: var(--tint); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.etm-pagelinks { margin-top: 24px; font-weight: 600; }

/* ---------- Pagination ---------- */
.etm-pager { margin-top: 40px; }
.etm-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.etm-pager a, .etm-pager span {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px;
}
.etm-pager a:hover { border-color: var(--brand); color: var(--brand); }
.etm-pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.etm-pager .dots { border: 0; background: transparent; }

/* ---------- Footer ---------- */
.etm-footer { background: #2a2020; color: rgba(255, 255, 255, .78); padding: 56px 0 28px; margin-top: 0; }
.etm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.etm-footer__about p { max-width: 26em; margin: 16px 0 0; font-size: 15px; }
.etm-footer__h { margin: 0 0 14px; font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.etm-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.etm-footer__grid > div:last-child .etm-footer__list { columns: 1; }
.etm-footer__list li { margin: 0 0 8px; break-inside: avoid; }
.etm-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.etm-footer a:hover { color: #fff; text-decoration: underline; }
.etm-footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .55); }
.etm-footer__base p { margin: 0; }
@media (max-width: 760px) { .etm-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

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

/* ---------- Archived legacy markup inside 490 restored posts ---------- */
.etm-prose [id^="engli-"], .etm-prose [class^="engli-"], .etm-prose iframe[id^="aswift"], .etm-prose iframe[src*="googlesyndication"] { display: none !important; }
.etm-prose main.content, .etm-prose article { display: block; margin: 0; }
.etm-prose .entry-content > :first-child { margin-top: 0; }
.etm-prose .entry-footer { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.etm-prose .entry-footer p { margin: 0 0 .4em; }
.etm-prose .entry-footer a { color: var(--ink-2); }
.etm-prose .entry-comments { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.etm-prose .entry-comments > h3 { margin-top: 0; font-size: 24px; }
.etm-prose .comment-list, .etm-prose .comment-list .children { list-style: none; padding: 0; margin: 0; }
.etm-prose .comment-list li { margin: 0; }
.etm-prose .comment-list li::marker { content: none; }
.etm-prose .comment-list article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.etm-prose .comment-list .children { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--brand-soft); }
.etm-prose .comment-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.etm-prose .comment-author { margin: 0; font-weight: 650; color: var(--ink); font-size: 15px; }
.etm-prose .comment-author .avatar, .etm-prose .comment-author img { display: none; }
.etm-prose .comment-author .says { display: none; }
.etm-prose .comment-meta { margin: 0; font-size: 13px; }
.etm-prose .comment-meta a { color: var(--muted); text-decoration: none; }
.etm-prose .comment-content p { margin: 0 0 .6em; }
.etm-prose .comment-content p:last-child { margin-bottom: 0; }
.etm-prose .comment-reply, .etm-prose .comment-reply-link { display: none; }

/* Let grid children shrink below their content width on phones. */
.etm-hero__grid > *, .etm-grid > *, .etm-single > *, .etm-topics > * { min-width: 0; }
.etm-search { max-width: 100%; }

/* ---------- Stock hero image on single posts ---------- */
.etm-hero-img { margin: 0 0 32px; }
.etm-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.etm-hero-img figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.etm-hero-img figcaption a { color: var(--muted); }
