/* One visitor journey: book, chapter explorations, and detailed research. */
.chapter-explorer{background:#e3ecf1;border-block:1px solid #c9d4da;padding:78px 0 40px;scroll-margin-top:10px}
.chapter-explorer-heading{display:flex;justify-content:space-between;align-items:end;gap:36px;margin-bottom:34px}
.chapter-explorer-heading h2{font:400 clamp(42px,4.6vw,70px)/1.04 var(--serif);letter-spacing:-.04em;margin:0}
.chapter-explorer-heading>.chapter-explorer-heading,.chapter-explorer-heading>p{max-width:430px}
.chapter-explorer-heading>p{font:400 19px/1.55 var(--serif);margin:0;color:#495f6d}
.chapter-explorer-heading .eyebrow{color:#8d342d;margin-bottom:15px}
.journey-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:0;border-bottom:1px solid #9eafb8;gap:0}
.journey-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#405561;padding:17px 14px;min-height:80px;text-align:left;font:500 16px/1.3 var(--sans);cursor:pointer}
.journey-tabs button>span{display:block;font:500 10px/1.4 var(--sans);letter-spacing:.1em;margin-bottom:8px;color:#6c7e87}
.journey-tabs button[aria-selected="true"]{background:#f7f7f2;border-bottom-color:var(--red);color:#222d32}
.journey-tabs button:focus-visible,.journey-choices button:focus-visible{outline:3px solid var(--red);outline-offset:-4px}
.chapter-panel{display:grid;grid-template-columns:.92fr 1.08fr;align-items:stretch;background:#f7f7f2;border-bottom:1px solid #bdcbd2;min-height:620px}
.chapter-panel[hidden]{display:none}
.chapter-visual{margin:0;min-width:0;padding:36px 34px 20px;background:#d5e1e7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;overflow:hidden}
.chapter-visual img{display:block;max-width:100%;width:100%;height:510px;object-fit:contain;filter:drop-shadow(6px 10px 13px #243f4d28)}
.chapter-visual figcaption{font:400 11px/1.6 var(--sans);color:#455d69;max-width:450px;align-self:start}
.town-visual{padding:0 0 20px;justify-content:stretch}
.town-visual img{height:100%;min-height:520px;object-fit:cover;object-position:64% center;filter:none}
.town-visual figcaption{padding-inline:24px}
.chapter-interaction{padding:42px clamp(26px,4vw,65px);min-width:0;display:flex;flex-direction:column;align-items:start}
.chapter-interaction>.eyebrow{font:500 10px/1.5 var(--sans);letter-spacing:.13em;color:#647984;margin:0 0 20px}
.chapter-interaction h3{font:400 clamp(32px,3.2vw,51px)/1.08 var(--serif);letter-spacing:-.035em;margin:0 0 20px;max-width:14em}
.chapter-interaction>p:not(.eyebrow):not(.chapter-note){font:400 19px/1.55 var(--serif);margin:0 0 24px;max-width:34em}
.journey-search{width:100%;margin:0}
.journey-search>label,.journey-select{font:500 11px/1.5 var(--sans);letter-spacing:.07em;text-transform:uppercase;display:block;width:100%;color:#536875}
.journey-search>div{display:grid;grid-template-columns:minmax(0,1fr) auto;margin-top:8px;gap:8px}
.journey-search input,.journey-select select{min-width:0;width:100%;height:48px;border:1px solid #a7b6be;background:#fff;padding:10px 12px;font:400 17px/1.4 var(--sans);border-radius:0;color:#24353e}
.journey-select select{margin-top:8px;font-size:15px}
.journey-search .button{font-size:13px;white-space:nowrap;padding:10px 15px;gap:12px}
.journey-result{width:100%;margin:22px 0 12px;padding:22px 0 17px;border-block:1px solid #c8d2d7;min-height:155px}
.journey-result p{margin:0 0 10px}
.journey-result .encoded-word{font:400 22px/1.3 ui-monospace,monospace;overflow-wrap:anywhere;color:#344b58}
.word-counts{display:flex;gap:46px;margin:14px 0}
.word-counts>div{display:flex;flex-direction:column}
.word-counts strong{font:400 50px/1.05 var(--serif);letter-spacing:-.04em;color:#283b47}
.word-counts span{font:400 12px/1.5 var(--sans);color:#546c7a;margin-top:5px}
.chapter-note{font:400 11px/1.6 var(--sans)!important;color:#667b85;margin:8px 0 17px!important;max-width:42em}
.chapter-open{margin-top:auto;min-height:48px;font:500 13px/1.4 var(--sans);gap:18px;padding:12px 18px}
.journey-choices{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 0;width:100%}
.journey-choices button{min-height:46px;border:1px solid #b6c4cb;background:#fff;color:#415a68;padding:10px 13px;font:500 13px/1.3 var(--sans);cursor:pointer}
.journey-choices button[aria-pressed="true"]{background:#314c5c;color:#fff;border-color:#314c5c}
.hand-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.hand-choices button{padding-inline:6px;white-space:nowrap;font-size:12px}
.folio-shortcuts{display:flex;flex-wrap:wrap;gap:5px;margin-top:14px}
.folio-shortcuts a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:6px 9px;border:1px solid #c3d1d8;background:#edf2f4;font:400 12px var(--sans);text-decoration:none}
.folio-shortcuts a:hover{border-color:var(--red);color:var(--red)}
.marker-row{padding:0!important;margin:14px 0!important;display:flex;flex-wrap:wrap;gap:7px;list-style:none}
.marker-row .marker{font-size:29px;line-height:1.2;width:29px;text-align:center;border-bottom:2px solid transparent;margin:0!important}
.marker-red{color:#a5372e}.marker-pale{color:#b4a17c;text-shadow:0 0 1px #776744}
.marker-row .marker-repeat{border-bottom-color:#a38446}
.marker-comparison{display:flex;gap:24px;width:100%;margin:0 0 22px}
.marker-comparison>div{display:flex;flex-direction:column;flex:1;min-width:0}
.marker-comparison strong{font:400 31px/1.2 var(--serif)}
.marker-comparison span{font:500 11px/1.5 var(--sans);margin-top:3px}
.marker-comparison small{font:400 10px/1.5 var(--sans);color:#667b85}
.history-result{min-height:195px}
.history-result>p:first-child{font:500 11px/1.5 var(--sans);color:#6e5b43}
.history-result h4{font:400 29px/1.15 var(--serif);letter-spacing:-.025em;margin:10px 0 15px}
.history-result>p:last-child{font:400 17px/1.6 var(--serif);color:#415865}
.explorer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:23px;font:400 12px/1.6 var(--sans);color:#5e7582}
.explorer-bottom a{font-weight:500;min-height:44px;display:flex;align-items:center;gap:18px;color:#8f3029}
.selected-articles{padding-top:78px;padding-bottom:78px;border-bottom:1px solid var(--rule)}
.article-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.article-feature{display:flex;flex-direction:column;text-decoration:none;border:1px solid #ced7dc;background:#f7f7f2;min-width:0}
.article-feature>img{width:100%;height:230px;object-fit:cover;object-position:50% 30%}
.article-feature>div{padding:25px;display:flex;flex-direction:column;align-items:start;flex:1}
.article-feature .eyebrow{font-size:9px;line-height:1.5;color:#677c87;margin-bottom:14px}
.article-feature h3{font:400 27px/1.15 var(--serif);letter-spacing:-.02em;margin:0 0 25px}
.article-feature div>span{font:500 12px/1.5 var(--sans);display:flex;width:100%;justify-content:space-between;gap:20px;margin-top:auto;min-height:44px;align-items:center;color:#98352e;border-top:1px solid #d8dfe2;padding-top:12px}
.article-feature:hover{border-color:#7c939f;box-shadow:0 8px 20px #263f4e0c}
/* Shared primary navigation and page context. */
.ex-header-inner{min-height:78px;gap:25px}
.ex-header .ex-nav{margin-left:auto;width:auto;order:0;border:0;padding:0;gap:24px}
.ex-header .wordmark{margin-right:0}
.chapter-navigation{display:flex;gap:28px;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;padding:0 var(--gutter);border-bottom:1px solid #d4dde1;background:#edf2f5}
.chapter-navigation a{display:flex;align-items:center;min-height:48px;text-decoration:none;font:500 12px/1.5 var(--sans);color:#526d7d}
.chapter-navigation a[aria-current="page"]{color:#942f28;box-shadow:inset 0 -2px #942f28}
.book-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;padding:20px var(--gutter) 0;font:400 10px/1.5 var(--sans);letter-spacing:.05em;color:#708591}
.book-breadcrumb a{text-decoration:none;color:#405e70}
.chapter-continuation{display:grid;grid-template-columns:1.4fr .8fr;gap:60px;padding:55px var(--gutter);border-block:1px solid #c4d3dc;background:#dce7ef;margin-top:55px}
.chapter-continuation h2{font:400 clamp(28px,3vw,42px)/1.12 var(--serif);letter-spacing:-.025em;max-width:25em;margin:0 0 25px}
.chapter-continuation .text-link{margin-left:20px;font:500 12px/1.5 var(--sans)}
.continue-next{display:flex;flex-direction:column;align-items:start;justify-content:center;text-decoration:none;border-left:1px solid #b5c6d1;padding-left:35px;color:#304f62}
.continue-next>span{font:500 10px/1.5 var(--sans);letter-spacing:.07em;text-transform:uppercase}
.continue-next>strong{font:400 29px/1.15 var(--serif);margin-top:12px;max-width:15em}
.continue-next>b{font:400 25px var(--serif);margin-top:20px}
#all-star-pages table{min-width:650px;margin-top:20px}
#all-star-pages .marker-row{gap:3px;flex-wrap:nowrap}
#all-star-pages .marker{font-size:22px;width:22px}
#all-star-pages th{white-space:nowrap}
@media(max-width:1100px),(max-aspect-ratio:1/1){
 .ex-header-inner{min-height:68px;position:relative;flex-wrap:wrap}
 .ex-header .wordmark{margin-right:auto}
 .ex-header .nav-toggle{display:inline-flex;align-items:center}
 .ex-header .js .ex-nav,.js .ex-header .ex-nav{display:none}
 .js .ex-header .ex-nav.is-open{display:grid;gap:0;position:absolute;top:100%;left:0;right:0;margin:0;padding:12px var(--gutter) 20px;background:#f4f7f7;border-bottom:1px solid #bbcbd4;box-shadow:0 14px 20px #263c4814;max-height:70dvh;overflow:auto}
 .ex-header .ex-nav a{font-size:19px;min-height:52px;border-bottom:1px solid #d4dde1}
 .ex-header .back-to-book{padding:11px 14px}
 .chapter-panel{grid-template-columns:.88fr 1.12fr}
 .chapter-interaction{padding:32px 28px}
 .chapter-interaction h3{font-size:37px}
 .chapter-visual{padding-inline:24px}
 .chapter-visual img{height:440px}
 .article-feature h3{font-size:24px}
}
@media(max-width:699px){
 .chapter-explorer{padding-top:40px;padding-bottom:24px}
 .chapter-explorer-heading{display:block;margin-bottom:24px}
 .chapter-explorer-heading h2{font-size:43px}
 .chapter-explorer-heading>p{font-size:17px;line-height:1.5;margin-top:18px;max-width:28em}
 .journey-tabs button{font-size:12px;padding:11px 6px;min-height:84px;text-align:center}
 .journey-tabs button>span{font-size:9px;margin-bottom:7px}
 .chapter-panel{display:flex;flex-direction:column;min-height:0}
 .chapter-visual{padding:22px 20px 15px;gap:12px}
 .chapter-visual img{height:290px}
 .chapter-visual figcaption{font-size:9px}
 .town-visual{padding:0 0 15px}
 .town-visual img{min-height:0;height:270px}
 .chapter-interaction{padding:27px 21px 30px}
 .chapter-interaction h3{font-size:35px;margin-bottom:18px}
 .chapter-interaction>p:not(.eyebrow):not(.chapter-note){font-size:17px;margin-bottom:21px}
 .chapter-interaction>.eyebrow{font-size:9px;margin-bottom:15px}
 .journey-search .button{font-size:11px;padding-inline:10px;gap:8px}
 .journey-search input{font-size:16px;padding-inline:9px}
 .journey-result{margin-top:20px;min-height:0}
 .word-counts{gap:40px}
 .word-counts strong{font-size:43px}
 .hand-choices button{font-size:10px}
 .chapter-open{margin-top:12px;font-size:12px;gap:14px;max-width:100%}
 .journey-choices button{font-size:11px;min-height:44px;padding:9px}
 .history-result h4{font-size:27px}
 .explorer-bottom{display:block;font-size:11px;padding-top:17px}
 .explorer-bottom a{margin-top:8px}
 .selected-articles{padding-top:40px;padding-bottom:40px}
 .selected-articles .chapter-explorer-heading .button{margin-top:20px}
 .article-feature-grid{grid-template-columns:1fr;gap:23px}
 .article-feature>img{height:215px}
 .article-feature>div{padding:22px}
 .ex-header-inner{padding-inline:20px;gap:8px}
 .chapter-navigation{gap:23px}
 .chapter-navigation a{font-size:11px;min-height:44px}
 .book-breadcrumb{padding-top:15px;font-size:9px}
 .chapter-continuation{grid-template-columns:1fr;gap:30px;padding-block:36px;margin-top:35px}
 .chapter-continuation .text-link{display:flex;margin:12px 0 0;min-height:44px;width:fit-content}
 .continue-next{border-left:0;border-top:1px solid #b5c6d1;padding:25px 0 0}
 .continue-next>strong{font-size:25px}
 .continue-next>b{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.article-feature{transition:none}}

.part-companion{margin:0 12px 25px 107px;padding-top:15px;border-top:1px solid #cad5db;display:flex;align-items:center;gap:23px;flex-wrap:wrap}
.part-companion>span{font:500 10px/1.5 var(--sans);text-transform:uppercase;letter-spacing:.1em;color:#667a85}
.part-companion>a,.story-explore{font:500 12px/1.5 var(--sans);color:#96362e;min-height:44px;display:inline-flex;align-items:center;gap:20px;text-decoration:none}
.part-companion>a:hover,.story-explore:hover{text-decoration:underline}
.story-explore{margin-top:12px;padding-top:8px;border-top:1px solid #c2d0d8;width:100%;justify-content:space-between}
.ex-header .ex-nav a[aria-current]{color:#942f28}
@media(max-width:1100px){.part-companion{margin-left:44px}}
@media(max-width:699px){.part-companion{margin-left:36px;display:block}.part-companion>a{display:flex;gap:14px;font-size:11px}}

.table-scroll-hint{margin-top:16px;color:#526c7c}
#all-star-pages:focus-visible{outline:2px solid #94352d;outline-offset:3px}
