/* Approved Chapters artwork: preserve its aspect ratio and remove the old glow. */
.open-house-page:not(.woolworths-openhouse-page) .nav-chapters {
  display: flex;
  align-items: center;
  width: 158px;
  flex: 0 0 158px;
  height: 36px;
  margin-left: 22px;
  padding-left: 18px;
}
.open-house-page:not(.woolworths-openhouse-page) .nav-chapters img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  transform: none;
}
@media (max-width: 900px) {
  .open-house-page:not(.woolworths-openhouse-page) .nav-chapters { width: 132px; flex-basis: 132px; height: 33px; margin-left: 13px; padding-left: 14px; }
}
@media (max-width: 660px) {
  .open-house-page:not(.woolworths-openhouse-page) .nav-chapters { width: 124px; flex-basis: 124px; height: 30px; margin-left: 8px; padding-left: 10px; }
}
@media (max-width: 375px) {
  .open-house-page:not(.woolworths-openhouse-page) .nav-chapters { width: 110px; flex-basis: 110px; height: 27px; margin-left: 6px; padding-left: 8px; }
}

/* Reference-led additions, scoped to the existing Open House page. */
.open-house-page:not(.woolworths-openhouse-page) .hero-photo.oh-hero-film {
  background: #0a0a09;
  filter: none;
}

.oh-hero-film video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.93) contrast(1.05) brightness(.85);
}

.open-house-page:not(.woolworths-openhouse-page) .hero-scrim {
  background: linear-gradient(90deg, #0009, #0007 50%, #0004),
    linear-gradient(#0002, #0000 40%, #0005);
}

.oh-film-control {
  position: absolute;
  z-index: 5;
  top: 125px;
  right: 4.5vw;
  padding: 9px 13px;
  border: 1px solid #ffffff73;
  background: #0008;
  color: #f6f2e9;
  font-family: var(--condensed);
  font-size: 10px;
  letter-spacing: .09em;
  cursor: pointer;
}

.oh-film-control:focus-visible,
.oh-penguin-shelf button:focus-visible,
.oh-penguin-shelf a:focus-visible,
.oh-penguin-shelf input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.oh-penguin-shelf {
  display: grid;
  grid-template-columns: minmax(255px, .5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 3.5vw;
  margin-top: 38px;
  padding-top: 31px;
  border-top: 1px solid #f3e7cf57;
  color: var(--cream);
  scroll-margin-top: 105px;
}

.oh-shelf-heading .section-kicker { margin: 0; color: var(--mustard); }

.oh-shelf-heading h2 {
  margin: 14px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 3.5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.oh-shelf-heading h2 em {
  color: var(--mustard);
  font-family: "Caveat", cursive;
  font-size: 1.1em;
  font-style: normal;
}

.oh-shelf-intro { margin: 18px 0 0; font-size: 15px; line-height: 1.55; }
.oh-shelf-books { min-width: 0; }

.oh-reference-shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 286px;
  padding: 26px 14px 17px;
  border-bottom: 7px solid #76533d;
  background: linear-gradient(#fbfaf64f, #432b1a29);
  box-shadow: inset 0 -13px #39231638;
  overflow: visible;
}

.oh-reference-row { display: contents; }

.oh-book-slot {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: 224px;
}

.oh-book-slot:nth-child(3n + 1) { height: 242px; }
.oh-book-slot:nth-child(4n + 2) { height: 212px; }
.oh-book-slot:nth-child(5n + 3) { height: 232px; }
.oh-book-slot.is-active { z-index: 8; }

.oh-book-spine {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 9px 7px 7px;
  border: 0;
  border-radius: 0;
  color: #fbfaf6;
  background: linear-gradient(90deg, #00000057, transparent 10% 83%, #0000004d), var(--book-color);
  box-shadow: 3px 0 #00000040, inset 1px 0 #ffffff7a, inset -1px 0 #0000002b;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.oh-book-spine::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 5px;
  right: 5px;
  height: 2px;
  background: #ffffffb3;
}

.oh-book-spine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  width: 1px;
  background: #ffffff5c;
}

.oh-spine-title {
  min-height: 0;
  flex: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.1;
  text-align: left;
  text-shadow: 1px 1px #0003;
  overflow: hidden;
}

.oh-spine-author {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 87px;
  margin-top: 9px;
  font-family: var(--condensed);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  overflow: hidden;
}

.oh-spine-featured {
  position: absolute;
  top: 12px;
  right: 5px;
  padding: 3px;
  background: var(--mustard);
  color: var(--black);
  font-family: var(--condensed);
  font-size: 7px;
}

.oh-book-slot.is-active .oh-book-spine {
  transform: translateY(-10px) scale(1.018);
  filter: brightness(1.15) saturate(1.22);
}

.oh-book-cover {
  position: absolute;
  z-index: 4;
  bottom: -10px;
  left: 50%;
  width: 196px;
  padding: 7px 7px 10px;
  color: #171c17;
  background: #fbfaf6;
  box-shadow: 9px 11px #00000054;
  transform: translateX(-50%);
  animation: oh-cover-in .18s ease;
}

.oh-book-slot.is-edge-start .oh-book-cover { left: 0; transform: none; }
.oh-book-slot.is-edge-end .oh-book-cover { right: 0; left: auto; transform: none; }

.oh-book-cover > img {
  display: block;
  width: 100%;
  height: 247px;
  object-fit: contain;
  background: #e9e6dc;
}

.oh-book-caption { padding: 10px 3px 0; }
.oh-book-eyebrow { margin: 0; color: #00543b; font-family: var(--condensed); font-size: 8px; letter-spacing: .07em; line-height: 1.4; }
.oh-book-caption h3 { margin: 7px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
.oh-book-caption .oh-book-author { margin: 7px 0 0; color: #4b5049; font-size: 12px; line-height: 1.4; }
.oh-book-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.oh-book-actions a, .oh-book-actions button { color: #00543b; font-family: var(--condensed); font-size: 9px; letter-spacing: .05em; }
.oh-book-actions button { min-height: 32px; padding: 5px; border: 0; background: transparent; cursor: pointer; }

.oh-shelf-source { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: #f3e7cfab; }
.oh-shelf-source a { color: inherit; }
.oh-catalogue-message { margin: 25px 0; font-size: 15px; }
.oh-catalogue-message button { min-height: 44px; padding: 10px 15px; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; }

@keyframes oh-cover-in { from { opacity: 0; } to { opacity: 1; } }

.oh-event-energy {
  background: #111511;
  color: var(--cream);
  padding: 84px 5.25vw 90px;
  scroll-margin-top: 100px;
}

.oh-energy-heading {
  max-width: 1250px;
  margin: 0 auto 35px;
}

.oh-energy-heading .section-kicker { color: var(--mustard); margin: 0; }

.oh-energy-heading h2 {
  max-width: 950px;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 6rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.oh-energy-heading h2 em {
  font-family: var(--hand);
  color: var(--mustard);
  font-size: 1.06em;
  font-style: normal;
  font-weight: 700;
}

.oh-energy-heading > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #f3e7cfd6;
}

.oh-energy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  max-width: 1250px;
  margin: 0 auto;
}

.oh-energy-grid figure {
  min-width: 0;
  margin: 0;
  transition: transform .18s ease;
}

.oh-energy-grid figure:hover { transform: translateY(-4px); }

.oh-energy-photo {
  aspect-ratio: 3 / 4;
  background: #0a0d0a;
}

.oh-energy-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oh-energy-grid figcaption {
  padding: 12px 0 0;
  color: #f4e6cc;
  font-family: var(--condensed);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .oh-penguin-shelf { grid-template-columns: minmax(220px, .5fr) minmax(0, 1.5fr); gap: 26px; }
  .oh-energy-grid { gap: 16px 10px; }
}

@media (max-width: 660px) {
  .oh-hero-film video { object-position: center; }
  .oh-film-control { top: 162px; right: 20px; padding: 8px 10px; font-size: 9px; }
  .oh-penguin-shelf { display: block; margin-top: 27px; padding-top: 23px; }
  .oh-shelf-heading h2 { font-size: 3.1rem; }
  .oh-shelf-intro { max-width: 480px; font-size: 15px; }
  .oh-shelf-books { margin-top: 20px; }
  .oh-reference-shelf { display: block; min-height: 0; padding: 0; border-bottom: 0; background: none; box-shadow: none; }
  .oh-reference-row { display: flex; align-items: flex-end; gap: 4px; min-height: 218px; padding: 18px 6px 10px; border-bottom: 5px solid #76533d; background: linear-gradient(#fbfaf64f, #432b1a29); box-shadow: inset 0 -10px #39231638; }
  .oh-reference-row + .oh-reference-row { margin-top: 20px; }
  .oh-book-slot { height: 170px; }
  .oh-book-slot:nth-child(3n + 1) { height: 182px; }
  .oh-book-slot:nth-child(4n + 2) { height: 162px; }
  .oh-book-slot:nth-child(5n + 3) { height: 175px; }
  .oh-book-spine { padding: 8px 6px 6px; }
  .oh-spine-title { font-size: 13px; }
  .oh-spine-author { font-size: 7px; max-height: 65px; }
  .oh-book-cover { width: 180px; padding: 6px 6px 8px; }
  .oh-book-cover > img { height: 230px; }
  .oh-book-caption h3 { font-size: 17px; }
  .oh-book-slot.is-mobile-edge-start .oh-book-cover { left: 0; right: auto; transform: none; }
  .oh-book-slot.is-mobile-edge-end .oh-book-cover { right: 0; left: auto; transform: none; }
  .oh-event-energy { padding: 62px 20px; }
  .oh-energy-heading h2 { font-size: 3.1rem; }
  .oh-energy-heading > p:last-child { font-size: 15px; }
  .oh-energy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .oh-book-spine, .oh-energy-grid figure { transition: none; }
  .oh-book-cover { animation: none; }
}

/* Compact the format introduction without changing its text or visual identity. */
.open-house-page:not(.woolworths-openhouse-page) .deep-dive-intro {
  padding-top: 64px;
  padding-bottom: 40px;
}
.open-house-page:not(.woolworths-openhouse-page) .deep-dive-intro h2 {
  max-width: 1100px;
  margin-top: 14px;
  font-size: clamp(3rem, 5.4vw, 6rem);
}
.open-house-page:not(.woolworths-openhouse-page) .deep-dive-intro > p:last-child {
  margin-top: 24px;
}
@media (max-width: 660px) {
  .open-house-page:not(.woolworths-openhouse-page) .deep-dive-intro {
    padding-top: 42px;
    padding-bottom: 32px;
  }
  .open-house-page:not(.woolworths-openhouse-page) .deep-dive-intro h2 {
    max-width: 100%;
    font-size: 2.8rem;
  }
  .open-house-page:not(.woolworths-openhouse-page) .deep-dive-intro > p:last-child {
    margin-top: 20px;
  }
}

/* Newly supplied host media, above—not replacing—the original host gallery. */
.open-house-page:not(.woolworths-openhouse-page) #host-table .oh-host-new-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 33px;
}
.oh-host-new-media figure {
  min-width: 0;
  margin: 0;
  border: 2px solid var(--black);
  background: var(--black);
}
.oh-host-media-frame {
  aspect-ratio: 3 / 4;
  background: var(--black);
}
.oh-host-media-frame img,
.oh-host-media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.oh-host-new-media figure:nth-child(1) .oh-host-media-frame,
.oh-host-new-media figure:nth-child(2) .oh-host-media-frame,
.oh-host-new-media figure:nth-child(3) .oh-host-media-frame {
  aspect-ratio: 1 / 1;
}
.oh-host-new-media figure:nth-child(1) .oh-host-media-frame img {
  object-fit: cover;
  object-position: center 35%;
}
.oh-host-new-media figcaption {
  padding: 11px 12px;
  color: var(--cream);
  font-family: var(--condensed);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .open-house-page:not(.woolworths-openhouse-page) #host-table .oh-host-new-media {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 660px) {
  .open-house-page:not(.woolworths-openhouse-page) #host-table .oh-host-new-media {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
  }
  .oh-host-new-media figcaption { padding: 9px 8px; font-size: 9px; }
}

.oh-host-author-details {
  padding: 14px 12px 16px;
  color: var(--cream);
  background: var(--black);
  border-top: 1px solid rgba(243, 238, 227, .22);
}
.oh-host-detail-label {
  margin: 0 0 5px;
  color: var(--mustard, #d6a84c);
  font-family: var(--condensed);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.oh-host-books {
  margin: 0 0 14px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
}
.oh-host-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.oh-host-socials a {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.4;
  text-underline-offset: 3px;
}
.oh-host-socials a::after { content: ' ↗'; color: var(--red, #bc482f); }
@media (max-width: 660px) {
  .oh-host-author-details { padding: 12px 10px 14px; }
  .oh-host-books { font-size: 13px; }
  .oh-host-socials a { font-size: 12px; }
}
