:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #edf2f0;
  --ink: #17221f;
  --muted: #687671;
  --line: #d8e1de;
  --accent: #167c68;
  --accent-soft: #e1f0ec;
  --positive: #14745f;
  --negative: #b54a45;
  --shadow: 0 10px 30px rgba(23, 34, 31, 0.055);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101715;
    --surface: #18201e;
    --surface-2: #202a27;
    --ink: #e8efec;
    --muted: #9caaa5;
    --line: #303d38;
    --accent: #67c7b0;
    --accent-soft: #193a32;
    --positive: #72d4ba;
    --negative: #f08d84;
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101715;
  --surface: #18201e;
  --surface-2: #202a27;
  --ink: #e8efec;
  --muted: #9caaa5;
  --line: #303d38;
  --accent: #67c7b0;
  --accent-soft: #193a32;
  --positive: #72d4ba;
  --negative: #f08d84;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary,
label {
  touch-action: manipulation;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font:
    18px/1.55 "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  border-top: 4px solid var(--accent);
}
.topo {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.18;
}
.topo path {
  vector-effect: non-scaling-stroke;
}
main {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 32px 60px;
}
.site-header {
  margin-bottom: 36px;
}
.site-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  margin-bottom: 28px;
  padding-bottom: 12px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
}
.nav-actions,
.nav-menu,
.primary-nav {
  display: flex;
  align-items: center;
}
.nav-actions {
  gap: 18px;
}
.primary-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav {
  gap: 20px;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle[hidden] {
  display: none;
}
h1 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 7px;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.sub p {
  margin: 0 0 8px;
}
.sub p:last-child {
  margin-bottom: 0;
}
.sub {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 760px;
}
.theme {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.9fr);
  gap: 28px;
  align-items: start;
}
.layout .c-bond,
.layout .c-result {
  margin-bottom: 8px;
}
.left,
.right {
  min-width: 0;
}
.right {
  position: sticky;
  top: 18px;
} /* de hele rechterkolom blijft staan */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}
.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.c-bond .grid {
  column-gap: 24px;
}
.compact-gap {
  margin-top: 18px;
}
label,
.dwrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}
.dwrap,
.price-field {
  min-width: 0;
}
input,
select {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
input:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 16px) 52%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}
.dr {
  display: flex;
  gap: 6px;
}
.dr input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
.dr #Dy {
  flex: 1.6 1 0;
}
.cal {
  position: relative;
  flex: 0 0 43px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--accent);
}
.cal input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.price-field {
  display: block;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
} /* zelfde kolombreedte als Coupure en Aantal */
.price-field input {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}
.tabs {
  display: flex;
  gap: 6px;
  margin: -1px 0 20px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
}
.tab {
  flex: 1;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.sum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 17px 0 0;
  padding: 15px;
  background: var(--surface-2);
  border-radius: 10px;
}
.sum dt {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sum dd {
  margin: 1px 0 0;
  font-weight: 700;
  font-size: 15px;
}
.chk {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.chk.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.chk input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  flex: none;
}
[hidden] {
  display: none !important;
}
.out {
  display: block;
  margin-top: 5px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.rng b {
  color: var(--ink);
}
.nrng {
  display: block;
}
.nrng input[type="range"] {
  display: block;
  padding: 0;
  margin-top: 8px;
  min-height: 0;
  height: 28px;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}
.rlabel {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.dual {
  position: relative;
  height: 30px;
  margin-top: 8px;
}
.dtrack {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: var(--line);
}
.dfill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--accent);
}
.rng .dual input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.dual input[type="range"]::-webkit-slider-runnable-track {
  height: 30px;
  background: transparent;
}
.dual input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.dual input[type="range"]::-moz-range-track {
  height: 30px;
  background: transparent;
}
.dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.dual input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rscale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.broker-section {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
input.derived {
  cursor: default;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
} /* kost komt uit het tarief van de gekozen broker */
.list-head {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 7px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.blist {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.brow {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.brow:last-child {
  border-bottom: 0;
}
.brow small {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}
.brow[aria-selected="true"] {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.brow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.warn {
  color: var(--negative);
  font-weight: 600;
}
.result-disclaimer {
  margin-bottom: 20px;
}
.note {
  font-size: 15px;
  color: var(--muted);
  margin: 13px 0 0;
}
#bnote {
  display: grid;
  gap: 4px;
}
.result-card {
  position: static;
  padding: 29px;
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
}
.result-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.big {
  font:
    400 64px/1 "DM Serif Display",
    Georgia,
    serif;
  color: var(--positive);
  margin: 13px 0 22px;
}
.big small {
  font-size: 24px;
  margin-left: 2px;
  letter-spacing: 0;
}
.result-steps {
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.share-result,
.share-dialog-actions button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.share-result {
  width: 100%;
  margin-top: 19px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.share-result:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.share-result:focus-visible,
.share-dialog-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.share-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(85vh, 900px);
  overflow-y: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.share-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.share-dialog-intro {
  margin: 0 0 16px;
}
.share-preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.share-link-label {
  display: block;
  margin: 18px 0 6px;
  font-size: 14px;
  font-weight: 700;
}
.share-link {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font:
    14px/1.4 ui-monospace,
    monospace;
}
.share-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.share-dialog-actions .share-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.share-status {
  min-height: 1.5em;
}
.saxo-promo {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 15px;
}
.saxo-promo p {
  margin: 5px 0 0;
}
.saxo-promo a {
  color: var(--accent);
  font-weight: 700;
}
.saxo-promo-label {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.saxo-promo-inline {
  background: transparent;
  border-color: var(--line);
}
.steps {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 16px;
}
.steps b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-top: 2px;
}
.cost-details {
  margin-top: 20px;
}
.site-footer {
  max-width: 1160px;
  margin: 50px auto 0;
  padding: 20px 24px 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.site-footer p {
  max-width: 720px;
  margin: 0 auto;
}
.cost-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(85vh, 900px);
  overflow-y: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.cost-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.cost-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.cost-dialog-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}
.cost-dialog-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cost-dialog-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.table-intro {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}
td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tr.t td {
  font-weight: 800;
  border-bottom: 0;
  padding-top: 11px;
}
.neg {
  color: var(--negative);
}
.about {
  max-width: 760px;
  margin: 50px 0 12px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}
.note-small {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.homepage-articles {
  margin: 48px 0 12px;
}
.homepage-articles h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
}
.homepage-articles-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.homepage-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.homepage-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.homepage-article-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.homepage-article-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.homepage-article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.homepage-article-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.homepage-article-more {
  background: var(--accent-soft);
}
.homepage-article-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.content-page .about {
  max-width: none;
  margin: 40px 0 12px;
}
.glossary-page {
  max-width: 900px;
}
.glossary-intro {
  max-width: 760px;
  margin: 36px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.glossary-intro p {
  margin: 0;
}
.glossary-tools {
  max-width: 560px;
  margin: 0 0 24px;
}
.glossary-tools label {
  color: var(--ink);
}
.glossary-result-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.glossary-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.glossary-index a {
  display: inline-flex;
  min-width: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.glossary-index a:hover,
.glossary-index a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.glossary-index a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.glossary-letter {
  scroll-margin-top: 24px;
  margin: 0 0 34px;
}
.glossary-letter h2 {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 24px;
  line-height: 1.3;
}
.glossary-letter dl {
  margin: 0;
}
.glossary-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.glossary-entry dt {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}
.glossary-entry dd {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.glossary-entry dd a {
  color: var(--accent);
  font-weight: 600;
}
.glossary-empty {
  margin: 0 0 28px;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  align-items: start;
  gap: 32px;
  margin: 40px 0 12px;
}
.article-content {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}
.related-articles {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.related-articles h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}
.related-articles ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-articles a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.related-article-icon {
  flex: none;
  margin-top: 2px;
}
.related-articles a:hover {
  text-decoration: underline;
}
.related-articles a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.article-content h1 {
  margin-bottom: 8px;
}
.article-content h2 {
  margin: 32px 0 10px;
  font-size: 24px;
  line-height: 1.3;
}
.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 16px;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
}
.article-content li + li {
  margin-top: 6px;
}
.article-content table {
  margin: 18px 0 22px;
  font-size: 16px;
}
.article-content th,
.article-content td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-content td:last-child {
  white-space: normal;
}
.article-content .article-tags {
  margin: 0 0 14px;
  padding-left: 0;
}
.article-content .article-tags li + li {
  margin-top: 0;
}
.article-content hr {
  margin: 26px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
}
.article-content em {
  color: var(--muted);
}
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 24px 0 12px;
  padding: 0;
  list-style: none;
}
.article-list li {
  padding: 12px 0;
}
.article-list a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.article-list-icon {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}
.article-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.article-list p {
  margin: 2px 0 0;
  color: var(--muted);
}
.article-list-empty {
  color: var(--muted);
  font-size: 14px;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.article-tags a {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.article-tags a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.article-tags a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.back-link {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}
.about h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
.about h3 {
  margin: 28px 0 7px;
  font-size: 16px;
  color: var(--ink);
}
.about p {
  margin: 0 0 14px;
}
.about details {
  border-top: 1px solid var(--line);
  padding: 15px 0 5px;
}
.about details:last-of-type {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.about summary {
  color: var(--ink);
}
details summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.15s;
}
details[open] > summary::before {
  transform: rotate(90deg);
}
details[open] summary {
  margin-bottom: 10px;
}
#tbl td:first-child {
  width: 72%;
}
#tbl th {
  padding: 15px 0 5px;
  color: var(--accent);
  font-size: 13px;
  text-align: left;
}
#tbl tr.group:first-child th {
  padding-top: 20px;
}
#tbl tr.subtotal td {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
#tbl tr.investment-total td {
  border-bottom: 0;
}
#tbl tr.coupon-total td {
  border-bottom: 0;
}
#tbl tr.before-profit td {
  padding-bottom: 15px;
  border-bottom: 0;
}
#tbl tr.profit-row td {
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 2px solid var(--accent);
  border-bottom: 0;
  color: var(--positive);
  font-size: 16px;
  font-weight: 800;
}
#tbl tr.profit-row td:last-child {
  font-size: 17px;
}
.price-field input {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 980px) {
  main {
    padding: 34px 24px 50px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .layout .c-bond,
  .layout .c-result {
    margin-bottom: 0;
  }
  .left,
  .right {
    display: contents;
  }
  .right {
    position: static;
  }
  .c-bond {
    order: 1;
  }
  .c-result {
    order: 3;
  }
  .c-tax {
    order: 6;
  }
  .result-card {
    position: relative;
    top: auto;
  }
  .sum {
    grid-template-columns: repeat(2, 1fr);
  }
  .homepage-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-list {
    grid-template-columns: 1fr;
  }
  .glossary-index {
    margin-bottom: 28px;
  }
  .related-articles {
    position: static;
  }
}
@media (max-width: 560px) {
  .mobile-hidden {
    display: none;
  }
  main {
    padding: 22px 14px 38px;
  }
  .homepage-articles {
    margin-top: 36px;
  }
  .homepage-articles h2 {
    font-size: 21px;
  }
  .homepage-article-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .homepage-article-card {
    padding: 18px;
  }
  body {
    font-size: 17px;
  }
  .site-header {
    margin-bottom: 24px;
  }
  .site-nav {
    min-height: 38px;
    margin-bottom: 24px;
    padding-bottom: 10px;
  }
  body.has-nav-toggle .nav-toggle {
    display: flex;
  }
  body.has-nav-toggle .nav-actions {
    gap: 8px;
  }
  body.has-nav-toggle .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    min-width: 160px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  body.has-nav-toggle .nav-menu[data-open="true"] {
    display: flex;
    justify-content: flex-end;
  }
  body.has-nav-toggle .primary-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  body.has-nav-toggle .primary-nav a {
    display: block;
    width: 100%;
    padding: 8px;
  }
  .content-page .about {
    margin-top: 30px;
  }
  .content-page .article-layout,
  .content-page .article-list {
    margin-top: 30px;
  }
  .glossary-intro {
    margin-top: 30px;
    font-size: 17px;
  }
  .glossary-entry {
    padding: 15px 0;
  }
  .glossary-entry dt {
    font-size: 18px;
  }
  .glossary-entry dd {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  h1 {
    font-size: 26px;
    line-height: 1.08;
    margin-bottom: 6px;
  }
  .sub {
    font-size: 16px;
    line-height: 1.5;
  }
  .theme {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
  }
  .card {
    padding: 19px;
    border-radius: 12px;
    margin-bottom: 18px;
  }
  .section-head {
    gap: 12px;
    margin-bottom: 17px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .section-head p {
    font-size: 15px;
    line-height: 1.45;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  label,
  .dwrap {
    font-size: 15px;
  }
  input,
  select {
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 11px;
    border-radius: 8px;
  }
  .out {
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 11px;
    border-radius: 8px;
  }
  select {
    padding-right: 38px;
  }
  .dr {
    gap: 5px;
  }
  .dr #Dd,
  .dr #Dm {
    flex: 0 0 47px;
  }
  .dr #Dy {
    flex: 1 1 auto;
    min-width: 58px;
  }
  .cal {
    flex: 0 0 43px;
    margin-top: 6px;
    border-radius: 8px;
  }
  .price-field {
    margin: 0;
  }
  .tabs {
    margin: -1px 0 17px;
    padding: 4px;
  }
  .tab {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 15px;
  }
  .sum {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 13px;
  }
  .sum dt {
    font-size: 13px;
  }
  .sum dd {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .note {
    font-size: 14px;
    line-height: 1.4;
  }
  .steps {
    gap: 14px;
  }
  .steps span {
    font-size: 14px;
  }
  .steps b {
    font-size: 17px;
  }
  .result-card {
    padding: 23px 20px;
  }
  .result-label {
    font-size: 14px;
  }
  .big {
    font-size: 48px;
    margin: 11px 0 18px;
  }
  .big small {
    font-size: 20px;
  }
  .result-steps {
    gap: 19px;
  }
  .share-dialog {
    padding: 20px;
  }
  .share-dialog-actions {
    display: grid;
  }
  table {
    font-size: 15px;
  }
  td {
    padding: 7px 0;
    line-height: 1.35;
  }
  td:first-child {
    padding-right: 12px;
  }
  details summary {
    font-size: 15px;
  }
  .cost-dialog {
    display: none;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card {
    padding: 16px;
  }
  h1 {
    font-size: 24px;
  }
  .dr #Dd,
  .dr #Dm {
    flex-basis: 43px;
  }
  .dr #Dy {
    min-width: 52px;
  }
  .cal {
    flex-basis: 40px;
  }
  .big {
    font-size: 45px;
  }
}
