/*
Theme Name: Horizonte Diário
Theme URI: https://horizontediario.com.br
Author: Horizonte Diário
Author URI: https://horizontediario.com.br
Description: Tema editorial para o portal Horizonte Diário, com capa dinâmica, editorias, busca, notícias e áreas administráveis de publicidade.
Version: 1.7.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: horizonte-diario
*/

:root {
	--hd-navy: #081b33;
	--hd-primary: #0d315c;
	--hd-ink: #17243a;
	--hd-muted: #66758a;
	--hd-line: #dce2e9;
	--hd-paper: #f7f9fb;
	--hd-soft: #eef3f8;
	--hd-cream: #f6f3ec;
	--hd-amber: #f5b73e;
	--hd-white: #fff;
	--hd-red: #e94f37;
	--hd-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hd-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hd-white); color: var(--hd-ink); font-family: var(--hd-sans); line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hd-primary); }
button, input { font: inherit; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--hd-amber); outline-offset: 3px; }

.hd-container { width: min(100% - 40px, 1240px); margin-inline: auto; }
.hd-screen-reader-text, .hd-skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hd-skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 12px 16px; background: var(--hd-white); color: var(--hd-primary); font-weight: 800; }

/* Header */
.hd-datebar { border-bottom: 1px solid rgba(255,255,255,.1); background: var(--hd-navy); color: var(--hd-white); }
.hd-datebar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hd-datebar-inner > span:first-child { text-transform: capitalize; }
.hd-datebar-tagline { color: rgba(255,255,255,.65); }
.hd-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--hd-line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.hd-header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 24px; }
.hd-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.hd-brand:hover { color: inherit; }
.hd-brand-logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; object-fit: cover; }
.hd-brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 2px; background: var(--hd-primary); color: var(--hd-white); font-size: 14px; font-weight: 900; letter-spacing: -.08em; }
.hd-brand-copy { line-height: 1; }
.hd-brand-copy strong { display: block; font-size: 20px; letter-spacing: -.055em; }
.hd-brand-copy small { display: block; margin-top: 7px; color: var(--hd-muted); font-size: 10px; font-weight: 800; letter-spacing: .38em; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.custom-logo { width: auto; max-width: 240px; height: auto; max-height: 58px; }
.hd-menu { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.hd-menu a { color: var(--hd-muted); font-size: 14px; font-weight: 700; }
.hd-menu a:hover, .hd-menu .current-menu-item > a, .hd-menu .current-category-ancestor > a { color: var(--hd-primary); }
.hd-header-actions { display: flex; align-items: center; gap: 8px; }
.hd-search-popover, .hd-mobile-nav { position: relative; }
.hd-search-popover summary, .hd-mobile-nav summary { display: grid; min-width: 42px; height: 42px; place-items: center; cursor: pointer; list-style: none; border-radius: 3px; font-size: 13px; font-weight: 800; }
.hd-search-popover summary::-webkit-details-marker, .hd-mobile-nav summary::-webkit-details-marker { display: none; }
.hd-search-popover summary:hover, .hd-mobile-nav summary:hover { background: var(--hd-soft); }
.hd-search-popover svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.hd-search-panel { position: absolute; top: 50px; right: 0; width: min(430px, 90vw); padding: 20px; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 20px 55px rgba(8,27,51,.2); }
.hd-search-panel > p { margin: 0 0 12px; color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-search-panel > small { display: block; margin-top: 12px; color: var(--hd-muted); }
.hd-search-form { display: flex; gap: 8px; }
.hd-search-form input { min-width: 0; flex: 1; height: 44px; padding: 0 12px; border: 1px solid var(--hd-line); background: var(--hd-paper); color: var(--hd-ink); outline: none; }
.hd-search-form input:focus { border-color: var(--hd-primary); box-shadow: 0 0 0 2px rgba(13,49,92,.1); }
.hd-search-form button { border: 0; padding: 0 18px; background: var(--hd-primary); color: var(--hd-white); cursor: pointer; font-weight: 800; }
.hd-mobile-nav { display: none; }
.hd-mobile-nav nav { position: absolute; top: 50px; right: 0; width: min(280px, 90vw); padding: 12px; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 20px 55px rgba(8,27,51,.2); }
.hd-mobile-nav .hd-menu { display: grid; gap: 0; }
.hd-mobile-nav nav a { display: block; padding: 10px; border-radius: 2px; color: var(--hd-ink); font-size: 14px; font-weight: 700; }
.hd-mobile-nav nav a:hover { background: var(--hd-soft); color: var(--hd-primary); }

/* Shared headings and utility */
.hd-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--hd-primary); }
.hd-section-heading span, .hd-section-heading > div > span { display: block; margin-bottom: 4px; color: var(--hd-primary); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-section-heading h1, .hd-section-heading h2 { margin: 0; font-family: var(--hd-serif); font-size: clamp(29px, 3.7vw, 39px); line-height: 1.1; letter-spacing: -.035em; }
.hd-section-heading small { color: var(--hd-muted); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-section-heading-compact h2 { font-size: 32px; }
.hd-back-link { display: inline-block; margin-bottom: 28px; color: var(--hd-primary); font-size: 12px; font-weight: 800; }
.hd-back-link:hover { text-decoration: underline; }
.hd-empty-state { padding: 34px; border-left: 4px solid var(--hd-amber); background: var(--hd-cream); }
.hd-empty-state h2, .hd-empty-state h3 { margin: 0; font-family: var(--hd-serif); font-size: 28px; }
.hd-empty-state p { margin: 12px 0 0; color: #4f4a37; }

/* Branded fallback when an article has no featured image. */
.hd-placeholder-visual { position: relative; display: flex; min-height: 180px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 24px; background: linear-gradient(135deg, var(--placeholder-color), var(--hd-navy)); color: var(--hd-white); isolation: isolate; }
.hd-placeholder-visual::before, .hd-placeholder-visual::after { position: absolute; z-index: -1; display: block; border: 1px solid rgba(255,255,255,.22); content: ''; transform: rotate(var(--placeholder-angle)); }
.hd-placeholder-visual::before { width: 70%; height: 145%; right: -15%; top: -24%; border-radius: 45%; }
.hd-placeholder-visual::after { width: 48%; height: 90%; left: -15%; bottom: -20%; border-radius: 50%; opacity: .65; }
.hd-placeholder-visual b { color: rgba(255,255,255,.82); font-family: var(--hd-serif); font-size: 42px; letter-spacing: -.08em; line-height: 1; }
.hd-placeholder-visual small { align-self: flex-start; color: rgba(255,255,255,.75); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

/* Home */
.hd-focus-strip { border-bottom: 1px solid var(--hd-line); background: #f4f7fb; }
.hd-focus-inner { display: flex; min-height: 48px; align-items: center; gap: 16px; }
.hd-focus-inner > span { padding: 4px 8px; border-radius: 2px; background: var(--hd-red); color: var(--hd-white); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hd-focus-inner p { overflow: hidden; margin: 0; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hd-home-lead { padding-block: 42px; }
.hd-lead-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.75fr); gap: 24px; }
.hd-lead-story { position: relative; min-height: 420px; overflow: hidden; background: var(--hd-navy); box-shadow: 0 18px 55px rgba(8,27,51,.18); }
.hd-lead-story > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hd-lead-story > .hd-placeholder-visual { position: absolute; inset: 0; }
.hd-lead-placeholder > small, .hd-secondary-thumb .hd-placeholder-visual > small, .hd-news-carousel-thumb .hd-placeholder-visual > small { display: none; }
a.hd-lead-story:hover > img { transform: scale(1.02); }
.hd-lead-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,24,45,.98), rgba(7,24,45,.32) 60%, transparent); }
.hd-lead-copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px; color: var(--hd-white); }
.hd-lead-copy > span { color: var(--hd-amber); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-lead-copy h2 { max-width: 800px; margin: 12px 0 0; font-family: var(--hd-serif); font-size: clamp(32px, 4vw, 47px); line-height: 1.04; letter-spacing: -.04em; }
.hd-lead-copy p { max-width: 680px; margin: 14px 0 0; color: rgba(255,255,255,.75); font-size: 15px; }
.hd-secondary-list { display: grid; gap: 16px; }
.hd-secondary-story { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hd-line); }
.hd-secondary-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--hd-soft); }
.hd-secondary-thumb > img, .hd-secondary-thumb > .hd-placeholder-visual { width: 100%; height: 100%; object-fit: cover; }
.hd-secondary-thumb > .hd-placeholder-visual { min-height: 0; padding: 12px; }
.hd-secondary-thumb > .hd-placeholder-visual b { font-size: 24px; }
.hd-secondary-thumb > b { position: absolute; right: 9px; bottom: 6px; color: rgba(255,255,255,.72); font-family: var(--hd-serif); font-size: 24px; line-height: 1; }
.hd-secondary-story small, .hd-latest-item small, .hd-category-lead small { color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hd-secondary-story h3 { margin: 8px 0 0; font-family: var(--hd-serif); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.hd-secondary-story time { display: block; margin-top: 10px; color: var(--hd-muted); font-size: 11px; }
.hd-news-layout, .hd-archive-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 44px; padding-block: 42px 56px; }
.hd-latest-list, .hd-archive-list { border-bottom: 1px solid var(--hd-line); }
.hd-latest-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; padding: 28px 0; border-top: 1px solid var(--hd-line); }
.hd-latest-item:first-child { border-top: 0; }
.hd-list-number { color: #c6cfda; font-family: var(--hd-serif); font-size: 32px; font-weight: 700; }
.hd-latest-item h3 { margin: 7px 0 0; font-family: var(--hd-serif); font-size: 24px; line-height: 1.14; letter-spacing: -.025em; }
.hd-latest-item p { margin: 10px 0 0; color: var(--hd-muted); font-size: 14px; }
.hd-latest-item time { color: var(--hd-muted); font-size: 11px; }
.hd-home-pagination { display: flex; justify-content: center; margin-top: 22px; border: 0; }
.hd-home-pagination .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.hd-home-pagination .page-numbers li { margin: 0; }
.hd-home-pagination .page-numbers a, .hd-home-pagination .page-numbers span { display: grid; min-width: 38px; min-height: 38px; place-items: center; padding: 0 10px; border: 0; background: var(--hd-paper); color: var(--hd-primary); font-size: 12px; font-weight: 800; }
.hd-home-pagination .page-numbers a:hover { background: var(--hd-primary); color: var(--hd-white); }
.hd-home-pagination .page-numbers .current { background: var(--hd-primary); color: var(--hd-white); }
.hd-sidebar { align-self: start; position: sticky; top: 104px; display: grid; gap: 26px; }
.hd-most-read { border-top: 4px solid var(--hd-amber); padding: 24px; background: #0b2748; color: var(--hd-white); }
.hd-most-read > p { margin: 0; color: var(--hd-amber); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-most-read ol { margin: 18px 0 0; padding: 0; list-style: none; }
.hd-most-read li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.15); }
.hd-most-read li:first-child { border-top: 0; }
.hd-most-read li > span { color: var(--hd-amber); font-family: var(--hd-serif); font-size: 22px; font-weight: 700; }
.hd-most-read li a, .hd-most-read li strong { color: rgba(255,255,255,.86); font-size: 14px; font-weight: 700; line-height: 1.4; }
.hd-reader-tools { padding: 24px; border: 1px solid var(--hd-line); background: var(--hd-paper); }
.hd-sidebar-kicker { margin: 0; color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-reader-tools h2 { margin: 8px 0 0; font-family: var(--hd-serif); font-size: 29px; line-height: 1.08; letter-spacing: -.03em; }
.hd-reader-tools-copy { margin: 10px 0 0; color: var(--hd-muted); font-size: 14px; line-height: 1.55; }
.hd-reader-tools .hd-search-form { display: grid; gap: 10px; margin-top: 18px; }
.hd-reader-tools .hd-search-form input, .hd-reader-tools .hd-search-form button { width: 100%; min-height: 46px; }
.hd-reader-tools .hd-search-form input { background: var(--hd-white); }
.hd-reader-tools .hd-search-form button { padding-inline: 14px; background: var(--hd-primary); }
.hd-reader-categories { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hd-line); }
.hd-reader-categories > span { color: var(--hd-muted); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-reader-categories > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 8px; }
.hd-reader-categories a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--hd-line); color: var(--hd-ink); font-size: 13px; font-weight: 700; }
.hd-reader-categories a:hover { color: var(--hd-primary); }
.hd-reader-categories b { color: var(--hd-primary); font-size: 15px; }
.hd-category-area { padding-block: 56px; background: var(--hd-soft); }
.hd-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.hd-category-card { padding: 26px; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 8px 24px rgba(8,27,51,.05); }
.hd-category-featured { grid-column: 1 / -1; }
.hd-category-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hd-line); }
.hd-category-card > header h2 { margin: 0; padding-left: 12px; border-left: 6px solid var(--category-color); font-family: var(--hd-serif); font-size: 30px; letter-spacing: -.035em; }
.hd-category-card > header a { color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hd-category-lead { display: block; margin-top: 24px; }
.hd-category-lead h3 { margin: 10px 0 0; font-family: var(--hd-serif); font-size: 27px; line-height: 1.14; letter-spacing: -.03em; }
.hd-category-lead p { margin: 12px 0 0; color: var(--hd-muted); }
.hd-category-links { margin-top: 22px; border-top: 1px solid var(--hd-line); }
.hd-category-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hd-line); font-size: 14px; font-weight: 700; }
.hd-category-empty { margin-top: 22px; padding: 24px; background: var(--hd-paper); }
.hd-category-empty h3 { margin: 0; font-family: var(--hd-serif); font-size: 24px; }
.hd-category-empty p { margin: 8px 0 0; color: var(--hd-muted); }
.hd-category-ad { grid-column: 1 / -1; }
.hd-weekly { padding-block: 56px; }
.hd-weekly-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.hd-weekly-grid > a { position: relative; padding: 26px; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 8px 24px rgba(8,27,51,.05); }
.hd-weekly-grid span { color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-weekly-grid strong { position: absolute; top: 20px; right: 24px; color: #c6cfda; font-family: var(--hd-serif); font-size: 28px; }
.hd-weekly-grid h3 { margin: 34px 0 0; font-family: var(--hd-serif); font-size: 25px; line-height: 1.12; }
.hd-weekly-grid p { margin: 12px 0 0; color: var(--hd-muted); font-size: 14px; }

/* Daily news carousel */
.hd-news-carousel { margin-block: 0 56px; }
.hd-news-carousel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--hd-primary); }
.hd-news-carousel-heading span { display: block; margin-bottom: 4px; color: var(--hd-primary); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-news-carousel-heading h2 { margin: 0; font-family: var(--hd-serif); font-size: clamp(27px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.hd-news-carousel-controls { display: flex; gap: 6px; }
.hd-news-carousel-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--hd-line); background: var(--hd-white); color: var(--hd-primary); cursor: pointer; font-size: 18px; font-weight: 800; }
.hd-news-carousel-button:hover:not(:disabled) { border-color: var(--hd-primary); background: var(--hd-primary); color: var(--hd-white); }
.hd-news-carousel-button:disabled { cursor: not-allowed; opacity: .35; }
.hd-news-carousel-track { display: grid; grid-auto-columns: minmax(280px, 34%); grid-auto-flow: column; gap: 20px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.hd-news-carousel-track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.hd-news-carousel-card { display: flex; min-height: 100%; flex-direction: column; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 8px 24px rgba(8,27,51,.05); }
.hd-news-carousel-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hd-soft); }
.hd-news-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hd-news-carousel-thumb:hover img { transform: scale(1.03); }
.hd-news-carousel-copy { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.hd-news-carousel-copy small { color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-news-carousel-copy h3 { margin: 9px 0 0; font-family: var(--hd-serif); font-size: 23px; line-height: 1.14; }
.hd-news-carousel-copy p { margin: 10px 0 0; color: var(--hd-muted); font-size: 14px; line-height: 1.55; }
.hd-news-carousel-copy time { display: block; margin-top: auto; padding-top: 16px; color: var(--hd-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hd-news-carousel-thumb > .hd-placeholder-visual { width: 100%; height: 100%; min-height: 160px; }
.hd-weekly .hd-news-carousel { margin-bottom: 0; }

/* Ads */
.hd-ad-slot { overflow: hidden; text-align: center; }
.hd-ad-placeholder { display: grid; min-height: 96px; place-items: center; border: 1px dashed #9cabbc; background: var(--hd-paper); color: var(--hd-muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hd-ad-banner { margin-block: 12px 30px; min-height: 96px; }
.hd-ad-feed { margin-block: 4px 20px; min-height: 112px; }
.hd-ad-editorial-note { margin-block: 26px 0; min-height: 96px; }
.hd-ad-rectangle { min-height: 250px; }
.hd-ad-widget > * { max-width: 100%; }

/* Category archive */
.hd-category-hero { padding-block: 28px 54px; border-bottom: 1px solid var(--hd-line); background: var(--hd-soft); }
.hd-category-hero .hd-back-link { margin-bottom: 30px; }
.hd-category-rule { display: block; width: 64px; height: 8px; margin-bottom: 22px; background: var(--category-color); }
.hd-category-hero small, .hd-eyebrow, .hd-page header > span, .hd-search-header > span { color: var(--hd-primary); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-category-hero h1 { margin: 10px 0 0; font-family: var(--hd-serif); font-size: clamp(36px,5vw,54px); line-height: 1.04; letter-spacing: -.05em; }
.hd-category-description { max-width: 760px; margin-top: 20px; color: var(--hd-muted); font-size: 18px; }
.hd-category-description p { margin: 0; }
.hd-category-feature-wrap { padding-block: 42px 0; }
.hd-category-feature { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); overflow: hidden; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 18px 45px rgba(8,27,51,.1); }
.hd-category-feature-media { min-height: 360px; overflow: hidden; background: var(--hd-soft); }
.hd-category-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hd-category-feature-media > .hd-placeholder-visual { width: 100%; height: 100%; min-height: 360px; }
.hd-category-feature-media:hover img { transform: scale(1.02); }
.hd-category-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 36px; border-left: 8px solid var(--category-color); }
.hd-category-feature-copy > span { color: var(--category-color); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-category-feature-copy h2 { margin: 12px 0 0; font-family: var(--hd-serif); font-size: clamp(29px,3vw,42px); line-height: 1.07; letter-spacing: -.04em; }
.hd-category-feature-copy h2 a:hover { color: var(--category-color); }
.hd-category-feature-copy p { margin: 16px 0 0; color: var(--hd-muted); font-size: 16px; line-height: 1.6; }
.hd-category-feature-copy time { display: block; margin-top: 22px; color: var(--hd-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hd-archive-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--hd-line); }
.hd-archive-item:first-child { border-top: 0; }
.hd-archive-thumb { overflow: hidden; aspect-ratio: 16/9; background: var(--hd-soft); }
.hd-archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hd-archive-thumb > .hd-placeholder-visual { width: 100%; height: 100%; min-height: 124px; }
.hd-archive-item time, .hd-archive-item small { color: var(--hd-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hd-archive-item h2 { margin: 8px 0 0; font-family: var(--hd-serif); font-size: 25px; line-height: 1.14; }
.hd-archive-item p { margin: 10px 0 0; color: var(--hd-muted); font-size: 14px; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 6px; }
.page-numbers { display: grid; min-width: 38px; height: 38px; place-items: center; padding-inline: 8px; border: 1px solid var(--hd-line); font-weight: 800; }
.page-numbers.current { border-color: var(--hd-primary); background: var(--hd-primary); color: var(--hd-white); }

/* Article */
.hd-article-layout { display: grid; grid-template-columns: minmax(0,760px) 300px; justify-content: space-between; gap: 64px; padding-block: 38px 70px; }
.hd-article-header { padding-bottom: 34px; border-bottom: 2px solid var(--hd-primary); }
.hd-article-header h1 { margin: 14px 0 0; font-family: var(--hd-serif); font-size: clamp(40px,5.4vw,58px); line-height: 1.04; letter-spacing: -.045em; }
.hd-article-deck { margin: 22px 0 0; color: var(--hd-muted); font-size: 20px; line-height: 1.6; }
.hd-article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--hd-muted); font-size: 12px; font-weight: 700; }
.hd-article-meta a { color: var(--hd-primary); text-decoration: underline; text-underline-offset: 2px; }
.hd-article-image { margin: 32px 0; }
.hd-article-image img { width: 100%; }
.hd-article-image > .hd-placeholder-visual { min-height: 300px; }
.hd-article-image figcaption { padding: 9px 0; border-bottom: 1px solid var(--hd-line); color: var(--hd-muted); font-size: 12px; line-height: 1.6; }
.hd-article-content { font-family: Georgia, serif; color: #34445a; font-size: 18px; line-height: 1.85; }
.hd-article-content h2, .hd-article-content h3 { margin-top: 2em; color: var(--hd-ink); line-height: 1.2; }
.hd-article-content a { color: var(--hd-primary); text-decoration: underline; }
.hd-article-content blockquote { margin: 32px 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--hd-amber); font-size: 22px; }
.hd-article-content > *:first-child { margin-top: 0; }
.hd-article-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hd-line); }
.hd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-tags a { padding: 6px 10px; background: var(--hd-soft); font-size: 12px; font-weight: 700; }
.hd-editorial-note { display: grid; gap: 7px; margin-top: 24px; padding: 20px; border-left: 4px solid var(--hd-amber); background: var(--hd-cream); color: #4f4a37; font-size: 14px; line-height: 1.6; }
.hd-editorial-note strong { color: var(--hd-ink); font-size: 15px; }
.hd-editorial-note a { width: fit-content; color: var(--hd-primary); font-weight: 800; }
.hd-article .hd-news-carousel { margin-top: 44px; }
.hd-article-sidebar { align-self: start; position: sticky; top: 104px; display: grid; gap: 24px; }
.hd-related { border-top: 4px solid var(--hd-amber); padding: 22px; background: var(--hd-navy); color: var(--hd-white); }
.hd-related h2 { margin: 0 0 14px; color: var(--hd-amber); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hd-related a { display: block; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; }
.hd-related a:first-of-type { border-top: 0; }

/* Editorial service and cross-editorial recommendations */
.hd-service-section { padding-block: 0 56px; }
.hd-service-block { padding: 30px; border-top: 6px solid var(--category-color); background: var(--hd-soft); }
.hd-service-block > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--hd-line); }
.hd-service-block > header span { color: var(--category-color); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hd-service-block > header h2 { margin: 7px 0 0; font-family: var(--hd-serif); font-size: clamp(30px,4vw,42px); line-height: 1.05; letter-spacing: -.035em; }
.hd-service-block > header small { color: var(--hd-muted); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-service-block > p { max-width: 760px; margin: 18px 0 0; color: var(--hd-muted); font-size: 16px; }
.hd-service-placeholder { display: grid; gap: 5px; margin-top: 22px; padding: 22px; border: 1px dashed var(--category-color); background: var(--hd-white); }
.hd-service-placeholder strong { color: var(--hd-ink); font-family: var(--hd-serif); font-size: 24px; }
.hd-service-placeholder span { color: var(--hd-muted); font-size: 14px; }
.hd-category-related-section { padding-block: 0 70px; }
.hd-category-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.hd-category-related-card { display: flex; min-height: 180px; flex-direction: column; padding: 20px; border: 1px solid var(--hd-line); background: var(--hd-white); box-shadow: 0 8px 24px rgba(8,27,51,.05); }
.hd-category-related-card:hover { border-color: var(--hd-primary); box-shadow: 0 12px 30px rgba(8,27,51,.1); }
.hd-category-related-thumb { display: block; overflow: hidden; aspect-ratio: 16/9; margin: -20px -20px 18px; background: var(--hd-soft); }
.hd-category-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hd-category-related-kicker { color: var(--hd-primary); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-category-related-card strong { margin-top: 8px; font-family: var(--hd-serif); font-size: 24px; line-height: 1.12; }

/* Pages, search, errors */
.hd-page-shell, .hd-search-page { max-width: 1040px; padding-block: 38px 70px; }
.hd-page { max-width: 820px; }
.hd-page header, .hd-search-header { padding-bottom: 34px; border-bottom: 2px solid var(--hd-primary); }
.hd-page header h1, .hd-search-header h1 { margin: 12px 0 0; font-family: var(--hd-serif); font-size: clamp(40px,5.4vw,58px); line-height: 1.05; letter-spacing: -.045em; }
.hd-page header p { color: var(--hd-muted); font-size: 19px; }
.hd-page-content { padding-top: 34px; color: #34445a; font-size: 17px; line-height: 1.8; }
.hd-page-content h2 { margin-top: 1.8em; font-family: var(--hd-serif); font-size: 30px; color: var(--hd-ink); }
.hd-page-content li + li { margin-top: 9px; }
.hd-page-content a { color: var(--hd-primary); text-decoration: underline; }
.hd-policy-notice { margin-bottom: 34px; padding: 18px 20px; border-left: 4px solid var(--hd-amber); background: var(--hd-cream); color: #4f4a37; }
.hd-search-header .hd-search-form { max-width: 620px; margin-top: 24px; }
.hd-search-page .hd-archive-list { margin-top: 34px; }
.hd-error-page { padding-block: 100px; text-align: center; }
.hd-error-page > span { color: var(--hd-amber); font-family: var(--hd-serif); font-size: 80px; font-weight: 900; }
.hd-error-page h1 { margin: 4px 0 0; font-family: var(--hd-serif); font-size: 48px; }
.hd-error-page p { color: var(--hd-muted); }
.hd-error-page a { display: inline-block; margin-top: 20px; padding: 12px 18px; background: var(--hd-primary); color: var(--hd-white); font-weight: 800; }

/* Footer */
.hd-footer { border-top: 1px solid var(--hd-line); background: var(--hd-navy); color: var(--hd-white); }
.hd-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 48px; padding-block: 48px; }
.hd-footer-brand { margin: 0; color: var(--hd-white) !important; font-size: 24px !important; font-weight: 900; letter-spacing: -.055em; }
.hd-footer p { max-width: 380px; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; }
.hd-footer-highlight { display: inline-block; margin-top: 8px; color: var(--hd-amber); font-size: 14px; font-weight: 800; }
.hd-footer h2 { margin: 0; color: var(--hd-amber); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hd-footer-links { display: grid; gap: 8px; margin-top: 16px; }
.hd-footer-links a { color: rgba(255,255,255,.7); font-size: 14px; }
.hd-footer-links a:hover { color: var(--hd-white); }
.hd-footer-bottom { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: 11px; text-align: center; }

@media (max-width: 1024px) {
	.hd-desktop-nav { display: none; }
	.hd-mobile-nav { display: block; }
	.hd-lead-grid, .hd-news-layout, .hd-archive-layout, .hd-article-layout { grid-template-columns: 1fr; }
	.hd-secondary-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.hd-secondary-story { grid-template-columns: 1fr; }
	.hd-sidebar, .hd-article-sidebar { position: static; grid-template-columns: 1fr 300px; }
	.hd-article-layout { max-width: 840px; }
}

@media (max-width: 760px) {
	.hd-container { width: min(100% - 32px, 1240px); }
	.hd-datebar-tagline { display: none; }
	.hd-datebar-inner { justify-content: center; font-size: 10px; }
	.hd-header-inner { min-height: 66px; }
	.hd-brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
	.hd-brand-mark { width: 36px; height: 36px; }
	.hd-brand-copy strong { font-size: 18px; }
	.hd-brand-copy small { font-size: 8px; }
	.custom-logo { max-width: 190px; max-height: 48px; }
	.hd-focus-inner { min-height: 44px; }
	.hd-focus-inner p { font-size: 12px; }
	.hd-home-lead { padding-block: 28px; }
	.hd-section-heading { align-items: start; }
	.hd-section-heading small { display: none; }
	.hd-lead-story { min-height: 430px; }
	.hd-lead-copy { padding: 24px; }
	.hd-lead-copy h2 { font-size: 32px; }
	.hd-secondary-list { grid-template-columns: 1fr; }
	.hd-secondary-story { grid-template-columns: 88px 1fr; }
	.hd-latest-item { grid-template-columns: 38px 1fr; }
	.hd-latest-item > time { grid-column: 2; }
	.hd-latest-item h3 { font-size: 22px; }
	.hd-sidebar, .hd-article-sidebar { grid-template-columns: 1fr; }
	.hd-category-grid, .hd-footer-grid { grid-template-columns: 1fr; }
	.hd-category-featured, .hd-category-ad { grid-column: auto; }
	.hd-category-card { padding: 22px; }
	.hd-category-card > header h2 { font-size: 26px; }
	.hd-category-card > header a { font-size: 9px; }
	.hd-category-feature { grid-template-columns: 1fr; }
	.hd-category-feature-media { min-height: 220px; aspect-ratio: 16 / 9; }
	.hd-category-feature-media > .hd-placeholder-visual { min-height: 220px; }
	.hd-category-feature-copy { padding: 24px; border-top: 6px solid var(--category-color); border-left: 0; }
	.hd-category-feature-copy h2 { font-size: 29px; }
	.hd-service-block { padding: 22px; }
	.hd-service-block > header { display: block; }
	.hd-service-block > header small { display: block; margin-top: 12px; }
	.hd-category-related-grid { grid-template-columns: 1fr; }
	.hd-archive-item { grid-template-columns: 1fr; }
	.hd-article-layout { width: min(100% - 32px, 760px); padding-top: 28px; }
	.hd-article-header h1 { font-size: 38px; }
	.hd-article-deck { font-size: 18px; }
	.hd-article-content { font-size: 17px; }
	.hd-news-carousel-heading { align-items: start; }
	.hd-news-carousel-track { grid-auto-columns: minmax(78%, 1fr); }
	.hd-news-carousel-copy h3 { font-size: 21px; }
	.hd-footer-grid { gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
