/* Barrio News 0.8.3 — compact editorial header, controlled mobile ribbon + configurable social links. */
.bn-site-header {
  position: relative;
  z-index: var(--bn-z-header);
  background: #fff;
}

/* --------------------------------------------------------------------------
   Primary desktop row
   -------------------------------------------------------------------------- */
.bn-header-main {
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.bn-header-main__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(150px, 188px) minmax(0, 1fr) minmax(260px, 350px);
  align-items: center;
  gap: clamp(22px, 2.25vw, 40px);
}

.bn-header-main__inner--with-socials {
  grid-template-columns: minmax(145px, 178px) minmax(0, 1fr) minmax(235px, 320px) auto;
  gap: clamp(16px, 1.65vw, 28px);
}

.bn-header-brand {
  min-width: 0;
  display: flex;
  align-items: center;
}

.bn-site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.bn-header-brand .bn-site-logo img,
.bn-header-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 176px;
  max-height: 68px;
  object-fit: contain;
}

.bn-header-primary {
  min-width: 0;
  align-self: stretch;
}

.bn-nav-list {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(18px, 1.55vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.bn-nav-list > li > a,
.bn-more-toggle {
  position: relative;
  min-height: 88px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #20242b;
  font-family: var(--bn-font-sans);
  font-size: 15px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.bn-nav-list > li > a::after,
.bn-more-toggle::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bn-color-accent-600);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity var(--bn-transition-fast), transform var(--bn-transition-fast);
}

.bn-nav-list > li > a:hover,
.bn-more-toggle:hover {
  color: var(--bn-color-primary-900);
}

.bn-nav-list > li > a:hover::after,
.bn-nav-list > li.current-menu-item > a::after,
.bn-nav-list > li.current-menu-parent > a::after,
.bn-nav-list > li.current-menu-ancestor > a::after,
.bn-nav-list > li.current-menu-item > .bn-more-toggle::after,
.bn-nav-list > li.current-menu-ancestor > .bn-more-toggle::after,
.bn-more-item.is-open > .bn-more-toggle::after {
  opacity: 1;
  transform: scaleX(1);
}

.bn-more-toggle { gap: 5px; }
.bn-more-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform var(--bn-transition-fast);
}
.bn-more-item.is-open .bn-more-toggle svg { transform: rotate(180deg); }

/* Standard submenu for a principal item. */
.bn-nav-list > li:not(.bn-more-item) > .sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: -16px;
  z-index: 35;
  min-width: 230px;
  display: grid;
  gap: 2px;
  margin: 0;
  border: 1px solid var(--bn-color-border);
  border-top: 3px solid var(--bn-color-accent-600);
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 39, .12);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--bn-transition-fast), transform var(--bn-transition-fast);
}

.bn-nav-list > li:not(.bn-more-item):hover > .sub-menu,
.bn-nav-list > li:not(.bn-more-item):focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bn-nav-list > li:not(.bn-more-item) > .sub-menu a,
.bn-more-menu > li > a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  padding: 8px 10px;
  color: #222a37;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.bn-nav-list > li:not(.bn-more-item) > .sub-menu a:hover,
.bn-nav-list > li:not(.bn-more-item) > .sub-menu li.current-menu-item > a,
.bn-more-menu > li > a:hover,
.bn-more-menu > li.current-menu-item > a,
.bn-more-menu > li.current-menu-parent > a,
.bn-more-menu > li.current-menu-ancestor > a {
  background: var(--bn-color-surface-soft);
  color: var(--bn-color-accent-600);
}

/* “Más” is deliberately wider: it absorbs every non-priority section. */
.bn-more-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: -14px;
  z-index: 40;
  width: min(620px, 84vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 4px 12px;
  margin: 0;
  border: 1px solid var(--bn-color-border);
  border-top: 3px solid var(--bn-color-accent-600);
  padding: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 24, 39, .14);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--bn-transition-fast), transform var(--bn-transition-fast);
}

.bn-more-item:hover > .bn-more-menu,
.bn-more-item:focus-within > .bn-more-menu,
.bn-more-item.is-open > .bn-more-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bn-more-menu > li {
  min-width: 0;
  display: block;
}

.bn-more-menu > li > .sub-menu {
  position: static;
  display: grid;
  gap: 1px;
  margin: -2px 0 6px;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.bn-more-menu > li > .sub-menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: var(--bn-color-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bn-header-inline-search {
  min-width: 0;
  height: 46px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  padding: 0 8px 0 13px;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 2px 7px rgba(16, 24, 39, .025);
}

.bn-header-inline-search:focus-within {
  border-color: #b7c7dc;
  box-shadow: 0 0 0 3px rgba(15, 96, 183, .08);
}

.bn-header-inline-search__icon {
  width: 19px;
  height: 19px;
}

.bn-header-inline-search input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bn-color-ink);
  font-size: 14px;
}

.bn-header-inline-search input::placeholder { color: #717780; }

.bn-header-inline-search button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7b8088;
  cursor: pointer;
}
.bn-header-inline-search button:hover { background: var(--bn-color-surface-soft); color: var(--bn-color-primary-900); }
.bn-header-inline-search button svg { width: 18px; height: 18px; }

/* Site social links. They only render when configured from /panel/. */
.bn-site-socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bn-site-socials a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #252a31;
  text-decoration: none;
  transition: color var(--bn-transition-fast), background var(--bn-transition-fast);
}

.bn-site-socials a:hover,
.bn-site-socials a:focus-visible {
  background: #f2f4f7;
  color: var(--bn-color-accent-600);
}

.bn-site-socials svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bn-header-socials {
  justify-content: flex-end;
  min-width: max-content;
}

/* --------------------------------------------------------------------------
   Secondary editorial row
   -------------------------------------------------------------------------- */
.bn-header-subnav {
  border-bottom: 1px solid var(--bn-color-border);
  background: #fff;
}

.bn-header-subnav__inner {
  min-height: 50px;
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.bn-header-home {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #8a9098;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.bn-header-home svg { width: 18px; height: 18px; }
.bn-header-home:hover,
.bn-header-home.is-current { color: var(--bn-color-primary-900); }

.bn-header-home.is-current::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--bn-color-accent-600);
  content: "";
}

.bn-header-secondary-nav {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.bn-header-secondary-nav::-webkit-scrollbar { display: none; }

.bn-utility-links {
  min-width: max-content;
  min-height: 50px;
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-utility-links li { display: flex; align-items: stretch; }
.bn-utility-links a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  color: #31353b;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}
.bn-utility-links a:hover { color: var(--bn-color-accent-600); }

.bn-header-tools {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  border-left: 1px solid #edf0f3;
  padding-left: 18px;
}
.bn-header-tools a {
  color: #525965;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bn-header-tools a:hover { color: var(--bn-color-primary-900); }

/* --------------------------------------------------------------------------
   Automatic latest-headline ticker
   -------------------------------------------------------------------------- */
.bn-headline-ticker {
  border-bottom: 1px solid #e8ebef;
  background: #fafbfc;
  overflow: hidden;
}

.bn-headline-ticker__inner {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.bn-headline-ticker__label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bn-color-primary-900);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bn-headline-ticker__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--bn-color-accent-600);
  box-shadow: 0 0 0 4px rgba(208, 14, 18, .08);
}

.bn-headline-ticker__viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.bn-headline-ticker__track {
  width: max-content;
  display: flex;
  will-change: transform;
  animation: bn-headline-ticker-scroll 72s linear infinite;
}

.bn-headline-ticker__group {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 0 0 auto;
  padding-right: 34px;
}

.bn-headline-ticker__group a {
  position: relative;
  display: inline-block;
  max-width: min(460px, 45vw);
  overflow: hidden;
  color: #333942;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bn-headline-ticker__group a::after {
  position: absolute;
  top: 50%;
  right: -19px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8bec6;
  content: "";
  transform: translateY(-50%);
}

.bn-headline-ticker__group a:hover { color: var(--bn-color-accent-600); }
.bn-headline-ticker__viewport:hover .bn-headline-ticker__track,
.bn-headline-ticker__viewport:focus-within .bn-headline-ticker__track { animation-play-state: paused; }

@keyframes bn-headline-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Advertising remains in normal flow and collapses when Core emits nothing. */
.bn-ad-slot {
  width: min(100% - (2 * var(--bn-gutter)), var(--bn-container-wide));
  margin-inline: auto;
}
.bn-ad-slot--BN-G01 { padding-block: 18px; }

/* --------------------------------------------------------------------------
   Mobile menu and search dialog
   -------------------------------------------------------------------------- */
.bn-mobile-menu-toggle,
.bn-mobile-search { display: none; }

.bn-overlay-open { overflow: hidden; }
.bn-mobile-menu,
.bn-search-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--bn-z-modal);
}
.admin-bar .bn-mobile-menu,
.admin-bar .bn-search-dialog { top: 32px; }
.bn-mobile-menu[hidden],
.bn-search-dialog[hidden] { display: none; }
.bn-mobile-menu__backdrop,
.bn-search-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 27, .58);
  opacity: 0;
  transition: opacity 180ms ease;
}
.bn-mobile-menu.is-open .bn-mobile-menu__backdrop,
.bn-search-dialog.is-open .bn-search-dialog__backdrop { opacity: 1; }

.bn-mobile-menu__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(94vw, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 40px;
  background: #fff;
  box-shadow: 20px 0 60px rgba(7, 20, 42, .14);
  transform: translateX(-100%);
  transition: transform 180ms ease;
}
.bn-mobile-menu.is-open .bn-mobile-menu__panel { transform: translateX(0); }

.bn-mobile-menu__head {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eef0f3;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}
.bn-mobile-menu__brand {
  min-width: 0;
  display: flex;
  align-items: center;
}
.bn-mobile-menu__brand .bn-site-logo,
.bn-mobile-menu__brand .custom-logo-link { display: inline-flex; align-items: center; }
.bn-mobile-menu__brand .bn-site-logo img,
.bn-mobile-menu__brand .custom-logo {
  width: auto;
  max-width: 132px;
  max-height: 46px;
  object-fit: contain;
}
.bn-mobile-menu__actions { display: flex; align-items: center; gap: 2px; }
.bn-mobile-menu__action {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #222831;
  cursor: pointer;
}
.bn-mobile-menu__action:hover,
.bn-mobile-menu__action:focus-visible { background: #f3f5f7; }
.bn-mobile-menu__action svg { width: 24px; height: 24px; }
.bn-mobile-menu__close svg { width: 27px; height: 27px; }

.bn-mobile-menu__ribbon {
  min-height: 52px;
  display: flex;
  align-items: stretch;
  gap: 25px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #e8ebef;
  scrollbar-width: none;
}
.bn-mobile-menu__ribbon::-webkit-scrollbar { display: none; }
.bn-mobile-menu__ribbon a {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #30343a;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}
.bn-mobile-menu__ribbon a[aria-current="page"] { color: var(--bn-color-primary-900); }
.bn-mobile-menu__ribbon a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--bn-color-accent-600);
  content: "";
}

.bn-mobile-menu__section { padding-top: 26px; }
.bn-mobile-menu__section + .bn-mobile-menu__section { margin-top: 6px; }
.bn-mobile-menu__section h2 {
  margin: 0 0 14px;
  color: #222831;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}
.bn-mobile-menu__search-section { padding-top: 22px; }
.bn-mobile-menu__search {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  align-items: center;
  margin: 0;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.bn-mobile-menu__search:focus-within {
  border-color: #b7c7dc;
  box-shadow: 0 0 0 3px rgba(15, 96, 183, .08);
}
.bn-mobile-menu__search-icon {
  display: grid;
  place-items: center;
  color: #8a9098;
}
.bn-mobile-menu__search-icon svg { width: 19px; height: 19px; }
.bn-mobile-menu__search input {
  min-width: 0;
  min-height: 48px;
  border: 0;
  padding: 0;
  outline: none;
  background: transparent;
  color: var(--bn-color-ink);
  font-size: 16px;
}
.bn-mobile-menu__search input::placeholder { color: #747b84; }
.bn-mobile-menu__search button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #858c95;
  cursor: pointer;
}
.bn-mobile-menu__search button:hover { color: var(--bn-color-primary-900); background: #f5f7f9; }
.bn-mobile-menu__search button svg { width: 19px; height: 19px; }

.bn-mobile-quick-list,
.bn-mobile-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e8ebef;
}
.bn-mobile-quick-list li,
.bn-mobile-nav-list li { min-width: 0; }
.bn-mobile-quick-list a,
.bn-mobile-nav-list a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #171a1f;
  font-size: 14px;
  font-weight: 740;
  line-height: 1.25;
  text-decoration: none;
}
.bn-mobile-quick-list a:hover,
.bn-mobile-nav-list a:hover,
.bn-mobile-quick-list a[aria-current="page"],
.bn-mobile-nav-list li.current-menu-item > a,
.bn-mobile-nav-list li.current-menu-ancestor > a { color: var(--bn-color-accent-600); }

.bn-mobile-menu__social-section { padding-top: 22px; }
.bn-mobile-socials {
  min-height: 48px;
  justify-content: flex-start;
  gap: 8px;
  border-top: 1px solid #e8ebef;
  padding-top: 12px;
}
.bn-mobile-socials a {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid #e4e7eb;
  background: #fff;
}
.bn-mobile-socials svg { width: 19px; height: 19px; }

.bn-mobile-menu__top { padding-top: 30px; }
.bn-mobile-menu__top::before {
  width: 100%;
  height: 5px;
  display: block;
  margin: 0 0 24px;
  background: repeating-linear-gradient(100deg, var(--bn-color-accent-600) 0 34px, transparent 34px 42px);
  opacity: .9;
  content: "";
}
.bn-mobile-menu__top h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 820;
}
.bn-mobile-menu__stories { display: grid; gap: 16px; }
.bn-mobile-menu__story {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--bn-color-ink);
  text-decoration: none;
}
.bn-mobile-menu__story:not(:has(.bn-mobile-menu__story-media)) { grid-template-columns: 1fr; }
.bn-mobile-menu__story-media {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f3f5;
}
.bn-mobile-menu__story-media img { width: 100%; height: 100%; object-fit: cover; }
.bn-mobile-menu__story-copy { min-width: 0; display: grid; gap: 4px; }
.bn-mobile-menu__story-copy small {
  color: var(--bn-color-accent-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bn-mobile-menu__story-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #171a1f;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bn-search-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bn-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid var(--bn-color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--bn-color-ink);
  cursor: pointer;
}
.bn-icon-button svg { width: 22px; height: 22px; }

.bn-search-dialog {
  display: grid;
  place-items: start center;
  padding: clamp(72px, 12vh, 140px) var(--bn-gutter) 32px;
}
.bn-search-dialog__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  border-top: 4px solid var(--bn-color-accent-600);
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 24px 80px rgba(5, 13, 27, .22);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.bn-search-dialog.is-open .bn-search-dialog__panel { opacity: 1; transform: translateY(0); }
.bn-search-dialog__eyebrow {
  margin: 0 0 4px;
  color: var(--bn-color-accent-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bn-search-dialog h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.bn-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  margin-top: 34px;
  border-bottom: 2px solid var(--bn-color-ink);
}
.bn-search-form input {
  min-width: 0;
  min-height: 62px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--bn-color-ink);
  font-size: clamp(18px, 3vw, 28px);
  outline: 0;
}
.bn-search-form button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 4px 0 18px;
  background: transparent;
  color: var(--bn-color-primary-900);
  font-weight: 800;
  cursor: pointer;
}
.bn-search-form button svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Responsive composition
   -------------------------------------------------------------------------- */
@media (max-width: 1220px) and (min-width: 1100px) {
  .bn-header-main__inner {
    grid-template-columns: 145px minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .bn-header-main__inner--with-socials {
    grid-template-columns: 132px minmax(0, 1fr) 210px auto;
    gap: 13px;
  }
  .bn-header-main__inner--with-socials .bn-nav-list { gap: 11px; }
  .bn-header-main__inner--with-socials .bn-site-socials { gap: 1px; }
  .bn-header-main__inner--with-socials .bn-site-socials a { width: 32px; height: 32px; flex-basis: 32px; }
  .bn-header-brand .bn-site-logo img,
  .bn-header-brand .custom-logo { max-width: 142px; max-height: 58px; }
  .bn-nav-list { gap: 14px; }
  .bn-nav-list > li > a,
  .bn-more-toggle { font-size: 13px; }
  .bn-header-inline-search { height: 44px; }
}

@media (max-width: 1099px) {
  .bn-header-main__inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 12px;
  }

  .bn-header-primary,
  .bn-header-inline-search,
  .bn-header-socials,
  .bn-header-subnav { display: none; }

  .bn-mobile-menu-toggle,
  .bn-mobile-search {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--bn-color-primary-900);
    cursor: pointer;
  }

  .bn-menu-bars { width: 23px; display: grid; gap: 5px; }
  .bn-menu-bars span { height: 2px; background: currentColor; }
  .bn-mobile-search svg { width: 23px; height: 23px; }

  .bn-header-brand {
    min-width: 0;
    justify-content: center;
  }
  .bn-header-brand .bn-site-logo,
  .bn-header-brand .custom-logo-link { justify-content: center; }
  .bn-header-brand .bn-site-logo img,
  .bn-header-brand .custom-logo {
    max-width: min(100%, 205px);
    max-height: 58px;
  }

  .bn-headline-ticker__inner { gap: 14px; }
  .bn-headline-ticker__group a { max-width: 70vw; }
}

@media (max-width: 639px) {
  .bn-header-main__inner {
    min-height: 68px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }
  .bn-header-brand .bn-site-logo img,
  .bn-header-brand .custom-logo { max-width: min(100%, 174px); max-height: 51px; }

  .bn-headline-ticker__inner {
    width: 100%;
    min-height: 42px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding-inline: 14px;
  }
  .bn-headline-ticker__label { min-height: 42px; font-size: 11px; }
  .bn-headline-ticker__dot { width: 7px; height: 7px; flex-basis: 7px; }
  .bn-headline-ticker__group { gap: 28px; padding-right: 28px; }
  .bn-headline-ticker__group a { max-width: 76vw; font-size: 13px; }

  .bn-mobile-menu__panel { width: 100%; max-width: none; box-shadow: none; }
  .bn-mobile-menu__backdrop { display: none; }
  .bn-search-dialog { padding-top: 34px; }
  .bn-search-dialog__panel { padding: 24px 20px; }
  .bn-search-form { grid-template-columns: 1fr; border-bottom: 0; gap: 12px; }
  .bn-search-form input { border-bottom: 2px solid var(--bn-color-ink); font-size: 18px; }
  .bn-search-form button {
    min-height: 48px;
    justify-content: center;
    border-radius: 4px;
    background: var(--bn-color-primary-900);
    color: #fff;
    padding-inline: 16px;
  }
}


@media (max-width: 782px) {
  .admin-bar .bn-mobile-menu,
  .admin-bar .bn-search-dialog { top: 46px; }
}

@media (max-width: 339px) {
  .bn-mobile-quick-list,
  .bn-mobile-nav-list { grid-template-columns: 1fr; }
  .bn-mobile-menu__story { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .bn-headline-ticker__viewport {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .bn-headline-ticker__track { animation: none; }
  .bn-headline-ticker__group[aria-hidden="true"] { display: none; }
}
