:root {
  color-scheme: light;
  --green: #009444;
  --deep: #164d35;
  --ink: #1f2328;
  --muted: #657184;
  --line: #dce5dd;
  --wash: #f6f7f2;
  --pale: #edf6eb;
  --shadow: 0 14px 45px #183b2910;
  --gutter: clamp(22px, 2.7vw, 36px);
  font: 400 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
body, h1, h2, p, dl, dd, fieldset { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button, select, input[type=range] { cursor: pointer; }
a { color: var(--deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #72984b; outline-offset: 3px; }
.top, .shell { max-width: 1320px; margin-inline: auto; padding-inline: 5vw; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.brand-logo { display: block; width: 120px; height: auto; }
.campus-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: white;
  color: var(--deep); font-size: 13px; font-weight: 600; text-decoration: none;
}
.campus-link:hover { border-color: #adc3ab; background: var(--pale); }
.shell { padding-top: 30px; padding-bottom: 30px; }
.intro { margin-bottom: 32px; }
h1 { color: #061f42; font-size: 36px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
.intro p { color: #6b7280; font-size: 14.5px; }
.form-card {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden; container-type: inline-size;
}
.method-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 22px; border-bottom: 1px solid var(--line);
}
.method-tabs button {
  min-width: 0; min-height: 44px; padding: 9px 6px 11px; margin-bottom: -1px;
  background: transparent; border: 0; border-bottom: 3px solid transparent;
  color: #515e6d; font-size: 14px; font-weight: 600; line-height: 1.35;
}
.method-tabs button:hover { background: #f6f8f5; color: var(--deep); }
.method-tabs button[aria-selected=true] { border-bottom-color: var(--green); color: var(--deep); }
.method-tabs button:focus-visible { outline-offset: -3px; }
.card-head { padding: 27px var(--gutter); border-bottom: 1px solid var(--line); }
.card-head h2 { margin-bottom: 19px; font-size: 24px; line-height: 1.35; letter-spacing: -.012em; }
.campus-strip { display: grid; grid-template-columns: 1fr 1.48fr .85fr; gap: 18px; align-items: end; }
fieldset { border: 0; padding: 0; min-width: 0; }
.field, legend, .label, .rate-line > label { color: #313b49; font-size: 13px; font-weight: 600; }
.field { display: grid; min-width: 0; gap: 8px; }
legend, .label { display: block; padding: 0; margin-bottom: 8px; }
input[type=number], select, .percent-box {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #d8e1d7;
  background: white; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 400;
}
input[type=number]:hover, select:hover, .percent-box:hover { border-color: #adc3ab; }
input[type=number]:focus, select:focus, .percent-box:focus-within {
  border-color: var(--green); outline: 2px solid #00944438; outline-offset: 1px;
}
.segments { display: flex; gap: 7px; }
.segments label { position: relative; flex: 1; min-width: 0; }
.campus-strip .segments label:last-child { flex: 1.45; }
.segments input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segments span {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 46px;
  padding: 8px 5px; border: 1px solid #dce4d9; border-radius: 9px;
  text-align: center; font-size: 13px; font-weight: 500; line-height: 1.35;
}
.segments input:hover + span { border-color: #adc3ab; }
.segments input:checked + span { border-color: #6eaf75; background: #f1f8ee; color: var(--deep); font-weight: 650; }
.segments input:focus-visible + span { outline: 3px solid #72984b; outline-offset: 2px; }
.campus-price { min-width: 0; font-variant-numeric: tabular-nums; }
#published-fee { border-left: 1px solid var(--line); padding-left: 15px; }
#published-fee > div { min-height: 46px; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; align-content: center; }
#published-fee > div span { color: var(--muted); font-size: 12px; white-space: nowrap; }
#campus-fee { color: var(--deep); font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.columns { padding: var(--gutter); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 27px; align-items: start; }
.inputs { min-width: 0; }
.rate-line, .percent-box, .income-result, .breakdown div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.percent-box { width: auto; min-height: 40px; gap: 1px; padding: 0 10px 0 3px; font-weight: 600; }
.percent-box input[type=number] { width: 54px; border: 0; min-height: 38px; padding: 4px 2px; text-align: right; font-weight: 600; appearance: textfield; }
.percent-box input:focus { outline: 0; }
.percent-box input::-webkit-inner-spin-button { appearance: none; }
input[type=range] { appearance: none; width: 100%; height: 40px; margin: 3px 0 16px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 7px; border-radius: 8px; background: linear-gradient(to right, var(--green) 0 var(--fill,80%), #dce8dc var(--fill,80%) 100%); }
input[type=range]::-moz-range-track { height: 7px; border-radius: 8px; background: #dce8dc; }
input[type=range]::-moz-range-progress { height: 7px; background: var(--green); border-radius: 8px; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -6.5px; border-radius: 50%; border: 2px solid var(--green); background: white; box-shadow: 0 1px 4px #164d3524; }
input[type=range]::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--green); background: white; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; margin-top: 16px; border: 0; background: transparent; font-size: 13px; font-weight: 650; color: #006c34; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 22px; }
.detail-grid .field { align-content: end; }
.hint, .result-note, .references { font-size: 13px; line-height: 1.5; color: var(--muted); }
.hint { margin: 7px 0 15px; }
.income-result { padding: 10px 12px; margin: 13px 0 18px; border-radius: 8px; background: var(--pale); color: var(--deep); font-size: 13px; }
.result { min-width: 0; border: 1px solid #d6e4d1; border-radius: 16px; padding: 20px; background: var(--pale); font-variant-numeric: tabular-nums; }
.result h2, .estimate-notice h2 { font-size: 17px; line-height: 1.35; color: #24282e; }
.figure { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; color: var(--deep); }
.figure strong { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.figure span { font-size: 14px; }
.weekly { font-size: 16px; font-weight: 650; color: var(--deep); }
.breakdown { border-top: 1px solid #ccdcc8; padding-top: 10px; margin: 14px 0; font-size: 13px; }
.breakdown div { align-items: baseline; margin: 3px 0; }
.breakdown dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bar { height: 22px; display: flex; border-radius: 6px; overflow: hidden; color: var(--deep); text-align: center; font-size: 12px; font-weight: 700; line-height: 22px; }
.bar span { white-space: nowrap; overflow: hidden; min-width: 0; }
#bar-ccs { background: #007a3d; color: white; }
#bar-gap { background: #cadcb8; }
.result-note { margin-top: 10px; color: #4f6354; }
.estimate-notice { padding: 20px var(--gutter) 24px; border-top: 1px solid var(--line); }
.estimate-notice h2 { font-size: 15px; }
.estimate-notice p { margin-top: 5px; font-size: 13px; color: #525e6c; }
.estimate-notice a { color: #006c34; }
.footer { width: min(91%, 1100px); margin: auto; padding: 16px 0 24px; display: grid; justify-items: center; gap: 4px; text-align: center; border-top: 1px solid var(--line); font-size: 12px; }
.footer-logo { width: 76px; height: auto; margin-bottom: 3px; }
.footer span { font-size: 13px; font-weight: 650; color: #19362a; }
.footer a { color: #006c34; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input[aria-invalid=true] { border-color: #a53630; }
@container (max-width: 680px) {
  .campus-strip { grid-template-columns: 1fr 1.3fr; }
  .campus-price { grid-column: 1 / -1; }
  #published-fee { display: flex; align-items: center; gap: 16px; background: #f7f9f3; border: 1px solid var(--line); padding: 9px 12px; border-radius: 9px; }
  #published-fee .label { margin: 0; }
  #published-fee > div { min-height: 0; }
  .columns { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 1100px) {
  .top, .shell { padding-inline: 4vw; }
}
@media (max-width: 620px) {
  .top, .shell { padding-inline: 18px; }
  .top { padding-top: 16px; }
  .shell { padding-top: 27px; padding-bottom: 22px; }
  .intro { margin-bottom: 24px; }
  h1 { font-size: 28px; }
  .brand-logo { width: 112px; }
  .form-card { border-radius: 15px; }
  .method-tabs button { font-size: 13px; padding-inline: 4px; }
  .card-head h2 { font-size: 21px; }
  .footer { width: calc(100% - 32px); }
}
@container (max-width: 450px) {
  .campus-strip { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .campus-strip .segments label { flex: 1; }
  .card-head { padding: 20px; }
  .columns, .estimate-notice { padding: 20px; }
  .result { padding: 16px; }
  .detail-grid { gap: 12px; }
}
@container (max-width: 310px) {
  .detail-grid { grid-template-columns: 1fr; }
}
