/*
Theme Name: Oberbayerisches Alpenvorland
Theme URI: https://oberbayerisches-alpenvorland.de/
Author: Oberbayerisches Alpenvorland
Description: Redaktionelles Nachrichten-Theme für Oberbayern, Bayern und das Alpenvorland. Mit dynamischer Startseitenlogik, chronologischen Kategoriearchiven und responsivem Artikellayout.
Version: 1.0.13
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alpenvorland
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --blue: #0b66b2;
  --deep: #003f70;
  --pale: #e9f3fb;
  --red: #b51f2e;
  --ink: #17191c;
  --muted: #65707a;
  --line: #d8dde2;
  --warm: #f4f1ea;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --condensed: "Libre Franklin", Arial, sans-serif;
  --shadow: 0 18px 45px rgba(0, 39, 68, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: #fff; color: var(--deep); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.meta { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--red); flex: 0 0 auto; }
.empty-section { grid-column: 1 / -1; padding: 25px; border: 1px dashed #9ab7ca; background: var(--pale); color: var(--deep); font-size: .85rem; }
.button { display: inline-block; margin-top: 15px; padding: 12px 19px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 750; }
.button:hover { color: #fff; background: var(--blue); }

/* Header */
.masthead { background: var(--deep); color: #fff; }
.masthead-inner { min-height: 122px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.mast-left { display: flex; align-items: center; gap: 14px; }
.date { color: #c7ddea; font-size: .78rem; line-height: 1.55; }
.brand { display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; }
.brand:hover { color: #fff; }
.brand-main { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 72px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-name { max-width: 560px; font: 700 clamp(1.55rem, 3.1vw, 2.55rem)/.98 var(--serif); letter-spacing: -.035em; }
.brand-sub { margin-top: 7px; color: #d7ebf7; font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.mast-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.pill, .icon-btn { border: 0; cursor: pointer; transition: .18s ease; }
.pill { border-radius: 999px; padding: 12px 18px; background: #fff; color: var(--deep); font-size: .79rem; font-weight: 750; }
.pill:hover { color: var(--deep); transform: translateY(-1px); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; }
.icon-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.main-nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav-inner { min-height: 47px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-menu { min-height: 47px; display: flex; justify-content: center; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav-menu > li { display: flex; margin: 0; }
.nav-menu > li > a, .nav-link { position: relative; display: flex; align-items: center; padding: 0 15px; border-right: 1px solid #edf0f2; white-space: nowrap; font-size: .85rem; font-weight: 650; }
.nav-menu > li.current-menu-item > a, .nav-menu > li.current-category-ancestor > a, .nav-menu > li > a:hover, .nav-link:hover { color: var(--blue); }

/* Home */
.front-top { padding-top: 22px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); gap: 28px; padding-bottom: 34px; }
.hero { position: relative; min-height: 570px; overflow: hidden; background: var(--deep); color: #fff; }
.hero > .cover-link, .hero > .cover-link > img, .hero > .cover-link > .media-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > .cover-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,20,35,.88) 100%); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(24px, 5vw, 44px); }
.hero .eyebrow { color: #d9efff; }
.hero h1 { max-width: 780px; margin: 5px 0 13px; font: 700 clamp(2.1rem, 4.6vw, 4rem)/1.02 var(--serif); letter-spacing: -.04em; }
.hero h1 a:hover { color: #fff; }
.hero-deck { max-width: 720px; margin: 0 0 15px; color: #e9f1f5; font-size: .93rem; line-height: 1.58; }
.hero .meta { color: #c8d7df; }
.side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.side-card { min-height: 0; background: #fff; border-bottom: 1px solid var(--line); }
.side-card > a { display: block; height: 190px; overflow: hidden; }
.side-card img, .side-card .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.side-card-body { padding: 14px 2px 16px; }
.side-card h2 { margin: 5px 0 10px; font: 700 1.35rem/1.18 var(--serif); }
.breaking { border-block: 1px solid var(--line); background: #fff; }
.breaking-inner { min-height: 92px; display: grid; grid-template-columns: 145px repeat(3, 1fr); align-items: center; }
.breaking-label { font: 800 .78rem var(--condensed); text-transform: uppercase; letter-spacing: .06em; }
.breaking-label span { display: block; margin-top: 5px; color: var(--red); font-size: .66rem; }
.breaking-item { min-height: 54px; display: flex; flex-direction: column; justify-content: center; padding: 5px 20px; border-left: 1px solid var(--line); font: 700 .86rem/1.35 var(--serif); }
.breaking-item time { margin-top: 5px; color: var(--muted); font: 500 .67rem var(--sans); }
.section { padding-top: 42px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--ink); }
.section-head h2 { margin: 0; font: 700 clamp(1.55rem, 3vw, 2.2rem) var(--serif); letter-spacing: -.03em; }
.section-head a { color: var(--blue); font-size: .78rem; font-weight: 800; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.news-card > a:first-child { display: block; height: 210px; margin-bottom: 12px; overflow: hidden; }
.news-card img, .news-card .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.news-card h3 { margin: 3px 0 9px; font: 700 1.32rem/1.2 var(--serif); }
.news-card > p:not(.eyebrow) { margin: 0 0 13px; color: #4b555d; font-size: .82rem; line-height: 1.55; }
.news-card .meta { margin-top: auto; }
.feature-band { margin-top: 45px; padding-block: 36px; background: var(--deep); color: #fff; }
.feature-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 38px; align-items: center; }
.feature-image { display: block; height: 390px; overflow: hidden; }
.feature-image img, .feature-image .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.feature-copy .eyebrow { color: #d9efff; }
.feature-copy h2 { margin: 8px 0 13px; font: 700 clamp(2rem, 4vw, 3.25rem)/1.05 var(--serif); letter-spacing: -.035em; }
.feature-copy h2 a:hover { color: #fff; }
.feature-copy > p:not(.eyebrow) { color: #d7e3e9; font-size: .9rem; line-height: 1.65; }
.read-link { display: inline-block; margin-top: 15px; color: #fff; font-weight: 800; font-size: .78rem; }
.read-link:hover { color: #fff; }
.editorial-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; }
.editorial-lead { border-right: 1px solid var(--line); padding-right: 30px; }
.editorial-lead > a:first-child { display: block; height: 420px; overflow: hidden; }
.editorial-lead img, .editorial-lead .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.editorial-lead h3 { margin: 12px 0 10px; font: 700 2rem/1.12 var(--serif); }
.editorial-lead > p:not(.eyebrow) { color: #49545d; font-size: .9rem; line-height: 1.6; }
.compact-stories { display: grid; align-content: start; }
.compact-story { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.compact-story > a { width: 110px; height: 92px; overflow: hidden; }
.compact-story img, .compact-story .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.compact-story h3 { margin: 2px 0 8px; font: 700 1.05rem/1.25 var(--serif); }
.opinion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.opinion { padding: 26px; background: var(--warm); }
.opinion-avatar { width: 58px; height: 58px; margin-bottom: 16px; overflow: hidden; border-radius: 50%; }
.opinion-avatar img, .opinion-avatar .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.opinion h3 { margin: 7px 0 11px; font: 700 1.3rem/1.2 var(--serif); }
.opinion blockquote { margin: 0 0 18px; color: #47515a; font: italic 700 .98rem/1.5 var(--serif); }
.newsletter { margin-block: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 25px 30px; border: 1px solid #c6dfee; background: var(--pale); }
.newsletter-icon { font-size: 2.2rem; }
.newsletter h2 { margin: 0 0 4px; font: 700 1.4rem var(--serif); }
.newsletter p { margin: 0; color: var(--muted); font-size: .8rem; }
.newsletter-button { padding: 12px 17px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 800; }
.newsletter-button:hover { color: #fff; background: var(--deep); }
.media-placeholder { display: grid; place-items: center; min-height: 120px; background: linear-gradient(145deg,#dcebf5,#aacde4); }
.media-placeholder img { width: min(36%,130px) !important; height: auto !important; opacity: .55; filter: none !important; }

/* Category archives */
.category-page { padding-bottom: 65px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 24px; color: var(--muted); font-size: .72rem; }
.breadcrumb span { color: #a1a9af; }
.category-head { padding: 30px 0 22px; border-bottom: 5px solid var(--deep); }
.category-head h1 { margin: 0; font: 700 clamp(2.7rem, 6vw, 4.8rem)/1 var(--serif); letter-spacing: -.045em; }
.category-description { max-width: 730px; margin-top: 13px; color: #4e5962; font-size: .92rem; line-height: 1.6; }
.category-description p { margin: 0; }
.category-lead { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(330px,.7fr); min-height: 490px; margin-top: 28px; background: var(--warm); }
.category-lead-media { display: block; min-height: 490px; overflow: hidden; }
.category-lead-media img, .category-lead-media .media-placeholder { width: 100%; height: 100%; min-height: 490px; object-fit: cover; }
.lead-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; }
.lead-copy h2 { margin: 3px 0 15px; font: 700 clamp(2rem,3.8vw,3.25rem)/1.06 var(--serif); letter-spacing: -.035em; }
.lead-copy > p:not(.eyebrow) { margin: 0 0 18px; color: #4c555d; font-size: .91rem; line-height: 1.6; }
.category-top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.category-top-card { display: grid; grid-template-columns: 44% 1fr; gap: 18px; }
.category-card-media { display: block; height: 210px; overflow: hidden; }
.category-card-media img, .category-card-media .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.category-top-card h3 { margin: 5px 0 9px; font: 700 1.35rem/1.18 var(--serif); letter-spacing: -.02em; }
.category-top-card p:not(.eyebrow) { margin: 0 0 10px; color: #4f5961; font-size: .8rem; line-height: 1.5; }
.category-newsletter { margin-block: 36px 0; }
.category-story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.category-story { display: flex; flex-direction: column; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.category-story .category-card-media { margin-bottom: 10px; }
.category-story h3 { margin: 0 0 9px; font: 700 1.28rem/1.2 var(--serif); letter-spacing: -.018em; }
.category-story > p:not(.eyebrow) { margin: 0 0 13px; color: #4b555d; font-size: .82rem; line-height: 1.52; }
.category-story .meta { margin-top: auto; }
.archive-stream { width: min(920px, 100%); }
.stream-story { display: grid; grid-template-columns: 310px 1fr; gap: 26px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stream-story:first-child { padding-top: 0; }
.stream-media { display: block; height: 190px; overflow: hidden; }
.stream-media img, .stream-media .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.stream-story h2 { margin: 4px 0 9px; font: 700 1.55rem/1.18 var(--serif); }
.stream-story p:not(.eyebrow) { margin: 0 0 11px; color: #4e5860; font-size: .84rem; line-height: 1.55; }
.navigation.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { padding: 9px 13px; border: 1px solid var(--line); font-size: .76rem; font-weight: 700; }
.page-numbers.current { background: var(--deep); color: #fff; }

/* Single article */
.article-header { width: min(900px, 100%); margin: 0 auto; padding: 58px 0 34px; }
.article-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.article-kicker::before { content: ""; width: 24px; height: 4px; background: var(--red); }
.article-header h1 { margin: 0; font: 700 clamp(2.7rem, 6vw, 5.35rem)/.98 var(--serif); letter-spacing: -.048em; }
.standfirst { max-width: 780px; margin: 24px 0 27px; color: #46525b; font-size: clamp(1.08rem,2vw,1.34rem); line-height: 1.58; }
.byline { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-meta { display: flex; align-items: center; gap: 18px; }
.article-meta span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.article-meta span + span { position: relative; padding-left: 18px; }
.article-meta span + span::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); transform: translateY(-50%); }
.article-tools { display: flex; gap: 8px; margin-left: auto; }
.article-tools button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--deep); cursor: pointer; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: min(62vw,660px); object-fit: cover; }
figcaption { padding-top: 9px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.article-layout { display: grid; grid-template-columns: minmax(0,760px) 230px; justify-content: center; gap: 64px; padding: 46px 0 64px; }
.article-body { font-family: Georgia,"Times New Roman",serif; font-size: 1.13rem; line-height: 1.82; }
.article-body > p { margin: 0 0 25px; }
.article-body > p:first-of-type::first-letter { float: left; margin: 7px 10px 0 0; color: var(--deep); font: 700 4.8rem/.72 var(--serif); }
.article-body h2 { margin: 48px 0 17px; font: 700 clamp(1.75rem,3vw,2.35rem)/1.14 var(--serif); letter-spacing: -.025em; }
.article-body h3 { font-family: var(--serif); }
.article-body blockquote { margin: 40px 0; padding: 5px 0 5px 25px; border-left: 5px solid var(--blue); color: var(--deep); font: 700 1.65rem/1.35 var(--serif); }
.article-body img { height: auto; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-end { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: .72rem var(--sans); color: var(--muted); }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; font-family: var(--sans); }
.share-row strong { margin-right: 4px; color: var(--ink); font-size: .75rem; }
.share-row button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: #fff; color: var(--deep); font-size: .72rem; font-weight: 750; cursor: pointer; }
.article-aside { align-self: start; position: sticky; top: 25px; border-top: 4px solid var(--deep); padding-top: 16px; }
.article-aside h2 { margin: 0 0 8px; font: 700 1.4rem var(--serif); }
.related-link { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
.related-link span { display: block; margin-bottom: 5px; color: var(--blue); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.related-link strong { font: 700 .96rem/1.35 var(--serif); }
.recommendations { padding: 42px 0 58px; border-top: 1px solid var(--line); background: #f7f8f9; }
.recommendations h2 { margin: 0 0 22px; font: 700 2rem var(--serif); }
.recommendation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 27px; }
.recommendation > img, .recommendation > .media-placeholder { width: 100%; height: 200px; object-fit: cover; }
.recommendation p { margin: 12px 0 5px; color: var(--blue); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.recommendation h3 { margin: 0; font: 700 1.3rem/1.2 var(--serif); }
.home-cta { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 17px; margin-top: 38px; padding: 18px 22px; border: 1px solid #b8cfde; background: #fff; color: var(--deep); transition: .18s ease; }
.home-cta:hover { color: var(--deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.home-cta img { width: 58px; height: 58px; object-fit: contain; }
.home-cta small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-cta strong { font: 700 1.35rem var(--serif); }
.home-cta b { font-size: 1.7rem; }

/* Standard pages */
.standard-page { padding: 55px 0 75px; }
.narrow-content { width: min(800px, calc(100% - 40px)); }
.page-header h1, .error-page h1 { margin: 0 0 25px; font: 700 clamp(2.5rem,5vw,4rem)/1.05 var(--serif); }
.error-page { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-page--faz { min-height: 58vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 56px; align-items: start; padding-top: 24px; }
.error-page--faz h1 { margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.045em; }
.error-page__lead { max-width: 720px; margin: 0 0 28px; color: #39464f; font: 1.08rem/1.65 Georgia, "Times New Roman", serif; }
.error-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 700px; margin: 0 0 20px; border: 1px solid #aebbc4; background: #fff; }
.error-search input { min-height: 54px; width: 100%; border: 0; padding: 0 16px; color: var(--ink); outline: 0; }
.error-search input:focus { box-shadow: inset 0 0 0 3px rgba(11, 102, 178, .16); }
.error-search button { min-height: 54px; border: 0; border-left: 1px solid #aebbc4; padding: 0 22px; background: var(--deep); color: #fff; font-weight: 800; cursor: pointer; }
.error-search button:hover { background: var(--blue); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 8px; }
.error-actions .button { margin-top: 0; }
.error-actions > a:not(.button) { color: var(--deep); font-size: .8rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.error-page__aside { margin-top: 26px; padding: 24px 26px; border-top: 5px solid var(--deep); background: #f5f8fa; }
.error-page__aside h2 { margin: 0 0 14px; color: var(--deep); font: 700 1.45rem/1.15 var(--serif); }
.error-page__aside ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.error-page__aside a { color: #283640; font-size: .86rem; line-height: 1.45; }
.error-page__aside a:hover { color: var(--blue); }

/* Footer */
.site-footer { background: #082f4b; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px; padding-block: 45px; }
.footer-brand { font: 700 1.6rem var(--serif); }
.footer-top p { color: #b9cbd6; font-size: .78rem; line-height: 1.6; }
.footer-top h2 { margin: 4px 0 15px; font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: grid; gap: 10px; color: #cbd9e1; font-size: .78rem; }
.footer-links a:hover { color: #fff; }
.footer-menu, .footer-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.footer-menu > li > a { display: block; margin: 4px 0 15px; color: #fff; font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-menu .sub-menu { display: grid; gap: 10px; color: #cbd9e1; font-size: .78rem; }
.footer-menu .sub-menu a:hover { color: #fff; }
.footer-bottom { padding: 15px 0 22px; border-top: 1px solid #315168; color: #9eb3c0; font-size: .69rem; }

/* Search and full menu */
.search-layer, .site-drawer { position: fixed; z-index: 50; inset: 0; visibility: hidden; }
.search-layer { display: grid; place-items: start center; padding-top: 14vh; background: rgba(0,25,43,.85); opacity: 0; transition: .2s; }
.search-layer.open { visibility: visible; opacity: 1; }
.search-box { width: min(700px,calc(100% - 32px)); padding: 26px; background: #fff; box-shadow: var(--shadow); }
.search-row { display: flex; }
.search-row input { flex: 1; min-width: 0; border: 0; border-bottom: 3px solid var(--blue); padding: 13px 2px; font-size: 1.15rem; outline: 0; }
.close-btn { border: 0; background: transparent; padding: 10px 0 10px 20px; font-size: 1.35rem; cursor: pointer; }
.site-drawer { overflow-y: auto; background: #fff; transform: translateX(-100%); transition: .2s; }
.site-drawer.open { visibility: visible; transform: none; }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 14px max(20px,calc((100% - 1180px)/2)); border-bottom: 1px solid var(--line); background: #fff; }
.drawer-title { display: flex; align-items: center; gap: 13px; font: 700 1.25rem var(--serif); }
.drawer-title img { width: 45px; height: 45px; object-fit: contain; }
.drawer-content { width: min(1180px,calc(100% - 40px)); margin-inline: auto; padding: 30px 0 60px; }
.drawer-kicker { margin: 0 0 25px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.drawer-grid { display: grid; grid-template-columns: .9fr 1.15fr .9fr 1.3fr; gap: 42px; }
.drawer-section h2 { margin: 0 0 13px; padding-bottom: 11px; border-bottom: 3px solid var(--deep); font: 700 1.35rem var(--serif); }
.drawer-section nav { display: grid; }
.drawer-section a { padding: 9px 0; border-bottom: 1px solid #edf0f2; color: #303840; font-size: .83rem; font-weight: 650; }
.drawer-section a:hover { color: var(--blue); }
.drawer-section .drawer-feature { color: var(--deep); font-weight: 800; }
.drawer-service { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-weight: 650; }
.drawer-menu, .drawer-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.drawer-menu { display: grid; grid-template-columns: .9fr 1.15fr .9fr 1.3fr; gap: 42px; }
.drawer-menu > li > a { display: block; margin: 0 0 13px; padding: 0 0 11px; border-bottom: 3px solid var(--deep); color: var(--text); font: 700 1.35rem var(--serif); }
.drawer-menu .sub-menu { display: grid; }
.drawer-menu .sub-menu a { display: block; padding: 9px 0; border-bottom: 1px solid #edf0f2; color: #303840; font-size: .83rem; font-weight: 650; }
.drawer-menu .sub-menu a:hover { color: var(--blue); }
.drawer-menu .sub-menu li:first-child > a { color: var(--deep); font-weight: 800; }
.drawer-menu > .drawer-service-group { grid-column: 1 / -1; }
.drawer-menu > .drawer-service-group > a { margin: 22px 0 0; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.drawer-menu > .drawer-service-group > .sub-menu { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.drawer-menu > .drawer-service-group > .sub-menu a { border: 0; color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px,760px); }
  .date, .mast-actions .pill { display: none; }
  .masthead-inner { min-height: 94px; grid-template-columns: 42px 1fr 42px; }
  .mast-left { width: 42px; }
  .mast-actions { justify-self: stretch; }
  .brand-mark { width: 52px; height: 52px; }
  .brand-name { font-size: clamp(1.25rem,4vw,2rem); }
  .brand-sub { font-size: .56rem; }
  .lead-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .breaking-inner { grid-template-columns: 115px repeat(2,1fr); }
  .breaking-item:last-child { display: none; }
  .feature-grid, .editorial-grid { grid-template-columns: 1fr; }
  .editorial-lead { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
  .compact-stories { grid-template-columns: repeat(3,1fr); gap: 18px; }
  .compact-story { grid-template-columns: 1fr; }
  .compact-story > a { width: 100%; height: 145px; }
  .article-layout { grid-template-columns: minmax(0,760px); }
  .article-aside { display: none; }
  .category-lead { grid-template-columns: 1fr; }
  .category-lead-media, .category-lead-media img, .category-lead-media .media-placeholder { min-height: 0; height: 420px; }
  .category-top-row { grid-template-columns: 1fr; }
  .category-story-grid { grid-template-columns: 1fr 1fr; }
  .category-story:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .category-story:last-child .category-card-media { grid-row: 1 / 5; height: 230px; margin: 0; }
  .drawer-grid, .drawer-menu { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-menu { grid-column: 1; grid-template-columns: repeat(3,1fr); gap: 28px; }
  .error-page--faz { grid-template-columns: 1fr; gap: 26px; }
  .error-page__aside { margin-top: 0; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 24px); }
  .masthead { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.2); }
  .masthead-inner { min-height: 70px; }
  .brand-main { gap: 9px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { max-width: 205px; font-size: 1.08rem; }
  .brand-sub { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .main-nav { position: sticky; top: 70px; z-index: 19; }
  .nav-menu { justify-content: flex-start; min-height: 43px; }
  .nav-menu > li > a, .nav-link { padding-inline: 12px; font-size: .77rem; }
  .front-top { padding-top: 12px; }
  .lead-grid { gap: 20px; padding-bottom: 24px; }
  .hero { min-height: 465px; }
  .hero h1 { font-size: 2rem; }
  .hero-deck { font-size: .86rem; }
  .side-stack { grid-template-columns: 1fr; }
  .side-card { display: grid; grid-template-columns: 42% 1fr; gap: 14px; }
  .side-card > a { height: 136px; }
  .side-card-body { padding-top: 2px; }
  .side-card h2 { font-size: 1.08rem; }
  .breaking-inner { min-height: 70px; grid-template-columns: 88px 1fr; }
  .breaking-item { padding-inline: 13px; font-size: .75rem; }
  .breaking-item:nth-of-type(n+2) { display: none; }
  .section { padding-top: 32px; }
  .section-head h2 { font-size: 1.65rem; }
  .section-head a { display: none; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-card { display: grid; grid-template-columns: 38% 1fr; gap: 14px; }
  .news-card > a:first-child { grid-row: 1 / 5; height: 142px; margin: 0; }
  .news-card h3 { font-size: 1.05rem; margin-top: 2px; }
  .news-card > p:not(.eyebrow) { display: none; }
  .feature-band { margin-top: 34px; padding: 0 0 28px; }
  .feature-band .shell { width: 100%; }
  .feature-image { height: 270px; }
  .feature-copy { padding-inline: 18px; }
  .feature-copy h2 { font-size: 2rem; }
  .editorial-lead > a:first-child { height: 260px; }
  .editorial-lead h3 { font-size: 1.55rem; }
  .compact-stories { grid-template-columns: 1fr; }
  .compact-story { grid-template-columns: 38% 1fr; }
  .compact-story > a { width: 100%; height: 125px; }
  .opinion-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 22px 18px; }
  .newsletter-icon { display: none; }
  .newsletter-button { width: max-content; }
  .breadcrumb { padding-top: 17px; }
  .category-head { padding: 22px 0 15px; }
  .category-head h1 { font-size: 2.75rem; }
  .category-lead { margin: 20px -12px 0; }
  .category-lead-media, .category-lead-media img, .category-lead-media .media-placeholder { height: 270px; }
  .lead-copy { padding: 22px 18px 26px; }
  .lead-copy h2 { font-size: 2rem; }
  .category-top-card { grid-template-columns: 38% 1fr; gap: 14px; }
  .category-top-card .category-card-media { height: 140px; }
  .category-top-card h3 { font-size: 1.08rem; }
  .category-top-card p:not(.eyebrow) { display: none; }
  .category-story-grid { grid-template-columns: 1fr; gap: 20px; }
  .category-story, .category-story:last-child { display: grid; grid-template-columns: 38% 1fr; gap: 14px; }
  .category-story .category-card-media, .category-story:last-child .category-card-media { grid-row: 1 / 5; height: 140px; margin: 0; }
  .category-story h3 { margin-top: 2px; font-size: 1.04rem; }
  .category-story > p:not(.eyebrow) { display: none; }
  .stream-story { grid-template-columns: 37% 1fr; gap: 14px; padding-block: 16px; }
  .stream-media { height: 130px; }
  .stream-story h2 { font-size: 1.04rem; margin-top: 2px; }
  .stream-story p:not(.eyebrow) { display: none; }
  .article-header { padding: 34px 0 25px; }
  .article-header h1 { font-size: 2.65rem; }
  .standfirst { margin-top: 18px; font-size: 1rem; }
  .byline { align-items: flex-start; flex-wrap: wrap; }
  .article-meta { flex-wrap: wrap; gap: 8px; }
  .article-tools { width: 100%; margin: 5px 0 0; }
  .hero-figure { margin-inline: -12px; }
  .hero-figure img { height: 68vw; min-height: 260px; }
  .hero-figure figcaption { padding-inline: 12px; }
  .article-layout { padding: 32px 0 45px; }
  .article-body { font-size: 1.05rem; line-height: 1.75; }
  .article-body h2 { margin-top: 38px; }
  .article-body blockquote { font-size: 1.35rem; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .recommendation { display: grid; grid-template-columns: 38% 1fr; gap: 14px; }
  .recommendation > img, .recommendation > .media-placeholder { grid-row: 1 / 4; height: 130px; }
  .recommendation p { margin-top: 2px; }
  .recommendation h3 { font-size: 1.08rem; }
  .home-cta { grid-template-columns: 48px 1fr auto; padding-inline: 15px; }
  .home-cta img { width: 48px; height: 48px; }
  .home-cta strong { font-size: 1.15rem; }
  .standard-page { padding: 38px 0 56px; }
  .error-page--faz h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .error-page__lead { font-size: 1rem; }
  .error-search { grid-template-columns: 1fr; }
  .error-search button { border-top: 1px solid #aebbc4; border-left: 0; }
  .error-actions { align-items: flex-start; flex-direction: column; }
  .drawer-head { min-height: 70px; padding: 12px 16px; }
  .drawer-title { font-size: 1.05rem; }
  .drawer-title img { width: 40px; height: 40px; }
  .drawer-content { width: calc(100% - 32px); padding-top: 24px; }
  .drawer-grid, .drawer-menu { grid-template-columns: 1fr; gap: 30px; }
  .drawer-section h2 { font-size: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-menu { grid-column: 1; grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-menu > li:last-child { grid-column: 1 / -1; }
}

@media print {
  .masthead, .main-nav, .site-footer, .article-tools, .article-aside, .recommendations, .site-drawer, .search-layer { display: none !important; }
  .article-layout { display: block; padding: 20px 0; }
  .article-header { padding-top: 20px; }
}

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

/* Contact page */
.contact-page { --contact-line: #d4dde3; max-width: 1120px; margin: 0 auto; padding: 58px 0 78px; }
.contact-intro { max-width: 820px; padding-bottom: 34px; border-bottom: 1px solid var(--ink); }
.contact-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-kicker::before { width: 28px; height: 4px; background: var(--red); content: ""; }
.contact-intro h1 { margin: 0 0 20px; font: 700 clamp(3rem, 6vw, 5.2rem)/.98 var(--serif); letter-spacing: -.045em; }
.contact-intro > p:last-child { max-width: 730px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 64px; padding-top: 42px; }
.contact-form { display: grid; gap: 22px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .02em; }
.contact-field label span { color: var(--red); }
.contact-field input,
.contact-field textarea { width: 100%; border: 1px solid #aebbc4; border-radius: 0; background: #fff; color: var(--ink); font: 400 .92rem/1.5 var(--sans); }
.contact-field input { min-height: 50px; padding: 11px 13px; }
.contact-field textarea { min-height: 190px; padding: 13px; resize: vertical; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(11, 102, 178, .16); outline-offset: 0; }
.contact-consent { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.contact-consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }
.contact-consent a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.contact-submit { width: max-content; min-height: 50px; padding: 13px 22px; border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; font: 800 .8rem var(--sans); cursor: pointer; }
.contact-submit:hover { border-color: var(--deep); background: var(--deep); }
.contact-required { margin: -10px 0 0; color: var(--muted); font-size: .7rem; }
.contact-details { align-self: start; padding: 28px; border-top: 5px solid var(--blue); background: var(--pale); }
.contact-details h2 { margin: 0 0 14px; font: 700 1.7rem/1.15 var(--serif); }
.contact-details > p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.contact-email { display: block; margin-top: 22px; color: var(--blue); font-size: .82rem; font-weight: 800; overflow-wrap: anywhere; }
.contact-details-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid #c4d5df; }
.contact-details-note strong { font: 700 1.12rem var(--serif); }
.contact-details-note p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.contact-notice { display: grid; gap: 4px; margin-top: 28px; padding: 17px 20px; border-left: 5px solid var(--blue); background: var(--pale); font-size: .82rem; }
.contact-notice-success { border-color: #2d7a47; background: #edf7f0; }
.contact-notice-error { border-color: var(--red); background: #fff1f2; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .contact-page { padding: 48px 0 64px; }
  .contact-layout { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 620px) {
  .contact-page { padding: 36px 0 52px; }
  .contact-intro h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .contact-field-row { grid-template-columns: 1fr; }
  .contact-details { padding: 24px; }
  .contact-submit { width: 100%; }
}
