.age-tool-hero {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
  background: linear-gradient(135deg, var(--detail-start), var(--detail-end));
}

.age-tool-hero .breadcrumbs {
  margin-bottom: 18px;
}

.age-hero-copy {
  max-width: 820px;
}

.age-hero-copy h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.age-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.age-privacy-note {
  display: inline-flex;
  max-width: 720px;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid var(--success-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--success-text);
  background: var(--success-bg);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.age-tool-section {
  padding-top: 30px;
}

.age-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.age-calculator-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.age-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.age-panel-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-button-text);
  background: var(--primary-button);
}

.age-panel-icon-svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.age-panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.25;
}

.age-panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.age-calculator-form {
  display: grid;
  gap: 18px;
}

.age-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.age-date-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-subtle);
}

.age-date-field label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.age-date-field label span {
  color: var(--muted);
  font-weight: 750;
}

.age-date-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.age-date-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
}

.age-date-field input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.age-date-field [aria-invalid="true"] {
  border-color: var(--danger-text);
}

.age-form-error {
  margin: 0;
  border: 1px solid var(--danger-border);
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--danger-text);
  background: var(--danger-bg);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.age-calculate-button {
  width: 100%;
  min-height: 50px;
  cursor: pointer;
  font-size: 16px;
}

.age-calculate-button:hover {
  filter: brightness(1.05);
}

.age-calculate-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.age-result {
  scroll-margin-top: 96px;
  margin-top: 24px;
  border: 1px solid var(--success-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--success-bg);
}

.age-result:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.age-result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-result-check {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #198754;
  font-weight: 900;
}

.age-result-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
}

.age-primary-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.age-primary-result div {
  min-width: 0;
  border: 1px solid var(--success-border);
  border-radius: 13px;
  padding: 14px 10px;
  text-align: center;
  background: var(--surface);
}

.age-primary-result output {
  display: block;
  color: var(--navy);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.age-primary-result span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.age-additional-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.age-additional-results div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: var(--surface);
}

.age-additional-results dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.age-additional-results dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.age-result-convention {
  margin: 15px 0 0;
  border-top: 1px solid var(--success-border);
  padding-top: 13px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

body.ads-enabled .age-tool-ad-slot {
  width: 100%;
  min-height: 118px;
  margin: 0;
}

.age-related {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  background: var(--surface);
}

.age-related h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.age-supporting-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.age-supporting-content .content-grid {
  display: grid;
  gap: 12px;
  margin: 0;
}

.age-supporting-content .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.age-supporting-content .content-card,
.age-supporting-content .guide-faq {
  max-width: none;
  margin: 0;
}

.age-supporting-content .content-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  background: var(--surface);
}

.age-supporting-content .content-card h2,
.age-supporting-content .guide-faq > h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.3;
}

.age-supporting-content .content-card p,
.age-supporting-content .content-card li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.age-supporting-content .content-card p:last-child {
  margin-bottom: 0;
}

.age-supporting-content .compact-steps {
  margin: 0;
  padding-left: 22px;
}

.age-supporting-content .compact-steps li + li {
  margin-top: 6px;
}

.age-supporting-content .guide-faq {
  margin-top: 2px;
}

.age-supporting-content .guide-faq details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.age-supporting-content .guide-faq details + details {
  margin-top: 9px;
}

.age-supporting-content .guide-faq summary {
  min-height: 48px;
  padding: 13px 16px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  cursor: pointer;
}

.age-supporting-content .guide-faq details div[itemprop="acceptedAnswer"] p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 13px 16px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .age-tool-hero {
    padding: 22px 0 24px;
  }

  .age-hero-copy h1 {
    font-size: clamp(30px, 9.4vw, 39px);
    line-height: 1.14;
  }

  .age-hero-copy > p {
    font-size: 16px;
  }

  .age-calculator-panel {
    padding: 16px;
  }

  .age-date-fields {
    grid-template-columns: 1fr;
  }

  .age-panel-heading h2 {
    font-size: 22px;
  }

  .age-result {
    padding: 16px;
  }

  .age-additional-results {
    grid-template-columns: 1fr;
  }

  .age-supporting-content .content-grid.two-col {
    grid-template-columns: 1fr;
  }

  body.ads-enabled .age-tool-ad-slot {
    min-height: 104px;
  }
}

@media (max-width: 480px) {
  .age-primary-result {
    gap: 7px;
  }

  .age-primary-result div {
    padding: 12px 6px;
  }

  .age-primary-result output {
    font-size: clamp(25px, 9vw, 34px);
  }
}
