/* Unico site styles */
:root {
  --unico-red: #ED1C2E;
  --unico-blue: #013474;
  --unico-red-dark: #c8121f;
  --font-brand: 'Lexend', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body.site-public { font-size: 1.125rem; line-height: 1.6; font-family: var(--font-brand); }

/* ---- Header ---- */
:root { --unico-yellow: #FFD200; }
.serif { font-family: var(--font-brand); }

/* Mobile header band */
.site-header { background: none; }

.mobile-band {
  background: var(--unico-red);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
}

.mobile-band.is-open {
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
}
:root { --mobile-badge-h: 38px; }
.mobile-band > .container { min-height: 60px; }
.site-header > .d-xl-none { padding-top: calc(60px + var(--mobile-badge-h)); }
/* Desktop logo overhang */
:root { --desktop-logo-overhang: 72px; }
@media (min-width: 1200px) {
  .site-header { background: var(--unico-red); margin-bottom: var(--desktop-logo-overhang); }
}
/* Desktop header row */
.site-header > .container { min-height: 118px; }
.site-logo-link {
  display: block; flex: 0 0 auto; z-index: 10;
  margin: 30px 1.5rem calc(-1 * var(--desktop-logo-overhang)) 0;
}
.site-logo { height: 160px; width: auto; display: block; }
.header-right { flex: 1 1 auto; min-width: 0; padding: 14px 0 10px; }

/* Breadcrumbs */
:root { --crumb-clearance: 420px; }
@media (min-width: 1200px) {
  .site-crumbs {
    margin-top: calc(-1 * var(--desktop-logo-overhang));
    min-height: var(--desktop-logo-overhang);
    padding-left: var(--crumb-clearance);
    display: flex; align-items: center;
  }
  .site-crumbs .breadcrumb { margin-bottom: 0; }
}

.site-crumbs .breadcrumb { font-size: .875rem; }

/* Tagline */
.site-tagline {
  color: #fff; background-color: var(--unico-red);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--header-line-size); font-weight: 700; letter-spacing: .5px;
}
/* Utility group: language switch + search */
.header-utils {
  display: flex; align-items: center; gap: .25rem;
  margin-left: 1.5rem; margin-bottom: 1rem;
}
.header-utils .util-lang {
  color: #fff; font-family: var(--font-brand); font-weight: 700;
  font-size: 1.25rem; line-height: 1; padding: .3rem .7rem; text-decoration: none;
  border: 1.5px solid #fff; border-radius: .4rem;
}
.header-utils .util-lang:hover, .header-utils .util-lang:focus {
  color: var(--unico-red); background: #fff; text-decoration: none;
}

/* Proudly Canadian badge row */
:root { --header-line-size: 1.65rem; }
.header-canadian {
  display: inline-flex; align-items: center; gap: 1rem; margin-left: 1rem;
  color: #fff; font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700; letter-spacing: .5px;
  font-size: var(--header-line-size); line-height: 1; white-space: nowrap;
}
.header-canadian svg { width: 30px; height: 30px; }
.mobile-canadian {
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  height: var(--mobile-badge-h); color: #fff;
  font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; line-height: 1;
}
.mobile-canadian svg { width: 24px; height: 24px; }
.util-divider {
  display: inline-block; width: 2px; height: 22px;
  background: #fff; vertical-align: middle;
}
.search-toggle {
  background: none; border: 0; color: #fff; padding: .25rem;
}
.search-toggle:disabled { opacity: .9; }
.site-nav .nav-sep { display: flex; align-items: center; padding: 0 .25rem; color: #fff; font-weight: 700; }
.site-nav .search-toggle-nav { display: flex; align-items: center; height: 100%; padding: .5rem; }

/* Nav links */
.site-nav .nav-link {
  color: #fff; font-family: var(--font-brand);
  font-size: 1.25rem; font-weight: 700; padding: .25rem .9rem;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; text-decoration: underline; }
.site-nav .nav-link.disabled { color: #fff; }
.site-nav .nav-link.disabled:hover { text-decoration: none; cursor: default; }

/* Compact desktop header (1200–1399px: 1140px container) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  :root { --header-line-size: 1.35rem; --crumb-clearance: 380px; }
  .site-logo { height: 140px; }
  .site-logo-link { margin-right: 1rem; }
  .site-nav .nav-link { font-size: 1.1rem; padding: .25rem .6rem; }
  .header-utils .util-lang { font-size: 1.1rem; }
  .header-canadian svg { width: 26px; height: 26px; }
}
.site-nav .caret { color: #fff; font-size: 1em; }
.site-nav .dropdown-toggle::after { color: #fff; }
.site-nav button.nav-link { background: none; border: 0; }

/* Desktop dropdown */
.site-nav .dropdown-menu.menu-panel {
  font-family: var(--font-brand);
  min-width: 320px; padding: 0; border: 0; border-radius: .5rem;
  overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  border-bottom: 4px solid var(--unico-blue);
}
.menu-panel .dropdown-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .95rem 1.25rem; font-size: 1.1rem;
  color: var(--unico-blue); border-bottom: 1px solid #e9ecef;
  white-space: normal;
}
.menu-panel li:last-child .dropdown-item { border-bottom: 0; }
.menu-panel .dropdown-item:hover,
.menu-panel .dropdown-item:focus { background: #f8f9fa; color: var(--unico-blue); }
.menu-panel .chev { color: var(--unico-red); font-size: 1.5rem; line-height: 1; }
.menu-panel .dropdown-item > * { pointer-events: none; }

/* ---- Mobile + tablet header (<1200px) ---- */
.hamburger {
  background: none; border: 0; padding: .5rem .5rem .5rem 0; line-height: 0;
}
.hamburger .bar {
  display: block; width: 34px; height: 5px; border-radius: 3px;
  background: #fff; margin: 6px 0;
}
.site-tagline-sm { font-size: 1.35rem; font-weight: 700; }
.search-toggle-static { position: static; color: #fff; }
/* Banner artwork: full width on phones, capped and centred on tablets */
:root { --mobile-banner-max: 640px; }
.mobile-logo { display: block; width: 100%; max-width: var(--mobile-banner-max); height: auto; margin: 0 auto; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  /* Red continues full width beside the capped artwork, down to the ribbon */
  .site-header > .d-xl-none {
    background: linear-gradient(var(--unico-red) calc(100% - var(--mobile-banner-overhang)), transparent 0);
  }
}
/* Mobile menu */
.mobile-menu { background: #fff; border-bottom: 4px solid var(--unico-blue); }
.mobile-menu .menu-row { border-bottom: 1px solid #e9ecef; }
.mobile-menu .menu-row:last-child { border-bottom: 0; }
.mobile-menu .menu-item,
.mobile-menu .menu-toggle,
.mobile-menu .submenu a {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: .95rem 1.25rem;
  font-family: var(--font-brand); font-size: 1.15rem;
  color: var(--unico-blue); text-decoration: none;
  background: none; border: 0; text-align: left;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(1, 52, 116, .08);
}

.mobile-menu .menu-toggle > *,
.mobile-menu .menu-item > *,
.mobile-menu .submenu a > * { pointer-events: none; }
.mobile-menu .menu-item.disabled { color: #5f6a75; }
.mobile-menu .chev {
  color: var(--unico-red); font-size: 1.5rem; line-height: 1;
  transition: transform .2s ease;
}
.mobile-menu .menu-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mobile-menu .submenu { background: #f8f9fa; }
.mobile-menu .submenu a {
  padding: .8rem 1.25rem .8rem 2.25rem; font-size: 1.05rem;
  border-top: 1px solid #e9ecef;
}

/* Product-listing filter bar */
.filter-wrap { display: flex; align-items: center; gap: .25rem; }
.filter-arrow {
  flex: 0 0 auto; border: 0; background: none; padding: .25rem;
  color: var(--unico-blue); line-height: 1;
}
.filter-arrow:disabled { opacity: .25; }
.filter-bar {
  display: flex; gap: .5rem; overflow-x: auto; flex-wrap: nowrap;
  padding-bottom: .25rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1 1 auto; min-width: 0;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto; white-space: nowrap;
  border: 1px solid var(--unico-blue); border-radius: 999px;
  padding: .4rem 1rem; background: #fff; color: var(--unico-blue);
  text-decoration: none; font-size: .95rem;
}
.filter-chip:hover, .filter-chip:focus { background: #eef2f7; color: var(--unico-blue); }
.filter-chip.active { background: var(--unico-blue); color: #fff; }
@media (min-width: 768px) {
  .filter-bar { flex-wrap: wrap; overflow-x: visible; }
}

/* ---- Footer ---- */

.site-footer { background: var(--unico-red); color: #fff; font-size: 1.2rem; font-weight: 700; }
.site-footer a { color: #fff; text-decoration: underline; }
.footer-logo { height: auto; width: auto; max-height: 190px; max-width: 100%; }
@media (max-width: 767.98px) {
  .footer-logo { max-height: none; width: 100%; max-width: 420px; }
}
.footer-canadian { font-family: var(--font-brand); font-size: 1.3rem; font-weight: 700; }
.footer-canadian svg { width: 26px; height: 26px; margin-right: .5rem; vertical-align: -5px; }
.footer-social .social-icon { margin-left: .75rem; color: #fff; }
/* Copyright strip */
.footer-strip { background: var(--unico-blue); color: #fff; }
.footer-fineprint { font-size: .96rem; }

/* ---- Links & buttons ---- */
main a { color: var(--unico-blue); }
.btn-unico-red {
  background: var(--unico-red-dark); border-color: var(--unico-red-dark); color: #fff;
}
.btn-unico-red:hover, .btn-unico-red:focus {
  background: #a30e19; border-color: #a30e19; color: #fff;
}
.btn-unico-blue {
  background: var(--unico-blue); border-color: var(--unico-blue); color: #fff;
}
.btn-unico-blue:hover, .btn-unico-blue:focus {
  background: #012757; border-color: #012757; color: #fff;
}

/* Focus ring */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--unico-blue); outline-offset: 2px;
}
.site-header a:focus-visible, .site-footer a:focus-visible {
  outline-color: #fff;
}

/* ---- Product page ---- */
.spec-tile {
  background: #f1f2f4; border-radius: .375rem; padding: .75rem 1rem; height: 100%;
}
.spec-tile .tile-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #495057;
}
.spec-tile .tile-value { font-weight: 700; font-size: 1.1rem; }

.product-hero img, .product-thumb img {
  width: 100%; height: auto; object-fit: contain; background: #fff;
}
.product-hero { position: relative; }
.hero-zoom {
  position: absolute; top: .5rem; right: .5rem;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--unico-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.hero-zoom:hover, .hero-zoom:focus { background: #012757; color: #fff; }
.zoom-img { max-width: 100%; height: auto; }
.product-thumb {
  border: 1px solid #dee2e6; border-radius: .25rem; padding: .25rem;
  background: #fff; width: 100%; cursor: pointer; display: block;
  position: relative;
}
.product-thumb:hover, .product-thumb:focus { border-color: var(--unico-blue); }

.nft-table td, .nft-table th { padding: .35rem .5rem; }
.nft-table .indent { padding-left: 1.5rem; }

.section-rule { border-top: 1px solid #dee2e6; margin: 2rem 0 1.5rem; }

/* ---- Back-to-top ---- */
.fixed-anchor { height: 0; }
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1029;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--unico-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover, .back-to-top:focus { background: #012757; color: #fff; }

/* ---- Cards (listing + recipe tiles) ---- */
.card-img-frame {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: #fff; overflow: hidden;
  position: relative;
}
/* NEW badge */
.new-badge {
  position: absolute; top: .35rem; left: .35rem; z-index: 2; pointer-events: none;
  background: var(--unico-red-dark); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; line-height: 1.15;
  padding: .3rem .5rem; border-radius: .25rem;

  max-width: 55%; text-align: left; overflow-wrap: normal; word-break: normal;
}
@media (max-width: 575.98px) { .new-badge { font-size: .7rem; padding: .25rem .4rem; } }
/* NEW badge: inline variant (search) */
.new-badge-inline {
  position: static; display: inline-block; vertical-align: .1em; margin-left: .4rem; max-width: none;
  font-size: .65rem; padding: .2rem .4rem;
}
/* NEW badge: mini variant (product thumbnails) */
.new-badge-mini {
  top: .2rem; left: .2rem; font-size: .5rem; padding: .12rem .28rem; letter-spacing: .02em;
  max-width: 85%;
}
/* CMS image thumbnails */
.cms-thumb {
  width: 56px; height: 56px; object-fit: contain; background: #fff;
  border: 1px solid #dee2e6; border-radius: .25rem; flex: 0 0 auto;
}
.cms-thumb-lg { width: 96px; height: 96px; }
/* CMS image preview modal */
.cms-thumb[data-full] { cursor: zoom-in; }
.cms-thumb[data-full]:hover, .cms-thumb[data-full]:focus-visible { border-color: #6c757d; box-shadow: 0 0 0 2px rgba(108,117,125,.25); outline: none; }
.cms-image-full { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; background: #fff; }
.cms-thumb-empty {
  display: inline-flex; align-items: center; justify-content: center;
  color: #adb5bd; font-size: .65rem; text-align: center;
}
.card-img-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Image coming soon placeholder */
.card-img-frame .img-coming {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; width: 100%; height: 100%; padding: .5rem; text-align: center;
}
.card-img-frame .img-coming-logo { max-width: 78%; max-height: 62%; width: auto; height: auto; }
.card-img-frame .img-coming-cap { font-size: .8rem; line-height: 1.2; color: #6c757d; }
.recipe-img-frame { aspect-ratio: 4 / 3; }
.recipe-img-frame img { object-fit: cover; width: 100%; height: 100%; }

/* ---- Recipe pages ---- */
.recipe-hero img { width: 100%; height: auto; border-radius: .25rem; }

/* Shopping list print mode */
@media print {
  body.print-shopping-list * { visibility: hidden; }
  body.print-shopping-list #ingredients,
  body.print-shopping-list #ingredients * { visibility: visible; }
  body.print-shopping-list #ingredients { position: absolute; left: 0; top: 0; width: 100%; }
}

/* Serves calculator */
.serves-adjust { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.serves-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--unico-blue); background: #fff; color: var(--unico-blue);
  font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.serves-btn:hover:not(:disabled), .serves-btn:focus-visible { background: var(--unico-blue); color: #fff; }
.serves-btn:disabled { opacity: .4; }
.serves-count { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* Article hero */
.article-hero-float {
  float: right; width: 46%; margin: .35rem 0 1rem 1.5rem;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: .25rem;
}
.article-hero-float picture, .article-hero-float img { width: 100%; height: 100%; }
.article-hero-float img { object-fit: cover; display: block; }
.article-body .section-rule { overflow: hidden; }
@media (max-width: 767.98px) {
  .article-hero-float { float: none; width: 100%; margin: 0 0 1rem; }
}

/* ---- Landing page ---- */
.band-red { background: var(--unico-red); color: #fff; }
.band-red .band-heading { color: #fff; font-family: 'Playfair Display', Georgia, serif; }
.band-red .band-lead {
  color: #fff; font-size: 1.25rem; font-weight: 700;
  max-width: 60rem; margin-left: auto; margin-right: auto;
}

/* Hero tuck */
:root { --mobile-banner-overhang: calc(min(100vw, var(--mobile-banner-max)) * .12); }
.site-header { position: relative; z-index: 10; }
@media (min-width: 1200px) {
  .landing-hero { margin-top: calc(-1 * var(--desktop-logo-overhang)); }
}
@media (max-width: 1199.98px) {
  .landing-hero { margin-top: calc(-1 * var(--mobile-banner-overhang)); }
}

/* Reading measure */
.landing-measure { max-width: 56rem; }

/* Hero carousel */
.landing-hero .carousel-item img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 767.98px) {
  .landing-hero .carousel-item img { aspect-ratio: 4 / 3; }
}
.landing-caption {
  display: inline-block; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 1.5rem; font-weight: 700; padding: .35rem 1rem; border-radius: .5rem;
}

/* Category cards */
.landing-card-frame { aspect-ratio: 4 / 3; }
.landing-card-frame img { object-fit: cover; width: 100%; height: 100%; }
.landing-card-links { background: var(--unico-blue); }
.landing-card-links a { color: #fff; text-decoration: none; }
.landing-card-links a:hover, .landing-card-links a:focus { text-decoration: underline; color: #fff; }

/* Meal-plan tiles */
.plan-tile { background: var(--unico-yellow); color: #212529; border-radius: 1rem; height: 100%; }
.plan-tile .tile-title { font-weight: 700; }

/* ---- Corporate / About page ---- */
.band-blue { background: var(--unico-blue); color: #fff; }
.band-blue .band-heading { color: #fff; font-family: 'Playfair Display', Georgia, serif; }
.band-blue .band-lead {
  color: #fff; font-size: 1.25rem; font-weight: 700;
  max-width: 60rem; margin-left: auto; margin-right: auto;
}
.corp-overline {
  color: #fff; text-transform: uppercase; letter-spacing: .18em;
  font-size: .95rem; font-weight: 700; margin-bottom: .5rem;
}
.corp-overline-red {
  color: var(--unico-red-dark); font-size: .95rem;
}
.corp-badge {
  display: inline-block; background: var(--unico-yellow); color: #212529;
  font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  padding: .5rem 1.25rem; border-radius: 2rem;
}

.corp-strip { background: #e9edf2; }
.corp-stat {
  background: #e9edf2; border: 1px solid #ced4da; border-radius: .75rem; padding: 1rem;
}
.corp-stat b { display: block; font-size: 1.9rem; color: var(--unico-red); font-weight: 800; }
.corp-stat span { font-size: .9rem; color: #495057; }

.corp-callout-logo { height: 96px; width: auto; display: block; }
@media (max-width: 575.98px) { .corp-callout-logo { height: 72px; } }

/* Category chips */
.corp-cats { display: flex; flex-wrap: wrap; gap: .5rem; padding-left: 0; }
@media (max-width: 575.98px) {
  .corp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
  .corp-cats .filter-chip {
    display: flex; align-items: center; justify-content: center; height: 100%;
    text-align: center; white-space: normal; padding: .55rem .75rem;
  }
  .corp-cats li { min-width: 0; }
}
.corp-tl-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem;
  padding: 1rem 0; border-top: 1px dashed #dee2e6; align-items: start;
}
.corp-tl-row.first { border-top: 0; }
.corp-tl-year { font-size: 1.4rem; font-weight: 700; color: var(--unico-blue); }
@media (max-width: 575.98px) {
  .corp-tl-row { grid-template-columns: 1fr; gap: .25rem; }
}

/* Red callout */
.corp-callout {
  background: var(--unico-red-dark); color: #fff; border-radius: 1rem;
  padding: 1.75rem 2rem; display: flex; gap: 1.5rem; align-items: center;
}
.corp-callout-word {
  font-size: 3rem; font-weight: 800; font-style: italic;
  color: var(--unico-yellow); line-height: 1;
}
@media (max-width: 575.98px) { .corp-callout { flex-direction: column; text-align: center; } }
.corp-mission {
  font-size: 1.5rem; line-height: 1.4; color: var(--unico-blue);
  font-weight: 700;
}
.corp-mission-sm { font-size: 1.25rem; margin-bottom: 1rem; }
.corp-card-ic {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: .5rem; margin-bottom: .75rem;
  background: var(--unico-red-dark); color: #fff; font-weight: 800;
}
.corp-box { background: var(--unico-blue); color: #fff; border-radius: .875rem; padding: 1.5rem 1.75rem; }
.corp-box h3 {
  color: var(--unico-yellow); font-size: 1rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; margin-bottom: .75rem;
}

/* What to cook link row */
.cook-links .list-inline-item { position: relative; padding-right: .9rem; }
.cook-links .list-inline-item:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 15%; height: 70%;
  border-right: 2px solid #ccc;
}
.cook-links a { font-weight: 700; }

/* ---- Picture safety net ---- */
picture img { max-width: 100%; height: auto; }

/* ---- Promotions media hub ---- */
.promo-tabs .nav-link { color: var(--unico-blue); font-weight: 700; }
.promo-tabs .nav-link.active { color: var(--unico-red-dark); }
.promo-card { padding: 1.25rem 0; }
.promo-card + .promo-card { border-top: 1px solid #dee2e6; }
.promo-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .25rem; }
.promo-video-face {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: #000; border-radius: .5rem; overflow: hidden; cursor: pointer;
}
.promo-video-face .promo-video-thumb,
.promo-video-face picture img { display: block; width: 100%; height: auto; }
.promo-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 46px; border-radius: .625rem;
  background: var(--unico-red-dark);
  transition: background .15s ease;
}
.promo-play::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.promo-video-face:hover .promo-play,
.promo-video-face:focus-visible .promo-play { background: var(--unico-red); }
.promo-video-face:focus-visible { outline: 3px solid var(--unico-blue); outline-offset: 2px; }
.promo-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: .5rem; overflow: hidden; }
.promo-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Site search modal ---- */
.site-search { border-top: 4px solid var(--unico-red); }
.search-group-head { color: var(--unico-blue); border-bottom: 2px solid var(--unico-red); padding-bottom: .35rem; margin-bottom: .75rem; }
.search-hit { padding: .45rem 0; }
.search-hit + .search-hit { border-top: 1px solid #eef0f2; }
mark { background: #ffe9a8; color: inherit; padding: 0 .1em; }

/* ---- Product gallery video tile ---- */
.product-thumb.video-thumb { position: relative; padding: 0; overflow: hidden; }
.video-thumb img { width: 100%; height: auto; display: block; }
.promo-play-sm { width: 38px; height: 26px; border-radius: .4rem; }
.promo-play-sm::after { border-width: 6px 0 6px 10px; }
.hero-video { aspect-ratio: 16 / 9; background: #000; border-radius: .25rem; overflow: hidden; }
.hero-video iframe { width: 100%; height: 100%; border: 0; }

/* Linked meal-plan tiles */
a.plan-tile-link {
  display: block; color: #212529; text-decoration: none;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .28);
  transition: transform .12s ease, box-shadow .12s ease;
}
a.plan-tile-link:hover, a.plan-tile-link:focus-visible {
  transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .35);
  color: #212529; text-decoration: none;
}
a.plan-tile-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.tile-more { font-weight: 700; text-decoration: underline; }

/* ---- Accessibility: skip link ---- */
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; top: .5rem; left: .5rem; z-index: 2000;
  background: #fff; color: var(--unico-blue); font-weight: 700;
  padding: .6rem 1rem; border-radius: .375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  text-decoration: underline;
}

main:focus { outline: none; }

/* Carousel pause/play toggle */
.carousel-pause {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: .75; transition: opacity .15s ease;
}
.carousel-pause:hover, .carousel-pause:focus-visible { opacity: 1; color: #fff; }

/* ---- Search autocomplete ---- */
.suggest-anchor { position: relative; }
.suggest-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1080;
  margin: .25rem 0 0; padding: .25rem 0; list-style: none;
  background: #fff; border: 1px solid rgba(0, 0, 0, .175); border-radius: .375rem;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  max-height: 60vh; overflow-y: auto; text-align: left;
}
.suggest-list[hidden] { display: none; }
.suggest-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .4rem .75rem; cursor: pointer;
}
.suggest-list li[aria-selected="true"],
.suggest-list li:hover { background: #f1f3f5; }
.suggest-kind { font-size: .75rem; color: #6c757d; white-space: nowrap; }

/* ---- CMS user manual ---- */
.help-body h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.help-body h2 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: .6rem; }
.help-body h3 { font-size: 1.02rem; margin-top: 1.25rem; margin-bottom: .4rem; }
.help-body p, .help-body li { line-height: 1.55; }
.help-body li { margin-bottom: .3rem; }
.help-body code { background: #f1f3f5; color: #212529; padding: .05rem .3rem; border-radius: .2rem; }
.help-body .help-note { background: #fff8e1; border-left: 4px solid #f0ad4e; padding: .6rem .9rem; margin: 1rem 0; border-radius: .25rem; }
.help-body .help-table td, .help-body .help-table th { vertical-align: top; }
.help-figure { margin: 1rem 0 1.25rem; }
.help-figure img { max-width: 100%; height: auto; border: 1px solid #dee2e6; border-radius: .25rem; }
.help-figure figcaption { font-size: .8rem; color: #6c757d; margin-top: .3rem; }
.help-toc { position: sticky; top: 1rem; }
.help-print .help-chapter { margin-top: 2.5rem; }
@media print {
  .help-print-toolbar { display: none; }
  .help-print .help-cover { page-break-after: always; }
  .help-print .help-chapter { page-break-before: always; margin-top: 0; }
  .help-print a { color: inherit; text-decoration: none; }
  .help-figure { page-break-inside: avoid; }
  .help-body h2, .help-body h3 { page-break-after: avoid; }
}
