/* Copyright (C) Rein Ytterberg */

/* ============================================================================
   RODEX DESIGN SYSTEM - Global Styles
   ============================================================================
   This file contains:
   - CSS custom properties (design tokens)
   - Global reset and base styles
   - Layout utilities and shared infrastructure
   - SHARED PATTERN CLASSES (for cross-page consistency)
   - Page-independent components (header, footer, dialogs)

   Each page-specific file (europe.css, space.css, edi.css, partners.css)
   extends these shared patterns with page-unique styling.
   ============================================================================ */

/* ============================================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================================ */

:root {
  --ink: #151b2b;
  --blue: #144bdd;
  --orange: #ed4b0a;
  --light: #f6f8fc;
  --rule: #c2cce0;
}

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    17px/1.55 Arial,
    Helvetica,
    sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

figure,
p,
h1,
h2,
h3,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.65rem);
}

h2 {
  font-size: clamp(2.7rem, 4.9vw, 5rem);
}

h3 {
  font-size: 1.7rem;
}

em {
  font-style: normal;
}

p {
  max-width: 38em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */

.wrap {
  max-width: 1280px;
  margin: auto;
  padding-left: 45px;
  padding-right: 45px;
}

.skip {
  position: fixed;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 40;
}

.skip:focus {
  top: 0;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header {
  height: 70px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(30px, calc((100vw - 1190px) / 2));
  gap: 25px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  width: 140px;
  height: auto;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 0.875rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
} /* ============================================================================
   FOOTER
   ============================================================================ */

/* ============================================================================
   MODAL DIALOGS
   ============================================================================ */

dialog {
  border: 0;
  padding: 20px;
  max-width: min(96vw, 1150px);
  max-height: 95vh;
  width: max-content;
  background: white;
  color: var(--ink);
}

dialog::backdrop {
  background: #071126e6;
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dialog-top p {
  font-size: 1.25rem;
  font-weight: bold;
}

.dialog-top button {
  border: 0;
  background: white;
  padding: 8px;
  font-size: 0.9375rem;
}

.language-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 15px;
}

.language-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: white;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.9375rem;
}

.language-tabs button[aria-selected='true'] {
  border-color: var(--blue);
  color: var(--blue);
}

#app-screen {
  max-height: 72vh;
  width: auto;
  margin: auto;
  object-fit: contain;
}

.screen-note {
  font-size: 0.8125rem;
  margin-top: 10px;
}

/* ============================================================================
   SHARED PATTERN CLASSES
   ============================================================================
   These patterns appear consistently across multiple pages.
   Updating these classes propagates changes to all pages automatically.

   Usage:
   - Buttons: Add class="tab-button" to <button> elements
   - Padding: Add class="section-gutter-sm" or "section-gutter-lg" to <section>
   - Colors: Add class="text-accent", "text-body", or "text-white"
   - Links: Add class="footer-link" to footer and consistent links
   - Grids: Add class="grid-balanced" or "grid-two-column" to containers
   ============================================================================ */

/* Tab/Toggle Button Pattern
   Used in: obstacle-tabs, story-tabs (style.css)
           exchange-tabs, exception-tabs (edi.css)
           condition-tabs, event-steps (space.css)
           route-stops (europe.css)
*/
.tab-button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 9px 0;
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-button[aria-selected='true'],
.tab-button[aria-current='true'] {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: bold;
}

.tab-button:hover {
  border-bottom-color: var(--blue);
  opacity: 0.85;
}

/* Section Padding Patterns
   Used in: .conditions, .edi-exceptions, .edi-foundation, .robotics-space,
           .space-pilot, and other section containers
*/
.section-gutter-sm {
  padding-top: 35px;
  padding-bottom: 35px;
}

.section-gutter-lg {
  padding-top: 55px;
  padding-bottom: 55px;
}

/* Text Color Utilities
   Quick inline color changes without creating new classes
*/
.text-accent {
  color: var(--blue);
}

.text-body {
  color: var(--ink);
}

.text-white {
  color: white;
}

/* Consistent Link Styling
   Used in: footer links, reference links across pages
*/
.footer-link {
  font-size: 0.875rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Grid Layout Patterns
   Used in multiple sections for consistent layouts
*/
.grid-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.grid-balanced {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 65px;
  align-items: end;
}

.flex-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================================
   ORIGINAL PAGE COMPONENTS (from index.html and overview)
   ============================================================================ */

.hero-copy {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  padding-top: 48px;
  padding-bottom: 34px;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-copy strong {
  display: block;
  margin-top: 10px;
  font-weight: 400;
  color: var(--blue);
}

.hero-art {
  max-width: 1440px;
  margin: auto;
}

.hero-art img {
  width: 100%;
  height: auto;
}

.obstacles {
  background: var(--orange);
  color: #fff;
  padding: 70px 0 65px;
  overflow: hidden;
}

.obstacles-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 45px;
}

.obstacles-top em {
  color: #20171a;
}

.obstacles-top > p {
  font-size: 1.25rem;
}

.obstacle-layout {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 55px;
  align-items: center;
}

.obstacle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 30px;
}

.obstacle-tabs button {
  padding: 5px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.obstacle-tabs button[aria-selected='true'] {
  border-bottom-color: #fff;
  color: #fff;
  font-weight: bold;
}

.obstacle-tabs button:hover {
  border-bottom-color: #ffffff90;
}

#obstacle-panel {
  min-height: 215px;
}

#obstacle-panel h3 {
  font-size: 1.65rem;
  margin-bottom: 15px;
  letter-spacing: -0.035em;
}

#obstacle-panel p {
  font-size: 1rem;
  max-width: 400px;
}

.solution {
  color: #20171a;
  margin-top: 18px;
  font-weight: 600;
}

.paperwork-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.exceptions {
  padding-top: 80px;
  padding-bottom: 75px;
}

.chapter-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 35px;
}

.chapter-intro em {
  color: var(--blue);
}

.chapter-intro > p {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.story-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.story-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 12px 0;
  font-size: 1.0625rem;
  color: var(--ink);
}

.story-tabs button[aria-selected='true'] {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: bold;
}

.story {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 65px;
  align-items: center;
}

.story figure {
  position: relative;
}

.story figure img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.story figcaption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.75rem;
  color: #172035;
  background: #ffffffdb;
  padding: 2px 6px;
}

.story h3 {
  font-size: 2.7rem;
  margin-bottom: 19px;
}

.story-copy > p {
  font-size: 1rem;
  max-width: 420px;
}

blockquote {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--blue);
  margin-top: 28px;
  margin-bottom: 12px;
}

.story-copy p.question-context {
  font-size: 0.875rem;
}

.chain-section {
  background: #eaf0ff;
  padding: 70px 0 0;
  overflow: hidden;
}

.chain-section h2 {
  font-size: clamp(2.5rem, 4.25vw, 4.2rem);
}

.chain-section em {
  color: var(--blue);
}

.chain-diagram {
  margin-top: 38px;
}

.forward-caption,
.backward-caption {
  font-size: 0.875rem;
  color: var(--blue);
  padding: 12px 0;
}

.forward-caption {
  border-bottom: 2px solid var(--blue);
}

.backward-caption {
  border-top: 2px solid var(--orange);
  color: #a02e00;
  text-align: right;
}

.chain-stations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.chain-stations div span {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  font-weight: bold;
}

.chain-stations small {
  display: block;
  font-size: 0.875rem;
  margin-top: 4px;
}

.chain-stations > b {
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--blue);
}

.chain-summary {
  margin-top: 24px;
  max-width: 850px;
  font-size: 1rem;
}

.product-glimpse {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 65px;
  align-items: center;
  padding-top: 45px;
  max-width: 1050px;
}

.product-glimpse h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.product-glimpse p {
  font-size: 0.9375rem;
}

.screenshot-peek {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  box-shadow: 0 10px 40px #10265724;
  align-self: end;
  width: 100%;
  overflow: hidden;
}

.screenshot-peek img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: top;
}

.screenshot-peek span {
  display: block;
  padding: 9px 12px;
  background: #fff;
  font-size: 0.75rem;
  color: var(--blue);
}

.twins {
  background: #08152e;
  color: #fff;
  padding: 65px 0;
}

.twin-content {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 30px;
  align-items: center;
}

.twin-content h2 {
  font-size: clamp(2.6rem, 4.25vw, 4.3rem);
  margin-bottom: 25px;
}

.twin-content em {
  color: #8caeff;
}

.twin-content p {
  font-size: 1rem;
  max-width: 440px;
}

.twin-content h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #ff945f;
}

.twin-content figure {
  min-width: 0;
}

.twin-content img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.contact {
  padding-top: 70px;
  padding-bottom: 75px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
  align-items: end;
}

.contact h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
}

.contact em {
  color: var(--blue);
}

.contact > div > p {
  max-width: 470px;
  margin: 22px 0 28px;
  font-size: 1.0625rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 26px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.15s;
}

.cta:hover {
  background: #c83d05;
}

.contact aside {
  padding-bottom: 8px;
}

.contact aside h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact aside p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Billboard/Investor specific */

.product-glimpse {
  grid-template-columns: 0.8fr 1.2fr;
  max-width: none;
  padding: 45px 0 50px;
  gap: 50px;
  align-items: center;
}

.billboard-intro h3 {
  font-size: 2.3rem;
}

.billboard-intro p {
  font-size: 1rem;
  max-width: 370px;
}

.billboard-intro p + p {
  margin-top: 15px;
}

.screens-link {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--blue);
  padding: 0 0 3px;
  margin-top: 22px;
  text-align: left;
  font-size: 0.9375rem;
}

.billboard-real {
  margin-bottom: 20px;
}

.billboard-zoom {
  height: 155px;
  overflow: hidden;
  background: #f4f4f4;
}

.billboard-zoom img {
  width: 1332px;
  max-width: none;
  height: auto;
  transform: translate(-230px, -48px);
}

.billboard-real figcaption {
  font-size: 0.75rem;
  margin-top: 7px;
}

.example-label {
  font-size: 0.75rem;
  margin-bottom: 9px;
}

.priority-messages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.priority-messages li {
  padding: 10px 15px;
  line-height: 1.35;
  border-radius: 6px;
}

.priority-messages b {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 3px;
}

.priority-messages span {
  font-size: 1rem;
  display: block;
}

.priority-red {
  background: #b92331;
  color: white;
}

.priority-yellow {
  background: #ffda64;
  color: #31240a;
}

.priority-blue {
  background: #7a7aca;
  color: white;
}

.priority-green {
  background: #23834d;
  color: white;
}

.contact {
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: stretch;
}

.contact > div {
  display: flex;
  flex-direction: column;
}

.contact h2 {
  font-size: clamp(2.4rem, 3.7vw, 3.65rem);
}

.contact > div > p {
  font-size: 1rem;
  margin: 22px 0 0;
  max-width: 510px;
}

.contact > div > p + p {
  margin-top: 12px;
}

.contact-action {
  margin-top: auto;
  padding-top: 28px;
}

.contact-action .cta {
  font-size: 1rem;
  padding: 14px 20px;
}

.contact-action > span {
  display: block;
  margin-top: 12px;
  font-size: 0.9375rem;
}

.investor-contact em {
  color: var(--orange);
}

.europe-story-link {
  padding-top: 24px;
}

.europe-story-link a {
  font-size: 1rem;
  text-underline-offset: 5px;
}

/* ============================================================================
   ACCESSIBILITY & FOCUS STATES
   ============================================================================ */

button:focus-visible,
a:focus-visible {
  outline: 3px solid #6697ff;
  outline-offset: 5px;
}

.obstacles button:focus-visible {
  outline-color: #191f30;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

@media (min-width: 1550px) {
  .hero-art {
    max-width: 1280px;
  }

  .hero-art img {
    max-height: 580px;
    object-fit: cover;
  }
}

@media (max-width: 1050px) {
  .wrap {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-copy {
    gap: 35px;
  }

  .obstacle-layout {
    gap: 30px;
  }

  .story {
    gap: 35px;
  }

  .chain-stations div span {
    font-size: 1.4rem;
  }

  .contact {
    gap: 45px;
  }

  .product-glimpse {
    gap: 35px;
  }
}

@media (max-width: 950px) {
  .grid-two-column,
  .grid-balanced {
    gap: 30px;
  }

  .product-glimpse {
    grid-template-columns: 1fr 1.3fr;
    gap: 25px;
  }

  .contact {
    gap: 35px;
  }

  .contact-action .cta {
    font-size: 0.9375rem;
  }

  .billboard-intro h3 {
    font-size: 1.9rem;
  }
}

@media (max-width: 900px) {
  .product-glimpse {
    grid-template-columns: 1fr 1.3fr;
    gap: 25px;
  }

  .contact {
    gap: 35px;
  }

  .contact-action .cta {
    font-size: 0.9375rem;
  }

  .billboard-intro h3 {
    font-size: 1.9rem;
  }
}

@media (max-width: 720px) {
  header {
    height: 60px;
    padding: 0 20px;
  }

  .brand img {
    width: 115px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  nav {
    font-size: 0.8125rem;
  }

  header nav a:not(:last-child) {
    display: inline;
  }

  header nav {
    gap: 14px;
    font-size: 0.75rem;
  }

  header {
    height: auto;
    min-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 15px;
    flex-wrap: wrap;
  }

  header nav {
    flex-wrap: wrap;
    gap: 8px 15px;
    font-size: 0.8125rem;
  }

  header nav a {
    white-space: nowrap;
  }

  .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-copy {
    display: block;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-copy p {
    font-size: 1rem;
    margin-top: 22px;
  }

  .hero-art img {
    width: 100%;
    height: auto;
  }

  .obstacles {
    padding: 42px 0;
  }

  .obstacles-top {
    display: block;
    margin-bottom: 28px;
  }

  .obstacles-top > p {
    font-size: 1.0625rem;
    margin-top: 22px;
  }

  .obstacle-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
  }

  .obstacle-tabs {
    gap: 8px 20px;
    margin-bottom: 24px;
  }

  .obstacle-tabs button {
    font-size: 1.25rem;
  }

  #obstacle-panel {
    min-height: 220px;
  }

  #obstacle-panel h3 {
    font-size: 1.5rem;
  }

  .paperwork-art img {
    max-height: 270px;
    object-fit: cover;
  }

  .exceptions {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .chapter-intro {
    display: block;
    margin-bottom: 18px;
  }

  .chapter-intro > p {
    margin-top: 22px;
    font-size: 1rem;
  }

  .story-tabs {
    gap: 20px;
    margin-bottom: 24px;
  }

  .story-tabs button {
    font-size: 0.9375rem;
  }

  .story {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
  }

  .story figure img {
    max-height: 290px;
  }

  .story h3 {
    font-size: 2.2rem;
  }

  .story-copy > p {
    max-width: none;
  }

  blockquote {
    font-size: 1.55rem;
    margin-top: 20px;
  }

  .chain-section {
    padding-top: 45px;
  }

  .chain-section h2 {
    font-size: 2.5rem;
  }

  .chain-diagram {
    margin-top: 27px;
  }

  .chain-stations {
    gap: 5px;
  }

  .chain-stations div {
    min-width: 0;
    flex: 1;
  }

  .chain-stations div span {
    font-size: 1rem;
    letter-spacing: -0.03em;
  }

  .chain-stations small {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .chain-stations > b {
    font-size: 1.5rem;
    margin: 0 4px;
  }

  .forward-caption,
  .backward-caption {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .chain-summary {
    font-size: 0.9375rem;
  }

  .product-glimpse {
    display: block;
    padding-top: 30px;
  }

  .product-glimpse h3 {
    font-size: 1.6rem;
  }

  .product-glimpse p {
    font-size: 0.875rem;
  }

  .screenshot-peek {
    margin-top: 25px;
    max-width: 430px;
  }

  .screenshot-peek img {
    height: 130px;
  }

  .twins {
    padding: 42px 0;
  }

  .twin-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .twin-content h2 {
    font-size: 2.5rem;
  }

  .twin-content h3 {
    margin-top: 22px;
  }

  .twin-content figure img {
    max-height: 290px;
  }

  .contact {
    display: block;
    padding-top: 45px;
    padding-bottom: 40px;
  }

  .contact h2 {
    font-size: 2.6rem;
  }

  .contact > div > p {
    font-size: 1rem;
  }

  .contact aside {
    margin-top: 38px;
  }

  .contact aside p {
    font-size: 0.875rem;
  }

  .contact aside h3 {
    font-size: 1.3rem;
  }

  dialog {
    padding: 15px;
  }

  .language-tabs {
    gap: 15px;
  }

  .product-glimpse {
    display: block;
    padding-top: 30px;
    padding-bottom: 35px;
  }

  .billboard-demo {
    margin-top: 28px;
  }

  .billboard-zoom {
    height: 145px;
  }

  .billboard-zoom img {
    width: 1221px;
    transform: translate(-205px, -40px);
  }

  .priority-messages span {
    font-size: 0.9375rem;
  }

  .contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact h2 {
    font-size: 2.6rem;
  }

  .contact > div > p {
    font-size: 1rem;
  }

  .contact-action {
    padding-top: 22px;
  }

  .billboard-intro p {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Shared footer - markup is defined once in footer.js. */
site-footer {
  display: block;
}

.site-footer {
  padding: 22px 0;
  background: var(--ink);
  color: white;
  font-size: 0.875rem;
}

/* Shared navigation and compact landing-page entry points */
site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header {
  position: relative;
  height: auto;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-navigation {
  display: flex;
  gap: 12px 25px;
  align-items: center;
  flex-wrap: wrap;
}
.site-navigation > a,
.site-navigation summary {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
}
.site-navigation summary {
  cursor: pointer;
}
.site-navigation details {
  position: relative;
}
.site-navigation a[aria-current='page'],
.site-navigation .contains-current > summary {
  color: #b8d1ff;
}
.navigation-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 265px;
  background: #fff;
  color: #182c49;
  padding: 8px;
  border: 1px solid #cad4e3;
  border-radius: 7px;
  box-shadow: 0 12px 32px #14243d33;
}
.site-navigation .navigation-menu a {
  display: block;
  padding: 10px 12px;
  color: #182c49;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
}
.site-navigation .navigation-menu a:hover,
.site-navigation .navigation-menu a:focus-visible,
.site-navigation .navigation-menu a[aria-current='page'] {
  color: #1145b8;
  background: #edf3ff;
}
.home-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0;
}
.home-paths a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #164bbd;
  text-decoration: none;
  font-size: 15px;
}
.home-paths a:hover b {
  text-decoration: underline;
}
.home-path-image {
  display: block;
  width: 76px;
  height: 64px;
  flex: 0 0 76px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
}
.chain-path {
  background-image: url('assets/chain-businesses.webp');
}
.resource-path {
  background-image: url('assets/robotics-pilot.webp');
}
.media-path {
  background-image: url('assets/retail-edi.webp');
}
.story-detail-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
}
@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }
  .site-navigation {
    gap: 6px 18px;
    justify-content: flex-end;
  }
  .site-navigation details:nth-of-type(2) .navigation-menu {
    left: auto;
    right: 0;
  }
  .home-paths {
    gap: 14px;
  }
  .home-paths a {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  .site-header {
    flex-direction: column;
    padding: 12px 20px;
  }
  .site-navigation {
    justify-content: flex-start;
    gap: 6px 15px;
  }
  .site-navigation > a,
  .site-navigation summary {
    font-size: 13px;
  }
  .navigation-menu {
    position: fixed;
    left: 16px !important;
    right: 16px !important;
    top: auto;
    min-width: 0;
    margin-top: 6px;
    max-height: 65vh;
    overflow: auto;
  }
  .home-paths {
    grid-template-columns: 1fr;
  }
  .home-paths a {
    flex-direction: row;
    align-items: center;
  }
}

/* Shared sticky header. Compact navigation prevents zoom-induced wrapping. */
body[class] > site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}
html {
  scroll-padding-top: calc(var(--site-header-height, 70px) + 12px);
}
.site-menu-toggle {
  display: none;
  font: inherit;
  cursor: pointer;
  border: 1px solid #9cabc0;
  border-radius: 4px;
  background: transparent;
  color: white;
  padding: 6px 12px;
}
site-header[data-compact] .site-header {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: min(100%, var(--site-visible-width, 100vw));
  transform: translateX(var(--site-pan-x, 0px));
  min-height: 52px;
  height: 52px;
  padding: 6px 12px;
}
site-header[data-compact] .brand {
  flex: 0 1 112px;
  min-width: 0;
}
site-header[data-compact] .brand img {
  display: block;
  width: 100%;
  height: auto;
}
site-header[data-compact] .site-menu-toggle {
  display: block;
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.3;
}
site-header[data-compact] .site-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: max(60px, calc(var(--site-viewport-height, 100dvh) - 64px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #12243f;
  padding: 8px 12px 12px;
  border-top: 1px solid #415169;
  box-shadow: 0 8px 20px #12243f33;
}
site-header[data-compact][data-menu-open] .site-navigation {
  display: block;
}
site-header[data-compact] .site-navigation > a,
site-header[data-compact] .site-navigation summary {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.4;
}
site-header[data-compact] .site-navigation summary::before {
  content: '+ ';
}
site-header[data-compact] .site-navigation details[open] > summary::before {
  content: '− ';
}
site-header[data-compact] .navigation-menu {
  position: static;
  min-width: 0;
  max-height: none;
  margin: 0 0 6px;
  box-shadow: none;
  overflow: visible;
}
site-header[data-compact] .navigation-menu a {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
site-header[data-zoomed] .site-header {
  min-height: 38px;
  height: 38px;
  padding: 2px 6px;
  gap: 6px;
}
site-header[data-zoomed] .brand {
  flex-basis: 80px;
}
site-header[data-zoomed] .site-menu-toggle {
  padding: 4px 7px;
}
/* Keep the evaluation board below the now-sticky shared header. */
.home-with-evaluation .evaluation .board {
  top: calc(var(--site-header-height, 52px) + 8px);
  max-height: calc(100dvh - var(--site-header-height, 52px) - 24px);
  overflow: auto;
}
