:root {
  /* Solarized Dark Core */
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;

  /* Campaign Accents */
  --sage: #9caf88;
  --slate: #5b7c99;
  --accent-cyan: #0ff0fc;

  /* UI System */
  --glass-bg: rgba(0, 43, 54, 0.8);
  --glass-border: rgba(147, 161, 161, 0.15);
  --transition-speed: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  /* Relying on element scroll-margin for precision */
}

/* Navigation Synchronization Targets - Global Offset for Fixed Header */
.rib,
.observer-section,
#contact,
#manifesto,
#decency-act {
  scroll-margin-top: 119px;
  /* Calibrated base for visual gap */
}

#framework {
  scroll-margin-top: 141px;
  /* Calibrated for Framework-specific layout */
}

#audit {
  scroll-margin-top: 91px;
  /* Calibrated for Solvency Monitor structural shift */
}

body {
  background-color: #001e26;
  /* Deeper base than base03 for depth */
  color: var(--base0);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--base2);
}

.glow-text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 3rem;
  background: linear-gradient(to bottom, rgba(0, 43, 54, 0.9), transparent);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
}

nav a {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--base03) !important;
  border-radius: 2px;
}

/* Ensure background doesn't track currentColor's transition to dark */
nav a[style*="--cyan"]:hover {
  background: var(--cyan);
}

nav a[style*="--slate"]:hover {
  background: var(--slate);
}

nav a[style*="--yellow"]:hover {
  background: var(--yellow);
}

nav a[style*="--green"]:hover {
  background: var(--green);
}

nav a[style*="--orange"]:hover {
  background: var(--orange);
}

nav a[style*="--magenta"]:hover {
  background: var(--magenta);
}

nav a[style*="--accent-cyan"]:hover {
  background: var(--accent-cyan);
}

nav a[style*="--red"]:hover {
  background: var(--red);
}

nav a[style*="--base2"]:hover {
  background: var(--base2);
}

.logo {
  font-size: 1.1rem;
  font-family: monospace;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

/* Hero */
.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../Images/APirog 17.webp");
  background-size: 105% auto;
  background-position: 20% 20%;
  overflow: visible !important;
  z-index: 10 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9) !important;
}

/* VIEWPORT-CENTERED SPOTLIGHT OVERLAY */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* X IS LOCKED TO CENTER; Y IS DRIVEN BY VIEWPORT LOGIC */
  background: radial-gradient(
    675px circle at 50% var(--spotlight-y, 50%),
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 43, 54, 0.6) 35%,
    rgba(0, 43, 54, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 0.05s linear;
  /* REDUCED LATENCY FOR SCROLL SYNC */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 5%;
}

.hero-subtitle {
  color: var(--base2);
  font-family: monospace;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: block;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.2);
}

h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.glow-text {
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.2);
}

/* Content System */
.rib-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.rib {
  background: var(--base03);
  /* Uniform section background */
  backdrop-filter: blur(20px);
  border: 1px solid var(--base02);
  /* Solid audit-style border */
  border-radius: 4px;
  padding: 4rem;
  position: relative;
  transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* Manifesto Shadow */
}

.manifesto-shadow {
  background: var(--base03);
  border: 1px solid var(--base02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.rib-title {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--base02);
  padding-bottom: 1rem;
}

.rib-number {
  font-family: monospace;
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0.7;
}

.rib h2 {
  font-size: 2rem;
  color: inherit;
  /* Allow thematic classes to set color */
}

.description {
  color: var(--base0);
  max-width: 600px;
  font-size: 1.1rem;
}

/* Policy Grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
  /* Fix: prevent adjacent cards from stretching during expansion */
}

.policy-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 2px;
  border-left: 2px solid transparent;
  transition:
    background 0.3s,
    transform 0.3s ease;
  cursor: pointer;
  position: relative;
  padding-bottom: 3.5rem;
  /* Space for the toggle text */
}

.policy-card p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease,
    margin-top 0.4s ease;
}

.policy-card.expanded p {
  max-height: 5000px;
  opacity: 1;
  margin-top: 1rem;
}

.policy-card::after {
  content: "[ + ] READ MORE";
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--base01);
  letter-spacing: 1px;
}

.policy-card.expanded::after {
  content: "[ - ] MINIMIZE";
}

.policy-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.blueprint .policy-card {
  border-left-color: var(--yellow);
}

.neighborhood .policy-card {
  border-left-color: var(--green);
}

.power .policy-card {
  border-left-color: var(--orange);
}

.city24 .policy-card {
  border-left-color: var(--cyan);
}

/* Sections */
.observer-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 0;
  /* Remove top margin to allow immediate overlap */
  padding: 6rem 0;
  min-height: 400px;
  position: relative;
  z-index: 1;
  background: none;
}

.observer-section.reverse {
  flex-direction: row-reverse;
}

.observer-image {
  flex: 1;
  height: 500px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-border);
  filter: grayscale(0.2) contrast(1.1);
}

.observer-text {
  flex: 1;
}

/* Footer */
footer {
  padding: 6rem 2rem;
  background: #00151a;
  text-align: center;
  border-top: 1px solid var(--base02);
}

footer p {
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--base01);
}

@media (max-width: 768px) {
  .observer-section,
  .observer-section.reverse {
    flex-direction: column;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .rib {
    padding: 2rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .form-group.full {
    grid-column: span 1;
  }

  .audit-dashboard {
    padding: 1.5rem;
    overflow-x: auto;
  }

  .audit-table {
    min-width: 600px;
  }
}

/* Audit Dashboard System */
.audit-dashboard {
  margin-top: 4rem;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--base02);
  font-family: monospace;
}

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

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--base1);
}

.audit-table th {
  text-align: left;
  padding: 1rem;
  color: var(--cyan);
  border-bottom: 1px solid var(--base02);
  text-transform: uppercase;
}

.audit-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(147, 161, 161, 0.05);
}

.status-badge {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: bold;
}

.status-verified {
  background: rgba(133, 153, 0, 0.2);
  color: var(--green);
  border: 1px solid var(--green);
}

.status-review {
  background: rgba(181, 137, 0, 0.2);
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.meter-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.meter-box {
  flex: 1;
  padding: 1.5rem;
  background: var(--base02);
  border-left: 4px solid var(--cyan);
}

.meter-label {
  font-size: 0.7rem;
  color: var(--base01);
  margin-bottom: 0.5rem;
}

.meter-value {
  font-size: 1.5rem;
  color: var(--base3);
}

/* Neighbor Hub & Contact Systems */
.neighbor-hub {
  margin-top: 4rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--glass-bg);
  padding: 3rem;
  border: 1px solid var(--glass-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full {
  grid-column: span 2;
}

label {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--cyan);
}

::selection {
  background: #0ff0fc;
  color: #001e26;
}

::-moz-selection {
  background: #0ff0fc;
  color: #001e26;
}

input,
select,
textarea {
  background-color: #001a20;
  border: 1px solid var(--base02);
  padding: 1rem;
  color: #93a1a1 !important;
  -webkit-text-fill-color: #93a1a1 !important;
  font-family: inherit;
  caret-color: #0ff0fc !important;
}

select option {
  background-color: var(--base03);
  color: var(--base1);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

/* Override Browser Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #001a20 inset !important;
  -webkit-text-fill-color: #93a1a1 !important;
  transition:
    background-color 5000s ease-in-out 0s,
    color 5000s ease-in-out 0s;
}

.btn.submit,
.btn-submit,
button[type="submit"],
input[type="submit"] {
  display: block !important;
  width: fit-content !important;
  min-width: 250px !important;
  margin: 20px auto !important;
  align-self: center !important;
  justify-self: center !important;
  padding: 12px 60px !important;
  background: transparent !important;
  color: #0ff0fc !important;
  border: 1px solid #0ff0fc !important;
  font-family: "Courier New", Courier, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;

  /* STANDARDIZED GLOW (TONED DOWN) */
  box-shadow: 0 0 8px #0ff0fc !important;
  text-shadow: 0 0 10px #0ff0fc !important;
}

.btn.submit:hover,
.btn-submit:hover,
button[type="submit"]:hover {
  /* MATCHES SITE-WIDE HOVER INTENSITY */
  box-shadow: 0 0 25px #0ff0fc !important;
  background-color: #0ff0fc !important;
}

@media screen and (max-width: 480px) {
  .btn.submit,
  .btn-submit,
  button[type="submit"],
  input[type="submit"] {
    width: 100% !important;
    min-width: 100% !important;
  }
}

.btn-submit:hover {
  background: var(--accent-cyan);
  color: var(--base03);
}

.btn-donate {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
}

.btn-donate:hover {
  background: var(--green);
  color: var(--base03);
}

.btn-social {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-social:hover {
  background: var(--accent-cyan);
  color: var(--base03);
}

.btn-audit-ledger {
  display: inline-block;
  background: #001f2d;
  /* Mid-Tone Slate Blue */
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-audit-ledger:hover {
  background: var(--orange);
  color: #000;
}

.hero .btn-donate {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: column !important;
    padding: 1rem 2rem !important;
    gap: 0.8rem !important;
  }

  .logo {
    font-size: 0.9rem;
  }

  .status {
    display: none;
    /* Hide extraneous info on mobile */
  }

  .observer-section {
    flex-direction: column;
    gap: 2rem;
    margin: 4rem 0;
  }

  .observer-section.reverse {
    flex-direction: column;
  }

  .policy-card::after {
    left: 1.5rem;
    /* Better alignment on mobile */
  }

  /* Solvency Monitor Corrections */
  .meter-container {
    flex-direction: column;
  }

  /* Contact Form Grid Corrections */
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .form-group.full,
  .btn-submit {
    grid-column: 1;
  }

  #formStatus {
    grid-column: 1 !important;
  }
}

/* UNIVERSAL BUTTON ARCHITECTURE */
.btn-pirog,
.btn-pirog:visited {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  background-color: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
  /* RESOLVES SPACING CRUNCH */
}

/* HOVER STATE: HOLLOW INVERT LOGIC */
.btn-pirog:hover {
  color: #002b36 !important;
  /* TEXT MATCHES SOLARIZED DARK */
  text-shadow: none !important;
  border-color: transparent !important;
}

/* SIZE VARIANTS */
.btn-std {
  padding: 10px 20px;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.btn-blueprint-lg {
  padding: 18px 45px;
  letter-spacing: 4px;
  font-size: 1.1rem;
}

/* FINAL GEOMETRY: BUTTON & NAV COMPONENT */
.btn-pirog,
.btn-nav-glow {
  display: inline-block;
  font-family: "Courier New", Courier, monospace !important;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: all 0.25s ease-in-out;
  background-color: transparent;
  cursor: pointer;
  /* FORCE BORDER SPECIFICITY TO KILL WHITE ARTIFACT */
  border-style: solid !important;
  border-width: 1px !important;
}

/* AUDIT BUTTON SIZE */
.btn-pirog {
  padding: 12px 24px;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* NAV COMPACT SCALE: ENSURES SINGLE-LINE FIT */
.btn-nav-glow {
  padding: 3px 6px;
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  margin: 0 1px;
}

/* UNIVERSAL HOVER: HOLLOW INVERT PROTOCOL */
.btn-pirog:hover,
.btn-nav-glow:hover {
  color: #002b36 !important;
  /* MATCH SOLARIZED BACKGROUND */
  text-shadow: none !important;
  border-color: transparent !important;
}

/* PASSIVE GLOW LOCK & BORDER MATCHING */
.color-donate {
  color: #4ade80 !important;
  border-color: #4ade80 !important;
  text-shadow: 0 0 10px #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.color-donate:hover {
  background-color: #4ade80 !important;
  box-shadow: 0 0 25px #4ade80;
}

.color-contact,
.color-map {
  color: #0ff0fc !important;
  border-color: #0ff0fc !important;
  text-shadow: 0 0 10px #0ff0fc;
  box-shadow: 0 0 8px #0ff0fc;
}

.color-contact:hover,
.color-map:hover {
  background-color: #0ff0fc !important;
  box-shadow: 0 0 25px #0ff0fc;
}

/* INCUMBENT GLOW: DUAL-LAYER PASSIVE SHADOW */
.color-incumbent,
.color-power {
  color: #cb4b16 !important;
  border-color: #cb4b16 !important;
  text-shadow: 0 0 12px #cb4b16;
  box-shadow:
    0 0 10px #cb4b16,
    inset 0 0 5px rgba(203, 75, 22, 0.3);
}

.color-incumbent:hover,
.color-power:hover {
  background-color: #cb4b16 !important;
  box-shadow: 0 0 25px #cb4b16;
}

.color-fb {
  color: #1877f2 !important;
  border-color: #1877f2 !important;
  text-shadow: 0 0 10px #1877f2;
  box-shadow: 0 0 8px #1877f2;
}

.color-fb:hover {
  background-color: #1877f2 !important;
  box-shadow: 0 0 25px #1877f2;
}

.color-manifesto {
  color: #d33682 !important;
  border-color: #d33682 !important;
  text-shadow: 0 0 6px #d33682;
  box-shadow: 0 0 6px #d33682;
}

.color-manifesto:hover {
  background-color: #d33682 !important;
  box-shadow: 0 0 15px #d33682;
}

.color-benchmark {
  color: #dc322f !important;
  border-color: #dc322f !important;
  text-shadow: 0 0 6px #dc322f;
  box-shadow: 0 0 6px #dc322f;
}

.color-benchmark:hover {
  background-color: #dc322f !important;
  box-shadow: 0 0 15px #dc322f;
}

.color-24hr {
  color: #2aa198 !important;
  border-color: #2aa198 !important;
  text-shadow: 0 0 6px #2aa198;
  box-shadow: 0 0 6px #2aa198;
}

.color-24hr:hover {
  background-color: #2aa198 !important;
  box-shadow: 0 0 15px #2aa198;
}

.color-neighborhood {
  color: #859900 !important;
  border-color: #859900 !important;
  text-shadow: 0 0 6px #859900;
  box-shadow: 0 0 6px #859900;
}

.color-neighborhood:hover {
  background-color: #859900 !important;
  box-shadow: 0 0 15px #859900;
}

.color-blueprint {
  color: #b58900 !important;
  border-color: #b58900 !important;
  text-shadow: 0 0 6px #b58900;
  box-shadow: 0 0 6px #b58900;
}

.color-blueprint:hover {
  background-color: #b58900 !important;
  box-shadow: 0 0 15px #b58900;
}

.color-decrypt {
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  text-shadow: 0 0 6px #ffff00;
  box-shadow: 0 0 6px #ffff00;
}

.color-decrypt:hover {
  background-color: #ffff00 !important;
  box-shadow: 0 0 15px #ffff00;
}

.color-audit-log {
  color: #5b7c99 !important;
  border-color: #5b7c99 !important;
  text-shadow: 0 0 6px #5b7c99;
  box-shadow: 0 0 6px #5b7c99;
}

.color-audit-log:hover {
  background-color: #5b7c99 !important;
  box-shadow: 0 0 15px #5b7c99;
}

.color-framework {
  color: #eee8d5 !important;
  border-color: #eee8d5 !important;
  text-shadow: 0 0 6px #eee8d5;
  box-shadow: 0 0 6px #eee8d5;
}

.color-framework:hover {
  background-color: #eee8d5 !important;
  box-shadow: 0 0 15px #eee8d5;
}

.color-white {
  color: #ffffff !important;
  border-color: #ffffff !important;
  text-shadow: 0 0 10px #ffffff;
  box-shadow: 0 0 10px #ffffff;
}

.color-white:hover {
  background-color: #ffffff !important;
  box-shadow: 0 0 25px #ffffff;
}

/* SUBPAGE RETURN PROTOCOLS - HIGH INTENSITY VISIBILITY */
.color-ret-blue {
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  text-shadow:
    0 0 10px #ffff00,
    0 0 20px rgba(255, 255, 0, 0.6) !important;
  box-shadow: 0 0 12px rgba(255, 255, 0, 0.4) !important;
}

.color-ret-blue:hover {
  background-color: #ffff00 !important;
  color: #002b36 !important;
  box-shadow: 0 0 30px #ffff00 !important;
}

.color-ret-inc {
  color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  text-shadow:
    0 0 10px #ff8c00,
    0 0 20px rgba(255, 140, 0, 0.6) !important;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.4) !important;
}

.color-ret-inc:hover {
  background-color: #ff8c00 !important;
  color: #002b36 !important;
  box-shadow: 0 0 30px #ff8c00 !important;
}

/* FACEBOOK COMPONENT: CONCENTRATED STENCIL BURN PROTOCOL */
.btn-social,
.btn-social:visited {
  display: inline-block !important;
  padding: 12px 24px !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 0.95rem !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  margin-top: 15px !important;
  transition: all 0.25s ease-in-out !important;

  /* PASSIVE: SOLID BLUE, DARK STENCIL CORE */
  background-color: #1877f2 !important;
  color: #002b36 !important;
  border: 1px solid #1877f2 !important;

  /* DEEP BURN: DARK GLOW INTO THE LIGHT BLUE BACKGROUND */
  text-shadow:
    0 0 4px rgba(0, 43, 54, 0.9),
    0 0 12px rgba(0, 26, 32, 1),
    0 0 20px rgba(0, 0, 0, 0.8) !important;

  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4) !important;
}

.btn-social:hover {
  /* HOVER: INVERTED (HOLLOW CORE, BRIGHT OUTWARD GLOW) */
  background-color: transparent !important;
  color: #1877f2 !important;
  border: 1px solid #1877f2 !important;

  /* NEON BURST OUTWARD */
  text-shadow:
    0 0 5px rgba(24, 119, 242, 0.8),
    0 0 15px rgba(138, 180, 248, 0.9),
    0 0 25px rgba(138, 180, 248, 1) !important;

  box-shadow:
    inset 0 0 10px rgba(24, 119, 242, 0.2),
    0 0 25px rgba(24, 119, 242, 0.6) !important;
}

.btn-social:hover {
  /* HOVER: HOLLOW INVERSION */
  background-color: transparent !important;
  color: #1877f2 !important;
  border: 1px solid #1877f2 !important;
  box-shadow: 0 0 35px #1877f2 !important;
  text-shadow: 0 0 12px #1877f2 !important;
}

@media screen and (max-width: 600px) {
  /* 01. INLINE HEIGHT & ASSET OVERRIDE */
  section.hero {
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background-image: url("../Images/APirog 17.webp") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    overflow: visible !important;
    padding-top: 20px !important;
    padding-bottom: 60px !important;
    z-index: 10 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
  }

  /* 02. INLINE ABSOLUTE OVERRIDE (COLLISION TERMINATOR) */
  /* Neutralizes the HTML style="position: absolute;" constraint on the Leopold quote */
  .leopold-logic-gate {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 90% !important;
    max-width: 100% !important;
    margin: 20px auto 40px auto !important;
    text-align: center !important;
    /* Re-aligns from right-justified for mobile readability */
    order: 1 !important;
    /* Forces the quote to render at the top of the flex stack */
  }

  /* 03. HERO CONTENT NODE ALIGNMENT */
  .hero-content {
    position: relative !important;
    width: 90% !important;
    margin: 0 auto !important;
    text-align: center !important;
    order: 2 !important;
    /* Forces the campaign text to render below the quote */
  }

  /* 04. NAVIGATION BASELINE */
  nav {
    display: block !important;
    position: relative !important;
    padding: 20px 10px !important;
    text-align: center !important;
    width: 100% !important;
    z-index: 10 !important;
    background: transparent !important;
  }

  nav a {
    display: inline-block !important;
    font-size: 10px !important;
    padding: 6px 12px !important;
    margin: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    white-space: nowrap !important;
  }

  /* 05. FORM AXIS ALIGNMENT OVERRIDE */
  /* Converts horizontal desktop row layouts into vertical mobile stacks */
  form,
  form div,
  fieldset,
  fieldset div,
  [class*="form-group"],
  [class*="form-row"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
  }

  /* 06. LABEL COMPRESSION RECOVERY */
  /* Forces labels to expand to full width above their respective input nodes */
  form label,
  form span,
  .contact p,
  [class*="label"] {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
    word-break: normal !important;
    letter-spacing: normal !important;
  }

  /* 07. TYPOGRAPHY SCALING & BREAK REVERSAL */
  /* Disables mid-word severing and scales header text relative to the mobile viewport width */
  h1,
  h2,
  h3,
  h4,
  [class*="title"],
  [class*="heading"] {
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    font-size: clamp(1.2rem, 6.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
  }

  /* 08. FORM STATUS NODE TERMINATION (v2.0 Logic) */
  /* Detects the pre-JavaScript inline attribute string to neutralize the flex override */
  div#formStatus[style*="none"] {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  /* 09. TARGETED FILENAME RECOVERY (09, 11, 20, 21 C) */
  /* Forces physical height and visibility for specific background assets */
  div[style*="APirog 09"],
  div[style*="APirog 11"],
  div[style*="APirog 20"],
  div[style*="APirog 21"],
  .observer-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 350px !important;
    /* Forced mobile viewport presence */
    min-height: 350px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    order: -1 !important;
    /* Positions image above section text */
    clip-path: none !important;
  }

  /* 10. SECTION HEIGHT & OVERFLOW CORRECTION */
  /* Ensures parent sections do not swallow the restored image nodes */
  section.observer-section,
  .observer-section,
  [class*="pillar-section"] {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100px !important;
    overflow: visible !important;
    background: transparent !important;
  }

  /* 11. HEADER BOUNDARY RECOVERY - RECALIBRATED */
  header,
  nav,
  .header-container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    left: 0 !important;
  }

  /* 12. TEXT OVERLAP TERMINATOR (v4.0 SPECIFICITY) */
  /* Forced separation for campaign header and Leopold quote */
  .hero-content,
  .leopold-logic-gate {
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 25px auto !important;
    padding: 0 15px !important;
  }

  /* 13. NAVIGATION NODE: COLOR RECALIBRATION */
  #scrollToTop {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 180px !important;
    max-width: 50% !important;
    /* UPDATED: HEX #002b36 with 0.85 transparency */
    background-color: #001e26 !important;
    border: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    font-family: "Inter", monospace !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3) !important;
    z-index: 9999 !important;
    padding: 12px 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
  }

  /* 14. SELECT MENU DIMENSIONAL LOCK */
  /* Forces dropdowns to respect the parent container's width boundary */
  select,
  .contact-form select,
  [id*="neighborhood"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* Ensures padding is calculated internally */
    appearance: none !important;
    /* Strips browser-specific styling that causes overhang */
    -webkit-appearance: none !important;
    background-position: right 10px center !important;
    /* Recalibrates arrow position */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* PC VERSION: TOTAL SUPPRESSION */
#scrollToTop {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* MOBILE VERSION: CONDITIONAL RELEASE */
@media screen and (max-width: 768px) {
  #scrollToTop {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* RECALIBRATED: CENTERED & +10% SCALE */
.endorsement-card {
  text-align: center;
  /* Enforces centering for inline-block children */
}

.endorser-link {
  display: inline-block;
  padding: 15px;
  text-decoration: none;
  margin-bottom: 1rem;
  /* Removed width: 50% to prevent box expansion beyond image bounds */
}

.endorser-logo {
  width: 220px;
  /* Increased 10% from 200px */
  height: auto;
  display: block;
  margin: 0 auto;
  /* Safety centering */
  filter: drop-shadow(0 0 5px var(--accent-cyan));
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.endorser-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px var(--accent-cyan));
}

/* SHARED COMPONENT ARCHITECTURE */
.endorser-link,
.distinction-link {
  display: inline-block;
  padding: 15px;
  text-decoration: none;
  margin-bottom: 1rem;
}

.endorser-logo,
.distinction-logo {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

/* MDA DISTINCTION: SYNCED TO SYSTEM GLOW (CYAN/WHITE) */
.distinction-logo {
  filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.distinction-logo:hover {
  transform: scale(1.1);
  /* Multi-layered glow: inner white for brightness, outer cyan for theme */
  filter: drop-shadow(0 0 8px #ffffff) drop-shadow(0 0 18px var(--accent-cyan));
}

/* TIER 1 BASELINE: CONTENT SLIP-UNDER ENFORCEMENT */
main,
.content-container,
section:not(.hero) {
  position: relative !important;
  z-index: 1 !important;
}

/* VERSION 3 HARD-LOCK: BYPASSING LEGACY GLOW-TEXT BAGGAGE */
.hero .active-observer-v3,
.active-observer-v3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  text-shadow:
    0 0 10px rgba(0, 26, 32, 1),
    0 0 20px rgba(0, 43, 54, 1),
    0 0 40px rgba(15, 240, 252, 1) !important;
  position: relative !important;
  z-index: 20 !important;
  animation: none !important;
  /* Neutralizes any inherited keyframe bleeding */
  text-align: center;
  margin: 0;
}

.join-the-audit-v1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #0ff0fc !important;
  background: none !important;
  background-image: none !important;
  font-size: 56px;
  text-shadow:
    0 0 10px rgba(0, 26, 32, 1),
    0 0 20px rgba(0, 43, 54, 1),
    0 0 40px rgba(15, 240, 252, 1) !important;
  position: relative !important;
  z-index: 20 !important;
  animation: none !important;
  /* Neutralizes any inherited keyframe bleeding */
  text-align: center;
  margin: 0;
}

.join-the-audit-v2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #0ff0fc !important;
  background: none !important;
  background-image: none !important;
  font-size: 1.1rem;
  padding-top: 28px;
  padding-bottom: 36px;
  max-width: 725px;
  line-height: 1.7rem;
  margin: 0 auto 1.5rem auto;
  text-shadow:
    0 0 10px rgba(0, 26, 32, 1),
    0 0 20px rgba(0, 43, 54, 1),
    0 0 40px rgba(15, 240, 252, 1) !important;
  position: relative !important;
  z-index: 20 !important;
  animation: none !important;
  /* Neutralizes any inherited keyframe bleeding */
  text-align: center;
  margin: 0;
}

@media screen and (max-width: 768px) {
  /* MOBILE HEADER SCROLL RELEASE */
  header,
  nav,
  .header-container {
    position: relative !important;
    top: auto !important;
  }
}

/* --- SHADOW AUDIT COMPONENT v3.2 (PSHL) --- */
#shadow-audits-container .audit-card {
  background: rgba(0, 43, 54, 0.7) !important;
  border: 1px solid #15f0fc !important;
  padding: clamp(15px, 4vw, 25px) !important;
  margin: 30px auto !important;
  max-width: 800px !important;
  /* PC Constraint */
  width: 90% !important;
  /* Mobile Safety */
  font-family: "Courier New", Courier, monospace !important;
  box-shadow:
    inset 0 0 15px rgba(21, 240, 252, 0.1),
    0 0 20px rgba(0, 0, 0, 0.5) !important;
}

#shadow-audits-container .audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #15f0fc;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

#shadow-audits-container .audit-id {
  color: #15f0fc;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#shadow-audits-container .audit-status {
  color: #dc322f;
  font-weight: bold;
  font-size: 0.8rem;
}

#shadow-audits-container .data-point {
  margin-bottom: 8px;
}

#shadow-audits-container .data-point label {
  color: #8ab4f8;
  margin-right: 10px;
  font-size: 0.85rem;
}

#shadow-audits-container .data-point span {
  color: #ffffff;
  font-weight: bold;
}

#shadow-audits-container .audit-divider {
  border: 0;
  border-top: 1px dashed rgba(21, 240, 252, 0.4);
  margin: 20px 0;
}

#shadow-audits-container .audit-findings p {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 8px 0;
  line-height: 1.5;
}

#shadow-audits-container .highlight-warning {
  color: #dc332f;
  font-weight: bold;
  border-bottom: 1px solid #dc332f;
}

#shadow-audits-container .audit-citations {
  margin-top: 25px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  color: #8ab4f8;
}

#shadow-audits-container .audit-citations ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

#shadow-audits-container .audit-citations li {
  margin-bottom: 4px;
}

@media screen and (max-width: 480px) {
  #shadow-audits-container .audit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  #shadow-audits-container .audit-card {
    width: 95% !important;
    padding: 15px !important;
  }

  #shadow-audits-container .highlight-success {
    color: #2bd50df8 !important;
    /* GREEN - Blueprint Target */
    font-weight: bold;
  }
}

/* --- GLOBAL SPACER UTILITY (v3.2 PSHL) --- */
.v-spacer {
  display: block;
  height: 20px;
  /* PC height */
  content: "";
  clear: both;
}

@media screen and (max-width: 480px) {
  .v-spacer {
    height: 15px;
    /* Mobile height */
  }
}

/* Core Section Container */
#technical-biography {
  max-width: 900px;
  margin: 1.9rem auto 1rem auto;
  padding: 4rem 2rem 2rem 2rem;
}

/* Typography Parameters */
#technical-biography h2 {
  color: var(--base2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

#technical-biography h3 {
  color: var(--base2);
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#technical-biography p {
  color: var(--base1);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* Visual Data Synthesis Block */
#technical-biography .animate-on-scroll {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin: 2rem auto 0 auto;
  justify-content: center;
}

#technical-biography .animate-on-scroll .artifact-col,
#technical-biography .animate-on-scroll .portrait-align {
  display: flex;
  width: 20%;
}

#technical-biography .animate-on-scroll .artifact-col {
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

#technical-biography .animate-on-scroll .portrait-align {
  align-items: center;
}

#technical-biography .animate-on-scroll img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--glass-border);
  filter: grayscale(0.2) contrast(1.1);
}

/* Typography Sizing & Spacing */
#why-im-running h2,
#smarter-triple-bottom h2,
#professional-background h2,
#personal-story h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

#why-im-running h3,
#smarter-triple-bottom h3,
#professional-background h3,
#personal-story h3 {
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Direct-Child Targeting: Applies sizing strictly to main text, bypassing quote blocks */
#why-im-running .observer-text > p,
#smarter-triple-bottom .observer-text > p,
#professional-background .observer-text > p,
#personal-story .observer-text > p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* Unified Section Containers (_00 - _07) */
#audit,
#blueprint,
#neighborhood,
#power,
#city24,
#decency-act,
#manifesto,
#contact {
  max-width: 1100px !important;
  /* Expansion to ensure 3-column clearance */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  /* Gutter for Auditor vertical line */
  box-sizing: border-box !important;
  border-left: 2px solid transparent !important;
}

/* Border Color Assignments */
#audit {
  border-left-color: var(--slate) !important;
}

#blueprint {
  border-left-color: var(--yellow) !important;
}

#neighborhood {
  border-left-color: var(--green) !important;
}

#power {
  border-left-color: var(--orange) !important;
}

#city24 {
  border-left-color: var(--cyan) !important;
}

#decency-act {
  border-left-color: var(--red) !important;
}

#manifesto {
  border-left-color: var(--magenta) !important;
}

#contact {
  border-left-color: var(--accent-cyan) !important;
}

/* Grid Restoration Logic */
.blueprint-grid,
.ideas-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  /* Forces 3-column snap */
  width: calc(100% + 1rem) !important;
  /* Compensates for container padding */
  gap: 1.5rem !important;
  margin-left: -0.5rem !important;
  /* Re-centers grid within the new runway */
}

/* Typography Synchronization */
#audit h2,
#blueprint h2,
#neighborhood h2,
#power h2,
#city24 h2,
#decency-act h2,
#manifesto h2,
#contact h2,
.blueprint-item h2 {
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  margin-bottom: 0.5rem !important;
}

#audit p,
#blueprint p,
#neighborhood p,
#power p,
#city24 p,
#decency-act p,
#manifesto p,
#contact p,
.blueprint-item p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  text-align: left !important;
}

/* Subtitle Scaling */
.description {
  font-size: 0.85rem !important;
  opacity: 0.9 !important;
  margin-bottom: 1.2rem !important;
}

/* Item Reset */
.blueprint-item {
  border-left: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.audit-footer {
  margin-top: 2rem;
  padding: 3rem 2rem;
  background-color: #00151a;
  border: 1px solid #93a1a180;
  opacity: 0.6;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.audit-footer p {
  font-family: var(--mono-font);
  font-size: 0.65rem;
  color: #93a1a1;
  opacity: 0.6;
  margin: 0.3rem 0;
  text-align: center;
}

details {
  cursor: crosshair;
}

summary {
  cursor: pointer;
}

/* Unify Base Card Content to Crosshair */
.policy-card,
#full-blueprint-repository .data-card {
  cursor: crosshair;
}

/* Isolate Pointer to Headers Only */
.policy-card [INSERT_HEADER_CLASS],
#full-blueprint-repository .data-card [INSERT_HEADER_CLASS] {
  cursor: pointer;
}

/* 1. Base Containers & Content = Crosshair */
details,
.policy-card,
.data-card,
.policy-card p,
.data-card p,
.audit-content {
  cursor: crosshair !important;
}

/* 2. Interactive Headers = Pointer */
summary,
.policy-card h3,
.data-card h2,
.data-card h3 {
  cursor: pointer !important;
}

/* Mobile Typography Optimization */
@media (max-width: 768px) {
  .audit-header h1 {
    font-size: 1.8rem !important;
    /* Scale down main header */
    line-height: 1.2;
  }

  .audit-subtitle {
    font-size: 0.75rem !important;
    /* Force smaller scale for mobile */
    margin-top: 5px;
  }
}

/* VERIFICATION VAULT STYLING */
.verification-vault {
  margin-top: 20px;
  border: 1px solid rgba(255, 140, 0, 0.4) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

.verification-vault summary {
  padding: 0.8rem 1.2rem !important;
  font-size: 0.75rem !important;
  color: #ff8c00 !important;
  border-bottom: none;
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 15px;
}

.evidence-thumb {
  width: 100%;
  border: 1px solid #444;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
}

.evidence-thumb:hover {
  filter: none;
  filter: brightness(1);
  border-color: var(--green);
}

/* REVISED VAULT STYLING */
.verification-vault {
  margin: 20px 0;
  border: 1px solid rgba(255, 140, 0, 0.3) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  width: 100%;
}

.verification-vault summary {
  padding: 12px 20px !important;
  font-family: var(--mono-font);
  font-size: 0.8rem !important;
  color: var(--green) !important;
  cursor: pointer;
  background: rgba(255, 140, 0, 0.05);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  border-top: 1px solid rgba(255, 140, 0, 0.1);
}

.asset-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-item .label {
  font-size: 0.7rem;
  color: #888;
}

.evidence-thumb {
  width: 100%;
  height: auto;
  border: 1px solid #333;
  transition: 0.3s ease;
}

/* Shadow Economy Theme Overrides */
.intel-report.shadow-economy-theme {
  border-left: 4px solid #ff3b3b;
  background: rgba(20, 20, 20, 0.95);
  color: #e0e0e0;
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: "JetBrains Mono", monospace;
}

.status-tag.confirmed {
  color: #00ff41;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.auditor-note {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  border-top: 1px dashed #444;
  padding-top: 1rem;
}

/* Protocol: Phantom Entry Point Visuals - REVISED */
.phantom-link {
  /* Use alpha channel instead of 'transparent' to maintain hitbox integrity */
  color: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  transition: color 0.3s ease;
  /* Allow selection to ensure the browser treats it as a functional node */
  user-select: auto;
  display: inline-block;
  margin-top: 1rem;
  /* Ensure the span has a defined height/width for the click engine */
  min-width: 50px;
  line-height: 1.2;
}

.phantom-link:hover {
  color: rgba(255, 255, 255, 0.2);
}

.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  padding: 2rem;
  color: #00ff41;
  /* Auditor Green */
  font-family: "JetBrains Mono", monospace;
  overflow-y: auto;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #00ff41;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.terminal-close {
  background: none;
  border: none;
  color: #00ff41;
  cursor: pointer;
  font-size: 1.2rem;
}

#intel-trigger {
  font-size: 1.4rem !important;
  display: inline-block;
  margin-top: 10px;
}

.terminal-content {
  height: 85vh;
  overflow: hidden;
  position: relative;
  background: #000;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.scroll-container {
  display: block;
  /* Force block behavior */
  width: 100%;
  /* Animation handled by AUDITOR_SCROLL_V3 JS override */
}

/* Force each report to a massive height to ensure movement */
.report-entry {
  min-height: 600px;
  padding: 50px 20px;
  border-bottom: 1px dashed #00ff41;
  color: #00ff41;
  font-family: "JetBrains Mono", monospace;
}

@keyframes scrollLinear {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.report-data {
  margin-top: 1rem;
}

/* Ensure Intel Report within terminal follows terminal styling */
.terminal-overlay .intel-report {
  background: transparent;
  border-left: 4px solid #00ff41;
  color: #00ff41;
}

.terminal-overlay .status-tag.confirmed {
  color: #00ff41;
}

.terminal-overlay .report-header,
.terminal-overlay .auditor-note {
  border-color: rgba(0, 255, 65, 0.3);
}

.terminal-overlay .report-body h3,
.terminal-overlay .report-body h4,
.terminal-overlay .report-body strong {
  color: #00ff41;
}

/* Progress Bar Style */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: #0047ab;
  /* Auditor Blue */
  width: 0%;
  z-index: 9999;
}

/* Pulse Animation Logic */
@keyframes portal-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 71, 171, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(0, 71, 171, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 71, 171, 0);
  }
}

.pulse-active {
  animation: portal-pulse 2s ease-in-out infinite;
}

@media (min-width: 769px) {
  #audit-tracker-v5 {
    display: flex !important;
    justify-content: center !important;
  }

  #audit-inner-fill {
    margin: 0 auto !important;
  }
}
