:root {
  --brand-950: #2f4154;
  --brand-900: #3b5167;
  --brand-800: #4d657d;
  --accent-600: #6f96ba;
  --accent-400: #a9bfd2;
  --greige-50: #f7f5f1;
  --greige-100: #f0ece5;
  --greige-200: #e4ddd3;
  --greige-300: #d6d0c7;
  --text-900: #3c4956;
  --text-700: #6a7480;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(47, 65, 84, 0.09);
  --shadow-strong: 0 24px 60px rgba(47, 65, 84, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text-900);
  background: linear-gradient(180deg, var(--greige-50) 0%, #ffffff 26%, var(--greige-100) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dev-disclaimer {
  position: relative;
  z-index: 90;
  background: linear-gradient(135deg, #fff4d6, #f5e6b8);
  color: #5a4920;
  border-bottom: 1px solid rgba(90, 73, 32, 0.12);
}

.dev-disclaimer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
  text-align: center;
}

.dev-disclaimer strong {
  color: #4b3a16;
}

.dev-disclaimer p {
  color: inherit;
  line-height: 1.45;
  font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

main {
  min-height: 100vh;
}

section[id],
[data-scroll-anchor] {
  scroll-margin-top: 110px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(111, 150, 186, 0.06), rgba(214, 208, 199, 0.18));
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.35rem;
}

.section-header p {
  max-width: 62ch;
}

.eyebrow,
.dashboard-pill,
.tag,
.tile-links a,
.decision-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(111, 150, 186, 0.10);
  color: var(--brand-900);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero .eyebrow,
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
  color: var(--brand-950);
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-700);
}

.title-underline {
  display: inline-block;
  padding-bottom: 0.55rem;
  position: relative;
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-400));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(47, 65, 84, 0.07);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(47, 65, 84, 0.08);
}

.entry-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.entry-layout > * {
  min-width: 0;
}

.entry-main-column {
  min-width: 0;
  display: grid;
  gap: 1.2rem;
}

.entry-article-card {
  min-width: 0;
}

.entry-article-card h2,
.entry-article-card h3,
.entry-article-card h4 {
  display: block;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
  text-indent: 0;
}

.entry-article-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.14;
}

.entry-article-card h3 {
  font-size: 1.1rem;
  line-height: 1.28;
}

.entry-article-card p,
.entry-article-card ul,
.entry-article-card ol,
.entry-article-card li {
  margin-left: 0;
  padding-left: 0;
}

.entry-article-card ul,
.entry-article-card ol {
  padding-left: 1.2rem;
}

.entry-article-card [id] {
  scroll-margin-top: 110px;
}

.entry-toc-shell {
  display: none;
}

.entry-toc-card {
  position: sticky;
  top: 112px;
  border: 1px solid rgba(12, 31, 55, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(47, 65, 84, 0.08);
  padding: 1rem;
}

.entry-toc-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry-toc-title {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-950);
  text-decoration: none;
}

.entry-toc-nav {
  display: grid;
  gap: 0.25rem;
}

.entry-toc-link {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  color: var(--text-700);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.entry-toc-link:hover {
  background: rgba(111, 150, 186, 0.12);
  color: var(--brand-950);
  transform: translateX(2px);
}

.entry-toc-link.is-active {
  background: linear-gradient(135deg, rgba(111, 150, 186, 0.18), rgba(200, 171, 86, 0.16));
  color: var(--brand-950);
  font-weight: 600;
}

.entry-toc-link[data-level="3"] {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.entry-toc-link[data-level="4"] {
  padding-left: 1.55rem;
  font-size: 0.88rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  overflow: visible;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-950);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-800), var(--accent-600));
  box-shadow: 0 12px 24px rgba(77, 101, 125, 0.22);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav-item {
  position: relative;
  padding-bottom: 1.1rem;
  margin-bottom: -1.1rem;
}

.nav-item.is-active .nav-trigger,
.nav-link.is-active,
.nav-actions .btn.is-active {
  color: var(--accent-600);
}

.nav-actions .btn.is-active {
  border-color: rgba(111, 150, 186, 0.24);
  box-shadow: 0 14px 28px rgba(111, 150, 186, 0.16);
}

.nav-trigger,
.nav-link,
.login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-700);
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-trigger:hover,
.nav-link:hover,
.login-link:hover {
  color: var(--accent-600);
}

.dropdown,
.mega-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 250px;
  padding: 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(77, 101, 125, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mega-menu {
  min-width: 540px;
  padding: 1.2rem;
}

.mega-menu-browser {
  min-width: 760px;
  max-width: min(92vw, 980px);
}

.mega-menu-browser .topic-browser {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.mega-menu-browser .topic-sidebar {
  min-width: 220px;
}

.mega-menu-browser .topic-pill {
  background: var(--greige-50);
}

.mega-menu-browser .topic-panel-wrap {
  min-width: 0;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.dropdown-open .dropdown,
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.dropdown-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a,
.mega-menu a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  color: var(--text-700);
}

.dropdown a:hover,
.dropdown a.is-active,
.mega-menu a:hover,
.mega-menu a.is-active {
  background: var(--greige-50);
  color: var(--brand-900);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.mega-title {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.92rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #7b9fbe, var(--accent-600));
  color: var(--white);
  box-shadow: 0 16px 30px rgba(111, 150, 186, 0.28);
}

.btn-secondary {
  border-color: rgba(111, 150, 186, 0.16);
  color: var(--brand-900);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mobile-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--greige-300);
  background: var(--white);
  color: var(--brand-900);
  display: inline-grid;
  place-items: center;
}

.mobile-menu {
  display: none;
  padding-bottom: 1rem;
}

.site-header.menu-open .mobile-menu {
  display: grid;
  gap: 0.75rem;
}

.mobile-panel {
  padding: 1rem;
  border-radius: 20px;
  background: var(--greige-50);
}

.mobile-panel strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--brand-900);
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.mobile-panel a {
  display: block;
  padding: 0.7rem 0;
  color: var(--text-700);
  font-weight: 600;
}

.site-header.menu-open .container {
  padding-bottom: 0.35rem;
}

.hero,
.page-hero {
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 208, 199, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(111, 150, 186, 0.16), transparent 26%),
    linear-gradient(180deg, var(--brand-950) 0%, var(--brand-900) 60%, #86a7c4 100%);
  padding: 1rem 0 5.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto 15% -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.hero-grid,
.hero-card-cluster,
.cards-grid,
.tiles-grid,
.article-grid,
.footer-grid,
.page-grid,
.platform-tiles-grid,
.category-grid,
.calculator-hub-grid,
.decision-grid,
.insight-grid,
.calculator-detail-grid,
.stats-grid,
.topic-browser,
.topic-panel,
.topic-columns,
.newsletter-grid,
.newsletter-form {
  display: grid;
  gap: 1.2rem;
}

.hero-note,
.hero-card-main,
.hero-card-side,
.card,
.tile,
.article-card,
.info-card,
.category-card,
.tool-card,
.decision-card,
.insight-card,
.calculator-info-card,
.stat-card,
.topic-browser,
.inline-topic-browser {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 238, 0.90));
  border: 1px solid rgba(77, 101, 125, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-card-main,
.hero-card-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(20, 18, 15, 0.22);
}

.hero-card-main {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.hero-card-side {
  padding: 1.2rem;
  border-radius: 24px;
}

.hero-highlights span,
.hero-note-label {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(111, 150, 186, 0.16);
  color: rgba(255,255,255,0.88);
}

.hero-note-label {
  width: auto;
  height: auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.hero-note-copy,
.page-hero p {
  color: rgba(255,255,255,0.84) !important;
}

.dashboard {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(246, 241, 233, 0.96));
  color: var(--text-900);
  padding: 1.3rem;
  border: 1px solid rgba(77, 101, 125, 0.08);
}

.dashboard-header,
.dashboard-row,
.card-top,
.article-meta,
.inline-panel-head,
.inline-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-header {
  margin-bottom: 1rem;
}

.dashboard-header strong,
.dashboard-balance strong,
.stat-card strong {
  font-family: "Sora", sans-serif;
}

.dashboard-balance {
  margin: 1rem 0;
}

.dashboard-balance span {
  display: block;
  color: var(--accent-600);
  font-size: 0.9rem;
}

.dashboard-balance strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  color: var(--brand-900);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.55rem;
  height: 130px;
}

.bar-chart span {
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #9bb5cb, var(--accent-600));
}

.dashboard-row {
  margin-top: 1rem;
  color: var(--text-700);
}

.hero-card-side .mini-note {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 1rem;
}

.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.card,
.tile,
.article-card,
.info-card,
.category-card,
.tool-card,
.decision-card,
.insight-card,
.calculator-info-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.tile:hover,
.article-card:hover,
.info-card:hover,
.category-card:hover,
.tool-card:hover,
.decision-card:hover,
.insight-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(111, 150, 186, 0.18);
}

.calculator-info-card ul,
.tool-points {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--text-700);
}

.calculator-hub-grid .btn,
.inline-link {
  margin-top: 1rem;
}

.topic-browser {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(77, 101, 125, 0.08);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  position: relative;
  z-index: 30;
}

.topic-sidebar {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  position: relative;
  z-index: 3;
}

.topic-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--greige-50);
  color: var(--brand-900);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.topic-pill:hover,
.topic-pill:focus-visible {
  transform: translateX(2px);
  border-color: rgba(111, 150, 186, 0.24);
  outline: none;
}

.topic-pill.is-active {
  background: rgba(111, 150, 186, 0.12);
  border-color: rgba(111, 150, 186, 0.22);
  box-shadow: 0 10px 24px rgba(111, 150, 186, 0.12);
}

.topic-panel {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.topic-panel-wrap {
  display: grid;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.topic-panel[hidden] {
  display: none;
}

.topic-panel-stack {
  display: grid;
}

.topic-panel-stack .topic-panel {
  display: none;
}

.topic-panel-stack .topic-panel.is-active {
  display: grid;
}

.topic-panel.is-active {
  animation: fadePanel 0.18s ease;
}

.topic-columns {
  display: grid;
  gap: 1rem;
}

.topic-column {
  display: grid;
  gap: 0.7rem;
}

.topic-column h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.topic-column h3 .inline-link {
  color: var(--brand-900);
}

.topic-links {
  display: grid;
  gap: 0.55rem;
}

.topic-links a {
  color: var(--text-700);
  font-weight: 500;
  display: block;
  padding: 0.18rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.topic-links a:hover {
  color: var(--brand-900);
  transform: translateX(1px);
}

.landing-browser-section {
  padding-top: 1.5rem;
}

.landing-inline-panels,
.landing-browser-panels {
  position: relative;
  z-index: 200;
}

.landing-browser-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.landing-browser-tab {
  border: 1px solid rgba(77, 101, 125, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-900);
  font-weight: 700;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.landing-browser-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 150, 186, 0.24);
}

.landing-browser-tab.is-active {
  background: var(--brand-900);
  color: var(--white);
  border-color: var(--brand-900);
}

.inline-panel-shell {
  padding-bottom: 1rem;
  animation: panelLift 0.22s ease;
}

.inline-panel-shell[hidden] {
  display: none !important;
  pointer-events: none;
}

.inline-topic-browser {
  border-radius: 30px;
  border: 1px solid rgba(77, 101, 125, 0.08);
  box-shadow: 0 28px 70px rgba(47, 65, 84, 0.16);
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelLift {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-band {
  margin-top: -1.1rem;
  position: relative;
  z-index: 5;
}

.stat-card {
  padding: 1.45rem;
  border-radius: 24px;
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  color: var(--brand-900);
}

.page-hero {
  padding: 8rem 0 4.4rem;
  background: linear-gradient(135deg, var(--brand-950), var(--brand-900), #86a7c4);
  margin-top: 0;
}

.chart-shell {
  position: relative;
  min-height: 280px;
  height: clamp(280px, 42vw, 420px);
  width: 100%;
}

.chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.newsletter {
  background: linear-gradient(135deg, var(--brand-950), var(--brand-900), #86a7c4);
  color: white;
}

.newsletter-form input,
.contact-form input,
.contact-form textarea,
.calculator-form input,
.admin-shell input,
.admin-shell textarea,
.admin-shell select,
input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--greige-300);
  background: white;
  color: var(--text-900);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.site-footer {
  background: linear-gradient(180deg, #314356 0%, #41586f 52%, #5f7d99 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255,255,255,0.78);
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 0.6rem;
}

.reveal,
.js-enhanced .reveal,
.reveal.is-visible,
.js-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.result-box {
  padding: 1rem;
  border-radius: 18px;
  background: var(--greige-50);
  border: 1px solid var(--greige-300);
}

.result-box span,
.calculator-note,
.muted {
  color: var(--text-700);
}

.result-box strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--brand-900);
}

.admin-shell,
.admin-grid,
.posts-group,
.group-card,
.column-card,
.entry-card,
.summary-item,
.quick-edit-item,
.post-row,
.tab,
.filter-chip,
.editor-toolbar button,
.editor-toolbar input[type='color'],
.editor-toolbar select,
.toolbar button,
.post-row button {
  border-radius: 18px;
}

.admin-side {
  background: linear-gradient(135deg, var(--brand-950), var(--brand-900));
  color: white;
  padding: 2rem;
}

.tab,
.filter-chip,
.editor-toolbar button,
.editor-toolbar input[type='color'],
.editor-toolbar select,
.toolbar button,
.post-row button {
  border: 1px solid var(--greige-300);
  background: var(--greige-50);
  cursor: pointer;
}

.tab.active,
.filter-chip.active {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  border-color: transparent;
  color: var(--white);
}

.posts-group,
.group-card,
.column-card,
.entry-card,
.quick-edit-item,
.summary-item {
  border: 1px solid var(--greige-300);
  background: rgba(255,255,255,0.82);
}

.code-badge,
.post-row .badge,
.status-draft {
  background: rgba(111, 150, 186, 0.12);
  color: var(--brand-900);
}

@media (min-width: 760px) {
  .entry-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
  }

  .entry-main-column {
    grid-column: 2;
    grid-row: 1;
  }

  .entry-toc-shell[data-has-toc="true"] {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  .desktop-nav {
    display: flex;
  }

  .stats-grid,
  .cards-grid,
  .platform-tiles-grid,
  .article-grid,
  .footer-grid,
  .page-grid,
  .calculator-hub-grid,
  .decision-grid,
  .insight-grid,
  .calculator-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .topic-browser {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    align-items: start;
  }

  .topic-sidebar {
    width: 100%;
  }

  .topic-panel-wrap,
  .topic-panel-stack {
    width: 100%;
    overflow: hidden;
    min-height: 100%;
  }

  .inline-topic-browser .topic-panel,
  .topic-panel-stack .topic-panel {
    min-height: 100%;
    align-content: start;
  }

  .topic-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .newsletter-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .cards-grid,
  .platform-tiles-grid,
  .article-grid,
  .calculator-hub-grid,
  .insight-grid,
  .decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-grid,
  .calculator-detail-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
  }
}

@media (max-width: 759px) {
  html {
    scroll-padding-top: 86px;
  }

  body {
    font-size: 16px;
  }

  section[id],
  [data-scroll-anchor] {
    scroll-margin-top: 86px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
    line-height: 1.08;
  }

  h3 {
    font-size: 1.08rem;
    line-height: 1.28;
  }

  p,
  li,
  input,
  textarea,
  label {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .navbar {
    padding: 0.85rem 0;
    gap: 0.75rem;
  }

  .logo {
    gap: 0.55rem;
    font-size: 1.08rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .nav-actions {
    gap: 0.55rem;
  }

  .nav-actions .btn,
  .nav-actions .btn-primary,
  .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu {
    padding: 0.35rem 0 0.55rem;
    gap: 0.75rem;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-panel {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(246, 248, 252, 0.98);
    border: 1px solid rgba(77, 101, 125, 0.08);
    box-shadow: 0 12px 26px rgba(47, 65, 84, 0.08);
  }

  .mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
  }

  .mobile-panel strong {
    margin-bottom: 0;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
  }

  .mobile-panel-all {
    color: var(--accent-600);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.78rem 0;
    line-height: 1.35;
    border-bottom: 1px solid rgba(77, 101, 125, 0.06);
  }

  .mobile-panel a:last-child {
    border-bottom: none;
  }

  .mobile-panel-tiles .mobile-panel-all,
  .mobile-panel-tiles .mobile-tile-link {
    border-bottom: none;
    padding: 0;
    min-height: 0;
  }

  .mobile-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .mobile-tile-link {
    display: grid;
    gap: 0.45rem;
    align-content: space-between;
    min-height: 88px;
    padding: 0.9rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,244,250,0.98));
    border: 1px solid rgba(77, 101, 125, 0.08);
    box-shadow: 0 10px 20px rgba(47, 65, 84, 0.06);
    color: var(--brand-900);
  }

  .mobile-tile-title {
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .mobile-tile-arrow {
    justify-self: end;
    color: var(--accent-600);
    font-weight: 800;
  }

  .landing-inline-panels {
    display: none;
  }

  .mega-menu {
    position: static;
    min-width: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .hero {
    padding-top: 6.2rem;
  }

  .page-hero {
    padding-bottom: 3rem;
  }

  .hero {
    padding-bottom: 4.25rem;
  }

  .hero-grid {
    min-height: auto;
    gap: 2rem;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 32rem;
  }

  .hero-actions,
  .calculator-detail-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .calculator-detail-hero .hero-actions .btn,
  .newsletter-form .btn,
  .calculator-hub-grid .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-highlights {
    gap: 0.75rem;
  }

  .hero-highlights div {
    align-items: flex-start;
  }

  .hero-card-main,
  .hero-card-side,
  .card,
  .tile,
  .article-card,
  .info-card,
  .category-card,
  .tool-card,
  .decision-card,
  .insight-card,
  .calculator-info-card,
  .stat-card,
  .calculator-panel,
  .calculator-results {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .calculator-detail-hero .calculator-info-card {
    order: -1;
  }

  .dashboard {
    padding: 1rem;
    border-radius: 20px;
  }

  .dashboard-balance strong {
    font-size: 1.65rem;
  }

  .bar-chart {
    height: 110px;
    gap: 0.45rem;
  }

  .section-header {
    margin-bottom: 1.4rem;
  }

  .section-header p {
    font-size: 0.98rem;
  }

  .topic-browser {
    gap: 0.9rem;
    margin-top: 1.35rem;
    padding: 1rem;
    border-radius: 22px;
  }

  .topic-sidebar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .topic-sidebar::-webkit-scrollbar {
    display: none;
  }

  .topic-pill {
    padding: 0.82rem 0.9rem;
    border-radius: 15px;
    font-size: 0.95rem;
    width: 100%;
    min-width: 180px;
    justify-content: space-between;
    scroll-snap-align: start;
  }

  .topic-panel > h2,
  .inline-panel-head + h2 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .topic-columns {
    gap: 0.85rem;
  }

  .topic-column {
    padding: 0.95rem;
    border-radius: 16px;
    background: var(--greige-50);
    border: 1px solid rgba(77, 101, 125, 0.06);
  }

  .topic-links {
    gap: 0.45rem;
  }

  .topic-links a {
    padding: 0.72rem 0.15rem;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(77, 101, 125, 0.06);
  }

  .topic-links a:last-child {
    border-bottom: none;
  }

  .cards-grid,
  .platform-tiles-grid,
  .category-grid,
  .calculator-hub-grid,
  .decision-grid,
  .insight-grid,
  .stats-grid,
  .tiles-grid,
  .article-grid,
  .footer-grid,
  .page-grid,
  .calculator-detail-grid,
  .result-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calculator-hub-grid,
  .cards-grid,
  .category-grid,
  .platform-tiles-grid {
    margin-top: 1.35rem !important;
  }

  .desktop-nav .topic-browser,
  .desktop-nav .mega-menu,
  .desktop-nav .mega-menu-browser {
    display: none !important;
  }

  .tile-links {
    gap: 0.5rem;
  }
}
