/*
Theme Name: Headline Daily
Theme URI: https://github.com/pursae/pursae-dev/tree/main/library/themes/headline-daily
Author: Pursae
Description: A bold news magazine theme with a headline ticker, a dense front page grid and red-on-black accents.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: headline-daily
Fonts: Oswald and Source Serif 4, SIL Open Font License 1.1.
*/

/* Fonts ------------------------------------------------------------------ */
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/oswald.woff2") format("woff2");
}
@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/source-serif-4.woff2") format("woff2");
}
@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/source-serif-4-italic.woff2") format("woff2");
}

/* Tokens ----------------------------------------------------------------- */
:root {
	--hd-accent: #d0021b;
	--hd-ink: #111111;
	--hd-paper: #ffffff;
	--hd-muted: #575757;
	--hd-rule: #e1e1e1;
	--hd-soft: #f6f4ef;
	--hd-on-ink: #ffffff;
	--hd-display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	--hd-text: "Source Serif 4", Georgia, "Times New Roman", serif;
	--hd-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hd-max: 1240px;
	--hd-gutter: clamp(16px, 3vw, 32px);
	--hd-gap: clamp(16px, 2.2vw, 28px);
	--hd-cols: 4;
}
.hd-cols-3 { --hd-cols: 3; }
.hd-fonts-tabloid { --hd-text: var(--hd-ui); }
.hd-fonts-broadsheet { --hd-display: "Source Serif 4", Georgia, "Times New Roman", serif; }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
	margin: 0;
	background: var(--hd-paper);
	color: var(--hd-ink);
	font-family: var(--hd-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--hd-accent); }
:focus-visible { outline: 3px solid var(--hd-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hd-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.005em;
	margin: 1.6em 0 0.5em;
}
.hd-fonts-newsroom h1, .hd-fonts-newsroom h2, .hd-fonts-newsroom h3,
.hd-fonts-tabloid h1, .hd-fonts-tabloid h2, .hd-fonts-tabloid h3 { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--hd-rule); margin: 2em 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 1000; padding: 12px 18px;
	background: var(--hd-accent); color: #fff; font: 600 0.9rem var(--hd-ui);
}

.hd-wrap {
	width: 100%;
	max-width: calc(var(--hd-max) + 2 * var(--hd-gutter));
	margin-inline: auto;
	padding-inline: var(--hd-gutter);
}

/* Ticker ----------------------------------------------------------------- */
.hd-ticker { display: none; background: var(--hd-ink); color: var(--hd-on-ink); font: 500 0.8125rem/1 var(--hd-ui); }
.hd-has-ticker .hd-ticker { display: block; }
.hd-ticker__inner { display: flex; align-items: stretch; gap: 14px; min-height: 38px; }
.hd-ticker__label {
	flex: none; display: flex; align-items: center; position: relative;
	padding: 0 14px 0 12px; margin-left: calc(-1 * min(var(--hd-gutter), 12px));
	background: var(--hd-accent); color: #fff;
	font: 600 0.78rem/1 var(--hd-display); letter-spacing: 0.12em; text-transform: uppercase;
}
.hd-ticker__label::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 8px;
	animation: hd-pulse 1.6s ease-in-out infinite;
}
.hd-ticker__viewport {
	flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; padding-left: 18px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
}
.hd-ticker__track { display: flex; width: max-content; animation: hd-ticker 60s linear infinite; }
.hd-ticker__viewport:hover .hd-ticker__track, .hd-ticker__viewport.is-paused .hd-ticker__track { animation-play-state: paused; }
.hd-ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.hd-ticker__list li { white-space: nowrap; padding-right: 28px; }
.hd-ticker__list li::after { content: "\25A0"; color: var(--hd-accent); font-size: 0.55em; vertical-align: 0.3em; margin-left: 28px; }
.hd-ticker__list a { color: inherit; text-decoration: none; }
.hd-ticker__list a:hover, .hd-ticker__list a:focus { text-decoration: underline; color: #fff; }
.hd-ticker__static { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
@keyframes hd-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hd-pulse { 50% { opacity: 0.25; } }

/* Masthead --------------------------------------------------------------- */
.site-header { background: var(--hd-paper); border-bottom: 1px solid var(--hd-rule); }
.site-header__inner {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding-block: clamp(18px, 3.4vw, 34px) clamp(14px, 2.4vw, 22px);
}
.site-branding { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.site-logo img { max-height: 90px; width: auto; }
.site-title {
	margin: 0; font-family: var(--hd-display); font-weight: 700;
	font-size: clamp(2.4rem, 7.2vw, 5.4rem); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase;
}
.hd-fonts-broadsheet .site-title { text-transform: none; font-weight: 800; letter-spacing: -0.03em; }
.site-title a { text-decoration: none; color: var(--hd-ink); }
.site-title a:hover { color: var(--hd-ink); }
.site-description {
	margin: 12px 0 0; padding-top: 10px; border-top: 3px double var(--hd-ink);
	font: 600 0.75rem/1.3 var(--hd-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--hd-muted);
}

.hd-header-left .site-header__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; gap: 24px; }
.hd-header-left .site-branding { align-items: flex-start; }
.hd-header-left .site-title { font-size: clamp(2.2rem, 5.4vw, 4rem); }
.hd-header-left .site-description {
	margin: 0 0 6px; padding: 0 0 0 16px; border-top: 0; border-left: 4px solid var(--hd-accent);
	max-width: 24em; text-align: left;
}

.hd-header-inverted .site-header { background: var(--hd-ink); border-bottom-color: var(--hd-ink); }
.hd-header-inverted .site-title a, .hd-header-inverted .site-title a:hover { color: var(--hd-on-ink); }
.hd-header-inverted .site-description { color: rgba(255, 255, 255, 0.72); border-top-color: var(--hd-accent); }
.hd-header-inverted .hd-navbar { background: var(--hd-accent); border-top: 0; }
.hd-header-inverted .main-navigation .primary-menu > li > a:hover,
.hd-header-inverted .main-navigation .primary-menu > .current-menu-item > a { box-shadow: inset 0 -4px 0 #fff; color: #fff; }

/* Sections bar ----------------------------------------------------------- */
.hd-navbar { background: var(--hd-ink); color: var(--hd-on-ink); border-top: 4px solid var(--hd-accent); position: relative; z-index: 30; }
.hd-sticky-nav .hd-navbar { position: sticky; top: 0; }
.admin-bar.hd-sticky-nav .hd-navbar { top: 32px; }
.hd-navbar__inner { display: flex; align-items: center; min-height: 50px; }
.main-navigation { flex: 1; display: flex; align-items: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.menu-toggle {
	display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0;
	background: none; color: inherit; cursor: pointer;
	font: 600 0.95rem var(--hd-display); letter-spacing: 0.1em; text-transform: uppercase;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, background 0.2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.toggled .menu-toggle__bars { background: transparent; }
.toggled .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.toggled .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.hd-nav-panel { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.main-navigation .primary-menu { display: flex; flex-wrap: wrap; }
.main-navigation .primary-menu > li { position: relative; }
.main-navigation .primary-menu > li > a {
	display: flex; align-items: center; min-height: 50px; padding: 0 14px;
	color: var(--hd-on-ink); text-decoration: none;
	font: 500 0.95rem/1 var(--hd-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.main-navigation .primary-menu > li:first-child > a { padding-left: 0; }
.main-navigation .primary-menu > li > a:hover,
.main-navigation .primary-menu > .current-menu-item > a,
.main-navigation .primary-menu > .current-menu-ancestor > a { color: #fff; box-shadow: inset 0 -4px 0 var(--hd-accent); }
.main-navigation .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0;
	transform: translateY(-2px) rotate(45deg);
}
.main-navigation .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px 0;
	background: var(--hd-paper); color: var(--hd-ink); border-top: 3px solid var(--hd-accent);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a {
	display: block; padding: 9px 18px; text-decoration: none; color: var(--hd-ink);
	font: 600 0.9rem/1.3 var(--hd-ui);
}
.main-navigation .sub-menu a:hover, .main-navigation .sub-menu a:focus { background: var(--hd-soft); color: var(--hd-accent); }

.hd-nav-search .search-form { width: 230px; }
.hd-nav-search .search-field { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.hd-nav-search .search-field::placeholder { color: rgba(255, 255, 255, 0.65); }
.hd-nav-search .search-submit { color: #fff; }

/* Forms ------------------------------------------------------------------ */
.search-form { position: relative; display: flex; max-width: 100%; }
.search-field, input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #b9b9b9; border-radius: 0;
	background: var(--hd-paper); color: var(--hd-ink); font: 400 1rem/1.4 var(--hd-ui);
}
.search-form .search-field { padding-right: 44px; }
.search-submit {
	position: absolute; right: 0; top: 0; bottom: 0; width: 44px; border: 0; background: none;
	color: var(--hd-ink); cursor: pointer; display: grid; place-items: center;
}
.search-submit:hover { color: var(--hd-accent); }
textarea { min-height: 150px; }
button, input[type="submit"], .wp-block-button__link, .wp-element-button {
	display: inline-block; padding: 12px 22px; border: 0; border-radius: 0;
	background: var(--hd-accent); color: #fff; cursor: pointer; text-decoration: none;
	font: 600 0.85rem/1.2 var(--hd-display); letter-spacing: 0.1em; text-transform: uppercase;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--hd-ink); color: #fff; }
.search-submit, .menu-toggle { letter-spacing: 0.1em; }
.search-submit:hover { background: none; }
.menu-toggle:hover { background: none; color: inherit; }

/* Layout ----------------------------------------------------------------- */
.site-content { padding-bottom: clamp(40px, 6vw, 72px); }
.hd-layout {
	display: grid; gap: clamp(28px, 4vw, 48px);
	grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side";
	padding-top: clamp(22px, 3vw, 34px);
}
.hd-layout > .site-main { grid-area: main; min-width: 0; }
.hd-layout > .widget-area { grid-area: side; }
.hd-sidebar-left .hd-layout { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "side main"; }
.hd-sidebar-none .hd-layout, .hd-layout:not(:has(.widget-area)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.hd-sidebar-none .hd-layout > .widget-area { display: none; }
.site-main:focus { outline: 0; }

/* Shared story bits ------------------------------------------------------ */
.hd-kicker {
	display: inline-block; margin-bottom: 6px; color: var(--hd-accent); text-decoration: none;
	font: 600 0.72rem/1.2 var(--hd-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.hd-kicker:hover { text-decoration: underline; }
.hd-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--hd-muted); font: 400 0.78rem/1.4 var(--hd-ui); }
.hd-meta a { color: inherit; text-decoration: none; }
.hd-meta a:hover { color: var(--hd-accent); text-decoration: underline; }
.hd-meta .byline { display: none; color: var(--hd-ink); font-weight: 600; }
.hd-show-author .hd-meta .byline { display: inline; }
.hd-meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 14px; vertical-align: middle; border-radius: 50%; background: currentColor; opacity: 0.6; }
.hd-meta > .byline + span::before { display: none; }
.hd-show-author .hd-meta > .byline + span::before { display: inline-block; }
.hd-badge {
	display: inline-block; margin: 0 8px 6px 0; padding: 3px 7px; background: var(--hd-ink); color: #fff;
	font: 600 0.65rem/1.2 var(--hd-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.hd-card__excerpt, .hd-row__excerpt, .hd-lead__excerpt { display: none; }
.hd-show-excerpts .hd-card__excerpt, .hd-show-excerpts .hd-row__excerpt, .hd-show-excerpts .hd-lead__excerpt { display: block; }
.hd-card__excerpt p, .hd-row__excerpt p, .hd-lead__excerpt p { margin: 0 0 8px; }
.hd-card__excerpt .more-link, .hd-row__excerpt .more-link { display: none; }

/* Section titles: a black rule with a red tab */
.hd-section-title {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	margin: 0 0 18px; border-bottom: 3px solid var(--hd-ink);
	font: 600 1.05rem/1 var(--hd-display); letter-spacing: 0.1em; text-transform: uppercase;
}
.hd-section-title > span, .hd-section-title > a:first-child > span {
	display: inline-block; padding: 9px 14px 7px; background: var(--hd-ink); color: #fff;
}
.hd-section-title > a:first-child { text-decoration: none; }
.hd-section-title > a:first-child:hover span { background: var(--hd-accent); }
.hd-section-more { padding-bottom: 6px; color: var(--hd-accent); text-decoration: none; font: 600 0.72rem/1 var(--hd-ui); letter-spacing: 0.08em; }
.hd-section-more:hover { text-decoration: underline; }

/* Media frames */
.hd-lead__media, .hd-side__media, .hd-card__media, .hd-row__media {
	display: block; overflow: hidden; background: var(--hd-soft); aspect-ratio: 3 / 2;
}
.hd-lead__media img, .hd-side__media img, .hd-card__media img, .hd-row__media img {
	display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.hd-lead__main:hover img, .hd-side:hover img, .hd-card:hover img, .hd-row:hover img { transform: scale(1.03); }

/* Front page lead -------------------------------------------------------- */
.hd-lead {
	display: grid; gap: var(--hd-gap);
	grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 0.95fr);
	padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(22px, 3vw, 34px);
	border-bottom: 1px solid var(--hd-rule);
}
.hd-lead__main { min-width: 0; }
.hd-lead__media { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.hd-lead__title { margin: 0 0 10px; font-size: clamp(1.9rem, 3.3vw, 2.85rem); line-height: 1.04; }
.hd-lead__title a, .hd-side__title a, .hd-card__title a, .hd-row__title a, .hd-rail__link { text-decoration: none; }
.hd-lead__title a:hover, .hd-side__title a:hover, .hd-card__title a:hover, .hd-row__title a:hover, .hd-rail__link:hover { color: var(--hd-accent); }
.hd-lead__excerpt { font-size: 1.12rem; line-height: 1.5; color: #2c2c2c; max-width: 40em; }
.hd-lead__side { display: flex; flex-direction: column; gap: var(--hd-gap); padding-left: var(--hd-gap); border-left: 1px solid var(--hd-rule); }
.hd-side + .hd-side { padding-top: var(--hd-gap); border-top: 1px solid var(--hd-rule); }
.hd-side__media { margin-bottom: 10px; }
.hd-side__title { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.15; }
.hd-lead__rail { padding: 18px 18px 6px; background: var(--hd-soft); border-top: 4px solid var(--hd-accent); align-self: start; }
.hd-rail-title { margin: 0 0 6px; font: 600 1rem/1 var(--hd-display); letter-spacing: 0.12em; text-transform: uppercase; }
.hd-rail { margin: 0; padding: 0; list-style: none; counter-reset: hd-rail; }
.hd-rail__item {
	position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--hd-rule);
	counter-increment: hd-rail;
}
.hd-rail__item:last-child { border-bottom: 0; }
.hd-rail__item::before {
	content: counter(hd-rail); position: absolute; left: 0; top: 10px;
	font: 700 1.9rem/1 var(--hd-display); color: var(--hd-accent);
}
.hd-rail__item .hd-kicker { display: block; margin-bottom: 3px; font-size: 0.64rem; }
.hd-rail__link { display: block; font: 600 1.02rem/1.25 var(--hd-display); }
.hd-fonts-newsroom .hd-rail__link, .hd-fonts-tabloid .hd-rail__link { font-weight: 500; }
.hd-rail__time { display: block; margin-top: 4px; color: var(--hd-muted); font: 400 0.72rem var(--hd-ui); }

/* Story grid and rows ---------------------------------------------------- */
.hd-block { margin-bottom: clamp(30px, 4vw, 44px); }
.hd-grid, .hd-row-grid { display: grid; gap: var(--hd-gap); grid-template-columns: repeat(var(--hd-cols), minmax(0, 1fr)); }
.hd-cols-3 .hd-grid > .hd-card:nth-child(n+4) { display: none; }
.hd-lead:not(:has(.hd-lead__rail)) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hd-card { min-width: 0; display: flex; flex-direction: column; }
.hd-card__media { margin-bottom: 10px; }
.hd-card__title { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.18; }
.hd-cols-3 .hd-card__title { font-size: 1.25rem; }
.hd-card__excerpt { font-size: 0.93rem; line-height: 1.45; color: #383838; }
.hd-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hd-wide { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 14px; border-top: 1px solid var(--hd-rule); }
.hd-wide:first-child { border-top-color: var(--hd-accent); }
.hd-wide .hd-card__media { margin: 0; aspect-ratio: 4 / 3; }
.hd-wide .hd-card__title { font-size: 1.2rem; }

/* River (archives, search, blog pages) */
.hd-river { display: flex; flex-direction: column; }
.hd-row {
	display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--hd-gap);
	padding: 22px 0; border-bottom: 1px solid var(--hd-rule);
}
.hd-row:first-child { padding-top: 0; }
.hd-row:not(:has(.hd-row__media)) { grid-template-columns: minmax(0, 1fr); }
.hd-row__title { margin: 0 0 8px; font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.12; }
.hd-row__excerpt { color: #333; font-size: 0.98rem; line-height: 1.5; }

/* Page headers */
.hd-page-head { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 3px solid var(--hd-ink); }
.hd-page-head__label {
	display: inline-block; margin: 0 0 10px; padding: 4px 9px; background: var(--hd-accent); color: #fff;
	font: 600 0.7rem/1.2 var(--hd-display); letter-spacing: 0.16em; text-transform: uppercase;
}
.hd-page-head__title { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; text-transform: uppercase; }
.hd-fonts-broadsheet .hd-page-head__title { text-transform: none; }
.hd-page-head__desc { margin-top: 10px; color: var(--hd-muted); font: 400 0.95rem/1.5 var(--hd-ui); max-width: 44em; }
.hd-page-head__desc p { margin: 0; }
.hd-page-head__search { margin-top: 14px; max-width: 460px; }

/* Single article --------------------------------------------------------- */
.hd-article-top { border-bottom: 1px solid var(--hd-rule); }
.hd-article__head { padding-top: clamp(26px, 4vw, 46px); }
.hd-article__head > * { max-width: 980px; }
.hd-article__head .hd-kicker { font-size: 0.8rem; padding: 4px 9px; background: var(--hd-accent); color: #fff; }
.hd-article__head .hd-kicker:hover { background: var(--hd-ink); color: #fff; text-decoration: none; }
.hd-article__title { margin: 6px 0 14px; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -0.01em; }
.hd-article__dek { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.45; color: #333; max-width: 46em; }
.hd-article__dek p { margin: 0 0 14px; }
.hd-article__head .hd-meta { padding: 12px 0 0; margin-top: 4px; border-top: 1px solid var(--hd-rule); font-size: 0.85rem; }
.hd-article__hero { margin-block: 22px clamp(18px, 3vw, 30px); }
.hd-article__hero img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.hd-article__content { max-width: 720px; }
.hd-sidebar-none .hd-article__content { margin-inline: auto; }

.entry-content { font-size: 1.12rem; line-height: 1.7; }
.hd-fonts-tabloid .entry-content { font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.single .entry-content > p:first-of-type::first-letter {
	float: left; margin: 0.06em 0.1em 0 0; color: var(--hd-accent);
	font: 700 3.6em/0.82 var(--hd-display);
}
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { color: var(--hd-accent); }
.entry-content a:hover { color: var(--hd-ink); }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 0.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--hd-accent); }
.entry-content blockquote, .wp-block-quote {
	margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--hd-accent);
	font-size: 1.28rem; line-height: 1.45; font-style: italic;
}
.entry-content blockquote p { margin: 0 0 0.5em; }
.entry-content blockquote cite, .wp-block-quote cite {
	display: block; margin-top: 6px; font: 600 0.78rem/1.3 var(--hd-ui); font-style: normal;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--hd-muted);
}
.wp-block-pullquote {
	margin: 2em 0; padding: 24px 0; border-top: 4px solid var(--hd-ink); border-bottom: 1px solid var(--hd-ink); text-align: left;
}
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--hd-display); font-style: normal; }
.wp-block-pullquote blockquote p { margin: 0; }
.wp-block-pullquote cite { color: var(--hd-accent); }
.wp-block-image { margin: 1.8em 0; }
.wp-block-image img { display: block; }
.wp-block-image figcaption, .wp-element-caption {
	margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--hd-rule); text-align: left;
	color: var(--hd-muted); font: 400 0.82rem/1.45 var(--hd-ui);
}
.entry-content .alignwide { margin-inline: 0; }
@media (min-width: 1100px) {
	.hd-sidebar-none .entry-content .alignwide { margin-inline: -120px; max-width: none; width: calc(100% + 240px); }
}
.wp-block-columns { display: flex; gap: 24px; margin: 1.8em 0; }
.wp-block-column { flex: 1; min-width: 0; }
.wp-block-group.has-background, .hd-factbox {
	padding: 20px 22px; background: var(--hd-soft); border-top: 4px solid var(--hd-ink); margin: 1.8em 0;
}
.wp-block-separator { border: 0; border-top: 3px double var(--hd-rule); margin: 2.2em auto; }
.has-headline-red-color { color: #d0021b; } .has-headline-red-background-color { background-color: #d0021b; }
.has-press-black-color { color: #111; } .has-press-black-background-color { background-color: #111; }
.has-graphite-color { color: #4a4a4a; } .has-graphite-background-color { background-color: #4a4a4a; }
.has-rule-grey-color { color: #e3e3e3; } .has-rule-grey-background-color { background-color: #e3e3e3; }
.has-newsprint-color { color: #f6f4ef; } .has-newsprint-background-color { background-color: #f6f4ef; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
.entry-content table { width: 100%; border-collapse: collapse; font: 400 0.92rem/1.4 var(--hd-ui); margin: 1.6em 0; }
.entry-content th, .entry-content td { padding: 9px 10px; border-bottom: 1px solid var(--hd-rule); text-align: left; }
.entry-content th { border-bottom: 2px solid var(--hd-ink); }

.hd-article__foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hd-rule); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-family: var(--hd-ui); }
.hd-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hd-tags__label { font: 600 0.72rem var(--hd-display); letter-spacing: 0.14em; text-transform: uppercase; margin-right: 4px; }
.hd-tags a { padding: 5px 10px; border: 1px solid var(--hd-ink); text-decoration: none; font: 600 0.78rem/1 var(--hd-ui); }
.hd-tags a:hover { background: var(--hd-ink); color: #fff; }
.edit-link a { font: 600 0.8rem var(--hd-ui); }

/* Author box (core biography markup) */
.author-info { display: flex; gap: 16px; margin-top: 28px; padding: 18px; background: var(--hd-soft); font-family: var(--hd-ui); font-size: 0.92rem; }
.author-info img { border-radius: 50%; }
.author-title { margin: 0 0 4px; font-size: 1rem; }

/* Post navigation */
.post-navigation { margin-top: 34px; border-top: 3px solid var(--hd-ink); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 14px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { display: block; text-decoration: none; }
.post-navigation .meta-nav { display: block; margin-bottom: 4px; color: var(--hd-accent); font: 600 0.7rem var(--hd-display); letter-spacing: 0.14em; text-transform: uppercase; }
.post-navigation .post-title { font: 600 1.1rem/1.25 var(--hd-display); }
.post-navigation a:hover .post-title { color: var(--hd-accent); }

/* Pagination */
.pagination, .navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--hd-ink); text-decoration: none; font: 600 0.9rem var(--hd-display);
}
.page-numbers.current { background: var(--hd-ink); color: #fff; }
a.page-numbers:hover { background: var(--hd-accent); border-color: var(--hd-accent); color: #fff; }
.page-numbers.dots { border: 0; }

/* Pages */
.hd-page .hd-page-head__title { text-transform: none; }
.hd-page__media { margin: 0 0 24px; }
.hd-page__media img { display: block; width: 100%; }

/* Comments --------------------------------------------------------------- */
.comments-area { margin-top: 40px; font-family: var(--hd-ui); }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); border-left: 2px solid var(--hd-rule); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--hd-rule); font-size: 0.95rem; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; font-size: 0.82rem; color: var(--hd-muted); }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--hd-ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { margin: 0 0 0.7em; }
.reply a, .comment-reply-link { font: 600 0.75rem var(--hd-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hd-accent); text-decoration: none; }
.comment-respond { padding: 22px; background: var(--hd-soft); border-top: 4px solid var(--hd-accent); }
.comment-reply-title { margin: 0 0 8px; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.85rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 0.85rem; color: var(--hd-muted); }

/* Widgets ---------------------------------------------------------------- */
.widget-area { font-family: var(--hd-ui); font-size: 0.92rem; }
.widget { margin-bottom: 34px; }
.widget-title, .widget h2, .widget .wp-block-heading {
	margin: 0 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--hd-ink);
	font: 600 0.98rem/1 var(--hd-display); letter-spacing: 0.12em; text-transform: uppercase;
}
.widget h2::before, .widget .wp-block-heading::before {
	content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--hd-accent); vertical-align: 0.05em;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--hd-rule); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--hd-accent); }
.wp-block-latest-posts { counter-reset: hd-pop; }
.widget .wp-block-latest-posts li { display: grid; grid-template-columns: 30px 1fr; counter-increment: hd-pop; }
.widget .wp-block-latest-posts li::before { content: counter(hd-pop); grid-row: span 2; color: var(--hd-accent); font: 700 1.35rem/1 var(--hd-display); }
.wp-block-latest-posts__post-title { font: 600 0.98rem/1.3 var(--hd-display); }
.hd-fonts-newsroom .wp-block-latest-posts__post-title, .hd-fonts-tabloid .wp-block-latest-posts__post-title { font-weight: 500; }
.wp-block-latest-posts__post-date { display: block; color: var(--hd-muted); font-size: 0.75rem; margin-top: 2px; }
.wp-block-latest-comments { margin: 0; padding: 0; }
.wp-block-latest-comments__comment { padding: 10px 0; border-bottom: 1px solid var(--hd-rule); line-height: 1.4; list-style: none; }
.wp-block-latest-comments__comment-date { display: block; color: var(--hd-muted); font-size: 0.75rem; }
.wp-block-categories li { display: flex; justify-content: space-between; }
.widget .wp-block-search__label { display: none; }
.wp-block-search__inside-wrapper { display: flex; gap: 0; }
.wp-block-search__input { flex: 1; padding: 10px 12px; border: 1px solid #b9b9b9; font: inherit; }
.wp-block-search__button { margin-left: 0; padding: 10px 14px; }
.hd-promo, .widget .wp-block-group.has-background {
	padding: 20px; background: var(--hd-ink); color: #fff; border-top: 4px solid var(--hd-accent);
}
.widget .wp-block-group.has-background h2, .widget .hd-promo h2 { border-bottom-color: rgba(255, 255, 255, 0.25); color: #fff; }
.widget .wp-block-group.has-background a:not(.wp-block-button__link) { color: #fff; text-decoration: underline; }
.widget .wp-block-group.has-background p { margin: 0 0 12px; line-height: 1.5; }
.widget .wp-block-group.has-background .wp-block-button__link { background: var(--hd-accent); color: #fff; }
.widget .wp-block-group.has-background .wp-block-button__link:hover { background: #fff; color: var(--hd-ink); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--hd-ink); color: rgba(255, 255, 255, 0.78); font-family: var(--hd-ui); font-size: 0.9rem; border-top: 6px solid var(--hd-accent); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.hd-footer-widgets {
	display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	padding-block: 44px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hd-footer-widgets .widget { margin-bottom: 24px; }
.hd-footer-widgets .widget h2, .hd-footer-widgets .widget .wp-block-heading { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.3); }
.hd-footer-widgets .widget li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.hd-footer-widgets .widget p { margin: 0 0 10px; line-height: 1.55; }
.hd-footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 28px 20px; }
.hd-footer-brand__name { margin: 0; font: 700 1.9rem/1 var(--hd-display); text-transform: uppercase; letter-spacing: -0.005em; }
.hd-footer-brand__name a:hover { text-decoration: none; color: var(--hd-accent); }
.hd-footer-brand__tagline { margin: 0; flex: 1 1 260px; color: rgba(255, 255, 255, 0.7); }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-navigation a { font: 500 0.85rem var(--hd-display); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-navigation .sub-menu { display: none; }
.site-info {
	display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-block: 16px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8rem; color: rgba(255, 255, 255, 0.6);
}
.site-info a { color: rgba(255, 255, 255, 0.85); }
.hd-to-top { margin-left: auto; font: 600 0.75rem var(--hd-display); letter-spacing: 0.12em; text-transform: uppercase; }

/* 404 -------------------------------------------------------------------- */
.hd-404 { max-width: 720px; margin: 0 auto; padding-block: clamp(40px, 8vw, 90px); text-align: center; }
.hd-404__code {
	margin: 0; font: 700 clamp(6rem, 22vw, 12rem)/0.85 var(--hd-display); color: var(--hd-accent);
	letter-spacing: -0.03em;
}
.hd-404__title { margin: 14px 0 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; }
.hd-404__text { color: var(--hd-muted); margin: 0 auto 24px; max-width: 34em; }
.hd-404 .search-form { max-width: 460px; margin: 0 auto; }
.hd-empty { padding: 26px; background: var(--hd-soft); border-top: 4px solid var(--hd-accent); }
.hd-empty__title { margin: 0 0 8px; text-transform: uppercase; }
.hd-empty .search-form { max-width: 460px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.hd-lead { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
	.hd-lead__rail { grid-column: 1 / -1; }
	.hd-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 24px; }
	.hd-rail__item:last-child { border-bottom: 1px solid var(--hd-rule); }
	.hd-layout { grid-template-columns: minmax(0, 1fr) 260px; }
	.hd-sidebar-left .hd-layout { grid-template-columns: 260px minmax(0, 1fr); }
	.hd-grid { --hd-cols: 2; }
	.hd-cols-3 .hd-grid > .hd-card:nth-child(n+4) { display: flex; }
}
@media (max-width: 959px) {
	.hd-navbar__inner { min-height: 48px; }
	.menu-toggle { display: inline-flex; }
	.hd-nav-panel {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--hd-gutter) 18px;
		background: var(--hd-ink); border-bottom: 4px solid var(--hd-accent); max-height: calc(100vh - 60px); overflow-y: auto;
	}
	.toggled .hd-nav-panel { display: flex; }
	.main-navigation .primary-menu { flex-direction: column; }
	.main-navigation .primary-menu > li > a { min-height: 46px; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
	.main-navigation .primary-menu > li > a:hover, .main-navigation .primary-menu > .current-menu-item > a { box-shadow: inset 4px 0 0 var(--hd-accent); padding-left: 12px; }
	.main-navigation .menu-item-has-children > a::after { display: none; }
	.main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; border: 0; padding: 0 0 6px 16px; min-width: 0; }
	.main-navigation .sub-menu a { color: rgba(255, 255, 255, 0.85); padding: 10px 0; }
	.main-navigation .sub-menu a:hover, .main-navigation .sub-menu a:focus { background: none; color: #fff; }
	.hd-nav-search { margin-top: 14px; }
	.hd-nav-search .search-form { width: 100%; }
	.hd-layout, .hd-sidebar-left .hd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; }
	.widget-area { padding-top: 26px; border-top: 3px solid var(--hd-ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 30px; }
	.hd-header-left .site-header__inner { flex-direction: column; align-items: flex-start; }
	.hd-header-left .site-description { margin-bottom: 0; }
}
@media (max-width: 782px) {
	.admin-bar.hd-sticky-nav .hd-navbar { top: 46px; }
	.hd-lead { grid-template-columns: minmax(0, 1fr); }
	.hd-lead__side { padding-left: 0; border-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
	.hd-side + .hd-side { padding-top: 0; border-top: 0; }
	.hd-row-grid { grid-template-columns: minmax(0, 1fr); }
	.hd-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
	.wp-block-columns { flex-direction: column; }
}
@media (max-width: 560px) {
	body { font-size: 1rem; }
	.hd-ticker__inner { min-height: 34px; gap: 10px; }
	.hd-ticker__label { padding: 0 10px; font-size: 0.7rem; }
	.site-description { letter-spacing: 0.12em; }
	.hd-lead__side { grid-template-columns: minmax(0, 1fr); }
	.hd-side { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: start; }
	.hd-side__media { grid-row: span 3; margin: 0; aspect-ratio: 1 / 1; }
	.hd-side + .hd-side { padding-top: var(--hd-gap); border-top: 1px solid var(--hd-rule); }
	.hd-side__title { font-size: 1.1rem; }
	.hd-rail { grid-template-columns: minmax(0, 1fr); }
	.hd-grid, .hd-cols-3 .hd-grid { --hd-cols: 1; }
	.hd-grid .hd-card, .hd-cols-3 .hd-grid > .hd-card:nth-child(n+4), .hd-row-grid .hd-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; }
	.hd-grid .hd-card__media, .hd-row-grid .hd-card__media { margin: 0; aspect-ratio: 1 / 1; }
	.hd-grid .hd-card__excerpt, .hd-row-grid .hd-card__excerpt { display: none; }
	.hd-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.hd-section-more { display: none; }
	.entry-content { font-size: 1.05rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
	.hd-to-top { margin-left: 0; }
}

/* Motion ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.hd-ticker__track { animation: none !important; }
	.hd-ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.hd-ticker__list[aria-hidden="true"] { display: none; }
	.hd-lead__main:hover img, .hd-side:hover img, .hd-card:hover img, .hd-row:hover img { transform: none; }
}

@media print {
	.hd-ticker, .hd-navbar, .widget-area, .site-footer, .comment-respond, .post-navigation { display: none !important; }
	.hd-layout { display: block; }
}

/* Boxed groups start flush with their padding */
.wp-block-group.has-background > :first-child, .hd-factbox > :first-child { margin-top: 0; }
.wp-block-group.has-background > :last-child, .hd-factbox > :last-child { margin-bottom: 0; }
