/* LFCWW Connect – Elvaro design: the extra pages (built on style.css) */

/* ---------- full screen: the design fills the window edge to edge, no backdrop showing ---------- */
/* Atrium "limestone" ground: cream page, white cards, warm stone lines */
:root { --ground: #F7F3EC; --ground-2: #EFE7DA; --line: #E5DCCD; }
html, body { background: var(--ground); }
.bg { display: none; }
.shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none;
  display: flex; flex-direction: column; }
.shell > .frame, .shell > main { flex: 1; }
.foot { margin: 0; border-radius: 0; }

/* ---------- comfortable layout: sticky top bar, clear room for the sidebar, calmer sizes ---------- */
:root { --wrap: 1440px; --side: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); --top-h: 68px; }
body { overflow-x: clip; }
.shell { overflow: clip; }            /* lets the top bar and sidebar stay in view while scrolling */
.top { position: sticky; top: 0; z-index: 60; height: var(--top-h); padding: 0 var(--side); margin-bottom: 6px;
  background: rgba(247, 243, 236, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.btn-ac, .btn-ghost { height: 40px; }
/* logo text: "Intranet Page" in bold, "Living Faith Church" smaller underneath */
.brand .bn { display: flex; flex-direction: column; gap: 1px; max-width: none; line-height: 1.1; }
.brand .bn b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.brand .bn small { font-size: 11.5px; font-weight: 600; letter-spacing: .2px; color: var(--muted); }
@media (max-width: 600px) {
  .brand .bn b { font-size: 14.5px; }
  .brand .bn small { font-size: 10.5px; }
}
@media (min-width: 861px) {
  .brand { gap: 10px; } .brand img { width: 36px; height: 36px; }
  .top-r { gap: 10px; }
  .round, .avatar { width: 40px; height: 40px; } .round.lang { width: auto; height: 40px; }
  .top-r .btn-ac { padding: 0 16px; }
  .ping { top: 9px; right: 10px; }
  .btn-ac, .btn-ghost { padding: 0 18px; }
}
@media (min-width: 1081px) { .search-pill { height: 40px; width: 300px; } }
@media (min-width: 861px) and (max-width: 1080px) { .search-pill { width: 40px; height: 40px; } }
.foot { padding: 30px var(--side) 20px; }
.foot::after { font-size: clamp(56px, 9vw, 130px); }
.panel { padding: 18px 20px; border-radius: 22px; }
.p-h { margin-bottom: 12px; }
.p-h h2 { font-size: 17px; } .p-h h3 { font-size: 14.5px; }
.sec { margin-top: 18px; }
.chip { height: 34px; padding: 0 13px; font-size: 12px; }
.chips { margin-bottom: 14px; }
.app-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.app { padding: 12px 40px 12px 12px; border-radius: 16px; gap: 11px; }
.a-ic { width: 40px; height: 40px; border-radius: 12px; }
.u-ic { width: 38px; height: 38px; }
.u-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 10px 4px; }
.n-card { padding: 16px; } .n-card b { font-size: 15px; }
.ev { padding: 10px; grid-template-columns: 46px minmax(0, 1fr); } .ev-d b { font-size: 18px; }
.cal-d { min-height: 62px; padding: 7px 8px; border-radius: 12px; }
.q { padding: 12px; }
.mission { padding: 24px; } .mission h2 { font-size: 24px; }
.m-stats { margin: 18px 0; } .m-stats b { font-size: 21px; } .m-stats div { padding: 12px 14px; }
.fab-btn { height: 52px; }
.fab { right: 22px; bottom: 22px; }
.pg-head { padding: 8px 2px 2px; }
.pg-head h1 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.8px; }
.pg-head p { margin-top: 6px; font-size: 14px; }
.crumbs { margin-bottom: 8px; font-size: 12px; }
.sec.first { margin-top: 14px; }
.article { padding: 26px 30px; } .article h1 { font-size: clamp(24px, 2.6vw, 32px); } .article .lede { font-size: 16px; }
.ann-reader h2 { font-size: 22px; }
.tr-cat { padding: 16px; } .tr-empty { padding: 20px 22px; }
.auth-art { min-height: 480px; } .auth-card { padding: 32px 36px; } .auth-card h2 { font-size: 24px; }

@media (min-width: 861px) {
  /* sidebar column + a clear gap before the content; everything centred and capped on very wide screens */
  .frame { grid-template-columns: minmax(0, 1fr); padding: 14px var(--side) 0; }
  .rb { width: 46px; height: 46px; } .rb .i { width: 19px; height: 19px; }
  .content { padding-bottom: 28px; }
  .auth { padding: 14px var(--side) 28px; }
  .hero h1 { font-size: clamp(28px, 2.7vw, 38px); }
  .lead { margin-top: 10px; font-size: 15px; }
  .stats { gap: 12px; margin-top: 20px; max-width: 520px; }
  .stat { padding: 14px 16px 13px; } .stat .n { margin-top: 8px; font-size: 25px; } .stat small { margin-top: 8px; }
  .hero-r { min-height: 340px; } .ark { height: 320px; } .ark img { border-radius: 32px; } .ark figcaption { bottom: 30px; }
  .board, .board-l, .board-r { gap: 14px; } .board { margin-top: 14px; }
  .two { gap: 14px; }
  .chart .big { font-size: 28px; }
  .pipe-cols { height: 130px; }
  .cal-page .cal-d { min-height: 74px; }
}
@media (max-width: 860px) {
  :root { --top-h: 60px; }
  .top { padding: 0 16px; margin-bottom: 2px; }
}
@media (max-width: 600px) {
  :root { --top-h: 58px; }
  .top { padding: 0 12px; }
  .search-pill { width: 40px; height: 40px; }
}

/* ---------- hero figures: three cards (Countries, Churches, Apps) ---------- */
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 600px; }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- clear space between the dashboard hero and the section below it ---------- */
.hero + .board, .hero + .sec { margin-top: 28px; }
.sec + .board { margin-top: 18px; }
@media (max-width: 860px) { .hero + .board, .hero + .sec { margin-top: 20px; } }
/* and clear space between the top bar and the hero */
.content > .hero { margin-top: 6px; }
.hero .ark { top: 0; }
@media (max-width: 860px) { .content > .hero { margin-top: 4px; } }


/* ---------- sidebar: pinned to the far left, full height, dark background, logo at the top ---------- */
:root { --rail-w: 84px; }
.rail-logo { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 16px; background: #fff;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); transition: transform .2s; }
.rail-logo:hover { transform: scale(1.05); }
.rail-logo img { width: 38px; height: 38px; object-fit: contain; }
.rail { background: radial-gradient(140% 55% at 0% 0%, #6a1b2c, #2b1d19 60%, #1a100d); }
.rail .rb { background: transparent; box-shadow: none; color: rgba(255, 255, 255, .72); }
.rail .rb:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: none; }
.rail .rb.on, .rail .rb[aria-expanded="true"] { background: #fff; color: var(--ac-deep); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
.rail .rb:focus-visible { outline-color: #fff; }
@media (min-width: 861px) {
  .has-rail .shell { padding-left: var(--rail-w); }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; width: var(--rail-w); height: 100vh; min-height: 0; max-height: none;
    padding: 18px 0 20px; border-right: 1px solid rgba(255, 255, 255, .06); box-shadow: 10px 0 30px -24px rgba(0, 0, 0, .6); }
  .rail-top, .rail-bot { gap: 8px; }
  .has-rail .brand img { display: none; }       /* the logo lives in the sidebar; the name stays in the white top bar */
}
@media (max-width: 860px) {
  .rail-logo { display: none; }                  /* phones: logo stays in the top bar, the sidebar becomes the bottom bar */
  .rail { background: radial-gradient(140% 160% at 0% 0%, #6a1b2c, #2b1d19 60%, #1a100d); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- sidebar labels: name + what it is for, shown on hover or keyboard focus ---------- */
.rail { z-index: 40; }
.rb { position: relative; }
.rb-tip { position: absolute; left: calc(100% + 14px); top: 50%; z-index: 80; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 240px;
  padding: 9px 13px; border-radius: 12px; background: var(--deep); color: #fff; text-align: left; white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-6px, -50%); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.rb-tip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; background: var(--deep); border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.rb-tip b { font-size: 13px; font-weight: 700; }
.rb-tip small { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.rb:hover .rb-tip, .rb:focus-visible .rb-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.rb[aria-expanded="true"] .rb-tip { opacity: 0; visibility: hidden; }

/* ---------- page header ---------- */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 4px 6px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--faint); }
.crumbs b { color: var(--ink-2); font-weight: 600; }
.pg-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -1.4px; line-height: 1.05; }
.pg-head p { margin-top: 8px; max-width: 620px; color: var(--muted); font-size: 15px; }
.pg-head .pg-act { display: flex; gap: 10px; flex-wrap: wrap; }
.sec.first { margin-top: 16px; }

/* ---------- shared bits ---------- */
a.u-row, a.a-row, a.n-card, a.q { color: inherit; }
.a-row.sel { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -18px rgba(0, 0, 0, .5); }
.a-row .tag { margin-left: auto; }
.prose { line-height: 1.7; font-size: 14.5px; color: var(--ink-2); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0 0 20px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ac-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.callout { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--ac-soft); color: var(--ac-deep); font-weight: 600; }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.meta .i { width: 15px; height: 15px; }
.v-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.t-grey { background: rgba(31, 26, 22, .07); color: var(--ink-2); }

/* ---------- announcements ---------- */
.ann-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.ann-reader { position: sticky; top: 24px; }
.ann-reader h2 { margin: 12px 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.6px; line-height: 1.2; }
.ann-reader .prose { margin-top: 18px; }
#annRows li + li { margin-top: 4px; }

/* ---------- news article ---------- */
.article { padding: 34px 38px; }
.article h1 { margin: 14px 0 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -1px; line-height: 1.12; }
.article .lede { margin: 18px 0 16px; font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.article .prose { max-width: 720px; }
.side-list li + li { margin-top: 4px; }

/* ---------- resources ---------- */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.doc:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(31, 26, 22, .14), 0 18px 26px -22px rgba(0, 0, 0, .5); }
.doc .d-tx { flex: 1; min-width: 0; }
.doc b { display: block; font-size: 14px; font-weight: 600; }
.doc small { color: var(--muted); font-size: 12.5px; }
.doc .d-up { color: var(--faint); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.doc .i.go { color: var(--faint); width: 16px; }

/* ---------- help ---------- */
.help-two { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.faq { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.faq + .faq { margin-top: 8px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--faint); transition: transform .25s; }
.faq[open] summary .i { transform: rotate(180deg); color: var(--ac); }
.faq .prose { padding: 0 18px 18px; font-size: 13.5px; }
.help-card .c-av { height: 120px; margin: 4px 0 14px; }
.help-card dl { display: grid; gap: 10px; margin: 14px 0 18px; }
.help-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.help-card dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.help-card dd { font-weight: 600; }

/* ---------- training ---------- */
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tr-cat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; transition: transform .25s, box-shadow .25s; }
.tr-cat:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(31, 26, 22, .14), 0 26px 34px -22px rgba(0, 0, 0, .5); }
.tr-cat::before { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--ac-soft); }
.tr-cat .u-ic { position: relative; margin-bottom: 8px; background: var(--ac); color: var(--ac-ink); }
.tr-cat b { position: relative; font-size: 15px; font-weight: 600; }
.tr-cat small { position: relative; color: var(--muted); font-size: 12px; }
.tr-empty { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 22px; background: radial-gradient(90% 140% at 100% 0%, #6a1b2c, #2b1d19 60%, #1a100d); color: #fff; }
.tr-empty .u-ic { width: 56px; height: 56px; background: rgba(255, 255, 255, .1); color: var(--hl); flex: none; }
.tr-empty b { display: block; font-size: 17px; font-weight: 600; }
.tr-empty small { color: rgba(255, 255, 255, .7); font-size: 13px; }

/* ---------- privacy & security ---------- */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.seg-tabs a { padding: 9px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg-tabs a.on { background: var(--ink); color: #fff; }
.legal-two { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.toc a { padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toc a:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.toc a.on { background: var(--ac-soft); color: var(--ac-deep); }
.legal section + section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h2 { margin-bottom: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.3px; scroll-margin-top: 24px; }
.legal .cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 18px 20px; border-radius: 20px; background: var(--ac-soft); }
.legal .cta strong { display: block; } .legal .cta span { color: var(--muted); font-size: 13px; }

/* ---------- calendar page ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.ev-note { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.cal-page .cal-d { min-height: 86px; }

/* ---------- sign-in ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 8px 34px 34px; }
.auth-art { position: relative; min-height: 560px; border-radius: 28px; overflow: hidden; color: #fff; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 29, 25, .05) 30%, rgba(43, 29, 25, .88)); }
.auth-art .aa-tx { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 30px; }
.auth-art h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -1px; line-height: 1.1; }
.auth-art blockquote { margin-top: 14px; max-width: 460px; color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.6; }
.auth-art cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--hl); }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.auth-card h2 { font-size: 28px; font-weight: 600; letter-spacing: -.6px; }
.auth-card > p { margin-top: 6px; color: var(--muted); }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 50px; margin-top: 26px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -16px rgba(0, 0, 0, .4); font-weight: 700; transition: transform .2s; }
.ms-btn:hover { transform: translateY(-2px); }
.ms-logo { display: grid; grid-template-columns: 9px 9px; gap: 2px; } .ms-logo i { width: 9px; height: 9px; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-size: 12px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field + .field { margin-top: 14px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; }
.field label a { color: var(--ac-deep); }
.input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.input:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.auth-card .btn-ac { width: 100%; height: 50px; margin-top: 20px; border-radius: 16px; }
.auth-help { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-help a { color: var(--ac-deep); font-weight: 700; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.auth-back .i { transform: rotate(180deg); width: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ann-two, .help-two, .legal-two { grid-template-columns: 1fr; }
  .ann-reader, .toc { position: static; }
  .toc { flex-direction: row; flex-wrap: wrap; }
  .tr-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; }
}
@media (max-width: 860px) {
  .rail .rb.m-hide { display: none; }
  /* bottom bar on phones: labels open above the icon */
  .rb-tip { left: 50%; top: auto; bottom: calc(100% + 14px); transform: translate(-50%, 6px); }
  .rb-tip::before { left: 50%; top: auto; bottom: -5px; transform: translateX(-50%) rotate(45deg); }
  .rb:hover .rb-tip, .rb:focus-visible .rb-tip { transform: translate(-50%, 0); }
  .rail-top .rb[data-page="home"] .rb-tip { left: 0; transform: translate(0, 6px); }
  .rail-top .rb[data-page="home"]:hover .rb-tip, .rail-top .rb[data-page="home"]:focus-visible .rb-tip { transform: none; }
  .rail-top .rb[data-page="home"] .rb-tip::before { left: 22px; }
  .rail-bot .rb .rb-tip { left: auto; right: 0; transform: translate(0, 6px); }
  .rail-bot .rb:hover .rb-tip, .rail-bot .rb:focus-visible .rb-tip { transform: none; }
  .rail-bot .rb .rb-tip::before { left: auto; right: 17px; }
  .shell { width: 100%; margin: 0; border-radius: 0; padding-bottom: 84px; background: var(--ground); }
  .foot { margin: 0; }
  .auth { padding: 4px 16px 16px; }
  .cal-page .cal-d { min-height: 56px; }
}
@media (max-width: 600px) {
  .article { padding: 22px 18px; }
  .tr-grid { grid-template-columns: 1fr; }
  .doc { flex-wrap: wrap; } .doc .d-tx { flex-basis: calc(100% - 60px); } .doc .d-up { margin-left: auto; } .doc .i.go { display: none; }
  #annChips, #docChips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  #annChips .chip, #docChips .chip { flex: none; }
  .a-row .tag { display: none; }
  .auth-card { padding: 26px 20px; }
  .tr-empty { flex-direction: column; align-items: flex-start; }
}

/* ---------- Atrium surfaces: solid white cards on the cream ground ---------- */
.card { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 34px -28px rgba(94, 58, 42, .45); -webkit-backdrop-filter: none; backdrop-filter: none; }
.shell::before { opacity: .45; }
.cal-d { background: var(--ground); }
.cal-d.out { background: transparent; }
.chip, .chip-sm, .search-pill, .round, .a-search, .btn-ghost, .seg-tabs, .input { box-shadow: 0 0 0 1px var(--line); }
.search-pill, .round, .a-search { background: #fff; }
.chip:not(.on) { background: #fff; }
.app, .n-card, .doc, .faq, .q, .tr-cat, .ev { box-shadow: 0 0 0 1px var(--line), 0 10px 22px -20px rgba(94, 58, 42, .45); }
.u-list li, .a-list li, .legal section + section { border-color: var(--line); }

/* ---------- dashboard hero: latest pill, two-line greeting, chips, actions, next event ---------- */
.hero-l { position: relative; }
.hero-l::before { content: ""; position: absolute; left: -60px; top: -50px; width: 420px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(179, 18, 43, .09), transparent); pointer-events: none; z-index: -1; }
.h-latest { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 18px; padding: 5px 12px 5px 5px; border-radius: 99px;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -14px rgba(94, 58, 42, .5); font-size: 12.5px; transition: transform .2s, box-shadow .2s; }
.h-latest:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(179, 18, 43, .25), 0 12px 22px -14px rgba(94, 58, 42, .55); }
.h-latest span { padding: 4px 10px; border-radius: 99px; background: var(--ac); color: var(--ac-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.h-latest b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.h-latest .i { width: 14px; height: 14px; color: var(--ac); flex: none; }
.hero h1 #greet { display: block; }
.h-sub { display: block; margin-top: 2px; font: italic 400 1.02em/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.4px; color: var(--ac); }
.hero .lead { max-width: 40ch; }
.h-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.h-chip .i { width: 14px; height: 14px; color: var(--ac); }
.h-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 3px rgba(47, 163, 107, .18); }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .stats { margin-top: 24px; }
.stat .s-h { gap: 9px; }
.stat .s-h .i { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--ac-soft); color: var(--ac-deep); }
.stat .n { color: var(--ink); }

/* photo: caption top-right, next event card bottom-right */
.ark figcaption { left: auto; right: 18px; top: 18px; bottom: auto; }
.next-up { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 12px; width: min(330px, calc(100% - 36px));
  padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 34px -18px rgba(43, 29, 25, .6); transition: transform .2s; }
.next-up:hover { transform: translateY(-2px); }
.nu-d { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 52px; flex: none; border-radius: 12px; background: var(--ac); color: var(--ac-ink); line-height: 1; }
.nu-d b { font-size: 19px; font-weight: 700; } .nu-d small { margin-top: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .85; }
.nu-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nu-tx em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ac); }
.nu-tx b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-tx small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-up .i.go { width: 16px; color: var(--faint); }

@media (min-width: 1081px) {
  /* the photo grows to the full height of the text beside it */
  .hero { align-items: stretch; }
  .hero-r { min-height: 0; }
  .ark { top: 0; bottom: 0; height: auto; }
}
@media (max-width: 600px) {
  .h-latest { margin-bottom: 14px; }
  .h-cta .btn-ac, .h-cta .btn-ghost { flex: 1; padding: 0 12px; }
  .stat .s-h .i { width: 26px; height: 26px; padding: 6px; }
  .ark { height: 260px; }
  .ark figcaption { top: 12px; right: 12px; left: auto; bottom: auto; }
  .next-up { right: 10px; bottom: 10px; width: calc(100% - 20px); }
}

/* ---------- wine overlay on the hero photo (follows the photo's rounded corners and edge fade) ---------- */
.ark { --ark-r: 40px; }
.ark img { border-radius: var(--ark-r); }
.ark::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: var(--ark-r);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(240, 169, 79, .12), transparent 55%),
    linear-gradient(160deg, rgba(92, 8, 22, .82) 0%, rgba(120, 12, 30, .64) 45%, rgba(38, 12, 16, .88) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(0deg, transparent 0, #000 22%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(0deg, transparent 0, #000 22%); mask-composite: intersect; }
.ark figcaption, .next-up { z-index: 2; }
@media (min-width: 861px) { .ark { --ark-r: 32px; } }

/* ---------- Applications & Tools: simple launcher (round icon, name underneath) ---------- */
.launcher { padding: 4px 2px 8px; background: none; border: 0; box-shadow: none; }
.launcher .p-h { align-items: flex-start; margin-bottom: 16px; }
.launcher .p-h h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.launcher .a-search { width: 340px; height: 44px; }
.launcher #chips { margin-bottom: 26px; }
.launcher #chips .chip { height: 38px; padding: 0 18px; font-size: 13px; font-weight: 600; }
.launcher #chips .chip em { display: none; }
#appGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 14px; margin-bottom: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 20px; text-align: center; transition: background .2s; }
.tile:hover { background: rgba(255, 255, 255, .7); }
.t-ic { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 10px; border-radius: 50%; background: var(--c); color: #fff;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c) 80%, #000); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
.t-ic .i { width: 25px; height: 25px; stroke-width: 1.8; }
.tile:hover .t-ic { transform: translateY(-3px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent), 0 14px 24px -12px color-mix(in srgb, var(--c) 85%, #000); }
.tile b { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); max-width: 18ch; }
.tile small { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.tile.soon .t-ic { background: color-mix(in srgb, var(--c) 42%, #fff); box-shadow: none; }
.tile small.live { display: inline-flex; align-items: center; gap: 5px; color: #c0262d; font-weight: 700; }
.tile small.live i { width: 6px; height: 6px; border-radius: 50%; background: #e8434a; box-shadow: 0 0 0 3px rgba(232, 67, 74, .18); }
@media (max-width: 600px) {
  .launcher .a-search { width: 100%; }
  #appGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 4px; }
  .t-ic { width: 54px; height: 54px; margin-bottom: 8px; } .t-ic .i { width: 22px; height: 22px; }
  .tile { padding: 6px 2px 8px; } .tile b { font-size: 12px; }
}

/* ---------- Applications & Tools: its own white board so it stands out on the cream page ---------- */
.launcher { position: relative; overflow: hidden; padding: 26px 30px 22px; border-radius: 28px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -34px rgba(94, 58, 42, .5); }
.launcher::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ac-deep), var(--ac), var(--hl)); }
.launcher .p-h { align-items: center; margin-bottom: 18px; }
.l-title { display: flex; align-items: center; gap: 14px; }
.l-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--ac); color: var(--ac-ink);
  box-shadow: 0 12px 22px -12px var(--ac-deep); }
.l-ic .i { width: 22px; height: 22px; }
.launcher .p-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.launcher .p-h .sub { margin-top: 2px; font-size: 13px; }
.launcher #appStatus { font-weight: 700; color: var(--ink-2); }
.launcher .a-tools { display: flex; align-items: center; gap: 14px; }
.l-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ac-deep); white-space: nowrap; }
.l-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.l-all .i { width: 15px; height: 15px; }
.launcher .a-search { background: var(--ground); box-shadow: 0 0 0 1px var(--line); }
.launcher #chips { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.launcher #chips .chip:not(.on) { background: var(--ground); }
#appGrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 12px; }
.tile { padding: 16px 8px 14px; border-radius: 22px; }
.tile:hover, .tile:focus-visible { background: var(--ground); }
.t-ic { width: 70px; height: 70px; margin-bottom: 12px; }
.t-ic .i { width: 28px; height: 28px; }
.tile b { font-size: 14px; font-weight: 700; }
@media (max-width: 860px) {
  .launcher { padding: 20px 18px 16px; border-radius: 24px; }
  .launcher .a-tools { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  .l-all { align-self: flex-end; }
}
@media (max-width: 600px) {
  .l-ic { width: 42px; height: 42px; border-radius: 13px; }
  .launcher .p-h h2 { font-size: 19px; }
  #appGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 4px; }
  .t-ic { width: 58px; height: 58px; } .t-ic .i { width: 24px; height: 24px; }
  .tile { padding: 10px 2px; } .tile b { font-size: 12.5px; }
}
.tile small { white-space: nowrap; }
@media (max-width: 600px) { .tile small { font-size: 10.5px; } .tile small.live { letter-spacing: .2px; } }

/* ---------- apps: plain icons in their category colour, no coloured circle; no stripe on top ---------- */
.launcher::before { display: none; }
.t-ic, .tile.soon .t-ic { width: 56px; height: 56px; margin-bottom: 8px; background: none; box-shadow: none; color: var(--c); }
.t-ic .i { width: 38px; height: 38px; stroke-width: 1.5; }
.tile:hover .t-ic { box-shadow: none; transform: translateY(-3px); }
.tile.soon .t-ic { color: color-mix(in srgb, var(--c) 45%, #fff); }
@media (max-width: 600px) {
  .t-ic, .tile.soon .t-ic { width: 48px; height: 48px; }
  .t-ic .i { width: 32px; height: 32px; }
}

/* ---------- dashboard hero on the same white board as Applications & Tools ---------- */
.content > .hero { position: relative; isolation: isolate; overflow: hidden; padding: 30px 30px 30px 34px; border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -34px rgba(94, 58, 42, .5); }
.content > .hero .ark { right: 0; }
.hero .h-latest, .hero .h-chip, .hero .stat { background: var(--ground); }
.hero .stat { border-color: var(--line); box-shadow: none; }
@media (max-width: 1080px) { .content > .hero { padding: 26px 26px 26px; } }
@media (max-width: 860px) { .content > .hero { padding: 20px 18px; border-radius: 24px; } }

/* "Apps by category" chart on the dashboard: six categories */
.pipe-cols { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pc small { font-size: 10.5px; white-space: nowrap; }
@media (max-width: 600px) {
  .launcher #chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .launcher #chips::-webkit-scrollbar { display: none; }
  .launcher #chips .chip { flex: none; }
}

/* dashboard row is now just Featured services + Apps by category, side by side across the full width */
.board { grid-template-columns: minmax(0, 1fr); }
.board-r { flex-direction: row; }
.board-r > * { flex: 1; min-width: 0; }
@media (max-width: 860px) { .board-r { flex-direction: column; } }

/* dashboard calendar on its own, full width, with a link to the full calendar */
.cal-solo { display: block; }
@media (max-width: 600px) {
  .cal-solo .cal-nav { flex-wrap: wrap; row-gap: 10px; }
  .cal-solo .cal-nav b { flex: 1; text-align: center; white-space: nowrap; }
  .cal-solo .cal-nav .btn-ac { flex-basis: 100%; order: 5; }
}

/* stand-out app (Microsoft Dynamics): solid wine-red button, white icon and name */
.tile.hl { background: linear-gradient(150deg, var(--ac), var(--ac-deep)); box-shadow: 0 16px 30px -16px var(--ac-deep), 0 0 0 1px rgba(0, 0, 0, .04) inset; }
.tile.hl .t-ic, .tile.hl b { color: #fff; }
.tile.hl small { color: rgba(255, 255, 255, .8); }
.tile.hl:hover, .tile.hl:focus-visible { background: linear-gradient(150deg, var(--ac-deep), #5c0714); transform: translateY(-3px); }
.tile.hl:hover .t-ic { transform: none; }
.tile { transition: background .2s, transform .2s, box-shadow .2s; }

/* ---------- daily scripture pop-up (every load) and its floating icon ---------- */
.vpop { position: fixed; right: 22px; bottom: 140px; z-index: 95; width: min(360px, calc(100vw - 32px)); padding: 16px 18px 18px; border-radius: 22px;
  background: radial-gradient(120% 100% at 100% 0%, #6a1b2c, #2b1d19 62%, #1a100d); color: #fff; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(43, 29, 25, .7); transform-origin: calc(100% - 26px) calc(100% + 60px);
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.vpop.in { opacity: 1; transform: none; }
.vpop.out { opacity: 0; transform: scale(.12); transition: opacity .38s ease, transform .38s cubic-bezier(.6, 0, .4, 1); }
.vp-h { display: flex; align-items: center; gap: 10px; }
.vp-h b { flex: 1; font-size: 13px; letter-spacing: .3px; color: var(--hl); }
.vp-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--hl); }
.vp-ic .i { width: 17px; height: 17px; }
.vp-h .round { background: rgba(255, 255, 255, .1); box-shadow: none; color: #fff; }
.vpop blockquote { margin: 12px 0 8px; font: italic 400 19px/1.4 "Instrument Serif", Georgia, serif; }
.vpop cite { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--hl); }
.vp-act { display: flex; gap: 8px; margin-top: 14px; }
.vp-act .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.vp-act .btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.vp-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--hl); transform-origin: left; transform: scaleX(0); }
.vpop.timed .vp-bar { animation: vpbar var(--vp-ms, 6000ms) linear forwards; }
.vpop.paused .vp-bar { animation-play-state: paused; }
@keyframes vpbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.vfab { position: fixed; right: 26px; bottom: 90px; z-index: 85; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #6a3326, #1e100c); color: var(--hl); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 255, 255, .7);
  opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.4);
  transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1), visibility .3s; }
.vfab.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.vfab.on:hover { transform: scale(1.08); }
.vfab .i { width: 20px; height: 20px; }
.vfab.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--hl); animation: vfabring 1.2s ease-out .3s 2; opacity: 0; }
@keyframes vfabring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 860px) {
  /* phones & small tablets: keep the help button and scripture icon above the bottom menu bar */
  .fab { right: 16px; bottom: 88px; }
  .vfab { right: 19px; bottom: 152px; }
  .vpop { right: 16px; bottom: 208px; }
}
@media (prefers-reduced-motion: reduce) { .vpop, .vpop.out { transition: none; } .vfab, .vfab.on { transition: none; } .vfab.on::after { animation: none; } .vpop.timed .vp-bar { animation: none; } }

/* ---------- Global Mission Control: full-width panel with an animated dotted world map ---------- */
.mis-stack { display: grid; gap: 18px; }
.mission { padding: 28px 30px 24px; }
.m-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 28px; align-items: center; }
.m-copy .m-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.m-copy .m-stats div:last-child { grid-column: 1 / -1; }
.gmap { position: relative; min-width: 0; }
.gmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.gm-land { fill: none; stroke: rgba(246, 207, 150, .42); stroke-width: 3.6; stroke-linecap: round; }
.gm-sweep { animation: gmSweep 9s linear infinite; }
@keyframes gmSweep { from { transform: translateX(0); } to { transform: translateX(1220px); } }
.gm-arc { fill: none; stroke: #f6cf96; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .9;
  animation: gmArc 4.4s ease-in-out var(--d, 0s) infinite; filter: drop-shadow(0 0 3px rgba(246, 207, 150, .7)); }
@keyframes gmArc { 0% { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: .9; } 48% { stroke-dashoffset: 0; opacity: .9; } 72% { stroke-dashoffset: 0; opacity: .35; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.gm-comet { fill: #fff; opacity: 0; filter: drop-shadow(0 0 5px #f6cf96) drop-shadow(0 0 10px rgba(240, 169, 79, .8)); }
.gm-dot { fill: #f0a94f; stroke: #2b1d19; stroke-width: 1.4; }
.gm-ping { fill: none; stroke: #f0a94f; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; opacity: 0; animation: gmPing 4.4s ease-out var(--d, 0s) infinite; }
@keyframes gmPing { 0% { transform: scale(1); opacity: 0; } 4% { opacity: .9; } 40% { transform: scale(4.2); opacity: 0; } 100% { transform: scale(4.2); opacity: 0; } }
.gm-lbl { fill: rgba(255, 255, 255, .78); font: 600 13px var(--sans); letter-spacing: .2px; paint-order: stroke; stroke: rgba(30, 15, 12, .75); stroke-width: 3px; }
.gm-lbl.hq { fill: #f6cf96; font-weight: 800; font-size: 14px; }
.gm-hq-dot { fill: #fff; stroke: #b3122b; stroke-width: 3; }
.gm-hq-glow { animation: gmGlow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gmGlow { 50% { transform: scale(1.25); opacity: .65; } }
.gm-hq-ring { fill: none; stroke: #f6cf96; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: gmRing 3s ease-out infinite; }
.gm-hq-ring.r2 { animation-delay: 1.5s; }
@keyframes gmRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.gm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.gm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.gm-legend i { width: 9px; height: 9px; border-radius: 50%; background: #f0a94f; box-shadow: 0 0 0 2px #2b1d19, 0 0 0 3px rgba(240, 169, 79, .4); }
.gm-legend i.hq { background: #fff; box-shadow: 0 0 0 2px #b3122b, 0 0 8px #f6cf96; }
.gm-legend .gm-live { margin-left: auto; color: var(--hl); font-weight: 700; }
.gm-legend .gm-live i { background: #2fa36b; box-shadow: 0 0 0 3px rgba(47, 163, 107, .25); animation: gmBlink 1.6s ease-in-out infinite; }
@keyframes gmBlink { 50% { opacity: .35; } }
@media (max-width: 1080px) {
  .m-grid { grid-template-columns: 1fr; }
  .m-copy .m-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .m-copy .m-stats div:last-child { grid-column: auto; }
}
@media (max-width: 600px) {
  .mission { padding: 22px 18px 18px; }
  .gm-lbl { font-size: 22px; stroke-width: 5px; }
  .gm-lbl.hq { font-size: 22px; }
  .gm-legend .gm-live { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-sweep, .gm-comets { display: none; }
  .gm-arc { animation: none; stroke-dashoffset: 0; opacity: .5; }
  .gm-ping, .gm-hq-glow, .gm-hq-ring, .gm-legend .gm-live i { animation: none; }
}

/* ---------- footer: glass panel over a glowing wine background, with every ministry link ---------- */
.foot { position: relative; overflow: hidden; padding: 34px var(--side) 26px; border-radius: 0;
  background: radial-gradient(120% 140% at 0% 0%, #6a1b2c 0%, #2b1d19 55%, #160c0a 100%); }
.foot::after { z-index: 0; opacity: .5; }
.f-orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: fOrb 18s ease-in-out infinite alternate; }
.f-orb.o1 { width: 420px; height: 420px; left: -80px; top: -120px; background: rgba(179, 18, 43, .55); }
.f-orb.o2 { width: 360px; height: 360px; right: 8%; top: 20%; background: rgba(240, 169, 79, .32); animation-delay: -6s; }
.f-orb.o3 { width: 300px; height: 300px; left: 40%; bottom: -160px; background: rgba(212, 100, 46, .35); animation-delay: -12s; }
@keyframes fOrb { to { transform: translate(40px, -30px) scale(1.15); } }
.f-glass { position: relative; z-index: 1; padding: 28px 30px 20px; border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 30px 60px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot .f-brand { display: flex; align-items: center; gap: 14px; }
.foot .f-brand img { width: 46px; height: 46px; padding: 5px; border-radius: 14px; background: #fff; object-fit: contain; }
.foot .f-brand b { display: block; font-size: 17px; }
.foot .f-brand span { color: rgba(255, 255, 255, .6); font-size: 13px; }
.f-top p { max-width: 46ch; color: rgba(255, 255, 255, .66); font-size: 13px; line-height: 1.6; }
.foot .f-main { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.foot h4 { margin-bottom: 12px; }
.foot .f-col li + li { margin-top: 7px; }
.foot .f-col a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.35; transition: color .2s, transform .2s; }
.foot .f-col a .i { width: 12px; height: 12px; opacity: .45; flex: none; }
.foot .f-col a:hover { color: #fff; transform: translateX(2px); }
.foot .f-col a:hover .i { opacity: 1; color: var(--hl); }
.foot .f-row { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot .f-row a { color: rgba(255, 255, 255, .75); } .foot .f-row a:hover { color: #fff; }
@media (max-width: 1240px) { .foot .f-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .foot { padding: 22px 12px 18px; }
  .f-glass { padding: 22px 18px 16px; border-radius: 22px; }
  .foot .f-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 420px) { .foot .f-main { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .f-orb { animation: none; } }

/* footer: Applications row across the full width, links flowing into columns */
.foot .f-col.f-apps { grid-column: 1 / -1; padding-bottom: 20px; margin-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot .f-apps ul { columns: 5 170px; column-gap: 24px; }
.foot .f-apps li { break-inside: avoid; margin-bottom: 7px; }
.foot .f-apps li + li { margin-top: 0; }

/* ---------- Applications & Tools: compact, balanced size ---------- */
.launcher { padding: 20px 24px 16px; }
.launcher .p-h { margin-bottom: 14px; }
.l-ic { width: 40px; height: 40px; border-radius: 12px; }
.l-ic .i { width: 19px; height: 19px; }
.launcher .p-h h2 { font-size: 19px; }
.launcher .p-h .sub { font-size: 12.5px; }
.launcher .a-search { height: 40px; width: 300px; }
.launcher #chips { padding-bottom: 14px; margin-bottom: 14px; gap: 6px; }
.launcher #chips .chip { height: 32px; padding: 0 14px; font-size: 12px; }
#appGrid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px 6px; margin-bottom: 2px; }
.tile { gap: 2px; padding: 10px 4px 9px; border-radius: 16px; }
.t-ic, .tile.soon .t-ic { width: 40px; height: 40px; margin-bottom: 4px; }
.t-ic .i { width: 28px; height: 28px; stroke-width: 1.6; }
.tile b { font-size: 12.5px; line-height: 1.25; max-width: 15ch; }
.tile small { font-size: 10.5px; }
.tile.hl { box-shadow: 0 12px 22px -14px var(--ac-deep); }
@media (max-width: 860px) { .launcher { padding: 18px 16px 14px; } }
@media (max-width: 600px) {
  .launcher .a-search { width: 100%; }
  #appGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 4px; }
  .t-ic, .tile.soon .t-ic { width: 36px; height: 36px; }
  .t-ic .i { width: 26px; height: 26px; }
  .tile { padding: 8px 2px; } .tile b { font-size: 11.5px; }
}

/* footer watermark: LFCWW PORTAL instead of INTRANET */
.foot::after { content: "LFCWW PORTAL"; white-space: nowrap; font-size: clamp(44px, 7.5vw, 112px); right: 24px; bottom: -22px; }

/* ---------- section before the footer: Shiloh banner with countdown ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center;
  padding: 30px 34px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #8a0b1f 0%, #4a0e1a 45%, #2b1d19 100%); box-shadow: 0 30px 60px -36px rgba(74, 14, 26, .8); }
.cta-art { position: absolute; inset: 0 0 0 40%; pointer-events: none; }
.cta-art img { width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.cta-copy, .cta-count { position: relative; z-index: 1; }
.cta-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16); font-size: 11.5px; font-weight: 700; letter-spacing: .4px; color: var(--hl); }
.cta-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 3px rgba(240, 169, 79, .25); animation: gmBlink 1.6s ease-in-out infinite; }
.cta-band h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.8px; line-height: 1.1; }
.cta-band h2 em { font: italic 400 1.05em "Instrument Serif", Georgia, serif; color: var(--hl); letter-spacing: -.3px; }
.cta-band p { margin-top: 10px; max-width: 56ch; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.6; }
.cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.cta-btns .btn-ac { background: var(--hl); color: var(--hl-ink); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.cta-btns .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.cta-btns .btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.cta-more { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.cta-more .i { width: 14px; height: 14px; } .cta-more:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-count { display: grid; grid-template-columns: repeat(4, 84px); gap: 10px; }
.cta-count div { padding: 14px 6px 12px; border-radius: 18px; text-align: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset; }
.cta-count b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.cta-count small { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.cta-band.live .cta-count { display: none; }
@media (max-width: 1080px) { .cta-band { grid-template-columns: 1fr; } .cta-art { inset: 40% 0 0 0; } .cta-art img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%); mask-image: linear-gradient(180deg, transparent, #000 50%); } }
@media (max-width: 600px) {
  .cta-band { padding: 22px 18px; border-radius: 24px; }
  .cta-count { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cta-count div { padding: 10px 2px 9px; border-radius: 14px; }
  .cta-count b { font-size: 24px; }
  .cta-count small { font-size: 9px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) { .cta-eyebrow i { animation: none; } }

/* ---------- sign-in pages: wine overlay on The Ark image (same tone as the dashboard hero photo) ---------- */
.auth-art::after {
  background:
    linear-gradient(180deg, rgba(43, 29, 25, 0) 35%, rgba(26, 12, 10, .78) 100%),
    radial-gradient(120% 90% at 100% 0%, rgba(240, 169, 79, .12), transparent 55%),
    linear-gradient(160deg, rgba(92, 8, 22, .8) 0%, rgba(120, 12, 30, .6) 45%, rgba(38, 12, 16, .86) 100%);
}

/* footer brand: let the church name wrap on small screens instead of being cut off */
.foot .f-brand { min-width: 0; }
.foot .f-brand > div { min-width: 0; }
.foot .f-brand b { overflow-wrap: anywhere; }
@media (max-width: 600px) { .foot .f-brand b { font-size: 15px; } .foot .f-brand img { width: 40px; height: 40px; } }

/* ---------- phones: white bottom menu bar (dark icons, current page in wine) ---------- */
@media (max-width: 860px) {
  .rail { background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px -18px rgba(94, 58, 42, .45), 0 2px 8px rgba(94, 58, 42, .06); }
  .rail .rb { color: var(--ink-2); }
  .rail .rb:hover { background: var(--ground); color: var(--ink); }
  .rail .rb.on, .rail .rb[aria-expanded="true"] { background: var(--ac); color: var(--ac-ink); box-shadow: 0 8px 16px -10px var(--ac-deep); }
  .rail .rb:focus-visible { outline-color: var(--ac); }
}

/* ---------- sidebar (desktop & tablet): open by default with icon + name; the fold button switches to icons only ---------- */
@media (min-width: 861px) {
  html:not(.rail-min) { --rail-w: 252px; }
  .rail, .has-rail .shell { transition: width .25s ease, padding .25s ease; }
  html:not(.rail-min) .rail { align-items: stretch; padding: 18px 14px 20px; }
  html:not(.rail-min) .rail-top, html:not(.rail-min) .rail-bot { align-items: stretch; gap: 4px; }
  html:not(.rail-min) .rail-logo { margin: 0 0 10px 4px; }
  html:not(.rail-min) .rail .rb { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; }
  html:not(.rail-min) .rail .rb .i { width: 19px; height: 19px; flex: none; }
  html:not(.rail-min) .rail .rb .rb-tip, html:not(.rail-min) .rail .rb:hover .rb-tip, html:not(.rail-min) .rail .rb:focus-visible .rb-tip {
    position: static; display: block; width: auto; max-width: none; min-width: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; color: inherit;
    opacity: 1; visibility: visible; transform: none; pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: none; }
  html:not(.rail-min) .rail .rb .rb-tip::before, html:not(.rail-min) .rail .rb .rb-tip small { display: none; }
  html:not(.rail-min) .rail .rb .rb-tip b { font-size: 13.5px; font-weight: 600; color: inherit; }
  html:not(.rail-min) .rail .rb[aria-expanded="true"] .rb-tip { opacity: 1; visibility: visible; }
  html:not(.rail-min) .rail-bot { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .pop-wrap.up .pop { left: calc(100% + 10px); bottom: 0; }

  /* fold button: a quiet row under the logo; the arrow points the way the menu will move */
  .rail .rail-fold { margin-bottom: 8px; color: rgba(255, 255, 255, .55); border: 1px dashed rgba(255, 255, 255, .16); }
  .rail .rail-fold:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
  .rail .rail-fold .i { transition: transform .25s ease; }
  html.rail-min .rail .rail-fold .i { transform: rotate(180deg); }
  html.rail-min .rail .rail-fold { width: 46px; height: 34px; border-radius: 12px; }
  html:not(.rail-min) .rail .rail-fold { height: 36px; }
  html:not(.rail-min) .rail .rail-fold .rb-tip b { font-size: 12.5px; font-weight: 600; }
}
@media (max-width: 860px) { .rail .rail-fold { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail, .has-rail .shell, .rail .rail-fold .i { transition: none; } }

/* =====================================================================
   Flier colour blend (Shiloh 2026 “Far Above”): cream light → gold → orange → vivid red → deep crimson.
   Replaces the muddy browns with warm reds and oranges across the portal.
   ===================================================================== */
:root, html[data-accent="wine"] {
  --ac: #c8161d; --ac2: #f26a1d; --ac-soft: rgba(200, 22, 29, .1); --ac-deep: #a50e12;
  --hl: #f7b23b; --hl-ink: #4a0b08; --deep-2: #7a0d10;
  --fl-cream: #fdf2e2; --fl-gold: #f7b23b; --fl-orange: #f26a1d; --fl-red: #e3241b; --fl-crimson: #c8161d; --fl-deep: #a50e12; --fl-night: #4a0807;
}
.bg { background: linear-gradient(135deg, #fef6ea 0%, #fce6cf 45%, #f9d3b6 100%); }
.bg .b1 { background: rgba(247, 178, 59, .35); } .bg .b2 { background: rgba(242, 106, 29, .22); } .bg .b3 { background: rgba(227, 36, 27, .14); }

/* hero photo + sign-in photo: warm red-to-gold overlay with a light flare, like the flier */
.ark::after {
  background:
    radial-gradient(70% 60% at 8% 0%, rgba(255, 244, 226, .38), transparent 60%),
    linear-gradient(200deg, rgba(247, 178, 59, .5) 0%, rgba(242, 106, 29, .5) 30%, rgba(227, 36, 27, .62) 58%, rgba(165, 14, 18, .86) 100%);
}
.auth-art::after {
  background:
    linear-gradient(180deg, rgba(74, 8, 7, 0) 40%, rgba(74, 8, 7, .82) 100%),
    radial-gradient(70% 60% at 8% 0%, rgba(255, 244, 226, .35), transparent 60%),
    linear-gradient(200deg, rgba(247, 178, 59, .5) 0%, rgba(242, 106, 29, .52) 30%, rgba(227, 36, 27, .64) 58%, rgba(165, 14, 18, .88) 100%);
}

/* Shiloh banner: cream on the left blending through gold and orange to red, like the flier */
.cta-band { color: var(--fl-night);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(100deg, #fdf2e2 0%, #fde3bd 24%, #f8b448 44%, #f26a1d 62%, #e3241b 80%, #a50e12 100%);
  box-shadow: 0 30px 60px -34px rgba(165, 14, 18, .75), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.cta-art { inset: 0 0 0 46%; }
.cta-art img { opacity: .38; mix-blend-mode: multiply; filter: saturate(1.2); }
.cta-eyebrow { background: var(--fl-deep); border-color: transparent; color: #fff; letter-spacing: 1.2px; text-transform: uppercase; font-size: 10.5px; }
.cta-eyebrow i { background: var(--fl-gold); }
.cta-band h2 { color: var(--fl-crimson); font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
.cta-band h2 em { color: var(--fl-deep); font-weight: 400; text-transform: none; }
.cta-band p { color: #5a1a10; }
.cta-btns .btn-ac { background: var(--fl-crimson); color: #fff; box-shadow: 0 12px 24px -12px rgba(165, 14, 18, .8); }
.cta-btns .btn-ghost { background: rgba(255, 255, 255, .7); color: var(--fl-deep); box-shadow: 0 0 0 1px rgba(165, 14, 18, .18); }
.cta-btns .btn-ghost:hover { background: #fff; }
.cta-more { color: var(--fl-deep); } .cta-more:hover { color: var(--fl-night); }
.cta-count div { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta-count small { color: rgba(255, 255, 255, .85); }
@media (max-width: 1080px) {
  .cta-band { background:
    radial-gradient(80% 50% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(175deg, #fdf2e2 0%, #fde3bd 30%, #f8b448 52%, #f26a1d 70%, #e3241b 86%, #a50e12 100%); }
}

/* dark panels (sidebar, Global Mission Control, footer): deep crimson with ember glow instead of brown */
.rail { background: radial-gradient(140% 55% at 0% 0%, #e3241b 0%, #a50e12 38%, #6a0b0c 75%, #3d0706 100%); }
@media (max-width: 860px) { .rail { background: #fff; } }
.mission { background:
  radial-gradient(70% 80% at 100% 0%, rgba(247, 178, 59, .45), transparent 60%),
  radial-gradient(120% 120% at 100% 0%, #f26a1d 0%, #c8161d 35%, #7a0d10 70%, #3d0706 100%);
  box-shadow: 0 30px 60px -34px rgba(165, 14, 18, .7); }
.foot { background: radial-gradient(120% 140% at 0% 0%, #c8161d 0%, #7a0d10 50%, #3d0706 100%); }
.f-orb.o1 { background: rgba(227, 36, 27, .6); } .f-orb.o2 { background: rgba(247, 178, 59, .38); } .f-orb.o3 { background: rgba(242, 106, 29, .45); }
.vpop { background: linear-gradient(160deg, #c8161d 0%, #7a0d10 60%, #3d0706 100%); }

/* ---------- welcome section: the event flier (Admin → Promotion banners) with its countdown on it ---------- */
.promo-ark { left: 0; right: 0; top: 0; height: auto; aspect-ratio: 16 / 9; --ark-r: 28px; border-radius: var(--ark-r); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(165, 14, 18, .6), 0 0 0 1px rgba(255, 255, 255, .6); }
.promo-ark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: none; mask-image: none; filter: none; border-radius: 0; }
.promo-ark::after { -webkit-mask-image: none; mask-image: none;
  background: linear-gradient(180deg, transparent 58%, rgba(74, 8, 7, .55) 82%, rgba(74, 8, 7, .85) 100%); }
.promo-ark .pa-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px; border-radius: 20px; background: rgba(120, 10, 14, .45); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); font-size: inherit; font-weight: inherit; }
.promo-ark .cta-count { grid-template-columns: repeat(4, 58px); gap: 6px; }
.promo-ark .cta-count div { padding: 7px 4px 6px; border-radius: 12px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.promo-ark .cta-count b { font-size: 22px; color: #fff; }
.promo-ark .cta-count small { margin-top: 3px; font-size: 9px; letter-spacing: .8px; }
.pa-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pa-btns .btn-ac, .pa-btns .btn-ghost { height: 40px; padding: 0 14px; font-size: 12.5px; }
.pa-btns .btn-ac { background: #fff; color: var(--fl-deep, #a50e12); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.pa-btns .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.pa-btns .btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.pa-live { display: none; align-items: center; gap: 8px; padding: 0 8px; font-weight: 800; letter-spacing: .4px; }
.pa-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--hl); animation: gmBlink 1.6s ease-in-out infinite; }
.promo-ark.live .cta-count { display: none; } .promo-ark.live .pa-live { display: inline-flex; }
.hero:has(.promo-ark) { align-items: center; }
.hero:has(.promo-ark) .hero-r { min-height: 0; }
.hero .promo-ark { position: relative; }
@media (max-width: 1180px) and (min-width: 861px) { .promo-ark .pa-bar { flex-direction: column; align-items: stretch; } .pa-btns { justify-content: stretch; } .pa-btns a { flex: 1; } }
@media (max-width: 860px) {
  .hero .promo-ark { height: auto; aspect-ratio: auto; overflow: visible; box-shadow: none; background: none; }
  .promo-ark img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(165, 14, 18, .6); }
  .promo-ark::after { display: none; }
  .promo-ark .pa-bar { position: relative; left: auto; right: auto; bottom: auto; margin-top: 10px; flex-direction: column; align-items: stretch;
    background: linear-gradient(120deg, #e3241b, #a50e12); border-color: transparent; }
  .promo-ark .cta-count { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pa-btns a { flex: 1; justify-content: center; }
}
/* flier stays fully visible: countdown + buttons sit just under it */
.hero .promo-ark { height: auto; aspect-ratio: auto; overflow: visible; box-shadow: none; background: none; border-radius: 0; }
.promo-ark img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; box-shadow: 0 24px 48px -26px rgba(165, 14, 18, .65), 0 0 0 1px rgba(255, 255, 255, .6); }
.promo-ark::after { display: none; }
.promo-ark .pa-bar { position: relative; inset: auto; top: auto; left: auto; right: auto; bottom: auto; margin-top: 10px; flex-wrap: wrap;
  background: linear-gradient(110deg, #f26a1d 0%, #e3241b 40%, #a50e12 100%); border-color: transparent; }
@media (min-width: 861px) {
  .promo-ark .cta-count { grid-template-columns: repeat(4, 48px); gap: 5px; }
  .promo-ark .cta-count b { font-size: 19px; }
  .pa-btns { gap: 6px; } .pa-btns .btn-ac, .pa-btns .btn-ghost { height: 36px; padding: 0 12px; font-size: 12px; gap: 6px; }
  .pa-btns .i { width: 14px; height: 14px; }
}

/* ---------- welcome-section slider: highlights (Admin → Promotion banners) + The Ark, feathered into the hero ---------- */
.hero:has(.hslider) { align-items: center; }
.hero:has(.hslider) .hero-r { min-height: 0; }
.hslider { position: relative; isolation: isolate; }
.hslider::before { content: ""; position: absolute; z-index: -1; inset: 8% -6% 10% 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 106, 29, .28), rgba(227, 36, 27, .12) 55%, transparent); filter: blur(30px); }
.hs-view { overflow: hidden; touch-action: pan-y; }
.hs-track { display: flex; transition: transform .8s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.hs-slide { flex: 0 0 100%; min-width: 0; margin: 0; display: flex; flex-direction: column; opacity: .25; transition: opacity .8s ease; user-select: none; }
.hs-slide.on { opacity: 1; }
.hs-img { position: relative; aspect-ratio: 16 / 9; }
.hs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 28px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 94%, transparent 100%), linear-gradient(0deg, transparent 0, #000 16%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 94%, transparent 100%), linear-gradient(0deg, transparent 0, #000 16%, #000 92%, transparent 100%);
  mask-composite: intersect; }
.hs-slide .pa-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin: -30px 4% 0 10%; padding: 9px 10px; border-radius: 18px; color: #fff;
  background: linear-gradient(110deg, rgba(242, 106, 29, .94) 0%, rgba(227, 36, 27, .94) 42%, rgba(165, 14, 18, .96) 100%);
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 18px 34px -18px rgba(165, 14, 18, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hs-slide .pa-bar.soft { background: rgba(255, 255, 255, .82); color: var(--ink); border-color: rgba(255, 255, 255, .9); box-shadow: 0 16px 30px -20px rgba(94, 58, 42, .6); }
.pa-title { display: inline-flex; align-items: center; gap: 7px; padding: 0 6px; font-size: 13.5px; }
.pa-title em { font: italic 400 1.1em "Instrument Serif", Georgia, serif; }
.pa-title .i { width: 15px; height: 15px; color: var(--ac); }
.hs-slide .next-up { position: static; margin: 0; box-shadow: none; background: var(--ground); }
.hs-slide .cta-count { display: grid; grid-template-columns: repeat(4, 48px); gap: 5px; }
.hs-slide .cta-count div { padding: 6px 3px 5px; border-radius: 11px; text-align: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.hs-slide .cta-count b { display: block; font-size: 19px; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hs-slide .cta-count small { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.hs-slide.live .cta-count { display: none; } .hs-slide.live .pa-live { display: inline-flex; }
.hs-slide .pa-btns .btn-ac, .hs-slide .pa-btns .btn-ghost { height: 36px; padding: 0 12px; font-size: 12px; gap: 6px; }
.hs-slide .pa-btns .i { width: 14px; height: 14px; }
.hs-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.hs-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ground); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.hs-arrow:hover { background: var(--ac); color: #fff; }
.hs-arrow .i { width: 16px; height: 16px; }
.hs-dots { display: flex; gap: 6px; }
.hs-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(165, 14, 18, .22); cursor: pointer; overflow: hidden; transition: width .35s; }
.hs-dots button.on { width: 30px; background: rgba(165, 14, 18, .22); }
.hs-dots button.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #f26a1d, #c8161d); transform-origin: left; }
.hslider.run .hs-dots button.on::after { animation: hsFill var(--hs-ms, 7s) linear forwards; }
@keyframes hsFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) {
  .hs-img img { -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 14%); mask-image: linear-gradient(0deg, transparent 0, #000 14%); -webkit-mask-composite: source-over; mask-composite: add; border-radius: 22px; }
  .hs-slide .pa-bar { margin: -22px 3% 0; flex-direction: column; align-items: stretch; }
  .hs-slide .cta-count { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hs-slide .pa-btns a { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hs-track, .hs-slide { transition: none; } }
@media (min-width: 861px) {
  .hs-slide .pa-bar { margin: -30px 3% 0 7%; flex-wrap: nowrap; }
  .hs-slide .pa-bar.soft .next-up { flex: 1; min-width: 0; }
  .hs-slide .pa-bar.soft .pa-title { flex: none; }
}
@media (min-width: 861px) { .hs-slide .pa-btns { flex-wrap: nowrap; } .hs-slide .pa-btns a { white-space: nowrap; } .hs-slide .cta-count { grid-template-columns: repeat(4, 44px); gap: 4px; } }
.hero:has(.hslider) > .hero-r, .hero:has(.hslider) > .hero-l, .hslider, .hs-view { min-width: 0; max-width: 100%; }

/* ---------- slider fills the whole right side of the welcome card: full height, out to the top, right and bottom edges ---------- */
.content > .hero:has(.hslider) { --hp-t: 30px; --hp-r: 30px; --hp-b: 30px; padding: var(--hp-t) var(--hp-r) var(--hp-b) 34px; align-items: stretch; }
.content > .hero:has(.hslider) > .hero-r { position: relative; margin: calc(-1 * var(--hp-t)) calc(-1 * var(--hp-r)) calc(-1 * var(--hp-b)) 0; min-height: 100%; }
.content > .hero .hslider { position: absolute; inset: 0; display: flex; flex-direction: column; }
.content > .hero .hslider::before { display: none; }
.content > .hero .hs-view { position: relative; flex: 1; min-height: 0; }
.content > .hero .hs-track { height: 100%; }
.content > .hero .hs-slide { position: relative; height: 100%; opacity: 1; }
.content > .hero .hs-img { position: absolute; inset: 0; aspect-ratio: auto; }
.content > .hero .hs-img img { border-radius: 0; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 7%, #000 18%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 7%, #000 18%);
  -webkit-mask-composite: source-over; mask-composite: add; }
/* soft dark fade at the bottom so the countdown reads clearly over the picture */
.content > .hero .hs-img::after { content: ""; position: absolute; inset: 55% 0 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(74, 8, 7, .55)); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
.content > .hero .hs-slide .pa-bar { position: absolute; left: 14%; right: 18px; bottom: 18px; margin: 0; }
.content > .hero .hs-nav { position: absolute; z-index: 3; top: 16px; right: 18px; margin: 0; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.content > .hero .hs-arrow { width: 28px; height: 28px; background: transparent; }
@media (max-width: 1080px) { .content > .hero:has(.hslider) { --hp-t: 26px; --hp-r: 26px; --hp-b: 26px; padding: 26px; } }
@media (max-width: 1180px) and (min-width: 861px) { .content > .hero .hs-slide .pa-bar { flex-wrap: wrap; } }
/* phones: picture runs to the left, right and bottom edges of the card, under the text */
@media (max-width: 860px) {
  .content > .hero:has(.hslider) { --hp-t: 20px; --hp-r: 18px; --hp-b: 20px; padding: 20px 18px; }
  .content > .hero:has(.hslider) > .hero-r { margin: 14px -18px -20px; min-height: 0; }
  .content > .hero .hslider { position: relative; inset: auto; }
  .content > .hero .hs-view { flex: none; }
  .content > .hero .hs-slide { height: auto; }
  .content > .hero .hs-img { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .content > .hero .hs-img img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
  .content > .hero .hs-img::after { -webkit-mask-image: none; mask-image: none; inset: 40% 0 0 0; }
  .content > .hero .hs-slide .pa-bar { position: relative; left: auto; right: auto; bottom: auto; margin: -26px 12px 14px; }
  .content > .hero .hs-img::after { display: none; }
}
@media (min-width: 861px) { .content > .hero:has(.hslider) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 18px; } .content > .hero:has(.hslider) > .hero-r { width: calc(100% + var(--hp-r)); max-width: none; justify-self: start; } }
@media (max-width: 1180px) and (min-width: 861px) {
  .content > .hero:has(.hslider) { grid-template-columns: 1fr; --hp-t: 26px; --hp-r: 26px; --hp-b: 26px; padding: 26px; }
  .content > .hero:has(.hslider) > .hero-r { width: auto; margin: 18px -26px -26px; min-height: 0; }
  .content > .hero .hslider { position: relative; inset: auto; }
  .content > .hero .hs-view { flex: none; }
  .content > .hero .hs-slide { height: auto; }
  .content > .hero .hs-img { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .content > .hero .hs-img img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .content > .hero .hs-img::after { inset: 50% 0 0 0; -webkit-mask-image: none; mask-image: none; }
  .content > .hero .hs-slide .pa-bar { left: 18px; right: 18px; bottom: 18px; flex-wrap: nowrap; }
}
@media (max-width: 1180px) and (min-width: 861px) { .content > .hero:has(.hslider) > .hero-r { width: calc(100% + 52px); max-width: none; justify-self: start; } }
@media (max-width: 860px) { .content > .hero:has(.hslider) > .hero-r { width: calc(100% + 36px); max-width: none; justify-self: start; } }

/* ---------- daily scripture popup: compact card ---------- */
.vpop { width: min(290px, calc(100vw - 32px)); padding: 11px 13px 13px; border-radius: 18px; }
.vp-h { gap: 8px; }
.vp-h b { font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; }
.vp-ic { width: 26px; height: 26px; border-radius: 8px; } .vp-ic .i { width: 14px; height: 14px; }
.vp-h .round.sm { width: 28px; height: 28px; } .vp-h .round.sm .i { width: 14px; height: 14px; }
.vpop blockquote { margin: 8px 0 5px; font-size: 15.5px; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.vpop cite { font-size: 11.5px; }
.vp-act { gap: 6px; margin-top: 10px; }
.vp-act .btn-ghost { height: 30px; padding: 0 11px; font-size: 12px; gap: 6px; }
.vp-act .btn-ghost .i { width: 13px; height: 13px; }
.vp-act .btn-ghost.speaking { background: var(--hl); color: var(--hl-ink); }
@media (max-width: 860px) { .vpop { width: min(270px, calc(100vw - 32px)); } .vpop blockquote { font-size: 14.5px; -webkit-line-clamp: 4; } }

/* ---------- welcome section polish: warm glow behind the text, bolder greeting, one clean figures strip ---------- */
.content > .hero:has(.hslider) { background:
  radial-gradient(60% 70% at 0% 0%, rgba(247, 178, 59, .16), transparent 70%),
  radial-gradient(55% 60% at 30% 100%, rgba(227, 36, 27, .07), transparent 70%), #fff; }
.content > .hero:has(.hslider) .hero-l::before { display: none; }
.content > .hero:has(.hslider) .hero-l { display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
.content > .hero:has(.hslider) h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -1.3px; line-height: 1.04; }
.content > .hero:has(.hslider) h1 .h-sub { display: block; margin-top: 6px; font-weight: 400; font-size: .8em; letter-spacing: -.4px; line-height: 1.1;
  background: linear-gradient(90deg, #c8161d, #e3241b 45%, #f26a1d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.content > .hero:has(.hslider) .lead { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.content > .hero:has(.hslider) .h-meta { margin-top: 14px; gap: 6px; }
.content > .hero:has(.hslider) .h-meta .h-chip { height: 30px; font-size: 12px; }
.content > .hero:has(.hslider) .h-cta { margin-top: 16px; }
/* figures: one strip with dividers instead of three boxes */
.content > .hero:has(.hslider) .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; padding: 4px;
  border-radius: 20px; background: linear-gradient(135deg, #fff7ee, #fdeee4); border: 1px solid rgba(200, 22, 29, .1); box-shadow: 0 14px 30px -24px rgba(165, 14, 18, .45); }
.content > .hero:has(.hslider) .stat { min-width: 0; padding: 12px 14px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.content > .hero:has(.hslider) .stat + .stat { border-left: 1px solid rgba(200, 22, 29, .12); }
.content > .hero:has(.hslider) .stat .s-h { gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content > .hero:has(.hslider) .stat .s-h .i { flex: none; width: 14px; height: 14px; padding: 0; background: none; color: #c8161d; }
.content > .hero:has(.hslider) .stat .n { display: block; margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.8px; line-height: 1; color: #a50e12; }
.content > .hero:has(.hslider) .stat small { display: block; margin-top: 5px; padding: 0; background: none; border: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .content > .hero:has(.hslider) .stat { padding: 10px 8px; }
  .content > .hero:has(.hslider) .stat .n { font-size: 21px; }
  .content > .hero:has(.hslider) .stat .s-h { font-size: 9.5px; letter-spacing: .3px; }
  .content > .hero:has(.hslider) .stat .s-h .i { display: none; }
}
.content > .hero:has(.hslider) .stat .s-h { align-items: flex-start; font-size: 11.5px; letter-spacing: 0; text-transform: none; white-space: normal; line-height: 1.25; } .content > .hero:has(.hslider) .stat .s-h .i { margin-top: 1px; }
.content > .hero:has(.hslider) .stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .content > .hero:has(.hslider) .stats .stat { grid-column: auto !important; }
.vpop blockquote, .vpop blockquote { -webkit-line-clamp: unset !important; display: block; overflow: visible; }
@media (max-width: 860px) { .vpop blockquote { font-size: 14px; } }

/* ---------- footer: same red as joincci.org (top #B20000 to bottom #6B0000) ---------- */
.foot { background: linear-gradient(180deg, #b20000 0%, #6b0000 100%); }
.foot .f-orb { display: none; }
.foot::after { color: #fff; opacity: .07; }

/* footer blends in: fades from the page into the joincci red, glass panel kept subtle */
.foot { padding-top: 120px; background: linear-gradient(180deg, rgba(178, 0, 0, 0) 0, rgba(178, 0, 0, .55) 60px, #b20000 130px, #6b0000 100%); }
.foot .f-glass { background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border-color: rgba(255, 255, 255, .12); box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 24px 50px -30px rgba(0, 0, 0, .5); }
@media (max-width: 860px) { .foot { padding-top: 90px; background: linear-gradient(180deg, rgba(178, 0, 0, 0) 0, rgba(178, 0, 0, .55) 45px, #b20000 100px, #6b0000 100%); } }

/* ---------- footer in the Shiloh flier blend: cream fading in, gold and orange light, bright red, deep crimson at the bottom ---------- */
.foot { padding-top: 130px;
  background:
    radial-gradient(38% 120px at 78% 40px, rgba(255, 246, 228, .75), transparent 70%),
    radial-gradient(55% 340px at 88% 120px, rgba(247, 178, 59, .55), transparent 72%),
    radial-gradient(50% 380px at 8% 180px, rgba(242, 106, 29, .5), transparent 72%),
    radial-gradient(70% 50% at 50% 100%, rgba(74, 8, 7, .55), transparent 70%),
    linear-gradient(180deg, rgba(253, 242, 226, 0) 0, rgba(248, 180, 72, .7) 50px, #f26a1d 105px, #e3241b 190px, #c8161d 48%, #a50e12 76%, #6b0000 100%); }
.foot .f-orb { display: block; mix-blend-mode: screen; }
.foot .f-orb.o1 { background: rgba(247, 178, 59, .35); top: 40px; }
.foot .f-orb.o2 { background: rgba(242, 106, 29, .4); }
.foot .f-orb.o3 { background: rgba(255, 210, 140, .22); }
.foot .f-glass { background: linear-gradient(150deg, rgba(120, 10, 14, .26), rgba(90, 6, 8, .18)); border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 30px 60px -30px rgba(60, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
.foot h4 { color: #ffd27a; }
.foot::after { color: #fff; opacity: .08; }
@media (max-width: 860px) {
  .foot { padding-top: 96px;
    background:
      radial-gradient(70% 160px at 85% 50px, rgba(247, 178, 59, .5), transparent 72%),
      radial-gradient(70% 220px at 0% 140px, rgba(242, 106, 29, .45), transparent 72%),
      linear-gradient(180deg, rgba(253, 242, 226, 0) 0, rgba(248, 180, 72, .7) 36px, #f26a1d 80px, #e3241b 150px, #c8161d 45%, #a50e12 75%, #6b0000 100%); }
}

/* ---------- sidebar + Global Mission Control in the Shiloh flier blend (gold light, orange, bright red, deep crimson) ---------- */
@media (min-width: 861px) {
  .rail { background:
    radial-gradient(120% 220px at 0% 0%, rgba(255, 238, 205, .45), transparent 70%),
    radial-gradient(140% 300px at 100% 60px, rgba(247, 178, 59, .5), transparent 72%),
    linear-gradient(180deg, #f26a1d 0%, #e3241b 22%, #c8161d 48%, #a50e12 74%, #6b0000 100%); }
}
.mission { background:
  radial-gradient(45% 55% at 92% 6%, rgba(255, 238, 205, .5), transparent 70%),
  radial-gradient(60% 70% at 100% 0%, rgba(247, 178, 59, .55), transparent 72%),
  radial-gradient(55% 70% at 0% 100%, rgba(74, 8, 7, .55), transparent 72%),
  linear-gradient(135deg, #a50e12 0%, #c8161d 32%, #e3241b 58%, #f26a1d 84%, #f8a43b 100%); }
.mission .m-glow { background: radial-gradient(closest-side, rgba(255, 220, 150, .9), transparent 70%); opacity: .45; }
.mission { background:
  radial-gradient(30% 40% at 96% 4%, rgba(255, 230, 180, .45), transparent 70%),
  radial-gradient(45% 55% at 100% 0%, rgba(247, 178, 59, .4), transparent 72%),
  radial-gradient(55% 70% at 0% 100%, rgba(74, 8, 7, .55), transparent 72%),
  linear-gradient(135deg, #8f0b10 0%, #b8121a 30%, #d61f1b 58%, #e2431c 84%, #ec5a1e 100%); }

/* ---------- daily scripture in the sidebar (desktop & tablet); phones keep the pop-up + floating icon ---------- */
.rail-verse, .rail-verse-btn { display: none; }
@media (min-width: 861px) {
  .vfab, .vfab.on { display: none !important; }
  html:not(.rail-min) .rail-verse { display: block; margin: 0 0 10px; padding: 12px 12px 10px; border-radius: 16px; color: #fff;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 14px 28px -18px rgba(60, 0, 0, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .rv-h { display: flex; align-items: center; gap: 7px; }
  .rv-h .i { width: 15px; height: 15px; color: #ffd27a; }
  .rv-h b { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: #ffd27a; }
  .rv-tx { margin: 8px 0 4px; font: italic 400 14px/1.4 "Instrument Serif", Georgia, serif; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
  .rv-ref { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: #ffd27a; }
  .rv-act { display: flex; gap: 6px; margin-top: 9px; }
  .rv-act button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 0; border-radius: 99px; cursor: pointer;
    background: rgba(255, 255, 255, .16); color: #fff; font: 600 11.5px var(--sans); transition: background .2s; }
  .rv-act button:hover { background: rgba(255, 255, 255, .26); }
  .rv-act button.speaking { background: #ffd27a; color: #4a0b08; }
  .rv-act .i { width: 13px; height: 13px; }
  /* icons-only sidebar (or a short screen): a book button opens the verse beside the menu */
  html.rail-min .rail-verse-btn { display: grid; }
  .vpop { left: calc(var(--rail-w, 96px) + 14px); right: auto; bottom: 22px; transform-origin: 0 100%; }
}
@media (min-width: 861px) and (max-height: 760px) {
  html:not(.rail-min) .rail-verse { display: none; }
  html:not(.rail-min) .rail-verse-btn { display: flex; }
}
@media (min-width: 861px) {
  html:not(.rail-min) .rail .rail-verse-btn { display: none; }
  html.rail-min .rail .rail-verse-btn { display: grid; }
  html:not(.rail-min) .rail .rail-verse + .rail-verse-btn ~ .rb { height: 40px; }
}
@media (min-width: 861px) and (max-height: 760px) { html:not(.rail-min) .rail .rail-verse-btn { display: flex; } }

/* ---------- footer: white background, frosted glass panel over soft flier-colour light (dark text) ---------- */
.foot { color: var(--ink); padding-top: 40px; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot { padding-top: 28px; background: #fff; } }
.foot .f-orb { display: block; mix-blend-mode: normal; filter: blur(70px); opacity: 1; }
.foot .f-orb.o1 { background: rgba(247, 178, 59, .35); top: -60px; }
.foot .f-orb.o2 { background: rgba(227, 36, 27, .18); }
.foot .f-orb.o3 { background: rgba(242, 106, 29, .22); }
.foot .f-glass { background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5)); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(200, 22, 29, .06), 0 30px 60px -36px rgba(165, 14, 18, .35);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.foot .f-top { border-bottom-color: rgba(43, 29, 25, .1); }
.foot .f-brand b { color: var(--ink); }
.foot .f-brand span, .foot .f-top p { color: var(--muted); }
.foot h4 { color: #c8161d; }
.foot .f-col a { color: var(--ink-2); }
.foot .f-col a:hover { color: #c8161d; }
.foot .f-col a:hover .i { color: #c8161d; }
.foot .f-row { color: var(--muted); border-top-color: rgba(43, 29, 25, .1); }
.foot .f-row a { color: var(--ink-2); } .foot .f-row a:hover { color: #c8161d; }
.foot::after { color: #c8161d; opacity: .06; }
.foot .f-orb.o1 { background: rgba(247, 178, 59, .5); } .foot .f-orb.o2 { background: rgba(227, 36, 27, .26); } .foot .f-orb.o3 { background: rgba(242, 106, 29, .32); }

/* ---------- Global Mission Control: all text white ---------- */
.mission, .mission h2, .mission p, .mission .live, .mission .m-stats b, .mission .m-stats small, .mission .gm-legend, .mission .gm-legend span, .mission .gm-legend .gm-live { color: #fff; }
.mission .gm-lbl, .mission .gm-lbl.hq { fill: #fff; }
.mission .m-stats small { opacity: .9; }

/* =====================================================================
   Inner pages in the Shiloh flier style: page banners, buttons, chips, tabs,
   calendar, lists, news cards, help and forms (wine accent = the default)
   ===================================================================== */

/* ---- page banner: white on the left, warming through gold and orange into red on the right ---- */
.content > .pg-head { position: relative; isolation: isolate; overflow: hidden; align-items: center; margin-top: 6px; padding: 26px 30px 24px;
  border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(38% 140% at 100% 0%, rgba(255, 240, 215, .5), transparent 62%),
    linear-gradient(100deg, #fff 0%, #fff 44%, #fef0dd 56%, #fbd29a 66%, #f8a43b 76%, #f26a1d 86%, #e3241b 94%, #b3101a 100%);
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -34px rgba(165, 14, 18, .55); }
.content > .pg-head::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 235, 200, .55), transparent); pointer-events: none; }
.content > .pg-head h1 { font-weight: 700; letter-spacing: -1.4px; }
.content > .pg-head h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #c8161d, #f26a1d, #f7b23b); }
.content > .pg-head .crumbs a:hover { color: #c8161d; }
.content > .pg-head .crumbs b { color: #c8161d; }
.content > .pg-head .pg-act .btn-ghost { background: rgba(255, 255, 255, .92); color: #a50e12; box-shadow: 0 10px 22px -14px rgba(74, 8, 7, .7); }
.content > .pg-head .pg-act .btn-ghost:hover { background: #fff; }
.content > .pg-head .seg-tabs { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 22px -14px rgba(74, 8, 7, .7); }
@media (max-width: 860px) {
  .content > .pg-head { padding: 20px 18px 18px; border-radius: 24px;
    background:
      radial-gradient(80% 60% at 100% 100%, rgba(255, 240, 215, .4), transparent 65%),
      linear-gradient(172deg, #fff 0%, #fff 52%, #fef0dd 64%, #fbd29a 74%, #f8a43b 84%, #f26a1d 94%, #e3241b 100%); }
  .content > .pg-head h1::after { width: 44px; height: 3px; margin-top: 8px; }
}

/* ---- buttons ---- */
html[data-accent="wine"] .btn-ac { background: linear-gradient(135deg, #e3241b 0%, #c8161d 55%, #a50e12 100%); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(200, 22, 29, .85), 0 1px 0 rgba(255, 255, 255, .25) inset; }
html[data-accent="wine"] .btn-ac:hover { background: linear-gradient(135deg, #f26a1d 0%, #e3241b 50%, #c8161d 100%); box-shadow: 0 16px 28px -14px rgba(227, 36, 27, .85); }
.btn-ghost { transition: transform .2s, box-shadow .2s, color .2s, background .2s; }
.btn-ghost:hover { color: #a50e12; box-shadow: 0 0 0 1px rgba(200, 22, 29, .35), 0 10px 20px -16px rgba(165, 14, 18, .6); }

/* ---- chips and tabs ---- */
html[data-accent="wine"] .chip.on, html[data-accent="wine"] .seg-tabs a.on { background: linear-gradient(135deg, #e3241b, #a50e12); color: #fff; box-shadow: 0 8px 16px -10px rgba(165, 14, 18, .8); }
html[data-accent="wine"] .chip.on em { background: #ffd27a; color: #4a0b08; }
.chip:not(.on):hover { box-shadow: 0 0 0 1px rgba(200, 22, 29, .3); color: #a50e12; }
.seg-tabs a:not(.on):hover { color: #a50e12; }

/* ---- cards, panel headings, list rows ---- */
.card.panel { border-color: rgba(200, 22, 29, .08); }
.p-h h2, .p-h h3 { letter-spacing: -.3px; }
.u-ic { background: linear-gradient(145deg, #fff3e3, #fcd9c8); color: #c8161d; }
.u-row, .a-row { transition: background .2s; }
.u-row:hover, .a-row:hover, .a-row.on { background: linear-gradient(90deg, rgba(247, 178, 59, .14), rgba(242, 106, 29, .05)); }
.a-row.on { box-shadow: inset 3px 0 0 #e3241b; }

/* ---- news cards ---- */
.n-card { position: relative; transition: transform .2s, box-shadow .2s; }
.n-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #c8161d, #f26a1d, #f7b23b); opacity: 0; transition: opacity .2s; }
.n-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(200, 22, 29, .2), 0 20px 36px -24px rgba(165, 14, 18, .55); }
.n-card:hover::before { opacity: 1; }

/* ---- calendar ---- */
html[data-accent="wine"] .cal-d.is-today { box-shadow: 0 0 0 2px #e3241b; }
html[data-accent="wine"] .cal-d.sel { background: linear-gradient(135deg, #e3241b, #a50e12); color: #fff; box-shadow: 0 10px 20px -12px rgba(165, 14, 18, .8); }
html[data-accent="wine"] .cal-d.sel .dts i { background: #ffd27a; }
.ev .nu-d, .ev-d { background: linear-gradient(135deg, #e3241b, #a50e12); }

/* ---- help: FAQs and the service-desk card ---- */
details.faq[open] > summary { color: #c8161d; }
details.faq[open] { box-shadow: inset 3px 0 0 #e3241b; }
.c-av { background: radial-gradient(70% 90% at 80% 10%, rgba(255, 240, 215, .7), transparent 60%), linear-gradient(135deg, #f8a43b, #e3241b 55%, #a50e12); color: #fff; }

/* ---- search boxes and form fields ---- */
.a-search:focus-within, .input:focus-within, .search-pill:focus-visible { box-shadow: 0 0 0 2px #e3241b, 0 0 0 6px rgba(227, 36, 27, .12); }

/* ---- legal pages: table of contents ---- */
.toc a.on, .toc a[aria-current] { color: #c8161d; box-shadow: inset 3px 0 0 #e3241b; }

/* ---- pages kept from the older design (profile, directory, video player) ---- */
body .legacy { --primary: #c8161d; --primary-deep: #a50e12; }

/* ---------- sign-in pages: Shiloh flier under a warm flier-colour overlay ---------- */
.auth-art img { object-position: 50% 35%; }
.auth-art::after {
  background:
    linear-gradient(180deg, rgba(74, 8, 7, .05) 0%, rgba(120, 10, 14, .35) 40%, rgba(110, 8, 10, .88) 78%, rgba(74, 6, 6, .96) 100%),
    linear-gradient(200deg, rgba(247, 178, 59, .35) 0%, rgba(242, 106, 29, .3) 30%, rgba(227, 36, 27, .38) 60%, rgba(165, 14, 18, .5) 100%); }
.auth-art .aa-tx h1 { text-shadow: 0 2px 18px rgba(60, 0, 0, .45); }
.auth-art cite { color: #ffd27a; }
.auth-card h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #c8161d, #f26a1d, #f7b23b); }
.auth-card .field label a, .auth-help a { color: #c8161d; }

/* ---------- older-design pages (directory, profile, video player): same banner + flier cover ---------- */
.legacy .pf-wrap > .pg-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 6px 0 16px; padding: 26px 30px 24px; border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(38% 140% at 100% 0%, rgba(255, 240, 215, .5), transparent 62%),
    linear-gradient(100deg, #fff 0%, #fff 44%, #fef0dd 56%, #fbd29a 66%, #f8a43b 76%, #f26a1d 86%, #e3241b 94%, #b3101a 100%);
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -34px rgba(165, 14, 18, .55); }
.legacy .pf-wrap > .pg-head h1 { font-weight: 700; letter-spacing: -1.2px; }
.legacy .pf-wrap > .pg-head h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #c8161d, #f26a1d, #f7b23b); }
.legacy .pf-wrap > .pg-head .crumbs b { color: #c8161d; }
@media (max-width: 860px) {
  .legacy .pf-wrap > .pg-head { padding: 20px 18px 18px; border-radius: 24px;
    background: linear-gradient(172deg, #fff 0%, #fff 52%, #fef0dd 64%, #fbd29a 74%, #f8a43b 84%, #f26a1d 94%, #e3241b 100%); }
}
.legacy .c1-cover::after { background:
  linear-gradient(100deg, rgba(110, 8, 10, .88) 0%, rgba(200, 22, 29, .6) 40%, rgba(242, 106, 29, .42) 72%, rgba(247, 178, 59, .35) 100%) !important; }

/* ---------- sign-in pages: just the sign-in card, centred ---------- */
.auth.solo { position: relative; display: flex; justify-content: center; align-items: center; padding: 24px 16px 34px; }
.auth.solo::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(620px, 92vw); height: 460px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 178, 59, .32), rgba(242, 106, 29, .14) 55%, transparent); filter: blur(30px); pointer-events: none; }
.auth.solo .auth-card { width: 100%; max-width: 460px; padding: 36px 36px 30px; border-radius: 28px; box-shadow: 0 1px 0 #fff inset, 0 30px 60px -36px rgba(165, 14, 18, .5); }
@media (max-width: 600px) { .auth.solo { padding: 8px 12px 24px; } .auth.solo .auth-card { padding: 26px 20px 22px; border-radius: 24px; } }

/* ---------- Resources: empty library ---------- */
.doc-empty { display: grid; justify-items: center; gap: 6px; padding: 46px 16px 40px; text-align: center; }
.doc-empty .u-ic { width: 56px; height: 56px; margin-bottom: 6px; }
.doc-empty .u-ic .i { width: 24px; height: 24px; }
.doc-empty b { font-size: 16px; }
.doc-empty small { max-width: 42ch; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- design theme "Atrium" (Admin → Settings → Appearance): Atrium wine/brown overlay over the sidebar ---------- */
@media (min-width: 861px) {
  html[data-design="atrium"] .rail { background:
    linear-gradient(180deg, rgba(106, 27, 44, .58) 0%, rgba(74, 22, 30, .64) 45%, rgba(43, 29, 25, .78) 100%),
    radial-gradient(120% 220px at 0% 0%, rgba(255, 238, 205, .28), transparent 70%),
    radial-gradient(140% 300px at 100% 60px, rgba(247, 178, 59, .3), transparent 72%),
    linear-gradient(180deg, #f26a1d 0%, #e3241b 22%, #c8161d 48%, #a50e12 74%, #6b0000 100%); }
}

/* ---------- home: welcome section edge to edge and up under the top bar ----------
   --bx = the gap between the content column and the edge of the screen (or the sidebar), set by app.js */
.content > .hero.hero:has(.hslider):first-child {
  --bx: var(--hero-bx, 24px);   /* measured by the page script */
  --hp-l: calc(var(--bx) + 34px); --hp-r: calc(var(--bx) + 30px); --hp-t: calc(var(--top-h) + 54px); --hp-b: 34px;
  margin: calc(-20px - var(--top-h)) calc(-1 * var(--bx)) 0;
  padding: var(--hp-t) var(--hp-r) var(--hp-b) var(--hp-l);
  border-width: 0 0 1px; border-radius: 0;
}
@media (max-width: 1180px) and (min-width: 861px) {
  .content > .hero.hero:has(.hslider):first-child { --hp-l: calc(var(--bx) + 26px); --hp-r: calc(var(--bx) + 26px); --hp-t: calc(var(--top-h) + 46px); --hp-b: 26px; }
  .content > .hero.hero:has(.hslider):first-child > .hero-r { margin: 18px calc(-1 * var(--hp-r)) calc(-1 * var(--hp-b)) calc(-1 * var(--hp-l)); width: calc(100% + var(--hp-l) + var(--hp-r)); }
}
@media (max-width: 860px) {
  .content > .hero.hero:has(.hslider):first-child {
    --bx: var(--hero-bx, 16px);
    --hp-l: calc(var(--bx) + 18px); --hp-r: calc(var(--bx) + 18px); --hp-t: calc(var(--top-h) + 26px); --hp-b: 20px;
    margin: calc(-6px - var(--top-h)) calc(-1 * var(--bx)) 0; border-radius: 0;
  }
  .content > .hero.hero:has(.hslider):first-child > .hero-r { margin: 14px calc(-1 * var(--hp-r)) calc(-1 * var(--hp-b)) calc(-1 * var(--hp-l)); width: calc(100% + var(--hp-l) + var(--hp-r)); }
}
/* the top bar is see-through while it sits over the welcome section */
html.top-clear .top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top { transition: background .25s, border-color .25s; }
@media (min-width: 1181px) { .content > .hero.hero:has(.hslider):first-child { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); } }

/* ---------- brand moves into the sidebar; the top bar starts with the search (desktop & tablet) ---------- */
.rail-brand .rl-tx { display: none; }
@media (max-width: 860px) { .rail-brand { display: none; } }
@media (min-width: 861px) {
  .top > .brand { display: none; }
  .top-r { flex: 1; min-width: 0; }
  .top-r .search-pill { margin-right: auto; }
  .rail-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .rail-brand .rail-logo { flex: none; margin: 0; }
  html:not(.rail-min) .rail-brand { margin: 0 0 12px 2px; }
  html:not(.rail-min) .rail-brand .rl-tx { display: grid; gap: 2px; min-width: 0; color: #fff; line-height: 1.15; }
  .rl-tx b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
  .rl-tx small { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .82); }
  html.rail-min .rail-brand { justify-content: center; }
}
@media (min-width: 861px) and (max-width: 1080px) { .top-r .search-pill { margin-right: auto; } }
@media (min-width: 861px) { .top-r .search-pill, .top-r .search-pill { margin-right: 0; } .top-r > :last-child { margin-left: auto; } }   /* icons sit beside the search; only the profile stays on the right */
.hero .h-chip, .content > .hero:has(.hslider) .h-meta .h-chip { height: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }   /* the date is plain text */
.hero .h-latest { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; } .hero .h-latest:hover { transform: none; box-shadow: none; } .hero .h-latest span { padding: 0; background: none; border-radius: 0; color: #c8161d; } .hero .h-latest:hover b { color: #c8161d; }   /* the Latest link is plain text too */
@media (min-width: 1181px) { .content > .hero.hero:has(.hslider):first-child { min-height: clamp(580px, 76vh, 780px); align-items: stretch; } .content > .hero.hero:has(.hslider):first-child > .hero-l { justify-content: center; } }   /* taller welcome section */

/* ---------- tall welcome section: whole flier visible, a blurred copy of it fills the space around it (desktop) ---------- */
@media (min-width: 1181px) {
  .content > .hero.hero:has(.hslider):first-child .hs-img { overflow: hidden; }
  .content > .hero.hero:has(.hslider):first-child .hs-img::before { content: ""; position: absolute; inset: -30px; z-index: 0;
    background: var(--hs-src) center / cover no-repeat; filter: blur(26px) saturate(1.2);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .content > .hero.hero:has(.hslider):first-child .hs-img img { z-index: 1; object-fit: contain; object-position: 58% 42%; }
}

/* ---------- welcome picture blends in smoothly (desktop): no hard line, flier edges melt into the blur ---------- */
@media (min-width: 1181px) {
  .content > .hero.hero:has(.hslider):first-child .hs-img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 9%, rgba(0, 0, 0, .8) 20%, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 9%, rgba(0, 0, 0, .8) 20%, #000 32%); }
  .content > .hero.hero:has(.hslider):first-child .hs-img::before { inset: -60px; filter: blur(34px) saturate(1.35) brightness(1.02); -webkit-mask-image: none; mask-image: none; }
  .content > .hero.hero:has(.hslider):first-child .hs-img img {
    --fe: 9%;   /* how soft the flier's edges are */
    -webkit-mask-image:
      linear-gradient(90deg, transparent var(--fx, 0%), #000 calc(var(--fx, 0%) + var(--fe)), #000 calc(100% - var(--fx, 0%) - var(--fe)), transparent calc(100% - var(--fx, 0%))),
      linear-gradient(180deg, transparent var(--fy, 0%), #000 calc(var(--fy, 0%) + var(--fe)), #000 calc(100% - var(--fy, 0%) - var(--fe)), transparent calc(100% - var(--fy, 0%)));
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent var(--fx, 0%), #000 calc(var(--fx, 0%) + var(--fe)), #000 calc(100% - var(--fx, 0%) - var(--fe)), transparent calc(100% - var(--fx, 0%))),
      linear-gradient(180deg, transparent var(--fy, 0%), #000 calc(var(--fy, 0%) + var(--fe)), #000 calc(100% - var(--fy, 0%) - var(--fe)), transparent calc(100% - var(--fy, 0%)));
    mask-composite: intersect; }
}
.content > .hero.hero:has(.hslider):first-child h1 { font-size: clamp(38px, 4.6vw, 70px); letter-spacing: -2px; line-height: 1; } .content > .hero.hero:has(.hslider):first-child h1 .h-sub { margin-top: 10px; font-size: .74em; letter-spacing: -.8px; line-height: 1.05; }   /* bigger greeting */
@media (min-width: 1181px) { .content > .hero.hero:has(.hslider):first-child { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr); } .content > .hero.hero:has(.hslider):first-child h1 { font-size: clamp(44px, 4.1vw, 64px); } } .content > .hero.hero:has(.hslider):first-child h1 #greet { white-space: nowrap; }
@media (min-width: 861px) { .top-r > :last-child { margin-left: 0; } .top-r > .avatar, .top-r > .pop-wrap:has(> .avatar) { margin-left: auto; } }   /* only the signed-in account menu sits on the right */
.launcher, .panel.launcher { position: relative; overflow: hidden; padding: 26px 28px 22px; border-radius: 28px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -34px rgba(94, 58, 42, .5); } .launcher::before { display: none; }
@media (max-width: 860px) { .launcher, .panel.launcher { padding: 18px 14px 14px; border-radius: 24px; } }   /* Applications & Tools sits in a white rounded box */

/* ---------- Applications & Tools: balanced, equal-height app cards (icon left, name right) ---------- */
.launcher #appGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; margin: 4px 0 6px; }
.launcher #appGrid .tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  align-content: center; align-items: center; justify-items: start; min-height: 70px; padding: 12px 14px; text-align: left;
  border-radius: 18px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(43, 29, 25, .07); box-shadow: none; }
.launcher #appGrid .tile .t-ic { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
.launcher #appGrid .tile .t-ic .i { width: 22px; height: 22px; }
.launcher #appGrid .tile b { grid-column: 2; max-width: none; font-size: 13.5px; font-weight: 700; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.launcher #appGrid .tile small { grid-column: 2; font-size: 11.5px; }
.launcher #appGrid .tile:hover, .launcher #appGrid .tile:focus-visible { background: #fff; border-color: rgba(200, 22, 29, .18); transform: translateY(-2px);
  box-shadow: 0 14px 26px -20px rgba(165, 14, 18, .55); }
.launcher #appGrid .tile:hover .t-ic { transform: none; box-shadow: none; }
.launcher #appGrid .tile.soon { opacity: .75; }
/* header: title on the left, “View all” and search on the right, filters on their own line */
.launcher .p-h { align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.launcher #chips { margin-bottom: 16px; }
@media (min-width: 1400px) { .launcher #appGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .launcher #appGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .launcher #appGrid .tile { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; min-height: 62px; padding: 10px 10px; }
  .launcher #appGrid .tile .t-ic { width: 32px; height: 32px; } .launcher #appGrid .tile .t-ic .i { width: 19px; height: 19px; }
  .launcher #appGrid .tile b { font-size: 12.5px; }
}

/* ---------- Applications & Tools: equal tiles, every row filled (the script picks the column count) ---------- */
.launcher #appGrid { grid-template-columns: repeat(var(--app-cols, 6), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.launcher #appGrid .tile { grid-template-columns: 1fr; grid-template-rows: 44px auto 16px; justify-items: center; align-content: start; row-gap: 8px;
  min-height: 132px; padding: 18px 10px 14px; text-align: center; }
.launcher #appGrid .tile .t-ic { grid-row: 1; width: 44px; height: 44px; }
.launcher #appGrid .tile .t-ic .i { width: 24px; height: 24px; }
.launcher #appGrid .tile b { grid-column: 1; grid-row: 2; font-size: 13px; line-height: 1.3; }
.launcher #appGrid .tile small { grid-column: 1; grid-row: 3; font-size: 11px; }
@media (max-width: 860px) {
  .launcher #appGrid { gap: 8px; }
  .launcher #appGrid .tile { grid-template-columns: 1fr; grid-template-rows: 34px auto 14px; min-height: 112px; padding: 14px 6px 10px; row-gap: 6px; }
  .launcher #appGrid .tile .t-ic { width: 34px; height: 34px; } .launcher #appGrid .tile b { font-size: 12px; }
}
.launcher #appGrid .tile b { -webkit-line-clamp: 3; }

/* ---------- front page: Today at a glance (four cards under the welcome section) ---------- */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; position: relative; z-index: 2; }
.gl-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 138px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px;
  background: var(--glass); box-shadow: var(--shadow); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.gl-tile:hover, .gl-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(165, 14, 18, .55); }
.gl-k { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ac); }
.gl-k .i { width: 15px; height: 15px; }
.gl-tile b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-tile small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.gl-tile small.gl-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-when, .gl-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.gl-when em { font-style: normal; padding: 2px 8px; border-radius: 99px; background: var(--ac-soft); color: var(--ac); }
.gl-go .i { width: 15px; height: 15px; }
.gl-live { background: linear-gradient(140deg, #8a0b1f, #c8161d 55%, #e0562a); color: #fff; border-color: transparent; }
.gl-live .gl-k, .gl-live small, .gl-live .gl-go { color: rgba(255, 255, 255, .9); }
.gl-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: glPulse 1.8s infinite; }
@keyframes glPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .gl-dot { animation: none; } }

/* ---------- front page: Keep learning (training videos) ---------- */
.kl-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kl-h h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.kl-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.kl-h .btn-ghost .i { width: 14px; height: 14px; margin-left: 4px; }
.kl-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kl-vid { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink); }
.kl-th { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: 18px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(150deg, var(--g), #2b1d19); box-shadow: var(--shadow); transition: transform .25s; }
.kl-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kl-vid:hover .kl-th, .kl-vid:focus-visible .kl-th { transform: translateY(-3px); }
.kl-th .i { position: relative; width: 42px; height: 42px; padding: 11px; border-radius: 50%; background: rgba(0, 0, 0, .28); backdrop-filter: blur(6px); }
.kl-th em { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 7px; background: rgba(0, 0, 0, .6); font: 700 11px/1.2 var(--sans); font-style: normal; }
.kl-bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--hl); }
.kl-vid b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kl-vid small { font-size: 12px; color: var(--muted); }

@media (max-width: 1180px) { .glance, .kl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .glance { gap: 10px; } .gl-tile { min-height: 124px; padding: 14px; }
  .kl-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .kl-vid { flex: 0 0 74%; scroll-snap-align: start; }
}

/* ---------- Applications & Tools inside the white box: soft tiles so they stand out from the box ---------- */
.launcher #appGrid .tile { background: var(--ground, #f7efe8); border-color: transparent; }
.launcher #appGrid .tile:hover, .launcher #appGrid .tile:focus-visible { background: #fff; border-color: rgba(200, 22, 29, .18); }

/* ---------- typography in the support.lfcww.org style (13 Nov 2026) ----------
   Plus Jakarta Sans, bold and tightly tracked for headings, with one word in red Instrument Serif italic;
   larger, softer intro text; small spaced-out red capitals for labels. */
:root { --t-ink: #1f1a16; --t-muted: #5e554c; --t-serif: "Instrument Serif", Georgia, serif; }
.ac-w { font-family: var(--t-serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -.01em; color: var(--ac); padding-right: .04em; }

/* welcome: “Good evening” in the red serif italic, the welcome line in bold sans */
.content > .hero.hero:has(.hslider):first-child h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 3.7vw, 58px); line-height: 1.02; letter-spacing: -.045em; color: var(--t-ink); }
.content > .hero.hero:has(.hslider):first-child h1 #greet { display: block; font-family: var(--t-serif); font-style: italic; font-weight: 400; font-size: 1.14em; line-height: 1; letter-spacing: -.015em; color: var(--ac); white-space: nowrap; }
.content > .hero.hero:has(.hslider):first-child h1 .h-sub { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 1em; line-height: 1.04; letter-spacing: -.045em; color: var(--t-ink); }
.content > .hero.hero:has(.hslider):first-child .lead { max-width: 44ch; margin-top: 18px; font-size: 17px; line-height: 1.55; font-weight: 400; color: var(--t-muted); }
.content > .hero.hero:has(.hslider):first-child .h-meta { font-size: 13px; font-weight: 600; color: var(--t-ink); }

/* section headings */
.launcher .p-h h2, .kl-h h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; color: var(--t-ink); }
.launcher .p-h .sub, .kl-h p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--t-muted); }
.mission h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.mission h2 .ac-w { color: var(--hl); }
.mission .m-copy p { font-size: 15px; line-height: 1.55; }

/* page titles on the inner pages */
.pg-head h1 { font-weight: 700; line-height: 1.04; letter-spacing: -.045em; color: var(--t-ink); }
.pg-head p { font-size: 16px; line-height: 1.55; color: var(--t-muted); }
.crumbs { letter-spacing: .02em; }

/* labels and card titles */
.gl-k { font-size: 11.5px; letter-spacing: .12em; }
.gl-tile b, .kl-vid b { font-weight: 700; letter-spacing: -.015em; }
.gl-live b { color: #fff; }
.launcher #appGrid .tile b { font-weight: 600; letter-spacing: -.01em; }

@media (max-width: 860px) {
  .content > .hero.hero:has(.hslider):first-child h1 { font-size: clamp(32px, 9vw, 44px); }
  .content > .hero.hero:has(.hslider):first-child .lead { font-size: 15.5px; }
  .pg-head p { font-size: 14.5px; }
}
