/* Synavistra Website - Main CSS Entry Point */
/* PostCSS will bundle all imports into a single file */
/* Self-hosted Noto fonts for GDPR compliance */
/* These fonts are served locally to avoid exposing visitor IPs to Google */
/* IMPORTANT: DO NOT reintroduce Google Fonts CDN links - see CLAUDE.md */
/*
 * Font Weight Range: 400 700
 * These are Google's variable fonts with weight axis supporting 400-700.
 * The font-weight range syntax is valid CSS Fonts Level 4 for variable fonts.
 * Browser support: Chrome 62+, Firefox 62+, Safari 11+, Edge 79+
 */
/* Noto Sans - Latin Extended (German umlauts, etc.) */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Noto Sans - Latin (Basic ASCII) */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Noto Serif - Latin Extended (German umlauts, etc.) */
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Noto Serif - Latin (Basic ASCII) */
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Colors - Synavistra Palette (Dark Theme - always enabled per issue #142) */
  /* Dark theme simplifies QA testing and is the preferred brand presentation */
  --navy: #f5f5f5;
  --teal: #1fb9e8;
  --coral: #ff9575;
  --slate: #95a8b8;
  --off-white: #1b263b;

  /* Semantic Colors */
  --primary: var(--teal);
  --secondary: var(--coral);
  --accent: var(--slate);
  --text-primary: #f5f5f5;
  --text-secondary: #95a8b8;
  --border-color: #444;
  --bg-primary: #1b263b;
  --bg-secondary: #2c3e50;
  --btn-text-on-teal: #0a1929;   /* Dark text on teal backgrounds - 8.94:1 contrast */
  --btn-text-on-coral: #1b1210;  /* Dark text on coral backgrounds - 8.21:1 contrast */
  --text-on-bg-secondary: #9cb2c2;  /* Light text on bg-secondary - 4.65:1 contrast */
  --code-color: var(--navy);  /* Brand guideline: code uses "navy" token (light gray in dark theme) */

  /* Typography */
  --font-serif: 'Noto Serif', Georgia, serif;
  --font-sans: 'Noto Sans', Arial, sans-serif;
  --font-mono: 'Noto Mono', 'Courier New', monospace;

  /* Spacing */
  --spacing-unit: 1rem;

  /* Breakpoints (for CSS media queries) */
  --breakpoint-mobile: 320px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-large: 1280px;
}
/* Color system for themes */
.color-navy { color: var(--navy); }
.color-teal { color: var(--teal); }
.color-coral { color: var(--coral); }
.color-slate { color: var(--slate); }
.bg-navy { background-color: var(--navy); }
.bg-teal { background-color: var(--teal); }
.bg-coral { background-color: var(--coral); }
.bg-slate { background-color: var(--slate); }
/*
 * Typography - GDPR Compliant Font Strategy
 *
 * Uses local() sources only - no external font requests (CDNs, Google Fonts).
 * If Noto fonts are installed locally, they're used. Otherwise, the font stacks
 * in variables.css provide system font fallbacks (Georgia, Arial, Courier New).
 *
 * This approach ensures:
 * - Zero external HTTP requests for fonts
 * - Full GDPR compliance (no third-party data collection)
 * - Fast loading (no font download delay)
 * - Consistent experience for users with Noto fonts installed
 *
 * To install Noto fonts locally (macOS): brew install --cask font-noto-serif font-noto-sans font-noto-sans-mono
 */
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Noto Serif'), local('Noto-Serif');
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Noto Sans'), local('Noto-Sans');
}
@font-face {
  font-family: 'Noto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Noto Mono'), local('Noto-Mono');
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}
/* Site-wide announcement banner */
.site-announcement {
  background-color: var(--teal);
  color: var(--btn-text-on-teal);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.site-announcement p {
  margin: 0;
}
.site-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem;
  gap: 0.125rem;
}
.header-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 87.5%;
  color: var(--teal);
  text-decoration: none;
}
.logo:hover {
  color: var(--coral);
}
.nav-main {
  display: flex;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: var(--teal);
}
/* Mobile navigation - consistent small margins */
@media (max-width: 768px) {
  .site-announcement {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }

  .header-row {
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-menu {
    gap: 0.75rem;
  }

  .nav-menu a {
    font-size: 0.85rem;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .site-announcement {
    font-size: 0.75rem;
  }

  .header-row {
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .nav-menu a {
    font-size: 0.75rem;
  }
}
/* Language Switcher */
.lang-switcher-container {
  margin: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.lang-switcher a {
  text-decoration: none;
  color: var(--slate);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  transition: color 0.3s, background-color 0.3s;
}
.lang-switcher a[aria-current="true"] {
  color: var(--teal);
  font-weight: 600;
}
.lang-switcher a:hover {
  color: var(--teal);
  background-color: var(--bg-secondary);
}
.lang-switcher span {
  color: var(--slate);
}
/* Language switcher focus styles */
.lang-switcher a:focus,
.lang-switcher a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Language switcher responsive */
@media (max-width: 768px) {
  .lang-switcher {
    font-size: 0.8rem;
    gap: 0.25rem;
  }

  .lang-switcher a {
    padding: 0.125rem 0.25rem;
  }
}
@media (max-width: 480px) {
  .lang-switcher {
    font-size: 0.75rem;
  }
}
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding: 2rem 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  text-align: left;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-on-bg-secondary);
}
.build-info {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-bg-secondary);
  margin: 0.5rem auto 0 auto;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}
.footer-nav a {
  color: var(--text-on-bg-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--teal);
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  button {
    width: 100%;
    padding: 0.875rem;
  }

  input, textarea, select {
    width: 100%;
  }
}
/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
/* Body defaults */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  text-align: left;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
/* Main layout */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}
/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: var(--teal);
  color: var(--btn-text-on-teal);
  text-decoration: none;
}
.skip-to-content:focus {
  top: 0;
  left: 0;
}
/* Links */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--coral);
  text-decoration: underline;
}
a:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text-primary);
  font-stretch: 87.5%;  /* Brand guideline: Noto Serif condensed */
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
h2 {
  font-size: 1.875rem;  /* 30px per brand guidelines */
  font-weight: 600;  /* Brand guideline: 600 for H2 */
  color: var(--teal);
}
h3 {
  font-size: 1.375rem;  /* 22px per brand guidelines */
  font-weight: 500;  /* Brand guideline: 500 for H3 */
  color: var(--teal);
}
h4 {
  font-size: 1.125rem;  /* 18px per brand guidelines */
  font-weight: 500;  /* Brand guideline: 500 for H4 */
}
/* Paragraphs */
p {
  margin: 1rem 0;
}
/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}
li {
  margin: 0.5rem 0;
}
/* Code */
code {
  font-family: var(--font-mono);
  background-color: var(--bg-secondary);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: var(--code-color);  /* Brand guideline: use semantic variable for code color */
}
pre {
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
}
/* Blockquotes */
blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.5rem 0;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}
/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}
th, td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}
th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}
tr:nth-child(even) {
  background-color: var(--bg-secondary);
}
/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Buttons */
button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: var(--teal);
  color: var(--btn-text-on-teal);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}
button:hover {
  background-color: var(--coral);
  color: var(--btn-text-on-coral);
}
button:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
/* Button-styled links */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  background-color: var(--teal);
  color: var(--btn-text-on-teal);
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: var(--coral);
  color: var(--btn-text-on-coral);
  text-decoration: none;
}
.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
  background-color: var(--teal);
  color: var(--btn-text-on-teal);
}
.btn-disabled {
  background-color: var(--slate);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}
/* CTA text above buttons */
.cta-text {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text-on-bg-secondary);
}
/* Page intro text */
.intro-text {
  text-align: left;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
/* Enhanced focus for button-styled links */
.btn:focus,
.btn:focus-visible,
.error-nav a:focus,
.error-nav a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 185, 232, 0.3);
}
/* Forms */
input, textarea, select {
  font-family: var(--font-sans);
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
/* No external requests - hide any tracking pixels */
img[src*="google"], img[src*="analytics"], img[src*="facebook"] {
  display: none !important;
}
/* Utility classes */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
/* Error page (404) */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.error-page h1 {
  color: var(--coral);
  font-size: 3rem;
  margin-bottom: 1rem;
}
.error-page p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.error-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.error-nav a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--teal);
  color: var(--btn-text-on-teal);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.error-nav a:hover {
  background-color: var(--coral);
  text-decoration: none;
}
/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* FAQ Section Styles */
.faq-section {
  margin: 3rem 0;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  border-left: 4px solid var(--teal);
}
.faq-section h2 {
  color: var(--teal);
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.faq-question {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.faq-prefix-q {
  color: var(--teal);
  font-weight: 700;
}
.faq-answer {
  color: var(--text-on-bg-secondary);
  line-height: 1.7;
  margin: 0;
}
.faq-prefix-a {
  color: var(--coral);
  font-weight: 600;
}
