/* ROBERIN fixed deposit interest calculator redesign - Phase 1, 2026-05-18 */
body.postid-4184 {
  --fdi-paper: #fff7e8;
  --fdi-paper-soft: #fbf0dc;
  --fdi-paper-panel: #fffdf7;
  --fdi-input: #fff8ed;
  --fdi-ink: #2b2119;
  --fdi-muted: #67584a;
  --fdi-line: #6b5745;
  --fdi-line-soft: rgba(107, 87, 69, 0.26);
  --fdi-green: #e2edd8;
  --fdi-green-ink: #304d2c;
  --fdi-blue: #dfeef8;
  --fdi-blue-ink: #28455a;
  --fdi-amber: #ddbf6f;
  --fdi-amber-soft: #f7df9d;
  --fdi-red: #9b3e2f;
  --fdi-shadow: 4px 4px 0 rgba(72, 55, 40, 0.22);
  --fdi-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-4184 .cs-site-content > .cs-container,
body.postid-4184 .cs-main-content,
body.postid-4184 .cs-content-area,
body.postid-4184 .cs-entry__container,
body.postid-4184 .cs-entry__content-wrap {
  width: 100%;
  max-width: none;
}

body.postid-4184 .cs-breadcrumbs,
body.postid-4184 .cs-entry__header,
body.postid-4184 .fixed-deposit-interest-calculator-container,
body.postid-4184 .entry-content > article,
body.postid-4184 .fixed-deposit-ad {
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

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

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

.fixed-deposit-interest-calculator-container,
.fixed-deposit-interest-calculator-container *,
.fixed-deposit-interest-calculator-container *::before,
.fixed-deposit-interest-calculator-container *::after {
  box-sizing: border-box;
}

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

.fixed-deposit-interest-calculator-container::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;
}

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

.tool-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  color: var(--fdi-green-ink);
  background: var(--fdi-green);
  border: 1px solid var(--fdi-line);
  box-shadow: var(--fdi-shadow-soft);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.calculator-header h2,
.main-title {
  margin: 0;
  color: var(--fdi-ink);
  font-size: clamp(22px, 2.5vw, 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(--fdi-muted);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 700;
  word-break: keep-all;
}

.tool-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.tool-summary-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--fdi-ink);
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--fdi-line);
  box-shadow: var(--fdi-shadow-soft);
  font-size: 12.5px;
  font-weight: 850;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  gap: 10px;
  align-items: start;
}

.input-section,
.result-section,
.notice-section,
.info-section {
  min-width: 0;
  color: var(--fdi-ink);
  background: rgba(255, 253, 247, 0.94);
  border: 2px solid var(--fdi-line);
  box-shadow: var(--fdi-shadow-soft);
}

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

.section-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  color: var(--fdi-ink);
  border-bottom: 1px solid var(--fdi-line-soft);
  font-size: 14.5px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.section-header svg {
  flex: 0 0 auto;
  color: var(--fdi-line);
  stroke: currentColor;
}

.section-header--small {
  margin-top: 8px;
  font-size: 13.5px;
}

.input-group {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-bottom: 9px;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.input-row--rate-period {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) minmax(90px, 0.56fr);
}

.input-row--selects {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.62fr);
}

.input-group label {
  color: var(--fdi-ink);
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.input-group input,
.input-group select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  appearance: none;
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
  background: var(--fdi-input);
  border: 2px solid var(--fdi-line);
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(107, 87, 69, 0.12);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.input-group select {
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 11px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

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

.input-group input:focus,
.input-group select:focus {
  outline: 3px solid rgba(79, 125, 148, 0.34);
  outline-offset: 1px;
  background: #fffdf7;
}

.amount-display {
  min-height: 20px;
  color: var(--fdi-muted);
  font-size: 13px;
  font-weight: 800;
}

.amount-korean:not(:empty) {
  display: inline-flex;
  padding: 2px 6px;
  background: var(--fdi-green);
  border: 1px solid var(--fdi-line-soft);
}

.input-description {
  margin: -1px 0 0;
  color: var(--fdi-muted);
  font-size: 12.5px;
  line-height: 1.42;
  font-weight: 720;
  word-break: keep-all;
}

.button-group {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.72fr));
  gap: 8px;
  margin-top: 2px;
}

.calculate-btn,
.sample-btn,
.reset-btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 43px;
  padding: 9px 12px;
  border: 2px solid var(--fdi-line);
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(72, 55, 40, 0.2);
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
  background: var(--fdi-amber);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sample-btn {
  background: var(--fdi-green);
}

.reset-btn,
.copy-btn {
  background: var(--fdi-paper-soft);
}

.calculate-btn:hover,
.sample-btn:hover,
.reset-btn:hover,
.copy-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(72, 55, 40, 0.2);
}

.calculate-btn:active,
.sample-btn:active,
.reset-btn:active,
.copy-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.calculate-btn:focus-visible,
.sample-btn:focus-visible,
.reset-btn:focus-visible,
.copy-btn:focus-visible {
  outline: 3px solid #4f7d94;
  outline-offset: 2px;
}

.result-content {
  display: grid;
  gap: 8px;
}

.result-placeholder {
  display: grid;
  place-items: center;
  min-height: 185px;
  padding: 18px;
  color: var(--fdi-muted);
  text-align: center;
  background: var(--fdi-paper-soft);
  border: 1px dashed var(--fdi-line);
  font-weight: 800;
}

.result-placeholder svg {
  margin-bottom: 8px;
  color: var(--fdi-line);
  stroke: currentColor;
}

.result-placeholder p {
  max-width: 300px;
  margin: 0;
  word-break: keep-all;
}

.result-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  color: var(--fdi-ink);
  background: var(--fdi-input);
  border: 2px solid var(--fdi-line);
  box-shadow: var(--fdi-shadow-soft);
}

.result-card.highlight {
  background: var(--fdi-green);
}

.result-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fdi-muted);
  font-size: 12.5px;
  font-weight: 950;
}

.result-value {
  color: var(--fdi-ink);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.045em;
  word-break: break-word;
}

.result-value.main {
  font-size: clamp(26px, 3.4vw, 39px);
}

.result-value.tax {
  color: var(--fdi-red);
}

.result-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
  border-top: 1px solid var(--fdi-line-soft);
  font-size: 13.5px;
  font-weight: 800;
}

.result-detail:first-child {
  border-top: 0;
  padding-top: 0;
}

.result-detail .label {
  color: var(--fdi-muted);
}

.result-detail .value {
  color: var(--fdi-ink);
  text-align: right;
}

.chart-section[hidden] {
  display: none !important;
}

.chart-section {
  margin-top: 10px;
}

.stacked-bar-container {
  padding: 7px;
  background: var(--fdi-paper-soft);
  border: 1px solid var(--fdi-line);
}

.stacked-bar {
  display: flex;
  width: 100%;
  height: 34px;
  overflow: hidden;
  border: 2px solid var(--fdi-line);
  background: var(--fdi-paper-panel);
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  color: var(--fdi-ink);
  font-size: 11px;
  font-weight: 950;
  transition: width 0.35s ease;
}

.principal-bar { background: var(--fdi-blue); }
.interest-bar { background: var(--fdi-green); }
.tax-bar { background: #f3c6b9; }

.chart-legend,
.percentage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.legend-item,
.percentage-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px;
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--fdi-line-soft);
  font-size: 12px;
  font-weight: 800;
}

.legend-color {
  width: 18px;
  height: 7px;
  border: 1px solid var(--fdi-line);
}

.legend-color.principal { background: var(--fdi-blue); }
.legend-color.interest { background: var(--fdi-green); }
.legend-color.tax { background: #f3c6b9; }
.legend-value,
.percentage-item strong { color: var(--fdi-ink); font-weight: 950; }

.notice-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: #fff1cf;
}

.notice-icon {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--fdi-ink);
  background: var(--fdi-amber-soft);
  border: 1px solid var(--fdi-line);
}

.notice-content strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fdi-ink);
  font-size: 14px;
  font-weight: 950;
}

.notice-content p {
  margin: 0;
  color: var(--fdi-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 760;
  word-break: keep-all;
}

.info-section {
  margin-top: 10px;
  padding: 12px;
}

.info-content {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.info-item {
  min-width: 0;
  padding: 9px;
  background: var(--fdi-paper-soft);
  border: 1px solid var(--fdi-line);
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fdi-ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
  word-break: keep-all;
}

.info-item p {
  margin: 0;
  color: var(--fdi-muted);
  font-size: 12.3px;
  line-height: 1.48;
  font-weight: 720;
  word-break: keep-all;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 12px;
  color: var(--fdi-ink);
  background: var(--fdi-green);
  border: 2px solid var(--fdi-line);
  box-shadow: var(--fdi-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.toast-title {
  font-size: 13px;
  font-weight: 950;
}

.toast-value {
  font-size: 12px;
  font-weight: 760;
}

.fixed-deposit-ad {
  min-height: 96px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fixed-deposit-ad .adsbygoogle,
.fixed-deposit-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 96px;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fixed-deposit-ad + article,
.fixed-deposit-ad + article.roberin-article-body,
.fixed-deposit-ad + .roberin-article-body {
  margin-top: 0 !important;
}

body.postid-4184 .entry-content > p:empty {
  display: none !important;
}

body.postid-4184[data-scheme="dark"],
body.postid-4184[data-scheme="inverse"] {
  --fdi-paper: #2b2119;
  --fdi-paper-soft: #33271d;
  --fdi-paper-panel: #382b20;
  --fdi-input: #241c15;
  --fdi-ink: #f2e4cf;
  --fdi-muted: #f0dfc5;
  --fdi-line: #a98b6b;
  --fdi-line-soft: rgba(169, 139, 107, 0.34);
  --fdi-green: #344a32;
  --fdi-green-ink: #f2e4cf;
  --fdi-blue: #2d4555;
  --fdi-blue-ink: #f2e4cf;
  --fdi-amber: #d2aa55;
  --fdi-amber-soft: #5b4425;
  --fdi-red: #ffb4a6;
  --fdi-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
  --fdi-shadow-soft: 2px 2px 0 rgba(0, 0, 0, 0.24);
  background:
    linear-gradient(90deg, rgba(169, 139, 107, 0.05) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(169, 139, 107, 0.045) 1px, transparent 1px) 0 0 / 18px 18px,
    #201811 !important;
}

body.postid-4184[data-scheme="dark"] .cs-wrapper,
body.postid-4184[data-scheme="inverse"] .cs-wrapper,
body.postid-4184[data-scheme="dark"] .cs-site,
body.postid-4184[data-scheme="inverse"] .cs-site,
body.postid-4184[data-scheme="dark"] .cs-site-inner,
body.postid-4184[data-scheme="inverse"] .cs-site-inner,
body.postid-4184[data-scheme="dark"] .cs-site-primary,
body.postid-4184[data-scheme="inverse"] .cs-site-primary,
body.postid-4184[data-scheme="dark"] .cs-site-content,
body.postid-4184[data-scheme="inverse"] .cs-site-content,
body.postid-4184[data-scheme="dark"] footer.cs-footer,
body.postid-4184[data-scheme="inverse"] footer.cs-footer {
  color: var(--fdi-ink);
  background: transparent !important;
}

body.postid-4184[data-scheme="dark"] .cs-main-content,
body.postid-4184[data-scheme="inverse"] .cs-main-content,
body.postid-4184[data-scheme="dark"] .cs-entry__wrap,
body.postid-4184[data-scheme="inverse"] .cs-entry__wrap,
body.postid-4184[data-scheme="dark"] .entry-content,
body.postid-4184[data-scheme="inverse"] .entry-content {
  background: transparent !important;
}

body.postid-4184[data-scheme="dark"] .cs-entry__title,
body.postid-4184[data-scheme="inverse"] .cs-entry__title,
body.postid-4184[data-scheme="dark"] .calculator-header h2,
body.postid-4184[data-scheme="inverse"] .calculator-header h2,
body.postid-4184[data-scheme="dark"] .main-title,
body.postid-4184[data-scheme="inverse"] .main-title,
body.postid-4184[data-scheme="dark"] .section-header,
body.postid-4184[data-scheme="inverse"] .section-header {
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
}

body.postid-4184[data-scheme="dark"] .calculator-header .subtitle,
body.postid-4184[data-scheme="inverse"] .calculator-header .subtitle,
body.postid-4184[data-scheme="dark"] .subtitle,
body.postid-4184[data-scheme="inverse"] .subtitle,
body.postid-4184[data-scheme="dark"] .input-description,
body.postid-4184[data-scheme="inverse"] .input-description,
body.postid-4184[data-scheme="dark"] .result-label,
body.postid-4184[data-scheme="inverse"] .result-label,
body.postid-4184[data-scheme="dark"] .notice-content p,
body.postid-4184[data-scheme="inverse"] .notice-content p,
body.postid-4184[data-scheme="dark"] .info-item p,
body.postid-4184[data-scheme="inverse"] .info-item p {
  color: var(--fdi-muted);
  -webkit-text-fill-color: var(--fdi-muted);
}

body.postid-4184[data-scheme="dark"] .input-section,
body.postid-4184[data-scheme="inverse"] .input-section,
body.postid-4184[data-scheme="dark"] .result-section,
body.postid-4184[data-scheme="inverse"] .result-section,
body.postid-4184[data-scheme="dark"] .info-section,
body.postid-4184[data-scheme="inverse"] .info-section,
body.postid-4184[data-scheme="dark"] .info-item,
body.postid-4184[data-scheme="inverse"] .info-item,
body.postid-4184[data-scheme="dark"] .result-card,
body.postid-4184[data-scheme="inverse"] .result-card,
body.postid-4184[data-scheme="dark"] .result-placeholder,
body.postid-4184[data-scheme="inverse"] .result-placeholder,
body.postid-4184[data-scheme="dark"] .legend-item,
body.postid-4184[data-scheme="inverse"] .legend-item,
body.postid-4184[data-scheme="dark"] .percentage-item,
body.postid-4184[data-scheme="inverse"] .percentage-item {
  background-color: var(--fdi-paper-soft);
  border-color: var(--fdi-line);
}

body.postid-4184[data-scheme="dark"] .notice-section,
body.postid-4184[data-scheme="inverse"] .notice-section {
  background: #3a2b18;
  border-color: var(--fdi-line);
}

body.postid-4184[data-scheme="dark"] .tool-summary-strip span,
body.postid-4184[data-scheme="inverse"] .tool-summary-strip span,
body.postid-4184[data-scheme="dark"] .amount-korean:not(:empty),
body.postid-4184[data-scheme="inverse"] .amount-korean:not(:empty),
body.postid-4184[data-scheme="dark"] .result-card.highlight,
body.postid-4184[data-scheme="inverse"] .result-card.highlight {
  background: var(--fdi-green);
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
}

body.postid-4184[data-scheme="dark"] .input-group input,
body.postid-4184[data-scheme="inverse"] .input-group input,
body.postid-4184[data-scheme="dark"] .input-group select,
body.postid-4184[data-scheme="inverse"] .input-group select {
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
  background-color: var(--fdi-input);
  border-color: var(--fdi-line);
  color-scheme: dark;
}

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

body.postid-4184[data-scheme="dark"] .reset-btn,
body.postid-4184[data-scheme="inverse"] .reset-btn,
body.postid-4184[data-scheme="dark"] .copy-btn,
body.postid-4184[data-scheme="inverse"] .copy-btn {
  background: var(--fdi-paper-panel);
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
}

body.postid-4184[data-scheme="dark"] .calculate-btn,
body.postid-4184[data-scheme="inverse"] .calculate-btn {
  color: #241c15;
  -webkit-text-fill-color: #241c15;
  background: var(--fdi-amber);
}

body.postid-4184[data-scheme="dark"] .sample-btn,
body.postid-4184[data-scheme="inverse"] .sample-btn {
  background: var(--fdi-green);
  color: var(--fdi-ink);
  -webkit-text-fill-color: var(--fdi-ink);
}

body.postid-4184[data-scheme="dark"] .principal-bar,
body.postid-4184[data-scheme="inverse"] .principal-bar { background: #2d4555; }
body.postid-4184[data-scheme="dark"] .interest-bar,
body.postid-4184[data-scheme="inverse"] .interest-bar { background: #344a32; }
body.postid-4184[data-scheme="dark"] .tax-bar,
body.postid-4184[data-scheme="inverse"] .tax-bar { background: #5a2d24; }

@media (max-width: 980px) {
  body.postid-4184 .cs-breadcrumbs,
  body.postid-4184 .cs-entry__header,
  body.postid-4184 .fixed-deposit-interest-calculator-container,
  body.postid-4184 .entry-content > article,
  body.postid-4184 .fixed-deposit-ad {
    width: min(100% - 20px, 760px);
  }

  .main-grid,
  .input-row--selects {
    grid-template-columns: 1fr;
  }

  .info-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.postid-4184 .cs-breadcrumbs,
  body.postid-4184 .cs-entry__header,
  body.postid-4184 .fixed-deposit-interest-calculator-container,
  body.postid-4184 .entry-content > article,
  body.postid-4184 .fixed-deposit-ad {
    width: min(100% - 10px, 390px);
  }

  .fixed-deposit-interest-calculator-container {
    padding: 9px;
    box-shadow: 3px 3px 0 rgba(72, 55, 40, 0.18);
  }

  .calculator-header {
    margin-bottom: 9px;
  }

  .tool-summary-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .main-grid,
  .input-row,
  .input-row--rate-period,
  .input-row--selects,
  .button-group,
  .chart-legend,
  .percentage-summary,
  .info-content {
    grid-template-columns: 1fr;
  }

  .input-section,
  .result-section,
  .notice-section,
  .info-section {
    padding: 10px;
  }

  .calculate-btn,
  .sample-btn,
  .reset-btn {
    width: 100%;
  }

  .result-value.main {
    font-size: clamp(24px, 9vw, 34px);
  }

  .notice-section {
    grid-template-columns: 1fr;
  }

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

  .fixed-deposit-ad {
    width: min(100% - 10px, 390px);
    min-height: 82px;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .fixed-deposit-ad .adsbygoogle,
  .fixed-deposit-ad ins.adsbygoogle {
    min-height: 82px;
  }
}

/* Phase 1 ad-flow hardening: prevent article first-heading margin collapse from doubling after-tool gap. */
body.postid-4184 .entry-content > #fixedDepositInterestCalculatorContainer {
  margin-bottom: 0 !important;
}

body.postid-4184 .entry-content > .fixed-deposit-ad.fixed-deposit-ad--after-tool {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

body.postid-4184 .entry-content > .fixed-deposit-ad + article {
  margin-top: 0 !important;
  padding-top: 0.1px !important;
  overflow: hidden;
}

body.postid-4184 .entry-content > .fixed-deposit-ad + article > *:first-child,
body.postid-4184 .entry-content > .fixed-deposit-ad + article > .content1:first-child,
body.postid-4184 .entry-content > .fixed-deposit-ad + article > .content1:first-child > *:first-child,
body.postid-4184 .entry-content > .fixed-deposit-ad + article > .content1:first-child > section:first-child > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 560px) {
  body.postid-4184 .entry-content > .fixed-deposit-ad.fixed-deposit-ad--after-tool {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}

/* Phase 2 body/article redesign, 2026-05-18: PDF page deletion reference rhythm for fixed deposit article. */
body.postid-4184 {
  --pdf-article-page: #f9f1e7;
  --pdf-article-panel: #f8efe2;
  --pdf-article-card: #fff8ed;
  --pdf-article-accent-paper: #e2edd8;
  --pdf-article-text: #34281f;
  --pdf-article-muted: #574838;
  --pdf-article-line: #6b5745;
  --pdf-article-line-soft: rgba(107, 87, 69, .34);
  --pdf-article-mustard: #d2aa55;
  --pdf-article-mustard-soft: rgba(210, 170, 85, .24);
  --pdf-article-focus: #4f7d94;
  --pdf-article-shadow: rgba(82, 65, 50, .22);
  --pdf-article-soft-shadow: rgba(82, 65, 50, .13);
}

body.postid-4184[data-scheme="dark"],
body.postid-4184[data-scheme="inverse"] {
  --pdf-article-page: #201811;
  --pdf-article-panel: #33271d;
  --pdf-article-card: #2b2119;
  --pdf-article-accent-paper: #344a32;
  --pdf-article-text: #f2e4cf;
  --pdf-article-muted: #f0dfc5;
  --pdf-article-line: #a98b6b;
  --pdf-article-line-soft: rgba(169, 139, 107, .46);
  --pdf-article-mustard: #d2aa55;
  --pdf-article-mustard-soft: rgba(210, 170, 85, .22);
  --pdf-article-focus: #d2aa55;
  --pdf-article-shadow: rgba(0, 0, 0, .32);
  --pdf-article-soft-shadow: rgba(0, 0, 0, .2);
}

body.postid-4184 .fixed-deposit-ad {
  box-sizing: border-box !important;
  width: min(728px, calc(100vw - 32px)) !important;
  max-width: 728px !important;
  min-width: 0 !important;
  min-height: 90px !important;
  margin: 22px auto !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.postid-4184 .fixed-deposit-ad .adsbygoogle,
body.postid-4184 .fixed-deposit-ad ins.adsbygoogle,
body.postid-4184 .entry-content ins.adsbygoogle {
  display: inline-block !important;
  width: min(728px, calc(100vw - 32px)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

body.postid-4184 .entry-content > .fixed-deposit-ad.fixed-deposit-ad--after-tool {
  margin-top: clamp(24px, 4vw, 42px) !important;
  margin-bottom: 0 !important;
}

body.postid-4184 .entry-content article.roberin-article-body.pdf-page-deletion-article,
body.postid-4184 .pdf-page-deletion-article {
  position: relative;
  z-index: 0;
  display: grid !important;
  gap: 18px !important;
  box-sizing: border-box !important;
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  min-width: 0 !important;
  margin: clamp(24px, 4vw, 42px) auto !important;
  padding: clamp(16px, 3vw, 28px) !important;
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  background:
    linear-gradient(rgba(107, 87, 69, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, .04) 1px, transparent 1px),
    var(--pdf-article-panel) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border: 2px solid var(--pdf-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 var(--pdf-article-shadow) !important;
  overflow: hidden !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-4184 .entry-content > .fixed-deposit-ad.fixed-deposit-ad--after-tool + article.roberin-article-body.pdf-page-deletion-article {
  margin-top: clamp(24px, 4vw, 42px) !important;
  padding-top: clamp(16px, 3vw, 28px) !important;
}

body.postid-4184 .pdf-page-deletion-article,
body.postid-4184 .pdf-page-deletion-article *,
body.postid-4184 .pdf-page-deletion-article *::before,
body.postid-4184 .pdf-page-deletion-article *::after {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

body.postid-4184 .pdf-page-deletion-article :is(p, li, td, th, summary, span, strong, code, h2, h3) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body.postid-4184 .pdf-article__hero,
body.postid-4184 .pdf-article__section {
  display: grid !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

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

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

body.postid-4184 .pdf-article__kicker {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  background: var(--pdf-article-accent-paper) !important;
  border: 1px solid var(--pdf-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--pdf-article-soft-shadow) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
}

body.postid-4184 .pdf-page-deletion-article h2,
body.postid-4184 .pdf-page-deletion-article h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-left-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: -.02em !important;
  word-break: keep-all !important;
}

body.postid-4184 .pdf-page-deletion-article h2 {
  font-size: clamp(25px, 3vw, 30px) !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

body.postid-4184 .pdf-page-deletion-article h3 {
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

body.postid-4184 .pdf-page-deletion-article p,
body.postid-4184 .pdf-page-deletion-article li,
body.postid-4184 .pdf-page-deletion-article summary {
  margin: 0 !important;
  color: var(--pdf-article-muted) !important;
  -webkit-text-fill-color: var(--pdf-article-muted) !important;
  font-size: 15px !important;
  font-weight: 680 !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
}

body.postid-4184 .pdf-page-deletion-article strong {
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  font-weight: 920 !important;
}

body.postid-4184 .pdf-article__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.postid-4184 .pdf-article__nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  text-decoration: none !important;
  background: var(--pdf-article-card) !important;
  border: 1px solid var(--pdf-article-line) !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.postid-4184 .pdf-article__nav a:hover,
body.postid-4184 .pdf-article__nav a:focus-visible {
  background: var(--pdf-article-mustard-soft) !important;
  outline: 2px solid var(--pdf-article-focus) !important;
  outline-offset: 2px !important;
}

body.postid-4184 .pdf-article__grid,
body.postid-4184 .pdf-article__process-grid,
body.postid-4184 .pdf-article__use-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.postid-4184 .pdf-article__use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.postid-4184 .pdf-article__card,
body.postid-4184 .pdf-article__process,
body.postid-4184 .pdf-article__use,
body.postid-4184 .pdf-article__notice,
body.postid-4184 .pdf-page-deletion-article details {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 12px !important;
  color: var(--pdf-article-muted) !important;
  -webkit-text-fill-color: var(--pdf-article-muted) !important;
  background: var(--pdf-article-card) !important;
  border: 1px solid var(--pdf-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 var(--pdf-article-soft-shadow) !important;
}

body.postid-4184 .pdf-article__notice {
  background: rgba(239, 225, 188, .64) !important;
  border-style: dashed !important;
}

body.postid-4184 .pdf-article__process {
  background: rgba(226, 237, 216, .70) !important;
}

body.postid-4184 .pdf-article__use span,
body.postid-4184 .pdf-article__process span {
  color: var(--pdf-article-muted) !important;
  -webkit-text-fill-color: var(--pdf-article-muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

body.postid-4184 .pdf-page-deletion-article code {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 8px !important;
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  background: var(--pdf-article-card) !important;
  border: 1px solid var(--pdf-article-line-soft) !important;
  border-radius: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: .92em !important;
  font-weight: 780 !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

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

body.postid-4184 .pdf-page-deletion-article ol,
body.postid-4184 .pdf-page-deletion-article ol.pdf-article__steps {
  counter-reset: pdf-article-step !important;
}

body.postid-4184 .pdf-page-deletion-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-4184 .pdf-page-deletion-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: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  border-radius: 0 !important;
}

body.postid-4184 .pdf-page-deletion-article ul > li::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  background: var(--pdf-article-mustard) !important;
  border: 1px solid var(--pdf-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, .22) !important;
  line-height: 1 !important;
}

body.postid-4184 .pdf-page-deletion-article ol > li,
body.postid-4184 .pdf-page-deletion-article ol.pdf-article__steps > li {
  counter-increment: pdf-article-step !important;
}

body.postid-4184 .pdf-page-deletion-article ol > li::before,
body.postid-4184 .pdf-page-deletion-article ol.pdf-article__steps > li::before {
  content: counter(pdf-article-step) !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--pdf-article-mustard-soft) !important;
  border: 1px solid var(--pdf-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, .22) !important;
  font-size: 11px !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

body.postid-4184 .pdf-article__li-text {
  display: block !important;
  min-width: 0 !important;
  align-self: center !important;
}

body.postid-4184 .pdf-page-deletion-article details {
  margin: 0 !important;
}

body.postid-4184 .pdf-page-deletion-article summary {
  cursor: pointer !important;
  color: var(--pdf-article-text) !important;
  -webkit-text-fill-color: var(--pdf-article-text) !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
  list-style-position: inside !important;
}

body.postid-4184 .pdf-page-deletion-article details[open] summary {
  margin-bottom: 8px !important;
}

body.postid-4184[data-scheme="dark"] .entry-content article.roberin-article-body.pdf-page-deletion-article,
body.postid-4184[data-scheme="inverse"] .entry-content article.roberin-article-body.pdf-page-deletion-article,
body.postid-4184[data-scheme="dark"] .pdf-page-deletion-article,
body.postid-4184[data-scheme="inverse"] .pdf-page-deletion-article {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background-image:
    linear-gradient(rgba(169, 139, 107, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 139, 107, .06) 1px, transparent 1px) !important;
  background-color: #33271d !important;
  border-color: #a98b6b !important;
}

body.postid-4184[data-scheme="dark"] .pdf-page-deletion-article :is(h2, h3, strong, summary),
body.postid-4184[data-scheme="inverse"] .pdf-page-deletion-article :is(h2, h3, strong, summary) {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-4184[data-scheme="dark"] .pdf-page-deletion-article :is(p, li, span),
body.postid-4184[data-scheme="inverse"] .pdf-page-deletion-article :is(p, li, span) {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

body.postid-4184[data-scheme="dark"] .pdf-article__card,
body.postid-4184[data-scheme="dark"] .pdf-article__process,
body.postid-4184[data-scheme="dark"] .pdf-article__use,
body.postid-4184[data-scheme="dark"] .pdf-article__notice,
body.postid-4184[data-scheme="dark"] .pdf-page-deletion-article details,
body.postid-4184[data-scheme="dark"] .pdf-article__nav a,
body.postid-4184[data-scheme="inverse"] .pdf-article__card,
body.postid-4184[data-scheme="inverse"] .pdf-article__process,
body.postid-4184[data-scheme="inverse"] .pdf-article__use,
body.postid-4184[data-scheme="inverse"] .pdf-article__notice,
body.postid-4184[data-scheme="inverse"] .pdf-page-deletion-article details,
body.postid-4184[data-scheme="inverse"] .pdf-article__nav a {
  background-color: #33271d !important;
  border-color: rgba(169, 139, 107, .72) !important;
  box-shadow: 3px 3px 0 rgba(32, 24, 17, .52) !important;
}

body.postid-4184[data-scheme="dark"] .pdf-article__notice,
body.postid-4184[data-scheme="dark"] .pdf-article__process,
body.postid-4184[data-scheme="inverse"] .pdf-article__notice,
body.postid-4184[data-scheme="inverse"] .pdf-article__process {
  background-color: rgba(36, 28, 21, .56) !important;
}

body.postid-4184[data-scheme="dark"] .pdf-page-deletion-article code,
body.postid-4184[data-scheme="inverse"] .pdf-page-deletion-article code {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: #241c15 !important;
  border-color: rgba(169, 139, 107, .56) !important;
}

body.postid-4184[data-scheme="dark"] .pdf-page-deletion-article :is(ul, ol) > li::before,
body.postid-4184[data-scheme="inverse"] .pdf-page-deletion-article :is(ul, ol) > li::before {
  border-color: #a98b6b !important;
}

@media (max-width: 920px) {
  body.postid-4184 .pdf-article__use-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.postid-4184 .fixed-deposit-ad {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-height: 90px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }

  body.postid-4184 .entry-content > .fixed-deposit-ad.fixed-deposit-ad--after-tool {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }

  body.postid-4184 .fixed-deposit-ad .adsbygoogle,
  body.postid-4184 .fixed-deposit-ad ins.adsbygoogle,
  body.postid-4184 .entry-content ins.adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.postid-4184 .entry-content article.roberin-article-body.pdf-page-deletion-article,
  body.postid-4184 .pdf-page-deletion-article {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 12px !important;
    box-shadow: 4px 4px 0 rgba(82, 65, 50, .16) !important;
  }

  body.postid-4184 .entry-content > .fixed-deposit-ad.fixed-deposit-ad--after-tool + article.roberin-article-body.pdf-page-deletion-article {
    margin-top: 24px !important;
    padding-top: 12px !important;
  }

  body.postid-4184 .pdf-article__grid,
  body.postid-4184 .pdf-article__process-grid,
  body.postid-4184 .pdf-article__use-grid {
    grid-template-columns: 1fr !important;
  }

  body.postid-4184 .pdf-page-deletion-article h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 370px) {
  body.postid-4184 .pdf-page-deletion-article h2 {
    font-size: 25.2px !important;
  }
}
