/* Study guide page (free/study-guide folder). Builds on soon.css colors and book.css header, buttons and tokens. */
.guide-main { max-width: 860px; margin: 0 auto; padding: 0 20px clamp(56px, 9vw, 88px); }
.guide-main h2 { text-align: left; }

/* Hero */
.guide-hero { display: grid; gap: 28px; align-items: center; padding: clamp(36px, 7vw, 64px) 0 8px; text-align: center; }
.guide-hero h1 { font-size: clamp(2.3rem, 6.5vw, 3.4rem); line-height: 1.08; color: var(--espresso); margin: 0 0 0.3em; }
.guide-sub { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--earth); max-width: 38ch; margin: 0 auto 0.6em; }
.guide-by { font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.9rem; color: var(--earth); margin: 0 0 1.6em; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.guide-actions .button { border: 0; cursor: pointer; font-family: inherit; }
.guide-hero-cover { justify-self: center; line-height: 0; }
.guide-hero-cover .book-cover { width: min(200px, 52vw); }
@media (min-width: 768px) {
  .guide-hero { grid-template-columns: 1fr 220px; text-align: left; gap: 48px; }
  .guide-sub { margin-left: 0; }
  .guide-actions { justify-content: flex-start; }
  .guide-hero-cover .book-cover { width: 100%; }
}

/* Contents */
.guide-toc { margin-top: clamp(40px, 7vw, 64px); padding: var(--space-card); background: rgba(255, 250, 238, 0.7); border-top: 4px solid #9e541c; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(59, 42, 31, 0.06), 0 6px 20px rgba(59, 42, 31, 0.07); scroll-margin-top: 110px; }
.guide-toc h2 { font-size: clamp(1.9rem, 4.5vw, 2.3rem); color: var(--espresso); margin: 0 0 0.6em; }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .toc-list { grid-template-columns: 1fr 1fr; gap: 10px 20px; } }
.toc-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--espresso); line-height: 1.3; }
.toc-list a:hover { background: rgba(158, 84, 28, 0.1); }
.toc-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #845428; color: var(--parchment); display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; }
.toc-num-alt { background: transparent; color: #9e541c; border: 2px solid #9e541c; font-size: 0.85rem; }
.toc-text { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.toc-where { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8f4420; }

/* Sections */
.sg-section { margin-top: clamp(56px, 9vw, 88px); padding-top: clamp(28px, 5vw, 40px); border-top: 2px solid #9e541c; scroll-margin-top: 100px; }
.sg-kicker { margin: 0 0 0.3em; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #8f4420; }
.sg-section h2 { font-size: clamp(2rem, 5.5vw, 2.6rem); line-height: 1.1; color: var(--espresso); margin: 0 0 0.5em; }
.sg-section h3 { font-size: 1.55rem; color: var(--espresso); margin: 1.6em 0 0.5em; text-align: left; }
.sg-section p, .sg-section li { color: var(--earth); }
.sg-section ol, .sg-section ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.sg-section li { margin-bottom: 0.45em; }
.sg-section li > ul { margin: 0.4em 0 0; }
.sg-section a { color: #8f4420; }
.sg-section strong { color: var(--espresso); }
.sg-top { margin: 2em 0 0; font-size: 0.92rem; }
.sg-top a { font-weight: 600; text-decoration: none; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: var(--radius-sm); border: 1px solid rgba(59, 42, 31, 0.18); background: #fffdf7; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.45; }
.table-wrap th { background: #845428; color: var(--parchment); text-align: left; font-weight: 600; padding: 10px 12px; vertical-align: bottom; }
.table-wrap td { padding: 10px 12px; vertical-align: top; color: var(--earth); border-top: 1px solid rgba(59, 42, 31, 0.12); }
.table-wrap tbody tr:nth-child(even) td { background: rgba(242, 224, 180, 0.28); }
.table-wrap td:first-child { min-width: 9em; }
@media (max-width: 559px) { .table-wrap table { font-size: 0.92rem; } .table-wrap td, .table-wrap th { padding: 8px 9px; } }

/* Highlight boxes */
.sg-box { margin: 1.8em 0 0; padding: 4px 22px 14px; border-radius: var(--radius); border-left: 5px solid #9e541c; background: rgba(255, 250, 238, 0.75); box-shadow: 0 1px 2px rgba(59, 42, 31, 0.06), 0 6px 20px rgba(59, 42, 31, 0.07); }
.sg-box h3 { margin-top: 0.8em; }
.sg-box h3::before { display: inline-block; margin-right: 0.45em; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; vertical-align: middle; padding: 3px 8px; border-radius: 999px; background: #845428; color: var(--parchment); }
.sg-box-practice h3::before { content: "Practice"; }
.sg-box-recall { border-left-color: #5e6e52; background: rgba(138, 154, 123, 0.14); }
.sg-box-recall h3::before { content: "Recall"; background: #5e6e52; }
.sg-box-cheat { border-left-color: #3b2a1f; }
.sg-box-cheat h3::before { content: "Cheat sheet"; background: #3b2a1f; }
.sg-box-action { background: #845428; border-left-color: #6b4320; }
.sg-box-action h3, .sg-box-action p { color: var(--parchment); }
.sg-box-action h3::before { content: "Your section of the wall"; background: var(--parchment); color: #6b4320; }
.sg-box-safety { border-left-color: #8f4420; }
.sg-box .table-wrap { background: #fffdf7; }
@media (max-width: 479px) { .sg-box { padding: 2px 14px 10px; } }

/* Closing call to action */
.guide-cta { margin-top: clamp(56px, 9vw, 88px); padding: var(--space-card); text-align: center; background: rgba(255, 250, 238, 0.7); border-top: 4px solid #9e541c; border-radius: var(--radius); }
.guide-cta h2 { text-align: center; font-size: clamp(1.9rem, 4.5vw, 2.3rem); color: var(--espresso); margin: 0 0 0.35em; }
.guide-cta p { color: var(--earth); max-width: 52ch; margin: 0 auto 1.4em; }
.guide-cta .guide-actions { justify-content: center; }
.guide-page .site-foot { margin-top: 0; }

/* Print: clean pages, each session on a new page */
@media print {
  @page { size: letter; margin: 0.6in 0.65in; }
  body.guide-page { background: #fff !important; font-size: 11pt; }
  .site-head, .guide-actions, .sg-top, .guide-cta, .site-foot .foot-digest { display: none !important; }
  .guide-main { max-width: none; padding: 0; }
  .guide-hero { grid-template-columns: 1fr 180px; text-align: left; padding-top: 0; }
  .guide-toc, .sg-box, .table-wrap { box-shadow: none !important; }
  .guide-toc { break-after: page; }
  .sg-section { break-before: page; margin-top: 0; border-top: 0; padding-top: 0; }
  .sg-box, tr, .toc-list li { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .sg-box-action { background: #f6ecd6 !important; border-left-color: #845428; }
  .sg-box-action h3, .sg-box-action p { color: #3b2a1f; }
  .table-wrap { overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Public preview (/study-guide/): locked contents entries and the sign-up box */
.toc-note { color: var(--earth); margin: -0.2em 0 1.2em; font-size: 0.98rem; }
.toc-list a { flex-wrap: wrap; }
.toc-badge { margin-left: auto; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #5e6e52; color: #fff; white-space: nowrap; }
.toc-badge-lock { background: transparent; color: #8f4420; border: 1px solid rgba(143, 68, 32, 0.45); }
.toc-locked .toc-num { background: rgba(132, 84, 40, 0.55); }
.toc-locked .toc-text { color: var(--earth); }
.guide-signup { margin-top: clamp(56px, 9vw, 88px); padding: var(--space-card); text-align: center; background: rgba(255, 250, 238, 0.85); border-top: 4px solid #9e541c; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(59, 42, 31, 0.06), 0 6px 20px rgba(59, 42, 31, 0.07); scroll-margin-top: 110px; }
.guide-signup h2 { text-align: center; font-size: clamp(1.9rem, 4.5vw, 2.3rem); color: var(--espresso); margin: 0 0 0.35em; }
.guide-signup p { color: var(--earth); max-width: 52ch; margin: 0 auto 1.4em; }
.guide-signup .sample-form { margin: 0 auto; }
@media (max-width: 479px) { .guide-signup { padding: 28px 12px; } .toc-badge { margin-left: 46px; } }
@media print { .guide-signup { display: none !important; } }
.toc-list a .toc-text { flex: 1 1 calc(100% - 46px); }
.toc-badge { margin-left: 46px; }

/* ShepherdGuide page (/shepherdguide/) */
.sgd-hero { grid-template-columns: 1fr !important; text-align: center !important; }
.sgd-hero .guide-sub { margin-left: auto !important; }
.sgd-hero .guide-actions { justify-content: center !important; }
.sgd-about { border-top: 0; margin-top: clamp(28px, 5vw, 40px); }
.sgd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6em 0; }
.sgd-facts div { text-align: center; padding: 14px 8px; background: rgba(255, 250, 238, 0.75); border-top: 4px solid #9e541c; border-radius: var(--radius); }
.sgd-facts strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #845428; }
.sgd-facts span { font-size: 0.9rem; color: var(--earth); }
.sgd-template { columns: 2; column-gap: 28px; }
.sgd-template li { break-inside: avoid; }
@media (max-width: 479px) { .sgd-template { columns: 1; } }
.sgd-part + .sgd-part { margin-top: 1.4em; }
.sgd-part-name { margin: 0 0 0.6em; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--espresso); }
.sgd-part-name span { display: inline-block; margin-right: 0.4em; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8f4420; vertical-align: 3px; }
.toc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 10px; color: var(--earth); line-height: 1.3; }
.toc-item .toc-text { flex: 1 1 calc(100% - 46px); }
.sg-box-quick h3::before { content: "At a glance"; }
.sg-box-questions h3::before { content: "Ask"; background: #5e6e52; }
.sg-box-questions { border-left-color: #5e6e52; }
.sg-box-prayer h3::before { content: "Pray"; }
.sg-box-prayer p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--espresso); }
.sg-box-notebook { background: #845428; border-left-color: #6b4320; }
.sg-box-notebook h3, .sg-box-notebook p { color: var(--parchment); }
.sg-box-notebook h3::before { content: "Story"; background: var(--parchment); color: #6b4320; }
.sg-box-notebook em { color: rgba(242, 224, 180, 0.85); }
.sgd-note { margin-top: 1.8em; padding: 16px 20px; border-left: 4px solid #5e6e52; background: rgba(255, 250, 238, 0.6); border-radius: var(--radius-sm); }
.sgd-note h3 { margin: 0 0 0.4em; font-size: 1.25rem; }
.sgd-note p { margin: 0 0 0.5em; font-style: italic; }
.sgd-note .sgd-note-sig { font-style: normal; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8f4420; margin: 0; }
.guide-note { font-size: 0.88rem; font-style: italic; color: var(--earth); max-width: 46ch; margin: -0.8em auto 1.6em; }
@media (min-width: 768px) { .guide-hero:not(.sgd-hero) .guide-note { margin-left: 0; } }
@media print { .guide-note { margin: 0 0 1em; } }
/* Church Toolkit (/toolkit/) */
.tk-steps { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 8px; }
.tk-steps a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--espresso); }
.tk-steps a:hover { background: rgba(132, 84, 40, 0.08); }
.tk-grid { display: grid; gap: 16px; margin-top: 1.4em; }
@media (min-width: 768px) { .tk-grid { grid-template-columns: repeat(2, 1fr); } }
.tk-card { display: flex; flex-direction: column; padding: 20px 22px; background: rgba(255, 250, 238, 0.75); border-top: 4px solid #9e541c; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(59, 42, 31, 0.06), 0 6px 20px rgba(59, 42, 31, 0.07); }
.tk-card h3 { margin: 0.2em 0 0.4em !important; font-size: 1.4rem !important; }
.tk-card p { margin: 0 0 1em; }
.tk-card .tk-link { margin-top: auto; margin-bottom: 0; font-weight: 600; }
.tk-card .tk-link a { color: #8f4420; }
.tk-tag { display: inline-block; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: #845428; color: var(--parchment); }
.tk-tag-req { background: #5e6e52; }
.tk-crisis { margin-top: 1.8em; padding: 16px 20px; border-left: 5px solid #8f4420; background: rgba(255, 250, 238, 0.75); border-radius: var(--radius-sm); }
.tk-crisis p { margin: 0 0 0.4em; }
.tk-hero .guide-actions { justify-content: center !important; }
.tk-folder { margin-top: 1.4em; padding: clamp(18px, 3vw, 26px); background: rgba(255, 250, 238, 0.75); border-top: 4px solid #9e541c; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(59, 42, 31, 0.06), 0 6px 20px rgba(59, 42, 31, 0.07); display: grid; gap: 8px 28px; }
@media (min-width: 768px) { .tk-folder { grid-template-columns: repeat(2, 1fr); } }
.tk-folder-group h3 { margin: 0.6em 0 0.3em !important; font-size: 1.25rem !important; }
.tk-docs { list-style: none; padding: 0 !important; margin: 0 !important; }
.tk-docs li { margin: 0; padding: 0; }
.tk-docs li::before { content: none !important; }
.tk-docs a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: var(--radius-sm); text-decoration: none; color: var(--espresso); line-height: 1.3; }
.tk-docs a:hover { background: rgba(132, 84, 40, 0.08); }
.tk-doc-icon { flex: none; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; padding: 4px 5px; border-radius: 4px; background: #8f4420; color: var(--parchment); }
.tk-doc-name { flex: 1; font-weight: 600; }
.tk-doc-pages { flex: none; font-size: 0.82rem; color: var(--earth); }
.tk-folder-link { margin: 8px 0 0; }
.tk-folder-link a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; text-decoration: none; color: var(--espresso); }
.tk-doc-icon-lead { background: #5e6e52; }
.tk-doc-note { display: block; font-size: 0.82rem; font-weight: 400; font-style: italic; color: var(--earth); }
/* Church-specific team pages (/churches/) */
.tk-private { font-size: 0.9rem; font-style: italic; color: var(--earth); margin: 0; }
.tk-month { border-top: 0; margin-top: clamp(24px, 4vw, 36px); }
.tk-study .toc-badge { margin-left: auto; }
.tk-more li { margin-bottom: 0.5em; }
.tk-study { list-style: none; padding-left: 0 !important; margin-left: 0 !important; }
.tk-study li::before { content: none !important; }
