/* Keep registration links visible while reading, without clipping the TOC. */
.cheapest-broker-page .broker-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 108px);
  max-height: calc(100dvh - 108px);
}

.broker-sidebar .toc-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 96px;
  padding: 16px;
}

.broker-sidebar .toc-card h2 { flex: none; }
.broker-toc-links { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b4c9df transparent; }
.broker-toc-links a { padding: 1px 0; }
.broker-toc-links a:focus-visible { outline: 2px solid #0878ee; outline-offset: -2px; }

.broker-register-card {
  flex: none;
  padding: 16px;
  border: 1px solid #cbdff1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 50, 87, .07);
}

.broker-register-card h2 {
  margin: 0 0 12px;
  color: #102541;
  font-size: 16px;
  line-height: 1.4;
}

.broker-register-links { display: grid; gap: 8px; }
.broker-register-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #0868cc;
  border-radius: 7px;
  color: #fff;
  background: #0868cc;
  text-decoration: none;
  line-height: 1.35;
}

.broker-register-links a:hover { background: #0757ab; border-color: #0757ab; }
.broker-register-links a:focus-visible { outline: 3px solid #073b70; outline-offset: 3px; }
.broker-register-links a strong { min-width: 0; font-size: 14px; font-weight: 800; }
.broker-register-links a > span { flex: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.broker-register-links i { font-style: normal; }
.broker-register-mobile-name { display: none; }
.broker-register-disclosure { margin: 10px 0 0; color: #52657a; font-size: 12px; line-height: 1.5; }

.broker-sidebar .broker-sidebar-disclaimer { flex: none; margin: 0; padding: 12px 14px; }
.broker-sidebar-disclaimer summary { color: #52657a; font-size: 12px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.broker-sidebar-disclaimer summary:focus-visible { outline: 2px solid #0878ee; outline-offset: 3px; }
.broker-sidebar-disclaimer p { margin: 10px 0 0; max-height: 100px; overflow-y: auto; line-height: 1.55; }

@media (max-width: 1080px), (max-height: 640px) {
  .cheapest-broker-page {
    --broker-register-bar-space: 126px;
    padding-bottom: calc(var(--broker-register-bar-space) + env(safe-area-inset-bottom, 0px));
  }

  .cheapest-broker-page :is(a, button, input, select, textarea, summary, [id]) {
    scroll-margin-bottom: calc(var(--broker-register-bar-space) + env(safe-area-inset-bottom, 0px));
  }

  .broker-register-card {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    margin: 0;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -5px 20px rgba(20, 50, 87, .1);
  }

  .broker-register-card h2,
  .broker-register-links,
  .broker-register-disclosure { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .broker-register-card h2 { margin-bottom: 7px; font-size: 14px; }
  .broker-register-links { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .broker-register-links a { flex-direction: column; justify-content: center; gap: 1px; padding: 6px 4px; text-align: center; }
  .broker-register-links a > span { font-size: 12px; }
  .broker-register-desktop-name { display: none; }
  .broker-register-mobile-name { display: inline; }
  .broker-register-disclosure { margin-top: 7px; line-height: 1.4; }
}

@media (max-width: 1080px) {
  .cheapest-broker-page .broker-sidebar { max-height: none; }
  .broker-toc-links { overflow-y: visible; }
}

@media (min-width: 1081px) and (max-height: 640px) {
  .cheapest-broker-page .broker-sidebar { max-height: calc(100vh - 234px); max-height: calc(100dvh - 234px); }
}

@media (max-width: 600px) {
  .cheapest-broker-page { --broker-register-bar-space: 180px; }
  .broker-register-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  .cheapest-broker-page { padding-bottom: 0; }
  .cheapest-broker-page .broker-register-card { display: none; }
  .cheapest-broker-page .broker-sidebar { position: static; max-height: none; }
  .broker-toc-links { overflow: visible; }
}

/* Cost overview and three self-contained scenario tables. */
.cheapest-broker-page .article-hero { align-items: start; }
.cheapest-broker-page .cost-overview-panel { padding: 28px; border-top: 4px solid #087f72; background: linear-gradient(180deg, #f0f9f6 0, #fff 180px); }
.cheapest-broker-page .cost-overview-panel p { margin: 0; padding: 0; color: #52657a; font-size: 16px; line-height: 1.65; }
.cheapest-broker-page .cost-eyebrow,
.cheapest-broker-page .cost-overview-panel .cost-eyebrow { margin: 0 0 12px; color: #07695f; font-size: 13px; font-weight: 800; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.cheapest-broker-page .cost-overview-panel h2 { margin: 0 0 16px; font-size: clamp(24px, 2.2vw, 29px); line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 112px; }
.cost-overview-caption { margin: 24px 0 0; padding: 13px 16px; color: #405874; background: #edf4fc; border: 1px solid #d4e1ed; border-radius: 10px 10px 0 0; font-size: 14px; font-weight: 750; }
.cost-overview-prices { margin: 0 0 20px; border: 1px solid #d4e1ed; border-top: 0; border-radius: 0 0 10px 10px; background: #fff; }
.cost-overview-prices > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 16px; border-top: 1px solid #e0e9f0; }
.cost-overview-prices > div:first-child { border-top: 0; }
.cost-overview-prices dt { min-width: 0; color: #102541; font-size: 16px; line-height: 1.5; }
.cost-overview-prices dt span { display: block; margin-top: 4px; color: #52657a; font-size: 13px; line-height: 1.5; }
.cost-overview-prices dd { flex: none; margin: 0; color: #102541; font-size: 23px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cheapest-broker-page .cost-overview-panel .cost-overview-scope { margin: 0 0 14px; font-size: 14px; line-height: 1.65; }
.cost-overview-link { display: inline-block; padding: 5px 0; color: #075bb2; font-size: 15px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.cost-overview-link:focus-visible { outline: 3px solid #0878ee; outline-offset: 3px; }

.cheapest-broker-page .cost-scenarios-section h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; }
.cost-scenario-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.cheapest-broker-page .cost-scenario-shortcuts a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 13px; border: 1px solid #c8daeb; border-radius: 8px; background: #fff; color: #075bb2; font-size: 14px; line-height: 1.5; text-decoration: none; }
.cost-scenario-shortcuts a:hover { background: #edf5ff; }
.cost-scenario-shortcuts a:focus-visible { outline: 3px solid #0878ee; outline-offset: 3px; }
.cost-model-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0 0 18px; }
.cost-model-facts > span { display: block; padding: 16px; border: 1px solid #d4e3ed; border-radius: 10px; background: #f4f9fc; color: #52657a; font-size: 14px; line-height: 1.6; }
.cost-model-facts strong { display: block; margin-bottom: 4px; color: #102541; font-size: 16px; }
.cheapest-broker-page .cost-model-scope { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.cheapest-broker-page .cost-model-details { margin: 0 0 20px; padding: 0; border: 1px solid #d3e0ec; border-radius: 10px; background: #fff; }
.cost-model-details summary { padding: 16px 18px; color: #075bb2; font-size: 16px; line-height: 1.5; cursor: pointer; }
.cost-model-details summary:focus-visible { outline: 3px solid #0878ee; outline-offset: -3px; border-radius: 10px; }
.cost-model-details > div { padding: 0 18px 18px; }
.cheapest-broker-page .cost-model-details p { font-size: 16px; line-height: 1.7; }
.cheapest-broker-page .cost-model-details p:last-child { margin: 0; }
.cheapest-broker-page .cost-checked-date { margin: 0 0 12px; color: #52657a; font-size: 14px; line-height: 1.5; }
.cost-scenario-list { display: grid; gap: 24px; margin-bottom: 24px; }
.cost-scenario-card { min-width: 0; border: 1px solid #cbddea; border-radius: 12px; background: #fff; scroll-margin-top: 100px; }
.cost-scenario-heading { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 22px; }
.cost-scenario-number { display: grid; place-items: center; width: 38px; height: 38px; background: #e1f2ec; color: #07695f; border-radius: 10px; font-size: 14px; font-weight: 800; }
.cheapest-broker-page .cost-scenario-label { margin: 0 0 5px; color: #07695f; font-size: 14px; font-weight: 750; line-height: 1.5; }
.cheapest-broker-page .cost-scenario-heading h3 { margin: 0 0 8px; color: #102541; font-size: 22px; line-height: 1.35; }
.cheapest-broker-page .cost-scenario-volume { margin: 0; font-size: 14px; line-height: 1.5; color: #52657a; }
.cost-scenario-card table { width: 100%; border-collapse: collapse; text-align: left; }
.cost-scenario-card thead th { padding: 12px 22px; background: #edf4fc; color: #405874; border-top: 1px solid #d8e4ee; border-bottom: 1px solid #d8e4ee; font-size: 14px; font-weight: 750; line-height: 1.5; }
.cost-scenario-card thead th:last-child { text-align: right; white-space: nowrap; }
.cost-scenario-card tbody th,
.cost-scenario-card tbody td { padding: 18px 22px; vertical-align: middle; border-bottom: 1px solid #e0e9f0; }
.cost-scenario-card tbody tr:nth-child(even) { background: #f8fbfd; }
.cost-scenario-card tbody th { font-weight: 400; }
.cost-scenario-card tbody th > strong { display: block; color: #102541; font-size: 16px; line-height: 1.5; }
.cost-broker-tariff { display: block; margin-top: 3px; color: #52657a; font-size: 13px; line-height: 1.5; }
.cost-fee-breakdown { display: flex; flex-wrap: wrap; gap: 3px 20px; margin-top: 8px; color: #52657a; font-size: 14px; line-height: 1.55; }
.cost-fee-breakdown > span { white-space: nowrap; }
.cost-fee-breakdown b { font-weight: 650; }
.cost-scenario-card tbody td { width: 29%; text-align: right; white-space: nowrap; }
.cost-scenario-card td > strong { display: block; color: #102541; font-size: 22px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.cost-scenario-card td > span { display: block; margin-top: 4px; color: #52657a; font-size: 14px; line-height: 1.5; }
.cheapest-broker-page .cost-scenario-note { margin: 0; padding: 15px 22px; color: #52657a; font-size: 14px; line-height: 1.65; }
.cost-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; }

.cheapest-broker-page .article-content .cluster-formula { color: #fff; background: #123b49; padding: 22px; font-size: 18px; font-weight: 650; line-height: 1.7; }
.cheapest-broker-page .cost-formula-note { margin: -4px 0 20px; color: #405874; font-size: 15px; line-height: 1.7; }

@media (max-width: 760px) {
  .cheapest-broker-page .cost-overview-panel { padding: 24px; }
  .cost-scenario-heading { padding: 20px 18px; }
  .cost-scenario-card thead th { padding: 12px 16px; font-size: 13px; }
  .cost-scenario-card tbody th,
  .cost-scenario-card tbody td { padding: 16px; }
  .cost-scenario-card td > strong { font-size: 20px; }
  .cheapest-broker-page .cost-scenario-note { padding: 14px 16px; }
}

@media (max-width: 420px) {
  .cheapest-broker-page .cost-overview-panel { padding: 24px 20px; }
  .cost-overview-prices > div { padding: 16px 14px; gap: 12px; }
  .cost-overview-prices dd { font-size: 21px; }
  .cost-scenario-heading { grid-template-columns: 1fr; gap: 12px; }
  .cheapest-broker-page .cost-scenario-heading h3 { font-size: 21px; }
  .cost-scenario-card thead th { padding: 12px; }
  .cost-scenario-card tbody th,
  .cost-scenario-card tbody td { padding: 15px 12px; }
  .cost-scenario-card td > strong { font-size: 18px; }
  .cost-fee-breakdown { flex-direction: column; gap: 3px; }
  .cheapest-broker-page .article-content .cluster-formula { padding: 20px; font-size: 17px; }
}
