/*
Theme Name: Hankering for History
Theme URI: https://hankeringforhistory.com/
Author: Prioritized SEO
Description: The 2026 Hankering for History theme: archive-drawer look, parchment and ink palette, editorial article template with quick answer, timeline, FAQ and sources styling. Mobile first.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hankering
*/

/* ---------- Tokens ---------- */
:root {
	--hfh-ink: #1E1B18;
	--hfh-ink-soft: #3D3630;
	--hfh-muted: #5A5148;
	--hfh-parchment: #F4ECDD;
	--hfh-paper: #FBF7EF;
	--hfh-line: #D8CBB3;
	--hfh-brass: #B8862F;
	--hfh-brass-text: #7A5718;
	--hfh-gold: #D9B26A;
	--hfh-blue: #2F4A5C;
	--hfh-on-ink-muted: #CFC4B2;
	--hfh-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--hfh-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--hfh-wrap: 1200px;
	--hfh-gutter: 20px;
	--hfh-radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--hfh-parchment);
	color: var(--hfh-ink);
	font-family: var(--hfh-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--hfh-ink); text-underline-offset: 3px; }
a:hover { color: var(--hfh-brass-text); }
:focus-visible { outline: 3px solid var(--hfh-blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--hfh-serif); line-height: 1.15; margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hfh-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--hfh-ink); color: var(--hfh-parchment); padding: 10px 16px; border-radius: var(--hfh-radius); }
.hfh-skip:focus { left: 8px; color: var(--hfh-parchment); }

.hfh-wrap { max-width: var(--hfh-wrap); margin: 0 auto; padding-left: var(--hfh-gutter); padding-right: var(--hfh-gutter); }
.hfh-section { padding-top: 40px; padding-bottom: 40px; }
.hfh-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.hfh-section-title { font-size: clamp(26px, 4vw, 32px); margin-bottom: 20px; }
.hfh-section__head .hfh-section-title { margin-bottom: 0; }
.hfh-muted { color: var(--hfh-muted); font-size: 15px; }
.hfh-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }

/* ---------- Labels, buttons ---------- */
.hfh-kicker, .hfh-label {
	display: inline-block; font-family: var(--hfh-sans); font-size: 12px; font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfh-brass-text); text-decoration: none;
}
.hfh-label--gold { color: var(--hfh-gold); }
a.hfh-kicker:hover { text-decoration: underline; }
.hfh-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
	border-radius: 22px; font: 600 14px/1 var(--hfh-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.hfh-btn--lg { min-height: 48px; padding: 0 22px; border-radius: 24px; font-size: 15px; }
.hfh-btn--dark { background: var(--hfh-ink); color: var(--hfh-parchment); }
.hfh-btn--dark:hover { background: var(--hfh-ink-soft); color: var(--hfh-parchment); }
.hfh-btn--outline { border-color: var(--hfh-ink); color: var(--hfh-ink); background: transparent; }
.hfh-btn--outline:hover { background: var(--hfh-ink); color: var(--hfh-parchment); }
.hfh-btn--ghost { border-color: var(--hfh-parchment); color: var(--hfh-parchment); }
.hfh-btn--ghost:hover { background: var(--hfh-parchment); color: var(--hfh-ink); }
.hfh-dek { font-size: clamp(17px, 2.2vw, 20px); color: var(--hfh-ink-soft); margin: 0; max-width: 680px; }

/* ---------- Top bar & header ---------- */
.hfh-topbar { background: var(--hfh-ink); color: var(--hfh-parchment); font-size: 13px; }
.hfh-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.hfh-topbar a { color: var(--hfh-parchment); text-decoration: none; }
.hfh-topbar__label { color: var(--hfh-gold); font-weight: 600; }

.hfh-header { position: relative; z-index: 60; border-bottom: 1px solid var(--hfh-line); background: var(--hfh-parchment); }
.hfh-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.hfh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hfh-ink); }
.hfh-brand__logo { width: 52px; height: 52px; object-fit: contain; }
.hfh-brand__text { display: flex; flex-direction: column; }
.hfh-brand__name { font-family: var(--hfh-serif); font-size: clamp(20px, 3vw, 24px); font-weight: 700; line-height: 1.1; }
.hfh-brand__tagline { font-size: 13px; color: var(--hfh-muted); }
.hfh-nav { order: 3; flex-basis: 100%; }
.hfh-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 20px; }
.hfh-nav .hfh-menu { flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.hfh-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.hfh-nav .current-menu-item > a, .hfh-nav .current-category-ancestor > a, .hfh-nav .current-post-ancestor > a { text-decoration: underline; text-underline-offset: 6px; font-weight: 600; }
.hfh-header__actions { display: flex; gap: 8px; align-items: center; }
.hfh-iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--hfh-ink); background: transparent; color: var(--hfh-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hfh-iconbtn[aria-expanded="true"] { background: var(--hfh-ink); color: var(--hfh-parchment); }
.hfh-search { border-top: 1px solid var(--hfh-line); padding: 14px 0; background: var(--hfh-paper); }
@media (min-width: 1280px) {
	.hfh-header__inner { flex-wrap: nowrap; gap: 24px; }
	.hfh-nav { order: 0; flex: 1 1 auto; flex-basis: auto; display: flex; justify-content: flex-end; }
	.hfh-nav .hfh-menu { gap: 0 18px; justify-content: flex-end; }
}
@media (max-width: 599px) { .hfh-header__follow { display: none; } }

.hfh-searchform { display: flex; gap: 8px; max-width: 560px; }
.hfh-searchform input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--hfh-ink); border-radius: 22px; background: var(--hfh-paper); font: 16px var(--hfh-sans); color: var(--hfh-ink); }

/* ---------- Media ---------- */
.hfh-media { position: relative; overflow: hidden; border-radius: 4px; background: var(--hfh-blue); }
.hfh-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hfh-media--3-2 { aspect-ratio: 3 / 2; }
.hfh-media--16-9 { aspect-ratio: 16 / 9; }
.hfh-media--21-9 { aspect-ratio: 16 / 9; }
@media (min-width: 760px) { .hfh-media--21-9 { aspect-ratio: 21 / 9; } }
.hfh-media--empty { display: flex; align-items: center; justify-content: center; }
.hfh-media--empty .hfh-seal { opacity: 0.5; }

/* ---------- Home ---------- */
.hfh-hero { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 32px; padding-bottom: 40px; }
.hfh-hero__main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hfh-hero__main > a:first-child { display: block; }
.hfh-hero__title { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.hfh-hero__title a { text-decoration: none; }
.hfh-hero__main .hfh-btn { align-self: flex-start; }
.hfh-hero__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hfh-panel { background: var(--hfh-paper); border: 1px solid var(--hfh-line); border-radius: var(--hfh-radius); padding: 20px; }
.hfh-otd__title { font-size: 24px; line-height: 1.2; margin-top: 8px; }
.hfh-otd__title a { text-decoration: none; }
.hfh-rule-heading { display: block; font-family: var(--hfh-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfh-muted); border-bottom: 2px solid var(--hfh-ink); padding-bottom: 8px; margin: 0 0 4px; }
.hfh-list { list-style: none; margin: 0; padding: 0; }
.hfh-list li { border-bottom: 1px solid var(--hfh-line); }
.hfh-list li:last-child { border-bottom: 0; }
.hfh-list a { display: block; padding: 12px 0; font-family: var(--hfh-serif); font-size: 18px; font-weight: 600; line-height: 1.3; text-decoration: none; }

.hfh-band--paper { background: var(--hfh-paper); border-top: 1px solid var(--hfh-line); border-bottom: 1px solid var(--hfh-line); padding: 40px 0; }
.hfh-band--ink { background: var(--hfh-ink); color: var(--hfh-parchment); padding: 48px 0; }
.hfh-band--ink .hfh-section-title { margin-top: 6px; }
.hfh-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.hfh-topic { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--hfh-ink); border-radius: var(--hfh-radius); text-decoration: none; }
.hfh-topic:hover { background: var(--hfh-ink); color: var(--hfh-parchment); }
.hfh-topic:hover .hfh-topic__desc { color: var(--hfh-on-ink-muted); }
.hfh-topic__name { font-family: var(--hfh-serif); font-size: 20px; font-weight: 600; }
.hfh-topic__desc { font-size: 14px; color: var(--hfh-muted); }
.hfh-myths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.hfh-myth { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--hfh-brass); color: var(--hfh-parchment); text-decoration: none; }
.hfh-myth:hover { color: var(--hfh-gold); }
.hfh-myth__title { font-family: var(--hfh-serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.hfh-myth__cta { font-size: 14px; color: var(--hfh-on-ink-muted); }

/* ---------- Cards ---------- */
.hfh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; }
.hfh-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hfh-card__media { display: block; }
.hfh-card__title { font-size: 22px; line-height: 1.25; }
.hfh-card__title a { text-decoration: none; }
.hfh-card__title a:hover { text-decoration: underline; }
.hfh-card__meta { font-size: 14px; color: var(--hfh-muted); }

/* ---------- Follow band & footer ---------- */
.hfh-follow { background: var(--hfh-paper); border-top: 1px solid var(--hfh-line); }
.hfh-follow__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hfh-follow h2 { font-size: clamp(26px, 4vw, 32px); margin-bottom: 8px; }
.hfh-follow p { margin: 0; font-size: 17px; color: var(--hfh-ink-soft); }
.hfh-follow__links { display: flex; flex-wrap: wrap; gap: 12px; }

.hfh-footer { background: var(--hfh-ink); color: var(--hfh-on-ink-muted); font-size: 14px; }
.hfh-footer a { color: var(--hfh-parchment); text-decoration: none; }
.hfh-footer a:hover { color: var(--hfh-gold); text-decoration: underline; }
.hfh-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.hfh-footer__name { display: block; font-family: var(--hfh-serif); font-size: 22px; font-weight: 700; color: var(--hfh-parchment); margin-bottom: 8px; }
.hfh-footer__about p { margin: 0; }
.hfh-footer__label { display: block; color: var(--hfh-gold); font-weight: 600; margin-bottom: 6px; }
.hfh-footer .hfh-menu { flex-direction: column; gap: 0; }
.hfh-footer .hfh-menu a { display: inline-flex; align-items: center; min-height: 44px; }
.hfh-footer__base { border-top: 1px solid var(--hfh-ink-soft); padding-top: 16px; padding-bottom: 32px; }

/* ---------- Article ---------- */
.hfh-breadcrumb { padding-top: 24px; font-size: 14px; color: var(--hfh-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.hfh-breadcrumb a { color: var(--hfh-muted); }
.hfh-article__head { max-width: 820px; display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.hfh-article__title { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; font-weight: 700; }
.hfh-byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--hfh-muted); border-top: 1px solid var(--hfh-line); border-bottom: 1px solid var(--hfh-line); padding: 12px 0; }
.hfh-byline a { font-weight: 600; }
.hfh-checked { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--hfh-blue); }
.hfh-article__figure { margin-top: 24px; margin-bottom: 0; }
.hfh-article__figure figcaption { font-size: 13px; color: var(--hfh-muted); padding-top: 8px; }
.hfh-article__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-top: 32px; padding-bottom: 48px; }
.hfh-article__layout > .hfh-prose { flex: 999 1 560px; min-width: 0; }
.hfh-article__side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hfh-article__side { order: -1; }
@media (max-width: 899px) { .hfh-sidecard { display: none; } }
@media (min-width: 900px) { .hfh-article__side { order: 0; position: sticky; top: 24px; } }
.hfh-toc ol { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; }
.hfh-toc a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.hfh-toc a:hover { text-decoration: underline; }
.hfh-sidecard { background: var(--hfh-ink); color: var(--hfh-parchment); border-radius: var(--hfh-radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hfh-sidecard__title { font-family: var(--hfh-serif); font-size: 22px; font-weight: 600; }
.hfh-sidecard__text { font-size: 15px; color: var(--hfh-on-ink-muted); }
.hfh-sidecard__links { display: flex; flex-wrap: wrap; gap: 8px; }
.hfh-article__comments { padding-bottom: 40px; }

/* ---------- Prose (article and page body) ---------- */
.hfh-prose { max-width: 720px; font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.hfh-prose > * { margin-top: 0; margin-bottom: 20px; }
.hfh-prose h2 { font-size: clamp(26px, 4vw, 32px); line-height: 1.2; margin-top: 40px; margin-bottom: 12px; scroll-margin-top: 16px; }
.hfh-prose h3 { font-size: 23px; line-height: 1.25; margin-top: 32px; margin-bottom: 10px; }
.hfh-prose > h2:first-child, .hfh-prose > h3:first-child { margin-top: 0; }
.hfh-prose a { color: var(--hfh-blue); }
.hfh-prose a:hover { color: var(--hfh-brass-text); }
.hfh-prose ul, .hfh-prose ol { padding-left: 24px; }
.hfh-prose li { margin-bottom: 6px; }
.hfh-prose img { border-radius: 4px; }
.hfh-prose figure { margin-left: 0; margin-right: 0; }
.hfh-prose figcaption, .hfh-prose .wp-element-caption, .hfh-prose .wp-caption-text { font-size: 13px; color: var(--hfh-muted); margin-top: 8px; line-height: 1.5; }
.hfh-prose .wp-caption { max-width: 100%; }
.hfh-prose .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.hfh-prose .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.hfh-prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }
@media (max-width: 600px) { .hfh-prose .alignleft, .hfh-prose .alignright { float: none; margin: 0 0 20px; max-width: 100%; } }
.hfh-prose blockquote:not(.quick-answer):not(.hfh-quick-answer) {
	margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hfh-brass);
	font-family: var(--hfh-serif); font-size: 24px; line-height: 1.4;
}
.hfh-prose blockquote cite { display: block; font-family: var(--hfh-sans); font-size: 14px; font-style: normal; color: var(--hfh-muted); margin-top: 8px; }

/* Tables (timelines and comparisons) scroll sideways on phones. */
.hfh-prose .wp-block-table, .hfh-prose .hfh-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hfh-prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.hfh-prose > table { display: block; overflow-x: auto; }
.hfh-prose th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--hfh-ink); font-weight: 600; vertical-align: bottom; }
.hfh-prose td { padding: 10px 12px; border-bottom: 1px solid var(--hfh-line); vertical-align: top; }
.hfh-prose td:first-child { font-weight: 600; white-space: nowrap; }
.hfh-prose .wp-block-table thead { border-bottom: 0; }
.hfh-prose .wp-block-table td, .hfh-prose .wp-block-table th { border-left: 0; border-right: 0; border-top: 0; }

/* Quick answer: add the class "quick-answer" to a Group, Paragraph or Quote block. */
.hfh-prose .quick-answer, .hfh-prose .hfh-quick-answer {
	background: var(--hfh-paper); border: 1px solid var(--hfh-line); border-radius: var(--hfh-radius);
	padding: 20px 22px; margin: 0 0 32px; font-family: var(--hfh-sans); font-size: 18px; line-height: 1.6;
}
.hfh-prose .quick-answer::before, .hfh-prose .hfh-quick-answer::before {
	content: "Quick answer"; display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--hfh-brass-text); margin-bottom: 6px;
}
.hfh-prose .quick-answer > :last-child, .hfh-prose .hfh-quick-answer > :last-child { margin-bottom: 0; }

/* FAQ: core Details blocks and Yoast/Rank Math FAQ blocks. */
.hfh-prose details { border-bottom: 1px solid var(--hfh-line); padding: 14px 0; margin: 0; }
.hfh-prose details:first-of-type { border-top: 1px solid var(--hfh-line); }
.hfh-prose details + details { margin-top: 0; }
.hfh-prose summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.hfh-prose details > :not(summary) { margin: 8px 0 0; }
.hfh-prose .schema-faq-section, .hfh-prose .rank-math-list-item { border-bottom: 1px solid var(--hfh-line); padding: 14px 0; }
.hfh-prose .schema-faq-question, .hfh-prose .rank-math-question { display: block; font-family: var(--hfh-sans); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.hfh-prose .schema-faq-answer, .hfh-prose .rank-math-answer { margin: 0; }

/* Sources list after a "Sources" heading. */
.hfh-prose h2[id^="sources"] + ol, .hfh-prose h2[id^="sources"] + ul,
.hfh-prose h2[id^="references"] + ol, .hfh-prose h2[id^="references"] + ul { font-size: 15px; line-height: 1.6; color: var(--hfh-ink-soft); }

.hfh-pagelinks { font-weight: 600; margin-top: 24px; }

/* ---------- Page ---------- */
.hfh-page { padding-top: 40px; padding-bottom: 56px; }
.hfh-page__head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.hfh-page__title { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; }
.hfh-page__figure { max-width: 960px; margin-bottom: 28px; }

/* ---------- Archive ---------- */
.hfh-archive__head .hfh-wrap { display: flex; flex-direction: column; gap: 8px; }
.hfh-archive__title { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 2px 0 4px; }
.hfh-archive__search { margin-top: 12px; }
.hfh-archive__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; }
.hfh-archive__bar + .hfh-section { padding-top: 24px; }
.hfh-sort { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hfh-sort select { min-height: 44px; padding: 0 12px; border: 1px solid var(--hfh-ink); border-radius: var(--hfh-radius); background: var(--hfh-paper); font: 15px var(--hfh-sans); color: var(--hfh-ink); }
.pagination { padding-bottom: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--hfh-ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--hfh-ink); color: var(--hfh-parchment); }
.pagination .page-numbers.dots { border-color: transparent; }
.hfh-404 { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.hfh-404__topics { margin-top: 24px; }

/* ---------- Comments ---------- */
.hfh-comments { max-width: 720px; border-top: 1px solid var(--hfh-line); padding-top: 32px; }
.hfh-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.hfh-comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--hfh-line); }
.hfh-comment-list .children { list-style: none; padding-left: 20px; }
.hfh-comment-list .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.hfh-comment-list .comment-metadata { font-size: 13px; color: var(--hfh-muted); }
.hfh-comments textarea, .hfh-comments input[type="text"], .hfh-comments input[type="email"], .hfh-comments input[type="url"] { width: 100%; padding: 10px 12px; border: 1px solid var(--hfh-ink); border-radius: var(--hfh-radius); background: var(--hfh-paper); font: 16px var(--hfh-sans); }
.hfh-comments .submit { min-height: 44px; padding: 0 20px; border-radius: 22px; border: 0; background: var(--hfh-ink); color: var(--hfh-parchment); font: 600 15px var(--hfh-sans); cursor: pointer; }

/* ---------- Print ---------- */
@media print {
	.hfh-topbar, .hfh-header__actions, .hfh-nav, .hfh-follow, .hfh-footer, .hfh-article__side, .hfh-band--paper { display: none !important; }
	body { background: #fff; }
}

/* ---------- Touch targets ---------- */
a.hfh-kicker { display: inline-flex; align-items: center; min-height: 44px; margin: -13px 0; }
.hfh-breadcrumb a, .hfh-topbar a, .hfh-byline a { display: inline-flex; align-items: center; min-height: 44px; }
.hfh-breadcrumb { align-items: center; padding-top: 12px; }
.hfh-byline { padding: 4px 0; }
.hfh-comment-list .comment-reply-link, .hfh-comment-list .comment-metadata a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Embeds and wide content in older posts ---------- */
.hfh-prose iframe, .hfh-prose embed, .hfh-prose object, .hfh-prose video { max-width: 100%; }
.hfh-prose iframe[src*="youtube"], .hfh-prose iframe[src*="youtu.be"], .hfh-prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hfh-prose pre { overflow-x: auto; }

/* ---------- Wide and full alignment ---------- */
.hfh-prose .alignwide { max-width: min(960px, calc(100vw - 40px)); }
.hfh-prose .alignfull { max-width: none; }

/* ---------- Three even columns on desktop ---------- */
@media (min-width: 1000px) { .hfh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mega menu ---------- */
.hfh-mega { order: 3; flex-basis: 100%; min-width: 0; max-width: 100%; }
.hfh-mega__bar { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; }
.hfh-mega.is-open .hfh-mega__bar { display: flex; border-top: 1px solid var(--hfh-line); margin-top: 6px; }
.hfh-mega__toggle {
	position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hfh-ink);
	border-radius: 22px; background: transparent; color: var(--hfh-ink); font: 600 14px/1 var(--hfh-sans); cursor: pointer;
}
.hfh-mega__toggle[aria-expanded="true"] { background: var(--hfh-ink); color: var(--hfh-parchment); }
.hfh-mega__trigger, .hfh-mega__direct {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 0;
	border: 0; border-bottom: 1px solid var(--hfh-line); background: transparent; color: var(--hfh-ink);
	font: 600 19px/1.2 var(--hfh-serif); text-align: left; text-decoration: none; cursor: pointer;
}
.hfh-mega__chev { flex: 0 0 auto; transition: transform 0.2s ease; }
.hfh-mega__trigger[aria-expanded="true"] .hfh-mega__chev { transform: rotate(180deg); }
.hfh-mega__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hfh-brass); margin-right: 10px; box-shadow: 0 0 0 0 rgba(184, 134, 47, 0.6); animation: hfh-pulse 2.4s ease-out infinite; }
.hfh-mega__direct { justify-content: flex-start; }
@keyframes hfh-pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 134, 47, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(184, 134, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 134, 47, 0); } }

/* Phone and tablet: accordion panels. */
.hfh-mega__panel { padding: 4px 0 16px; border-bottom: 1px solid var(--hfh-line); }
.hfh-mega__inner { padding-left: 0; padding-right: 0; }
.hfh-mega__intro .hfh-label, .hfh-mega__intro .hfh-mega__topic, .hfh-mega__intro .hfh-mega__desc, .hfh-mega__eyebrow { display: none; }
.hfh-mega__all { display: inline-flex; margin-top: 4px; border-color: var(--hfh-ink); color: var(--hfh-ink); }
.hfh-mega__all:hover { background: var(--hfh-ink); color: var(--hfh-parchment); }
.hfh-mega__latest { order: -1; }
.hfh-mega__inner { display: flex; flex-direction: column; gap: 12px; }
.hfh-mega__stories { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hfh-mega__story a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 0; text-decoration: none; color: var(--hfh-ink); }
.hfh-mega__thumb { flex: 0 0 72px; display: block; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--hfh-blue); }
.hfh-mega__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.hfh-mega__story-title { font: 600 16px/1.3 var(--hfh-serif); }
.hfh-mega__col { padding: 8px 0 4px; }
.hfh-mega__topic { color: var(--hfh-ink); text-decoration: none; font: 700 20px/1.2 var(--hfh-serif); }
.hfh-mega__topic--sm { display: inline-flex; align-items: center; min-height: 44px; }
.hfh-mega__col .hfh-mega__desc { display: block; margin: 0 0 6px; font-size: 14px; color: var(--hfh-muted); }
.hfh-mega__links { list-style: none; margin: 0; padding: 0; }
.hfh-mega__links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--hfh-line); }
.hfh-mega__more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; }

/* Desktop: full-width dark panels under the header. */
@media (min-width: 1280px) {
	.hfh-header__inner { flex-wrap: nowrap; gap: 24px; }
	.hfh-mega { order: 0; flex: 1 1 auto; flex-basis: auto; display: flex; justify-content: flex-end; }
	.hfh-mega__toggle { display: none; }
	.hfh-mega__bar, .hfh-mega.is-open .hfh-mega__bar { display: flex; flex-direction: row; align-items: center; gap: 2px; border: 0; margin: 0; }
	.hfh-mega__trigger, .hfh-mega__direct {
		width: auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 22px;
		font: 500 15px/1 var(--hfh-sans); white-space: nowrap;
	}
	.hfh-mega__trigger:hover, .hfh-mega__direct:hover { background: var(--hfh-paper); color: var(--hfh-ink); }
	.hfh-mega__trigger[aria-expanded="true"] { background: var(--hfh-ink); color: var(--hfh-parchment); }

	.hfh-mega__panel {
		position: absolute; left: 0; right: 0; top: 100%; padding: 0; border: 0;
		background: var(--hfh-ink); color: var(--hfh-parchment); border-top: 3px solid var(--hfh-brass);
		animation: hfh-drop 0.18s ease-out;
	}
	@keyframes hfh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
	.hfh-mega__inner { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 48px; padding: 32px 20px 40px; }
	.hfh-mega__intro .hfh-label, .hfh-mega__intro .hfh-mega__topic, .hfh-mega__intro .hfh-mega__desc, .hfh-mega__eyebrow { display: block; }
	.hfh-mega__latest { order: 0; }
	.hfh-mega__topic { color: var(--hfh-parchment); font-size: 36px; line-height: 1.05; margin: 8px 0 10px; }
	.hfh-mega__topic:hover { color: var(--hfh-gold); }
	.hfh-mega__desc { margin: 0 0 22px; color: var(--hfh-on-ink-muted); font-size: 16px; }
	.hfh-mega__all { border-color: var(--hfh-parchment); color: var(--hfh-parchment); }
	.hfh-mega__all:hover { background: var(--hfh-parchment); color: var(--hfh-ink); }
	.hfh-mega__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfh-gold); margin-bottom: 14px; }
	.hfh-mega__stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
	.hfh-mega__story a { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; color: var(--hfh-parchment); }
	.hfh-mega__thumb { flex: none; width: 100%; }
	.hfh-mega__story a:hover .hfh-mega__thumb img { transform: scale(1.05); }
	.hfh-mega__story a:hover .hfh-mega__story-title { color: var(--hfh-gold); }
	.hfh-mega__story-title { font-size: 17px; }

	.hfh-mega__inner--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
	.hfh-mega__col { padding: 0; }
	.hfh-mega__col .hfh-mega__topic { font-size: 26px; margin: 0 0 6px; }
	.hfh-mega__col .hfh-mega__desc { color: var(--hfh-on-ink-muted); }
	.hfh-mega__links a { color: var(--hfh-parchment); border-bottom-color: var(--hfh-ink-soft); }
	.hfh-mega__links a:hover { color: var(--hfh-gold); }
	.hfh-mega__more-link { color: var(--hfh-gold); }
	.hfh-mega__more-link:hover { color: var(--hfh-parchment); }

	body.hfh-mega-open .hfh-content, body.hfh-mega-open .hfh-follow, body.hfh-mega-open .hfh-footer { opacity: 0.45; transition: opacity 0.18s ease; }
}
@media (min-width: 1280px) {
	.hfh-brand__tagline { display: none; }
	.hfh-mega__trigger, .hfh-mega__direct { padding: 0 8px; font-size: 14px; }
	.hfh-header__follow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hfh-mega__panel, .hfh-mega__dot { animation: none; }
	.hfh-mega__thumb img, .hfh-mega__chev { transition: none; }
}

/* ---------- Header fit ---------- */
.hfh-brand { flex: 0 0 auto; }
.hfh-brand__name { white-space: nowrap; }
.hfh-header__actions { flex: 0 0 auto; }
@media (max-width: 479px) {
	.hfh-brand .hfh-seal, .hfh-brand__logo { width: 44px; height: 44px; }
	.hfh-brand__name { font-size: 19px; }
	.hfh-mega__toggle { width: 44px; padding: 0; justify-content: center; }
	.hfh-mega__toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (min-width: 1280px) {
	.hfh-header__follow { display: none; }
}
@media (min-width: 1280px) {
	.hfh-brand__tagline { display: none; }
}

.hfh-mega__search { padding: 12px 0; border-bottom: 1px solid var(--hfh-line); }
.hfh-mega__search .hfh-searchform { max-width: none; }
@media (max-width: 479px) {
	.hfh-brand__tagline { display: none; }
	.hfh-header__actions .hfh-iconbtn { display: none; }
}
@media (min-width: 480px) { .hfh-mega__search { display: none; } }
@media (min-width: 1280px) { .hfh-header__inner { gap: 16px; } .hfh-mega__trigger, .hfh-mega__direct { padding: 0 7px; } }
@media (min-width: 1280px) { .hfh-mega { min-width: auto; } }
@media (min-width: 1280px) { .hfh-brand__name { font-size: 21px; } .hfh-brand .hfh-seal { width: 44px; height: 44px; } }
@media (max-width: 1279px) { .hfh-header__inner { column-gap: 12px; } }
@media (max-width: 399px) { .hfh-brand__name { font-size: 17px; } .hfh-brand { gap: 10px; } }
