:root {
  color-scheme: light;
  --ink: #1b2b3f;
  --muted: #607187;
  --rust: #a94c2c;
  --line: #d8e1ea;
  --paper: #fff;
  --cream: #f6f1e9;
  --blue: #243a52;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--blue); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f0f1f0; font-size: 15px; line-height: 1.5; }
body.section-page { display: flex; min-height: 100vh; flex-direction: column; }
a { color: var(--rust); font-weight: 700; text-underline-offset: .18em; }
a:hover { color: #75351f; }
button, input, select { font: inherit; }
.home-hero { padding: clamp(2rem, 7vw, 5rem) max(1.25rem, calc((100vw - 1160px) / 2)); color: #f8f5ef; background: linear-gradient(120deg, #1c3550, #87564d); border-radius: 0 0 2rem 2rem; }
.eyebrow { margin: 0 0 .4rem; color: #b24e2e; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-hero .eyebrow { color: #f2be9a; }
h1, h2, h3, h4 { line-height: 1.18; }
.home-hero h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.25rem); letter-spacing: -.04em; }
.lead { max-width: 850px; margin: 1rem 0 0; color: #d6e0eb; font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
.home-note { margin: 1.25rem 0 0; color: #f0c7a8; font-weight: 650; }
.home-main { max-width: 1240px; margin: 2rem auto 3rem; padding: 0 1.25rem; }
.home-main h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.home-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; }
.home-sections a, .section-picker-links a { display: flex; min-height: 64px; align-items: center; padding: .85rem 1rem; border: 1px solid #ead6c4; border-radius: 14px; background: #fffaf5; color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.home-sections a:hover, .section-picker-links a:hover { transform: translateY(-2px); border-color: #c9825c; box-shadow: 0 8px 22px #29394b18; }
.site-footer { padding: 1.5rem 1rem; color: #d4deea; text-align: center; background: var(--blue); }
.section-topbar { position: sticky; z-index: 10; top: .5rem; display: flex; width: min(1240px, calc(100% - 1rem)); min-height: 48px; align-items: center; justify-content: flex-start; margin: .5rem auto 1rem; padding: .35rem .75rem; border: 1px solid #f2d5be; border-radius: 15px; background: linear-gradient(110deg, #365469ed, #905d4bed); box-shadow: 0 8px 25px #59443927; backdrop-filter: blur(14px); }
.section-picker { position: static; flex: 1 1 auto; color: white; }
.section-picker summary { display: flex; align-items: center; justify-content: flex-start; cursor: pointer; font-weight: 750; list-style: none; white-space: nowrap; }
.section-picker summary::-webkit-details-marker { display: none; }
.section-picker-links { position: absolute; top: calc(100% + .65rem); right: 0; left: 0; display: grid; width: 100%; max-height: 70vh; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .45rem; overflow: auto; padding: .65rem; border: 1px solid #7892ad; border-radius: 15px; background: linear-gradient(145deg, #243a52, #344e69); box-shadow: 0 16px 40px #1b2b3f45; }
.section-picker-links a { min-height: 40px; padding: .45rem .65rem; border-color: #617b97; background: #304a65; color: #f5f8fc; }
.section-picker-links a:hover { border-color: #a9c7e7; background: #3d5b79; color: white; }
.section-picker-links a[aria-current="page"] { border-color: #a9c7e7; background: #d8e8f7; color: #1b2b3f; }
.section-picker-links a[href="seccion.html?tema=linea-de-tiempo"],
.section-picker-links a[href="seccion.html?tema=arbol-genealogico"],
.section-picker-links a[href="seccion.html?tema=catalogo"],
.section-picker-links a[href="seccion.html?tema=calendario-jubileos"] { border-width: 2px; font-weight: 850; box-shadow: 0 5px 14px #101d2b38; }
.section-picker-links a[href="seccion.html?tema=linea-de-tiempo"] { border-color: #ffcd97e0; background: linear-gradient(135deg, #ab5b3285, #ffce9d38); }
.section-picker-links a[href="seccion.html?tema=arbol-genealogico"] { border-color: #b3deb8e0; background: linear-gradient(135deg, #3f776794, #bddeb533); }
.section-picker-links a[href="seccion.html?tema=catalogo"] { border-color: #ffbe84eb; background: linear-gradient(135deg, #a04b2a9e, #ffbc7e4d); }
.section-picker-links a[href="seccion.html?tema=calendario-jubileos"] { border-color: #98dccdeb; background: linear-gradient(135deg, #24716f9e, #9ddec347); }
.section-picker-links a[href="seccion.html?tema=linea-de-tiempo"]:hover,
.section-picker-links a[href="seccion.html?tema=arbol-genealogico"]:hover,
.section-picker-links a[href="seccion.html?tema=catalogo"]:hover,
.section-picker-links a[href="seccion.html?tema=calendario-jubileos"]:hover { box-shadow: 0 9px 20px #101d2b52; }
.section-picker-links a[aria-current="page"] { border-color: #fff2e1fa; background: linear-gradient(120deg, #ffeed8fc, #e0a37dfa); color: #38271f; }
.section-main { width: min(1280px, calc(100% - 2rem)); min-height: 65vh; flex: 1 0 auto; margin: 0 auto 2rem; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 14px 42px #1b2b3f0c; }
.section-main h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.035em; }
.section-description { max-width: 920px; margin: .5rem 0 1.1rem; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.05rem); }
.loading-message { color: var(--muted); }
.section-content { min-width: 0; }
.section-content h2 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.section-content h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.section-content p { max-width: 78ch; }
.prayers-panel, .face-story, .genealogy-era, .genealogy-branches, .jubilee-calendar-shell { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: #fbfcfd; }
.prayers-panel { margin: 0 0 1rem; }
.prayers-panel h2, .prayers-panel h3 { margin-top: 0; }
.prayers-body h3 { margin-top: 1.5rem; }
.prayers-body h3:first-child { margin-top: 0; }
.joseph-parallel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.joseph-parallel-card { position: relative; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.joseph-parallel-card h3 { margin: 0 0 .65rem; padding-right: 2.2rem; }
.joseph-parallel-card p { margin: .55rem 0; }
.joseph-parallel-number { position: absolute; top: .75rem; right: .75rem; display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-size: .82rem; font-weight: 850; }
.joseph-parallel-card .prayers-note { padding-top: .6rem; border-top: 1px solid var(--line); font-size: .86rem; }
.joseph-reading-note { margin: 1rem 0 0; padding: .85rem 1rem; border-left: 4px solid var(--rust); background: #fff7f0; }
.prayers-illustration { margin: 0 auto 1.4rem; }
.prayers-illustration img { display: block; width: min(100%, 980px); max-height: 560px; margin: 0 auto; border-radius: 15px; object-fit: contain; }
.messiah-book-art { display: grid; max-width: 480px; grid-template-columns: 104px 1fr; align-items: center; gap: .8rem; margin: .8rem 0 1.1rem; padding: .55rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.messiah-book-art img { display: block; width: 104px; height: 142px; border-radius: 7px; box-shadow: 0 3px 10px #182a3d29; object-fit: contain; }
.messiah-book-art figcaption { font-size: .84rem; line-height: 1.45; }
.messiah-book-art figcaption strong, .messiah-book-art figcaption span { display: block; }
.messiah-book-art figcaption span { margin-top: .25rem; color: var(--muted); font-size: .75rem; }
.campanas-feature-art { display: block; width: min(100%, 1120px); max-width: 1120px; padding: .65rem; }
.campanas-feature-art img { width: 100%; height: auto; max-height: 620px; border-radius: 9px; object-fit: contain; }
.campanas-feature-art figcaption { padding: .55rem .35rem .15rem; }
figure.messiah-book-art.birth-feature-art { display: block; width: min(100%, 1100px); max-width: 1100px; padding: .65rem; }
figure.messiah-book-art.birth-feature-art > img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 620px; border-radius: 9px; object-fit: contain; }
.birth-feature-art figcaption { padding: .55rem .35rem .15rem; }
.parallel-image-gallery { display: grid; max-width: 980px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .85rem; margin: 1.25rem auto 1.8rem; }
.parallel-image-gallery figure { min-width: 0; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.parallel-image-gallery img { display: block; width: 100%; height: 145px; object-fit: contain; object-position: center; }
.parallel-image-gallery figcaption { padding: .6rem .7rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.judea-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; margin: 1rem 0; }
.judea-figures figure { min-width: 0; margin: 0; }
.judea-figures img { display: block; width: 100%; max-height: 320px; margin: 0 auto; object-fit: contain; }
.judea-figures figcaption { margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.judea-figures:not(.judea-flag-pair) figure:nth-child(2) img { width: min(100%, 360px); }
.judea-flag-pair figure { display: flex; min-height: 280px; flex-direction: column; justify-content: space-between; padding: .8rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.judea-flag-pair img { width: 100%; height: 210px; }
.extinct-grid, .prophecy-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.kingdoms-banner { width: 100%; max-width: 100%; margin: 1rem 0 1.4rem; }
.kingdoms-banner img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 72vh; border-radius: 12px; object-fit: contain; }
.kingdoms-banner figcaption { margin-top: .4rem; color: var(--muted); font-size: .78rem; }
.extinct-card, .prophecy-card, .face-evidence { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfd; }
.extinct-card-image, .prophecy-card-image { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.prophecies-intro > .prophecies-image { display: block; width: min(100%, 1100px); max-width: 100%; height: auto; max-height: 460px; margin: .8rem 0 1rem; border-radius: 12px; object-fit: contain; }
.extinct-card-body, .prophecy-card { padding: 1rem; }
.extinct-card h3, .prophecy-card h3 { margin: .2rem 0 .55rem; }
.extinct-refs, .extinct-refs a { display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
.source-badge { display: inline-flex; margin: .4rem 0; padding: .25rem .75rem; border-radius: 999px; background: #dff1ed; color: #205b59; font-weight: 750; }
.source-badge.apocryphal { background: #ffeadb; color: #8f492a; }
.source-badge.context { background: #e8eaf7; color: #4c5376; }
.enoch-intro, .enoch-book { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.enoch-intro > img { display: block; width: min(100%, 720px); max-height: 340px; margin: 0 auto 1rem; border-radius: 12px; object-fit: cover; }
.enoch-passages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.enoch-passages-full { grid-template-columns: 1fr; }
.enoch-passage { min-width: 0; overflow: hidden; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.enoch-passage > img { display: block; width: min(100%, 420px); height: 240px; margin: 0 auto .7rem; border-radius: 10px; object-fit: cover; object-position: center; }
.gnostic-passages .enoch-passage > img { width: 100%; max-width: 420px; height: 210px; }
.enoch-passage h4 { margin: 0 0 .4rem; color: #9b4829; font-size: .95rem; }
.enoch-passage blockquote { margin: 0; color: #46596f; line-height: 1.5; }
.enoch-passage a { display: inline-block; margin-top: .5rem; }
.timeline-intro { margin-bottom: 1rem; }
.timeline-key { display: flex; flex-wrap: wrap; gap: .4rem; }
.timeline-era-key { padding: .2rem .55rem; border-radius: 999px; background: #f1f3f6; }
.timeline-scroll, .genealogy-scroll { max-width: 100%; overflow-x: auto; padding: 1.6rem .2rem .8rem; }
.timeline-track { display: flex; width: 100%; min-width: 0; align-items: stretch; gap: .4rem; }
.timeline-event { position: relative; display: flex; width: calc((100% - 1.6rem) / 5); flex: 0 0 calc((100% - 1.6rem) / 5); flex-direction: column; align-self: stretch; padding: .5rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(#f4f8fc, #fff); }
.timeline-event::before { position: absolute; top: -1.55rem; left: 1.5rem; width: .9rem; height: .9rem; border: 4px solid white; border-radius: 50%; background: #74a86c; box-shadow: 0 0 0 2px #74a86c; content: ""; }
.timeline-image { width: 100%; height: 120px; max-height: 120px; object-fit: cover; border-radius: 10px; }
.timeline-event.is-portrait .timeline-image { height: auto; max-height: none; object-fit: contain; background: #f4f7fa; }
.timeline-date { color: var(--muted); font-size: .72rem; font-weight: 750; }
.timeline-event h3 { margin: .1rem 0 .4rem; font-size: .95rem; }
.timeline-description { color: #52657c; font-size: .76rem; line-height: 1.38; }
.related-links { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); }
.related-links-label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.related-link-list { display: grid; gap: .4rem; }
.related-link { padding: .65rem; border: 1px solid #ead6c4; border-radius: 10px; background: #fffaf5; color: var(--ink); text-align: left; }
.genealogy-intro { margin-bottom: 1rem; }
.genealogy-intro h2 { margin-bottom: .45rem; }
.genealogy-intro p { margin-top: 0; color: var(--muted); }
.genealogy-scroll { padding-top: .8rem; }
.family-tree { position: relative; display: flex; width: min(940px, 100%); min-width: 860px; flex-direction: column; align-items: center; margin: 0 auto; padding: .5rem 15px 1rem 145px; counter-reset: main-generation; }
.genealogy-scroll > .genealogy-flow, .tree-verse-list { display: none; }
.tree-date-rail { position: absolute; top: 0; bottom: 0; left: 15px; width: 105px; pointer-events: none; }
.tree-date-rail::before { position: absolute; top: var(--rail-start, 0); right: 0; bottom: var(--rail-end, 0); width: 2px; background: #b9c8d6; content: ""; }
.tree-date-mark { position: absolute; right: 0; display: flex; width: 100%; align-items: center; justify-content: flex-end; gap: .4rem; color: #85442b; font-size: .72rem; font-weight: 850; line-height: 1.15; white-space: nowrap; transform: translateY(-50%); }
.tree-date-mark::after { width: 10px; height: 2px; flex: none; background: #b86b48; content: ""; }
.tree-node { position: relative; z-index: 1; min-width: 168px; margin: 0 auto; padding: .48rem .8rem; border: 1px solid #d8e2ed; border-radius: 11px; background: #fff; box-shadow: 0 5px 15px #1a304d0f; color: #26384d; font-size: .83rem; font-weight: 800; text-align: center; }
.tree-name-meaning { position: absolute; top: 50%; left: calc(100% + 14px); z-index: 2; width: 210px; padding: .28rem .45rem; border-left: 2px solid #e4af91; background: #fffaf6; color: #6d5c52; font-size: .66rem; font-weight: 650; line-height: 1.3; text-align: left; transform: translateY(-50%); }
.tree-node.tree-family-children .tree-name-meaning { left: calc(100% + 205px); }
.family-tree > .tree-node { counter-increment: main-generation; }
.tree-node::before { position: absolute; z-index: 4; top: 50%; right: calc(100% + .75rem); padding: .08rem .22rem; border-radius: 4px; background: #fff; color: #9b4829; content: "Gen. " counter(main-generation); font-size: .68rem; font-weight: 900; white-space: nowrap; transform: translateY(-50%); }
.tree-node[data-generation]::before { content: attr(data-generation); }
.tree-node::after { display: block; margin-top: .14rem; color: #718095; content: attr(data-relation); font-size: .61rem; font-weight: 700; line-height: 1.2; }
.tree-node small { display: none; }
.tree-node.key { border-color: #e4af91; background: #fff3eb; color: #944322; }
.tree-age { display: block; margin-top: .2rem; color: #9b4829; font-size: .62rem; font-weight: 850; }
.tree-down { position: relative; width: 3px; height: 24px; margin: 0 auto; background: #c46a42; }
.tree-down::after { position: absolute; bottom: -1px; left: 50%; width: 8px; height: 8px; border-right: 3px solid #c46a42; border-bottom: 3px solid #c46a42; content: ""; transform: translateX(-50%) rotate(45deg); }
.tree-family-children, .tree-family-sibling, .tree-has-mother { padding-top: 1.35rem; }
.tree-mother, .tree-role { display: block; margin-top: .14rem; color: #718095; font-size: .61rem; font-weight: 700; line-height: 1.2; }
.tree-node > .tree-mother, .tree-family-sibling .tree-mother { position: absolute; top: .18rem; right: .15rem; left: .15rem; margin: 0; text-align: center; }
.tree-family-fork { position: absolute; top: -12px; right: calc(-50% - 20px); left: calc(-50% - 20px); border-top: 3px solid #c46a42; }
.tree-family-children.only-left .tree-family-fork { right: 50%; }
.tree-family-children.only-right .tree-family-fork { left: 50%; }
.tree-family-sibling { position: absolute; top: 0; width: 100%; border: 1px solid #d8e2ed; border-radius: 11px; background: #fff; box-shadow: 0 5px 15px #1a304d0f; color: #26384d; }
.tree-family-sibling::before { position: absolute; top: -12px; left: 50%; width: 3px; height: 12px; background: #c46a42; content: ""; transform: translateX(-50%); }
.tree-family-sibling.left { right: calc(100% + 20px); }
.tree-family-sibling.right { left: calc(100% + 20px); }
.tree-jacob-disclosure { z-index: 2; width: min(690px, 100%); margin: .2rem 0; }
.tree-jacob-disclosure > summary { width: fit-content; margin: 0 auto; padding: .42rem .78rem; border: 1px solid #d8e2ed; border-radius: 999px; background: #f8fafc; color: #914221; cursor: pointer; font-size: .73rem; font-weight: 850; list-style: none; }
.tree-jacob-disclosure > summary::after { margin-left: .4rem; content: "＋"; }
.tree-jacob-disclosure[open] > summary::after { content: "−"; }
.tree-jacob-disclosure > .tree-jacob-children, .tree-other-sons, .tree-kin-row { position: static; width: 100%; margin: .55rem 0 0; padding: .5rem; border: 1px solid #d8e2ed; border-radius: 11px; background: #f8fafc; }
.tree-other-sons-title { display: block; width: fit-content; margin: 0 auto .4rem; color: #914221; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.tree-other-sons-list { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; }
.tree-other-sons-list span { flex: 0 0 auto; padding: .34rem .6rem; border: 1px solid #d8e2ed; border-radius: 9px; background: #fff; font-size: .68rem; font-weight: 800; }
.tree-other-sons-list span[data-mother]::before { display: block; color: #718095; content: "Madre: " attr(data-mother); font-size: .56rem; }
.tree-mother-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; margin-top: .3rem; }
.tree-mother-of { display: block; color: #718095; font-size: .57rem; font-weight: 700; line-height: 1.3; }
.tree-mother-of b { display: block; color: #26384d; font-size: .62rem; }
.tree-branches { position: relative; width: min(690px, 100%); margin: .15rem 0; padding-top: 28px; }
.tree-branches::before, .tree-siblings::after { position: absolute; right: 25%; left: 25%; height: 3px; background: #c46a42; content: ""; }
.tree-branches::before { top: 0; }
.tree-branches::after { position: absolute; top: -25px; left: 50%; width: 3px; height: 26px; background: #c46a42; content: ""; transform: translateX(-50%); }
.tree-siblings { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 2rem; padding-bottom: 26px; }
.tree-siblings::after { bottom: 0; }
.tree-branch { position: relative; display: flex; flex-direction: column; align-items: center; counter-reset: branch-generation 33; }
.tree-branch::before { position: absolute; top: -28px; left: 50%; width: 3px; height: 28px; background: #c46a42; content: ""; transform: translateX(-50%); }
.tree-branch .tree-node { counter-increment: branch-generation; }
.tree-branch .tree-node::before { content: "Gen. " counter(branch-generation); }
.tree-branch-label { margin: 0 0 .7rem; color: #914221; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.tree-branch-tail { width: 3px; min-height: 26px; flex: 1 1 auto; background: #c46a42; }
.tree-parents { position: relative; display: grid; width: min(760px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding: 28px 0 26px; }
.tree-parents::after { position: absolute; right: 50%; bottom: 0; left: 16.666%; height: 3px; background: #c46a42; content: ""; }
.tree-parent { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; }
.tree-parent .tree-node { width: 100%; min-width: 0; }
.tree-parent .tree-node .tree-verse { box-sizing: border-box; width: 100%; max-width: 100%; }
.tree-parent::after, .tree-parent.jose-parent::before { position: absolute; left: 50%; width: 3px; height: 26px; background: #c46a42; content: ""; transform: translateX(-50%); }
.tree-parent::after { bottom: -26px; }
.tree-parent.jose-parent { grid-column: 2; }
.tree-parent.jose-parent::before { top: -28px; height: 28px; }
.tree-jose-headline, .tree-jose-detail { display: block; max-width: 30ch; margin: .3rem auto 0; line-height: 1.3; }
.tree-jose-headline { color: #944322; font-size: .76rem; }
.tree-jose-detail { color: #596c82; font-size: .7rem; font-weight: 700; }
.tree-jesus-family { position: relative; display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: .7rem; margin: .3rem 0; }
.tree-jesus-family::before { position: absolute; top: 50%; right: 12%; left: 12%; height: 3px; background: #c46a42; content: ""; }
.tree-jesus-family > .tree-node { width: 100%; min-width: 0; }
.tree-jesus-family > .tree-node .tree-verse { box-sizing: border-box; width: 100%; max-width: 100%; }
.tree-jesus-side { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: .35rem; padding: .45rem; border: 1px solid #d8e2ed; border-radius: 11px; background: #f8fafc; }
.tree-jesus-side-title { color: #914221; font-size: .58rem; font-weight: 900; text-align: center; text-transform: uppercase; }
.tree-jesus-relative { padding: .34rem; border: 1px solid #d8e2ed; border-radius: 9px; background: #fff; font-size: .68rem; font-weight: 800; text-align: center; }
.tree-node .tree-verse { position: relative; top: auto; right: auto; left: auto; width: min(360px, calc(100vw - 3rem)); margin: .7rem auto 0; padding: .7rem .8rem; border: 1px solid #e8c4ae; border-radius: 12px; background: #fffaf6; box-shadow: 0 8px 22px #4d2f1f1a; color: #5e4c43; font-weight: 500; text-align: left; }
.tree-node .tree-verse::before { position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; border-top: 2px solid #e8c4ae; border-left: 2px solid #e8c4ae; background: #fffaf6; content: ""; transform: translateX(-50%) rotate(45deg); }
.tree-verse strong { display: block; color: #974522; font-size: .7rem; text-transform: uppercase; }
.tree-verse q { display: block; margin-top: .28rem; font-size: .75rem; font-style: italic; line-height: 1.38; }
.tree-verse a { display: inline-block; margin-top: .35rem; font-size: .7rem; font-weight: 850; }
.genealogy-era { margin: .8rem 0; }
.genealogy-name-reading { margin: .85rem 0; padding: .75rem .9rem; border-left: 3px solid #c46a42; border-radius: 0 10px 10px 0; background: #fff7f1; color: #5e4c43; font-size: .86rem; }
.genealogy-era img { max-width: 100%; height: auto; }
.tree-node, .tree-verse { margin: .5rem auto; }
.face-evidence { margin: 1rem 0; padding: 1rem; }
.face-evidence img { max-width: 100%; height: auto; }
.dragon-intro, .dragon-context, .dragon-reading { margin: 1.2rem 0; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: #fbfcfd; }
.dragon-intro h2, .dragon-context h2, .dragon-reading h2 { margin-top: .4rem; }
.dragon-hero { margin: 1rem 0 0; }
.dragon-hero img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; }
.dragon-hero figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.dragon-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .8rem; }
.dragon-context-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.dragon-context-grid h3 { margin-top: 0; }
.dragon-edition-note { padding: .8rem; border-left: 4px solid var(--rust); background: #fff8f1; }
.dragon-reading-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dragon-text { max-width: 100%; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; color: var(--ink); font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.dragon-verse-grid article { display: flex; flex-direction: column; }
.dragon-verse-grid article p { margin: .35rem 0 .65rem; }
.dragon-verse-grid article a { margin-top: auto; }
.jubilee-calendar-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.jubilee-system { display: grid; min-width: 0; gap: .75rem; padding: .85rem; border: 1px solid #6ba392; border-radius: 18px; background: #f8fcfa; }
.jubilee-system-title { margin: 0; color: #285d50; font-size: 1rem; }
.jubilee-today, .jubilee-month-card { padding: 1rem; border: 1px solid #6ba392; border-radius: 16px; background: #f3faf8; }
.jubilee-today { display: flex; justify-content: space-between; gap: 1rem; }
.jubilee-today strong, .jubilee-day-number strong { display: block; font-size: clamp(1.25rem, 2.1vw, 2.1rem); line-height: 1.15; }
.jubilee-day-number { flex: 0 0 auto; text-align: right; }
.jubilee-day-number span, .jubilee-today-meta { display: block; margin-top: .35rem; }
.jubilee-kicker { display: block; color: var(--rust); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jubilee-month-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.jubilee-month-head h3 { margin: 0; }
.jubilee-month-head small { display: block; color: var(--muted); }
.jubilee-nav { display: flex; gap: .4rem; }
.jubilee-nav button { min-height: 40px; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.jubilee-week, .jubilee-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; text-align: center; }
.jubilee-week { margin: 1rem 0 .3rem; color: var(--muted); font-size: .8rem; font-weight: 750; }
.jubilee-day, .jubilee-blank { display: grid; min-height: 36px; place-items: center; }
.jubilee-day.is-today { border-radius: 9px; background: #f4c8a6; color: #342820; font-weight: 800; }
.jubilee-legend { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; color: var(--muted); font-size: .8rem; }
.jubilee-legend i { width: .8rem; height: .8rem; border-radius: 4px; background: #f4c8a6; }
.jubilee-system-adaru { border-color: #8e89c7; background: #f9f8ff; }
.jubilee-system-adaru .jubilee-system-title { color: #4d4a87; }
.jubilee-system-adaru .jubilee-today, .jubilee-system-adaru .jubilee-month-card { border-color: #8e89c7; background: #f3f2fc; }
.jubilee-system-adaru .jubilee-kicker { color: #625ca5; }
.jubilee-system-adaru .jubilee-day.is-today, .jubilee-system-adaru .jubilee-legend i { background: #cfcaf4; color: #302c63; }
.jubilee-name-note { margin: 0; padding: .7rem .8rem; border-left: 3px solid #8e89c7; border-radius: 0 9px 9px 0; background: #f3f2fc; color: #4e4b73; font-size: .8rem; }
.controls { display: grid; gap: .55rem; margin: .65rem 0; }
.search-box { min-height: 42px; padding: .55rem .75rem; border: 1px solid #88a6c2; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px #1b2b3f0a; animation: search-pulse 2.6s ease-in-out infinite; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.search-box::placeholder { color: #687b91; opacity: 1; }
.search-box:hover { border-color: #477cae; box-shadow: 0 7px 18px #356b9f24; transform: translateY(-1px); }
.search-box:focus { border-color: #326fa8; outline: 3px solid #cfe3f5; box-shadow: 0 5px 16px #326fa826; animation: none; transform: none; }
@keyframes search-pulse {
  0%, 100% { border-color: #88a6c2; box-shadow: 0 2px 8px #1b2b3f0a, 0 0 0 0 #5d91c300; }
  50% { border-color: #477cae; box-shadow: 0 5px 15px #356b9f1f, 0 0 0 4px #8eb8dd28; }
}
@media (prefers-reduced-motion: reduce) {
  .search-box { animation: none; transition: none; }
}
.text-results { margin: .65rem 0; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.text-results[hidden] { display: none; }
.text-results h2 { margin: 0 0 .55rem; font-size: 1rem; }
.text-result-list { display: grid; gap: .45rem; }
.text-result { display: block; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-decoration: none; }
.text-result:hover { border-color: #a9bfd6; background: #f2f7fc; }
.text-result-meta, .text-result-excerpt { display: block; }
.text-result-meta { color: var(--rust); font-size: .82rem; font-weight: 800; }
.text-result-excerpt { margin-top: .15rem; color: var(--muted); font-size: .86rem; font-weight: 500; }
.text-search-note { margin: 0; color: var(--muted); }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { min-width: 115px; padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: #edf2f7; color: var(--muted); cursor: pointer; font-size: .8rem; text-transform: uppercase; }
td:nth-child(2) { min-width: 280px; }
.catalog-name { font-weight: 700; }
.catalog-name a { color: var(--ink); text-decoration-thickness: 1px; text-decoration-color: #8ba4be; }
.catalog-name a:hover { color: var(--rust); text-decoration-color: currentColor; }
.catalog-reader-row { cursor: pointer; }
.catalog-reader-row:hover td { background: #f3f7fb; }
.catalog-reader-row:focus-visible { outline: 3px solid #6f9bc4; outline-offset: -3px; }
.catalog-date { color: hsl(var(--date-hue, 210) 76% 34%); font-weight: 800; }
.canon-boundary td { min-width: 0; padding: .28rem .65rem; border-block: 1px solid #b9c8d8; background: #dfe8f1; color: #334e68; font-size: .82rem; font-weight: 800; line-height: 1.2; text-align: center; }
.text-status { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }
.empty { padding: 1rem; }
.home-page .site-footer { margin-top: 3rem; }

@media (max-width: 600px) {
  .section-main { width: calc(100% - 1rem); padding: 1rem; border-radius: 15px; }
  .section-topbar { margin: .5rem auto 1rem; }
  .section-description { margin-bottom: 1.2rem; }
  .home-main { padding-inline: .8rem; }
  .home-sections { grid-template-columns: 1fr; }
  .timeline-scroll { margin-inline: -.6rem; }
  .timeline-event { width: 82vw; flex-basis: 82vw; }
  .jubilee-today { flex-direction: column; }
  .jubilee-day-number { text-align: left; }
  .joseph-parallel-grid { grid-template-columns: 1fr; }
  .parallel-image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .judea-figures { grid-template-columns: 1fr; }
  .enoch-passages { grid-template-columns: 1fr; }
  .messiah-book-art { grid-template-columns: 88px 1fr; }
  .messiah-book-art img { width: 88px; height: 120px; }
}

@media (max-width: 950px) {
  .jubilee-calendar-layout { grid-template-columns: 1fr; }
}
