.deposit-page { color: #17233b; }
.deposit-heading { margin-bottom: 1.5rem; }
.deposit-heading h1 { margin: 0 0 .65rem; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.16; letter-spacing: 0; }
.deposit-heading > p:last-child { max-width: 760px; margin: 0; color: #5e708b; font-size: 1.08rem; line-height: 1.8; }
.deposit-eyebrow { margin: 0 0 .35rem; color: #087f6d; font-size: .82rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.deposit-calculator { margin-bottom: 2.5rem; border: 1px solid #d6e0eb; background: #fff; border-radius: 8px; overflow: hidden; }
.mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid #d6e0eb; background: #f4f7fa; }
.mode-tabs button { min-height: 52px; border: 0; border-radius: 0; background: transparent; color: #65738a; font-weight: 800; cursor: pointer; }
.mode-tabs button.is-active { background: #fff; color: #087f6d; box-shadow: inset 0 -3px #087f6d; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(280px, .76fr); }
.input-panel, .result-panel { padding: 1.45rem; }
.result-panel { border-left: 1px solid #d6e0eb; background: #f6faf9; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title span { display: block; margin-bottom: .18rem; color: #79908d; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.section-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: 0; }
.text-button { min-height: 38px; padding: 0 .8rem; border: 1px solid #ccd8e5; border-radius: 6px; background: #fff; color: #43536b; font-size: .86rem; font-weight: 700; cursor: pointer; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-group { min-width: 0; margin-bottom: 1rem; }
.field-group > label { display: block; margin-bottom: .42rem; color: #23334c; font-size: .92rem; font-weight: 800; }
.field-group input, .field-group select, .date-options input { width: 100%; min-height: 48px; margin: 0; border: 1px solid #cbd7e4; border-radius: 7px; background: #fff; color: #17233b; font-size: 1rem; }
.field-group input:focus, .field-group select:focus, .date-options input:focus { border-color: #087f6d; box-shadow: 0 0 0 3px rgba(8, 127, 109, .12); outline: none; }
.input-affix { position: relative; }
.input-affix input { padding-right: 3rem; }
.input-affix b { position: absolute; top: 50%; right: .9rem; color: #6d7d92; font-size: .88rem; transform: translateY(-50%); pointer-events: none; }
.split-input { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .5rem; }
.korean-amount { display: block; min-height: 1.4em; margin-top: .32rem; color: #087f6d; font-weight: 700; }
.quick-buttons { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .6rem; }
.quick-buttons button { min-height: 36px; padding: 0 .68rem; border: 1px solid #ccd8e5; border-radius: 6px; background: #fff; color: #42536b; font-size: .78rem; font-weight: 700; cursor: pointer; }
.quick-buttons button:hover, .quick-buttons button:focus-visible { border-color: #087f6d; color: #087f6d; }
.quick-buttons.compact { margin-top: .45rem; }
.date-options { margin: .25rem 0 1.2rem; border-top: 1px solid #e1e8ef; border-bottom: 1px solid #e1e8ef; padding: .85rem 0; }
.date-options summary { color: #304158; font-weight: 800; cursor: pointer; }
.date-options[open] summary { margin-bottom: 1rem; }
.date-options p, .calculation-note { margin: 0; color: #718098; font-size: .84rem; line-height: 1.65; }
.date-grid .field-group { margin-bottom: .4rem; }
.is-hidden { display: none !important; }
.form-error { margin: 0 0 .8rem; padding: .7rem .8rem; border-left: 3px solid #bd3b3b; background: #fff4f4; color: #8b2929; font-size: .86rem; }
.primary-button, .secondary-button { width: 100%; min-height: 48px; border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; }
.primary-button { background: #087f6d; color: #fff; }
.primary-button:hover { background: #066c5d; }
.secondary-button { margin-top: 1rem; border: 1px solid #9acbc1; background: #fff; color: #076f60; }

.result-panel > span { display: block; color: #53657b; font-size: .88rem; font-weight: 800; }
.result-panel > strong { display: block; margin: .35rem 0 .5rem; color: #075f52; font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.result-panel > p:not(.protection-note) { margin: 0 0 1.15rem; color: #607188; font-size: .86rem; line-height: 1.6; }
.result-list { margin: 0; }
.result-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid #dfe8e6; }
.result-list dt { color: #64758a; font-size: .84rem; }
.result-list dd { margin: 0; color: #17233b; font-weight: 800; text-align: right; }
.result-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.result-meta span { padding: .28rem .48rem; border: 1px solid #c8dcd8; border-radius: 5px; background: #fff; color: #42605c; font-size: .7rem; font-weight: 700; }
.protection-note { margin: 1rem 0 0; padding: .75rem; border-left: 3px solid #087f6d; background: #e9f5f2; color: #385d58; font-size: .78rem; line-height: 1.6; }
.protection-note.is-over { border-left-color: #b07816; background: #fff8e8; color: #765511; }

.comparison-section, .deposit-guide { margin: 0 0 2.75rem; padding-top: .25rem; }
.comparison-section > header, .deposit-guide > header { margin-bottom: 1.25rem; }
.comparison-section h2, .deposit-guide h2 { letter-spacing: 0; }
.comparison-section > header h2, .deposit-guide > header h2 { margin: 0 0 .45rem; font-size: 1.75rem; }
.comparison-section > header p:last-child, .deposit-guide > header p:last-child { margin: 0; color: #687991; line-height: 1.7; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comparison-card { border: 1px solid #d6e0eb; border-radius: 8px; overflow: hidden; background: #fff; }
.comparison-card h3 { margin: 0; padding: 1rem; border-bottom: 1px solid #dfe7ef; font-size: 1.02rem; }
.table-wrap { width: 100%; overflow-x: auto; }
.comparison-section table { width: 100%; margin: 0; font-size: .84rem; white-space: nowrap; }
.comparison-section th, .comparison-section td { padding: .72rem .8rem; text-align: right; }
.comparison-section th:first-child, .comparison-section td:first-child { text-align: left; }
.comparison-section th { background: #f5f8fa; color: #52647b; }
.comparison-section tbody tr.is-current { background: #eef8f5; color: #076f60; font-weight: 800; }
.rate-difference { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem 1rem; margin: 1rem 0; padding: 1rem; border: 1px solid #b9d8d2; border-radius: 8px; background: #f2f9f7; }
.rate-difference span { color: #50645f; font-weight: 800; }
.rate-difference strong { color: #087f6d; font-size: 1.4rem; text-align: right; }
.rate-difference p { grid-column: 1 / -1; margin: 0; color: #70807d; font-size: .8rem; }
.principal-comparison { margin-top: 1rem; border: 1px solid #d6e0eb; border-radius: 8px; overflow: hidden; }
.principal-comparison h3 { margin: 0; padding: 1rem; border-bottom: 1px solid #dfe7ef; font-size: 1.05rem; }

.formula-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem; margin: 1.1rem 0 1.7rem; padding: 1.1rem; background: #f5f8fa; border: 1px solid #d9e2eb; border-radius: 8px; }
.formula-flow span { padding: .5rem .65rem; background: #fff; border: 1px solid #d5dfe8; border-radius: 5px; font-size: .84rem; font-weight: 800; }
.formula-flow b { color: #087f6d; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; }
.guide-grid section { padding: 1.15rem 0; border-top: 1px solid #dce4ec; }
.guide-grid h2 { margin: 0 0 .55rem; font-size: 1.13rem; }
.guide-grid p, .deposit-guide > section p { margin: 0; color: #61728a; font-size: .94rem; line-height: 1.78; }
.deposit-guide > section { margin-top: 1.65rem; }
.deposit-guide > section > h2 { margin-bottom: .6rem; font-size: 1.35rem; }
.protection-guide { padding: 1.15rem !important; border: 1px solid #bcd9d3; border-radius: 8px; background: #f2f9f7; }
.faq-section details { border-top: 1px solid #dce4ec; }
.faq-section details:last-child { border-bottom: 1px solid #dce4ec; }
.faq-section summary { padding: 1rem .15rem; color: #26364e; font-weight: 800; cursor: pointer; }
.faq-section details p { padding: 0 .15rem 1rem; }
.official-sources { padding-top: 1.1rem; border-top: 2px solid #d5e0e8; }
.official-sources ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.official-sources li { margin: .35rem 0; }
.official-sources a { color: #087f6d; font-weight: 700; }

@media screen and (max-width: 980px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .result-panel { border-top: 1px solid #d6e0eb; border-left: 0; }
}

@media screen and (max-width: 736px) {
  .deposit-heading h1 { font-size: 2rem; }
  .deposit-heading > p:last-child { font-size: .96rem; }
  .input-panel, .result-panel { padding: 1rem; }
  .input-grid, .comparison-grid, .guide-grid { grid-template-columns: 1fr; }
  .field-group { margin-bottom: .85rem; }
  .quick-buttons button { flex: 1 1 calc(33.333% - .38rem); }
  .comparison-section > header h2, .deposit-guide > header h2 { font-size: 1.45rem; }
}

@media screen and (max-width: 390px) {
  .deposit-calculator { margin-left: -.25rem; margin-right: -.25rem; }
  .mode-tabs button { min-height: 48px; font-size: .88rem; }
  .input-panel, .result-panel { padding: .85rem; }
  .section-title h2 { font-size: 1.2rem; }
  .split-input { grid-template-columns: minmax(0, 1fr) 88px; }
  .quick-buttons button { flex-basis: calc(50% - .38rem); padding: 0 .35rem; }
  .result-panel > strong { font-size: 1.72rem; }
  .result-list div { gap: .5rem; }
  .result-list dt, .result-list dd { font-size: .78rem; }
  .rate-difference { grid-template-columns: 1fr; }
  .rate-difference strong { text-align: left; }
  .formula-flow { justify-content: flex-start; }
}
