:root { color-scheme: light; --blue: #007aff; --dark: #005ecb; --pale: #eef6ff; --ink: #222; --muted: #546170; --line: #dce4ee; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f9ff; color: var(--ink); font: 16px/1.7 system-ui, Arial, sans-serif; }
a { color: var(--dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #183f78; outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -100px; padding: 10px; background: white; z-index: 5; }
.skip:focus { top: 10px; }
.site-header { text-align: center; background: var(--blue); color: white; padding: 29px 16px 30px; }
h1 { margin: 0; font-size: 28px; line-height: 1.35; font-weight: 750; }
.site-header p { margin: 10px auto 0; max-width: 680px; }
.container { max-width: 950px; margin: 0 auto; padding: 20px 28px 35px; background: white; border-radius: 0 0 10px 10px; box-shadow: 0 3px 10px #0000000c; }
.main-nav { display: flex; align-items: stretch; gap: 10px; padding: 0 0 21px; border-bottom: 1px solid var(--line); }
.main-nav a { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; text-align: center; text-decoration: none; font-size: 15px; font-weight: 650; color: #3b4d61; }
.main-nav a:hover { background: var(--pale); color: var(--dark); }
.main-nav a[aria-current] { background: var(--pale); color: var(--dark); border-color: #98c7fb; }
.today { text-align: center; color: var(--muted); font-size: 14px; margin: 17px 0 22px; }
.calculator { margin-top: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
label, .field-label { font-weight: 650; }
input[type=date], input[type=number], select { display: block; width: 100%; min-width: 0; height: 53px; background: white; border: 1px solid #a6b5c6; border-radius: 6px; padding: 10px 12px; color: var(--ink); font-size: 17px; }
input:hover, select:hover { border-color: var(--blue); }
.field-note { display: block; min-height: 26px; font-size: 13px; color: var(--muted); margin-top: 5px; }
.text-button { background: transparent; border: 0; color: var(--dark); padding: 2px 0 2px 12px; min-height: 30px; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; cursor: pointer; }
.options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 18px; }
.check-label { display: flex; align-items: center; gap: 9px; font-weight: 400; }
input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--dark); flex-shrink: 0; }
.actions { display: flex; gap: 12px; }
.button { display: inline-block; text-decoration: none; text-align: center; cursor: pointer; border: 1px solid var(--dark); background: var(--dark); color: white; font-weight: 650; border-radius: 7px; min-height: 48px; padding: 9px 24px; }
.button:hover { background: #004ca7; }
.button.secondary { background: white; border-color: #b7c5d6; color: #354e6d; }
.button.secondary:hover { background: var(--pale); }
.actions .button:first-child { flex: 1; }
.error { color: #a51f2d; font-weight: 600; margin: 12px 0; }
.error:empty { display: none; }
.result { margin-top: 25px; padding: 23px 20px 19px; background: var(--pale); border: 1px solid #bfdbfc; border-radius: 8px; text-align: center; }
.result-label { margin: 0; font-size: 14px; color: #405a76; }
.result-number { display: block; font-size: clamp(44px, 8vw, 60px); font-weight: 750; letter-spacing: -1.5px; color: #0755af; line-height: 1.2; margin-top: 3px; overflow-wrap: anywhere; }
.date-result .result-number { font-size: clamp(34px, 7vw, 48px); padding: 8px 0; }
.result-unit { display: block; color: #164c89; font-size: 18px; font-weight: 600; }
.result-dates { margin: 9px 0 0; color: #3f5b7b; font-size: 14px; }
.result-equivalent { margin: 4px 0 17px; font-weight: 600; }
.result-breakdown { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #c6dbf3; padding-top: 14px; margin: 15px 0 10px; }
.result-breakdown > div + div { border-left: 1px solid #c6dbf3; }
.result-breakdown strong { display: block; font-size: 23px; color: #194f8b; }
.result-breakdown span { font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.result .small { margin: 7px 0 0; }
.content { margin-top: 32px; }
h2 { font-size: 22px; line-height: 1.4; margin: 30px 0 10px; }
h3 { font-size: 17px; margin: 20px 0 7px; }
p { margin: 10px 0; }
.content ul, .content ol { padding-left: 23px; }
.content li { margin: 6px 0; }
.example { padding: 15px 18px; border-left: 3px solid #7cb6f7; background: #f7faff; margin: 18px 0; }
.example p { margin: 0; }
.faq { margin-top: 26px; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 15px 4px; font-weight: 650; cursor: pointer; }
details p { padding: 0 4px 13px; margin: 0; }
.related { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 17px; }
.related p { margin: 6px 0; }
.site-footer { max-width: 950px; margin: 24px auto; padding: 0 25px 15px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.site-footer a { color: #415b7c; }
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 20px; }
.preset-row span { font-size: 14px; color: var(--muted); margin-right: 4px; }
.preset-row button { background: white; border: 1px solid #b7c5d6; border-radius: 5px; color: var(--dark); padding: 5px 11px; min-height: 36px; cursor: pointer; font-size: 14px; }
.preset-row button:hover { background: var(--pale); }
.amount-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.countdown { padding: 32px 20px 28px; }
.countdown .result-number { font-size: clamp(65px, 11vw, 86px); }
.countdown .button { margin-top: 16px; }
.holiday-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 45px; text-align: center; margin: 23px 0; }
.holiday-list dt { font-size: 14px; color: var(--muted); }
.holiday-list dd { margin: 3px 0 0; font-size: 18px; font-weight: 650; }
[hidden] { display: none !important; }
noscript p { padding: 16px; background: #fff4d8; border: 1px solid #e5cd8f; }
@media(max-width: 600px) {
  .site-header { padding: 25px 17px; }
  h1 { font-size: 26px; }
  .site-header p { font-size: 15px; }
  .container { padding: 16px 17px 28px; border-radius: 0; }
  .main-nav { gap: 7px; padding-bottom: 16px; }
  .main-nav a { font-size: 12px; padding: 9px 5px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .today { margin: 14px 0 18px; font-size: 13px; }
  .options { align-items: flex-start; flex-direction: column; margin-top: 10px; gap: 5px; }
  .options .text-button { padding-left: 0; }
  .result { padding: 19px 12px 16px; margin-top: 20px; }
  .check-label { font-size: 14px; }
  .actions { gap: 10px; }
  .button { padding-left: 17px; padding-right: 17px; }
  h2 { font-size: 21px; }
  .site-footer { padding: 0 17px; }
}
@media print {
  body { background: white; }
  .main-nav, .actions, .text-button, .site-footer, .preset-row, .related { display: none; }
  .site-header { color: #111; background: white; }
  .container { box-shadow: none; }
  .result { break-inside: avoid; }
}
input[type=text] { display:block; width:100%; min-width:0; height:53px; background:white; border:1px solid #a6b5c6; border-radius:6px; padding:10px 12px; color:var(--ink); font-size:17px; }
input[aria-invalid=true] { border-color:#a51f2d; }
.calculator { margin-top:22px; }
.field-head { min-height:27px; }
.field-label-unit { font-size:13px; color:var(--muted); font-weight:400; }
.input-note { font-size:13px; color:var(--muted); margin:5px 0 0; }
.form-intro { font-size:14px; color:var(--muted); margin:18px 0; }
.field-grid { row-gap:18px; }
.fuel-result .result-number { font-size:clamp(34px,7vw,52px); margin:9px 0; letter-spacing:-1px; }
.fuel-result .result-breakdown { grid-template-columns:1fr 1fr; }
.share-line { padding-top:13px; border-top:1px solid #c6dbf3; margin-top:16px; }
.share-line strong { font-size:24px; color:#194f8b; }
.share-line span { display:block; font-size:14px; }
.calculation { font-size:14px; color:#3f5b7b; overflow-wrap:anywhere; }
.formula { padding:14px 18px; background:#f7faff; border:1px solid var(--line); border-radius:6px; }
.formula p { margin:3px 0; }
.table-wrap { overflow-x:auto; margin:16px 0; }
table { width:100%; border-collapse:collapse; font-size:15px; }
th,td { padding:11px 12px; text-align:left; border-bottom:1px solid var(--line); }
th { background:#f7faff; font-weight:650; }
@media(max-width:600px) { .fuel-result .result-breakdown strong { font-size:21px; } .field-grid { gap:15px; } .form-intro { font-size:13px; } .main-nav a { font-size:14px; } }
.consumption-actions { margin-top:22px; }
