/* Australia42, The Book */

.page-book main { position: relative; z-index: 1; }
.book-view { max-width: 1180px; margin: 0 auto; padding: 172px 32px 60px; outline: none; }
.book-view.reader { max-width: 1240px; }

/* ---------------- volume bar ---------------- */
.bookbar {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
  view-transition-name: bookbar;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.bb-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(8, 12, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 32px rgba(2, 4, 9, 0.45);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  max-width: calc(100vw - 32px);
}
.bb-track { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bb-track::-webkit-scrollbar { display: none; }
.bb-item {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #7d8ba2;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s;
}
.bb-item:hover { color: #c3ccda; }
.bb-item.on { color: var(--star); }
.bb-label { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.15; }
.bb-label small { font-size: 10.5px; font-weight: 500; color: #5d6b82; letter-spacing: 0.01em; }
.bb-item.on .bb-label small { color: var(--aurora); }

.bb-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 22px rgba(127, 212, 201, 0.1);
}
.bb-sep { flex: none; width: 1px; height: 22px; background: rgba(255, 255, 255, 0.08); margin: 0 4px; }
.bb-find {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 500 13px 'Instrument Sans', sans-serif;
  color: #8a97ad;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 9px 12px 9px 13px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.bb-find:hover { color: var(--star); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 900px) {
  .bookbar { top: 76px; padding: 0 16px; }
  .bb-inner { width: 100%; }
  .bb-track { flex: 1; }
  .bb-find span, .bb-find kbd { display: none; }
  .bb-find { padding: 9px 11px; }
  .book-view { padding-top: 150px; padding-left: 20px; padding-right: 20px; }
}

/* quiet chrome while reading */
body.chrome-hidden .nav { transform: translateX(-50%) translateY(-150%); opacity: 0; }
body.chrome-hidden .bookbar { transform: translateY(-190%); opacity: 0; }
@media (max-width: 900px) { body.chrome-hidden .nav { transform: translateY(-150%); } }
.nav { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s; }

/* reading progress */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--aurora), var(--gold));
  box-shadow: 0 0 12px rgba(127, 212, 201, 0.5);
  width: auto;
}

/* the sky steps back while you read */
body.reading #stars { opacity: 0.45; transition: opacity 1.2s; }
body.reading .limb { opacity: 0.25; transition: opacity 1.2s; }

/* ---------------- shared bits ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.section-cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(147, 161, 184, 0.14);
}
.section-cap span:first-child { color: var(--aurora); }
.continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 11px 18px;
  font-size: 14px;
  color: #b8c3d4;
  text-decoration: none;
  background: rgba(227, 201, 136, 0.07);
  border: 1px solid rgba(227, 201, 136, 0.28);
  border-radius: 999px;
  transition: background 0.25s, transform 0.3s;
}
.continue strong { font-weight: 500; color: var(--gold); }
.continue:hover { background: rgba(227, 201, 136, 0.13); transform: translateY(-1px); }

/* ---------------- title page ---------------- */
.titlepage { text-align: center; padding: 70px 0 90px; }
.tp-kicker { font-size: 14px; font-weight: 500; color: var(--aurora); animation: rise 0.9s both; }
.tp-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(72px, 13vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 18px 0 26px;
  animation: rise 1.1s 0.08s both;
  text-shadow: 0 0 80px rgba(127, 212, 201, 0.12);
}
.tp-title em { font-style: italic; color: var(--gold); font-size: 0.42em; position: relative; top: -1.05em; margin-left: 4px; }
.tp-sub { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(22px, 2.6vw, 30px); color: #c9d2e0; animation: rise 1.1s 0.18s both; }
.tp-author { margin-top: 14px; font-size: 15px; color: var(--muted); animation: rise 1.1s 0.26s both; }
.titlepage .continue { animation: rise 1.1s 0.36s both; }

.vision { max-width: 760px; margin: 0 auto 110px; }
.vision p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  line-height: 1.72;
  color: #b9c4d4;
  margin-bottom: 22px;
  animation: rise 1s calc(0.4s + var(--i) * 0.06s) both;
}
.vision p:first-child::first-letter {
  font-family: 'Instrument Serif', Georgia, serif;
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--star);
}
.vision-statement {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: clamp(30px, 3.4vw, 44px) !important;
  line-height: 1.22 !important;
  color: var(--star) !important;
  text-align: center;
  margin: 56px -60px 0 !important;
  padding: 44px 20px 0;
  border-top: 1px solid rgba(227, 201, 136, 0.25);
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(227, 201, 136, 0.12);
}
@media (max-width: 900px) { .vision-statement { margin: 44px 0 0 !important; } .vision p { font-size: 19px; } }

.bookmap { margin-bottom: 100px; }
.bookmap-grid { display: grid; grid-template-columns: 0.8fr 1fr 1fr 1fr 0.8fr; gap: 14px; margin-top: 22px; }
@media (max-width: 1100px) { .bookmap-grid { grid-template-columns: 1fr 1fr; } .bm-card:first-child { grid-column: span 2; } }
@media (max-width: 600px) { .bookmap-grid { grid-template-columns: 1fr; } .bm-card:first-child { grid-column: auto; } }
.bm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 24px 22px 20px;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%) rgba(2, 4, 8, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 50px rgba(2, 4, 9, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.45s;
  animation: rise 0.9s calc(0.1s + var(--i) * 0.07s) both;
}
.bm-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 34px 70px rgba(2, 4, 9, 0.6), 0 0 50px rgba(127, 212, 201, 0.08); }
.bm-no { font-size: 12.5px; font-weight: 600; color: var(--aurora); }
.bm-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; line-height: 1.05; color: var(--star); }
.bm-desc { font-size: 14px; line-height: 1.55; color: #8e9bb0; flex: 1; }
.bm-meta { font-size: 12.5px; color: var(--dim); }


.front-list { max-width: 760px; margin: 0 auto 40px; }
.begin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  color: #04070d;
  text-decoration: none;
  background: rgba(238, 242, 249, 0.94);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(238, 242, 249, 0.14);
  transition: transform 0.3s, box-shadow 0.3s;
}
.begin:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(238, 242, 249, 0.22); }

/* ---------------- contents lists ---------------- */
.toc-list ol { list-style: none; }
.toc-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 4px;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 161, 184, 0.07);
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
  border-radius: 10px;
}
.toc-row:hover { padding-left: 14px; background: rgba(255, 255, 255, 0.025); }
.tr-no { flex: none; width: 26px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--hue, var(--dim)); opacity: 0.8; }
.tr-title { font-family: 'Newsreader', Georgia, serif; font-size: 19.5px; line-height: 1.35; color: #c9d2e0; transition: color 0.25s; }
.toc-row:hover .tr-title { color: var(--star); }

.vol-head { max-width: 780px; padding: 40px 0 50px; animation: rise 0.9s both; }
.vh-kicker { font-size: 14px; font-weight: 500; color: var(--aurora); }
.vh-title { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(52px, 7vw, 92px); line-height: 0.98; margin: 12px 0 22px; }
.vh-lede p { font-family: 'Newsreader', Georgia, serif; font-size: 21px; line-height: 1.65; color: #b9c4d4; margin-bottom: 14px; }
.vh-lede h3 { display: none; }
.vh-meta { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.vh-more { margin-top: 18px; border-top: 1px solid rgba(147, 161, 184, 0.12); border-bottom: 1px solid rgba(147, 161, 184, 0.12); }
.vh-more summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--star);
}
.vh-more summary::-webkit-details-marker { display: none; }
.vh-more summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--dim); transition: transform 0.3s; }
.vh-more[open] summary::after { transform: rotate(45deg); }
.vh-more summary span { font-size: 13.5px; font-weight: 400; color: var(--dim); }
.vh-more .prose { padding: 4px 2px 26px; }

.vol-part { margin: 0 0 64px; animation: rise 0.9s 0.1s both; }
.vp-head { display: grid; grid-template-columns: 110px 1fr; column-gap: 20px; align-items: baseline; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(147, 161, 184, 0.14); }
.vp-no { grid-row: span 2; font-size: 13px; font-weight: 600; color: var(--hue); }
.vp-head h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.1; }
.vp-head p { grid-column: 2; margin-top: 6px; font-size: 15px; line-height: 1.55; color: #8e9bb0; max-width: 640px; }
@media (max-width: 700px) { .vp-head { grid-template-columns: 1fr; } .vp-no { grid-row: auto; margin-bottom: 4px; } .vp-head p { grid-column: 1; } }
.vol-head.is-ledger + .vol-part .tr-title, .is-ledger ~ .vol-part .tr-title { font-family: 'Instrument Sans', sans-serif; font-size: 17px; }

/* ---------------- policies index ---------------- */
.pol-tools {
  position: sticky;
  top: 150px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 0 -12px 40px;
  background: rgba(4, 7, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.chrome-hidden .pol-tools { top: 16px; }
.pol-tools { transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.pol-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 46px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: border-color 0.25s, background 0.25s;
}
.pol-search:focus-within { border-color: rgba(127, 212, 201, 0.5); background: rgba(255, 255, 255, 0.07); color: var(--aurora); }
.pol-search input { flex: 1; background: none; border: none; outline: none; font: 400 15.5px 'Instrument Sans', sans-serif; color: var(--star); }
.pol-search input::placeholder { color: #5d6b82; }
.pol-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 13px 'Instrument Sans', sans-serif;
  color: #8a97ad;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip span { color: #5d6b82; margin-left: 3px; }
.chip:hover { color: var(--star); }
.chip.on { color: var(--star); border-color: color-mix(in srgb, var(--hue, #eef2f9) 55%, transparent); background: color-mix(in srgb, var(--hue, #eef2f9) 10%, transparent); }
@media (max-width: 900px) { .pol-tools { top: 138px; } .pol-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; } .chip { flex: none; } }
.pol-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 16px; }

.pol-part { margin-bottom: 70px; }
.pol-part .vp-head { border-bottom: none; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 10px; }
.pol-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 156px;
  padding: 22px;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 55%) rgba(2, 4, 8, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 18px 40px rgba(2, 4, 9, 0.4);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.45s;
}
.pol-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hue) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.pol-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--hue) 40%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px rgba(2, 4, 9, 0.55); }
.pol-card:hover::after { opacity: 1; }
.pol-card[hidden] { display: none; }
.pol-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--hue);
  background: color-mix(in srgb, var(--hue) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--hue) 22%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--hue) 10%, transparent);
}
.pol-icon svg { width: 24px; height: 24px; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--hue) 55%, transparent)); }
.pol-icon svg > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pol-card:hover .pol-icon svg > * { animation: draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) both; }
.pol-card:hover .pol-icon svg > *:nth-child(2) { animation-delay: 0.08s; }
.pol-card:hover .pol-icon svg > *:nth-child(3) { animation-delay: 0.16s; }
.pol-card:hover .pol-icon svg > *:nth-child(n+4) { animation-delay: 0.24s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pol-title { align-self: end; font-family: 'Instrument Serif', Georgia, serif; font-size: 25px; line-height: 1.1; color: var(--star); text-wrap: balance; }


/* ---------------- reader ---------------- */
.rd { animation: rise 0.8s both; }
.rd-head { max-width: 1040px; margin: 0 auto; padding: 30px 0 44px; text-align: center; }
.rd-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 24px;
  color: var(--hue);
  background: color-mix(in srgb, var(--hue) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hue) 28%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--hue) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.rd-icon svg { width: 38px; height: 38px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hue) 60%, transparent)); }
.rd-icon svg > * { stroke-dasharray: 1; animation: draw 1.4s 0.15s cubic-bezier(0.65, 0, 0.35, 1) both; }
.rd-kicker { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; font-size: 13.5px; font-weight: 500; color: var(--aurora); }
.rd-kicker span + span { color: var(--hue); }
.rd-kicker span + span::before { content: ''; display: inline-block; width: 18px; height: 1px; margin: 0 12px; vertical-align: middle; background: rgba(147, 161, 184, 0.35); }
.reader--book .rd-kicker span + span, .reader--ledger .rd-kicker span + span { color: var(--muted); }
.rd-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.02;
  margin: 16px 0 18px;
  text-wrap: balance;
}
.rd-strap { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.5; color: #b9c4d4; max-width: 680px; margin: 0 auto; }
.rd-meta { display: flex; justify-content: center; gap: 18px; margin-top: 20px; font-size: 13px; color: var(--dim); }
.rd-meta a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(147, 161, 184, 0.3); }
.rd-meta a:hover { color: var(--star); }

/* each policy carries its part's colour as a trim, and its own icon as a watermark */
.rd { position: relative; }
.reader--policy:not(.reader--outro) .rd::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1080px, 100%);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--hue) 18%, var(--hue) 82%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hue) 45%, transparent);
  opacity: 0.85;
}
.reader--policy .rd-head { padding-top: 44px; }
.rd-watermark {
  position: absolute;
  top: 26px;
  right: max(0px, calc(50% - 560px));
  width: 300px;
  height: 300px;
  color: var(--hue);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.rd-watermark svg { width: 100%; height: 100%; stroke-width: 0.6; }
.rd-head, .glance, .rd-layout { position: relative; z-index: 1; }
@media (max-width: 900px) { .rd-watermark { display: none; } }

.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto 64px;
}
.gl-card {
  position: relative;
  padding: 22px 24px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%) rgba(2, 4, 8, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 44px rgba(2, 4, 9, 0.4);
  animation: rise 0.8s both;
}
.gl-card:nth-child(2) { animation-delay: 0.08s; }
.gl-card:nth-child(3) { animation-delay: 0.16s; }
.gl-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--hue), transparent); opacity: 0.7; }
.gl-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--hue); margin-bottom: 10px; }
.gl-card p { font-family: 'Newsreader', Georgia, serif; font-size: 17px; line-height: 1.6; color: #c9d2e0; }

.rd-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  justify-content: center;
  gap: 64px;
  align-items: start;
}
.rd-layout.no-toc { grid-template-columns: minmax(0, 780px); }
.rd-toc {
  position: sticky;
  top: 170px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 6px;
  transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
body.chrome-hidden .rd-toc { top: 40px; }
.rd-toc::-webkit-scrollbar { display: none; }
.toc-head { display: grid; gap: 6px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(147, 161, 184, 0.14); }
.toc-chapter { font-family: 'Instrument Serif', Georgia, serif; font-size: 23px; line-height: 1.12; color: var(--star); text-wrap: balance; }
.reader--policy .toc-chapter { color: color-mix(in srgb, var(--hue) 55%, var(--star)); }
.toc-cap { font-size: 12px; font-weight: 600; color: var(--dim); }
.toc-sheet .toc-head { padding-bottom: 12px; }
.rd-toc a {
  position: relative;
  font-size: 13.5px;
  line-height: 1.4;
  color: #6f7d94;
  text-decoration: none;
  padding: 6px 0 6px 14px;
  border-left: 1px solid rgba(147, 161, 184, 0.14);
  transition: color 0.25s, border-color 0.25s;
}
.rd-toc a:hover { color: #c3ccda; }
.rd-toc a.on { color: var(--star); border-left-color: var(--hue); }
.rd-toc a.on::before { content: ''; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 10px var(--hue); }
@media (max-width: 1140px) { .rd-layout { grid-template-columns: minmax(0, 780px); } .rd-toc { display: none; } }

/* the prose itself */
.prose { font-family: 'Newsreader', Georgia, serif; }
.prose p, .prose li { font-size: 20px; line-height: 1.75; color: #c3cddc; }
.prose p { margin-bottom: 20px; }
.prose p strong, .prose li strong { color: var(--star); font-weight: 500; }
.vision p strong { color: var(--star); font-weight: 500; }
.prose h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  color: var(--star);
  margin: 56px 0 18px;
  scroll-margin-top: 170px;
  text-wrap: balance;
}
.prose h4 { font-family: 'Instrument Sans', sans-serif; font-size: 17px; font-weight: 600; color: var(--star); margin: 34px 0 12px; }
.prose h5 { font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--muted); margin: 26px 0 10px; }
.prose ul { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--hue, var(--aurora)); }
.prose > h3:first-child { margin-top: 0; }
/* links in the text: one readable blue, before and after a visit (no purple) */
.rd-body a:link, .rd-body a:visited, .prose a:link, .prose a:visited { color: #71b7ff; text-decoration: underline; text-decoration-color: rgba(113, 183, 255, 0.4); text-underline-offset: 3px; }
.rd-body a:hover, .rd-body a:active, .prose a:hover { color: #9ccdff; text-decoration-color: currentColor; }
.rd-body a:focus-visible, .prose a:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; border-radius: 2px; }
.dropcap::first-letter {
  font-family: 'Instrument Serif', Georgia, serif;
  float: left;
  font-size: 4.3em;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--star);
}
@media (max-width: 700px) { .prose p, .prose li { font-size: 18px; } .prose h3 { font-size: 27px; } }

/* tables, the Ledger especially */
.tbl-wrap {
  margin: 30px 0 36px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(2, 4, 8, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tbl-wrap table { width: 100%; border-collapse: collapse; font-family: 'Instrument Sans', sans-serif; font-size: 14px; line-height: 1.5; }
.tbl-wrap th {
  position: sticky;
  top: 0;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--aurora);
  padding: 14px 16px;
  background: rgba(12, 18, 30, 0.96);
  border-bottom: 1px solid rgba(127, 212, 201, 0.25);
}
.tbl-wrap td { padding: 13px 16px; color: #b9c4d4; vertical-align: top; border-bottom: 1px solid rgba(147, 161, 184, 0.08); font-variant-numeric: tabular-nums; }
.tbl-wrap tr:last-child td { border-bottom: none; }
.tbl-wrap tbody tr { transition: background 0.2s; }
.tbl-wrap tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.tbl-wrap td:first-child { color: var(--star); min-width: 220px; }
.reader--ledger .rd-layout { grid-template-columns: 230px minmax(0, 820px); }
.reader--ledger .rd-layout.no-toc { grid-template-columns: minmax(0, 1000px); }
@media (max-width: 1080px) { .reader--ledger .rd-layout { grid-template-columns: minmax(0, 1000px); } }
.reader--ledger .tbl-wrap { max-height: 78vh; }
.tbl-link {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--aurora);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(127, 212, 201, 0.3);
  border-radius: 999px;
  transition: background 0.2s;
}
.tbl-link:hover { background: rgba(127, 212, 201, 0.1); }

/* sources */
.rd-sources { max-width: 700px; margin: 60px auto 0; border-top: 1px solid rgba(147, 161, 184, 0.16); border-bottom: 1px solid rgba(147, 161, 184, 0.16); }
.reader--ledger .rd-sources { max-width: 1000px; }
.rd-sources summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 2px; font-size: 16px; font-weight: 500; color: var(--star); }
.rd-sources summary::-webkit-details-marker { display: none; }
.rd-sources summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--dim); transition: transform 0.3s; }
.rd-sources[open] summary::after { transform: rotate(45deg); }
.rs-count { font-size: 12px; color: var(--dim); padding: 2px 9px; border: 1px solid rgba(147, 161, 184, 0.2); border-radius: 999px; }
.rd-sources ol { margin: 0 0 18px 22px; }
.rd-sources li { font-size: 14px; line-height: 1.6; color: #8e9bb0; margin-bottom: 10px; padding-left: 4px; }
.rd-sources li::marker { color: var(--dim); font-variant-numeric: tabular-nums; }
.rs-room { display: inline-block; margin: 4px 0 22px; font-size: 13.5px; color: var(--aurora); text-decoration: none; }

/* found a hole */
.hole { display: flex; align-items: center; gap: 22px; max-width: 700px; margin: 48px auto 0; }
.hole p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #8e9bb0; }
.hole-btn { flex: none; padding: 12px 24px; font-size: 14.5px; }
@media (max-width: 700px) { .hole { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* next and previous */
.rd-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; margin: 70px auto 0; }
.flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }
.flow em { font-style: normal; font-size: 12.5px; color: var(--dim); }
.flow span { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; line-height: 1.15; color: #d3dbe7; }
.flow-next { text-align: right; align-items: flex-end; }
@media (max-width: 700px) { .rd-flow { grid-template-columns: 1fr; } .flow-next { order: -1; } }

/* mobile contents */
.toc-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 22;
  font: 500 14px 'Instrument Sans', sans-serif;
  color: var(--star);
  padding: 12px 18px;
  background: rgba(10, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(2, 4, 9, 0.5);
}
@media (max-width: 1080px) { .toc-fab:not([hidden]) { display: block; } }
.toc-sheet { position: fixed; inset: 0; z-index: 35; background: rgba(2, 4, 8, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.toc-sheet.open { opacity: 1; pointer-events: auto; }
.ts-inner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 12px;
  background: rgba(10, 15, 25, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  transform: translateY(24px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.toc-sheet.open .ts-inner { transform: none; }
.ts-inner a { font-size: 16px; color: #b9c4d4; text-decoration: none; padding: 11px 8px; border-bottom: 1px solid rgba(147, 161, 184, 0.08); }
.ts-inner a.on { color: var(--star); }

/* ---------------- quick finder ---------------- */
.palette { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 16vh 16px 0; background: rgba(2, 4, 8, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.2s; }
.palette:not(.open) { pointer-events: none; }
.palette.open { opacity: 1; }
.palette-box {
  width: 100%;
  max-width: 620px;
  background: rgba(12, 17, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.palette.open .palette-box { transform: none; }
#palette-input { width: 100%; padding: 22px 24px; background: none; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); outline: none; font: 400 19px 'Instrument Sans', sans-serif; color: var(--star); }
#palette-input::placeholder { color: #5d6b82; }
.palette-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.pr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 16px; border-radius: 14px; text-decoration: none; }
.pr.on, .pr:hover { background: rgba(255, 255, 255, 0.07); }
.pr-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 21px; color: var(--star); }
.pr-where { flex: none; font-size: 12.5px; color: var(--dim); text-align: right; }
.pr-none { padding: 22px 16px; color: var(--muted); }
.pr-cap { padding: 14px 16px 6px; font-size: 12px; font-weight: 600; color: var(--dim); }
.pr-text { display: block; }
.pr-hit { display: grid; gap: 4px; }
.pr-hit-where { font-size: 13px; font-weight: 600; color: var(--aurora); }
.pr-hit-where em { font-style: normal; font-weight: 500; color: var(--muted); }
.pr-hit-where em::before { content: ''; display: inline-block; width: 10px; height: 1px; margin: 0 8px 0 4px; vertical-align: middle; background: rgba(147, 161, 184, 0.4); }
.pr-n { font-weight: 500; color: var(--dim); }
.pr-snip { font-family: 'Newsreader', Georgia, serif; font-size: 16px; line-height: 1.5; color: #c3cddc; }
.pr-snip mark, mark.find-hit { color: #1a1408; background: var(--gold); border-radius: 3px; padding: 0 2px; }
p.find-block, li.find-block, .find-block { border-radius: 6px; box-shadow: 0 0 0 8px rgba(227, 201, 136, 0.14); background: rgba(227, 201, 136, 0.14); transition: background 1s, box-shadow 1s; }
mark.find-hit { box-shadow: 0 0 0 4px rgba(227, 201, 136, 0.35); transition: background 1s; }
.palette-foot { display: flex; justify-content: space-between; padding: 12px 20px; font-size: 12px; color: #5d6b82; border-top: 1px solid rgba(255, 255, 255, 0.06); }
@media (max-width: 600px) { .palette-foot { display: none; } .pr { flex-direction: column; gap: 2px; } .pr-where { text-align: left; } }

/* ---------------- view transitions inside the book ---------------- */
::view-transition-group(bb-glow),
::view-transition-group(pol-icon),
::view-transition-group(pol-title) { animation-duration: 560ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(pol-title), ::view-transition-new(pol-title) { height: 100%; object-fit: contain; }
::view-transition-group(bookbar), ::view-transition-group(site-nav) { animation: none; }
.glance:has(.gl-card:only-child) { max-width: 700px; }
.book-view { padding-top: 200px; }
@media (max-width: 900px) { .book-view { padding-top: 158px; } }

/* ================= the 12 October navigation ================= */

/* book bar: three volumes, then Key Ideas and Contents */
.bb-item { min-height: 44px; border: 1px solid transparent; }
.bb-item:not(.on) { border-color: rgba(255, 255, 255, 0.08); }
.bb-item.on { background: #482569; border-color: rgba(196, 160, 240, 0.5); color: #fff; }
.bb-item.on .bb-label small { color: #e2d2f7; }
.bb-item:focus-visible, .bb-tool:focus-visible, .bb-select select:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.bb-tool {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 15px 'Instrument Sans', sans-serif; color: #b9c4d4; text-decoration: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px;
  padding: 0 16px; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.bb-tool:hover, .bb-tool.on { color: var(--star); background: rgba(255, 255, 255, 0.09); }
.bb-select { display: none; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bb-select select { min-height: 40px; max-width: 46vw; font: 500 14px 'Instrument Sans', sans-serif; color: var(--star); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 0 12px; }
.bb-select option { color: #04070d; }
@media (max-width: 760px) {
  .bb-track { display: none; }
  .bb-select { display: inline-flex; flex: 1; min-width: 0; }
  .bb-select select { width: 100%; max-width: none; }
  .bb-select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bb-sep { display: none; }
  .bb-tool { padding: 0 12px; font-size: 14px; min-height: 40px; }
}

/* the book's front door */
.tp-orient { max-width: 620px; margin: 26px auto 0; font-size: 17px; line-height: 1.6; color: #b9c4d4; animation: rise 1.1s 0.3s both; }
.entry { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; animation: rise 1.1s 0.36s both; }
.entry-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; animation: rise 1.1s 0.42s both; }
.entry-more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(147, 161, 184, 0.35); text-underline-offset: 4px; }
.entry-more a:hover { color: var(--star); }
.titlepage { padding-bottom: 70px; }
.bookmap-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .bookmap-3 { grid-template-columns: 1fr; } .bookmap-3 .bm-card:first-child { grid-column: auto; } }
.bm-sub { font-size: 14px; font-style: italic; color: var(--gold); margin-top: -4px; }
.bm-ends { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.bm-ends a { display: grid; gap: 4px; padding: 16px 20px; min-height: 44px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; text-decoration: none; background: rgba(255, 255, 255, 0.02); transition: background 0.25s, border-color 0.25s; }
.bm-ends a:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.bm-ends strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 22px; color: var(--star); }
.bm-ends span { font-size: 13.5px; color: #8e9bb0; }
@media (max-width: 760px) { .bm-ends { grid-template-columns: 1fr; } }
.vision { scroll-margin-top: 200px; }
#before-you-start, .vol-part, .pol-part { scroll-margin-top: 190px; }
.vh-sub { margin-top: 8px; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 22px; color: var(--gold); }
.vh-start { margin-top: 18px; }

/* contents rows: short label first, the full title under it */
.tr-title { display: grid; gap: 2px; }
.tr-full { font-family: 'Instrument Sans', sans-serif; font-size: 14px; line-height: 1.45; color: #7d8ba2; }
.tr-cap, .rd-caption { font-size: 13.5px; line-height: 1.45; color: #93a1b8; font-style: italic; }
.rd-caption { margin-top: 10px; font-size: 16px; }
.pol-count { flex-basis: 100%; margin: 4px 2px 0; font-size: 13.5px; color: var(--muted); min-height: 1em; }
.pol-count:empty { display: none; }
.pol-reset { font: inherit; color: var(--star); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.chip { min-height: 44px; }
.chip:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }

/* you are here */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; max-width: 1040px; margin: 0 auto 6px; font-size: 14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: #93a1b8; text-decoration: none; }
.crumbs a:hover { color: var(--star); text-decoration: underline; }
.crumbs a::after, .crumbs > span:not(:last-child)::after { content: '›'; margin: 0 10px; color: #4f5d74; }
.crumbs [aria-current] { color: var(--star); font-weight: 500; }
.crumbs a:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.rd .crumbs { justify-content: flex-start; }
.rd-where { max-width: 1040px; margin: 0 auto 18px; font-size: 13px; font-weight: 600; color: var(--aurora); }
.reader--policy .rd-where { color: color-mix(in srgb, var(--hue) 60%, var(--star)); }

/* previous, contents, next: top and bottom */
.rd-flow { grid-template-columns: 1fr auto 1fr; align-items: stretch; max-width: 1040px; }
.rd-flow--top { margin: 0 auto 10px; }
.rd-flow--top .flow { padding: 12px 18px; border-radius: 16px; gap: 2px; }
.rd-flow--top .flow span { font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 500; }
.rd-flow--bottom { margin-top: 56px; }
.flow { min-height: 44px; }
.flow:focus-visible, .flow-contents:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.flow-none { visibility: hidden; border: 0; }
.flow-contents { align-self: center; min-height: 44px; font: 500 15px 'Instrument Sans', sans-serif; color: var(--star); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 0 20px; cursor: pointer; }
.flow-contents:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 760px) {
  .rd-flow--top { display: none; }
  .rd-flow { grid-template-columns: 1fr; }
  .rd-flow .flow-contents { order: 3; justify-self: center; }
  .flow-next { order: -1; }
}
.rd-next-vol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; max-width: 900px; margin: 56px auto 0; padding: 28px; border: 1px solid rgba(196, 160, 240, 0.25); border-radius: 22px; background: rgba(72, 37, 105, 0.12); }
.rd-next-vol > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: #b9c4d4; font-size: 15px; text-decoration: underline; text-decoration-color: rgba(185, 196, 212, 0.35); text-underline-offset: 4px; }
.rd-support { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; max-width: 900px; margin: 22px auto 0; }
.rd-support a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(147, 161, 184, 0.35); text-underline-offset: 4px; }
.rd-support a:hover { color: var(--star); }
.rd-support a:focus-visible, .rs-room:focus-visible, .rd-meta a:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.rd-head { padding-top: 34px; }
.rd-sources summary { min-height: 44px; }

/* drawers: Contents and On This Page */
.drawer { position: fixed; inset: 0; z-index: 55; display: flex; justify-content: flex-end; background: rgba(2, 4, 8, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s; }
.drawer.open { opacity: 1; }
.drawer:not(.open) { pointer-events: none; }
.drawer-box { display: flex; flex-direction: column; width: min(460px, 100%); height: 100%; background: rgba(10, 15, 25, 0.98); border-left: 1px solid rgba(255, 255, 255, 0.1); transform: translateX(30px); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.drawer.open .drawer-box { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.drawer-head h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 28px; }
.drawer-x { min-height: 44px; font: 500 14px 'Instrument Sans', sans-serif; color: var(--star); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0 16px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 14px 40px; overscroll-behavior: contain; }
.ct-stop { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ct-stop summary { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 10px 8px; cursor: pointer; list-style: none; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; color: var(--star); }
.ct-stop summary::-webkit-details-marker { display: none; }
.ct-stop summary small { font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--aurora); }
.ct-stop h3 { margin: 12px 8px 4px; font: 600 12.5px 'Instrument Sans', sans-serif; color: #7d8ba2; }
.ct-stop h3.here { color: var(--gold); }
.ct-stop ol { list-style: none; margin: 0 0 12px; }
.ct-stop a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: #b9c4d4; text-decoration: none; }
.ct-stop a:hover { background: rgba(255, 255, 255, 0.05); color: var(--star); }
.ct-stop a.here { background: rgba(72, 37, 105, 0.5); color: #fff; box-shadow: inset 3px 0 0 #c4a0f0; }
.ct-stop a em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: #e2d2f7; }
.drawer a:focus-visible, .drawer summary:focus-visible, .drawer button:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.drawer--page .ts-inner { position: static; max-height: none; transform: none; background: none; border: 0; padding: 10px 14px 40px; }
.drawer--page .ts-inner a { min-height: 44px; display: flex; align-items: center; }
html.drawer-open { overflow: hidden; }

/* the reading bar on phones */
.read-bar { display: none; }
@media (max-width: 760px) {
  .read-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 6px;
    background: rgba(10, 15, 25, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(2, 4, 9, 0.5);
  }
  .read-bar a, .read-bar button { display: flex; align-items: center; gap: 4px; min-height: 44px; min-width: 0; padding: 0 12px; border-radius: 999px; font: 500 13.5px 'Instrument Sans', sans-serif; color: var(--star); text-decoration: none; background: rgba(255, 255, 255, 0.05); border: 0; cursor: pointer; }
  .read-bar a span { font-size: 20px; line-height: 1; }
  .read-bar b { display: grid; min-width: 0; font-weight: 500; font-size: 13px; line-height: 1.2; }
  .read-bar b, .read-bar b small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .read-bar b small { font-size: 11px; color: #8e9bb0; }
  .rb-next b { text-align: right; }
  .read-bar a, .read-bar button { padding: 0 10px; }
  .rb-next { justify-content: flex-end; }
  .page-book .book-view.reader { padding-bottom: 110px; }
  .toc-fab { display: none !important; }
}
.palette-label { display: block; padding: 16px 24px 0; font-size: 12.5px; font-weight: 600; color: var(--aurora); }
#palette-input { padding-top: 8px; }
.pr:focus-visible { outline: 2px solid #71b7ff; outline-offset: -2px; }

.rd-onpage { display: none; }
@media (max-width: 1080px) {
  .rd-onpage:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 12px; padding: 0 16px; font: 500 14px 'Instrument Sans', sans-serif; color: var(--star); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; cursor: pointer; }
}

/* search: matches inside a chapter */
mark.find-hit { color: #1a1408; background: rgba(227, 201, 136, 0.55); box-shadow: none; border-radius: 3px; padding: 0 1px; }
mark.find-hit.current { background: var(--gold); box-shadow: 0 0 0 3px rgba(227, 201, 136, 0.45); }
.find-bar {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; width: max-content; max-width: calc(100vw - 20px);
  padding: 8px 10px; background: rgba(12, 17, 28, 0.96); border: 1px solid rgba(227, 201, 136, 0.35); border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.fb-count { padding: 0 8px; font-size: 13.5px; color: #e8dcc0; }
.find-bar button { min-height: 40px; font: 500 13.5px 'Instrument Sans', sans-serif; color: var(--star); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0 14px; cursor: pointer; }
.find-bar button:hover { background: rgba(255, 255, 255, 0.12); }
.find-bar button:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
@media (max-width: 760px) { .find-bar { bottom: calc(80px + env(safe-area-inset-bottom)); } .fb-count { flex-basis: 100%; text-align: center; } }
.pr-more { display: block; width: calc(100% - 16px); margin: 8px; min-height: 44px; font: 500 14px 'Instrument Sans', sans-serif; color: var(--star); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; cursor: pointer; }
.pr-more:hover { background: rgba(255, 255, 255, 0.09); }
.pr-vol { color: var(--muted); font-weight: 500; margin-right: 4px; }
.pr-vol::after { content: '›'; margin-left: 6px; color: #4f5d74; }
.pr-title small { font-family: 'Instrument Sans', sans-serif; font-size: 12.5px; color: var(--muted); }

/* Chapter Sources: records with a direct document link */
.rs-recs { list-style: none; margin: 0 0 16px; padding: 0; }
.rs-recs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; line-height: 1.55; color: #b9c4d4; padding: 8px 2px; border-bottom: 1px solid rgba(147, 161, 184, 0.07); }
.rs-recs li > span { flex: 1 1 260px; }
.rs-recs a { flex: none; font-size: 13.5px; font-weight: 500; color: #71b7ff; text-decoration: none; }
.rs-recs a:hover { text-decoration: underline; }
.rs-recs a:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.rs-recs .rs-sec { color: #93a1b8; font-weight: 400; }

/* policy filters wrap on narrow screens instead of running off the side (brief: never clip words) */
@media (max-width: 900px) { .pol-chips { flex-wrap: wrap; overflow-x: visible; } .chip { flex: 0 1 auto; } }

/* the reader's own bookmark */
.bm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: -6px 0 16px 10px; padding: 0 16px; font: 500 14px 'Instrument Sans', sans-serif; color: var(--gold); background: rgba(227, 201, 136, 0.08); border: 1px solid rgba(227, 201, 136, 0.35); border-radius: 999px; cursor: pointer; }
.bm-btn::before { content: ''; width: 9px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.bm-btn:hover { background: rgba(227, 201, 136, 0.16); }
.bm-btn.saved { color: #1a1408; background: var(--gold); border-color: var(--gold); }
.bm-btn:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.rd > .bm-btn { margin-left: max(0px, calc((100% - 1040px) / 2)); }
.bm-btn--link { min-height: 44px; margin: 0; padding: 0; background: none; border: 0; font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(147, 161, 184, 0.35); text-underline-offset: 4px; }
.bm-btn--link::before { display: none; }
.bm-btn--link:hover, .bm-btn--link.saved { background: none; color: var(--gold); }
/* the floating Bookmark button appears once the reader is partway down a chapter */
.rd ~ .bm-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; margin: 0; background: rgba(16, 14, 10, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 26px rgba(2, 4, 9, 0.5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.rd ~ .bm-float.show { opacity: 1; visibility: visible; transform: none; }
.rd ~ .bm-float.saved { color: #1a1408; background: var(--gold); }
@media (max-width: 760px) { .rd ~ .bm-float { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .rd ~ .bm-float { transition: none; } }

/* the working-model note at the top of every Money & Workings chapter */
.rd-model { max-width: 760px; margin: 0 auto 28px; padding: 14px 18px; font: 400 14.5px/1.6 'Instrument Sans', sans-serif; color: #c9d3e1; background: rgba(227, 201, 136, 0.06); border: 1px solid rgba(227, 201, 136, 0.28); border-radius: 14px; }
.rd-model strong { color: var(--gold); font-weight: 500; }
.rd-model a { display: inline-block; margin-top: 4px; color: #71b7ff; text-decoration: underline; text-decoration-color: rgba(113, 183, 255, 0.4); text-underline-offset: 3px; }
