/* parents page: own rules from home-sample/parents-sample-6 */
/* =================== Parents page (sample 1) =================== */

  /* Hero: the words on the left, a quiet "on this page" index on the right */
  .hero--par .wrap { min-height: min(600px, calc(100vh - 86px)); padding-bottom: 64px; }
  .qx { justify-self: center; width: min(100%, 460px); background: var(--white); border-radius: 26px; padding: 10px 26px 12px; box-shadow: 0 0 0 1px var(--line), 0 34px 60px -44px rgba(76,28,8,.5); }
  .qx-title { margin: 14px 0 4px; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--current); }
  .qx a { display: grid; grid-template-columns: 1fr 18px; gap: 14px; align-items: center; padding: 16px 0; text-decoration: none; color: var(--deep); }
  .qx a + a { border-top: 1px solid var(--line); }
  .qx strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
  .qx strong + span { display: block; margin-top: 2px; font-size: .95rem; color: var(--warm); }
  .qx svg { width: 18px; height: 18px; color: var(--current); transition: translate .3s var(--ease-out); }
  .qx a:hover svg { translate: 3px 0; }
  .qx a:focus-visible { outline: 3px solid var(--swell); outline-offset: 2px; border-radius: 8px; }
  .motion .qx { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out) .35s, transform 1.1s var(--ease-out) .35s; }
  .hero-in .qx { opacity: 1; transform: none; }

  .sec-head { max-width: 660px; margin-bottom: 44px; }
  .sec-head p { margin: 16px 0 0; font-size: 1.1rem; }

  /* Guides for every age: an editorial index of the five guides (name · age and tagline · arrow) */
  .ages-hub { padding: 96px 0 100px; }
  .age-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: age; }
  .age-list a { display: grid; grid-template-columns: 56px minmax(0, .9fr) minmax(0, 1.1fr) 20px; gap: 20px; align-items: center; padding: 26px 18px 26px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--deep); counter-increment: age; transition: background-color .25s ease; }
  .age-list a::before { content: counter(age, decimal-leading-zero); font: 600 1.1rem/1 var(--display); color: var(--glide); }
  .age-list strong { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
  .age-list span { color: var(--warm); font-size: 1.02rem; line-height: 1.45; }
  .age-list b { display: block; color: var(--current); font-size: .95rem; margin-bottom: 2px; }
  .age-list svg { width: 20px; height: 20px; color: var(--current); transition: translate .3s var(--ease-out); }
  .age-list a:hover { background: var(--white); }
  .age-list a:hover svg { translate: 4px 0; }
  .age-list a:focus-visible { outline: 3px solid var(--swell); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .age-list a, .age-list svg { transition: none; } }
  @media (max-width: 820px) {
    .age-list a { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 6px 14px; padding: 22px 4px; }
    .age-list a::before { grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
    .age-list strong { grid-column: 2; font-size: 1.35rem; }
    .age-list span { grid-column: 2; }
    .age-list svg { grid-column: 3; grid-row: 1 / span 2; }
  }
  @media (max-width: 560px) { .ages-hub { padding: 72px 0; } }

  /* How a smile grows: a line that draws itself, with each stop filling in as it's reached */
  .grow { background: var(--glide-soft); padding: 96px 0 100px; }
  .ages { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
  .ages::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 3px; border-radius: 3px; background: var(--white); }
  .ages::after { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 3px; border-radius: 3px; background: var(--current); transform-origin: left center; }
  .ages li { position: relative; padding-top: 40px; display: grid; gap: 6px; align-content: start; }
  .ages li::before { content: ""; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--swell); box-shadow: 0 0 0 3px var(--current), 0 0 0 7px var(--glide-soft); z-index: 1; }
  .ages .when { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--current); }
  .ages h3 { font-size: 1.3rem; line-height: 1.2; }
  .ages p { margin: 0; font-size: 1rem; }
  .grow .note { margin: 34px 0 0; font-size: .95rem; color: var(--warm); }
  .motion .ages::after { transform: scaleX(0); transition: transform 1.8s var(--ease-out) .2s; }
  .motion .ages.in::after { transform: none; }
  .motion .ages li::before { transform: scale(0); transition: transform .7s var(--ease-spring) calc(.3s + var(--i, 0) * .25s); }
  .motion .ages.in li::before { transform: none; }

  /* Dental words: controls on the left (they stay in view), the words on the right */
  .words { padding: 100px 0; }
  .words .wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
  .w-side { position: sticky; top: 130px; }
  .w-side .sec-head { margin-bottom: 26px; }
  .read { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glide-soft); margin-bottom: 18px; }
  .read button { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 16px; min-height: 40px; background: none; color: var(--deep); font: 700 .95rem/1 var(--body); transition: background-color .25s ease, color .25s ease; }
  .read button[aria-pressed="true"] { background: var(--deep); color: var(--cream); }
  .find-word { position: relative; margin-bottom: 16px; }
  .find-word svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--current); pointer-events: none; }
  .find-word input { width: 100%; font: 600 1.05rem/1.2 var(--body); color: var(--deep); background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 46px; }
  .find-word input:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 4px var(--swell); }
  .topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .topics button { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 14px; min-height: 40px; background: var(--white); box-shadow: 0 0 0 1px var(--line); color: var(--deep); font: 600 .92rem/1.1 var(--body); transition: background-color .2s ease, box-shadow .2s ease; }
  .topics button:hover { box-shadow: 0 0 0 2px var(--glide); }
  .topics button[aria-pressed="true"] { background: var(--swell); box-shadow: 0 0 0 1px var(--swell); }
  .read button:focus-visible, .topics button:focus-visible { outline: 3px solid var(--current); outline-offset: 2px; }
  .w-note { margin: 22px 0 0; font-size: .92rem; color: var(--warm); max-width: 44ch; }

  .gloss .g-head { font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--current); margin: 0 0 6px; }
  .gloss dl { margin: 0; border-top: 1px solid var(--line); }
  .g-item { display: grid; grid-template-columns: 200px 1fr; gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .g-item dt { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--deep); }
  .g-item dd { margin: 0; }
  .g-item p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
  .gloss[data-read="grown-ups"] .k { display: none; }
  .gloss[data-read="kids"] .a { display: none; }
  /* in kids mode, words that only have a grown-ups meaning still show it, labelled */
  .gloss[data-read="kids"] .g-item:not(:has(.k)) .a { display: block; }
  .gloss[data-read="kids"] .g-item:not(:has(.k)) .a::before { content: "For grown-ups: "; font-weight: 700; color: var(--current); }
  .gloss[data-read="kids"] .k { font-size: 1.15rem; color: var(--deep); }
  .g-topic + .g-topic { margin-top: 40px; }
  .js-gloss .g-topic[hidden], .g-item[hidden] { display: none; }
  .g-empty { margin: 0; padding: 22px 0; font-weight: 600; color: var(--deep); border-top: 1px solid var(--line); }
  .motion .gloss .g-item.flip p { animation: word-in .45s var(--ease-out); }
  @keyframes word-in { from { opacity: 0; transform: translateY(6px); } }
  .w-sources { margin: 34px 0 0; font-size: .9rem; color: var(--warm); }
  .w-sources strong { color: var(--deep); }

  /* More for families: a plain row of links */
  .more { padding: 88px 0 100px; }
  .more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .more li + li { border-left: 1px solid var(--line); }
  .more a { display: grid; grid-template-columns: 1fr 18px; gap: 12px; align-items: center; padding: 22px 24px; height: 100%; text-decoration: none; color: var(--deep); border-bottom: 1px solid var(--line); }
  .more li:first-child a { padding-left: 2px; }
  .more strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.2rem; }
  .more strong + span { display: block; margin-top: 2px; color: var(--warm); font-size: .95rem; }
  .more svg { width: 18px; height: 18px; color: var(--current); transition: translate .3s var(--ease-out); }
  .more a:hover svg { translate: 3px 0; }
  .more a:focus-visible { outline: 3px solid var(--swell); outline-offset: 2px; }
  .more .kicker { margin-bottom: 14px; }

  @media (prefers-reduced-motion: reduce) { .read button, .topics button, .qx svg, .more svg { transition: none; } }

  @media (max-width: 1000px) {
    .words .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .w-side { position: static; }
    /* timeline runs down the page */
    .ages { grid-template-columns: 1fr; gap: 26px; }
    .ages::before, .ages::after { left: 9px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
    .ages::after { transform-origin: center top; }
    .motion .ages::after { transform: scaleY(0); }
    .ages li { padding: 0 0 0 44px; }
    .ages li p { max-width: 54ch; }
    .more ul { grid-template-columns: 1fr; }
    .more li + li { border-left: 0; }
    .more a, .more li:first-child a { padding: 18px 2px; }
  }
  @media (max-width: 820px) {
    .qx { width: 100%; }
    .g-item { grid-template-columns: 1fr; gap: 4px; }
  }
  @media (max-width: 560px) {
    .hero--par .wrap { padding-bottom: 48px; }
    .qx { padding: 6px 18px 8px; border-radius: 22px; }
    .grow, .words { padding: 72px 0; }
    .more { padding: 64px 0 72px; }
    .topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
    .topics::-webkit-scrollbar { display: none; }
    .topics button { white-space: nowrap; }
  }
