/* The home palette extended to the age hub and age calculator. */
body.age-hub-page,
body.age-page {
  --age-ink: #302a25;
  --age-muted: #70665e;
  --age-line: #ddd5ca;
  --age-panel: #eee8df;
  --age-accent: #514238;
}
body.age-hub-page .life-hub-tools h1,
body.age-page .calculator-page-heading.hero-band .hero-copy > h1 {
  font-family: var(--site-font);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.035em;
  word-break: keep-all;
  color: var(--age-ink);
}
body.age-hub-page .section-heading,
body.age-hub-page .life-hub-tools .section-heading { gap: 12px; }
body.age-hub-page .life-hub-tools .section-heading { margin-bottom: 24px; }
body.age-hub-page .life-hub-tools { padding-top: 24px; }
body.age-hub-page .page-intro,
body.age-page .calculator-page-heading.hero-band .hero-copy > .page-intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--age-muted);
}
body.age-page .calculator-page-heading.hero-band .hero-copy > .page-intro { margin-bottom: 20px; }
body.age-hub-page .section-shell h2,
body.age-page .section-shell h2,
body.age-page #result-container > h2,
body.age-page .age-rights-section h2 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.45;
  letter-spacing: -.025em;
}
body.age-hub-page .section-shell p,
body.age-page .section-shell p { font-size: 15px; line-height: 1.8; }
body.age-hub-page .section-heading .eyebrow,
body.age-page .calculator-page-heading .hero-copy > .eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--age-muted);
}
body.age-hub-page .life-hub-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.age-hub-page .life-hub-link-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--age-line);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--age-ink);
  box-shadow: none;
  text-decoration: none;
  transform: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
body.age-hub-page .life-hub-link-list a strong { font-size: 16px; font-weight: 600; line-height: 1.5; }
body.age-hub-page .life-hub-link-list a span { font-size: 14px; line-height: 1.7; color: var(--age-muted); }
body.age-hub-page .life-hub-link-list a:hover,
body.age-hub-page .life-hub-link-list a:focus-visible {
  background: var(--age-panel);
  border-color: #b9aa9a;
  transform: none;
  box-shadow: none;
}
body.age-hub-page .life-hub-link-list a:focus-visible { outline: 2px solid var(--age-accent); outline-offset: 3px; }
body.age-hub-page .hub-card {
  padding: 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
body.age-hub-page .hub-card h3 { font-size: 18px; line-height: 1.5; }
body.age-page .editorial-calculator-shell #age-form {
  padding: clamp(20px, 3vw, 32px);
  border: 0;
  border-radius: 12px;
  background: var(--age-panel);
  box-shadow: none;
  color: var(--age-ink);
}
body.age-page .editorial-calculator-shell #age-form::before,
body.age-page .editorial-calculator-shell #age-form::after { display: none; }
body.age-page #age-form .form-group,
body.age-page #age-form .date-inputs { gap: 12px; }
body.age-page #age-form h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.5; font-weight: 600; }
body.age-page #age-form .field-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--age-ink); }
body.age-page #age-form #birth-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #c9bfb3;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--age-ink);
  font-family: var(--site-font);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
body.age-page #birth-input::placeholder { color: #887c71; opacity: 1; }
body.age-page #age-form #birth-input:focus-visible { outline: 2px solid var(--age-accent); outline-offset: 3px; }
body.age-page #age-form #birth-input.error { border-color: #9a3029; }
body.age-page #age-form .btn-primary {
  width: 100%;
  min-height: 52px;
  margin: 4px 0 0;
  padding: 12px 20px;
  border: 1px solid var(--age-accent);
  border-radius: 8px;
  background: var(--age-accent);
  color: #fffdfa;
  font-family: var(--site-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: none;
  transform: none;
}
body.age-page #age-form .btn-primary:hover,
body.age-page #age-form .btn-primary:focus-visible { background: #382e27; border-color: #382e27; }
body.age-page #age-form .btn-primary:focus-visible { outline: 2px solid var(--age-accent); outline-offset: 3px; }
body.age-page #age-form .input-help { margin: 4px 0 0; font-size: 13px; line-height: 1.8; color: var(--age-muted); }
body.age-page #age-form .input-help a { color: var(--age-accent); text-decoration: underline; text-underline-offset: 3px; }
body.age-page #birth-error:empty { display: none; }
body.age-page #age-form .calendar-toggle { background: #e0d8cd; border-color: transparent; box-shadow: none; }
body.age-page #age-form .calendar-toggle label { font-size: 14px; }
body.age-page #age-form .toggle-slider { background: var(--age-accent); box-shadow: none; }
body.age-page .editorial-calculator-shell #result-container.show {
  padding: 24px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.age-page .editorial-calculator-shell .age-result-primary {
  padding: 24px;
  border: 0;
  border-radius: 12px;
  background: var(--age-panel);
  color: var(--age-ink);
}
body.age-page .editorial-calculator-shell .age-result-primary .age,
body.age-page .editorial-calculator-shell .age-result-primary .age-number { color: var(--age-ink); }
body.age-page .editorial-calculator-shell .age-result-primary .age-number { font-size: clamp(30px, 4vw, 40px); line-height: 1.4; }
body.age-page .editorial-calculator-shell .age-result-primary .eyebrow,
body.age-page .editorial-calculator-shell .age-result-primary .message { color: var(--age-muted); font-size: 13px; line-height: 1.7; }
body.age-page .editorial-calculator-shell .age-result-summary-item {
  background: #fffdfa;
  border: 1px solid var(--age-line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: none;
}
body.age-page .editorial-calculator-shell .age-result-summary-item strong { font-size: 14px; }
body.age-page .editorial-calculator-shell .age-result-summary-item span { font-size: 16px; line-height: 1.6; }
body.age-page .editorial-calculator-shell .age-result-links a { padding: 16px; background: #fffdfa; border-color: var(--age-line); box-shadow: none; }
body.age-page .editorial-calculator-shell .age-result-links a strong { font-size: 15px; }
body.age-page .editorial-calculator-shell .age-result-links a span { font-size: 13px; line-height: 1.7; color: var(--age-muted); }
/* Supporting sections use the same readable scale as the calculator. */
body.age-page section:is([aria-labelledby="compare"], [aria-labelledby="faq"], [aria-labelledby="notice"]) {
  min-width: 0;
  margin-block: 32px 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--age-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--age-ink);
  font-family: var(--site-font);
}
body.age-page section:is([aria-labelledby="compare"], [aria-labelledby="faq"], [aria-labelledby="notice"]) h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.025em;
  word-break: keep-all;
}
body.age-page section:is([aria-labelledby="compare"], [aria-labelledby="faq"], [aria-labelledby="notice"]) p,
body.age-page section[aria-labelledby="notice"] li {
  margin-block: 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--age-muted);
  overflow-wrap: anywhere;
}
body.age-page section[aria-labelledby="faq"] h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--age-ink);
  word-break: keep-all;
}
body.age-page section:is([aria-labelledby="compare"], [aria-labelledby="faq"], [aria-labelledby="notice"]) a {
  color: var(--age-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.age-page section[aria-labelledby="compare"] table {
  width: 100%;
  margin-block: 20px;
  table-layout: fixed;
  border-collapse: collapse;
  border: 0;
  background: #fffdfa;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.7;
}
body.age-page section[aria-labelledby="compare"] :is(th, td) {
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--age-line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--age-ink);
}
body.age-page section[aria-labelledby="compare"] th {
  background: var(--age-panel);
  font-weight: 600;
}
body.age-page section[aria-labelledby="compare"] :is(th, td):first-child { width: 20%; }
body.age-page section[aria-labelledby="notice"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
body.age-page section[aria-labelledby="notice"] li { margin: 0; }
@media (max-width: 600px) {
  body.age-page section[aria-labelledby="compare"] :is(th, td) { padding: 12px 8px; font-size: 13px; }
  body.age-hub-page .life-hub-link-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.age-hub-page .life-hub-link-list a { padding: 16px; }
  body.age-hub-page .page-intro,
  body.age-page .calculator-page-heading.hero-band .hero-copy > .page-intro { font-size: 15px; }
  body.age-page .editorial-calculator-shell .age-result-primary { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.age-hub-page .life-hub-link-list a { transition: none; }
}
