/* GENERATED by site/christmas/build.mjs: never edit by hand. The December theme, switched on by page-fixes fix 8. */
/* Portal Navy / Portal Red: Portal Match without the garland, on a navy header from the top of the page, with a fine
   line round the PRODOTO badge so it stays visible on the navy. The red one is generated from portal-navy.css by
   make-red.sh. Every rule is scoped to html[data-xmas="street-fog"]; every name starts xmas-portal-navy-. */

html[data-xmas="street-fog"] {
  /* The badge's line: the nav's off-white, a touch softened, so it reads as a fine line, not a border. make-red.sh
     sets it to transparent: the red badge stands out from the navy by its colour, and is cleaner without it. */
  --xmas-portal-navy-line: rgba(242, 242, 242, 0.72);
}

/* ── The header: navy from the top of the page ─────────────────────────────────────────────────────────────
   The site's own dark-bar colours (its .navbar-scrolled rules), applied to the top state as well, so scrolling no
   longer changes the bar's colour. Only colours: the heights stay the site's own (140px at the top, 100px scrolled). */
html[data-xmas="street-fog"] .nav-wrap .navbar { background-color: #071d29; color: #f2f2f2; }
/* The header's own place in the page (the 140px .nav-wrap the fixed bar sits over) is navy too, so nothing white can
   ever show behind the bar (when it still shrank, jumping back to the top flashed a white strip as it grew). */
html[data-xmas="street-fog"] .nav-wrap { background-color: #071d29; }
html[data-xmas="street-fog"] .navbar .navbar__item-link { font-family: Gotham Book; color: #f2f2f2; }
html[data-xmas="street-fog"] .navbar .navbar__item-link.no-link:hover { color: #f2f2f2; }
html[data-xmas="street-fog"] .navbar .navbar__client-login a.navbar__item-link { border-color: #f2f2f2; }
/* the pill turns white on hover: its label goes navy, as on the site's scrolled bar */
html[data-xmas="street-fog"] .navbar .navbar__client-login a.navbar__item-link:hover { color: #071d29; }
html[data-xmas="street-fog"] .navbar .navbar__telephone a,
html[data-xmas="street-fog"] .navbar a.navbar__social-link,
html[data-xmas="street-fog"] .navbar .navbar__show-gallery a { color: #f2f2f2; }
html[data-xmas="street-fog"] .navbar .hamburger .hamburger-inner,
html[data-xmas="street-fog"] .navbar .hamburger .hamburger-inner:before,
html[data-xmas="street-fog"] .navbar .hamburger .hamburger-inner:after { background-color: #f2f2f2; }
html[data-xmas="street-fog"] .navbar .navbar__search-input { color: #f2f2f2; border-bottom: 1px solid #F2F2F2; }

/* ── The lozenge: a fine line round the badge, so its rounded rectangle still reads on the navy ─────────────
   On the <img> itself, so it rides with the badge as the bar changes height. The radii are the
   drawing's own corner (rx 10 in a 160 x 75 badge) as fractions of the box, so it hugs the corners at any size.
   A 1px ring of box-shadow rather than an outline: older iPhones (Safari before 16.4) square an outline's corners. */
html[data-xmas="street-fog"] .navbar__logo img,
html[data-xmas="street-fog"] .navbar-mobile__logo img {
  border-radius: 6.25% / 13.333%;
  box-shadow: 0 0 0 1px var(--xmas-portal-navy-line);
}

/* ── The header stays as it is when the page scrolls (Elliot, 13 Nov) ─────────────────────────────────────
   Past 30px of scroll the site's script adds navbar-scrolled (its CSS shrinks the bar from 140px to 100px), marks the
   badge navbar__logo--hide (it slides up out of the bar) and the white wordmark navbar__logo-scrolled--show. Here none
   of that takes effect: the bar keeps its 140px, on a computer and on a phone, the badge stays where it is with its
   line, its snow and its icicles, and the wordmark stays hidden, exactly as the site keeps it at the top. */
html[data-xmas="street-fog"] .navbar.navbar-scrolled { min-height: 140px; }
html[data-xmas="street-fog"] .navbar__desktop .navbar__logo.navbar__logo--hide { position: relative; top: 0; }
html[data-xmas="street-fog"] .navbar__desktop .navbar__logo-scrolled.navbar__logo-scrolled--show {
  visibility: hidden;
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

/* Every layer is decoration: it never takes a click or a tap. */
html[data-xmas="street-fog"] .xmas-portal-navy-canvas,
html[data-xmas="street-fog"] .xmas-portal-navy-logo {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* The phone's logo link becomes the anchor for its snow (no visual change). */
html[data-xmas="street-fog"] .navbar-mobile__logo { position: relative; }

/* The snow on the badge is drawn in front of it: it caps the white letters, and covers the line along the top edge
   as real snow would. */
html[data-xmas="street-fog"] .xmas-portal-navy-badge { z-index: 1; }

/* The bar's own layer sits behind its content (logo, links, buttons) but over its background: the snow and the
   frost show on the bar, never over a word or a control. The hero's sits over the photograph, under its copy. */
html[data-xmas="street-fog"] .xmas-portal-navy-bar { z-index: -1; }
html[data-xmas="street-fog"] .xmas-portal-navy-hero { z-index: 1; }

/* ── The greeting, on the top row, its left edge on the menu's: light foil gold on the navy ─────────────────
   Placed by the script (left and top), measured from the live header: left on "Who We Are", middle on the phone
   number's line. */
html[data-xmas="street-fog"] .xmas-portal-navy-greeting {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-family: 'Domaine Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  color: #e2c677;
  /* Narrow bands of light across the letters, as stamped foil catches a lamp. */
  background: linear-gradient(100deg, #c9a54e 0%, #e7cc80 12%, #f5e3a8 18%, #d9b65a 28%, #c29d47 38%, #e2c677 48%,
    #f7e7b4 54%, #d4b056 64%, #c29d47 74%, #e7cc80 84%, #f5e3a8 90%, #d9b65a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
html[data-xmas="street-fog"] .xmas-portal-navy-greeting.xmas-portal-navy-ready { opacity: 1; }
/* The header no longer changes when the page scrolls, so neither does the greeting. It never shows on a phone. */
html[data-xmas="street-fog"] .navbar-mobile .xmas-portal-navy-greeting { display: none; }

/* ── Reduced motion: the finished card, perfectly still ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-xmas="street-fog"] .xmas-portal-navy-greeting { transition: none; }
}
