/* ==========================================================================
   OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow,
   wrapping, ratio, geometry. Loaded first inside @layer od-layout.
   ========================================================================== */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* text helpers */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }

/* ==========================================================================
   ZONEZI Design Tokens — Editorial Obsidian & Metallic Gold
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-obsidian: #0a0a0a;
  --bg-slate: #141416;
  --bg-elevated: #1e1e1e;
  --bg-alabaster: #f7f6f2;
  --bg-stone: #eeece6;
  --bg-white: #ffffff;

  /* Typography Ink (verified >= 4.5:1 against paired surfaces) */
  --ink-on-dark: #f5f4f0;
  --ink-on-dark-muted: #c2bdb2;
  --ink-on-light: #141416;
  --ink-on-light-muted: #524f47;

  /* Metallic Gold Accents */
  --gold-accent: #c2944e;
  --gold-bright: #d8af62;
  --gold-sheen: #e5c988;
  --gold-deep: #9c712d;
  --gold-on-light: #7c561a;
  --gold-tint: rgba(216, 175, 98, 0.14);
  --gold-metallic-grad: linear-gradient(135deg, #e5c988 0%, #d8af62 38%, #c2944e 76%, #b2833d 100%);
  --gold-metallic-grad-hover: linear-gradient(135deg, #eed79f 0%, #e0ba72 40%, #cfa15a 80%, #c2944e 100%);

  /* Hairlines & Borders */
  --border-dark: rgba(245, 244, 240, 0.14);
  --border-dark-strong: rgba(216, 175, 98, 0.44);
  --border-light: rgba(20, 20, 22, 0.12);
  --border-light-strong: rgba(20, 20, 22, 0.28);

  /* Semantic Feedback */
  --status-success-dark: #6ad39a;
  --status-success-light: #18633d;
  --status-error-dark: #f28b82;
  --status-error-light: #9e221b;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 2.6vw, 2.375rem);
  --text-3xl: clamp(2.25rem, 4.2vw, 3.75rem);
  --text-hero: clamp(2.75rem, 6vw, 5.25rem);

  /* Spacing Rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radii */
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-pill: 999px;

  /* Elevation & Shadows */
  --shadow-card-light: 0 12px 32px rgba(11, 11, 13, 0.06);
  --shadow-card-dark: 0 18px 48px rgba(0, 0, 0, 0.48);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.65);

  /* Motion */
  --dur-fast: 180ms;
  --dur-med: 280ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);

  /* Layout */
  --container-max: 1360px;
  --header-height: 76px;
}
