/* Shared mechanics for the three brand sites. Brand files set the tokens, faces and compositions.
   No JavaScript: the small-screen menu is a <details> disclosure. Controls are at least 44 px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6; font-kerning: normal;
  overflow-wrap: break-word; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
p a { font-weight: 650; }
main { display: block; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap-max, 80rem); margin-inline: auto; padding-inline: var(--gutter); }
:root { --gutter: clamp(1.125rem, 4.5vw, 3.5rem); --tap: 2.75rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-foot :focus-visible, .on-night :focus-visible { outline-color: var(--focus-night); }

.skip {
  position: absolute; left: 0.75rem; top: -20rem; z-index: 50;
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0.5rem 1rem;
  background: var(--ink); color: var(--paper); font-family: var(--font-ui); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------------------------------------------------------------- header and menu */
.site-head { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); font-family: var(--font-ui); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding-block: 0.625rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: var(--tap); flex: 0 1 auto; min-width: 0; text-decoration: none; }
.brand-word { height: var(--wordmark-h, 1.875rem); width: auto; max-width: 100%; }
.brand-symbol { height: var(--symbol-h, 2.5rem); width: auto; flex: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.nav-wide { display: none; }
.nav-wide .nav-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.25rem 1.375rem; }
.nav-wide .nav-link { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 1rem; }
.nav-wide .nav-visit-guide { padding: 0.5rem 1.05rem; border: 2px solid var(--ink); border-radius: var(--radius-control); }

.nav-menu { flex: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: var(--tap); padding: 0.5rem 0.95rem;
  border: 2px solid var(--ink); border-radius: var(--radius-control); cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); user-select: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { content: ''; }
.toggle-bars { position: relative; width: 1.125rem; height: 0.75rem; border-block: 2px solid currentColor; }
.toggle-bars::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: currentColor; }
.toggle-close { display: none; }
.nav-menu[open] .toggle-open { display: none; }
.nav-menu[open] .toggle-close { display: inline; }
.nav-menu[open] .toggle-bars { border-color: transparent; }
.nav-sheet {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0.25rem var(--gutter) 1.25rem; background: var(--surface); border-bottom: 2px solid var(--ink);
}
.nav-sheet .nav-link { display: flex; align-items: center; min-height: 3.25rem; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.nav-sheet .nav-visit-guide { font-weight: 750; }
@media (min-width: 66rem) {
  .nav-wide { display: block; }
  .nav-menu { display: none; }
}

/* ---------------------------------------------------------------- shared type and actions */
.eyebrow { font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 650; letter-spacing: 0.01em; color: var(--muted); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; max-width: 36em; text-wrap: pretty; }
.h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.08; text-wrap: balance; }
.caption { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 550; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.fill { width: 100%; height: 100%; object-fit: cover; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.375rem;
  border: 2px solid transparent; border-radius: var(--radius-control);
  font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
}
.button-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.button-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-lamp { background: var(--paper); color: var(--night); border-color: var(--paper); }
.text-link { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-ui); font-weight: 650; color: var(--ink); }
@media (hover: hover) {
  .button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
  .button-ink:hover { background: var(--control); border-color: var(--control); }
  .button-lamp:hover { background: var(--surface); }
  .nav-link:hover, .text-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
}

/* ---------------------------------------------------------------- questions */
.faq { padding-block: clamp(3rem, 7vw, 6rem); }
.faq-in { display: grid; gap: 1.5rem; }
.faq-list { display: grid; }
.faq-item { padding-block: 1.25rem 1.375rem; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.25; text-wrap: balance; }
.faq-a p { margin-top: 0.5rem; max-width: 40em; text-wrap: pretty; }

/* ---------------------------------------------------------------- about and partners */
.info-head { padding-top: clamp(2.5rem, 6vw, 5rem); }
.info-head-in { display: grid; gap: 0.875rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.info-title { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; text-wrap: balance; }
.info-photo { position: relative; }
.info-photo .fill { height: min(56vw, 34rem); }
.info-photo .caption { padding: 0.625rem var(--gutter) 0; }
.info-sections { display: grid; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.info-sec { display: grid; gap: 0.75rem; padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--line); }
.info-h { font-family: var(--font-display); font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.15; text-wrap: balance; }
.info-body { display: grid; gap: 0.75rem; max-width: 40em; }
.info-body p { text-wrap: pretty; }
.info-list { display: grid; gap: 0.625rem; padding-left: 1.25rem; }
.info-next { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--sunk); }
.info-next-in { display: grid; gap: 1rem; justify-items: start; }
.info-next-title { font-family: var(--font-display); font-size: clamp(1.625rem, 3.4vw, 2.5rem); line-height: 1.1; }
@media (min-width: 52rem) {
  .info-sec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2.5rem; }
  .faq-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2.5rem; align-items: start; }
}

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--night); color: var(--on-night); font-family: var(--font-ui); }
.foot-in { display: grid; gap: 1.25rem; padding-block: 2.75rem 3.25rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.75rem; justify-self: start; min-height: var(--tap); }
.foot-brand .brand-word { height: 1.625rem; }
.foot-brand .brand-symbol { height: 2.25rem; }
.foot-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--on-night); font-weight: 600; text-decoration: underline; text-decoration-color: var(--night-line); }
.foot-nav a[aria-current="page"] { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.foot-note { max-width: 46rem; font-size: 0.9375rem; line-height: 1.55; color: var(--night-muted); text-wrap: pretty; }
@media (hover: hover) { .foot-nav a:hover { text-decoration-color: currentColor; } }

/* ---------------------------------------------------------------- preferences */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .nav-link, .text-link { transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button, .nav-toggle, .plate { border: 2px solid ButtonText; }
  .nav-link[aria-current="page"] { outline: 2px solid Highlight; }
}
