:root {
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --ink: #23201C;
  --muted: #6E675E;
  --green: #2F6B4F;
  --green-dark: #23533D;
  --orange: #D97742;
  --line: rgb(35 32 28 / .12);
  --soft: #F3EEE5;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 {
  margin: 0 0 16px;
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-top: 64px; }
h3 { font-size: 1.25rem; margin-top: 36px; }
p { margin: 0 0 18px; }
strong { font-weight: 700; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 99;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(251 248 243 / .96);
}
.site-header-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: "Sora", system-ui, sans-serif; font-weight: 700;
}
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--green); border-radius: 9px;
}
.brand-mark svg { width: 28px; height: 28px; fill: #fff; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
}
.site-nav a:hover { color: var(--green); }

.tool-hero { padding: 30px 0 80px; border-bottom: 1px solid var(--line); }
.tool-heading-grid {
  display: block;
  margin-bottom: 22px;
}
.tool-heading-grid h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.tool-deck {
  margin: 16px 0 0; color: var(--muted); font-size: 16px; max-width: 56ch; text-align: left;
}
.gf-tool-wrap { max-width: 1120px; }

.page-intro, .legal-header { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 64px; align-items: end;
}
.page-intro h1, .legal-header h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4rem); }
.page-deck {
  color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0;
}
.eyebrow {
  margin: 0 0 12px; color: var(--orange); font-size: 12px;
  font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}

.article-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}
.article-shell > p, .article-shell > ul, .article-shell > ol,
.article-shell > blockquote { max-width: 68ch; }
.article-shell > h2:first-child { margin-top: 0; }
.article-shell ul, .article-shell ol { padding-left: 24px; }
.article-shell li { margin-bottom: 10px; }
.article-shell table { border-collapse: collapse; width: 100%; }
.article-shell th, .article-shell td { text-align: left; }
.article-shell hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.article-shell a { font-weight: 650; }
.article-shell .lede { font-size: 20px; line-height: 1.55; color: #3D3832; }


.formula-board {
  margin: 32px 0 40px; padding: 28px 30px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--green); border-radius: var(--radius);
}
.formula-board p:last-child { margin-bottom: 0; }
.formula {
  display: block; margin: 6px 0 18px;
  font-family: "Sora", system-ui, sans-serif; font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
.table-wrap {
  margin: 28px 0 38px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.data-table { min-width: 660px; font-variant-numeric: tabular-nums; }
.data-table caption {
  padding: 18px 20px; text-align: left; color: var(--muted); font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.data-table th {
  color: var(--muted); font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; background: #F8F4ED;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FCFAF6; }
.data-table td:first-child { font-weight: 700; }

.steps { margin: 34px 0 42px; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: "Sora", system-ui, sans-serif; color: var(--orange);
  font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 8px; }
.step p:last-child { margin-bottom: 0; }

.breed-examples {
  margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.breed-example { padding: 24px 22px; border-right: 1px solid var(--line); }
.breed-example:last-child { border-right: 0; }
.breed-example h3 { margin: 0 0 8px; font-size: 18px; }
.breed-example .breed-age {
  display: block; margin: 12px 0 4px; color: var(--green);
  font-family: "Sora", system-ui, sans-serif; font-size: 32px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.breed-example p:last-child { margin-bottom: 0; }
.breed-example small { color: var(--muted); font-size: 13px; }

.life-stage-list { margin: 32px 0; counter-reset: stage; }
.life-stage {
  position: relative; padding: 0 0 26px 34px;
  border-left: 1px solid var(--line); margin-left: 9px;
}
.life-stage::before {
  content: ""; position: absolute; left: -6px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 5px var(--bg);
}
.life-stage h3 { margin-top: 0; margin-bottom: 6px; }
.life-stage p:last-child { margin-bottom: 0; }

.note {
  margin: 30px 0; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.note strong:first-child { color: var(--green); }

.faq-section { margin-top: 72px; padding-top: 8px; border-top: 1px solid var(--line); }
.faq-section h2 { margin-top: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 38px 20px 0;
  position: relative; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  color: var(--green); font-size: 24px; font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: #49433C; padding: 0 36px 18px 0; }

.dog-chart-shell {
  margin: 36px auto 56px; width: min(1000px, 100%);
}
.chart-instruction { color: var(--muted); font-size: 15px; }
.dog-age-chart {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-variant-numeric: tabular-nums;
}
.dog-age-chart th, .dog-age-chart td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.dog-age-chart thead th { background: #F4EFE7; color: var(--muted); font-size: 12px; }
.dog-age-chart thead th:first-child { text-align: left; padding-left: 20px; }
.dog-age-chart tbody tr { cursor: pointer; min-height: 52px; }
.dog-age-chart tbody tr:hover, .dog-age-chart tbody tr[aria-expanded="true"] { background: #FBF4EB; }
.dog-age-chart tbody th { text-align: left; padding-left: 20px; color: var(--ink); font-size: 16px; }
.dog-age-chart tbody th span { color: var(--orange); display: inline-block; width: 24px; }
.dog-age-chart .chart-detail td { padding: 0 20px 16px; text-align: left; color: #49433C; background: #FBF4EB; }
.dog-age-chart tbody tr:not([aria-expanded="true"]) .chart-detail { display: none; }
.chart-note { color: var(--muted); font-size: 14px; }


.legal-heading { max-width: 760px; }
.legal-article { width: min(760px, calc(100% - 40px)); }
.legal-article h2 { margin-top: 48px; }
.legal-article ul { max-width: 68ch; }

.stage-table { margin: 28px 0 38px; }
.stage-table td:first-child { white-space: nowrap; }
.return-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 56px 0 0; padding: 24px 28px;
  border-top: 4px solid var(--green); background: var(--card);
  border-radius: var(--radius); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
}
.return-callout p { margin: 0; max-width: 54ch; }
.button-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; flex: 0 0 auto;
  border-radius: 9px; background: var(--green); color: #fff;
  text-decoration: none; font-weight: 750;
}
.button-link:hover { background: var(--green-dark); color: #fff; }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0 24px; background: #F7F2EA; }
.footer-inner {
  width: min(1120px, calc(100% - 40px)); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 32px;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-inner strong { color: var(--ink); font-family: "Sora", system-ui, sans-serif; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-content: flex-start; }
.footer-inner nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-inner nav a:hover { color: var(--green); }
.footer-note {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  align-items: end;
}
.footer-note p:first-child { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (max-width: 760px) {
  .container, .site-header-inner, .footer-inner { width: min(100% - 28px, 1120px); }
  .site-header-inner { min-height: 62px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
  .brand { font-size: 15px; }
  .tool-hero { padding-top: 24px; padding-bottom: 64px; }
  .tool-heading-grid { display: block; margin-bottom: 18px; }
  .tool-heading-grid h1 { font-size: 34px; margin-bottom: 8px; }
  .tool-deck { text-align: left; font-size: 15px; max-width: none; }
  .page-intro, .legal-header { padding: 48px 0 36px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-intro h1, .legal-header h1 { font-size: 38px; }
  .page-deck { font-size: 17px; }
  .article-shell, .legal-article { width: min(100% - 28px, 820px); padding: 56px 0 72px; }
  h2 { margin-top: 48px; font-size: 27px; }
  .breed-examples { grid-template-columns: 1fr; }
  .breed-example { border-right: 0; border-bottom: 1px solid var(--line); }
  .breed-example:last-child { border-bottom: 0; }
  .step { grid-template-columns: 46px 1fr; gap: 12px; }
  .step-num { font-size: 22px; }
  .formula-board { padding: 22px 20px; }
  .dog-chart-shell { margin-left: -14px; margin-right: -14px; width: calc(100% + 28px); overflow-x: auto; }
  .dog-age-chart { min-width: 690px; }
  .return-callout { display: block; }
  .button-link { margin-top: 18px; width: 100%; }
  .footer-inner { display: block; }
  .footer-inner nav { margin-top: 22px; }
  .footer-note p:last-child { margin-top: 18px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .site-header-inner { align-items: center; padding: 0; }
  .site-nav { flex-direction: row; align-items: center; gap: 12px; }
  .page-intro h1, .legal-header h1 { font-size: 34px; }
  .tool-heading-grid h1 { font-size: 32px; }
  .article-shell p { line-height: 1.62; }
}


.dog-age-chart .chart-detail-row { display: none; }
.dog-age-chart tr[data-chart-row][aria-expanded="true"] + .chart-detail-row { display: table-row; }
.dog-age-chart tr[data-chart-row] { outline: none; }
.dog-age-chart tr[data-chart-row]:focus-visible { box-shadow: inset 0 0 0 3px var(--orange); }


@media (max-width: 760px) {
  .dog-chart-shell { width: 100%; margin-left: 0; margin-right: 0; overflow: visible; }
  .dog-age-chart { min-width: 0; table-layout: fixed; font-size: 12px; }
  .dog-age-chart th, .dog-age-chart td { padding: 12px 4px; }
  .dog-age-chart thead th { font-size: 12px; line-height: 1.25; }
  .dog-age-chart thead th:first-child, .dog-age-chart tbody th { width: 74px; padding-left: 8px; }
  .dog-age-chart tbody th { font-size: 13px; }
  .dog-age-chart tbody th span { width: 15px; }
  .dog-age-chart .chart-detail td { padding: 0 12px 14px; line-height: 1.5; }
}


@media (max-width: 760px) {
  .dog-age-chart thead th { font-size: 12px; }
}


.agecalc-kicker,
.agecalc-hint,
.agecalc-breed-note,
.agecalc-label,
.agecalc-stage-heading span:last-child,
.agecalc-progress-heading,
.agecalc-progress p,
.agecalc-field small { font-size: 12px; }


/* --- mobile navigation, contrast and touch fixes (2026-11-19) --- */
.site-header-inner { gap: 16px; }
.site-nav { min-width: 0; }
.tool-deck { color: #5F5B54; }

@media (max-width: 768px) {
  .site-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 14px; white-space: nowrap; }
}

@media (max-width: 420px) {
  .site-header-inner { align-items: center; padding: 0; }
  .site-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .site-nav a { font-size: 13px; white-space: nowrap; }
  .site-nav a[href="/about/"] { display: none; }
}


/* --- tool panel fixes (2026-11-19) --- */
.gf-tool-wrap .agecalc-number-label { color: #6E675E; }
.gf-tool-wrap .agecalc-live { font-weight: 600; font-size: 12px; }
.gf-tool-wrap .agecalc-input-unit { border-color: rgb(35 32 28 / .18); }
.gf-tool-wrap .agecalc-copy { background: #2F6B4F; border-color: #2F6B4F; color: #fff; }
.gf-tool-wrap .agecalc-copy:hover { background: #28593F; }
.gf-tool-wrap .agecalc-save { background: #fff; border-color: rgb(35 32 28 / .12); color: #23201C; }

@media (min-width: 761px) {
  .gf-tool-wrap .agecalc-size-grid { grid-template-columns: repeat(6, 1fr); }
  .gf-tool-wrap .agecalc-size-grid button { grid-column: span 2; }
  .gf-tool-wrap .agecalc-size-grid button:nth-child(4),
  .gf-tool-wrap .agecalc-size-grid button:nth-child(5) { grid-column: span 3; }
}


/* --- reading rhythm and mobile header (2026-11-19 b) --- */
.article-shell ul { margin: 16px 0 0; padding-left: 24px; }
.article-shell li { margin-bottom: 8px; }
.article-shell li:last-child { margin-bottom: 0; }
.article-shell h3 { margin-top: 34px; }
.article-shell h2 { text-wrap: balance; }
.short-version { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 4px; }
.short-version h2, .direct-answers h2 { margin-bottom: 18px; }
.direct-answers { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
.direct-answers .table-wrap { overflow-x: auto; }

table { font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .site-nav {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 16px;
    justify-content: end;
    overflow: visible;
    white-space: normal;
    padding-bottom: 0;
  }
  .site-nav a { font-size: 13px; }
  .site-nav a[href="/about/"] { display: inline; }
}


.site-header-inner { align-items: center; }
.site-nav { align-items: center; }
@media (max-width: 560px) {
  .site-header-inner { align-items: center; }
  .site-nav { align-items: center; }
}
