/* Learn redesign (PO-approved 21-22 Nov 2026): the article template r2, the /learn hub with search, and the shared visual
   language (ring fragment with 2-3 planet dots in heading bands, topic dots, dots in the download block). Loaded after
   site.css on /learn and the guide pages only; site.css stays as it is (the calculators, hubs and /birthday pages keep it).
   Decoration lives in the bands and topic markers; cards, tables, body copy and search results stay plain. Rings are
   static and never behind text: below 1000 px the fragment shrinks into the band's corner. */

/* Normal tracking for reading text on the redesigned blocks (site.css sets a wider body letter-spacing). */
.art-band, .art-wrap, .learn-band, .learn-results, .learn-hub, .get-app { letter-spacing: normal; }

/* Topic markers (visual language guide; colour never stands alone, the name is always next to it). */
.tdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #4d88cc; }
.tdot--numerology { background: #1d5bb8; }
.tdot--astrology { background: #4d88cc; }
.tdot--mindset { background: #7fd39b; }
.tdot--seasons-and-events { background: #f2d46b; }
.tdot--research { background: #ff7a45; }
.tdot--how-ninepath-works { background: #6fb7ff; }
.tdot--all { background: #081f3f; }

/* ---- heading bands (article and hub) ---- */
.art-band, .learn-band { position: relative; overflow: hidden; background: var(--mist); }
.art-band-in, .learn-band-in { position: relative; }
.art-band-text, .learn-band-text { position: relative; z-index: 1; max-width: 720px; }
.band-ring { position: absolute; z-index: 0; right: calc(-1 * var(--margin)); top: 50%; width: 84px; height: 84px; transform: translateY(-50%); pointer-events: none; }
.art-band { padding-block: 16px 60px; }
.art-band .band-ring { top: auto; bottom: -32px; transform: none; }
.art-band .crumbs ol { padding-top: 0; font-size: .8125rem; }
.art-band .crumbs li + li::before { content: "/"; }
.art-band .topic-chip { margin: 20px 0 0; }
.art-band .topic-chip a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-container); color: var(--fg); font-weight: 500; }
.art-band h1 { margin: 16px 0 0; font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; color: var(--fg); }
.art-band .dek { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.625rem; color: var(--fg); }
.art-band .byline { margin: 16px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.learn-band { padding-block: 24px 32px; }
.learn-band h1 { margin: 0; }
.learn-band .dek { margin: 8px 0 0; font-size: 1.0625rem; line-height: 1.625rem; color: var(--fg); }
.learn-band .band-ring { top: 0; transform: translateY(-40%); }
@media (min-width: 1000px) {
  .band-ring { width: 340px; height: 340px; right: calc(-1 * max(var(--margin), (100vw - 1200px) / 2)); }
  .art-band { padding-block: 32px 48px; }
  .art-band .band-ring, .learn-band .band-ring { top: 50%; bottom: auto; transform: translateY(-50%); }
  .art-band h1 { font-size: 2.75rem; line-height: 3.25rem; }
  .art-band .dek { font-size: 1.25rem; line-height: 1.875rem; }
  .art-band .byline { font-size: 1rem; line-height: 1.5rem; }
  .learn-band { padding-block: 44px 48px; }
  .learn-band h1 { font-size: 2.75rem; line-height: 3.25rem; }
  .learn-band .dek { font-size: 1.25rem; line-height: 1.875rem; }
}

/* ---- article layout: prose column 760, gap 80, rail 340 inside 1200; inner blocks max 720, never stretched ---- */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 32px; }
.art-main { min-width: 0; display: grid; gap: 20px; align-content: start; }
/* The prose (paragraphs, H2/H3, lists, sources, the calculator link line) fills the 760 column; the blocks (Short answer,
   Key facts, worked example, Do/Don't, figures, tables, questions) keep max 720. The wrappers themselves are not capped. */
.art-main > *, .art-main .guide-body > *, .art-main .guide-head > * { max-width: 720px; }
.art-main > :is(.guide-body, .guide-head), .art-main .guide-body > :is(p, ul, ol, h2, h3), .art-main .guide-head > .tool-link { max-width: 760px; }
.art-main > *, .art-layout > * { grid-area: auto; }
.art-main .key-facts { margin-left: 0; }
.art-rail { display: none; }
@media (min-width: 1000px) {
  .art-layout { grid-template-columns: minmax(0, 760px) 280px; column-gap: 48px; justify-content: start; padding-block: 40px 56px; }
  .art-layout.no-rail { grid-template-columns: minmax(0, 760px); }
  .art-rail { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
}
@media (min-width: 1200px) { .art-layout { grid-template-columns: minmax(0, 760px) 340px; column-gap: 80px; } }
.art-rail .guide-toc { padding: 20px 24px; border: 1px solid var(--accent-container); border-radius: 20px; background: var(--mist); }
.art-rail .guide-toc .toc-time { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.art-rail .guide-toc li a { padding: 8px 4px; border-radius: 8px; font-size: 1rem; line-height: 1.5rem; }
.art-rail .guide-toc li a::before { display: none; }
.art-rail .guide-toc li a:hover { background: var(--accent-container); }

/* body copy at reading size: 17 on a phone, 18 from 1000 px, 21/34 from 1200 px (about 72-78 characters a line) */
.art-main .guide-body { gap: 20px; }
.art-main .guide-body > :is(p, ul, ol) { font-size: 1.0625rem; line-height: 1.625rem; }
.art-main .guide-body > h2 { margin-top: 28px; font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
@media (min-width: 1000px) {
  .art-main .guide-body > :is(p, ul, ol) { font-size: 1.125rem; line-height: 1.8125rem; }
  .art-main .guide-body > h2 { margin-top: 40px; font-size: 1.875rem; line-height: 2.375rem; }
}
@media (min-width: 1200px) { .art-main .guide-body > :is(p, ul, ol) { font-size: 1.3125rem; line-height: 2.125rem; } }
.art-main .guide-body > ol > li::marker { color: var(--accent); font-weight: 600; }
.art-main .guide-body #sources + ol { font-size: .9375rem; line-height: 1.5rem; }

/* compact cards: content-driven height, compact padding, a sensible max width */
.art-main .short-answer { padding: 20px; border: 1px solid var(--accent-container); border-radius: 24px; background: var(--lowest); color: var(--fg); box-shadow: 0 2px 8px rgba(8, 31, 63, .06); }
.art-main .short-answer h2 { color: var(--accent); }
.art-main .short-answer p { font-size: 1.0625rem; line-height: 1.625rem; }
@media (min-width: 1000px) { .art-main .short-answer p { font-size: 1.125rem; line-height: 1.8125rem; } }
.art-main .tool-link { display: flex; gap: 12px; margin: 0; font-size: 1.0625rem; line-height: 1.625rem; }
.art-main .tool-link .icon { color: var(--accent); margin-top: 1px; }
.art-main .key-facts { padding: 20px; border: 1px solid var(--accent-container); border-radius: 20px; background: var(--mist); }
.art-main .key-facts h2 { color: var(--accent); font-size: .875rem; line-height: 1.25rem; }
.art-main .key-facts h2 .icon { width: 20px; height: 20px; }
.art-main .key-facts dl > div { flex-direction: column; gap: 2px; border-top: 0; padding-block: 6px; }
.art-main .key-facts dd { font-weight: 600; }
@media (min-width: 700px) {
  .art-main .key-facts { justify-self: start; }
  .art-main .key-facts dl { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .art-main .key-facts dl > div { flex: 0 1 auto; }
}
.art-main .toc-mobile { background: var(--lowest); }
/* Worked example (r2): the card keeps its own size (max 720); the digits are the content (24 SemiBold navy) with the
   D/M/Y letter small above; the result line SemiBold with a divider above. */
.art-main .worked-example { justify-self: start; width: fit-content; max-width: 720px; padding: 24px 32px; border: 1px solid var(--accent-container); background: var(--mist); }
.art-main .worked-tokens li { min-width: 56px; padding: 8px 12px; border: 1px solid var(--accent-container); gap: 2px; }
/* One grey for all eight letters; grayscale smoothing so thin capitals (M) never show colour fringes. */
.art-main .worked-tokens .token-symbol { order: 0; color: var(--muted); font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.art-main .worked-tokens .token-value { order: 1; color: var(--fg); font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.art-main .worked-working { font-size: 1rem; line-height: 1.625rem; }
.art-main .worked-result { padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.625rem; font-weight: 600; }
/* Do and Don't as in the app and the approved design: Do = white outlined card with a check-circle; Don't = dark grey
   #5E5B66 card, white text, minus-circle. Same on a phone. */
.art-main .guidance-card { padding: 20px 24px; border-radius: 16px; }
.art-main .guidance-do { border: 1px solid var(--accent-container); background: var(--lowest); color: var(--fg); }
.art-main .guidance-dont { background: #5e5b66; color: #fff; }
.art-main .guidance-label { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.art-main .guidance-do .guidance-label .icon { box-sizing: border-box; width: 22px; height: 22px; padding: 2px; border: 2px solid currentColor; border-radius: 50%; }
.art-main .guidance-dont .guidance-label { color: #fff; }
.art-main .guidance-dont .guidance-dash { box-sizing: border-box; width: 22px; height: 22px; align-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 0; }
.art-main .guidance-dont .guidance-dash::before { content: ""; width: 10px; height: 2px; background: currentColor; }
.art-main .guidance-text { font-size: 1rem; line-height: 1.625rem; }
.art-main .faq-items { display: grid; gap: 12px; }
.art-main .faq-item { padding-inline: 20px; border: 1px solid var(--accent-container); border-radius: 16px; background: var(--lowest); }
.art-main .faq-item p { color: var(--fg); }
.art-main .guide-body .table-wrap { justify-self: start; }
.art-main .learn-table, .art-main .learn-figure, .art-main .lead-image { justify-self: stretch; }
/* The r2 article shows plain H2s: no section numbers in the new template (the contents rail is unnumbered too). */
.art-main .guide-body[data-numbered] > h2::before { content: none; }
.app-line, .art-main .guide-body > .app-line { margin: 0; font-size: 1rem; line-height: 1.5rem; }

/* Read next (one per page): three cards sized to their content, equal height only within the row */
.art-wrap > .read-next { padding-top: 8px; padding-bottom: 32px; }
.art-wrap > .read-next h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.art-wrap > .read-next ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .art-wrap > .read-next ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.next-card { display: grid; gap: 12px; align-content: start; height: 100%; padding: 20px 24px; border: 1px solid var(--accent-container); border-radius: 20px; background: var(--lowest); color: var(--fg); text-decoration: none; }
.next-card:hover { border-color: var(--accent); }
.next-title { font-size: 1.125rem; line-height: 1.625rem; font-weight: 500; }
.next-meta { justify-self: start; padding: 2px 12px; border-radius: 999px; background: var(--accent-container); font-size: .875rem; line-height: 1.25rem; }

/* ---- download block (gate on): one line, the official badges, "What is NinePath?", a ring with two dots ---- */
.get-app { position: relative; overflow: hidden; margin: 8px 0 48px; padding: 28px 24px; border-radius: 28px; background: linear-gradient(100deg, var(--mist), #dfe7ff); }
.get-app-text { position: relative; z-index: 1; max-width: 560px; }
.get-app h2 { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--fg); }
.get-app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.get-app-badge { display: block; height: 48px; border-radius: 8px; overflow: hidden; }
.get-app-badge img { display: block; max-width: none; }
.get-app-badge--ios img { width: auto; height: 48px; }
.get-app-badge--android { width: 161px; }
.get-app-badge--android img { width: 184.6px; height: 71.43px; margin: -11.71px 0 0 -11.71px; }
.get-app-more { margin: 20px 0 0; }
.get-app-ring { position: absolute; z-index: 0; right: -60px; bottom: -150px; width: 260px; height: 260px; pointer-events: none; }
@media (min-width: 1000px) {
  .get-app { padding: 48px 64px; }
  .get-app h2 { font-size: 2rem; line-height: 2.5rem; }
  .get-app-ring { right: 0; top: 50%; bottom: auto; width: 340px; height: 340px; transform: translateY(-50%); }
}
.learn-body > .get-app { margin: 0; }

/* ---- the /learn hub ---- */
.learn-search { margin-top: 24px; max-width: 560px; }
.learn-search[hidden] { display: none; }
.learn-search-box { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 0 20px; border: 1px solid var(--accent-container); border-radius: 999px; background: var(--lowest); }
.learn-search-box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.learn-search-box .icon { color: var(--fg); }
.learn-search input { flex: 1; min-width: 0; height: 54px; border: 0; padding: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--fg); outline: none; }
.learn-search input::-webkit-search-cancel-button { display: none; }
.learn-search-clear { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--low); color: var(--fg); cursor: pointer; }
.learn-search-clear[hidden] { display: none; }
.learn-search-clear:focus-visible, .link-button:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.learn-search-hint { margin: 10px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.learn-results { padding-block: 32px 56px; }
.learn-results[hidden], .learn-hub[hidden], .learn-empty[hidden] { display: none; }
.learn-results-count { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; }
.result-list { display: grid; gap: 8px; max-width: 730px; margin: 0; padding: 0; list-style: none; }
.result-row { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 6px; border-radius: 12px; color: var(--fg); text-decoration: none; }
.result-row:hover { background: var(--low); }
.result-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.result-row img { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--accent-container); background: var(--mist); }
@media (min-width: 700px) { .result-row img { width: 128px; height: 72px; } }
.result-text { display: grid; gap: 2px; }
.result-title { font-size: 1.0625rem; line-height: 1.5rem; }
.result-meta { color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.learn-empty p { margin: 0 0 12px; font-size: 1.0625rem; }
.empty-calcs { display: grid; gap: 8px; max-width: 560px; margin: 20px 0 0; padding: 0; list-style: none; }
.empty-calcs a { display: flex; align-items: center; min-height: 56px; padding: 0 16px; border: 1px solid var(--accent-container); border-radius: 12px; font-weight: 500; }
.learn-results-clear { margin: 24px 0 0; }
.link-button { padding: 8px 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.topic-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.topic-pill { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 56px; padding: 8px 16px; border: 1px solid var(--accent-container); border-radius: 16px; background: var(--lowest); color: var(--fg); text-decoration: none; font-weight: 500; }
.topic-pill:hover { background: var(--mist); border-color: var(--accent); }
.topic-pills-all { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; }
@media (min-width: 700px) {
  .topic-pills { display: flex; flex-wrap: wrap; }
  .topic-pills { gap: 10px; }
  .topic-pill { gap: 8px; min-height: 48px; border-radius: 999px; padding: 8px 15px; }
}
.learn-hub .featured-card { display: grid; gap: 20px; padding: 16px; border: 1px solid var(--accent-container); border-radius: 24px; background: var(--lowest); box-shadow: 0 2px 8px rgba(8, 31, 63, .06); }
.featured-img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--mist); }
.learn-hub .featured-main { padding: 0 4px 4px; }
.learn-hub .featured .kicker { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.learn-hub .featured-link { min-height: 40px; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .learn-hub .featured-card { grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: center; padding: 20px; }
  .learn-hub .featured h3 { font-size: 1.5rem; line-height: 2rem; }
}
.calc-card { padding: 20px; border: 1px solid var(--accent-container); border-radius: 20px; background: var(--mist); }
.learn-body .calc-card h2 { font-size: 1.125rem; line-height: 1.625rem; font-weight: 600; }
.calc-card h2 a { color: var(--fg); }
.calc-card-tools { display: grid; gap: 16px; margin-top: 12px; }
.calc-card-tool { display: grid; gap: 6px; align-content: start; font-size: .875rem; line-height: 1.375rem; color: var(--muted); }
.calc-card-tool + .calc-card-tool { padding-top: 16px; border-top: 1px solid var(--line); }
.calc-card-tool p { margin: 0; }
.calc-card-name { font-size: 1rem; font-weight: 500; }
@media (min-width: 1000px) {
  .calc-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; }
  .calc-card-tools { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 0; }
  .calc-card-tool + .calc-card-tool { padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--line); }
}
.learn-hub .topic-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.learn-hub > section > h2, .learn-hub .section-head h2, .learn-results-count { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.learn-hub .section-head h2 { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1000px) { .learn-hub > section > h2, .learn-hub .section-head h2 { font-size: 1.875rem; line-height: 2.375rem; } }
.learn-hub .section-head h2 .tdot { width: 12px; height: 12px; }
.guide-cards { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.guide-cards li + li { border-top: 1px solid var(--line); }
.guide-card { display: flex; align-items: center; gap: 16px; padding: 12px 0; color: var(--fg); text-decoration: none; }
.guide-card img { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.guide-card-text { display: grid; gap: 2px; }
.guide-card-title { font-size: 1.0625rem; line-height: 1.5rem; font-weight: 500; }
.guide-card-meta { color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.guide-card:hover .guide-card-title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 800px) {
  .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
  .guide-cards li + li { border-top: 0; }
  .guide-card { flex-direction: column; align-items: stretch; height: 100%; gap: 14px; padding: 12px 12px 20px; border: 1px solid var(--accent-container); border-radius: 20px; background: var(--lowest); }
  .guide-card img { width: 100%; height: auto; border-radius: 12px; }
  .guide-card-text { padding-inline: 4px; }
}
