/* ==========================================================================
   EUROPEAN ENTREPRENEURSHIP EVENT ATLAS — STYLESHEET
   Domain: friendflisortbord.com
   Aesthetic: Soft Modern | Voice: Terse Operator
   ========================================================================== */

:root {
  /* Brand Palette */
  --c-founder-ink: #202B32;
  --c-deep-slate: #303D44;
  --c-conf-graphite: #4E5B62;
  --c-signal-grey: #707A7E;
  --c-soft-concrete: #C7CECC;
  --c-event-stone: #D8D4C9;
  --c-warm-sand: #E7DDCB;
  --c-conf-cream: #F3EEE5;
  --c-paper-white: #FBFAF6;

  /* Accent Signals */
  --c-founder-sage: #8FA69B;
  --c-mint-signal: #B8CEC3;
  --c-community-teal: #639194;
  --c-european-blue: #69879D;
  --c-digital-slate-blue: #71899C;
  --c-terracotta: #BD7463;
  --c-warm-coral: #D08E79;
  --c-event-gold: #C5A35B;
  --c-founder-plum: #806571;

  /* Functional Mappings */
  --bg-page: var(--c-paper-white);
  --bg-surface: var(--c-conf-cream);
  --bg-surface-elevated: #FFFFFF;
  --text-main: var(--c-founder-ink);
  --text-muted: var(--c-conf-graphite);
  --text-light: var(--c-signal-grey);
  --border-subtle: #E2DDD3;
  --border-focus: var(--c-community-teal);

  /* Spacing Scale: 4 / 8 / 16 / 24 / 40 / 64px */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-xxl: 64px;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Micro-Surfaces & Soft Modern Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-soft: 0 2px 8px rgba(32, 43, 50, 0.05);
  --shadow-hover: 0 4px 14px rgba(32, 43, 50, 0.09);
  --transition-fast: 0.18s ease-in-out;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-system);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Overflow Prevention */
h1, h2, h3, h4, .brand-text, .footer-domain-link {
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Containers */
.site-container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
  min-width: 0;
}

/* ==========================================================================
   HEADER (NON-STICKY, CLEAN DESKTOP / ACCESSIBLE MOBILE)
   ========================================================================== */
.site-header {
  position: static;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 64px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-founder-ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-icon {
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--c-deep-slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 4px;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--c-community-teal);
}

.nav-link[aria-current="page"] {
  color: var(--c-founder-ink);
  font-weight: 700;
  border-bottom: 2px solid var(--c-community-teal);
}

.nav-cta {
  background-color: var(--c-founder-ink);
  color: var(--c-paper-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--c-deep-slate);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--c-founder-ink);
  margin: 4px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--c-founder-ink);
  color: var(--c-paper-white);
}

.btn-primary:hover {
  background-color: var(--c-deep-slate);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-founder-ink);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--c-deep-slate);
  background-color: var(--c-conf-cream);
}

.btn-card {
  align-self: flex-start;
  margin-top: 12px;
  background-color: var(--c-founder-ink);
  color: var(--c-paper-white);
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-card:hover {
  background-color: var(--c-community-teal);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-outline {
  background: transparent;
  color: var(--c-founder-ink);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: var(--c-warm-sand);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-sage {
  background-color: var(--c-mint-signal);
  color: #17382B;
}

.badge-sand {
  background-color: var(--c-warm-sand);
  color: #382E1E;
}

.meta-tag-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--sp-md);
}

/* ==========================================================================
   HOMEPAGE: HERO SECTION (HARD TEXT / PHOTO SEPARATION)
   ========================================================================== */
.hero-section {
  padding-top: var(--sp-xxl);
  padding-bottom: var(--sp-xxl);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-heading {
  font-size: 2.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--c-founder-ink);
  margin-bottom: var(--sp-md);
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--c-conf-graphite);
  margin-bottom: var(--sp-lg);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}

.hero-metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-signal-grey);
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-founder-ink);
  margin-top: 2px;
}

.hero-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--c-signal-grey);
}

.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-community-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   HOMEPAGE: HORIZONTAL SPLIT CARD SYSTEM
   Desktop: IMAGE (45-50%) -> GAP (24-40px) -> CONTENT (50-55%)
   ========================================================================== */
.cards-section {
  padding-top: var(--sp-xxl);
  padding-bottom: var(--sp-xxl);
}

.section-header {
  margin-bottom: var(--sp-xl);
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-community-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--c-founder-ink);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--c-conf-graphite);
  max-width: 640px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.split-card {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.split-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.split-card-media {
  min-width: 0;
}

.split-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.split-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-community-teal);
  margin-bottom: 8px;
}

.split-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-founder-ink);
  margin-bottom: 10px;
  line-height: 1.25;
}

.split-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-conf-graphite);
  margin-bottom: 14px;
}

.split-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  background-color: var(--c-paper-white);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--c-deep-slate);
  font-weight: 500;
}

/* ==========================================================================
   HOMEPAGE: THE EVENT DECISION ROUTINE
   ========================================================================== */
.routine-section {
  padding-top: var(--sp-xxl);
  padding-bottom: var(--sp-xxl);
  background-color: var(--c-conf-cream);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.routine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.routine-step {
  background-color: var(--c-paper-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-terracotta);
  margin-bottom: 6px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-founder-ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--c-conf-graphite);
  line-height: 1.45;
}

/* ==========================================================================
   TOPIC PAGES (600–900 WORDS, STRUCTURED SECTIONS, NO OVERLAYS)
   ========================================================================== */
.page-layout {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xxl);
}

.page-header {
  margin-bottom: var(--sp-xl);
  max-width: 840px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-founder-ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-standfirst {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--c-conf-graphite);
}

/* Hard Split Detail Card */
.split-detail-card {
  display: grid;
  grid-template-columns: 48% 1fr;
  gap: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: var(--sp-xl);
}

.detail-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.split-detail-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-detail-content h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--c-founder-ink);
}

.split-detail-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-conf-graphite);
  margin-bottom: 14px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  font-size: 0.9rem;
  color: var(--c-conf-graphite);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--c-community-teal);
  border-radius: 50%;
}

.prose-content {
  margin-bottom: var(--sp-xl);
}

.prose-content h2 {
  font-size: 1.5rem;
  color: var(--c-founder-ink);
  margin-top: 36px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.prose-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-conf-graphite);
  margin-bottom: 16px;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.comp-col {
  background-color: var(--c-paper-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.comp-col h3 {
  font-size: 1.05rem;
  color: var(--c-founder-ink);
  margin-bottom: 8px;
}

.comp-col p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--c-conf-graphite);
  margin-bottom: 0;
}

/* Tradeoffs (Good For / Check / Advantages / Limitations) */
.tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.tradeoff-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.tradeoff-box h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--c-founder-ink);
}

.tradeoff-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tradeoff-box li {
  font-size: 0.88rem;
  color: var(--c-conf-graphite);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.tradeoff-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tradeoff-good li::before {
  background-color: #2D7A58;
}

.tradeoff-check li::before {
  background-color: var(--c-event-gold);
}

.tradeoff-advantages li::before {
  background-color: var(--c-community-teal);
}

.tradeoff-limitations li::before {
  background-color: var(--c-terracotta);
}

/* Related Guides */
.related-section {
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-xl);
}

.related-section h3 {
  font-size: 1.25rem;
  color: var(--c-founder-ink);
  margin-bottom: 16px;
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background-color: var(--c-conf-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-community-teal);
}

.related-format {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--c-community-teal);
}

.related-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-founder-ink);
  margin-top: 4px;
  margin-bottom: 10px;
}

.related-action {
  font-size: 0.82rem;
  color: var(--c-deep-slate);
  font-weight: 600;
  margin-top: auto;
}

/* Page CTA Box */
.page-cta-box {
  background-color: var(--c-founder-ink);
  color: var(--c-paper-white);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-cta-box h3 {
  font-size: 1.35rem;
  color: var(--c-paper-white);
}

.page-cta-box p {
  color: var(--c-soft-concrete);
  max-width: 620px;
  font-size: 0.95rem;
}

.page-cta-box .btn-primary {
  background-color: var(--c-community-teal);
  color: #FFFFFF;
}

.page-cta-box .btn-primary:hover {
  background-color: #517a7d;
}

/* ==========================================================================
   CONTACT PAGE & FORM VALIDATION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.contact-form-container {
  min-width: 0;
}

.atlas-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-founder-ink);
  margin-bottom: 6px;
}

.required-mark {
  color: var(--c-terracotta);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-soft-concrete);
  border-radius: var(--radius-sm);
  background-color: var(--c-paper-white);
  color: var(--c-founder-ink);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-community-teal);
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 145, 148, 0.2);
}

.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
  border-color: var(--c-terracotta);
}

.field-error {
  font-size: 0.78rem;
  color: var(--c-terracotta);
  margin-top: 4px;
  min-height: 1.1em;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--c-signal-grey);
  margin-top: 14px;
  line-height: 1.4;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.form-feedback.is-visible {
  display: block !important;
}

.feedback-success {
  background-color: #E2ECE5;
  color: #1A4630;
  border: 1px solid #B8CEC3;
}

.feedback-error {
  background-color: #F8E8E5;
  color: #632318;
  border: 1px solid #D08E79;
}

.contact-info-container {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--c-founder-ink);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--c-conf-graphite);
  margin-bottom: 4px;
}

.info-meta {
  font-size: 0.85rem;
  margin-top: 8px;
}

.info-meta a {
  color: var(--c-community-teal);
  text-decoration: underline;
}

/* Styled Static Map Block */
.location-mockup {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-conf-cream);
}

.map-header {
  background-color: var(--c-deep-slate);
  color: var(--c-paper-white);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-pin-icon {
  color: var(--c-terracotta);
}

.map-body {
  height: 180px;
  position: relative;
  background-color: #E3DCCE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(112, 122, 126, 0.15) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(112, 122, 126, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.map-marker-pin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-pulse {
  width: 14px;
  height: 14px;
  background-color: var(--c-terracotta);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(189, 116, 99, 0.3);
}

.pin-title {
  margin-top: 6px;
  background-color: var(--c-founder-ink);
  color: var(--c-paper-white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   LEGAL PAGES & TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.atlas-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.atlas-table th {
  background-color: var(--c-conf-cream);
  color: var(--c-founder-ink);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.atlas-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--c-conf-graphite);
}

.atlas-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   FOOTER (UNIFIED, ACCESSIBLE, AUDITED DOMAIN LINK)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--c-founder-ink);
  color: var(--c-soft-concrete);
  border-top: 1px solid var(--c-deep-slate);
  padding-top: var(--sp-xxl);
  padding-bottom: var(--sp-xl);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.footer-primary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-paper-white);
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--c-soft-concrete);
  margin-bottom: 16px;
  max-width: 440px;
}

.footer-legal-block {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #A9B3AF;
  border-left: 2px solid var(--c-community-teal);
  padding-left: 12px;
}

.footer-legal-block a {
  color: var(--c-mint-signal);
  text-decoration: underline;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-paper-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: var(--c-soft-concrete);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--c-paper-white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-deep-slate);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #A9B3AF;
}

.footer-domain-audit {
  font-size: 0.82rem;
  color: #A9B3AF;
}

.footer-domain-link {
  color: var(--c-mint-signal);
  font-weight: 700;
  text-decoration: underline;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}

.footer-domain-link:hover {
  color: var(--c-paper-white);
}

/* ==========================================================================
   FIXED BOTTOM COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--c-founder-ink);
  color: var(--c-paper-white);
  border-top: 1px solid var(--c-deep-slate);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding: 16px var(--sp-lg);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  min-width: 0;
}

.cookie-heading {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cookie-desc {
  font-size: 0.82rem;
  color: var(--c-soft-concrete);
  line-height: 1.4;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-buttons .btn-outline {
  color: var(--c-paper-white);
  border-color: var(--c-signal-grey);
}

.cookie-buttons .btn-outline:hover {
  background-color: var(--c-deep-slate);
}

.cookie-buttons .btn-primary {
  background-color: var(--c-community-teal);
}

.cookie-buttons .btn-primary:hover {
  background-color: #517a7d;
}

/* ==========================================================================
   RESPONSIVE DESIGN (320px, 375px, 768px, 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .routine-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-primary {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile State */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 100;
  }

  .nav-menu.is-visible {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 6px 0;
    display: block;
    width: 100%;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 8px;
  }

  /* Hero Stack */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  /* Cards Stack (Hard Image -> Gap -> Text separation preserved) */
  .split-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .split-detail-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .comparison-grid, .tradeoff-grid, .related-links-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .routine-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-buttons .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.55rem;
  }

  .hero-metadata-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-primary {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}