/* ============================================================
   lda_book.css
   Shared stylesheet for the web edition of "Analyzing Change"
   (Yu, H.-T.). Mirrors the LDA_style.sty print identity
   (Palatino body / Helvetica headings, the book's color palette,
   the six pedagogical box types) adapted for screen reading.
   ============================================================ */

:root{
  --lda-blue:        #0072B2;
  --lda-green:       #1B7F5C;
  --lda-orange:      #C15A00;
  --lda-purple:      #7A4FA3;
  --lda-red:         #B23A48;
  --lda-gray:        #4D4D4D;
  --lda-blue-tint:   #EAF2F8;
  --lda-green-tint:  #EAF4EF;
  --lda-orange-tint: #FBF0E6;
  --lda-purple-tint: #F3EEF8;
  --lda-summary-bg:  #F2F8FC;
  --lda-summary-fr:  #005C8F;
  --code-bg:         #F7F7F5;
  --code-kw:         #0072B2;
  --code-str:        #1B7F5C;
  --code-com:        #8A8A8A;
  --ink:             #1B1B1B;
  --paper:           #FFFFFF;
  --rule:            #D9D9D6;
  --serif: "Palatino Linotype", Palatino, "URW Palladio L", "Book Antiqua", Georgia, "Songti TC", serif;
  --sans:  "Helvetica Neue", Helvetica, Arial, "Segoe UI", "PingFang TC", sans-serif;
  --mono:  "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: #F4F4F2;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}
.site-shell{
  max-width: 800px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  min-height: 100vh;
}

/* ---------- header ---------- */
.site-header{
  padding: 22px 40px 16px;
  border-bottom: 3px solid var(--lda-blue);
}
.site-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
}
.site-title:hover{ color: var(--lda-blue); }
.site-subtitle{
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--lda-gray);
}

/* ---------- chapter nav ---------- */
.chapter-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 40px;
  background: #FAFAF9;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .82rem;
}
.chapter-nav.bottom{ border-bottom: none; border-top: 1px solid var(--rule); }
.chapter-nav a{ color: var(--lda-blue); text-decoration: none; }
.chapter-nav a:hover{ text-decoration: underline; }
.nav-toc{ text-align: center; flex: 1; color: var(--lda-gray) !important; font-weight: 600; }
.nav-prev, .nav-next{ white-space: nowrap; }
.nav-disabled{ color: #B7B7B3 !important; }

/* ---------- chapter header ---------- */
main{ padding: 0 40px; }
.chapter-header{ padding-top: 40px; }
.chapter-kicker{
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lda-blue);
  margin: 0 0 6px;
}
.chapter-header h1{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 22px;
}
.epigraph{
  font-style: italic;
  color: #3A3A3A;
  border-left: 3px solid var(--rule);
  padding-left: 18px;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* ---------- on-this-page box ---------- */
.page-toc{
  background: #FAFAF9;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 32px;
  font-family: var(--sans);
  font-size: .85rem;
}
.page-toc-title{
  margin: 0 0 8px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lda-gray);
}
.page-toc ol{ margin: 0; padding-left: 1.2em; columns: 1; }
.page-toc li{ margin-bottom: 3px; }
.page-toc a{ color: var(--ink); text-decoration: none; }
.page-toc a:hover{ color: var(--lda-blue); text-decoration: underline; }
@media (min-width: 640px){ .page-toc ol{ columns: 2; column-gap: 24px; } }

/* ---------- body text ---------- */
.chapter h2{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--lda-blue);
  margin: 2.2em 0 .7em;
  scroll-margin-top: 16px;
}
.chapter h2.unnum{ color: var(--lda-gray); }
.chapter h3{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--lda-gray);
  margin: 1.8em 0 .6em;
  scroll-margin-top: 16px;
}
.chapter p{ margin: 0 0 1em; text-align: justify; hyphens: auto; }
.chapter a.xref{ color: var(--lda-blue); text-decoration: none; }
.chapter a.xref:hover{ text-decoration: underline; }
.chapter a{ color: var(--lda-purple); }
.chapter strong{ font-weight: 700; }
.smallcaps{ font-variant: small-caps; }
code, .pkg{ font-family: var(--mono); font-size: .92em; }
.pkg{ font-style: normal; font-weight: 600; }
code.dataset{ color: var(--lda-gray); }

/* ---------- pedagogical boxes ---------- */
.box{
  border-radius: 6px;
  border: 1px solid;
  padding: 30px 18px 16px;
  margin: 1.8em 0;
  position: relative;
  break-inside: avoid;
}
.box-title{
  position: absolute;
  top: -13px;
  left: 14px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .03em;
  color: #fff;
  text-transform: uppercase;
}
.box-bullet{ opacity: .85; margin: 0 .15em; }
.box-body p:last-child{ margin-bottom: 0; }

.box-objectives{ background: #fff; border-color: var(--lda-gray); }
.box-objectives .box-title{ background: var(--lda-gray); text-transform: none; font-size: .82rem; }

.box-foundations{ background: var(--lda-blue-tint); border-color: var(--lda-blue); }
.box-foundations .box-title{ background: var(--lda-blue); }

.box-practice{ background: var(--lda-green-tint); border-color: var(--lda-green); }
.box-practice .box-title{ background: var(--lda-green); }

.box-pitfall{ background: var(--lda-orange-tint); border-color: var(--lda-orange); }
.box-pitfall .box-title{ background: var(--lda-orange); }

.box-software{ background: var(--lda-purple-tint); border-color: var(--lda-purple); }
.box-software .box-title{ background: var(--lda-purple); }

.box-summary{ background: var(--lda-summary-bg); border-color: var(--lda-summary-fr); }
.box-summary .box-title{ background: var(--lda-summary-fr); text-transform: none; font-size: .82rem; }

/* ---------- figures ---------- */
.lda-figure{
  margin: 2em 0;
  text-align: center;
  break-inside: avoid;
}
.lda-figure img{
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: zoom-in;
}
.lda-figure figcaption{
  margin-top: 10px;
  text-align: left;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink);
}
.lda-figure figcaption strong{ color: var(--ink); }
.fig-note{
  text-align: left;
  font-size: .84rem;
  color: var(--lda-gray);
  margin: 6px 0 0;
}
.missing-figure{ color: var(--lda-red); font-style: italic; }

/* ---------- tables ---------- */
.table-wrap{ margin: 2em 0; break-inside: avoid; }
.table-caption{
  font-family: var(--sans);
  font-size: .88rem;
  margin: 0 0 8px;
}
.table-scroll{ overflow-x: auto; }
table{
  border-collapse: collapse;
  width: 100%;
  font-size: .92rem;
}
thead tr{ border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
tbody tr:last-child{ border-bottom: 2px solid var(--ink); }
th, td{ text-align: left; padding: 7px 10px; vertical-align: top; }
th{ font-family: var(--sans); font-weight: 700; }
.tab-note{
  font-size: .84rem;
  color: var(--lda-gray);
  margin: 8px 0 0;
}

/* ---------- equations ---------- */
.equation{
  display: flex;
  align-items: center;
  margin: 1.6em 0;
  gap: 12px;
}
.equation-math{ flex: 1; overflow-x: auto; text-align: center; }
.equation-num{ font-family: var(--serif); color: var(--lda-gray); white-space: nowrap; }

/* ---------- code listings ---------- */
pre.r-code{
  background: var(--code-bg);
  border-left: 3px solid var(--lda-blue);
  padding: 12px 16px;
  overflow-x: auto;
  border-radius: 0 4px 4px 0;
  margin: 1.6em 0;
  font-size: .86rem;
  line-height: 1.5;
}
pre.r-code code{ font-family: var(--mono); background: none; }
.c-kw{ color: var(--code-kw); font-weight: 700; }
.c-str{ color: var(--code-str); }
.c-com{ color: var(--code-com); font-style: italic; }

/* ---------- exercises ---------- */
.exercise-list{ list-style: none; margin: 0; padding: 0; }
.exercise-list li{ margin: 0 0 1em; padding-left: 3.1em; position: relative; text-align: justify; }
.ex-num{
  position: absolute; left: 0; top: 0;
  font-family: var(--sans); font-weight: 700; color: var(--lda-blue);
}

/* ---------- references ---------- */
.references{ font-size: .93rem; }
.ref-entry{
  padding-left: 1.7em;
  text-indent: -1.7em;
  margin: 0 0 .85em;
  text-align: left;
}

/* ---------- footer ---------- */
.site-footer{
  padding: 20px 40px 30px;
  font-family: var(--sans);
  font-size: .74rem;
  font-style: italic;
  color: var(--lda-gray);
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.site-footer em{ font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 640px){
  body{ font-size: 16.5px; }
  .site-header, .chapter-nav, main, .site-footer{ padding-left: 20px; padding-right: 20px; }
  .chapter-header h1{ font-size: 1.5rem; }
  .chapter-nav{ font-size: .74rem; padding-top: 8px; padding-bottom: 8px; }
  .nav-toc{ order: 3; flex-basis: 100%; margin-top: 6px; }
  .chapter p{ text-align: left; hyphens: auto; }
  .exercise-list li{ padding-left: 2.6em; }
}

/* ---------- print ---------- */
@media print{
  body{ background: #fff; }
  .site-shell{ box-shadow: none; max-width: none; }
  .chapter-nav, .page-toc{ display: none; }
  .box, .lda-figure, .table-wrap{ break-inside: avoid; }
  a{ color: inherit; text-decoration: none; }
}

/* ---------- home: book-style reading layout ---------- */
.home-page .site-shell{
  max-width: 1440px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(275px, 330px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-shadow: none;
}
.home-page .site-header{
  grid-column: 1 / -1;
  padding: 24px 32px 21px;
  color: #fff;
  background: #12334b;
  border-bottom: 0;
}
.home-page .site-title{ color: #fff; font-size: 1.12rem; }
.home-page .site-title:hover{ color: #d9eef9; }
.home-page .site-subtitle{ color: #c9d9e4; max-width: 760px; }
.home-page main{
  grid-column: 2;
  padding: 0 clamp(32px, 6vw, 92px) 64px;
  max-width: 1030px;
  width: 100%;
}
.home-page .book-toc{
  grid-column: 1;
  grid-row: 2;
  padding: 25px 18px 32px;
  background: #f7f8f8;
  border-right: 1px solid #d8e0e5;
  overflow-y: auto;
}
.book-toc-heading{
  margin: 0 8px 14px;
  color: #4a6474;
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.home-page .part-section{ margin: 0 0 18px; }
.home-page .part-label{
  display: block;
  margin: 0;
  padding: 10px 8px 5px;
  color: var(--part-accent, var(--lda-blue));
  background: transparent;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .025em;
}
.home-page .toc-list li{ border-bottom: 0; }
.home-page .toc-list a{
  gap: 9px;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: #30404a;
  font-family: var(--sans);
  font-size: .79rem;
  line-height: 1.35;
}
.home-page .toc-list a:hover{
  color: var(--part-accent, var(--lda-blue));
  background: #e9f0f4;
  border-left-color: var(--part-accent, var(--lda-blue));
}
.home-page .toc-num{
  min-width: 0;
  padding-top: 0;
  color: #70818b;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-page .home-hero{
  position: relative;
  padding: clamp(54px, 10vw, 112px) 0 48px;
  border-bottom: 0;
  margin: 0;
  overflow: hidden;
}
.home-page .home-hero::after{
  position: absolute;
  z-index: -1;
  top: 22px;
  right: -130px;
  width: min(46vw, 470px);
  aspect-ratio: 1;
  border: 1px solid #c6dce6;
  border-radius: 50%;
  box-shadow: inset 0 0 0 42px #f5fafc, inset 0 0 0 84px #e8f3f7;
  content: "";
}
.home-page .home-hero .chapter-kicker{ color: var(--lda-blue); }
.home-page .home-hero h1{
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
.home-page .home-subtitle{
  max-width: 700px;
  color: #45606f;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5;
}
.home-page .home-byline{
  margin-top: 30px;
  color: #243640;
  font-family: var(--sans);
  font-size: .95rem;
}
.home-actions{ display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 29px; font-family: var(--sans); font-size: .9rem; }
.home-primary-action{ display: inline-flex; gap: 18px; align-items: center; padding: 11px 17px; color: #fff; background: #12334b; text-decoration: none; }
.home-primary-action:hover{ background: var(--lda-blue); }
.home-secondary-action{ color: #355565; text-decoration: none; border-bottom: 1px solid #9fbac8; }
.home-secondary-action:hover{ color: var(--lda-blue); border-color: var(--lda-blue); }
.home-edition-note{ max-width: 490px; margin: 32px 0 0; color: #607782; font-family: var(--sans); font-size: .79rem; line-height: 1.55; }
.home-about, .home-paths, .home-map{ border-top: 1px solid #d9e5e9; }
.home-about{ display: grid; grid-template-columns: 72px minmax(0, 650px); gap: 20px; padding: 46px 0 52px; }
.home-section-number{ margin: 4px 0 0; color: var(--lda-blue); font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .1em; }
.home-eyebrow{ margin: 0 0 8px; color: #617985; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-about h2, .home-section-heading h2{ margin: 0 0 19px; color: #18394d; font-family: var(--serif); font-size: clamp(1.65rem, 2.5vw, 2.35rem); font-weight: 400; line-height: 1.24; letter-spacing: -.02em; }
.home-about p:not(.home-eyebrow):not(.home-section-number), .home-map > p{ max-width: 640px; color: #3f545e; font-size: 1rem; text-align: left; }
.home-paths, .home-map{ padding: 42px 0 54px; }
.home-section-heading{ display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
.home-section-heading h2{ margin-bottom: 0; }
.path-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.path-card{ display: flex; min-height: 215px; flex-direction: column; padding: 18px; border: 1px solid #d4e1e6; color: #23404f; background: #fbfcfc; font-family: var(--sans); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.path-card:hover{ transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18,51,75,.11); }
.path-number{ margin-bottom: auto; color: var(--lda-blue); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.path-card strong{ margin: 25px 0 8px; font-size: 1.05rem; }
.path-card span:not(.path-number){ color: #607782; font-size: .8rem; line-height: 1.45; }
.path-card em{ margin-top: 16px; color: #1c6e93; font-size: .76rem; font-style: normal; font-weight: 700; }
.path-growth{ border-top: 3px solid var(--lda-green); }
.path-dynamics{ border-top: 3px solid var(--lda-purple); }
.path-foundations{ border-top: 3px solid var(--lda-blue); }
.map-rail{ display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 25px 0 22px 92px; }
.map-rail span{ display: block; height: 8px; background: var(--lda-blue); }
.map-rail span:nth-child(2), .map-rail span:nth-child(7){ background: var(--lda-green); }
.map-rail span:nth-child(3), .map-rail span:nth-child(8){ background: var(--lda-orange); }
.map-rail span:nth-child(4){ background: var(--lda-purple); }
.map-rail span:nth-child(5){ background: var(--lda-red); }
.home-page .site-footer{
  grid-column: 2;
  margin: 0;
  padding: 22px clamp(32px, 6vw, 92px) 30px;
  text-align: left;
}
@media (min-width: 641px){
  .home-page .book-toc{ max-height: calc(100vh - 86px); position: sticky; top: 0; }
}
@media (max-width: 640px){
  .home-page .site-shell{ display: block; }
  .home-page .site-header{ padding: 20px; }
  .home-page .book-toc{ border-right: 0; border-bottom: 1px solid #d8e0e5; padding: 20px 12px; }
  .home-page main{ padding: 0 20px 36px; }
  .home-page .home-hero{ padding: 45px 0 20px; }
  .home-page .home-hero h1{ font-size: 2.6rem; }
  .home-page .home-hero::after{ width: 270px; right: -110px; top: 15px; }
  .home-about, .home-section-heading{ grid-template-columns: 1fr; gap: 6px; }
  .home-about, .home-paths, .home-map{ padding-top: 32px; padding-bottom: 36px; }
  .path-grid{ grid-template-columns: 1fr; }
  .path-card{ min-height: 170px; }
  .map-rail{ margin-left: 0; }
  .home-page .site-footer{ padding: 20px; text-align: left; }
}

/* ---------- shared chapter sidebar ---------- */
.book-sidebar{ display: none; }
@media (min-width: 900px){
  body.has-book-sidebar{
    background: #f2f5f6;
  }
  body.has-book-sidebar .site-shell{
    width: calc(100% - 320px);
    max-width: 1120px;
    margin: 0 0 0 320px;
    box-shadow: none;
  }
  body.has-book-sidebar .book-sidebar{
    position: fixed;
    z-index: 10;
    inset: 0 auto 0 0;
    display: block;
    width: 320px;
    padding: 27px 18px 32px;
    overflow-y: auto;
    color: #e8f0f4;
    background: #12334b;
  }
  .book-sidebar-title{
    display: block;
    margin: 0 8px 5px;
    color: #fff;
    font-family: var(--sans);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
  }
  .book-sidebar-subtitle{
    margin: 0 8px 21px;
    color: #b8cad5;
    font-family: var(--sans);
    font-size: .72rem;
    line-height: 1.45;
  }
  .book-sidebar .book-toc-heading{
    margin: 0 8px 12px;
    color: #8fabbc;
  }
  .book-sidebar .part-section{ margin: 0 0 15px; }
  .book-sidebar .part-label{
    display: block;
    margin: 0;
    padding: 9px 8px 5px;
    color: #95d3ed;
    background: transparent;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
  }
  .book-sidebar .toc-list{ list-style: none; margin: 0; padding: 0; }
  .book-sidebar .toc-list li{ border: 0; }
  .book-sidebar .toc-list a{
    display: flex;
    gap: 8px;
    padding: 5px 8px;
    border-left: 2px solid transparent;
    color: #d5e1e8;
    font-family: var(--sans);
    font-size: .75rem;
    line-height: 1.35;
    text-decoration: none;
  }
  .book-sidebar .toc-list a:hover,
  .book-sidebar .toc-list a.is-current{
    border-left-color: #76c9e8;
    color: #fff;
    background: rgba(255,255,255,.11);
  }
  .book-sidebar .toc-num{
    min-width: 0;
    padding-top: 0;
    color: #8fabbc;
    font-family: var(--sans);
    font-size: .66rem;
    white-space: nowrap;
  }
  .book-nav-loading{ margin: 0 8px; color: #b8cad5; font: .78rem var(--sans); }
}

/* ---------- home: editorial cover treatment ---------- */
.home-page{ background: #080d16; }
.home-page .site-shell{
  max-width: none;
  color: #d9e1e6;
  background: #080d16;
  grid-template-columns: minmax(275px, 330px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.home-page .site-header{
  grid-column: 1;
  grid-row: 1;
  padding: 28px 28px 20px;
  background: #0c1420;
  border-bottom: 1px solid rgba(208,183,111,.13);
}
.home-page .site-title{ color: #f5f1e8; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.home-page .site-subtitle{ max-width: 230px; margin-top: 9px; color: #9facba; line-height: 1.5; }
.home-page .book-toc{
  grid-column: 1;
  grid-row: 2 / 4;
  padding: 18px 18px 32px;
  color: #d8e1e6;
  background: #0c1420;
  border-right: 1px solid rgba(208,183,111,.13);
}
.home-page .book-toc-heading{ color: #bca465; }
.home-page .part-label{ color: #cdb679; }
.home-page .toc-list a{ color: #bac6cf; }
.home-page .toc-num{ color: #77899a; }
.home-page .toc-list a:hover{ color: #fff; background: rgba(255,255,255,.07); border-left-color: #cdb679; }
.home-page main{
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: none;
  padding: 0 clamp(38px, 7vw, 112px) 70px;
  background: #080d16;
}
.home-page .home-hero{
  min-height: min(660px, 78vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 72px;
  isolation: isolate;
}
.home-page .home-hero::after{
  z-index: -1;
  top: 50%;
  right: -5vw;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(125,145,164,.075);
  content: "CHANGE";
  font-family: var(--sans);
  font-size: clamp(6rem, 17vw, 16rem);
  font-weight: 700;
  letter-spacing: -.1em;
  line-height: .8;
  transform: translateY(-50%);
}
.home-page .home-hero .chapter-kicker{ color: #cdb679; letter-spacing: .2em; }
.home-page .home-hero h1{ max-width: 850px; color: #f6f2e8; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: 1; }
.home-page .home-subtitle{ max-width: 720px; color: #afbfcb; font-family: var(--serif); font-size: clamp(1.22rem, 2.1vw, 1.65rem); }
.home-page .home-byline{ color: #c6d0d6; }
.home-primary-action{ color: #e8d497; background: transparent; border: 1px solid rgba(205,182,121,.7); }
.home-primary-action:hover{ color: #fff; background: rgba(205,182,121,.15); }
.home-secondary-action{ color: #b9c7d0; border-color: #647889; }
.home-edition-note{ color: #8ea1ae; }
.home-about, .home-paths, .home-map{ border-top-color: rgba(193,210,220,.18); }
.home-section-number, .home-eyebrow{ color: #cdb679; }
.home-about h2, .home-section-heading h2{ color: #f2f4f1; }
.home-about p:not(.home-eyebrow):not(.home-section-number), .home-map > p{ color: #b4c2cb; }
.path-card{ border-color: rgba(193,210,220,.22); color: #eaf0f2; background: #0e1723; }
.path-card:hover{ border-color: rgba(205,182,121,.72); background: #111d2b; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.path-number, .path-card em{ color: #d5bd7d; }
.path-card span:not(.path-number){ color: #9eafba; }
.map-rail span{ background: #4e90ad; }
.home-page .site-footer{ grid-column: 2; grid-row: 3; color: #8498a4; background: #080d16; border-top-color: rgba(193,210,220,.18); }
@media (max-width: 640px){
  .home-page .site-header, .home-page .book-toc, .home-page main, .home-page .site-footer{ background: #080d16; }
  .home-page .site-header{ padding: 24px 20px 18px; }
  .home-page .book-toc{ border-bottom-color: rgba(193,210,220,.18); }
  .home-page .home-hero{ min-height: 570px; padding: 70px 0 52px; }
  .home-page .home-hero::after{ right: -50px; font-size: 7rem; }
}
@media (min-width: 641px){
  .home-page .site-shell{
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-left: 330px;
  }
  .home-page .site-header{
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 330px;
  }
  .home-page .book-toc{
    position: fixed;
    z-index: 10;
    top: 153px;
    bottom: 0;
    left: 0;
    width: 330px;
    max-height: none;
    overflow-y: auto;
  }
  .home-page main{ display: block; width: 100%; }
  .home-page .site-footer{ display: block; width: 100%; }
}
