@font-face {
  font-family: "Golos Text";
  src: url("./assets/golos-text-variable.ttf?v=17bb58fb69aec2df") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #f4f7fc; --white: #fff; --ink: #163154; --muted: #536884;
  --blue: #315cde; --blue-dark: #2448b3; --sky: #e1eafb;
  --mint: #cfe8d7; --line: #d5deeb; --radius: 28px;
  --font: "Golos Text", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .58; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
p, h1, h2, h3 { margin: 0; }
button, input, a, summary, select, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--blue); }
[hidden] { display: none !important; }
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 35; background: #f9fbff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #1631540a; max-height: 55vh; max-height: 55dvh; overflow-y: auto; }
.cookie-banner-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: 17px max(17px, env(safe-area-inset-bottom)); }
.cookie-banner p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-banner a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .button { min-height: 44px; min-width: 64px; padding: 10px 18px; font-size: 15px; border-radius: 9px; }
#cookie-banner-spacer { height: var(--cookie-banner-height, 190px); }
[data-cookie-search]:disabled { opacity: .55; }
.privacy-storage { overflow-wrap: anywhere; }
.privacy-storage code { font-size: .85em; }
@media (max-width: 700px) {
  .cookie-banner-inner { width: calc(100% - 32px); gap: 14px; padding-block: 13px max(13px, env(safe-area-inset-bottom)); }
  .cookie-banner p { font-size: 14px; line-height: 1.45; }
  .cookie-banner .button { padding-inline: 14px; min-width: 54px; }
}
@media print {
  .cookie-banner, #cookie-banner-spacer, [data-cookie-reset] { display: none !important; }
}
::selection { background: #c7d8ff; color: var(--ink); }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 12px; background: white; padding: 12px 20px; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 58px; padding: 15px 23px; border-radius: 12px; border: 0; font-weight: 500; font-size: 17px; text-align: center; transition: background-color .18s, color .18s; }
.button svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); }
.secondary { background: white; border: 1px solid var(--line); }
.secondary:hover { border-color: var(--blue); background: #edf2ff; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--blue-dark); text-align: left; font-size: 14px; line-height: 1.5; min-height: 40px; }
.link-button:hover { text-decoration: underline; }
.text-link { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 10px 0; }
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-button { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: #ffffffa8; }
.icon-button svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; fill: none; }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(244,247,252,.97); border-bottom: 1px solid #d5deebb3; backdrop-filter: blur(15px); }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 36px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 35px; line-height: 1; font-weight: 700; letter-spacing: -1.8px; }
.brand-icon { height: 33px; width: 33px; color: var(--blue); }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; font-size: 16px; }
.desktop-nav a { padding-block: 12px; }
.desktop-nav a:hover { color: var(--blue); }
.market-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; border: 1px solid var(--line); border-radius: 30px; padding: 9px 12px; }
.market-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #7190b6; }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; padding-top: 82px; padding-bottom: 66px; align-items: center; }
.hero-copy { padding-bottom: 28px; }
h1 { font-size: clamp(48px,4.8vw,68px); font-weight: 600; line-height: 1.04; letter-spacing: -3.6px; max-width: 620px; }
.hero-intro { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 440px; margin: 29px 0 32px; }
.hero-footnote { font-size: 14px; color: var(--muted); margin-top: 17px; }
.hero-visual { min-width: 0; }
.coupon-ticket { background: var(--blue); color: white; border-radius: 24px; padding: 28px 32px 23px; box-shadow: 0 20px 50px -30px #315cde80; position: relative; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #e2eaff; }
.ticket-mark { border: 1px solid #a3b9ff80; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; color: white; font-size: 20px; font-weight: 500; }
.ticket-investment { font-size: clamp(40px,4.3vw,60px); line-height: 1.2; letter-spacing: -2.5px; font-weight: 500; margin: 8px 0 25px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-investment > span { font-size: .75em; color: #b7caff; }
.ticket-income { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.ticket-income > div { display: flex; flex-direction: column; min-width: 0; }
.ticket-income > div + div { border-left: 1px solid #a2b8fb5e; padding-left: 24px; }
.ticket-income strong { font-size: clamp(20px,2vw,25px); letter-spacing: -.8px; font-weight: 500; white-space: nowrap; }
.ticket-income span { font-size: 13px; color: #e2eaff; margin-top: 4px; }
.ticket-perforation { height: 1px; margin: 29px -32px 27px; border-bottom: 1px dashed #b6c9ff80; position: relative; }
.ticket-perforation::before, .ticket-perforation::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); position: absolute; top: -10px; }
.ticket-perforation::before { left: -10px; }
.ticket-perforation::after { right: -10px; }
.ticket-total-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
.year-stamp { background: #edf2ff; color: var(--blue-dark); border-radius: 6px; padding: 5px 9px; white-space: nowrap; font-size: 13px; font-weight: 500; }
.year-stamp strong { font-weight: 500; }
.ticket-total > strong { display: block; font-size: clamp(36px,3.9vw,53px); letter-spacing: -2.3px; line-height: 1.3; margin: 12px 0 1px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-total > p { color: #e2eaff; font-size: 13px; }
.ticket-years { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 14px; border-top: 1px solid #a2b8fb69; position: relative; min-height: 33px; }
.ticket-years > span { font-size: 12px; position: relative; color: #e2eaff; }
.ticket-years > span::before { content: ""; width: 5px; height: 5px; background: #90adff; border-radius: 50%; position: absolute; top: -17px; left: 50%; }
.ticket-years > span:last-child { color: white; font-weight: 600; }
.ticket-years > span:last-child::before { background: white; width: 8px; height: 8px; top: -18.5px; }
.ticket-footer { display: flex; justify-content: space-between; gap: 12px; color: #e2eaff; font-size: 11px; margin-top: 14px; }
.ticket-footer strong { font-weight: 500; color: white; }
.ticket-caption { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; margin-top: 16px; }

.market-status { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 21px 25px; border: 1px solid var(--line); border-radius: 17px; background: #edf2fa; margin-bottom: 76px; }
.market-status-copy { min-width: 0; }
.market-status strong { font-size: 15px; font-weight: 500; }
.market-status p { font-size: 13px; color: var(--muted); margin-top: 5px; max-width: 950px; }
.market-status .button { min-height: 44px; font-size: 14px; padding: 10px 15px; flex: 0 0 auto; gap: 8px; }
.market-status .button svg { width: 17px; height: 17px; flex-basis: 17px; }
.market-status.is-warning { background: #faf4e8; border-color: #e4d3b4; }
.market-status.is-error { background: #fff0ed; border-color: #e8c5bf; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 31px; }
h2 { font-size: clamp(30px,3vw,40px); line-height: 1.15; letter-spacing: -1.5px; font-weight: 600; }
.section-heading p { color: var(--muted); font-size: 17px; margin-top: 11px; }
.section-note { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.calculator-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.calculator-panel { display: grid; grid-template-columns: minmax(0,1.43fr) minmax(0,1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.calculator-controls { padding: 36px 42px 32px; min-width: 0; }
.field-label { font-size: 18px; font-weight: 500; display: block; margin-bottom: 17px; }
.amount-field { display: flex; align-items: baseline; gap: 14px; }
.amount-field input { color: var(--ink); border: 0; background: transparent; border-radius: 4px; font-size: clamp(36px,3.7vw,48px); letter-spacing: -1.8px; font-weight: 500; padding: 0; line-height: 1.2; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.amount-field > span { font-size: 35px; color: #7d90a9; }
.amount-field input[aria-invalid="true"] { box-shadow: 0 2px #b94c3e; }
.amount-range { --range-progress: 19.84%; width: 100%; display: block; margin: 26px 0 10px; appearance: none; -webkit-appearance: none; height: 4px; border: 0; border-radius: 4px; background: linear-gradient(to right,var(--blue) var(--range-progress),var(--sky) var(--range-progress)); cursor: pointer; touch-action: pan-y; }
.amount-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); border: 5px solid var(--white); box-shadow: 0 0 0 1px var(--blue); }
.amount-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 5px solid var(--white); box-shadow: 0 0 0 1px var(--blue); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding-top: 5px; }
.amount-presets { display: flex; gap: 9px; margin-top: 21px; }
.amount-presets button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 14px; white-space: nowrap; }
.amount-presets button.active { background: var(--sky); border-color: var(--sky); color: var(--blue-dark); }
.amount-presets button:hover { border-color: var(--blue); }
.field-help { font-size: 12px; color: var(--muted); margin-top: 12px; }
.portfolio-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; margin-bottom: 13px; gap: 12px; }
.portfolio-heading h3 { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.composition-heading { margin-bottom: 2px; }
.strategies { display: flex; flex-direction: column; gap: 7px; }
.strategy { display: flex; align-items: center; gap: 12px; background: transparent; border: 1px solid var(--line); border-radius: 11px; text-align: left; padding: 13px 15px; min-height: 70px; width: 100%; }
.strategy:hover { border-color: #9eb7e9; }
.strategy.active { background: #f0f4fe; border-color: #a4bbef; }
.strategy-icon { font-size: 25px; color: var(--blue); line-height: 1; width: 25px; text-align: center; }
.strategy strong { display: block; font-size: 15px; font-weight: 500; }
.strategy small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.radio-dot { width: 16px; height: 16px; border: 1px solid #b5c3d7; border-radius: 50%; margin-left: auto; flex: 0 0 16px; }
.strategy.active .radio-dot { border: 5px solid var(--blue); }
.composition-list { margin: 0; }
.composition-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8edf5; min-height: 70px; }
.bond-swatch { width: 6px; height: 32px; border-radius: 5px; flex: 0 0 6px; background: var(--blue); }
.composition-row:nth-child(3n+2) .bond-swatch { background: #8ba6e4; }
.composition-row:nth-child(3n+3) .bond-swatch { background: #91b89d; }
.composition-name { display: flex; flex-direction: column; min-width: 0; }
.composition-name button { border: 0; background: transparent; font-size: 15px; font-weight: 500; padding: 0; text-align: left; }
.composition-name button:hover { color: var(--blue); }
.composition-name small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.composition-quantity { margin-left: auto; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.composition-quantity small { font-size: 12px; color: var(--muted); }
.composition-empty { font-size: 14px; line-height: 1.7; padding: 18px 0; color: var(--muted); }
.composition-more { font-size: 12px; margin-top: 7px; }
.selection-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.selection-line .link-button { font-size: 12px; }
.composition-help { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.advanced { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 4px; }
.advanced summary, .purchase-details summary, .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; }
.advanced summary::-webkit-details-marker, .purchase-details summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.advanced summary { font-size: 14px; min-height: 50px; }
.advanced summary > span, .purchase-details summary > span { font-size: 23px; line-height: 1; font-weight: 400; }
details[open] > summary > span { transform: rotate(45deg); }
.advanced-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 10px; }
.advanced-fields label { font-size: 12px; color: var(--muted); }
.advanced-fields input { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-size: 16px; background: white; margin-top: 7px; color: var(--ink); }
.advanced p { font-size: 12px; color: var(--muted); margin-top: 15px; line-height: 1.7; }
.settings-actions { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-top: 21px; }
.settings-actions .button { width: 100%; justify-content: space-between; }
.reset-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; min-height: 40px; padding: 7px; }
.reset-button:hover { color: var(--blue); text-decoration: underline; }

.portfolio-result { background: var(--sky); padding: 31px 32px 28px; min-width: 0; }
.result-sticky { position: sticky; top: 119px; }
.results-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portfolio-result h3 { font-size: 19px; font-weight: 500; }
.result-total { font-size: clamp(34px,3.6vw,48px); font-weight: 600; letter-spacing: -2px; line-height: 1.25; margin-top: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-year { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 10px; flex-wrap: wrap; }
.result-year strong { font-weight: 500; background: white; border-radius: 5px; padding: 4px 8px; font-size: 16px; }
.result-explainer { font-size: 13px; color: var(--muted); margin-top: 17px; line-height: 1.7; }
.result-breakdown { margin: 24px 0 25px; padding-top: 20px; border-top: 1px solid #bfcfe7; font-size: 13px; }
.result-breakdown > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 13px; align-items: baseline; }
.result-breakdown dd { margin: 0; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.income-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-bottom: 22px; }
.income-pair > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.income-pair strong { font-size: 24px; font-weight: 500; letter-spacing: -.7px; white-space: nowrap; }
.income-pair span { font-size: 12px; color: var(--muted); }
.yield-line { border-top: 1px solid #bfcfe7; padding-top: 17px; margin-bottom: 21px; }
.yield-line > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.yield-line strong { font-size: 22px; font-weight: 500; letter-spacing: -.6px; white-space: nowrap; }
.yield-line small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.result-status { border: 1px solid #bad3c8; background: #edf6f0; color: #305b44; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; }
.result-status:empty { display: none; }
.result-status.warning { background: #f9f3e5; border-color: #dfcfae; color: #775b30; }
.result-status.error { background: #fce9e6; border-color: #e2b8b0; color: #8e3b31; }
.result-button { display: flex; background: var(--ink); color: white; justify-content: space-between; font-size: 16px; width: 100%; }
.result-button:hover { background: #28486f; }
.purchase-details { margin-top: 17px; border-bottom: 1px solid #bfcfe7; padding-bottom: 6px; }
.purchase-details summary { min-height: 44px; font-size: 13px; }
.cost-summary { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.cost-summary > div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.cost-summary strong { font-weight: 500; white-space: nowrap; }
.purchase-details p { font-size: 12px; color: var(--muted); line-height: 1.7; padding-bottom: 12px; }
.result-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 20px; }
.asof-label { margin-top: 15px; font-size: 12px; color: var(--muted); }
.negative { color: #9b3d35 !important; }

.payments-section { padding-top: 91px; }
.calendar-period { font-size: 14px; line-height: 1.6; max-width: 250px; text-align: right; color: var(--muted); }
.calendar-shell { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 26px 32px 27px; min-width: 0; }
.result-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.result-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 0 18px; background: none; font-size: 16px; color: var(--muted); text-align: left; min-height: 48px; margin-bottom: -1px; }
.result-tabs button[aria-selected="true"] { color: var(--blue-dark); border-bottom-color: var(--blue); font-weight: 500; }
.result-tabs button > span { background: var(--sky); color: var(--blue-dark); padding: 3px 6px; border-radius: 5px; font-size: 12px; margin-left: 5px; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.chart-heading > span:first-child { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 2px; display: inline-block; }
.coverage { font-size: 12px; white-space: nowrap; }
.calendar-chart { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 13px; margin-top: 27px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.chart-col { display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; min-width: 0; border-radius: 8px; color: var(--muted); font-size: 13px; }
.bar-value { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2; margin-bottom: 9px; }
.bar-track { display: flex; align-items: flex-end; justify-content: center; height: 148px; background: #f4f7fc; border-radius: 8px; width: 100%; padding: 0 11px; }
.bar { width: 100%; background: #adbee9; min-width: 9px; border-radius: 6px 6px 0 0; transition: height .2s ease; }
.bar-label { margin-top: 11px; font-size: 13px; }
.bar-year { font-size: 11px; color: #7588a2; margin-top: 1px; }
.chart-col.selected { color: var(--blue-dark); font-weight: 500; }
.chart-col.selected .bar-track { background: #eaf0ff; box-shadow: inset 0 0 0 1px #c1d1f9; }
.chart-col.selected .bar { background: var(--blue); }
.chart-col:hover .bar-track { background: #eaf0ff; }
.month-detail { margin-top: 22px; padding: 0; }
.month-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.month-detail-heading strong { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.month-detail-heading > span { font-size: 25px; letter-spacing: -.8px; font-weight: 500; white-space: nowrap; }
.payment-line { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; padding: 9px 0; font-size: 14px; }
.payment-line > span { color: var(--muted); }
.payment-line strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-note { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.portfolio-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; font-size: 14px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.portfolio-table, .maturity-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.portfolio-table th, .maturity-table th { text-align: right; color: var(--muted); font-size: 12px; font-weight: 400; padding: 14px 18px; background: #f4f7fc; }
.portfolio-table td, .maturity-table td { text-align: right; padding: 18px; border-bottom: 1px solid #e8edf5; white-space: nowrap; }
.portfolio-table th:first-child, .portfolio-table td:first-child, .maturity-table th:first-child, .maturity-table td:first-child { text-align: left; }
.portfolio-table th:last-child, .portfolio-table td:last-child { padding-right: 0; width: 44px; }
.portfolio-name { background: transparent; border: 0; padding: 0; color: var(--blue-dark); font-size: 16px; font-weight: 500; }
.portfolio-name:hover { text-decoration: underline; }
.portfolio-type { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.quantity-input { width: 104px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 16px; background: white; }
.remove-bond { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: #f4f7fc; color: var(--muted); font-size: 24px; }
.remove-bond:hover { background: #fae9e5; color: #9b3d35; }
.maturity-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 3px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 11px; }
.maturity-overview > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.maturity-overview span { font-size: 14px; color: var(--muted); }
.maturity-overview strong { font-size: 32px; font-weight: 500; letter-spacing: -1px; }
.maturity-overview small { color: var(--muted); font-size: 12px; }
.maturity-scroll { margin-top: 22px; }

.catalog-section { padding-top: 96px; }
.heading-count { display: inline-block; vertical-align: middle; margin-left: 15px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); background: var(--sky); border-radius: 8px; padding: 6px 8px; line-height: 1.2; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.catalog-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; background: #e8eef8; border-radius: 11px; }
.catalog-tabs button { min-height: 44px; border: 0; background: transparent; border-radius: 8px; padding: 9px 15px; font-size: 14px; white-space: nowrap; }
.catalog-tabs button.active { background: white; box-shadow: 0 2px 5px #16315408; }
.catalog-tabs button > span { margin-left: 6px; color: var(--muted); font-size: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; width: 320px; max-width: 100%; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 13px 14px; }
.search-field svg { width: 19px; height: 19px; stroke: var(--muted); stroke-width: 1.5; fill: none; flex: 0 0 19px; }
.search-field input { border: 0; background: transparent; outline-offset: 8px; min-width: 0; width: 100%; font-size: 14px; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.catalog-filters select { border: 1px solid var(--line); border-radius: 8px; padding: 11px 33px 11px 12px; background-color: white; min-height: 44px; font-size: 13px; max-width: 100%; }
.stale-toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-left: auto; min-height: 44px; cursor: pointer; }
.stale-toggle input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.catalog-table-wrap { background: white; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.catalog-table { width: 100%; min-width: 1030px; border-collapse: collapse; font-size: 15px; }
.catalog-table th { font-size: 12px; font-weight: 400; text-align: right; color: var(--muted); background: #edf2fa; padding: 16px 15px; white-space: nowrap; }
.catalog-table th:first-child { text-align: left; padding-left: 24px; }
.catalog-table th small { display: block; font-size: 10px; margin-top: 4px; }
.catalog-table td { padding: 21px 15px; border-top: 1px solid #e8edf5; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-table td:first-child { text-align: left; padding-left: 24px; }
.catalog-table td:last-child { padding-right: 24px; }
.catalog-name { font-size: 16px; font-weight: 500; background: transparent; border: 0; text-align: left; padding: 0; }
.catalog-name:hover { color: var(--blue); text-decoration: underline; }
.bond-sub { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 5px; }
.type-chip { font-size: 9px; line-height: 1.4; padding: 2px 4px; border-radius: 3px; background: #edf2fa; }
.quote-date { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.catalog-yield { font-weight: 500; color: #2b6a47; }
.catalog-add, .catalog-info { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; font-size: 13px; border-radius: 8px; background: #edf2ff; border: 1px solid #d4e0ff; color: var(--blue-dark); padding: 8px 12px; }
.catalog-add > span:first-child { font-size: 22px; line-height: 1; }
.catalog-action-label { display: none; }
.catalog-add.selected { background: #dce9e0; color: #2b6a47; border-color: #c2d8ca; }
.catalog-add:hover, .catalog-info:hover { background: #dfe9ff; }
.catalog-table tr.is-selected { background: #f6f9ff; }
.catalog-table tr.is-stale { background: #fafbfd; color: #7c8797; }
.catalog-table tr.is-stale .catalog-name, .catalog-table tr.is-stale .catalog-yield, .catalog-table tr.is-stale .bond-sub, .catalog-table tr.is-stale .quote-date { color: #7c8797; }
.is-stale .catalog-add { border-color: #e2e7ef; background: #eff2f6; color: #7c8797; opacity: 1; }
.catalog-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 15px; color: var(--muted); font-size: 12px; }
.catalog-footer > span:nth-child(2) { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.catalog-footer .link-button { font-size: 12px; }
.muted-legend { background: #adb6c5; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.catalog-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 17px; max-width: 960px; }
.catalog-more-wrap { text-align: center; }
.catalog-more-wrap:has(button:not([hidden])) { margin-top: 18px; }
.empty-state { padding: 40px 24px; font-size: 16px; text-align: center; }
.empty-state strong { font-weight: 500; }
.empty-state p { margin-top: 9px; color: var(--muted); }
.empty-state .button { margin-top: 21px; font-size: 15px; }

.news-section { padding-top: 95px; padding-bottom: 74px; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.news-grid[data-count="2"], .news-grid[data-count="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.news-card { display: flex; flex-direction: column; min-width: 0; }
.news-art { height: 190px; border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--sky); }
.news-art svg { width: 84px; height: 84px; fill: none; stroke: #6385ce; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-7deg); }
.news-card:nth-child(3n+2) .news-art { background: #e7eee8; }
.news-card:nth-child(3n+2) .news-art svg { stroke: #6c9378; transform: rotate(5deg); }
.news-card:nth-child(3n+3) .news-art { background: #eae9f4; }
.news-card:nth-child(3n+3) .news-art svg { stroke: #8d86b3; transform: rotate(-4deg); }
.news-number { position: absolute; right: 19px; top: 16px; font-size: 12px; color: var(--muted); }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 20px; }
.news-card h3 { font-size: 23px; line-height: 1.35; font-weight: 500; letter-spacing: -.6px; margin-top: 10px; overflow-wrap: anywhere; }
.news-card:hover h3 { color: var(--blue); }
.news-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; font-size: 13px; color: var(--blue-dark); }
.news-bottom > span:last-child { font-size: 22px; }

.method-section { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: 75px; padding-bottom: 75px; }
.how-intro p { font-size: 16px; line-height: 1.75; color: var(--muted); margin-top: 20px; max-width: 420px; }
.how-intro .text-link { margin-top: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 17px; font-weight: 500; min-height: 32px; }
.faq summary > span { font-size: 27px; font-weight: 400; line-height: 1; flex: 0 0 15px; }
.faq p { font-size: 14px; line-height: 1.8; color: var(--muted); padding-top: 18px; }
.site-footer { background: var(--sky); padding: 37px 0 25px; }
.footer-inner { display: flex; align-items: center; gap: 28px; }
.footer-inner .wordmark { font-size: 34px; }
.footer-dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; margin: 14px 0 0 -5px; }
.footer-inner > p { font-size: 13px; color: var(--muted); }
.back-top { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-left: auto; }
.back-top svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #c5d2e7; color: var(--muted); font-size: 11px; }
.footer-bottom a { white-space: nowrap; }
.footer-bottom a:hover { color: var(--blue); }

.modal { width: min(680px,calc(100% - 32px)); border: 0; border-radius: 24px; padding: 32px 38px 35px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px #16315430; max-height: calc(100% - 40px); overflow: auto; }
.modal::backdrop { background: rgba(22,49,84,.4); backdrop-filter: blur(4px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; letter-spacing: .8px; }
.modal-header .icon-button { font-size: 29px; line-height: 1; }
.modal h2 { font-size: 31px; letter-spacing: -1px; margin-top: 13px; }
.modal h3 { font-size: 20px; line-height: 1.5; font-weight: 500; margin-top: 26px; }
.modal p, .modal li { font-size: 15px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.modal-note { background: var(--sky); padding: 16px; border-radius: 10px; }
.modal dl { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; margin-top: 24px; }
.modal dt { color: var(--muted); }
.modal dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.modal a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.modal .button { margin-top: 15px; font-size: 15px; }
.toast { position: fixed; bottom: calc(24px + var(--cookie-banner-height, 0px)); left: 50%; transform: translateX(-50%); z-index: 50; max-width: min(580px,calc(100% - 32px)); width: max-content; background: var(--ink); color: white; padding: 14px 21px; border-radius: 11px; font-size: 14px; line-height: 1.6; box-shadow: 0 10px 35px #16315430; }
.noscript-note { position: relative; z-index: 40; background: var(--ink); color: white; padding: 15px; font-size: 14px; text-align: center; }

@media (min-width:1440px) {
  .hero { gap: 90px; }
  .hero-copy { padding-bottom: 40px; }
}
@media (max-width:1100px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 24px; }
  .desktop-nav { gap: 22px; }
  .hero { gap: 40px; padding-top: 65px; padding-bottom: 55px; }
  h1 { font-size: 53px; letter-spacing: -2.7px; }
  .hero-intro { font-size: 19px; }
  .coupon-ticket { padding-inline: 25px; }
  .ticket-investment { font-size: 49px; }
  .ticket-income strong { font-size: 22px; }
  .ticket-income > div + div { padding-left: 15px; }
  .ticket-perforation { margin-inline: -25px; }
  .ticket-total > strong { font-size: 43px; }
  .ticket-total-heading { font-size: 14px; }
  .year-stamp { font-size: 12px; }
  .calculator-panel { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .calculator-controls { padding: 30px; }
  .portfolio-result { padding: 27px 25px; }
  .result-total { font-size: 37px; }
  .income-pair strong { font-size: 22px; }
  .result-breakdown { font-size: 12px; }
  .calendar-chart { gap: 10px; }
  .bar-track { padding-inline: 8px; }
  .catalog-filters { gap: 10px; }
  .catalog-filters select { font-size: 12px; padding-right: 24px; }
  .stale-toggle { margin-left: 0; }
  .news-grid { gap: 22px; }
  .news-card h3 { font-size: 21px; }
  .method-section { gap: 40px; }
}
@media (max-width:900px) {
  html { scroll-padding-top: 100px; }
  .header-inner { min-height: 82px; gap: 15px; }
  .desktop-nav { display: none; }
  .desktop-nav.open { position: absolute; display: flex; flex-direction: column; align-items: stretch; gap: 0; left: 0; right: 0; top: 100%; background: var(--paper); padding: 10px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px #16315408; font-size: 20px; }
  .market-badge { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--line); background: white; border-radius: 10px; width: 44px; height: 44px; flex: 0 0 44px; }
  .menu-toggle > span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .15s; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .hero { gap: 30px; }
  h1 { font-size: 45px; letter-spacing: -2px; }
  .hero-intro { font-size: 18px; }
  .hero .button { font-size: 15px; gap: 12px; padding: 14px 17px; }
  .hero-footnote { font-size: 12px; }
  .coupon-ticket { padding-inline: 21px; }
  .ticket-investment { font-size: 39px; letter-spacing: -1.8px; }
  .ticket-income strong { font-size: 19px; letter-spacing: -.4px; }
  .ticket-income span { font-size: 11px; }
  .ticket-perforation { margin-inline: -21px; }
  .ticket-total-heading { font-size: 13px; }
  .year-stamp { font-size: 11px; }
  .ticket-total > strong { font-size: 35px; letter-spacing: -1.5px; }
  .ticket-total > p { font-size: 11px; }
  .ticket-footer { flex-direction: column; gap: 5px; font-size: 11px; }
  .calculator-panel { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
  .calculator-controls { padding: 27px 24px; }
  .portfolio-result { padding: 25px 23px; }
  .result-total { font-size: 32px; letter-spacing: -1.4px; }
  .amount-presets { gap: 6px; flex-wrap: wrap; }
  .amount-presets button { padding-inline: 11px; font-size: 13px; }
  .income-pair { grid-template-columns: 1fr; gap: 16px; }
  .income-pair > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .income-pair strong { font-size: 25px; }
  .income-pair span { font-size: 12px; }
  .result-year { font-size: 12px; }
  .result-breakdown > div { flex-wrap: wrap; gap: 4px 10px; }
  .result-breakdown dd { margin-left: auto; }
  .portfolio-result h3 { font-size: 17px; }
  .result-button { font-size: 14px; padding-inline: 15px; gap: 12px; }
  .strategy { padding: 11px; gap: 10px; }
  .strategy strong { font-size: 14px; }
  .strategy small { font-size: 11px; }
  .composition-name button { font-size: 14px; }
  .composition-name small { font-size: 11px; }
  .composition-quantity { font-size: 14px; }
  .selection-line { flex-wrap: wrap; gap: 0 10px; }
  .calendar-shell { padding-inline: 25px; }
  .bar-value { font-size: 10px; }
  .calendar-chart { gap: 8px; }
  .bar-track { padding-inline: 6px; }
  .calendar-period { font-size: 12px; max-width: 180px; }
  .section-heading p { font-size: 16px; }
  .news-art { height: 170px; }
  .news-grid { gap: 18px; }
  .news-card h3 { font-size: 19px; }
  .news-top { font-size: 11px; }
  .method-section { grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: 35px; }
  .faq summary { font-size: 16px; }
}
@media (max-width:760px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 45px; padding-bottom: 38px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(41px,8.8vw,59px); line-height: 1.05; letter-spacing: -2.4px; max-width: 580px; }
  .hero-intro { font-size: 18px; line-height: 1.6; max-width: 500px; margin: 23px 0 24px; }
  .hero .button { font-size: 17px; padding: 16px 22px; min-height: 58px; gap: 25px; }
  .hero-visual { max-width: 530px; width: 100%; margin-inline: auto; }
  .coupon-ticket { border-radius: 21px; padding: 25px 27px 21px; }
  .ticket-top { font-size: 15px; }
  .ticket-investment { font-size: clamp(39px,9vw,55px); letter-spacing: -2px; margin-bottom: 21px; }
  .ticket-income strong { font-size: clamp(20px,4.9vw,27px); }
  .ticket-income span { font-size: 12px; }
  .ticket-income > div + div { padding-left: 18px; }
  .ticket-perforation { margin: 25px -27px 23px; }
  .ticket-total-heading { font-size: 15px; }
  .year-stamp { font-size: 12px; }
  .ticket-total > strong { font-size: clamp(36px,8.6vw,51px); letter-spacing: -1.8px; margin-top: 13px; }
  .ticket-total > p { font-size: 12px; }
  .ticket-years { margin-top: 25px; }
  .ticket-footer { flex-direction: row; font-size: 11px; }
  .ticket-caption { font-size: 12px; margin-top: 15px; }
  .market-status { margin-bottom: 58px; padding: 19px 20px; }
  .calculator-panel { grid-template-columns: 1fr; border-radius: 22px; }
  .calculator-controls { padding: 28px 27px; }
  .amount-field input { font-size: 44px; }
  .amount-field > span { font-size: 32px; }
  .amount-presets { gap: 8px; }
  .amount-presets button { font-size: 14px; padding-inline: 15px; }
  .strategy strong { font-size: 16px; }
  .strategy small { font-size: 13px; }
  .strategy { padding: 13px 15px; }
  .composition-name button { font-size: 16px; }
  .composition-name small { font-size: 12px; }
  .composition-quantity { font-size: 17px; }
  .composition-row { padding-block: 16px; }
  .selection-line { flex-wrap: nowrap; font-size: 13px; }
  .selection-line .link-button { font-size: 13px; }
  .advanced summary { font-size: 15px; }
  .settings-actions .button { font-size: 17px; }
  .portfolio-result { padding: 27px; }
  .result-sticky { position: static; }
  .portfolio-result h3 { font-size: 20px; }
  .result-total { font-size: clamp(36px,9vw,54px); line-height: 1.2; margin-top: 14px; }
  .result-year { font-size: 14px; margin-top: 12px; }
  .result-year strong { font-size: 16px; padding: 4px 9px; }
  .result-explainer { font-size: 13px; }
  .result-breakdown { font-size: 14px; }
  .income-pair { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
  .income-pair > div { flex-direction: column; flex-wrap: nowrap; }
  .income-pair strong { font-size: 26px; }
  .income-pair span { font-size: 13px; }
  .yield-line > span { font-size: 14px; }
  .result-status { font-size: 13px; }
  .result-button { font-size: 17px; padding-inline: 21px; }
  .purchase-details summary { font-size: 14px; }
  .cost-summary > div, .result-note, .asof-label { font-size: 13px; }
  .payments-section, .catalog-section, .news-section { padding-top: 64px; }
  .section-heading { display: block; margin-bottom: 24px; }
  h2 { font-size: 32px; line-height: 1.15; letter-spacing: -1.3px; max-width: 580px; }
  .section-heading p { font-size: 16px; line-height: 1.6; margin-top: 12px; max-width: 580px; }
  .text-link { font-size: 14px; margin-top: 9px; padding-bottom: 0; }
  .section-note { display: block; margin-top: 15px; }
  .calendar-period { display: block; margin-top: 17px; font-size: 14px; max-width: none; text-align: left; }
  .calendar-shell { border-radius: 22px; padding: 21px 22px 23px; }
  .calendar-chart { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px 12px; margin-top: 24px; }
  .bar-track { height: 126px; padding-inline: 10px; border-radius: 7px; }
  .bar { max-height: 121px; border-radius: 5px 5px 0 0; }
  .bar-value { font-size: 12px; }
  .bar-label { font-size: 13px; margin-top: 8px; }
  .bar-year { font-size: 11px; }
  .chart-heading { font-size: 13px; }
  .result-tabs { gap: 20px; }
  .result-tabs button { font-size: 14px; }
  .news-grid, .news-grid[data-count="2"], .news-grid[data-count="4"] { grid-template-columns: 1fr; gap: 33px; }
  .news-art { height: 210px; }
  .news-art svg { width: 95px; height: 95px; }
  .news-top { font-size: 13px; margin-top: 18px; }
  .news-card h3 { font-size: 25px; line-height: 1.3; margin-top: 10px; }
  .news-bottom { font-size: 14px; margin-top: 12px; }
  .news-section { padding-bottom: 54px; }
  .method-section { grid-template-columns: 1fr; gap: 29px; padding-bottom: 48px; }
  .how-intro p { font-size: 17px; max-width: 580px; }
  .faq summary { font-size: 17px; }
  .faq p { font-size: 15px; }
}
@media (max-width:700px) {
  html { scroll-padding-top: 92px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 74px; gap: 12px; }
  .wordmark { font-size: 30px; gap: 8px; }
  .brand-icon { width: 29px; height: 29px; }
  .market-badge { font-size: 11px; padding: 7px 9px; gap: 6px; }
  .market-badge > span { width: 5px; height: 5px; }
  .desktop-nav.open { padding-inline: 20px; }
  .market-status { align-items: flex-start; gap: 13px; flex-wrap: wrap; }
  .market-status strong { font-size: 14px; }
  .market-status p { font-size: 12px; }
  .market-status .button { font-size: 13px; }
  .portfolio-heading h3 { font-size: 19px; }
  .composition-help { font-size: 13px; }
  .result-tabs { gap: 8px; justify-content: space-between; }
  .result-tabs button { font-size: 13px; padding-bottom: 14px; }
  .result-tabs button > span { font-size: 10px; margin-left: 2px; }
  .calendar-shell { padding-inline: 20px; }
  .chart-heading { align-items: flex-start; font-size: 12px; gap: 8px; }
  .coverage { font-size: 11px; }
  .calendar-chart { gap: 23px 10px; }
  .bar-value { font-size: 11px; }
  .bar-track { padding-inline: 8px; }
  .month-detail-heading strong { font-size: 18px; }
  .month-detail-heading > span { font-size: 22px; }
  .payment-line { font-size: 13px; gap: 15px; }
  .payment-line > span { overflow-wrap: anywhere; }
  .chart-note { font-size: 12px; }
  .portfolio-intro { font-size: 13px; }
  .portfolio-intro .link-button { font-size: 13px; white-space: nowrap; }
  .table-scroll { overflow: visible; }
  .portfolio-table, .maturity-table { display: block; }
  .portfolio-table thead, .maturity-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .portfolio-table tbody, .maturity-table tbody { display: grid; gap: 15px; }
  .portfolio-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; position: relative; padding: 18px 17px; border: 1px solid var(--line); border-radius: 13px; }
  .portfolio-table td { border: 0; padding: 0; text-align: left; white-space: normal; min-width: 0; font-size: 15px; }
  .portfolio-table td:first-child { grid-column: 1 / -1; padding-right: 45px; }
  .portfolio-table td[data-label]::before, .maturity-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; font-weight: 400; }
  .portfolio-table td:nth-child(2) { grid-column: 1 / -1; }
  .portfolio-table td:last-child { position: absolute; top: 10px; right: 9px; padding: 0; width: 44px; }
  .quantity-input { width: 100%; }
  .portfolio-name { font-size: 17px; }
  .portfolio-type { font-size: 12px; }
  .portfolio-table td.empty-state { grid-column: 1/-1; position: static; width: auto; text-align: center; padding: 15px; }
  .maturity-overview { grid-template-columns: 1fr; gap: 23px; }
  .maturity-overview strong { font-size: 32px; }
  .maturity-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
  .maturity-table td { display: block; text-align: left; border: 0; padding: 0; white-space: normal; font-size: 15px; }
  .maturity-table td:first-child { grid-column: 1/-1; font-size: 19px; font-weight: 500; }
  .maturity-table td:last-child { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 12px; }
  .catalog-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 14px; margin-bottom: 15px; }
  .search-field { width: 100%; }
  .search-field input { font-size: 16px; }
  .catalog-tabs { align-self: stretch; gap: 2px; justify-content: space-between; }
  .catalog-tabs button { flex: 1; padding: 9px 8px; font-size: 13px; }
  .catalog-tabs button > span { font-size: 11px; margin-left: 3px; }
  .catalog-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .catalog-filters label { min-width: 0; }
  .catalog-filters select { font-size: 13px; width: 100%; padding-left: 10px; padding-right: 17px; }
  .stale-toggle { margin: 0; font-size: 11px; gap: 7px; line-height: 1.5; }
  .stale-toggle input { flex: 0 0 18px; }
  .catalog-table-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .catalog-table { display: block; min-width: 0; }
  .catalog-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .catalog-table tbody { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .catalog-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: white; border: 1px solid var(--line); border-radius: 15px; padding: 18px 19px; gap: 19px 15px; }
  .catalog-table td { border: 0; padding: 0; text-align: left; font-size: 16px; display: block; white-space: normal; min-width: 0; }
  .catalog-table td:first-child { grid-column: 1/-1; padding: 0; }
  .catalog-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; font-weight: 400; }
  .catalog-table td:last-child { grid-column: 1/-1; border-top: 1px solid #e8edf5; padding: 14px 0 0; }
  .catalog-name { font-size: 18px; }
  .bond-sub { font-size: 11px; margin-top: 5px; }
  .type-chip { font-size: 10px; }
  .quote-date { font-size: 11px; }
  .catalog-add, .catalog-info { width: 100%; min-height: 46px; font-size: 14px; padding: 10px; }
  .catalog-action-label { display: inline; }
  .catalog-add > span:first-child { font-size: 19px; }
  .catalog-table tr.is-stale { border-color: #e2e7ef; }
  .catalog-table tr.is-stale td[data-label]::before { color: #7c8797; }
  .catalog-footer { gap: 4px 14px; font-size: 12px; }
  .catalog-footer > span:nth-child(2) { order: 3; margin-left: 0; width: 100%; font-size: 11px; }
  .catalog-footer .link-button { margin-left: auto; }
  .catalog-note { font-size: 12px; }
  .catalog-more-wrap .button { width: 100%; }
  .site-footer { padding: 28px 0 21px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
  .footer-inner .wordmark { font-size: 32px; }
  .footer-inner > p { grid-column: 1/-1; grid-row: 2; font-size: 14px; }
  .back-top { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 13px; margin-top: 22px; font-size: 12px; line-height: 1.7; }
  .modal { padding: 24px 24px 28px; }
  .modal h2 { font-size: 28px; letter-spacing: -.9px; line-height: 1.25; }
  .modal-header { font-size: 10px; letter-spacing: .4px; }
  .modal p, .modal li { font-size: 15px; }
  .modal dl { font-size: 12px; gap: 14px; }
  .modal .button { font-size: 15px; width: 100%; }
}
@media (max-width:390px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 9px; }
  .wordmark { font-size: 28px; }
  .brand-icon { width: 26px; height: 26px; }
  .market-badge { font-size: 10px; padding: 7px; gap: 5px; }
  .menu-toggle { flex-basis: 42px; width: 42px; height: 44px; }
  h1 { font-size: 40px; letter-spacing: -2px; }
  .hero-intro { font-size: 18px; }
  .hero .button { font-size: 16px; gap: 15px; padding-inline: 18px; }
  .coupon-ticket { padding-inline: 21px; }
  .ticket-investment { font-size: 37px; }
  .ticket-income strong { font-size: 19px; }
  .ticket-income span { font-size: 11px; }
  .ticket-perforation { margin-inline: -21px; }
  .ticket-total-heading { font-size: 13px; }
  .year-stamp { font-size: 11px; }
  .ticket-total > strong { font-size: 34px; }
  .ticket-total > p { font-size: 11px; }
  .ticket-footer { flex-direction: column; gap: 5px; }
  h2 { font-size: 30px; }
  .calculator-controls, .portfolio-result { padding-inline: 21px; }
  .amount-field input { font-size: 36px; letter-spacing: -1.4px; }
  .amount-field > span { font-size: 29px; }
  .amount-presets { gap: 6px; }
  .amount-presets button { flex: 1; font-size: 12px; padding-inline: 7px; }
  .strategy { gap: 9px; padding-inline: 11px; }
  .strategy strong { font-size: 15px; }
  .strategy small { font-size: 11px; }
  .selection-line { flex-wrap: wrap; }
  .composition-name button { font-size: 15px; }
  .composition-name small { font-size: 11px; }
  .composition-quantity { font-size: 16px; }
  .result-total { font-size: 33px; }
  .result-breakdown { font-size: 13px; }
  .income-pair { gap: 10px; }
  .income-pair strong { font-size: 22px; }
  .income-pair span { font-size: 11px; }
  .result-button { font-size: 15px; }
  .result-year { font-size: 13px; }
  .calendar-shell { padding-inline: 16px; }
  .result-tabs { gap: 6px; }
  .result-tabs button { font-size: 12px; }
  .result-tabs button > span { display: none; }
  .calendar-chart { gap: 21px 7px; }
  .bar-track { padding-inline: 6px; }
  .bar-value { font-size: 10px; }
  .month-detail-heading { flex-wrap: wrap; gap: 6px 12px; }
  .month-detail-heading strong { font-size: 17px; }
  .month-detail-heading > span { font-size: 21px; }
  .catalog-tabs button { font-size: 12px; padding-inline: 7px; }
  .catalog-table tr { padding-inline: 17px; gap: 17px 12px; }
  .catalog-table td { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* v4: public landing pages and compact market state */
.desktop-nav { gap: 20px; }
.market-status { padding: 10px 16px; gap: 16px; border-radius: 12px; margin-bottom: 38px; background: transparent; }
.market-status strong { font-size: 14px; font-weight: 400; }
.market-status p[hidden] { display: none; }
.market-status .button { min-height: 40px; padding: 8px 13px; }
.composition-name a { font-size: 15px; font-weight: 500; color: var(--blue-dark); }
.composition-name a:hover { text-decoration: underline; }
.feedback-preview { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.6fr); gap: 50px; padding-bottom: 34px; margin-bottom: 32px; border-bottom: 1px solid #c5d2e7; color: #687487; }
.feedback-preview h2 { font-size: 25px; letter-spacing: -.6px; }
.feedback-preview p { font-size: 14px; margin-top: 12px; line-height: 1.7; }
.feedback-preview fieldset { border: 0; padding: 0; min-width: 0; }
.feedback-preview label { display: block; font-size: 13px; }
.feedback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feedback-preview input, .feedback-preview textarea { display: block; width: 100%; margin: 7px 0 14px; border: 1px solid #cbd2dc; border-radius: 8px; background: #e4e8ef; color: #737d8b; padding: 11px 12px; font: inherit; font-size: 16px; resize: none; cursor: not-allowed; }
.feedback-preview button:disabled { background: #dce1e9; border-color: #cbd2dc; color: #737d8b; opacity: 1; cursor: not-allowed; }
.inner-page { padding-top: 30px; padding-bottom: 75px; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 35px; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.page-heading { margin-bottom: 20px; max-width: 1000px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1.3px; color: var(--blue-dark); margin-bottom: 14px; }
.page-heading h1 { font-size: clamp(32px,4.5vw,56px); line-height: 1.15; letter-spacing: -1.8px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.page-lead { font-size: clamp(17px,2vw,21px); line-height: 1.65; color: var(--muted); margin-top: 20px; max-width: 880px; }
.page-status { margin-top: 26px; margin-bottom: 28px; }
.security-id { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.content-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.content-card h2 { font-size: 28px; letter-spacing: -.8px; }
.bond-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,1fr); gap: 30px; align-items: start; }
.bond-calculator { background: #edf3ff; position: sticky; top: 100px; }
.bond-calculator .field-label { margin-top: 24px; }
.page-input { display: block; width: 100%; min-height: 56px; border: 1px solid #c2cfe6; border-radius: 10px; padding: 12px 15px; font: inherit; font-size: 23px; color: var(--ink); background: white; }
.bond-calculator .button { display: flex; margin-top: 22px; font-size: 15px; }
.status-label { font-size: 14px; color: var(--muted); margin: 12px 0; }
.bond-facts { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.bond-facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bond-facts dt { color: var(--muted); }
.bond-facts dd { text-align: right; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.fine-print, .source-note { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 16px; }
.source-note { margin-top: 35px; }
.source-note a, .article-copy a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-copy { max-width: 860px; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-copy h2 { font-size: 28px; letter-spacing: -.7px; margin: 36px 0 14px; }
.article-copy p + p { margin-top: 17px; }
.article-copy .button { margin-top: 28px; text-decoration: none; color: white; }
.privacy-storage .button.secondary { color: var(--ink); }
.article-copy .source-note { font-size: 13px; }
.explain-list { margin: 0; }
.explain-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.explain-list dt { font-weight: 500; }
.explain-list dd { margin: 5px 0 0; color: var(--muted); }
.notice { padding: 15px 18px; background: #faf4e8; border-radius: 10px; color: #72592b; font-size: 15px; line-height: 1.7; margin: 20px 0; }
.mini-results { margin: 18px 0; }
.mini-results > div { display: flex; flex-direction: column; gap: 6px; padding: 13px 0; border-bottom: 1px solid #d2deef; }
.mini-results dt { color: var(--muted); font-size: 13px; }
.mini-results dd { margin: 0; font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.schedule-section { margin-top: 48px; }
.schedule-section > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 15px 0 22px; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.schedule-table td, .schedule-table th { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.schedule-table td:first-child, .schedule-table th:first-child { text-align: left; }
.schedule-table th { background: #edf2fa; font-size: 13px; font-weight: 500; }
.page-toolbar, .page-actions { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 20px; margin: 25px 0; }
.page-toolbar .button { font-size: 15px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 28px 0; }
.guide-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #edf3ff; }
.guide-card:hover { border-color: var(--blue); }
.guide-card > span { font-size: 12px; color: var(--muted); }
.guide-card h3 { font-size: 23px; font-weight: 500; margin: 12px 0; }
.guide-card p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.related-section { margin-top: 40px; }
.related-section h2 { font-size: 28px; letter-spacing: -.7px; }
.issue-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.issue-links a { padding: 12px 17px; background: white; border: 1px solid var(--line); border-radius: 9px; font-size: 16px; color: var(--blue-dark); }
.issue-links a:hover { border-color: var(--blue); }
.explore-section { padding-bottom: 65px; }
.article-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: white; }
.article-card .news-top { margin-top: 0; }
.article-card .news-bottom { margin-top: auto; padding-top: 22px; }
.article-card h3 { margin-bottom: 20px; }
.news-copy { margin-top: 30px; }
[data-page-catalog] tr[hidden] { display: none !important; }
@media (max-width: 1100px) { .header-inner { gap: 20px; } .desktop-nav { gap: 14px; } .desktop-nav a { font-size: 15px; } .desktop-nav.open a { font-size: 18px; } .market-badge { display: none; } }
@media (max-width: 850px) { .bond-layout { grid-template-columns: 1fr; } .bond-calculator { position: static; } .feedback-preview { gap: 25px; } .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .market-status { align-items: center; padding: 10px 12px; margin-bottom: 30px; gap: 10px; }
  .market-status strong { font-size: 12px; }
  .market-status .button { min-height: 40px; font-size: 13px; padding: 8px 10px; width: auto; }
  .market-status .button svg { display: none; }
  .feedback-preview, .feedback-fields { grid-template-columns: 1fr; gap: 18px; }
  .feedback-fields { gap: 0; }
  .inner-page { padding-top: 20px; padding-bottom: 40px; }
  .page-heading h1 { letter-spacing: -1px; }
  .content-card { padding: 20px; border-radius: 16px; }
  .bond-facts { font-size: 14px; }
  .bond-facts > div { gap: 14px; }
  .bond-facts dt { max-width: 54%; }
  .article-copy { font-size: 16px; }
  .article-copy h2, .content-card h2 { font-size: 25px; }
  .page-toolbar { align-items: stretch; }
  .page-toolbar .search-field { width: 100%; }
  .page-actions .button, .page-toolbar .button { width: 100%; }
  .guide-card { padding: 21px; }
  .breadcrumbs { font-size: 12px; margin-bottom: 24px; }
  .schedule-table { font-size: 14px; }
  .schedule-table td, .schedule-table th { padding: 13px 10px; }
}

@media (max-width: 700px) { .market-status { flex-wrap: nowrap; } .desktop-nav.open a { font-size: 18px; } }

/* The introductory line belongs to the existing income ticket on all widths. */
.ticket-income-intro { color: #e2eaff; font-size: 16px; line-height: 1.5; margin: -8px 0 16px; }
.history-details { margin-top: 24px; }
.history-details > summary { cursor: pointer; font-size: 20px; font-weight: 500; padding: 16px 0; }
.history-details[open] > summary { margin-bottom: 8px; }
.history-table .is-past { color: var(--muted); }
@media (max-width: 600px) { .ticket-income-intro { font-size: 15px; } }

.archive-pagination { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 36px 0 8px; font-size: 16px; }
.archive-pagination a { color: var(--blue); padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.archive-pagination a:hover { background: #edf2fa; }
.archive-pagination span { color: var(--muted); }
@media (max-width: 600px) { .archive-pagination { gap: 10px; font-size: 14px; } .archive-pagination a { padding: 12px; } }
