/* ===========================================================
   chrome.css — chrome navigation styles
   Extracted from _chrome/nav-block.html on 2026-06-08 to allow
   browser caching across page navigations. Was previously inlined
   into every Build page (~14.5KB × 63 pages = ~913KB of duplicate
   bytes). Now loaded once via <link rel="stylesheet"> in the head.
   Source of truth for chrome navigation styles. Pair with
   _chrome/nav-block.html (HTML + JS portion).
   =========================================================== */
/* Design tokens (from Claude Design colors_and_type.css — duplicated
     locally so the block is self-contained and renders correctly even if
     no other stylesheet loads first). */
  :root {
    --pg-terracotta:      #AB5332;
    --pg-terracotta-dark: #8E4220;
    --pg-olive:           #6B7C4E;
    --pg-gold:            #C9A96E;
    --pg-gold-light:      #D4B97E;
    --pg-cream:           #F5F0EB;
    --pg-charcoal:        #2C2C2C;
    --pg-dark:            #1A1A1A;
    --pg-off-white:       #FAFAF8;
    --pg-fg-muted:        #666;
    --pg-fg-subtle:       #999;
    --pg-border-subtle:   rgba(0, 0, 0, 0.06);
    --pg-font-body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pg-font-heading:    "Playfair Display", Georgia, "Times New Roman", serif;
    --pg-ease-default:    cubic-bezier(0.4, 0, 0.2, 1);
    --pg-shadow-xs:       0 1px 2px rgba(0, 0, 0, 0.04);
    --pg-shadow-md:       0 4px 24px rgba(0, 0, 0, 0.08);
    --pg-nav-h:           76px;
  }

  /* ===== NAV BAR =====
     sticky (not fixed) so the announce bar above can sit in normal flow
     and scroll off naturally; the nav locks to viewport-top once the
     announce bar leaves the viewport. */
  .pg-nav {
    position: sticky; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--pg-nav-h);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px;
    font-family: var(--pg-font-body);
    transition: box-shadow 0.3s var(--pg-ease-default), background 0.3s var(--pg-ease-default);
  }
  .pg-nav.scrolled {
    box-shadow: var(--pg-shadow-md);
    background: rgba(255, 255, 255, 0.99);
  }
  .pg-nav-logo {
    display: inline-flex; align-items: center; flex-shrink: 0;
    text-decoration: none;
  }
  .pg-nav-logo img { height: 44px; width: auto; display: block; }
  /* Center primary nav */
  .pg-nav-center { display: flex; gap: 36px; align-items: center; }
  .pg-nav-item { position: relative; }
  .pg-nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: inherit;
    font-size: 15px; font-weight: 600;
    color: var(--pg-charcoal);
    letter-spacing: 0.3px;
    padding: 4px 0;
    cursor: pointer;
    background: none; border: none;
    text-decoration: none;
    transition: color 0.2s var(--pg-ease-default);
    position: relative;
  }
  .pg-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--pg-terracotta);
    transition: width 0.3s var(--pg-ease-default);
  }
  .pg-nav-item:hover .pg-nav-link,
  .pg-nav-link.active,
  .pg-nav-item.open .pg-nav-link { color: var(--pg-terracotta); }
  .pg-nav-item:hover .pg-nav-link::after,
  .pg-nav-link.active::after,
  .pg-nav-item.open .pg-nav-link::after { width: 100%; }
  .pg-nav-caret {
    display: inline-block;
    transition: transform 0.25s var(--pg-ease-default);
    color: currentColor;
    margin-top: 1px;
  }
  .pg-nav-item.open .pg-nav-caret,
  .pg-nav-item:hover .pg-nav-caret { transform: rotate(180deg); }

  /* ===== RIGHT-SIDE GROUP ===== */
  .pg-nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
  .pg-nav-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500;
    color: var(--pg-charcoal);
    white-space: nowrap;
  }
  .pg-status-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: var(--pg-olive);
    box-shadow: 0 0 0 4px rgba(107, 124, 78, 0.18);
    flex-shrink: 0;
  }
  .pg-nav-status.is-closed .pg-status-dot {
    background: var(--pg-fg-muted);
    box-shadow: 0 0 0 4px rgba(118, 118, 118, 0.18);
  }
  /* Flash the open-status dot (sitewide — desktop + mobile) so visitors
     notice we're open. Pulses opacity + a translucent halo. Amber variant
     when within 30 min of close (.is-closing-soon) for urgency. Respects
     prefers-reduced-motion. */
  @keyframes pgStatusFlash {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35); }
    50%      { opacity: 0.35; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  }
  @keyframes pgStatusFlashAmber {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.40); }
    50%      { opacity: 0.30; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  }
  .pg-nav-status:not(.is-closed) .pg-status-dot {
    background: #22c55e;
    animation: pgStatusFlash 1.6s ease-in-out infinite;
  }
  .pg-nav-status.is-closing-soon .pg-status-dot {
    background: #f59e0b;
    animation: pgStatusFlashAmber 1.1s ease-in-out infinite;
  }
  .pg-nav-status.is-closing-soon {
    color: #b45309;
  }
  /* Closing-soon is high-priority info — keep it visible on every
     responsive breakpoint (including the <=600px and <=380px steps
     that normally trim the open-state pill down). */
  @media (max-width: 600px) {
    .pg-nav-status.is-closing-soon .pg-status-sub { display: inline !important; }
  }
  @media (max-width: 380px) {
    .pg-nav-status.is-closing-soon { display: flex !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pg-status-dot { animation: none !important; }
  }
  .pg-nav-status.is-closed { color: var(--pg-fg-muted); }
  .pg-status-sub { color: var(--pg-fg-muted); font-size: 12px; }
  .pg-nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--pg-terracotta-dark);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.25s var(--pg-ease-default), box-shadow 0.25s var(--pg-ease-default);
  }
  .pg-nav-cta:hover {
    background: var(--pg-terracotta);
    box-shadow: 0 8px 20px rgba(171,83,50, 0.35);
  }

  /* ===== MENU DROPDOWN PANEL ===== */
  .pg-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 640px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 4px 14px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--pg-ease-default), transform 0.25s var(--pg-ease-default);
    overflow: hidden;
    z-index: 110;
  }
  .pg-nav-item.open .pg-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  /* Pointer arrow above the panel */
  .pg-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px; height: 14px;
    background: #fff;
    box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.03);
  }
  /* Invisible hover bridge so cursor can cross from trigger to panel without closing */
  .pg-nav-item .pg-dropdown::after {
    content: '';
    position: absolute;
    top: -14px; left: 0; right: 0;
    height: 14px;
  }
  .pg-dd-inner {
    padding: 28px 28px 0;
    position: relative;
    z-index: 1;
    background: #fff;
  }
  .pg-dd-head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pg-border-subtle);
    margin-bottom: 18px;
  }
  .pg-dd-eyebrow {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--pg-terracotta);
  }
  .pg-dd-title {
    font-family: var(--pg-font-heading);
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.3px;
    margin-top: 2px;
    color: var(--pg-charcoal);
  }
  .pg-dd-title em { color: var(--pg-gold); font-style: italic; font-weight: 700; }
  .pg-dd-meta { font-size: 12px; color: var(--pg-fg-muted); }
  .pg-dd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
  }
  .pg-dd-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s var(--pg-ease-default);
    cursor: pointer;
  }
  .pg-dd-link:hover { background: var(--pg-cream); }
  .pg-dd-link-name {
    font-family: var(--pg-font-heading);
    font-size: 15px; font-weight: 700;
    color: var(--pg-charcoal);
    line-height: 1.2;
  }
  .pg-dd-link-count {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 1px;
    color: var(--pg-fg-subtle);
    align-self: center;
  }
  .pg-dd-link-desc {
    grid-column: 1 / -1;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--pg-fg-muted);
    margin-top: 1px;
  }
  .pg-dd-link:hover .pg-dd-link-name { color: var(--pg-terracotta); }
  .pg-dd-foot {
    margin-top: 14px;
    background: var(--pg-cream);
    padding: 16px 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
  }
  .pg-dd-foot-left { display: flex; flex-direction: column; gap: 2px; }
  .pg-dd-foot-eye { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pg-terracotta); }
  .pg-dd-foot-title { font-family: var(--pg-font-heading); font-size: 15px; font-weight: 700; color: var(--pg-charcoal); }
  .pg-dd-foot-title em { color: var(--pg-gold); font-style: italic; font-weight: 700; }
  .pg-dd-foot-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    background: var(--pg-charcoal);
    color: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: background 0.2s var(--pg-ease-default);
  }
  .pg-dd-foot-cta:hover { background: var(--pg-terracotta); }

  /* ===== HAMBURGER (mobile only) ===== */
  .pg-burger {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--pg-charcoal);
    border-radius: 8px;
  }
  .pg-burger svg { width: 26px; height: 26px; }
  .pg-burger:hover { color: var(--pg-terracotta); }

  /* ===== MOBILE DRAWER ===== */
  .pg-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(26, 26, 26, 0.45);
    opacity: 0; visibility: hidden;
    transition: opacity 0.24s var(--pg-ease-default), visibility 0.24s linear;
    z-index: 200;
  }
  .pg-drawer-backdrop.is-visible { opacity: 1; visibility: visible; }
  .pg-drawer {
    position: fixed; top: 0; right: 0;
    width: min(360px, 88vw); height: 100dvh;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
    padding: 20px 24px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s var(--pg-ease-default);
    z-index: 201;
    display: flex; flex-direction: column; gap: 14px;
    font-family: var(--pg-font-body);
  }
  .pg-drawer.is-open { transform: translateX(0); }
  .pg-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg-border-subtle);
  }
  .pg-drawer-head .pg-nav-logo img { height: 34px; }
  .pg-drawer-close {
    width: 40px; height: 40px;
    background: none; border: 0; cursor: pointer;
    color: var(--pg-charcoal);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
  }
  .pg-drawer-close svg { width: 22px; height: 22px; }
  .pg-drawer-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--pg-charcoal); }
  .pg-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
  .pg-drawer-nav > a,
  .pg-drawer-nav > details > summary {
    font-size: 16px; font-weight: 600;
    color: var(--pg-charcoal);
    padding: 13px 4px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
  }
  .pg-drawer-nav > details > summary::-webkit-details-marker { display: none; }
  .pg-drawer-nav > details > summary::after {
    content: '';
    width: 9px; height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s var(--pg-ease-default);
    margin-right: 4px;
  }
  .pg-drawer-nav > details[open] > summary::after { transform: rotate(-135deg); }
  .pg-drawer-nav > details > div { display: flex; flex-direction: column; padding: 2px 0 10px 4px; }
  .pg-drawer-nav > details > div a {
    font-size: 14px; font-weight: 500;
    color: var(--pg-fg-muted);
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
  }
  .pg-drawer-nav > details > div a:hover { background: var(--pg-cream); color: var(--pg-terracotta); }
  .pg-drawer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .pg-drawer-cta .pg-nav-cta { width: 100%; justify-content: center; padding: 13px 22px; font-size: 15px; }
  .pg-drawer-cta .pg-nav-cta.is-secondary { background: var(--pg-charcoal); }
  .pg-drawer-cta .pg-nav-cta.is-secondary:hover { background: var(--pg-terracotta); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1024px) {
    .pg-nav { padding: 0 24px; }
    .pg-nav-center { display: none; }
    .pg-burger { display: inline-flex; }
  }
  /* Hide the "· Closes 9pm" sub when open — it's lower-priority info
     and saves nav width on mobile. KEEP the "· Opens 11am" sub visible
     when closed so mobile visitors know when we open next. */
  @media (max-width: 600px) {
    .pg-nav-status:not(.is-closed) .pg-status-sub { display: none; }
  }
  /* Below iPhone-mini width, the full "Closed · Opens 11am" pill is too
     wide to share the row with the Order CTA + burger. Compact format
     when closed: drop the dot + "Closed" word, show only the mobile-only
     <span data-status-mobile-closed> with the next open time. The gray
     muted color signals closed state without needing the redundant label.
     When OPEN at this width, hide the whole pill (the absence of a "Closed
     opens 11am" label and the visitor being on the site during open hours
     implies open status). */
  @media (max-width: 480px) {
    .pg-nav-status.is-closed .pg-status-dot,
    .pg-nav-status.is-closed .pg-status-text,
    .pg-nav-status.is-closed .pg-status-sub { display: none; }
    .pg-nav-status.is-closed [data-status-mobile-closed] {
      display: inline;
      color: var(--pg-fg-muted);
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
    }
  }
  @media (max-width: 380px) {
    .pg-nav-status:not(.is-closed) { display: none; }
  }
  [data-status-mobile-closed] { display: none; }
