/* Levels & Programs hub (src/data/hub-pages/levels-programs.html, 3 Nov 2026): the long levels chart page above and
   below the category's topic map. Colors and type come from the Ribbon Rose tokens in src/styles/redesign.css. */
.lh-page { max-width: 1180px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); color: var(--p-body); font-family: var(--gg-body); font-size: 16.5px; line-height: 1.65; }
.lh-page h1, .lh-page h2, .lh-page h3, .lh-page h4 { font-family: var(--gg-head); color: var(--p-ink); line-height: 1.2; text-wrap: balance; margin: 0; }
.lh-page a { color: var(--p-deep); }
.lh-page p { margin: 0; }

/* Opening */
.lh-hero { background: var(--p-band); border: 1px solid var(--p-band-line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); margin: 18px 0 34px; display: grid; gap: 14px; }
.lh-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-brand); }
.lh-hero h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.02em; }
.lh-lede { font-size: 18px; color: var(--p-ink); max-width: 68ch; }
.lh-hero p:not(.lh-eyebrow):not(.lh-lede) { max-width: 68ch; }
.lh-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lh-jump a { text-decoration: none; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.lh-jump a:hover { border-color: var(--p-mid); }

/* Sections */
.lh-section { margin: 0 0 46px; display: grid; gap: 14px; scroll-margin-top: 96px; }
.lh-section > h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; }
.lh-section > h3, .lh-group > h3 { font-size: 22px; margin-top: 10px; }
.lh-section > p, .lh-group > p { max-width: 72ch; }
.lh-note { font-size: 14.5px; color: var(--p-gray); max-width: 80ch; }

/* Finder and age check */
.lh-finder, .lh-age { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--p-shadow); }
.lh-finder-form, .lh-age-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.lh-finder-form[hidden], .lh-age-form[hidden] { display: none; }
.lh-field { display: grid; gap: 6px; min-width: 0; }
.lh-field label, .lh-field legend { font-size: 14px; font-weight: 700; color: var(--p-ink); }
.lh-field select { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--p-rule); border-radius: 12px; background: var(--p-soft); color: var(--p-ink); min-width: 200px; max-width: 100%; }
.lh-programs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.lh-programs legend { width: 100%; padding: 0; margin-bottom: 4px; }
.lh-programs label { font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.lh-button { font: inherit; font-weight: 700; font-size: 15px; color: #fff; background: var(--p-brand); border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.lh-button:hover { background: var(--p-deep); }
.lh-finder-result:empty, .lh-age-result:empty { display: none; }
.lh-result-card { border: 1px solid var(--p-tint2); background: var(--p-tint); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.lh-result-card h3 { font-size: 24px; }
.lh-age-result { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lh-age-block { border: 1px solid var(--p-line); background: var(--p-soft); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.lh-age-block h3 { font-size: 19px; }
.lh-age-block ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.lh-age-block li a { display: inline-block; text-decoration: none; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 999px; padding: 3px 11px; font-size: 14px; font-weight: 600; }
.lh-finder-fallback { font-size: 15px; }
.lh-js .lh-finder-fallback { display: none; }

/* Charts */
.lh-table-wrap { overflow-x: auto; border: 1px solid var(--p-line); border-radius: 18px; background: var(--p-paper); }
.lh-table-wrap:focus-visible { outline: 2px solid var(--p-brand); outline-offset: 2px; }
.lh-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.lh-table th, .lh-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.lh-table thead th { background: var(--p-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--p-gray); }
.lh-table tbody tr:last-child > * { border-bottom: 0; }
.lh-table tbody th { white-space: nowrap; font-weight: 700; }
.lh-table tbody th a { text-decoration: none; }

/* Level cards */
.lh-group { display: grid; gap: 12px; margin-top: 8px; scroll-margin-top: 96px; }
.lh-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lh-card { position: relative; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 20px; padding: 18px 20px 20px; display: grid; gap: 9px; align-content: start; scroll-margin-top: 96px; }
.lh-card:target, .lh-card.lh-picked { border-color: var(--p-brand); box-shadow: 0 0 0 3px var(--p-tint2); }
.lh-card-art { background: var(--p-soft); border-radius: 14px; padding: 8px; }
.lh-card-art img { display: block; width: 100%; height: auto; }
.lh-card-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-family: var(--gg-head); font-weight: 700; font-size: 24px; color: var(--p-deep); background: var(--p-tint); border: 1px solid var(--p-tint2); }
.lh-badge-xcel { color: var(--p-honey-ink); background: var(--p-honey-tint); border-color: #F1D8A6; font-size: 21px; }
.lh-badge-next { color: var(--p-ink); background: var(--p-band); border-color: var(--p-band-line); }
.lh-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-gray); }
.lh-card h4 { font-size: 22px; }
.lh-facts { margin: 2px 0 0; display: grid; gap: 6px; }
.lh-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14.5px; }
.lh-facts dt { font-weight: 700; color: var(--p-ink); }
.lh-facts dd { margin: 0; }
.lh-skills { font-size: 14.5px; }
.lh-card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lh-card-links a, .lh-result-card .lh-card-links a { text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid var(--p-tint2); background: var(--p-tint); color: var(--p-deep); border-radius: 999px; padding: 5px 13px; }
.lh-card-links a:hover { border-color: var(--p-brand); }
/* Guide lists (4 Nov 2026): a card with three or more guides lists each one with a few words on what it answers.
   The whole row is the link's tap area; the chevron is decoration. */
.lh-guide-list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--p-line); }
.lh-guide-list li { position: relative; display: grid; gap: 1px; padding: 9px 26px 9px 0; border-bottom: 1px solid var(--p-line); }
.lh-guide-list li:last-child { border-bottom: 0; }
.lh-guide-list li::after { content: "\203A"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--p-brand); }
.lh-guide-list a { font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.lh-guide-list a::before { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.lh-guide-list a:focus-visible { outline: none; }
.lh-guide-list a:focus-visible::before { outline: 2px solid var(--p-brand); outline-offset: -2px; }
.lh-guide-list li:hover a { text-decoration: underline; }
.lh-guide-list span { font-size: 14px; line-height: 1.4; color: var(--p-gray); }

/* Tools */
.lh-tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.lh-tool { display: grid; gap: 6px; text-decoration: none; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 18px; padding: 16px 18px; color: var(--p-body) !important; }
.lh-tool strong { font-family: var(--gg-head); font-size: 18px; color: var(--p-ink); }
.lh-tool span { font-size: 14.5px; }
.lh-tool:hover { border-color: var(--p-mid); }

/* The guides map, embedded: its heading becomes an H2 */
.lh-guides .ggbg-topic-map { margin: 0 auto; padding: 0; }
.lh-guides .ggbg-topic-map h2#ggbg-map-heading { font-family: var(--gg-head); font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--p-ink); }

/* Questions, takeaway, sources */
.lh-faq h3 { font-size: 19px; margin-top: 10px; }
.lh-takeaway { background: var(--p-band); border: 1px solid var(--p-band-line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
.lh-sources ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }

@media (max-width: 640px) {
  .lh-page { font-size: 16px; }
  .lh-hero { border-radius: 22px; }
  .lh-field, .lh-field select { width: 100%; }
  .lh-facts div { grid-template-columns: 96px 1fr; }
}
