/* ==========================================================================
   Book hub — task-first booking flow
   Page-scoped additions for /book. Shared verb-hub styles remain untouched.
   ========================================================================== */

html,
body.book-page {
  min-width: 0 !important;
  max-width: 100%;
}

body.book-page {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body.book-page {
    overflow-x: clip;
  }
}

.book-page .nav-drill {
  width: min(380px, 100vw);
  max-width: 100%;
}

/* This page already exposes its own save/help paths. Keep global launchers
   from covering the focused booking cards and mobile handoff. */
.book-page .hg-mfab {
  display: none !important;
}

.book-hub {
  --book-red: #c3232f;
  --book-red-dark: #8f1823;
  --book-red-soft: #fff3f3;
  --book-ink: #18313a;
  --book-muted: #52636a;
  --book-border: #dfe6e7;
  --book-teal: #073c4c;
}

.book-hub *,
.book-hub *::before,
.book-hub *::after {
  box-sizing: border-box;
}

.book-hub .vh-hero-img {
  border-radius: 0;
  object-position: center 44%;
}

.book-hub .vh-hero-content {
  max-width: 960px;
}

.book-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.book-hero-primary,
.book-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.book-hero-primary {
  border-color: var(--book-red);
  background: var(--book-red);
  box-shadow: 0 8px 22px rgba(68, 5, 12, 0.32);
}

.book-hero-secondary {
  background: rgba(8, 24, 28, 0.58);
  backdrop-filter: blur(4px);
}

/* Essential decisions ---------------------------------------------------- */
.book-hub .book-essentials {
  max-width: 1180px;
  padding-top: 42px;
  scroll-margin-top: 112px;
}

.book-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.book-section-heading > div {
  min-width: 0;
}

.book-section-heading .vh-section-intro {
  margin-bottom: 0;
}

.book-timing-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d9b5b9;
  border-radius: 999px;
  background: #fff;
  color: var(--book-red-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.book-essential-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.book-essential-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  padding: 22px 18px 20px;
  overflow: hidden;
  border: 1px solid var(--book-border);
  border-radius: 18px;
  background: #fff;
  color: var(--book-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 52, 61, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.book-essential-order {
  position: absolute;
  top: 14px;
  right: 15px;
  color: #829096;
  font-size: 12px;
  font-weight: 800;
}

.book-essential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--book-red-soft);
  color: var(--book-red);
  font-size: 21px;
}

.book-essential-label {
  margin-bottom: 6px;
  color: var(--book-red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.book-essential-card h3 {
  margin: 0 0 9px;
  color: var(--book-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
}

.book-essential-card p {
  margin: 0 0 18px;
  color: var(--book-muted);
  font-size: 15px;
  line-height: 1.48;
}

.book-essential-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--book-red-dark);
  font-size: 14px;
  font-weight: 800;
}

.book-essential-card--attention {
  border-color: #d9969d;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}

.book-essential-card--attention .book-essential-icon {
  background: var(--book-red);
  color: #fff;
}

/* Early Pack handoff ----------------------------------------------------- */
.book-pack-handoff {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: calc(100% - 48px);
  max-width: 1052px;
  margin: 36px auto 8px;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #77131d 0%, #b51e2a 100%);
  color: #fff;
  box-shadow: 0 15px 34px rgba(94, 13, 23, 0.22);
}

.book-pack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
}

.book-pack-copy {
  min-width: 0;
}

.book-pack-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-pack-copy h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.book-pack-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.48;
}

.book-pack-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 190px;
  text-align: center;
}

.book-pack-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 17px;
  border-radius: 12px;
  background: #fff;
  color: var(--book-red-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.book-pack-library-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.56);
  text-underline-offset: 3px;
}

/* Save/help strip -------------------------------------------------------- */
.book-hub .book-support {
  padding-top: 34px;
}

.book-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.book-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 88px;
  padding: 17px 18px;
  border: 1px solid var(--book-border);
  border-radius: 16px;
  background: #fff;
  color: var(--book-ink);
  text-decoration: none;
  box-shadow: 0 5px 17px rgba(22, 52, 61, 0.05);
}

.book-support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--book-red-soft);
  color: var(--book-red);
  font-size: 19px;
}

.book-support-copy {
  min-width: 0;
}

.book-support-copy h3,
.book-support-copy span {
  display: block;
}

.book-support-copy h3 {
  margin: 0 0 3px;
  color: var(--book-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.book-support-copy span {
  color: var(--book-muted);
  font-size: 13px;
  line-height: 1.4;
}

.book-support-arrow {
  color: var(--book-red);
  font-size: 14px;
}

/* Complete resource library --------------------------------------------- */
.book-hub .book-library-section {
  max-width: 1100px;
  padding-top: 42px;
  padding-bottom: 8px;
  scroll-margin-top: 112px;
}

.book-library-groups {
  display: grid;
  gap: 12px;
}

.book-library-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--book-border);
  border-radius: 16px;
  background: #fff;
  scroll-margin-top: 112px;
  box-shadow: 0 5px 17px rgba(22, 52, 61, 0.04);
}

.book-library-summary {
  display: block;
  min-width: 0;
  color: var(--book-ink);
  cursor: pointer;
  list-style: none;
}

.book-library-summary-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 78px;
  margin: 0;
  padding: 13px 17px;
  color: inherit;
  font: inherit;
}

.book-library-summary::-webkit-details-marker {
  display: none;
}

.book-library-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--book-red-soft);
  color: var(--book-red);
  font-size: 18px;
}

.book-library-heading {
  min-width: 0;
  margin: 0;
}

.book-library-heading span,
.book-library-heading strong {
  display: block;
}

.book-library-heading span {
  margin-bottom: 2px;
  color: var(--book-red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.2;
  text-transform: uppercase;
}

.book-library-heading strong {
  overflow-wrap: anywhere;
  color: var(--book-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.book-library-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f5;
  color: #56676d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.book-library-chevron {
  color: var(--book-red);
  font-size: 14px;
  transition: transform 160ms ease;
}

.book-library-group[open] {
  border-color: #d5a5aa;
}

.book-library-group[open] .book-library-summary {
  background: #fffafa;
}

.book-library-group[open] .book-library-chevron {
  transform: rotate(180deg);
}

.book-library-body {
  min-width: 0;
  padding: 22px;
  border-top: 1px solid var(--book-border);
}

.book-library-body .vh-section-intro {
  margin-bottom: 18px;
  font-size: 15px;
}

.book-library-body .vh-section-intro a {
  color: var(--book-red-dark);
  font-weight: 750;
}

.book-library-body .vh-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-library-body .vh-card {
  min-width: 0;
  min-height: 190px;
}

.book-library-body .vh-card h4 {
  margin: 0 0 8px;
  color: var(--book-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
}

.book-partner-card {
  position: relative;
}

.book-partner-label {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f5;
  color: #40545b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.book-external-note {
  display: block;
  margin-top: 7px;
  color: #68787e;
  font-size: 11px;
  line-height: 1.25;
}

/* Repair the shared selector mismatch: the anchor itself owns this class. */
.book-hub a.vh-cta-also {
  min-height: 44px;
  padding: 10px 6px;
  color: var(--book-red-dark);
  font-weight: 700;
}

.book-hub .vh-cta-next {
  min-height: 48px;
}

/* Interaction and focus -------------------------------------------------- */
.book-hub a:focus-visible,
.book-hub summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--book-teal);
}

.book-hub .book-library-summary:focus-visible {
  outline: 3px solid var(--book-teal);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px #fff;
}

@media (hover: hover) and (pointer: fine) {
  .book-hero-primary:hover,
  .book-hero-secondary:hover {
    color: #fff;
    transform: translateY(-2px);
  }

  .book-timing-link:hover,
  .book-support-card:hover {
    border-color: #cc9298;
    color: var(--book-red-dark);
    box-shadow: 0 9px 24px rgba(81, 22, 30, 0.12);
  }

  .book-essential-card:hover {
    border-color: #cc9298;
    color: var(--book-ink);
    box-shadow: 0 14px 32px rgba(81, 22, 30, 0.14);
    transform: translateY(-3px);
  }

  .book-pack-cta:hover {
    color: var(--book-red-dark);
    box-shadow: 0 8px 20px rgba(54, 3, 10, 0.24);
    transform: translateY(-2px);
  }

  .book-pack-library-link:hover {
    color: #fff;
    text-decoration-color: #fff;
  }

  .book-library-summary:hover {
    background: #fffafa;
  }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .book-essential-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-essential-card {
    min-height: 245px;
  }
}

@media (max-width: 820px) {
  .book-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .book-essential-grid,
  .book-library-body .vh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-pack-handoff {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .book-pack-actions {
    grid-column: 1 / -1;
    min-width: 0;
    flex-direction: row;
    align-items: center;
  }

  .book-pack-cta,
  .book-pack-library-link {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .book-hub .vh-hero {
    min-height: 410px;
  }

  .book-hub .vh-hero-content {
    padding: 56px 18px 54px;
  }

  .book-hub .vh-hero h1 {
    font-size: 31px;
  }

  .book-hub .vh-hero-sub {
    font-size: 16px;
  }

  .book-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .book-hero-primary {
    width: 100%;
  }

  .book-hero-secondary {
    width: auto;
    min-height: 44px;
    padding: 9px 14px;
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(8, 24, 28, 0.72);
    backdrop-filter: none;
    font-size: 14px;
  }

  .book-page .hg-aff-text {
    font-size: 14px !important;
    line-height: 1.45;
  }

  .book-hub .book-essentials,
  .book-hub .book-support,
  .book-hub .book-library-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .book-essential-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .book-essential-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "icon title"
      "icon copy"
      "icon cta";
    column-gap: 14px;
    min-height: 0;
    padding: 17px 42px 17px 16px;
  }

  .book-essential-icon {
    grid-area: icon;
    width: 46px;
    height: 46px;
    margin: 0;
  }

  .book-essential-label {
    grid-area: label;
  }

  .book-essential-card h3 {
    grid-area: title;
    margin-bottom: 5px;
    font-size: 18px;
  }

  .book-essential-card p {
    grid-area: copy;
    margin-bottom: 9px;
  }

  .book-essential-cta {
    grid-area: cta;
    margin-top: 0;
  }

  .book-pack-handoff {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    width: calc(100% - 36px);
    margin-top: 28px;
    padding: 21px 18px;
    border-radius: 17px;
  }

  .book-pack-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .book-pack-copy h2 {
    font-size: 20px;
  }

  .book-pack-actions {
    flex-direction: column;
  }

  .book-pack-cta,
  .book-pack-library-link {
    width: 100%;
  }

  .book-support-grid,
  .book-library-body .vh-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-library-summary-layout {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    padding: 12px 14px;
  }

  .book-library-count {
    display: none;
  }

  .book-library-body {
    padding: 16px;
  }

  .book-library-body .vh-card {
    min-height: 0;
  }

  .book-hub .vh-cta-next {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 380px) {
  .book-support-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .book-support-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .book-hub,
  .book-hub * {
    scroll-behavior: auto !important;
  }

  .book-essential-card,
  .book-library-chevron {
    transition: none;
  }

  .book-hub a:hover {
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  .book-essential-card,
  .book-support-card,
  .book-library-group {
    border-width: 2px;
    border-color: #68777b;
  }

  .book-essential-card p,
  .book-support-copy span,
  .book-library-body .vh-card-desc {
    color: #2f4147;
  }
}

@media (forced-colors: active) {
  .book-hub .vh-hero {
    background: Canvas;
  }

  .book-hub .vh-hero-img,
  .book-hub .vh-hero-overlay {
    display: none;
  }

  .book-hub .vh-hero-content,
  .book-hub .vh-hero-content h1,
  .book-hub .vh-hero-content p,
  .book-hub .vh-hero-step {
    color: CanvasText;
    text-shadow: none;
  }

  .book-hero-primary,
  .book-hero-secondary {
    border: 2px solid LinkText;
    background: Canvas;
    color: LinkText;
    box-shadow: none;
    text-shadow: none;
    forced-color-adjust: auto;
  }

  .book-essential-card,
  .book-pack-handoff,
  .book-support-card,
  .book-library-group,
  .book-library-icon,
  .book-essential-icon {
    border: 1px solid ButtonText;
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: auto;
  }

  .book-library-group[open] .book-library-summary {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }

  .book-pack-copy h2,
  .book-pack-copy p,
  .book-pack-eyebrow {
    color: CanvasText;
  }
}
