:root {
  color-scheme: light;
  --blue:#1c69d4;
  --blue-ink:#1555a9;
  --ink:#1b2530;
  --muted:#566271;
  --line:#dce2e8;
  --soft:#f4f7fa;
  --sky:#eaf2ff;
  --navy:#142235;
  --alert:#8f252c;
}
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:#fff; font:400 16px/1.58 Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; }
img { display:block; max-width:100%; }
a { color:inherit; text-underline-offset:.22em; }
a,button,input,select { -webkit-tap-highlight-color:transparent; }
button,input,select { font:inherit; }
button,select,summary { cursor:pointer; }
:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
h1,h2,h3,p { margin-block:0; }
h1,h2,h3 { line-height:1.2; font-weight:800; letter-spacing:-.035em; overflow-wrap:anywhere; word-break:keep-all; }
h2 { font-size:clamp(1.33rem,3vw,1.92rem); }
h3 { font-size:1.13rem; }
.container { width:min(1168px,calc(100% - 64px)); margin-inline:auto; }
.skip { position:fixed; z-index:25; top:10px; left:10px; padding:8px 14px; color:#fff; background:var(--navy); transform:translateY(-160%); }
.skip:focus { transform:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

.header { background:#fff; border-bottom:1px solid var(--line); }
.header-row { display:flex; justify-content:space-between; align-items:stretch; gap:14px; min-height:72px; }
.brand { display:flex; align-items:center; gap:10px; font-size:1rem; white-space:nowrap; font-weight:850; letter-spacing:-.03em; text-decoration:none; }
.brand img { flex:none; border-radius:3px; }
nav { display:flex; align-items:stretch; gap:13px; }
nav a { display:flex; align-items:center; padding:0 12px; border-bottom:3px solid transparent; text-decoration:none; white-space:nowrap; color:var(--muted); font-weight:700; font-size:.89rem; }
nav a[aria-current], nav a:hover { color:var(--blue-ink); border-color:var(--blue); }

.hero {
  color:#fff;
  background-color:var(--navy);
  background-image:linear-gradient(90deg,#111d2fd9 0%,#111d2f80 40%,transparent 73%),url('/hero.webp');
  background-size:cover;
  background-position:center center;
}
.hero-inner { display:flex; min-height:405px; flex-direction:column; align-items:flex-start; justify-content:center; padding-block:38px; }
.hero h1 { max-width:min(655px,64%); font-size:clamp(2.1rem,4.1vw,3.6rem); line-height:1.12; letter-spacing:-.065em; text-wrap:balance; }
.hero h1 span { display:block; color:#e1ecfb; font-size:.72em; line-height:1.2; margin-bottom:7px; }
.hero p { max-width:min(490px,52%); margin-top:14px; color:#e5edf7; font-size:clamp(.92rem,1.6vw,1.06rem); word-break:keep-all; }
.hero-actions { margin-top:23px; }
.primary,.quiet { border-radius:2px; font-weight:750; letter-spacing:-.01em; }
.primary { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; min-height:46px; padding:9px 17px; color:#fff; border:1px solid transparent; background:var(--blue); text-decoration:none; cursor:pointer; }
.primary:hover { background:#0653b6; }
.quiet { min-height:36px; padding:4px 9px; color:var(--blue-ink); background:#fff; border:1px solid #afc2da; font-size:.82rem; }
.quiet:hover { background:var(--sky); }
.subhead { padding-block:clamp(31px,6vw,71px); background:var(--soft); border-top:4px solid var(--blue); border-bottom:1px solid var(--line); }
.subhead h1 { font-size:clamp(2rem,5vw,3.45rem); }
.subhead p { margin-top:11px; color:var(--muted); }
.subhead .page-share { margin-top:16px; }

.section { padding-block:clamp(25px,4.3vw,56px); }
#calculator,#result,.cards article { scroll-margin-top:18px; }
.section-title { display:flex; justify-content:space-between; align-items:flex-end; gap:14px 20px; margin-bottom:16px; }
.section-title p { margin-top:5px; color:var(--muted); font-size:.94rem; }
.carcare .page-share.page-share--blue { --share-fill:#f0f5fd; --share-text:#1555a9; --share-line:#abbed8; --share-paper:#fff; --share-select:#e5efff; margin-top:0; }
.carcare .subhead .page-share.page-share--blue { margin-top:15px; }

.calculator-grid { display:grid; grid-template-columns:minmax(0,1.09fr) minmax(0,1fr); gap:19px; align-items:start; }
.panel { min-width:0; border:1px solid var(--line); background:#fff; padding:clamp(15px,2.4vw,27px); }
.panel-heading { display:flex; justify-content:space-between; gap:9px; align-items:center; margin-bottom:15px; }
.fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 14px; }
.fields label,.filter-tools label,.history-picker label { display:block; color:var(--ink); font-weight:700; font-size:.89rem; min-width:0; }
.fields select,.fields input,.filter-tools input,.filter-tools select,.history-picker select { display:block; width:100%; min-width:0; max-width:100%; margin-top:4px; padding:8px 9px; min-height:43px; color:var(--ink); background:#f8fafc; border:1px solid #b7c4d3; border-radius:2px; }
.fields input[type=date] { min-width:0; }
.fields small { display:block; margin-top:4px; color:var(--muted); font-size:.78rem; font-weight:400; }
.optional { color:var(--muted); font-size:.72rem; font-weight:500; margin-left:4px; }
.wide { grid-column:1/-1; }
.manual { margin:0; min-width:0; border:1px solid #bccce0; background:var(--soft); padding:11px; }
.manual legend { font-weight:800; padding-inline:4px; }
.manual p { margin-top:8px; color:var(--muted); font-size:.82rem; }
.rule-note { color:var(--blue-ink); margin-top:14px; line-height:1.5; font-size:.86rem; }
.form-error { color:var(--alert); margin-top:8px; font-size:.86rem; font-weight:700; }
.calculate { width:100%; margin-top:13px; }
.result { background:var(--soft); }
.result-label { font-size:.74rem; color:var(--muted); border:1px solid #c3cdd9; padding:3px 7px; white-space:nowrap; background:#fff; }
.result-summary { padding:clamp(12px,2.2vw,20px); background:var(--sky); border-left:4px solid var(--blue); }
.result-summary[data-result-state=overdue],.result-summary[data-result-state=due] { background:#fbebed; border-left-color:#ad3541; }
.result-summary[data-result-state=near] { background:#fff2d9; border-left-color:#b36808; }
.result-summary[data-result-state=condition] { background:#e9eff3; border-left-color:#647389; }
.result-summary p { color:#374958; font-size:.9rem; }
.result-summary strong { display:block; font-size:clamp(1.27rem,2.7vw,1.92rem); margin-block:3px 7px; line-height:1.25; font-weight:850; letter-spacing:-.038em; word-break:keep-all; overflow-wrap:anywhere; }
.result-rows { margin:12px 0 0; }
.result-rows:empty { margin:0; }
.result-rows div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,max-content); gap:7px; padding-block:9px; border-bottom:1px solid var(--line); font-size:.88rem; }
.result-rows dt { color:var(--muted); }
.result-rows dd { margin:0; text-align:right; font-weight:750; font-variant-numeric:tabular-nums; }
.guided-note { padding-top:12px; font-size:.86rem; color:var(--muted); }
.text-link { display:inline-block; color:var(--blue-ink); font-weight:750; font-size:.9rem; margin-top:9px; }
.text-link:hover { color:#084382; }

.path-section,.help-section,.source-section { margin-top:clamp(25px,4vw,45px); }
.path-section h2,.help-section h2,.source-section h2 { margin-bottom:13px; }
.cards { display:grid; gap:13px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.cards article { border:1px solid var(--line); padding:clamp(13px,2vw,20px); background:#fff; }
.cards article:target { border-color:var(--blue); outline:2px solid var(--blue); }
.cards p { color:var(--muted); font-size:.92rem; margin-top:7px; }
.cards .eyebrow { font-size:.76rem; color:var(--blue-ink); font-weight:800; margin:0 0 6px; }
.cards .priority.stop { color:var(--alert); }
.cards .priority.check { color:#885208; }
.help-section { padding:clamp(13px,2.45vw,26px); background:var(--soft); }
.help-section p { color:var(--muted); font-size:.91rem; }
.help-section details { border-top:1px solid #ccd5df; padding-block:9px; }
.help-section summary { font-weight:700; }
.help-section details p { margin:5px 0 2px; }
.filter-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin-block:13px 7px; }
.filter-tools label { min-width:min(100%,190px); }
.filter-tools:has(input) label:first-child { flex:0 1 320px; }
.filter-note { font-size:.83rem; color:var(--muted); margin:0 0 9px; min-height:1.3rem; }
.notice { border-left:4px solid #ad3541; background:#fbebed; padding:13px 17px; }
.notice strong { color:var(--alert); }
.notice p { color:#563235; font-size:.92rem; margin-top:4px; }
.history-types { display:grid; gap:10px; }
.history-picker { max-width:400px; margin-block:12px; }
.history-types p { margin-top:6px; color:var(--muted); }
.steps { padding-left:1.6rem; margin:0 0 13px; }
.steps li { padding-left:.2rem; margin-bottom:.76rem; }
.steps li::marker { color:var(--blue-ink); font-weight:800; }
.steps li span { display:block; color:var(--muted); font-size:.92rem; }
.source-section { border-top:1px solid var(--line); padding-top:18px; margin-bottom:clamp(25px,5vw,56px); }
.source-section ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.source-section a { display:flex; justify-content:space-between; align-items:center; gap:9px; min-height:54px; border:1px solid var(--line); text-decoration:none; padding:7px 11px; }
.source-section a:hover { border-color:var(--blue); background:var(--soft); }
.source-section strong { display:block; color:var(--blue-ink); font-size:.9rem; }
.source-section small { display:block; color:var(--muted); font-size:.78rem; }
.link-arrow { color:var(--blue-ink); }
.business-footer-host { margin-block:10px 23px; }

@media (max-width:900px) {
  .container { width:calc(100% - 40px); }
  nav { gap:3px; }
  nav a { padding-inline:8px; }
  .hero-inner { min-height:370px; }
  .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:780px) {
  .container { width:calc(100% - 32px); }
  .section-title { align-items:flex-start; flex-direction:column; }
  .calculator-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .hero-inner { min-height:345px; }
  .hero { background-position:55% center; }
  .hero h1 { max-width:68%; }
  .hero p { max-width:60%; }
}
@media (max-width:650px) {
  .header-row { display:block; }
  .brand { padding:10px 0 4px; }
  .brand img { width:27px; height:27px; }
  nav { flex-wrap:wrap; }
  nav a { min-height:41px; font-size:.82rem; padding-inline:6px; }
  .hero {
    background-image:linear-gradient(180deg,#101b2bd9 0%,#101b2b50 40%,#101b2b0b 70%,#101b2b45),url('/hero.webp');
    background-repeat:no-repeat;
    background-size:auto 100%,auto 62%;
    background-position:center,69% bottom;
  }
  .hero-inner { justify-content:flex-start; min-height:390px; padding-block:21px; }
  .hero h1 { max-width:25rem; font-size:clamp(1.85rem,7vw,2.75rem); text-wrap:initial; }
  .hero p { max-width:21rem; margin-top:9px; }
  .hero-actions { margin-top:10px; }
  .hero-actions .primary { min-height:40px; font-size:.86rem; }
}
@media (max-width:430px) {
  .cards,.source-section ul { grid-template-columns:minmax(0,1fr); }
  .filter-tools { display:grid; grid-template-columns:minmax(0,1fr); }
  .result-rows div { grid-template-columns:minmax(0,1fr) minmax(92px,47%); }
  .fields { grid-template-columns:minmax(0,1fr); gap:9px; }
  .hero-inner { min-height:374px; }
}
