/* ROOT VARIABLES & HIGH-TECH ATHLETIC PALETTE */
:root {
  --stone: #EDEBE7;
  --black: #121212;
  --cobalt: #3158C7;
  --orange: #E36B38;
  --mint: #BFD9CB;
  --white: #FFFFFF;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* BASE STYLING */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--stone);
  color: var(--black);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}

p {
  line-height: 1.6;
  font-size: 1rem;
  color: #3a3a3c;
}

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--orange);
}

ul {
  list-style: none;
}

/* GRID CONTAINER CONSTRAINTS */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
}

/* HEADER AND NAVIGATION */
.site-header {
  background-color: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--cobalt);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-accent {
  background-color: var(--orange);
  color: var(--white);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 800;
}

.primary-navigation ul {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--stone);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  transition: width var(--transition-fast);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--cobalt);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--black);
  border-color: var(--cobalt);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--black);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--orange);
  color: var(--white);
}

.btn-outline {
  border-color: var(--stone);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--black);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* HERO SECTION */
.hero-section {
  background-color: var(--black);
  color: var(--white);
  padding: 6rem 1.5rem 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--cobalt);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(49, 88, 199, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cyber-badge {
  display: inline-block;
  background-color: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: var(--mint);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--stone);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* METRIC BAR */
.snapshot-bar {
  background-color: var(--white);
  border-bottom: 1px solid #dcdad6;
}

.bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--cobalt);
  padding-left: 1rem;
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #7a7a7d;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}

/* SECTION HEADER CONFIGS */
.section-header {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
}

/* THE FORM SPINE - DESKTOP */
.form-spine-section {
  background-color: var(--stone);
}

.spine-grid-wrapper {
  position: relative;
  padding: 2rem 0;
}

.form-spine-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--black);
  transform: translateX(-50%);
  z-index: 1;
}

.spine-branch {
  display: flex;
  width: 50%;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.spine-branch.branch-left {
  left: 0;
  padding-right: 3rem;
  justify-content: flex-end;
}

.spine-branch.branch-right {
  left: 50%;
  padding-left: 3rem;
  justify-content: flex-start;
}

.spine-marker {
  position: absolute;
  top: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--black);
  color: var(--white);
  border: 4px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 3;
}

.spine-branch.branch-left .spine-marker {
  right: -25px;
}

.spine-branch.branch-right .spine-marker {
  left: -25px;
}

.node-win {
  background-color: var(--cobalt);
}

.node-draw {
  background-color: var(--orange);
}

.spine-content-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 4px;
  padding: 1.8rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.team-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
}

.record-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--stone);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.team-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.team-sub {
  font-size: 0.9rem;
  color: #5a5a5d;
  margin-bottom: 1.2rem;
}

/* SCORELINE CHAINS */
.scoreline-chain {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.chain-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
}

.chain-item.win {
  background-color: #eaf1fc;
  border-left: 4px solid var(--cobalt);
  color: var(--cobalt);
}

.chain-item.draw {
  background-color: #fef0ea;
  border-left: 4px solid var(--orange);
  color: var(--orange);
}

.chain-item.loss {
  background-color: #f5ecee;
  border-left: 4px solid #b8324f;
  color: #b8324f;
}

.chain-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  color: var(--white);
}

.win .chain-badge { background-color: var(--cobalt); }
.draw .chain-badge { background-color: var(--orange); }
.loss .chain-badge { background-color: #b8324f; }

.squad-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #edebe7;
  padding-top: 1rem;
  text-align: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-box strong {
  font-size: 1.1rem;
  color: var(--black);
}

.stat-box span {
  font-size: 0.7rem;
  color: #7a7a7d;
  text-transform: uppercase;
}

.font-accent strong {
  color: var(--orange);
}

/* METRIC COMPARISON MODULE */
.metrics-comparison-section {
  background-color: var(--white);
}

.metric-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.metric-column {
  background-color: var(--stone);
  padding: 2.2rem;
  border-radius: 4px;
  border: 2px solid var(--black);
}

.column-header-title {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.8rem;
}

.metric-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.metric-progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  background-color: var(--white);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--cobalt);
}

.dev-shield .progress-fill {
  background-color: var(--mint);
}

.dev-mild .progress-fill {
  background-color: var(--orange);
}

/* HIGH TECH TABLE LEDGER */
.nations-ledger {
  background-color: var(--stone);
}

.ledger-wrapper {
  overflow-x: auto;
  border: 2px solid var(--black);
}

.high-tech-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  text-align: left;
}

.high-tech-table th,
.high-tech-table td {
  padding: 1rem;
  border: 1px solid var(--stone);
  font-size: 0.9rem;
}

.high-tech-table th {
  background-color: var(--black);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.high-tech-table tbody tr:nth-child(even) {
  background-color: #faf9f7;
}

.pos-highlight {
  color: var(--orange);
  font-weight: 800;
}

.inline-chain {
  display: flex;
  gap: 0.5rem;
}

.mini-node {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.mini-node.win { background-color: #eaf1fc; color: var(--cobalt); }
.mini-node.draw { background-color: #fef0ea; color: var(--orange); }
.mini-node.loss { background-color: #f5ecee; color: #b8324f; }

/* EDITORIAL / NEUTRAL SECTION */
.editorial-analysis {
  background-color: var(--white);
}

.grid-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.editorial-card {
  background-color: var(--stone);
  padding: 2.5rem;
  border-radius: 4px;
  border: 2px solid var(--black);
}

.card-tag {
  color: var(--orange);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.card-heading {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.analysis-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.analysis-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
  color: #3a3a3c;
}

.analysis-list li::before {
  content: '■';
  color: var(--cobalt);
  position: absolute;
  left: 0;
  top: 0;
}

.disclaimer-alert {
  margin-top: 1.5rem;
  background-color: #fdf5f2;
  border-left: 4px solid var(--orange);
  padding: 1rem;
  font-size: 0.85rem;
  color: #4a4a4d;
}

/* RESULTS PAGE */
.results-hero {
  background-color: var(--black);
  color: var(--white);
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
}

.search-filter-controls {
  max-width: 680px;
  margin: 2rem auto 0 auto;
}

.search-filter-controls input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--cobalt);
  background-color: var(--white);
  border-radius: 4px;
  color: var(--black);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  margin-bottom: 1rem;
}

.pill-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--stone);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.results-matrix-section {
  background-color: var(--stone);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.group-card {
  background-color: var(--white);
  border: 2px solid var(--black);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.05);
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edebe7;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.group-pill {
  font-weight: 800;
  color: var(--cobalt);
  font-size: 0.9rem;
}

.match-count {
  font-size: 0.75rem;
  color: #7a7a7d;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #edebe7;
}

.match-row:last-child {
  border-bottom: none;
}

.fixture {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
}

.status-marker {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: var(--stone);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}

/* FORM NOTES PAGE */
.notes-hero-section {
  background-color: var(--black);
  color: var(--white);
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
}

.notes-directory-section {
  background-color: var(--stone);
}

.notes-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.editorial-note-card {
  background-color: var(--white);
  border: 2px solid var(--black);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.05);
}

.note-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.note-card-header h3 {
  font-size: 1.4rem;
}

.note-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.note-pill.positive { background-color: #e6f4ea; color: #137333; }
.note-pill.neutral { background-color: #fef7e0; color: #b06000; }
.note-pill.negative { background-color: #fce8e6; color: #c5221f; }

.note-sub-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #7a7a7d;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #edebe7;
  padding-bottom: 0.6rem;
}

.note-narrative {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a3a3c;
  margin-bottom: 1.5rem;
}

.note-scorelines-footer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cobalt);
  background-color: #f1f4fc;
  padding: 0.6rem 0.8rem;
  border-radius: 2px;
}

/* ABOUT PAGE */
.about-hero-section {
  background-color: var(--black);
  color: var(--white);
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
}

.editorial-principles-section {
  background-color: var(--stone);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.principle-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 2.5rem;
  border-radius: 4px;
}

.principle-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--cobalt);
  padding-bottom: 0.5rem;
}

.principle-card p {
  margin-bottom: 1rem;
}

.editorial-policy-box {
  background-color: var(--black);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  border: 2px solid var(--orange);
}

.editorial-policy-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.editorial-policy-box p {
  color: var(--stone);
  margin-bottom: 1rem;
}

/* CONTACT PAGE */
.contact-hero-section {
  background-color: var(--black);
  color: var(--white);
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
}

.contact-form-section {
  background-color: var(--stone);
}

.contact-text-block h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-text-block p {
  margin-bottom: 1.5rem;
}

.contact-info-panel {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 1.8rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.contact-info-panel h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--cobalt);
}

.small-disclaimer {
  font-size: 0.8rem;
  color: #7a7a7d;
  margin-top: 1rem;
}

.cyber-form {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #edebe7;
  border-radius: 4px;
  background-color: #fcfcfc;
  color: var(--black);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
}

.alert-success {
  margin-top: 1.5rem;
  background-color: #eaf6ee;
  border-left: 4px solid #137333;
  padding: 1rem;
  font-size: 0.9rem;
  color: #137333;
}

/* LEGAL PAGES GENERAL */
.legal-page-section {
  background-color: var(--stone);
  padding: 4rem 1.5rem;
}

.text-content {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 3.5rem;
  border-radius: 4px;
  max-width: 880px;
}

.text-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.updated-date {
  font-size: 0.85rem;
  color: #7a7a7d;
  margin-bottom: 2rem;
  border-bottom: 1px solid #edebe7;
  padding-bottom: 1rem;
}

.text-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.text-content p,
.text-content ul {
  margin-bottom: 1.2rem;
}

.text-content ul {
  padding-left: 1.5rem;
  list-style-type: square;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cookie-table th,
.cookie-table td {
  padding: 0.8rem;
  border: 1px solid #edebe7;
  font-size: 0.85rem;
}

.cookie-table th {
  background-color: var(--stone);
  font-weight: 800;
  text-align: left;
}

.cookie-interactive-panel {
  background-color: var(--stone);
  padding: 1.8rem;
  border-radius: 4px;
  margin: 2rem 0;
  border: 1px solid #cac8c4;
}

.cookie-settings-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cookie-status-message {
  font-size: 0.85rem;
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  background-color: var(--black);
  color: var(--stone);
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--orange);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #8a8a8d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.office-address {
  font-style: normal;
  font-size: 0.85rem !important;
  color: var(--stone) !important;
  border-left: 2px solid var(--orange);
  padding-left: 0.8rem;
}

.footer-links h5,
.footer-legal-links h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-links ul,
.footer-legal-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-legal-links a {
  color: #a1a1a5;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-legal-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #2a2a2d;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #6a6a6d;
  line-height: 1.6;
}

/* COOKIE BANNER OVERLAY */
.cookie-banner-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  z-index: 999;
  background-color: var(--black);
  border: 2px solid var(--cobalt);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.cookie-banner-wrapper.hidden {
  transform: translateY(150px);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-content {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-content p {
  color: var(--stone);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-banner-content p a {
  color: var(--mint);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

/* RESPONSIVE DESIGN */

/* Tablet & Smaller Desktop (1200px down) */
@media (max-width: 1200px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (768px down) */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--black);
    border-bottom: 2px solid var(--cobalt);
    padding: 1.5rem;
    transform: translateY(-200%);
    transition: transform var(--transition-medium);
  }

  .primary-navigation.open {
    transform: translateY(0);
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Form Spine to standard stacked nodes */
  .form-spine-line {
    left: 1.5rem;
  }

  .spine-branch {
    width: 100%;
    padding-left: 3.5rem !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
    left: 0 !important;
  }

  .spine-marker {
    left: 1.5rem !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  .metric-comparison-grid,
  .grid-two-col,
  .principles-grid,
  .notes-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

/* Mobile Devices (480px down) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .bar-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .text-content {
    padding: 1.8rem;
  }

  .cookie-settings-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
}