/* Shared companion controls, with chapter-specific evidence and family context. */
.story-header .tools{align-items:center;flex-wrap:wrap;justify-content:flex-end}
.story-header .compass-trigger{display:flex;align-items:center;gap:10px;text-align:left;border-color:transparent;padding:5px 10px}
.compass-monogram{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;color:var(--gold);font:18px var(--serif)}
.compass-trigger strong,.compass-trigger small{display:block}
.compass-trigger strong{font:16px/1.3 var(--serif)}
.compass-trigger small{font:10px/1.7 var(--sans);color:var(--gold)}
#explore-header{color:var(--gold);border-color:#e3c48c80}
.compass-moment{border-left:3px solid #90703b;background:#e4e7d8;padding:18px 22px;margin:24px 0}
.drawer .compass-moment .eyebrow,.drawer .compass-unproved .eyebrow{color:#59653f;font:500 11px/1.7 var(--sans)}
.drawer .compass-moment h3{margin:10px 0}
.drawer .compass-moment p{font-size:16px;line-height:1.65}
.compass-family ol{list-style:none;padding:0}
.compass-family li>span{display:block;font:500 11px/1.7 var(--sans);text-transform:uppercase;letter-spacing:.08em;margin:24px 0 10px}
.compass-family li>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compass-node{padding:16px;border:1px solid #34594740;border-radius:4px;min-width:0}
.compass-node.anchor{background:#183c30;color:#f4eddf}
.compass-node.moment-focus{box-shadow:inset 3px 0 #a57a37}
.compass-node span,.compass-node small{display:block;font:11px/1.7 var(--sans)}
.compass-node span{opacity:.85;margin-bottom:10px}
.compass-node strong{display:block;font:22px/1.2 var(--serif);margin-bottom:10px}
.compass-unproved{border:1px dashed #8b795a;padding:20px;margin:28px 0}
.compass-unproved h3{margin:8px 0}
.drawer .compass-unproved p{font-size:16px}
.compass-more summary{cursor:pointer;padding:15px 0;min-height:44px}
.compass-scope{border-top:1px solid #34594740;margin-top:24px;padding-top:10px}
.drawer .compass-scope a{color:#365d47;display:inline-block;min-height:44px;line-height:1.8}
@media(max-width:1100px){.story-header{flex-wrap:wrap;gap:8px}.story-header .tools{flex:1 1 600px;justify-content:space-between}.reading aside{top:165px}html{scroll-padding-top:160px}}
/* Two phone rows: identity + secondary controls, then the story companions. */
@media(max-width:600px){
 .story-header{padding:6px 12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .story-header .identity{grid-column:1 / 3;grid-row:1;margin:0;min-width:0;gap:6px;font-size:7px}
 .story-header .identity small{font-size:17px}
 .story-header .tools{display:contents}
 .story-header .tools button{min-width:0;min-height:44px;font-size:11px;padding:5px 6px}
 .story-header .compass-trigger{grid-column:1 / 3;grid-row:2;padding:3px 0;gap:6px}
 .story-header #explore-header{grid-column:3 / 5;grid-row:2}
 .story-header #motion{grid-column:3;grid-row:1}
 .story-header #contents{grid-column:4;grid-row:1}
 .story-header #motion,.story-header #contents{font-size:10px;padding:4px 2px;white-space:nowrap;border-color:transparent}
 .compass-monogram{width:26px;height:26px;font-size:14px}
 .compass-trigger strong{font-size:12px}.compass-trigger small{font-size:10px}
 .compass-family li>div{grid-template-columns:1fr}.compass-node strong{font-size:23px}
 html{scroll-padding-top:120px}
}
@media(max-width:360px){
 .story-header .identity{gap:4px}.story-header .identity img{width:24px;height:24px}
 .story-header .identity small{font-size:15px}
 .story-header .compass-monogram{display:none}
}

/* Match the published story pattern: header compass, centered family/chapter
   dialogs, three-tab Explore sheet and a named four-part bottom dock. */
.story-header{display:flex;flex-wrap:nowrap;padding:12px 4%;gap:18px}
.story-header .tools{display:flex;flex:0 1 auto;flex-wrap:nowrap;gap:20px}
.story-header .identity{margin:0}.story-header .compass-trigger{min-height:48px}
.story-header .compass-trigger strong{font-size:16px}.story-header .compass-trigger small{font-size:14px}
.story-header #motion{white-space:nowrap;min-height:44px}
.family-compass-dialog,.chapter-dialog{margin:auto;width:min(768px,calc(100vw - 32px));height:auto;max-height:88dvh;border:1px solid #a9a68f;border-radius:12px;padding:28px;overflow:auto}
.family-compass-dialog .dialog-head,.chapter-dialog .dialog-head{top:-28px}
.family-compass-dialog h2,.chapter-dialog h2{font-size:34px;margin:18px 0}
.family-compass-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}
.family-compass-summary article{padding:12px;border:1px solid #aab5a1;border-radius:12px;background:#e4e7d8}
.family-compass-summary small,.family-compass-summary strong{display:block;font:14px/1.5 var(--sans)}
.family-compass-summary small{color:#5b6b5e;margin-bottom:5px}.family-compass-summary strong{font-weight:500}
.stage-discovery-sheet{width:min(620px,100%);padding:24px 28px}
.stage-discovery-sheet h2{font-size:32px;margin:12px 0}.stage-discovery-sheet .dialog-head{top:-24px}
.shared-guide-heading{padding:0 0 20px}.shared-guide-heading strong,.shared-guide-heading span{display:block;font-size:17px;line-height:1.5}
.shared-guide-heading span{color:#586252}
.moment-guide-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;background:#e9dfcc;border:1px solid #c8bba3}
.moment-guide-tabs button{border:0;background:transparent;color:#68645a;font:600 14px/1.3 var(--sans);min-height:44px;padding:6px}
.moment-guide-tabs button[aria-selected=true]{background:#314b40;color:#f8f1e5}
[data-guide-panel]{padding-top:20px}[data-guide-panel][hidden]{display:none}
.guide-section-label{font:600 12px/1.5 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#766f63}
.guide-people article{padding:14px 0;border-bottom:1px solid #cbbfa9;font:500 19px/1.5 var(--serif)}
.guide-branch{padding:14px 0}.guide-branch small,.guide-coordinate-grid small{display:block;font:600 12px/1.6 var(--sans);text-transform:uppercase;letter-spacing:.07em;color:#766f63}
.guide-coordinate-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cbbfa9}
.guide-coordinate-grid article{padding:16px}.guide-coordinate-grid article+article{border-left:1px solid #cbbfa9}
.guide-coordinate-grid strong{display:block;font:500 18px/1.4 var(--serif);margin-top:6px}
.stage-return-note{border-top:1px solid #cbbfa9;padding-top:18px;color:#5b6b5e;font-size:14px!important}
.chapter-choice{align-items:center;gap:18px}.chapter-choice-copy{flex:1;min-width:0}
.chapter-choice-copy small{display:block;color:#677258;font:12px/1.5 var(--sans);margin-bottom:5px}
.chapter-choice-copy strong{display:block}.chapter-choice em{font:12px/1.5 var(--sans);color:#815721}
.chapter-choice[aria-current=step]{background:#e4e7d8;border-left:3px solid #9b7d46;padding-left:12px}
/* Same chapter dock as Before the Crossings. Sticky positioning reserves its
   actual height at the end of the chapter, including when titles wrap. */
body:has(> .story-dock) { padding-bottom: 0; }
.bottom.story-dock {
  position: sticky;
  bottom: 0;
  display: block;
  padding: 12px 5% max(12px, env(safe-area-inset-bottom));
  background: #102821f5;
  border-top: 1px solid #d5c08e50;
  backdrop-filter: blur(16px);
}
.story-dock .dock-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
  gap: 24px;
}
.story-dock button {
  display: flex; align-items: center; min-width: 0; min-height: 48px; gap: 15px;
  padding: 0; border: 0; background: transparent; color: #f0eadc;
  text-align: left; font: 400 1rem/1.4 var(--serif);
}
.story-dock button:hover { color: #f4d49b; }
.story-dock #next { justify-content: flex-end; text-align: right; }
.story-dock small {
  display: block; margin-bottom: 3px; color: #bfcdbf;
  font: 500 .75rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .06em;
}
.story-dock strong { font: inherit; }
.story-dock svg { width: 18px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0; }
.story-dock .dock-arrow { font-size: 21px; flex-shrink: 0; }

@media (max-width: 700px) {
  .bottom.story-dock { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .story-dock .dock-inner { grid-template-columns: minmax(0,1fr) minmax(0,.8fr) minmax(0,.7fr) minmax(0,1fr); gap: 8px; }
  .story-dock button { min-height: 52px; gap: 6px; font-size: .875rem; }
  .story-dock .dock-explore, .story-dock .dock-chapters { justify-content: center; text-align: center; }
  .story-dock svg { display: none; }
}
@media (max-width: 480px) {
  .story-dock .dock-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .story-dock #previous { grid-area: 1 / 1; }
  .story-dock #next { grid-area: 1 / 2; }
  .story-dock .dock-explore, .story-dock .dock-chapters { grid-row: 2; min-height: 44px; border-top: 1px solid #d5c08e30; }
}
@media(max-width:800px){
 .story-header{flex-wrap:wrap;gap:8px}.story-header .tools{flex:1;justify-content:space-between;gap:12px}
}
@media(max-width:600px){
 .story-header{padding:8px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto}
 .story-header .identity{grid-column:1;grid-row:1;font-size:8px}.story-header .identity small{font-size:17px}
 .story-header .tools{display:contents}
 .story-header .compass-trigger{grid-column:1 / -1;grid-row:2;min-height:48px;padding:3px 0;gap:10px}
 .story-header .compass-trigger strong{font-size:15px}.story-header .compass-trigger small{font-size:13px}
 .story-header .compass-monogram{display:grid;width:30px;height:34px;font-size:15px}
 .story-header #motion{grid-column:2;grid-row:1;padding:5px 8px;font-size:12px}
 .family-compass-summary{grid-template-columns:1fr}.family-compass-dialog,.chapter-dialog{padding:20px;width:calc(100vw - 20px)}
 .family-compass-dialog .dialog-head,.chapter-dialog .dialog-head{top:-20px}
 .stage-discovery-sheet{padding:18px}.stage-discovery-sheet .dialog-head{top:-18px}
 .chapter-choice{gap:10px}.chapter-choice-copy strong{font-size:21px}.chapter-choice em{max-width:48px}
 html{scroll-padding-top:130px}body{padding-bottom:155px}
}

/* One Irish Acre: historical context without reconstructed estate geography. */
.history-scene{position:relative;isolation:isolate;overflow:hidden;background:#0b211a;border-block:1px solid #dfc39140;margin:0;scroll-margin-top:100px}
.history-backdrop{position:absolute;inset:-4%;z-index:-2;background-size:cover;background-position:50% 45%;animation:history-drift 38s ease-in-out infinite alternate}
.population-history .history-backdrop{background-image:url('/one-irish-acre/assets/uplands-context.png')}
.estate-history .history-backdrop{background-image:url('/one-irish-acre/assets/fields-context.png');background-position:50% 30%}
.purchase-history .history-backdrop{background-image:url('/one-irish-acre/assets/home-context.png')}
.history-scene:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#061a16f2,#061a16a8 70%,#061a1677),linear-gradient(0deg,#061a16ed,transparent 65%)}
.history-content{max-width:1200px;margin:auto;padding:80px 5% 35px}
.history-content h2{font:400 clamp(35px,4.5vw,65px)/1.1 var(--serif);letter-spacing:-.035em;margin:20px 0 28px;text-wrap:balance}
.history-content h2 em{color:var(--gold)}
.history-lead{max-width:48ch;font:400 23px/1.6 var(--serif)}
.history-switch{display:flex;flex-wrap:wrap;gap:8px;margin:30px 0 0}
.history-switch button{min-height:48px;padding:12px 20px;border:1px solid #ddc18b66;background:#0a251fde;color:#f5e9cf;font:500 13px/1.4 var(--sans);border-radius:3px 3px 0 0}
.history-switch button[aria-pressed=true]{background:#e5c58b;color:#163428;border-color:#e5c58b}
.history-glass{max-width:890px;padding:32px 38px;background:#0a211bee;border:1px solid #dfc39155;border-radius:0 5px 5px 5px;box-shadow:0 20px 70px #0003}
.history-glass h3{font:400 clamp(26px,3vw,38px)/1.2 var(--serif);margin:12px 0 22px}
.history-glass>p:not(.eyebrow):not(.history-caution),.purchase-proof p{font:400 19px/1.75 var(--serif);max-width:68ch}
.history-counts{display:flex;align-items:center;gap:35px;margin:25px 0}
.history-counts div{display:grid;gap:8px}.history-counts strong{font:400 clamp(44px,7vw,84px)/1 var(--serif);color:var(--gold)}
.history-counts small{font:500 17px var(--sans)}.history-counts span{font:400 12px var(--sans);color:#e3dbc9}
.history-count-arrow{font-size:30px!important;color:var(--gold)!important}
.history-houses{border-top:1px solid #dfc39145;padding-top:20px}
.history-caution{max-width:850px;border-left:2px solid #d6b270;padding-left:20px;margin:25px 0;font:400 14px/1.85 var(--sans);color:#ece0c8}
.history-source{font:400 12px/1.8 var(--sans);max-width:850px;margin:24px 0}.history-source a{display:inline-block;margin:4px 15px 4px 0}
.history-content a{color:#f0cd8c;text-underline-offset:4px;overflow-wrap:anywhere}
.history-image-credit{font:400 10px/1.7 var(--sans);color:#d6cdbb;max-width:800px;margin:30px 0 0}
.estate-scope{display:grid;grid-template-columns:auto 1fr;gap:45px;align-items:end;max-width:900px;margin:35px 0 45px}
.estate-scope>strong{font:400 clamp(39px,6vw,76px)/1 var(--serif);color:var(--gold);white-space:nowrap}
.estate-scope strong span{display:block;font:400 13px/1.5 var(--sans);margin-top:12px;color:#f5ead5}
.estate-scope p{font:400 21px/1.6 var(--serif);margin:0}.estate-scope small{font:400 12px/1.7 var(--sans);color:#d6cdbb}
.purchase-proof{display:grid;grid-template-columns:180px 1fr;gap:40px;align-items:center;border-block:1px solid #dfc39155;padding:30px 0;margin-top:35px}
.purchase-proof>strong{font:400 95px/1 var(--serif);color:var(--gold)}.purchase-proof strong span{display:block;font:400 13px/1.7 var(--sans);margin-top:12px;color:#f1e5ce}
.purchase-proof .fine{font:400 13px/1.8 var(--sans)}
.holding-invitation{font:400 13px/1.7 var(--sans);color:#d8cbb0;margin-top:28px;max-width:75ch}
.holding-invitation strong{display:block;font:400 22px/1.4 var(--serif);color:var(--gold);margin-bottom:10px}
.holding-invitation>span{display:block}
.holding-switch button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:7px;flex:1;min-width:0}
.holding-switch .holding-tab-title{font:500 14px/1.4 var(--sans)}
.holding-switch .holding-tab-period{font:400 11px/1.5 var(--sans);color:inherit;opacity:.9}
.holding-panel{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);border:1px solid #dfc39166;background:#0c231eee;box-shadow:0 20px 70px #0004}
.holding-window{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:550px;padding:35px 30px;background:#182b24}
.holding-window:before{content:'';position:absolute;inset:-5%;z-index:-2;background-position:center;background-size:cover;animation:history-drift 38s ease-in-out infinite alternate}
.holding-window--home:before{background-image:url('/one-irish-acre/assets/home-context.png');background-position:60% 50%}
.holding-window--fields:before{background-image:url('/one-irish-acre/assets/fields-context.png');background-position:40% 50%}
.holding-window:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#071d18ba,transparent 35%,#071d18a6 70%,#071d18e8)}
.holding-window .eyebrow{line-height:1.8}.holding-phrase{font:400 clamp(31px,3.5vw,47px)/1.2 var(--serif);text-shadow:0 2px 20px #000;margin:75px 0 55px;letter-spacing:-.025em}
.holding-phrase em,.holding-politics em,.holding-famine em{color:var(--gold)}
.holding-image-note{font:400 10px/1.7 var(--sans);color:#e2dac8;max-width:33ch}
.holding-reading{padding:35px 32px;min-width:0}
.holding-reading h3,.holding-politics h3,.holding-famine h3,.holding-mary h3,.purchase-proof h3{font:400 clamp(27px,3vw,38px)/1.2 var(--serif);margin:0 0 24px;text-wrap:balance}
.holding-reading>p:not(.history-caution),.holding-politics>p:not(.eyebrow),.holding-famine>p:not(.eyebrow):not(.history-caution),.holding-mary>p:not(.eyebrow):not(.history-caution){font:400 19px/1.75 var(--serif)}
.holding-consequences{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-block:1px solid #dfc39144;padding:20px 0;margin:25px 0}
.holding-consequences h4{font:500 12px/1.6 var(--sans);color:var(--gold);margin:0 0 10px}.holding-consequences p{font:400 16px/1.65 var(--serif);margin:0}
.holding-politics{max-width:730px;margin:70px auto;padding-left:28px;border-left:2px solid #c8a969}
.holding-famine{position:relative;max-width:860px;margin:60px auto;padding:35px 40px;background:linear-gradient(110deg,#322820f0,#152820f0);border:1px solid #c9a47f66}
.holding-famine:before{content:'1847';position:absolute;right:22px;top:10px;font:400 clamp(70px,10vw,130px)/1 var(--serif);color:#ecd4a90c;pointer-events:none}
.holding-famine a,.holding-politics a{font:400 12px/1.8 var(--sans)}
.holding-mary{max-width:820px;margin:50px 0;padding:30px;border-left:2px solid #d3b479;background:#102c24db}
.purchase-history .history-next{padding:15px 0;border-top:1px solid #dfc39133}
[data-motion=off] .holding-window:before{animation:none}
@media(prefers-reduced-motion:reduce){.holding-window:before{animation:none}}
@media(max-width:800px){.holding-panel{grid-template-columns:1fr}.holding-window{min-height:360px;padding:28px}.holding-phrase{margin:30px 0;font-size:40px;max-width:19ch}.holding-reading{padding:28px}.holding-politics{margin:45px 0}.holding-famine{padding:28px}}
@media(max-width:500px){.holding-switch{flex-direction:column}.holding-switch button{flex:auto;width:100%;text-align:left}.holding-consequences{grid-template-columns:1fr;gap:22px}.holding-window{min-height:320px;padding:24px}.holding-phrase{font-size:34px}.holding-reading{padding:25px 20px}.holding-famine,.holding-mary{padding:25px 20px}.holding-politics{padding-left:20px}.holding-reading>p:not(.history-caution){font-size:18px}}
.history-policy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:55px 0 30px;background:#0a211bf2;border:1px solid #dfc39155}
.history-policy article{padding:27px;border-right:1px solid #dfc39144}.history-policy article:last-child{border:0}
.history-policy article>span{font:500 11px/1.6 var(--sans);color:var(--gold)}
.history-policy h3{font:400 28px/1.2 var(--serif);margin:20px 0}.history-policy p{font:400 17px/1.7 var(--serif)}
.history-policy .fine,.history-policy a{font:400 12px/1.8 var(--sans)}.history-next{max-width:850px}.history-next summary{min-height:44px;cursor:pointer;color:var(--gold);font:400 18px/1.6 var(--serif)}.history-next p{font:400 17px/1.8 var(--serif)}
.guide-history{border-bottom:1px solid #32544033;padding-bottom:20px;margin-bottom:25px}
@keyframes history-drift{from{transform:scale(1.01) translateX(-.6%)}to{transform:scale(1.06) translateX(.6%)}}
[data-motion=off] .history-backdrop{animation:none}
@media(prefers-reduced-motion:reduce){.history-backdrop{animation:none}}
@media(max-width:800px){.history-policy{grid-template-columns:1fr}.history-policy article{border-right:0;border-bottom:1px solid #dfc39144}.estate-scope{grid-template-columns:1fr;gap:24px}.history-content{padding-top:55px}}
@media(max-width:500px){.history-glass{padding:24px 20px}.history-switch{gap:5px}.history-switch button{flex:1 1 40%;padding:12px 9px}.history-counts{gap:20px}.history-counts span{font-size:11px}.history-lead{font-size:20px}.purchase-proof{grid-template-columns:1fr;gap:15px}.purchase-proof>strong{font-size:70px}.history-caution{font-size:13px}.history-content h2{font-size:35px}}
@media(max-width:360px){.history-counts{gap:10px}.history-counts strong{font-size:34px}.history-count-arrow{font-size:20px!important}.history-counts span{font-size:10px}.history-glass h3{font-size:25px}}
