:root {
  --bg: #f4f7fb;
  --bg-strong: #eaf0f7;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-ink: #07111f;
  --surface-ink-2: #111c2f;
  --text: #07111f;
  --muted: #5f6d7f;
  --line: #d8e2ed;
  --line-strong: #b8c7d8;
  --teal: #0f9f8f;
  --green: #18a058;
  --blue: #355eea;
  --amber: #b7791f;
  --coral: #d65a4a;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.10);
  --shadow-soft: 0 10px 28px rgba(7, 17, 31, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 42%, #eef5f1 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  font-variant-numeric: tabular-nums;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(7, 17, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

::selection {
  background: rgba(15, 159, 143, 0.20);
}

a {
  color: #0b756b;
  text-decoration: none;
}

a:hover {
  color: #084f49;
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: 54px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(17, 28, 47, 0.94)),
    var(--surface-ink);
  color: white;
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-weight: 900;
}

.brand:hover {
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 17px;
}

.brand span:last-child {
  display: grid;
  gap: 0;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.10);
  color: white;
  text-decoration: none;
}

.layout,
.admin-layout,
.article-layout {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.article-layout {
  width: min(1120px, calc(100vw - 32px));
}

.layout.narrow {
  width: min(960px, calc(100vw - 32px));
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding: 36px 0 30px;
}

.page-heading.compact {
  display: block;
  padding-bottom: 16px;
}

.page-heading p,
.dek {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow,
.section-kicker,
.card-topline span,
.snapshot-card span,
.article-score-card span,
.rich-cta span,
.visual-ledger span {
  color: #0b756b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 9px;
}

.home-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #23314a;
  border-radius: var(--radius);
  background: #23314a;
  box-shadow: var(--shadow);
}

.home-console div {
  min-height: 118px;
  padding: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    var(--surface-ink);
  color: white;
}

.home-console span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-console strong {
  display: block;
  margin-top: 13px;
  font-size: 35px;
  line-height: 1;
}

.hub-hero,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.hub-hero {
  padding: 12px 0 26px;
}

.hub-copy,
.article-hero > div {
  display: grid;
  align-content: center;
}

.hub-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.hub-visual,
.article-score-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--surface-ink);
  color: white;
  box-shadow: var(--shadow);
}

.hub-visual-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.visual-ledger {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
}

.visual-ledger div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.visual-ledger span {
  color: rgba(255, 255, 255, 0.55);
}

.visual-ledger b {
  color: white;
  overflow-wrap: anywhere;
}

.visual-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.public-metric-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 6px 0 30px;
}

.public-metric,
.metric {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.public-metric span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-metric strong,
.metric strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.hub-section {
  margin-top: 38px;
}

.hub-section.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.intent-panel {
  display: grid;
  gap: 10px;
}

.intent-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(130px, 1fr) 48px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.intent-row strong,
.intent-row span {
  display: block;
}

.intent-row span {
  color: var(--muted);
  font-size: 13px;
}

.intent-row b {
  color: var(--text);
  text-align: right;
}

.intent-meter,
.score-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.intent-meter i,
.score-line i {
  display: block;
  height: 100%;
}

.branch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.branch-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
  box-shadow: 0 5px 16px rgba(7, 17, 31, 0.05);
}

.branch-chip span {
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.branch-chip.live {
  border-color: rgba(15, 159, 143, 0.38);
  background: #f0fbf9;
}

.branch-chip.live span {
  background: var(--teal);
  color: white;
}

.topic-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.rich-grid {
  margin-top: 14px;
}

.topic-card,
.page-card {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.topic-card::before,
.page-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--coral));
}

.topic-card:hover,
.page-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.topic-card p,
.page-card p {
  margin: 0;
  color: var(--muted);
}

.topic-card dl {
  display: grid;
  width: 100%;
  gap: 8px;
  margin: auto 0 0;
}

.topic-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  font-weight: 850;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(15, 159, 143, 0.26);
  border-radius: 999px;
  padding: 2px 9px;
  background: #effbf9;
  color: #0b756b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-topline,
.card-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-topline b {
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff7e8;
  color: var(--amber);
  font-size: 12px;
}

.card-action {
  margin-top: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 14px;
  background:
    linear-gradient(135deg, var(--teal), #1677c8);
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 159, 143, 0.22);
}

.button::after {
  content: ">";
  font-size: 13px;
}

.button:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 159, 143, 0.28);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.button.secondary:hover {
  background: #f3f7fb;
  color: var(--text);
}

.calc-reset::after {
  content: "";
}

.panel,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: #fbfdff;
}

.recent-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
}

.recent-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.recent-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recent-list span,
.meta-row {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  padding: 5px 10px;
  color: inherit;
}

.hub-copy .meta-row span {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.output-box {
  display: none;
  min-height: 72px;
  margin: 16px 0 0;
  overflow: auto;
  border: 1px solid #24334c;
  border-radius: var(--radius);
  padding: 12px;
  background: #07111f;
  color: #c8f8e9;
  font-size: 13px;
  white-space: pre-wrap;
}

.output-box.active {
  display: block;
}

.metric-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: #fbfdff;
}

.metric-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-form input,
.metric-form select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: white;
  color: var(--text);
  font: inherit;
}

.metric-form .button {
  align-self: end;
}

.table-wrap {
  overflow: auto;
}

.table-wrap.tall {
  max-height: 520px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4fa;
  color: #314057;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr:nth-child(even) td {
  background: #fbfdff;
}

tr:hover td {
  background: #f3f8fb;
}

.article {
  background: transparent;
}

.rich-article {
  padding: 0 0 34px;
  overflow: visible;
}

.rich-article > :not(.article-hero) {
  width: min(980px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.article-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid #1e2c45;
  border-radius: var(--radius);
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.28), rgba(53, 94, 234, 0.18) 42%, rgba(214, 90, 74, 0.16)),
    linear-gradient(180deg, #07111f, #111c2f);
  color: white;
  box-shadow: var(--shadow);
}

.article-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 100%;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 12px);
  opacity: 0.32;
}

.article-hero > * {
  position: relative;
  z-index: 1;
}

.article-hero h1,
.article-hero .dek {
  color: white;
}

.article-hero .dek {
  color: rgba(255, 255, 255, 0.74);
}

.article-score-card {
  display: grid;
  align-content: center;
  min-height: 230px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.article-score-card span {
  color: rgba(255, 255, 255, 0.60);
}

.article-score-card strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 62px;
  line-height: 1;
}

.article-score-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.score-line {
  margin: 12px 0 4px;
  background: rgba(255, 255, 255, 0.14);
}

.score-line i {
  background: linear-gradient(90deg, #44e0be, #7aa7ff);
}

.article-commandbar {
  position: sticky;
  top: 82px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.article-commandbar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.article-commandbar a:hover {
  background: #edf7f5;
  color: #0b756b;
  text-decoration: none;
}

.article-section {
  margin-top: 34px;
}

.article-section p {
  color: #263346;
}

.toc,
.note-box,
.monetization-block,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.toc {
  margin-top: 18px;
}

.rich-toc {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  background: #fbfdff;
}

.toc strong {
  color: var(--text);
}

.toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
}

.rich-block {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.snapshot-card {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.snapshot-card p {
  margin: 8px 0 0;
  color: #263346;
}

.rich-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.worksheet {
  border: 1px solid #c9d7e4;
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f6faff);
  box-shadow: var(--shadow-soft);
}

.worksheet h2 {
  margin-top: 4px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.trust-strip div {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #f8fbff;
  box-shadow: var(--shadow-soft);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--text);
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.two-column-copy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.note-box {
  border-color: #efcf7a;
  background: #fff9ed;
  color: #624008;
}

.formula-box,
.source-box {
  border: 1px solid #c8d4ea;
  border-radius: var(--radius);
  padding: 16px;
  background: #f4f7ff;
  color: #1d3470;
  box-shadow: var(--shadow-soft);
}

.formula-box {
  margin: 12px 0 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.source-box {
  background: #fbfdff;
}

.source-box ul {
  margin-bottom: 0;
}

.calculator-widget {
  width: min(1060px, 100%) !important;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid #1d2b44;
  border-radius: var(--radius);
  padding: 0;
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.20), rgba(53, 94, 234, 0.16)),
    var(--surface-ink);
  box-shadow: var(--shadow);
}

.calc-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
}

.calc-heading h2 {
  margin-top: 3px;
  color: white;
}

.calc-heading p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.calc-heading .section-kicker {
  color: #65e6d3;
}

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 1px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.10);
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.calc-field,
.calc-check {
  display: grid;
  gap: 7px;
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.calc-field > span,
.calc-check span {
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
}

.calc-input-wrap input {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 850;
}

.calc-input-wrap input:focus {
  outline: 2px solid rgba(101, 230, 211, 0.54);
  outline-offset: -2px;
}

.calc-input-wrap span {
  min-width: 54px;
  border-left: 1px solid #d7e1ec;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calc-check {
  grid-template-columns: 22px 1fr;
  align-items: center;
  min-height: 62px;
}

.calc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.calc-output-card {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.07);
}

.calc-output-card:first-child {
  grid-column: 1 / -1;
  min-height: 128px;
  background:
    linear-gradient(135deg, #07111f, #1a2a47);
  color: white;
}

.calc-output-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-output-card:first-child span {
  color: rgba(255, 255, 255, 0.62);
}

.calc-output-card strong {
  display: block;
  margin-top: 11px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.calc-output-card:first-child strong {
  color: #68ead8;
  font-size: 42px;
}

.calc-note {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.monetization-block {
  margin-top: 30px;
  border-color: #c7d3ff;
  background:
    linear-gradient(135deg, #f7f9ff, #eef7ff);
  color: #1f3470;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

details p {
  margin: 10px 0 0;
}

.cta-band {
  margin-top: 34px;
  border-color: #b9e1dc;
  background:
    linear-gradient(135deg, #eefbf8, #f8fbff);
}

.rich-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rich-cta h2 {
  margin-bottom: 0;
}

.panel-like {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

ol,
ul {
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

@media (max-width: 900px) {
  h1 {
    font-size: 40px;
  }

  .page-heading,
  .hub-hero,
  .article-hero,
  .hub-section.split {
    grid-template-columns: 1fr;
  }

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

  .calc-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .topbar nav {
    width: 100%;
  }

  .topbar nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .layout,
  .admin-layout,
  .article-layout {
    width: min(100vw - 24px, 1180px);
    padding: 26px 0 44px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  .page-heading p,
  .dek,
  .hub-copy p {
    font-size: 16px;
  }

  .home-console {
    grid-template-columns: 1fr;
  }

  .home-console div {
    min-height: 84px;
  }

  .article-hero {
    padding: 22px;
  }

  .article-score-card strong {
    font-size: 48px;
  }

  .article-commandbar {
    position: static;
  }

  .article-commandbar a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .rich-article > :not(.article-hero) {
    width: 100%;
  }

  .intent-row {
    grid-template-columns: 1fr;
  }

  .rich-toc {
    grid-template-columns: 1fr;
  }

  .rich-cta,
  .calc-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .calc-output-card:first-child {
    grid-column: auto;
  }

  .calc-output-card:first-child strong {
    font-size: 34px;
  }

  .recent-list li {
    flex-direction: column;
  }

  th,
  td {
    padding: 11px 12px;
  }
}
