/* charts.css — the /bazi/ and /human-design/ sections (26 Sep 2026). The
 * content came over from bazistrategist.com and kevinchiahd.com; the look is
 * the site-wide one. Loaded after kc.css on those pages only; uses kc.css
 * tokens. Bump ?v= on those pages when this changes. */

.crumbs { font: 500 12px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 28px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--red); }
.crumbs i { font-style: normal; margin: 0 6px; color: var(--line); }
.page-head .lede + .lede { margin-top: 14px; }
.page-head .btns { margin-top: 36px; }

/* Section switcher under the page head: the pages of this section */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.subnav a { font-weight: 700; font-size: 14px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Long-form reading column */
.big-prose { max-width: 68ch; }
.big-prose p { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.big-prose p + p { margin-top: 14px; }
.big-prose strong, .big-prose b { color: var(--ink); }
.big-prose a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.big-prose .h-s { margin: 8px 0 18px; }
.big-prose p + .h-s, .big-prose blockquote + .h-s { margin-top: 44px; }
.big-prose p.chap { font: 500 11.5px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin: 72px 0 10px; }
.big-prose p.chap:first-child { margin-top: 0; }
.big-prose .chap + .h-s { margin-top: 0; }

/* Pull quote */
.pull { margin: 36px 0; padding-left: 22px; border-left: 3px solid var(--red); font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--ink); max-width: 36ch; }

/* The proverb band on the Bazi hub */
.proverb { text-align: center; padding: 20px 0; }
.proverb .zh { font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-weight: 700; font-size: clamp(40px, 7.4vw, 112px); letter-spacing: .04em; line-height: 1.1; color: var(--ink); word-break: keep-all; }
.proverb .zh span { color: var(--red); }
.proverb .en { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(22px, 2.4vw, 32px); margin-top: 26px; color: var(--ink); }
.proverb p { color: var(--ink-2); max-width: 58ch; margin: 18px auto 0; }

/* Two columns: heading left, prose right */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two .prose p { font-size: 18px; line-height: 1.65; }

/* Facts card (Kevin's chart) */
.facts { background: var(--face); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 500 11px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--ink); }
.facts-cap { font: 500 11px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px 2px; }

/* "Which of these sounds familiar" */
.signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.signs .card { font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.signs .card i { display: block; font: 500 12px 'DM Mono', monospace; font-style: normal; color: var(--red-ink); letter-spacing: .1em; margin-bottom: 26px; }

/* The five HD types */
.types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.type { background: var(--face); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; }
.type h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; font-size: clamp(20px, 1.7vw, 24px); line-height: 1; }
.type .pct { font: 500 12px 'DM Mono', monospace; color: var(--red-ink); letter-spacing: .08em; margin: 10px 0 22px; }
.type .off, .type .on { font-size: 14.5px; line-height: 1.5; }
.type .off { color: var(--dim); }
.type .on { color: var(--ink); font-weight: 600; margin-top: auto; }
.type .arr { color: var(--red); font-weight: 800; margin: 10px 0; }
.type b { display: block; font: 500 10.5px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

/* Offers: free / data kit / foundation report, and the Bazi readings */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.offer { background: var(--face); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, border-color .25s; }
a.offer:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--ink); }
.offer.ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.offer .k { font: 500 12px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); }
.offer.ink .k { color: var(--red); }
.offer h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(26px, 2.4vw, 34px); line-height: .98; margin: 36px 0 8px; }
.offer .price { font-weight: 900; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; }
.offer .price small { font: 500 12px 'DM Mono', monospace; letter-spacing: .08em; color: var(--dim); margin-left: 6px; }
.offer p { color: var(--ink-2); font-size: 16px; }
.offer.ink p { color: rgba(255,255,255,.78); }
.offer .more { margin-top: auto; padding-top: 24px; font-weight: 800; }

/* Tick list */
.ticks { list-style: none; }
.ticks li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 17px; }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.ticks li b { color: var(--ink); }

/* Deconditioning steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps .card b { display: block; font-weight: 900; font-size: 64px; letter-spacing: -0.05em; line-height: 1; color: var(--red); margin-bottom: 18px; }
.steps .card h3 { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; margin-bottom: 8px; }
.steps .card p { color: var(--ink-2); font-size: 16px; }

/* Stats (Vivre chapter) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin: 36px 0; }
.stat { padding: 22px 18px 6px 0; border-right: 1px solid var(--line); min-width: 0; }
.stat + .stat { padding-left: 18px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-weight: 900; font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.05em; line-height: .95; }
.stat span { display: block; margin-top: 12px; font: 500 11.5px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); }

/* Product page hero: text left, cover right */
.prod-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.prod-head .cover { width: 100%; height: auto; max-width: 360px; justify-self: end; border-radius: 14px; box-shadow: var(--shadow); transform: rotate(3deg); aspect-ratio: 2 / 3; object-fit: cover; }
.price-line { font-weight: 900; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.05em; line-height: 1; margin-top: 28px; }
.price-line small { font: 500 12px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-left: 10px; }
.note { font: 500 12px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-top: 16px; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who .card h3 { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; }
.who .card p { color: var(--ink-2); font-size: 16px; }

/* Inverted closing panel */
.callout { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); }
.callout .label { color: rgba(255,255,255,.7); }
.callout .h-m { color: var(--bg); margin-bottom: 20px; }
.callout p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 58ch; }
.callout .btns { margin-top: 32px; }
.callout .btn.ghost { color: var(--bg); }

/* Previous / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: border-color .25s, transform .25s; }
.pg:hover { border-color: var(--ink); transform: translateY(-3px); }
.pg.next { text-align: right; }
.pg small { display: block; font: 500 11px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.pg b { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.small-print { margin-top: 40px; color: var(--dim); font-size: 14px; line-height: 1.6; max-width: 70ch; }
.small-print a { color: var(--ink-2); }

.faq details a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.faq-group { font: 500 11.5px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin: 64px 0 8px; }
.faq-group:first-child { margin-top: 0; }

.block > .narrow { padding-left: 0; padding-right: 0; }

@media (max-width: 1100px) {
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .who, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .two, .prod-head { grid-template-columns: 1fr; gap: 32px; }
  .prod-head .cover { justify-self: start; max-width: 260px; }
  .signs, .offers { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .big-prose p, .two .prose p { font-size: 17px; }
  .types, .who, .steps { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pg.next { text-align: left; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 18px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .offer, .callout { padding: 24px; }
}
.faq details > div p + p { margin-top: 12px; }
