/* r11: shared public-page rhythm and navigation. The stronger root selector
   makes these tokens independent of Vite vs static stylesheet load order.
   Existing holding.css, fonts, palette, assets and motion remain untouched. */
:root:root {
  --space-section-gap: clamp(48px, 5vw, 64px);
  --space-section: calc(var(--space-section-gap) / 2);
  --space-layout: clamp(24px, 3vw, 40px);
  --space-card: clamp(20px, 2vw, 28px);
  --space-heading: clamp(20px, 2.5vw, 32px);
  --space-copy: 16px;
  --space-label: 12px;
}
/* This unprefixed selector's specificity (0,0,2,0) wins over every plain
   :root block in src/spacing.css and public/holding.css regardless of
   media query or source order, so the effective gap is tightened here. */
@media (max-width: 700px) {
  :root:root {
    --space-section-gap: clamp(40px, 8vw, 48px);
  }
}

/* Real supplied lockup artwork, replacing the drawn CSS wordmark mark/text.
   Header and footer both sit on the cream background, so the logo's own
   cream background blends with no separate plate needed. */
.wordmark-logo {
  display: block;
  width: clamp(178px, 14vw, 200px);
  height: auto;
  aspect-ratio: 776 / 177;
  object-fit: contain;
}
@media (max-width: 700px) {
  .wordmark-logo { width: 176px; }
}

/* Standalone text-link CTAs (ownership "Talk through your workflow" and the
   contact section email link) are plain inline text today with no reserved
   hit area; give them a real 44x44 minimum without adding button chrome. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
}

/* Never clip the desktop disclosure to a decorative header/scroll region. */
.site-header.site-header {
  overflow: visible;
  min-height: 76px;
  padding-block: 12px;
  gap: 20px;
}
.site-header #site-nav {
  display: flex;
  position: static;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.2vw, 20px);
  width: auto;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.site-header #site-nav > a,
.site-header #site-nav .industries-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.site-header #site-nav .nav-cta { padding: 10px 16px; gap: 12px; }
.site-header .nav-industries { position: relative; min-width: 0; }
.site-header .industries-toggle {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-header .industries-toggle:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-header #site-nav .industry-links {
  display: grid;
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  width: min(320px, calc(100vw - 48px));
  max-height: min(480px, calc(100dvh - 100px));
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 4px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 12px 28px -16px rgba(24, 43, 36, .28);
}
.site-header #site-nav .industry-links[hidden] { display: none; }
.site-header #site-nav .industry-links a {
  display: flex;
  min-height: 44px;
  padding: 8px 12px;
  white-space: normal;
  overflow-wrap: normal;
  line-height: 1.5;
  border-radius: 5px;
}
.site-header #site-nav .industry-links a:hover,
.site-header #site-nav .industry-links a:focus-visible { background: var(--lime); color: var(--ink); }
.site-header #site-nav a:focus-visible,
.site-header #site-nav button:focus-visible,
.site-header .menu:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.site-header.site-header .menu { display: none; }

/* Collapse BEFORE the complete eight-item menu crowds the wordmark. */
@media (max-width: 1200px) {
  .site-header.site-header > .wordmark { margin-right: auto; }
  .site-header.site-header .menu {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
  }
  .site-header.site-header #site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    width: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin: 0;
    padding: 12px var(--space-gutter);
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
  }
  .site-header.site-header #site-nav.open { display: grid; }
  .site-header #site-nav > a,
  .site-header #site-nav .industries-toggle {
    width: 100%;
    font-size: 16px;
    white-space: normal;
  }
  .site-header #site-nav .industries-toggle { justify-content: space-between; }
  .site-header #site-nav .industry-links {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    margin: 4px 0;
    padding: 8px;
    box-shadow: none;
  }
  .site-header #site-nav .industry-links a { font-size: 15px; }
  .site-header #site-nav .nav-cta { justify-content: space-between; }
}

/* Static industry and 404 pages use the same updated tokens without editing
   their original stylesheet. Remove stacked trailing paragraph/card gaps. */
#main.industry-page .industry-intro { padding-block: var(--space-section); }
#main.industry-page .industry-back { margin-bottom: 12px; }
#main.industry-page .industry-detail { padding: var(--space-card); }
#main.industry-page .industry-layout,
#main.industry-page .industry-closing-layout { gap: var(--space-layout); }
#main.industry-page p { margin-bottom: var(--space-copy); }
#main.industry-page .industry-lead > :last-child,
#main.industry-page .industry-detail > :last-child,
#main.industry-page .industry-closing-layout > div > :last-child { margin-bottom: 0; }
#main.industry-page .industry-principle { padding-top: var(--space-copy); }
#main.industry-page .industry-closing { padding: var(--space-card); margin-bottom: var(--space-section); }
#main.holding { min-height: 0; padding-block: var(--space-section); }
#main.holding > p { margin-bottom: var(--space-copy); }
body > footer { padding-block: 24px; }
