:root {
  --ink: #211d36;
  --muted: #706a80;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --night: #19152f;
  --violet: #5f4a91;
  --violet-soft: #eee9f8;
  --gold: #c99b43;
  --gold-soft: #f6ead1;
  --rose: #b9637c;
  --line: #ded9e6;
  --shadow: 0 18px 50px rgba(38, 29, 67, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(201,155,67,.12), transparent 34rem),
    radial-gradient(circle at 100% 22%, rgba(95,74,145,.10), transparent 30rem),
    var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { min-width: 0; color: var(--ink); text-decoration: none; font-weight: 760; display: flex; align-items: center; gap: 10px; }
.brand-mark { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--night); background: var(--gold-soft); }
.brand-name { line-height: 1.25; }
.author { color: var(--muted); font-size: .9rem; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { min-height: 42px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--violet); text-decoration: none; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.site-nav a:hover { background: var(--violet-soft); }
.site-nav a.is-active { background: var(--night); color: white; }

main { overflow: hidden; }
.calculator-shell {
  max-width: 1180px;
  margin: 28px auto 72px;
  padding: 54px;
  border-radius: 38px;
  background: var(--night);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 70px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(25,21,47,.22);
  position: relative;
}
.calculator-shell::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(217,182,111,.25); transform: rotate(45deg); right: 27%; top: -190px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: .76rem; color: var(--gold); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 5.8rem); max-width: 760px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.lead { max-width: 660px; margin: 28px 0 0; color: #d5d1df; font-size: 1.14rem; }

.date-card { position: relative; z-index: 1; padding: 28px; background: white; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 10px; }
.date-card label { margin-top: 8px; font-size: .92rem; font-weight: 750; }
.date-card label span { font-weight: 400; color: var(--muted); }
.date-card input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); outline: none; }
.date-card input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(95,74,145,.12); }
.date-hint { margin-top: -3px; color: var(--muted); font-size: .82rem; }
.primary-button, .secondary-button { border: 0; border-radius: 15px; min-height: 56px; padding: 0 22px; font-weight: 760; }
.primary-button { margin-top: 12px; background: var(--gold); color: #201a0f; }
.primary-button:hover { background: #dbae54; }
.privacy-note, .launch-note { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.form-error { margin: 3px 0 0; color: #a62f4a; font-size: .88rem; }

.value-preview { max-width: 1180px; margin: 0 auto 90px; padding: 0 28px; }
.value-preview-heading { max-width: 820px; margin-bottom: 32px; }
.value-preview-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 1.06rem; }
.value-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value-card { display: flex; flex-direction: column; min-height: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 12px 32px rgba(38,29,67,.06); }
.value-card-featured { border-color: rgba(201,155,67,.55); background: linear-gradient(150deg, #fffdf8, #f8f1e3); }
.value-card-deep { border-color: transparent; background: linear-gradient(145deg, var(--night), #332756); color: white; }
.value-label { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.value-card-featured .value-label { background: var(--gold-soft); color: #7a5514; }
.value-card-deep .value-label { background: rgba(217,182,111,.16); color: #f0d28f; }
.value-card h3 { margin: 18px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.52rem; line-height: 1.16; }
.value-card > p { margin: 0; color: var(--muted); }
.value-card-deep > p { color: #d2ccdf; }
.value-card ul { margin: 20px 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; }
.value-card li { position: relative; padding-left: 25px; }
.value-card li::before { content: "✦"; position: absolute; left: 0; top: .05em; color: var(--gold); font-size: .8rem; }
.value-link { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 13px; background: var(--night); color: white; text-decoration: none; font-weight: 760; }
.value-link:hover { background: #2b244a; }
.value-link-light { border: 1px solid rgba(217,182,111,.55); background: transparent; color: #f3d99f; }
.value-link-light:hover { background: rgba(217,182,111,.12); }
.value-note { margin: 20px 0 0; color: var(--muted); font-size: .86rem; text-align: center; }

.results { max-width: 1180px; margin: 0 auto; padding: 0 28px 90px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.text-button { color: var(--violet); background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; }
.matrix-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 24px; }
.matrix-card, .summary-card { background: var(--surface); border: 1px solid rgba(95,74,145,.12); border-radius: var(--radius); box-shadow: var(--shadow); }
.matrix-card { padding: 30px; }
#matrix-svg { display: block; width: 100%; max-height: 660px; }
.matrix-lines polygon, .matrix-lines line { fill: none; stroke: #c8bddb; stroke-width: 2; }
.matrix-lines polygon:first-child { stroke: var(--gold); stroke-width: 3; }
.node circle { fill: white; stroke: var(--violet); stroke-width: 3; filter: drop-shadow(0 4px 6px rgba(50,39,76,.12)); }
.node.core circle { fill: var(--violet-soft); }
.node.center circle { fill: var(--night); stroke: var(--gold); stroke-width: 4; }
.node text { text-anchor: middle; dominant-baseline: central; font-size: 21px; font-weight: 800; fill: var(--ink); pointer-events: none; }
.node.center text { fill: white; }
.central-program-node text { font-size: 17px; }
.purchase-box select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; color: var(--muted); font-size: .82rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: white; border: 2px solid var(--violet); }
.legend-dot.core { background: var(--violet-soft); }
.legend-dot.center { background: var(--night); border-color: var(--gold); }
.summary-card { padding: 32px; align-self: start; position: sticky; top: 20px; }
.summary-kicker { margin: 0; color: var(--muted); }
.program { margin: 12px 0 22px; font-family: Georgia, serif; color: var(--violet); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.summary-card > p:not(.summary-kicker) { color: var(--muted); }
.core-list { margin: 28px 0 0; display: grid; gap: 12px; }
.core-list div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.core-list dt { color: var(--muted); }
.core-list dd { margin: 0; font-weight: 850; color: var(--violet); font-size: 1.3rem; }

.section-heading { max-width: 760px; margin: 90px 0 30px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }
.portrait-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.portrait-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.78); overflow: hidden; }
.portrait-card button { width: 100%; border: 0; background: transparent; padding: 20px; display: grid; grid-template-columns: 48px 1fr 28px; text-align: left; align-items: center; gap: 14px; color: var(--ink); }
.portrait-card button:hover { background: rgba(238,233,248,.55); }
.energy-badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-weight: 850; font-size: 1.15rem; }
.portrait-label { font-weight: 760; }
.toggle-icon { color: var(--muted); font-size: 1.4rem; transition: transform .2s; }
.portrait-card.open .toggle-icon { transform: rotate(45deg); }
.portrait-detail { padding: 0 20px 20px 82px; color: var(--muted); }
.portrait-detail h3 { margin: 0 0 12px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.portrait-detail p { margin: 0 0 12px; }
.portrait-detail p:last-child { margin-bottom: 0; }

.extended-section { margin-top: 90px; padding: 54px; border-radius: 34px; background: linear-gradient(135deg, var(--night), #332756); color: white; }
.extended-copy { max-width: 760px; }
.extended-copy > p:last-child { color: #d6d0e3; font-size: 1.06rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0; }
.topic-grid article { padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.055); }
.topic-grid span { color: var(--gold); font-size: .78rem; }
.topic-grid h3 { margin: 8px 0; }
.topic-grid p { margin: 0; color: #cfc9dc; font-size: .9rem; }
.secondary-button { background: var(--gold); color: #201a0f; }
.secondary-button:disabled { cursor: not-allowed; opacity: .7; }
.extended-section .launch-note { color: #aaa3bb; max-width: 620px; }
.purchase-box { max-width: 680px; display: grid; gap: 10px; padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.055); }
.purchase-box > div p { margin: 4px 0 10px; color: #cfc9dc; }
.purchase-box > label:not(.consent-row) { font-size: .9rem; font-weight: 700; }
.purchase-box > input { min-height: 52px; padding: 0 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: #fff; color: var(--ink); }
.payment-buttons { display: grid; gap: 12px; }
.payment-button-alt { border: 1px solid currentColor; background: transparent; color: #f8f4ff; }
.payment-button-alt:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; color: #cfc9dc; font-size: .82rem; }
.consent-row input { margin-top: 4px; }
.consent-row a { color: #f3d99f; text-underline-offset: 3px; }
.consent-row a:hover { color: white; }
.purchase-error { margin: 2px 0; color: #ffd0d8; font-size: .88rem; }
.purchase-box .field-invalid { outline: 3px solid rgba(255,116,143,.55); outline-offset: 2px; }
.purchase-box .consent-row.field-invalid { padding: 8px; border-radius: 9px; background: rgba(166,47,74,.18); color: #ffe1e7; }
.continuation-block { margin-top: 28px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.13); }
.continuation-intro { max-width: 760px; margin-bottom: 20px; }
.continuation-intro .eyebrow { margin-bottom: 8px; }
.continuation-intro h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.continuation-intro > p:last-child { margin: 0; color: #cfc9dc; }
.continuation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.continuation-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.045); }
.continuation-label { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.continuation-grid h4 { margin: 8px 0; font-size: 1.08rem; }
.continuation-grid p { margin: 0 0 18px; color: #cfc9dc; font-size: .9rem; }
.continuation-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(217,182,111,.55); border-radius: 12px; color: #f3d99f; text-decoration: none; font-weight: 750; }
.continuation-link:hover { background: rgba(217,182,111,.12); border-color: var(--gold); }

.method-section { max-width: 1180px; margin: 0 auto 90px; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.method-section > p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.site-footer { padding: 0 28px 30px; background: var(--night); color: #cfc9dc; }
.site-footer p { margin: 0; }
.footer-contact { max-width: 1180px; margin: 0 auto; padding: 52px 0 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: end; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-contact h2 { color: white; font-size: clamp(2rem, 4vw, 3.1rem); }
.footer-contact > div:first-child > p:last-child { max-width: 680px; margin-top: 16px; }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.footer-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; border: 1px solid rgba(217,182,111,.55); border-radius: 13px; color: #f3d99f; text-decoration: none; font-weight: 760; }
.footer-button:hover { border-color: var(--gold); background: rgba(217,182,111,.1); }
.footer-button-primary { background: var(--gold); color: #201a0f; border-color: var(--gold); }
.footer-button-primary:hover { background: #dbae54; color: #201a0f; }
.footer-grid { max-width: 1180px; margin: 0 auto; padding: 40px 0; display: grid; grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(150px, .8fr)); gap: 38px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h3 { margin: 0 0 15px; color: white; font-size: .95rem; }
.footer-brand h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { max-width: 390px; font-size: .9rem; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid a { color: #d8d3e2; text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: #f3d99f; text-decoration: underline; text-underline-offset: 3px; }
.footer-email { display: inline-block; margin-top: 15px; color: #f3d99f !important; }
.footer-legal { max-width: 1180px; margin: 0 auto; padding-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; color: #aaa3bb; font-size: .76rem; }
.footer-legal strong { color: #ddd7e7; }

/* Legal pages */
.legal-main { overflow: visible; }
.legal-hero { padding: 70px 28px 110px; background: linear-gradient(140deg, var(--night), #332756); color: white; }
.legal-hero-inner { max-width: 1000px; margin: 0 auto; }
.legal-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 6vw, 5rem); }
.legal-hero .lead { max-width: 800px; }
.legal-document { max-width: 1000px; margin: -62px auto 90px; padding: 54px 62px; border: 1px solid rgba(95,74,145,.12); border-radius: 30px; background: white; box-shadow: var(--shadow); position: relative; }
.legal-toc { margin: 0 0 44px; padding: 24px; border-radius: 18px; background: var(--violet-soft); }
.legal-toc strong { display: block; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 36px; }
.legal-toc li { break-inside: avoid; margin: 6px 0; }
.legal-toc a { color: var(--violet); }
.legal-notice { margin: 0 0 42px; padding: 20px 22px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: #fff9ec; }
.legal-section { scroll-margin-top: 20px; padding-top: 12px; }
.legal-section + .legal-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 22px; font-size: clamp(1.75rem, 3vw, 2.45rem); }
.legal-section h3 { margin: 28px 0 12px; font-size: 1.12rem; }
.legal-section p { margin: 0 0 14px; }
.legal-section ul, .legal-section ol { margin: 10px 0 20px; padding-left: 24px; }
.legal-section li { margin: 7px 0; }
.legal-definitions { display: grid; grid-template-columns: minmax(170px, .45fr) 1fr; margin: 22px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.legal-definitions dt, .legal-definitions dd { margin: 0; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.legal-definitions dt { font-weight: 760; background: #faf8fc; }
.legal-definitions dt:last-of-type, .legal-definitions dd:last-of-type { border-bottom: 0; }
.legal-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.legal-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table th { background: #f6f3f9; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table a { color: var(--violet); }
.legal-details { padding: 24px; border-radius: 18px; background: var(--night); color: #ded9e6; }
.legal-details strong { color: white; }
.legal-details a { color: #f3d99f; }
.back-link { display: inline-flex; margin-top: 26px; color: #f3d99f; text-decoration: none; font-weight: 700; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 850px) {
  .calculator-shell { margin: 12px 16px 60px; padding: 34px 24px; border-radius: 28px; grid-template-columns: 1fr; gap: 36px; }
  .matrix-layout, .method-section { grid-template-columns: 1fr; }
  .value-preview-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-contact { grid-template-columns: 1fr; gap: 24px; }
  .footer-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 580px) {
  .topbar { padding: 18px; flex-wrap: wrap; align-items: center; gap: 14px; }
  .brand { width: 100%; }
  .brand-name { font-size: 1rem; }
  .site-nav { order: 2; width: 100%; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border: 1px solid rgba(95,74,145,.12); border-radius: 14px; background: rgba(255,255,255,.7); }
  .site-nav a { min-width: 0; min-height: 40px; padding: 8px 10px; font-size: .82rem; white-space: normal; text-align: center; }
  .author { display: none; }
  .calculator-shell { padding: 28px 18px; }
  h1 { font-size: 3.15rem; }
  .date-card { padding: 20px; }
  .value-preview { padding-inline: 16px; margin-bottom: 64px; }
  .value-card { padding: 24px 20px; }
  .results { padding-inline: 16px; }
  .results-heading { align-items: start; flex-direction: column; }
  .matrix-card { padding: 12px; }
  .matrix-legend { display: none; }
  .portrait-grid, .topic-grid { grid-template-columns: 1fr; }
  .continuation-grid { grid-template-columns: 1fr; }
  .continuation-link { width: 100%; justify-content: center; }
  .portrait-detail { padding-left: 20px; }
  .extended-section { padding: 34px 20px; }
  .method-section { padding-inline: 18px; gap: 20px; }
  .site-footer { padding-inline: 18px; }
  .footer-contact { padding-top: 40px; }
  .footer-actions, .footer-button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .legal-hero { padding: 50px 18px 95px; }
  .legal-document { margin: -58px 14px 60px; padding: 28px 20px; border-radius: 22px; }
  .legal-toc ol { columns: 1; }
  .legal-definitions { grid-template-columns: 1fr; }
  .legal-definitions dt { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.payment-result { max-width: 760px; margin: 12vh auto; padding: 48px 28px; text-align: center; }
.payment-result h1 { color: var(--night); }
.payment-result > p:not(.eyebrow) { margin: 24px auto 32px; max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.result-link { display: inline-flex; align-items: center; text-decoration: none; }

.node.small text{font-size:17px}.node.edge text{font-size:18px}.node.core text{font-size:20px}.node.small circle,.node.edge circle{stroke-width:2;filter:none}.node.edge circle{fill:#fffdf8}

/* Internal nodes sit on exact line intersections; secondary nodes share the same rays. */
.node.outer text{font-size:20px}.node.core text{font-size:18px}.node.small text{font-size:14px}
.matrix-symbols text{font-family:"Segoe UI Symbol",Arial,sans-serif;text-anchor:middle;dominant-baseline:central;font-weight:700;fill:#987322}
.matrix-symbols .matrix-gender{font-size:27px}.matrix-symbols .matrix-heart{font-size:23px;fill:#bd5585}.matrix-symbols circle{fill:#fff9ec;stroke:#987322;stroke-width:2}.matrix-symbols .matrix-dollar{font-size:21px}

/* Compact additional energies alongside the matrix. */
.matrix-layout{grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);align-items:start}
.matrix-sidebar{display:grid;gap:16px;min-width:0}.matrix-sidebar .summary-card{position:static;padding:20px 22px}.matrix-sidebar .program{font-size:2.5rem;margin:6px 0 10px}.matrix-sidebar .summary-card>p:last-child{font-size:.85rem;margin:0;line-height:1.5}
.self-discovery-compact{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:8px 22px;box-shadow:var(--shadow)}
.self-discovery-compact article{padding:12px 0}.self-discovery-compact article+article{border-top:1px solid var(--line)}.self-discovery-compact h3{font-size:1rem;margin:0 0 8px}.self-discovery-compact p{font-size:.83rem;color:var(--muted);line-height:1.5;margin:8px 0 0}
.compact-equation{display:flex;align-items:center;justify-content:center;gap:10px;max-width:270px;margin:0 auto}.compact-operands{display:grid;gap:5px;flex:1;min-width:0}.compact-operands>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.compact-operands span{font-size:.76rem;color:var(--muted)}.compact-operands strong{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:1.5px solid var(--violet);border-radius:50%;font-size:.88rem;color:var(--violet);background:#fff}.compact-brace{font-family:Georgia,serif;font-size:64px;line-height:1;color:var(--violet);font-weight:400}.compact-result{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:2px solid var(--violet);border-radius:50%;color:var(--violet);background:var(--violet-soft);font-size:1.25rem}
.matrix-symbols .matrix-heart{font-size:19px}
.extended-section .purchase-box .consent-row a,.extended-section .purchase-box .consent-row a:visited{color:#f3d99f;text-decoration:underline;text-underline-offset:3px}.extended-section .purchase-box .consent-row a:hover,.extended-section .purchase-box .consent-row a:focus-visible{color:#fff}
@media(max-width:900px){.matrix-layout{grid-template-columns:1fr}.matrix-sidebar{grid-template-columns:1fr}.self-discovery-compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.self-discovery-compact article+article{border-top:0}.compact-equation{gap:5px}}
@media(max-width:580px){.matrix-sidebar .summary-card{padding:18px 20px}.self-discovery-compact{display:block;padding:6px 20px}.self-discovery-compact article+article{border-top:1px solid var(--line)}.compact-equation{max-width:245px;gap:10px}.self-discovery-compact p{font-size:.86rem}.compact-operands span{font-size:.8rem}}

/* Match both desktop cards without stretching the matrix itself. */
.matrix-layout{align-items:stretch}.matrix-card{display:flex;flex-direction:column;justify-content:center}.matrix-card #matrix-svg{margin-block:auto}.matrix-legend{margin-top:0;padding-top:18px}
.matrix-sidebar .core-subtitle{font-size:.96rem;line-height:1.45;color:var(--ink);font-weight:750;margin:10px 0 12px}.self-discovery-compact .core-subtitle{font-size:.88rem;line-height:1.45;color:var(--ink);font-weight:750;margin:0 0 12px}.compact-equation{max-width:100%}.compact-operands span{line-height:1.4}.self-discovery-compact article>p:last-child{font-size:.86rem}
@media(max-width:900px){.matrix-card{display:block}.matrix-legend{margin-top:0}}

/* Six free portrait areas; two paid descriptions remain in the private PDF library. */
.portrait-label small{display:block;margin-top:5px;font-size:.75rem;font-weight:500;color:var(--muted);line-height:1.4}
.portrait-card-locked .portrait-label small{color:#806020;font-weight:700}
.portrait-card-locked{background:#fcfaf5}
.portrait-lock-link{display:inline-flex;align-items:center;gap:8px;color:var(--violet);font-weight:750;text-underline-offset:3px}
.portrait-lock-link:hover,.portrait-lock-link:focus-visible{color:var(--ink)}
#pdf-purchase{scroll-margin-top:28px}
.purchase-box .pdf-sample-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:#f3d99f;font-weight:750;text-underline-offset:4px}
.purchase-box .pdf-sample-link:visited{color:#f3d99f}
.purchase-box .pdf-sample-link:hover,.purchase-box .pdf-sample-link:focus-visible{color:#fff}
.purchase-box .pdf-sample-link:focus-visible{outline:2px solid #f3d99f;outline-offset:4px;border-radius:3px}
.purchase-box .pdf-sample-note{margin:0 0 14px;color:#cfc9dc;font-size:.84rem;line-height:1.55}
