/* Shared, quiet navigation for the website. */
.header { position: relative; z-index: 20; }
.header .nav { gap: 30px; }
.header .nav > a,
.header .about-menu > summary { font-size: 14px; font-weight: 650; line-height: 1.4; }
.header .about-menu { position: relative; margin: 0; padding: 0; border: 0; }
.header .about-menu > summary { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 0; cursor: pointer; list-style: none; white-space: nowrap; }
.header .about-menu > summary::-webkit-details-marker { display: none; }
.header .about-menu > summary::marker { content: ''; }
.header .about-menu > summary > span { display: none; }
.header .about-menu > summary::after { content: ''; display: block; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.header .about-menu[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.header .about-menu > summary:hover { color: #536445; }
.header .about-menu > summary:focus-visible { outline: 3px solid #647653; outline-offset: 5px; border-radius: 2px; }
.header .about-menu:not([open]) > .about-dropdown { display: none; }
.header .about-dropdown { position: absolute; top: calc(100% + 8px); left: -18px; right: auto; z-index: 30; width: 290px; min-width: 0; margin: 0; padding: 8px; background: #fafbf8; border: 1px solid #d4dacd; border-radius: 8px; box-shadow: 0 10px 24px #30332c0d; }
.header .about-dropdown > a { display: flex; align-items: center; min-height: 44px; padding: 11px 12px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: normal; border: 0; border-radius: 4px; }
.header .about-dropdown > a:hover,
.header .about-dropdown > a:focus-visible { background: #eef1e8; text-decoration: none; }
.header .about-dropdown > a[aria-current='page'] { font-weight: 700; }
@media (max-width: 1000px) and (min-width: 901px) { .header .nav { gap: 20px; } }
@media (max-width: 900px) {
  .header .nav { gap: 4px; }
  .header .about-menu > summary { justify-content: space-between; width: 100%; }
  .header .about-dropdown { position: static; width: 100%; margin: 0 0 8px; padding: 2px 0 2px 10px; border: 0; border-left: 1px solid #d4dacd; border-radius: 0; box-shadow: none; }
  .header .about-dropdown > a { padding: 10px 12px; }
}

/* ---- Phones: a compact Let's talk beside Menu, and the menu as an overlay ---- */
.header-cta{display:none}
@media (max-width:900px){
  .header{column-gap:8px}
  .header-cta{position:relative;display:inline-flex;align-items:center;min-height:44px;margin-left:auto;padding:4px 14px;border:1.5px solid var(--ink);border-radius:7px;color:var(--ink);font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;-webkit-tap-highlight-color:transparent}
  .header-cta::after{content:'';position:absolute;inset:-5px -2px}
  .header-cta-short{display:none}
  /* The open menu is a solid sheet from the header to the bottom of the screen, so no page shows through. */
  .header .nav.open{position:fixed;inset:var(--header-bottom,88px) 0 0;max-height:none;gap:12px;padding:20px 32px 32px;border-width:1px 0 0;border-radius:0;box-shadow:none;background:var(--paper);overflow-y:auto;overscroll-behavior:contain}
  html:has(.header.is-open){overflow:hidden}
  /* In the open menu Let's talk is the one action, so it takes the hero button's fill, not Close's outline. */
  .header .nav.open .nav-cta{background:var(--accent);border-color:var(--accent);color:#fff}
  /* The sheet is the page while it is open, so its items are set as a ruled index, not a stretched dropdown. */
  .header .nav.open{gap:0}
  .header .nav.open > a:not(.nav-cta),.header .nav.open > .about-menu{border-bottom:1px solid var(--line)}
  .header .nav.open > a:not(.nav-cta),.header .nav.open > .about-menu > summary{display:flex;align-items:center;min-height:56px;font-size:28px;line-height:1.15;font-weight:500;letter-spacing:-.02em}
  .header .nav.open .about-dropdown > a{font-size:17px}
  .header .nav.open .nav-cta{margin-top:24px}
  /* One Let's talk per screen: the sheet's filled one. Its box stays, so the header does not move. */
  .header.is-open .header-cta{visibility:hidden}
}
@media (max-width:760px){.header .nav.open{padding-inline:20px}}
/* Logo, Let's talk and Menu do not fit on one line below 380px, so the pill says Talk. */
@media (max-width:379px){
  .header-cta{padding-inline:12px}
  .header-cta-full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .header-cta-short{display:inline}
}
.header-cta:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
@media (hover:hover) and (pointer:fine){.header-cta:hover{background:var(--sage)}}
@media (prefers-reduced-motion:no-preference){
  .header-cta{transition:background-color var(--dur-quick) var(--ease-out),scale var(--dur-press) var(--ease-out)}
  .header-cta:active{scale:.97}
  @supports (transition-behavior:allow-discrete){
    @media (max-width:900px){
      .header .nav.open > *{transition:opacity var(--dur-quick) var(--ease-out),translate var(--dur-quick) var(--ease-out)}
      /* The plain links' own transition list outranks the one above, so it carries the entry too. */
      .header .nav.open > a:not(.nav-cta){transition:opacity var(--dur-quick) var(--ease-out),translate var(--dur-quick) var(--ease-out),color var(--dur-quick) var(--ease-out),text-decoration-color var(--dur-ui) var(--ease-out)}
      @starting-style{.header .nav.open > *{opacity:0;translate:0 calc(var(--travel-sm) * -1)}}
    }
  }
  /* Phone menu groups unfold like the FAQ; the panel stays rendered so the fold can run both ways. */
  @supports (interpolate-size:allow-keywords) and selector(::details-content){
    @media (max-width:900px){
      .header .about-menu{interpolate-size:allow-keywords}
      .header .about-menu::details-content{block-size:0;overflow:clip;transition:block-size var(--dur-ui) var(--ease-out),content-visibility var(--dur-ui) allow-discrete}
      .header .about-menu[open]::details-content{block-size:auto}
      .header .about-menu:not([open]) > .about-dropdown{display:block}
    }
  }
}
@media (prefers-reduced-motion:reduce){
  @supports (transition-behavior:allow-discrete){
    @media (max-width:900px){
      .header .nav.open > *{transition:opacity var(--dur-quick) var(--ease-out)}
      @starting-style{.header .nav.open > *{opacity:0}}
    }
  }
}

/* ---- Notice above the header, set in prc/update-site-chrome ---- */
.notice-bar{background:var(--ink);color:#e6e9e1;font-size:13px;line-height:1.4;letter-spacing:.01em}
.notice-bar .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:38px;padding-block:8px}
.notice-right{display:inline-flex;align-items:center;gap:7px;color:#fafbf8}
.notice-right svg{flex-shrink:0;fill:#e3a042}
.notice-right:only-child{margin-left:auto}
@media (max-width:760px){.notice-bar .wrap{justify-content:center;text-align:center}.notice-bar .notice-left:not(:only-child){display:none}.notice-right:only-child{margin-left:0}}
