/*--------------------------------------------------------------
/* Bible Study Worksheet page (/bible-study-worksheet/)
/* Loaded after style.css. Every selector is scoped to .bsw-* so no other page is affected.
--------------------------------------------------------------*/

.bsw {
  /* Primitives (from style.css :root and the puzzle-solutions caption colour) */
  --bsw-sand-500: #C5A992;
  --bsw-olive-700: #74642f;
  --bsw-charcoal-800: #2f2f2f;
  --bsw-grey-600: #666666;
  --bsw-stone-100: #F3F2EC;

  /* Semantic */
  --bsw-ink: var(--bsw-charcoal-800);
  --bsw-text: var(--bsw-grey-600);
  --bsw-accent: var(--bsw-sand-500);
  --bsw-accent-ink: var(--bsw-olive-700);
  --bsw-page: var(--bsw-stone-100);
  --bsw-shadow: 0 1px 2px rgba(70, 56, 40, 0.06), 0 12px 36px rgba(70, 56, 40, 0.12);
  /* Full Colour's stone background blends into the page, so it gets a white edge and glow instead */
  --bsw-shadow-light: 0 0 0 1px #ffffff, 0 0 28px 10px rgba(255, 255, 255, 0.95), 0 0 100px 30px rgba(255, 255, 255, 0.6);
  --bsw-focus: 0 0 0 3px var(--bsw-page), 0 0 0 5px var(--bsw-accent-ink);

  --bsw-space-1: 4px;
  --bsw-space-2: 8px;
  --bsw-space-3: 12px;
  --bsw-space-4: 16px;
  --bsw-space-5: 24px;
  --bsw-space-6: 32px;
  --bsw-space-7: 48px;
  --bsw-space-8: 64px;
  --bsw-space-9: 96px;

  --bsw-radius-sm: 6px;
  --bsw-radius-pill: 30px;

  color: var(--bsw-text);
}

/* ---------- Layout ---------- */

.bsw-hero {
  padding: var(--bsw-space-7) 0 var(--bsw-space-9);
}

/* The steps share a row with the download button, so both start at the same height */
.bsw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  grid-template-areas:
    "intro preview"
    "steps download";
  column-gap: var(--bsw-space-8);
  row-gap: var(--bsw-space-5);
  align-items: start;
}

.bsw-intro {
  grid-area: intro;
}

.bsw-preview,
.bsw-download-block {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.bsw-preview {
  grid-area: preview;
}

.bsw-download-block {
  grid-area: download;
}

.bsw-steps-block {
  grid-area: steps;
}

/* ---------- Intro ---------- */

.bsw-eyebrow {
  margin: 0 0 var(--bsw-space-3);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bsw-accent-ink);
}

.bsw-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.943rem + 1.364vw, 3rem);
  line-height: 1.2;
  color: var(--bsw-ink);
}

.bsw-subtitle {
  margin: var(--bsw-space-4) 0 0;
  font-size: 18px;
  line-height: 32px;
  color: var(--bsw-text);
}

.bsw-lead {
  max-width: 34em;
  margin: var(--bsw-space-4) 0 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--bsw-text);
}

.bsw-styles {
  margin-top: var(--bsw-space-6);
}

.bsw-styles-label {
  margin: 0 0 var(--bsw-space-3);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--bsw-ink);
}

.bsw-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bsw-space-3);
  max-width: 520px;
}

/* ---------- Buttons ---------- */

.bsw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  /* Buttons stretch to fill their grid cell, so narrow side padding only stops "White without frame" wrapping */
  padding: var(--bsw-space-3) var(--bsw-space-3);
  border: 1px solid var(--bsw-ink);
  border-radius: var(--bsw-radius-pill);
  background-color: transparent;
  color: var(--bsw-ink);
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  /* style.css gives every <button> height: 65px and white-space: nowrap; keep these the same size as the links */
  height: auto;
  white-space: normal;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.bsw-btn:active {
  box-shadow: none;
}

.bsw-btn--primary,
.bsw-btn[aria-pressed="true"] {
  border-color: var(--bsw-ink);
  background-color: var(--bsw-ink);
  color: #fff;
}

/* Every button hovers like the navbar "Read Online" button (style.css .navbar-right .button:hover).
   Kept after the filled states above so it wins for them too. */
.bsw-btn:hover {
  border-color: var(--bsw-accent);
  background-color: transparent;
  color: var(--bsw-accent);
}

/* The selected style is already active, so it doesn't react to hover */
.bsw-btn[aria-pressed="true"],
.bsw-btn[aria-pressed="true"]:hover {
  border-color: var(--bsw-ink);
  background-color: var(--bsw-ink);
  color: #fff;
  transform: none;
  cursor: default;
}

.bsw-btn:focus-visible,
.bsw-preview-link:focus-visible {
  outline: none;
  box-shadow: var(--bsw-focus);
}

/* ---------- Preview ---------- */

.bsw-preview-link {
  display: block;
  border-radius: var(--bsw-radius-sm);
  cursor: zoom-in;
}

.bsw-preview-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--bsw-radius-sm);
  box-shadow: var(--bsw-shadow);
}

.bsw-preview[data-preview-style="full-colour"] .bsw-preview-link img {
  box-shadow: var(--bsw-shadow-light);
}

.bsw-download {
  display: flex;
  width: 100%;
}

.bsw-note {
  margin: var(--bsw-space-3) 0 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--bsw-text);
}

/* ---------- Four steps (numbered timeline, dotted line) ---------- */

.bsw-steps-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.347rem + 0.682vw, 1.875rem);
  line-height: 1.2;
  text-transform: none;
  color: var(--bsw-ink);
}

.bsw-prayer-title {
  margin: var(--bsw-space-5) 0 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-transform: none;
  color: var(--bsw-ink);
}

.bsw-prayer {
  max-width: 34em;
  margin: var(--bsw-space-1) 0 var(--bsw-space-6);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 30px;
  color: var(--bsw-accent-ink);
}

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

.bsw-step {
  position: relative;
  margin: 0;
  padding: 0 0 var(--bsw-space-6) 56px;
}

.bsw-step:last-child {
  padding-bottom: 0;
}

/* Dotted connector from this circle to the next one; the last step has none */
.bsw-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: var(--bsw-space-2);
  left: 17px;
  border-left: 2px dotted var(--bsw-accent);
}

.bsw-step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bsw-accent);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-size: 16px;
  line-height: 1;
  color: var(--bsw-ink);
}

.bsw-step-title {
  margin: 0;
  padding-top: 6px;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: none;
  color: var(--bsw-ink);
}

.bsw-step-ref {
  margin-left: var(--bsw-space-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bsw-accent-ink);
}

.bsw-step p {
  max-width: 34em;
  margin: var(--bsw-space-1) 0 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--bsw-text);
}

/* ---------- Responsive ---------- */

/* Stacked: keep the text blocks in the same centred column the site uses below 768px */
@media (max-width: 991.98px) {
  .bsw-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "preview"
      "download"
      "steps";
  }

  .bsw-intro,
  .bsw-steps-block {
    width: 100%;
    max-width: 492px;
    margin: 0 auto;
  }

  .bsw-btn-grid {
    max-width: none;
  }

  .bsw-preview,
  .bsw-steps-block {
    margin-top: var(--bsw-space-5);
  }
}

@media (max-width: 575.98px) {
  .bsw-hero {
    padding: var(--bsw-space-5) 0 var(--bsw-space-8);
  }

  .bsw-btn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

