@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nunito-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #050c2d;
  --panel: #0f1538;
  --text: #ffffff;
  --muted: #adb3cc;
  --line: #293255;
  --accent: #e1d9a8;
  --accent-border: #b1a873;
  --highlight: #ffdd88;
  --ink: #050c2d;
  --error: #ffbcad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-height: 100vh; background: linear-gradient(160deg, var(--bg) 0%, #040b2c 50%, #1d2349 100%) fixed; color: var(--text); font: 16px/1.65 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
svg { display: block; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 18px; background: var(--accent); color: var(--ink); z-index: 5; }
.skip-link:focus { top: 12px; }
.calculator-page { max-width: 860px; margin: 64px auto 0; padding: 0 32px; }
.calculator-hero { max-width: 680px; margin: 0 auto; padding: 0 24px 60px; text-align: center; min-width: 0; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 600; line-height: 1.16; letter-spacing: -.8px; margin: 0; }
.hero-subtitle { color: var(--muted); max-width: 470px; margin: 12px auto 0; font-size: 16px; }
.hero-subtitle em { color: var(--text); font-style: normal; font-weight: 600; }
.calculator { max-width: 420px; margin: 18px auto 0; text-align: center; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field-caption { font-size: 13px; color: var(--muted); letter-spacing: .1px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pet-select { position: relative; }
.pet-select::after { content: ""; position: absolute; right: 20px; top: 20px; width: 8px; height: 8px; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); transform: rotate(45deg); pointer-events: none; }
.pet-select select { appearance: none; width: 100%; min-height: 50px; padding: 10px 46px 10px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.age-fields { display: flex; align-items: flex-end; justify-content: center; margin: 18px 0 24px; gap: 18px; }
.age-field { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.age-field input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); text-align: center; font-size: 49px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -2px; padding: 0 0 3px; line-height: 1.3; appearance: textfield; -moz-appearance: textfield; }
.age-field input::-webkit-inner-spin-button, .age-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.age-field input::placeholder { color: #777e9b; }
.age-field input[aria-invalid="true"] { border-bottom-color: var(--error); }
.age-field label { color: var(--muted); font-size: 12px; }
.age-fields.has-wheels { --wheel-row: 32px; position: relative; align-items: flex-start; gap: 0; padding: 0 16px 8px; border: 1px solid var(--accent-border); border-radius: 13px; overflow: hidden; background: var(--panel); box-shadow: inset 0 5px 8px -3px rgba(3, 6, 23, .3); }
.has-wheels::before { content: ""; position: absolute; top: calc(var(--wheel-row) * 2); left: 0; right: 0; height: var(--wheel-row); background: #11183d; border-block: 1px solid #1c2248; pointer-events: none; }
.has-wheels .age-field { width: 50%; gap: 0; }
.has-wheels .age-field label { position: relative; padding-top: 3px; font-size: 11px; }
.age-wheel { --wheel-row: 32px; position: relative; width: 100%; height: calc(var(--wheel-row) * 5); padding-block: calc(var(--wheel-row) * 2); overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scroll-snap-type: y mandatory; scrollbar-width: none; font-variant-numeric: tabular-nums; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.age-wheel, .age-wheel.is-dragging { cursor: ns-resize; }
.age-wheel::-webkit-scrollbar { display: none; }
.age-wheel:focus-visible { outline-offset: -4px; border-radius: 8px; }
.age-wheel[aria-invalid="true"] { outline: 1px solid var(--error); outline-offset: -4px; }
.wheel-option { height: var(--wheel-row); line-height: var(--wheel-row); flex-shrink: 0; scroll-snap-align: center; color: #777e9b; font-size: 28px; font-weight: 400; user-select: none; cursor: inherit; }
.wheel-option.is-selected { color: var(--text); font-size: 34px; font-weight: 600; }
.dog-size legend { margin-bottom: 9px; width: 100%; }
.size-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.size-options .choice span { padding: 9px 2px; border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; line-height: 1.5; color: var(--muted); }
.size-options .choice small { font-size: 9px; color: var(--muted); }
.size-options input:checked + span { border-color: var(--accent-border); color: var(--accent); background: #202646; }
.size-options input:checked + span small { color: var(--accent); }
.size-help { font-size: 10px; color: var(--muted); margin: 8px 0 0; }
.calculate-button { width: 100%; padding: 10px 20px; border: 1px solid var(--accent-border); border-radius: 4px; margin-top: 23px; background: var(--accent); color: var(--ink); font-size: 20px; font-weight: 400; letter-spacing: .02em; box-shadow: 5px 5px 20px -5px rgba(0, 0, 0, .1); display: flex; justify-content: center; align-items: center; gap: 20px; transition: background .15s, transform .15s; }
.calculate-button svg { width: 18px; height: 18px; }
.calculate-button:hover { background: #ebe5c1; }
.calculate-button:active { transform: translateY(1px); }
.calculate-button:disabled { opacity: .55; cursor: not-allowed; }
.error { color: var(--error); font-size: 13px; margin: 13px 0 0; text-align: left; }
.result { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 25px; }
.result-intro { color: var(--muted); margin: 0; font-size: 13px; }
.result-number { color: var(--highlight); display: block; font-size: 72px; line-height: 1.2; font-weight: 400; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.result-unit { color: var(--text); font-size: 16px; }
.content { max-width: 860px; margin: auto; padding: 0 32px; }
.section { border-top: 1px solid var(--line); padding: 43px 0; }
.support-content > .section { border-top: 0; }
.section-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 600; }
h2 { font-size: 26px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; margin: 0 0 16px; }
.section p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.section p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 23px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; border-bottom: 1px solid #252d50; white-space: nowrap; }
thead th { font-size: 10px; color: var(--muted); font-weight: 400; line-height: 1.5; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
tbody th { font-weight: 400; color: var(--muted); }
td:last-child, th:last-child { padding-right: 0; }
caption { text-align: left; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.faq-list { margin-top: 24px; }
details { border-bottom: 1px solid #252d50; padding: 15px 0; }
.faq-list > details:last-child { border-bottom: 0; }
summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; list-style: none; font-size: 13px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 18px; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { padding-top: 12px; max-width: 680px; }
.site-footer { max-width: 860px; margin: 0 auto; padding: 28px 32px 36px; color: var(--muted); text-align: center; font-size: 12px; }
.site-footer a { text-decoration: none; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; font-size: clamp(9px, 2.8vw, 12px); }
.footer-links a { padding: 6px 0; }
.article-header { max-width: 860px; margin: 64px auto 35px; padding: 0 32px; }
.article-header h1 { font-size: 42px; }
.article-header > p:last-child { color: var(--muted); max-width: 620px; margin-top: 18px; font-size: 14px; }
.article-content { padding-bottom: 35px; }
.article-content ul { padding-left: 20px; color: var(--muted); font-size: 13px; }
.article-content li { margin-bottom: 8px; }
.back-link { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 10px 18px; color: var(--accent); font-size: 13px; margin-top: 16px; }
noscript p { color: var(--error); font-size: 13px; }

@media (max-width: 600px) {
  .calculator-page { margin-top: 36px; padding: 0 24px; }
  .calculator-hero { padding: 0 0 45px; }
  h1 { letter-spacing: -.5px; }
  .eyebrow { font-size: 9px; letter-spacing: 2px; margin-bottom: 14px; }
  .hero-subtitle { font-size: 14px; max-width: 310px; margin-top: 12px; }
  .calculator { margin-top: 23px; }
  .calculate-button { font-size: 18px; }
  .age-field input { font-size: 45px; }
  .size-options { gap: 6px; }
  .size-options .choice small { font-size: 9px; }
  .size-help { font-size: 9px; }
  .content { padding: 0 24px; }
  .section { padding: 33px 0; }
  h2 { font-size: 23px; }
  th, td { padding: 9px 11px; }
  .site-footer { margin: 0 24px; padding: 24px 0 30px; }
  .article-header { margin-top: 40px; padding: 0 24px; }
  .article-header h1 { font-size: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
