/* ==========================================================================
   1. INTRINSIC THEME CONTROLS & CENTRAL VARIABLES
   ========================================================================== */
:root {
  /* Typography Hierarchy from your Google Font Embed */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Universal Dark Theme Color Grid */
  --bg-primary: #000000;       /* Base absolute black background */
  --bg-dropdown: #ffffff;      /* White dropdown panels matching your screenshot */
  --border-color: #262626;     /* Sleek technical wire hairline separator (always 1px) */
  
  /* Text Tones */
  --text-pure-white: #ffffff;  /* Headings & active text elements */
  --text-muted-white: #d1d5db; /* Default body text off-white */
  --text-dark-gray: #737373;   /* Secondary tracking labels */
  --color-accent: #38bdf8;     /* Wi-Fi technical blue indicator pop */
  
  /* Left Sidebar Slate Palette (Template A) */
  --sidebar-background: #1e293b;  
  --sidebar-text-normal: #cbd5e1; 
  --sidebar-text-heading: #94a3b8;
  --sidebar-link-hover-bg: #0f172a; 

  /* Legacy Axioma variables used by the copied contact/page styles */
  --paper: #ffffff;
  --paper-soft: #f7f7f6;
  --paper-panel: #f5f5f4;
  --ink: #000000;
  --ink-soft: #202020;
  --ink-dim: rgba(0,0,0,0.50);
  --ink-line: rgba(0,0,0,0.28);
  --paper-on-dark: #ffffff;
  --lime: #c8ff3d;
  --pad-x: clamp(24px, 6vw, 72px);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --ease: ease;
}

/* ==========================================================================
   2. GLOBAL INHERITANCE SYSTEM
   ========================================================================== */
html, body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: var(--text-muted-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #000000;
  margin-top: 0px;
}

p, ul, li, ol, dt, dd {
  color: #000000;
}

table {
  color: #000000;
}

table.subtle {
       /* general rule */
  border-collapse: collapse;
}
table.subtle th {
  padding-top: 20px;
  text-align: left;
}
table.subtle th.short,
table.subtle td {
  text-align: left;
  border-bottom: 1px solid #ccc; /* only horizontal lines */
  padding: 8px 10px;
  background: transparent;
}
table.subtle td.short {
  text-align: center;      /* exception for numbers and acronyms */
}
table.subtle tr:last-child td {
  border-bottom: none;
  padding-bottom: 20px; /* optional: remove last line */
}

/* Enforce monospacing across data types and technical metrics instantly */
input, pre, code, textarea, .num-badge, .tech-data-mono {
  font-family: var(--font-mono) !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* ==========================================================================
   3. PERSISTENT NAVIGATION BAR (.gen-nav)
   ========================================================================== */
.gen-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000000;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

.gen-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gen-logo img {
  height: 32px; /* Keeps your png file asset completely crisp */
  width: auto;
  object-fit: contain;
  display: block;
}

.gen-logo span {
  color: var(--text-pure-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#gen-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#gen-menu > li {
  position: relative;
  padding: 0.5rem 0;
}

#gen-menu > li > a {
  color: var(--text-muted-white);
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gen-arrow {
  font-size: 0.65rem;
  color: var(--text-dark-gray);
  vertical-align: middle;
  transition: transform 0.15s ease, color 0.15s ease;
}

#gen-menu > li:hover > a { color: var(--text-pure-white); }
#gen-menu > li:hover .gen-arrow { color: var(--text-pure-white); transform: rotate(180deg); }

/* ==========================================================================
   4. ROBUST LEFT-ALIGNED DROPDOWN SUB-MENUS
   ========================================================================== */
#gen-menu ul {
  position: absolute;
  top: 100%;
  left: -1rem; /* Pulls box left slightly to align internal text with label D */
  padding: 0.5rem 0;
  margin: 0;
  background-color: var(--bg-dropdown);
  min-width: 180px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  list-style: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#gen-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#gen-menu ul li a {
  display: block;
  padding: 0.6rem 1.25rem 0.6rem 1rem; /* Pushes text inward by 1rem to balance left shift */
  color: #1f2937;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
  text-align: left; /* Strict vertical left alignment */
}

#gen-menu ul li a:hover {
  background-color: #f3f4f6;
  color: #000000;
}

/* ==========================================================================
   5. TEMPLATE A MODULE: TWO-PANE APP SYSTEM
   ========================================================================== */
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app-workspace {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: var(--sidebar-background);
  border-right: 1px solid #334155;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.sidebar-category { margin-bottom: 2rem; }
.category-heading { display: block; font-size: 0.75rem; color: var(--sidebar-text-heading); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.sidebar-links { margin: 0; padding: 0; list-style: none; }
.sidebar-links li { margin-bottom: 0.25rem; }

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sidebar-text-normal);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.num-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background-color: #334155; color: #94a3b8; font-size: 0.75rem; border-radius: 4px; }
.sidebar-links li.active a, .sidebar-links a:hover { background-color: var(--sidebar-link-hover-bg); color: var(--text-pure-white); }
.sidebar-links li.active .num-badge, .sidebar-links a:hover .num-badge { background-color: var(--color-accent); color: var(--sidebar-link-hover-bg); }

/* Main Bright Canvas */
.app-main-content {
  flex-grow: 1;
  background-color: #ffffff;
  overflow-y: auto;
  color: #111827;
}

.container-layout {
    display: flex;
    margin-top: 100px /* Use flexbox for layout */
}

.left-column {
    margin-left: 180px; /* Set left margin */
    flex: 1; /* Allow the left column to grow */
}

.right-column {
    flex: 1; /* Allow the right column to grow */
    margin-right: 100px;
}


.article-container {
    width: 100%;
    max-width: 700px; /* Adjust as needed */
    margin: auto; /* Centers the container */
}

.content-container {
  padding: 2rem;
  max-width: 1200px; /* Expands to fit huge data tables wide across the monitor */
  margin: 0 auto;
}


.grid-container {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 15px;

  padding: 20px;

}

.grid-item {

  background: rgb(51, 107, 159);

  padding: 20px;

  text-align: center;

  border-radius: 10px;

}

/* ==========================================================================
   6. TEMPLATE B MODULE: NATURAL PROSE PAGES
   ========================================================================== */
body.clean-content-page {
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.clean-content-page,
body.clean-content-page .app-wrapper {
  overflow-y: auto !important;
  height: auto !important;
}

.standard-main-flow {
  flex-grow: 1;
  background-color: #0e0e0e; /* Sleek graphite tone */
  padding: 4rem 0;
}

.clean-content-page .page-heading-block h1 { color: var(--text-pure-white); }

/* --- THE EYE TRACKING LOCK CONTAINER --- */
.technical-prose-container {
  max-width: 720px; /* Rigorously constraints long-form line lengths to ~70 characters */
  margin: 1.5rem 0;
}

.page-heading-block { margin-bottom: 2rem; }
.text-kicker { display: block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #4d4b4b64; margin-bottom: 0.25rem; }
.page-heading-block h1 { font-size: 2.25rem; font-weight: 600; color: #0f172a; margin: 0; letter-spacing: -0.02em; }
.prose-paragraph { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.75; color: var(--text-muted-white); margin-bottom: 1.5rem; }
.prose-paragraph strong { color: var(--text-pure-white); font-weight: 600; }
.clean-content-page .prose-paragraph { color: var(--text-muted-white); }

/* ==========================================================================
   7. TECHNICAL TABLES & COMPONENT GRAPHICS
   ========================================================================== */
.tech-table-container { margin: 2rem 0; overflow-x: auto; }
.tech-table { width: 100%; border-collapse: collapse; text-align: left; background-color: #0d0d0d; border: 1px solid var(--border-color); font-size: 0.9rem; table-layout: fixed; }
.tech-table th { background-color: #121212; color: var(--text-pure-white); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; padding: 1rem; border-bottom: 2px solid var(--border-color); }
.tech-table td { padding: 0.85rem 1rem; border-bottom: 1px solid #171717; line-height: 1.5; color: #cbd5e1; }
.tech-table tbody tr:hover { background-color: #171717; color: var(--text-pure-white); }
.tech-data-key { color: var(--color-accent); font-weight: 600; }
code.tech-inline { background-color: #262626; color: #f43f5e; padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.813rem; }

.tech-packet-container { margin: 2rem 0; background-color: #050505; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.tech-packet-header { background-color: #121212; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-dark-gray); font-weight: 600; }
.tech-packet-bytes { color: var(--color-accent); }
.tech-packet-stream { margin: 0; padding: 1rem; color: #e5e7eb; font-size: 0.813rem; line-height: 1.6; white-space: pre; overflow-x: auto; }

/* ==========================================================================
   7. TWO-ROW INTRINSIC MAIN SITE FOOTER (Matches Image Screenshot)
   ========================================================================== */
.site-footer {
  background-color: #000000;
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem 2rem; /* Clean vertical breathing space padding */
  box-sizing: border-box;
  margin-top: auto; /* Keeps footer pinned to the bottom of shorter pages */
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* 1. Top Row: Intrinsic 4-Column Grid Structure */
.footer-container {
  display: grid;
  /* Col 1 (Brand) gets 1.6x space, remaining cols split equal fractions */
  grid-template-columns: 1.6fr repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 3rem 2rem; /* Vertical row gap and horizontal column gap */
  margin-bottom: 4rem;
  
}

/* Forces the large brand summary column to span 2 rows vertically */
.footer-hero-group {
  grid-row: span 2;
  padding-right: 2rem;
}

.footer-hero-group h4,
.footer-group h4 {
  font-family: var(--font-display);
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.footer-hero-group p {
  font-family: var(--font-sans);
  color: #FFFFFF;
  font-size: 0.938rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  max-width: 28ch; /* Keeps description from stretching unnaturally wide */
}

/* Interactive link items formatting */
.footer-hero-group a,
.footer-group a {
  display: block;
  color: /* was var(--text-muted-white) */ #FFFFFF;
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-hero-group a:hover,
.footer-group a:hover {
  color: var(--text-pure-white);
}

/* 2. Bottom Row: Copyright Bar and Legal Copies Tracking */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.813rem;
  color: var(--text-dark-gray);
}

.footer-legal a {
  color: var(--text-dark-gray);
}

.footer-legal a:hover {
  color: var(--text-pure-white);
}

/* 3. Small Screen Smartphone Breakpoint Override */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr; /* Stacks all 6 categories vertically on mobile */
    grid-template-rows: auto;
    gap: 2rem;
  }
  
  .footer-hero-group {
    grid-row: span 1;
    padding-right: 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
}


/* ─── FROM AXIOMA work index page ─── */
.page-hero {
  /*  padding: clamp(64px, 9vw, 130px) var(--pad-x) clamp(40px, 5vw, 80px); */
  border-bottom: 1px solid var(--ink-line);
}
/* this is in use and modified for color and bottom margin */
.page-hero .crumb { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: #0000007e; margin-bottom: 6px;}
.page-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 6rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 18ch;
  margin: 0 0 24px;
}
.page-hero .lede { max-width: 60ch; font-size: 1.18rem; color: #0000007e; line-height: 1.5; }

/* -- CONTACT FORM -- */

/* ─── contact page ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding: 64px var(--pad-x); }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 14px; }
.contact-info .office {
  border-top: 1px solid var(--ink-line); padding: 24px 0;
}
.contact-info .office:last-child { border-bottom: 1px solid var(--ink-line); }
.contact-info .office .city { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.contact-info .office address { font-style: normal; color: var(--ink-soft); line-height: 1.5; }
.contact-info .channels { margin-top: 32px; display: grid; gap: 16px; }
.contact-info .channels a { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--ink-line); }
.contact-info .channels .lab { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); min-width: 80px; }

.contact-form {
  background: var(--paper-soft); border-radius: var(--radius);
  padding: 40px; display: grid; gap: 18px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid var(--ink-line); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
  padding: 12px 14px; border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200,255,61,0.45);
}
.contact-form textarea { min-height: 140px; resize: vertical; font-family: var(--sans); }
.contact-form .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.contact-form .small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-dim); letter-spacing: 0.06em; }


/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ink { background: #d90428d6; color: var(--paper); }
.btn-ink:hover { background: #cebaba; color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--ink); color: var(--lime); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper-on-dark); border-color: var(--paper-on-dark); }
.btn-ghost-light:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.divider {
  border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: auto 1fr;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 14px 0;
  align-items: center; gap: 16px;
}

/* For the content container background */

 .grid-container {
    display: grid;
    height: 80%;
    width: 100%
}

.grid-item {
    border: 0px solid #000;
    background-color: rgba(211, 211, 208, 0.139);
    padding: 40px;
    text-align: start;
    justify-self: center;

}

/* ==========================================================================
   CBS LIGHT CONTENT PAGE PATCH
   Keep this block at the END of the stylesheet so it wins over copied template
   rules and duplicate .grid-container / .grid-item definitions.
   ========================================================================== */

html, body {
  background: #ffffff;
  color: #000000;
}

body.clean-content-page {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.standard-main-flow {
  flex-grow: 1;
  background: #ffffff;
  padding: 24px 0 48px;
}

/* The off-white page card visible in the screenshots. */
.content-panel,
.page-panel,
.grid-item.content-panel,
.standard-main-flow > .grid-container > .grid-item {
  box-sizing: border-box;
  width: min(90vw, 1500px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px);
  background: var(--paper-panel);
  border-radius: var(--radius);
  text-align: left;
  justify-self: center;
}

/* Use this only for wrapper layout; do not let older grid-item rules control page width. */
.grid-container.page-container {
  display: grid;
  width: 100%;
  min-height: auto;
  height: auto;
  padding: 24px 0 0;
}

.page-hero {
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 10px;
}

.page-hero .crumb,
.text-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.page-hero h1,
.page-heading-block h1 {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 24px;
}

.page-hero .lede,
.page-heading-block .lede {
  max-width: 60ch;
  font-size: 1.18rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

.technical-prose-container {
  max-width: none;
  margin: 0;
}

.prose-paragraph,
.clean-content-page .prose-paragraph,
p, ul, li, ol, dt, dd,
table {
  color: var(--ink);
}

.clean-content-page .page-heading-block h1 {
  color: var(--ink);
}

hr,
.divider {
  border: 0;
  border-top: 1px solid var(--ink-line);
}

.contact-form {
  background: transparent;
  padding: 0;
}

@media (max-width: 768px) {
  .content-panel,
  .page-panel,
  .grid-item.content-panel,
  .standard-main-flow > .grid-container > .grid-item {
    width: 100%;
    border-radius: 0;
    padding: 32px 24px;
  }

  #gen-menu {
    gap: 1rem;
  }
}
