/* birdnet theme — global layer on top of classic 2.2.0 (loaded after theme.css).
   Large, calm, obvious: 20px body text, 56px controls, 7:1 text contrast, no hover-only UI.
   Tokens and utility classes are the shared contract in D:\birdnetting\theme\CONTRACT.md. */

:root {
  --bn-ink: #1B1B18;
  --bn-muted: #46443D;
  --bn-paper: #F5F3EC;
  --bn-soft: #D9D5CA;
  --bn-edge: #6F6C63;
  --bn-green: #1F5F3A;
  --bn-green-dark: #123D24;
  --bn-green-tint: #E6F0E8;
  --bn-help: #8F360A;
  --bn-help-tint: #FFF2E3;
  --bn-radius: 10px;
  --bn-font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base size + text-size control (html[data-bn-scale]) ---------- */
html { font-size: 20px; }
html[data-bn-scale="125"] { font-size: 25px; }
html[data-bn-scale="150"] { font-size: 30px; }
@media (max-width: 767px) {
  html { font-size: 18px; }
  html[data-bn-scale="125"] { font-size: 22.5px; }
  html[data-bn-scale="150"] { font-size: 27px; }
}

body {
  font-family: var(--bn-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bn-ink);
  background: #fff;
}
#wrapper { background: #fff; padding-top: 1rem; }
p, li, td, th, label, .form-control, .btn, input, select, textarea { font-size: 1rem; }
small, .small, .text-muted, .bn-note { font-size: 0.85rem; color: var(--bn-muted); }
.text-muted { color: var(--bn-muted) !important; }
h1, .h1 { font-size: 1.9rem; line-height: 1.2; text-transform: none; color: var(--bn-ink); font-weight: 700; }
h2, .h2 { font-size: 1.5rem; line-height: 1.25; text-transform: none; color: var(--bn-ink); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; line-height: 1.3; text-transform: none; color: var(--bn-ink); font-weight: 700; }
h4, h5, h6, .h4, .h5, .h6 { font-size: 1.05rem; text-transform: none; color: var(--bn-ink); }
/* classic shouts in ALL CAPS in many places — seniors read sentence case faster */
.text-uppercase, .h1, .h2, .h3, .h4, .products-section-title, .block-contact-title, .footer-container h3,
.cart-summary-line .label, .checkout-step .step-title, .product-title, .page-header h1 { text-transform: none !important; }

a { color: var(--bn-green); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--bn-green-dark); }
.footer-container a, #header a, .product-miniature a, .breadcrumb a { text-decoration: none; }

/* visible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--bn-ink) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

/* ---------- utilities (contract) ---------- */
.bn-container { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; }
.bn-section { padding: 2.2rem 0; }
.bn-section--paper { background: var(--bn-paper); }
.bn-grid-2, .bn-grid-3 { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .bn-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bn-card { background: #fff; border: 2px solid var(--bn-soft); border-radius: var(--bn-radius); padding: 1.1rem 1.2rem; }
.bn-help-box { background: var(--bn-help-tint); border: 2px solid var(--bn-help); border-radius: var(--bn-radius); padding: 1rem 1.2rem; color: var(--bn-ink); }
.bn-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 56px; padding: 0.4em 1.2em; border-radius: var(--bn-radius);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none !important; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s;
}
.bn-btn svg, .bn-btn img { width: 1.3em; height: 1.3em; flex: none; }
.bn-btn--primary { background: var(--bn-green); color: #fff !important; }
.bn-btn--primary:hover, .bn-btn--primary:focus { background: var(--bn-green-dark); color: #fff !important; }
.bn-btn--outline { background: #fff; color: var(--bn-green) !important; border-color: var(--bn-green); }
.bn-btn--outline:hover, .bn-btn--outline:focus { background: var(--bn-green-tint); color: var(--bn-green-dark) !important; }
.bn-btn--help { background: var(--bn-help-tint); color: var(--bn-ink) !important; border-color: var(--bn-help); }
.bn-btn--help:hover, .bn-btn--help:focus { background: #fde5c8; }
.bn-btn--block { display: flex; width: 100%; }

.bn-table { width: 100%; border-collapse: collapse; background: #fff; }
.bn-table th, .bn-table td { text-align: left; padding: 0.6em 0.7em; border-bottom: 2px solid var(--bn-soft); vertical-align: middle; }
.bn-table th { background: var(--bn-paper); font-weight: 700; }

.bn-num {
  width: 5em; min-height: 56px; font: inherit; font-size: 1.2rem; font-weight: 700; text-align: center;
  border: 2px solid var(--bn-edge); border-radius: var(--bn-radius); background: #fff; color: var(--bn-ink);
}

/* ---------- classic components: bigger, clearer ---------- */
.btn { min-height: 56px; padding: 0.5em 1.2em; border-radius: var(--bn-radius); font-weight: 700; text-transform: none; }
.btn-primary { background: var(--bn-green); border-color: var(--bn-green); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.disabled:hover { background: var(--bn-green-dark); border-color: var(--bn-green-dark); color: #fff; }
.btn-secondary, .btn-tertiary { background: #fff; color: var(--bn-green); border: 2px solid var(--bn-green); }
.btn-secondary:hover, .btn-tertiary:hover { background: var(--bn-green-tint); color: var(--bn-green-dark); }
.btn.disabled, .btn:disabled { opacity: .55; }

.form-control, .form-control-select, input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="search"], select, textarea {
  min-height: 52px; font-size: 1rem; color: var(--bn-ink); background: #fff;
  border: 2px solid var(--bn-edge); border-radius: 8px; padding: 0.4em 0.7em;
}
.form-control:focus { border-color: var(--bn-ink); }
.form-control-label, label { font-weight: 700; color: var(--bn-ink); text-align: left; }
.form-control-comment, .form-text { font-size: 0.85rem; color: var(--bn-muted); }
.alert { font-size: 1rem; border-width: 2px; border-radius: var(--bn-radius); }

/* radios and checkboxes large enough to hit */
.custom-radio, .custom-checkbox input[type="checkbox"] + span { width: 26px; height: 26px; }
.custom-radio input[type="radio"] { width: 26px; height: 26px; }
.custom-radio input[type="radio"]:checked + span { width: 14px; height: 14px; top: 4px; left: 4px; }
.custom-checkbox input[type="checkbox"] { width: 26px; height: 26px; }
.custom-checkbox input[type="checkbox"] + span .checkbox-checked { font-size: 1.4rem; }

/* prices */
.product-price, .current-price, .price, .product-prices .current-price-value { color: var(--bn-ink); font-weight: 700; }
.product-prices .current-price-value { font-size: 2rem; }
.product-miniature .price { font-size: 1.25rem; }
.tax-shipping-delivery-label { font-size: 0.85rem; color: var(--bn-muted); }

/* breadcrumbs */
.breadcrumb { background: transparent; padding: 0.4rem 0; font-size: 0.9rem; }
.breadcrumb li a, .breadcrumb li { color: var(--bn-muted); }


/* ---------- header ---------- */
.bn-topbar { background: var(--bn-paper); border-bottom: 2px solid var(--bn-soft); font-size: 0.85rem; color: var(--bn-muted); }
.bn-topbar .bn-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1.2rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.bn-topbar__facts { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.bn-topbar__facts strong { color: var(--bn-ink); }
.bn-textsize { display: flex; align-items: center; gap: 0.4rem; }
.bn-textsize button {
  min-width: 44px; min-height: 44px; padding: 0 0.4em; border: 2px solid var(--bn-edge); border-radius: 8px;
  background: #fff; color: var(--bn-ink); font: inherit; font-weight: 700; cursor: pointer; line-height: 1;
}
.bn-textsize button[aria-pressed="true"] { background: var(--bn-ink); border-color: var(--bn-ink); color: #fff; }
.bn-textsize .bn-ts-1 { font-size: 0.85rem; } .bn-textsize .bn-ts-2 { font-size: 1.05rem; } .bn-textsize .bn-ts-3 { font-size: 1.25rem; }

#header { background: #fff; box-shadow: none; border-bottom: 0; }
#header .header-nav { border-bottom: 0; max-height: none; background: #fff; }
#header .user-info, #header .blockcart, #header .header-nav #contact-link { font-size: 0.9rem; }
#header .blockcart { background: var(--bn-green-tint); border-radius: 8px; padding: 0.3rem 0.8rem; height: auto; }
#header .blockcart.active { background: var(--bn-green); }
#header .blockcart.active a, #header .blockcart.active .material-icons { color: #fff; }
#header .cart-preview .shopping-cart, #header .user-info .material-icons { color: var(--bn-green); }
#header .header-nav .material-icons, #header .bn-header-account .material-icons { font-size: 1.5rem; }
/* desktop: sign in + cart moved into the logo row, so the old nav strip is empty */
@media (min-width: 768px) { #header .header-nav { display: none; } }
#header .bn-header-account { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; margin-left: 0.4rem; }
#header .bn-header-account > div, #header .bn-header-account .user-info { float: none; margin: 0; }
#header .bn-header-account .user-info a { white-space: nowrap; }

.bn-phone {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem;
  background: var(--bn-help-tint); border: 2px solid var(--bn-help); border-radius: 12px;
  color: var(--bn-ink) !important; text-decoration: none !important; line-height: 1.15;
}
.bn-phone img, .bn-phone svg { width: 1.6rem; height: 1.6rem; color: var(--bn-help); flex: none; }
.bn-phone__label { display: block; font-size: 0.8rem; }
.bn-phone__number { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }
.bn-phone-mobile { display: none; }
@media (max-width: 767px) {
  .bn-phone-mobile {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px;
    background: var(--bn-help-tint); border-top: 2px solid var(--bn-help); border-bottom: 2px solid var(--bn-help);
    color: var(--bn-ink) !important; font-weight: 700; text-decoration: none !important;
  }
  .bn-phone-mobile img { width: 1.4rem; height: 1.4rem; }
}

/* header row 1: logo | search | big phone | sign in + cart ; row 2: full-width green menu bar.
   .header-top-right (menu + search from displayTop) is flattened with display:contents so its children
   can be placed in the same flex row as the logo and the phone. */
#header .header-top { padding: 0.8rem 0 0; }
#header .header-top .bn-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem; margin: 0; }
#header .header-top #_desktop_logo { order: -1; flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
@media (min-width: 768px) { #header .header-top #_desktop_logo { margin-left: -15px; } }
#header .header-top .logo { max-height: 84px; max-width: 290px; width: auto; height: auto; }
@media (min-width: 768px) {
  #header .header-top .header-top-right { display: contents; }
  #header .header-top #search_widget { order: 2; flex: 1 1 220px; float: none; width: auto; max-width: 520px; min-width: 0; margin: 0; }
  #header .header-top .bn-header-phone { order: 3; flex: 0 0 auto; margin-left: auto; margin-right: -15px; }
  /* category bar: equal cells in a grid (6 per row on desktop, fewer on smaller screens / bigger text),
     thin dark-green lines between cells, Bird Netting highlighted as the main product */
  #header .header-top #_desktop_top_menu {
    order: 5; flex: 1 1 100%; width: auto; margin: 0.4rem -15px 0; padding: 0;
    background: var(--bn-green-dark); border-radius: 10px; overflow: visible;
  }
  #header .header-top #_desktop_top_menu .top-menu[data-depth="0"] {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 2px;
  }
  #header .top-menu[data-depth="0"] > li { float: none; display: block; background: var(--bn-green); }
  #header .top-menu[data-depth="0"] > li:first-child { border-radius: 8px 0 0 0; }
  #header .top-menu[data-depth="0"] > li.bn-menu-info { display: none; }
  #header .top-menu a[data-depth="0"] {
    display: flex; align-items: center; justify-content: center; height: 100%; min-height: 3rem;
    padding: 0.45rem 0.6rem; text-align: center; line-height: 1.2; color: #fff; border-radius: 0;
  }
  #header .top-menu a[data-depth="0"]:hover, #header .top-menu a[data-depth="0"]:focus,
  #header .top-menu > li.current > a[data-depth="0"] { color: #fff; background: var(--bn-green-dark); }
  #header .top-menu[data-depth="0"] > li.bn-menu-main { background: #fff; }
  #header .top-menu[data-depth="0"] > li.bn-menu-main > a[data-depth="0"] { color: var(--bn-green-dark); font-size: 1.1rem; }
  #header .top-menu[data-depth="0"] > li.bn-menu-main > a[data-depth="0"]:hover,
  #header .top-menu[data-depth="0"] > li.bn-menu-main > a[data-depth="0"]:focus { color: var(--bn-green-dark); background: var(--bn-green-tint); }
}
@media (min-width: 992px) {
  #header .header-top #_desktop_top_menu .top-menu[data-depth="0"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html[data-bn-scale="125"] #header .header-top #_desktop_top_menu .top-menu[data-depth="0"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-bn-scale="150"] #header .header-top #_desktop_top_menu .top-menu[data-depth="0"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 991px) {
  html[data-bn-scale="150"] #header .header-top #_desktop_top_menu .top-menu[data-depth="0"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* top bar info links (Home, T&C, FAQ, Contact us — moved out of the green bar) */
.bn-topbar__links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-size: 0.9rem; }
.bn-topbar__links a { color: var(--bn-ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-topbar__links a:hover, .bn-topbar__links a:focus { color: var(--bn-green); }
/* the small "Call us" text from ps_contactinfo duplicates the big phone */
#header .header-nav #contact-link, #header .header-nav #_desktop_contact_link { display: none; }

/* main menu text */
#header .top-menu a[data-depth="0"] { font-size: 1rem; font-weight: 700; text-transform: none; }
#header .top-menu .sub-menu a { font-size: 0.95rem; color: var(--bn-ink); }

/* search */
#search_widget form input[type="text"] { min-height: 52px; font-size: 1rem; padding-left: 2.8rem; border: 2px solid var(--bn-edge); border-radius: 10px; }
#search_widget form i { padding: 0.75rem 0.6rem; font-size: 1.4rem; }

/* ---------- footer ---------- */
.footer-container { background: var(--bn-ink); color: #fff; margin-top: 2rem; padding-top: 2rem; box-shadow: none; }
.footer-container, .footer-container a, .footer-container li a, .footer-container p, .footer-container .h3, .footer-container h3, .footer-container .h4 { color: #fff !important; }
.footer-container li { margin-bottom: 0.5rem; }
.footer-container li a { font-size: 1rem; }
.footer-container .links .collapse { display: block; }
.footer-container .block-contact { color: #fff; }
/* newsletter: one full-width paper band, aligned with the page content */
#footer .block_newsletter {
  float: none; flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0 0 1rem; left: auto; right: auto;
  padding: 1.5rem 1.5rem 1rem; background: var(--bn-paper); border-radius: 12px;
}
#footer .block_newsletter > .row { margin: 0; align-items: center; }
#footer .block_newsletter p#block-newsletter-label { font-size: 1.2rem; font-weight: 700; color: var(--bn-ink); }
/* the shop has no social links: the empty social block must not draw a box */
#footer .block-social { background: none; }

/* ---------- product cards ---------- */
.product-miniature .thumbnail-container { box-shadow: none; border: 2px solid var(--bn-soft); border-radius: var(--bn-radius); }
.product-miniature .product-title a { font-size: 1rem; color: var(--bn-ink); white-space: normal; text-transform: none; }
.product-flag { font-size: 0.85rem; text-transform: none; }

/* ---------- checkout ---------- */
body#checkout section.checkout-step .step-title { font-size: 1.35rem; }
body#checkout section.checkout-step { padding: 0.8rem 1rem; }
body#checkout .delivery-option { background: #fff; border: 2px solid var(--bn-soft); border-radius: var(--bn-radius); margin-bottom: 0.6rem; padding: 0.6rem 0.4rem; }
body#checkout .delivery-option label, body#checkout .carrier-name, body#checkout .carrier-delay, body#checkout .carrier-price { font-size: 1rem; color: var(--bn-ink); }
body#checkout .payment-option label { font-size: 1.05rem; }
body#checkout #payment-confirmation button { width: 100%; font-size: 1.1rem; }
.cart-summary-line { font-size: 1rem; }
.cart-summary-totals .cart-total .label, .cart-summary-totals .cart-total .value { font-size: 1.2rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .bn-topbar, .bn-phone-mobile, #header .header-nav, #_desktop_top_menu, .footer-container { display: none !important; }
}

/* home category tiles (classy_homecategory, 6 per row): at larger text sizes use 3 per row so long words fit */
.box-category-home .box_category_home_content_title { max-width: 100%; overflow-wrap: break-word; }
@media (min-width: 768px) {
  html[data-bn-scale="125"] .box-category-home > .col-md-2,
  html[data-bn-scale="150"] .box-category-home > .col-md-2 { flex: 0 0 33.333%; max-width: 33.333%; }
}


/* top bar: facts left; text size + sign in + cart right */
/* desktop top bar = 2 rows: the 3 facts spread across the full width; then text size (left) and sign in + cart (right) */
@media (min-width: 768px) {
  .bn-topbar__facts { flex: 1 1 100%; justify-content: space-between; }
  .bn-topbar .bn-textsize { margin-right: auto; }
}
.bn-topbar .bn-header-account { font-size: 0.9rem; }
.bn-topbar .bn-header-account a { color: var(--bn-ink); }
/* cart button: shop green instead of classic blue (mobile + desktop) */
#header .cart-preview.active, #header .header-nav .cart-preview.active, #header .blockcart.active { background: var(--bn-green); }
#header .cart-preview.active a, #header .header-nav .cart-preview.active a, #header .header-nav .cart-preview.active i { color: #fff; }
/* mobile: the three facts are on the home page; keep the bar to one line with the text size buttons */
@media (max-width: 767px) {
  .bn-topbar__facts { display: none; }
  .bn-topbar .bn-container { justify-content: flex-end; }
}

/* top bar account area: divider line, outlined account button, small sign-out link, solid cart button */
@media (min-width: 768px) {
  .bn-topbar .bn-header-account { gap: 0.9rem; padding-left: 1.1rem; margin-left: 0.4rem; border-left: 2px solid var(--bn-soft); }
  .bn-topbar .user-info { display: flex; align-items: center; gap: 0.8rem; }
  .bn-topbar .bn-account-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.3rem 0.9rem;
    background: #fff; border: 2px solid var(--bn-green); border-radius: 8px;
    color: var(--bn-green-dark) !important; font-weight: 700; text-decoration: none !important;
  }
  .bn-topbar .bn-account-btn:hover, .bn-topbar .bn-account-btn:focus { background: var(--bn-green-tint); }
  .bn-topbar .bn-account-btn .material-icons { color: var(--bn-green) !important; font-size: 1.4rem; }
  .bn-topbar .bn-signout { color: var(--bn-muted) !important; font-size: 0.85rem; text-decoration: underline !important; }
  .bn-topbar .blockcart { min-height: 44px; display: flex; align-items: center; padding: 0.3rem 1rem; border-radius: 8px; }
  .bn-topbar .blockcart a, .bn-topbar .blockcart .header { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
}
/* menu: the page you are on gets a light tint + underline; Bird Netting stays readable when current */
@media (min-width: 768px) {
  #header .top-menu > li.current > a[data-depth="0"] { background: var(--bn-green-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
  #header .top-menu[data-depth="0"] > li.bn-menu-main.current > a[data-depth="0"] { background: var(--bn-green-tint); color: var(--bn-green-dark); }
}

/* top bar keeps a fixed size at every text size (the A / A+ / A++ setting enlarges the page, not this utility bar),
   so it always stays two tidy rows on desktop */
.bn-topbar { font-size: 15px; }
.bn-topbar .bn-textsize span { font-size: 15px; }
.bn-topbar .bn-textsize button { min-width: 38px; height: 34px; padding: 0 8px; }
.bn-topbar .bn-textsize .bn-ts-1 { font-size: 14px; } .bn-topbar .bn-textsize .bn-ts-2 { font-size: 17px; } .bn-topbar .bn-textsize .bn-ts-3 { font-size: 20px; }
.bn-topbar__links { font-size: 15px; }
.bn-topbar .bn-header-account, .bn-topbar .user-info, .bn-topbar .blockcart { font-size: 16px; }
@media (min-width: 768px) {
  .bn-topbar .bn-account-btn, .bn-topbar .blockcart { min-height: 40px; }
  .bn-topbar .bn-account-btn .material-icons, .bn-topbar .blockcart .material-icons { font-size: 22px; }
  .bn-topbar .bn-signout { font-size: 14px; }
}
.bn-topbar .bn-topbar__facts li, .bn-topbar .bn-topbar__facts strong { font-size: 15px; }

/* A++ (150 %): header = logo + phone, then a full-width search row; side columns stack above the content
   (a 25 % column is too narrow for big text) and the category list flows in columns */
@media (min-width: 768px) {
  html[data-bn-scale="150"] #header .header-top #search_widget { order: 4; flex: 1 1 100%; max-width: none; }
  /* bigger text: the left navigation stays a sidebar, just a little wider */
  html[data-bn-scale="125"] #left-column, html[data-bn-scale="150"] #left-column { width: 30%; max-width: 30%; flex: 0 0 30%; }
  html[data-bn-scale="125"] #content-wrapper.left-column, html[data-bn-scale="150"] #content-wrapper.left-column { width: 70%; max-width: 70%; flex: 0 0 70%; }
}
/* soft line between the facts row and the controls row */
@media (min-width: 768px) {
  .bn-topbar .bn-topbar__facts { padding-bottom: 0.35rem; margin-bottom: 0.15rem; border-bottom: 1px solid var(--bn-soft); }
}

/* desktop top bar as a 3-column grid so each fact sits above its group:
   [fact 1 | fact 2 | fact 3] over [text size | info links | account + cart], with a soft line between the rows */
@media (min-width: 768px) {
  .bn-topbar .bn-container { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 0; row-gap: 0.35rem; align-items: center; }
  .bn-topbar .bn-topbar__facts { display: contents; }
  .bn-topbar .bn-topbar__facts li { padding: 0.15rem 0 0.4rem; border-bottom: 1px solid var(--bn-soft); }
  .bn-topbar .bn-topbar__facts li:nth-child(1) { justify-self: stretch; text-align: left; }
  .bn-topbar .bn-topbar__facts li:nth-child(2) { justify-self: stretch; text-align: center; padding-left: 1.5rem; padding-right: 1.5rem; }
  .bn-topbar .bn-topbar__facts li:nth-child(3) { justify-self: stretch; text-align: right; }
  .bn-topbar .bn-textsize { grid-column: 1; justify-self: start; margin: 0; }
  .bn-topbar .bn-topbar__links { grid-column: 2; justify-self: center; }
  .bn-topbar .bn-header-account { grid-column: 3; justify-self: end; }
  .bn-topbar .bn-topbar__facts a { color: var(--bn-green-dark); font-weight: 700; text-decoration: underline; }
}

/* menu dropdown: opens right under the item you point at; up to 7 rows, then more columns to the side */
@media (min-width: 768px) {
  #header .top-menu[data-depth="0"] > li { position: relative; }
  #header #_desktop_top_menu .top-menu .sub-menu {
    position: absolute; top: 100% !important; left: 0 !important; right: auto; width: auto !important; min-width: 100% !important;
    margin: 0 !important; padding: 0.5rem; background: #fff; border: 2px solid var(--bn-green); border-top: 0;
    border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18); z-index: 40;
  }
  #header #_desktop_top_menu .top-menu .sub-menu.bn-sub-right { left: auto !important; right: 0 !important; }
  #header #_desktop_top_menu .sub-menu .top-menu[data-depth="1"] {
    display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; grid-auto-columns: minmax(10rem, max-content);
    gap: 0 0.4rem; margin: 0; padding: 0;
  }
  #header #_desktop_top_menu .sub-menu .top-menu[data-depth="1"] > li { float: none; display: block; margin: 0; padding: 0; background: none; }
  #header #_desktop_top_menu .sub-menu a[data-depth="1"] {
    display: block; padding: 0.45rem 0.75rem; border-radius: 6px; white-space: nowrap;
    font-size: 0.95rem; font-weight: 600; text-transform: none; color: var(--bn-ink);
  }
  #header #_desktop_top_menu .sub-menu a[data-depth="1"]:hover, #header #_desktop_top_menu .sub-menu a[data-depth="1"]:focus { background: var(--bn-green-tint); color: var(--bn-green-dark); }
  #header #_desktop_top_menu .sub-menu .top-menu[data-depth="2"] { display: none; }
}

/* "Price beat 5%" stamp in the header row (between search and phone); wide screens only */
.bn-header-pricebeat { display: none; }
@media (min-width: 1200px) {
  #header .header-top .bn-header-pricebeat { display: block; order: 3; flex: 0 0 auto; margin-left: auto; line-height: 0; }
  #header .header-top .bn-header-pricebeat img { height: 78px; width: auto; transform: rotate(-2deg); transition: transform .15s; }
  #header .header-top .bn-header-pricebeat:hover img { transform: rotate(0) scale(1.05); }
  #header .header-top .bn-header-pricebeat + .bn-header-phone { margin-left: 0; }
}
html[data-bn-scale="150"] #header .header-top .bn-header-pricebeat { display: none; }

/* menu: all categories look the same (no Bird Netting highlight); white lines between cells; the page you are on is highlighted */
@media (min-width: 768px) {
  #header .header-top #_desktop_top_menu { background: #fff; border: 2px solid var(--bn-green); }
  #header .top-menu[data-depth="0"] > li.bn-menu-main { background: var(--bn-green); }
  #header .top-menu[data-depth="0"] > li.bn-menu-main > a[data-depth="0"] { color: #fff; font-size: 1rem; }
  #header .top-menu[data-depth="0"] > li.bn-menu-main > a[data-depth="0"]:hover,
  #header .top-menu[data-depth="0"] > li.bn-menu-main > a[data-depth="0"]:focus { color: #fff; background: var(--bn-green-dark); }
  #header .top-menu[data-depth="0"] > li.current, #header .top-menu[data-depth="0"] > li.bn-menu-main.current { background: #fff; }
  #header .top-menu[data-depth="0"] > li.current > a[data-depth="0"],
  #header .top-menu[data-depth="0"] > li.bn-menu-main.current > a[data-depth="0"] { background: #fff; color: var(--bn-green-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
}
