.series-guide {
  --guide-ink: #33271e;
  --guide-accent: #793e2c;
  color: var(--guide-ink);
}

.series-guide [hidden] { display: none; }
.guide-lead { max-width: 65ch; margin: 0 0 22px; font-size: 1.05rem; }
.guide-bundle a {
  font-weight: 650;
  text-underline-offset: .2em;
}

.guide-tabs { display: flex; }
.guide-tabs button {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-bottom: 3px solid #d7c2a6;
  padding: 12px clamp(7px, 2vw, 20px);
  color: inherit;
  background: #f4ead8;
  min-height: 62px;
  line-height: 1.3;
  text-align: start;
}
.guide-tabs button:hover { background: #e9d6b8; }
.guide-tabs button[aria-selected="true"] { background: #e8d1ae; border-color: var(--guide-accent); }
.guide-tabs strong, .guide-tabs small { display: block; }
.guide-tabs small { margin-top: 5px; color: #544838; }

@media (max-width: 600px) {
  .guide-tabs-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
}

.guide-exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  min-height: 255px;
  background: #f3e7d2;
}
.guide-exhibit + .guide-exhibit { margin-top: 12px; }
.guide-exhibit[hidden] + .guide-exhibit { margin-top: 0; }
.guide-scene {
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 170px;
  padding: clamp(16px, 3vw, 34px);
  background: linear-gradient(0deg, #241a13 0%, #30261bc9 42%, transparent 90%),
    radial-gradient(circle at 76% 27%, #f4ce8a 0 24px, transparent 25px),
    linear-gradient(171deg, var(--guide-sky, #aa6645), #ecc38e 63%, #607463 64%, #435c57 100%);
  color: #fff7ed;
}
.guide-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22% 0 0;
  opacity: .7;
  background: var(--guide-ridge, #563b2c);
  clip-path: polygon(0 52%, 19% 31%, 26% 39%, 38% 29%, 51% 49%, 67% 59%, 85% 47%, 100% 44%, 100% 62%, 78% 65%, 60% 76%, 43% 69%, 23% 73%, 0 90%);
}
.guide-scene[data-tone="green"] { --guide-sky: #718d80; --guide-ridge: #334c3e; }
.guide-scene[data-tone="terracotta"] { --guide-sky: #9f5b51; --guide-ridge: #733c35; }
.guide-scene[data-tone="indigo"] { --guide-sky: #5d678b; --guide-ridge: #363650; }
.guide-scene-illustrated { min-height: 300px; }
.guide-scene-illustrated::before {
  inset: 0;
  opacity: 1;
  clip-path: none;
  background: linear-gradient(0deg, #201710f5 0%, #211810bb 35%, #21181028 75%, transparent),
    linear-gradient(90deg, #2118105c, transparent 80%);
}
.guide-scene-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}
.series-guide h2 { font: 600 clamp(24px, 3vw, 38px)/1.12 var(--serif); margin: 0; }
.guide-scene p { max-width: 45ch; margin: 0; color: #fff1d8; }

.guide-chapter-reading { align-self: center; min-width: 0; padding: 6px clamp(13px, 3vw, 28px); }
.guide-chapter-books { display: grid; list-style: none; margin: 0; padding: 0; }
.guide-chapter-books li { min-width: 0; }
.guide-chapter-books li + li { border-top: 1px solid #d6c2a7; }
.guide-chapter-book { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 11px 0; text-decoration: none; }
.guide-chapter-books img { flex: none; width: 58px; height: 87px; object-fit: contain; }
.guide-chapter-book small, .guide-book-title { display: block; }
.guide-book-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 650; line-height: 1.3; text-decoration: underline; text-underline-offset: .2em; }
.guide-chapter-book:hover .guide-book-title { color: var(--guide-accent); }
.guide-more-books { border-top: 1px solid #d6c2a7; }
.guide-more-books summary { cursor: pointer; padding: 10px 0; color: var(--guide-accent); font-weight: 650; }

.guide-bundle {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  margin: 34px 0 40px;
  padding: clamp(18px, 4vw, 40px);
  background: #2a332c;
  color: #fff6e7;
}
.guide-bundle .guide-eyebrow { color: #efcd9b; margin: 0 0 9px; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
.guide-bundle ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.guide-bundle li { min-width: 0; }
.guide-bundle li a { display: grid; gap: 8px; align-content: start; font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.guide-bundle img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; }
.guide-bundle .guide-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 6px 14px; background: #eecf99; color: #211e17; }
.guide-bundle .guide-cta:hover { background: #ffe3b4; }
.series-guide .guide-all-books { margin-top: 34px; }
.series-guide :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.guide-tabs button:focus-visible { outline-offset: -4px; }

@media (max-width: 720px) {
  .guide-bundle { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 530px) {
  .guide-exhibit { grid-template-columns: minmax(0, 1fr); }
  .guide-scene-illustrated { min-height: 235px; }
  .guide-bundle ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-bundle img { max-width: 100px; }
}

.guide-picker { display: grid; justify-items: start; gap: 6px; margin-bottom: 12px; font-weight: 650; }
.guide-picker select {
  min-height: 44px;
  width: min(100%, 420px);
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid #ac8e6b;
  background: #fffaf1;
  color: inherit;
  font: inherit;
}
.guide-bundle-more { margin-top: 12px; }
.guide-bundle-more summary { padding: 8px 0; margin-bottom: 8px; cursor: pointer; }
.guide-catalog-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0;
}
.guide-catalog-pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #9e7549; font-weight: 650; }
