.selected-atlas-page {
  color: #202b29;
  background: #f7f6f1;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.selected-atlas-page a {
  color: #24664b;
  text-underline-offset: .2em;
}

.selected-atlas-page a:hover {
  color: #174d3a;
}

.selected-atlas-page a:focus-visible {
  outline: 3px solid #b77a3d;
  outline-offset: 3px;
}

.selected-atlas {
  min-height: 100vh;
}

.selected-atlas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  background: #202b29;
  color: #f7f6f1;
}

.selected-atlas-header a {
  color: #f7f6f1;
  text-decoration: none;
}

.selected-atlas-header a:hover {
  color: #d9ede0;
}

.selected-atlas-brand {
  font-size: 1.15rem;
  font-weight: 740;
  letter-spacing: -.025em;
}

.selected-atlas-header-app {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid #9fc1ad;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 650;
}

.selected-atlas-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1540px;
  margin: 0 auto;
}

.selected-atlas-rail {
  background: #e4ebe5;
  padding: 3rem 1.5rem;
}

.selected-atlas-rail nav {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: .35rem;
}

.atlas-menu-toggle {
  display: none;
}

.selected-atlas-rail a {
  display: block;
  padding: .7rem .8rem;
  border-left: 3px solid transparent;
  color: #202b29;
  text-decoration: none;
  font-weight: 650;
}

.selected-atlas-rail a:hover,
.selected-atlas-rail a:focus-visible {
  border-left-color: #24664b;
  color: #24664b;
  background: #f2f5ef;
}

.selected-atlas-main {
  min-width: 0;
  padding: 2.6rem clamp(1.5rem, 5vw, 5.5rem) 3rem;
}

.selected-atlas-intro,
.selected-atlas-chapters,
.selected-atlas-next,
.selected-atlas-footer {
  max-width: 950px;
}

.selected-atlas-intro {
  padding-bottom: 2.4rem;
}

.selected-atlas-label {
  margin-bottom: .9rem;
  color: #24664b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.selected-atlas-intro h1 {
  max-width: 17ch;
  margin: 0 0 .8rem;
  color: #202b29;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.selected-atlas-meta {
  margin: 0;
  color: #52615b;
  font-size: 1rem;
}

.selected-atlas-meta span {
  padding: 0 .25rem;
}

.selected-atlas-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 .8rem;
  border-bottom: 2px solid #24664b;
}

.selected-atlas-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -.035em;
}

.selected-atlas-section-head span {
  color: #52615b;
  font-size: .9rem;
  white-space: nowrap;
}

.selected-atlas-chapters ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-atlas-chapters > ol > li {
  border-bottom: 1px solid #cdd5ce;
}

.selected-atlas-chapters summary {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: baseline;
  padding: .84rem .3rem;
  color: #202b29;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.selected-atlas-chapters summary::-webkit-details-marker {
  display: none;
}

.selected-atlas-chapters summary::after {
  content: "+";
  justify-self: end;
  color: #24664b;
  font-size: 1.25rem;
  font-weight: 400;
}

.selected-atlas-chapters details[open] summary::after {
  content: "−";
}

.selected-atlas-chapters summary:hover,
.selected-atlas-chapters details[open] summary {
  color: #24664b;
  background: #ebf0e9;
}

.selected-atlas-chapters summary:focus-visible {
  outline: 3px solid #b77a3d;
  outline-offset: -3px;
}

.selected-atlas-topics {
  padding: .1rem 1rem 1rem 3.6rem;
  color: #52615b;
}

.selected-atlas-topics p {
  margin: 0 0 .35rem;
  font-size: .82rem;
  font-weight: 700;
}

.selected-atlas-topics ul {
  margin: 0 0 .4rem;
  padding-left: 1.1rem;
}

.selected-atlas-topics a {
  font-weight: 650;
}

.selected-atlas-number {
  color: #9a602b;
  font-size: .9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.selected-atlas-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 3.8rem 0 2.7rem;
}

.selected-atlas-next section {
  padding-top: 1.25rem;
  border-top: 2px solid #24664b;
}

.selected-atlas-next h2 {
  margin-bottom: .55rem;
  font-size: 1.5rem;
}

.selected-atlas-next p {
  margin-bottom: .75rem;
  color: #52615b;
}

.selected-atlas-next a,
.selected-atlas-footer a {
  font-weight: 700;
}

.selected-atlas-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid #cdd5ce;
  font-size: .9rem;
}

.selected-atlas-footer > span {
  font-weight: 700;
}

.selected-atlas-footer small {
  flex-basis: 100%;
  margin-top: .6rem;
  color: #52615b;
  font-size: .8rem;
}

@media (max-width: 800px) {
  .selected-atlas-layout {
    grid-template-columns: 1fr;
  }

  .selected-atlas-rail {
    padding: .5rem 1rem;
  }

  .selected-atlas-rail nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .7rem;
  }

  .selected-atlas-rail a {
    padding: .5rem .4rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
    font-size: .9rem;
  }

  .selected-atlas-rail a:hover,
  .selected-atlas-rail a:focus-visible {
    border-left: 0;
    border-bottom-color: #24664b;
  }

  .selected-atlas-main {
    padding-top: 2rem;
  }
}

@media (max-width: 580px) {
  .selected-atlas-header {
    padding: .8rem 1rem;
  }

  .selected-atlas-brand {
    font-size: 1rem;
  }

  .selected-atlas-header-app {
    padding: .45rem .55rem;
    font-size: .78rem;
  }

  .selected-atlas-main {
    padding: 1.8rem 1rem 2.5rem;
  }

  .selected-atlas-intro h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .selected-atlas-meta span {
    padding: 0 .15rem;
  }

  .selected-atlas-chapters summary {
    gap: .6rem;
    padding: .8rem .1rem;
  }

  .selected-atlas-topics {
    padding-left: 3rem;
  }

  .selected-atlas-next {
    grid-template-columns: 1fr;
    margin-top: 2.6rem;
  }
}

/* Single-page, card-led edition. Keep one navigation and inline chapters. */
.selected-atlas-page { background: #f5f6f4; color: #17241e; }
.selected-atlas-page a { color: #176348; }
.selected-atlas-header {
  position: relative;
  background: #fff;
  color: #17241e;
  border-bottom: 1px solid #e1e7e2;
}
.selected-atlas-header a { color: #17241e; }
.selected-atlas-header a:hover { color: #176348; }
.selected-atlas-header-app,
.selected-atlas-header .selected-atlas-header-app {
  border: 0;
  border-radius: 999px;
  background: #173f30;
  color: #fff;
  padding-inline: 1.1rem;
}
.selected-atlas-header .selected-atlas-header-app:hover { color: #fff; background: #28674b; }
.selected-atlas-layout { max-width: 1600px; grid-template-columns: 218px minmax(0, 1fr); }
.selected-atlas-rail { background: transparent; border-right: 1px solid #e1e7e2; }
.selected-atlas-rail nav { top: 2rem; }
.selected-atlas-rail a { border-radius: 12px; border-left: 0; font-size: .9rem; }
.selected-atlas-rail a:hover,
.selected-atlas-rail a:focus-visible { background: #e7eee9; border-left: 0; }
.selected-atlas-main { max-width: 1300px; padding-top: 2.5rem; }
.selected-atlas-main > section,
.selected-atlas-main > .selected-atlas-intro {
  max-width: none;
  border: 0;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  scroll-margin-top: 1rem;
}
.selected-atlas-main > .selected-atlas-intro { padding: clamp(1.5rem, 4vw, 3rem); }
.atlas-card {
  background: #fff;
  border: 1px solid #e1e7e2;
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(19, 50, 36, .045);
}
.selected-atlas-intro {
  gap: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(130deg, #fff 42%, #e9f2eb 100%);
}
.selected-atlas-intro h1 { max-width: 16ch; font-size: clamp(2.9rem, 5.5vw, 5.4rem); }
.selected-atlas-intro-lead { max-width: 59ch; font-size: clamp(1.08rem, 1.65vw, 1.3rem); }
.selected-atlas-cover img { border-radius: 7px; box-shadow: 0 24px 50px #1c3b2b2e; }
.selected-atlas-page .atlas-hero-actions a:first-child { border-radius: 999px; padding: .78rem 1.2rem; background: #173f30; color: #fff; }
.atlas-hero-actions a:first-child:hover { color: #fff; background: #28674b; }
.atlas-hero-actions a:last-child { text-decoration: none; }
.atlas-section-intro { max-width: 780px; margin-bottom: 1.8rem; }
.atlas-section-intro > p:not(.selected-atlas-label) { color: #4e6256; font-size: 1.08rem; line-height: 1.65; }
.atlas-app { background: linear-gradient(180deg, #ecf4ee, #f5f6f4 88%); border-radius: 28px; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.atlas-app .atlas-section-intro h2 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.atlas-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.atlas-app-feature { min-width: 0; min-height: 190px; padding: clamp(1.25rem, 2vw, 2rem); }
.atlas-feature-index { color: #8baf96; font-weight: 800; font-size: .8rem; letter-spacing: .12em; }
.atlas-app-feature h3 { margin: 1.4rem 0 .45rem; font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.025em; }
.atlas-app-feature p { margin: 0; color: #4e6256; line-height: 1.55; }
.atlas-overview-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; }
.atlas-description { grid-row: span 2; }
.atlas-overview-grid > .atlas-card { margin: 0; padding: clamp(1.3rem, 2.5vw, 2.2rem); background: #fff; border-top: 1px solid #e1e7e2; }
.atlas-overview-grid > .atlas-card h3 { margin: 0 0 1rem; font-size: 1.22rem; }
.atlas-description > p { line-height: 1.65; }
.atlas-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.atlas-metrics > div { display: grid; gap: .25rem; padding: 1.25rem; border-radius: 20px; background: #eaf1ea; }
.atlas-metrics strong { color: #184c37; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; }
.atlas-metrics span { color: #4e6256; }
.atlas-source-note { color: #69766d; font-size: .85rem; }
.atlas-video-section { padding: clamp(1.4rem, 3vw, 2.5rem) !important; }
.atlas-video-frame,
.atlas-video-frame iframe,
.atlas-video-frame button { border-radius: 18px; overflow: hidden; }
.selected-atlas-chapters .atlas-chapter { margin: .7rem 0; overflow: hidden; border: 1px solid #e1e7e2; border-radius: 18px; background: #fff; }
.selected-atlas-chapters .atlas-chapter summary { grid-template-columns: 2.4rem minmax(0, 1fr) auto 1.2rem; padding: 1.1rem 1.2rem; }
.selected-atlas-chapters .atlas-chapter summary:hover,
.selected-atlas-chapters .atlas-chapter[open] summary { background: #eaf2eb; }
.atlas-chapter-content { background: #fff; }
.atlas-chapter-intro { color: #4e6256; line-height: 1.6; }
.atlas-group-heading { border: 0; border-radius: 12px; background: #eaf1ea; }
.atlas-toc-controls button { border-radius: 999px; padding-inline: 1rem; }
.atlas-resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.atlas-resources-grid > .atlas-card { padding: clamp(1.3rem, 2vw, 2rem); }
.atlas-resources-grid li { margin: .7rem 0; }
.atlas-corrections { padding: clamp(1.4rem, 3vw, 2.5rem) !important; }
.atlas-author { padding: clamp(1.4rem, 3vw, 2.5rem) !important; }
.atlas-author img { border-radius: 17px; }
.atlas-author-links a { border-radius: 999px; }
.atlas-contact { padding: clamp(1.4rem, 3vw, 2.5rem) !important; }
.atlas-contact input,
.atlas-contact textarea { border-radius: 11px; }
.atlas-contact button { border-radius: 999px; }

@media (max-width: 1000px) {
  .atlas-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .selected-atlas-layout { display: block; }
  .selected-atlas-rail { background: #fff; border-right: 0; border-bottom: 1px solid #e1e7e2; }
  .atlas-js .atlas-menu-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; border: 0; background: transparent; color: #173f30; font: inherit; font-weight: 750; cursor: pointer; }
  .atlas-js .selected-atlas-rail nav { display: none; }
  .atlas-js .selected-atlas-rail.is-open nav { display: grid; }
  .selected-atlas-main { padding-inline: clamp(1rem, 4vw, 2rem); }
  .selected-atlas-main > section { scroll-margin-top: 5rem; }
}
@media (max-width: 620px) {
  .selected-atlas-intro { grid-template-columns: minmax(0, 1fr); }
  .selected-atlas-cover { width: min(175px, 55%); justify-self: start; }
  .atlas-app-grid,
  .atlas-overview-grid,
  .atlas-resources-grid { grid-template-columns: minmax(0, 1fr); }
  .atlas-description { grid-row: auto; }
  .atlas-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-app-feature { min-height: 0; }
  .atlas-video-section { grid-template-columns: minmax(0, 1fr); }
  .selected-atlas-chapters .atlas-chapter summary { grid-template-columns: 2rem minmax(0, 1fr) 1rem; }
}

/* Restored Chapter Atlas: visible topics, three chapter groups and the book cover. */
.selected-atlas-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}

.selected-atlas-main {
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem) 2.5rem;
}

.selected-atlas-intro,
.selected-atlas-chapters,
.selected-atlas-footer {
  max-width: none;
}

.selected-atlas-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(165px, 225px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 2.8rem;
}

.selected-atlas-intro h1 {
  max-width: 21ch;
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.selected-atlas-intro-lead {
  max-width: 55ch;
  margin: 1rem 0;
  color: #52615b;
}

.selected-atlas-book-link,
.selected-atlas-full-toc,
.selected-atlas-corrections > a {
  font-weight: 700;
}

.selected-atlas-cover {
  margin: 0;
  justify-self: center;
  width: min(100%, 225px);
}

.selected-atlas-cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 30px #202b2926;
}

.selected-atlas-cover figcaption {
  margin-top: .6rem;
  color: #52615b;
  font-size: .82rem;
  text-align: center;
}

.selected-atlas-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 245px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.selected-atlas-topics-note {
  margin: .9rem 0 1.8rem;
  color: #52615b;
  font-size: .92rem;
}

.selected-atlas-group {
  scroll-margin-top: 2rem;
  margin-bottom: 2.3rem;
}

.selected-atlas-group-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem .7rem;
  background: #e4ebe5;
  border-left: 4px solid #24664b;
}

.selected-atlas-group-head span {
  color: #24664b;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.selected-atlas-group-head h3 {
  margin: 0;
  color: #202b29;
  font-size: 1.15rem;
  line-height: 1.3;
}

.selected-atlas-group ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-atlas-chapter {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .8rem;
  padding: 1rem .45rem 1.05rem;
  border-bottom: 1px solid #cdd5ce;
}

.selected-atlas-chapter h4 {
  margin: 0 0 .4rem;
  font-size: 1.04rem;
  line-height: 1.35;
}

.selected-atlas-chapter h4 a {
  color: #202b29;
  text-decoration: none;
}

.selected-atlas-chapter h4 a:hover {
  color: #24664b;
  text-decoration: underline;
}

.selected-atlas-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #52615b;
  font-size: .9rem;
}

.selected-atlas-topics li:not(:last-child)::after {
  content: '·';
  margin-left: .45rem;
  color: #9a602b;
}

.selected-atlas-note {
  display: inline-block;
  margin-top: .45rem;
  font-size: .88rem;
  font-weight: 650;
}

.selected-atlas-full-toc {
  display: inline-block;
  margin: -.2rem 0 2.5rem;
}

.selected-atlas-resources {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 2rem;
  padding-top: .1rem;
}

.selected-atlas-resources section {
  padding: 1.15rem;
  border-top: 3px solid #24664b;
  background: #e4ebe5;
}

.selected-atlas-resources h2 {
  margin: .1rem 0 .55rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.selected-atlas-resources p:not(.selected-atlas-label) {
  color: #394a43;
  font-size: .92rem;
}

.selected-atlas-resources section:last-child a {
  display: block;
  margin-top: .5rem;
}

.selected-atlas-resource-action {
  display: inline-block;
  padding: .6rem .85rem;
  background: #24664b;
  color: #fff !important;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.selected-atlas-corrections {
  margin-top: .4rem;
  scroll-margin-top: 2rem;
}

.selected-atlas-corrections .correction-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.selected-atlas-corrections .correction-list li {
  display: grid;
  grid-template-columns: minmax(120px, 35%) minmax(0, 1fr);
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid #cdd5ce;
  font-size: .9rem;
}

.selected-atlas-corrections .correction-list strong {
  color: #202b29;
}

.selected-atlas-corrections .correction-list span {
  color: #52615b;
}

.selected-atlas-footer {
  justify-content: space-between;
  margin-top: 3rem;
}

.selected-atlas-footer small {
  flex-basis: auto;
}

@media (max-width: 1100px) {
  .selected-atlas-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-atlas-resources {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .selected-atlas-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 580px) {
  .selected-atlas-intro {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 1rem;
    align-items: start;
  }

  .selected-atlas-intro h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .selected-atlas-cover figcaption {
    font-size: .75rem;
  }

  .selected-atlas-resources {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-atlas-corrections .correction-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
  }
}

@media (max-width: 380px) {
  .selected-atlas-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-atlas-cover {
    justify-self: start;
    width: 145px;
  }
}

@media (max-width: 580px) {
  .selected-atlas-intro { grid-template-columns: minmax(0, 1fr); }
  .selected-atlas-cover { width: min(175px, 55%); }
}

.atlas-resources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atlas-corrections { padding-inline: 0 !important; }
.atlas-correction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.atlas-correction-card { min-width: 0; padding: clamp(1.25rem, 2.2vw, 2rem); }
.atlas-correction-card:last-child { grid-column: 1 / -1; }
.atlas-correction-heading > p { margin: 0 0 .3rem; color: #176348; font-size: .85rem; font-weight: 750; }
.atlas-correction-heading h3 { margin: 0 0 1.25rem; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.atlas-correction-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.atlas-correction-compare > div { min-width: 0; padding: .9rem; border-radius: 16px; background: #f3f6f3; overflow-wrap: anywhere; }
.atlas-correction-compare h4 { margin: 0 0 .5rem; color: #53695c; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.atlas-correction-compare p { margin: 0 0 .6rem; }
.atlas-correction-compare p:last-child { margin-bottom: 0; }
.atlas-correction-compare code { color: #183f30; font-size: .85rem; white-space: normal; overflow-wrap: anywhere; }
.atlas-correction-compare img { display: block; max-width: 100%; height: auto; margin: .35rem 0; }
.atlas-correction-note { color: #506357; line-height: 1.55; margin: 1rem 0 0; }
.atlas-corrigendum-source { margin-top: 1.2rem; }
.selected-atlas-rail nav a[aria-current="location"] {
  color: #173f30;
  background: #e7eee9;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}
.atlas-correction-card { padding: 0; overflow: hidden; }
.atlas-correction-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  list-style: none;
  cursor: pointer;
}
.atlas-correction-card summary::-webkit-details-marker { display: none; }
.atlas-correction-card summary:hover,
.atlas-correction-card[open] summary { background: #f0f5f0; }
.atlas-correction-card summary:focus-visible { outline: 3px solid #b77a3d; outline-offset: -4px; }
.atlas-correction-heading { display: grid; gap: .3rem; }
.atlas-correction-location { color: #176348; font-size: .85rem; font-weight: 750; }
.atlas-correction-heading strong { color: #17241e; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.atlas-correction-indicator { color: #176348; font-size: 1.8rem; line-height: 1; transition: transform .2s ease; }
.atlas-correction-card[open] .atlas-correction-indicator { transform: rotate(45deg); }
.atlas-correction-body { padding: 1.2rem clamp(1.25rem, 2.2vw, 2rem) clamp(1.25rem, 2.2vw, 2rem); border-top: 1px solid #e1e7e2; }
.atlas-author { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.atlas-contact { background: #eaf2eb; }
@media (max-width: 1000px) {
  .atlas-resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .atlas-resources-grid,
  .atlas-correction-grid { grid-template-columns: minmax(0, 1fr); }
  .atlas-correction-card:last-child { grid-column: auto; }
}
@media (max-width: 440px) {
  .atlas-correction-compare { grid-template-columns: minmax(0, 1fr); }
}

/* Earlier companion layout retained below as a lower-priority fallback. */
@layer legacy-companion {
/* Complete WordPress-content migration trial. */
.selected-atlas-header {
  position: relative;
  z-index: 2;
}

.selected-atlas-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.2rem;
  margin-left: auto;
}

.selected-atlas-header nav > a:not(.selected-atlas-header-app) {
  font-size: .9rem;
  font-weight: 600;
}

.selected-atlas-header nav > a:hover {
  text-decoration: underline;
}

.selected-atlas-main > section {
  scroll-margin-top: 1.5rem;
  border-bottom: 1px solid #cdd5ce;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.selected-atlas-main > section:last-of-type {
  border-bottom: 0;
}

.selected-atlas-main > .selected-atlas-intro {
  padding-top: 1.2rem;
}

.selected-atlas-intro-lead {
  font-size: 1.08rem;
}

.atlas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.3rem;
  align-items: center;
  margin-top: 1.5rem;
}

.atlas-hero-actions a:first-child {
  display: inline-block;
  padding: .72rem 1rem;
  color: #fff;
  background: #24664b;
  text-decoration: none;
  font-weight: 700;
}

.atlas-hero-actions a:last-child {
  font-weight: 700;
}

.atlas-section-intro {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.atlas-section-intro h2,
.atlas-video-section h2,
.atlas-author h2,
.atlas-contact h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.atlas-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .8fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.atlas-description > p {
  max-width: 66ch;
  color: #394a43;
  font-size: 1.04rem;
  line-height: 1.7;
}

.atlas-audience {
  margin-top: 2rem;
}

.atlas-audience h3,
.atlas-highlights h3,
.atlas-resources h3,
.atlas-institutions h3 {
  margin: 0 0 .7rem;
  font-size: 1.15rem;
}

.atlas-audience ul,
.atlas-highlights ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #394a43;
}

.atlas-audience li,
.atlas-highlights li {
  margin: .55rem 0;
}

.atlas-highlights {
  padding: 1.25rem 1.5rem;
  border-top: 3px solid #24664b;
  background: #e4ebe5;
}

.atlas-stat {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-top: 1.2rem;
  padding-top: .9rem;
  border-top: 1px solid #cdd5ce;
}

.atlas-stat strong {
  color: #24664b;
  font-size: 2.2rem;
  line-height: 1;
}

.atlas-video-section {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.atlas-video-section p:not(.selected-atlas-label) {
  max-width: 48ch;
  color: #52615b;
}

.atlas-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 55% 45%, #3d8060 0, #193c31 39%, #122722 82%);
  box-shadow: 0 14px 34px #202b2924;
}

.atlas-video-frame button,
.atlas-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.atlas-video-frame button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.atlas-video-frame button > span {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: #f7f6f1;
  color: #24664b;
  font-size: 1.6rem;
  padding-left: .2rem;
}

.atlas-video-frame button small {
  color: #d8e8dd;
  font-size: .85rem;
}

.atlas-toc-intro {
  max-width: 70ch;
  color: #52615b;
}

.atlas-toc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 2rem;
}

.atlas-toc-controls button {
  min-height: 42px;
  padding: .5rem .8rem;
  border: 1px solid #a7b8ab;
  background: transparent;
  color: #24664b;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.atlas-toc-controls button:hover {
  background: #e4ebe5;
}

.atlas-group {
  margin: 0 0 2.3rem;
  scroll-margin-top: 1.5rem;
}

.atlas-group-heading {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .65rem .8rem;
  border-left: 4px solid #24664b;
  background: #e4ebe5;
}

.atlas-group-heading span {
  color: #24664b;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.atlas-group-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.atlas-group > ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atlas-chapter {
  border-bottom: 1px solid #cdd5ce;
  scroll-margin-top: 1rem;
}

.selected-atlas-chapters .atlas-chapter summary {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto 1.2rem;
  align-items: center;
  gap: .85rem;
  padding: 1rem .5rem;
  cursor: pointer;
  list-style: none;
  color: #202b29;
  font-size: 1rem;
  font-weight: 700;
}

.selected-atlas-chapters .atlas-chapter summary::-webkit-details-marker {
  display: none;
}

.selected-atlas-chapters .atlas-chapter summary:hover,
.selected-atlas-chapters .atlas-chapter[open] summary {
  color: #24664b;
  background: #ecf1eb;
}

.atlas-chapter-number {
  color: #9a602b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.atlas-chapter-count {
  color: #52615b;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}

.atlas-chapter-content {
  padding: .6rem 1.2rem 1.3rem 3.7rem;
  background: #fbfbf8;
}

.atlas-chapter-content > ol,
.atlas-toc-subsections {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atlas-toc-section {
  padding: .5rem 0;
  border-bottom: 1px solid #e0e6df;
}

.atlas-toc-line,
.atlas-toc-subsections li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) 2.8rem;
  gap: .5rem;
  align-items: baseline;
  line-height: 1.45;
}

.atlas-toc-line {
  font-weight: 650;
}

.atlas-toc-subsections {
  margin: .3rem 0 0 1.2rem;
  color: #52615b;
  font-size: .88rem;
}

.atlas-toc-subsections li {
  padding: .2rem 0;
}

.atlas-toc-number {
  color: #24664b;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.atlas-toc-page {
  color: #52615b;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.atlas-chapter-extra {
  margin: .85rem 0 0;
  font-size: .9rem;
  font-weight: 650;
}

.atlas-toc-source {
  margin: .6rem 0 0;
  color: #52615b;
  font-size: .88rem;
}

.atlas-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 3rem);
}

.atlas-resources-grid > div {
  padding-top: 1rem;
  border-top: 2px solid #24664b;
}

.atlas-resources-grid p {
  color: #52615b;
}

.atlas-resources-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atlas-resources-grid li {
  margin: .55rem 0;
}

.atlas-institutions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid #cdd5ce;
}

.atlas-institutions h3 {
  flex-basis: 100%;
}

.atlas-corrections ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.atlas-corrections li {
  display: grid;
  grid-template-columns: minmax(145px, 25%) minmax(0, 1fr);
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #cdd5ce;
}

.atlas-corrections li span,
.atlas-corrections > p {
  color: #52615b;
}

.atlas-author {
  display: grid;
  grid-template-columns: minmax(180px, 265px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.atlas-author img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
}

.atlas-author p:not(.selected-atlas-label) {
  max-width: 64ch;
  color: #394a43;
  line-height: 1.7;
}

.atlas-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin-top: 1.5rem;
  font-weight: 650;
}

.atlas-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  background: #e4ebe5;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.atlas-contact p:not(.selected-atlas-label) {
  max-width: 46ch;
  color: #394a43;
}

.atlas-contact-note {
  font-size: .88rem;
}

.atlas-contact form {
  display: grid;
  gap: .4rem;
}

.atlas-contact label {
  font-size: .88rem;
  font-weight: 700;
}

.atlas-contact input,
.atlas-contact textarea {
  width: 100%;
  min-height: 44px;
  margin-bottom: .65rem;
  padding: .55rem .65rem;
  border: 1px solid #90a99a;
  border-radius: 0;
  background: #fff;
  color: #202b29;
  font: inherit;
}

.atlas-contact textarea {
  resize: vertical;
}

.atlas-contact button {
  justify-self: start;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 0;
  background: #24664b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.atlas-contact form p {
  min-height: 1.5rem;
  margin: .4rem 0 0;
  font-size: .88rem;
}

.selected-atlas-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
}

.selected-atlas-footer > div {
  display: grid;
  gap: .35rem;
}

.selected-atlas-footer > div:last-of-type {
  justify-items: end;
}

.selected-atlas-footer small {
  flex-basis: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  .atlas-overview-grid,
  .atlas-video-section,
  .atlas-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-highlights {
    max-width: 630px;
  }

  .atlas-video-frame {
    max-width: 750px;
  }
}

@media (max-width: 800px) {
  .selected-atlas-rail {
    display: block;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: .5rem 1rem;
    border-bottom: 1px solid #cdd5ce;
  }

  .atlas-js .atlas-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: .4rem .5rem;
    border: 0;
    background: transparent;
    color: #202b29;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .atlas-menu-toggle:focus-visible {
    outline: 3px solid #b77a3d;
    outline-offset: 2px;
  }

  .atlas-menu-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
  }

  .selected-atlas-rail nav {
    position: static;
    display: grid;
    gap: 0;
  }

  .atlas-js .selected-atlas-rail nav {
    display: none;
  }

  .atlas-js .selected-atlas-rail.is-open nav {
    display: grid;
  }

  .selected-atlas-rail a {
    padding: .7rem .5rem;
    border-left: 0;
    border-bottom: 1px solid #cdd5ce;
  }

  .selected-atlas-rail a:last-child {
    border-bottom: 0;
  }

  .selected-atlas-main > section {
    scroll-margin-top: 5rem;
  }
}

@media (max-width: 700px) {
  .selected-atlas-header {
    align-items: flex-start;
  }

  .selected-atlas-header nav {
    justify-content: flex-start;
  }

  .atlas-resources-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-author {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-author img {
    width: min(220px, 100%);
  }
}

@media (max-width: 580px) {
  .selected-atlas-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
  }

  .selected-atlas-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    margin: 0;
    flex-wrap: nowrap;
    gap: .6rem;
    white-space: nowrap;
  }

  .selected-atlas-header-app {
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
  }

  .selected-atlas-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-atlas-cover {
    justify-self: start;
    width: 180px;
  }

  .selected-atlas-chapters .atlas-chapter summary {
    grid-template-columns: 2rem minmax(0, 1fr) 1rem;
    gap: .55rem;
  }

  .atlas-chapter-count {
    display: none;
  }

  .atlas-chapter-content {
    padding: .5rem .5rem 1rem 1rem;
  }

  .atlas-toc-line,
  .atlas-toc-subsections li {
    grid-template-columns: 4.5rem minmax(0, 1fr) 2rem;
    gap: .35rem;
    font-size: .88rem;
  }

  .atlas-toc-subsections {
    margin-left: .65rem;
  }

  .atlas-corrections li {
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
  }

  .selected-atlas-footer > div:last-of-type {
    justify-items: start;
  }
}
}
