/* LoreOrbit V2 — night-sky navigation, paper mastheads and an editorial reading canvas. */
@font-face { font-family: DM; src: url('/assets/dm-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: DM; src: url('/assets/dm-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: DM; src: url('/assets/dm-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Cormorant; src: url('/assets/cormorant-400.woff2') format('woff2'); font-display: swap; }

:root {
  --night: #19152b;
  --iris: #302347;
  --ink: #241c33;
  --muted: #635a71;
  --canvas: #f7f5fa;
  --white: #fffdff;
  --line: #dcd4e7;
  --mist: #ece4f6;
  --plum: #572e85;
  --bright: #d6bbf8;
  --radius: 20px;
  --content: 1270px;
  --edge: clamp(18px, 4vw, 64px);
  --sans: DM, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: Cormorant, 'Songti SC', 'Noto Serif CJK SC', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 17px/1.65 var(--sans); overflow-wrap: break-word; }
[hidden] { display: none !important; }
a { color: var(--plum); text-decoration-thickness: .06em; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid #9364ce; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; flex-shrink: 0; }
figure, dl { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 9px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0 0 .42em; font-family: var(--serif); font-weight: 400; line-height: 1.05; text-wrap: pretty; }
h1 { font-size: clamp(43px, 6vw, 92px); letter-spacing: -.036em; }
h2 { font-size: clamp(31px, 4.5vw, 58px); letter-spacing: -.022em; }
h3 { font-size: clamp(23px, 2.7vw, 36px); }
h4 { font: 700 1.08rem/1.35 var(--sans); }
:lang(zh) h1 { font-size: clamp(34px, 5vw, 70px); line-height: 1.19; letter-spacing: -.035em; }
:lang(zh) h2 { font-size: clamp(25px, 3vw, 44px); line-height: 1.25; }
:lang(zh) h3 { font-size: clamp(21px, 2vw, 30px); line-height: 1.3; }
ul, ol { padding-inline-start: 1.4em; }
li + li { margin-top: .35em; }
.wrap { width: min(var(--content), calc(100% - 2 * var(--edge))); margin-inline: auto; }
.eyebrow { font: 700 .81rem/1.45 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--plum); }
.eyebrow:empty, .official-action:empty, .bk-actions:empty, .finish-table-hint:empty { display: none; }
.skip, .skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 10px 16px; background: white; }
.skip:focus, .skip-link:focus { top: 16px; }
.review-accessible-title, #reading-tool:has(.card-back:disabled) #switch-message {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0;
}

/* Global navigation. */
.v2-topbar { position: sticky; z-index: 20; top: 0; color: #f9f1ff; background: var(--night); border-bottom: 1px solid #f1d6ff25; }
.v2-header-frame { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.5vw, 24px); }
.v2-header-frame .loreorbit-lockup { flex: 0 1 185px; min-width: 105px; }
.v2-header-frame .loreorbit-logo, .v2-footer .loreorbit-logo { width: 100%; }
#main-nav { display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); margin-left: auto; }
#main-nav details { position: relative; }
summary { cursor: pointer; }
#main-nav summary { display: flex; align-items: center; gap: 8px; list-style: none; min-height: 44px; font-size: .89rem; font-weight: 700; white-space: nowrap; padding-inline: 7px; }
#main-nav summary::-webkit-details-marker { display: none; }
#main-nav summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
#main-nav details[open] summary { color: var(--bright); }
.ex-dropdown { position: absolute; top: calc(100% + 4px); left: 0; width: clamp(240px, 25vw, 340px); max-height: min(64vh, 530px); overflow-y: auto; background: var(--white); border: 1px solid var(--line); color: var(--ink); border-radius: 13px; box-shadow: 0 16px 42px #0e092a39; padding: 8px; }
.ex-nav-group:last-child .ex-dropdown { left: auto; right: 0; }
.ex-dropdown a { display: block; padding: 9px 12px; color: inherit; text-decoration: none; border-radius: 7px; font-size: .9rem; line-height: 1.4; }
.ex-dropdown a:hover, .ex-dropdown a:focus-visible { background: var(--mist); }
.header-actions { display: flex; gap: 11px; align-items: center; }
.v2-header-frame :is(.language, .review-switch, .header-cta) { text-decoration: none; color: inherit; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.v2-header-frame .header-cta { padding: 9px 14px; border-radius: 9px; background: var(--bright); color: var(--night); }
.v2-header-frame .header-cta span { margin-inline-start: 6px; }
.v2-header-frame :is(.menu, .menu-toggle) { display: none; }
.reading-progress { position: fixed; top: 71px; left: 0; width: 100%; height: 3px; z-index: 21; background: #b991e8; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.preview-note, .v2-header-frame .brand-sub { display: none; }

/* Shared links, actions and utility navigation. */
:is(.pill, .button, .path-action, .path-review, .header-cta, .af-primary-link, .cf-brand-button) {
  display: inline-flex; justify-content: center; align-items: center; gap: .48em;
  min-height: 44px; padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--white); color: var(--plum); font: 700 .96rem/1.26 var(--sans); text-align: center; text-decoration: none;
  transition: background-color .16s, border-color .16s;
}
:is(.pill.solid, .button:not(.outline,.outline-light), .path-action, .af-primary-link, .cf-brand-button) { color: #fff; background: var(--plum); border-color: var(--plum); }
:is(.pill, .button, .path-review):hover { background: var(--mist); color: var(--plum); }
:is(.pill.solid,.path-action,.af-primary-link,.cf-brand-button):hover { background: #3f1d65; color: white; }
:is(.text-link, .text-button, .bk-review) { font-weight: 700; }
.text-link span { margin-inline-start: .35em; }
:is(.ex-links,.af-inbound-links,.cf-guide-links,.rc-links,.audit-related,.fp-bridge-links,.bk-links,.cf-inline-brands,.cp-next-links,.fp-meaning-links,.fp-quick,.bd-links,.ex-quick,.rc-topic-pointers) {
  display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center;
}
:is(.ex-links,.af-inbound-links,.cf-guide-links,.rc-links,.audit-related,.fp-bridge-links,.bk-links,.cf-inline-brands,.cp-next-links,.fp-meaning-links,.fp-quick,.bd-links,.ex-quick,.rc-topic-pointers) > a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 7px 13px; background: var(--white); color: var(--plum); border: 1px solid var(--line);
  border-radius: 8px; font-size: .92rem; line-height: 1.45; text-decoration: none;
}
:is(.ex-links,.af-inbound-links,.cf-guide-links,.rc-links,.audit-related,.fp-bridge-links,.bk-links,.cf-inline-brands,.cp-next-links,.fp-meaning-links,.fp-quick,.bd-links,.ex-quick,.rc-topic-pointers) > a:hover { background: var(--mist); }

/* Homepage. Keep the approved panorama, including its responsive crop. */
.hero-shell { background: var(--night); padding: 20px var(--edge) 24px; }
.hero.panorama {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 13px;
  width: min(1440px,100%); min-height: clamp(397px,34vw,560px); padding: 36px 5% clamp(65px,7vw,108px);
  background: #f6e5cc; border-radius: 14px; color: #2e221f;
}
.hero-art { position: absolute; z-index: -1; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.panorama > :is(.eyebrow,h1,.hero-description,.hero-buttons) { max-width: 48%; margin: 0; }
.panorama .eyebrow { color: #6f3326; }
.panorama h1 { font-size: clamp(45px,5.3vw,83px); }
:lang(zh) .panorama h1 { max-width: 48%; font-size: clamp(37px,4.75vw,70px); }
.panorama .hero-description { font-size: clamp(16px,1.4vw,20px); line-height: 1.48; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.panorama .pill { background: #fff4e7; color: #713a30; border-color: #a66755; }
.panorama .pill.solid { background: #9e342c; color: white; border-color: #9e342c; }
.section-heading { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(230px,.85fr); align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 0; }
.reader-section { padding-block: clamp(35px,5vw,72px); background: #ede5f4; border-bottom: 1px solid var(--line); }
:is(.brand-grid, .path-grid, .cf-need-grid, .quick-answers, .editorial-layout, .reading-grid) { display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }
:is(main > .section, main > .cf-needs, main > .quick-answers, main > .ex-added, main > .rc-module, main > .cf-health, main > .cf-directory-brands) { margin-block: clamp(33px,5vw,70px); }
.topic-rail { background: var(--iris); color: #faf4ff; padding-block: 14px; }
.rail-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.rail-inner a { color: #fff; }
.reading-section { padding-block: 42px; background: var(--iris); color: #faf4ff; }
.reading-section .eyebrow, .reading-section .text-link { color: var(--bright); }
.reading-grid, .editorial-layout { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; }
.reading-grid img, .editorial-layout img { border-radius: 14px; }
.v2-main > .af-inbound { width: min(var(--content), calc(100% - 2 * var(--edge))); margin: 30px auto; }
:is(.path-card,.cf-need-card,.route-tile,.answer-section) { border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(15px,2.2vw,26px); background: var(--white); min-width: 0; }
.path-card { display: flex; flex-direction: column; align-items: flex-start; }
.path-card .path-image { display: block; position: relative; width: 100%; }
.path-card .path-image img, .route-tile .tile-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 11px; margin-bottom: 14px; }
.path-card .image-label, .cf-need-symbol { color: var(--plum); font-size: .9rem; }
.path-card > .pill { margin-top: auto; }
.cf-need-card { display: grid; align-content: start; text-decoration: none; color: var(--ink); border-inline-start: 4px solid #9f76c1; }
.cf-need-card:hover { background: #f2ebfa; }
.cf-need-card p { margin: .5em 0; }
.cf-need-card .cf-card-link { color: var(--plum); font-weight: 700; }

/* Interior mastheads and reading layout. */
.v2-masthead { background: radial-gradient(ellipse at 90% 20%,#473258 0%,transparent 55%),var(--night); color: #fff5ff; }
.v2-masthead-inner { padding-block: 20px clamp(28px,4vw,62px); }
.v2-masthead-inner :is(.eyebrow,.fp-breadcrumbs a, .fp-guide-extras a) { color: #e1ccf9; }
.fp-breadcrumbs, .fp-crumb-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; }
.fp-breadcrumbs { justify-content: space-between; font-size: .88rem; margin-bottom: clamp(14px,3vw,40px); }
.fp-breadcrumbs a { text-decoration: none; }
.fp-breadcrumbs a:hover { text-decoration: underline; }
.fp-current { color: var(--ink); }
.v2-masthead .fp-current { color: #f0e4fa; }
:is(.article-heading-layout,.ex-hero-grid):has(> :is(figure,.ex-artwork)) { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: center; gap: clamp(20px,5vw,72px); }
:is(.article-heading-layout,.ex-hero-grid) :is(.lede,.ex-deck) { font-size: clamp(17px,1.7vw,22px); line-height: 1.54; max-width: 60ch; color: #e9dff3; }
:is(.editorial-cover,.ex-artwork) img:not(.ex-art-brand) { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
:is(.editorial-cover,.ex-artwork) figcaption { color: #dfcfe9; }
.v2-masthead .fp-quick { margin-top: 21px; }
.v2-masthead :is(.fp-quick,.ex-quick) > a { color: #f8ecff; border-color: #b38cc477; background: #ffffff13; }
.v2-masthead :is(.fp-quick,.ex-quick) > a:hover { background: #ffffff2b; }
.article-grid { display: grid; grid-template-columns: minmax(180px,232px) minmax(0,1fr); gap: clamp(24px,4vw,64px); align-items: start; margin-block: clamp(30px,5vw,65px); }
.article-grid:not(:has(.reading-sidebar)) { grid-template-columns: minmax(0,1fr); }
.reading-sidebar { position: sticky; top: 94px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
#page-toc { display: grid; gap: 3px; margin-top: 10px; max-height: min(54vh,460px); overflow: auto; scrollbar-width: thin; }
#page-toc a { display: block; min-height: 35px; padding: 6px 9px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .91rem; line-height: 1.35; }
#page-toc a:is(:hover,.active,[aria-current]) { border-color: var(--plum); color: var(--plum); background: var(--mist); }
.sidebar-bottom { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .94rem; }
.article-body { min-width: 0; }
.v2-site-info > .site-info-section {
  padding: clamp(16px,3.4vw,28px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  margin-block: 16px;
}
.v2-site-info h2 { font-size: clamp(27px,3.2vw,42px); }
.v2-site-info > a { display: inline-flex; align-items: center; min-height: 44px; }
.v2-site-info .ex-links { margin-top: 16px; }
.article-body > :is(section,div,aside,figure,nav) + :is(section,div,aside,figure,nav) { margin-top: clamp(22px,3vw,40px); }
.article-body :is(.content-section,.fp-fieldnotes,.rc-module,.bk-section,.cp-lesson) { border-top: 1px solid var(--line); padding-top: 23px; }
.article-body :is(.content-section,.rc-prose) > :is(p,ul,ol) { max-width: 72ch; }
.article-body .content-section h2 { font-size: clamp(29px,3.3vw,47px); }
.article-body :is(h2,h3,h4) { scroll-margin-top: 10px; }
.article-body :is(.paper-article-figure,.knowledge-art,.fp-scene,.finish-interface,.card-study) { margin-block: 22px; }
.article-body :is(.paper-article-figure,.knowledge-art,.fp-scene,.finish-interface) img { border-radius: 13px; max-height: 570px; object-fit: contain; }
:is(.knowledge-panel,.exercise,.checklist,.cp-lesson,.fp-bridge,.rc-module,.af-inbound,.cf-best-fit,.fp-context,.bk-faq,.answer-section,.next-step,.ex-answer,.bd-review-nav,.rc-email-entry) {
  padding: clamp(16px,2.8vw,30px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
}
:is(.knowledge-panel,.fp-context,.cf-best-fit,.bk-faq,.rc-email-entry,.exercise) { background: #f0e9f8; }
:is(.knowledge-nodes,.ex-study-grid,.fp-observation-grid,.type-grid,.route-tiles,.cf-fit-questions,.cp-cards,.card-index) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
}
:is(.knowledge-node,.ex-study-cell,.fp-point,.type-card,.cf-fit-question,.cp-card,.ex-number-card) {
  min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--white); border-radius: 10px;
}
:is(.knowledge-index,.ex-index,.cf-fit-number,.cp-num) { color: var(--plum); font-size: .86rem; font-weight: 700; }
:is(.fp-notes-logo,.cp-art-logo,.ex-diagram-brand,.ex-art-brand) img { width: min(154px,100%); }
:is(.table-scroll,.bk-table-wrap) { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-block: 14px; }
table { border-collapse: collapse; width: 100%; background: var(--white); font-size: .96rem; line-height: 1.5; }
th, td { padding: 11px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #302345; color: #fff; }
th a { color: #fff; }
tr:nth-child(even) td { background: #f4effa; }
:is(.table-scroll,.bk-table-wrap) table { min-width: min(100%,520px); }
.finish-table-hint { margin-bottom: 4px; color: var(--muted); font-size: .85rem; }
details > summary > svg { width: 19px; height: 19px; }
main details:not(.ex-nav-group) > summary { color: var(--plum); font-weight: 700; padding: 9px 0; }
main details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }

/* Review and directory surfaces. */
.ex-directory { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 22px 44px; }
.ex-directory-context { margin-block: 25px; }
:is(.brand-card,.ex-topic,.bk-card,.af-platform-card,.cf-platform-card,.finish-review-option,.rc-decision) { min-width: 0; padding: clamp(14px,2vw,23px); border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
:is(.brand-card,.ex-brand-directory .ex-topic,.bk-card) { box-shadow: 0 10px 22px #27123b0a; }
:is(.cf-platform-grid,.af-platform-grid,.service-grid,.bk-cards) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(270px,100%),1fr)); gap: 15px; }
.cf-filters { margin-block: 18px; padding: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #efe8f6; border-radius: 12px; }
.cf-filters > span { font-weight: 700; margin-right: 6px; }
.cf-filters > p { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); }
.cf-filters button { background: var(--white); border-radius: 8px; border: 1px solid var(--line); padding: 8px 12px; color: var(--ink); min-height: 42px; }
.cf-filters button[aria-pressed="true"] { background: var(--iris); color: white; border-color: var(--iris); }
:is(.brand-card,.ex-topic-body,.bk-card,.cf-platform-card,.af-platform-card) :is(h2,h3) { margin-top: .52em; }
.ex-brand-directory h2 { font-size: 34px; }
.choice-bar { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; margin-block: 10px 13px; }
.choice-bar a { max-width: 100%; }
.path-logo { display: inline-flex; align-items: center; justify-content: flex-start; max-width: 100%; text-decoration: none; }
:is(.path-logo,.cf-logo,.af-logo,.rc-logo,.bk-logo,.review-logo,.brand-logo-box) > img[src*="/brands/"] { width: auto; height: auto; max-width: min(190px,100%); max-height: 50px; object-fit: contain; }
:is(.path-logo,.cf-logo,.af-logo,.rc-logo,.bk-logo,.review-logo,.brand-logo-box):has(>img[src*="/brands/"]) {
  min-height: 66px; min-width: 0; padding: 7px 12px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; background: #fffaf5;
}
:is(.path-logo,.cf-logo,.af-logo,.rc-logo,.bk-logo,.review-logo,.brand-logo-box):has(>img:is([src*="mysticsense"],[src*="oranum"])) { background: #292435; }
img[src*="kasamba-official-20261114"] { max-height: 49px; width: auto; }
img[src*="purple-garden-official-20261114"] { max-height: 50px; width: auto; }
img[src*="blossom-logo-picture"] { max-width: 31px !important; }
img[src*="blossom-logo-text"] { max-width: min(155px,calc(100% - 38px)) !important; }
:is(.finish-review-option,.rc-decision,.cf-brand-desc) + :is(.finish-review-option,.rc-decision) { margin-top: 10px; }
.cf-tags { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-block: 10px; font-size: .89rem; }
.cf-tags a { color: var(--plum); }
.bk-brand-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; }
.bk-tag, .brand-format { color: var(--muted); font-weight: 700; margin-block: 8px; }
.bk-brand-head:empty { display: none; }
.bk-fields > div { display: grid; gap: 4px 13px; grid-template-columns: minmax(105px,.6fr) minmax(0,1.6fr); padding-block: 10px; border-top: 1px solid var(--line); }
.bk-fields dt { font-weight: 700; }
.bk-fields dd { margin: 0; }
.bk-actions { margin-top: 10px; }
.v2-masthead [data-path-card] .choice-bar { margin-block: 14px; }
.v2-masthead [data-path-card] .path-action { background: var(--bright); color: var(--night); border-color: var(--bright); }
.v2-masthead [data-path-card] .path-review { background: #fff0; color: white; border-color: #bca8d5; }
.v2-masthead [data-path-card] .path-review:hover { background: #ffffff20; }
.bd-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.bd-links a { justify-content: space-between; }
.bd-links svg { width: 18px; height: 18px; }
:is(.cf-brand-strip,.bk-jumps,.ex-footer-links) { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

/* Tools and instructional plates. */
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
input:not([type="radio"],[type="checkbox"]), select, textarea {
  min-width: 0; max-width: 100%; padding: 9px 12px; border: 1px solid #ae9abf; border-radius: 8px;
  color: var(--ink); background: var(--white); min-height: 44px;
}
input:is([type="radio"],[type="checkbox"]) { accent-color: var(--plum); }
textarea { width: 100%; resize: vertical; }
.form-field, .note-field { display: grid; gap: 4px; margin-block: 12px; }
.form-field label, .note-field label, legend { font-weight: 700; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; padding: 10px 14px; }
:is(.draw-actions,.button-row,.reading-controls,.stats-row) { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.text-button { border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--plum); padding: 8px 13px; min-height: 44px; }
:is(.result-box,.tool-status,.confirm-panel,.journal-entry,.reference-item) { background: #f2edf7; border-radius: 9px; padding: 12px 15px; color: var(--ink); }
.tool-status:empty { display: none; }
#reading-tool {
  width: min(1110px, calc(100% - 2 * var(--edge))); margin: 34px auto;
  padding: clamp(15px,4vw,46px); border-radius: var(--radius); color: #f7edff;
  background: radial-gradient(ellipse at top,#463255,#221931 78%);
  --line: #c6abdf88;
}
#reading-tool h2 { max-width: 28ch; }
#reading-tool :is(.button.paper,.text-button) { background: var(--bright); color: var(--night); border-color: var(--bright); }
#reading-tool .button.outline-light { background: #fff0; color: white; }
#reading-tool :is(#clear-reading,.text-button.light) { background: #3b2b51; color: white; }
#reading-tool #print-reading { display: none; }
#reading-tool .dealt-cards { max-width: 750px; margin: 18px auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(5px,1.3vw,15px); }
.draw-slot { min-width: 0; }
.position-label { min-height: 2.4em; line-height: 1.25; display: block; font-weight: 700; }
.preset-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.preset-options label { display: flex; align-items: start; gap: 6px; padding: 8px; border-radius: 8px; }
.preset-options label:has(:checked) { background: #f5dafa25; }
.preset-options small { display: block; opacity: .93; font-size: .83rem; }
.card-back { display: grid; place-items: center; width: 100%; aspect-ratio: 3/5; padding: 10px; color: white; background: #271832 url('/assets/reader-desk/card-back-botanical.webp') center/cover; border: 1px solid #d6bbe688; border-radius: 10px; }
.back-frame { display: grid; gap: 8px; justify-items: center; padding: 4px; }
.back-symbol { font-size: 1.45rem; }
.back-small { font-size: clamp(.57rem,1vw,.75rem); background: #23122acf; padding: 2px 4px; line-height: 1.1; border-radius: 4px; }
.reveal-card img, .card-illustration img, img.card-illustration { margin-inline: auto; width: auto; max-width: 100%; max-height: 350px; border-radius: 7px; }
.reveal-card { background: #fffbf1; color: var(--ink); border-radius: 9px; text-align: center; font-size: .9rem; padding: 5px; }
#reading-result { margin-top: 15px; padding: 13px; border-radius: 10px; background: #fff9ff; color: var(--ink); }
#reading-result a { color: var(--plum); }
.free-art img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; }
.card-study { display: grid; grid-template-columns: minmax(130px,.6fr) minmax(0,1fr); align-items: start; gap: 15px; }
:is(.card-index,.hex-index,.hex-grid) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(125px,100%),1fr)); gap: 10px; }
:is(.card-index-item,.hex-cell) { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.index-card-art img { height: 145px; width: 100%; object-fit: contain; margin-bottom: 9px; }
.hex-lines { display: grid; gap: 4px; width: 45px; margin-bottom: 6px; }
.hex-line { display: block; height: 4px; background: var(--plum); border-radius: 2px; }
.hex-line.broken { background: linear-gradient(to right,var(--plum) 43%,transparent 43% 57%,var(--plum) 57%); }
.teaching-diagram {
  display: grid; place-items: center; padding: clamp(8px,2.5vw,22px);
  border: 1px solid var(--line); border-radius: 13px; background: var(--white);
}
.teaching-diagram svg { display: block; width: 100%; height: auto; max-height: 610px; fill: var(--iris); font-family: var(--sans); }
.layer-diagram { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 10px; padding: 12px; background: var(--mist); border-radius: 12px; }
.layer-diagram > div { padding: 12px; background: var(--white); border-radius: 8px; }
.diagram-caption { margin-top: 10px; font-size: .94rem; color: var(--muted); }
.print-only { display: none; }

/* Purpose-built presentation for directories and reviews. */
.v2-brand-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px;
  padding: 10px; margin-bottom: 13px; border-radius: 11px;
  border: 1px solid #e4dbe9; background: #f5effa;
}
.v2-brand-actions > .choice-bar { margin: 0; }
.v2-brand-actions > .path-logo { min-width: 0; }
.v2-brand-actions :is(.af-primary-link,.path-review) { color: var(--plum); background: var(--white); border-color: var(--line); }
.v2-brand-actions .path-review:hover { background: var(--mist); color: var(--plum); }
.v2-masthead .v2-brand-actions { padding: 0; margin: 0; border: 0; background: none; }
.v2-masthead [data-path-card] .v2-brand-actions .choice-bar { margin: 0; }
@media (max-width: 505px) {
  .v2-brand-actions > .choice-bar { width: 100%; }
  .v2-brand-actions { gap: 8px; }
}
.ex-artwork { position: relative; }
img.ex-art-brand { position: absolute; bottom: 10px; right: 10px; width: min(110px,38%); height: auto; padding: 3px 5px; border-radius: 5px; background: #19152bcc; }
.v2-masthead .ex-hero-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: clamp(16px,4vw,58px); }
.v2-masthead .ex-hero-grid h1 { font-size: clamp(40px,5.1vw,75px); }
:lang(zh) .v2-masthead .ex-hero-grid h1 { font-size: clamp(32px,4.4vw,62px); }
[data-v2-layout="review"] .v2-masthead .article-heading-layout > [data-path-card] {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
}
[data-v2-layout="review"] .v2-masthead [data-path-card] > :is(.lede,.official-action) { flex: 1 0 100%; }
[data-v2-layout="review"] .v2-masthead [data-path-card] .choice-bar { margin: 0; }
#reading-tool .eyebrow, .reading-section .eyebrow { color: #e1c9fa; }
.bk-table caption { padding: 8px 10px; text-align: start; color: var(--muted); }
@media (max-width: 760px) {
  .v2-masthead .ex-hero-grid { grid-template-columns: minmax(0,1fr); }
  [data-v2-layout="review"] .v2-masthead [data-path-card] .choice-bar { width: 100%; }
}
@media (max-width: 360px) {
  .v2-header-frame .loreorbit-lockup { min-width: 85px; }
  .v2-header-frame .header-cta { white-space: normal; text-align: center; line-height: 1.15; }
}

/* Article tools, buying guides and topic navigation. */
.v2-tool-page main :is(.exercise:where(form),#journal-app,#ex-compare-form,#ex-year-form,#route-picker) {
  padding: clamp(17px,3.2vw,32px);
  background: #eee7f7;
  border: 1px solid #cdbbde;
  border-radius: var(--radius);
}
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(135px,100%),1fr)); gap: 10px;
  margin-block: 13px;
}
.form-grid > div { display: grid; align-content: end; gap: 5px; min-width: 0; }
.form-grid label { font-size: .94rem; font-weight: 700; }
form > :is(.result-box, .exercise) { margin-top: 14px; }
.result-box:empty { display: none; }
.journal-entry + .journal-entry { margin-top: 12px; }
#journal-app form > button { margin-block: 8px; }
main :is(details.cf-topic-guide, details.faq, details.cf-card-detail) > summary {
  display: flex; align-items: center; gap: 8px; justify-content: space-between; list-style: none;
}
main :is(details.cf-topic-guide, details.faq, details.cf-card-detail) > summary::-webkit-details-marker { display: none; }
details.cf-topic-guide {
  margin-block: 10px; padding-inline: 16px; border: 1px solid var(--line);
  background: var(--white); border-radius: 11px;
}
main details.cf-topic-guide > summary { min-height: 52px; font-size: 1.04rem; }
.cf-topic-copy { padding-block: 3px 16px; }
.cf-topic-guide summary > span[aria-hidden="true"] {
  font-size: 0; display: grid; place-items: center; flex: 0 0 27px;
  height: 27px; border-radius: 50%; background: var(--mist);
}
.cf-topic-guide summary > span[aria-hidden="true"]::after { content: '+'; font-size: 18px; font-weight: 500; }
.cf-topic-guide[open] summary > span[aria-hidden="true"]::after { content: '−'; }
.cf-card-detail summary::after { content: '+'; font-size: 1.15rem; font-weight: 500; }
.cf-card-detail[open] summary::after { content: '−'; }
blockquote {
  margin: 12px 0; padding: 8px 15px;
  background: var(--mist); border-inline-start: 3px solid #9f77bf; border-radius: 0 8px 8px 0;
}
:is(.cf-best-fit,.bk-section) + :is(.cf-best-fit,.bk-section) { margin-top: 25px; }
:is(.cp-lesson,.fp-fieldnotes,.bk-section) > :is(.bk-links,.cf-inline-brands,.cp-next-links) { margin-top: 14px; }
:is(.cf-fit-budget,.fp-bridge,.audit-official,.overview-check) a:not(.path-action):not(.path-review) { font-weight: 700; }
.audit-official a {
  display: inline-flex; padding: 10px 14px; align-items: center; min-height: 44px; border-radius: 9px;
  color: var(--white); background: var(--plum); text-decoration: none;
}
[data-v2-layout="home"] :is(.section-heading .eyebrow,.image-label) { display: none; }
:is(.cf-inline-brands,.rc-topic-pointers) { margin-top: 12px; }

/* Footer directory. */
.v2-footer { margin-top: 16px; background: var(--night); color: #f6ebff; padding-block: 24px 30px; }
.v2-footer a { color: inherit; }
.v2-footer :is(.footer-main,.footer-top,.footer-bottom,.footer-links) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.v2-footer :is(.footer-main,.footer-top,.footer-bottom) { padding-block: 12px; }
.v2-footer .loreorbit-logo { width: 186px; }
.v2-footer .footer-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; border-block: 1px solid #e7c4ff36; padding-block: 18px; }
.v2-footer h2 { font: 700 1rem/1.4 var(--sans); margin-bottom: 7px; color: #ddc5fa; }
.v2-footer .footer-directory a { display: table; padding-block: 3px; font-size: .96rem; text-decoration: none; }
.v2-footer .footer-directory a:hover { text-decoration: underline; }
.v2-footer .back-top { justify-self: start; color: var(--bright); }
body[data-v2-layout="error"] main { padding-block: 60px; }

@media (max-width: 960px) {
  .v2-header-frame { min-height: 65px; }
  .reading-progress { top: 64px; }
  #main-nav { display: none; position: absolute; top: 100%; right: var(--edge); width: min(430px,calc(100vw - 2 * var(--edge))); padding: 10px 16px; max-height: 72vh; overflow: auto; align-items: stretch; color: white; background: var(--iris); border-radius: 0 0 13px 13px; box-shadow: 0 12px 30px #100c2f48; }
  #main-nav.open { display: block; }
  #main-nav details + details { border-top: 1px solid #ead9ff32; }
  #main-nav summary { justify-content: space-between; }
  #main-nav .ex-dropdown { width: 100%; position: static; max-height: none; box-shadow: none; margin-bottom: 9px; }
  .v2-header-frame :is(.menu,.menu-toggle) { display: inline-grid; place-items: center; align-content: center; gap: 5px; width: 42px; height: 42px; padding: 6px; border-radius: 9px; border: 1px solid #e9d6ff55; background: none; color: white; }
  .v2-header-frame :is(.menu,.menu-toggle) span { display: block; height: 2px; width: 18px; background: white; border-radius: 2px; }
  .v2-header-frame .menu-toggle { font-size: 22px; line-height: 1; flex-shrink: 0; }
  .brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 126px; }
  body { font-size: 16px; }
  .section-heading, .article-grid, .reading-grid, .editorial-layout { grid-template-columns: minmax(0,1fr); }
  .article-grid { gap: 14px; }
  .reading-sidebar { z-index: 10; top: 65px; padding: 5px; border-radius: 9px; }
  .reading-sidebar .eyebrow, .sidebar-bottom { display: none; }
  #page-toc { display: flex; overflow-x: auto; margin: 0; scrollbar-width: thin; border-radius: 5px; }
  #page-toc a { white-space: nowrap; border: 0; border-bottom: 2px solid transparent; padding: 8px; min-height: 36px; }
  #page-toc a.active { border-bottom-color: var(--plum); }
  :is(.article-heading-layout,.ex-hero-grid):has(> :is(figure,.ex-artwork)) { grid-template-columns: 1fr; gap: 15px; }
  :is(.editorial-cover,.ex-artwork) img:not(.ex-art-brand) { max-height: 220px; object-fit: cover; }
  :is(.brand-grid,.cf-need-grid,.path-grid,.quick-answers,.ex-directory) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-shell { padding: 12px var(--edge) 15px; }
  .hero.panorama { min-height: 0; padding: 22px 17px clamp(142px,40vw,235px); }
  .hero-art img { position: absolute; bottom: 0; height: 52%; object-position: right bottom; mask-image: linear-gradient(to bottom,transparent,#000 34%); }
  .panorama > :is(.eyebrow,h1,.hero-description,.hero-buttons), :lang(zh) .panorama h1 { max-width: 100%; }
  .panorama h1 { font-size: clamp(42px,8vw,58px); }
  .bd-links { grid-template-columns: 1fr; }
  :is(.table-scroll,.bk-table-wrap) table { min-width: 480px; }
}
@media (max-width: 505px) {
  .brand-grid, .path-grid, .cf-need-grid, .quick-answers, .ex-directory { grid-template-columns: minmax(0,1fr); }
  .v2-header-frame { gap: 9px; }
  .v2-header-frame .loreorbit-lockup { flex-basis: 132px; }
  .v2-header-frame .header-cta { font-size: .75rem; padding: 6px 8px; }
  .v2-header-frame .header-cta span { display: none; }
  .v2-header-frame .review-switch { white-space: normal; text-align: center; line-height: 1.15; }
  .header-actions { gap: 7px; }
  .choice-bar :is(.path-action,.path-review) { flex: 1 1 auto; font-size: .88rem; padding-inline: 9px; }
  .preset-options, .bk-fields > div, .card-study { grid-template-columns: minmax(0,1fr); }
  .preset-options { gap: 2px; }
  .preset-options label { padding: 5px; }
  .card-back { padding: 3px; }
  .v2-footer .footer-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media print {
  :is(.v2-topbar,.v2-footer,.reading-progress,.reading-sidebar,.no-print,.draw-actions) { display: none !important; }
  body, .v2-masthead, #reading-tool { color: black; background: white; }
  .article-grid { display: block; }
  .print-only { display: block; white-space: pre-wrap; }
}

/* Topic washes sit behind the live copy, with a clear reading area on every card. */
.cf-need-card {
  background-color: #f8f1ec;
  background-image: linear-gradient(105deg, #fffaf4a8, #fffaf431 70%, transparent), var(--topic-art);
  background-position: center, right 60%;
  background-size: cover;
  border-inline-start-width: 1px;
  box-shadow: 0 3px 10px #2416350a;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.cf-need-card:hover { background-color: #f8f1ec; border-color: #9873ac; box-shadow: 0 6px 16px #24163518; }
.cf-need-card[data-topic="love"] { --topic-art: url('/ui-v2/topic-art/love.webp'); }
.cf-need-card[data-topic="career"] { --topic-art: url('/ui-v2/topic-art/career.webp'); }
.cf-need-card[data-topic="breakups"] { --topic-art: url('/ui-v2/topic-art/breakups.webp'); }
.cf-need-card[data-topic="money"] { --topic-art: url('/ui-v2/topic-art/money.webp'); }
.cf-need-card[data-topic="family"] { --topic-art: url('/ui-v2/topic-art/family.webp'); }
.cf-need-card[data-topic="direction"] { --topic-art: url('/ui-v2/topic-art/direction.webp'); }
.cf-need-card[data-topic="spiritual"] { --topic-art: url('/ui-v2/topic-art/spiritual.webp'); }
.cf-need-card[data-topic="dreams"] { --topic-art: url('/ui-v2/topic-art/dreams.webp'); }
.cf-need-card[data-topic="loss"] { --topic-art: url('/ui-v2/topic-art/loss.webp'); }
.cf-need-card[data-topic="relocation"] { --topic-art: url('/ui-v2/topic-art/relocation.webp'); }
.cf-need-card[data-topic="timing"] { --topic-art: url('/ui-v2/topic-art/timing.webp'); }
.cf-need-card .cf-card-link { margin-top: 6px; }

/* The art is an accent to the invitation, rather than defining the module's height. */
.reading-grid { gap: clamp(25px,5vw,75px); }
.reading-copy { max-width: 40rem; }
.reading-art { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; padding: 22px 12px; }
.card-orbit { position: absolute; z-index: -1; width: 81%; aspect-ratio: 1; max-height: 100%; border: 1px solid #d7b9e969; border-radius: 50%; background: radial-gradient(ellipse,#ac85c132,transparent 72%); }
.sample-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: clamp(3px,.8vw,12px); width: min(100%,475px); margin: 0 auto; }
.sample-card { min-width: 0; }
.sample-card img { width: 100%; aspect-ratio: 300/520; object-fit: contain; border-radius: 7px; box-shadow: 0 10px 25px #130d27a6; }
.sample-card:first-child { transform: rotate(-8deg) translateY(4%); }
.sample-card:nth-child(2) { position: relative; z-index: 1; }
.sample-card:last-child { transform: rotate(8deg) translateY(4%); }

/* Smaller topic features use the same image and type constraints across services. */
.v2-split-masthead {
  display: grid;
  grid-template-columns: minmax(0,1.38fr) minmax(0,1fr);
  gap: 18px clamp(24px,4vw,64px);
  align-items: center;
}
.v2-split-masthead > .fp-breadcrumbs { grid-column: 1 / -1; margin: 0; }
.v2-split-masthead h1 { font-size: clamp(39px,4.5vw,69px); margin-bottom: 15px; }
:lang(zh) .v2-split-masthead h1 { font-size: clamp(31px,4vw,54px); }
.v2-split-masthead :is(.cf-deck,.lede) { max-width: 58ch; color: #e9dff3; }
.v2-split-masthead > figure img:first-child { width: 100%; aspect-ratio: 3/2; max-height: 370px; object-fit: cover; border-radius: 14px; }
.v2-split-masthead .cf-brand-button { background: var(--bright); color: var(--night); border-color: var(--bright); }
.v2-split-masthead .cf-brand-button:hover { background: #ecdbff; color: var(--night); }
.v2-masthead .rc-kicker { color: #e1ccf9; }
.rc-email-art { position: relative; }
.rc-email-art .rc-art-brand {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: min(110px,38%);
  height: auto;
  padding: 4px 6px;
  border-radius: 5px;
  background: #fffcf2;
}
.bd-brand-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 12px; }
.bd-brand-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }

/* Footer labels remain separate from link rows, with sufficient contrast. */
.v2-footer .footer-links .eyebrow { flex-basis: 100%; color: #e2cafa; }
.v2-footer .footer-main > .footer-links { align-items: start; align-content: start; }
.v2-footer .footer-main { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(3,minmax(120px,1fr)); gap: 18px 34px; align-items: start; }
.v2-footer .footer-main .footer-links { display: grid; justify-content: start; gap: 8px; }
.v2-footer .footer-main > div:first-child p { margin-top: 10px; color: #e5d9f2; }
@media (max-width: 760px) {
  .v2-split-masthead { grid-template-columns: minmax(0,1fr); }
  .v2-split-masthead > figure { width: min(100%,500px); }
  .v2-split-masthead > figure img:first-child { max-height: 265px; }
  .reading-art { padding: 8px 12px 15px; }
  .sample-cards { width: min(92%,385px); }
  .v2-footer .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Low-contrast paper art gives short answers and contextual notes a recognizable surface. */
:is(.quick-answers .answer-section,.cf-fit-question,.fp-context) {
  --module-art: url('/ui-v2/topic-art/direction.webp');
  background-color: #f5eff7;
  background-image: linear-gradient(105deg,#fffcf9f0,#fffaf4c9 53%,#fffaf479), var(--module-art);
  background-position: center, right bottom;
  background-size: cover;
}
.quick-answers #home-cost, .cf-fit-question[id="best-fit-question-1"] { --module-art: url('/ui-v2/topic-art/money.webp'); }
.quick-answers #home-formats, .cf-fit-question[id="best-fit-question-2"] { --module-art: url('/ui-v2/topic-art/relocation.webp'); }
.quick-answers #home-free, [data-v2-topic="tarot"] .fp-context { --module-art: url('/ui-v2/topic-art/dreams.webp'); }
[data-v2-topic="astrology"] .fp-context { --module-art: url('/ui-v2/topic-art/timing.webp'); }
[data-v2-topic="human-design"] .fp-context { --module-art: url('/ui-v2/topic-art/spiritual.webp'); }
.quick-answers .answer-section h2 { font-size: clamp(25px,3vw,39px); }
.cf-fit-question h3 { font-size: clamp(22px,2.4vw,30px); }
.fp-context { margin-bottom: 16px; }

.rc-module-head:has(> img[src*="/ui-v2/reading-art/"]) {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: clamp(12px,3vw,28px);
  align-items: center;
  margin-bottom: 18px;
}
:is(.rc-module-head,.ex-topic) > img[src*="/ui-v2/reading-art/"] { width: 100%; border-radius: 11px; }
.ex-topic > img[src*="/ui-v2/reading-art/"] { margin-top: 13px; }
@media (max-width: 760px) {
  .rc-module-head:has(> img[src*="/ui-v2/reading-art/"]) { grid-template-columns: minmax(0,1fr); }
}
