
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-muted: #eef3ef;
  --ink: #17201b;
  --muted: #607068;
  --line: #d9e1dc;
  --accent: #12695f;
  --accent-dark: #0d4e48;
  --warm: #9a5b1f;
  --shadow: 0 18px 45px rgba(23, 32, 27, 0.08);
  --layout-wide: 1160px;
  --layout-standard: 1160px;
  --layout-reading: 880px;
  --layout-padding: clamp(16px, 4vw, 56px);
  --font-article-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-article-zh-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Heiti SC", "SimHei", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

html[lang^="zh"] body,
html.lang-zh body {
  font-family: var(--font-article-zh-sans);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

table th.ob-table-value,
table td.ob-table-value {
  text-align: right;
}

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

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
}

.ob-trademark {
  display: inline-block;
  font-size: 0.62em;
  line-height: 0;
  margin-left: 0.04em;
  position: relative;
  top: -0.42em;
  vertical-align: baseline;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(clamp(18px, 4vw, 56px), calc((100vw - var(--layout-standard)) / 2 + var(--layout-padding)));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  order: 1;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand__mark,
.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand__mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

.brand__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: min(216px, 52vw);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand__text {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  min-height: 44px;
  padding: 10px clamp(9px, 0.85vw, 12px);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.site-nav sup {
  font-size: 0.62em;
  line-height: 0;
  margin-left: 1px;
  position: relative;
  top: -0.25em;
}

.site-language-menu {
  border-left: 1px solid var(--line);
  margin-left: 4px;
  order: 3;
  padding-left: 8px;
  position: relative;
  z-index: 90;
}

.site-header:has(.site-language-menu) {
  justify-content: flex-start;
}

.site-header:has(.site-language-menu) .site-nav {
  margin-left: auto;
}

.site-language-menu summary {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 5px;
  list-style: none;
  min-height: 34px;
  padding: 6px 10px;
}

.site-language-menu summary::-webkit-details-marker {
  display: none;
}

.site-language-menu summary::after {
  content: "▾";
  font-size: 0.72rem;
}

.site-language-menu[open] summary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-language-menu__links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 120;
}

.site-language-menu__links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 32px;
  padding: 6px 8px;
}

.site-language-menu__links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-toggle {
  order: 4;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

main {
  min-height: calc(100vh - 180px);
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(220px, 300px);
  gap: clamp(12px, 2vw, 20px);
  justify-content: center;
  align-items: end;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(18, 105, 95, 0.08) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(238, 243, 239, 0.86) 100%),
    var(--surface);
  box-shadow: var(--shadow);
  padding-block: clamp(10px, 2.2vw, 22px);
  padding-inline: max(clamp(18px, 4vw, 56px), calc((100vw - var(--layout-wide)) / 2 + var(--layout-padding)));
}

.hub-hero > * {
  min-width: 0;
}

.hub-hero__content {
  display: grid;
  gap: 3px;
}

.hub-hero .eyebrow {
  margin-bottom: 0;
}

.hub-hero__content h1,
.hub-hero h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.14;
}

.hub-hero__content p:not(.eyebrow),
.hub-hero > p:not(.eyebrow) {
  max-width: 74ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  line-height: 1.46;
}

.hub-hero__panel {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
}

.hub-hero__panel strong {
  color: var(--accent-dark);
  font-size: clamp(1.28rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.hub-hero__panel span,
.hub-hero__panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.hub-hero--solo {
  grid-template-columns: minmax(0, 1180px);
  justify-content: start;
}

.hub-hero--solo .hub-hero__content p:not(.eyebrow) {
  max-width: none;
}

body[data-page="about"] .hub-hero__content h1,
body[data-page="about"] .hub-hero h1,
body[data-page="disclaimer"] .hub-hero__content h1,
body[data-page="disclaimer"] .hub-hero h1 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.16;
}

body[data-page="about"] .hub-hero__content p:not(.eyebrow),
body[data-page="disclaimer"] .hub-hero__content p:not(.eyebrow) {
  font-size: clamp(1rem, 1.08vw, 1.1rem);
  line-height: 1.48;
}

html[lang^="zh"] body[data-page="tools"] .hub-hero__content h1,
html[lang^="zh"] body[data-page="tools"] .hub-hero h1,
html[lang^="zh"] body[data-page="articles"] .hub-hero__content h1,
html[lang^="zh"] body[data-page="articles"] .hub-hero h1,
html.lang-zh body[data-page="tools"] .hub-hero__content h1,
html.lang-zh body[data-page="tools"] .hub-hero h1,
html.lang-zh body[data-page="articles"] .hub-hero__content h1,
html.lang-zh body[data-page="articles"] .hub-hero h1 {
  font-size: clamp(1.38rem, 1.82vw, 1.72rem);
  font-weight: 740;
  line-height: 1.12;
}

html[lang^="zh"] body[data-page="tools"] .hub-hero__content p:not(.eyebrow),
html[lang^="zh"] body[data-page="articles"] .hub-hero__content p:not(.eyebrow),
html.lang-zh body[data-page="tools"] .hub-hero__content p:not(.eyebrow),
html.lang-zh body[data-page="articles"] .hub-hero__content p:not(.eyebrow) {
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .hub-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-left: clamp(18px, 4vw, 44px);
    padding-right: clamp(18px, 4vw, 44px);
  }
}

@media (max-width: 520px) {
  .hub-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}

body[data-page="tools"] .hub-hero,
body[data-page="articles"] .hub-hero,
body[data-page="reference"] .hub-hero {
  padding-left: max(clamp(28px, 5vw, 76px), calc((100vw - var(--layout-wide)) / 2 + var(--layout-padding)));
  padding-right: max(clamp(28px, 5vw, 76px), calc((100vw - var(--layout-wide)) / 2 + var(--layout-padding)));
}

@media (max-width: 520px) {
  body[data-page="tools"] .hub-hero,
  body[data-page="articles"] .hub-hero,
  body[data-page="reference"] .hub-hero {
    padding-left: 28px;
    padding-right: 28px;
  }
}

.layout-wide,
.layout-standard,
.layout-reading {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.layout-wide {
  max-width: var(--layout-wide);
}

.layout-standard {
  max-width: var(--layout-standard);
}

.layout-reading {
  max-width: var(--layout-reading);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) var(--layout-padding) clamp(30px, 4.8vw, 60px);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--line));
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 750;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(20, 32, 43, 0.12);
}

.button--primary:hover,
.button--primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.hero__panel {
  display: grid;
  gap: 14px;
}

.hero__panel div,
.feature-card,
.tool-card,
.category-card,
.content-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__panel div {
  padding: 22px;
}

.hero__panel span {
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero__panel strong {
  display: block;
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.hero__panel p,
.feature-card p,
.tool-card p,
.category-card p,
.content-block p,
.page-intro p {
  color: var(--muted);
}

.section,
.page {
  width: 100%;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) var(--layout-padding);
}

.page {
  padding-top: clamp(12px, 2vw, 22px);
}

.section__header,
.page-intro {
  margin-bottom: 12px;
}

.page-intro--compact {
  margin-bottom: 12px;
}

.calculator-page .page-intro {
  --clarity-page-accent: var(--accent);
  position: relative;
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 8px solid var(--clarity-page-accent);
}

.calculator-page .page-intro h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
}

body[data-page="tools"] .calculator-page .page-intro h1 {
  font-size: clamp(1.55rem, 2.45vw, 2.15rem);
  line-height: 1.15;
}

.calculator-page .page-intro .calculator-guidance {
  max-width: none;
  margin-bottom: 0;
}

.page-intro[data-clarity-primary],
.reference-hero[data-clarity-primary] {
  --clarity-page-accent: var(--accent);
}

.page-intro[data-clarity-primary="cash-flow"],
.reference-hero[data-clarity-primary="cash-flow"] {
  --clarity-page-accent: #ff3b30;
}

.page-intro[data-clarity-primary="liabilities"],
.reference-hero[data-clarity-primary="liabilities"] {
  --clarity-page-accent: #ff9500;
}

.page-intro[data-clarity-primary="assets"],
.reference-hero[data-clarity-primary="assets"] {
  --clarity-page-accent: #ffd60a;
}

.page-intro[data-clarity-primary="retirement-readiness"],
.reference-hero[data-clarity-primary="retirement-readiness"] {
  --clarity-page-accent: #34c759;
}

.page-intro[data-clarity-primary="insurance-and-risk"],
.reference-hero[data-clarity-primary="insurance-and-risk"] {
  --clarity-page-accent: #0a84ff;
}

.page-intro[data-clarity-primary="tax-optimization"],
.reference-hero[data-clarity-primary="tax-optimization"] {
  --clarity-page-accent: #5e5ce6;
}

.page-intro[data-clarity-primary="you"],
.reference-hero[data-clarity-primary="you"] {
  --clarity-page-accent: #bf5af2;
}

.calculator-pillar-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  max-width: 78ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.calculator-pillar-strip__label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-pillar-link {
  --pillar-link-color: var(--accent-dark);
  color: var(--pillar-link-color);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--pillar-link-color) 34%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.calculator-pillar-link:hover {
  text-decoration-color: currentColor;
}

.calculator-pillar-link--cash-flow {
  --pillar-link-color: #d92d24;
}

.calculator-pillar-link--liabilities {
  --pillar-link-color: #d87400;
}

.calculator-pillar-link--assets {
  --pillar-link-color: #947400;
}

.calculator-pillar-link--retirement-readiness {
  --pillar-link-color: #1f8f3a;
}

.calculator-pillar-link--insurance-and-risk {
  --pillar-link-color: #006fd6;
}

.calculator-pillar-link--tax-optimization {
  --pillar-link-color: #4f4dcc;
}

.calculator-pillar-link--you {
  --pillar-link-color: #a83fdc;
}

[data-calculator-beta]::after {
  content: attr(data-calculator-beta);
  display: inline-flex;
  align-items: center;
  min-height: 0.95rem;
  margin-left: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  padding: 0.25em 0.55em;
  text-transform: uppercase;
  vertical-align: middle;
}


.page--narrow {
  max-width: var(--layout-reading);
}

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

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

.feature-card,
.tool-card,
.category-card,
.content-block {
  padding: 24px;
}

.feature-card a {
  font-weight: 750;
}

.tool-list {
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tool-list__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin-bottom: 2px;
}

.tool-list__header h2 {
  margin-bottom: 6px;
}

.tool-list__header p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.tool-list__controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tool-list__control {
  min-height: 40px;
  padding: 8px 12px;
}

.tool-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-category__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 74px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 20px 24px;
  text-align: left;
}

.tool-category__toggle:hover,
.tool-category__toggle:focus-visible {
  background: var(--surface-muted);
}

.tool-category__toggle:focus-visible {
  outline: 3px solid rgba(18, 105, 95, 0.2);
  outline-offset: -3px;
}

.tool-category__toggle .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.tool-category__title {
  display: block;
  color: #355f5b;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  font-weight: 720;
  letter-spacing: 0.01em;
  line-height: 1.16;
}

html[lang^="zh"] .tool-category__title,
html.lang-zh .tool-category__title {
  font-size: clamp(1.04rem, 1.42vw, 1.18rem);
  font-weight: 700;
}

.tool-category__description {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.tool-category__meta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  flex: 0 0 auto;
  gap: 12px;
  max-width: max-content;
}

.tool-category__meta .status {
  white-space: nowrap;
}

.tool-category__status-inline {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  white-space: nowrap;
}.tool-category__indicator {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.tool-category__indicator::before,
.tool-category__indicator::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
  transform: translateY(-50%);
}

.tool-category__indicator::after {
  transform: translateY(-50%) rotate(90deg);
  transition: opacity 140ms ease;
}

.tool-category__toggle[aria-expanded="true"] .tool-category__indicator::after {
  opacity: 0;
}

.tool-category__content {
  display: grid;
  gap: 14px;
  padding: 0 24px 24px;
}

.tool-category__content[hidden] {
  display: none;
}
.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-card--featured {
  border-color: rgba(18, 105, 95, 0.35);
  background: linear-gradient(180deg, #ffffff, #f3f8f5);
}

.tool-card h2,
.category-card h2,
.content-block h2 {
  margin-bottom: 8px;
}

.article-body h2,
.article-disclaimer h2,
.article-sources h2,
body[data-page="about"] .content-block h2,
body[data-page="disclaimer"] .content-block h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 760;
  line-height: 1.28;
}

.article-body h3,
.article-disclaimer h3,
.article-sources h3,
body[data-page="about"] .content-block h3,
body[data-page="disclaimer"] .content-block h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 740;
  line-height: 1.3;
}

.status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
}


.content-block h2:not(:first-child) {
  margin-top: 28px;
}

body[data-page="about"] .content-block h2:not(:first-child),
body[data-page="disclaimer"] .content-block h2:not(:first-child) {
  margin-top: 22px;
}

body[data-page="about"] .content-block h3:not(:first-child),
body[data-page="disclaimer"] .content-block h3:not(:first-child) {
  margin-top: 18px;
}


/* Production calculator layout pattern */
.calculator-guidance {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.52;
}

.calculator-guidance strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.calculator-embed-page {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.calculator-core {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin-bottom: 0;
}

.calculator-input-card,
.calculator-primary-result {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 24px);
}

.calculator-input-card h2,
.calculator-primary-result h2 {
  margin-bottom: 14px;
}

.calculator-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 240px), 1fr));
  gap: 18px 20px;
  align-items: start;
  min-width: 0;
}

.calculator-input-grid label,
.calculator-input-grid .calculator-fieldset {
  min-width: 0;
}

.calculator-input-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.3;
}

.calculator-input-grid .calculator-fieldset,
.calculator-input-grid .calculator-actions,
.calculator-input-grid .calculator-message {
  grid-column: 1 / -1;
}

.calculator-input-grid input,
.calculator-input-grid select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.calculator-input-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.calculator-input-grid input:focus,
.calculator-input-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
  background: #fff;
}

.calculator-input-grid .input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.calculator-input-grid .input-with-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
}

.calculator-input-grid .input-with-suffix input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-right: 8px;
}

.calculator-input-grid .input-with-suffix input:focus {
  box-shadow: none;
}

.calculator-input-grid .input-with-suffix span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
  background: var(--surface-muted);
}

.calculator-input-card .calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.calculator-input-card .calculator-actions .button {
  min-height: 46px;
  min-width: 132px;
  justify-content: center;
}

.calculator-input-card .calculator-actions .button:not(.button--primary) {
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  color: var(--accent-dark);
}

.calculator-primary-result[hidden],
.calculator-secondary-output[hidden] {
  display: none;
}

.calculator-primary-result.calculator-empty-state {
  align-self: stretch;
  background: var(--surface-muted);
  box-shadow: none;
}

.calculator-primary-result .result-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.calculator-primary-result .result-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-primary-result .result-grid > div {
  min-width: 0;
}

.calculator-secondary-output {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  overflow: hidden;
}

.calculator-secondary-output .chart-wrap,
.calculator-secondary-output .table-wrap {
  max-width: 100%;
  min-width: 0;
}

.calculator-secondary-output .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
}

.calculator-secondary-output canvas {
  max-width: 100%;
}

@media (max-width: 900px) {
  .calculator-input-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .calculator-primary-result .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .calculator-input-grid,
  .calculator-primary-result .result-grid,
  .calculator-primary-result .result-grid--compact {
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions .button {
    width: 100%;
  }
}
.simple-calculator {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  max-width: 1100px;
  margin-bottom: 20px;
}

.simple-calculator__panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.simple-calculator__panel h2 {
  margin-bottom: 16px;
}

.calculator-empty-state {
  align-self: start;
  background: var(--surface-muted);
}

.calculator-empty-state p {
  color: var(--muted);
  margin-bottom: 0;
}


.calculator-fieldset {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 0;
  background: var(--surface-muted);
}

.calculator-fieldset legend {
  padding: 0;
}

.calculator-fieldset__heading {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.simple-calculator__form {
  display: grid;
  gap: 16px;
}

.simple-calculator__form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.input-help {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.simple-calculator__form input,
.simple-calculator__form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.input-with-suffix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.input-with-suffix input {
  border: 0;
  border-radius: 0;
}

.input-with-suffix span {
  color: var(--muted);
  font-weight: 750;
  padding: 0 12px 0 4px;
}

.simple-calculator__form input:focus,
.simple-calculator__form select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(18, 105, 95, 0.16);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calculator-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.calculator-message.is-stale {
  color: var(--warm);
  font-weight: 750;
}

.field-note,
.result-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.result-grid {
  display: grid;
  gap: 10px;
}

.result-grid + .result-grid {
  margin-top: 10px;
}

.result-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-grid div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px 12px;
}

.result-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  margin-bottom: 3px;
}

.result-grid strong {
  display: block;
  align-self: end;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.result-grid--compact strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.result-note {
  margin: 16px 0 0;
}

.projection-block {
  max-width: 1100px;
  margin-bottom: 20px;
}

.chart-block {
  max-width: 1100px;
  margin-bottom: 20px;
}

.projection-block .section__header {
  margin-bottom: 16px;
}

.chart-block .section__header {
  margin-bottom: 16px;
}

.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 320px;
}


.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.detail-summary-card h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 1rem;
}

.detail-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.detail-summary-table th,
.detail-summary-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: normal;
}

.detail-summary-table th {
  width: 58%;
  color: var(--muted);
  font-weight: 750;
  text-align: left;
}

.detail-summary-table td {
  font-weight: 750;
  text-align: right;
}

.detail-summary-table tr:last-child th,
.detail-summary-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.projection-table {
  width: 100%;
  min-width: min(100%, 620px);
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.projection-table__age {
  width: 8.3%;
}

.projection-table__money {
  width: 18.85%;
}

.projection-table__percent {
  width: 16.3%;
}

.projection-table__year {
  width: 14%;
}

.projection-table--comparison {
  min-width: min(100%, 520px);
}

.projection-table--comparison .projection-table__money {
  width: 28.66%;
}

.projection-table--future-value {
  min-width: min(100%, 520px);
}

.projection-table--future-value .projection-table__money {
  width: 21.5%;
}


.projection-table--amortization {
  min-width: min(100%, 760px);
}

.projection-table th,
.projection-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

.projection-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.projection-table th:first-child,
.projection-table td:first-child {
  text-align: left;
}

.projection-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.projection-table--amt-exposure {
  min-width: min(100%, 760px);
}

.projection-table--amt-exposure th,
.projection-table--amt-exposure td {
  padding: 10px 10px;
}

.projection-table--amt-exposure th {
  font-size: 0.76rem;
  line-height: 1.22;
  letter-spacing: 0;
  text-transform: none;
}

.projection-table tr:last-child td {
  border-bottom: 0;
}

.projection-table tr.is-highlighted td {
  border-bottom-color: rgba(18, 105, 95, 0.24);
  background: #eef6f2;
  font-weight: 750;
}

.projection-table tr.is-highlighted td:first-child {
  border-left: 4px solid var(--accent);
}

.ob-col-priority-1,
[data-column-priority="1"],
[data-column-priority="critical"] {
  /* Always visible unless a table defines a narrower local rule. */
}

.ob-col-value,
[data-column-kind="number"],
[data-column-kind="currency"],
[data-column-kind="percent"],
[data-column-kind="rate"],
[data-column-kind="age"],
[data-column-kind="year"] {
  text-align: right;
}

@media (max-width: 900px) {
  .ob-col-priority-5,
  [data-column-priority="5"],
  [data-column-priority="detail"],
  [data-column-priority="metadata"] {
    display: none !important;
  }
}

@media (max-width: 740px) {
  .ob-col-priority-4,
  [data-column-priority="4"],
  [data-column-priority="optional"] {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .ob-col-priority-3,
  [data-column-priority="3"],
  [data-column-priority="supporting"] {
    display: none !important;
  }
}

.table-label {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calculator-page {
  width: 100%;
  max-width: var(--layout-standard);
  margin: 0 auto;
  padding: 22px var(--layout-padding) 28px;
}

.calculator-page .page-intro--compact {
  margin-bottom: 10px;
}

.calculator-embed-page {
  max-width: var(--layout-standard);
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  padding-top: 12px;
  padding-bottom: 18px;
}

.calculator-embed-page .simple-calculator,
.calculator-embed-page .projection-block,
.calculator-embed-page .chart-block,
.calculator-embed-page .content-block {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.calculator-embed-page .content-block p,
.calculator-embed-page .content-block li {
  max-width: none;
}

.calculator-embed-page .content-block > * {
  max-width: none;
}
.calculator-frame {
  display: block;
  width: 100%;
  height: 900px;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}




.article-category-page {
  width: 100%;
  max-width: var(--layout-standard);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--layout-padding) 44px;
}

body[data-article-category] {
  --article-category-accent: var(--accent);
  --article-category-readable: var(--accent-dark);
  --article-category-soft: color-mix(in srgb, var(--surface) 92%, var(--article-category-accent) 8%);
}

body[data-article-category="registered-accounts"],
body[data-article-category="tax-planning"] {
  --article-category-accent: #5e5ce6;
  --article-category-readable: #3b38ac;
  --article-category-soft: #f6f5ff;
}

body[data-article-category="retirement-planning"],
body[data-article-category="decumulation-strategies"],
body[data-article-category="government-benefits"] {
  --article-category-accent: #34c759;
  --article-category-readable: #19742f;
  --article-category-soft: #f4fbf4;
}

body[data-article-category="estate-and-cross-border-planning"] {
  --article-category-accent: #bf5af2;
  --article-category-readable: #8629b5;
  --article-category-soft: #fcf5ff;
}

.article-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.65fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.article-category-hero > div,
.article-category-support {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 28px);
}

.article-category-support {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article-category-empty {
  margin-top: 18px;
  max-width: none;
}

@media (max-width: 1040px) {
  .article-category-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .article-category-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-category-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-category-hero > div {
    padding: 14px;
  }
}

.article-category-header {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(160px, 260px);
  gap: 10px clamp(18px, 3vw, 32px);
  justify-content: center;
  align-items: end;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 16px;
  border: 1px solid color-mix(in srgb, var(--article-category-accent, var(--accent)) 18%, var(--line));
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, var(--article-category-soft, rgba(18, 105, 95, 0.08)) 0%, rgba(255, 255, 255, 0.94) 62%, rgba(238, 243, 239, 0.78) 100%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 34px) clamp(24px, 6vw, 80px);
}

.article-category-header > * {
  min-width: 0;
}

.article-category-header > .eyebrow,
.article-category-header h1,
.article-category-header .article-lede {
  grid-column: 1;
}

.article-category-header .eyebrow {
  color: var(--article-category-readable, var(--warm));
}

.article-category-header h1 {
  margin-bottom: 0;
  font-size: clamp(1.95rem, 4vw, 3.5rem);
}

.article-category-header .article-lede {
  max-width: 76ch;
  margin-bottom: 0;
  font-family: var(--font-article-serif);
  font-size: clamp(1.08rem, 1.2vw, 1.18rem);
  line-height: 1.48;
}

html[lang^="zh"] .article-category-header .article-lede,
html.lang-zh .article-category-header .article-lede {
  font-family: var(--font-article-zh-sans);
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
}

.article-category-header .article-chip-row {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  justify-content: flex-end;
}

.article-category-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.article-category-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.article-category-list-intro h2 {
  margin-bottom: 6px;
}

.article-category-list-intro p {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--muted);
}

.article-category-sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-self: stretch;
}

.article-category-sidebar p {
  color: var(--muted);
}

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

.compact-article-row {
  display: block;
  padding: clamp(17px, 2.4vw, 23px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.compact-article-row[data-clarity-primary] {
  border-color: color-mix(in srgb, var(--article-pillar-accent) 22%, var(--line));
  border-left: 7px solid var(--article-pillar-accent);
  background:
    linear-gradient(90deg, var(--article-pillar-soft) 0%, var(--surface) 58%);
}

.compact-article-row:hover,
.compact-article-row:focus-visible {
  border-color: color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 40%, var(--line));
  background:
    linear-gradient(90deg, var(--article-pillar-soft, rgba(238, 243, 239, 0.42)) 0%, var(--surface) 72%);
  outline: none;
}

.compact-article-row:focus-visible {
  box-shadow: inset 3px 0 0 var(--article-pillar-readable, var(--accent));
}

.compact-article-row__main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.compact-article-row__eyebrow {
  color: var(--article-pillar-readable, var(--warm));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compact-article-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.45vw, 1.32rem);
  line-height: 1.25;
}

.compact-article-row p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-article-serif);
  font-size: clamp(1rem, 1.04vw, 1.08rem);
  line-height: 1.56;
}

html[lang^="zh"] .compact-article-row p,
html.lang-zh .compact-article-row p {
  font-family: var(--font-article-zh-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.compact-article-meta {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-size: 0.83rem;
  font-weight: 650;
}

@media (min-width: 1280px) {
  .article-category-header {
    padding-left: max(56px, calc((100vw - var(--layout-wide)) / 2 + var(--layout-padding)));
    padding-right: max(56px, calc((100vw - var(--layout-wide)) / 2 + var(--layout-padding)));
  }
}

@media (max-width: 1180px) {
  .article-category-layout {
    grid-template-columns: 1fr;
  }

  .article-category-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding-left: clamp(22px, 6vw, 64px);
    padding-right: clamp(22px, 6vw, 64px);
  }

  .article-category-header .article-chip-row {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}
.article-directory-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: clamp(18px, 2vw, 22px);
  color: inherit;
  text-decoration: none;
}

body[data-page="articles"] .category-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  body[data-page="articles"] .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="articles"] .category-grid .article-directory-card--wide {
    grid-column: span 2;
  }
}

.article-directory-card[data-clarity-primary] {
  border-color: color-mix(in srgb, var(--article-pillar-accent) 24%, var(--line));
  border-left: 7px solid var(--article-pillar-accent);
  background:
    linear-gradient(135deg, var(--article-pillar-soft) 0%, var(--surface) 66%);
}

.article-directory-card:hover,
.article-directory-card:focus-visible {
  border-color: color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 42%, var(--line));
  outline: none;
}

.article-directory-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.article-directory-card__header .eyebrow {
  margin-bottom: 0;
}

.article-directory-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}


.article-directory-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.14rem, 1.6vw, 1.34rem);
  line-height: 1.22;
}

.article-directory-card[data-clarity-primary] h2 {
  color: var(--article-pillar-readable);
}

.article-directory-card p:not(.eyebrow) {
  margin-bottom: 0;
  font-family: var(--font-article-serif);
  font-size: clamp(1rem, 1.04vw, 1.08rem);
  line-height: 1.52;
}

html[lang^="zh"] .article-directory-card p:not(.eyebrow),
html.lang-zh .article-directory-card p:not(.eyebrow) {
  font-family: var(--font-article-zh-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.article-card-meta {
  gap: 7px;
  margin-top: 1px;
}

body[data-page="articles"] .article-search-panel {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  border-top: 4px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(18, 105, 95, 0.08) 0%, var(--surface) 64%, rgba(255, 250, 240, 0.72) 100%);
  text-align: left;
}

body[data-page="articles"] .article-search-panel .articles-section-header {
  justify-items: start;
}

body[data-page="articles"] .article-search-panel p:not(.eyebrow) {
  margin-left: 0;
  margin-right: 0;
}

body[data-page="articles"] .article-search-control {
  justify-self: stretch;
  width: min(100%, 820px);
}

body[data-page="articles"] .article-featured-card[data-clarity-primary] p:not(.eyebrow),
body[data-page="articles"] .article-search-results a[data-clarity-primary] span {
  font-family: var(--font-article-serif);
  font-size: clamp(1rem, 1.04vw, 1.08rem);
  font-weight: 400;
  line-height: 1.52;
}

html[lang^="zh"] body[data-page="articles"] .article-featured-card[data-clarity-primary] p:not(.eyebrow),
html[lang^="zh"] body[data-page="articles"] .article-search-results a[data-clarity-primary] span,
html.lang-zh body[data-page="articles"] .article-featured-card[data-clarity-primary] p:not(.eyebrow),
html.lang-zh body[data-page="articles"] .article-search-results a[data-clarity-primary] span {
  font-family: var(--font-article-zh-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.article-status-badge,
.article-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(30, 78, 72, 0.14);
  border-radius: 999px;
  background: rgba(238, 243, 239, 0.58);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 3px 8px;
}

.article-status-badge {
  border-color: rgba(96, 112, 104, 0.2);
  background: transparent;
  color: color-mix(in srgb, var(--muted) 78%, var(--surface));
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
}

.article-tag-chip--more {
  background: transparent;
  color: color-mix(in srgb, var(--accent-dark) 65%, var(--muted));
}

.articles-hub .article-featured-card[data-clarity-primary],
.article-directory-card[data-clarity-primary],
.article-preview-card[data-clarity-primary],
.article-search-results a[data-clarity-primary] {
  border-color: color-mix(in srgb, var(--article-pillar-accent) 28%, var(--line));
  border-left: 8px solid var(--article-pillar-accent);
  background:
    linear-gradient(90deg, var(--article-pillar-soft) 0%, var(--surface) 62%);
}

.article-search-results a[data-clarity-primary]:hover,
.article-search-results a[data-clarity-primary]:focus-visible {
  border-color: color-mix(in srgb, var(--article-pillar-accent) 48%, var(--line));
  color: var(--article-pillar-readable);
}

.article-preview-card[data-clarity-primary] .eyebrow,
.article-featured-card[data-clarity-primary] .eyebrow,
.article-directory-card[data-clarity-primary] .eyebrow {
  color: var(--article-pillar-readable);
}
.article-page {
  width: 100%;
  max-width: var(--layout-standard);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(20px, 3vw, 34px) var(--layout-padding) 46px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.article-shell,
.article-sidebar-card,
.article-toc,
.article-related-section,
.article-metadata,
.article-sources,
.calculator-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-shell {
  position: relative;
  padding: clamp(18px, 3.2vw, 34px);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.article-shell[data-clarity-primary],
.article-header[data-clarity-primary],
.article-featured-card[data-clarity-primary],
.article-search-results a[data-clarity-primary],
.article-directory-card[data-clarity-primary],
.compact-article-row[data-clarity-primary],
.article-preview-card[data-clarity-primary] {
  --article-pillar-accent: var(--accent);
  --article-pillar-readable: var(--accent-dark);
  --article-pillar-soft: color-mix(in srgb, var(--surface) 92%, var(--article-pillar-accent) 8%);
}

.article-shell[data-clarity-primary="cash-flow"],
.article-header[data-clarity-primary="cash-flow"],
.article-featured-card[data-clarity-primary="cash-flow"],
.article-search-results a[data-clarity-primary="cash-flow"],
.article-directory-card[data-clarity-primary="cash-flow"],
.compact-article-row[data-clarity-primary="cash-flow"],
.article-preview-card[data-clarity-primary="cash-flow"] {
  --article-pillar-accent: #ff3b30;
  --article-pillar-readable: #b8241d;
  --article-pillar-soft: #fff6f6;
}

.article-shell[data-clarity-primary="liabilities"],
.article-header[data-clarity-primary="liabilities"],
.article-featured-card[data-clarity-primary="liabilities"],
.article-search-results a[data-clarity-primary="liabilities"],
.article-directory-card[data-clarity-primary="liabilities"],
.compact-article-row[data-clarity-primary="liabilities"],
.article-preview-card[data-clarity-primary="liabilities"] {
  --article-pillar-accent: #ff9500;
  --article-pillar-readable: #a55600;
  --article-pillar-soft: #fff7ed;
}

.article-shell[data-clarity-primary="assets"],
.article-header[data-clarity-primary="assets"],
.article-featured-card[data-clarity-primary="assets"],
.article-search-results a[data-clarity-primary="assets"],
.article-directory-card[data-clarity-primary="assets"],
.compact-article-row[data-clarity-primary="assets"],
.article-preview-card[data-clarity-primary="assets"] {
  --article-pillar-accent: #ffd60a;
  --article-pillar-readable: #715800;
  --article-pillar-soft: #fffbea;
}

.article-shell[data-clarity-primary="retirement-readiness"],
.article-header[data-clarity-primary="retirement-readiness"],
.article-featured-card[data-clarity-primary="retirement-readiness"],
.article-search-results a[data-clarity-primary="retirement-readiness"],
.article-directory-card[data-clarity-primary="retirement-readiness"],
.compact-article-row[data-clarity-primary="retirement-readiness"],
.article-preview-card[data-clarity-primary="retirement-readiness"] {
  --article-pillar-accent: #34c759;
  --article-pillar-readable: #19742f;
  --article-pillar-soft: #f4fbf4;
}

.article-shell[data-clarity-primary="insurance-and-risk"],
.article-header[data-clarity-primary="insurance-and-risk"],
.article-featured-card[data-clarity-primary="insurance-and-risk"],
.article-search-results a[data-clarity-primary="insurance-and-risk"],
.article-directory-card[data-clarity-primary="insurance-and-risk"],
.compact-article-row[data-clarity-primary="insurance-and-risk"],
.article-preview-card[data-clarity-primary="insurance-and-risk"] {
  --article-pillar-accent: #0a84ff;
  --article-pillar-readable: #005eaf;
  --article-pillar-soft: #f3f8ff;
}

.article-shell[data-clarity-primary="tax-optimization"],
.article-header[data-clarity-primary="tax-optimization"],
.article-featured-card[data-clarity-primary="tax-optimization"],
.article-search-results a[data-clarity-primary="tax-optimization"],
.article-directory-card[data-clarity-primary="tax-optimization"],
.compact-article-row[data-clarity-primary="tax-optimization"],
.article-preview-card[data-clarity-primary="tax-optimization"] {
  --article-pillar-accent: #5e5ce6;
  --article-pillar-readable: #3b38ac;
  --article-pillar-soft: #f6f5ff;
}

.article-shell[data-clarity-primary="you"],
.article-header[data-clarity-primary="you"],
.article-featured-card[data-clarity-primary="you"],
.article-search-results a[data-clarity-primary="you"],
.article-directory-card[data-clarity-primary="you"],
.compact-article-row[data-clarity-primary="you"],
.article-preview-card[data-clarity-primary="you"] {
  --article-pillar-accent: #bf5af2;
  --article-pillar-readable: #8629b5;
  --article-pillar-soft: #fcf5ff;
}

.article-shell[data-clarity-primary] {
  border-color: color-mix(in srgb, var(--article-pillar-accent) 18%, var(--line));
}

.article-header[data-clarity-primary] {
  border-left: 8px solid var(--article-pillar-accent);
  margin-left: calc(clamp(14px, 2.2vw, 24px) * -1);
  padding-left: clamp(14px, 2.2vw, 24px);
}

.article-header[data-clarity-primary] .eyebrow {
  color: var(--article-pillar-readable);
}

.article-header h1 {
  font-size: clamp(1.55rem, 2.55vw, 2.25rem);
  line-height: 1.15;
}

.article-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.16vw, 1.1rem);
  line-height: 1.5;
}

html[lang^="zh"] .article-header h1,
html.lang-zh .article-header h1 {
  font-size: clamp(1.5rem, 2.35vw, 2.05rem);
  font-weight: 740;
}

html[lang^="zh"] .article-lede,
html.lang-zh .article-lede {
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  font-weight: 400;
}

.article-chip-row,
.article-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.article-count {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 10px;
  text-decoration: none;
  max-width: 100%;
}

.article-related-list {
  gap: 8px 18px;
}

.article-related-list a {
  color: var(--accent-dark);
  display: inline;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.article-related-list a:hover,
.article-related-list a:focus-visible {
  color: var(--accent);
}

.article-chip,
.tools-status-pill,
.reference-label,
.ob-chip {
  --taxonomy-chip-bg: var(--surface-muted);
  --taxonomy-chip-border: var(--line);
  --taxonomy-chip-text: var(--accent-dark);
  background: var(--taxonomy-chip-bg);
  border-color: var(--taxonomy-chip-border);
  color: var(--taxonomy-chip-text);
  overflow-wrap: anywhere;
}

.taxonomy-chip--status {
  --taxonomy-chip-bg: #eef8f5;
  --taxonomy-chip-border: #9fcfc5;
  --taxonomy-chip-text: #0d4e48;
}

.taxonomy-chip--status-draft {
  --taxonomy-chip-bg: #fff8ed;
  --taxonomy-chip-border: #d8b57b;
  --taxonomy-chip-text: #704b25;
}

.taxonomy-chip--status-planned {
  --taxonomy-chip-bg: #f3f5f6;
  --taxonomy-chip-border: #cfd9d4;
  --taxonomy-chip-text: #5f6f68;
}

.taxonomy-chip--status-review,
.taxonomy-chip--review-required {
  --taxonomy-chip-bg: #fff8ed;
  --taxonomy-chip-border: #d8b57b;
  --taxonomy-chip-text: #704b25;
}

.taxonomy-chip--review {
  --taxonomy-chip-bg: #eef8f5;
  --taxonomy-chip-border: #9fcfc5;
  --taxonomy-chip-text: #0d4e48;
}

.taxonomy-chip--cadence {
  --taxonomy-chip-bg: #f3f5f6;
  --taxonomy-chip-border: #cfd9d4;
  --taxonomy-chip-text: #465b56;
}

.taxonomy-chip--source {
  --taxonomy-chip-bg: #f2f9fb;
  --taxonomy-chip-border: #b9d7df;
  --taxonomy-chip-text: #244f65;
}

.taxonomy-chip--role {
  --taxonomy-chip-bg: #fff8ed;
  --taxonomy-chip-border: #d8b57b;
  --taxonomy-chip-text: #704b25;
}

.taxonomy-chip--complexity {
  --taxonomy-chip-bg: #ffffff;
  --taxonomy-chip-border: #d9e1dc;
  --taxonomy-chip-text: #607068;
}

.taxonomy-chip--topic,
.taxonomy-chip--pillar {
  --taxonomy-chip-bg: #eef3ef;
  --taxonomy-chip-border: #d9e1dc;
  --taxonomy-chip-text: #355f5b;
}

.ob-chip--pillar-cash-flow {
  --taxonomy-chip-bg: #fff3f2;
  --taxonomy-chip-border: #ffb3af;
  --taxonomy-chip-text: #b8241d;
}

.ob-chip--pillar-liabilities {
  --taxonomy-chip-bg: #fff6e8;
  --taxonomy-chip-border: #ffc875;
  --taxonomy-chip-text: #a55600;
}

.ob-chip--pillar-assets {
  --taxonomy-chip-bg: #fffbe6;
  --taxonomy-chip-border: #f0cd34;
  --taxonomy-chip-text: #715800;
}

.ob-chip--pillar-retirement-readiness {
  --taxonomy-chip-bg: #effbf2;
  --taxonomy-chip-border: #95dfaa;
  --taxonomy-chip-text: #19742f;
}

.ob-chip--pillar-insurance-and-risk {
  --taxonomy-chip-bg: #eef7ff;
  --taxonomy-chip-border: #98caff;
  --taxonomy-chip-text: #005eaf;
}

.ob-chip--pillar-tax-optimization {
  --taxonomy-chip-bg: #f2f1ff;
  --taxonomy-chip-border: #b8b5f4;
  --taxonomy-chip-text: #3b38ac;
}

.ob-chip--pillar-you {
  --taxonomy-chip-bg: #fcf0ff;
  --taxonomy-chip-border: #dfa2f2;
  --taxonomy-chip-text: #8629b5;
}

.article-chip--warm:not([class*="taxonomy-chip--"]) {
  color: var(--warm);
}

.article-hero-placeholder {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 7;
  min-height: 260px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 105, 95, 0.16), rgba(154, 91, 31, 0.1)),
    repeating-linear-gradient(0deg, rgba(23, 32, 27, 0.06) 0 1px, transparent 1px 20px),
    #eef3ef;
  box-shadow: var(--shadow);
}

.article-hero-placeholder::before,
.article-hero-placeholder::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(18, 105, 95, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.article-hero-placeholder::before {
  inset: 52px 46% 76px 48px;
}

.article-hero-placeholder::after {
  inset: 76px 52px 52px 44%;
}

.article-hero-placeholder.has-image {
  background: var(--surface);
}

.article-hero-placeholder.has-image::before,
.article-hero-placeholder.has-image::after {
  content: none;
}

.article-hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.article-hero-image[hidden] {
  display: none;
}

.article-toc,
.article-related-section,
.article-metadata,
.article-sources,
.article-sidebar-card {
  padding: 18px;
  min-width: 0;
  max-width: 100%;
}


.article-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 34%, var(--line));
  padding-bottom: 8px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  min-width: 0;
}

.article-actions__note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-actions .button {
  min-height: 42px;
}

.article-actions .share-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-actions .share-fallback-field {
  width: min(100%, 420px);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.article-share-rail {
  position: fixed;
  top: 168px;
  left: max(14px, calc((100vw - var(--layout-standard)) / 2 - 58px));
  z-index: 18;
  display: flex;
  flex-direction: column;
  width: 50px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 52%, var(--line));
  border-top: 5px solid var(--article-pillar-accent, var(--accent));
  border-radius: 0;
  background: color-mix(in srgb, var(--article-pillar-soft, var(--surface-muted)) 74%, #fff);
  box-shadow: 0 12px 28px rgba(23, 32, 27, 0.1);
}

.article-share-rail__handle {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-bottom: 1px solid color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 34%, var(--line));
  background: color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 13%, #fff);
  cursor: grab;
  touch-action: none;
}

.article-share-rail__handle::before {
  content: "";
  width: 22px;
  height: 9px;
  border-top: 2px solid color-mix(in srgb, var(--article-pillar-readable, var(--accent-dark)) 72%, transparent);
  border-left: 0;
  border-right: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--article-pillar-readable, var(--accent-dark)) 72%, transparent);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--article-pillar-readable, var(--accent-dark)) 72%, transparent);
  opacity: 0.78;
}

.article-share-rail__button {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 28%, var(--line));
  background: color-mix(in srgb, #fff 76%, var(--article-pillar-soft, var(--surface-muted)) 24%);
  color: #050505;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
}

.article-share-rail.is-collapsed .article-share-rail__button,
.article-share-rail.is-collapsed .share-status,
.article-share-rail.is-collapsed .share-fallback-field {
  display: none;
}

.article-share-rail.is-collapsed .article-share-rail__handle {
  border-bottom: 0;
  cursor: pointer;
}

.article-share-rail__button:last-child {
  border-bottom: 0;
}

.article-share-rail__button:hover,
.article-share-rail__button:focus-visible {
  background: color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 16%, #fff);
  color: #050505;
  outline: 2px solid color-mix(in srgb, var(--article-pillar-accent, var(--accent)) 62%, transparent);
  outline-offset: -2px;
}

.article-share-rail__button--label {
  align-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.article-share-rail__button--label span:not(.article-share-rail__icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.article-share-rail__icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.article-share-rail .share-status,
.article-share-rail .share-fallback-field {
  position: absolute;
  left: 50px;
  top: 0;
  width: 220px;
}

.article-print-brand {
  display: none;
}

.site-search-page {
  display: grid;
  align-content: start;
  gap: 28px;
  margin-inline: auto;
  min-height: 64vh;
  max-width: 1120px;
  padding-top: clamp(42px, 11vh, 110px);
}

.site-search-panel {
  background: transparent;
  margin-inline: auto;
  padding: 0;
  width: min(100%, 720px);
}

.site-search-brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(18px, 4vw, 30px);
}

.site-search-brand img {
  height: auto;
  max-width: min(220px, 64vw);
}

.site-search-form {
  display: grid;
  gap: 12px;
  margin-inline: auto;
  max-width: 720px;
}

.site-search-label {
  color: var(--accent-dark);
  font-weight: 800;
}

.site-search-input-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-search-input {
  width: 100%;
  min-height: 62px;
  border: 2px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  padding: 14px 22px;
}

.site-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: 0;
}

.site-search-submit {
  min-width: 118px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.site-search-submit:hover,
.site-search-submit:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: 0;
}

.site-search-suggestions {
  display: grid;
  gap: 0;
  width: min(100%, 620px);
  margin: -2px 0 0 18px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 32, 27, 0.08);
}

.site-search-suggestions[hidden] {
  display: none;
}

.site-search-suggestion {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.site-search-suggestion:last-child {
  border-bottom: 0;
}

.site-search-suggestion:hover,
.site-search-suggestion:focus-visible,
.site-search-suggestion[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent-dark);
  outline: 0;
}

.site-search-status {
  color: var(--muted);
  font-weight: 700;
  margin-inline: auto;
  min-height: 1.4em;
  max-width: 860px;
}

.site-search-helper {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  text-align: center;
}

.site-search-results {
  display: grid;
  gap: 22px;
  margin-inline: auto;
  max-width: 860px;
  width: min(100%, 860px);
}

.site-search-page:not(.site-search-page--has-results) .site-search-results {
  display: none;
}

.site-search-page--has-results {
  min-height: 0;
  padding-top: clamp(24px, 5vh, 52px);
}

.site-search-page--has-results .site-search-brand {
  margin-bottom: 14px;
}

.site-search-result-group {
  display: grid;
  gap: 12px;
}

.site-search-result-group[hidden],
.site-search-message[hidden],
.site-search-empty[hidden],
.site-search-show-more[hidden] {
  display: none;
}

.site-search-result-group h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.site-search-result-group--related {
  margin-top: 4px;
}

.site-search-result-group--related h2 {
  color: var(--muted);
  font-size: 1rem;
}

.site-search-result-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-search-result a {
  --site-search-result-accent: var(--accent);
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--site-search-result-accent);
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-decoration: none;
}

.site-search-result--best a,
.site-search-result--top a {
  border-left-width: 7px;
  padding: 18px;
}

.site-search-result--best strong,
.site-search-result--top strong {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.site-search-result--related a {
  background: color-mix(in srgb, #fff 86%, var(--surface-muted));
  padding-block: 12px;
}

.site-search-result a[data-clarity-primary="cash-flow"] {
  --site-search-result-accent: #ff3b30;
}

.site-search-result a[data-clarity-primary="liabilities"] {
  --site-search-result-accent: #ff9500;
}

.site-search-result a[data-clarity-primary="assets"] {
  --site-search-result-accent: #ffd60a;
}

.site-search-result a[data-clarity-primary="retirement-readiness"] {
  --site-search-result-accent: #34c759;
}

.site-search-result a[data-clarity-primary="insurance-and-risk"] {
  --site-search-result-accent: #0a84ff;
}

.site-search-result a[data-clarity-primary="tax-optimization"] {
  --site-search-result-accent: #5e5ce6;
}

.site-search-result a[data-clarity-primary="you"] {
  --site-search-result-accent: #bf5af2;
}

.site-search-result a:hover,
.site-search-result a:focus-visible {
  border-color: var(--site-search-result-accent);
  box-shadow: 0 10px 24px rgba(23, 32, 27, 0.08);
  outline: 0;
}

.site-search-result__type {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-search-result strong {
  font-size: 1.04rem;
}

.site-search-result span:not(.site-search-result__type) {
  color: var(--muted);
}

.site-search-result em {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 750;
}

.site-search-empty {
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--surface-muted) 72%, #fff);
  color: var(--muted);
  padding: 16px;
}

.site-search-message {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 74%, #fff);
  color: var(--muted);
  margin: 0;
  padding: 14px 16px;
}

.site-search-show-more {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

.site-search-show-more:hover,
.site-search-show-more:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
  outline: 0;
}

@media (max-width: 620px) {
  .site-search-input-row {
    grid-template-columns: 1fr;
  }

  .site-search-submit {
    min-height: 48px;
    width: 100%;
  }

  .site-search-suggestions {
    margin-left: 0;
    width: 100%;
  }
}

.article-tab-button {
  position: relative;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 10px 14px;
}

.article-tab-button:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.article-tab-button.is-active {
  border-color: var(--line);
  border-bottom-color: var(--surface);
  background: var(--surface);
  color: var(--article-pillar-readable, var(--accent-dark));
  box-shadow: none;
}

.article-tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: var(--article-pillar-accent, var(--accent));
}

.article-tab-button:focus-visible {
  outline: 3px solid rgba(22, 121, 111, 0.18);
  outline-offset: 2px;
}

.article-tab-content[hidden] {
  display: none !important;
}

.article-tab-content,
.article-body,
.article-section {
  min-width: 0;
  max-width: 100%;
}

.article-tab-content {
  font-family: var(--font-article-serif);
  font-size: clamp(1.05rem, 1.05rem + 0.18vw, 1.18rem);
  line-height: 1.66;
}

html[lang^="zh"] .article-tab-content,
html.lang-zh .article-tab-content {
  color: #263843;
  font-family: var(--font-article-zh-sans);
  font-size: clamp(1rem, 1rem + 0.1vw, 1.08rem);
  font-weight: 400;
  line-height: 1.86;
}

html[lang^="zh"] .article-tab-content p,
html.lang-zh .article-tab-content p {
  margin-bottom: 1.35em;
}

.article-tab-content p,
.article-tab-content li {
  font-weight: 400;
  letter-spacing: 0;
}

html[lang^="en"] .article-tab-content p,
html[lang^="en"] .article-tab-content li,
html[lang^="fr"] .article-tab-content p,
html[lang^="fr"] .article-tab-content li,
html.lang-en .article-tab-content p,
html.lang-en .article-tab-content li,
html.lang-fr .article-tab-content p,
html.lang-fr .article-tab-content li {
  line-height: 1.82;
}

.article-tab-content p {
  margin-bottom: 1.15em;
}

html[lang^="en"] .article-tab-content p,
html[lang^="fr"] .article-tab-content p,
html.lang-en .article-tab-content p,
html.lang-fr .article-tab-content p {
  margin-bottom: 1.25em;
}

html[lang^="en"] .article-tab-content li + li,
html[lang^="fr"] .article-tab-content li + li,
html.lang-en .article-tab-content li + li,
html.lang-fr .article-tab-content li + li {
  margin-top: 0.45rem;
}

.article-tab-content strong,
.article-tab-content b {
  font-weight: 650;
}

.article-tab-content h2,
.article-tab-content h3,
.article-tab-content .article-toc,
.article-tab-content .calculator-callout,
.article-tab-content .article-inline-note {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.article-body h2,
.article-body h3,
.article-body [id] {
  scroll-margin-top: 108px;
}

.article-body p,
.article-body li,
.article-body h2,
.article-body h3,
.article-header h1,
.article-lede,
.article-toc li,
.article-toc a {
  max-width: 100%;
  overflow-wrap: break-word;
}

.article-body img,
.article-body video,
.article-body canvas,
.article-body svg {
  max-width: 100%;
  height: auto;
}

.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table-wrap {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body table.article-table {
  display: table;
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  overflow: visible;
}

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

.article-table th {
  color: var(--teal);
  font-weight: 760;
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-body pre,
.article-body code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .article-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-tab-button {
    flex: 0 0 auto;
  }

  .article-actions .button,
  .article-actions .share-fallback-field {
    width: 100%;
  }
}

@media (max-width: 1260px) {
  .article-share-rail {
    top: 118px;
    left: 10px;
    width: 50px;
    touch-action: none;
  }

  .article-share-rail[data-user-positioned="true"] {
    right: auto;
  }

  .article-share-rail.is-dragging {
    cursor: grabbing;
    opacity: 0.94;
    box-shadow: 0 20px 42px rgba(23, 32, 27, 0.2);
  }

  .article-share-rail__handle {
    cursor: grab;
  }

  .article-share-rail.is-dragging .article-share-rail__handle {
    cursor: grabbing;
  }

  .article-share-rail__button {
    width: 52px;
    min-height: 52px;
  }

  .article-share-rail .share-status,
  .article-share-rail .share-fallback-field {
    position: absolute;
    left: 48px;
    width: min(220px, calc(100vw - 64px));
  }
}

@container (max-width: 720px) {
  .projection-table {
    table-layout: fixed;
  }

  .projection-table th,
  .projection-table td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .projection-table td {
    font-size: 0.8rem;
  }

  .projection-table__age,
  .projection-table__year {
    width: 3.25rem;
  }

  .projection-table--future-value col:nth-child(2),
  .projection-table--future-value th:nth-child(2),
  .projection-table--future-value td:nth-child(2) {
    display: none !important;
  }

  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="rrif-projection-heading"] .projection-table col:nth-child(2),
  section[aria-labelledby="rrif-projection-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="rrif-projection-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="rrif-projection-heading"] .projection-table col:nth-child(5),
  section[aria-labelledby="rrif-projection-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="rrif-projection-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(7),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(7),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(7),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(7),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(7),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(7),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table td:nth-child(6) {
    display: none !important;
  }
}

.article-toc,
.article-body,
.article-section,
.article-related-section {
  margin-top: 28px;
}


.article-body p {
  color: var(--ink);
}

.article-inline-note {
  color: var(--muted);
  font-size: 0.92em;
}

.article-inline-figure {
  margin: 26px 0;
}

.article-inline-figure img {
  display: block;
  width: min(100%, 720px);
  max-height: 360px;
  margin-inline: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-inline-figure figcaption {
  max-width: 720px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-toc ol,
.article-sidebar-list {
  margin: 0;
  padding-left: 20px;
}

.article-toc + h2 {
  margin-top: 34px;
}

.article-metadata dl {
  display: grid;
  grid-template-columns: minmax(128px, auto) 1fr;
  gap: 8px 14px;
  margin: 0;
}

.article-metadata dt {
  color: var(--muted);
  font-weight: 750;
}

.article-metadata dd {
  margin: 0;
}

.article-sidebar {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.article-sidebar-card {
  background: var(--surface);
}

.article-sidebar-card h2,
.article-related-section h2,
.article-toc h2,
.article-metadata h2,
.article-sources h2 {
  margin-bottom: 10px;
}

.calculator-sidebar-callout {
  display: grid;
  gap: 12px;
}

.calculator-sidebar-callout h2 {
  margin-bottom: 0;
}

.calculator-sidebar-callout p {
  color: var(--muted);
  margin-bottom: 0;
}

.article-sidebar-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.calculator-callout {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
  background: var(--surface);
}

.calculator-callout h2 {
  margin-bottom: 6px;
}

.calculator-callout p {
  color: var(--muted);
  margin-bottom: 0;
}

.calculator-callout__toggle {
  justify-self: start;
}

.calculator-callout__embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calculator-callout__frame {
  display: block;
  width: 100%;
  height: min(720px, 80vh);
  min-height: 520px;
  border: 0;
}

@media (max-width: 1040px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-hero-placeholder,
  .article-hero-image {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .article-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    overflow-x: clip;
  }

  .article-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow-x: clip;
  }

  .article-shell,
  .article-toc,
  .article-related-section,
  .article-metadata,
  .article-sources,
  .article-sidebar-card,
  .calculator-callout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    overflow-x: clip;
  }

  .article-body,
  .article-tab-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow-x: clip;
  }

  .article-header[data-clarity-primary] {
    margin-left: -10px;
    padding-left: 10px;
  }

  .article-header h1 {
    font-size: clamp(1.52rem, 8.5vw, 2rem);
    overflow-wrap: anywhere;
  }

  .article-hero-placeholder,
  .article-hero-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 150px;
  }

  .article-toc ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
  }

  .article-lede,
  .article-body h2,
  .article-body h3,
  .article-toc a,
  .article-related-list a,
  .article-chip {
    overflow-wrap: anywhere;
  }

  .article-body h2,
  .article-body h3,
  .article-body [id] {
    scroll-margin-top: 92px;
  }

  .article-metadata dl {
    grid-template-columns: 1fr;
  }

  .calculator-callout__frame {
    min-height: 560px;
  }
}

/* Calculator discovery and related-tool infrastructure */
.discovery-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.clarity-snapshot-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8f5 0%, var(--surface) 72%);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.discovery-cta h2,
.discovery-cta p,
.clarity-snapshot-cta h2,
.clarity-snapshot-cta p {
  margin-bottom: 0;
}

.discovery-cta p,
.clarity-snapshot-cta p {
  color: var(--muted);
  margin-top: 8px;
}

.related-calculators-section {
  width: 100%;
  max-width: var(--layout-standard);
  margin-top: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 24px);
}

.related-calculators-section[hidden] {
  display: none;
}

.related-calculators-section .section__header {
  margin-bottom: 14px;
}

.related-calculators-section .section__header p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.related-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-calculator-card {
  --clarity-card-accent: var(--accent);
  --clarity-card-bg: color-mix(in srgb, var(--surface) 92%, var(--surface-muted));
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 8px solid var(--clarity-card-accent);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--clarity-card-bg) 0%, var(--surface) 62%);
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.related-calculator-card[data-clarity-primary="cash-flow"] {
  --clarity-card-accent: #ff3b30;
  --clarity-card-bg: #fff6f6;
}

.related-calculator-card[data-clarity-primary="liabilities"] {
  --clarity-card-accent: #ff9500;
  --clarity-card-bg: #fff7ed;
}

.related-calculator-card[data-clarity-primary="assets"] {
  --clarity-card-accent: #ffd60a;
  --clarity-card-bg: #fffbea;
}

.related-calculator-card[data-clarity-primary="retirement-readiness"] {
  --clarity-card-accent: #34c759;
  --clarity-card-bg: #f4fbf4;
}

.related-calculator-card[data-clarity-primary="insurance-and-risk"] {
  --clarity-card-accent: #0a84ff;
  --clarity-card-bg: #f3f8ff;
}

.related-calculator-card[data-clarity-primary="tax-optimization"] {
  --clarity-card-accent: #5e5ce6;
  --clarity-card-bg: #f6f5ff;
}

.related-calculator-card[data-clarity-primary="you"] {
  --clarity-card-accent: #bf5af2;
  --clarity-card-bg: #fcf5ff;
}

.related-calculator-card:hover,
.related-calculator-card:focus-visible {
  border-color: color-mix(in srgb, var(--clarity-card-accent) 48%, var(--line));
  box-shadow: 0 8px 22px rgba(35, 49, 43, 0.08);
  transform: translateY(-1px);
}

.related-calculator-card__title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.25;
}

.related-calculator-card:hover .related-calculator-card__title,
.related-calculator-card:focus-visible .related-calculator-card__title {
  color: var(--accent-dark);
  text-decoration: underline;
}

.related-calculator-card__summary {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.related-calculators-discovery {
  margin: 16px 0 0;
  font-size: 0.94rem;
  font-weight: 750;
}

@media (max-width: 760px) {
  .discovery-cta,
  .clarity-snapshot-cta {
    grid-template-columns: 1fr;
  }

  .discovery-cta .button,
  .clarity-snapshot-cta .button {
    width: 100%;
  }

  .related-calculator-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}


/* French navigation labels are longer, so collapse the primary nav earlier only when French is active. */
@media (max-width: 1120px) {
  html.lang-fr .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 14px;
  }

  html.lang-fr .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  html.lang-fr .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
  }

  html.lang-fr .site-nav.is-open {
    display: flex;
  }

  html.lang-fr .site-nav a {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 1240px) {

  .tool-category__toggle {
    align-items: flex-start;
  }

  .tool-category__meta {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }
  .tool-list__header {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-list__controls {
    justify-content: flex-start;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .site-nav {
    order: 4;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px;
  }

  .site-language-menu {
    border-left: 0;
    margin-left: auto;
    order: 2;
    padding-left: 0;
  }

  .site-language-menu summary {
    justify-content: center;
  }

  .site-language-menu__links {
    position: absolute;
    width: auto;
  }

  .nav-toggle {
    order: 3;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    align-items: flex-start;
    flex-direction: column;
  }

  
/* Production calculator layout pattern */
.calculator-guidance {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.52;
}

.calculator-guidance strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.calculator-embed-page {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.calculator-core {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin-bottom: 0;
}

.calculator-input-card,
.calculator-primary-result {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 24px);
}

.calculator-input-card h2,
.calculator-primary-result h2 {
  margin-bottom: 14px;
}

.calculator-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 240px), 1fr));
  gap: 18px 20px;
  align-items: start;
  min-width: 0;
}

.calculator-input-grid label,
.calculator-input-grid .calculator-fieldset {
  min-width: 0;
}

.calculator-input-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.3;
}

.calculator-input-grid .calculator-fieldset,
.calculator-input-grid .calculator-actions,
.calculator-input-grid .calculator-message {
  grid-column: 1 / -1;
}

.calculator-input-grid input,
.calculator-input-grid select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.calculator-input-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.calculator-input-grid input:focus,
.calculator-input-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
  background: #fff;
}

.calculator-input-grid .input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.calculator-input-grid .input-with-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
}

.calculator-input-grid .input-with-suffix input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-right: 8px;
}

.calculator-input-grid .input-with-suffix input:focus {
  box-shadow: none;
}

.calculator-input-grid .input-with-suffix span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
  background: var(--surface-muted);
}

.calculator-input-card .calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.calculator-input-card .calculator-actions .button {
  min-height: 46px;
  min-width: 132px;
  justify-content: center;
}

.calculator-input-card .calculator-actions .button:not(.button--primary) {
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  color: var(--accent-dark);
}

.calculator-primary-result[hidden],
.calculator-secondary-output[hidden] {
  display: none;
}

.calculator-primary-result.calculator-empty-state {
  align-self: stretch;
  background: var(--surface-muted);
  box-shadow: none;
}

.calculator-primary-result .result-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.calculator-primary-result .result-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-primary-result .result-grid > div {
  min-width: 0;
}

.calculator-secondary-output {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  overflow: hidden;
}

.calculator-secondary-output .chart-wrap,
.calculator-secondary-output .table-wrap {
  max-width: 100%;
  min-width: 0;
}

.calculator-secondary-output .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calculator-secondary-output canvas {
  max-width: 100%;
}

@media (max-width: 900px) {
  .calculator-input-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .calculator-primary-result .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .calculator-input-grid,
  .calculator-primary-result .result-grid,
  .calculator-primary-result .result-grid--compact {
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions .button {
    width: 100%;
  }
}
.simple-calculator {
    grid-template-columns: 1fr;
  }

  
.site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {

  .tool-category__toggle {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-category__meta {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    justify-self: start;
    width: auto;
  }
  .tool-list__controls,
  .tool-list__control,
  .tool-category__toggle {
    width: 100%;
  }

  .tool-category__toggle {
    min-height: 68px;
    padding: 18px;
  }

  .tool-category__content {
    padding: 0 18px 18px;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  h2 {
    font-size: 1.35rem;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    max-width: calc(100% - 92px);
  }

  .brand__text {
    white-space: normal;
    line-height: 1.15;
  }

  .hero,
  .section,
  .page,
  .calculator-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .result-grid--compact {
    grid-template-columns: 1fr;
  }

  .detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .tool-card,
  .category-card,
  .simple-calculator__panel,
  .content-block,
  .hero__panel div {
    padding: 18px;
  }

  .actions,
  .button,
  .calculator-actions {
    width: 100%;
  }

  .button {
    min-height: 48px;
  }

  .status {
    align-self: flex-start;
  }

  .calculator-frame {
    border-radius: 0;
    margin-left: -16px;
    width: calc(100% + 32px);
  }

  .projection-table th,
  .projection-table td {
    padding: 10px 12px;
  }

  .chart-wrap {
    padding: 10px;
  }

  .chart-wrap canvas {
    height: 310px;
  }
}

@media (max-width: 380px) {
  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__logo {
    max-width: min(190px, 50vw);
    height: 38px;
  }

  .nav-toggle {
    padding-left: 10px;
    padding-right: 10px;
  }
}
























/* CLARITY Framework hub */
.clarity-page {
  width: 100%;
  max-width: var(--layout-standard);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(12px, 2vw, 22px) var(--layout-padding) 38px;
}

.clarity-hero,
.clarity-framework,
.clarity-area,
.clarity-article-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.clarity-hero {
  display: grid;
  gap: 7px;
  padding: clamp(14px, 3vw, 28px);
  margin-bottom: 12px;
}

.clarity-hero h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.14;
}

.clarity-subtitle {
  color: var(--accent-dark);
  font-size: clamp(1.03rem, 1.2vw, 1.14rem);
  font-weight: 760;
  line-height: 1.32;
  margin-bottom: 0;
}

.clarity-hero p:not(.eyebrow) {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.clarity-framework {
  padding: clamp(14px, 2.4vw, 24px);
  margin-bottom: 14px;
}

.clarity-framework .section__header h2,
.clarity-area .section__header h2 {
  font-size: clamp(1.18rem, 1.52vw, 1.44rem);
  line-height: 1.18;
}

.clarity-grid,
.clarity-area-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.clarity-grid article,
.clarity-area {
  min-width: 0;
  padding: 16px;
}

.clarity-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.clarity-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid rgba(18, 105, 95, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 850;
}

.clarity-grid h3,
.clarity-area h3 {
  margin-bottom: 8px;
}

.clarity-grid p,
.clarity-area p {
  margin-bottom: 0;
  color: var(--muted);
}

.clarity-section-list {
  display: grid;
  gap: 18px;
}

.clarity-area {
  display: grid;
  gap: 10px;
}

.clarity-area .article-related-list {
  margin-top: 4px;
}

.clarity-symbol {
  block-size: 1.5rem;
  color: currentColor;
  flex: 0 0 auto;
  inline-size: 1.5rem;
  stroke: currentColor;
}

.clarity-symbol--large {
  block-size: 2rem;
  inline-size: 2rem;
}

.clarity-symbol-label {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.clarity-symbol--cash-flow { color: #ff3b30; }
.clarity-symbol--liabilities { color: #ff9500; }
.clarity-symbol--assets { color: #d3a900; }
.clarity-symbol--retirement-readiness { color: #34c759; }
.clarity-symbol--insurance-and-risk { color: #0a84ff; }
.clarity-symbol--tax-optimization { color: #5e5ce6; }
.clarity-symbol--you { color: #bf5af2; }

.clarity-symbol-badge {
  align-items: center;
  background: color-mix(in srgb, var(--pillar-accent, var(--accent)) 9%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--pillar-accent, var(--accent)) 26%, var(--line));
  border-radius: 999px;
  color: var(--pillar-accent-readable, var(--accent-dark));
  display: inline-flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.45rem;
}

.clarity-pillar-hero {
  align-items: stretch;
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
  grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr);
}

.clarity-pillar-hero__symbol-cell {
  align-items: center;
  align-self: stretch;
  border-right: 1px solid color-mix(in srgb, var(--pillar-accent, var(--accent)) 26%, var(--line));
  color: var(--pillar-accent-readable, var(--accent-dark));
  display: flex;
  justify-content: center;
  padding-right: clamp(1rem, 2.5vw, 1.5rem);
}

.clarity-pillar-hero__symbol-cell .clarity-symbol {
  block-size: clamp(4.25rem, 8vw, 6rem);
  inline-size: clamp(4.25rem, 8vw, 6rem);
}

.clarity-pillar-hero__content {
  min-width: 0;
}

.clarity-letter-list {
  display: grid;
  gap: 18px;
}

.clarity-letter-list p {
  display: grid;
  grid-template-columns: clamp(2.8rem, 5.4vw, 4.4rem) 58px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.clarity-letter-list p.clarity-symbol-label {
  display: grid;
}

.clarity-letter-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.clarity-letter-list .clarity-symbol {
  block-size: clamp(2.3rem, 5vw, 4rem);
  grid-row: span 2;
  inline-size: clamp(2.3rem, 5vw, 4rem);
  margin-top: 0.4rem;
}

.clarity-letter-list span {
  grid-row: span 2;
  color: var(--accent-dark);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 780;
  line-height: 0.9;
}

.clarity-letter-list p:nth-child(1) span { color: #ff3b30; }
.clarity-letter-list p:nth-child(2) span { color: #ff9500; }
.clarity-letter-list p:nth-child(3) span { color: #d3a900; }
.clarity-letter-list p:nth-child(4) span { color: #34c759; }
.clarity-letter-list p:nth-child(5) span { color: #0a84ff; }
.clarity-letter-list p:nth-child(6) span { color: #5e5ce6; }
.clarity-letter-list p:nth-child(7) span { color: #bf5af2; }

.clarity-letter-list strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 760;
}

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

.clarity-tool-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.clarity-tool-card:hover,
.clarity-tool-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
  transform: translateY(-1px);
}

.clarity-tool-card span {
  color: var(--accent-dark);
  font-weight: 760;
}

.clarity-tool-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.clarity-article-hero {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
  padding: clamp(16px, 3vw, 24px);
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-muted));
}

.clarity-article-hero span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  text-align: center;
}

@media (max-width: 920px) {
  .clarity-grid,
  .clarity-area-list,
  .clarity-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .clarity-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .clarity-grid,
  .clarity-area-list,
  .clarity-tool-grid,
  .clarity-article-hero {
    grid-template-columns: 1fr;
  }

  .clarity-letter-list p {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
  }
}








.calculator-feedback {
  border-color: var(--line-strong, var(--line));
  background: var(--surface);
}

.calculator-feedback h2 {
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.calculator-feedback p {
  margin: 0 0 16px;
  color: var(--muted);
}

.calculator-feedback__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Shared progressive header: the unenhanced link row remains the no-JavaScript fallback. */
.site-header.site-header--enhanced {
  background: rgba(251, 250, 246, 0.97);
  border-bottom: 1px solid rgba(14, 69, 64, 0.24);
  display: block;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 18px;
  margin: 0 auto;
  max-width: var(--layout-wide);
  min-height: 68px;
  padding: 9px var(--layout-padding);
  position: relative;
  width: 100%;
}

.site-header--enhanced .brand {
  margin-right: auto;
  min-height: 44px;
  order: initial;
}

.site-header--enhanced .brand__logo {
  border-radius: 0;
  display: block;
  height: auto;
  max-width: none;
  width: 148px;
}

.site-header__quiet-links {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-header__quiet-links a,
.site-header--enhanced .site-nav a {
  color: #0e4540;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.site-header__quiet-links a {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  min-height: 40px;
  padding: 10px 11px;
  white-space: nowrap;
}

.site-header__quiet-links a:hover,
.site-header__quiet-links a:focus-visible,
.site-header__quiet-links a[aria-current="page"] {
  background: #e8f1ed;
  color: #0e4540;
}

.site-header--enhanced .site-language-menu {
  border-left: 1px solid rgba(14, 69, 64, 0.24);
  margin: 0;
  order: initial;
  padding-left: 18px;
  position: relative;
}

.site-header--enhanced .site-language-menu summary {
  background: #fbfaf6;
  border-color: rgba(14, 69, 64, 0.24);
  color: #0e4540;
  justify-content: center;
  min-height: 40px;
  min-width: 58px;
}

.site-header--enhanced .site-language-menu__links {
  right: 0;
  top: calc(100% + 8px);
}

.site-header--enhanced .nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(14, 69, 64, 0.24);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  order: initial;
  padding: 0;
  width: 42px;
}

.site-header--enhanced .nav-toggle span {
  background: #0e4540;
  display: block;
  height: 2px;
  transform-origin: center;
  transition: transform 200ms ease, opacity 160ms ease;
  width: 18px;
}

.site-header--enhanced .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.site-header--enhanced .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header--enhanced .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

.site-header--enhanced .nav-toggle:hover,
.site-header--enhanced .nav-toggle:focus-visible,
.site-header--enhanced .nav-toggle[aria-expanded="true"] {
  background: #e8f1ed;
  border-color: #14776c;
}

.site-header--enhanced .nav-toggle:focus-visible,
.site-header--enhanced .site-language-menu summary:focus-visible,
.site-header--enhanced a:focus-visible {
  outline: 3px solid #d89b42;
  outline-offset: 3px;
}

.site-header--enhanced .site-nav {
  background: #fffefb;
  border: 1px solid rgba(14, 69, 64, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(8, 47, 48, 0.16), 0 3px 10px rgba(8, 47, 48, 0.08);
  clip-path: inset(0 0 100% 100% round 8px);
  display: grid;
  flex-basis: auto;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  margin-left: 0;
  max-height: min(620px, calc(100vh - 88px));
  min-width: 282px;
  opacity: 0;
  overflow-y: auto;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: var(--layout-padding);
  top: calc(100% + 10px);
  transform-origin: top right;
  visibility: hidden;
  width: auto;
  z-index: 120;
}

.site-header--enhanced .site-nav.is-open {
  animation: site-menu-in 200ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  pointer-events: auto;
  visibility: visible;
}

.site-header--enhanced .site-nav.is-closing {
  animation: site-menu-out 180ms cubic-bezier(0.4, 0, 0.8, 0.25) both;
  pointer-events: none;
  visibility: visible;
}

.site-header--enhanced .site-nav a {
  align-items: center;
  border-radius: 5px;
  display: flex;
  min-height: 44px;
  overflow-wrap: normal;
  padding: 10px 13px;
  text-align: left;
  white-space: nowrap;
  width: 100%;
}

.site-header--enhanced .site-nav a:hover,
.site-header--enhanced .site-nav a:focus-visible,
.site-header--enhanced .site-nav a[aria-current="page"] {
  background: #edf4f1;
  color: #14776c;
}

.site-header--enhanced .site-nav sup {
  font-size: 0.65em;
  margin-left: 0.12em;
}

.site-header__compact-divider,
.site-header--enhanced .site-nav .site-header__compact-link { display: none; }

@keyframes site-menu-in {
  from { clip-path: inset(0 0 100% 100% round 8px); opacity: 0; }
  to { clip-path: inset(0 round 8px); opacity: 1; }
}

@keyframes site-menu-out {
  from { clip-path: inset(0 round 8px); opacity: 1; }
  to { clip-path: inset(0 0 100% 100% round 8px); opacity: 0; }
}

@media (max-width: 1240px) {
  .site-header:not(.site-header--enhanced) .nav-toggle { display: none; }
  .site-header:not(.site-header--enhanced) .site-nav {
    display: flex;
    flex-basis: 100%;
  }

  .site-header--enhanced {
    align-items: initial;
    flex-wrap: nowrap;
  }

  .site-header--enhanced .site-nav {
    display: grid;
    flex-basis: auto;
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .site-header__inner { gap: 10px; }
  .site-header--enhanced .brand__logo { width: 132px; }
  .site-header__quiet-links { display: none; }
  .site-header--enhanced .site-language-menu {
    border-left: 0;
    margin-left: auto;
    padding-left: 0;
  }
  .site-header__compact-divider {
    border-top: 1px solid rgba(14, 69, 64, 0.24);
    display: block;
    margin: 8px 5px;
  }
  .site-header--enhanced .site-nav .site-header__compact-link { display: flex; }
}

@media (max-width: 390px) {
  .site-header__inner { padding-left: 14px; padding-right: 14px; }
  .site-header--enhanced .brand__logo { width: 118px; }
  .site-header--enhanced .site-language-menu summary { min-width: 52px; }
  .site-header--enhanced .site-nav {
    max-width: calc(100vw - 28px);
    min-width: min(282px, calc(100vw - 28px));
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header--enhanced .site-nav.is-open,
  .site-header--enhanced .site-nav.is-closing { animation: none; }
  .site-header--enhanced .nav-toggle span { transition: none; }
}

@media (forced-colors: active) {
  .site-header--enhanced .site-nav { border: 1px solid CanvasText; }
}

@media print {
  html,
  body {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .calculator-frame::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .site-header,
  .site-footer,
  .article-sidebar,
  .article-tabs,
  .article-actions,
  .article-hero-placeholder,
  .article-related-section,
  .article-sources,
  .calculator-callout,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  .calculator-frame {
    overflow: visible !important;
  }

  .article-page,
  .article-layout,
  .article-shell {
    display: block !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .article-print-brand {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12pt;
    align-items: center;
    margin: 0 0 18pt;
    padding: 0 0 12pt;
    border-bottom: 1px solid #cfd9d4;
  }

  .article-print-brand img {
    display: block;
    width: 96px;
    height: auto;
  }

  .article-print-brand__text {
    display: grid;
    gap: 2pt;
  }

  .article-print-brand__title {
    font-size: 14pt;
    font-weight: 800;
    line-height: 1.15;
  }

  .article-print-brand__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8pt;
    align-items: baseline;
    color: #355f5b;
    font-size: 9.5pt;
    line-height: 1.3;
  }

  .article-print-brand__url {
    margin-left: auto;
    padding-right: 24pt;
    color: #355f5b;
    font-weight: 700;
  }

  .article-shell,
  .article-disclaimer,
  .article-sources {
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .article-header {
    margin-bottom: 18pt;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 12pt;
    border-left: 0 !important;
    border-bottom: 1px solid #cfd9d4;
  }

  .article-header h1 {
    font-size: 24pt;
  }

  .article-chip-row {
    display: none !important;
  }

  .article-tab-content[hidden] {
    display: none !important;
  }

  .article-body {
    margin-top: 0 !important;
  }

  .article-body h2,
  .article-disclaimer h2,
  .article-sources h2 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .article-body p,
  .article-disclaimer p,
  .article-sources p {
    orphans: 3;
    widows: 3;
  }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }
}


/* Calculator numeric input and compact table standardization */
.calculator-embed-page input[type="number"],
.calculator-embed-page input[inputmode="decimal"],
.calculator-embed-page input[inputmode="numeric"],
.calculator-input-grid input[type="number"],
.calculator-input-grid input[inputmode="decimal"],
.calculator-input-grid input[inputmode="numeric"] {
  text-align: right !important;
}

.calculator-embed-page input[type="number"]::-webkit-outer-spin-button,
.calculator-embed-page input[type="number"]::-webkit-inner-spin-button,
.calculator-input-grid input[type="number"]::-webkit-outer-spin-button,
.calculator-input-grid input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.calculator-embed-page input[type="number"],
.calculator-input-grid input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.calculator-input-grid .input-with-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  padding-inline: 12px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.calculator-input-grid .input-with-prefix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
}

.calculator-input-grid .input-with-prefix > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 750;
}

.calculator-input-grid .input-with-prefix > input,
.calculator-input-grid .input-with-prefix > input:focus {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent;
  margin: 0;
  padding: 0;
  text-align: right !important;
}

.calculator-input-grid .input-with-suffix > input,
.calculator-input-grid .input-with-suffix > input:focus {
  text-align: right !important;
}

.calculator-primary-result .result-grid strong {
  display: block;
  text-align: right;
}

.projection-table {
  min-width: 0;
}

.projection-table--future-value,
.projection-table--comparison,
.projection-table--amortization,
.projection-table--amt-exposure {
  min-width: 0;
}

.projection-table__age,
.projection-table__year {
  width: 4.5rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.projection-table__money,
.projection-table__percent {
  width: auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 560px) {
  .projection-table {
    table-layout: fixed;
  }

  .projection-table th,
  .projection-table td {
    padding-left: 6px;
    padding-right: 6px;
  }

  .projection-table--future-value th,
  .projection-table--future-value td,
  .projection-table--comparison th,
  .projection-table--comparison td,
  .projection-table--amortization th,
  .projection-table--amortization td,
  .projection-table--amt-exposure th,
  .projection-table--amt-exposure td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .projection-table th {
    white-space: normal;
    overflow-wrap: normal;
  }

  .projection-table td {
    font-size: 0.84rem;
  }

  .projection-table--future-value td,
  .projection-table--comparison td,
  .projection-table--amortization td,
  .projection-table--amt-exposure td {
    font-size: 0.8rem;
  }

  .projection-table__age,
  .projection-table__year {
    width: 3.75rem;
  }

  .projection-table--future-value .projection-table__year,
  .projection-table--comparison .projection-table__age,
  .projection-table--comparison .projection-table__year {
    width: 3.25rem;
  }
}

@media (max-width: 740px) {
  section[aria-labelledby="future-value-projection-heading"] .projection-table col:nth-child(2),
  section[aria-labelledby="future-value-projection-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="future-value-projection-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="compound-growth-projection-heading"] .projection-table col:nth-child(2),
  section[aria-labelledby="compound-growth-projection-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="compound-growth-projection-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="savings-goal-projection-heading"] .projection-table col:nth-child(2),
  section[aria-labelledby="savings-goal-projection-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="savings-goal-projection-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="mortgage-amortization-annual-heading"] .projection-table col:nth-child(2),
  section[aria-labelledby="mortgage-amortization-annual-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="mortgage-amortization-annual-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="cpp-qpp-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="rrif-projection-heading"] .projection-table col:nth-child(2),
  section[aria-labelledby="rrif-projection-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="rrif-projection-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="rrif-projection-heading"] .projection-table col:nth-child(5),
  section[aria-labelledby="rrif-projection-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="rrif-projection-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="loan-payment-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="loan-payment-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="loan-payment-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="loan-payment-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="mortgage-payment-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="mortgage-payment-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="mortgage-payment-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="mortgage-payment-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table th:nth-child(7),
  section[aria-labelledby="capital-gains-tax-table-heading"] .projection-table td:nth-child(7),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table th:nth-child(7),
  section[aria-labelledby="eligible-dividend-tax-table-heading"] .projection-table td:nth-child(7),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="marginal-tax-rate-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(4),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(4),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(5),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(5),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(6),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table th:nth-child(7),
  section[aria-labelledby="oas-clawback-table-heading"] .projection-table td:nth-child(7),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table th:nth-child(2),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table td:nth-child(2),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table th:nth-child(3),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table td:nth-child(3),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table th:nth-child(6),
  section[aria-labelledby="mortgage-amortization-table-heading"] .projection-table td:nth-child(6) {
    display: none !important;
  }
}

/* CLARITY pillar hub pages */
.pillar-hub-page {
  --pillar-accent: var(--accent);
  --pillar-accent-readable: var(--accent-dark);
  --pillar-accent-soft: color-mix(in srgb, var(--surface) 90%, var(--pillar-accent) 10%);
  display: grid;
  gap: clamp(16px, 3vw, 30px);
}

body[data-clarity-pillar="Cash Flow"] .pillar-hub-page {
  --pillar-accent: #ff3b30;
  --pillar-accent-readable: #b8241d;
}

body[data-clarity-pillar="Liabilities"] .pillar-hub-page {
  --pillar-accent: #ff9500;
  --pillar-accent-readable: #a55600;
}

body[data-clarity-pillar="Assets"] .pillar-hub-page {
  --pillar-accent: #ffd60a;
  --pillar-accent-readable: #715800;
}

body[data-clarity-pillar="Retirement Readiness"] .pillar-hub-page {
  --pillar-accent: #34c759;
  --pillar-accent-readable: #19742f;
}

body[data-clarity-pillar="Insurance and Risk"] .pillar-hub-page,
body[data-clarity-pillar="Insurance & Risk"] .pillar-hub-page {
  --pillar-accent: #0a84ff;
  --pillar-accent-readable: #005eaf;
}

body[data-clarity-pillar="Tax Optimization"] .pillar-hub-page {
  --pillar-accent: #5e5ce6;
  --pillar-accent-readable: #3b38ac;
}

body[data-clarity-pillar="You"] .pillar-hub-page {
  --pillar-accent: #bf5af2;
  --pillar-accent-readable: #8629b5;
}

.pillar-hub-hero h1 span {
  color: var(--pillar-accent-readable);
}

.pillar-hub-page .pillar-hub-hero {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--pillar-accent) 28%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--surface) 96%, var(--pillar-accent) 4%) 0%, rgba(255, 255, 255, 0.96) 62%),
    var(--surface);
}

.pillar-hub-page .pillar-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--pillar-accent);
}

.pillar-hub-page .pillar-hub-hero > * {
  position: relative;
  z-index: 1;
}

.pillar-hub-page .pillar-hub-hero .eyebrow,
.pillar-hub-page .pillar-hub-section .eyebrow,
.pillar-hub-page .pillar-hub-panel .eyebrow {
  color: var(--pillar-accent-readable);
}

.pillar-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.pillar-hub-panel,
.pillar-hub-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 24px);
}

.pillar-hub-panel--questions {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, var(--pillar-accent) 4%) 0%, #ffffff 82%);
  border-left: 6px solid var(--pillar-accent);
  border-color: color-mix(in srgb, var(--pillar-accent) 24%, var(--line));
}

.pillar-hub-section {
  border-top: 3px solid var(--pillar-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--pillar-accent) 2%) 0%, var(--surface) 130px);
}

.pillar-hub-panel h2,
.pillar-hub-section h2 {
  margin-bottom: 10px;
}

.pillar-hub-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.pillar-hub-panel li + li {
  margin-top: 8px;
}

.pillar-hub-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pillar-hub-link {
  --pillar-card-accent: var(--pillar-accent);
  --pillar-card-readable: var(--pillar-accent-readable);
  --pillar-card-soft: color-mix(in srgb, var(--surface) 94%, var(--pillar-card-accent) 6%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--pillar-card-accent);
  border-radius: 8px;
  background: var(--pillar-card-soft);
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

.pillar-hub-link[data-clarity-primary="cash-flow"] {
  --pillar-card-accent: #ff3b30;
  --pillar-card-readable: #b8241d;
  --pillar-card-soft: #fff6f6;
}

.pillar-hub-link[data-clarity-primary="liabilities"] {
  --pillar-card-accent: #ff9500;
  --pillar-card-readable: #a55600;
  --pillar-card-soft: #fff7ed;
}

.pillar-hub-link[data-clarity-primary="assets"] {
  --pillar-card-accent: #ffd60a;
  --pillar-card-readable: #715800;
  --pillar-card-soft: #fffbea;
}

.pillar-hub-link[data-clarity-primary="retirement-readiness"] {
  --pillar-card-accent: #34c759;
  --pillar-card-readable: #19742f;
  --pillar-card-soft: #f4fbf4;
}

.pillar-hub-link[data-clarity-primary="insurance-risk"],
.pillar-hub-link[data-clarity-primary="insurance-and-risk"] {
  --pillar-card-accent: #0a84ff;
  --pillar-card-readable: #005eaf;
  --pillar-card-soft: #f3f8ff;
}

.pillar-hub-link[data-clarity-primary="tax-optimization"] {
  --pillar-card-accent: #5e5ce6;
  --pillar-card-readable: #3b38ac;
  --pillar-card-soft: #f6f5ff;
}

.pillar-hub-link[data-clarity-primary="you"] {
  --pillar-card-accent: #bf5af2;
  --pillar-card-readable: #8629b5;
  --pillar-card-soft: #fcf5ff;
}

.pillar-hub-link[hidden] {
  display: none;
}

.pillar-hub-link:hover,
.pillar-hub-link:focus-visible {
  border-color: color-mix(in srgb, var(--pillar-card-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--surface) 90%, var(--pillar-card-accent) 10%);
}

.pillar-hub-link strong {
  display: block;
  color: var(--pillar-card-readable);
  line-height: 1.25;
}

.pillar-hub-link small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.pillar-hub-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px dashed color-mix(in srgb, var(--pillar-accent) 36%, var(--line));
  border-radius: 8px;
  color: var(--pillar-accent-readable);
  background: color-mix(in srgb, var(--surface) 96%, var(--pillar-accent) 4%);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.pillar-hub-more:hover,
.pillar-hub-more:focus-visible {
  border-style: solid;
  background: color-mix(in srgb, var(--surface) 92%, var(--pillar-accent) 8%);
}

.pillar-hub-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.pillar-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pillar-hub-nav a {
  --nav-pillar-accent: var(--pillar-accent);
  --nav-pillar-readable: var(--pillar-accent-readable);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--nav-pillar-readable);
  background: var(--surface);
  text-decoration: none;
  font-weight: 720;
}

.pillar-hub-nav a[href*="cash-flow"] {
  --nav-pillar-accent: #ff3b30;
  --nav-pillar-readable: #b8241d;
}

.pillar-hub-nav a[href*="liabilities"] {
  --nav-pillar-accent: #ff9500;
  --nav-pillar-readable: #a55600;
}

.pillar-hub-nav a[href*="assets"] {
  --nav-pillar-accent: #ffd60a;
  --nav-pillar-readable: #715800;
}

.pillar-hub-nav a[href*="retirement-readiness"] {
  --nav-pillar-accent: #34c759;
  --nav-pillar-readable: #19742f;
}

.pillar-hub-nav a[href*="insurance-risk"] {
  --nav-pillar-accent: #0a84ff;
  --nav-pillar-readable: #005eaf;
}

.pillar-hub-nav a[href*="tax-optimization"] {
  --nav-pillar-accent: #5e5ce6;
  --nav-pillar-readable: #3b38ac;
}

.pillar-hub-nav a[href*="you"] {
  --nav-pillar-accent: #bf5af2;
  --nav-pillar-readable: #8629b5;
}

.pillar-hub-nav a span {
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--nav-pillar-readable);
}

.pillar-hub-nav .clarity-symbol {
  block-size: 1.18rem;
  color: var(--nav-pillar-readable);
  inline-size: 1.18rem;
}

.pillar-hub-nav a:hover,
.pillar-hub-nav a:focus-visible {
  border-color: var(--nav-pillar-accent);
  background: color-mix(in srgb, var(--surface) 94%, var(--nav-pillar-accent) 6%);
}

.concern-btn.clarity-symbol-label,
.journey-step h2 a.clarity-symbol-label,
.guidebook-pillar h3 a.clarity-symbol-label,
.article-toc a.clarity-symbol-label,
.article-body h2.clarity-symbol-label {
  align-items: center;
  display: inline-flex;
}

.concern-btn.clarity-symbol-label {
  justify-content: flex-start;
  text-align: left;
}

.journey-step h2 a .clarity-symbol,
.guidebook-pillar h3 a .clarity-symbol,
.article-toc a .clarity-symbol,
.article-body h2 .clarity-symbol {
  color: currentColor;
}

.journey-step h2.clarity-journey-pillar-heading {
  --journey-pillar-accent: var(--accent-dark);
  border-left: 4px solid var(--journey-pillar-accent);
  padding-left: 0.65rem;
}

.journey-step h2.clarity-journey-pillar-heading a {
  color: color-mix(in srgb, var(--journey-pillar-accent) 68%, var(--ink));
}

.journey-step h2.clarity-journey-pillar-heading a:hover,
.journey-step h2.clarity-journey-pillar-heading a:focus-visible {
  color: color-mix(in srgb, var(--journey-pillar-accent) 76%, var(--ink));
  text-decoration-color: var(--journey-pillar-accent);
}

.journey-step h2.clarity-journey-pillar-heading .clarity-symbol {
  color: var(--journey-pillar-accent);
}

.journey-step h2.clarity-journey-pillar-heading--cash-flow {
  --journey-pillar-accent: #ff3b30;
}

.journey-step h2.clarity-journey-pillar-heading--liabilities {
  --journey-pillar-accent: #ff8a00;
}

.journey-step h2.clarity-journey-pillar-heading--assets {
  --journey-pillar-accent: #d3a900;
}

.journey-step h2.clarity-journey-pillar-heading--retirement-readiness {
  --journey-pillar-accent: #24a148;
}

.journey-step h2.clarity-journey-pillar-heading--insurance-and-risk {
  --journey-pillar-accent: #0f62fe;
}

.journey-step h2.clarity-journey-pillar-heading--tax-optimization {
  --journey-pillar-accent: #5b45d8;
}

.journey-step h2.clarity-journey-pillar-heading--you {
  --journey-pillar-accent: #8a3ffc;
}

.article-body h2 .clarity-symbol {
  block-size: 1.65rem;
  inline-size: 1.65rem;
}

.clarity-framework-pillar-tabs {
  --framework-tab-gap: -10px;
  align-items: center;
  display: flex;
  margin: 1rem 0 1.25rem;
  overflow: visible;
  padding: 0.2rem 0 0.35rem;
}

.clarity-framework-pillar-tab {
  --framework-tab-accent: var(--accent-dark);
  --framework-tab-bg: color-mix(in srgb, #ffffff 94%, var(--framework-tab-accent) 6%);
  --framework-tab-border: color-mix(in srgb, var(--framework-tab-accent) 46%, var(--line));
  align-items: center;
  background: var(--framework-tab-bg);
  border: 1px solid var(--framework-tab-border);
  border-bottom-width: 3px;
  border-radius: 8px;
  color: var(--framework-tab-accent);
  display: grid;
  flex: 0 0 auto;
  gap: 0.5rem;
  grid-template-columns: 2rem minmax(max-content, 1fr);
  min-height: 3.25rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.clarity-framework-pillar-tab + .clarity-framework-pillar-tab {
  margin-left: var(--framework-tab-margin, var(--framework-tab-gap));
}

.clarity-framework-pillar-tab:hover,
.clarity-framework-pillar-tab:focus-visible {
  background: color-mix(in srgb, #ffffff 88%, var(--framework-tab-accent) 12%);
  border-color: var(--framework-tab-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--framework-tab-accent) 22%, transparent);
  outline: none;
  position: relative;
  transform: translateY(-1px);
  z-index: 100;
}

.clarity-framework-pillar-tab.is-active,
.clarity-framework-pillar-tab[aria-selected="true"] {
  background: #ffffff;
  border-color: var(--framework-tab-accent);
  box-shadow: inset 0 4px 0 var(--framework-tab-accent), 0 8px 18px rgba(16, 35, 30, 0.08);
  color: var(--framework-tab-accent);
  position: relative;
  transform: translateY(1px);
  z-index: 120;
}

.clarity-framework-pillar-tabs.is-measuring .clarity-framework-pillar-tab,
.clarity-framework-pillar-tabs.is-overlapped .clarity-framework-pillar-tab {
  flex: 0 0 auto;
  width: max-content;
}

.clarity-framework-pillar-tabs.is-measuring .clarity-framework-pillar-tab + .clarity-framework-pillar-tab {
  margin-left: 0;
}

.clarity-framework-pillar-tabs.is-overlapped .clarity-framework-pillar-tab {
  position: relative;
  z-index: var(--framework-tab-z, 1);
}

.clarity-framework-pillar-tabs.is-overlapped .clarity-framework-pillar-tab.is-active,
.clarity-framework-pillar-tabs.is-overlapped .clarity-framework-pillar-tab[aria-selected="true"],
.clarity-framework-pillar-tabs.is-overlapped .clarity-framework-pillar-tab:focus-visible {
  z-index: 220;
}

.clarity-framework-pillar-tab--cash-flow { --framework-tab-accent: #ff3b30; }
.clarity-framework-pillar-tab--liabilities { --framework-tab-accent: #ff9500; }
.clarity-framework-pillar-tab--assets { --framework-tab-accent: #d3a900; }
.clarity-framework-pillar-tab--retirement-readiness { --framework-tab-accent: #34a853; }
.clarity-framework-pillar-tab--insurance-and-risk { --framework-tab-accent: #0a84ff; }
.clarity-framework-pillar-tab--tax-optimization { --framework-tab-accent: #5e5ce6; }
.clarity-framework-pillar-tab--you { --framework-tab-accent: #bf5af2; }

.clarity-framework-tabpanel--cash-flow { --framework-panel-accent: #ff3b30; }
.clarity-framework-tabpanel--liabilities { --framework-panel-accent: #ff9500; }
.clarity-framework-tabpanel--assets { --framework-panel-accent: #d3a900; }
.clarity-framework-tabpanel--retirement-readiness { --framework-panel-accent: #34a853; }
.clarity-framework-tabpanel--insurance-and-risk { --framework-panel-accent: #0a84ff; }
.clarity-framework-tabpanel--tax-optimization { --framework-panel-accent: #5e5ce6; }
.clarity-framework-tabpanel--you { --framework-panel-accent: #bf5af2; }

.clarity-framework-pillar-heading--cash-flow { --framework-heading-accent: #ff3b30; }
.clarity-framework-pillar-heading--liabilities { --framework-heading-accent: #ff9500; }
.clarity-framework-pillar-heading--assets { --framework-heading-accent: #d3a900; }
.clarity-framework-pillar-heading--retirement-readiness { --framework-heading-accent: #34a853; }
.clarity-framework-pillar-heading--insurance-and-risk { --framework-heading-accent: #0a84ff; }
.clarity-framework-pillar-heading--tax-optimization { --framework-heading-accent: #5e5ce6; }
.clarity-framework-pillar-heading--you { --framework-heading-accent: #bf5af2; }

.article-body h2.clarity-framework-pillar-heading {
  border-left: 4px solid var(--framework-heading-accent);
  color: color-mix(in srgb, var(--framework-heading-accent) 72%, var(--ink));
  padding-left: 0.65rem;
}

.article-body h2.clarity-framework-pillar-heading .clarity-symbol {
  color: var(--framework-heading-accent);
}

.clarity-framework-tabpanels {
  margin: 0.35rem 0 1.5rem;
}

.clarity-framework-tabpanel {
  border: 1px solid color-mix(in srgb, var(--framework-panel-accent, var(--line)) 28%, var(--line));
  border-left: 5px solid var(--framework-panel-accent, var(--accent));
  border-radius: 8px;
  background: color-mix(in srgb, #ffffff 96%, var(--framework-panel-accent, var(--accent)) 4%);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  scroll-margin-top: 108px;
}

.clarity-framework-tabpanel[hidden] {
  display: none;
}

.clarity-framework-tabpanel:focus {
  outline: 3px solid color-mix(in srgb, var(--framework-panel-accent, var(--accent)) 24%, transparent);
  outline-offset: 3px;
}

.clarity-framework-tabpanel h2:first-child {
  margin-top: 0;
}

.clarity-framework-tabpanel > :last-child {
  margin-bottom: 0;
}

.clarity-framework-tabpanel a {
  color: color-mix(in srgb, var(--framework-panel-accent, var(--link)) 72%, var(--link));
}

.clarity-framework-pillar-tab .clarity-symbol {
  block-size: 1.9rem;
  color: var(--framework-tab-accent);
  inline-size: 1.9rem;
}

.clarity-framework-pillar-tab__letter {
  color: var(--framework-tab-accent);
  font-size: 1.9rem;
  font-weight: 820;
  line-height: 1;
}

.clarity-framework-pillar-tab__label {
  color: var(--ink);
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.clarity-framework-continue {
  border-top: 1px solid var(--line);
  margin: 0.35rem 0 0;
  padding-top: 0.85rem;
}

.clarity-framework-continue h3 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
}

.clarity-framework-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clarity-framework-section-links li {
  margin: 0;
}

.guidebook-pillar h3 a .clarity-symbol {
  block-size: 1.45rem;
  inline-size: 1.45rem;
}

@media (max-width: 760px) {
  .pillar-hub-grid,
  .pillar-hub-link-list,
  .pillar-hub-link {
    grid-template-columns: 1fr;
  }

  .clarity-letter-list p {
    grid-template-columns: 2.7rem 44px minmax(0, 1fr);
    column-gap: 14px;
  }

  .clarity-symbol-badge {
    margin-bottom: 0.65rem;
  }

  .clarity-pillar-hero {
    gap: 1rem;
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .clarity-pillar-hero__symbol-cell {
    padding-right: 0.85rem;
  }

  .clarity-pillar-hero__symbol-cell .clarity-symbol {
    block-size: 3.75rem;
    inline-size: 3.75rem;
  }

  .clarity-framework-pillar-tabs {
    margin-left: -0.15rem;
    padding-left: 0.15rem;
  }

  .clarity-framework-pillar-tab {
    gap: 0.42rem;
    grid-template-columns: 1.75rem minmax(max-content, 1fr);
    min-height: 3rem;
    padding: 0.5rem 0.65rem;
  }

  .clarity-framework-pillar-tab .clarity-symbol {
    block-size: 1.65rem;
    inline-size: 1.65rem;
  }

  .clarity-framework-pillar-tab__letter {
    font-size: 1.6rem;
  }

}

@media print {
  .clarity-symbol,
  .clarity-symbol-badge {
    color: #222 !important;
  }
}

/* Stage A tax-family static guidance: subsection labels remain body-sized. */
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__section {
  margin-top: 1.5rem;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__eyebrow {
  margin: 0 0 8px;
  color: #5553bb;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
}
html[lang^="zh"] body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__eyebrow {
  letter-spacing: 0;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__section h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 .5rem;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] > h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  margin-top: 0;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__section p + p {
  margin-top: .75rem;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__section ul {
  margin: 0;
  padding-left: 1.25rem;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-structured-explanation] .calculator-education__section li + li {
  margin-top: .4rem;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-static-connected-calculators] .related-calculator-card__title {
  font-size: 1rem;
  font-weight: 700;
}
body:is([data-calculator-id="income-type-tax"], [data-calculator-id="capital-gains-tax"], [data-calculator-id="eligible-dividend-tax"])
  [data-calculator-static-connected-calculators] .related-calculator-card__summary {
  font-size: 1rem;
  font-weight: 400;
}

/* BEGIN KyoPlan LOCAL REVIEW ONLY: proposed VIS-01 exception; owner acceptance pending. */
/* Same layout in both lanes, so the pair compares colour rather than geometry. */
@media screen {
  html { --review-gutter: clamp(24px, 4vw, 56px); --layout-padding: var(--review-gutter) !important; }
  body:has(.site-header) main:not(.home-review-main):not(.calculator-embed-page):not(.r-app):not(.qc-app):not(.prototype-page) {
    box-sizing: border-box;
    padding: var(--review-gutter) !important;
  }
  html.article-editorial-directory :is(.directory-page, .category-paper-page) { width: min(calc(100% - 48px), 1160px); }
  .home-review-stage__inner, .home-review-support__inner, .home-review-trust__inner { padding-inline: var(--review-gutter) !important; }
  .home-review-trust .home-review-eyebrow { text-transform: none; }
  .site-header--enhanced .brand { flex: 0 1 280px; min-width: 0; max-width: none; }
  .site-header--enhanced .brand__logo { width: 280px; max-width: 100%; height: auto; object-fit: contain; }
  .site-header--enhanced .site-language-menu, .site-header--enhanced .nav-toggle, .site-header__quiet-links { flex-shrink: 0; }
  @media (max-width: 640px) {
    html { --review-gutter: 24px; }
    html.article-editorial-directory :is(.directory-page, .category-paper-page) { width: calc(100% - 32px); }
  }
}

/* PROPOSED scoped KyoPlan visual revision. VIS-01 is not amended. */
/* Never redefine --accent, pillar tokens, quick-control tokens or share-rail selectors. */
@media screen {
  html:root {
    --brand-navy: #023162;
    --interface-blue: #145A88;
    --ink: #17201B;
    --muted: #607068;
    --bg: #FFFFFF;
    --line: #D9E1DC;
    background-color: var(--bg) !important;
  }
  html:root body { background-color: var(--bg) !important; background-image: none !important; }
  html:root.article-editorial-directory {
    --directory-paper: #FFFFFF !important;
    --directory-ink: #17201B;
    --directory-muted: #607068;
  }
  html:root.article-editorial-paper {
    --article-page-surface: #FFFFFF !important;
    --article-paper-secondary: #607068;
    --article-paper-link: #145A88;
  }
  /* Paint reading roles directly; keep inherited rail currentColor at its owner value. */
  html:root.article-editorial-paper :is(.article-header h1, .article-tab-content, .article-sources, .article-disclaimer, .article-sidebar-card) { color: var(--ink); }
  html:root.reference-editorial-paper-production {
    --reference-page-surface: #FFFFFF !important;
    --reference-ink: #17201B;
    --reference-secondary: #607068;
  }
  html:root :is(.site-header, .site-footer) { background: var(--bg) !important; }
  html:root .site-header--enhanced :is(.site-header__quiet-links a, .site-nav a, .site-language-menu summary) { color: var(--brand-navy); }
  html:root .site-header--enhanced :is(.site-language-menu summary, .nav-toggle) {
    background: #F4F7F6;
    border-color: var(--line);
  }
  html:root .site-header--enhanced .nav-toggle span { background: var(--brand-navy); }
  html:root .site-header--enhanced :is(.site-header__quiet-links a, .site-nav a):is(:hover, :focus-visible) {
    color: var(--interface-blue);
    background: #F4F7F6;
  }
  html:root .site-header--enhanced :is(a, summary, button):focus-visible { outline-color: var(--interface-blue); }
  html:root .site-header--enhanced :is(.site-nav, .site-language-menu__links) { background: var(--bg); }
  html:root body[data-page="home-review"] {
    --home-deep: var(--brand-navy);
    --home-forest: var(--brand-navy);
    --home-teal: var(--interface-blue);
    --home-paper: #FFFFFF;
    --home-paper-light: #FFFFFF;
    --home-ink: #023162;
    --home-muted: #607068;
    --home-rule: #D9E1DC;
  }
  html:root .home-review-action {
    background: var(--interface-blue);
    border-color: var(--interface-blue);
    color: #FFFFFF;
  }
  html:root .home-review-action:is(:hover, :focus-visible) { background: var(--brand-navy); border-color: var(--brand-navy); color: #FFFFFF; }
  html:root .home-review-action:focus-visible { outline: 3px solid var(--interface-blue); outline-offset: 3px; }
  html:root :is(.directory-topic-nav a, .directory-category__hub-link, .directory-lead__copy > a, .home-review-support a, .site-footer a) { color: var(--interface-blue); }
  html:root .article-tab-content :is(p, li) > a,
  html:root .article-sources :is(p, li) > a { color: var(--interface-blue); }
  html:root .site-search-submit { background: var(--interface-blue); border-color: var(--interface-blue); color: #FFFFFF; }
  html:root .site-search-submit:is(:hover, :focus-visible) { background: var(--brand-navy); border-color: var(--brand-navy); }
}

@media screen { html:root.about-disclaimer-editorial { --review-paper: #FFFFFF; --review-ink: var(--ink); --review-muted: var(--muted); --review-rule: var(--line); } }

@media screen { html:root .site-header--enhanced .site-header__quiet-links a[aria-current="page"] { color: var(--brand-navy); background: #F4F7F6; } html:root .site-header--enhanced .site-header__quiet-links a[aria-current="page"]:is(:hover,:focus-visible) { color: var(--interface-blue); } }
/* END KyoPlan LOCAL REVIEW ONLY */
