/* ==========================================================================
   XYCOTA BIOSCIENCES - A-8 SITEWIDE SYSTEM OVERRIDES
   Warm Ivory (#F8F7F2) + Forest Green (#2E4E34) + Pale Sage (#EFF4EC/#B5C7B1)
   + Deep Slate (#243137 / #182226) for Scientific Figure / Evidence Bands
   ========================================================================== */

:root {
  --ivory: #F8F7F2;
  --ivory-soft: #F2EFE8;
  --sage-tint: #EFF4EC;
  --sage-pale: #B5C7B1;
  --sage-border: #D5E0D1;
  --forest: #2E4E34;
  --forest-hover: #233D28;
  --leaf: #76B16D;
  --leaf-deep: #3B6E42;
  --slate: #38474E;
  --slate-deep: #182226;
  --slate-mid: #243137;
  --ink-dark: #1C2B20;
  --ink-body: #2A3B2E;
  --ink-muted: #435548;
  --amber-warn: #92400E;
  --amber-bg: #FEF3C7;
}

html {
  background-color: var(--ivory);
  color: var(--ink-dark);
  scroll-behavior: smooth;
  font-size: 16px;
}

section[id],
div[id],
details[id] {
  scroll-margin-top: 7.5rem;
}

body {
  background-color: var(--ivory);
  color: var(--ink-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.022em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* Global 12px Minimum Type Floor (Section 3.2) */
.text-\[9px\],
.text-\[10px\],
.text-\[11px\],
.text-xs,
small {
  font-size: 0.76rem !important; /* 12.16px minimum */
  line-height: 1.45;
}

/* Color Utility Classes */
.c-forest { color: var(--forest) !important; }
.c-leaf { color: var(--leaf) !important; }
.c-leaf-deep { color: var(--leaf-deep) !important; }
.c-leaf-bright { color: #A8D5A0 !important; }
.c-sage { color: var(--sage-pale) !important; }
.c-slate { color: var(--slate) !important; }
.c-ink { color: var(--ink-dark) !important; }
.c-body { color: var(--ink-body) !important; }
.c-muted { color: var(--ink-muted) !important; }
.c-white { color: #FFFFFF !important; }

/* Eyebrows & Status Indicators (>=12px floor) */
.a9-eyebrow-light {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin: 0 0 0.65rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.a9-eyebrow-light::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--leaf);
  display: inline-block;
}

.a9-eyebrow-dark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A8D5A0;
  margin: 0 0 0.65rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.a9-eyebrow-dark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--leaf);
  display: inline-block;
}

.a9-status-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin: 0;
}

/* Evidence-Level Chips (Ported from Science Page - Section 3.3, >=12px floor) */
.cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.24rem 0.62rem;
  border-radius: 0.32rem;
  display: inline-block;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.cat-obs {
  background: var(--forest);
  color: #FFFFFF !important;
}
.cat-mech {
  background: #FFFFFF;
  color: var(--forest) !important;
  border: 1.5px dashed var(--forest);
}
.cat-human {
  background: #E4EEF2;
  color: #1F3B47 !important;
}
.cat-clin {
  background: #F6EFD9;
  color: #6B5213 !important;
  border: 1px solid #DCC88E;
}

/* Dark Evidence Band (Ported from Science Page - Section 4.2 & 5.4) */
.a8-dark-band {
  background: linear-gradient(170deg, var(--slate-mid) 0%, var(--slate-deep) 100%);
  color: #EEF3EC;
  border-top: 1px solid rgba(181, 199, 177, 0.18);
  border-bottom: 1px solid rgba(181, 199, 177, 0.18);
}

/* Numbered Figure & Source Line System (Section 3.4) */
.a8-fig-meta {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(46, 78, 52, 0.15);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-body);
}
.a8-dark-band .a8-fig-meta {
  border-top-color: rgba(181, 199, 177, 0.22);
  color: #D6E2D3;
}
.a8-fig-meta .fig-num-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
  display: block;
  margin-bottom: 0.2rem;
}
.a8-dark-band .a8-fig-meta .fig-num-title {
  color: #FFFFFF;
}
.a8-fig-meta .fig-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--ink-muted);
  display: block;
}
.a8-dark-band .a8-fig-meta .fig-source {
  color: #C2D0BF;
}
.a8-dark-band .a8-fig-meta .fig-source a {
  color: #BFE3B8;
  text-decoration: underline;
}

/* Thin Branching-Line Divider (Section 4.1: one line splitting into two, forest green at 40% opacity) */
.a8-branch-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.a8-branch-divider svg {
  width: 100%;
  max-width: 34rem;
  height: 28px;
  display: block;
}

/* Buttons */
.a9-btn-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: 0.75rem;
  background-color: var(--forest);
  color: #F8F7F2 !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--forest);
  box-shadow: 0 8px 20px -6px rgba(46, 78, 52, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.a9-btn-forest:hover {
  background-color: var(--forest-hover);
  transform: translateY(-1px);
}

.a9-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.35rem;
  border-radius: 0.75rem;
  background-color: #FFFFFF;
  color: var(--forest) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid rgba(46, 78, 52, 0.32);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.a9-btn-outline:hover {
  border-color: var(--forest);
  background-color: var(--sage-tint);
}

.a9-link-forest {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--forest) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(46, 78, 52, 0.4);
}
.a9-link-forest:hover {
  color: var(--forest-hover) !important;
  text-decoration-color: var(--forest-hover);
}

/* Header & Navigation */
.a9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(248, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 78, 52, 0.14);
}
.a9-header-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .a9-header-inner {
    padding: 0.65rem 2rem;
  }
}
.a9-nav-primary {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .a9-nav-primary {
    display: flex;
  }
}
.a9-nav-link {
  color: var(--ink-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.a9-nav-link:hover {
  color: var(--forest);
}
.a9-nav-link[aria-current="page"] {
  color: var(--forest);
  font-weight: 600;
  border-bottom-color: var(--leaf);
}

/* Hamburger button rule (Section 3.7 & QA 7.6):
   Visible below 1024px, hidden at >=1024px on every page */
.a9-mobile-trigger,
.a9-header-inner > div:has(.a9-mobile-btn),
.a9-header-inner > div:has(#mobileNavBtn),
.a9-header-inner > div:has(#mobile-menu-btn),
.a9-header-inner > div:has(#mobileMenuBtn) {
  display: flex !important;
  align-items: center;
}
.a9-mobile-btn,
#mobileNavBtn,
#mobile-menu-btn,
#mobileMenuBtn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(46, 78, 52, 0.24);
  background: #FFFFFF;
  color: var(--forest);
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .a9-mobile-trigger,
  .a9-header-inner > div:has(.a9-mobile-btn),
  .a9-header-inner > div:has(#mobileNavBtn),
  .a9-header-inner > div:has(#mobile-menu-btn),
  .a9-header-inner > div:has(#mobileMenuBtn),
  .a9-mobile-btn,
  #mobileNavBtn,
  #mobile-menu-btn,
  #mobileMenuBtn,
  .a9-mobile-drawer,
  #mobileNavDrawer,
  #mobile-nav-drawer {
    display: none !important;
  }
}
@media (max-width: 1023.98px) {
  .a9-mobile-drawer:not(.hidden),
  #mobileNavDrawer:not(.hidden),
  #mobile-nav-drawer:not(.hidden) {
    display: block !important;
  }
}

.a9-subbar {
  display: none;
  border-top: 1px solid rgba(46, 78, 52, 0.08);
  background: rgba(239, 244, 236, 0.75);
}
@media (min-width: 1024px) {
  .a9-subbar {
    display: block;
  }
}
.a9-subbar-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}
.a9-subbar-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.a9-subbar a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
}
.a9-subbar a:hover,
.a9-subbar a[aria-current="page"] {
  color: var(--forest);
  font-weight: 600;
}

.a9-mobile-drawer {
  background: var(--ivory);
  border-top: 1px solid rgba(46, 78, 52, 0.14);
  padding: 1rem 1.25rem 1.25rem;
}

/* Missing Tailwind Grid Utilities + Footer Group Spacing Fix (Section 3.7) */
.gap-8 {
  gap: 2rem;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Shared Dark-Slate Footer */
.a9-footer {
  background: #1B2428;
  color: #E2E8F0;
  border-top: 1px solid rgba(181, 199, 177, 0.22);
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
  .a9-footer {
    padding: 4rem 2.5rem;
  }
}
.a9-footer .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem !important;
}
@media (min-width: 768px) {
  .a9-footer .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.25rem !important;
  }
}
.a9-footer-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A8D5A0;
  margin: 0 0 0.75rem 0;
}
.a9-footer ul {
  margin: 0;
  padding: 0;
}
.a9-footer a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.15s ease;
}
.a9-footer a:hover,
.a9-footer a[aria-current="page"] {
  color: #A8D5A0;
}
.a9-footer-accent {
  color: #A8D5A0 !important;
  font-weight: 500;
}

/* Shared Surface Cards & Callouts (15px body floor per Section 3.2) */
.a9-card {
  background: #FFFFFF;
  border: 1px solid #C8D6C5;
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px -12px rgba(46, 78, 52, 0.10);
  font-size: 0.95rem;
}
.a9-card p,
.a9-card-sage p,
.a9-callout p,
.a9-slate-subcard p,
.a9-milestone-card p,
.inv-person-row p,
.inv-timeline-grid p,
.use-today-card p {
  font-size: 0.95rem !important; /* 15.2px >= 15px floor */
  line-height: 1.6;
}
.a9-card-sage {
  background: var(--sage-tint);
  border: 1px solid #C2D3BE;
  border-radius: 1.15rem;
  font-size: 0.95rem;
}
.a9-callout {
  background: var(--sage-tint);
  border: 1px solid rgba(46, 78, 52, 0.24);
  border-left: 4px solid var(--forest);
  border-radius: 0.85rem;
  padding: 1.15rem 1.35rem;
  color: var(--ink-body);
  font-size: 0.95rem;
}

/* Badges & Pills (>=12px floor) */
.a9-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.a9-badge-active {
  background: rgba(118, 177, 109, 0.2);
  color: var(--forest);
  border: 1px solid rgba(59, 110, 66, 0.35);
}
.a9-badge-done {
  background: #E4EFE1;
  color: var(--forest);
  border: 1px solid #9CC295;
}
.a9-badge-amber {
  background: var(--amber-bg);
  color: var(--amber-warn);
  border: 1px solid #F59E0B;
}
.a9-badge-slate {
  background: #E9EEF0;
  color: var(--slate);
  border: 1px solid #CBD5E1;
}

/* Pipeline Table & Card Styling (>=12px headers, >=15px body) */
.a9-pipeline-card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #C4D4C1;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 14px 34px -14px rgba(46, 78, 52, 0.12);
}
@media (min-width: 768px) {
  .a9-pipeline-card {
    padding: 2rem 2.25rem;
  }
}
.a9-pipeline-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  position: relative;
  z-index: 1;
}
.a9-pipeline-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0.75rem 0.9rem;
  border-bottom: 1.5px solid #CEDCCE;
  background: #F4F7F2;
}
.a9-pipeline-table td {
  padding: 1.1rem 0.9rem;
  border-bottom: 1px solid #E3ECE0;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-body);
}
.a9-pipeline-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767px) {
  .a9-pipeline-table thead {
    display: none;
  }
  .a9-pipeline-table,
  .a9-pipeline-table tbody,
  .a9-pipeline-table tr,
  .a9-pipeline-table td {
    display: block;
    width: 100%;
  }
  .a9-pipeline-table tr {
    padding: 1rem 0;
    border-bottom: 1.5px solid #CEDCCE;
  }
  .a9-pipeline-table tr:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .a9-pipeline-table td {
    padding: 0.35rem 0;
    border-bottom: none;
  }
  .a9-pipeline-table td::before {
    content: attr(data-label);
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 0.1rem;
  }
}

/* Selective Deep Slate Figure Surfaces */
.a9-slate-figure {
  background: linear-gradient(160deg, #243D29 0%, #2F3E44 58%, #1E292E 100%);
  color: #F4F7F2;
  border-radius: 1.35rem;
  border: 1px solid rgba(181, 199, 177, 0.28);
  box-shadow: 0 22px 48px -18px rgba(24, 38, 30, 0.28);
}
.a9-slate-figure p,
.a9-slate-figure li {
  color: #E2ECE4 !important;
}
.a9-slate-subcard {
  background: rgba(18, 28, 32, 0.65);
  border: 1px solid rgba(181, 199, 177, 0.24);
  border-radius: 1rem;
}

/* Expandable Disclosures */
details.a9-disclosure {
  border-top: 1px solid #D5E0D1;
  padding-top: 0.75rem;
  margin-top: 0.85rem;
}
details.a9-disclosure summary {
  list-style: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  user-select: none;
}
details.a9-disclosure summary::-webkit-details-marker {
  display: none;
}
details.a9-disclosure summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--sage-tint);
  border: 1px solid #B5C7B1;
  color: var(--forest);
  font-size: 0.85rem;
  line-height: 1;
}
details.a9-disclosure[open] summary::after {
  content: "−";
}

/* Container Helpers */
.a8-container,
.a9-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .a8-container,
  .a9-container {
    padding: 0 2rem;
  }
}

/* Form Controls */
.a9-input,
.a9-select,
.a9-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(46, 78, 52, 0.26);
  border-radius: 0.65rem;
  padding: 0.75rem 0.95rem;
  color: var(--ink-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.a9-input:focus,
.a9-select:focus,
.a9-textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(118, 177, 109, 0.25);
}

/* Crisis Banner for PTSD / Companion Pages (>=12px) */
.a9-crisis-bar {
  background: #FEF3C7;
  border-bottom: 1px solid rgba(180, 83, 9, 0.28);
  color: #78350F;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  text-align: center;
  font-weight: 500;
}
.a9-crisis-bar a {
  color: #78350F;
  font-weight: 700;
  text-decoration: underline;
}


/* ==========================================================================
   BRIEF A-9 SECTION 3: SITEWIDE MOTION LAYER (Disabled under reduced-motion)
   ========================================================================== */
.a9-btn-forest .a9-btn-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  /* 3.1 Section reveals (only when html.js is active; fallback is 100% visible) */
  html.js .a9-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
    transition-delay: var(--a9-stagger, 0ms);
    will-change: opacity, transform;
  }
  html.js .a9-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* 3.2 Hover states:
     - Cards: lift 2px, border shifts to forest green at 35% opacity, 180ms
     - Primary buttons: background darkens 6%, arrow nudges 3px right
     - Text links: underline thickens from 1px to 2px */
  .a9-card,
  .a9-person-card,
  .a9-path-card,
  .inv-person-row,
  .inv-timeline-card,
  .use-today-card,
  .compare-card,
  .bridge-col {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
  }
  .a9-card:hover,
  .a9-person-card:hover,
  .a9-path-card:hover,
  .inv-person-row:hover,
  .inv-timeline-card:hover,
  .use-today-card:hover,
  .compare-card:hover,
  .bridge-col:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(46, 78, 52, 0.35) !important;
  }

  .a9-btn-forest {
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
  }
  .a9-btn-forest:hover {
    background-color: #27422C !important;
  }
  .a9-btn-forest:hover .a9-btn-arrow {
    transform: translateX(3px);
  }

  .a9-link-forest,
  main a.underline {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    transition: text-decoration-thickness 180ms ease, color 180ms ease;
  }
  .a9-link-forest:hover,
  main a.underline:hover {
    text-decoration-thickness: 2px !important;
  }

  /* 3.3 Branching divider: draw left to right over 1.2s on first view */
  html.js .a8-branch-divider path {
    stroke-dasharray: 780;
    stroke-dashoffset: 780;
    transition: stroke-dashoffset 1.2s ease-out;
  }
  html.js .a8-branch-divider.is-drawn path {
    stroke-dashoffset: 0;
  }

  /* 3.4 Figure 1 arrow (Home and Investors): draw left to right over 700ms after left panel reveals */
  html.js .a9-fig1-arrow path {
    stroke-dasharray: 64;
    stroke-dashoffset: 64;
    transition: stroke-dashoffset 700ms ease-out 500ms;
  }
  html.js .a9-fig1-arrow.is-drawn path {
    stroke-dashoffset: 0;
  }
}


/* ==========================================================================
   BRIEF A-9.1 ITEM 1: HEADER, LOGO, AND MOBILE OVERFLOW HOTFIX (P0)
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.a9-header img[src*="xycota-logo"],
header img[src*="xycota-logo"],
img.a9-header-logo {
  height: 36px !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}
@media (min-width: 1024px) {
  .a9-header img[src*="xycota-logo"],
  header img[src*="xycota-logo"],
  img.a9-header-logo {
    height: 44px !important;
    width: auto !important;
  }
}

.a9-footer img[src*="xycota-logo"],
footer img[src*="xycota-logo"],
img.a9-footer-logo {
  height: 36px !important;
  width: auto !important;
  display: block !important;
}

.a9-header-inner {
  width: 100% !important;
  max-width: 76rem !important;
  margin: 0 auto !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  box-sizing: border-box !important;
}
@media (min-width: 1024px) {
  .a9-header-inner {
    padding: 6px 32px !important;
    gap: 1.25rem !important;
  }
}

.a9-subbar-inner {
  max-width: 76rem !important;
  margin: 0 auto !important;
  padding: 4px 32px !important;
  box-sizing: border-box !important;
}

.a9-mobile-btn,
#mobileNavBtn,
#mobile-menu-btn,
#mobileMenuBtn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.a8-branch-divider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.a8-branch-divider svg {
  width: 100% !important;
  max-width: 480px !important;
  height: auto !important;
  display: block !important;
}

/* Missing Tailwind Grid & Col-Span Utilities (Fixes /data-room narrow column collapse) */
.w-auto { width: auto; }
@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
}
