/* ESN front door — InterVarsity.org theme (modeled on intervarsity.org/wsap).
   Fonts load from intervarsity.org; when this lives on intervarsity.org, switch to the site's own /libraries/... paths. */
@font-face { font-family: Avenir; font-weight: 400; src: url("https://intervarsity.org/libraries/bootstrap/dist/css/webFonts/AvenirLTStdBook/font.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Avenir; font-weight: 500; src: url("https://intervarsity.org/libraries/bootstrap/dist/css/webFonts/AvenirLTStdMedium/font.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Avenir; font-weight: 700; src: url("https://intervarsity.org/libraries/bootstrap/dist/css/webFonts/AvenirLTStdHeavy/font.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: GaspoSlab; font-weight: 400; src: url("https://intervarsity.org/libraries/bootstrap/dist/css/webFonts/GaspoSlabRegular/font.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: GaspoSlab; font-weight: 700; src: url("https://intervarsity.org/libraries/bootstrap/dist/css/webFonts/GaspoSlabBold/font.woff2") format("woff2"); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --teal: #006680;
  --teal-dark: #004d61;
  --sky: #269AC6;
  --link: #0094C9;
  --orange: #E76127;
  --orange-dark: #C94E18;
  --gold: #F99D1C;
  --tint: #F5FBFD;
  --text: #3b3b3b;
  --text-muted: #535862;
  --text-faint: #7a7f89;
  --bg: #ffffff;
  --surface: #ffffff;
  --gray: #f7f7f7;
  --border: #dcdfe3;
  --radius: 8px;
  --radius-lg: 24px;
  --display: GaspoSlab, Georgia, serif;
  --sans: Avenir, "Trebuchet MS", Arial, Helvetica, sans-serif;
}

body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
.page { max-width: 1100px; margin: 0 auto; padding: 0 24px 3rem; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* HEADER */
nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 18px 0; margin-bottom: 1rem; }
.nav-brand { display: flex; align-items: center; }
.nav-logo-img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.on { color: var(--teal); border-bottom-color: var(--orange); }
.nav-end { display: flex; align-items: center; gap: 14px; }

/* BUTTONS */
.btn-gold, .btn-join-sm, .btn-navy, .btn-ghost { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.25; border-radius: var(--radius); padding: 12px 18px; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; margin-right: 10px; border: 1px solid transparent; }
.btn-gold, .btn-join-sm, .btn-navy { background: var(--orange); color: #fff; box-shadow: inset 0 -2px 0 rgba(10,13,18,.08); }
.btn-gold:hover, .btn-join-sm:hover, .btn-navy:hover { background: var(--orange-dark); }
.btn-join-sm { margin-right: 0; text-transform: uppercase; padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--text-muted); border-color: #D5D7DA; box-shadow: 0 1px 2px rgba(10,13,18,.05); }
.btn-ghost:hover { background: #f9fafb; color: var(--text); }
.on-teal .btn-gold { background: #fff; color: var(--teal); box-shadow: none; }
.on-teal .btn-gold:hover { background: var(--tint); }

/* EYEBROW / PILL / HEADINGS */
.sec-eye, .hero-eye, .cta-eye { font-size: 15px; font-weight: 700; color: var(--orange); margin-bottom: 8px; letter-spacing: 0; text-transform: none; }
.pill { display: inline-block; font-size: 14px; font-weight: 700; color: var(--orange); background: #fff; border-radius: 999px; padding: 6px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.12); margin-bottom: 1.25rem; }
h1, h2, .sec-title, .hero-h, .cta-h { font-family: var(--display); font-weight: 400; color: var(--teal); line-height: 1.2; }
.sec-title { font-size: 2.25rem; margin-bottom: 1.25rem; }
.sec { margin-bottom: 4rem; }
.sec-link { display: inline-block; margin-top: 16px; font-size: 16px; font-weight: 500; color: var(--link); text-decoration: none; }
.sec-link:hover { text-decoration: underline; }
.sec-lede { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 640px; margin: -.5rem 0 1.25rem; }

/* HERO (centered, white, big rounded image) */
.hero { text-align: center; padding: 2rem 0 0; margin-bottom: 4rem; }
.hero-text { max-width: 820px; margin: 0 auto 2.5rem; }
.hero-eye { display: inline-block; font-size: 14px; background: #fff; border-radius: 999px; padding: 6px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.12); margin-bottom: 1.25rem; }
.hero-h { font-size: 2.9rem; min-height: 7.2rem; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0 0 .9rem; transition: opacity .35s ease; }
.hero-h.fade { opacity: 0; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.25rem; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfd4d9; border: none; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.hero-dot.on { background: var(--orange); transform: scale(1.25); }
.hero-dot:hover { background: #9aa3ab; }
.hero-sub { font-size: 18px; color: var(--text); max-width: 700px; margin: 0 auto 1.75rem; line-height: 1.7; }
.hero-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); display: block; transition: opacity .35s ease; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08); }
.hero-img.fade { opacity: 0; }

/* INTERIOR PAGE HEADER */
.page-head { text-align: center; padding: 2rem 0 0; margin-bottom: 3.5rem; }
.page-head .hero-eye { margin-bottom: 1.25rem; }
.page-head h1 { font-size: 2.9rem; max-width: 820px; margin: 0 auto 1rem; }
.page-head p.lede { font-size: 18px; color: var(--text); max-width: 680px; margin: 0 auto; line-height: 1.7; }

/* CARDS */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card, .icard { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; transition: box-shadow .15s, border-color .15s; display: block; color: inherit; text-decoration: none; }
.card:hover, .icard:hover { box-shadow: 0 8px 16px -4px rgba(16,24,40,.10); border-color: #c4c9ce; }
.card-icon { font-size: 26px; color: var(--teal); margin-bottom: 10px; display: block; }
.card-title, .icard-title { font-weight: 500; font-size: 22px; color: var(--teal); margin-bottom: 8px; font-family: var(--display); line-height: 1.25; }
.card-desc, .icard-desc { font-size: 16px; color: var(--text); line-height: 1.65; }
.icard-num { font-family: var(--display); font-size: 2.2rem; color: var(--orange); margin-bottom: 8px; line-height: 1; }

/* PATHWAY (overview + full) */
.pw-ov-wrap, .pw-outer { position: relative; margin-bottom: 1rem; }
.pw-line { position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0; }
.pw-ov { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.pw-ov a { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.pw-row { display: flex; gap: 12px; position: relative; }
.ms { flex: 1; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.ms-node { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; position: relative; z-index: 1; background: #fff; border: 2px solid var(--border); color: var(--text-faint); transition: background .15s, border-color .15s, color .15s; }
.ms-node.on, .pw-ov a:hover .ms-node { background: var(--teal); border-color: var(--teal); color: #fff; }
.ms-card { width: 100%; margin-top: 12px; border-radius: 4px; padding: 16px 8px 14px; text-align: center; border: 1px solid var(--border); background: var(--tint); transition: background .15s, border-color .15s, transform .15s; }
.pw-ov a:hover .ms-card { border-color: var(--sky); transform: translateY(-1px); }
.ms-card.on { background: var(--teal); border-color: var(--teal); }
.ms-icon { font-size: 24px; display: block; margin-bottom: 8px; color: var(--teal); }
.ms-card.on .ms-icon { color: #fff; }
.ms-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.ms-card.on .ms-name { color: #fff; }
.ms-acad { font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.ms-card.on .ms-acad { color: #cfe9f1; }

.det { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; margin: 1.25rem 0 1rem; }
.det-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.det-badge { background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.det-role { font-size: 15px; color: var(--text-muted); }
.det-lead { font-family: var(--display); font-size: 1.35rem; color: var(--teal); line-height: 1.5; margin-bottom: 1.5rem; padding-left: 18px; border-left: 4px solid var(--orange); }
.det-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.det-col-label { font-size: 15px; font-weight: 700; color: var(--orange); margin-bottom: 10px; }
.det-list { list-style: none; }
.det-list li { font-size: 16px; color: var(--text); padding: 5px 0 5px 20px; position: relative; line-height: 1.55; }
.det-list li .mark { position: absolute; left: 0; top: 6px; font-size: 13px; color: var(--text-faint); }
.det-list.esn li .mark { color: var(--teal); font-weight: 700; }
.det-list li a { color: var(--link); text-decoration: none; }
.det-list li a:hover { text-decoration: underline; }
.det-list li.soon { color: var(--text-muted); }
.det-list li.soon .mark { color: var(--gold); }
.det-sub-label { font-size: 14px; font-weight: 700; color: var(--text); margin: 8px 0 2px; padding-left: 20px; }
.det-list.nested li { font-size: 15px; padding-left: 32px; }
.det-list.nested li .mark { left: 16px; }
.panel[hidden] { display: none; }
.pw-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.pw-nav-btn { font-size: 16px; font-weight: 500; color: var(--link); cursor: pointer; background: none; border: none; padding: 0; font-family: var(--sans); }
.pw-nav-btn:disabled { color: #b6bbc1; cursor: default; }
.pw-pos { font-size: 14px; color: var(--text-faint); }

.badge-soon { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #FEF1E9; color: var(--orange-dark); border: 1px solid #F6C9AE; border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }

.reboot { background: var(--tint); border: 1px solid #cfe6ee; border-left: 4px solid var(--orange); border-radius: 4px; padding: 1.1rem 1.4rem; margin-bottom: 3.5rem; }
.reboot-title { font-family: var(--display); font-size: 1.2rem; color: var(--teal); margin-bottom: 4px; }
.reboot p { font-size: 16px; color: var(--text); line-height: 1.65; }
.reboot p.reboot-title { font-size: 1.2rem; }

/* PROSE (About) */
.prose p { font-size: 17px; color: var(--text); line-height: 1.75; margin-bottom: 1rem; max-width: 720px; }
.prose h2 { font-size: 2rem; margin: 0 0 1rem; }
.prose a { color: var(--link); }
.prose .list { list-style: none; max-width: 720px; margin-bottom: 1rem; }
.prose .list li { font-size: 17px; color: var(--text); line-height: 1.65; padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid #eceef0; }
.prose .list li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 700; top: 10px; }
.prose .list li strong { color: var(--teal); font-weight: 700; }

/* BLOG */
.blog-bg { background: var(--gray); border-radius: var(--radius-lg); padding: 2.25rem; }
.blog-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.blog-header .sec-title { font-size: 2rem; }
.blog-link { font-size: 16px; font-weight: 500; color: var(--link); text-decoration: none; }
.blog-link:hover { text-decoration: underline; }
.blog-curated-note { font-size: 16px; color: var(--text-muted); margin-bottom: 1.5rem; }
.bcard { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s; overflow: hidden; }
.bcard:hover { box-shadow: 0 8px 16px -4px rgba(16,24,40,.12); }
.bcard-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 12px; display: block; }
.btag { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E4F3F8; color: var(--teal); align-self: flex-start; }
.btitle { font-family: var(--display); font-size: 1.15rem; font-weight: 400; color: var(--teal); line-height: 1.35; flex: 1; }
.bexc { font-size: 15px; color: var(--text); line-height: 1.55; }
.bdate { font-size: 13px; color: var(--text-faint); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: .8rem 0 1.25rem; }
.cat { font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid #D5D7DA; color: var(--text-muted); background: #fff; text-decoration: none; transition: background .1s; }
.cat:hover { background: var(--tint); color: var(--teal); }
.blog-groups-note { font-size: 16px; color: var(--text); margin-bottom: 1rem; max-width: 760px; }
.blog-groups-note a { color: var(--link); font-weight: 500; text-decoration: none; }
.blog-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: 14px; color: var(--text-faint); }
.blog-foot a { color: var(--link); text-decoration: none; }
.blog-eyebrow-small { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }

/* COMPASS */
.compass { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; }
.compass-icon { width: 120px; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); display: block; }
.compass-title { font-family: var(--display); font-size: 1.4rem; color: var(--teal); margin-bottom: 6px; }
.compass-desc { font-size: 16px; color: var(--text); line-height: 1.65; margin-bottom: 12px; }

/* CTA BAND (teal gradient, as on intervarsity.org) */
.cta { background: linear-gradient(76deg, #006680 0%, #269AC6 100%); border-radius: var(--radius-lg); padding: 2.5rem; margin-bottom: 4rem; }
.cta-row { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; }
.cta-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 16px; display: block; }
.cta-eye { color: #FFD7BF; }
.cta-h { font-size: 2.1rem; color: #fff; margin-bottom: 12px; }
.cta-desc { font-size: 17px; color: #fff; margin: 0 0 1.5rem; line-height: 1.7; max-width: 560px; }

/* CONTACT */
.contact { background: #fff; border-radius: var(--radius-lg); padding: 2.75rem; margin: 0 0 4rem; box-shadow: 0 12px 24px -6px rgba(16,24,40,.14), 0 0 0 1px rgba(16,24,40,.04); scroll-margin-top: 1rem; }
.contact-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact h2 { font-size: 2.1rem; margin-bottom: .8rem; }
.contact p.c-desc { font-size: 17px; color: var(--text); line-height: 1.7; margin-bottom: 1rem; }
.field { margin-bottom: 16px; }
.field label, .field .flabel { display: block; font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 16px; padding: 10px 12px; border: 1px solid #D5D7DA; border-radius: var(--radius); background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label { font-weight: 400; display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--text); margin: 0; }
.checks input { accent-color: var(--teal); width: 17px; height: 17px; }
.opt { font-weight: 400; color: var(--text-faint); }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 10px; }
.form-ok { display: none; background: #E8F6F0; border: 1px solid #9FD8C0; border-radius: var(--radius); padding: 1.2rem; font-size: 16px; color: #0B5B41; }
.form-ok.show { display: block; }

/* GET INVOLVED */
.gi-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 2rem; margin-bottom: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 1rem; scroll-margin-top: 1rem; }
.gi-card .icard-num { font-size: 2.8rem; margin: 0; }
.gi-card h2 { font-size: 1.75rem; margin-bottom: 10px; }
.gi-card p { font-size: 17px; color: var(--text); line-height: 1.7; margin-bottom: .9rem; max-width: 700px; }
.gi-card .mission { font-size: 15px; background: var(--tint); border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.gi-card .mission a { color: var(--link); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo-img { height: 38px; width: auto; display: block; }
.footer-sub { font-size: 14px; color: var(--text-muted); }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 15px; color: var(--link); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 14px; color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.footer-copy a { color: var(--link); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .page { padding: 0 16px 2rem; }
  .hero-h, .page-head h1 { font-size: 2rem; min-height: 0; }
  .hero-img { aspect-ratio: 4 / 3; }
  .grid3, .det-cols, .contact-row, .cta-row, .compass, .gi-card { grid-template-columns: 1fr; }
  .cta-img { aspect-ratio: 16 / 9; }
  .pw-ov { grid-template-columns: 1fr 1fr; }
  .pw-line { display: none; }
  .pw-row { flex-wrap: wrap; }
  .ms { flex: 1 1 30%; }
  .contact, .cta, .blog-bg { padding: 1.5rem 1.25rem; }
  .sec-title, .contact h2 { font-size: 1.75rem; }
  .blog-header { flex-direction: column; align-items: flex-start; }
}

/* ---- Sept 11 tweaks, round 2 ---- */
h1, h2, .sec-title, .hero-h, .cta-h { text-wrap: balance; }
@media (min-width: 861px) { .page-head h1 { max-width: 960px; } }
.det-res { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 32px; }
.res-label { font-size: 16px; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.res-group .det-list.nested li { padding-left: 20px; }
.res-group .det-list.nested li .mark { left: 4px; color: var(--orange); }
.panel { will-change: transform, opacity; }
.modal { position: fixed; inset: 0; background: rgba(16,24,40,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 1000; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--radius-lg); padding: 2rem 2.25rem; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 24px 48px -12px rgba(16,24,40,.35); animation: pop .22s ease-out; }
.modal-box p { font-family: var(--display); font-size: 1.35rem; color: var(--teal); line-height: 1.4; margin-bottom: 1.25rem; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Resources: blog feature + ministries ---- */
.feature { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; margin-bottom: 24px; }
.feature-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.sec-lede a { color: var(--link); font-weight: 500; text-decoration: none; }
.min-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.min-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; }
.min-card:hover { box-shadow: 0 12px 20px -6px rgba(16,24,40,.14); border-color: #c4c9ce; transform: translateY(-2px); }
.min-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 25%; display: block; }
.min-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.min-tag { font-size: 14px; font-weight: 700; color: var(--orange); margin-bottom: 6px; }
.min-body .card-desc { flex: 1; margin-bottom: 14px; }
.min-link { font-size: 16px; font-weight: 500; color: var(--link); }
.min-card:hover .min-link { text-decoration: underline; }
@media (max-width: 860px) { .feature, .min-grid { grid-template-columns: 1fr; } }

.min-grid.three { grid-template-columns: repeat(3, 1fr); }
.min-grid.three .min-card img { aspect-ratio: 16 / 8; }
.min-grid.three .card-title { font-size: 20px; }
@media (max-width: 860px) { .min-grid.three { grid-template-columns: 1fr; } }

/* ---- InterVarsity Ministry Library mockup (library.html) ---- */
@font-face { font-family: KapraNeuePro; font-weight: 400; src: url("https://intervarsity.org/libraries/bootstrap/dist/css/webFonts/KapraNeueProRegularRd/font.woff2") format("woff2"); font-display: swap; }
.lib { background: #fff; }
.lib-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.lib-mock { background: #fff8e6; border-bottom: 1px solid #f0d9a0; text-align: center; font-size: 13px; color: #6b4e00; padding: 6px 12px; }
.lib-mock a { color: #6b4e00; font-weight: 700; margin-left: 8px; }
.lib-header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 6px; }
.lib-logo { height: 44px; width: auto; display: block; }
.lib-header-end { display: flex; align-items: center; gap: 22px; }
.lib-login { color: var(--link); text-decoration: none; font-size: 16px; }
.lib-nav { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.lib-nav a { font-family: KapraNeuePro, "Arial Narrow", Arial, sans-serif; font-size: 20px; text-transform: uppercase; color: #333; text-decoration: none; letter-spacing: .01em; }
.lib-nav a:hover { color: var(--teal); }
.lib-crumb-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 12px; }
.lib-crumb { font-size: 14px; color: var(--link); }
.lib-search { display: flex; flex: 0 1 60%; }
.lib-search input { flex: 1; font-family: var(--sans); font-size: 15px; padding: 9px 12px; border: 1px solid #c9ced4; border-right: 0; border-radius: 6px 0 0 6px; }
.lib-search .btn-gold { margin: 0; border-radius: 0 6px 6px 0; padding: 9px 18px; font-size: 15px; }
.lib-banner { background: linear-gradient(82.74deg, #006880 .56%, #009BBF 100%); padding: 5rem 24px; text-align: center; }
.lib-banner h1 { font-family: var(--display); font-weight: 400; font-size: 3.4rem; color: #fff; line-height: 1.15; max-width: 1000px; margin: 0 auto; }
.lib-main { padding-top: 2.5rem; padding-bottom: 3rem; }
.lib-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.lib-intro p, .lib-intro li { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.lib-intro ul { margin: 0 0 1rem 1.25rem; }
.lib-intro li { margin-bottom: .2rem; }
.lib-intro a { color: var(--link); }
.lib-intro-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px solid #eceef0; }
.lib-chip { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 1px solid #D5D7DA; background: #fff; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.lib-chip:hover { background: var(--tint); color: var(--teal); }
.lib-chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.lib-list { display: flex; flex-direction: column; gap: 32px; max-width: 820px; }
.lib-row { display: flex; gap: 32px; align-items: flex-start; }
.lib-row[hidden] { display: none; }
.lib-thumb { flex: 0 0 160px; width: 160px; height: 160px; border-radius: 16px; background-size: cover; background-position: center; background-color: var(--gray); display: block; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lib-tag { font-size: 12px; font-weight: 500; color: #4B5563; background: #F9FAFB; border-radius: 999px; padding: 6px 12px; }
.lib-soon { background: #FEF1E9; color: var(--orange-dark); }
.lib-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.3; margin-bottom: 8px; }
.lib-title a { color: var(--teal); text-decoration: none; }
.lib-title a:hover { text-decoration: underline; }
.lib-body { font-size: 16px; color: #4B5563; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-empty { font-size: 16px; color: var(--text-muted); }
.lib-news { background: var(--tint); padding: 3.5rem 0; }
.lib-news-inner { max-width: 760px; }
.lib-news h2 { font-size: 2rem; margin-bottom: .6rem; }
.lib-news p { font-size: 14px; color: var(--text-muted); margin-bottom: 1.2rem; }
.lib-news-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.lib-news-form label { width: 100%; font-size: 14px; font-weight: 500; }
.lib-news-form label span { color: var(--orange); }
.lib-news-form input { flex: 1 1 260px; font-family: var(--sans); font-size: 16px; padding: 10px 12px; border: 1px solid #D5D7DA; border-radius: var(--radius); }
.lib-news-form .btn-gold { margin: 0; }
.lib-footer { padding-top: 3rem; }
.lib-foot-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 2rem; }
.lib-foot-h { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 10px; }
.lib-footer ul { list-style: none; }
.lib-footer li { margin-bottom: 6px; }
.lib-footer a { color: var(--link); text-decoration: none; font-size: 15px; }
.lib-footer a:hover { text-decoration: underline; }
.lib-footer a.cur { font-weight: 700; color: var(--teal); }
.lib-two { columns: 2; column-gap: 2rem; }
.lib-legal { font-size: 13px; color: var(--text-muted); max-width: 760px; margin-bottom: 2rem; }
.lib-bar { height: 14px; background: linear-gradient(90deg, #E76127, #F99D1C); }
@media (max-width: 860px) {
  .lib-intro, .lib-foot-cols { grid-template-columns: 1fr; }
  .lib-banner h1 { font-size: 2.2rem; }
  .lib-banner { padding: 3rem 16px; }
  .lib-row { flex-direction: column; gap: 14px; }
  .lib-thumb { width: 100%; flex-basis: auto; height: 200px; }
  .lib-crumb-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .lib-search { flex-basis: auto; }
  .lib-nav { gap: 16px; }
  .lib-two { columns: 1; }
}

/* ---- Hero arrows ---- */
.hero-media { position: relative; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.88); color: var(--teal); font-size: 30px; line-height: 1; padding: 0 0 4px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: background .15s, transform .15s, opacity .15s; display: flex; align-items: center; justify-content: center; font-family: var(--sans); }
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
@media (max-width: 860px) { .hero-arrow { width: 38px; height: 38px; font-size: 26px; } .hero-arrow.prev { left: 8px; } .hero-arrow.next { right: 8px; } }

/* ---- Hero arrows: liquid glass ---- */
.hero-arrow { background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.12)); color: #fff; border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(255,255,255,.15); text-shadow: 0 1px 3px rgba(0,0,0,.35); opacity: .9; }
.hero-arrow:hover { background: linear-gradient(145deg, rgba(255,255,255,.5), rgba(255,255,255,.22)); opacity: 1; transform: translateY(-50%) scale(1.08); }
.hero-arrow:active { transform: translateY(-50%) scale(.96); }
.hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-arrow { background-color: rgba(20,40,50,.22); }

/* ---- Pathway page: hover affordance on non-selected stages ---- */
.ms { cursor: pointer; }
.ms .ms-node, .ms .ms-card { transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.ms:hover .ms-node:not(.on) { background: var(--teal); border-color: var(--teal); color: #fff; }
.ms:hover .ms-card:not(.on) { border-color: var(--sky); transform: translateY(-2px); box-shadow: 0 8px 14px -6px rgba(0,77,97,.28); background: #fff; }
.ms:hover .ms-card:not(.on) .ms-name { color: var(--teal); }
.ms:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.write-for { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.write-for-title { font-size: 15px; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.write-for a { color: var(--link); font-weight: 500; text-decoration: none; }
.write-for a:hover { text-decoration: underline; }


/* ---- V3 (Jamie's round-2 notes) ---- */
.nav-social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--teal); font-size: 22px; text-decoration: none; transition: background .15s, color .15s; }
.nav-social:hover { background: var(--tint); color: var(--teal-dark); }
.banner-photo, .pw-banner { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius-lg); display: block; margin: -1.25rem 0 3rem; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08); }
.pw-banner { margin: -1.25rem 0 2.5rem; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.25fr; }
.split.rev .split-photo { order: -1; }
.split-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08); }
.det-intro { display: grid; grid-template-columns: 1fr 300px; gap: 1.75rem; align-items: center; margin-bottom: 1.5rem; }
.det-intro .det-lead { margin: 0; }
.det-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; display: block; }
.gi-card.gi-photo { grid-template-columns: 72px 1fr 280px; align-items: center; }
.gi-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.write-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 4px; padding: 1.5rem 1.75rem; background: #fff; }
.write-card p { font-size: 16px; color: var(--text); max-width: 560px; }
.write-card .write-card-title { font-family: var(--display); font-size: 1.5rem; color: var(--teal); line-height: 1.3; margin-bottom: 6px; }
@media (max-width: 860px) {
  .split, .split.rev, .det-intro, .gi-card.gi-photo { grid-template-columns: 1fr; }
  .split.rev .split-photo { order: 0; }
  .banner-photo, .pw-banner { aspect-ratio: 16 / 9; margin-top: -.5rem; }
}

/* header fit with Facebook icon */
nav { flex-wrap: nowrap; gap: 14px; }
.nav-links { gap: 18px; flex-wrap: nowrap; }
.nav-links a { font-size: 15px; white-space: nowrap; }
.nav-end { gap: 6px; flex-shrink: 0; }
.btn-join-sm { padding: 9px 16px; font-size: 14px; }
@media (max-width: 960px) { nav { flex-wrap: wrap; } .nav-links { flex-wrap: wrap; gap: 8px 16px; } }


/* social link bar */
.social-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--teal); text-decoration: none; font-size: 15px; font-weight: 500; background: #fff; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.social-bar a i { font-size: 20px; }
.social-bar a:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-1px); }


/* ---- collapsible menu (hamburger) ---- */
nav { position: relative; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: background .15s, border-color .15s; }
.nav-toggle:hover { background: var(--tint); border-color: var(--teal); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  nav { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .nav-end { gap: 10px; }
  .nav-links { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50; flex-direction: column; flex-wrap: nowrap; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 32px -8px rgba(16,24,40,.22); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { font-size: 17px; padding: 12px 14px; border-bottom: 0; border-radius: 8px; }
  .nav-links a:hover { background: var(--tint); }
  .nav-links a.on { background: var(--tint); color: var(--teal); border-bottom: 0; box-shadow: inset 3px 0 0 var(--orange); }
}
@media (prefers-reduced-motion: reduce) { .nav-links, .nav-toggle span { transition: none; } }


/* ---- audit fixes ---- */
h2.sec-title, h3.card-title, h3.icard-title, h3.btitle, h3.compass-title, h2.write-card-title { font-weight: 400; }
h3.card-title, h3.icard-title { font-weight: 500; }
.cta { background: linear-gradient(76deg, #006680 0%, #1783AB 100%); }
.cta-eye { color: #fff; }
.badge-soon { color: #A8400F; }
.pw-pos, .bdate, .blog-foot, .form-note, .opt, .footer-sub { color: #666b75; }
@media (max-width: 860px) {
  .pw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ms { flex: none; }
  .ms:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .hero-text .btn-gold, .hero-text .btn-ghost { display: block; width: 100%; max-width: 320px; margin: 0 auto 10px !important; text-align: center; }
  .hero-text .btn-ghost { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .lib-wrap { padding: 0 16px; }
  .lib-logo { height: 34px; }
  .lib-header-end { gap: 12px; }
  .lib-header-end .btn-join-sm { padding: 8px 14px; font-size: 13px; }
}
