/* Reusable Stylesheet for Article 12 Embedded Simulator & Related Section
 * Strictly compatible with tools/article-production/font-css.mjs & font-page.mjs
 * and production Content-Security-Policy (style-src 'self', zero inline styles).
 */
:root {
  --spu-sticky-clearance: calc(186px + env(safe-area-inset-bottom, 0px));
  scroll-padding-block-end: var(--spu-sticky-clearance);
}

.p15-has-sticky {
  padding-bottom: max(var(--p15-sticky-space, 182px), var(--spu-sticky-clearance));
}

.p15-article p.article-note {
  font-size: 14.5px;
  line-height: 1.75;
  color: #333333;
  margin: 10px 0;
}

.p15-article p.article-note + p.article-note {
  margin-top: 8px;
}

/* Approved Article 11 Related Links Pattern Reused for Article 12 */
body.article-spu-sim .p15-article .article12-related,
body.article-spu-sim .article12-related {
  gap: 10px;
  margin-top: 32px;
}

body.article-spu-sim .article12-related h3 {
  margin: 0;
}

body.article-spu-sim .article12-related p {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
}

body.article-spu-sim .article12-related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

body.article-spu-sim .article12-related a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.article-spu-sim .related-keep-word {
  overflow-wrap: normal;
  white-space: nowrap;
}

/* Simulator Container */
.spu-sim,
.spu-sim *,
.spu-sim *::before,
.spu-sim *::after {
  box-sizing: border-box;
}

.spu-sim {
  container-type: inline-size;
  container-name: spu-simulator;
  max-width: 100%;
  min-width: 0;
  margin: 20px 0 36px;
  padding: clamp(14px, 3vw, 24px);
  border: 2px solid #d982b0;
  border-radius: 16px;
  background: #fffbfd;
  color: #222222;
  overflow-wrap: anywhere;
}

.spu-sim [hidden] {
  display: none !important;
}

.spu-sim :focus-visible {
  outline: 3px solid #166ca6;
  outline-offset: 3px;
}

.spu-sim input,
.spu-sim select,
.spu-sim button,
.spu-sim summary,
.sim-field-error,
.sim-error-banner,
.sim-result-card {
  scroll-margin-block-start: 24px;
  scroll-margin-block-end: var(--spu-sticky-clearance);
}

.sim-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.spu-sim-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0d4e4;
}

.p15-article .spu-sim-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #222222;
}

.spu-sim-badge {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #8a004c;
  background: #fff2f9;
  border: 1px solid #e6b8d0;
  border-radius: 999px;
  padding: 3px 10px;
}

.sim-noscript-note,
.sim-fallback-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 4px solid #946100;
  background: #fff6dd;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #3a2a00;
}

/* Presets (Persona Line 1 + Conditions Line 2) */
.sim-presets {
  margin-bottom: 18px;
}

@container spu-simulator (min-width: 800px) {
  .sim-month-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    align-items: start;
    gap: 20px;
  }

  .sim-result-column,
  .sim-result-column .sim-result-card {
    display: contents;
  }

  .sim-input-column,
  .sim-result-track,
  .sim-error-banner {
    grid-row: 1;
  }

  .sim-result-track,
  .sim-error-banner {
    grid-column: 2;
  }

  .sim-primary-result,
  .sim-result-notes {
    padding: 18px;
    background: #fff;
    border: 2px solid #dec4d2;
    border-radius: 14px;
  }

  .sim-result-track {
    align-self: stretch;
  }

  .sim-month-layout[data-can-follow="true"] .sim-primary-result {
    position: sticky;
    top: 12px;
  }

  .sim-result-notes {
    grid-column: 1 / -1;
    margin-bottom: 18px;
  }

  /* The page already reserves space at the bottom for the fixed CTA. */
  .sim-input-column :is(input, select, summary, button) {
    scroll-margin-block-end: 12px;
  }

  .sim-input-column .preset-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .sim-input-column .preset-btn {
    padding: 7px 12px;
    min-height: 0;
  }
}

.sim-section-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 8px;
}

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

@container spu-simulator (max-width: 580px) {
  .preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.preset-btn {
  display: block;
  min-height: 56px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #b5b5b5;
  border-radius: 10px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.preset-btn:hover {
  background: #fff8fc;
  border-color: #b00060;
}

.preset-persona {
  display: block;
  font-weight: 700;
  color: #1a1a1a;
}

.preset-check {
  display: none;
  color: #9b0055;
}

.preset-btn[aria-pressed="true"] {
  background: #fff2f9;
  border-color: #b00060;
  box-shadow: inset 0 0 0 1px #b00060;
}

.preset-btn[aria-pressed="true"] .preset-check {
  display: inline;
}

.preset-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #444444;
  font-variant-numeric: tabular-nums;
}

/* Fieldsets & Inputs */
.sim-fieldset {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #ffffff;
  padding: clamp(12px, 2.5vw, 20px);
  margin: 0 0 18px;
  min-inline-size: 0;
  max-width: 100%;
}

.sim-fieldset > legend {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
  padding: 0 6px;
}

.sim-field-group {
  margin-bottom: 18px;
}

.sim-field-group:last-child {
  margin-bottom: 0;
}

.sim-field-label {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
  margin-bottom: 4px;
}

.sim-top-hint {
  margin: 0 0 8px !important;
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
}

.sim-sub-hint {
  margin: 8px 0 0 !important;
  font-size: 14px;
  line-height: 1.65;
  color: #333333;
  font-variant-numeric: tabular-nums;
}

.sim-input-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.sim-text-input {
  width: 164px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #8a8a8a;
  border-radius: 10px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sim-text-input[aria-invalid="true"],
.sim-select[aria-invalid="true"] {
  border-color: #a21b22;
  background: #fff6f7;
}

.sim-unit {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
}

.sim-field-error {
  margin: 8px 0 0 !important;
  padding: 9px 12px;
  border-left: 3px solid #a21b22;
  background: #fff0f1;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #8f1119;
}

/* Range Sliders & Non-Overlapping Boundary Markers */
.sim-slider-wrap {
  margin-top: 10px;
}

.sim-slider-endpoints {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #555555;
  font-variant-numeric: tabular-nums;
}

.sim-slider-stage {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}

.sim-track-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: #e2e2e2;
  pointer-events: none;
}

.sim-track-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sim-track-fill {
  fill: #c8006e;
}

.sim-range {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sim-range::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border-radius: 999px;
}

.sim-range::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 999px;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: #9b0055;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

.sim-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #9b0055;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

.sim-ticks-svg {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 1px;
}

.sim-tick-line {
  stroke: #9b0055;
  stroke-width: 2;
}

/* Separated from 0GB/40GB endpoints so 3GB never collides even at 320px */
.sim-gb-boundary-row {
  position: relative;
  height: 24px;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.sim-gb-boundary-badge {
  position: absolute;
  top: 0;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff2f9;
  border: 1px solid #e6b8d0;
  color: #8a004c;
  font-weight: 700;
  white-space: nowrap;
}

.sim-gb-mark-1 {
  left: 7.5%;
  transform: translateX(-8%);
}

.sim-gb-mark-2 {
  left: 50%;
  transform: translateX(-50%);
}

.spu-sim[data-coupon="5gb"] .sim-gb-mark-1 {
  left: 20%;
  transform: translateX(-50%);
}

.spu-sim[data-coupon="5gb"] .sim-gb-mark-2 {
  left: 62.5%;
  transform: translateX(-50%);
}

.spu-sim[data-coupon="10gb"] .sim-gb-mark-1 {
  left: 32.5%;
  transform: translateX(-50%);
}

.spu-sim[data-coupon="10gb"] .sim-gb-mark-2 {
  left: 75%;
  transform: translateX(-50%);
}

.sim-shop-boundary-row {
  display: flex;
  justify-content: center;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.sim-shop-cap-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: #fff2f9;
  border: 1px solid #e6b8d0;
  color: #8a004c;
  font-weight: 700;
}

/* Keep the two boundary labels legible even on a narrow track. */
@container spu-simulator (max-width: 350px) {
  .spu-sim[data-coupon="none"] .sim-gb-mark-2 {
    transform: translateX(-22%);
  }
}

.spu-sim .sim-pay-premise {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

/* Mini collapsible for tax conversion helper */
.sim-mini-details {
  margin-top: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
}

.sim-mini-details > summary {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #333333;
}

.sim-mini-details-body {
  padding: 0 12px 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #333333;
}

.sim-mini-details-body p {
  margin: 0 !important;
}

/* Checkboxes, Radios, Selects */
.sim-check-row,
.sim-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
}

.sim-check-row input,
.sim-radio-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: 0 0 22px;
  accent-color: #9b0055;
  cursor: pointer;
}

.sim-check-row label,
.sim-radio-row label {
  font-size: 15px;
  line-height: 1.55;
  color: #222222;
  cursor: pointer;
}

.sim-radio-list {
  display: grid;
  gap: 2px;
}

.sim-select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #8a8a8a;
  border-radius: 10px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}

/* Disclosure (Advanced Settings) */
.sim-disclosure {
  margin-top: 14px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: #fafafa;
}

.sim-disclosure > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
}

.sim-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sim-chevron {
  flex: 0 0 14px;
  color: #8a004c;
  transition: transform 0.16s ease;
}

.sim-disclosure[open] > summary .sim-chevron {
  transform: rotate(90deg);
}

.sim-summary-title {
  flex: 1 1 200px;
}

.sim-disclosure-badge {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eeeeee;
  color: #333333;
}

.sim-disclosure-badge[data-active="true"] {
  background: #fff2f9;
  color: #8a004c;
  border: 1px solid #e6b8d0;
}

.sim-disclosure-body {
  padding: 4px 14px 16px;
  border-top: 1px solid #e5e5e5;
}

.sim-sub-block {
  margin-top: 14px;
}

/* Error Alert & Unified Monthly Result Card */
.sim-error-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 2px solid #a21b22;
  border-radius: 12px;
  background: #fff0f1;
  color: #8f1119;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.sim-result-card {
  border: 2px solid #dec4d2;
  border-radius: 14px;
  background: #ffffff;
  padding: clamp(14px, 3vw, 22px);
  margin-bottom: 18px;
}

.sim-monthly-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0dfe8;
}

.sim-monthly-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
}

/* Two-Bar Direct Visual Comparison */
.sim-compare-bars {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.sim-bar-item {
  display: grid;
  gap: 6px;
}

.sim-bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.sim-bar-label-wrap {
  flex: 1 1 190px;
  min-width: 0;
}

.sim-bar-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
}

.sim-bar-sub {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #444444;
}

.sim-bar-val {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.sim-bar-val-fee {
  color: #1e2d40;
}

.sim-bar-val-pts {
  color: #9b0055;
}

.sim-dual-bar-svg {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e4e7eb;
}

.sim-rect-fee {
  fill: #475b73;
}

.sim-rect-pts {
  fill: #c8006e;
}

/* Unified Payment Outcome */
.sim-pay-outcome {
  padding: 14px 16px;
  border: 1.5px solid #d982b0;
  border-radius: 12px;
  background: #fff4fa;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.sim-pay-kicker {
  margin: 0 0 6px !important;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
}

.sim-pay-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}

.sim-pay-figure {
  margin: 0 !important;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sim-pay-number {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #8a004c;
}

.sim-pay-unit {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

.sim-pay-formula {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}

.sim-surplus-callout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d982b0;
}

.sim-surplus-headline {
  margin: 0 !important;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #8a004c;
}

.sim-surplus-callout .sim-pay-figure {
  margin-top: 4px !important;
}

.sim-surplus-subnote {
  margin: 4px 0 0 !important;
  font-size: 13.5px;
  line-height: 1.6;
  color: #333333;
}

/* Break-Even Box */
.sim-breakeven-box {
  padding: 12px 14px;
  border-left: 3px solid #9b0055;
  background: #f8f8f8;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #222222;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.sim-breakeven-box p {
  margin: 0 !important;
}

/* Tier A Essential Notes & Tier B Collapsible Notes */
.sim-essential-notes p {
  margin: 6px 0 !important;
  font-size: 13.5px;
  line-height: 1.65;
  color: #333333;
}

.sim-notes-disclosure {
  margin-top: 10px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fafafa;
}

.sim-notes-disclosure > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
}

.sim-notes-disclosure-body {
  padding: 2px 14px 12px;
  border-top: 1px solid #eaeaea;
  font-size: 13.5px;
  line-height: 1.7;
  color: #333333;
}

.sim-notes-disclosure-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.sim-notes-disclosure-body li {
  margin-bottom: 6px;
}

.sim-notes-disclosure-body li:last-child {
  margin-bottom: 0;
}

/* Annual & First-Year Visually Enhanced Comparison Cards */
.sim-first-year-card {
  border: 1.5px solid #d4d4d4;
  border-radius: 14px;
  background: #ffffff;
  padding: clamp(14px, 3vw, 20px);
  margin-bottom: 16px;
}

.sim-first-year-header {
  margin-bottom: 12px;
}

.p15-article .sim-first-year-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
}

.sim-referral-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-inline-size: 0;
}

.year-compare-wrap {
  margin-bottom: 12px;
}

.year-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

@container spu-simulator (max-width: 560px) {
  .year-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.year-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  min-width: 0;
}

.year-card-first {
  border-top: 4px solid #c8006e;
  background: #fffcfe;
}

.year-card-continuing {
  border-top: 4px solid #35597d;
  background: #fbfcfe;
}

.year-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
}

.year-period-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.year-period-pill-first {
  background: #fff0f8;
  color: #8a004c;
  border: 1px solid #e6b8d0;
}

.year-period-pill-cont {
  background: #edf3f9;
  color: #1f3f60;
  border: 1px solid #c5d6e8;
}

.year-card-subtag {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #333333;
}

.year-breakdown-list {
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.year-bd-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #e5e5e5;
  font-size: 13.5px;
  line-height: 1.5;
}

.year-bd-row dt {
  color: #444444;
}

.year-bd-row dd {
  margin: 0;
  font-weight: 700;
  color: #1a1a1a;
}

.year-bd-row dd.year-bd-pts {
  color: #9b0055;
}

.year-bd-row dd.year-bd-muted {
  color: #555555;
}

.year-outcome-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6f8;
  border: 1px solid #dce2e8;
}

.year-outcome-box[data-mode="surplus"] {
  background: #fff2f9;
  border-color: #e2a8c8;
}

.year-outcome-kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #333333;
  margin-bottom: 2px;
}

.year-outcome-val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.year-outcome-box[data-mode="surplus"] .year-outcome-val {
  color: #8a004c;
}

.year-outcome-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
}

.sim-premise-note {
  margin: 8px 0 0 !important;
  font-size: 13.5px;
  line-height: 1.65;
  color: #333333;
}

.sim-locked-notes {
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
}

.sim-locked-notes p {
  margin: 4px 0 !important;
  font-size: 13.5px;
  line-height: 1.65;
  color: #333333;
}

.sim-annual-disclosure {
  margin-top: 10px;
}

.sim-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #ead3e0;
  font-size: 14.5px;
}

.sim-reset-btn {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #767676;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.sim-reset-btn:hover:not(:disabled) {
  background: #f5f5f5;
}

.sim-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .p15-article p.article-note {
    font-size: 14px;
    line-height: 1.7;
  }

  body.article-spu-sim .article12-related a {
    padding: 12px;
  }

  .p15-article .spu-sim-title {
    font-size: 18px;
  }

  .sim-bar-val {
    font-size: 20px;
  }

  .sim-pay-number {
    font-size: 26px;
  }

  .year-outcome-val {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .spu-sim {
    padding: 12px;
  }

  .sim-gb-boundary-row,
  .sim-shop-boundary-row {
    font-size: 12px;
  }

  .sim-bar-val {
    font-size: 19px;
  }

  .sim-pay-number {
    font-size: 24px;
  }

  .year-outcome-val {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-chevron {
    transition: none;
  }
}

.sim-marker-guide {
  display: block;
  width: calc(100% - 28px);
  height: 32px;
  margin-inline: 14px;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
  position: relative;
}
.sim-marker-guide > * { vector-effect: non-scaling-stroke; stroke-width: 2px; }
.sim-marker-guide line { stroke-width: 3px; }
.sim-cap-guide { color: #8a004c; margin-bottom: -20px; }
.sim-break-guide { color: #235a70; margin-top: -20px; }
.sim-marker-caption { font-size: 13px; line-height: 1.45; }
.sim-marker-cap { text-align: right; }
.sim-break-badge { display: inline-block; padding: 1px 6px; border: 1px solid #67909d; border-radius: 4px; color: #235a70; background: #f2f8fa; }
.spu-sim .sim-pay-premise { color: #50545a; font-weight: 400; }

#sim-gb-ticks, .sim-gb-boundary-row { width: calc(100% - 28px); margin-inline: 14px; }
.sim-slider-stage:has(#sim-gb-range) .sim-track-rail { inset-inline: 14px; }
.sim-payment-link { display: none; font-size: 14px; }
#sim-payment-notes, .year-points-heading { margin: 12px 0 6px; font-size: 15px; }
.year-fee { margin: 0; padding: 8px 12px; border: 1px solid #cbd3db; border-radius: 6px; background: #f1f4f7; font-size: 14px; }
.year-fee dd { margin: 2px 0 0; text-align: right; font-weight: 700; }
.year-total { padding-top: 6px; border-top: 2px solid #9aa9b5; border-bottom: 0; font-weight: 700; }
.year-outcome-box { margin-top: auto; }
@container spu-simulator (min-width: 800px) {
  .spu-sim .sim-payment-link { display: inline-block; margin-top: 8px; }
  #sim-payment-notes { margin-top: 0; }
}

#sim-detail-pointer { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", emoji; }

.sim-detail-link { margin: 12px 0; font-size: 16px; font-weight: 700; }
