:root {
  --primary-bg: #e0e5ec;      /* Cool mid-tone industrial grey chassis */
  --secondary-bg: #f0f2f5;    /* Slightly lighter raised panel surface */
  --surface: #e0e5ec;         /* Chassis color */
  --recessed: #d1d9e6;        /* Sunken wells, screen bezels, and inputs */
  
  --accent-primary: #ff4757;  /* Safety Orange / Braun Red button triggers */
  --accent-green: #2ecc71;    /* Online/Status OK LED Green */
  
  --text-primary: #2d3436;    /* Dark charcoal ink */
  --text-secondary: #4a5568;  /* Technical labels and metadata */
  
  --border-shadow: #babecc;
  --border-highlight: #ffffff;
  --border-dark: #a3b1c6;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Industrial Neumorphic Shadows */
  --shadow-card: 8px 8px 16px var(--border-shadow), -8px -8px 16px var(--border-highlight);
  --shadow-floating: 12px 12px 24px var(--border-shadow), -12px -12px 24px var(--border-highlight), inset 1px 1px 0 rgba(255,255,255,0.5);
  --shadow-recessed: inset 4px 4px 8px var(--border-shadow), inset -4px -4px 8px var(--border-highlight);
  --shadow-pressed: inset 6px 6px 12px var(--border-shadow), inset -6px -6px 12px var(--border-highlight);
  --shadow-sharp: 4px 4px 8px rgba(0,0,0,0.15), -1px -1px 1px rgba(255,255,255,0.8);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-technical: 'JetBrains Mono', 'Roboto Mono', monospace;
}

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

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Micro-grid technical background texture */
  background-image: 
    linear-gradient(rgba(45, 52, 54, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 52, 54, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Universal Screws and Vents Styling */
.bolted-card {
  position: relative;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
  /* Pure CSS corner screws representing structural elements */
  background-image: 
    radial-gradient(circle at 14px 14px, #a3b1c6 3px, #e0e5ec 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #a3b1c6 3px, #e0e5ec 4px, transparent 5px),
    radial-gradient(circle at 14px calc(100% - 14px), #a3b1c6 3px, #e0e5ec 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #a3b1c6 3px, #e0e5ec 4px, transparent 5px);
}

.vent-strip {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.vent-slot {
  width: 5px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--recessed);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2), inset -1px -1px 2px #ffffff;
}

/* Status LEDs */
.led-indicator {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-technical);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.led-green {
  background-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8), inset 1px 1px 2px rgba(255,255,255,0.5);
  animation: pulse-glow 2s infinite alternate;
}

.led-orange {
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.8), inset 1px 1px 2px rgba(255,255,255,0.5);
  animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Header & Navigation */
.header {
  background-color: var(--primary-bg);
  border-bottom: 2px solid var(--border-shadow);
  box-shadow: 0 4px 12px rgba(186, 190, 204, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-technical);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo svg {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  box-shadow: var(--shadow-recessed);
}

/* Hero Section styled as a technical command panel */
.hero {
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(209, 217, 230, 0.4) 0%, transparent 80%);
  border-bottom: 2px solid var(--border-shadow);
  box-shadow: inset 0 -4px 12px rgba(186, 190, 204, 0.2);
}

.hero-tag {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--recessed);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-recessed);
}

.hero h1 {
  font-size: 3.25rem;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Tactile Physical Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-technical);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 100ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 4px 4px 8px rgba(166,50,60,0.35), -4px -4px 8px rgba(255,255,255,0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.4);
}

.btn-secondary {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  color: var(--accent-primary);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-pressed);
}

/* Grid & Layout Containers */
.section-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border-shadow);
  padding-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: var(--font-technical);
}

.text-link {
  color: var(--text-secondary);
  font-family: var(--font-technical);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.text-link:hover {
  color: var(--accent-primary);
  box-shadow: var(--shadow-floating);
}

/* Bolted Modular Contender Cards */
.contenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.contender-card {
  padding: 2.5rem 2rem 2rem 2rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contender-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating);
}

.contender-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--recessed);
  color: var(--text-primary);
  font-family: var(--font-technical);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-recessed);
}

.contender-info {
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.contender-rank {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contender-name {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contender-group {
  display: inline-block;
  font-family: var(--font-technical);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--recessed);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  box-shadow: var(--shadow-recessed);
}

/* Recessed digital screen readouts for statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-top: 2px solid var(--border-shadow);
  padding-top: 1.5rem;
}

.stat-box {
  background-color: #12161a;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.5);
  border-top: 1px solid rgba(0,0,0,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

/* Screen CRT scanlines overlay */
.stat-box::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.15) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.stat-label {
  display: block;
  font-family: var(--font-technical);
  font-size: 0.65rem;
  color: #8fa0b0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-val {
  font-family: var(--font-technical);
  font-size: 1.6rem;
  font-weight: 800;
  color: #3ae374; /* Neon green terminal active state */
  text-shadow: 0 0 6px rgba(58, 227, 116, 0.6);
  line-height: 1.2;
}

.stat-subtext {
  display: block;
  font-family: var(--font-technical);
  font-size: 0.65rem;
  color: #55e6c1;
  margin-top: 0.25rem;
}

/* Host Nations Section */
.hosts-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
}

.hosts-intro h3 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.hosts-intro p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.host-card {
  background-color: var(--secondary-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.host-flag {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--primary-bg);
  box-shadow: var(--shadow-recessed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.host-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.host-stat {
  font-family: var(--font-technical);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.host-stat strong {
  color: var(--accent-primary);
}

/* Technical / Interactive Tables (Rankings Page) */
.table-wrapper {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-recessed);
  padding: 1rem;
}

.analysis-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}

.analysis-table th {
  background-color: var(--primary-bg);
  color: var(--text-secondary);
  font-family: var(--font-technical);
  font-weight: 700;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-shadow);
}

.analysis-table tbody tr {
  background-color: var(--secondary-bg);
  transition: all 0.15s ease;
}

.analysis-table tbody tr:hover {
  transform: scale(1.005);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.analysis-table td {
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border-shadow);
  color: var(--text-primary);
}

.analysis-table td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.analysis-table td:last-child {
  border-right: 1px solid var(--border-shadow);
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.analysis-table .rank-col {
  font-family: var(--font-technical);
  font-weight: 700;
  color: var(--accent-primary);
  width: 70px;
}

.analysis-table .country-col {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1rem;
}

.analysis-table .prob-col {
  font-family: var(--font-technical);
  font-weight: 700;
  color: var(--accent-primary);
}

.analysis-table .odds-col {
  font-family: var(--font-technical);
  color: var(--text-secondary);
  font-weight: 700;
}

/* Recessed Search Bar and Custom Inputs */
.table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.search-input {
  background-color: var(--primary-bg);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-technical);
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  width: 320px;
  outline: none;
  box-shadow: var(--shadow-recessed);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.search-input:focus {
  box-shadow: var(--shadow-recessed), 0 0 0 2px var(--accent-primary);
}

.filter-select {
  background-color: var(--primary-bg);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-technical);
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.filter-select:active {
  box-shadow: var(--shadow-pressed);
}

/* Country Cards Database page */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.country-card {
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.country-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-top: 0.25rem;
}

.country-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.country-card-meta {
  font-family: var(--font-technical);
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.country-card-meta span {
  background-color: var(--recessed);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-recessed);
}

.country-card-rank {
  color: var(--accent-primary) !important;
  font-weight: 800;
}

.country-metric-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 2px solid var(--border-shadow);
  padding-top: 1.25rem;
  margin-top: auto;
}

.country-metric-item {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-technical);
  font-size: 0.8rem;
}

.country-metric-label {
  color: var(--text-secondary);
}

.country-metric-value {
  font-weight: 700;
  color: var(--text-primary);
}

.country-metric-value.highlight {
  color: var(--accent-primary);
}

/* Group Stage Modules */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.group-card {
  padding: 2rem;
}

.group-header {
  border-bottom: 2px solid var(--border-shadow);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.group-subtitle {
  font-family: var(--font-technical);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

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

.group-team-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--secondary-bg);
  box-shadow: var(--shadow-card);
}

.group-team-item:first-child {
  border-left: 4px solid var(--accent-primary);
}

.group-team-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.group-team-rank {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 800;
}

.group-team-name {
  font-weight: 800;
  color: var(--text-primary);
}

.group-team-stat {
  font-family: var(--font-technical);
  font-size: 0.85rem;
  text-align: right;
}

.group-team-stat strong {
  color: var(--accent-primary);
}

.group-team-stat span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Guide & Reference layouts */
.guide-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.guide-section {
  padding: 2.5rem;
}

.guide-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.guide-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.term-definition {
  background-color: var(--secondary-bg);
  border-left: 4px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-card);
}

.term-title {
  font-family: var(--font-technical);
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.sidebar-box {
  background-color: var(--primary-bg);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.sidebar-box h4 {
  font-family: var(--font-technical);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-shadow);
  padding-bottom: 0.5rem;
}

.sidebar-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-box li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sidebar-box li::before {
  content: "•";
  color: var(--accent-primary);
  font-weight: 800;
}

/* Legal & Policy documents */
.legal-layout {
  padding: 3rem;
  max-width: 850px;
  margin: 3rem auto;
}

.legal-layout h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-shadow);
  padding-bottom: 1rem;
}

.legal-layout h3 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-technical);
  text-transform: uppercase;
}

.legal-layout p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-layout ul {
  margin-left: 2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-layout li {
  margin-bottom: 0.75rem;
}

/* Industrial Footer Section */
.footer {
  background-color: var(--primary-bg);
  border-top: 2px solid var(--border-shadow);
  padding: 5rem 2rem 3rem;
  margin-top: 6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  border-bottom: 2px solid var(--border-shadow);
  padding-bottom: 3.5rem;
  margin-bottom: 2.5rem;
}

.footer-info {
  max-width: 450px;
}

.footer-logo {
  font-family: var(--font-technical);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 4rem;
}

/* Improved, tactile button-like styling for Footer links */
.footer-links-col h4 {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-shadow);
  padding-bottom: 0.5rem;
}

.footer-links-col {
  flex: 1;
  min-width: 180px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-col ul li {
  display: block;
}

.footer-links-col ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background-color: var(--secondary-bg);
  color: var(--text-secondary);
  font-family: var(--font-technical);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 2px 2px 5px var(--border-shadow), -2px -2px 5px var(--border-highlight);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-links-col ul li a::after {
  content: "→";
  font-family: var(--font-technical);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
  opacity: 0.5;
}

.footer-links-col ul li a:hover {
  color: var(--accent-primary);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 2px 2px 5px var(--border-shadow), inset -2px -2px 5px var(--border-highlight);
  transform: translateY(1px);
}

.footer-links-col ul li a:hover::after {
  color: var(--accent-primary);
  transform: translateX(3px);
  opacity: 1;
}

.footer-links-col ul li a:active {
  box-shadow: inset 3px 3px 6px var(--border-shadow), inset -3px -3px 6px var(--border-highlight);
  transform: translateY(2px);
}

/* For active link highlights in footer */
.footer-links-col ul li a.active {
  color: var(--accent-primary);
  box-shadow: var(--shadow-recessed);
  border-color: var(--border-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.address-block {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Mobile Responsiveness scaling the physical metaphor */
@media (max-width: 992px) {
  .hosts-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links-group {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hosts-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .footer-links-group {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .table-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input {
    width: 100%;
  }

  .legal-layout {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }
}