:root{--burgundy:#541d2b;--burgundy-dark:#35111b;--gold:#c6a15b;--cream:#f8f2e7;--ink:#2e2526;--muted:#66595a;--white:#fffdf9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--white);color:var(--ink);font-family:Georgia,"Times New Roman",serif;line-height:1.75}a{color:inherit}.site-header{background:var(--burgundy-dark);color:var(--cream);padding:1rem clamp(1rem,5vw,4rem);display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}.brand{text-decoration:none;font-size:1.3rem;font-weight:bold;line-height:1.3}.brand span{display:block;font-size:.78rem;color:var(--gold);font-weight:normal;letter-spacing:.08em}.site-header nav{display:flex;gap:.65rem 1.25rem;flex-wrap:wrap}.site-header nav a{font-family:Arial,sans-serif;font-size:.9rem;text-decoration:none;color:var(--cream)}.site-header nav a:hover,.site-header nav a:focus,.text-link:hover{color:var(--gold)}.hero{background:linear-gradient(140deg,var(--burgundy-dark),var(--burgundy));color:var(--cream);text-align:center;padding:clamp(4rem,10vw,8rem) 1.25rem}.eyebrow{font-family:Arial,sans-serif;font-size:.75rem;font-weight:bold;letter-spacing:.16em;color:var(--gold);text-transform:uppercase}.hero h1{font-size:clamp(3rem,8vw,6rem);line-height:1.08;margin:.3rem 0 1rem;color:var(--cream)}.subtitle{font-size:clamp(1.15rem,3vw,1.8rem);max-width:800px;margin:0 auto}.byline{color:var(--gold);font-size:1.1rem;margin-top:1.5rem}.hero-copy{max-width:690px;margin:1.5rem auto 2rem;font-size:1.1rem}.button{display:inline-block;background:var(--gold);color:var(--burgundy-dark);padding:.8rem 1.3rem;border-radius:3px;text-decoration:none;font-family:Arial,sans-serif;font-weight:bold}.button:hover,.button:focus{background:#e0c27f}.content-section{max-width:980px;margin:0 auto;padding:clamp(3rem,7vw,5rem) 1.25rem}.content-section h2{font-size:clamp(2rem,5vw,3rem);line-height:1.2;color:var(--burgundy);margin:.3rem 0 1.25rem}.content-section h3{color:var(--burgundy);font-size:1.25rem;margin:.2rem 0}.content-section p{font-size:1.08rem}.shaded{max-width:none;background:var(--cream);padding-left:max(1.25rem,calc((100% - 980px)/2));padding-right:max(1.25rem,calc((100% - 980px)/2))}.chapter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin:2rem 0}.chapter-grid article{border-top:3px solid var(--gold);background:var(--white);padding:1.2rem}.chapter-grid article p{margin:.4rem 0}.note{font-size:.95rem;color:var(--muted)}.text-link{color:var(--burgundy);font-weight:bold} .page-hero{background:var(--burgundy);color:var(--cream);padding:3.5rem 1.25rem;text-align:center}.page-hero h1{font-size:clamp(2.3rem,6vw,4rem);margin:.3rem 0}.page-content{max-width:850px;margin:0 auto;padding:3rem 1.25rem 5rem;min-height:50vh}.page-content h2{color:var(--burgundy);margin-top:2rem}.page-content a{overflow-wrap:anywhere}footer{background:var(--burgundy-dark);color:var(--cream);padding:1.5rem clamp(1rem,5vw,4rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-family:Arial,sans-serif;font-size:.85rem}footer p{margin:0}footer div{display:flex;gap:1rem;flex-wrap:wrap}footer a{color:var(--cream)}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}@media(max-width:650px){.site-header{align-items:flex-start}.site-header nav{width:100%;gap:.6rem 1rem}.site-header nav a{font-size:.85rem}.hero{padding-top:4rem;padding-bottom:4rem}footer{align-items:flex-start;flex-direction:column}}

/* Book banner image */
.banner-hero{background:var(--burgundy-dark);padding:0;text-align:center}
.book-banner{display:block;width:100%;height:auto;max-width:1536px;margin:0 auto;object-fit:contain}
.banner-cta{padding:1rem 1rem 2rem;background:var(--burgundy-dark)}
@media(max-width:650px){.banner-cta{padding:.75rem 1rem 1.5rem}}


/* Unified Beyond the Veil visual system: black, deep burgundy, antique gold, and warm ivory */
:root{
  --burgundy:#4a071b;
  --burgundy-dark:#17070c;
  --gold:#d8b76a;
  --cream:#f5ead4;
  --ink:#211619;
  --muted:#6d5c5d;
  --white:#fffaf1;
  --gold-light:#f0d99d;
  --panel:#f1e5d0;
}
body{background:var(--white);color:var(--ink)}
.site-header,footer{background:linear-gradient(105deg,#120609 0%,#300713 55%,#16070c 100%);border-color:var(--gold)}
.site-header{border-bottom:1px solid rgba(216,183,106,.55)}
.brand{color:var(--cream)}
.brand span{color:var(--gold-light)}
.site-header nav a{transition:color .2s ease}
.site-header nav a:hover,.site-header nav a:focus,.text-link:hover{color:var(--gold-light)}
.hero,.page-hero{background:linear-gradient(125deg,#120609 0%,#4a071b 58%,#1b080e 100%);color:var(--cream);border-bottom:3px solid var(--gold)}
.hero h1,.page-hero h1{color:var(--gold-light);text-shadow:0 2px 18px rgba(0,0,0,.35)}
.eyebrow{color:var(--gold)}
.subtitle{color:inherit}
.byline{color:var(--gold-light)}
.button{background:linear-gradient(135deg,#f0d99d,#c49b49);color:#241016;border:1px solid #f5e3b2;box-shadow:0 3px 12px rgba(0,0,0,.2)}
.button:hover,.button:focus{background:var(--gold-light);color:#17070c}
.content-section h2,.content-section h3,.page-content h2,.page-content h3{color:var(--burgundy)}
.content-section h2,.page-content h2{border-bottom:1px solid rgba(216,183,106,.65);padding-bottom:.55rem}
.shaded{background:linear-gradient(135deg,#f4ead9,#e9d9bc)}
.chapter-grid article{background:#fffaf1;border:1px solid rgba(74,7,27,.12);border-top:3px solid var(--gold);box-shadow:0 5px 18px rgba(35,10,16,.06);border-radius:2px}
.page-content{background:var(--white)}
.page-content a,.text-link{color:var(--burgundy)}
.page-content a:hover,.text-link:hover{color:#8a5a13}
.note{color:var(--muted)}
footer{border-top:2px solid var(--gold)}
footer a:hover{color:var(--gold-light)}
a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
::selection{background:var(--burgundy);color:var(--gold-light)}
.banner-hero{background:#100509}
.banner-cta{background:linear-gradient(105deg,#120609,#3b0717,#120609);border-top:1px solid rgba(216,183,106,.55)}
@media(max-width:650px){
  .site-header nav{border-top:1px solid rgba(216,183,106,.25);padding-top:.75rem}
  .hero,.page-hero{border-bottom-width:2px}
}


/* Editorial polish and purposeful emphasis across every page */
body{font-size:17px;-webkit-font-smoothing:antialiased}
main{overflow-wrap:break-word}
p{max-width:78ch}
.page-content>p,.page-content section>p{line-height:1.9;margin:0 0 1.15rem}
.page-content section{margin:2.5rem 0;padding:0 0 1.25rem;border-bottom:1px solid rgba(216,183,106,.32)}
.page-content section:last-of-type{border-bottom:0}
.page-content h2{font-size:clamp(1.55rem,3.2vw,2.1rem);line-height:1.3;margin:2.2rem 0 1rem}
.page-content h3{line-height:1.35}
strong,b{color:#6f102b;font-weight:700}
.page-content strong,.page-content b{background:linear-gradient(transparent 60%,rgba(216,183,106,.25) 60%);padding:0 .08em}
em{color:#5a1a2b}
.page-content ul,.page-content ol{padding-left:1.5rem}
.page-content li{padding-left:.2rem;margin:.35rem 0;line-height:1.8}
.page-content li::marker{color:#b18a3e}
.page-content blockquote,blockquote{margin:1.75rem 0;padding:1.1rem 1.4rem;border-left:4px solid var(--gold);background:linear-gradient(110deg,#f4ead9,#fffaf1);color:#3d1b25;font-size:1.08rem}
.page-content hr{border:0;border-top:1px solid rgba(216,183,106,.65);margin:2.5rem 0}
.page-hero .eyebrow{margin-bottom:.65rem}
.page-hero .subtitle{max-width:850px}
.content-section .eyebrow{margin-bottom:.55rem}
.content-section h2{letter-spacing:-.02em}
.content-section p{line-height:1.9}
.text-link{display:inline-block;text-decoration-thickness:1px;text-underline-offset:4px}
.chapter-grid article{transition:transform .18s ease,box-shadow .18s ease}
.chapter-grid article:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(35,10,16,.12)}
.note{border-left:3px solid var(--gold);padding:.75rem 1rem;background:#f4ead9}
footer{line-height:1.6}
@media(max-width:650px){
 body{font-size:16px}
 .page-content{padding:2rem 1.1rem 3.5rem}
 .page-content section{margin:2rem 0}
 .page-content blockquote,blockquote{padding:.9rem 1rem;margin:1.25rem 0}
 .page-content li{margin:.45rem 0}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .chapter-grid article{transition:none}
 .chapter-grid article:hover{transform:none}
}


/* Featured book cover */
.book-cover-feature { max-width: 360px; margin: 1.5rem auto 2.5rem; text-align: center; }
.book-cover-feature img { display: block; width: 100%; height: auto; border: 1px solid #D8B76A; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.book-cover-feature figcaption { margin-top: .75rem; color: #D8B76A; font-size: .95rem; }


/* Responsive layout refinements for phones, tablets, laptops, and wide screens */
img, video, iframe { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; }
main { width: 100%; }
.site-header { padding-inline: clamp(1rem, 4vw, 3.5rem); }
.site-header nav { min-width: 0; }
.site-header nav a { display: inline-block; padding: .35rem .15rem; }
.banner-hero { width: 100%; overflow: hidden; }
.book-banner { width: 100%; max-width: 1536px; height: auto; object-fit: contain; }
.banner-cta .button { min-height: 44px; }
.content-section, .page-content { width: 100%; }
.page-content { overflow-wrap: anywhere; }
.chapter-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.book-cover-feature { width: min(100%, 360px); padding-inline: .25rem; }
.book-cover-feature img { width: 100%; height: auto; }
footer { gap: .8rem 1.5rem; }
footer div { gap: .75rem 1.25rem; }
a, button { touch-action: manipulation; }

@media (min-width: 1200px) {
  .site-header { padding-inline: max(3rem, calc((100vw - 1280px) / 2)); }
  .site-header nav { gap: .75rem 1.35rem; }
  .page-content { max-width: 900px; }
  .content-section { max-width: 1040px; }
  .shaded { padding-left: max(1.25rem, calc((100% - 1040px) / 2)); padding-right: max(1.25rem, calc((100% - 1040px) / 2)); }
}

@media (max-width: 768px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .site-header nav { width: 100%; gap: .35rem .85rem; }
  .site-header nav a { font-size: .9rem; }
  .content-section { padding: 2.5rem 1.15rem; }
  .page-hero { padding: 2.75rem 1.15rem; }
  .chapter-grid { gap: .85rem; }
  footer { padding: 1.25rem 1.15rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; line-height: 1.7; }
  .brand { font-size: 1.2rem; }
  .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; }
  .site-header nav a { padding: .35rem 0; overflow-wrap: anywhere; }
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .subtitle { font-size: 1.05rem; }
  .content-section { padding: 2rem 1rem; }
  .content-section h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .page-content { padding: 1.75rem 1rem 3rem; }
  .page-content h2 { font-size: 1.55rem; }
  .page-content blockquote, blockquote { padding: .85rem .9rem; }
  .chapter-grid { grid-template-columns: 1fr; }
  .button { max-width: 100%; padding: .8rem 1rem; }
  footer div { gap: .65rem 1rem; }
  .book-cover-feature { max-width: 300px; }
  .book-cover-feature figcaption { color: var(--burgundy); }
}

@media (max-width: 350px) {
  .site-header nav { grid-template-columns: 1fr; }
  .eyebrow { letter-spacing: .1em; }
  .page-hero, .content-section, .page-content { padding-left: .85rem; padding-right: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Table of contents: clear, responsive reading map */
.toc { max-width: 920px; }
.toc-intro { max-width: 68ch; margin: 0 auto 2rem !important; color: var(--muted); font-size: 1.05rem; }
.toc .toc-section { margin: 1.25rem 0; padding: 1.25rem clamp(1rem, 3vw, 1.75rem); background: linear-gradient(135deg, #fffaf1, #f4ead9); border: 1px solid rgba(74,7,27,.12); border-left: 4px solid var(--gold); border-radius: 3px; box-shadow: 0 5px 18px rgba(35,10,16,.045); }
.toc .toc-section h2 { margin: 0 0 .75rem; padding: 0 0 .65rem; border-bottom: 1px solid rgba(216,183,106,.55); font-size: clamp(1.25rem, 2.7vw, 1.7rem); }
.toc .toc-section h2 a { color: var(--burgundy); text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.toc .toc-section h2 a:hover, .toc .toc-section h2 a:focus-visible { color: #8a5a13; text-decoration: underline; }
.toc .toc-section ol, .toc .toc-links { margin: 0; padding-left: 1.5rem; }
.toc .toc-section li { margin: .35rem 0; padding: .2rem 0 .2rem .15rem; }
.toc .toc-section li a { color: #4a071b; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.toc .toc-section li a:hover, .toc .toc-section li a:focus-visible { color: #8a5a13; }
.toc .toc-closing { background: linear-gradient(135deg, #f1e5d0, #fffaf1); }
.toc > .text-link { margin-top: 1.25rem; }
@media (max-width: 480px) {
  .toc .toc-section { margin: 1rem 0; padding: 1rem .9rem; }
  .toc .toc-section h2 { font-size: 1.2rem; }
  .toc .toc-section ol, .toc .toc-links { padding-left: 1.2rem; }
  .toc .toc-section li { overflow-wrap: anywhere; }
}


/* Minimal, book-like table of contents */
.toc { max-width: 820px; }
.toc-list { margin: 0 auto; }
.toc-part { margin: 0; padding: 1.15rem 0 1.25rem; border-bottom: 1px solid #e5d8c2; }
.toc-part h2 { margin: 0 0 .65rem !important; padding: 0 !important; border: 0 !important; font-size: 1.2rem !important; }
.toc-part h2 a { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .75rem; color: var(--burgundy); text-decoration: none; }
.toc-part h2 a:hover { color: #8a5a13; }
.toc-part h2 span { font-weight: normal; }
.toc-part ol { margin: 0; padding-left: 1.7rem; }
.toc-part li { margin: .25rem 0 !important; padding: 0 !important; }
.toc-part li a, .toc-extras a { color: var(--ink); font-weight: normal !important; text-decoration: none; text-underline-offset: 3px; }
.toc-part li a:hover, .toc-extras a:hover { color: var(--burgundy); text-decoration: underline; }
.toc-entry { display: grid; grid-template-columns: 110px 1fr 20px; align-items: baseline; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid #e5d8c2; text-decoration: none; }
.toc-label { color: var(--burgundy); font-weight: bold; }
.toc-title { color: var(--ink); }
.toc-arrow { color: #a78237; font-size: 1.5rem; line-height: 1; text-align: right; }
.toc-entry:hover .toc-title { text-decoration: underline; text-underline-offset: 3px; }
.toc-extras { margin: .6rem 0 1.75rem; padding-left: 1.7rem; }
.toc-extras li { margin: .25rem 0 !important; }
@media (max-width: 480px) {
  .toc-entry { grid-template-columns: 1fr 20px; gap: .15rem .5rem; }
  .toc-label { grid-column: 1; }
  .toc-title { grid-column: 1; }
  .toc-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .toc-part h2 a { display: block; }
  .toc-part h2 span { display: block; margin-top: .15rem; font-size: 1rem; }
}


/* Consistent previous, contents, and next links for chapter reading */
.chapter-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  max-width: 850px;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(216,183,106,.65);
  border-bottom: 1px solid rgba(216,183,106,.65);
}
.chapter-navigation a {
  display: inline-block;
  padding: .45rem 0;
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}
.chapter-navigation a:hover,
.chapter-navigation a:focus-visible {
  color: #8a5a13;
  text-decoration: underline;
}
.site-header nav a[aria-current="page"] {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .45rem;
}
@media (max-width: 480px) {
  .chapter-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }
  .chapter-navigation a { padding: .35rem 0; }
}


/* Primary navigation: desktop links and an accessible mobile menu */
.site-header {
  position: relative;
  z-index: 20;
}
.site-header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: transparent;
  color: var(--cream);
  font: 600 .95rem/1.2 Arial, sans-serif;
  cursor: pointer;
}
.site-header .menu-icon {
  color: var(--gold-light);
  font-size: 1.25rem;
  line-height: 1;
}
.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: .55rem 1.2rem;
}
.site-header .site-nav a {
  padding: .45rem .15rem;
  text-decoration: none;
  text-underline-offset: .4rem;
}
.site-header .site-nav a[aria-current="page"] {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible {
  color: var(--gold-light);
}
@media (max-width: 768px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem 1rem;
  }
  .site-header .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .site-header .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: .65rem 0 .25rem;
    border-top: 1px solid rgba(216,183,106,.35);
    gap: .25rem;
  }
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .site-nav a {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .7rem .85rem;
    border-radius: 2px;
    font-size: 1rem;
  }
  .site-header .site-nav a[aria-current="page"] {
    background: rgba(216,183,106,.12);
  }
}
@media (max-width: 380px) {
  .site-header { padding: .9rem .85rem; }
  .site-header .brand { max-width: 190px; font-size: 1.08rem; }
  .site-header .menu-toggle { padding: .6rem .7rem; }
}


/* Homepage spacing and tablet-friendly study cards */
.book-more-link {
  max-width: 1040px;
  margin: 0 auto;
  padding: .5rem 1.25rem 1.75rem;
}
.book-more-link .text-link { margin: 0; }
#contents.chapter-grid,
#contents .chapter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  #contents .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .book-more-link { padding: .25rem 1rem 1.25rem; }
  #contents .chapter-grid { grid-template-columns: 1fr; }
}

/* Let the About the Book text wrap beside the cover on larger screens */
.page-content .book-cover-feature {
  float: left;
  width: min(34%, 270px);
  max-width: 270px;
  margin: .25rem 2rem 1.25rem 0;
  padding: 0;
  text-align: center;
}
.page-content .book-cover-feature img {
  width: 100%;
  height: auto;
}
.page-content .book-cover-feature figcaption {
  color: var(--burgundy);
  font-size: .9rem;
}
.page-content .book-cover-feature + p { margin-top: 0; }
.page-content .closing-emphasis { clear: both; }
@media (max-width: 600px) {
  .page-content .book-cover-feature {
    float: none;
    width: min(78%, 280px);
    max-width: 280px;
    margin: .5rem auto 1.5rem;
  }
}


/* Consistent full-width centering for all page hero headings */
.hero,
.page-hero {
  width: 100%;
  text-align: center;
}
.hero .eyebrow,
.page-hero .eyebrow,
.hero h1,
.page-hero h1,
.hero .subtitle,
.page-hero .subtitle,
.hero .hero-copy,
.page-hero > p {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero h1,
.page-hero h1 {
  display: block;
}
.page-hero > p:not(.eyebrow):not(.subtitle) {
  max-width: 900px;
}


/* Introduction illustrations: square images alternating sides with flowing text */
.page-content .intro-image-wrap {
  box-sizing: border-box;
  width: min(31%, 250px);
  max-width: 250px;
  margin: .35rem 0 1.2rem;
  padding: 0;
}
.page-content .intro-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(190, 151, 75, .55);
  box-shadow: 0 8px 24px rgba(40, 10, 18, .12);
}
.page-content .intro-image-wrap figcaption {
  margin-top: .55rem;
  color: var(--burgundy);
  font-size: .82rem;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
}
.page-content .intro-image-left { float: left; margin-right: 1.4rem; clear: left; }
.page-content .intro-image-right { float: right; margin-left: 1.4rem; clear: right; }
.page-content .intro-image-wrap + p { margin-top: 0; }
.page-content .intro-image-wrap:nth-of-type(2n) { break-inside: avoid; }
.page-content .chapter-navigation { clear: both; }
@media (max-width: 700px) {
  .page-content .intro-image-wrap { width: min(40%, 190px); }
  .page-content .intro-image-left { margin-right: 1rem; }
  .page-content .intro-image-right { margin-left: 1rem; }
}
@media (max-width: 420px) {
  .page-content .intro-image-wrap { width: min(44%, 155px); }
  .page-content .intro-image-left { margin-right: .8rem; }
  .page-content .intro-image-right { margin-left: .8rem; }
  .page-content .intro-image-wrap figcaption { font-size: .75rem; }
}


/* Final override: keep introduction figures compact and truly floated */
article.page-content figure.intro-image-wrap {
  display: block !important;
  float: left !important;
  clear: none !important;
  width: 210px !important;
  max-width: 34% !important;
  margin: .35rem 1.25rem 1rem 0 !important;
  padding: 0 !important;
  position: relative;
}
article.page-content figure.intro-image-wrap.intro-image-right {
  float: right !important;
  margin: .35rem 0 1rem 1.25rem !important;
  clear: none !important;
}
article.page-content figure.intro-image-wrap img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}
article.page-content figure.intro-image-wrap figcaption {
  display: block;
  width: 100%;
  font-size: .78rem;
  line-height: 1.4;
}
article.page-content figure.intro-image-wrap + p { margin-top: 0; }
@media (max-width: 700px) {
  article.page-content figure.intro-image-wrap {
    width: 165px !important;
    max-width: 39% !important;
    margin-right: .9rem !important;
  }
  article.page-content figure.intro-image-wrap.intro-image-right {
    margin-left: .9rem !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 420px) {
  article.page-content figure.intro-image-wrap {
    width: 138px !important;
    max-width: 43% !important;
    margin-right: .7rem !important;
  }
  article.page-content figure.intro-image-wrap.intro-image-right {
    margin-left: .7rem !important;
    margin-right: 0 !important;
  }
  article.page-content figure.intro-image-wrap figcaption { font-size: .7rem; }
}


/* Refined introduction illustration sizing: larger but still text-friendly */
article.page-content figure.intro-image-wrap {
  width: 250px !important;
  max-width: 36% !important;
}
@media (max-width: 700px) {
  article.page-content figure.intro-image-wrap {
    width: 195px !important;
    max-width: 41% !important;
  }
}
@media (max-width: 420px) {
  article.page-content figure.intro-image-wrap {
    width: 155px !important;
    max-width: 44% !important;
  }
}


/* Keep Table of Contents labels such as Introduction on one line */
.toc-entry {
  grid-template-columns: 145px minmax(0, 1fr) 20px;
}
.toc-entry .toc-label {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 480px) {
  .toc-entry {
    grid-template-columns: minmax(0, 1fr) 20px;
  }
  .toc-entry .toc-label {
    grid-column: 1;
    white-space: nowrap;
  }
}


/* Introduction image sizes tuned separately for desktop, iPad portrait, and phones */
@media (min-width: 1100px) {
  article.page-content figure.intro-image-wrap {
    width: 300px !important;
    max-width: 38% !important;
  }
}
@media (min-width: 701px) and (max-width: 1099px) {
  article.page-content figure.intro-image-wrap {
    width: 260px !important;
    max-width: 39% !important;
  }
}
@media (max-width: 700px) {
  article.page-content figure.intro-image-wrap {
    width: 195px !important;
    max-width: 41% !important;
  }
}
@media (max-width: 420px) {
  article.page-content figure.intro-image-wrap {
    width: 155px !important;
    max-width: 44% !important;
  }
}


/* Companion classroom overview on each Part page */
.chapter-study-overview {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #f5ead7;
  border: 1px solid rgba(190, 151, 75, .45);
  border-top: 4px solid #c9a85d;
  border-radius: 4px;
  color: var(--ink);
}
.chapter-study-overview .eyebrow {
  color: #9b7936;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
}
.chapter-study-overview h2 {
  color: var(--burgundy);
  margin-top: .35rem;
}
.chapter-study-overview h3 {
  color: var(--burgundy);
  margin: 1.35rem 0 .5rem;
}
.chapter-study-overview ul {
  padding-left: 1.35rem;
}
.chapter-study-overview li {
  margin: .5rem 0;
}
.chapter-study-overview a {
  color: var(--burgundy);
  text-underline-offset: 3px;
}
.chapter-study-overview .study-note {
  border-top: 1px solid rgba(190,151,75,.45);
  padding-top: .8rem;
  font-size: .88rem;
}
@media (max-width: 600px) {
  .chapter-study-overview { margin: 1.5rem 1rem; }
}


/* Separate companion study room pages */
.study-room { max-width: 900px; }
.study-room .study-intro {
  padding: 1rem 1.2rem;
  border-left: 4px solid #c9a85d;
  background: rgba(201,168,93,.1);
}
.study-room .study-panel {
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: #f8f0e3;
  border: 1px solid rgba(190,151,75,.4);
  border-radius: 5px;
  color: #38252a;
}
.study-room .study-panel h2 { color: #64182f; margin-top: 0; }
.study-room textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: .6rem 0 1.25rem;
  padding: .8rem;
  min-height: 100px;
  border: 1px solid #c7b59b;
  border-radius: 4px;
  background: #fffdf8;
  color: #2d2424;
  font: inherit;
}
.study-room-links li { margin: .55rem 0; }
.study-room-links a { color: #64182f; font-weight: 600; }
.study-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 600px) {
  .study-room .study-panel { margin: 1rem 0; }
}


/* Unified Part pages: consistent reading path, chapter cards, and study links */
.part-hero .part-hero-description {
  margin: .8rem auto 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.6;
}
.part-content { max-width: 900px; }
.part-introduction { margin-bottom: 2.5rem; }
.part-introduction p { line-height: 1.8; }
.part-chapters, .part-scripture {
  margin: 2.5rem 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(190, 151, 75, .48);
}
.part-chapters > .eyebrow, .part-scripture > .eyebrow {
  margin-bottom: .35rem;
  color: #9b7936;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.part-chapters h2, .part-scripture h2 { margin-top: .25rem; color: var(--burgundy); }
.part-section-intro, .part-scripture-note { color: var(--muted); }
.part-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}
.part-chapter-card {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: #fbf7f0;
  border: 1px solid rgba(190, 151, 75, .45);
  border-top: 3px solid #c9a85d;
  border-radius: 4px;
}
.part-chapter-card .eyebrow {
  margin: 0 0 .45rem;
  color: #9b7936;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.part-chapter-card h3 { margin: 0 0 .7rem; line-height: 1.35; }
.part-chapter-card h3 a { color: var(--burgundy); text-decoration: none; }
.part-chapter-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.part-chapter-card > p:not(.eyebrow) { line-height: 1.7; }
.part-card-links { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1rem; }
.part-card-links a, .part-navigation a { color: var(--burgundy); font-weight: 600; text-underline-offset: 3px; }
.part-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin: 2.5rem 0 .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(190, 151, 75, .48);
}
.part-study-overview { margin-top: 1.5rem; }
.part-study-overview > p:not(.eyebrow):not(.study-note) { max-width: 760px; line-height: 1.75; }
.part-study-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.part-study-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(190, 151, 75, .48);
  border-radius: 4px;
  color: var(--burgundy) !important;
  text-decoration: none;
}
.part-study-link:hover { background: #fffaf0; border-color: #9b7936; }
.part-study-link-label { font-size: .72rem; letter-spacing: .12em; font-weight: 700; color: #9b7936; }
.part-study-link strong { line-height: 1.4; }
.part-study-link > span:last-child { margin-top: .15rem; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .part-chapter-grid, .part-study-links { grid-template-columns: minmax(0, 1fr); }
  .part-navigation { align-items: flex-start; flex-direction: column; }
  .part-introduction { margin-bottom: 2rem; }
  .part-chapters, .part-scripture { margin: 2rem 0; }
}


/* Consistent end-of-chapter Study Room callout */
.study-room-links {
  box-sizing: border-box;
  width: min(100% - 2rem, 900px);
  margin: clamp(2rem, 5vw, 3.5rem) auto 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #f8f0e3;
  border: 1px solid rgba(190, 151, 75, .55);
  border-left: 5px solid #c9a85d;
  border-radius: 5px;
  color: #38252a;
}
.study-room-links h2 {
  margin: 0 0 .65rem;
  color: #64182f;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.3;
}
.study-room-links p {
  margin: 0 0 1rem;
  max-width: 42rem;
  line-height: 1.7;
}
.study-room-links p:last-child { margin-bottom: 0; }
.study-room-links a.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  box-sizing: border-box;
  padding: .7rem 1rem;
  background: #64182f;
  border: 1px solid #64182f;
  border-radius: 4px;
  color: #fffaf2;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color .18s ease, border-color .18s ease;
}
.study-room-links a.text-link:hover,
.study-room-links a.text-link:focus-visible {
  background: #481020;
  border-color: #c9a85d;
  color: #fffaf2;
}
.study-room-links a.text-link:focus-visible {
  outline: 3px solid #c9a85d;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .study-room-links {
    width: calc(100% - 2rem);
    margin: 1.75rem auto;
    padding: 1.1rem;
  }
  .study-room-links a.text-link {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .study-room-links a.text-link { transition: none; }
}


/* Refined end-of-chapter Study Room callout */
.study-room-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  width: min(100% - 2rem, 900px);
  margin: clamp(2.25rem, 5vw, 4rem) auto 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(120deg, #fbf5eb 0%, #f3e6d3 100%);
  border: 1px solid rgba(190, 151, 75, .62);
  border-left: 5px solid #c9a85d;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(55, 24, 34, .07);
  color: #38252a;
}
.study-room-links .study-room-copy { flex: 1 1 20rem; min-width: 0; }
.study-room-links .eyebrow {
  margin: 0 0 .55rem;
  color: #8a6a2d;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
}
.study-room-links h2 {
  margin: 0 0 .55rem;
  color: #64182f;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.25;
}
.study-room-links .study-room-copy > p:last-child {
  margin: 0;
  max-width: 38rem;
  line-height: 1.7;
}
.study-room-links a.study-room-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  box-sizing: border-box;
  padding: .8rem 1.1rem;
  background: #64182f;
  border: 1px solid #64182f;
  border-radius: 5px;
  color: #fffaf2;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.study-room-links a.study-room-button:hover {
  background: #481020;
  border-color: #c9a85d;
  color: #fffaf2;
  transform: translateY(-1px);
}
.study-room-links a.study-room-button:focus-visible {
  outline: 3px solid #c9a85d;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .study-room-links {
    align-items: stretch;
    flex-direction: column;
    gap: 1.15rem;
    width: calc(100% - 2rem);
    margin: 1.75rem auto;
    padding: 1.15rem;
  }
  .study-room-links a.study-room-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .study-room-links a.study-room-button { transition: none; }
  .study-room-links a.study-room-button:hover { transform: none; }
}


/* Consistent chapter navigation connecting chapters back to their Parts */
.chapter-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 900px);
  margin: clamp(2rem, 5vw, 3.25rem) auto 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(190, 151, 75, .55);
  border-bottom: 1px solid rgba(190, 151, 75, .55);
}
.chapter-nav-side { min-width: 0; }
.chapter-nav-side:last-child { text-align: right; }
.chapter-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: #64182f;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 4px;
}
.chapter-nav-link:hover { text-decoration: underline; }
.chapter-nav-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-width: 7.5rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(190, 151, 75, .65);
  border-radius: 5px;
  background: #fbf5eb;
  color: #64182f;
  text-align: center;
  text-decoration: none;
}
.chapter-nav-part:hover { background: #f3e6d3; border-color: #9b7936; }
.chapter-nav-kicker {
  color: #8a6a2d;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.chapter-nav-part strong { font-size: .95rem; line-height: 1.3; }
.chapter-navigation a:focus-visible {
  outline: 3px solid #c9a85d;
  outline-offset: 3px;
  border-radius: 3px;
}
@media (max-width: 620px) {
  .chapter-navigation {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    width: calc(100% - 2rem);
  }
  .chapter-nav-part {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }
  .chapter-nav-side { grid-row: 2; }
  .chapter-nav-side:last-child { text-align: right; }
  .chapter-nav-link { font-size: .9rem; }
}


/* Tablet and mobile navigation: collapse before the header becomes crowded */
@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem 1rem;
  }
  .site-header .brand { min-width: 0; }
  .site-header .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .site-header .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: .65rem 0 .25rem;
    border-top: 1px solid rgba(216,183,106,.35);
    gap: .25rem;
  }
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .site-nav a {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .7rem .25rem;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 901px) {
  .site-header .menu-toggle { display: none; }
  .site-header .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}


/* Mobile menu overlays the page instead of changing header height */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .site-header .site-nav,
  .site-header.nav-open .site-nav {
    position: absolute;
    top: calc(100% + .35rem);
    right: 1rem;
    left: auto;
    z-index: 1000;
    box-sizing: border-box;
    width: min(90vw, 340px);
    max-height: min(75vh, 560px);
    overflow-y: auto;
    padding: .65rem;
    border: 1px solid rgba(216,183,106,.65);
    border-radius: 6px;
    background: #1b080e;
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
  }
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .site-nav a {
    min-height: 44px;
    padding: .7rem .8rem;
    border-radius: 3px;
  }
}


/* Final shared navigation refinements for Parts, Chapters, and Study Rooms */
.chapter-navigation {
  box-sizing: border-box;
  width: min(calc(100% - 3rem), 1040px);
  margin: clamp(1.75rem, 4vw, 3rem) auto 1.5rem;
  column-gap: clamp(.75rem, 2vw, 1.5rem);
}
.chapter-nav-side {
  display: flex;
  align-items: center;
  min-width: 0;
}
.chapter-nav-side:last-child { justify-content: flex-end; text-align: right; }
.chapter-nav-link {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.chapter-nav-part {
  box-sizing: border-box;
  min-width: 9rem;
  max-width: 13rem;
  padding: .7rem 1rem;
  gap: .35rem;
  white-space: normal;
}
.chapter-nav-kicker {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
}
.chapter-nav-part strong {
  display: block;
  overflow-wrap: anywhere;
}
@media (min-width: 621px) and (max-width: 1024px) {
  .chapter-navigation {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, auto) minmax(0, 1fr);
    gap: .75rem;
    width: calc(100% - 2.5rem);
  }
  .chapter-nav-link { font-size: clamp(.9rem, 1.8vw, 1.05rem); }
  .chapter-nav-part { min-width: 9rem; padding: .7rem .8rem; }
}
@media (max-width: 620px) {
  .chapter-navigation {
    width: calc(100% - 2rem);
    margin: 1.75rem auto 1.25rem;
    padding: .9rem 0;
    row-gap: .65rem;
  }
  .chapter-nav-part {
    min-width: 9.5rem;
    max-width: min(100%, 14rem);
    padding: .65rem .9rem;
  }
  .chapter-nav-link {
    font-size: .88rem;
    line-height: 1.35;
  }
}


/* Study Room navigation: keep the return label and destination visually separate */
.chapter-navigation.study-room-navigation .chapter-nav-part {
  min-width: 10rem;
  padding: .8rem 1rem;
  gap: .45rem;
}
.chapter-navigation.study-room-navigation .chapter-nav-kicker {
  display: block;
  margin-bottom: .15rem;
  line-height: 1.4;
}
.chapter-navigation.study-room-navigation .chapter-nav-part strong {
  display: block;
  margin-top: .1rem;
  line-height: 1.35;
}
@media (min-width: 621px) and (max-width: 1024px) {
  .chapter-navigation.study-room-navigation {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, auto) minmax(0, 1fr);
  }
  .chapter-navigation.study-room-navigation .chapter-nav-part {
    min-width: 10rem;
    padding: .8rem .9rem;
  }
}
@media (max-width: 620px) {
  .chapter-navigation.study-room-navigation .chapter-nav-part {
    min-width: 10rem;
    max-width: min(100%, 14rem);
    padding: .75rem 1rem;
  }
}


/* Keep each new chapter section below the preceding floated illustration. */
.chapter h2 { clear: both; }


/* Chapter Scripture quotations */
.scripture-quote{margin:1.5rem 0;padding:1rem 1.25rem;border-left:4px solid #b78b43;background:rgba(128,25,47,.07);color:inherit;border-radius:0 .4rem .4rem 0}.scripture-quote p{font-family:Georgia,serif;font-size:1.08rem;line-height:1.7;font-style:italic;margin:.1rem 0 .65rem}.scripture-quote cite{display:block;font-size:.9rem;font-style:normal;font-weight:700;color:var(--burgundy,#72233a)}.intro-image-wrap{width:min(42%,320px);margin:1rem 1.4rem 1rem 0}.intro-image-right{float:right;margin:1rem 0 1rem 1.4rem}.intro-image-left{float:left;margin:1rem 1.4rem 1rem 0}.intro-image-wrap img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:.35rem}.intro-image-wrap figcaption{font-size:.84rem;line-height:1.45;margin-top:.5rem;color:inherit;font-style:italic}@media(max-width:640px){.intro-image-wrap,.intro-image-left,.intro-image-right{float:none;width:min(100%,360px);margin:1.2rem auto;clear:both}.intro-image-wrap img{width:100%}}

/* Scripture references remain within the teaching paragraphs and receive distinct, visible styling. */
.page-content .scripture-inline{color:#541d2b;font-weight:700;background:linear-gradient(transparent 52%,rgba(198,161,91,.42) 52%);padding:0 .1em;border-bottom:1px solid #c6a15b;text-decoration:none;}

/* Prevent multiple Chapter 6 illustrations from colliding or squeezing adjacent text. */
article.page-content.chapter:has(img[src*="chapter6/"]) figure.intro-image-wrap { clear: both !important; }
article.page-content.chapter:has(img[src*="chapter6/"]) blockquote.scripture-quote { clear: both; width: auto; max-width: 100%; box-sizing: border-box; }

/* Chapter 6: let selected illustrations sit beside the Scripture text they illustrate. */
article.page-content blockquote.scripture-quote figure.intro-image-wrap {
  float: right !important;
  clear: none !important;
  width: 145px !important;
  max-width: 42% !important;
  margin: .25rem 0 .75rem 1rem !important;
  position: relative;
}
article.page-content blockquote.scripture-quote figure.intro-image-wrap img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}
article.page-content blockquote.scripture-quote figure.intro-image-wrap figcaption {
  font-size: .72rem;
  line-height: 1.35;
}
@media (max-width: 420px) {
  article.page-content blockquote.scripture-quote figure.intro-image-wrap {
    width: 118px !important;
    max-width: 43% !important;
    margin-left: .65rem !important;
  }
}

/* Chapter 6: space the final illustrations within the Matthew passage. */
article.page-content blockquote.scripture-quote figure.intro-image-wrap + figure.intro-image-wrap {
  margin-top: 1.5rem !important;
}
article.page-content blockquote.scripture-quote figure.intro-image-wrap {
  margin-bottom: 1rem !important;
}

/* Compact chapter companion cards on mobile */
@media (max-width: 680px) {
  .study-room-links {
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: .85rem !important;
    padding: 1.1rem !important;
  }
  .study-room-links .study-room-copy {
    flex: 0 1 auto !important;
    min-height: 0 !important;
  }
  .study-room-links .study-room-copy > p:last-child {
    margin-bottom: 0 !important;
  }
  .study-room-links a.study-room-button {
    margin-top: .15rem !important;
    align-self: stretch;
  }
}


/* About the Author: readable editorial profile and responsive portrait */
.author-page-hero .subtitle{max-width:780px;margin:0 auto;color:#f8f2e7;line-height:1.55}
.author-profile{max-width:1000px}
.author-profile .author-introduction{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start;margin:0 0 3rem;padding:clamp(1.2rem,3vw,2rem);background:linear-gradient(145deg,#fffdf9,#f8f2e7);border:1px solid #eadfc9;border-radius:10px;box-shadow:0 8px 28px rgba(53,17,27,.06)}
.author-portrait{margin:0;text-align:center}
.author-portrait img{display:block;width:100%;max-height:390px;aspect-ratio:4/5;object-fit:cover;object-position:center 25%;border:5px solid #fffdf9;outline:1px solid #d9bd7a;border-radius:5px;box-shadow:0 10px 25px rgba(53,17,27,.14)}
.author-portrait figcaption{margin-top:.8rem;color:#725a36;font:700 .8rem/1.4 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.author-introduction-copy .eyebrow,.author-story .eyebrow,.author-book-connection .eyebrow{margin:0 0 .5rem;color:#8a6728}
.author-introduction-copy h2,.author-story h2,.author-book-connection h2,.author-closing h2{margin:.25rem 0 1rem;color:var(--burgundy);font-size:clamp(1.7rem,3.5vw,2.35rem);line-height:1.25}
.author-introduction-copy p,.author-story p,.author-book-connection p,.author-closing p{font-size:1.06rem;line-height:1.9}
.author-story,.author-book-connection{margin:2.75rem 0;padding:0 0 2rem;border-bottom:1px solid rgba(216,183,106,.45)}
.author-profile blockquote{margin:1.6rem 0;padding:1.25rem 1.5rem;border-left:4px solid var(--gold);background:linear-gradient(110deg,#f4ead9,#fffaf1);color:#3d1b25;font-size:1.12rem;line-height:1.85}
.author-closing{margin-top:2.5rem;padding:clamp(1.25rem,3vw,2rem);background:#f8f2e7;border:1px solid #e3d0a8;border-radius:8px}
.author-closing .author-separator{display:inline-block;margin:0 .75rem;color:#b18a3e}
@media(max-width:700px){.author-profile .author-introduction{grid-template-columns:1fr;gap:1.4rem;padding:1rem}.author-portrait img{width:min(100%,280px);margin:0 auto;max-height:350px}.author-introduction-copy h2,.author-story h2,.author-book-connection h2,.author-closing h2{font-size:1.65rem}.author-profile blockquote{padding:1rem;font-size:1.02rem}.author-closing .author-separator{margin:0 .35rem}}


/* Final spacing correction for the About the Author closing panel */
.author-profile .author-closing{
  padding:clamp(1.25rem,3vw,2rem);
  overflow:hidden;
}
.author-profile .author-closing h2{
  display:block;
  margin:0 0 1rem;
  padding:0 0 .75rem;
  font-size:clamp(1.65rem,3vw,2.15rem);
  line-height:1.25;
  overflow-wrap:break-word;
}
.author-profile .author-closing p{
  margin:0 0 1.25rem;
  max-width:76ch;
}
.author-profile .author-closing a{
  display:inline-block;
  margin:.25rem .15rem .4rem 0;
  line-height:1.6;
}
.author-profile .author-closing .author-separator{
  margin:0 .65rem;
}
@media(max-width:600px){
  .author-profile .author-closing{padding:1.1rem}
  .author-profile .author-closing h2{font-size:1.55rem}
  .author-profile .author-closing .author-separator{display:none}
  .author-profile .author-closing a{display:block;width:fit-content;max-width:100%;margin:.55rem 0}
}


/* Repair narrow overview cards on the home page */
#contents .chapter-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.25rem;
  align-items:stretch;
}
#contents .chapter-grid article{
  min-width:0;
  padding:clamp(1.1rem,2.5vw,1.65rem);
  border:1px solid #e5d4ad;
  border-top:4px solid var(--gold);
  border-radius:6px;
  background:rgba(255,253,249,.94);
  box-shadow:0 8px 22px rgba(53,17,27,.06);
  overflow-wrap:break-word;
  word-break:normal;
}
#contents .chapter-grid article h3{
  margin:0 0 .8rem;
  font-size:1.35rem;
  line-height:1.3;
}
#contents .chapter-grid article p{
  margin:.5rem 0;
  line-height:1.65;
}
#contents .chapter-grid article p:last-child{
  color:var(--muted);
  font:700 .78rem/1.5 Arial,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#contents > h2{
  max-width:100%;
  overflow-wrap:normal;
  word-break:normal;
}
@media(max-width:600px){
  #contents .chapter-grid{grid-template-columns:minmax(0,1fr);gap:1rem}
  #contents .chapter-grid article{padding:1.1rem}
}


/* Hard reset for the homepage Book Overview layout.
   Keep the section's children full-width so text and cards cannot collapse. */
#contents.content-section.shaded {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-inline: max(1.25rem, calc((100% - 1040px) / 2)) !important;
}
#contents.content-section.shaded > .eyebrow,
#contents.content-section.shaded > h2,
#contents.content-section.shaded > .note {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  text-align: left;
}
#contents.content-section.shaded > h2 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
#contents.content-section.shaded > .chapter-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  margin: 2rem 0 !important;
}
#contents.content-section.shaded > .chapter-grid > article {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 1.25rem !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
#contents.content-section.shaded > .chapter-grid > article h3,
#contents.content-section.shaded > .chapter-grid > article p {
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
@media (max-width: 600px) {
  #contents.content-section.shaded { padding-inline: 1rem !important; }
  #contents.content-section.shaded > .chapter-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Keep the homepage book link visually connected to its introduction. */
#book.content-section {
  padding-bottom: .75rem;
}
.book-more-link {
  padding-top: .5rem;
}
