@charset "UTF-8";
/**
 * Just Word — Single Resource Templates
 *
 * Styles for single-worksheet.php, single-short-videos.php,
 * single-bible_questions.php, and single-studyplan.php.
 *
 * Loaded on single CPT pages for: worksheet, short-videos,
 * bible_questions, studyplan.
 *
 * @package JustWord Child
 */

/* ── BRAND VARIABLES (re-declared for standalone use) ── */
:root {
  --jw-navy:        #0d2240;
  --jw-navy-mid:    #163352;
  --jw-navy-light:  #1e4a73;
  --jw-orange:      #e87722;
  --jw-orange-lt:   #f5922a;
  --jw-orange-pale: #fff3e8;
  --jw-white:       #ffffff;
  --jw-off-white:   #faf8f4;
  --jw-light:       #f2ede4;
  --jw-border:      #e0d9ce;
  --jw-text:        #000000;
  --jw-text-mid:    #3d3020;
  --jw-text-soft:   #6b5e4a;
  --jw-text-hint:   #9c8e7a;
  --jw-green:       #1e6e45;
  --jw-green-pale:  #e6f4ed;
}

/* ══════════════════════════════════════
   SHARED — wrapper, breadcrumb, buttons
══════════════════════════════════════ */
.jw-single {
  background: var(--jw-off-white);
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--jw-text);
}
.jw-single .entry-content,
.jw-single .entry-header {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Breadcrumb */
.jw-breadcrumb {
  background: var(--jw-off-white);
  padding: 12px 32px;
  border-bottom: 1px solid var(--jw-border);
  font-size: 11px;
  color: var(--jw-text-hint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.jw-breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.jw-breadcrumb a {
  color: var(--jw-orange);
  text-decoration: none;
  font-weight: 600;
}
.jw-breadcrumb a:hover { text-decoration: underline; }
.jw-bc-sep { color: var(--jw-border); }

/* Shared buttons */
.jw-btn-orange,
.jw-btn-navy,
.jw-btn-download,
.jw-btn-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.jw-btn-orange { background: var(--jw-orange); color: #fff; }
.jw-btn-orange:hover { background: var(--jw-orange-lt); color: #fff; }
.jw-btn-navy { background: var(--jw-navy); color: #fff; }
.jw-btn-navy:hover { background: var(--jw-navy-mid); color: #fff; }
.jw-btn-download {
  background: var(--jw-orange);
  color: #fff;
  padding: 12px 22px;
}
.jw-btn-download:hover { background: var(--jw-orange-lt); }
.jw-btn-disabled {
  background: var(--jw-border) !important;
  color: var(--jw-text-hint) !important;
  cursor: not-allowed;
}
.jw-btn-preview {
  background: transparent;
  color: var(--jw-navy);
  border: 1.5px solid var(--jw-navy);
  padding: 11px 22px;
}
.jw-btn-preview:hover { background: var(--jw-navy); color: #fff; }
.jw-btn-block { display: block; text-align: center; }
.jw-btn-icon { font-size: 14px; line-height: 1; }

/* ══════════════════════════════════════
   ACADEMY PLUG — shared CTA across all single resource pages
══════════════════════════════════════ */
.jw-academy-box {
  background: var(--jw-navy);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 22px 0;
  position: relative;
  overflow: hidden;
}
.jw-academy-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 0% 0%, rgba(232,119,34,.16) 0%, transparent 60%);
  pointer-events: none;
}
.jw-academy-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--jw-orange);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.jw-academy-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.jw-academy-text {
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.jw-academy-btn {
  position: relative;
  z-index: 1;
}
/* Study Plan only: full-width centered wrapper for the academy box,
   so it lines up with the related-plans grid below it. */
.jw-sp-academy-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

/* Shared method tags */
.jw-method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.jw-mtag {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  transition: opacity .15s;
}
.jw-mtag:hover { opacity: .8; }
.jw-mtag-zoom-in,
.jw-mtag-default { background: var(--jw-orange-pale); color: var(--jw-orange); }
.jw-mtag-zoom-out { background: #e8f0fa; color: var(--jw-navy-light); }
.jw-mtag-method  { background: var(--jw-green-pale); color: var(--jw-green); }

/* Shared related cards (worksheet template uses these) */
.jw-related {
  margin-top: 32px;
}
.jw-related-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--jw-text-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.jw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.jw-related-card {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
  display: block;
}
.jw-related-card:hover {
  border-color: var(--jw-orange);
  transform: translateY(-2px);
}
.jw-related-icon { font-size: 22px; margin-bottom: 8px; }
.jw-related-card-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--jw-navy);
  margin-bottom: 4px;
  line-height: 1.35;
}
.jw-related-tag { font-size: 10px; color: var(--jw-text-hint); }

/* ══════════════════════════════════════
   WORKSHEET TEMPLATE
══════════════════════════════════════ */
.jw-ws-hero {
  background: var(--jw-navy);
  padding: 56px 32px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.jw-ws-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(232,119,34,.14) 0%, transparent 60%);
  pointer-events: none;
}
.jw-ws-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.jw-ws-hero-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--jw-orange);
  margin-bottom: 14px;
}
.jw-ws-hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 12px;
}
.jw-ws-hero-title em { font-style: italic; color: var(--jw-orange-lt); }
.jw-ws-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.jw-ws-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.jw-ws-card {
  background: var(--jw-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--jw-border);
  margin-bottom: 32px;
}
.jw-ws-preview {
  background: linear-gradient(135deg, var(--jw-navy) 0%, var(--jw-navy-light) 100%);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.jw-ws-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(255,255,255,.04) 29px, rgba(255,255,255,.04) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 29px, rgba(255,255,255,.04) 29px, rgba(255,255,255,.04) 30px);
  pointer-events: none;
}
.jw-ws-preview-frame {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  /* Constrain wysiwyg-injected iframes */
  min-height: 360px;
}
.jw-ws-preview-frame iframe,
.jw-ws-preview-frame embed,
.jw-ws-preview-frame object {
  width: 100% !important;
  min-height: 480px;
  border: 0;
  display: block;
}
.jw-ws-preview-frame p { margin: 0; }
.jw-ws-preview-frame img { max-width: 100%; height: auto; display: block; }

.jw-ws-preview--image .jw-ws-preview-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.jw-ws-preview--placeholder {
  text-align: center;
  padding: 64px 32px;
  color: rgba(255,255,255,.85);
}
.jw-ws-preview-icon { font-size: 56px; margin-bottom: 14px; position: relative; z-index: 1; }
.jw-ws-preview-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.jw-watermark {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.32);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: right;
  line-height: 1.3;
}

.jw-ws-info { padding: 28px; }
.jw-ws-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.jw-info-item {}
.jw-info-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--jw-text-hint);
  margin-bottom: 4px;
}
.jw-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--jw-text);
}
.jw-ws-desc {
  font-size: 14px;
  color: var(--jw-text);
  line-height: 1.75;
  margin-bottom: 22px;
}
.jw-ws-desc p { margin: 0 0 14px; }
.jw-ws-desc p:last-child { margin: 0; }

.jw-ws-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.jw-dl-note {
  font-size: 11px;
  color: var(--jw-text-hint);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

/* ══════════════════════════════════════
   SHORT VIDEO TEMPLATE
══════════════════════════════════════ */
.jw-vid-page { background: var(--jw-off-white); }
.jw-vid-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.jw-vid-main {}
.jw-vid-player {
  background: var(--jw-navy);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* ── Embed slot — handles iframe, figure.wp-block-embed, video, etc. ── */
.jw-vid-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--jw-navy);
}
/* Force every direct descendant to fill the slot, regardless of source */
.jw-vid-embed > figure,
.jw-vid-embed > div,
.jw-vid-embed > p {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
.jw-vid-embed .wp-block-embed__wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}
.jw-vid-embed iframe,
.jw-vid-embed video,
.jw-vid-embed object,
.jw-vid-embed embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
  max-width: none !important;
}
/* Hide any text or non-media nodes that snuck in (defensive) */
.jw-vid-embed > p:empty { display: none; }

.jw-vid-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.jw-vid-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jw-vid-thumb-overlay,
.jw-vid-thumb-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(14,30,53,.78) 0%, rgba(30,74,115,.5) 100%);
  color: #fff;
  padding: 24px;
}
.jw-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--jw-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform .15s;
}
.jw-vid-thumb-wrap:hover .jw-play-btn,
.jw-vid-thumb-text:hover .jw-play-btn { transform: scale(1.08); }
.jw-play-icon {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 4px;
}
.jw-vid-thumb-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.jw-vid-thumb-sub {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}

.jw-vid-info h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--jw-navy);
  margin: 0 0 12px;
  line-height: 1.3;
}
.jw-vid-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.jw-vmeta {
  font-size: 11px;
  color: var(--jw-text-hint);
  font-weight: 500;
}
.jw-vmeta-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--jw-navy);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.jw-vid-desc {
  font-size: 14px;
  color: var(--jw-text);
  line-height: 1.75;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--jw-border);
  margin-bottom: 20px;
}
.jw-vid-desc p { margin: 0 0 12px; }
.jw-vid-desc p:last-child { margin-bottom: 0; }

.jw-vid-method-box {
  background: var(--jw-navy);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.jw-vmb-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--jw-orange);
  margin-bottom: 6px;
}
.jw-vmb-text {
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.jw-vid-resources {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 10px;
  padding: 18px 20px;
}
.jw-vr-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--jw-text-hint);
  margin-bottom: 12px;
}
.jw-vr-content table {
  width: 100%;
  border-collapse: collapse;
}
.jw-vr-content table tr {
  border-bottom: 1px solid var(--jw-border);
}
.jw-vr-content table tr:last-child { border-bottom: none; }
.jw-vr-content table td {
  padding: 10px 8px;
  font-size: 12px;
  color: var(--jw-text-mid);
  vertical-align: middle;
}
.jw-vr-content a {
  color: var(--jw-orange);
  font-weight: 700;
  text-decoration: none;
}
.jw-vr-content a:hover { text-decoration: underline; }
.jw-vr-content p:last-child { margin-bottom: 0; }

/* Sidebar */
.jw-vid-sidebar {}
.jw-vs-section {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.jw-vs-section--dark {
  background: var(--jw-navy);
  border-color: var(--jw-navy);
  color: #fff;
}
.jw-vs-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--jw-text-hint);
  margin-bottom: 14px;
}
.jw-vs-title--light { color: rgba(255,255,255,.45); }
.jw-vs-cta-text {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 14px;
}
.jw-vs-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--jw-border);
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}
.jw-vs-item:hover { opacity: .75; }
.jw-vs-item:last-child { border-bottom: none; padding-bottom: 0; }
.jw-vs-thumb {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  background: var(--jw-navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,.85);
  font-size: 18px;
}
.jw-vs-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.jw-vs-thumb-icon { color: rgba(255,255,255,.7); }
.jw-vs-info { flex: 1; min-width: 0; }
.jw-vs-vtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--jw-navy);
  line-height: 1.4;
  margin-bottom: 3px;
}
.jw-vs-duration {
  font-size: 10px;
  color: var(--jw-text-hint);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════
   BIBLE Q&A TEMPLATE
══════════════════════════════════════ */
.jw-qa-hero {
  background: var(--jw-navy);
  padding: 48px 32px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.jw-qa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(232,119,34,.12) 0%, transparent 60%);
  pointer-events: none;
}
.jw-qa-hero-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--jw-orange);
  margin-bottom: 12px;
  position: relative;
}
.jw-qa-hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
  position: relative;
}
.jw-qa-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

.jw-qa-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.jw-qa-card {
  background: var(--jw-white);
  border-radius: 14px;
  border: 1px solid var(--jw-border);
  overflow: hidden;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.jw-qa-card--featured { margin-bottom: 32px; }

.jw-qa-question {
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.jw-qa-question--open {
  background: var(--jw-navy);
}
.jw-q-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--jw-orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--jw-orange);
  flex-shrink: 0;
}
.jw-qa-question--open .jw-q-icon {
  background: var(--jw-orange);
  color: #fff;
}
.jw-q-text {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--jw-navy);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.jw-qa-question--open .jw-q-text { color: #fff; }
.jw-q-arrow {
  font-size: 14px;
  color: var(--jw-text-hint);
  flex-shrink: 0;
  align-self: center;
}

.jw-qa-answer {
  padding: 0 24px 24px 72px;
  border-top: 1px solid var(--jw-border);
}
.jw-method-how {
  background: var(--jw-orange-pale);
  border: 1px solid rgba(232,119,34,.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--jw-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.jw-qa-body {
  font-size: 14px;
  color: var(--jw-text);
  line-height: 1.8;
}
.jw-qa-body p { margin: 0 0 14px; }
.jw-qa-body p:last-child { margin-bottom: 0; }
.jw-qa-body blockquote,
.jw-qa-body .scripture-block,
.jw-qa-body .qa-scripture {
  border-left: 3px solid var(--jw-orange);
  background: var(--jw-orange-pale);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14px;
  font-style: italic;
  color: var(--jw-text-mid);
  line-height: 1.7;
}
.jw-qa-body h2,
.jw-qa-body h3 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--jw-navy);
  margin: 22px 0 10px;
}
.jw-qa-body h2 { font-size: 18px; }
.jw-qa-body h3 { font-size: 15px; }
.jw-qa-body strong { color: var(--jw-navy); }
.jw-qa-body em { color: var(--jw-text-mid); }

.jw-qa-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.jw-qa-tool {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--jw-light);
  color: var(--jw-navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .15s;
}
.jw-qa-tool:hover { background: var(--jw-orange-pale); color: var(--jw-orange); }

.jw-qa-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--jw-off-white);
  border-top: 1px solid var(--jw-border);
  flex-wrap: wrap;
  gap: 8px;
}
.jw-qa-footer-text {
  font-size: 11px;
  color: var(--jw-text-hint);
}
.jw-qa-footer-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--jw-orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.jw-qa-footer-link:hover { text-decoration: underline; }

/* Related Q&A list */
.jw-qa-related-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--jw-text-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 8px 0 14px;
}
.jw-qa-card--related {
  transition: border-color .15s, transform .15s;
}
.jw-qa-card--related:hover {
  border-color: var(--jw-orange);
  transform: translateY(-1px);
}
.jw-qa-card--related .jw-q-text {
  font-size: 14px;
}
.jw-qa-related-method {
  font-size: 10px;
  font-weight: 700;
  color: var(--jw-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 24px 14px 72px;
  background: var(--jw-off-white);
}

/* Submit a question form */
.jw-qa-ask {
  background: var(--jw-navy);
  border-radius: 14px;
  padding: 28px;
  margin-top: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.jw-qa-ask::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(232,119,34,.1) 0%, transparent 65%);
  pointer-events: none;
}
.jw-qa-ask h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}
.jw-qa-ask p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0 0 18px;
  line-height: 1.6;
  position: relative;
}
.jw-qa-input-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.jw-qa-input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border-color .15s, background .15s;
}
.jw-qa-input::placeholder { color: rgba(255,255,255,.35); }
.jw-qa-input:focus {
  border-color: var(--jw-orange);
  background: rgba(255,255,255,.12);
}
.jw-qa-submit {
  background: var(--jw-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  transition: background .15s;
}
.jw-qa-submit:hover { background: var(--jw-orange-lt); }

/* ══════════════════════════════════════
   STUDY PLAN TEMPLATE — rebuilt with ACF-driven sections
══════════════════════════════════════ */

/* ── Hero (2-column: book cover left, content right) ── */
.jw-sp-hero {
  background: var(--jw-navy);
  padding: 56px 32px 56px;
  position: relative;
  overflow: hidden;
}
.jw-sp-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 30% 30%, rgba(232,119,34,.14) 0%, transparent 60%);
  pointer-events: none;
}
.jw-sp-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.jw-sp-hero-image {
  text-align: center;
}
.jw-sp-hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.jw-sp-hero-content {
  color: #fff;
}
.jw-sp-hero-eyebrow {
  /* deprecated — kept for back-compat but not rendered in new template */
  display: none;
}
.jw-sp-hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 8px;
}
.jw-sp-hero-subtitle {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: var(--jw-orange-lt);
  line-height: 1.4;
  margin: 0 0 22px;
}

/* Includes (no box, just label + bullets directly on hero bg) */
.jw-sp-includes {
  margin-bottom: 24px;
}
.jw-sp-includes-title {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 10px;
}
.jw-sp-includes-desc {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin: 0 0 12px;
}
.jw-sp-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jw-sp-includes-list li {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  padding: 5px 0 5px 26px;
  position: relative;
  line-height: 1.55;
}
.jw-sp-includes-list li::before {
  content: '\2713'; /* check mark - unicode-escaped so it renders regardless of file/serving charset */
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--jw-orange);
  font-weight: 700;
  font-size: 14px;
}

.jw-sp-hero-btn {
  font-size: 13px;
  padding: 13px 28px;
}

/* Quick jump links to body sections */
.jw-sp-hero-jumps {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.jw-sp-jump {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.jw-sp-jump:hover {
  border-color: var(--jw-orange);
  color: var(--jw-orange);
}
.jw-sp-jump-icon {
  font-size: 11px;
}

/* ── Two-column layout: TOC + main ── */
.jw-sp-content {
  background: var(--jw-off-white);
  padding: 48px 24px 64px;
}
.jw-sp-layout {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* ── TOC sidebar with numbered structured items ── */
.jw-sp-toc {
  position: sticky;
  top: 80px;
}
.jw-sp-toc-inner {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 14px;
  padding: 22px 20px;
}
.jw-sp-toc-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--jw-text-hint);
  margin-bottom: 14px;
}
.jw-sp-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jw-sp-toc-list > li {
  margin-bottom: 6px;
}
.jw-sp-toc-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  text-decoration: none;
  color: var(--jw-text-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: all .15s;
  border-radius: 0 6px 6px 0;
}
.jw-sp-toc-link:hover {
  color: var(--jw-navy);
  background: var(--jw-off-white);
}
.jw-sp-toc-link--active {
  border-left-color: var(--jw-orange);
  color: var(--jw-navy);
  background: var(--jw-orange-pale);
}
.jw-sp-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--jw-orange-pale);
  color: var(--jw-orange);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.jw-sp-toc-link--active .jw-sp-toc-num {
  background: var(--jw-orange);
  color: #fff;
}
.jw-sp-toc-text {
  flex: 1;
}

.jw-sp-toc-sublist {
  list-style: none;
  margin: 4px 0 0 30px;
  padding: 0;
  border-left: 2px solid var(--jw-border);
}
.jw-sp-toc-sublist li {
  margin: 0;
  padding: 0;
}
.jw-sp-toc-sublist a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--jw-text-soft);
  text-decoration: none;
  margin-left: -2px;
  border-left: 2px solid transparent;
  line-height: 1.45;
  transition: all .15s;
}
.jw-sp-toc-sublist a:hover {
  color: var(--jw-orange);
  border-left-color: var(--jw-orange);
}

/* ── Main column / sections ── */
.jw-sp-main {
  min-width: 0;
}
.jw-sp-section {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 24px;
  scroll-margin-top: 100px;
}
.jw-sp-section-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--jw-orange);
  margin-bottom: 8px;
  text-align: center;
}
.jw-sp-section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--jw-navy);
  margin: 0 0 12px;
  text-align: center;
}
.jw-sp-section-desc {
  font-size: 14px;
  color: var(--jw-text-soft);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* Normalize in-content section headers so they match the template's
   .jw-sp-section-title. The body's "Watch the Video" / "Bible Classes &
   Articles" etc. are Kadence Advanced Heading <h1> blocks authored in the
   editor at their own sizes (e.g. 38px); this brings them in line with the
   template-generated sections. Scoped to <h1> only, so the small orange
   eyebrow (an <h2>) and sub-headings are left untouched. !important is
   needed to override Kadence's per-block generated font sizing. */
.jw-sp-body-content h1,
.jw-sp-body-content h1.wp-block-kadence-advancedheading {
  font-family: 'Merriweather', Georgia, serif !important;
  font-size: clamp(22px, 2.6vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--jw-navy) !important;
  text-align: center;
  margin: 0 0 12px;
}

/* ── Get Started 3-card grid ── */
.jw-sp-getstarted-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.jw-sp-getstarted-card {
  /* 3 cards fill the row evenly (= old 3-col grid); 1 or 2 stay this width
     and the row centers them instead of leaving empty columns. */
  flex: 0 1 calc((100% - 36px) / 3);
  background: var(--jw-off-white);
  border: 1px solid var(--jw-border);
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.jw-sp-getstarted-card:hover {
  border-color: var(--jw-orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,34,64,.08);
}
.jw-sp-card-icon {
  font-size: 38px;
  margin-bottom: 14px;
  line-height: 1;
}
.jw-sp-card-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}
.jw-sp-card-text {
  font-size: 12px;
  color: var(--jw-text-soft);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.jw-sp-card-btn {
  width: 100%;
  font-size: 12px;
  text-decoration: none;
  text-align: center;
}
/* Mint variant for the "free" card to echo the wisdom-of-proverbs design */
.jw-sp-card-btn--mint {
  background: #2cb88f;
  color: #fff;
}
.jw-sp-card-btn--mint:hover { background: #248d6c; color: #fff; }

/* ── Look Inside tabs ── */
.jw-sp-tabs {
  margin-top: 28px;
}
.jw-sp-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}
.jw-sp-tab-btn {
  /* 3 tabs fill the row evenly; 1 or 2 stay this width and center. */
  flex: 0 1 calc((100% - 20px) / 3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--jw-light);
  border: 1.5px solid var(--jw-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  transition: background .15s, color .15s;
  color: var(--jw-text-soft);
}
.jw-sp-tab-btn:hover {
  background: var(--jw-orange-pale);
  color: var(--jw-orange);
}
.jw-sp-tab-btn--active {
  background: var(--jw-orange) !important;
  border-color: var(--jw-orange);
  color: #fff !important;
}
.jw-sp-tab-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.jw-sp-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.jw-sp-tab-text strong {
  font-size: 14px;
  font-weight: 700;
}
.jw-sp-tab-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: .75;
}

.jw-sp-tab-panels {
  background: var(--jw-white);
  border: 1.5px solid var(--jw-border);
  border-radius: 0 10px 10px 10px;
  padding: 28px;
  min-height: 320px;
}
.jw-sp-tab-panel { display: none; }
.jw-sp-tab-panel--active { display: block; animation: jw-fade-in .25s ease; }
@keyframes jw-fade-in { from { opacity: 0; } to { opacity: 1; } }

.jw-sp-workbook-iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 6px;
}
.jw-sp-comparison-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.jw-sp-tab-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--jw-border);
  text-align: center;
}
.jw-sp-tab-footer p {
  font-size: 13px;
  color: var(--jw-text-soft);
  margin-bottom: 12px;
}

/* ── Body content (Gutenberg-authored) ── */
.jw-sp-body {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.jw-sp-body-content {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 16px;
  padding: 36px 40px;
}
.jw-sp-body-content > h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 32px 0 14px;
  scroll-margin-top: 90px;
  line-height: 1.25;
}
.jw-sp-body-content > h1:first-child { margin-top: 0; }
.jw-sp-body-content > h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 30px 0 14px;
  scroll-margin-top: 90px;
}
.jw-sp-body-content > h2:first-child { margin-top: 0; }
.jw-sp-body-content h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 22px 0 10px;
}
.jw-sp-body-content p {
  font-size: 15px;
  color: var(--jw-text);
  line-height: 1.85;
  margin: 0 0 16px;
}
.jw-sp-body-content ul,
.jw-sp-body-content ol { margin: 0 0 16px 22px; }
.jw-sp-body-content li { margin-bottom: 6px; line-height: 1.7; }
.jw-sp-body-content blockquote {
  border-left: 3px solid var(--jw-orange);
  background: var(--jw-orange-pale);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
}
.jw-sp-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.jw-sp-body-content iframe {
  max-width: 100%;
  border-radius: 8px;
}
/* Gutenberg embed blocks (videos pasted in body) — keep aspect ratio */
.jw-sp-body-content .wp-block-embed {
  margin: 16px 0;
}

/* ── Related plans ── */
.jw-sp-related {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.jw-sp-related-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--jw-navy);
  text-align: center;
  margin-bottom: 24px;
}
.jw-sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.jw-sp-related-card {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.jw-sp-related-card:hover {
  border-color: var(--jw-orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,34,64,.08);
}
.jw-sp-related-img-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--jw-light);
}
.jw-sp-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jw-sp-related-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.jw-sp-related-eyebrow {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--jw-orange);
  margin-bottom: 8px;
}
.jw-sp-related-h {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--jw-navy);
  line-height: 1.35;
  margin: 0 0 8px;
}
.jw-sp-related-x {
  font-size: 12px;
  color: var(--jw-text-soft);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}
.jw-sp-related-cta {
  font-size: 10px;
  font-weight: 700;
  color: var(--jw-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .jw-vid-layout {
    grid-template-columns: 1fr;
  }
  .jw-vid-sidebar { order: 2; }
  .jw-sp-layout {
    grid-template-columns: 1fr;
  }
  .jw-sp-toc {
    position: static;
    order: -1;
  }
  .jw-related-grid,
  .jw-sp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .jw-breadcrumb { padding: 10px 16px; }

  /* Worksheet */
  .jw-ws-hero { padding: 40px 20px 36px; }
  .jw-ws-content { padding: 24px 16px 56px; }
  .jw-ws-info { padding: 22px; }
  .jw-ws-info-grid { grid-template-columns: 1fr; gap: 10px; }
  .jw-ws-actions { flex-direction: column; }
  .jw-ws-actions .jw-btn-download,
  .jw-ws-actions .jw-btn-preview { width: 100%; }
  .jw-ws-preview { padding: 20px; }
  .jw-ws-preview-frame iframe { min-height: 360px; }

  /* Video */
  .jw-vid-layout { padding: 20px 16px 48px; gap: 18px; }
  .jw-vid-info h1 { font-size: 20px; }

  /* Q&A */
  .jw-qa-hero { padding: 36px 20px 32px; }
  .jw-qa-content { padding: 24px 16px 56px; }
  .jw-qa-question { padding: 18px 18px; gap: 12px; }
  .jw-qa-answer { padding: 0 18px 20px 18px; }
  .jw-qa-related-method { padding: 8px 18px 12px 18px; }
  .jw-qa-input-row { flex-direction: column; }
  .jw-qa-input,
  .jw-qa-submit { width: 100%; }
  .jw-qa-footer { flex-direction: column; align-items: flex-start; }

  /* Study Plan */
  .jw-sp-hero { padding: 44px 20px 36px; }
  .jw-sp-hero-stats { flex-wrap: wrap; }
  .jw-sp-stat { border-right: none; padding: 8px 16px; }
  .jw-sp-progress-row { padding: 12px 16px; }
  .jw-sp-content { padding: 28px 16px 48px; }
  .jw-sp-layout { gap: 20px; }
  .jw-sp-article { padding: 26px 22px; }
  .jw-sp-article-inner > h2 { font-size: 19px; gap: 10px; }
  .jw-sp-step-num { width: 30px; height: 30px; font-size: 12px; }
  .jw-sp-cta-btns { flex-direction: column; }
  .jw-sp-cta-btns a { width: 100%; }
  .jw-sp-related { padding: 0 16px 48px; }
  .jw-related-grid,
  .jw-sp-related-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   FONT SIZE CONTROLS — A−/A/A+ toggle in breadcrumb
══════════════════════════════════════ */
.jw-font-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.jw-font-controls-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--jw-text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 6px;
}
.jw-font-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--jw-border);
  background: var(--jw-white);
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  color: var(--jw-text-soft);
  transition: border-color .15s, background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.jw-font-btn:hover {
  border-color: var(--jw-orange);
  color: var(--jw-orange);
}
.jw-font-btn--active {
  background: var(--jw-navy);
  border-color: var(--jw-navy);
  color: #fff;
}
.jw-font-btn[data-jw-size="small"]  { font-size: 10px; }
.jw-font-btn[data-jw-size="medium"] { font-size: 13px; }
.jw-font-btn[data-jw-size="large"]  { font-size: 16px; }


/* ══════════════════════════════════════
   Q&A HERO CTA BUTTON + FEATURED CARD (no question header)
══════════════════════════════════════ */
.jw-qa-hero-cta {
  margin-top: 18px;
  position: relative;
}
.jw-qa-hero-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--jw-orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
  position: relative;
  transition: color .15s;
}
.jw-qa-hero-link:hover { color: var(--jw-orange-lt); }
.jw-qa-hero-link::after {
  content: ' →';
  font-weight: 600;
}
.jw-qa-card--featured .jw-qa-answer {
  padding: 24px;
  border-top: none;
}

/* ══════════════════════════════════════
   WPFORMS SHORTCODE styling inside the Q&A submit box
══════════════════════════════════════ */
.jw-qa-form-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.jw-qa-form-wrap .wpforms-container {
  margin: 0 !important;
}
.jw-qa-form-wrap .wpforms-form {
  background: transparent;
}
.jw-qa-form-wrap .wpforms-field {
  padding: 0 0 14px !important;
}
.jw-qa-form-wrap .wpforms-field-label,
.jw-qa-form-wrap .wpforms-field label {
  color: rgba(255,255,255,.7) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
.jw-qa-form-wrap .wpforms-field-required-indicator,
.jw-qa-form-wrap .wpforms-field label .wpforms-required {
  color: var(--jw-orange) !important;
}
.jw-qa-form-wrap .wpforms-field input[type="text"],
.jw-qa-form-wrap .wpforms-field input[type="email"],
.jw-qa-form-wrap .wpforms-field input[type="tel"],
.jw-qa-form-wrap .wpforms-field input[type="url"],
.jw-qa-form-wrap .wpforms-field textarea,
.jw-qa-form-wrap .wpforms-field select {
  background: rgba(255,255,255,.08) !important;
  border: 1.5px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: 'Montserrat', sans-serif !important;
  width: 100% !important;
  outline: none !important;
}
.jw-qa-form-wrap .wpforms-field input::placeholder,
.jw-qa-form-wrap .wpforms-field textarea::placeholder {
  color: rgba(255,255,255,.4) !important;
}
.jw-qa-form-wrap .wpforms-field input:focus,
.jw-qa-form-wrap .wpforms-field textarea:focus {
  border-color: var(--jw-orange) !important;
  background: rgba(255,255,255,.12) !important;
}
.jw-qa-form-wrap .wpforms-submit-container {
  padding: 4px 0 0 !important;
  text-align: center !important;
}
.jw-qa-form-wrap .wpforms-submit {
  background: var(--jw-orange) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 24px !important;
  border: none !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  cursor: pointer !important;
  transition: background .15s !important;
}
.jw-qa-form-wrap .wpforms-submit:hover {
  background: var(--jw-orange-lt) !important;
}
.jw-qa-form-wrap .wpforms-error {
  color: #ffb088 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}
.jw-qa-form-wrap .wpforms-confirmation-container {
  background: rgba(255,255,255,.08) !important;
  border: 1.5px solid rgba(232,119,34,.4) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  color: #fff !important;
}

/* ══════════════════════════════════════
   WORKSHEET — library plug strip below related grid
══════════════════════════════════════ */
.jw-related-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--jw-border);
  text-align: center;
}
.jw-related-cta-text {
  width: 100%;
  font-size: 13px;
  color: var(--jw-text-soft);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════
   FONT SIZE — continuous step multiplier
   JS sets html.jw-fs-N where N is the step (positive or negative).
   Multiplier scales body-text targets only; UI chrome stays fixed.
══════════════════════════════════════ */
:root { --jw-fs-mult: 1; }
html.jw-fs--3 { --jw-fs-mult: 0.78; }
html.jw-fs--2 { --jw-fs-mult: 0.85; }
html.jw-fs--1 { --jw-fs-mult: 0.92; }
html.jw-fs-1  { --jw-fs-mult: 1.13; }
html.jw-fs-2  { --jw-fs-mult: 1.27; }
html.jw-fs-3  { --jw-fs-mult: 1.40; }
html.jw-fs-4  { --jw-fs-mult: 1.55; }
html.jw-fs-5  { --jw-fs-mult: 1.70; }
html.jw-fs-6  { --jw-fs-mult: 1.85; }
html.jw-fs-7  { --jw-fs-mult: 2.00; }

html .jw-vid-desc,
html .jw-vid-desc p { font-size: calc(14px * var(--jw-fs-mult, 1)); }
html .jw-ws-desc,
html .jw-ws-desc p { font-size: calc(14px * var(--jw-fs-mult, 1)); }
html .jw-qa-body,
html .jw-qa-body p { font-size: calc(14px * var(--jw-fs-mult, 1)); line-height: 1.8; }
html .jw-sp-article-inner,
html .jw-sp-article-inner p { font-size: calc(15px * var(--jw-fs-mult, 1)); line-height: 1.85; }
html .jw-academy-text { font-size: calc(13px * var(--jw-fs-mult, 1)); }
html .jw-vmb-text { font-size: calc(13px * var(--jw-fs-mult, 1)); }
html .jw-vid-resources td { font-size: calc(13px * var(--jw-fs-mult, 1)); }

/* ══════════════════════════════════════
   STICKY BREADCRUMB BAR
══════════════════════════════════════ */
.jw-breadcrumb {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* ══════════════════════════════════════
   SHORT VIDEO PLAYER FACADE
   Custom poster + center play button. Iframe stays in its wrapper;
   on click we just reveal the wrapper and let YouTube/Vimeo take over.
══════════════════════════════════════ */
.jw-vid-player {
  cursor: pointer;
  background: var(--jw-navy);
}
.jw-vid-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  background: var(--jw-navy);
}
.jw-vid-poster-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--jw-navy) 0%, var(--jw-navy-light) 100%);
  z-index: 2;
}
.jw-vid-play-btn-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--jw-orange);
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
  transition: transform .18s, background .18s;
  padding: 0;
}
.jw-vid-play-btn-large:hover,
.jw-vid-player:hover .jw-vid-play-btn-large {
  background: var(--jw-orange-lt);
  transform: translate(-50%, -50%) scale(1.08);
}
.jw-vid-play-btn-large .jw-play-icon {
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
  margin-left: 6px;
}

/* The iframe wrapper — hidden until the user clicks play. */
.jw-vid-embed-source {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.jw-vid-embed-source > *,
.jw-vid-embed-source figure,
.jw-vid-embed-source .wp-block-embed,
.jw-vid-embed-source .wp-block-embed__wrapper {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jw-vid-embed-source iframe,
.jw-vid-embed-source video,
.jw-vid-embed-source object,
.jw-vid-embed-source embed {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  display: block !important;
}

/* Playing state — hide overlay, show iframe wrapper */
.jw-vid-player--playing .jw-vid-poster,
.jw-vid-player--playing .jw-vid-poster-empty,
.jw-vid-player--playing .jw-vid-play-btn-large {
  display: none !important;
}
.jw-vid-player--playing .jw-vid-embed-source {
  display: block !important;
}

/* Mobile play button */
@media (max-width: 680px) {
  .jw-vid-play-btn-large { width: 64px; height: 64px; }
  .jw-vid-play-btn-large .jw-play-icon {
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 20px;
    margin-left: 4px;
  }
}


/* ══════════════════════════════════════
   STUDY PLAN — SHORT VIDEOS CARD GRID
══════════════════════════════════════ */
.jw-sp-shortvids-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.jw-sp-shortvid-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.jw-sp-shortvid-card:hover {
  border-color: var(--jw-orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13,34,64,.12);
}
.jw-sp-shortvid-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--jw-navy);
  overflow: hidden;
}
.jw-sp-shortvid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.jw-sp-shortvid-card:hover .jw-sp-shortvid-img {
  transform: scale(1.04);
}
.jw-sp-shortvid-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--jw-navy) 0%, var(--jw-navy-light) 100%);
}
.jw-sp-shortvid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--jw-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.32);
  transition: transform .18s, background .18s;
}
.jw-sp-shortvid-card:hover .jw-sp-shortvid-play {
  background: var(--jw-orange-lt);
  transform: translate(-50%, -50%) scale(1.1);
}
.jw-sp-shortvid-play .jw-play-icon {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #fff;
  margin-left: 4px;
  display: block;
}
.jw-sp-shortvid-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--jw-navy);
  line-height: 1.4;
  padding: 16px 18px;
}

/* ══════════════════════════════════════
   BIBLE Q&A — 2-column page layout (matches Short Video)
══════════════════════════════════════ */
.jw-qa-page {
  background: var(--jw-off-white);
}
.jw-qa-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 16px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: flex-start;
}
.jw-qa-main {
  min-width: 0;
}
.jw-qa-sidebar {
  min-width: 0;
}
.jw-qa-ask-wrap {
  background: var(--jw-off-white);
  padding: 16px 24px 64px;
}
.jw-qa-ask-wrap .jw-qa-ask {
  max-width: 1080px;
  margin: 0 auto;
}

/* Q letter icon — used in the "More Questions Answered" sidebar list */
.jw-vs-thumb--qa {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--jw-orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jw-vs-thumb-letter {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--jw-orange);
}

/* ══════════════════════════════════════
   BLOG POST — single.php
══════════════════════════════════════ */
.jw-single--blog { background: var(--jw-off-white); }

.jw-blog-hero {
  background: var(--jw-navy);
  padding: 56px 32px 52px;
  position: relative;
  overflow: hidden;
}
.jw-blog-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(232,119,34,.14) 0%, transparent 60%);
  pointer-events: none;
}
.jw-blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.jw-blog-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,119,34,.16);
  border: 1px solid rgba(232,119,34,.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 800;
  color: var(--jw-orange-lt);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 22px;
}
.jw-blog-cat-tag {
  font-size: 9px;
  background: var(--jw-orange);
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: .06em;
}
.jw-blog-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}
.jw-blog-title em { font-style: italic; color: var(--jw-orange-lt); }
.jw-blog-deck {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin: 0;
}

.jw-blog-body {
  background: var(--jw-off-white);
  padding: 48px 32px;
}
.jw-blog-inner {
  max-width: 720px;
  margin: 0 auto;
}
.jw-blog-featured {
  margin: 0 0 28px;
}
.jw-blog-featured-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.jw-blog-content {
  font-size: 14px;
  color: var(--jw-text);
  line-height: 1.85;
}
.jw-blog-content p {
  font-size: 14px;
  color: var(--jw-text);
  line-height: 1.85;
  margin: 0 0 18px;
}
.jw-blog-content h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 36px 0 14px;
}
.jw-blog-content h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 28px 0 12px;
}
.jw-blog-content blockquote {
  border-left: 3px solid var(--jw-orange);
  background: var(--jw-orange-pale);
  padding: 16px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  color: var(--jw-text);
  line-height: 1.7;
}
.jw-blog-content blockquote p:last-child { margin-bottom: 0; }
.jw-blog-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--jw-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.jw-blog-content ul,
.jw-blog-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
.jw-blog-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.jw-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 14px 0;
}
.jw-blog-content a {
  color: var(--jw-orange);
  font-weight: 600;
  text-decoration: underline;
}
.jw-blog-content strong { color: var(--jw-navy); }
.jw-blog-content .wp-block-embed {
  margin: 18px 0;
}

.jw-blog-tags {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--jw-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.jw-blog-tags-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--jw-text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 4px;
}
.jw-blog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--jw-light);
  color: var(--jw-navy);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.jw-blog-tag:hover { background: var(--jw-orange); color: #fff; }

/* Centered Academy plug between body and related */
.jw-blog-academy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 32px 0;
}
.jw-sp-academy-wrap,
.jw-blog-academy-wrap { padding-bottom: 0; }

/* Blog related */
.jw-blog-related {
  background: var(--jw-off-white);
  padding: 48px 24px 64px;
  margin-top: 32px;
}
.jw-blog-related-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.jw-blog-related-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--jw-navy);
  text-align: center;
  margin-bottom: 24px;
}
.jw-blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.jw-blog-related-card {
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.jw-blog-related-card:hover {
  border-color: var(--jw-orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,34,64,.08);
}
.jw-blog-related-img-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--jw-light);
}
.jw-blog-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jw-blog-related-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.jw-blog-related-cat {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--jw-orange);
  margin-bottom: 8px;
}
.jw-blog-related-h {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--jw-navy);
  line-height: 1.35;
  margin: 0 0 8px;
}
.jw-blog-related-x {
  font-size: 12px;
  color: var(--jw-text-soft);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}
.jw-blog-related-cta {
  font-size: 10px;
  font-weight: 700;
  color: var(--jw-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Apply font-size multiplier to Blog body too */
html .jw-blog-content,
html .jw-blog-content p { font-size: calc(14px * var(--jw-fs-mult, 1)); }
html .jw-sp-body-content,
html .jw-sp-body-content p { font-size: calc(15px * var(--jw-fs-mult, 1)); }

/* ══════════════════════════════════════
   RESPONSIVE — additions for new layouts
══════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Q&A page collapses to single column */
  .jw-qa-layout {
    grid-template-columns: 1fr;
  }
  .jw-qa-sidebar { order: 2; }

  /* Study Plan: hero stacks, layout collapses */
  .jw-sp-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .jw-sp-hero-image {
    max-width: 220px;
    margin: 0 auto;
  }
  .jw-sp-includes {
    text-align: left;
  }
  .jw-sp-hero-jumps {
    justify-content: center;
  }
  .jw-sp-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .jw-sp-toc {
    position: static;
    order: -1;
  }
  .jw-sp-getstarted-card {
    flex-basis: 100%;
  }
  .jw-sp-tab-btn {
    flex-basis: 100%;
    border-radius: 10px;
    border-bottom: 1.5px solid var(--jw-border);
  }
  .jw-sp-tab-btn--active { border-color: var(--jw-orange); }
  .jw-sp-tab-panels {
    border-radius: 10px;
    margin-top: 10px;
  }
  .jw-sp-related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .jw-sp-shortvids-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jw-blog-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .jw-qa-layout { padding: 20px 16px 12px; gap: 18px; }
  .jw-qa-ask-wrap { padding: 12px 16px 48px; }

  .jw-sp-hero { padding: 40px 20px 36px; }
  .jw-sp-content { padding: 28px 16px 48px; }
  .jw-sp-section { padding: 24px 20px; }
  .jw-sp-body-content { padding: 24px 22px; }
  .jw-sp-tab-panels { padding: 18px; }
  .jw-sp-workbook-iframe { height: 460px; }
  .jw-sp-related-grid { grid-template-columns: 1fr; }
  .jw-sp-shortvids-grid { grid-template-columns: 1fr; }

  .jw-blog-hero { padding: 40px 20px 36px; }
  .jw-blog-body { padding: 32px 20px; }
  .jw-blog-related { padding: 32px 16px 48px; }
  .jw-blog-related-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   RESOURCE FUNNEL TEMPLATE
   (template-resource-funnel.php)
══════════════════════════════════════ */

/* Hero */
.jw-rf-hero {
  position: relative;
  background: var(--jw-navy);
  padding: 48px 24px 44px;
  text-align: center;
  overflow: hidden;
}
.jw-rf-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 75% at 50% 0%, rgba(232,119,34,.16) 0%, transparent 62%);
  pointer-events: none;
}
.jw-rf-hero-inner { position: relative; max-width: 620px; margin: 0 auto; }
.jw-rf-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  background: rgba(232,119,34,.14);
  border: 1px solid rgba(232,119,34,.32);
  color: var(--jw-orange-lt);
  margin-bottom: 16px;
}
.jw-rf-hero-icon svg { width: 28px; height: 28px; }
.jw-rf-hero-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--jw-orange);
  margin-bottom: 10px;
}
.jw-rf-hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 10px;
}
.jw-rf-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  margin: 0;
}

/* Main column header */
.jw-rf-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.jw-rf-main-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 0 0 4px;
}
.jw-rf-main-note {
  font-size: 13px;
  color: var(--jw-text-soft);
  margin: 0;
}
.jw-rf-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--jw-orange);
  background: var(--jw-orange-pale);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 8px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.jw-rf-refresh:hover {
  background: #ffe7d1;
  border-color: rgba(232,119,34,.3);
  color: var(--jw-orange);
}
.jw-rf-refresh-ic { font-size: 15px; line-height: 1; }

/* Resource list */
.jw-rf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.jw-rf-card {
  display: flex;
  background: var(--jw-white);
  border: 1px solid var(--jw-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.jw-rf-card:hover {
  border-color: var(--jw-orange);
  box-shadow: 0 10px 26px rgba(13,34,64,.09);
  transform: translateY(-2px);
}
.jw-rf-card-thumb {
  position: relative;
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(150deg, var(--jw-navy) 0%, var(--jw-navy-light) 100%);
  overflow: hidden;
}
.jw-rf-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jw-rf-card-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.42);
}
.jw-rf-card-thumb-ph svg { width: 32px; height: 32px; }
.jw-rf-card-body {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.jw-rf-card-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--jw-orange);
  margin-bottom: 5px;
}
.jw-rf-card-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--jw-navy);
  line-height: 1.35;
  margin: 0 0 6px;
  transition: color .15s;
}
.jw-rf-card:hover .jw-rf-card-title { color: var(--jw-orange); }
.jw-rf-card-excerpt {
  font-size: 12.5px;
  color: var(--jw-text-soft);
  line-height: 1.6;
  margin: 0 0 12px;
}
.jw-rf-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jw-rf-card-meta { font-size: 11px; color: var(--jw-text-hint); }
.jw-rf-card-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--jw-orange);
  white-space: nowrap;
}

/* Empty state */
.jw-rf-empty {
  background: var(--jw-white);
  border: 1px dashed var(--jw-border);
  border-radius: 12px;
  padding: 44px 26px;
  text-align: center;
  margin-bottom: 24px;
}
.jw-rf-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--jw-orange-pale);
  color: var(--jw-orange);
  margin-bottom: 14px;
}
.jw-rf-empty-icon svg { width: 26px; height: 26px; }
.jw-rf-empty-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--jw-navy);
  margin: 0 0 6px;
}
.jw-rf-empty-text {
  font-size: 13px;
  color: var(--jw-text-soft);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* Sidebar — other resource types */
.jw-rf-type { align-items: center; }
.jw-rf-type-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--jw-orange-pale);
  color: var(--jw-orange);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.jw-rf-type-ic svg { width: 19px; height: 19px; }
.jw-rf-type:hover .jw-rf-type-ic { background: var(--jw-orange); color: #fff; }
.jw-rf-type .jw-vs-vtitle { display: block; margin-bottom: 2px; }
.jw-rf-type-desc {
  display: block;
  font-size: 11px;
  color: var(--jw-text-hint);
  line-height: 1.45;
}

@media (max-width: 680px) {
  .jw-rf-hero { padding: 38px 20px 34px; }
  .jw-rf-card-thumb { width: 200px; }
  .jw-rf-card-body { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .jw-rf-card { flex-direction: column; }
  .jw-rf-card-thumb { width: 100%; aspect-ratio: 16 / 10; }
}

/* ══════════════════════════════════════
   SHUFFLE → ACADEMY POPUP
══════════════════════════════════════ */
.jw-rf-pop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.jw-rf-pop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.jw-rf-pop-bg {
  position: absolute;
  inset: 0;
  background: rgba(13, 34, 64, .66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.jw-rf-pop-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  padding: 42px 34px 30px;
  text-align: center;
  box-shadow: 0 40px 90px -22px rgba(13, 34, 64, .6);
  transform: scale(.84);
  transition: transform .34s cubic-bezier(.2, 1, .3, 1);
}
.jw-rf-pop.is-open .jw-rf-pop-box { transform: scale(1); }
.jw-rf-pop-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 34, 64, .07);
  color: var(--jw-text-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.jw-rf-pop-x:hover { background: rgba(13, 34, 64, .14); }
.jw-rf-pop-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--jw-orange-pale);
  color: var(--jw-orange);
  margin-bottom: 18px;
}
.jw-rf-pop-ic svg { width: 30px; height: 30px; }
.jw-rf-pop-box h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--jw-navy);
  line-height: 1.3;
  margin: 0 0 10px;
}
.jw-rf-pop-box p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--jw-text-soft);
  margin: 0 0 24px;
}
.jw-rf-pop-box p strong { color: var(--jw-navy); font-weight: 700; }
.jw-rf-pop-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.jw-rf-pop-no {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--jw-text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jw-rf-pop-no:hover { color: var(--jw-orange); }
@media (prefers-reduced-motion: reduce) {
  .jw-rf-pop, .jw-rf-pop-box { transition: none; }
}
