/* The only stylesheet that sizes the public top menu.
   Classes are prefixed so page rules like img { max-width: 100% } or
   leftover .logo / .nav styles cannot change the pill. */

.site-header {
  --site-header-height: 70px;
  --site-header-top: 20px;
  --site-header-logo-w: 204px;
  --site-header-logo-h: 53px;
  position: sticky;
  top: var(--site-header-top);
  z-index: 20;
  margin: 20px auto 0;
  width: min(1180px, calc(100% - 48px));
  background: #ffffff;
  color: var(--ink, #162d32);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(8, 32, 33, 0.22);
  box-sizing: border-box;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  height: var(--site-header-height);
  padding: 0 24px 0 22px;
  box-sizing: border-box;
}
.site-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 12px;
}
.site-header-logo img {
  display: block;
  width: var(--site-header-logo-w);
  height: var(--site-header-logo-h);
  max-width: none;
  max-height: none;
  margin-left: -6px;
}
.site-header-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink, #162d32);
}
.site-header-nav a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-header-nav a:hover,
.site-header-nav a:focus-visible,
.site-header-nav a[aria-current="page"] {
  background: var(--teal, #185a5b);
  color: #fff8f0;
  text-decoration: none;
}
.site-header-nav a.site-header-btn,
.site-header-nav a.site-header-btn:hover { color: #fff8f0; text-decoration: none; }
.site-header-nav .site-header-btn { height: 40px; padding: 0 14px; font-size: 16px; }
.site-header-nav .site-header-btn-primary:hover { background: #134849; }
.site-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 13px 24px;
  font: 600 15px/1 var(--sans, "Source Sans 3", system-ui, sans-serif);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.site-header-btn-primary { background: var(--teal, #185a5b); color: #fff8f0; }
.site-header-btn-primary:hover { background: #134849; }
.site-header-btn-ghost {
  background: transparent;
  color: var(--ink, #162d32);
  border-color: rgba(22, 45, 50, 0.2);
}
.site-header-btn-ghost:hover { border-color: var(--teal, #185a5b); }

/* Mobile menu: a real button that opens the same links in a panel. */
.site-header-menu { display: none; position: relative; }
.site-header-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(22, 45, 50, 0.2);
  font: 600 15px/1 var(--sans, "Source Sans 3", system-ui, sans-serif);
  color: var(--ink, #162d32);
  cursor: pointer;
}
.site-header-menu > summary::-webkit-details-marker { display: none; }
.site-header-menu > summary svg { width: 18px; height: 18px; }
.site-header-menu[open] > summary { background: var(--sea, #e8f2ef); border-color: transparent; }
.site-header-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  padding: 10px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(8, 32, 33, 0.25);
  display: grid;
  gap: 2px;
}
.site-header-menu-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink, #162d32);
  font-weight: 600;
  text-decoration: none;
}
.site-header-menu-panel a:hover,
.site-header-menu-panel a[aria-current="page"] { background: var(--teal, #185a5b); color: #fff8f0; }
.site-header-menu-panel .site-header-btn { margin-top: 6px; color: #fff8f0; }

.site-header a:focus-visible,
.site-header summary:focus-visible {
  outline: 3px solid var(--teal, #185a5b);
  outline-offset: 3px;
}

/* The short teal strip behind the menu pill on inner pages. */
.hero-shell {
  position: relative;
  margin-top: -90px;
  color: #fff8f0;
  background-color: var(--teal, #185a5b);
  overflow: hidden;
}
.hero-doodles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url("/assets/site/img/doodles.svg?v=12") center top / 2400px auto repeat-x;
  opacity: 0.5;
}
.hero-shell--short {
  height: 120px;
  margin-top: -90px;
  padding: 0;
}

@media (max-width: 1180px) {
  .site-header-nav, .site-header-inner:has(.fc-lang) .site-header-nav { gap: 2px; font-size: 14.5px; }
  .site-header-nav a { height: 36px; padding: 0 9px; }
  .site-header-nav .site-header-btn { height: 36px; padding: 0 10px; font-size: 14.5px; }
}
@media (max-width: 1040px) {
  .site-header {
    --site-header-height: 58px;
    --site-header-top: 10px;
    --site-header-logo-w: 162px;
    --site-header-logo-h: 42px;
    margin-top: 10px;
    width: calc(100% - 20px);
  }
  .site-header-inner { gap: 8px; padding: 0 8px 0 10px; }
  .site-header-logo img { margin-left: -5px; }
  .site-header-nav { display: none; }
  .site-header-menu { display: block; }
  .hero-shell--short { height: 96px; margin-top: -72px; }
}

/* Breadcrumb under the menu, on every page but home. */
.fc-crumbs { margin: 4px 0 32px; }
.fc-crumbs ol {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  font: 500 15px/1.3 "Source Sans 3", system-ui, sans-serif; color: #4d6266;
}
.fc-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.fc-crumbs li + li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin: 0 12px 0 10px;
  border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; opacity: 0.55; transform: rotate(45deg);
}
.fc-crumbs a { display: inline-flex; align-items: center; padding: 6px 2px; color: var(--teal, #185a5b); text-decoration: none; }
.fc-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fc-crumbs .fc-crumbs-home { width: 34px; height: 34px; justify-content: center; padding: 0; border-radius: 50%; background: var(--sea, #e8f2ef); }
.fc-crumbs .fc-crumbs-home:hover { background: #d6e8e3; text-decoration: none; }
.fc-crumbs [aria-current] { color: var(--ink, #162d32); font-weight: 600; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff8f0;
  color: #162d32;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 3px solid #162d32; }

/* Footer, shared by every public page. */
.site-footer {
  margin-top: auto;
  background: var(--teal, #185a5b);
  color: #fff8f0;
  font: 400 15px/1.5 var(--sans, "Source Sans 3", system-ui, sans-serif);
}
.site-footer .wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-footer .logo { display: flex; align-items: center; flex-shrink: 0; border-radius: 10px; }
.site-footer .logo img { display: block; width: 181px; height: 47px; max-width: none; margin-left: -5px; }
.site-footer nav {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-weight: 600;
}
.site-footer a { color: #fff8f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 3px solid #fff8f0; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 760px) {
  .site-footer .wrap { width: calc(100% - 20px); padding: 30px 0; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 0; }
  .site-footer nav { margin-left: 0; justify-content: flex-start; }
}

/* Language picker pill: flag in a round slot, the code and a caret; the list
   drops below, one row per language. Copied from the sister site, teal theme. */
.fc-lang { position: relative; flex-shrink: 0; font: 600 14px/1 var(--sans, "Source Sans 3", system-ui, sans-serif); color: var(--ink, #162d32); }
.fc-lang summary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: #fff;
  border: 1px solid var(--sea-line, #cfe2dc);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(19, 72, 73, 0.06);
  list-style: none; cursor: pointer; user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.fc-lang summary::-webkit-details-marker { display: none; }
.fc-lang summary:hover, .fc-lang[open] summary { background: var(--sea, #e8f2ef); border-color: var(--teal, #185a5b); }
.fc-lang-pill-flag {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sea, #e8f2ef); border-radius: 50%;
  font-size: 18px; line-height: 1;
}
.fc-lang-pill-code { font-size: 14px; font-weight: 700; letter-spacing: 0.4px; }
.fc-lang-pill-caret { font-size: 10px; opacity: 0.6; margin-left: -2px; }
.fc-lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--sea-line, #cfe2dc); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(19, 45, 50, 0.16);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.fc-lang li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: inherit; text-decoration: none; font-size: 15px; font-weight: 500;
}
.fc-lang li a:hover, .fc-lang li a:focus-visible { background: var(--sea, #e8f2ef); outline: none; }
.fc-lang li a[aria-current] { background: var(--sea, #e8f2ef); font-weight: 700; }
.fc-lang-flag { font-size: 18px; line-height: 1; }
.fc-lang-name { flex: 1; }
.fc-lang-code { font-size: 11px; letter-spacing: 0.5px; opacity: 0.55; }
.site-header-inner:has(.fc-lang) .site-header-nav { gap: 4px; }
@media (max-width: 860px) {
  .fc-lang { order: 2; margin-left: auto; }
  .site-header-menu { order: 3; }
}
