/* Draft styles for subject & topic pages — complements styles.css */
:root { --accent: var(--green); --accent-dark: var(--green-dark); --accent-soft: var(--green-soft); }

.draft-banner {
  background: #2b2f2b;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.page-top {
  position: sticky;
  top: 0;
  z-index: 60;
  border-top: 10px solid var(--accent);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(22px, 4vw, 72px);
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.page-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.page-nav a:hover { color: var(--accent-dark); text-decoration: underline; }
.page-nav a.is-current { color: var(--accent-dark); }
.page-nav a.button,
.page-nav a.button--accent {
  color: var(--white) !important;
}

.page-nav a.button:hover,
.page-nav a.button--accent:hover {
  color: var(--white) !important;
  text-decoration: none;
}

.workbook-strip--under-nav {
  top: 87px;
  z-index: 50;
}

@media (max-width: 900px) {
  .workbook-strip--under-nav { top: 0; }
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(22px, 4vw, 72px) 8px;
}

.breadcrumb {
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }

.page-hero h1 {
  max-width: 18ch;
  margin: 8px 0 18px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
}

.page-hero .lede {
  max-width: 760px;
  color: #394239;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.overview-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(22px, 4vw, 72px) 8px;
}

.overview-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 14px 40px rgba(17, 38, 27, 0.06);
}

.overview-card h2,
.overview-card h3 {
  margin-bottom: 10px;
  color: var(--accent-dark);
}

.overview-card p,
.overview-card li {
  color: #394239;
}

.overview-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.overview-card li + li {
  margin-top: 7px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.overview-mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  padding: 16px;
}

.overview-mini h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.overview-mini p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tip-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.tips-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.revision-tips-panel {
  padding-top: 24px;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 22px;
}

.download-card h2 {
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 1.4rem;
}

.download-card p {
  color: #394239;
}

.download-card .button {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge--live { background: var(--accent-soft); color: var(--accent-dark); }
.badge--soon { background: #eef0ee; color: var(--muted); }
.badge .live-dot { width: 8px; height: 8px; margin: 0; }

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px clamp(22px, 4vw, 72px) 24px;
}

.workbook-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.workbook-hero h1 {
  max-width: 15ch;
}

.workbook-price {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.workbook-hero__cover {
  display: block;
  max-width: 360px;
  justify-self: end;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(17, 38, 27, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.workbook-hero__cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(17, 38, 27, 0.22);
}

.workbook-hero__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.workbook-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(17, 38, 27, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(17, 38, 27, 0.12);
}

.topic-card h3 { margin: 0; font-size: 1.22rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.topic-card .topic-card__meta { margin-top: 4px; }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.spec-list .spec-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.spec-list .spec-body { flex: 1 1 auto; }
.spec-list h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.spec-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.spec-list .spec-link { margin-left: auto; align-self: center; white-space: nowrap; }

.cta-band {
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 16px clamp(22px, 4vw, 72px) 64px;
  text-align: center;
}

.cta-band--workbook {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 32px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.cta-band--workbook .section-kicker { margin-bottom: 7px; }
.cta-band--workbook h2 { margin: 0; color: var(--accent-dark); font-size: 1.45rem; }
.cta-band--workbook p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); }

.cta-band__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.cta-band__playlist { white-space: nowrap; }

.button--accent { background: var(--accent); box-shadow: 0 12px 28px rgba(0,0,0,0.16); }

@media (max-width: 560px) {
  .workbook-strip--under-nav { top: 0; }
  .tips-layout { grid-template-columns: 1fr; }
  .workbook-hero,
  .workbook-detail-grid { grid-template-columns: 1fr; }
  .workbook-hero__cover { justify-self: start; max-width: 280px; }
  .spec-list li { flex-wrap: wrap; }
  .spec-list .spec-link { margin-left: 44px; }
  .cta-band--workbook { align-items: flex-start; flex-direction: column; }
  .cta-band__actions { align-items: flex-start; flex-direction: column; gap: 14px; }
}

/* --- Video descriptions & FAQ accordion (added 2026-07-08) --- */
.spec-list .spec-desc { margin-top: 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; max-width: 65ch; }
.faq-list { margin-top: 4px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--accent-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--accent); flex: 0 0 auto; }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item > summary:hover { color: var(--accent); }

/* Focused video pages */
.topic-page-action {
  margin: 9px 0 0;
  font-size: 0.94rem;
}

.topic-page-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.video-page-hero,
.video-stage,
.video-sequence,
.video-content-grid {
  width: min(100% - 44px, 1050px);
  margin-inline: auto;
}

.video-page-hero {
  padding: 42px 0 24px;
}

.video-page-hero h1 {
  max-width: 22ch;
  margin: 8px 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.06;
}

.video-page-hero .lede {
  max-width: 780px;
  color: #394239;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.video-stage {
  padding: 8px 0 24px;
}

.focused-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  background: #263026;
  box-shadow: 0 18px 46px rgba(17, 38, 27, 0.14);
}

.focused-video__poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 5vw, 54px);
  background: #f7f8f4;
  text-align: center;
}

.focused-video__brand {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.focused-video__poster > p {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.focused-video__poster h2 {
  max-width: 22ch;
  margin: 0 0 clamp(16px, 3vw, 28px);
  color: #263026;
  font-size: clamp(1.5rem, 3.2vw, 2.65rem);
  line-height: 1.1;
}

.focused-video__play {
  min-width: 170px;
}

.focused-video__frame,
.focused-video__frame iframe {
  width: 100%;
  height: 100%;
}

.focused-video__frame iframe {
  display: block;
  border: 0;
}

.video-source-link {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
}

.video-sequence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0 42px;
}

.video-sequence__link,
.video-sequence__back {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #263026;
  text-decoration: none;
}

.video-sequence__link:last-child {
  text-align: right;
}

.video-sequence__back {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-align: center;
}

.video-sequence__link:hover,
.video-sequence__back:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.video-sequence small {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-weight: 800;
}

.video-sequence strong {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  line-height: 1.3;
}

.video-sequence .is-disabled {
  color: var(--muted);
  opacity: 0.62;
}

.video-content-band {
  margin: 0;
  padding: 48px 0;
  border-block: 1px solid var(--line);
  background: #f6f7f4;
}

.video-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 76px);
}

.video-content-grid h2 {
  margin: 5px 0 16px;
  color: var(--accent-dark);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.learning-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-list li {
  position: relative;
  padding: 13px 0 13px 32px;
  border-bottom: 1px solid var(--line);
}

.learning-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 5px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.video-recall {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.video-recall__item {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.video-recall__item summary {
  cursor: pointer;
  padding: 14px 38px 14px 14px;
  color: #263026;
  font-weight: 750;
}

.video-recall__item p {
  margin: 0;
  padding: 0 14px 15px;
  color: #394239;
}

@media (max-width: 760px) {
  .video-page-hero,
  .video-stage,
  .video-sequence,
  .video-content-grid {
    width: min(100% - 32px, 1050px);
  }

  .video-page-hero {
    padding-top: 30px;
  }

  .focused-video__brand {
    display: none;
  }

  .focused-video__poster > p {
    font-size: 0.76rem;
  }

  .focused-video__play {
    min-width: 148px;
    min-height: 42px;
    padding-block: 9px;
  }

  .video-sequence {
    grid-template-columns: 1fr 1fr;
  }

  .video-sequence__back {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 74px;
  }

  .video-sequence__link {
    min-height: 96px;
  }

  .video-content-grid {
    grid-template-columns: 1fr;
  }
}
.faq-item .faq-answer { padding: 0 18px 16px; margin: 0; color: #394239; line-height: 1.55; }
