/* ROBERIN graduated loan calculator reconstruction v3 — 2026-05-17
   Reference: https://roberin.com/projects/date-difference-calculator/
   Scope: Phase 1 tool-only UI/chrome/dark/mobile/ad-flow alignment. */

html:has(body.postid-1639),
body.postid-1639 {
  overflow-x: clip;
}

body.postid-1639 {
  --gl-paper: #fff7e8;
  --gl-paper-soft: #fbf0dc;
  --gl-surface: rgba(255, 253, 247, 0.94);
  --gl-surface-strong: #fffdf7;
  --gl-input: #fffaf0;
  --gl-ink: #2b2119;
  --gl-muted: #67584a;
  --gl-line: #6b5745;
  --gl-line-soft: rgba(107, 87, 69, 0.26);
  --gl-green: #e3efd2;
  --gl-green-ink: #2f4e2e;
  --gl-blue: #dfeef8;
  --gl-blue-ink: #28455a;
  --gl-peach: #f3dfd3;
  --gl-red: #8f372b;
  --gl-amber: #f0c86a;
  --gl-amber-soft: #f7df9d;
  --gl-focus: #4f7d94;
  --gl-shadow: 4px 4px 0 rgba(72, 55, 40, 0.22);
  --gl-shadow-soft: 2px 2px 0 rgba(72, 55, 40, 0.14);
  background:
    linear-gradient(90deg, rgba(107, 87, 69, 0.025) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(107, 87, 69, 0.022) 1px, transparent 1px) 0 0 / 18px 18px,
    #faf2e8;
}

body.postid-1639 .cs-site-content > .cs-container,
body.postid-1639 .cs-main-content,
body.postid-1639 .cs-content-area,
body.postid-1639 .cs-entry__container,
body.postid-1639 .cs-entry__content-wrap {
  width: 100%;
  max-width: none;
}

body.postid-1639 .cs-breadcrumbs,
body.postid-1639 .cs-entry__header,
body.postid-1639 .graduated-loan-calculator,
body.postid-1639 .entry-content > .roberin-qa-ad-placeholder,
body.postid-1639 .entry-content > [data-roberin-ad-position],
body.postid-1639 .entry-content > article,
body.postid-1639 .entry-content > .wp-block-group.content1 {
  width: min(1080px, calc(100vw - 32px));
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.postid-1639 .cs-entry__header {
  margin-top: 18px;
  margin-bottom: 14px;
  text-align: left;
}

body.postid-1639 .cs-entry__title {
  color: var(--gl-ink);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.graduated-loan-calculator,
.graduated-loan-calculator *,
.graduated-loan-calculator *::before,
.graduated-loan-calculator *::after {
  box-sizing: border-box;
}

.graduated-loan-calculator {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  margin-bottom: 24px;
  padding: 14px;
  overflow: hidden;
  color: var(--gl-ink);
  -webkit-text-fill-color: currentColor;
  background: var(--gl-paper);
  border: 2px solid var(--gl-line);
  border-radius: 0;
  box-shadow: var(--gl-shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.52;
}

.graduated-loan-calculator::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(107, 87, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.graduated-loan-calculator svg {
  flex: 0 0 auto;
  color: currentColor;
  stroke: currentColor;
}

.calculator-header {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  text-align: left;
  border: 0;
  border-bottom: 2px solid var(--gl-line);
  background: transparent;
  box-shadow: none;
}

.calculator-header h2 {
  margin: 0;
  color: var(--gl-ink);
  -webkit-text-fill-color: var(--gl-ink);
  font-size: clamp(22px, 2.45vw, 30px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.045em;
  text-shadow: none;
  word-break: keep-all;
}

.calculator-header .subtitle,
.subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--gl-muted);
  -webkit-text-fill-color: var(--gl-muted);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 700;
  word-break: keep-all;
}

.quick-actions {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 10px;
}

button.btn-action,
button.btn-calculate,
button.btn-download,
button.btn-icon,
button.toggle-btn {
  appearance: none;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

button.btn-action,
button.btn-download,
button.btn-icon,
button.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--gl-red);
  -webkit-text-fill-color: var(--gl-red);
  background: var(--gl-peach);
  border: 1px solid var(--gl-line);
  box-shadow: var(--gl-shadow-soft);
  font-size: 13.5px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

button.btn-calculate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  padding: 10px 14px;
  color: #fffaf0;
  -webkit-text-fill-color: #fffaf0;
  background: #3a261b;
  border: 1px solid #3a261b;
  box-shadow: 3px 3px 0 rgba(72, 55, 40, 0.24);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.01em;
}

button.btn-action:hover,
button.btn-calculate:hover,
button.btn-download:hover,
button.btn-icon:hover,
button.toggle-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(72, 55, 40, 0.16);
}

button.btn-action:active,
button.btn-calculate:active,
button.btn-download:active,
button.btn-icon:active,
button.toggle-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

button.btn-action:focus-visible,
button.btn-calculate:focus-visible,
button.btn-download:focus-visible,
button.btn-icon:focus-visible,
button.toggle-btn:focus-visible,
.text-input:focus-visible,
.unit-select:focus-visible,
.radio-label:focus-within {
  outline: 3px solid rgba(79, 125, 148, 0.45);
  outline-offset: 2px;
}

.calculator-main {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
  margin: 0 0 10px;
  align-items: start;
}

.input-section,
.result-section,
.footer-note,
.comparison-section,
.chart-section,
.schedule-section {
  min-width: 0;
  color: var(--gl-ink);
  background: var(--gl-surface);
  border: 1px solid var(--gl-line);
  border-radius: 0;
  box-shadow: var(--gl-shadow-soft);
}

.input-section,
.result-section,
.footer-note {
  padding: 12px;
}

.input-section,
.result-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#result-section.result-section {
  display: flex;
}

.section-title,
.subsection-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  color: var(--gl-ink) !important;
  -webkit-text-fill-color: var(--gl-ink) !important;
  border-bottom: 1px solid var(--gl-line-soft);
  font-size: 15.5px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.subsection-title {
  font-size: 14.5px;
  margin-bottom: 8px;
}

.input-group {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
}

.input-group label,
.card-label,
.help-text,
.comparison-note,
.footer-note li,
.footer-note p {
  color: var(--gl-muted);
  -webkit-text-fill-color: var(--gl-muted);
  font-weight: 700;
  word-break: keep-all;
}

.input-group label {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.25;
}

.input-with-unit,
.input-with-select {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
}

.text-input,
.unit-select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  color: var(--gl-ink) !important;
  -webkit-text-fill-color: var(--gl-ink) !important;
  caret-color: var(--gl-focus);
  background: var(--gl-input);
  border: 1px solid var(--gl-line);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(107, 87, 69, 0.08);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 850;
  line-height: 1.25;
}

.text-input::placeholder {
  color: rgba(103, 88, 74, 0.68);
  -webkit-text-fill-color: rgba(103, 88, 74, 0.68);
}

.text-input:focus,
.unit-select:focus {
  outline: none;
  background: #fffdf7;
  border-color: var(--gl-focus);
}

.text-input.warning {
  border-color: #b46a2a;
  background: #fff3d2;
}

.unit-select {
  width: auto;
  min-width: 74px;
  padding-right: 28px;
  cursor: pointer;
}

.unit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0 8px;
  color: var(--gl-muted);
  -webkit-text-fill-color: var(--gl-muted);
  background: var(--gl-paper-soft);
  border: 1px solid var(--gl-line);
  font-size: 13px;
  font-weight: 900;
}

.help-text,
.conversion-info {
  display: block;
  font-size: 12.2px;
  line-height: 1.45;
}

.conversion-info {
  color: #5f3d12;
  -webkit-text-fill-color: #5f3d12;
  font-weight: 950;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 8px 9px;
  color: var(--gl-ink);
  -webkit-text-fill-color: var(--gl-ink);
  background: var(--gl-surface-strong);
  border: 1px solid var(--gl-line-soft);
  box-shadow: var(--gl-shadow-soft);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.radio-label input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gl-amber);
}

.radio-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: var(--gl-blue);
  border: 1px solid var(--gl-line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38);
}

.summary-card:first-child {
  background: var(--gl-green);
}

.card-label {
  font-size: 12.2px;
  line-height: 1.25;
}

.card-value {
  color: var(--gl-ink);
  -webkit-text-fill-color: var(--gl-ink);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.comparison-section,
.chart-section,
.schedule-section {
  padding: 10px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: none;
}

#result-section:has(#schedule-tbody td[colspan]) .comparison-section,
#result-section:has(#schedule-tbody td[colspan]) .chart-section,
#result-section:has(#schedule-tbody td[colspan]) .schedule-section {
  display: none;
}

.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gl-line-soft);
  background: var(--gl-surface-strong);
}

.comparison-table,
.schedule-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--gl-ink);
  font-size: 12.4px;
  line-height: 1.35;
}

.comparison-table {
  min-width: 540px;
  table-layout: fixed;
  font-size: 12px;
}

.comparison-table th,
.comparison-table td,
.schedule-table th,
.schedule-table td {
  padding: 8px 9px;
  color: var(--gl-ink) !important;
  -webkit-text-fill-color: var(--gl-ink) !important;
  border: 1px solid var(--gl-line-soft);
  background: rgba(255, 253, 247, 0.72);
  vertical-align: middle;
}

.comparison-table th,
.comparison-table td {
  padding: 7px 6px;
  overflow-wrap: anywhere;
}

.comparison-table th,
.schedule-table th {
  color: var(--gl-ink) !important;
  background: var(--gl-paper-soft);
  font-weight: 950;
  white-space: nowrap;
}

.comparison-table .current-method td {
  background: rgba(227, 239, 210, 0.66);
}

.comparison-note {
  margin-top: 8px;
  padding: 9px 10px;
  background: #fff2c4;
  border: 1px solid #d7a84f;
  font-size: 12.8px;
}

.chart-header,
.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chart-controls,
.chart-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.toggle-btn.active {
  color: var(--gl-green-ink);
  -webkit-text-fill-color: var(--gl-green-ink);
  background: var(--gl-green);
  border-color: var(--gl-line);
}

.chart-container {
  position: relative;
  height: 260px;
  min-height: 220px;
  padding: 8px;
  background: var(--gl-surface-strong);
  border: 1px solid var(--gl-line-soft);
}

.footer-note {
  margin-top: 10px;
  background: #fff2c4;
  border-color: #d7a84f;
  box-shadow: none;
}

.footer-note p {
  margin: 0 0 8px;
  color: #5f3d12;
  -webkit-text-fill-color: #5f3d12;
  font-size: 14px;
  font-weight: 950;
}

.footer-note ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.footer-note li {
  padding-left: 2px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-note li::marker {
  color: #b94b32;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  color: #fffaf0;
  -webkit-text-fill-color: #fffaf0;
  background: #3a261b;
  border: 1px solid var(--gl-line);
  box-shadow: var(--gl-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-content {
  display: grid;
  gap: 2px;
}

.toast-title {
  font-weight: 950;
}

.toast-value {
  font-size: 12.5px;
  line-height: 1.35;
}

body.postid-1639 .entry-content > .roberin-qa-ad-placeholder,
body.postid-1639 .entry-content > [data-roberin-ad-position] {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder,
body.postid-1639 .graduated-loan-calculator + [data-roberin-ad-position="after-tool"] {
  margin-top: 24px;
  margin-bottom: 24px;
}

body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder + article,
body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder + .wp-block-group.content1,
body.postid-1639 [data-roberin-ad-position="after-tool"] + article,
body.postid-1639 [data-roberin-ad-position="after-tool"] + .wp-block-group.content1 {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  body.postid-1639 .cs-breadcrumbs,
  body.postid-1639 .cs-entry__header,
  body.postid-1639 .graduated-loan-calculator,
  body.postid-1639 .entry-content > .roberin-qa-ad-placeholder,
  body.postid-1639 .entry-content > [data-roberin-ad-position],
  body.postid-1639 .entry-content > article,
  body.postid-1639 .entry-content > .wp-block-group.content1 {
    width: min(950px, calc(100vw - 24px));
  }

  .calculator-main {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    justify-content: stretch;
  }

  button.btn-action {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.postid-1639 .cs-breadcrumbs,
  body.postid-1639 .cs-entry__header,
  body.postid-1639 .graduated-loan-calculator,
  body.postid-1639 .entry-content > .roberin-qa-ad-placeholder,
  body.postid-1639 .entry-content > [data-roberin-ad-position],
  body.postid-1639 .entry-content > article,
  body.postid-1639 .entry-content > .wp-block-group.content1 {
    width: min(100%, calc(100vw - 20px));
  }

  body.postid-1639 .cs-entry__header {
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .graduated-loan-calculator {
    padding: 9px;
    box-shadow: 3px 3px 0 rgba(72, 55, 40, 0.18);
  }

  .calculator-header {
    padding-bottom: 8px;
  }

  .quick-actions,
  .calculator-main,
  .input-section,
  .result-section {
    gap: 8px;
  }

  .input-section,
  .result-section,
  .footer-note,
  .comparison-section,
  .chart-section,
  .schedule-section {
    padding: 9px;
  }

  .input-with-unit,
  .input-with-select {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .unit-select {
    min-width: 68px;
  }

  .radio-group,
  .summary-cards {
    grid-template-columns: 1fr;
  }

  .chart-header,
  .schedule-header {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-controls,
  .chart-toggle {
    width: 100%;
  }

  .toggle-btn,
  .btn-download,
  .btn-icon {
    flex: 1 1 auto;
  }

  .chart-container {
    height: 220px;
  }

  .comparison-table,
  .schedule-table {
    min-width: 560px;
    font-size: 12px;
  }

  .toast {
    right: 10px;
    bottom: 12px;
  }
}

@media (max-width: 380px) {
  .graduated-loan-calculator {
    padding: 8px;
  }

  .text-input,
  .unit-select,
  .unit-label,
  button.btn-calculate,
  button.btn-action,
  button.btn-download,
  button.btn-icon,
  button.toggle-btn {
    min-height: 38px;
    font-size: 12.5px;
  }

  .section-title,
  .subsection-title {
    font-size: 14px;
  }

  .card-value {
    font-size: 16px;
  }
}

body.postid-1639[data-scheme="dark"],
body.postid-1639[data-scheme="inverse"] {
  --gl-paper: #2b2119;
  --gl-paper-soft: #241c15;
  --gl-surface: #33271d;
  --gl-surface-strong: #2b2119;
  --gl-input: #241c15;
  --gl-ink: #f7ebd8;
  --gl-muted: #f0dfc5;
  --gl-line: #a98b6b;
  --gl-line-soft: rgba(169, 139, 107, 0.48);
  --gl-green: #344a32;
  --gl-green-ink: #f7ebd8;
  --gl-blue: #233c43;
  --gl-blue-ink: #f1e8cf;
  --gl-peach: #5a3028;
  --gl-red: #fff0dd;
  --gl-amber: #d2aa55;
  --gl-amber-soft: #6c5427;
  --gl-focus: #d2aa55;
  --gl-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
  --gl-shadow-soft: 2px 2px 0 rgba(0, 0, 0, 0.24);
  color: #f2e4cf !important;
  background:
    linear-gradient(90deg, rgba(229, 196, 139, 0.055) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(229, 196, 139, 0.045) 1px, transparent 1px) 0 0 / 18px 18px,
    #201811 !important;
}

body.postid-1639[data-scheme="dark"] .cs-wrapper,
body.postid-1639[data-scheme="inverse"] .cs-wrapper,
body.postid-1639[data-scheme="dark"] .cs-site,
body.postid-1639[data-scheme="inverse"] .cs-site,
body.postid-1639[data-scheme="dark"] .cs-site-inner,
body.postid-1639[data-scheme="inverse"] .cs-site-inner,
body.postid-1639[data-scheme="dark"] .cs-site-primary,
body.postid-1639[data-scheme="inverse"] .cs-site-primary,
body.postid-1639[data-scheme="dark"] .cs-site-content,
body.postid-1639[data-scheme="inverse"] .cs-site-content,
body.postid-1639[data-scheme="dark"] footer.cs-footer,
body.postid-1639[data-scheme="inverse"] footer.cs-footer {
  color: #f2e4cf !important;
  background-color: #201811 !important;
  background-image:
    linear-gradient(90deg, rgba(229, 196, 139, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(229, 196, 139, 0.045) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
}

body.postid-1639[data-scheme="dark"] .cs-main-content,
body.postid-1639[data-scheme="inverse"] .cs-main-content,
body.postid-1639[data-scheme="dark"] .cs-entry__wrap,
body.postid-1639[data-scheme="inverse"] .cs-entry__wrap,
body.postid-1639[data-scheme="dark"] .entry-content,
body.postid-1639[data-scheme="inverse"] .entry-content {
  color: #f2e4cf !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-calculator,
body.postid-1639[data-scheme="inverse"] .graduated-loan-calculator {
  color: #f7ebd8 !important;
  background: #2b2119 !important;
  border-color: #a98b6b !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34) !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-calculator::before,
body.postid-1639[data-scheme="inverse"] .graduated-loan-calculator::before {
  background-image:
    linear-gradient(rgba(229, 196, 139, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 196, 139, 0.05) 1px, transparent 1px) !important;
}

body.postid-1639[data-scheme="dark"] .calculator-header h2,
body.postid-1639[data-scheme="inverse"] .calculator-header h2,
body.postid-1639[data-scheme="dark"] .section-title,
body.postid-1639[data-scheme="inverse"] .section-title,
body.postid-1639[data-scheme="dark"] .subsection-title,
body.postid-1639[data-scheme="inverse"] .subsection-title,
body.postid-1639[data-scheme="dark"] .card-value,
body.postid-1639[data-scheme="inverse"] .card-value {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
}

body.postid-1639[data-scheme="dark"] .calculator-header .subtitle,
body.postid-1639[data-scheme="inverse"] .calculator-header .subtitle,
body.postid-1639[data-scheme="dark"] .subtitle,
body.postid-1639[data-scheme="inverse"] .subtitle,
body.postid-1639[data-scheme="dark"] .input-group label,
body.postid-1639[data-scheme="inverse"] .input-group label,
body.postid-1639[data-scheme="dark"] .card-label,
body.postid-1639[data-scheme="inverse"] .card-label,
body.postid-1639[data-scheme="dark"] .help-text,
body.postid-1639[data-scheme="inverse"] .help-text,
body.postid-1639[data-scheme="dark"] .footer-note li,
body.postid-1639[data-scheme="inverse"] .footer-note li,
body.postid-1639[data-scheme="dark"] .comparison-note,
body.postid-1639[data-scheme="inverse"] .comparison-note {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

body.postid-1639[data-scheme="dark"] .input-section,
body.postid-1639[data-scheme="inverse"] .input-section,
body.postid-1639[data-scheme="dark"] .result-section,
body.postid-1639[data-scheme="inverse"] .result-section,
body.postid-1639[data-scheme="dark"] .comparison-section,
body.postid-1639[data-scheme="inverse"] .comparison-section,
body.postid-1639[data-scheme="dark"] .chart-section,
body.postid-1639[data-scheme="inverse"] .chart-section,
body.postid-1639[data-scheme="dark"] .schedule-section,
body.postid-1639[data-scheme="inverse"] .schedule-section {
  color: #f7ebd8 !important;
  background: #33271d !important;
  border-color: #a98b6b !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.24) !important;
}

body.postid-1639[data-scheme="dark"] .text-input,
body.postid-1639[data-scheme="inverse"] .text-input,
body.postid-1639[data-scheme="dark"] .unit-select,
body.postid-1639[data-scheme="inverse"] .unit-select {
  color: #fff5df !important;
  -webkit-text-fill-color: #fff5df !important;
  caret-color: #f0c86a !important;
  background: #241c15 !important;
  border-color: #a98b6b !important;
  box-shadow: inset 0 1px 0 rgba(240, 200, 106, 0.10) !important;
  color-scheme: dark;
}

body.postid-1639[data-scheme="dark"] .text-input::placeholder,
body.postid-1639[data-scheme="inverse"] .text-input::placeholder {
  color: rgba(240, 223, 197, 0.62) !important;
  -webkit-text-fill-color: rgba(240, 223, 197, 0.62) !important;
}

body.postid-1639[data-scheme="dark"] .text-input:focus,
body.postid-1639[data-scheme="inverse"] .text-input:focus,
body.postid-1639[data-scheme="dark"] .unit-select:focus,
body.postid-1639[data-scheme="inverse"] .unit-select:focus {
  background: #2f251c !important;
  border-color: #f0c86a !important;
  outline-color: rgba(240, 200, 106, 0.46) !important;
}

body.postid-1639[data-scheme="dark"] .unit-label,
body.postid-1639[data-scheme="inverse"] .unit-label,
body.postid-1639[data-scheme="dark"] .radio-label,
body.postid-1639[data-scheme="inverse"] .radio-label,
body.postid-1639[data-scheme="dark"] .summary-card,
body.postid-1639[data-scheme="inverse"] .summary-card,
body.postid-1639[data-scheme="dark"] .table-wrapper,
body.postid-1639[data-scheme="inverse"] .table-wrapper,
body.postid-1639[data-scheme="dark"] .chart-container,
body.postid-1639[data-scheme="inverse"] .chart-container {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
  background: #241c15 !important;
  border-color: #725b46 !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18) !important;
}

body.postid-1639[data-scheme="dark"] .summary-card:first-child,
body.postid-1639[data-scheme="inverse"] .summary-card:first-child,
body.postid-1639[data-scheme="dark"] .toggle-btn.active,
body.postid-1639[data-scheme="inverse"] .toggle-btn.active {
  background: #344a32 !important;
  border-color: #a98b6b !important;
}

body.postid-1639[data-scheme="dark"] button.btn-action,
body.postid-1639[data-scheme="inverse"] button.btn-action,
body.postid-1639[data-scheme="dark"] button.btn-download,
body.postid-1639[data-scheme="inverse"] button.btn-download,
body.postid-1639[data-scheme="dark"] button.btn-icon,
body.postid-1639[data-scheme="inverse"] button.btn-icon,
body.postid-1639[data-scheme="dark"] button.toggle-btn,
body.postid-1639[data-scheme="inverse"] button.toggle-btn {
  color: #fff0dd !important;
  -webkit-text-fill-color: #fff0dd !important;
  background: #5a3028 !important;
  border-color: #c98266 !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.24) !important;
}

body.postid-1639[data-scheme="dark"] button.btn-calculate,
body.postid-1639[data-scheme="inverse"] button.btn-calculate {
  color: #201811 !important;
  -webkit-text-fill-color: #201811 !important;
  background: #f0c86a !important;
  border-color: #a98b6b !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28) !important;
}

body.postid-1639[data-scheme="dark"] .comparison-table th,
body.postid-1639[data-scheme="inverse"] .comparison-table th,
body.postid-1639[data-scheme="dark"] .schedule-table th,
body.postid-1639[data-scheme="inverse"] .schedule-table th,
body.postid-1639[data-scheme="dark"] .comparison-table td,
body.postid-1639[data-scheme="inverse"] .comparison-table td,
body.postid-1639[data-scheme="dark"] .schedule-table td,
body.postid-1639[data-scheme="inverse"] .schedule-table td {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
  background: #241c15 !important;
  border-color: #725b46 !important;
}

body.postid-1639[data-scheme="dark"] .comparison-table .current-method td,
body.postid-1639[data-scheme="inverse"] .comparison-table .current-method td {
  background: #344a32 !important;
}

body.postid-1639[data-scheme="dark"] .footer-note,
body.postid-1639[data-scheme="inverse"] .footer-note,
body.postid-1639[data-scheme="dark"] .comparison-note,
body.postid-1639[data-scheme="inverse"] .comparison-note {
  color: #f0dfc5 !important;
  background: #3b2c17 !important;
  border-color: #8e744d !important;
  box-shadow: none !important;
}

body.postid-1639[data-scheme="dark"] .footer-note p,
body.postid-1639[data-scheme="inverse"] .footer-note p,
body.postid-1639[data-scheme="dark"] .conversion-info,
body.postid-1639[data-scheme="inverse"] .conversion-info {
  color: #f0c86a !important;
  -webkit-text-fill-color: #f0c86a !important;
}

body.postid-1639[data-scheme="dark"] .roberin-contact-consent,
body.postid-1639[data-scheme="inverse"] .roberin-contact-consent {
  background: #33271d !important;
  border-color: #a98b6b !important;
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
}


/* v3 product reconstruction: fixed-amount/percent graduated repayment, dependency-free timeline. */
.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.tool-eyebrow {
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 8px;
  color: var(--gl-green-ink);
  -webkit-text-fill-color: var(--gl-green-ink);
  background: var(--gl-green);
  border: 1px solid var(--gl-line);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.input-row--amount {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

.input-group--full {
  margin-bottom: 8px;
}

.mode-grid.radio-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-radio.radio-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-label small,
.metric-strip span,
.timeline-row small,
.field-note {
  color: var(--gl-muted);
  -webkit-text-fill-color: var(--gl-muted);
}

.radio-label span {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.radio-label small {
  font-size: 11.5px;
  font-weight: 750;
}

.radio-label:has(input:checked) {
  background: var(--gl-green);
  border-color: var(--gl-line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), var(--gl-shadow-soft);
}

.field-note {
  margin: 0;
  padding: 9px 10px;
  background: rgba(255, 242, 196, .82);
  border: 1px solid rgba(215, 168, 79, .78);
  font-size: 12.3px;
  font-weight: 750;
  line-height: 1.5;
}

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

.metric-strip > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  background: rgba(255, 250, 240, .82);
  border: 1px solid var(--gl-line-soft);
}

.metric-strip span {
  font-size: 11.7px;
  font-weight: 800;
  line-height: 1.25;
}

.metric-strip strong {
  color: var(--gl-ink);
  -webkit-text-fill-color: var(--gl-ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.empty-result {
  padding: 11px;
  color: var(--gl-muted);
  -webkit-text-fill-color: var(--gl-muted);
  background: rgba(255, 242, 196, .72);
  border: 1px dashed var(--gl-line);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.timeline-bars {
  display: grid;
  gap: 8px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 58px minmax(120px, 1fr) minmax(96px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--gl-surface-strong);
  border: 1px solid var(--gl-line-soft);
}

.timeline-label {
  color: var(--gl-ink);
  -webkit-text-fill-color: var(--gl-ink);
  font-size: 12.5px;
  font-weight: 950;
}

.bar-track {
  position: relative;
  min-width: 0;
  height: 14px;
  background: var(--gl-paper-soft);
  border: 1px solid var(--gl-line-soft);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gl-amber), var(--gl-green));
}

.timeline-row strong {
  color: var(--gl-ink);
  -webkit-text-fill-color: var(--gl-ink);
  font-size: 12.5px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.timeline-row small {
  grid-column: 2 / -1;
  font-size: 11.8px;
  font-weight: 750;
  line-height: 1.35;
}

.schedule-table td:nth-child(n+3),
.comparison-table td:nth-child(n+2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.schedule-table td:first-child,
.schedule-table td:nth-child(2),
.comparison-table td:first-child {
  text-align: left;
}

.schedule-table tr.grace-period td {
  background: rgba(247, 223, 157, .38);
}

.toast[data-type="error"] {
  background: #7a2d22;
}

.toast[data-type="warning"] {
  color: #241c15;
  -webkit-text-fill-color: #241c15;
  background: #f0c86a;
}

body.postid-1639[data-scheme="dark"] .tool-eyebrow,
body.postid-1639[data-scheme="inverse"] .tool-eyebrow,
body.postid-1639[data-scheme="dark"] .radio-label:has(input:checked),
body.postid-1639[data-scheme="inverse"] .radio-label:has(input:checked) {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
  background: #344a32 !important;
  border-color: #a98b6b !important;
}

body.postid-1639[data-scheme="dark"] .metric-strip > div,
body.postid-1639[data-scheme="inverse"] .metric-strip > div,
body.postid-1639[data-scheme="dark"] .empty-result,
body.postid-1639[data-scheme="inverse"] .empty-result,
body.postid-1639[data-scheme="dark"] .timeline-row,
body.postid-1639[data-scheme="inverse"] .timeline-row,
body.postid-1639[data-scheme="dark"] .bar-track,
body.postid-1639[data-scheme="inverse"] .bar-track {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
  background: #241c15 !important;
  border-color: #725b46 !important;
}

body.postid-1639[data-scheme="dark"] .field-note,
body.postid-1639[data-scheme="inverse"] .field-note {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
  background: #3b2c17 !important;
  border-color: #8e744d !important;
}

body.postid-1639[data-scheme="dark"] .metric-strip strong,
body.postid-1639[data-scheme="inverse"] .metric-strip strong,
body.postid-1639[data-scheme="dark"] .timeline-label,
body.postid-1639[data-scheme="inverse"] .timeline-label,
body.postid-1639[data-scheme="dark"] .timeline-row strong,
body.postid-1639[data-scheme="inverse"] .timeline-row strong {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
}

body.postid-1639[data-scheme="dark"] .radio-label small,
body.postid-1639[data-scheme="inverse"] .radio-label small,
body.postid-1639[data-scheme="dark"] .metric-strip span,
body.postid-1639[data-scheme="inverse"] .metric-strip span,
body.postid-1639[data-scheme="dark"] .timeline-row small,
body.postid-1639[data-scheme="inverse"] .timeline-row small,
body.postid-1639[data-scheme="dark"] .field-note,
body.postid-1639[data-scheme="inverse"] .field-note {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

@media (max-width: 980px) {
  .header-grid,
  .input-row,
  .input-row--amount,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .header-grid .quick-actions {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .mode-grid.radio-group,
  .compact-radio.radio-group {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .timeline-row strong,
  .timeline-row small {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Phase 2 body/article rhythm — PDF page deletion reference, 2026-05-17. */
body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639 .graduated-loan-article {
  width: min(1080px, calc(100vw - 32px));
  max-width: 1080px;
  margin: 0 auto 42px;
  padding: 28px;
  color: #34281f;
  -webkit-text-fill-color: #34281f;
  background: #f8efe2;
  border: 2px solid #6b5745;
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(82, 65, 50, 0.22);
  box-sizing: border-box;
  line-height: 1.72;
}

body.postid-1639 .graduated-loan-article,
body.postid-1639 .graduated-loan-article *,
body.postid-1639 .graduated-loan-article *::before,
body.postid-1639 .graduated-loan-article *::after {
  box-sizing: border-box;
}

body.postid-1639 .graduated-loan-article :is(header, section) {
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__hero {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 0;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__section + .graduated-loan-article__section {
  margin-top: 30px;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__kicker {
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  color: #2f4e2e;
  -webkit-text-fill-color: #2f4e2e;
  background: #e2edd8;
  border: 1px solid #6b5745;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 950;
}

body.postid-1639 .graduated-loan-article h2,
body.postid-1639 .graduated-loan-article h3 {
  margin: 0 0 10px;
  padding: 0;
  color: #34281f !important;
  -webkit-text-fill-color: #34281f !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

body.postid-1639 .graduated-loan-article h2 {
  font-size: clamp(23px, 2.45vw, 32px);
  line-height: 1.2;
  font-weight: 950;
}

body.postid-1639 .graduated-loan-article h3 {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.28;
  font-weight: 950;
}

body.postid-1639 .graduated-loan-article p,
body.postid-1639 .graduated-loan-article li,
body.postid-1639 .graduated-loan-article summary {
  color: #574838;
  -webkit-text-fill-color: #574838;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.72;
  word-break: keep-all;
}

body.postid-1639 .graduated-loan-article p {
  margin: 0 0 12px;
}

body.postid-1639 .graduated-loan-article p:last-child {
  margin-bottom: 0;
}

body.postid-1639 .graduated-loan-article strong {
  color: #7a412f;
  -webkit-text-fill-color: #7a412f;
  font-weight: 950;
}

body.postid-1639 .graduated-loan-article__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.postid-1639 .graduated-loan-article__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #7a412f;
  -webkit-text-fill-color: #7a412f;
  background: #fff8ed;
  border: 1px solid rgba(107, 87, 69, 0.48);
  box-shadow: 2px 2px 0 rgba(82, 65, 50, 0.12);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__card,
body.postid-1639 .graduated-loan-article .graduated-loan-article__process,
body.postid-1639 .graduated-loan-article .graduated-loan-article__notice,
body.postid-1639 .graduated-loan-article details {
  min-width: 0;
  padding: 12px;
  color: #34281f;
  -webkit-text-fill-color: #34281f;
  background: #fff8ed;
  border: 1px solid rgba(107, 87, 69, 0.55);
  box-shadow: 3px 3px 0 rgba(82, 65, 50, 0.13);
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__process {
  background: rgba(226, 237, 216, 0.72);
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__notice {
  background: rgba(239, 225, 188, 0.68);
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__steps,
body.postid-1639 .graduated-loan-article :is(ul, ol) {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
}

body.postid-1639 .graduated-loan-article :is(ul, ol) > li {
  position: relative;
  display: list-item;
  min-width: 0;
  padding-left: 28px;
}

body.postid-1639 .graduated-loan-article ul > li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: #d2aa55;
  border: 1px solid #6b5745;
  box-shadow: 1px 1px 0 rgba(82,65,50,.14);
}

body.postid-1639 .graduated-loan-article ol {
  counter-reset: graduatedLoanStep;
}

body.postid-1639 .graduated-loan-article ol > li {
  counter-increment: graduatedLoanStep;
}

body.postid-1639 .graduated-loan-article ol > li::before {
  content: counter(graduatedLoanStep);
  position: absolute;
  left: 0;
  top: 0.18em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #34281f;
  -webkit-text-fill-color: #34281f;
  background: #d2aa55;
  border: 1px solid #6b5745;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

body.postid-1639 .graduated-loan-article details + details {
  margin-top: 10px;
}

body.postid-1639 .graduated-loan-article summary {
  display: list-item;
  cursor: pointer;
  color: #34281f;
  -webkit-text-fill-color: #34281f;
  font-weight: 950;
}

body.postid-1639 .graduated-loan-article summary::after {
  content: none !important;
  display: none !important;
}

body.postid-1639 .graduated-loan-article details p {
  margin-top: 10px;
}

body.postid-1639 .graduated-loan-ad,
body.postid-1639 .entry-content > .graduated-loan-ad,
body.postid-1639 .entry-content > [data-roberin-ad-position] {
  width: min(728px, calc(100vw - 32px));
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-calculator + .graduated-loan-ad,
body.postid-1639 .graduated-loan-calculator + [data-roberin-ad-position="after-tool"],
body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder {
  margin-top: 24px;
  margin-bottom: 24px;
}

body.postid-1639 .graduated-loan-calculator + .graduated-loan-ad + article.graduated-loan-article,
body.postid-1639 .graduated-loan-calculator + [data-roberin-ad-position="after-tool"] + article.graduated-loan-article,
body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder + article.graduated-loan-article {
  margin-top: 0 !important;
}

body.postid-1639[data-scheme="dark"] .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639[data-scheme="inverse"] .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639[data-scheme="dark"] .graduated-loan-article,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: #2b2119 !important;
  border-color: #a98b6b !important;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34) !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article :is(header, section),
body.postid-1639[data-scheme="inverse"] .graduated-loan-article :is(header, section) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article h2,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article h2,
body.postid-1639[data-scheme="dark"] .graduated-loan-article h3,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article h3,
body.postid-1639[data-scheme="dark"] .graduated-loan-article summary,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article summary {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article :is(p, li),
body.postid-1639[data-scheme="inverse"] .graduated-loan-article :is(p, li) {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article strong,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article strong,
body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__kicker,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__kicker {
  color: #f0c86a !important;
  -webkit-text-fill-color: #f0c86a !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__kicker,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__kicker,
body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__card,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__card,
body.postid-1639[data-scheme="dark"] .graduated-loan-article details,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article details,
body.postid-1639[data-scheme="dark"] .graduated-loan-article__nav a,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article__nav a {
  background: #33271d !important;
  border-color: #a98b6b !important;
  box-shadow: 3px 3px 0 rgba(0,0,0,.24) !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__process,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__process {
  background: rgba(52, 74, 50, 0.74) !important;
  border-color: #a98b6b !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__notice,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__notice {
  background: #3b2c17 !important;
  border-color: #8e744d !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article__nav a,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article__nav a {
  color: #f7ebd8 !important;
  -webkit-text-fill-color: #f7ebd8 !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article ul > li::before,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article ul > li::before,
body.postid-1639[data-scheme="dark"] .graduated-loan-article ol > li::before,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article ol > li::before {
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
  background: #d2aa55 !important;
  border-color: #a98b6b !important;
}

@media (max-width: 980px) {
  body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
  body.postid-1639 .graduated-loan-article {
    width: min(950px, calc(100vw - 24px));
  }
}

@media (max-width: 640px) {
  body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
  body.postid-1639 .graduated-loan-article {
    width: min(100%, calc(100vw - 20px));
    padding: 18px;
    margin-bottom: 32px;
  }

  body.postid-1639 .graduated-loan-article .graduated-loan-article__grid {
    grid-template-columns: 1fr;
  }

  body.postid-1639 .graduated-loan-article__nav a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  body.postid-1639 .graduated-loan-article p,
  body.postid-1639 .graduated-loan-article li,
  body.postid-1639 .graduated-loan-article summary {
    font-size: 14px;
  }
}

/* v6 tool alignment pass — prevent stretched input rows and keep tablet rows intentional. */
body.postid-1639 .graduated-loan-calculator .calculator-main {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  align-items: start;
}

body.postid-1639 .graduated-loan-calculator .input-section {
  gap: 12px;
}

body.postid-1639 .graduated-loan-calculator .input-section > .input-group,
body.postid-1639 .graduated-loan-calculator .input-row > .input-group {
  margin: 0;
}

body.postid-1639 .graduated-loan-calculator .input-row,
body.postid-1639 .graduated-loan-calculator .input-row--amount,
body.postid-1639 .graduated-loan-calculator .input-row--period,
body.postid-1639 .graduated-loan-calculator .input-row--growth {
  align-items: start;
  grid-auto-rows: auto;
  gap: 10px;
}

body.postid-1639 .graduated-loan-calculator .input-row > .input-group {
  align-self: start;
  align-content: start;
}

body.postid-1639 .graduated-loan-calculator .input-row--amount {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

body.postid-1639 .graduated-loan-calculator .input-row--period,
body.postid-1639 .graduated-loan-calculator .input-row--growth {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.postid-1639 .graduated-loan-calculator .input-with-unit,
body.postid-1639 .graduated-loan-calculator .input-with-select {
  height: 40px;
  min-height: 40px;
  align-items: stretch;
}

body.postid-1639 .graduated-loan-calculator .text-input,
body.postid-1639 .graduated-loan-calculator .unit-select,
body.postid-1639 .graduated-loan-calculator .unit-label {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

body.postid-1639 .graduated-loan-calculator .unit-label {
  line-height: 1;
}

body.postid-1639 .graduated-loan-calculator .input-with-select .unit-select {
  min-width: 78px;
}

body.postid-1639 .graduated-loan-calculator .compact-radio.radio-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 40px;
}

body.postid-1639 .graduated-loan-calculator .compact-radio .radio-label {
  min-height: 40px;
  justify-content: center;
  padding: 8px;
}

body.postid-1639 .graduated-loan-calculator .mode-grid.radio-group .radio-label {
  min-height: 50px;
}

body.postid-1639 .graduated-loan-calculator .help-text,
body.postid-1639 .graduated-loan-calculator .conversion-info {
  margin-top: 0;
}

@media (min-width: 641px) and (max-width: 980px) {
  body.postid-1639 .graduated-loan-calculator .input-row,
  body.postid-1639 .graduated-loan-calculator .input-row--period,
  body.postid-1639 .graduated-loan-calculator .input-row--growth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.postid-1639 .graduated-loan-calculator .input-row--amount {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
}

@media (max-width: 640px) {
  body.postid-1639 .graduated-loan-calculator .input-row,
  body.postid-1639 .graduated-loan-calculator .input-row--amount,
  body.postid-1639 .graduated-loan-calculator .input-row--period,
  body.postid-1639 .graduated-loan-calculator .input-row--growth {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.postid-1639 .graduated-loan-calculator .compact-radio.radio-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  body.postid-1639 .graduated-loan-calculator .input-with-unit,
  body.postid-1639 .graduated-loan-calculator .input-with-select,
  body.postid-1639 .graduated-loan-calculator .text-input,
  body.postid-1639 .graduated-loan-calculator .unit-select,
  body.postid-1639 .graduated-loan-calculator .unit-label,
  body.postid-1639 .graduated-loan-calculator .compact-radio.radio-group,
  body.postid-1639 .graduated-loan-calculator .compact-radio .radio-label {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
  }
}



/* v7 body verifier fix — match PDF article list rhythm and make gap gate measurable. */
body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639 .graduated-loan-article {
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  margin-top: 0 !important;
}

body.postid-1639 .graduated-loan-article,
body.postid-1639 .graduated-loan-article *,
body.postid-1639 .graduated-loan-article *::before,
body.postid-1639 .graduated-loan-article *::after {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

body.postid-1639 .graduated-loan-article :is(header, section) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__hero,
body.postid-1639 .graduated-loan-article .graduated-loan-article__section {
  display: grid !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__hero {
  padding-top: 0 !important;
  padding-bottom: 18px !important;
  margin-bottom: 18px !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__section + .graduated-loan-article__section {
  margin-top: 24px !important;
}

body.postid-1639 .graduated-loan-article h2,
body.postid-1639 .graduated-loan-article h3 {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.postid-1639 .graduated-loan-article p,
body.postid-1639 .graduated-loan-article li,
body.postid-1639 .graduated-loan-article summary {
  margin: 0 !important;
  font-weight: 680 !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
}

body.postid-1639 .graduated-loan-article strong,
body.postid-1639 .graduated-loan-article summary {
  font-weight: 920 !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__grid,
body.postid-1639 .graduated-loan-article .graduated-loan-article__use-grid {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin-top: 0 !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__card,
body.postid-1639 .graduated-loan-article .graduated-loan-article__process,
body.postid-1639 .graduated-loan-article .graduated-loan-article__notice,
body.postid-1639 .graduated-loan-article details {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
}

body.postid-1639 .graduated-loan-article :is(ul, ol) {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

body.postid-1639 .graduated-loan-article ol,
body.postid-1639 .graduated-loan-article ol.graduated-loan-article__steps {
  counter-reset: graduatedLoanStep !important;
}

body.postid-1639 .graduated-loan-article :is(ul, ol) > li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-wrap: anywhere !important;
}

body.postid-1639 .graduated-loan-article :is(ul, ol) > li::before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  box-sizing: border-box !important;
  color: #34281f !important;
  -webkit-text-fill-color: #34281f !important;
  border-radius: 0 !important;
}

body.postid-1639 .graduated-loan-article ul > li::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  background: #d2aa55 !important;
  border: 1px solid #6b5745 !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, .22) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

body.postid-1639 .graduated-loan-article ol > li,
body.postid-1639 .graduated-loan-article ol.graduated-loan-article__steps > li {
  counter-increment: graduatedLoanStep !important;
}

body.postid-1639 .graduated-loan-article ol > li::before,
body.postid-1639 .graduated-loan-article ol.graduated-loan-article__steps > li::before {
  content: counter(graduatedLoanStep) !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  background: rgba(210, 170, 85, .24) !important;
  border: 1px solid #6b5745 !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, .22) !important;
  font-size: 11px !important;
  font-weight: 920 !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.postid-1639 .graduated-loan-article details {
  margin: 0 !important;
}

body.postid-1639 .graduated-loan-article details + details {
  margin-top: 10px !important;
}

body.postid-1639 .graduated-loan-article details[open] summary {
  margin-bottom: 8px !important;
}

body.postid-1639 .graduated-loan-article summary {
  display: list-item !important;
  list-style-type: disclosure-closed !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-article details[open] > summary {
  list-style-type: disclosure-open !important;
}

body.postid-1639 .graduated-loan-article summary::after {
  content: none !important;
  display: none !important;
}

body.postid-1639 .graduated-loan-calculator + .graduated-loan-ad,
body.postid-1639 .graduated-loan-calculator + [data-roberin-ad-position="after-tool"],
body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-calculator + .graduated-loan-ad + article.graduated-loan-article,
body.postid-1639 .graduated-loan-calculator + [data-roberin-ad-position="after-tool"] + article.graduated-loan-article,
body.postid-1639 .graduated-loan-calculator + .roberin-qa-ad-placeholder + article.graduated-loan-article {
  margin-top: 0 !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article :is(ul, ol) > li::before,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article :is(ul, ol) > li::before {
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
  border-color: #a98b6b !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article ul > li::before,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article ul > li::before {
  background: #d2aa55 !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article ol > li::before,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article ol > li::before {
  background: rgba(210, 170, 85, .30) !important;
}

@media (max-width: 640px) {
  body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
  body.postid-1639 .graduated-loan-article {
    width: min(100%, calc(100vw - 20px)) !important;
    padding: 18px !important;
  }

  body.postid-1639 .graduated-loan-article .graduated-loan-article__hero,
  body.postid-1639 .graduated-loan-article .graduated-loan-article__section {
    gap: 12px !important;
  }

  body.postid-1639 .graduated-loan-article .graduated-loan-article__section + .graduated-loan-article__section {
    margin-top: 22px !important;
  }
}


/* v7.1 verifier correction — restore PDF reference dashed rhythm dividers and article grid flow. */
body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639 .graduated-loan-article {
  --graduated-loan-article-line-soft: rgba(107, 87, 69, .34);
  display: grid !important;
  gap: 18px !important;
  overflow: hidden !important;
}

body.postid-1639[data-scheme="dark"] .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639[data-scheme="inverse"] .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639[data-scheme="dark"] .graduated-loan-article,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article {
  --graduated-loan-article-line-soft: rgba(169, 139, 107, .42);
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__hero,
body.postid-1639 .graduated-loan-article .graduated-loan-article__section {
  display: grid !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__hero {
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--graduated-loan-article-line-soft) !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__section {
  padding: 0 !important;
  border: 0 !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__section + .graduated-loan-article__section {
  margin-top: 6px !important;
  padding-top: 22px !important;
  border-top: 1px dashed var(--graduated-loan-article-line-soft) !important;
}


/* v7.2 article surface parity with PDF reference; after-tool margin remains governed by gap rules. */
body.postid-1639 .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639 .graduated-loan-article {
  padding: clamp(16px, 3vw, 28px) !important;
  background:
    linear-gradient(rgba(107, 87, 69, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, .04) 1px, transparent 1px),
    #f8efe2 !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border: 2px solid #6b5745 !important;
  box-shadow: 5px 5px 0 rgba(82, 65, 50, .22) !important;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.72 !important;
  word-break: keep-all !important;
}

body.postid-1639[data-scheme="dark"] .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639[data-scheme="inverse"] .entry-content article.roberin-article-body.graduated-loan-article,
body.postid-1639[data-scheme="dark"] .graduated-loan-article,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article {
  background:
    linear-gradient(rgba(169, 139, 107, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 139, 107, .06) 1px, transparent 1px),
    #33271d !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border-color: #a98b6b !important;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .34) !important;
}


/* v8 list text wrapper parity — keep PDF flex marker rhythm without vertical strong-label wrapping. */
body.postid-1639 .graduated-loan-article .graduated-loan-article__li-text {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  overflow-wrap: anywhere !important;
}

body.postid-1639 .graduated-loan-article .graduated-loan-article__li-text strong {
  display: inline !important;
}


/* v9 final dark rhythm gate — keep PDF hero divider after dark reset. */
body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__hero,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__hero {
  border: 0 !important;
  border-bottom: 1px dashed rgba(169, 139, 107, .46) !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__section,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__section {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.postid-1639[data-scheme="dark"] .graduated-loan-article .graduated-loan-article__section + .graduated-loan-article__section,
body.postid-1639[data-scheme="inverse"] .graduated-loan-article .graduated-loan-article__section + .graduated-loan-article__section {
  border-top: 1px dashed rgba(169, 139, 107, .46) !important;
}
