/* EUDS Premium CSS - canonical design system tokens */
/* Referenced by pages that use <link rel="stylesheet" href="/assets/css/euds-premium.css"> */
/* Core tokens are inline in each page; this file provides shared overrides */
:root {
  --euds-midnight: #0a0a0f; --euds-obsidian: #12121a; --euds-slate: #1a1a2e;
  --euds-storm: #2d2d44; --euds-mist: #8888aa; --euds-cloud: #c8c8d8;
  --euds-electric: #d4a843; --euds-cyan: #d4a843; --euds-gold: #ffd700; --euds-ember: #d4a843;
}


/* ===== EUDS Wave C responsive containment (SD19 V12 P1/P18) =====
   Shared-layer guarantee: no horizontal overflow and a usable layout at
   336 / 393 / 430 / 768 / 1440 CSS-px and at 200% zoom. Containment only -
   EUDS palette, type (Cinzel/Cormorant/Archivo), parchment default and
   forest/gold are untouched. Appended last so containment wins the cascade. */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
img, svg, video, canvas, iframe, embed, object { max-width: 100%; }
img, svg, video, canvas { height: auto; }
pre { max-width: 100%; overflow-x: auto; }
pre, code, kbd, samp { overflow-wrap: break-word; }
table { max-width: 100%; }
/* wrap link rows and language/theme control rows so neither forces page overflow (P1) */
header nav, .nav, .navbar, .site-nav, .topnav, .toolbar, .controls { flex-wrap: wrap; }
/* 1440 and wider: global body containment above keeps content within the viewport;
   EUDS .container caps at 1200px and centers, so no horizontal overflow at desktop. */
/* phone + small-tablet band (<=768, covers 336/393/430): wide tables become an
   accessible horizontal scroller instead of pushing the page sideways. */
@media (max-width: 768px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* small-phone band (336 / 393 / 430): collapse multi-column grids to one column
   and let every layout track shrink (min-width:0), per mobile-footer-overflow-fix. */
@media (max-width: 430px) {
  [style*="grid-template-columns"], .footer-grid, .euf-grid,
  .grid, [class*="cols-"], [class*="columns"] {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }
  .container, .container-narrow, main, section, article, .card, .panel {
    min-width: 0;
    max-width: 100%;
  }
}
/* ===== end EUDS Wave C responsive containment ===== */
