/* The handbook uses the paper, green and brass finishes of the site identity. */
:root { --book-green:#193a32; --book-ink:#223930; --book-brass:#ac8a56; --book-hair:#d6cbb9; --display:"Songti SC","STSong","SimSun",serif; }
.handbook-page,.featured-reader { background:#f8f6f0; }
.book-mast { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; padding-bottom:1.1rem; border-bottom:3px double var(--book-brass); margin-bottom:1.3rem; }
.book-mast h1 { color:var(--book-ink); letter-spacing:.075em; }
.book-mast nav { gap:clamp(.7rem,2vw,1.45rem); }
.book-mast nav a { color:#524937; white-space:nowrap; }
.cover-story { position:relative; isolation:isolate; display:flex; align-items:center; min-height:clamp(22rem,36vw,32rem); padding:clamp(1.65rem,5vw,4.3rem); color:#fcf6e9; background:#102b24; overflow:hidden; }
.cover-art,.cover-story::after { position:absolute; inset:0; width:100%; height:100%; z-index:-2; }
.cover-art { object-fit:cover; object-position:50% 49%; }
.cover-story::after { content:""; z-index:-1; background:linear-gradient(90deg,rgba(10,29,24,.96),rgba(11,33,26,.86) 30%,rgba(11,30,24,.10) 65%,transparent 85%); }
.cover-story-text { width:min(46%,30rem); }
.cover-topic { color:#ebcf9a; font-size:.86rem; letter-spacing:.14em; font-weight:650; }
.cover-topic::before { content:""; display:inline-block; width:1.9rem; height:1px; margin-right:.7rem; vertical-align:middle; background:#d1ac6e; }
.cover-story h2 { margin:.8rem 0; font:700 clamp(2.35rem,4.1vw,4rem)/1.2 var(--display); }
.cover-story h2 a:hover { text-decoration:none; color:#f4dba8; }
.cover-story-text > p:not(.cover-topic) { max-width:25em; line-height:1.85; color:#f0ecdf; font-size:.98rem; }
.read-cover { display:inline-flex; gap:1rem; align-items:center; margin-top:1.3rem; padding:.51rem .97rem; color:#26352a; background:#ecd3a3; font-size:.92rem; font-weight:700; }
.read-cover::after { content:"→"; }
.read-cover:hover { background:#f8e4ba; text-decoration:none; }
.book-section-heading,.library-head { display:flex; justify-content:space-between; align-items:baseline; border-bottom:1px solid var(--book-hair); padding-bottom:.65rem; margin:2.65rem 0 1rem; }
.book-section-heading h2,.library-head h2 { font:700 clamp(1.5rem,2.25vw,2.05rem)/1.45 var(--display); color:var(--book-ink); letter-spacing:.045em; }
.case-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.case-columns article { padding:.42rem clamp(.95rem,2.5vw,2rem) .5rem; border-left:1px solid var(--book-hair); }
.case-columns article:first-child { padding-left:0; border-left:0; }
.case-columns h3 { font:700 clamp(1.22rem,2vw,1.65rem)/1.5 var(--display); margin:.3rem 0 .45rem; color:var(--book-green); }
.case-category,.entry-topic { font-size:.82rem; color:#78552d; font-weight:650; letter-spacing:.07em; }
.case-deck { color:#5e5f55; line-height:1.75; font-size:.94rem; }
.case-columns a { display:block; }
.case-columns a:hover { text-decoration:none; }
.case-columns a:hover h3 { text-decoration:underline; text-underline-offset:.2em; }
.library-head { align-items:center; gap:1rem; }
.library-head p { font-size:.88rem; color:var(--muted); }
.library-filter { margin:0; display:flex; align-items:center; gap:.75rem; font-size:.88rem; color:var(--muted); }
.library-filter span { white-space:nowrap; }
.library-filter input[type=search] { width:min(16rem,50vw); font-size:.93rem; height:2.6rem; border-radius:0; border-color:var(--book-hair); }
.case-index { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 clamp(1.25rem,3.4vw,2.8rem); padding:0; margin:0; }
.case-index li { border-bottom:1px solid #e2dbce; }
.case-index a { display:grid; grid-template-columns:4.4rem 1fr auto; align-items:baseline; gap:.65rem; padding:.83rem .12rem; }
.case-index a:hover { text-decoration:none; background:#ede9df; }
.entry-title { font-weight:600; color:var(--book-ink); font-size:.98rem; }
.entry-arrow { color:#9a794c; }
.no-matches { padding:1.2rem 0; }
.handbook-page .journal-card { box-shadow:none; border-radius:0; background:#fcfbf8; }
.handbook-page .journal-photo { border-radius:0; }
.featured-reader .reader { width:min(46rem,calc(100% - 2.5rem)); }
.featured-reader .reader article { padding:clamp(1rem,3vw,2.15rem) 0 .7rem; border-top:3px double var(--book-brass); }
.featured-reader .reader h1 { font-family:var(--display); color:var(--book-green); margin:.55rem 0 1.1rem; }
.featured-reader .reader .topic { color:#77562d; }
.featured-reader .story-lead { color:#4f564c; }
.featured-reader .reader article > section h2 { font-family:var(--display); margin-bottom:.55rem; color:var(--book-green); }
.featured-reader .reader section p { color:#353e37; }
.story-nav { gap:1rem; flex-wrap:wrap; }
.story-nav a:last-child { margin-left:auto; }
.location-spread { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); border:1px solid var(--book-hair); background:#f3efe6; }
.map-card { position:relative; display:grid; min-height:clamp(21rem,32vw,29rem); isolation:isolate; place-items:center; overflow:hidden; color:#fff8e7; }
.map-card:hover { text-decoration:none; }
.map-lines { position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#122820bd,transparent 45%),url("assets/location-plan.svg") center / cover; transition:transform .3s; }
.map-card:hover .map-lines { transform:scale(1.025); }
.map-place { display:grid; justify-items:center; gap:.8rem; }
.map-place strong { background:#18372e; border:1px solid #d9c49a; padding:.23rem 1.05rem; font:700 1.22rem/1.55 var(--display); letter-spacing:.1em; }
.map-pin { width:2.8rem; height:2.8rem; border:.13rem solid #f5e7ca; background:#a84444; border-radius:52% 52% 52% 0; transform:rotate(-45deg); box-shadow:-.24rem .28rem .7rem #15271f66; display:grid; place-items:center; }
.map-pin::after { content:""; width:.75rem; height:.75rem; border-radius:50%; background:#f9efd8; }
.map-legend,.map-open { position:absolute; bottom:1rem; font-size:.84rem; }
.map-legend { left:1rem; color:#f9f1de; }
.map-open { right:1rem; border:1px solid #d7c59f; padding:.35rem .8rem; background:#20392f; font-weight:650; }
.map-open span { margin-left:.45rem; }
.address-block { padding:clamp(1.3rem,3.2vw,3rem); align-self:center; }
.address-block h2 { font:700 clamp(1.55rem,2.25vw,2rem)/1.48 var(--display); color:var(--book-green); text-wrap:balance; }
.address-block dl { margin:1em 0; }
.address-block dl > div { margin:.75rem 0; }
.address-block dt { font-size:.82rem; font-weight:600; color:#745630; margin-bottom:.15rem; }
.address-block dd { margin:0; line-height:1.8; }
.address-block button { margin:.9rem 0 0; min-height:2.6rem; padding:.5rem 1rem; border-radius:.1rem; background:#224337; }
#live-map { margin-top:1.3rem; }
#live-map iframe { display:block; width:100%; height:clamp(23rem,56vh,38rem); border:1px solid var(--book-hair); background:white; }
#live-map p { margin-top:.5rem; }
#live-map a { text-decoration:underline; }
@media(max-width:48rem){
  .book-mast { align-items:start; flex-direction:column; gap:.6rem; }
  .cover-story-text { width:60%; }
  .case-index { grid-template-columns:1fr; }
  .location-spread { grid-template-columns:1fr; }
}
@media(max-width:39rem){
  .cover-story { display:grid; padding:0; min-height:0; }
  .cover-art { position:static; height:auto; width:100%; aspect-ratio:2.05; object-position:70% 55%; }
  .cover-story::after { display:none; }
  .cover-story-text { padding:1.2rem; width:100%; }
  .cover-story h2 { font-size:1.92rem; }
  .cover-story h2 br { display:none; }
  .case-columns { grid-template-columns:1fr; }
  .case-columns article,.case-columns article:first-child { padding:.7rem 0; border-left:0; border-bottom:1px solid var(--book-hair); }
  .book-section-heading,.library-head { margin-top:1.85rem; }
  .library-filter { display:block; }
  .library-filter span { display:block; font-size:.8rem; }
  .library-filter input[type=search] { width:10.7rem; max-width:45vw; padding-inline:.45rem; font-size:.85rem; }
  .entry-title { font-size:.95rem; }
  .map-card { min-height:17rem; }
}
@media(prefers-reduced-motion:reduce){ .map-lines {transition:none;} }
