/* Bible Studies menu refinements (approved 2026-11-19).
   Overlay on the existing library-nav CSS. Same selectors, slightly higher
   or equal specificity, later in the cascade. */

#swl-site-header,
#swl-mobile-dialog {
  --swl-gold-text: #f6e09a;
}

/* ----- Desktop panel: tighter so it fits a 1280x800 / 1366x768 laptop ----- */
#swl-site-header .swl-library-panel {
  padding: 14px 22px 0;
}

#swl-site-header .swl-panel-intro {
  margin-bottom: 10px;
}

#swl-site-header .swl-panel-intro h2 {
  font-size: 26px;
  line-height: 1.2;
}

/* Gold labels ~14px, slightly lighter gold */
:is(#swl-site-header, #swl-mobile-dialog) .swl-eyebrow,
#swl-site-header .swl-panel-intro .swl-eyebrow,
#swl-mobile-dialog .swl-mobile-dialog-head .swl-eyebrow {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 1.4px;
  color: #f6e09a;
  margin-bottom: 6px;
}

#swl-site-header .swl-featured .swl-eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #f6e09a;
}

#swl-site-header .swl-panel-body {
  gap: 16px;
  align-items: stretch;
}

#swl-site-header .swl-subject-grid {
  gap: 12px;
}

#swl-site-header .swl-subject-picture {
  height: 72px;
}

#swl-site-header .swl-subject-picture h3 {
  font-size: 18px;
  line-height: 1.15;
  bottom: 7px;
}

#swl-site-header .swl-subject-links {
  padding: 5px 10px 7px;
}

#swl-site-header .swl-subject-links a {
  min-height: 26px;
  font-size: 15px;
  line-height: 1.3;
}

/* Single, readable Explore CTA */
#swl-site-header .swl-subject-links .swl-all {
  font: 700 14px/1.35 Arial, sans-serif;
  color: #f6e09a;
  margin-top: 4px;
  min-height: 34px;
  padding-top: 7px;
  border-top: 1px solid #7e74553d;
}

#swl-site-header .swl-subject-links .swl-all:hover,
#swl-site-header .swl-panel-footer .swl-browse:hover {
  color: #ffe8a4;
}

/* Featured / promo column: outline button, slightly smaller cover */
#swl-site-header .swl-featured {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  box-sizing: border-box;
}

#swl-site-header .swl-featured img {
  width: 108px;
}

#swl-site-header .swl-featured h3 {
  font-size: 22px;
  margin: 8px 0 4px;
}

#swl-site-header .swl-featured p:not(.swl-eyebrow) {
  margin: 0 0 10px;
}

#swl-site-header .swl-featured .swl-featured-cta {
  margin-top: auto;
}

:is(#swl-site-header, #swl-mobile-dialog) .swl-featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 12px;
  text-align: center;
  font: 700 14px/1.3 Arial, sans-serif;
  letter-spacing: 0.3px;
  color: #f6e09a;
  background: transparent;
  border: 1px solid #e9c24d;
  box-shadow: none;
}

:is(#swl-site-header, #swl-mobile-dialog) .swl-featured-cta:hover {
  background: rgba(246, 224, 154, 0.12);
  color: #ffe8a4;
}

#swl-site-header .swl-panel-footer {
  padding: 10px 0;
  margin-top: 10px;
}

#swl-site-header .swl-panel-footer .swl-browse {
  font: 700 14px/1.4 Arial, sans-serif;
  color: #f6e09a;
}

/* Slightly narrower laptop, still no inner scrollbar */
@media (max-width: 1190px) {
  #swl-site-header .swl-subject-picture {
    height: 64px;
  }
  #swl-site-header .swl-subject-picture h3 {
    font-size: 16px;
  }
  #swl-site-header .swl-featured img {
    width: 96px;
  }
  #swl-site-header .swl-featured h3 {
    font-size: 20px;
  }
}

/* ----- Mobile dialog: simple tap-to-expand rows, not shrunken cards ----- */
#swl-mobile-dialog .swl-mobile-feature {
  margin: 14px 0 12px;
  padding: 12px;
  gap: 12px;
  text-align: left;
}

#swl-mobile-dialog .swl-mobile-feature > img {
  width: 64px;
}

#swl-mobile-dialog .swl-mobile-feature small {
  font: 700 12px/1.35 Arial, sans-serif;
  letter-spacing: 0.9px;
  color: #f6e09a;
}

#swl-mobile-dialog .swl-mobile-feature strong {
  font-size: 20px;
  margin: 4px 0;
}

#swl-mobile-dialog .swl-mobile-feature .swl-featured-cta {
  margin-top: 8px;
  min-height: 40px;
}

#swl-mobile-dialog .swl-mobile-subject summary {
  min-height: 52px;
  gap: 10px;
  padding: 6px 2px;
}

#swl-mobile-dialog .swl-mobile-subject summary img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border-radius: 2px;
}

#swl-mobile-dialog .swl-mobile-subject summary span {
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
}

#swl-mobile-dialog .swl-mobile-subject summary b {
  font-size: 20px;
  color: #f6e09a;
}

#swl-mobile-dialog .swl-mobile-choices {
  padding: 0 0 10px;
}

#swl-mobile-dialog .swl-mobile-choices a {
  text-align: left;
  padding: 10px 12px 10px 52px;
  font-size: 16px;
  line-height: 1.3;
}

#swl-mobile-dialog .swl-mobile-choices .swl-all {
  font: 700 14px/1.4 Arial, sans-serif;
  color: #f6e09a;
}

#swl-mobile-dialog .swl-mobile-choices .swl-all:hover {
  color: #ffe8a4;
}

#swl-mobile-dialog .swl-mobile-browse {
  /* Keep one solid gold action in the dialog (the header button is hidden). */
  font-size: 14px;
}

#swl-mobile-dialog .swl-mobile-dialog-head h2 {
  font-size: 22px;
}

#swl-mobile-dialog .swl-mobile-note {
  font-size: 13px;
  color: #d0d9df;
}


/* Win over ".swl-mobile-feature span span" (12px cream) */
#swl-mobile-dialog .swl-mobile-feature .swl-featured-cta {
  display: inline-flex;
  width: 100%;
  margin-top: 8px;
  min-height: 40px;
  padding: 9px 12px;
  box-sizing: border-box;
  text-align: center;
  font: 700 14px/1.3 Arial, sans-serif;
  letter-spacing: 0.3px;
  color: #f6e09a;
  background: transparent;
  border: 1px solid #e9c24d;
  box-shadow: none;
}
#swl-mobile-dialog .swl-mobile-feature .swl-featured-cta:hover {
  background: rgba(246, 224, 154, 0.12);
  color: #ffe8a4;
}


/* ===== Site sweep 2026-11-20: tap targets + tablet overlap (safe, visual only) ===== */
/* Made for Forever day navigation: lift links to a 44px touch target */
nav.mf-progress a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  box-sizing: border-box;
}
/* Made for Forever "mark complete" checkbox: larger hit area */
#mf-complete {
  width: 26px;
  height: 26px;
  margin: 9px;
  cursor: pointer;
}
/* Reader "back" links and the home study link: comfortable touch area */
.reader-back,
.sw-cinematic-lower a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* Bema Seat hero, tablet widths: keep the "Artistic rendering" caption clear of the byline/form */
@media (min-width: 601px) and (max-width: 1100px) {
  main .bema-hero > .bema-hero__copy { padding-bottom: 9rem !important; }
}



/* ===== Claude QC review 2026-11-20: touch-tablet nav label, Wall top gap, small tap targets (visual only) ===== */
/* S1: on touch screens a tap leaves the Bible Studies button in :hover, and the sitewide rule
   "button:is(:hover,:focus-visible,:active) :is(strong,small,b,span){color:#101621!important}"
   turns its label near-black on the dark header (the gold hover background only exists with a mouse).
   Restore the normal label colours on touch screens, open or closed. Keyboard focus is left as is. */
@media (hover: none) {
  #swl-site-header button.swl-nav-link:not(:focus-visible) :is(strong, span) { color: #fbf0d6 !important; }
  #swl-site-header button.swl-nav-link:not(:focus-visible) small { color: #e9cf8e !important; }
  #swl-site-header button.swl-nav-link[aria-expanded="true"]:not(:focus-visible) :is(strong, span) { color: #f4d477 !important; }
}
/* S5: older Wall dispatches (article.dpage) still carry 112px/152px top padding from the old fixed header.
   Must out-rank "body:has(.dpage) .dpage{padding-top:9.5rem}". The extras block on /wall/before-you-ask/ is left alone. */
body:has(.dpage) article.dpage:not(.bya-extras) { padding-top: 1.5rem; }
/* S8 (partial): bigger touch areas for source markers [1] and breadcrumb links, without moving the text line */
@media (hover: none), (max-width: 760px) {
  a.source-ref { display: inline-block; padding: 8px 4px; margin: -8px -2px; }
  .qc-breadcrumb a { display: inline-block; padding: 8px 0; margin: -8px 0; }
}
/* X1: the 20 /studies/ reading editions print the footer brand lines unstyled, flush to the left edge */
body[data-swl-section="studies"]:not([data-home-nav-standard]) footer > .foot-brand {
  text-align: center; padding: 28px 20px 0; font-family: "Cinzel", Georgia, serif; font-size: 18px; letter-spacing: .06em; color: #f0c84a;
}
body[data-swl-section="studies"]:not([data-home-nav-standard]) footer > .foot-sub {
  text-align: center; padding: 4px 20px 8px; font-size: 14px !important; line-height: 1.5 !important; color: #d0d9df;
}

/* E1/E2 2026-11-20: library-pass holders already have every resource, so hide the new reading-edition and mid-article invites for them. */
html.sw-library-unlocked .sw-inline-signup[data-sw-reader-invite],
html.sw-library-unlocked .sw-inline-signup[data-sw-mid-invite] { display: none !important; }
.sw-inline-signup[data-sw-reader-invite] { margin-top: 28px; margin-bottom: 28px; }
/* Keep the article's own text styles (drop caps, dark body text, heading rules) out of the new invite cards. */
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) { text-indent: 0 !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) h2 { color: #f4ecd6 !important; font: 600 clamp(22px, 4.2vw, 30px)/1.2 "Cinzel", Georgia, serif !important; margin: 0 0 .55rem !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; letter-spacing: normal !important; text-transform: none !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) h2::before,
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) h2::after { content: none !important; display: none !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) p { color: #e4dccb !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 17px !important; line-height: 1.55 !important; margin: 0 0 .8rem !important; text-align: left !important; max-width: none !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) p.sw-inline-signup__kicker { color: #f0c84a !important; font: 700 12.5px/1.3 "Cinzel", Georgia, serif !important; letter-spacing: .18em !important; text-transform: uppercase !important; margin: 0 0 .45rem !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) p.sw-library-join-copy,
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) p.sw-signup-expectations { color: #cfc8b6 !important; font-size: 16px !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) p.sw-signup-expectations { margin: .85rem 0 0 !important; font-size: 15px !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) p::first-letter { float: none !important; font: inherit !important; color: inherit !important; padding: 0 !important; margin: 0 !important; line-height: inherit !important; }
body .sw-inline-signup:is([data-sw-mid-invite],[data-sw-reader-invite]) a { color: #f0c84a !important; }


/* ===== Audit fixes 2026-11-22 (ChatGPT audit + Claude Nov 21 re-check). New file name on every edit. ===== */
/* S8: larger touch areas for the remaining footnote markers and the /topics/ breadcrumb, without moving the text line */
@media (hover: none), (max-width: 760px) {
  sup > a, a.ref { display: inline-block; padding: 8px 4px; margin: -8px -2px; }
  .swl-breadcrumb a { display: inline-block; padding: 8px 0; margin: -8px 0; }
}
/* S8: no running text under 12px on phones */
@media (max-width: 760px) {
  .swl-mast .swl-brand small, #swl-site-header .swl-mobile-actions .swl-gold,
  .sw-cinematic-count, .swl-count, p.cf-meta, p.cf-kicker, .guide-byline, p.sw-share-label,
  p.sw-offer__eyebrow, p.swb-kicker, article.dpage p.dby, blockquote cite, .guide-quote cite,
  .cornerstone .readmeta, .guide-card__kicker, .guide-breadcrumbs a, .guide-breadcrumbs span,
  .guide-article th, .sw-hero .sw-kicker, .sw-hero .sw-credit, .sw-hero figcaption,
  .sw-mff-kicker, .cf-latest figcaption, .wccat, .wcdate { font-size: 12px !important; }
}
/* R3: on tablet-landscape widths keep The Wall sub-label on one line (it wrapped into the open Bible Studies panel) */
@media (min-width: 901px) and (max-width: 1280px) {
  #swl-site-header .swl-nav-link[href="/wall/"] small { white-space: nowrap; font-size: 11.5px; letter-spacing: 0; }
}
/* S5 polish: trim the space above Wall and guide headlines */
body:has(.dpage) nav.dispatch-breadcrumb { margin-top: 0 !important; }
body header.guide-hero { padding-top: 64px !important; }
/* E1/E2: one-line invite (Made for Forever start/finish) and the /wall/ index invite */
.sw-inline-signup.sw-inline-signup--line { padding: 20px 22px; margin: 28px auto; max-width: 46rem; }
body .sw-inline-signup.sw-inline-signup--line p.sw-inline-signup__line { font-size: 18px !important; margin: 0 0 .7rem !important; color: #f4ecd6 !important; }
.wall-invite-wrap .sw-inline-signup { margin: 2rem 0; }
html.sw-library-unlocked .sw-inline-signup[data-sw-line-invite] { display: none !important; }
