/* Scoped styles for /workbook landing page — harmonizes with Mastering Fiction theme */
.mf-wb-page {
  --wb-navy: #111b2e;
  --wb-navy-soft: #1a2742;
  --wb-pale: #eaf2fa;
  --wb-indigo: #5762b7;
  --wb-cta: #e66b24;
  --wb-cta-hover: #cf5b18;
  --wb-terra: #a7331f;
  --wb-ink: #111b2e;
  --wb-muted: #4b5a72;
  --wb-border: #d9e3ef;
  --wb-shadow: 0 10px 30px rgba(17, 27, 46, 0.08);
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--wb-ink);
  font-size: 18px;
  line-height: 1.65;
  width: 100%;
  overflow-x: clip;
}
.mf-wb-hero-grid > * { min-width: 0; }
.mf-wb-page * { box-sizing: border-box; }
.mf-wb-page h1, .mf-wb-page h2, .mf-wb-page h3, .mf-wb-page h4 {
  font-family: Alexandria, sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.005em;
  margin: 0 0 18px;
}
.mf-wb-page p { margin: 0 0 16px; }
.mf-wb-page p:last-child { margin-bottom: 0; }
.mf-wb-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.mf-wb-wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HERO ==================== */
.mf-wb-hero {
  background: var(--wb-navy);
  color: #ffffff;
  padding: 50px 0 48px;
}
.mf-wb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.mf-wb-kicker {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8bee0;
  margin-bottom: 14px;
}
.mf-wb-hero h1 {
  color: #ffffff;
  font-size: 46px;
  margin-bottom: 12px;
}
.mf-wb-subtitle {
  font-family: Alexandria, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #d6e4f6;
  line-height: 1.35;
  margin-bottom: 24px;
}
.mf-wb-hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: #e9f0fa;
  margin-bottom: 22px;
}
.mf-wb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #b7c8e0;
}
.mf-wb-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.mf-wb-hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e66b24;
  flex: none;
}
.mf-wb-cover-col {
  display: flex;
  justify-content: center;
}
.mf-wb-cover-img {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
}

/* ==================== LOCALIZED AMAZON CTA BLOCK ==================== */
.mf-wb-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mf-wb-cta.mf-wb-cta-center {
  align-items: center;
  text-align: center;
}
.mf-wb-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.mf-wb-cta-center .mf-wb-cta-buttons {
  justify-content: center;
}
.mf-wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Poppins, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
  cursor: pointer;
}
.mf-wb-btn-primary {
  background: var(--wb-cta);
  color: #ffffff !important;
  border: 2px solid var(--wb-cta);
  box-shadow: 0 8px 22px rgba(230, 107, 36, 0.30);
}
.mf-wb-btn-primary:hover {
  background: var(--wb-cta-hover);
  border-color: var(--wb-cta-hover);
  transform: translateY(-1px);
  opacity: 1 !important;
}
.mf-wb-btn-secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.mf-wb-btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  opacity: 1 !important;
}
.mf-wb-cta-light .mf-wb-btn-secondary {
  color: var(--wb-navy) !important;
  border-color: rgba(17, 27, 46, 0.32);
}
.mf-wb-cta-light .mf-wb-btn-secondary:hover {
  border-color: var(--wb-navy);
  background: rgba(17, 27, 46, 0.05);
}

/* Store Localization Switcher */
.mf-wb-store-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: #b7c8e0;
}
.mf-wb-cta-light .mf-wb-store-bar {
  color: var(--wb-muted);
}
.mf-wb-store-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 2px 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mf-wb-store-toggle:hover { opacity: 0.85; }
.mf-wb-store-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 310px;
  max-width: 90vw;
  background: #ffffff;
  color: var(--wb-ink);
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 16px 38px rgba(17, 27, 46, 0.22);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  text-align: left;
}
.mf-wb-cta-center .mf-wb-store-menu {
  left: 50%;
  transform: translateX(-50%);
}
.mf-wb-store-menu.is-open { display: grid; }
.mf-wb-store-opt {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: var(--wb-ink);
  text-align: left;
  cursor: pointer;
}
.mf-wb-store-opt:hover { background: var(--wb-pale); }
.mf-wb-store-opt[aria-selected="true"] {
  background: var(--wb-navy);
  color: #ffffff;
  font-weight: 600;
}

/* ==================== BANDS ==================== */
.mf-wb-band {
  padding: 48px 0 36px;
  background: #ffffff;
}
.mf-wb-band:has(.mf-wb-cta-strip) {
  padding-bottom: 28px;
}
.mf-wb-band-pale {
  background: var(--wb-pale);
}
.mf-wb-band-navy {
  background: var(--wb-navy);
  color: #ffffff;
}
.mf-wb-band-navy h2 { color: #ffffff; }
.mf-wb-sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.mf-wb-sec-head h2 {
  font-size: 36px;
  margin-bottom: 12px;
}
.mf-wb-sec-head p {
  font-size: 18px;
  color: var(--wb-muted);
}
.mf-wb-band-navy .mf-wb-sec-head p {
  color: #d0deef;
}

/* Editorial Story Section */
.mf-wb-editorial {
  font-size: 19px;
  line-height: 1.72;
}
.mf-wb-editorial h2 {
  font-size: 34px;
  margin-bottom: 20px;
}
.mf-wb-steps-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}
.mf-wb-step {
  background: var(--wb-pale);
  border-radius: 10px;
  padding: 20px 18px;
}
.mf-wb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wb-navy);
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mf-wb-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.mf-wb-step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--wb-muted);
}

/* ==================== PEEK INSIDE SPREADS ==================== */
.mf-wb-spreads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.mf-wb-spread-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--wb-shadow);
  display: flex;
  flex-direction: column;
}
.mf-wb-spread-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.mf-wb-spread-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.22s ease;
}
.mf-wb-spread-btn:hover img {
  transform: scale(1.025);
}
.mf-wb-zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 27, 46, 0.84);
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.mf-wb-spread-cap {
  padding: 18px 20px 20px;
}
.mf-wb-spread-cap h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.mf-wb-spread-cap p {
  font-size: 15px;
  line-height: 1.52;
  color: var(--wb-muted);
}

/* ==================== 6-PART CURRICULUM GRID ==================== */
.mf-wb-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mf-wb-part {
  background: #ffffff;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  padding: 22px 22px 20px;
}
.mf-wb-part-tag {
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wb-terra);
  margin-bottom: 6px;
}
.mf-wb-part h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.mf-wb-part ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--wb-muted);
}
.mf-wb-part li { margin-bottom: 4px; }
.mf-wb-part li:last-child { margin-bottom: 0; }

.mf-wb-specs-strip {
  margin-top: 32px;
  background: var(--wb-pale);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 15px;
}
.mf-wb-specs-strip strong {
  color: var(--wb-navy);
}

/* ==================== FAQ (REUSING SITE ACCORDION FEEL) ==================== */
.mf-wb-faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.mf-wb-faq-list details.mf-faq {
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 26px;
  margin: 0 0 16px;
  box-shadow: 0 4px 14px rgba(17, 27, 46, 0.05);
}
.mf-wb-faq-list details.mf-faq:last-child { margin-bottom: 0; }
.mf-wb-faq-list details.mf-faq summary {
  font-family: Alexandria, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  padding-right: 34px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.mf-wb-faq-list details.mf-faq summary::-webkit-details-marker { display: none; }
.mf-wb-faq-list details.mf-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--wb-indigo);
}
.mf-wb-faq-list details.mf-faq[open] summary::after {
  content: "\2212";
}
.mf-wb-faq-list details.mf-faq .mf-wb-faq-body {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--wb-muted);
}
.mf-wb-faq-list details.mf-faq .mf-wb-faq-body a {
  color: var(--wb-indigo);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* ==================== CLOSING CTA ==================== */
.mf-wb-closing {
  text-align: center;
  padding: 52px 0 56px;
}
.mf-wb-closing h2 {
  font-size: 36px;
  margin: 0 auto 14px;
  max-width: 720px;
}
.mf-wb-page p.mf-wb-closing-sub {
  font-size: 19px;
  color: #d6e4f6;
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}
.mf-wb-closing .mf-wb-store-menu {
  top: auto;
  bottom: calc(100% + 10px);
}
.mf-wb-page p.mf-wb-disclosure {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #8ea5c4;
  text-align: center;
}

/* ==================== SPREAD LIGHTBOX MODAL ==================== */
.mf-wb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 18, 32, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mf-wb-lightbox.is-open { display: flex; }
.mf-wb-lightbox-inner {
  position: relative;
  max-width: 1120px;
  width: 100%;
  text-align: center;
}
.mf-wb-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.mf-wb-lightbox-caption {
  margin-top: 12px;
  color: #e6eef9;
  font-size: 15px;
}
.mf-wb-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  appearance: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mf-wb-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ==================== INLINE SECTION CTA STRIP (MATCHES HOMEPAGE PATTERN) ==================== */
.mf-wb-cta-strip {
  max-width: 780px;
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
}
.mf-wb-strip-copy {
  text-align: center;
}
.mf-wb-strip-title {
  font-family: Alexandria, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}
.mf-wb-cta-light .mf-wb-strip-title {
  color: var(--wb-navy);
}
.mf-wb-strip-sub {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: #d6e4f6;
  margin-top: 4px;
}
.mf-wb-cta-light .mf-wb-strip-sub {
  color: var(--wb-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .mf-wb-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .mf-wb-cover-col { order: -1; }
  .mf-wb-cover-img { max-width: 300px; }
  .mf-wb-hero h1 { font-size: 38px; }
  .mf-wb-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-wb-spreads { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .mf-wb-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mf-wb-hero { padding: 36px 0 38px; }
  .mf-wb-band { padding: 38px 0 28px; }
  .mf-wb-band:has(.mf-wb-cta-strip) { padding-bottom: 24px; }
  .mf-wb-closing { padding: 42px 0 46px; }
  .mf-wb-hero h1 { font-size: 32px; }
  .mf-wb-subtitle { font-size: 19px; }
  .mf-wb-sec-head h2, .mf-wb-editorial h2, .mf-wb-closing h2 { font-size: 28px; }
  .mf-wb-steps-row, .mf-wb-parts { grid-template-columns: 1fr; }
  .mf-wb-btn { width: 100%; font-size: 16px; padding: 15px 20px; }
  .mf-wb-cta-buttons { width: 100%; }
  .mf-wb-cta-strip { margin-top: 28px; gap: 14px; }
  .mf-wb-strip-title { font-size: 23px; }
  .mf-wb-strip-sub { font-size: 16px; }
  .mf-wb-faq-list details.mf-faq summary { font-size: 18px; }
}
