/* Mentoring the New Believer — mini-site
   Mobile-first. Brand colours taken from the reference guide. */
:root {
  --navy: #00395d;
  --navy-deep: #002a45;
  --navy-ink: #0f2a3d;
  --sky: #e8eff6;
  --mist: #f4f6f9;
  --line: #d5dfe9;
  --text: #1d2730;
  --muted: #5e6b77;
  --gold: #e5a823;
  --green: #4f7f2c;
  --radius: 10px;
  --wrap: 46rem;
  --font: "Source Sans 3", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--text);
  background: #fff;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 1rem; max-width: 72rem; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; flex: none; border-radius: 4px; }
.brand > span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-kicker { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.brand-title { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { flex: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu-btn[aria-expanded="true"] .burger { background: transparent; }
.menu-btn[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; border-top: 1px solid rgba(255,255,255,.15); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .25rem 0 .75rem; max-width: 72rem; margin: 0 auto; }
.site-nav a { display: block; padding: .7rem 1.25rem; color: #fff; text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); background: rgba(255,255,255,.08); }

/* ---------- Page head / hero ---------- */
.steps { display: flex; align-items: center; gap: .3rem; margin-bottom: 1rem; }
.steps span { width: 1.45rem; height: 1.45rem; display: grid; place-items: center; font-size: .72rem; font-weight: 700; border: 1.5px solid currentColor; border-radius: 2px; opacity: .75; }
.steps span.on { background: #fff; color: var(--navy); border-color: #fff; opacity: 1; }
.steps b { margin-left: .5rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }

.hero, .page-head {
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.09), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero { padding: 1.25rem 0 1.25rem; }
.page-head { padding: .9rem 0 1rem; }
.page-head .steps { display: none; }
.kicker { margin: 0 0 .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #bcd3e6; }
.hero h1, .page-head h1 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(1.9rem, 8.5vw, 3.6rem); text-transform: uppercase; }
.page-head h1 { font-size: clamp(1.4rem, 6vw, 2.6rem); }
.hero .steps { margin-bottom: .75rem; }
.hero .meta { margin: .25rem 0 0; color: #dbe7f1; font-size: .9rem; line-height: 1.45; }
.hero strong, .page-head strong { color: #fff; }
.hero .meta:first-of-type { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.25); }
.page-head-row { display: flex; align-items: center; gap: .8rem; }
.page-icon { width: 52px; height: 52px; padding: 4px !important; flex: none; border-radius: 50%; background: #fbf8f1; object-fit: contain; padding: 6px; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

.dl { margin-top: 1rem; }
.downloads { display: grid; gap: .5rem; }
.dl-toggle { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; min-height: 48px; padding: .6rem 1rem; }
.dl-toggle span { flex: 1; }
.dl-toggle small { display: inline; margin-left: .35rem; }
.dl-toggle .chev { transition: transform .2s; }
.dl-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.js .dl .downloads { display: none; }
.js .dl.open .downloads { display: grid; margin-top: .5rem; }
.no-js .dl-toggle, html:not(.js) .dl-toggle { display: none; }
.btn { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; line-height: 1.2; min-height: 52px; transition: transform .12s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn small { display: block; font-weight: 600; font-size: .78rem; opacity: .75; }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: var(--sky); color: var(--navy); }
.btn-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Content ---------- */
.content { padding-top: 1.75rem; padding-bottom: 1rem; }
.gsec { margin-bottom: 2.5rem; }
.gsec h2 { font-size: 1.6rem; line-height: 1.2; color: var(--navy); font-weight: 800; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--navy); }
.gsec h3 { font-size: 1.28rem; line-height: 1.25; color: var(--navy); font-weight: 700; margin: 2.2rem 0 .7rem; }
.gsec h3::after { content: ""; display: table; clear: both; }
.gsec h4 { font-size: 1.07rem; color: var(--navy); font-weight: 700; margin: 1.6rem 0 .5rem; }
.num { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
h3 .num { color: #6d8aa3; }
.protip { float: right; width: 44px; height: 44px; margin: -.3rem 0 .25rem .75rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; color: var(--navy-ink); }

ul, ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--navy); font-weight: 700; }
.gsec ul:not(.checklist) { list-style: none; padding-left: 1.6rem; }
.gsec ul:not(.checklist) > li { position: relative; }
.gsec ul:not(.checklist) > li::before { content: "∞"; position: absolute; left: -1.5rem; color: var(--navy); font-weight: 700; }

blockquote { margin: 1.25rem 0; padding: .9rem 1rem .9rem 1.1rem; border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p { margin: 0; }
blockquote em { font-style: italic; }
blockquote cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 700; color: var(--navy); font-size: .9rem; }
blockquote cite em { font-style: italic; }
.scripture { background: var(--sky); font-size: 1.04rem; position: relative; padding-left: 2.6rem; }
.scripture::before { content: "\201C"; position: absolute; left: .55rem; top: .1rem; font: 800 3.4rem/1 Georgia, serif; color: var(--gold); }
.egw { background: var(--mist); border-left-color: #8aa4bb; }

.callout { background: var(--mist); border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; }
.callout p { margin: 0; }
.clearfix::after { content: ""; display: table; clear: both; }
.book-float { float: left; width: 96px; margin: .2rem 1rem .5rem 0; border-radius: 3px; box-shadow: 0 6px 16px rgba(0,30,60,.25); }
.tilt { transform: rotate(-3deg); }

figure { margin: 1.5rem 0; }
figcaption { font-size: .85rem; color: var(--muted); font-style: italic; text-align: center; margin-top: .5rem; }
.circle-fig img { display: block; margin: 0 auto; border-radius: var(--radius); }
.grow { float: right; width: 42%; max-width: 220px; margin: 0 0 .75rem 1rem; }
.grow img { display: block; }

/* chart */
.chart { background: var(--mist); border-radius: var(--radius); padding: 1rem; }
.chart-title { font-weight: 700; margin: 0; color: var(--navy-ink); line-height: 1.3; }
.chart-sub { font-size: .82rem; color: var(--muted); margin: .2rem 0 1rem; }
.bars { display: grid; gap: .55rem; }
.bar-row { display: grid; gap: .15rem; font-size: .88rem; }
.bar-label { color: var(--text); }
.bar-track { display: flex; align-items: center; gap: .5rem; }
.bar-fill { height: 14px; width: calc(var(--v) * .85); background: #b9bfb3; border-radius: 0 3px 3px 0; transform-origin: left; }
.bar-val { font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.bar-row.hl .bar-fill { background: #2f76c9; }
.bar-row.hl .bar-label, .bar-row.hl .bar-val { font-weight: 700; color: var(--navy-ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .chart .bar-fill { transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .chart.in .bar-fill { transform: scaleX(1); }
  .js .chart .bar-row .bar-fill { transition-delay: calc(var(--i, 0) * 60ms); }
}

/* discussion questions */
.discuss { background: var(--sky); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1rem .75rem; margin: 1.75rem 0; }
.eyebrow { font-size: .74rem !important; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--navy) !important; margin: 0 0 .6rem !important; }
.discuss ol { margin: 0; padding-left: 1.3rem; }
.discuss li p { font-weight: 700; margin: 0 0 .4rem; }
.discuss textarea { width: 100%; font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; resize: vertical; min-height: 4.5rem; margin-bottom: .6rem; }
.discuss textarea:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.discuss-note { font-size: .78rem; color: var(--muted); margin: 0; }

/* resource cards */
.resource { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: start; background: var(--sky); border-top: 4px solid var(--navy); border-bottom: 2px solid var(--navy); padding: 1rem; margin: 2rem 0; border-radius: 0 0 var(--radius) var(--radius); }
.resource img { width: 84px; border-radius: 3px; box-shadow: 0 6px 14px rgba(0,30,60,.25); }
.resource h4 { margin: 0 0 .5rem !important; font-size: 1.05rem !important; line-height: 1.25; }
.resource .eyebrow { margin-bottom: .15rem !important; }
.resource p { font-size: .95rem; }
.resource p:last-child { margin-bottom: 0; }

.buy { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .45rem .8rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; line-height: 1.2; }
.buy:hover { background: var(--navy-deep); color: #fff; }
.buy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.callout .buy { margin-top: .75rem; }
.row-cover { float: left; margin: .15rem .8rem .3rem 0; }
.row-cover img { display: block; width: 52px; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,30,60,.25); }
td .row-title a { color: var(--navy-ink); }
td .row-title a:hover { color: var(--navy); }
table.data td:first-child::after { content: ""; display: table; clear: both; }

.buy.alt { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.buy.alt:hover { background: var(--mist); color: var(--navy); }
.video-link { clear: both; }
.video-link a { font-weight: 700; text-decoration: none; }
.video-link a:hover { text-decoration: underline; }

/* videos page */
.videos { display: grid; gap: 1.75rem; margin-bottom: 2rem; }
.video { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0 0 14px 14px; overflow: hidden; background: #fff; }
.yt, .yt-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .2s; }
.yt:hover img { transform: scale(1.03); opacity: .9; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 1rem 1rem .5rem; }
.video-body h2 { font-size: 1.25rem; line-height: 1.25; color: var(--navy); margin: 0; }
.video-body .by { color: var(--green); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: .25rem 0 .6rem; }
.video-links { font-size: .95rem; font-weight: 700; }

/* tables: stacked cards on phones */
.table-wrap { margin: 1.25rem 0 1.5rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.data tr { display: block; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0 0 var(--radius) var(--radius); margin-bottom: .8rem; padding: .3rem .9rem .5rem; background: #fff; }
table.data td { display: block; padding: .4rem 0; border-bottom: 1px solid var(--mist); }
table.data td:last-child { border-bottom: 0; }
table.data td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
table.data td:first-child { font-weight: 700; color: var(--navy-ink); }
table.data td:first-child::before { display: none; }

/* checklist (next steps) */
.lead-in { background: var(--navy); color: #fff; padding: .8rem 1rem; border-radius: var(--radius) var(--radius) 0 0; margin: 1.5rem 0 0; }
.lead-in strong { color: #fff; }
.checklist { list-style: none; padding: .5rem 1rem 1rem; margin: 0 0 1.5rem; background: var(--sky); border-radius: 0 0 var(--radius) var(--radius); }
.checklist li { margin: 0; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; cursor: pointer; border-bottom: 1px solid rgba(0,57,93,.12); }
.checklist li:last-child label { border-bottom: 0; }
.checklist input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--navy); flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

/* on-this-page */
.toc { background: var(--mist); border-radius: var(--radius); padding: .25rem 1rem; margin-bottom: 2rem; }
.toc summary { cursor: pointer; font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); padding: .6rem 0; }
.toc ol { list-style: none; padding: 0 0 .6rem; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem 0; text-decoration: none; font-weight: 700; }
.toc .sub a { font-weight: 400; padding-left: 1.2rem; font-size: .95rem; }
.toc .num { display: inline-block; min-width: 2rem; }

.xref { white-space: nowrap; }
.fineprint { font-size: .82rem; color: var(--muted); font-style: italic; }

/* prev / next */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-bottom: 2.5rem; padding-top: .5rem; }
.pn { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; line-height: 1.25; font-size: .95rem; }
.pn small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.pn:hover { border-color: var(--navy); background: var(--mist); }
.pn.next { text-align: right; grid-column: 2; }

/* ---------- Home ---------- */
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--navy-ink); }
.hero-fig { margin: 1.5rem -1rem 2rem; }
.hero-fig img { border-radius: 0; }
.home-h { font-size: 1.45rem; color: var(--navy); font-weight: 800; margin: 2rem 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--navy); }
.conns, .guide { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .75rem; }
.conns li, .guide li { margin: 0; }
.conn { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem .75rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--navy-ink); font-weight: 700; font-size: 1.08rem; line-height: 1.25; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.conn img { width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fbf8f1; object-fit: contain; padding: 4px; }
.conn small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .15rem; }
.conn:hover, .gcard:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(0,57,93,.12); color: var(--navy-ink); transform: translateY(-1px); }
.gcard { display: flex; gap: 1rem; padding: 1rem; border-radius: 14px; background: var(--mist); text-decoration: none; color: var(--text); border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gcard .num { flex: none; min-width: 3rem; font-size: 1.1rem; color: var(--navy); }
.gcard b { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: .15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c7d6e3; padding: 2rem 0 2.5rem; font-size: .92rem; }
.site-footer p { margin: 0 0 .6rem; }
.foot-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.foot-brand img { border-radius: 4px; flex: none; }
.foot-brand p { margin: 0; color: #fff; }
.foot-brand .brand-kicker { display: block; color: #9fbad1; }
.site-footer .fineprint { color: #8ea7bc; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .bar-row { grid-template-columns: 13rem 1fr; align-items: center; gap: .75rem; }
  .bar-label { text-align: right; }
  .resource { grid-template-columns: 110px 1fr; }
  .resource img { width: 110px; }
  .book-float { width: 120px; }
  .conns { grid-template-columns: 1fr 1fr; }
  .conn { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
  .conn img { width: 88px; height: 88px; }
  .guide { grid-template-columns: 1fr 1fr; }
  .hero-fig { margin-left: 0; margin-right: 0; }
  .hero-fig img { border-radius: var(--radius); }
}

@media (min-width: 760px) {
  body { font-size: 1.1rem; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .page-head { padding: 1.75rem 0 2rem; }
  .page-head .steps { display: flex; }
  .page-icon { width: 80px; height: 80px; }
  .hero .meta { font-size: 1rem; }
  .dl { margin-top: 1.4rem; }
  .dl-toggle, .js .dl-toggle { display: none; }
  .downloads, .js .dl .downloads { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 0; }
  .downloads .btn { padding: .5rem .8rem; gap: .5rem; font-size: .95rem; min-height: 48px; }
  .downloads .btn svg { width: 20px; height: 20px; }
  .downloads, .js .dl .downloads { gap: .4rem; }
  .gsec h2 { font-size: 1.9rem; }
  /* real tables on wider screens */
  table.data thead { position: static; width: auto; height: auto; clip: auto; overflow: visible; display: table-header-group; }
  table.data tr { display: table-row; border: 0; padding: 0; margin: 0; }
  table.data td, table.data th { display: table-cell; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
  table.data td::before { display: none; }
  table.data th { background: var(--navy); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
  table.data tbody tr:nth-child(even) td { background: var(--mist); }
  .callout { padding: 1.25rem; }
}

@media (min-width: 1240px) {
  .menu-btn { display: none; }
  .site-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; }
  .bar { margin: 0; padding-left: 0; }
  .site-nav { display: block; border: 0; }
  .site-nav ul { display: flex; padding: 0; gap: .1rem; }
  .site-nav a { padding: .55rem .6rem; font-size: .9rem; border-radius: 6px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
  .hero-fig { margin-left: -3rem; margin-right: -3rem; }
}

@media print {
  .site-header, .downloads, .prevnext, .toc, .discuss textarea, .discuss-note { display: none !important; }
  .hero, .page-head { background: none; color: var(--navy); }
  .kicker, .hero .meta { color: var(--muted); }
}
