@charset "UTF-8";

/* Loaded only for Tarot al Detalle. Text stays at least 16px; prose is 18px. */
.detail-page { font-size: 18px; line-height: 1.8; }
.detail-page p, .detail-page li, .detail-page label, .detail-page legend { font-size: 18px; }
.detail-page p + p { margin-top: 18px; }
.detail-page h1 { font-size: clamp(32px, 4.5vw, 58px); line-height: 1.17; margin: 18px 0 24px; }
.detail-page h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.25; margin-bottom: 22px; }
.detail-page h3 { font-size: 26px; line-height: 1.35; margin-bottom: 14px; }
.detail-page .eyebrow { font-size: 16px; line-height: 1.65; letter-spacing: .06em; }
.detail-page .detail-lead { font-size: clamp(21px, 2.1vw, 25px); line-height: 1.65; }
.detail-page .detail-note, .detail-page figcaption, .detail-page .detail-topic { font-size: 16px; line-height: 1.7; }
.detail-page .detail-note { color: var(--muted); margin-top: 20px; }
.detail-page .button, .detail-page .text-link, .detail-page .text-button, .detail-page .reset { font-size: 16px; min-height: 48px; white-space: normal; }
.detail-page .button { padding: 14px 22px; }
.detail-page .text-link { gap: 10px; }
.detail-page summary { min-height: 48px; font-size: 18px; line-height: 1.6; cursor: pointer; }
.detail-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.detail-page legend { font-weight: 700; margin-bottom: 18px; line-height: 1.6; }
.detail-page [id] { scroll-margin-top: 24px; }
/* The document has 24px scroll-padding; together these leave exactly 5px. */
.detail-landing #preparar-detalle { scroll-margin-top: -19px; }
.detail-page .form-error { font-size: 18px; }
.detail-page .field { margin: 0 0 22px; }
.detail-page .field label { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.detail-page select { display: block; width: 100%; min-height: 56px; font-size: 18px; line-height: 1.5; padding: 12px 36px 12px 14px; color: var(--ink); background-color: var(--white); border: 1px solid #998b9f; border-radius: 8px; }
.brand small, .footer-bottom, .footer-note, .privacy-options, .ad-slot > span { font-size: 16px; }
.footer-links a { min-height: 48px; }

.detail-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .8fr); align-items: center; gap: 64px; padding: 66px 0 70px; }
.detail-hero-copy { max-width: 690px; }
.detail-hero-copy h1 { max-width: 13ch; }
.detail-hero-copy .detail-lead { color: var(--plum); margin-bottom: 22px; }
.detail-hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 30px; align-items: center; }
.detail-hero-art { position: relative; display: grid; place-items: center; gap: 28px; padding: 24px 0 0; isolation: isolate; }
.detail-hero-art > img { width: min(64%, 215px); height: auto; border-radius: 12px; transform: rotate(4deg); box-shadow: 0 22px 48px #30223827; }
.detail-art-orbit { position: absolute; z-index: -1; width: min(100%, 365px); aspect-ratio: 1; top: 16%; border: 1px solid #c4b19a; border-radius: 50%; background: radial-gradient(circle, #eae3ee95, transparent 70%); }
.detail-art-orbit::before { content: ''; position: absolute; inset: 22px; border: 1px solid #ddd0bf; border-radius: 50%; }
.detail-hero-art figcaption { color: var(--muted); text-align: center; }
.detail-start-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 54px; padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 28px #30223806; }
.detail-start-copy { padding-top: 8px; }
.detail-start-copy .eyebrow { margin-bottom: 18px; }
.detail-page .reader-topic-choice { gap: 12px; padding: 22px; border: 2px solid var(--plum); border-radius: 14px; background: var(--lilac); box-shadow: 0 4px 16px #3022380a; }
.detail-page .reader-topic-choice > label { margin: 0; color: var(--deep); font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.3; }
.detail-page .reader-topic-help { margin: 0; color: var(--plum); font-size: 16px; line-height: 1.5; }
.detail-page .reader-topic-choice > select { min-height: 62px; border: 2px solid var(--plum); background-color: var(--white); color: var(--deep); font-size: 18px; font-weight: 700; padding: 14px 10px; }
.detail-page .reader-topic-choice > select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.detail-page .reader-start-action { display: grid; justify-items: center; gap: 8px; max-width: 560px; margin: 18px auto 0; }
.detail-page .reader-start-action > .button { width: 100%; min-height: 56px; font-size: 18px; white-space: normal; }
.detail-page .reader-action-arrow { display: none; color: var(--plum); line-height: 0; }
.detail-page .reader-action-arrow--up { transform: rotate(180deg); }
.detail-page .is-topic-chosen .reader-action-arrow { display: block; }
.detail-page .is-topic-chosen .reader-start-action > .button { box-shadow: 0 0 0 4px var(--lilac), 0 0 0 6px var(--plum); }
.detail-deck-preferences { border: 1px solid var(--line); border-radius: 10px; margin: 24px 0; padding: 16px 18px; }
.detail-deck-preferences > summary { font-weight: 700; }
.detail-deck-preferences > summary span { display: block; color: var(--muted); font-size: 16px; font-weight: 400; margin: 5px 0 0 20px; }
.detail-deck-preferences[open] > summary { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-deck-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-deck-choice { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px; cursor: pointer; border: 2px solid var(--line); border-radius: 8px; min-height: 48px; }
.detail-deck-choice:has(input:checked) { border-color: var(--plum); background: var(--lilac); }
.detail-deck-choice:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.detail-deck-choice input { width: 24px; height: 24px; margin: 0; accent-color: var(--plum); }
.detail-deck-choice img { width: min(100%, 76px); height: auto; border-radius: 4px; }
.detail-deck-choice span { font-size: 16px; line-height: 1.45; text-align: center; }
.detail-section { margin-top: 76px; }
.detail-section > .eyebrow { margin-bottom: 18px; }
.detail-method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; list-style: none; padding: 0; margin: 30px 0 0; }
.detail-method-steps li { border-top: 1px solid var(--line); padding-top: 25px; }
.detail-step-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border: 1px solid #bb9f7d; border-radius: 50%; color: var(--gold); font: 24px/1 Georgia, serif; }
.detail-example { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 52px; align-items: center; padding: 40px; background: #eee8df; border: 1px solid #dfd5c8; border-radius: 18px; }
.detail-example figure img { width: 100%; border-radius: 9px; }
.detail-example figcaption { margin-top: 16px; text-align: center; color: var(--muted); }
.detail-example .eyebrow { margin-bottom: 16px; }
.detail-example-list { list-style: none; margin: 24px 0 0; padding: 0; }
.detail-example-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-top: 1px solid #d7cabc; }
.detail-example-list strong { color: var(--plum); }
.detail-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-access-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.detail-access-grid .text-link, .detail-access-grid form { margin-top: 20px; }
.detail-faq { max-width: 900px; margin-bottom: 74px; }
.detail-faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-faq summary { padding: 8px 0; font-weight: 700; }
.detail-faq details p { padding: 12px 0 8px; }

.detail-reading-page { max-width: 1100px; padding-top: 38px; }
.detail-progress { max-width: 760px; margin: 0 auto 34px; }
.detail-progress ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.detail-progress li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; text-align: center; }
.detail-progress li > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #a99ba9; border-radius: 50%; background: var(--white); font-size: 16px; }
.detail-progress li[aria-current] { color: var(--plum); font-weight: 700; }
.detail-progress li[aria-current] > span:first-child { background: var(--plum); border-color: var(--plum); color: white; box-shadow: 0 0 0 4px var(--lilac); }
.detail-progress li.is-complete > span:first-child { background: var(--lilac); color: var(--plum); border-color: #b6a1be; }
.detail-reader-shell { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 38px; }
.detail-reading-header { max-width: 850px; margin-bottom: 30px; }
.detail-reading-header h1 { max-width: 24ch; margin-top: 16px; }
.detail-page .detail-topic { display: inline-block; padding: 7px 14px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; color: var(--plum); font-weight: 700; }
.detail-reading-header .detail-topic + p { margin-top: 6px; }
.detail-card-toolbar { margin-top: 0; }
.detail-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.detail-card-grid .detail-card-option { justify-content: flex-start; padding: 20px 16px; font-size: 18px; }
.detail-card-grid .card-art { width: min(100%, 155px); }
.detail-card-grid .card-name { font-size: 18px; line-height: 1.5; margin-top: 16px; }
.detail-source-phase { display: block; font-size: 16px; line-height: 1.6; color: var(--plum); margin-top: 12px; }
.detail-source-meaning { display: block; font-size: 18px; line-height: 1.65; margin-top: 8px; white-space: pre-line; }
.detail-page .selection-number { width: 34px; height: 34px; font-size: 18px; right: -8px; top: -8px; }
.detail-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.detail-card-actions .reset { padding-left: 0; }
.detail-choice-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.detail-choice-figure { width: 100%; max-width: 360px; margin-inline: auto; }
.detail-image-wrap { padding: 24px; }
.detail-image-stage { position: relative; width: 100%; }
.detail-image-stage > img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 25px #30223822; }
.detail-hotspot { position: absolute; left: var(--detail-x); top: var(--detail-y); transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; border: 3px solid white; border-radius: 50%; background: #493052; color: white; box-shadow: 0 0 0 1px #493052, 0 4px 12px #0006; font: 700 20px/1 OpenSans, Arial, sans-serif; cursor: pointer; }
.detail-hotspot:hover { background: #302238; }
.detail-hotspot[aria-pressed="true"] { background: #824b1e; box-shadow: 0 0 0 3px #824b1e, 0 0 0 6px white; }
.detail-hotspot:focus-visible { outline: 4px solid #fbd56a; outline-offset: 5px; }
.detail-image-stage.points-hidden .detail-hotspot { visibility: hidden; }
.detail-choice-figure figcaption { text-align: center; font-size: 18px; color: var(--muted); }
.detail-art-toggle { display: block; margin: 8px auto 0; }
.detail-selection-status { min-height: 3.6em; font-size: 18px; line-height: 1.7; text-align: center; color: var(--plum); padding: 12px 8px 0; }
.detail-options { display: grid; gap: 16px; }
.detail-options legend { padding-bottom: 4px; }
.detail-option { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 14px; padding: 20px; min-height: 80px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.detail-option:hover { border-color: #94729f; }
.detail-option.is-selected, .detail-option:has(input:checked) { background: var(--lilac); border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.detail-option:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.detail-option > input { width: 24px; height: 24px; margin: 5px 0 0; accent-color: var(--plum); }
.detail-option-copy strong { display: flex; align-items: start; gap: 10px; font-size: 20px; line-height: 1.5; }
.detail-option-number { flex-shrink: 0; display: inline-grid; place-items: center; width: 30px; height: 30px; background: #e6dcea; color: var(--plum); border-radius: 50%; font-size: 18px; }
.detail-option.is-selected .detail-option-number, .detail-option:has(input:checked) .detail-option-number { color: white; background: var(--plum); }
.detail-option-observation { display: block; margin-top: 10px; font-size: 18px; line-height: 1.7; }
.detail-choice-actions { margin-top: 26px; }
.detail-choice-actions .button { width: 100%; }
.detail-source-heading { margin: 28px 0 14px; padding-left: 18px; border-left: 3px solid #bd9ec4; }
.detail-source-heading p { font-size: 18px; line-height: 1.75; }
.detail-source-heading .detail-source-question { font-size: 16px; color: var(--muted); }
.detail-source { margin: 18px 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; }
.detail-source summary { padding: 8px 0; color: var(--plum); font-size: 18px; }
.detail-source[open] summary { margin-bottom: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-source .detail-text { padding-bottom: 8px; }
.detail-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 28px; }
.detail-empty { max-width: 850px; }
.detail-empty .button { margin-top: 28px; }

.detail-result { max-width: 960px; margin-inline: auto; }
.detail-result .detail-reading-header { padding: 18px 0; }
.detail-result-index { padding: 26px 30px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.detail-result-index h2 { font-size: 26px; margin-bottom: 14px; }
.detail-result-index ol { padding-left: 25px; margin: 0; }
.detail-result-index a { display: inline-block; padding: 9px 0; min-height: 48px; font-size: 18px; }
.detail-result-card { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 42px; margin-top: 48px; padding: 40px 0 12px; border-top: 1px solid var(--line); }
.detail-result-art { width: 100%; max-width: 215px; }
.detail-result-art img { width: 100%; height: auto; border-radius: 9px; }
.detail-result-art figcaption { margin-top: 16px; color: var(--muted); text-align: center; }
.detail-result-copy .eyebrow { margin-bottom: 18px; }
.detail-result-copy h2 { margin-bottom: 20px; }
.detail-observation { color: var(--muted); padding-bottom: 4px; }
.detail-page .detail-text { font-size: 18px; line-height: 1.9; white-space: pre-line; }
.detail-bridge { background: var(--lilac); border-left: 3px solid var(--plum); border-radius: 0 8px 8px 0; padding: 20px 24px; margin-top: 24px; }
.detail-synthesis { margin-top: 72px; padding: 48px; background: var(--white); border: 1px solid #cbbad1; border-top: 4px solid var(--plum); border-radius: 0 0 18px 18px; }
.detail-synthesis .eyebrow { margin-bottom: 22px; }
.detail-synthesis h2 { max-width: 22ch; margin-bottom: 28px; }
.detail-synthesis p + p { margin-top: 24px; }
.detail-reflection { margin-top: 44px; padding: 34px 0 30px; border-top: 1px solid var(--line); }
.detail-reflection .eyebrow { margin-bottom: 20px; }
.detail-reflection h2 { font-size: clamp(28px, 3vw, 37px); line-height: 1.4; max-width: 32ch; }
.detail-result-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 30px; margin-top: 18px; }

@media (max-width: 900px) {
  .detail-hero { gap: 30px; grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr); }
  .detail-start-panel { grid-template-columns: 1fr; gap: 30px; padding: 32px; }
  .detail-start-copy { max-width: 680px; }
  .detail-method-steps { grid-template-columns: 1fr; gap: 24px; }
  .detail-method-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 22px; }
  .detail-example { grid-template-columns: 170px minmax(0, 1fr); padding: 30px; gap: 30px; }
  .detail-reader-shell { padding: 28px; }
  .detail-choice-layout { grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr); gap: 24px; }
  .detail-option { padding: 16px; gap: 10px; }
  .detail-result-card { grid-template-columns: 145px minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 700px) {
  .detail-page { width: calc(100% - 32px); }
  .detail-hero { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 42px; }
  .detail-hero-copy h1 { max-width: 16ch; }
  .detail-hero-art { max-width: 300px; width: 100%; margin-inline: auto; gap: 24px; }
  .detail-hero-art > img { width: 145px; }
  .detail-art-orbit { width: 260px; top: 5%; }
  .detail-hero-actions { display: grid; gap: 12px; }
  .detail-hero-actions .text-link { justify-self: start; }
  .detail-start-panel { padding: 26px 20px; gap: 24px; border-radius: 14px; }
  .detail-page .reader-topic-choice { padding: 16px 12px; }
  .detail-deck-preferences { padding: 14px; }
  .detail-deck-choices { gap: 8px; }
  .detail-section { margin-top: 48px; }
  .detail-method-steps li { gap: 16px; }
  .detail-example { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; }
  .detail-example figure { max-width: 150px; justify-self: center; }
  .detail-example-list li { grid-template-columns: 1fr; gap: 4px; }
  .detail-access-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-access-grid article { padding: 24px 20px; }
  .detail-faq { margin-bottom: 46px; }
  .detail-reading-page { padding-top: 24px; }
  .detail-progress { margin-bottom: 26px; }
  .detail-progress ol { gap: 5px; }
  .detail-progress li { font-size: 16px; line-height: 1.35; gap: 8px; }
  .detail-reader-shell { padding: 24px 16px; border-radius: 12px; }
  .detail-reading-header { margin-bottom: 24px; }
  .detail-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .detail-card-grid .detail-card-option { padding: 16px 8px; }
  .detail-card-grid .card-art { width: min(100%, 128px); }
  .detail-card-grid .card-name { font-size: 18px; }
  .detail-card-toolbar { margin-bottom: 24px; }
  .detail-card-toolbar .button { font-size: 16px; min-height: 48px; }
  .detail-card-actions { display: grid; gap: 14px; }
  .detail-card-actions .reset { justify-self: start; }
  .detail-card-actions .button { width: 100%; }
  .detail-choice-layout { grid-template-columns: 1fr; gap: 20px; }
  .detail-choice-figure { max-width: 320px; }
  .detail-image-wrap { padding: 24px; }
  .detail-option { padding: 18px 14px; gap: 12px; }
  .detail-options { gap: 16px; }
  .detail-option-copy strong { font-size: 20px; gap: 8px; }
  .detail-selection-status { min-height: 0; padding-bottom: 8px; }
  .detail-secondary-actions { display: grid; gap: 10px; }
  .detail-result .detail-reading-header { padding-top: 8px; }
  .detail-result-index { padding: 22px 20px; }
  .detail-result-card { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; margin-top: 34px; }
  .detail-result-art { max-width: 150px; margin-inline: auto; }
  .detail-result-art figcaption { text-align: left; }
  .detail-bridge { padding: 20px; }
  .detail-synthesis { margin-top: 44px; padding: 32px 22px; }
  .detail-synthesis .detail-text { line-height: 1.95; }
  .detail-reflection { margin-top: 32px; }
  .detail-result-controls { display: grid; gap: 18px; }
  .detail-result-controls .button { width: 100%; }
}

@media (max-width: 360px) {
  .detail-start-panel { padding-inline: 16px; }
  .detail-reader-shell { padding-inline: 12px; }
  .detail-card-grid { gap: 18px 10px; }
  .detail-card-grid .detail-card-option { padding-inline: 6px; }
  .detail-deck-preferences { padding-inline: 10px; }
  .detail-option { padding-inline: 12px; }
  .detail-option-copy strong { flex-wrap: wrap; }
  .detail-synthesis { padding-inline: 18px; }
}

/* The private reading keeps the illustration and its three named choices together.
   Without JavaScript the same native radios remain a short list below the image. */
.detail-reading-page .detail-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
.detail-reading-page .detail-card-option { padding: 5px; }
.detail-reading-page .detail-card-grid .card-art { width: min(100%, 155px); }
.detail-reading-page .detail-card-actions { margin-top: 18px; padding-top: 8px; border-top: 0; }
.detail-reading-page:has(.detail-step-shell) { max-width: 760px; padding-top: 12px; padding-bottom: calc(18px + var(--detail-scroll-room, 0px)); }
.detail-reading-page:has(.detail-step-shell) > .detail-progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; padding: 0; }
.detail-step-shell { max-width: 560px; margin-inline: auto; padding: 16px 0 0; border: 0; background: transparent; }
.detail-step-header { margin: 0 auto 12px; text-align: center; }
.detail-step-header .eyebrow { font-size: 16px; line-height: 1.4; letter-spacing: .04em; }
.detail-page .detail-step-header h1 { font-size: 32px; line-height: 1.15; margin: 5px auto 0; }
.detail-page .detail-scene { position: relative; display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.detail-scene .detail-image-stage { width: min(226px, calc(100vw - 114px)); margin-inline: auto; }
.detail-scene .detail-image-stage > img { width: 100%; border-radius: 8px; box-shadow: 0 7px 20px #3022381a; }
.detail-hotspot-options { display: grid; gap: 8px; margin-top: 12px; }
.detail-scene .detail-hotspot { position: relative; inset: auto; transform: none; display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; max-width: none; height: auto; min-height: 48px; padding: 7px 9px; border: 1px solid #816a89; border-radius: 8px; background: #fffdf9f5; color: var(--ink); box-shadow: 0 2px 7px #30223824; font: 700 16px/1.3 OpenSans, Arial, sans-serif; text-align: left; }
.detail-scene .detail-hotspot:hover { background: #f1eaf4; border-color: var(--plum); }
.detail-scene .detail-hotspot.is-selected, .detail-scene .detail-hotspot:has(input:checked) { background: #eee5f0; border: 2px solid var(--plum); padding: 6px 8px; box-shadow: 0 0 0 2px #fffdf9, 0 3px 10px #30223828; }
.detail-scene .detail-hotspot:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.detail-scene .detail-hotspot > input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; clip-path: inset(50%); }
.detail-scene .detail-option-number { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; font-size: 16px; line-height: 1; border-radius: 50%; background: var(--plum); color: white; }
.detail-scene .detail-option-label { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: none; }
.detail-scene.is-enhanced { height: var(--detail-scene-height); }
.detail-scene.is-enhanced .detail-hotspot-options { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
.detail-scene.is-enhanced .detail-hotspot { position: absolute; left: var(--callout-left); top: var(--callout-top); width: var(--callout-width, 168px); z-index: 2; pointer-events: auto; }
.detail-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; pointer-events: none; }
.detail-leader-halo { fill: none; stroke: #fffdf9; stroke-width: 5px; stroke-linecap: round; }
.detail-leader-line { fill: none; stroke: #573c60; stroke-width: 2px; stroke-linecap: round; }
.detail-leader-point { fill: #fffdf9; stroke: #573c60; stroke-width: 2px; }
.detail-leader-point.is-selected { fill: #573c60; stroke: #fffdf9; stroke-width: 3px; }
.detail-anchor-hit { pointer-events: all; cursor: pointer; }
.detail-page .detail-selected-description { display: none; max-width: 480px; margin: 12px auto 0; padding: 0 4px; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; color: var(--plum); }
.detail-choice-form:has(input[name="detail"]:checked) .detail-selected-description { display: block; }
.detail-selected-description [data-detail-description] { display: none; margin: 0; font-size: 16px; line-height: 1.5; }
.detail-choice-form:has(#detail-choice-a:checked) [data-detail-description="a"],
.detail-choice-form:has(#detail-choice-b:checked) [data-detail-description="b"],
.detail-choice-form:has(#detail-choice-c:checked) [data-detail-description="c"] { display: block; }
.detail-choice-actions { position: sticky; bottom: 12px; z-index: 5; display: grid; justify-items: center; gap: 8px; max-width: 480px; margin: 12px auto 0; }
.detail-page .detail-choice-actions .button { width: 100%; min-height: 56px; font-size: 18px; padding: 14px 18px; box-shadow: 0 3px 10px #30223819; }
.detail-choice-form:has(input[name="detail"]:checked) .detail-choice-actions .button { box-shadow: 0 0 0 4px var(--lilac), 0 0 0 6px var(--plum); }
.detail-choice-form:has(input[name="detail"]:checked) .detail-choice-actions .reader-action-arrow { display: block; }
.detail-reading-page:has(.detail-step-shell) .detail-secondary-actions { max-width: 560px; margin: 12px auto 0; gap: 4px 22px; }
.detail-final-actions { display: flex; flex-direction: column; justify-content: center; margin-top: 30px; }
.detail-final-actions .detail-restart-form { order: -1; width: min(100%, 480px); }
.detail-final-actions .detail-restart-button { width: 100%; min-height: 58px; font-size: 18px; padding: 16px 24px; }
body:has(.detail-reading-page .detail-step-shell) .footer { padding-block: 18px; margin-top: 12px; }
body:has(.detail-reading-page .detail-step-shell) .footer-main > div:first-child,
body:has(.detail-reading-page .detail-step-shell) .footer-note,
body:has(.detail-reading-page .detail-step-shell) .footer-bottom { display: none; }
body:has(.detail-reading-page .detail-step-shell) .footer-main { display: block; }
body:has(.detail-reading-page .detail-step-shell) .footer-links { justify-content: center; gap: 4px 20px; }

@media (max-width: 700px) {
  .detail-reading-page { padding-top: 16px; }
  .detail-reading-page .detail-progress { margin-bottom: 16px; }
  .detail-reading-page .detail-progress li { gap: 5px; }
  .detail-step-shell { padding: 6px 0 0; }
  .detail-step-header { margin-bottom: 10px; }
  .detail-page .detail-step-header h1 { font-size: 29px; }
  .detail-reading-page:has(.detail-step-shell) .detail-secondary-actions { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .detail-reading-page .detail-final-actions { display: flex; }
  .detail-scene .detail-image-stage { width: min(226px, calc(100vw - 114px), max(160px, calc((100svh - 300px) * .5673))); }
}

@media print {
  .detail-progress, .detail-secondary-actions, .detail-result-controls, .detail-result-index, .detail-start-form, .detail-art-toggle, .detail-hotspot { display: none !important; }
  .detail-page, .detail-result { width: 100%; max-width: none; padding: 0; }
  .detail-page .detail-text, .detail-page p { font-size: 12pt; line-height: 1.65; }
  .detail-result-card { grid-template-columns: 85px minmax(0, 1fr); gap: 24px; break-inside: auto; padding-top: 24px; margin-top: 24px; }
  .detail-result-art { max-width: 85px; }
  .detail-result-art figcaption, .detail-page .eyebrow, .detail-page .detail-topic { font-size: 12pt; }
  .detail-result-copy h2, .detail-synthesis h2, .detail-reflection h2 { font-size: 22pt; }
  .detail-source { background: white; border-color: #bbb; }
  .detail-source summary { font-size: 12pt; }
  .detail-synthesis { padding: 24px; margin-top: 36px; background: white; }
  .detail-bridge { background: white; }
  .detail-reflection { margin-top: 24px; }
}
