
.site-nav a[aria-current="page"] { color: var(--purple-deep); background: var(--purple-lighter); }

.res { padding-bottom: var(--section-y); }
.res-hero { padding: 56px 0 8px; background: radial-gradient(700px 360px at 0% 0%, rgba(238, 236, 253, .95), transparent 65%), linear-gradient(180deg, #FAF9FF 0%, #fff 100%); }
.res-hero h1 { font-size: 56px; margin-bottom: 16px; text-wrap: balance; }
.res-hero .section-intro { max-width: 40em; }
.topic-chips { margin-top: 28px; }
.topic-chips ul { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 100px; font-weight: 500; font-size: 16px;
  color: var(--purple-deep); background: #fff; border: 1.5px solid #DCD8FA; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.topic-chips a:hover { background: var(--purple-lighter); border-color: var(--purple-mid); color: var(--purple-deep); }

.res-section { padding-top: 64px; }
.res-section-head { max-width: 760px; margin-bottom: 28px; }
.res-section-head h2 { font-size: 34px; margin-bottom: 8px; }
.res-section-head h2 a { display: inline-block; min-height: 44px; color: inherit; text-decoration: none; }
.res-section-head h2 a:hover { color: var(--purple-deep); }
.res-topic-desc { color: var(--ink-soft); font-size: 18px; }
.res-more { margin-top: 24px; }
.res-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.res-more .icon { width: 18px; height: 18px; stroke-width: 2; }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.res-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #FCFCFF 100%); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.res-card:hover, .res-card:focus-within { border-color: #CFCAF8; box-shadow: var(--shadow-md); }
.res-grid--cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   .res-card { --pad-x: 28px; --pad-y: 28px; padding: var(--pad-y) var(--pad-x); }
.res-card--cover { overflow: hidden; padding-top: 0; }
.res-card-media { position: relative; flex: none; height: 0; padding-bottom: calc((100% + var(--pad-x) * 2) * 2 / 3); margin: 0 calc(var(--pad-x) * -1) 6px; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: var(--purple-lighter); }   .res-card-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.res-card-topic { font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); }
.res-card-title { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.res-card-title a { color: var(--ink); text-decoration: none; }
.res-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   .res-card-title a:focus-visible { outline: none; }
.res-card:has(.res-card-title a:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.res-card-summary { color: #464A5F; font-size: 16px; line-height: 1.65; }
.res-card-meta { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--ink-soft); }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 72px; padding: 64px 40px; border-radius: var(--radius-xl); text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background:
    radial-gradient(760px 400px at 85% 0%, rgba(168, 159, 244, .6), transparent 65%),
    radial-gradient(520px 320px at 8% 100%, rgba(69, 56, 201, .8), transparent 70%),
    linear-gradient(135deg, #4538C9 0%, #5B4FE5 55%, #4C3FD8 100%);
  box-shadow: 0 30px 80px rgba(69, 56, 201, .26);
}
.cta-band h2 { color: #fff; font-size: 36px; max-width: 18em; }
.cta-band p { max-width: 36em; color: #E4E2FC; font-size: 18px; margin-bottom: 10px; }
.cta-band .btn:focus-visible { outline-color: #fff; }
.cta-shape { position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .22); }
.cta-shape--a { width: 420px; height: 420px; left: -140px; bottom: -250px; }
.cta-shape--b { width: 300px; height: 300px; right: -80px; top: -130px; background: rgba(255, 255, 255, .08); border: 0; }
.post-wrap--cta .cta-band { margin-top: 56px; }

.res-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.res-tools .res-card { height: 100%; }
.res-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res-card-more { margin-top: auto; padding-top: 6px; }
.res-card-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.res-card-more a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.res-card-more a:focus-visible { outline: none; }
.res-card:has(.res-card-more a:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.res-card-more .icon { width: 18px; height: 18px; stroke-width: 2; }
.res-hero .section-intro p + p { margin-top: 12px; }

.post-wrap.post-wrap--calc { max-width: 960px; margin-top: 36px; }
.calc { padding: 36px; border-radius: var(--radius-xl); background: linear-gradient(180deg, #fff 0%, #FCFCFF 100%); border: 1px solid #DCD8FA; box-shadow: var(--shadow-md); }
.calc h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 8px; }
.calc-privacy { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.calc-nojs { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--purple-lighter); border-left: 4px solid var(--purple); font-size: 16px; line-height: 1.6; color: var(--ink); }
.calc-app { display: none; }
.js .calc-app { display: block; }
.js .calc-nojs { display: none; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; align-items: start; }
.calc-field .field-hint { margin: 0; }
.calc-field select {
  width: 100%; min-height: 52px; padding: 13px 44px 13px 16px; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F5368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid #D4D6E4; border-radius: 14px; appearance: none; -webkit-appearance: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.calc-field select:hover { border-color: #B7B3F0; }
.calc-field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-light); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.calc-clear { background: #fff; color: var(--ink); border-color: #D4D6E4; }
.calc-clear:hover { background: var(--purple-lighter); color: var(--ink); border-color: var(--purple-mid); }
.calc-results { margin-top: 28px; min-height: 300px; padding: 24px 26px; border-radius: var(--radius); background: var(--purple-lighter); border: 1px solid #E3E0FB; }
.calc-results:empty { background: transparent; border-style: dashed; border-color: #DCD8FA; }
.calc-results-title { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; color: var(--purple-deep); margin-bottom: 12px; }
.calc-goal-title { font-size: 20px; line-height: 1.4; margin: 24px 0 8px; padding-top: 20px; border-top: 1px solid #DCD8FA; }
.calc-main { font-size: 32px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin-bottom: 10px; }
.calc-line { font-size: 18px; line-height: 1.6; color: #343849; margin-top: 8px; }
.calc-note { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-top: 8px; }
.calc-after { margin-top: 16px; font-size: 16px; }
.calc-after a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.breadcrumb { margin-bottom: 28px; font-size: 15px; }
.breadcrumb ol, .toc ol { margin: 0; }
.breadcrumb ol { padding: 0; list-style: none; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #9A9DB3; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--purple-dark); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { max-width: 34em; }

.post { padding: 48px 0 var(--section-y); }
.post-wrap { max-width: 760px; margin-inline: auto; }
.post-wrap--cta { max-width: 960px; }
.post-cover { margin-top: 28px; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--purple-lighter); }
.post-head h1 { font-size: 48px; line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; margin-bottom: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.toc { margin-top: 32px; padding: 22px 26px; border-radius: var(--radius); background: var(--purple-lighter); border: 1px solid #E3E0FB; }
.toc-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); margin-bottom: 8px; }
.toc ol { list-style: decimal; padding-left: 22px; }
.toc li { padding-left: 4px; }
.toc li::marker { color: var(--purple); font-weight: 600; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-weight: 500; text-decoration: none; }
.toc a:hover { color: var(--purple-deep); text-decoration: underline; }

.post-body, .post-faq, .post-sources { font-size: 18px; line-height: 1.8; color: #343849; }
.post-body { padding-top: 12px; }
.post-body h2, .post-faq h2, .post-sources h2 { font-size: 30px; line-height: 1.3; letter-spacing: -.025em; margin: 48px 0 12px; text-wrap: balance; }
.post-body h3, .post-faq h3 { font-size: 22px; line-height: 1.4; margin: 32px 0 8px; }
.post-body h4 { font-size: 18px; margin: 24px 0 6px; }
.post-body p, .post-faq p, .post-sources p { margin-top: 16px; }
.post-body ul, .post-body ol, .post-faq ul, .post-faq ol, .post-sources ul, .post-sources ol { margin-top: 14px; padding-left: 26px; }
.post-body ul, .post-faq ul, .post-sources ul { list-style: disc; }
.post-body ol, .post-faq ol, .post-sources ol { list-style: decimal; }
.post-body ul ul, .post-body ol ul { list-style: circle; margin-top: 6px; }
.post-body li, .post-faq li, .post-sources li { margin-top: 8px; padding-left: 4px; }
.post-body li::marker, .post-faq li::marker, .post-sources li::marker { color: var(--purple); }
.post-body strong, .post-faq strong { color: var(--ink); font-weight: 600; }
.post-body a, .post-faq a, .post-sources a { font-weight: 500; overflow-wrap: anywhere; }
.post-body code, .post-faq code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--purple-lighter); color: var(--purple-deep); }
.post-body pre { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--ink); color: #E8E9F3; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.post-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post-body figure { margin: 28px 0 0; }
.post-body figure img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.post-body figcaption { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.callout { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--purple-lighter); border-left: 4px solid var(--purple); }
.callout p { margin-top: 0; }
.callout p + p { margin-top: 10px; }

.table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.table-wrap th { background: var(--bg); font-weight: 600; color: var(--ink); }
.table-wrap tr:last-child td { border-bottom: 0; }

.post-sources { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-sources { font-size: 16px; line-height: 1.7; }
.post-sources h2 { font-size: 24px; margin-top: 32px; }

.author-box { margin-top: 48px; padding: 24px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-soft); }
.author-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.author-box p { font-size: 16px; line-height: 1.65; color: #464A5F; }

.res-related { padding-top: 72px; }
.res-related h2 { font-size: 30px; margin-bottom: 24px; }

@media (max-width: 1199px) {
  .res-hero h1 { font-size: 48px; }
  .post-head h1 { font-size: 40px; }
  .res-grid, .res-grid--cols2, .res-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { padding: 28px; }
}
@media (max-width: 767px) {
  .res-hero { padding-top: 32px; }
  .res-hero h1 { font-size: 36px; }
  .res-section { padding-top: 44px; }
  .res-section-head h2 { font-size: 28px; }
  .res-topic-desc { font-size: 17px; }
  .res-grid, .res-grid--2, .res-grid--cols2, .res-tools { grid-template-columns: 1fr; gap: 16px; }
  .calc { padding: 22px 18px; border-radius: 22px; }
  .calc h2 { font-size: 26px; }
  .calc-fields { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .calc-actions .btn { flex: 1 1 100%; }
  .calc-results { padding: 20px 18px; min-height: 360px; }
  .calc-main { font-size: 26px; }
  .calc-line { font-size: 17px; }
  .res-card { --pad-x: 20px; --pad-y: 22px; }
  .post-cover { margin-top: 22px; }
  .res-card-title { font-size: 20px; }
  .cta-band { margin-top: 48px; padding: 40px 20px; border-radius: 22px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band p { font-size: 17px; }
  .cta-band .btn { width: 100%; }
  .post { padding-top: 28px; }
  .post-head h1 { font-size: 32px; letter-spacing: -.03em; }
  .post-body, .post-faq { font-size: 17px; }
  .post-body h2, .post-faq h2 { font-size: 26px; margin-top: 40px; }
  .post-body h3, .post-faq h3 { font-size: 20px; }
  .toc { padding: 18px 18px; }
  .author-box { padding: 20px; }
  .res-related h2 { font-size: 26px; }
  .breadcrumb [aria-current="page"] { max-width: none; }
  .breadcrumb a { min-height: 44px; }
}
