/* ===========================================================
   Awakenn — guides.css
   Generated-page (guides, devotions, hubs) article styles.
   Reuses site.css tokens/vars; does not modify site.css.
   =========================================================== */

.article-head {
  padding: 88px 0 40px;
}
.article-head .eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--aw-mk-bg-ink);
  opacity: 0.55;
  margin: 0 0 24px;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover { opacity: 0.8; text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

.article-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--aw-mk-bg-ink);
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.article-updated {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--aw-mk-bg-ink);
  opacity: 0.55;
}

/* Readable column */
.article-body {
  max-width: 68ch;
  margin: 0 auto;
  padding: 8px 0 72px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 48px 0 18px;
  color: var(--aw-mk-bg-ink);
  scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p,
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--aw-mk-bg-ink);
  opacity: 0.85;
}
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin: 0 0 22px;
  list-style: none;
}
.article-body li { margin-bottom: 8px; }
/* Custom markers (craft checklist §3.2) — a clay tick for unordered lists,
   a display-face numeral for ordered ones, instead of browser defaults. */
.article-body ul li {
  position: relative;
  padding-left: 4px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.7em;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--aw-mk-bg-clay);
}
.article-body ol {
  counter-reset: article-ol;
}
.article-body ol li {
  counter-increment: article-ol;
  position: relative;
  padding-left: 4px;
}
.article-body ol li::before {
  content: counter(article-ol);
  position: absolute;
  left: -26px;
  top: -0.05em;
  font-family: var(--font-display);
  font-size: 0.95em;
  font-style: italic;
  color: var(--aw-mk-bg-clay);
}
.article-body strong { font-weight: 600; opacity: 1; }
.article-body a {
  color: var(--aw-mk-bg-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Verse blockquote */
.article-body blockquote,
.verse-quote {
  margin: 8px 0 36px;
  padding: 24px 28px;
  border-left: 3px solid var(--aw-mk-bg-ochre-deep);
  background: rgba(197, 136, 78, 0.08);
  border-radius: 0 12px 12px 0;
}
.article-body blockquote p,
.verse-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.5;
  color: var(--aw-mk-bg-ink);
  opacity: 0.92;
  margin: 0;
}

/* End-of-page CTA block */
.article-cta {
  margin: 56px 0 8px;
  padding: 48px 40px;
  border-radius: 24px;
  background: var(--aw-mk-bg-ink);
  color: var(--aw-mk-bg-paper);
  text-align: center;
}
.article-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--aw-mk-bg-paper);
  margin: 0 0 14px;
}
.article-cta p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--aw-mk-bg-paper);
  opacity: 0.75;
  max-width: 44ch;
  margin: 0 auto 28px;
}
.article-cta .btn-primary {
  background: var(--aw-mk-bg-paper);
  color: var(--aw-mk-bg-ink);
}
.article-cta .store-badge {
  display: inline-flex;
  padding: 0;
  background: none;
}
.article-cta .store-badge img { height: 48px; width: auto; display: block; }

/* Subordinate email offer inside the article CTA (App Store badge is
   primary per §5 CTA table; this form is the secondary, quiet way). */
.article-cta-offer {
  margin: 28px auto 0;
  max-width: 44ch;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  text-align: left;
}
.article-cta-offer-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aw-mk-bg-paper);
  opacity: 0.55;
  margin: 0 0 12px;
}
.article-cta-offer .form-promise {
  color: var(--aw-mk-bg-paper);
  opacity: 0.75;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.article-cta-offer form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-cta-offer input[type=email] {
  flex: 1 1 220px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--aw-mk-bg-paper);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms var(--ease-out);
}
.article-cta-offer input[type=email]:focus { border-color: var(--aw-mk-bg-paper); }
.article-cta-offer input[type=email]::placeholder { color: rgba(255,255,255,0.45); }
.article-cta-offer .btn-primary {
  background: var(--aw-mk-bg-paper);
  color: var(--aw-mk-bg-ink);
}
.article-cta-offer [data-status] {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.75;
  flex-basis: 100%;
}
.article-cta-offer .form-privacy {
  flex-basis: 100%;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 8px 0 0;
}
.article-cta-offer .form-privacy a { color: inherit; text-decoration: underline; }

/* ── Guide slide-in (guides only, T9 / spec §6) ───────────────────────
   Bottom-right card on desktop, bottom sheet (≤30vh) on mobile. Shown/
   hidden purely via [hidden] + .in — no motion when the visitor
   prefers-reduced-motion (site.js never adds .in in that case). */
.slidein {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 380px;
  margin-left: auto;
  background: var(--aw-mk-bg-ink);
  color: var(--aw-mk-bg-paper);
  border-radius: 20px;
  padding: 24px 24px 20px;
  /* elevation scale (craft checklist §3.2): ink-tinted, not gray/black. */
  box-shadow: var(--shadow-ink);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out);
}
.slidein.in { transform: translateY(0); opacity: 1; }
.slidein[hidden] { display: none; }
.slidein-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--aw-mk-bg-paper);
  opacity: 0.6;
  cursor: pointer;
  flex-shrink: 0;
}
.slidein-close:hover { opacity: 1; }
.slidein-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aw-mk-bg-paper);
  opacity: 0.55;
  margin: 0 0 10px;
}
.slidein-body .form-promise {
  color: var(--aw-mk-bg-paper);
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.slidein-body form { display: flex; gap: 10px; flex-wrap: wrap; }
.slidein-body input[type=email] {
  flex: 1 1 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--aw-mk-bg-paper);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.slidein-body input[type=email]:focus { border-color: var(--aw-mk-bg-paper); }
.slidein-body input[type=email]::placeholder { color: rgba(255,255,255,0.45); }
.slidein-body .btn-primary {
  background: var(--aw-mk-bg-paper);
  color: var(--aw-mk-bg-ink);
  flex: 1 1 100%;
}
.slidein-body [data-status] {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}
.slidein-body .form-privacy {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 8px 0 0;
}
.slidein-body .form-privacy a { color: inherit; text-decoration: underline; }

@media (max-width: 640px) {
  .slidein {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
    /* Deliberate deviation from spec §6's ≤30vh guideline: on common phone
       viewports 30vh clips the form's submit button and required privacy
       line below a nested scroll fold, and the absolutely-positioned close
       button scrolled out of reach with them — an undismissable popup.
       Floors (a reachable 44px close control + the required privacy line
       must be visible) outrank the guideline, so the cap is raised just
       enough to fit the content without a nested fold in the common case. */
    max-height: min(80vh, 380px);
    overflow-y: auto;
  }
  .slidein-close {
    position: sticky;
    top: 8px;
    display: block;
    margin: -6px -6px 0 auto;
  }
}

/* Related links footer section (guides) */
.related-section {
  margin: 8px 0 0;
  padding-top: 36px;
  border-top: 1px solid rgba(27,23,20,0.14);
}
.related-section h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--aw-mk-bg-ink);
  opacity: 0.55;
  margin: 0 0 18px;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.related-list a {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--aw-mk-bg-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(27,23,20,0.14);
  padding-bottom: 4px;
  display: inline-block;
}
.related-list a:hover { border-color: var(--aw-mk-bg-ink); }

/* Hub excerpt list */
.hub-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hub-list li {
  border-bottom: 1px solid rgba(27,23,20,0.12);
  padding: 22px 0;
}
.hub-list a {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  color: var(--aw-mk-bg-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.hub-list a:hover { text-decoration: underline; }
.hub-list .verse-ref {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--aw-mk-bg-ink);
  opacity: 0.55;
}
.hub-list .hub-desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--aw-mk-bg-ink);
  opacity: 0.78;
}

/* Guides index cards */
.guides-index-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.guides-index-list li {
  border: 1px solid rgba(27,23,20,0.1);
  border-radius: 18px;
  padding: 28px 32px;
}
.guides-index-list a {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 28px);
  color: var(--aw-mk-bg-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.guides-index-list a:hover { text-decoration: underline; }
.guides-index-list p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--aw-mk-bg-ink);
  opacity: 0.78;
  max-width: 60ch;
}

@media (max-width: 720px) {
  .article-cta { padding: 36px 24px; }
}
