/* ==========================================================================
   Photon Academy guidebook template 2026 (the "Mix" reading template).
   The free worked-solutions pages: /guidebook/<book>/ (index) and /guidebook/<book>/<chapter>/.
   A calm reading page: masthead, sticky "On this page" rail, question cards, solution panels.
   Tokens, buttons (.s26-btn), text links (.s26-tl) and the whole shell live in site-2026.css; this file
   only styles <main class="gs"> (body.gb). It replaces css/books.css and css/guidebook-solutions.css on
   these pages (tools/site2026_guidebook.py swaps the links). The functional maths rules (line + marks
   columns, scroll boxes, KaTeX anchoring) are carried over from guidebook-solutions.css unchanged; only
   their colours and type are new. js/guidebook-solutions.js still renders the TeX and opens solutions.
   ========================================================================== */

[hidden] {
  display: none !important;
}
body.gb {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.62 var(--fu);
  font-kerning: normal;
}
@media (max-width: 599px) {
  body.gb {
    font-size: 16.5px;
  }
}
/* Shared scroll offsets: sticky header, plus the phone chip row (see the 1023px block) */
body.gb {
  --gb-sticky: 0px;
}
.gs {
  display: block;
  background: #fff;
  color: var(--ink);
}
.gs :where(h1, h2, h3, h4, p, ul, ol, figure) {
  margin: 0;
}
.gs :where(p) {
  font: inherit;
  color: inherit;
  margin: 0 0 1em;
}
.gs :where(ul, ol) {
  list-style: none;
  padding: 0;
}
.gs :where(a) {
  color: inherit;
}
.gs :where(img, svg) {
  max-width: 100%;
}
.gs :focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.gs b,
.gs strong {
  font-weight: 600;
}
.num,
.gs-ch__n,
.gs-jump li span,
.bk-facts li {
  font-variant-numeric: lining-nums tabular-nums;
}

/* container (was .bk in books.css) */
.bk {
  width: 100%;
  max-width: calc(var(--s26-max) + var(--s26-gut) * 2);
  margin-inline: auto;
  padding-inline: var(--s26-gut);
}

/* ---------- Masthead ---------- */
.bk-hero {
  background: #fff;
  padding: clamp(20px, 2.6vw, 36px) 0 clamp(26px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
}
.bk-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0 0 clamp(16px, 2.2vw, 26px);
  font: 500 13.5px/1.5 var(--fu);
  color: var(--ink2);
}
.bk-crumbs a {
  color: var(--ink2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.bk-crumbs a:hover {
  color: var(--ink);
  text-decoration-color: var(--gold);
}
.bk-crumbs span[aria-hidden] {
  color: #8f9bb0;
}
.bk-crumbs [aria-current] {
  color: var(--ink);
}
.bk-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font: 600 12px/1.2 var(--fu);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2);
}
.bk-eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.bk-hero h1 {
  margin: 10px 0 clamp(16px, 2vw, 24px);
  max-width: 19em;
  font-family: var(--fd);
  font-weight: 380;
  font-optical-sizing: auto;
  font-size: clamp(32px, 3.9vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.bk-hero h1 em,
.gs-hero__sub {
  font-style: italic;
  font-weight: 360;
  color: var(--goldt);
}
.gb-nb {
  white-space: nowrap;
}
.gs-hero--hub h1 em {
  display: block;
  margin-top: 0.04em;
}
.gs-hero__sub {
  display: block;
  margin-top: 0.16em;
  font-size: 0.62em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.bk-lead {
  max-width: 38em;
  margin: 0 0 clamp(18px, 2vw, 26px) !important;
  font-size: clamp(17px, 1.5vw, 20px) !important;
  line-height: 1.55 !important;
  color: var(--ink2) !important;
}
.bk-lead b {
  color: var(--ink);
  font-weight: 600;
}
.bk-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 clamp(20px, 2.4vw, 28px) !important;
  border-top: 1px solid var(--line);
  max-width: 52em;
}
.bk-facts li {
  padding: 12px 18px 0 0;
  font: 500 14.5px/1.35 var(--fu);
  color: var(--ink2);
}
.bk-facts li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.bk-facts li:first-child {
  color: var(--ink);
}
@media (max-width: 599px) {
  .bk-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bk-facts li,
  .bk-facts li + li {
    padding: 12px 10px 12px 0;
    border-left: 0;
  }
  .bk-facts li:nth-child(2n) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .bk-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
.bk-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 26px;
}
/* buttons: ink solid for the page action, a text link for the second one. Gold stays with "Book a free trial". */
.bk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--s26-r);
  background: var(--ink);
  color: #fff;
  font: 600 15.5px/1.1 var(--fu);
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.bk-cta:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.bk-cta.alt {
  min-height: 0;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-thickness 0.15s;
}
.bk-cta.alt::after {
  content: "\2192";
  margin-left: 0.2em;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}
.bk-cta.alt:hover {
  background: none;
  color: var(--ink);
  text-decoration-thickness: 4px;
}
.bk-cta.alt:hover::after {
  transform: translateX(3px);
}

/* Index pages: the book cover(s) sit to the right of the masthead text */
.gs-hero--hub > .bk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.gs-hero--hub > .bk > * {
  grid-column: 1;
}
.gb-cover {
  grid-column: 2 !important;
  grid-row: 1 / span 8;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  margin: 0 !important;
}
.gb-cover a {
  display: block;
}
.gb-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(13, 31, 60, 0.22), 0 2px 6px rgba(13, 31, 60, 0.18);
}
.gb-cover--2 a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-bottom: 12%;
}
.gb-cover--2 img:first-child {
  position: relative;
  z-index: 2;
}
.gb-cover--2 img:last-child {
  margin: 12% 0 -12% -26%;
}
.gb-cover--2 img {
  box-shadow: 0 14px 32px rgba(13, 31, 60, 0.24), 0 2px 5px rgba(13, 31, 60, 0.16);
}
@media (max-width: 899px) {
  .gs-hero--hub > .bk {
    display: block;
  }
  .gb-cover {
    max-width: 190px;
    margin: 0 0 clamp(20px, 3vw, 26px) !important;
    justify-self: auto;
  }
  .gb-cover--2 {
    max-width: 270px;
  }
}

/* ---------- Layout: content + sticky rail ---------- */
.gs-wrap {
  background: #fff;
  padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 96px);
}
.gs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.gs-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.gs-side {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--s26-hdr) + 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - var(--s26-hdr) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.gs-jump__h,
.gs-book__k,
.gs-ans__h,
.gs-pn small {
  margin: 0 0 12px !important;
  font: 600 12px/1.3 var(--fu) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2) !important;
}
.gs-jump ol {
  border-left: 1px solid var(--line);
}
.gs-jump li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-left: -1px;
  padding: 0 0 0 16px;
  border-left: 2px solid transparent;
}
.gs-jump li.is-on {
  border-left-color: var(--gold);
}
.gs-jump a {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 0;
  font: 500 15.5px/1.35 var(--fu);
  color: var(--ink2);
  text-decoration: none;
}
.gs-jump a:hover,
.gs-jump li.is-on a {
  color: var(--ink);
}
.gs-jump li.is-on a {
  font-weight: 600;
}
.gs-jump li span {
  flex: none;
  font: 500 13px/1 var(--fu);
  color: var(--goldt);
}
.gs-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--s26-r);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.1 var(--fu);
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s;
}
.gs-all:hover,
.gs-all[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.gs-legend ul {
  border-top: 1px solid var(--line);
}
.gs-legend li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font: 400 14px/1.4 var(--fu);
  color: var(--ink2);
}
.gs-legend li > :first-child {
  flex: none;
  min-width: 2.6em;
  text-align: center;
}

@media (max-width: 1023px) {
  body.gb {
    --gb-sticky: 52px;
  }
  .gs-layout {
    display: block;
  }
  /* the rail becomes: sticky chip row, then the show-all button and the key, then the page */
  .gs-side {
    display: contents;
  }
  .gs-jump {
    position: sticky;
    top: var(--s26-hdr);
    z-index: 30;
    margin: 0 calc(var(--s26-gut) * -1) 0;
    padding: 4px var(--s26-gut);
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .gs-jump__h {
    display: none;
  }
  .gs-jump ol {
    display: flex;
    gap: 8px;
    border-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gs-jump ol::-webkit-scrollbar {
    display: none;
  }
  .gs-jump li {
    flex: none;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--s26-r);
    align-items: center;
    min-height: 44px;
  }
  .gs-jump li.is-on {
    border-color: var(--ink);
    background: var(--ink);
  }
  .gs-jump li.is-on a,
  .gs-jump li.is-on span {
    color: #fff;
  }
  .gs-jump a {
    padding: 11px 0;
    font-size: 14.5px;
    white-space: nowrap;
  }
  .gs-all {
    width: 100%;
    margin: 20px 0 0;
  }
  .gs-legend {
    margin: 18px 0 28px;
  }
  .gs-legend ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    border-top: 0;
    padding-top: 2px;
  }
  .gs-legend li {
    padding: 0;
    border: 0;
    font-size: 13.5px;
  }
  .gs-legend li > :first-child {
    min-width: 0;
  }
  .gs-wrap {
    padding-top: 0;
  }
  .gs-main {
    padding-top: 28px;
  }
}

/* ---------- Sections and questions ---------- */
/* html already has scroll-padding-top for the sticky header (site-2026.css); only the phone chip row adds to it */
.gs-sec {
  margin: 0 0 clamp(40px, 5vw, 72px);
  scroll-margin-top: var(--gb-sticky);
}
.gs-sec + .gs-sec {
  padding-top: clamp(26px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}
.gs-sec > h2 {
  margin: 0 0 8px;
  font-family: var(--fd);
  font-weight: 380;
  font-optical-sizing: auto;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.gs-sec__intro {
  max-width: 44em;
  margin: 0 0 22px !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--ink2) !important;
}
.gs-sec__intro a,
.gs-main p a,
.bk-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.gs-sec__intro a:hover,
.gs-main p a:hover,
.bk-prose a:hover {
  text-decoration-thickness: 3px;
}
.gs-idea {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 34px 0 14px;
  font-family: var(--fd);
  font-weight: 420;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gs-idea span {
  flex: none;
  font: 600 13px/1 var(--fu);
  letter-spacing: 0.04em;
  color: var(--goldt);
}
.gs-q {
  position: relative;
  margin: 0 0 20px;
  padding: 20px clamp(16px, 2.4vw, 28px) 10px;
  border: 1px solid var(--line);
  border-radius: var(--s26-r);
  background: #fff;
  scroll-margin-top: var(--gb-sticky);
}
.gs-q:target {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--gold);
}
@media (max-width: 599px) {
  .gs-q {
    margin: 0 0 14px;
    padding: 16px 14px 6px;
  }
}
.gs-q__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gs-q__head h3 {
  font-family: var(--fd);
  font-weight: 420;
  font-optical-sizing: auto;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gs-q__head h3 a {
  color: inherit;
  text-decoration: none;
}
.gs-q__head h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.gs-q__kind {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--s26-r);
  font: 600 11.5px/1.3 var(--fu);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2);
}
.gs-q__marks {
  margin-left: auto;
  font: 600 14px/1.3 var(--fu);
  color: var(--goldt);
  font-variant-numeric: lining-nums tabular-nums;
}

/* one line of a question or solution: content + marks column (functional rules unchanged) */
.ln {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}
.lc {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 0;
}
.lm {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 40%;
  padding-top: 3px;
}
.ln.note {
  font-size: 15px;
  color: var(--ink2);
}
.ln.note .lc {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.pl {
  margin-right: 2px;
  font-weight: 600;
  color: var(--ink);
}
.nt {
  font-weight: 600;
  color: var(--navy);
}
.lc strong {
  font-weight: 600;
}
.lc code,
.gs-keys code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
/* marks: gold is for marks (M1 A1 R1 B1 AG and the [3] totals) */
.mk,
.mt {
  display: inline-block;
  font: 600 12px/1.5 var(--fu);
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: baseline;
  font-variant-numeric: lining-nums tabular-nums;
}
.mk {
  padding: 0 6px;
  border: 1px solid rgba(138, 90, 0, 0.38);
  border-radius: var(--s26-r);
  background: #fffaf0;
  color: var(--goldt);
}
.mk-ag {
  border-color: var(--goldt);
  background: var(--goldt);
  color: #fff;
}
.mt {
  font-size: 13.5px;
  color: var(--goldt);
}
.lc .mk,
.lc .mt {
  margin: 0 2px;
}
@media (max-width: 599px) {
  .ln {
    gap: 8px;
    font-size: 16px;
  }
  .lm {
    max-width: 46%;
  }
}

/* maths: display maths and tables scroll inside their own box on narrow screens */
.m {
  color: inherit;
}
.md {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 4px 0;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}
.md .katex-display {
  margin: 0.3em 0;
}
.lc .katex {
  font-size: 1.06em;
}
.ctr {
  text-align: center;
}
.ctr .ln {
  justify-content: center;
}
.tw {
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.dt {
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 15.5px;
  font-variant-numeric: lining-nums tabular-nums;
}
.dt th,
.dt td {
  padding: 7px 14px;
  border: 1px solid #c9d3e0;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 400;
}
.dt th {
  background: var(--chalk);
  font-weight: 600;
  text-align: left;
}
.gs-fig {
  display: block;
  margin: 6px 0;
}
.ctr .gs-fig {
  margin-inline: auto;
}
figure {
  max-width: 100%;
}
/* KaTeX's hidden MathML copy is position:absolute: anchor it inside each scroll box, or it widens the page */
.lc,
.md,
.tw,
.ans1,
.ansl li,
.gs-q {
  position: relative;
}

/* solution disclosure */
.sol {
  margin: 8px 0 14px;
}
.sol summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--s26-r);
  background: #fff;
  color: var(--ink);
  font: 600 15px/1.1 var(--fu);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.18s,
    color 0.18s;
}
.sol summary::-webkit-details-marker {
  display: none;
}
.sol summary::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.sol[open] summary::before {
  transform: rotate(45deg);
}
.sol summary:hover,
.sol[open] summary {
  background: var(--ink);
  color: #fff;
}
.sol__hide {
  display: none;
}
.sol[open] .sol__show {
  display: none;
}
.sol[open] .sol__hide {
  display: inline;
}
.sol__body {
  margin: 14px 0 4px;
  padding: 16px 18px 8px;
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--s26-r) var(--s26-r) 0;
  background: var(--chalk);
}
@media (max-width: 599px) {
  .sol__body {
    padding: 14px 12px 6px;
  }
}
.gs-ans {
  margin: 14px 0 8px;
  padding: 12px 16px 6px;
  border: 1px solid var(--ink);
  border-radius: var(--s26-r);
  background: #fff;
}
.gs-ans__h {
  margin: 0 0 6px !important;
}
.gs-ans .ln {
  margin-bottom: 4px;
}
.gs-ans .ln:last-child,
.ansl li:last-child {
  margin-bottom: 0;
}
.ans1,
.ansl li {
  margin: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
.ansl {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ansl li {
  padding: 1px 0;
}

/* TI-84 keystroke table */
.gs-keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: #fff;
}
.gs-keys th,
.gs-keys td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.gs-keys thead th {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--chalk);
  font: 600 12px/1.3 var(--fu);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
}
.gs-keys tbody th {
  width: 30%;
  font-weight: 600;
}
.gs-keys tbody tr:last-child th,
.gs-keys tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}
@media (max-width: 599px) {
  .gs-keys th,
  .gs-keys td {
    padding: 9px 8px;
    font-size: 14.5px;
  }
}

/* previous / next, book panel, legal */
.gs-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 clamp(28px, 3.6vw, 44px);
}
.gs-pn a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 48px;
  border: 1px solid var(--line);
  border-radius: var(--s26-r);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s;
}
.gs-pn a:hover {
  border-color: var(--ink);
}
.gs-pn small {
  margin: 0 !important;
}
.gs-pn span {
  font-family: var(--fd);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.gs-pn a::before,
.gs-pn a::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--goldt);
}
.gs-pn__prev::before {
  content: "\2190";
  left: 18px;
}
.gs-pn__next::after {
  content: "\2192";
  right: 18px;
}
.gs-pn__next {
  text-align: right;
  align-items: flex-end;
}
@media (max-width: 599px) {
  .gs-pn {
    grid-template-columns: 1fr;
  }
  .gs-pn__next {
    text-align: left;
    align-items: flex-start;
  }
}
.gs-book {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 26px;
  align-items: center;
  margin: 0 0 clamp(22px, 3vw, 32px);
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--s26-r);
  background: var(--chalk);
}
.gs-book:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.gs-book > img {
  display: block;
  width: 78px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(13, 31, 60, 0.22), 0 1px 3px rgba(13, 31, 60, 0.18);
}
.gs-book__k {
  margin-bottom: 8px !important;
}
.gs-book__t {
  margin: 0 0 6px !important;
  font-family: var(--fd);
  font-weight: 420;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gs-book p:not(.gs-book__k):not(.gs-book__t) {
  margin: 0;
  max-width: 44em;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink2);
}
@media (max-width: 599px) {
  .gs-book {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 18px 16px;
    gap: 14px 16px;
    align-items: start;
  }
  .gs-book:not(:has(img)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .gs-book > img {
    width: 64px;
  }
  .gs-book .bk-cta {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.gs-legal {
  margin: 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--ink2) !important;
}

/* ---------- Index pages: choose a chapter, how to use ---------- */
.bk-sec {
  padding: clamp(44px, 6vw, 88px) 0;
  background: #fff;
}
.bk-sec--off {
  background: var(--chalk);
}
.bk-sec-head {
  max-width: 46em;
  margin: 0 0 clamp(26px, 3.4vw, 40px);
}
.bk-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 600 12px/1.2 var(--fu);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2);
}
.bk-kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.bk-sec-head p {
  margin: 0 !important;
  font-size: clamp(17px, 1.4vw, 19px) !important;
  line-height: 1.55 !important;
  color: var(--ink2) !important;
}
.bk-prose > * {
  max-width: 44em;
}
.bk-prose h2 {
  margin: 0 0 18px;
  font-family: var(--fd);
  font-weight: 380;
  font-optical-sizing: auto;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.bk-prose p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink);
}
.bk-prose .gs-legal {
  margin-top: 28px !important;
}
.gs-vols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 52px) clamp(32px, 6vw, 96px);
}
@media (max-width: 899px) {
  .gs-vols {
    grid-template-columns: minmax(0, 1fr);
  }
}
.gs-vol {
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.gs-vol h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 2px;
  font-family: var(--fd);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.gs-vol h2 small {
  font: 500 14px/1.2 var(--fu);
  letter-spacing: 0;
  color: var(--goldt);
}
.gs-vol__s {
  margin: 0 0 12px !important;
  font: 600 12px/1.3 var(--fu) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2) !important;
}
.gs-chs {
  margin: 0;
}
.gs-chs li {
  border-top: 1px solid #cbd4e0;
}
.gs-ch {
  display: grid;
  grid-template-columns: minmax(40px, auto) minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: baseline;
  min-height: 56px;
  padding: 13px 2px;
  color: var(--ink);
  text-decoration: none;
}
.gs-ch::after {
  content: "\2192";
  color: var(--goldt);
  font-weight: 600;
  transition: transform 0.2s;
}
.gs-ch:hover::after {
  transform: translateX(3px);
}
.gs-ch__n {
  min-width: 2ch;
  font-family: var(--fd);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--goldt);
  text-align: right;
}
.gs-ch__t {
  display: flex;
  flex-direction: column;
  font-family: var(--fd);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.gs-ch__t small {
  margin-top: 3px;
  font: 400 14px/1.4 var(--fu);
  letter-spacing: 0;
  color: var(--ink2);
}
.gs-ch:hover .gs-ch__t {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.gs-ch:hover .gs-ch__t small {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .gs *,
  .gs *::before,
  .gs *::after {
    transition: none !important;
  }
}
@media print {
  .gs-side,
  .gs-all,
  .bk-ctas {
    display: none !important;
  }
  .gs-layout {
    display: block;
  }
}
