/* ═════════════════════════════════════════════════════════════════════
   BRETHREN v2 — public (signed-out) pages
   Shared header, footer and page frame for /, /login, /reset-password,
   /about, /contact, /privacy and the 404 page.
   Builds on /css/brethren-v2.css (tokens --v2-*, classes .v2-*); load
   that first. Mobile first; the desktop layout switches on at 900px.
   ═════════════════════════════════════════════════════════════════════ */

html.v2-public { scroll-behavior: smooth; scroll-padding-top: calc(var(--v2-top-h) + var(--v2-safe-top) + 12px); }
html.v2-public *, html.v2-public *::before, html.v2-public *::after { box-sizing: border-box; }
html.v2-public body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; font-size: 15px; line-height: 1.6; }
html.v2-public main { flex: 1 0 auto; }
:where(html.v2-public) img { max-width: 100%; }
:where(html.v2-public) a { color: var(--v2-gold); }
:where(html.v2-public) :where(h1, h2, h3, h4, p, figure) { margin: 0; }

.pub-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--v2-gold);
    color: var(--v2-bg) !important;
    font-weight: 700;
    text-decoration: none;
}
.pub-skip:focus { top: calc(8px + var(--v2-safe-top)); }

/* ── Header ── */
.pub-head {
    position: sticky;
    top: 0;
    z-index: 900;
    padding-top: var(--v2-safe-top);
    background: rgba(6, 12, 46, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--v2-edge);
}
.pub-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 96px;
    height: 2px;
    background: var(--v2-gold);
}
.pub-head-in {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--v2-top-h);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 max(var(--v2-gutter), env(safe-area-inset-right)) 0 max(var(--v2-gutter), env(safe-area-inset-left));
}
.pub-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: auto;
    flex-shrink: 0;
    text-decoration: none;
}
.pub-brand img { display: block; height: 24px; width: auto; }
.pub-nav { display: none; }
.pub-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pub-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--v2-ink-2);
    font-family: var(--v2-font-display);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}
.pub-link:hover { color: var(--v2-gold); }
.pub-link[aria-current='page'] { color: var(--v2-ink); }
.pub-link[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--v2-gold);
}
.pub-actions .v2-btn { padding: 0 16px; }
.pub-me { display: inline-flex; align-items: center; gap: 10px; }
.pub-me .v2-av-ring { --s: 36px; text-decoration: none; }
@media (max-width: 359px) {
    .pub-brand img { height: 20px; }
    .pub-link { padding: 0 8px; }
    .pub-actions .v2-btn { padding: 0 12px; }
}
@media (min-width: 900px) {
    .pub-head-in { gap: 18px; }
    .pub-brand img { height: 30px; }
    .pub-nav { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
    .pub-actions { gap: 8px; }
    .pub-actions .v2-btn { padding: 0 20px; }
}

/* ── Page frame ── */
.pub-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--v2-gutter); }
.pub-wrap-narrow { max-width: 860px; }

/* Content-page hero (about, contact, privacy) */
.pub-hero { padding: 28px 0 26px; }
.pub-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-family: var(--v2-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v2-ink-3);
}
.pub-crumbs a { color: var(--v2-ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pub-crumbs a:hover { color: var(--v2-gold); }
.pub-crumbs .sep { color: var(--v2-edge-gold); }
.pub-hero .v2-display { margin: 10px 0 14px; }
.pub-hero .v2-lede { font-size: 16px; }
@media (min-width: 900px) {
    .pub-hero { padding: 56px 0 44px; }
    .pub-hero .v2-display { font-size: 56px; }
    .pub-hero .v2-lede { font-size: 17px; }
}

/* Feature icon node: octagon (icons/nodes may be octagons; photos never) */
.pub-node {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--v2-bg-4);
    color: var(--v2-gold);
    font-size: 18px;
    clip-path: var(--v2-octagon);
}
.pub-node.is-gold { background: linear-gradient(180deg, var(--v2-gold-hi), var(--v2-gold)); color: var(--v2-bg); }

/* Scripture panel */
.pub-verse { --fill: linear-gradient(160deg, var(--v2-bg-4) 0%, var(--v2-bg-2) 70%); --line: var(--v2-edge-gold); padding: 26px 22px 22px; margin: 0; }
.pub-verse .mark { display: block; height: 26px; font-family: var(--v2-font-display); font-size: 60px; font-weight: 800; line-height: 0.75; color: var(--v2-gold); }
.pub-verse p { font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.55; color: var(--v2-ink); }
.pub-verse cite { display: block; margin-top: 14px; font-style: normal; }
@media (min-width: 900px) { .pub-verse { padding: 34px 32px 28px; } .pub-verse p { font-size: 21px; } }

/* Long-form text */
.pub-prose { color: var(--v2-ink-2); font-size: 15.5px; line-height: 1.75; }
.pub-prose p + p { margin-top: 12px; }
.pub-prose strong { color: var(--v2-ink); }
.pub-prose a { color: var(--v2-gold); font-weight: 700; }

/* ── Footer ── */
.pub-foot {
    margin-top: 56px;
    border-top: 1px solid var(--v2-edge);
    background: rgba(10, 20, 66, 0.55);
    padding: 32px 0 calc(24px + var(--v2-safe-bottom));
}
.pub-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.pub-foot-brand { grid-column: 1 / -1; }
.pub-foot-brand img { display: block; height: 26px; width: auto; margin-bottom: 12px; }
.pub-foot-brand p { font-size: 13.5px; color: var(--v2-ink-3); line-height: 1.65; max-width: 360px; }
.pub-foot h2 {
    font-family: var(--v2-font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v2-gold);
    margin-bottom: 6px;
}
.pub-foot ul { list-style: none; margin: 0; padding: 0; }
.pub-foot li a {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-ink-2);
    text-decoration: none;
}
.pub-foot li a:hover { color: var(--v2-gold); }
.pub-foot-base {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--v2-edge);
    font-size: 12.5px;
    color: var(--v2-ink-3);
    line-height: 1.6;
}
.pub-foot-base a { color: var(--v2-gold); font-weight: 700; text-decoration: none; }
@media (min-width: 900px) {
    .pub-foot { margin-top: 88px; padding-top: 48px; }
    .pub-foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
    .pub-foot-brand { grid-column: auto; }
    .pub-foot li a { min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    html.v2-public { scroll-behavior: auto; }
}
