/*
Theme Name: Buenos Aires Viva
Theme URI: https://buenosairesviva.com.ar/
Author: wawi - capacitación y desarrollo
Author URI: https://wawi.com.ar/
Description: Tema editorial para un diario digital de la Ciudad Autónoma de Buenos Aires. Portada periodística, secciones, noticias destacadas, diseño responsive y opciones de personalización.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buenos-aires-viva
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, block-styles, wide-blocks
*/

:root {
  --bav-ink: #292d2e;
  --bav-muted: #687277;
  --bav-accent: #00a9bd;
  --bav-accent-dark: #007f91;
  --bav-line: #dce2e4;
  --bav-soft: #f2f6f7;
  --bav-white: #fff;
  --bav-alert: #d72935;
  --bav-max: 1240px;
  --bav-radius: 3px;
  --bav-shadow: 0 14px 42px rgba(27, 41, 46, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--bav-ink);
  background: var(--bav-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.search-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

a:hover { color: var(--bav-accent-dark); }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea { font: inherit; }

button { cursor: pointer; }

.container {
  width: min(calc(100% - 40px), var(--bav-max));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--bav-white);
  background: var(--bav-ink);
}

.site-topbar {
  color: #dfe6e8;
  background: var(--bav-ink);
  font-size: .75rem;
  letter-spacing: .02em;
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 18px;
}

.site-topbar__city {
  color: var(--bav-white);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-topbar__links,
.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-topbar a:hover { color: #67d4df; }

.site-header__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 112px;
  gap: 32px;
}

.site-branding {
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.custom-logo-link,
.bundled-logo-link { display: inline-flex; }

.custom-logo,
.bundled-logo {
  width: auto;
  max-width: 210px;
  max-height: 78px;
  object-fit: contain;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-search {
  display: flex;
  align-items: stretch;
  width: min(340px, 34vw);
  height: 42px;
  overflow: hidden;
  background: var(--bav-white);
  border: 1px solid var(--bav-line);
  border-radius: 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within {
  border-color: var(--bav-accent);
  box-shadow: 0 0 0 3px rgba(0,169,189,.10);
}

.header-search__field {
  min-width: 0;
  flex: 1;
  padding: 0 8px 0 17px;
  color: var(--bav-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: .82rem;
}

.header-search__field::placeholder { color: #7f8a8d; opacity: 1; }

.header-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  color: var(--bav-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.header-search__submit:hover { color: var(--bav-accent-dark); }
.header-search__submit svg { width: 19px; height: 19px; }

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.header-action,
.menu-toggle,
.search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--bav-ink);
  background: transparent;
  border: 1px solid var(--bav-line);
  border-radius: 50%;
}

.header-action:hover,
.menu-toggle:hover,
.search-close:hover {
  color: var(--bav-white);
  background: var(--bav-accent);
  border-color: var(--bav-accent);
}

.header-action svg,
.menu-toggle svg,
.search-close svg { width: 19px; height: 19px; }

.menu-toggle { display: none; }

.primary-nav {
  position: relative;
  z-index: 40;
  border-top: 1px solid var(--bav-line);
  border-bottom: 1px solid var(--bav-line);
  background: var(--bav-white);
}

.primary-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-menu,
.primary-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.primary-menu > li { position: relative; }

.primary-menu > li > a {
  position: relative;
  display: block;
  padding: 17px 16px 15px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.primary-menu > li > a::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  content: "";
  background: var(--bav-accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.primary-menu > li:hover > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }

.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 220px;
  padding: 8px 0;
  visibility: hidden;
  opacity: 0;
  background: var(--bav-white);
  border-top: 3px solid var(--bav-accent);
  box-shadow: var(--bav-shadow);
  transform: translateY(8px);
  transition: .2s ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .86rem;
}

.primary-menu .sub-menu a:hover { background: var(--bav-soft); }

.breaking-bar {
  color: var(--bav-ink);
  background: var(--bav-soft);
  border-bottom: 1px solid var(--bav-line);
}

.breaking-bar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
}

.breaking-bar__label {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  color: var(--bav-white);
  background: var(--bav-accent-dark);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.breaking-bar__track {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.breaking-bar__items {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-left: 22px;
  animation: bav-ticker 34s linear infinite;
}

.breaking-bar__items:hover { animation-play-state: paused; }

.breaking-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}

.breaking-bar__item::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--bav-accent);
}

@keyframes bav-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-45%); }
}

.site-main { min-height: 55vh; }

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  margin-block: 24px;
  overflow: hidden;
  color: #8b9599;
  background: #f7f9f9;
  border: 1px dashed #ccd4d7;
  font-size: .66rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.ad-slot img { max-height: 120px; object-fit: contain; }

.homepage { padding-bottom: 56px; }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 24px;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--bav-line);
}

.lead-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  position: relative;
  min-width: 0;
}

.news-card__media {
  position: relative;
  overflow: hidden;
  background: #e7edef;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-card__media img { transform: scale(1.025); }

.news-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #8b969a;
  background:
    linear-gradient(135deg, transparent 48%, rgba(0,169,189,.14) 48% 52%, transparent 52%),
    var(--bav-soft);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-card--lead .news-card__media { aspect-ratio: 16 / 9; }
.news-card--side .news-card__media { aspect-ratio: 16 / 8.1; }
.news-card--grid .news-card__media { aspect-ratio: 16 / 10; }
.news-card--horizontal .news-card__media { aspect-ratio: 4 / 3; }

.news-card__content { padding-top: 13px; }

.news-card__category,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--bav-accent-dark);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.news-card__category::before,
.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--bav-accent);
}

.news-card__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.news-card--lead .news-card__title { font-size: clamp(2rem, 3vw, 3.25rem); }
.news-card--side .news-card__title { font-size: 1.2rem; }

.news-card__excerpt {
  margin: 10px 0 0;
  color: var(--bav-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.news-card__meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 11px;
  color: var(--bav-muted);
  font-size: .72rem;
}

.news-card__meta span + span::before,
.entry-meta span + span::before {
  margin-right: 12px;
  color: #bdc5c8;
  content: "•";
}

.home-content-grid,
.content-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 42px;
  align-items: start;
}

.home-content-grid { padding-top: 40px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bav-ink);
}

.section-heading__title {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.section-heading__title::after {
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 74px;
  height: 3px;
  content: "";
  background: var(--bav-accent);
}

.section-heading__link {
  color: var(--bav-muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 22px;
}

.category-block { margin-top: 48px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-block--feature .category-grid { grid-template-columns: 1.35fr 1fr 1fr; }

.sidebar {
  position: sticky;
  top: 24px;
}

.widget {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--bav-line);
}

.widget-title {
  margin: 0 0 17px;
  padding-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-weight: 600;
  border-bottom: 2px solid var(--bav-ink);
}

.widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bav-line);
  font-size: .87rem;
}

.widget li:last-child { border-bottom: 0; }

.ranked-list { counter-reset: bav-rank; }

.ranked-item {
  counter-increment: bav-rank;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bav-line);
}

.ranked-item::before {
  content: counter(bav-rank, decimal-leading-zero);
  color: var(--bav-accent);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1;
}

.ranked-item__title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.27;
}

.newsletter-box {
  padding: 23px;
  color: var(--bav-white);
  background: var(--bav-ink);
}

.newsletter-box__pixels {
  display: flex;
  gap: 4px;
  margin-bottom: 17px;
}

.newsletter-box__pixels i {
  width: 8px;
  height: 8px;
  background: var(--bav-accent);
}

.newsletter-box h3 {
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.newsletter-box p {
  margin: 0;
  color: #cbd4d6;
  font-size: .83rem;
}

.archive-header {
  margin-bottom: 30px;
  padding: 42px 0 23px;
  border-bottom: 2px solid var(--bav-ink);
}

.archive-title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.archive-description {
  max-width: 760px;
  margin-top: 10px;
  color: var(--bav-muted);
}

.archive-list { display: grid; gap: 24px; }

.news-card--horizontal {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bav-line);
}

.news-card--horizontal .news-card__content { padding-top: 0; }

.pagination { margin-top: 34px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--bav-line);
  font-size: .8rem;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--bav-white);
  background: var(--bav-accent-dark);
  border-color: var(--bav-accent-dark);
}

.single-wrap,
.page-wrap { padding: 36px 0 60px; }

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--bav-muted);
  font-size: .73rem;
}

.breadcrumbs span { margin: 0 7px; color: #a7b0b3; }

.entry-header { margin-bottom: 24px; }

.entry-title {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.page-title { font-size: clamp(2.2rem, 4.5vw, 4rem); }

.entry-deck {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--bav-muted);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.entry-featured {
  margin: 28px 0 8px;
  background: var(--bav-soft);
}

.entry-featured img { width: 100%; }

.featured-caption {
  padding-top: 8px;
  color: var(--bav-muted);
  font-size: .69rem;
}

.entry-content {
  color: #33393b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.8;
}

.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; margin-inline: calc(50% - 50vw); }

.entry-content p { margin: 0 0 1.35em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.6em 0 .55em;
  color: var(--bav-ink);
  line-height: 1.2;
}

.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.45rem; }

.entry-content a {
  color: var(--bav-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  padding: 3px 0 3px 22px;
  margin: 2em 0;
  color: var(--bav-ink);
  border-left: 4px solid var(--bav-accent);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
}

.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 10px; border: 1px solid var(--bav-line); }

.entry-footer {
  max-width: 760px;
  padding-top: 22px;
  margin-top: 30px;
  border-top: 1px solid var(--bav-line);
}

.tag-links { display: flex; flex-wrap: wrap; gap: 7px; }

.tag-links a {
  padding: 6px 10px;
  color: var(--bav-muted);
  background: var(--bav-soft);
  font-size: .73rem;
}

.author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  max-width: 760px;
  padding: 22px;
  margin-top: 30px;
  background: var(--bav-soft);
}

.author-box img { border-radius: 50%; }
.author-box h3 { margin: 0 0 4px; font-size: 1rem; }
.author-box p { margin: 0; color: var(--bav-muted); font-size: .83rem; }

.related-posts { max-width: 1040px; margin-top: 45px; }

.post-navigation {
  max-width: 1040px;
  padding: 24px 0;
  margin-top: 35px;
  border-top: 1px solid var(--bav-line);
  border-bottom: 1px solid var(--bav-line);
}

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-subtitle { display: block; color: var(--bav-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.post-navigation .nav-title { font-family: Georgia, serif; font-size: .92rem; font-weight: 600; }

.comments-area { max-width: 760px; margin-top: 42px; }
.comments-title { font-family: Georgia, serif; font-size: 1.5rem; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--bav-line); }
.comment-meta { font-size: .75rem; }
.comment-content { font-family: Georgia, serif; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: start center;
  padding-top: 14vh;
  background: rgba(255, 255, 255, .98);
}

.search-overlay.is-active { display: grid; }

.search-overlay__inner { width: min(calc(100% - 40px), 780px); }

.search-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.search-overlay__title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.search-form { display: flex; align-items: stretch; }

.search-field {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  color: var(--bav-ink);
  background: var(--bav-white);
  border: 1px solid #bcc6c9;
  border-radius: 0;
  outline: none;
}

.search-field:focus { border-color: var(--bav-accent); box-shadow: 0 0 0 3px rgba(0,169,189,.13); }

.search-submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  color: var(--bav-white);
  background: var(--bav-accent-dark);
  border: 0;
  border-radius: 0;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.search-submit:hover,
.button:hover { color: var(--bav-white); background: var(--bav-ink); }

.empty-state {
  padding: 42px;
  background: var(--bav-soft);
  text-align: center;
}

.empty-state h2 { margin-top: 0; font-family: Georgia, serif; font-size: 1.7rem; }
.empty-state p { color: var(--bav-muted); }

.not-found { padding: 80px 0; text-align: center; }
.not-found__code { color: var(--bav-accent); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.not-found h1 { margin: 8px 0; font-family: Georgia, serif; font-size: 2.4rem; }
.not-found p { margin-bottom: 24px; color: var(--bav-muted); }

.site-footer {
  margin-top: 30px;
  color: #cad2d5;
  background: #222729;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr .85fr;
  gap: 55px;
  padding: 52px 0 42px;
}

.footer-brand img {
  width: 280px;
  max-height: 94px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.footer-brand p { max-width: 330px; margin: 14px 0 0; font-size: .8rem; }

.footer-heading {
  margin: 0 0 15px;
  color: var(--bav-white);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .82rem;
}

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: var(--bav-white);
  border: 1px solid #4e585b;
  font-size: .7rem;
  text-transform: uppercase;
}

.footer-social a:hover { background: var(--bav-accent-dark); border-color: var(--bav-accent-dark); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 17px 0;
  border-top: 1px solid #3a4245;
  color: #98a3a6;
  font-size: .69rem;
}

.pixel-mark { display: inline-flex; align-items: end; gap: 3px; }
.pixel-mark i { width: 5px; height: 5px; background: var(--bav-accent); }
.pixel-mark i:nth-child(2) { transform: translateY(-6px); }
.pixel-mark i:nth-child(3) { transform: translateY(-12px); }

@media (max-width: 1020px) {
  .site-header__main { grid-template-columns: minmax(0, 1fr) auto; min-height: 104px; gap: 22px; }
  .custom-logo, .bundled-logo { max-width: 200px; max-height: 74px; }
  .header-search { width: min(300px, 38vw); }
  .menu-toggle { display: inline-flex; }
  .menu-open .menu-toggle { position: fixed; top: 52px; right: 22px; z-index: 9999; background: var(--bav-white); }
  .menu-open .menu-toggle svg { display: none; }
  .menu-open .menu-toggle::before { content: "×"; font-size: 1.75rem; line-height: 1; }
  .primary-nav { display: none; position: fixed; inset: 0; z-index: 9998; overflow-y: auto; padding: 110px 22px 35px; background: rgba(255,255,255,.99); }
  .primary-nav.is-active { display: block; }
  .primary-nav__inner { display: block; }
  .primary-menu { display: block; }
  .primary-menu > li > a { padding: 12px 4px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; text-transform: none; }
  .primary-menu > li > a::after { display: none; }
  .primary-menu .sub-menu { position: static; min-width: 0; padding: 0 0 8px 18px; visibility: visible; opacity: 1; border: 0; box-shadow: none; transform: none; }
  .primary-menu .sub-menu a { padding: 6px 4px; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .home-content-grid, .content-sidebar { grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; }
  .category-grid, .category-block--feature .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--bav-max)); }
  .site-topbar__links { display: none; }
  .site-topbar__inner { justify-content: center; }
  .site-header__main { min-height: 96px; gap: 14px; }
  .custom-logo, .bundled-logo { max-width: 170px; max-height: 64px; }
  .header-tools { gap: 8px; }
  .header-search { width: min(250px, 44vw); height: 40px; }
  .header-search__field { padding-left: 14px; font-size: .78rem; }
  .header-search__submit { width: 40px; min-width: 40px; }
  .header-actions { gap: 6px; }
  .header-action, .menu-toggle { width: 38px; height: 38px; }
  .social-action { display: none; }
  .breaking-bar__inner { grid-template-columns: auto minmax(0, 1fr); }
  .breaking-bar__label { padding: 0 10px; font-size: .6rem; }
  .lead-grid { padding-top: 18px; }
  .lead-side { grid-template-columns: 1fr; }
  .news-card--lead .news-card__title { font-size: 2rem; }
  .news-card--side { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--bav-line); }
  .news-card--side .news-card__media { aspect-ratio: 1 / 1; }
  .news-card--side .news-card__content { padding: 0; }
  .news-card--side .news-card__title { font-size: 1rem; }
  .news-card--side .news-card__excerpt { display: none; }
  .home-content-grid, .content-sidebar { grid-template-columns: 1fr; }
  .latest-grid, .category-grid, .category-block--feature .category-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .news-card--horizontal { grid-template-columns: 125px minmax(0, 1fr); gap: 14px; }
  .news-card--horizontal .news-card__title { font-size: 1.05rem; }
  .news-card--horizontal .news-card__excerpt { display: none; }
  .entry-title { font-size: 2.5rem; }
  .entry-deck { font-size: 1.08rem; }
  .entry-content { font-size: 1.05rem; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .site-footer__main { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
  .site-header__main {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 88px;
    gap: 10px;
  }
  .custom-logo, .bundled-logo { max-width: 142px; max-height: 56px; }
  .header-search { width: min(190px, 45vw); height: 38px; }
  .header-search__field { padding-left: 12px; font-size: .72rem; }
  .header-search__submit { width: 38px; min-width: 38px; }
  .social-action { display: none; }
}

@media (max-width: 430px) {
  .custom-logo, .bundled-logo { max-width: 128px; max-height: 50px; }
  .header-search { width: min(165px, 43vw); }
  .news-card--side { grid-template-columns: 105px minmax(0, 1fr); }
  .entry-title { font-size: 2.15rem; }
  .archive-title { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .breaking-bar__items { animation: none; }
}

@media print {
  .site-topbar, .primary-nav, .breaking-bar, .header-actions, .sidebar, .site-footer, .ad-slot, .post-navigation, .comments-area { display: none !important; }
  .site-header__main { min-height: 90px; }
  .content-sidebar { display: block; }
  .entry-content > * { max-width: 100%; }
}
