/* ==========================================================================
   HOMECOST — MODERN Y2K (NEO-Y2K / CYBER-ARCHITECTURAL) UI SYSTEM
   Applied uniformly across Homepage, all 10 Calculators, all 15 Guides,
   and all Editorial / Policy / Methodology pages.
   ========================================================================== */
:root {
  --ink: #0b1026;
  --muted: #3d486b;
  --bg: #eef2ff;
  --surface: #ffffff;
  --chrome-top: #ffffff;
  --chrome-bot: #e3e9ff;
  --green: #1e40ff;
  --cobalt: #1e40ff;
  --magenta: #ff1e8a;
  --lime: #00e68a;
  --acid: #ccff00;
  --cyan: #00d4ff;
  --mint: #e0f7ff;
  --line: #0b1026;
  --soft-line: #c2ceef;
  --peach: #ffe6f4;
  --blue: #e4ecff;
  --lavender: #efe8ff;
  --shadow-hard: 5px 5px 0px #0b1026;
  --shadow-cobalt: 6px 6px 0px #1e40ff;
  --shadow-pink: 6px 6px 0px #ff1e8a;
  --radius-y2k: 16px;
  --radius-pill: 999px;
  --font-sans: "Space Grotesk", "Plus Jakarta Sans", "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 8%, rgba(255, 30, 138, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 90% 14%, rgba(0, 212, 255, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(204, 255, 0, 0.12) 0%, transparent 40%),
    radial-gradient(#b4c2e8 1.25px, transparent 1.25px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 700;
  background: #e6ecff;
  color: var(--cobalt);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.container {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--acid);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 10px 16px;
  font-weight: 800;
  border-radius: 8px;
}
.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

button, input, select, textarea {
  font: inherit;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* -------------------------------------------------------------------------- */
/* Top U.S. Cyber-Status Bar & Sticky Y2K Chrome Header                       */
/* -------------------------------------------------------------------------- */
.us-region-bar {
  background: linear-gradient(90deg, #0b1026 0%, #172259 50%, #0b1026 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.us-region-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}

.us-region-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.us-region-label::before {
  content: "● SYS.US";
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.us-region-label img {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  flex: none;
}

.us-region-units {
  color: #a9c6ff;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 245, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 4px 0 rgba(11, 16, 38, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
  padding: 6px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #e4ebff 100%);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0px var(--ink);
}

.brand:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--cobalt);
}

.brand-accent {
  color: var(--cobalt);
}

.brand-dot {
  color: var(--magenta);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav a:not(.nav-cta) {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
}

.nav a:not(.nav-cta):hover {
  background: #ffffff;
  border-color: var(--ink);
  color: var(--cobalt);
  box-shadow: 2px 2px 0px var(--ink);
}

.nav-cta {
  background: linear-gradient(135deg, #1e40ff 0%, #7b2cbf 55%, #ff1e8a 100%);
  color: #ffffff !important;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 3px 3px 0px var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------------- */
/* Y2K Editorial Home — Hero, Chrome Frames & Edition Line                    */
/* -------------------------------------------------------------------------- */
.edition-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #e5ecff 0%, #ffffff 50%, #ffe6f5 100%);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0px var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.lead-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  padding: 38px 0 54px;
  align-items: center;
}

.lead-copy {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 36px 34px;
  box-shadow: 7px 7px 0px var(--cobalt);
  position: relative;
}

.lead-copy::before {
  content: "● ● ●   HOMECOST_OS // PLANNER.EXE";
  display: block;
  margin: -36px -34px 26px -34px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.editorial-label,
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin: 0 0 14px;
  box-shadow: 2px 2px 0px var(--ink);
  width: fit-content;
}

.lead-copy h1 {
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.04;
  margin: 0 0 22px;
  letter-spacing: -0.045em;
}

.lead-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #1e40ff 0%, #ff1e8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.lead-description {
  font-size: 16px;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 26px;
  color: var(--muted);
}

.editorial-button {
  background: linear-gradient(180deg, #2b50ff 0%, #1530cc 100%);
  color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0px var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.editorial-button:hover {
  background: linear-gradient(180deg, #ff2e93 0%, #d90b6c 100%);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.lead-copy > .underlined-link {
  display: inline-block;
  margin-top: 18px;
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.underlined-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 800;
  color: var(--cobalt);
}

.underlined-link:hover {
  color: var(--magenta);
}

.lead-small {
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 22px 0 0;
  color: var(--muted);
}

.lead-photo {
  margin: 0;
  min-width: 0;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 7px 7px 0px var(--ink);
}

.lead-photo::before {
  content: "◉ VIEWPORT_RENDER // US_RESIDENTIAL_MODEL.PNG";
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px 10px;
  color: var(--cobalt);
}

.lead-photo-frame {
  height: 465px;
  position: relative;
  background: #dce5ff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}

.lead-photo-frame img {
  object-fit: cover;
  object-position: 55% center;
}

.lead-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  padding: 12px 4px 2px;
}

/* -------------------------------------------------------------------------- */
/* Y2K Toolbox Grid (10 Interactive Modules)                                  */
/* -------------------------------------------------------------------------- */
.editorial-tools {
  padding: 48px 0 68px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 84px;
}

.editorial-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  gap: 20px;
}

.editorial-section-head h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  margin: 0;
}

.editorial-section-head > p {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  background: #ffffff;
  border: 2px solid var(--ink);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 3px 3px 0px var(--ink);
}

.editorial-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.editorial-tool {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  position: relative;
}

.editorial-tool::before {
  content: "● ● ●   MODULE_EXEC // CALCULATOR.SYS";
  display: block;
  margin: -20px -22px 16px -22px;
  padding: 7px 14px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 15px 15px 0 0;
}

.editorial-tool:nth-child(9),
.editorial-tool:nth-child(10) {
  grid-column: span 2;
}

.editorial-tool:nth-child(4n + 1) {
  background: linear-gradient(180deg, #ffffff 0%, #e4eeff 100%);
}
.editorial-tool:nth-child(4n + 2) {
  background: linear-gradient(180deg, #ffffff 0%, #e2fff3 100%);
}
.editorial-tool:nth-child(4n + 3) {
  background: linear-gradient(180deg, #ffffff 0%, #ffebf7 100%);
}
.editorial-tool:nth-child(4n + 4) {
  background: linear-gradient(180deg, #ffffff 0%, #f1e8ff 100%);
}

.editorial-tool:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--cobalt);
}

.tool-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px dashed var(--soft-line);
}

.tool-rule span:first-child {
  background: var(--acid);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
}

.tool-rule span:last-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
}

.tool-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  margin-bottom: 6px;
}

.editorial-tool h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.editorial-tool > p:not(.tool-type) {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}

.editorial-tool > .underlined-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------- */
/* Feature Strips, Checklist, Planning Paths & FAQ                            */
/* -------------------------------------------------------------------------- */
.planning-feature {
  padding: 20px 0 40px;
}

.planning-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, #0b1026 0%, #1b2866 60%, #2a1659 100%);
  color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 40px 42px;
  box-shadow: 6px 6px 0px var(--cobalt);
  position: relative;
}

.planning-feature-grid::before {
  content: "◉ SYSTEM_BRIEF // ESTIMATING_LOGIC.SYS";
   grid-column: 1 / -1;
  display: block;
  margin: -40px -42px -20px -42px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #1e40ff 0%, #ff1e8a 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.planning-feature h2,
.project-checklist h2,
.editorial-faq h2 {
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.1;
  margin-bottom: 22px;
}

.planning-feature h2 {
  color: #ffffff;
}

.feature-copy p {
  font-size: 15px;
  line-height: 1.8;
  color: #d6e1ff;
}

.feature-copy .underlined-link {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.project-checklist {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  margin-block: 16px 44px;
  padding: 38px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 60%, #fff0f8 100%);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.project-checklist::before {
  content: "● ● ●   CONTRACT_PROTOCOL // THREE_WRITTEN_RULES.SYS";
  grid-column: 1 / -1;
  display: block;
  margin: -38px -40px -16px -40px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.project-checklist ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.project-checklist li {
  display: flex;
  gap: 20px;
  padding: 20px 22px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0px var(--ink);
}

.project-checklist li > span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: var(--magenta);
  color: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.project-checklist h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.project-checklist li p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}

.planning-paths {
  padding-block: 32px 48px;
}

.planning-paths h2 {
  font-size: clamp(30px, 3.5vw, 40px);
}

.reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 36px;
}

.reading-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.reading-grid article:nth-child(even) {
  background: linear-gradient(180deg, #ffffff 0%, #fff2f9 100%);
}

.reading-grid article::before {
  content: "● ● ●   SPEC_MODULE // GUIDANCE_NOTES";
  display: block;
  margin: -28px -30px 22px -30px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 17px 17px 0 0;
}

.reading-grid h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.reading-grid h3 {
  font-size: 19px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.reading-grid p,
.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--magenta);
}

.editorial-faq {
  margin-block: 12px 44px;
  padding: 38px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #ebfff7 55%, #eef3ff 100%);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-hard);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  position: relative;
}

.editorial-faq::before {
  content: "● ● ●   KNOWLEDGE_QUERY // SYSTEM_FAQ.DOC";
  grid-column: 1 / -1;
  display: block;
  margin: -38px -40px -16px -40px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.editorial-faq details {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0px var(--ink);
}

.editorial-faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editorial-faq details p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 12px 0 0;
}

.editorial-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #ffffff 0%, #e7eeff 100%);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}

.editorial-bottom p {
  margin: 0;
}

.editorial-bottom a {
  font-weight: 800;
  color: var(--cobalt);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* ALL Inner Pages: Y2K OS Hero Window (.inner-heading) & Breadcrumbs         */
/* -------------------------------------------------------------------------- */
.inner-page {
  padding-top: 28px;
  padding-bottom: 88px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  box-shadow: 3px 3px 0px var(--ink);
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}

.breadcrumb a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.inner-heading {
  width: 100%;
  max-width: 100%;
  margin-bottom: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #e8efff 58%, #ffe8f5 100%);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 34px 36px;
  box-shadow: var(--shadow-cobalt);
  position: relative;
}

.inner-heading::before {
  content: "● ● ●   HOMECOST_OS // MODULE_VIEWPORT.EXE";
  display: block;
  margin: -34px -36px 24px -36px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 65%, #ff1e8a 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.inner-heading h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 10px 0 14px;
  max-width: 880px;
}

.inner-heading p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
  max-width: 820px;
  margin-bottom: 10px;
}

.inner-heading p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Calculators, Y2K OS Panels & Digital Readouts                              */
/* -------------------------------------------------------------------------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.calc-panel,
.simple-panel {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 6px 6px 0px var(--ink);
  position: relative;
}

.calc-panel::before,
.simple-panel::before {
  content: "● ● ●   INPUT_WORKSHEET // USER_RATES.SYS";
  display: block;
  margin: -30px -30px 24px -30px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #dfe8ff 0%, #ffd9ef 100%);
  border-bottom: 2px solid var(--ink);
  border-radius: 17px 17px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.calc-panel-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.calc-panel-title h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.calc-panel-title p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #f6f9ff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 13px;
  box-shadow: inset 2px 2px 0px rgba(11, 16, 38, 0.06);
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.field input,
.field select {
  height: 46px;
}

.field textarea {
  min-height: 95px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff;
  outline: none;
  box-shadow: 3px 3px 0px var(--cobalt);
  border-color: var(--cobalt);
}

.field small {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  background: #f2f5ff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}

.checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--cobalt);
}

/* Buttons & Worksheet Actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--ink);
}

.btn-primary {
  background: linear-gradient(180deg, #2b50ff 0%, #1530cc 100%);
  color: #ffffff;
}

.btn-outline {
  background: linear-gradient(180deg, #ffffff 0%, #e4ecff 100%);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--acid);
  color: var(--ink);
}

.reset-btn {
  background: #ffe6f2;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 16px;
  box-shadow: 2px 2px 0px var(--ink);
}

.reset-btn:hover {
  background: var(--magenta);
  color: #ffffff;
}

.worksheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 6px;
}

.worksheet-actions small {
  flex-basis: 100%;
  line-height: 1.5;
  font-size: 11px;
}

/* Y2K Cyber Terminal Result Panel */
.result-panel {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(180deg, #0b1026 0%, #141d42 100%);
  color: #ffffff;
  padding: 30px;
  box-shadow: 6px 6px 0px var(--cobalt);
  position: sticky;
  top: 96px;
}

.result-panel::before {
  content: "◉ TERMINAL_OUTPUT // LIVE_CALCULATION";
  display: block;
  margin: -30px -30px 22px -30px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #1e40ff 0%, #ff1e8a 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 17px 17px 0 0;
}

.result-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

.result-big {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.04em;
  margin: 10px 0 6px;
  color: var(--acid);
  text-shadow: 0 0 18px rgba(204, 255, 0, 0.28);
}

.result-range {
  font-size: 12.5px;
  color: #c5d4ff;
}

.result-metric {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #d4e0ff;
}

.result-metric strong {
  font-family: var(--font-mono);
  color: #ffffff;
}

.result-panel h3 {
  font-size: 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 24px 0 10px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  font-size: 13px;
  color: #d0dcff;
}

.cost-line strong {
  font-family: var(--font-mono);
  color: #ffffff;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 14px 16px;
  background: rgba(0, 230, 138, 0.14);
  border: 1.5px solid var(--lime);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.total-line strong {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--acid);
}

.result-footnote {
  font-size: 11.5px;
  line-height: 1.65;
  color: #b8c8f5;
}

.result-panel .worksheet-actions small {
  color: #b8c8f5;
}

.error-message {
  color: #ff2e93;
  font-weight: 700;
}

.result-panel .error-message {
  color: #ff99c8;
  background: rgba(255, 30, 138, 0.16);
  border: 1px solid #ff66b2;
  padding: 10px 14px;
  border-radius: 10px;
}

/* Simple Panel, Pitch Figure, Budget & Quote Matrices */
.simple-panel {
  max-width: 100%;
}

.metric-display {
  background: linear-gradient(135deg, #0b1026 0%, #1d2d6e 100%);
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 24px;
  border-radius: 16px;
  margin-top: 22px;
}

.metric-display strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 900;
  color: var(--acid);
  margin: 6px 0;
}

.metric-display small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b8ceff;
}

.metric-display p {
  color: #e2ebff;
  margin: 10px 0 0;
}

.worksheet-totals {
  max-width: 100%;
  background: #f7f9ff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
}

.worksheet-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--soft-line);
}

.worksheet-totals dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote-card {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  padding: 20px;
  box-shadow: 4px 4px 0px var(--ink);
}

.quote-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #ebfff6 100%);
}

.quote-card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #fff0f8 100%);
}

.quote-card legend {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  box-shadow: 2px 2px 0px var(--ink);
}

.quote-card .field {
  margin-top: 12px;
}

.quote-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.quote-summary {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(180deg, #0b1026 0%, #172352 100%);
  color: #ffffff;
  box-shadow: 5px 5px 0px var(--cobalt);
  padding: 22px;
}

.quote-summary h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.quote-summary strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--acid);
  margin-bottom: 10px;
}

.quote-summary p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #d2deff;
  margin-bottom: 8px;
}

/* -------------------------------------------------------------------------- */
/* Standalone Prose Pages (Methodology, About, Editorial, Contact, Privacy,   */
/* Terms) + Tool Guidance + Blog Cards + Article Viewer                       */
/* -------------------------------------------------------------------------- */
.prose {
  max-width: 100%;
}

/* Standalone Editorial/Policy pages (.inner-page > .prose) */
.inner-page > .prose {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 36px 38px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.inner-page > .prose::before {
  content: "● ● ●   SYSTEM_DOCUMENT // VERIFIED_SPECIFICATION.DOC";
  display: block;
  margin: -36px -38px 28px -38px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #dfe8ff 0%, #e4fff4 50%, #ffe6f4 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.prose h2 {
  font-size: 25px;
  margin-top: 34px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #e8eeff 0%, rgba(232, 238, 255, 0) 95%);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 10px 10px 0;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 10px;
}

/* Calculator Reference & Guidance Window */
.tool-guidance {
  margin-top: 40px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 34px 36px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.tool-guidance::before {
  content: "● ● ●   REFERENCE_MATRIX // TECHNICAL_BENCHMARKS.SYS";
  display: block;
  margin: -34px -36px 26px -36px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #e0f7ff 0%, #e8eeff 55%, #ffe8f6 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.tool-guidance a,
.article-body a,
.prose a:not(.btn) {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-guidance a:hover,
.article-body a:hover,
.prose a:not(.btn):hover {
  color: var(--magenta);
}

/* Y2K Data Matrix Tables */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 22px 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0px var(--ink);
  background: #ffffff;
}

.tool-guidance table,
.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
}

.tool-guidance caption,
.article-body caption {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  background: #e8eeff;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.tool-guidance thead th,
.article-body thead th {
  background: var(--ink);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
}

.tool-guidance th,
.tool-guidance td,
.article-body th,
.article-body td {
  border-bottom: 1px solid var(--soft-line);
  padding: 12px 14px;
  text-align: left;
}

.tool-guidance tbody tr:nth-child(even),
.article-body tbody tr:nth-child(even) {
  background: #f4f7ff;
}

/* Blog Index Grid & Y2K Guide Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background: linear-gradient(180deg, #ffffff 0%, #e7f0ff 100%);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, #ffffff 0%, #e4fff4 100%);
}
.blog-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #ffffff 0%, #ffedf7 100%);
}
.blog-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, #ffffff 0%, #f2ebff 100%);
}

.blog-card::before {
  content: "● ● ●   GUIDE_ARCHIVE // READ_FILE.MD";
  display: block;
  margin: -28px -28px 20px -28px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 17px 17px 0 0;
}

.blog-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--cobalt);
}

.blog-card h2 {
  font-size: 24px;
  margin: 10px 0 12px;
}

.blog-card h2 a:hover {
  color: var(--cobalt);
}

.blog-card p {
  color: var(--muted);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1.5px dashed var(--soft-line);
}

/* Blog Article TOC, Body & Related Guides */
.article-toc {
  max-width: 100%;
  padding: 28px 32px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(135deg, #e7eeff 0%, #fff0f8 100%);
  box-shadow: var(--shadow-hard);
  margin-bottom: 34px;
  position: relative;
}

.article-toc::before {
  content: "● ● ●   INDEX_TREE // JUMP_NAVIGATION";
  display: block;
  margin: -28px -32px 20px -32px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 17px 17px 0 0;
}

.article-toc h2 {
  font-size: 19px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-toc ol {
  margin-bottom: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 30px;
}

.article-toc li {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
  break-inside: avoid;
}

.article-toc a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.article-body {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 36px 38px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.article-body::before {
  content: "● ● ●   KNOWLEDGE_BASE // PLANNING_GUIDE.MD";
  display: block;
  margin: -36px -38px 28px -38px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #dfe8ff 0%, #e4fff4 50%, #ffe6f4 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 19px 19px 0 0;
}

.article-body p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 26px;
  margin: 36px 0;
  border: 2px solid var(--ink);
  background: linear-gradient(90deg, #e4ffe9 0%, #e6f0ff 55%, #ffe9f6 100%);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  font-size: 13px;
}

.notice-banner p {
  margin: 0 0 6px;
  flex-basis: 100%;
  font-weight: 800;
  color: var(--ink);
}

.notice-banner a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  box-shadow: 2px 2px 0px var(--ink);
  white-space: nowrap;
}

.notice-banner a:hover {
  background: var(--acid);
  transform: translate(-1px, -1px);
}

.related-guides {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-hard);
  margin-top: 40px;
  padding: 30px 34px;
  position: relative;
}

.related-guides::before {
  content: "● ● ●   LINKED_MODULES // RELATED_PLANNING_GUIDES";
  display: block;
  margin: -30px -34px 22px -34px;
  padding: 9px 18px;
  background: linear-gradient(90deg, #0b1026 0%, #1e40ff 100%);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  border-radius: 17px 17px 0 0;
}

.related-guides h2 {
  font-size: 24px;
}

.related-guides ul {
  padding-left: 20px;
  line-height: 2;
  font-size: 14.5px;
  font-weight: 700;
}

.related-guides a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.pitch-figure {
  max-width: 480px;
  margin: 24px 0 0;
  background: #f7f9ff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 3px 3px 0px var(--ink);
}

.pitch-figure svg {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
}

.pitch-figure figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.muted-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}

/* -------------------------------------------------------------------------- */
/* Privacy Controls & Y2K Footer                                              */
/* -------------------------------------------------------------------------- */
.privacy-controls {
  background: #070b1c;
  border-top: 2px solid var(--cobalt);
  padding: 18px 0;
  font-size: 12.5px;
  color: #c8d6ff;
}

.privacy-controls .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.privacy-controls p {
  line-height: 1.6;
  margin: 0;
  flex: 1 1 420px;
}

.privacy-controls strong {
  font-family: var(--font-mono);
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

.privacy-controls a {
  color: var(--cyan);
  text-decoration: underline;
  font-weight: 700;
}

.privacy-controls button {
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 2px 2px 0px var(--magenta);
  cursor: pointer;
}

.privacy-controls button[data-privacy-deny] {
  background: #1a2554;
  color: #ffffff;
  border-color: var(--cyan);
  box-shadow: 2px 2px 0px var(--cobalt);
}

.privacy-controls small {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8ea3de;
  margin-top: 2px;
  line-height: 1.45;
}

.site-footer {
  background: #0b1026;
  color: #ffffff;
  border-top: 3px solid var(--magenta);
  padding: 60px 0 28px;
}

.site-footer .brand {
  background: #172255;
  color: #ffffff;
  border-color: var(--acid);
  box-shadow: 3px 3px 0px var(--magenta);
}

.site-footer .brand-accent {
  color: var(--acid);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner p {
  color: #b8c7f5;
  font-size: 13.5px;
  margin-top: 16px;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #e0e8ff;
}

.footer-links a:hover {
  color: var(--acid);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px dashed rgba(255, 255, 255, 0.24);
  margin-top: 44px;
  padding-top: 22px;
  color: #9fb2eb;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* Admin Editor Layout */
.admin-layout {
  display: grid;
  gap: 24px;
}
.editor-form {
  display: grid;
  gap: 20px;
  width: 100%;
}
.admin-post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  border-top: 1.5px solid var(--soft-line);
  padding: 18px 0;
}
.admin-post button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.admin-post span {
  font-size: 12px;
}

/* -------------------------------------------------------------------------- */
/* Responsive Breakpoints & Print Stylesheet                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .lead-grid {
    gap: 28px;
  }
  .lead-photo-frame {
    height: 420px;
  }
  .editorial-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editorial-tool:nth-child(9),
  .editorial-tool:nth-child(10) {
    grid-column: span 1;
  }
  .planning-feature-grid,
  .project-checklist,
  .editorial-faq {
    gap: 36px;
  }
}

@media (max-width: 800px) {
  .lead-grid,
  .editorial-tool-grid,
  .planning-feature-grid,
  .project-checklist,
  .editorial-faq,
  .calc-grid,
  .reading-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .result-panel {
    position: static;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .form-grid,
  .quote-grid,
  .quote-result,
  .three-fields {
    grid-template-columns: 1fr;
  }
  .article-toc ol {
    columns: 1;
  }
  .footer-inner {
    flex-direction: column;
  }
  .editorial-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }
  .lead-copy,
  .inner-heading,
  .inner-page > .prose,
  .calc-panel,
  .result-panel,
  .simple-panel,
  .tool-guidance,
  .article-body,
  .related-guides,
  .reading-grid article,
  .blog-card,
  .planning-feature-grid,
  .project-checklist,
  .editorial-faq {
    padding: 22px 18px;
  }
  .lead-copy::before,
  .inner-heading::before,
  .inner-page > .prose::before,
  .calc-panel::before,
  .simple-panel::before,
  .result-panel::before,
  .tool-guidance::before,
  .article-body::before,
  .related-guides::before,
  .reading-grid article::before,
  .blog-card::before,
  .planning-feature-grid::before,
  .project-checklist::before,
  .editorial-faq::before {
    margin: -22px -18px 18px -18px;
    padding: 8px 14px;
    font-size: 9.5px;
  }
  .edition-line span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .calc-panel,
  .breadcrumb,
  .reading-grid,
  .notice-banner,
  .print-btn,
  .privacy-controls,
  .worksheet-actions,
  .tool-guidance,
  .us-region-bar,
  .reset-btn {
    display: none !important;
  }
  .calc-grid,
  .worksheet-tool,
  .quote-grid,
  .quote-result {
    display: block !important;
  }
  .result-panel,
  .metric-display {
    color: #000000 !important;
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
  }
  .result-panel *,
  .metric-display * {
    color: #000000 !important;
    text-shadow: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
