.tree-layout{display:block}#branch-detail{position:static;max-height:none;overflow:visible;margin-top:25px;padding:clamp(24px,4vw,55px);scroll-margin-top:24px;border-top:5px solid #b18a45;border-radius:4px;background:#fffcf4}.branch-chapter-heading{border-bottom:1px solid #d8decd;padding-bottom:22px;margin-bottom:28px}#branch-detail h2{font-size:clamp(32px,4vw,48px)}.branch-dateline{color:#637665}.branch-chapter-grid,.library-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:45px}.branch-question{border-left:3px solid #b18a45;padding:16px 22px;background:#f1f0e2;margin:25px 0}.branch-question p{font-family:Georgia,serif;font-size:21px!important}.relationship-links{display:flex;flex-wrap:wrap;gap:9px}.relationship-links button{font-size:14px;text-align:left;line-height:1.5;background:#edf2e7}.branch-reading-section{margin-top:30px;border-top:1px solid #d8decd;padding-top:20px}.branch-reading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.branch-reading-grid a{display:block;color:inherit;text-decoration:none;border:1px solid #d4ddca;padding:22px;background:#f5f5e9}.branch-reading-grid a:hover{border-color:#506c50;background:#eef2e5}.branch-reading-grid h4{font:25px/1.3 Georgia,serif;margin:12px 0}.branch-reading-grid span,.branch-reading-grid strong{font-size:14px;color:#5b705c}.branch-reading-grid p{font-size:16px!important}.branch-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:30px}.branch-actions #tree-map{width:auto;margin:0}.branch-actions a{font-size:14px}.branch-node small{font-size:14px}.library-mode .atlas,.library-mode .timeline,.library-mode .event-section,.library-mode #chapter-controls,.library-mode .chapter-progress-track{display:none!important}.library-mode header .depth{visibility:hidden}#library-workspace[hidden]{display:none}#library-workspace{padding:clamp(18px,3vw,40px);background:#f5f4e8;border:1px solid #cfd9c7;border-radius:12px}.library-heading{display:flex;justify-content:space-between;gap:25px;align-items:center}.library-heading h2{font:42px Georgia,serif;margin:12px 0 25px}.library-heading a{color:inherit}.library-controls{display:grid;grid-template-columns:2fr 1fr auto;gap:28px;align-items:end;padding:24px;background:#e5ecdf;border-radius:6px}.library-controls label{display:flex;flex-direction:column;gap:12px;font-size:16px}.library-controls input{width:100%;accent-color:#254d40}.library-controls strong{font:28px Georgia,serif}.library-controls select{font:16px Arial,sans-serif;min-height:44px;background:#fffdf5;color:#244635;border:1px solid #a8b79e;border-radius:5px;padding:9px;width:100%}.era-presets{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.era-presets button{font-size:14px}.library-caveat{font-size:14px!important;color:#657361;border-left:3px solid #b18a45;padding-left:16px;max-width:1000px}#library-workspace p{line-height:1.75;font-size:16px}#library-subject-note{max-width:850px}.library-context-line{display:flex;justify-content:space-between;gap:20px;margin:25px 0 12px}.library-shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.library-shelves details{border:1px solid #cbd6bf;background:#fffdf4;border-radius:6px;padding:16px}.library-shelves summary{font-size:16px;cursor:pointer;line-height:1.5}.library-shelves summary span{font-size:14px;color:#5d7258;margin-left:10px}.library-shelves button{display:block;width:100%;text-align:left;margin-top:10px;background:#eef2e6;padding:14px;font-size:16px}.library-shelves button[aria-pressed=true]{background:#264d40;color:#fff3d4;border-color:#264d40}.library-shelves small{display:block;font-size:13px;margin-top:5px}#library-detail{background:#fffcf4;border-top:4px solid #b18a45;padding:clamp(22px,4vw,50px);margin-top:32px;scroll-margin-top:24px}#library-detail h2{font:clamp(30px,4vw,44px)/1.2 Georgia,serif;margin:15px 0}#library-detail .library-intro{font:24px/1.6 Georgia,serif;max-width:900px;border-bottom:1px solid #d5dacb;padding-bottom:25px}.library-small{font-size:14px!important}.library-read{display:inline-block;background:#254d40;color:#fff6df;padding:14px 20px;border-radius:5px;margin-top:16px;text-decoration:none}.library-evidence{padding:24px 0 0;font-size:14px}.library-evidence summary{cursor:pointer;font-size:16px}.library-evidence a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b5852d;outline-offset:4px}@media(max-width:850px){.branch-reading-grid,.library-shelves{grid-template-columns:1fr 1fr}.branch-chapter-grid,.library-detail-grid{gap:25px}.library-controls{grid-template-columns:1fr 1fr}.library-controls>button{grid-column:1/-1}}@media(max-width:600px){.branch-chapter-grid,.library-detail-grid,.branch-reading-grid,.library-shelves,.library-controls{grid-template-columns:1fr}.library-heading{display:block}.library-heading h2{font-size:34px}.library-controls{gap:18px;padding:18px}.branch-chapter-grid,.library-detail-grid{gap:5px}.library-mode header .depth{display:none}.branch-actions{align-items:stretch;flex-direction:column}.library-context-line{font-size:14px}.library-heading>a{display:block;margin-bottom:20px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Generated by scripts/build-themes.mjs; edit the authored stylesheet instead. */
@media screen{:where(html[data-theme="dark"]) #branch-detail{border-top:5px solid hsl(38 38% 48% / 1);background:hsl(44 30% 12% / 1)}:where(html[data-theme="dark"]) .branch-chapter-heading{border-bottom:1px solid hsl(81 20% 30% / 1)}:where(html[data-theme="dark"]) .branch-dateline{color:hsl(126 9% 80% / 1)}:where(html[data-theme="dark"]) .branch-question{border-left:3px solid hsl(38 38% 48% / 1);background:hsl(56 30% 13% / 1)}:where(html[data-theme="dark"]) .relationship-links button{background:hsl(87 30% 13% / 1)}:where(html[data-theme="dark"]) .branch-reading-section{border-top:1px solid hsl(81 20% 30% / 1)}:where(html[data-theme="dark"]) .branch-reading-grid a{border:1px solid hsl(88 22% 30% / 1);background:hsl(60 30% 13% / 1)}:where(html[data-theme="dark"]) .branch-reading-grid a:hover{border-color:hsl(120 15% 48% / 1);background:hsl(78 30% 13% / 1)}:where(html[data-theme="dark"]) .branch-reading-grid span,:where(html[data-theme="dark"]) .branch-reading-grid strong{color:hsl(123 10% 80% / 1)}:where(html[data-theme="dark"]) #library-workspace{background:hsl(55 30% 13% / 1);border:1px solid hsl(93 19% 30% / 1)}:where(html[data-theme="dark"]) .library-controls{background:hsl(92 25% 13% / 1)}:where(html[data-theme="dark"]) .library-controls input{accent-color:hsl(161 35% 84% / 1)}:where(html[data-theme="dark"]) .library-controls select{background:hsl(48 30% 11% / 1);color:hsl(150 32% 85% / 1);border:1px solid hsl(96 15% 30% / 1)}:where(html[data-theme="dark"]) .library-caveat{color:hsl(107 8% 80% / 1);border-left:3px solid hsl(38 38% 48% / 1)}:where(html[data-theme="dark"]) .library-shelves details{border:1px solid hsl(89 22% 30% / 1);background:hsl(49 30% 12% / 1)}:where(html[data-theme="dark"]) .library-shelves summary span{color:hsl(108 13% 80% / 1)}:where(html[data-theme="dark"]) .library-shelves button{background:hsl(80 30% 13% / 1)}:where(html[data-theme="dark"]) .library-shelves button[aria-pressed=true]{background:hsl(160 30% 23% / 1);color:hsl(43 48% 92% / 1);border-color:hsl(160 34% 48% / 1)}:where(html[data-theme="dark"]) #library-detail{background:hsl(44 30% 12% / 1);border-top:4px solid hsl(38 38% 48% / 1)}:where(html[data-theme="dark"]) #library-detail .library-intro{border-bottom:1px solid hsl(80 17% 30% / 1)}:where(html[data-theme="dark"]) .library-read{background:hsl(161 30% 22% / 1);color:hsl(43 48% 94% / 1)}:where(html[data-theme="dark"]) button:focus-visible,:where(html[data-theme="dark"]) a:focus-visible,:where(html[data-theme="dark"]) select:focus-visible,:where(html[data-theme="dark"]) input:focus-visible{outline:3px solid hsl(39 48% 79% / 1)}}

/* One principal job on each surface. */#tree-stages{display:flex;gap:8px;margin:20px 0 12px}#tree-stages button{padding:10px 15px;background:transparent;border:1px solid #cbd6c0;border-radius:5px;color:#4a634b;font:14px/1.5 system-ui,sans-serif}#tree-stages button.active{background:#254f3d;border-color:#254f3d;color:#fff7df}#branch-detail{padding:34px;border:1px solid #d3ddc5;border-top:4px solid #a48445;background:#fffdf7}#branch-detail h2{font:40px/1.14 Georgia,serif;margin:12px 0 18px;font-weight:400}#branch-detail h3{font:25px/1.25 Georgia,serif;margin:15px 0}#branch-detail p{font-size:17px;line-height:1.85}.branch-chapter-heading{padding-bottom:15px;margin-bottom:12px}.branch-essence{max-width:900px;font:21px/1.75 Georgia,serif!important;color:#455d44}.branch-first-look{display:grid;grid-template-columns:1.5fr 1fr;gap:38px;align-items:start}.branch-first-look .branch-question{margin:15px 0 0;padding:18px 20px}.branch-text-start{margin:24px 0}.branch-text-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.branch-text-list a{padding:16px 18px;border:1px solid #d6ddcb;border-radius:4px;text-decoration:none;background:#f2f4e9}.branch-text-list span{font-size:12px;color:#687357}.branch-text-list strong{font:23px/1.3 Georgia,serif;display:block;margin:8px 0 2px}.branch-more-texts{margin-top:16px}.branch-more-texts summary{font-size:14px;cursor:pointer}.branch-more-texts a{display:inline-block;margin:12px 20px 0 0;font-size:16px}.branch-depth>summary{font-size:18px}.branch-depth .branch-chapter-grid p{font-size:16px}.branch-depth .relationship-links button{font-size:14px;padding:10px 13px;border:1px solid #bacbad;border-radius:4px;color:#355d3d}.branch-preview-grid{grid-template-columns:1fr 1fr!important}.branch-study-links{display:flex;gap:20px;flex-wrap:wrap;margin:25px 0;font-size:15px}.branch-actions{justify-content:space-between;font-size:15px}.resource-card h4{font:25px/1.2 Georgia,serif;color:#294a36;margin:10px 0}.history-heading{max-width:1180px;margin:25px auto 15px;padding:0 25px!important}.history-heading h1{font-size:40px}.history-heading p{font-size:17px;line-height:1.7;max-width:760px}.history-depth{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:25px 0 16px;font-size:14px}.history-depth input{max-width:170px;accent-color:#48644e}.history-depth .depth-labels{display:flex;gap:8px}.guided .history-depth{display:none}.event-section>summary{cursor:pointer;font:25px Georgia,serif;margin:20px 0}.history-about{margin:25px 0}.inline-text-buttons a{display:inline-block;padding:9px 12px;margin:4px 4px 4px 0;border:1px solid #c4d1b5;border-radius:4px;text-decoration:none;background:#f3f5e9;color:#35503c;font-size:14px}.game-toolbar{display:flex;gap:25px;align-items:center;justify-content:space-between;padding:20px 28px;color:#244139;max-width:1500px;margin:auto}.game-toolbar h1{font:29px/1.2 Georgia,serif;margin:8px 0}.game-toolbar .eyebrow{color:#667452}.game-toolbar-actions{display:flex;gap:14px;align-items:center}.game-tools{position:relative}.game-tools>summary{cursor:pointer;border:1px solid #8a9a75;padding:11px 16px;border-radius:4px;font-size:14px}.game-tools>div{position:absolute;z-index:25;right:0;top:52px;min-width:230px;background:#f5f4e7;border:1px solid #b7c6a7;padding:12px;box-shadow:0 12px 30px #14291944;border-radius:5px}.game-tools button{width:100%;text-align:left;margin:4px 0}.game-toolbar #journal-button{background:#f0efd8;color:#30523b;border:1px solid #b7c6a7;padding:11px 15px;font-size:14px}.site-footer{color:#68765f}.reading-heading{padding-top:38px!important;padding-bottom:35px!important}.reading-heading h1{font-size:clamp(38px,5vw,58px)}.index-heading{padding-top:35px;padding-bottom:25px}.index-heading h1{font-size:clamp(36px,4.5vw,52px)}.index-counts{font-size:14px}.index-section .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.index-section:first-of-type .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-entry h3{font-size:24px}.catalog-kind{font-size:12px}.catalog-entry p{font-size:14px}.reading-related{margin-top:35px}.reading-related h2{font-size:26px}.site-footer a{color:inherit}.comparison-page{max-width:1050px}.comparison-page h2{font:36px/1.2 Georgia,serif}.comparison-page h3{font:28px Georgia,serif;margin-top:32px}.comparison-page p{font-size:17px;line-height:1.85}.comparison-page table{min-width:620px}.comparison-page .comparison-wrap{overflow-x:auto}.comparison-page th,.comparison-page td{padding:18px;border-bottom:1px solid #d6decc;vertical-align:top;text-align:left;line-height:1.75}.comparison-page .compare-table{border-collapse:collapse;width:100%}.comparison-page .learning-sources{display:flex;gap:15px;flex-wrap:wrap}.comparison-page .scripture-examples{display:grid;grid-template-columns:1fr 1fr;gap:20px}.comparison-page .small{font-size:14px}.comparison-page .eyebrow{display:block}
@media(max-width:850px){.branch-text-list{grid-template-columns:1fr 1fr}.index-section:first-of-type .catalog-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){#tree-stages{gap:5px}#tree-stages button{font-size:13px;padding:9px 8px;flex:1}#branch-detail{padding:23px 18px}#branch-detail h2{font-size:33px}.branch-first-look{grid-template-columns:1fr;gap:10px}.branch-text-list{grid-template-columns:1fr}.branch-text-list strong{font-size:23px}.branch-preview-grid{grid-template-columns:1fr!important}.branch-actions{align-items:flex-start}.game-toolbar{padding:20px;align-items:flex-start;flex-direction:column;gap:12px}.game-toolbar-actions{width:100%;justify-content:space-between}.game-toolbar h1{font-size:27px}.game-tools>div{right:0}.comparison-page .scripture-examples{grid-template-columns:1fr}.index-section .catalog-grid{grid-template-columns:1fr 1fr}.catalog-entry h3{font-size:21px}}

/* Standalone context pages inherit the shared shell. */
.game-toolbar{color:#fff4d8}.game-toolbar .eyebrow{color:#e5c888}.game-tools>summary{border-color:#b6c4aa}.game-tools>div{color:#244139}body:has(.game-toolbar)>.site-footer{color:#d6e0c8}
.history-people,.map-notes{max-width:1180px;margin:25px auto;padding:20px 25px}.history-people>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.map-notes>div{max-width:900px}.map-notes p{font:16px/1.8 system-ui,sans-serif}.library-heading h1{font:42px/1.15 Georgia,serif;margin:12px 0 25px;font-weight:400}#library-workspace button{color:#31543b;border:1px solid #bfceb1;border-radius:4px;padding:10px 14px;background:#e9efdf}#library-workspace button[aria-pressed=true]{background:#264d40;color:#fff3d4;border-color:#264d40}.resource-filter-panel label{font-size:14px}.resource-type,.resource-card .resource-meta,.resource-reviewed,.resource-branches a,.resource-card .retreat-location,.retreat-status{font-size:12px!important}
@media(max-width:700px){.history-people>div{grid-template-columns:1fr}.library-heading h1{font-size:34px}}

.comparison-page .comparison-scroll{overflow-x:auto;max-width:100%}.comparison-page table{border-collapse:collapse;width:100%}.comparison-page .glossary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}.comparison-page .glossary dt{font:23px Georgia,serif}.comparison-page .glossary dd{margin:8px 0 0;font:16px/1.8 system-ui,sans-serif}@media(max-width:650px){.comparison-page .glossary{grid-template-columns:1fr}}

/* Traditions: compact family map with optional depth and labeled relationships. */
.atlas-page .page-heading{margin-bottom:24px}
#tree-workspace .tree-control-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:0 0 18px;background:transparent;border:0;border-bottom:1px solid var(--a-line);border-radius:0}
#tree-workspace .tree-picker{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%}
#tree-workspace .tree-picker label{display:block;margin:0;font:500 .875rem/1.4 system-ui,sans-serif;color:var(--a-muted)}
#tree-workspace .tree-select-wrap{position:relative;min-width:0;width:360px;max-width:100%}
#tree-workspace #tree-jump{display:block;appearance:none;width:100%;max-width:100%;min-height:44px;padding:10px 36px 10px 12px;border:1px solid var(--a-line);border-radius:6px;background:var(--a-card);color:var(--a-ink);font:400 .9375rem/1.4 system-ui,sans-serif;cursor:pointer}
#tree-workspace .tree-select-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--a-muted);pointer-events:none}
#tree-workspace #tree-jump-open{flex-shrink:0;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--a-accent);font:500 .8125rem/1.5 system-ui,sans-serif;cursor:pointer}
#tree-workspace #tree-explanation{flex:1 1 230px;margin:0;max-width:340px;text-align:right;color:var(--a-muted);font:.8125rem/1.5 system-ui,sans-serif}
#tree-workspace .tree-map-key{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:12px}
#tree-workspace .tree-map-key p{margin:0;max-width:680px;color:var(--a-muted);font:.8125rem/1.6 system-ui,sans-serif}
#tree-workspace .tree-map-actions{display:flex;flex-shrink:0;gap:16px}
#tree-workspace .tree-map-actions button{min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--a-accent);font:500 .8125rem/1.4 system-ui,sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--a-line)}
#branch-diagram{padding:24px 0 8px}
#branch-diagram ul{list-style:none;margin:0;padding:0}
#branch-diagram li{position:relative;min-width:0}
#branch-diagram [hidden]{display:none!important}
#branch-diagram .branch-row{position:relative;display:flex;align-items:stretch;gap:2px;min-width:0}
#branch-diagram .branch-node{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;min-width:0;width:auto;min-height:64px;padding:9px 10px;text-align:left;color:var(--a-ink);background:transparent;border:1px solid transparent;border-left:2px solid transparent;border-radius:5px;box-shadow:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
#branch-diagram .branch-label{min-width:0;flex:1;overflow-wrap:break-word}
#branch-diagram .branch-node strong{display:block;margin:0;color:var(--a-ink);font:500 1.3125rem/1.15 var(--a-display)}
#branch-diagram .branch-meta{display:block;margin-top:5px;font:.75rem/1.45 system-ui,sans-serif;color:var(--a-muted)}
#branch-diagram .branch-kind{font-weight:600}
#branch-diagram .branch-hint::before{content:' · ';font-weight:400}
#branch-diagram .branch-arrow{flex:0 0 14px;width:14px;height:14px;color:var(--a-muted);opacity:.45;transition:opacity .15s ease,transform .15s ease}
#branch-diagram .branch-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 44px;min-height:44px;padding:6px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--a-muted);font:400 .6875rem/1 system-ui,sans-serif;cursor:pointer}
#branch-diagram .branch-toggle:hover{background:var(--a-surface);color:var(--a-accent)}
#branch-diagram .branch-toggle[aria-expanded=true] .branch-child-count{opacity:.65}
#branch-diagram .branch-root>li>.branch-row{max-width:440px;margin:0 auto 24px}
#branch-diagram .branch-root>li>.branch-row>.branch-node{text-align:center}
#branch-diagram .branch-root>li>.branch-row>.branch-node,#branch-diagram .branch-root>li>ul>li>.branch-row>.branch-node{min-height:76px;padding:12px 14px;background:var(--a-card);border-color:var(--a-line);border-left-color:var(--branch)}
#branch-diagram .branch-root>li>.branch-row>.branch-node strong,#branch-diagram .branch-root>li>ul>li>.branch-row>.branch-node strong{font-size:1.5rem}
#branch-diagram .branch-root>li>ul{position:relative;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,2fr);gap:28px;align-items:start;margin:0;border-left:0;border-top:1px solid var(--a-line);padding:20px 0 0}
#branch-diagram .branch-root>li>ul::before{content:'';position:absolute;left:50%;top:-25px;width:1px;height:24px;background:var(--a-line)}
#branch-diagram .branch-root>li>ul>li::before{content:'';position:absolute;left:20px;top:-21px;width:1px;height:20px;background:var(--a-line)}
#branch-diagram .branch-item>ul{margin:7px 0 0 9px;padding-left:10px;border-left:1px solid var(--a-line)}
#branch-diagram .branch-item>ul>li{margin:2px 0}
#branch-diagram .branch-item>ul>li::before{content:'';position:absolute;left:-11px;top:31px;width:10px;height:1px;background:var(--a-line)}
#branch-diagram #tree-children-maha{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:8px 0 0;padding:0;border:0}
#branch-diagram #tree-children-maha>li::before{display:none}
#branch-diagram #tree-children-maha>.branch-newar{grid-column:1/-1;border-top:1px solid var(--a-line);padding-top:6px}
#branch-diagram .branch-root .branch-row>.branch-node.connected,#branch-diagram .branch-context-root .branch-node.connected{border-left-style:dotted;border-left-color:var(--a-accent)}
#branch-diagram .branch-root .branch-row>.branch-node:hover,#branch-diagram .branch-context-root .branch-node:hover{background:var(--a-surface)}
#branch-diagram .branch-root .branch-row>.branch-node.chosen,#branch-diagram .branch-context-root .branch-node.chosen{background:var(--room-wash);border-color:var(--a-line);border-left:2px solid var(--a-accent)}
#branch-diagram .branch-node.chosen strong{color:var(--a-accent)}
#branch-diagram .branch-node:hover .branch-arrow,#branch-diagram .branch-node:focus-visible .branch-arrow,#branch-diagram .branch-node.chosen .branch-arrow{opacity:1}
#branch-diagram .branch-node:hover .branch-arrow{transform:translateX(2px)}
#branch-diagram button:focus-visible,#branch-diagram summary:focus-visible,#tree-workspace #tree-jump:focus-visible,#tree-workspace #tree-jump-open:focus-visible,#tree-workspace .tree-map-actions button:focus-visible,#branch-detail button:focus-visible{outline:2px solid var(--a-accent);outline-offset:3px}
#branch-diagram .tree-context-heading{display:flex;align-items:baseline;gap:16px;margin:28px 0 12px;padding-top:20px;border-top:1px solid var(--a-line)}
#branch-diagram .tree-context-heading h2{flex-shrink:0;margin:0;font:500 1.375rem/1.25 var(--a-display);color:var(--a-ink)}
#branch-diagram .tree-context-heading p{margin:0;color:var(--a-muted);font:.8125rem/1.6 system-ui,sans-serif}
#branch-diagram .tree-contexts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;align-items:start}
#branch-diagram .tree-context-group{min-width:0;border-bottom:1px solid var(--a-line)}
#branch-diagram .tree-context-group>summary{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 0;color:var(--a-ink);cursor:pointer;list-style:none}
#branch-diagram .tree-context-group>summary::-webkit-details-marker{display:none}
#branch-diagram .tree-context-group>summary::before{content:'+';flex:0 0 18px;text-align:center;font:300 1.375rem/1 system-ui,sans-serif;color:var(--a-accent)}
#branch-diagram .tree-context-group[open]>summary::before{content:'−'}
#branch-diagram .tree-context-group>summary>span:first-of-type{flex:1;min-width:0}
#branch-diagram .tree-context-group>summary strong{display:block;font:500 1.1875rem/1.25 var(--a-display)}
#branch-diagram .tree-context-group>summary small{display:block;margin-top:4px;color:var(--a-muted);font:.75rem/1.5 system-ui,sans-serif}
#branch-diagram .tree-section-count{color:var(--a-muted);font:.75rem/1.4 system-ui,sans-serif}
#branch-diagram .branch-context-root{padding:0 0 14px 20px}
#branch-diagram .branch-context-root>li+li{margin-top:6px}
#tree-workspace .tree-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#tree-workspace .tree-caption{max-width:840px;margin:14px 0 24px;color:var(--a-muted);font:.75rem/1.6 system-ui,sans-serif}
#tree-workspace #branch-detail{padding:28px 0 0;border:0;border-top:1px solid var(--a-line);background:transparent;box-shadow:none}
#branch-detail .branch-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;margin:0 0 18px;color:var(--a-muted)}
#branch-detail .branch-breadcrumb button{min-height:36px;padding:6px 0;background:transparent;border:0;color:var(--a-muted);font:.75rem/1.5 system-ui,sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a-line)}
#branch-detail .branch-connections .relationship-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 24px}
#branch-detail .branch-connections .relationship-links button{display:block;min-height:64px;padding:10px 0;overflow-wrap:break-word}
#branch-detail .branch-connections .relationship-links button>span{display:block;margin-bottom:5px;color:var(--a-muted);font:.75rem/1.5 system-ui,sans-serif}
#branch-detail .branch-connections .relationship-links button>strong{display:block;font:500 1.125rem/1.3 var(--a-display);color:var(--a-accent)}
#branch-detail .branch-study-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;list-style:none;padding:0;margin:20px 0 28px}
#branch-detail .branch-study-list li{min-width:0;padding:0 0 14px;border-bottom:1px solid var(--a-line)}
#branch-detail .branch-study-list li>span{display:block;margin-bottom:6px;color:var(--a-muted);font:.6875rem/1.4 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.06em}
#branch-detail .branch-study-list a{display:inline-block;color:var(--a-accent);font:500 1.1875rem/1.35 var(--a-display);overflow-wrap:break-word}
#branch-detail .branch-study-list p{margin:6px 0 0;font:.875rem/1.65 system-ui,sans-serif;color:var(--a-muted)}
#branch-detail .branch-people-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}
#branch-detail .branch-people-links a{color:var(--a-accent);font:.875rem/1.5 system-ui,sans-serif;padding:6px 0}
@media(max-width:1050px){
 #branch-diagram .branch-root>li>ul{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:24px}
 #branch-diagram #tree-children-maha{grid-template-columns:1fr;gap:4px}
 #branch-diagram #tree-children-maha>.branch-newar{grid-column:auto}
}
@media(max-width:760px){
 #tree-workspace .tree-control-row{align-items:stretch;gap:10px;padding-bottom:14px}
 #tree-workspace .tree-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;width:100%}
 #tree-workspace .tree-picker label{grid-column:1/-1;margin-bottom:0}
 #tree-workspace .tree-select-wrap{width:100%}
 #tree-workspace #tree-explanation{flex:auto;max-width:none;text-align:left}
 #tree-workspace .tree-map-key{align-items:flex-start;flex-direction:column;gap:2px}
 #branch-diagram{padding-top:16px}
 #branch-diagram .branch-root>li>.branch-row{max-width:none;margin:0 0 18px}
 #branch-diagram .branch-root>li>.branch-row>.branch-node{text-align:left}
 #branch-diagram .branch-root>li>ul{display:block;margin-left:8px;padding:0 0 0 10px;border-top:0;border-left:1px solid var(--a-line)}
 #branch-diagram .branch-root>li>ul::before{left:-1px;top:-19px;height:18px}
 #branch-diagram .branch-root>li>ul>li{margin-bottom:16px}
 #branch-diagram .branch-root>li>ul>li::before{left:-11px;top:37px;width:10px;height:1px}
 #branch-diagram .branch-root>li>ul>li:last-child{margin-bottom:0}
 #branch-diagram #tree-children-maha{margin-left:0}
 #branch-diagram .branch-node{padding:9px 8px;gap:6px}
 #branch-diagram .branch-root>li>.branch-row>.branch-node,#branch-diagram .branch-root>li>ul>li>.branch-row>.branch-node{padding:11px}
 #branch-diagram .branch-node strong{font-size:1.25rem}
 #branch-diagram .branch-hint{display:block;margin-top:2px}
 #branch-diagram .branch-hint::before{content:none}
 #branch-diagram .branch-context-root{padding-left:8px}
 #branch-diagram .tree-context-heading{display:block;margin-top:24px}
 #branch-diagram .tree-context-heading p{margin-top:5px}
 #branch-diagram .tree-contexts{grid-template-columns:1fr}
 #tree-workspace .tree-caption{margin-bottom:20px}
 #tree-workspace #branch-detail{padding-top:24px}
 #branch-detail .branch-connections .relationship-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
}
@media(max-width:450px){
 #branch-diagram .branch-item>ul{margin-left:5px;padding-left:8px}
 #branch-diagram .branch-item>ul>li::before{left:-9px;width:8px}
 #branch-diagram .branch-arrow{display:none}
 #branch-detail .branch-study-list{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 #branch-diagram .branch-node,#branch-diagram .branch-arrow{transition:none}
 #branch-diagram .branch-node:hover .branch-arrow{transform:none}
}

/* Compact ground names and explanations stay readable on narrow screens. */
.comparison-page .bhumi-table{min-width:0;width:100%;table-layout:fixed}
.comparison-page .bhumi-table th:first-child{width:38%}
.comparison-page .bhumi-table small{display:block;font-weight:400;overflow-wrap:anywhere}
#ten-bhumis{scroll-margin-top:7rem}

/* Generated by scripts/build-themes.mjs; edit the authored stylesheet instead. */
@media screen{:where(html[data-theme="dark"]) #tree-stages button{border:1px solid hsl(90 21% 30% / 1);color:hsl(122 14% 82% / 1)}:where(html[data-theme="dark"]) #tree-stages button.active{background:hsl(154 30% 23% / 1);border-color:hsl(154 36% 48% / 1);color:hsl(45 48% 94% / 1)}:where(html[data-theme="dark"]) #branch-detail{border:1px solid hsl(85 26% 30% / 1);border-top:4px solid hsl(40 38% 48% / 1);background:hsl(45 30% 11% / 1)}:where(html[data-theme="dark"]) .branch-essence{color:hsl(118 16% 82% / 1)}:where(html[data-theme="dark"]) .branch-text-list a{border:1px solid hsl(83 21% 30% / 1);background:hsl(71 30% 13% / 1)}:where(html[data-theme="dark"]) .branch-text-list span{color:hsl(84 14% 80% / 1)}:where(html[data-theme="dark"]) .branch-depth .relationship-links button{border:1px solid hsl(94 22% 30% / 1);color:hsl(132 27% 83% / 1)}:where(html[data-theme="dark"]) .resource-card h4{color:hsl(144 29% 84% / 1)}:where(html[data-theme="dark"]) .history-depth input{accent-color:hsl(133 16% 82% / 1)}:where(html[data-theme="dark"]) .inline-text-buttons a{border:1px solid hsl(88 23% 30% / 1);background:hsl(70 30% 13% / 1);color:hsl(136 20% 83% / 1)}:where(html[data-theme="dark"]) .game-toolbar{color:hsl(163 29% 85% / 1)}:where(html[data-theme="dark"]) .game-toolbar .eyebrow{color:hsl(85 17% 81% / 1)}:where(html[data-theme="dark"]) .game-tools>summary{border:1px solid hsl(86 15% 48% / 1)}:where(html[data-theme="dark"]) .game-tools>div{background:hsl(56 30% 13% / 1);border:1px solid hsl(89 21% 30% / 1)}:where(html[data-theme="dark"]) .game-toolbar #journal-button{background:hsl(58 30% 14% / 1);color:hsl(139 26% 84% / 1);border:1px solid hsl(89 21% 30% / 1)}:where(html[data-theme="dark"]) .site-footer{color:hsl(97 11% 80% / 1)}:where(html[data-theme="dark"]) .comparison-page th,:where(html[data-theme="dark"]) .comparison-page td{border-bottom:1px solid hsl(87 21% 30% / 1)}
:where(html[data-theme="dark"]) .game-toolbar{color:hsl(43 48% 92% / 1)}:where(html[data-theme="dark"]) .game-toolbar .eyebrow{color:hsl(41 48% 72% / 1)}:where(html[data-theme="dark"]) .game-tools>summary{border-color:hsl(92 18% 30% / 1)}:where(html[data-theme="dark"]) .game-tools>div{color:hsl(163 29% 85% / 1)}:where(html[data-theme="dark"]) body:has(.game-toolbar)>.site-footer{color:hsl(85 28% 83% / 1)}:where(html[data-theme="dark"]) #library-workspace button{color:hsl(137 26% 83% / 1);border:1px solid hsl(91 23% 30% / 1);background:hsl(83 30% 13% / 1)}:where(html[data-theme="dark"]) #library-workspace button[aria-pressed=true]{background:hsl(160 30% 23% / 1);color:hsl(43 48% 92% / 1);border-color:hsl(160 34% 48% / 1)}}
