/* New Zion Leadership Hub: the Executive Leadership Compass, opened on a screen.
   Deep burgundy banners, gold rules, cream pages, Georgia for titles and Calibri for the interface.
   No text is smaller than 1rem (12pt). */

:root {
  --ink: #4a0102;          /* burgundy */
  --deep: #2e0001;         /* burgundy, darkest */
  --garnet: #6b1a1c;       /* burgundy, lighter */
  --gold: #dca356;         /* gold, for use on burgundy */
  --gold-text: #8a5f1a;    /* antique gold, readable on white and cream */
  --desk: #fbf5e9;         /* cream */
  --sheet: #ffffff;
  --parchment: #f3e3c3;
  --brass-soft: #f6ecd6;
  --text: #2b1210;
  --muted: #6b5e57;
  --line: #e8dcc0;
  --line-strong: #cdbf9f;
  --good: #2b6650; --good-soft: #e3f0ea;
  --warn: #8a4b12; --warn-soft: #f7ead9;
  --bad: #9b2c2c;  --bad-soft: #f8e4e4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --cover: radial-gradient(ellipse 60% 90% at 85% 0%, rgba(220,163,86,.22), transparent 60%),
           linear-gradient(135deg, #2e0001 0%, #4a0102 55%, #5e0d10 100%);
  --weave: repeating-linear-gradient(45deg, rgba(220,163,86,.05) 0 1px, transparent 1px 14px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body { margin: 0; background: var(--desk); color: var(--text); font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 2.4rem; font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: 1.65rem; font-weight: 400; margin-top: 2.2em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.8em; }
p { margin: 0 0 1.15em; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; border-radius: 2px; }
.noscript { padding: 2rem; text-align: center; }

/* ------------------------------------------------------------ layout: sidebar + content */
.layout { display: grid; grid-template-columns: 19rem minmax(0, 1fr); min-height: 100vh; }
.content { min-width: 0; }

.side { background: var(--weave), linear-gradient(180deg, #4a0102 0%, #3a0001 100%); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 2.25rem 1.5rem 1.75rem; border-right: 1px solid rgba(220,163,86,.35); }
.side-brand { text-align: center; padding-bottom: 1.75rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(220,163,86,.35); }
.side-logo { display: block; width: 100%; max-width: 14rem; height: auto; margin: -.5rem auto .5rem; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: .01em; margin: 0; color: #fff; line-height: 1.2; }
.side-label { margin: .9rem 0 0; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.tabs { flex: 1; }
.tabs ul { list-style: none; margin: 0; padding: 0; counter-reset: nav; display: grid; gap: .35rem; }
.tabs li { counter-increment: nav; }
.tabs a { display: block; padding: .85rem 1rem; border-radius: 6px; text-decoration: none; color: #f3e3c3; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; border-left: 3px solid transparent; transition: background .15s ease, color .15s ease; }
.tabs a::before { content: counter(nav) ". "; color: var(--gold); }
.tabs a:hover { background: rgba(255,255,255,.07); color: #fff; }
.tabs a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; border-left-color: var(--gold); }

.side-foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(220,163,86,.35); font-size: 1rem; }
.signed { margin: 0 0 1rem; color: #e6cfa6; line-height: 1.45; }
.signed strong { display: block; color: #fff; font-weight: 600; font-size: 1.0625rem; margin-top: .2rem; }
.signed span { display: block; word-break: break-all; }
.side-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.side .btn.quiet { background: transparent; color: #f3e3c3; border: 1px solid rgba(220,163,86,.55); border-radius: 4px; padding: .45rem .95rem; font-weight: 500; font-size: 1rem; }
.side .btn.quiet:hover { background: rgba(255,255,255,.1); color: #fff; border-color: var(--gold); transform: none; }
.side-note { margin: 1.5rem 0 0; color: #cdb48a; line-height: 1.45; text-align: center; }
.side-note .powered { display: block; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: #cdb48a; }
.side-note strong { display: block; margin-top: .2rem; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; color: #fff; }
.side-pastor { margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.3; color: var(--gold); }

/* ------------------------------------------------------------ welcome header */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fffdf8, var(--desk)); }
.hero-inner { max-width: 62rem; margin: 0 auto; padding: 3.5rem 3rem 3rem; }
.eyebrow { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 1rem; }
.hero-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.hero-title::after { content: ""; display: block; width: 4.5rem; height: 3px; background: var(--gold); margin: 1.4rem 0 1.15rem; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); margin: 0; max-width: 40rem; }

main { max-width: 62rem; margin: 0 auto; padding: 3.5rem 3rem 6rem; }
main:focus { outline: none; }
.narrow { max-width: 42rem; }
.narrow > h1 { margin-bottom: .5em; }
.narrow + .narrow, main > .narrow:not(:first-child) { margin-top: 4rem; }

/* ------------------------------------------------------------------ buttons */
.btn { font: inherit; font-weight: 600; letter-spacing: .03em; cursor: pointer; padding: .85rem 1.75rem; border-radius: 2px; border: 0; border-bottom: 3px solid var(--gold); background: var(--ink); color: #fff; text-decoration: none; display: inline-block; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--garnet); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-bottom-width: 1px; }
.btn.quiet:hover { background: #fff; border-color: var(--ink); }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 2.5rem; }

/* --------------------------------------------------------- the workbook page */
.sheet { background: var(--sheet); border: 1px solid var(--line); padding: 0 0 3.5rem; box-shadow: 0 2px 4px rgba(46,0,1,.05), 0 28px 60px -34px rgba(46,0,1,.4); }
.sheet-head { background: var(--weave), var(--cover); padding: 3.25rem clamp(1.5rem, 6vw, 4.5rem) 3rem; margin: 0; border-bottom: 4px solid var(--gold); }
.sheet-head .assessment { font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.4rem; line-height: 1.5; }
.sheet-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .5rem; }
.sheet-head .person { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--parchment); margin: 0; }
.sheet .prose { margin: 0 clamp(1.5rem, 6vw, 4.5rem); padding-top: 3rem; max-width: 40rem; }
.sheet .note-line { margin-left: clamp(1.5rem, 6vw, 4.5rem); margin-right: clamp(1.5rem, 6vw, 4.5rem); }

.prose { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.85; max-width: 40rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: ""; display: block; width: 3rem; height: 3px; background: var(--gold); margin-bottom: 1rem; }
.prose h3 { font-size: 1.55rem; font-weight: 400; margin-top: 2.6em; }
.prose h3:first-child { margin-top: 0; }
.prose h3::before { content: ""; display: block; width: 3rem; height: 3px; background: var(--gold); margin-bottom: 1rem; }
.prose h4 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
.prose ul { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold-text); }

.note-line { font-size: 1rem; color: var(--muted); margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------- forms */
.card { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 2px; padding: 2.5rem; box-shadow: 0 28px 50px -34px rgba(46,0,1,.4); }
.narrow .card { margin-top: 1.75rem; }
label, legend { font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; margin-bottom: .45rem; }
input[type="email"], input[type="password"], input[type="text"], textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: .85rem 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(220,163,86,.4); outline: none; }
textarea { min-height: 10rem; resize: vertical; line-height: 1.7; }
.hint { color: var(--muted); font-size: 1rem; margin: .5rem 0 0; }
.narrow > .hint { margin-bottom: 1.75rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.choice { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 4.25rem; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-bottom: 3px solid var(--line-strong); border-radius: 2px; background: #fff; cursor: pointer; font-weight: 600; font-size: 1.1875rem; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:hover { border-color: var(--ink); border-bottom-color: var(--ink); }
.choice:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); border-bottom-color: var(--gold); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold-text); outline-offset: 3px; }

.msg { padding: 1rem 1.25rem; border-radius: 2px; margin: 1.25rem 0; font-size: 1rem; border-left: 4px solid currentColor; }
.msg.good { background: var(--good-soft); color: var(--good); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.bad  { background: var(--bad-soft);  color: var(--bad); }
.status { font-size: 1rem; color: var(--muted); min-height: 1.3em; margin-top: .5rem; }
.status.error { color: var(--bad); font-weight: 600; }

/* ------------------------------------------------------------------- login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--weave), var(--cover); }
.login { width: 100%; max-width: 27rem; }
.login .brand { display: block; text-align: center; color: #fff; font-size: 2.1rem; letter-spacing: .01em; line-height: 1.15; margin-bottom: 0; }
.login .brand::before { display: block; margin-bottom: 1.25rem; font-size: 1.25rem; }
.login-logo { display: block; width: 100%; max-width: 15rem; height: auto; margin: 0 auto 1.25rem; }
.login .brand::before { content: none; }
.login .brand small { display: block; margin-top: .9rem; font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.login .brand::after { content: ""; display: block; width: 4rem; height: 2px; background: var(--gold); margin: 1.6rem auto 0; }
.login .card { margin-top: 2rem; padding: 2.5rem; border: 0; border-top: 4px solid var(--gold); background: var(--desk); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.login .card h1 { font-size: 2rem; }
.login .card .msg { margin-bottom: 0; }
.login .hint { text-align: center; margin-top: 1.5rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); cursor: pointer; text-underline-offset: 4px; }

/* --------------------------------------------------------------- reflection */
.q { margin-bottom: 2.75rem; }
.q label { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: .6rem; line-height: 1.4; }
.print-answer { display: none; }

/* --------------------------------------------------------------- guide page */
.jump { display: flex; gap: 1.75rem; flex-wrap: wrap; margin: 1.5rem 0 3rem; padding: 0; list-style: none; }
.guide-item { padding: 2rem 0 2.25rem; border-top: 1px solid var(--line); }
.guide-item h3 { margin-top: 0; font-weight: 400; font-size: 1.5rem; }
.guide-item h3::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--gold); margin-bottom: .9rem; }
.guide-item dl { margin: .75rem 0 0; }
.guide-item dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.guide-item dd { margin: .2rem 0 0; max-width: 40rem; }

/* --------------------------------------------------------- lists and tables */
.people { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.people a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.6rem 1.6rem 1.4rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.people a:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(46,0,1,.5); }
.people a span:first-child { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.25; }
.people .sub { color: var(--muted); }
.people a::after { content: "Open profile \2192"; margin-top: .9rem; color: var(--gold-text); font-weight: 600; letter-spacing: .02em; }
.people { max-width: none; }

.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; }
th, td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: #fff; background: var(--ink); letter-spacing: .04em; border-bottom: 3px solid var(--gold); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fdf9ef; }
.badge { display: inline-block; padding: .2rem .8rem; border-radius: 99px; font-weight: 600; font-size: 1rem; }
.badge.yes { background: var(--good-soft); color: var(--good); }
.badge.partly { background: var(--warn-soft); color: var(--warn); }
.badge.no { background: var(--bad-soft); color: var(--bad); }
.badge.none { background: #efe6d6; color: var(--muted); }
.tally { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.tally div { font-size: 1rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 1rem 1.5rem; min-width: 8rem; }
.tally strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1.1; color: var(--ink); }

.print-only { display: none; }

@media (max-width: 60rem) {
  .layout { display: block; }
  .side { position: static; height: auto; padding: 1.5rem 1.25rem 1.25rem; }
  .side-brand { padding-bottom: 1.25rem; margin-bottom: 1rem; }
  .side-logo { max-width: 9rem; }
  .tabs ul { display: flex; gap: .5rem; overflow-x: auto; }
  .tabs a { white-space: nowrap; }
  .side-foot { margin-top: 1.25rem; padding-top: 1.25rem; }
  .side-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-inner { padding: 2.5rem 1.5rem 2.25rem; }
  main { padding: 2.25rem 1.5rem 4rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.9rem; }
  .sheet-head { padding: 2.25rem 1.35rem 2rem; }
  .card { padding: 1.75rem 1.35rem; }
}

/* ------------------------------------------------------- 30-60-90 plan */
.plan-wrap { max-width: 56rem; }
.plan-block { margin: 3.5rem 0; }
.plan-block > h2 { margin-top: 0; padding-top: 1.5rem; border-top: 4px solid var(--gold); }
.plan-row { margin: 2rem 0; }
.plan-row > h3 { margin-top: 0; font-size: 1.2rem; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.plan-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-cell label { display: block; margin-bottom: .4rem; }
.plan-cell textarea { min-height: 9rem; }
.plan-q { font-family: var(--serif); font-style: italic; color: var(--muted); }
.plan-aside { background: var(--brass-soft); border-left: 4px solid var(--gold); padding: 1.1rem 1.4rem .2rem; margin: 1.5rem 0; }
.plan-aside strong { display: block; margin-bottom: .4rem; color: var(--ink); }
.plan-salutation { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 1.25rem 0 .5rem; }
.plan-pledge { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; max-width: 40rem; }
.agree { display: flex; align-items: flex-start; gap: .9rem; font-size: 1.15rem; cursor: pointer; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line-strong); border-bottom: 3px solid var(--gold); max-width: 40rem; }
.agree input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; accent-color: var(--ink); flex: none; }
.people.plans a::after { content: "Open plan \2192"; }
.plan-ro h3 { margin-top: 2.2em; }
.plan-ro h4 { margin-top: 1.8em; }
.plan-ro .ro th, .plan-ro .ro td { white-space: pre-wrap; }
.plan-ro .ro tbody th { background: var(--desk); color: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.ro-text { white-space: pre-wrap; }
.plan-ro .ro table { table-layout: fixed; }
.plan-ro .ro th:first-child { width: 30%; }
@media (max-width: 48rem) { .plan-grid, .plan-grid.two { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* -------------------------------------------------------------------- print */
@page { margin: 0.8in; }

@media print {
  .layout { display: block; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .side, .hero, .tabs, .no-print, .actions, .status, .btn { display: none !important; }
  main { max-width: none; padding: 0; }
  .sheet { border: 0; border-left: 3px solid #000; box-shadow: none; padding: 0 0 0 .25in; }
  .sheet-head { border-bottom-color: #999; background: none; padding: 0 0 1.25rem; margin: 0 0 1.5rem; }
  .sheet-head h1, .sheet-head .person, .sheet-head .assessment { color: #000; }
  .sheet .prose, .sheet .note-line { margin-left: 0; margin-right: 0; padding-top: 0; }
  .prose h2::before, .prose h3::before { display: none; }
  .mine { color: #000; }
  th { color: #000; background: #fff; border-bottom: 2px solid #000; }
  .sheet-head .assessment { letter-spacing: .08em; }
  .mine h2, .mine h3 { color: #000; }
  .print-only { display: block; }
  .prose { font-size: 12pt; max-width: none; }
  h1, h2, h3 { break-after: avoid; color: #000; }
  p, li { orphans: 3; widows: 3; }
  .guide-item { break-inside: avoid; }
  .note-line { border-top-color: #999; }
  textarea { display: none !important; }
  .print-answer { display: block; white-space: pre-wrap; font-family: var(--serif); border-left: 2px solid #999; padding-left: .2in; margin-top: .3rem; }
  .q, .plan-row, .plan-block h2 { break-inside: avoid; }
  .plan-grid, .plan-grid.two { grid-template-columns: 1fr; }
  .plan-block > h2 { border-top-color: #000; }
  .agree { border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
}

/* ------------------------------------------------- personalized results + profile tables */
.mine { background: var(--weave), var(--cover); color: #fff; padding: 1.25rem 2.25rem 2.25rem; margin: 2.75rem 0; border-bottom: 4px solid var(--gold); }
.mine h2, .mine h3 { color: var(--gold); }
.mine h2 { margin-top: .9rem; }
.mine h2::before, .mine h3::before { display: none; }
.mine h3 { margin-top: 1.5rem; font-size: 1.3rem; font-weight: 700; }
.mine ul { padding-left: 1.2rem; margin: 0; }
.mine li { margin-bottom: .75rem; max-width: 40rem; }
.mine li::marker { color: var(--gold); }
.mine a { color: #fff; text-decoration-color: var(--gold); }
.prose .table-wrap { margin: 1.25em 0; }
.prose table { min-width: 0; font-family: var(--sans); }
.prose th, .prose td { padding: .75rem 1rem; }
@media print {
  .mine { background: #fff; border-left: 3px solid #000; }
  .prose .table-wrap { border: 1px solid #999; }
}

.people.reports a::after { content: "Open reports \2192"; }

/* Team at a glance */
.glance { margin-top: 2rem; }
.glance h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--gold); }
.glance h2:first-child { margin-top: 0; }
.glance-table { min-width: 44rem; }
.glance-table th a { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--gold); }
.glance-table thead th { color: #fff; }
.glance-table tbody th { background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); letter-spacing: 0; font-weight: 400; min-width: 11rem; }
.glance-table tbody th .sub { display: block; margin-top: .25rem; color: var(--muted); font-size: 1rem; }
.glance-table td p { margin: 0 0 .35rem; }
.glance-table td ul { margin: 0 0 .5rem; padding-left: 1.25rem; }
.glance-table td li { margin-bottom: .35rem; }
.glance .muted { color: var(--muted); }
.glance-table.capacity td.lv { text-align: center; font-weight: 600; vertical-align: middle; }
.lv { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.glance .lv-dist, .glance-table td.lv-dist { background: var(--gold); color: #2e0001; }
.glance .lv-est, .glance-table td.lv-est { background: var(--parchment); color: var(--ink); }
.glance .lv-dev, .glance-table td.lv-dev { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--gold); }
.glance .lv-pri, .glance-table td.lv-pri { background: var(--ink); color: #fff; }
.glance-table.capacity { min-width: 0; table-layout: fixed; }
.glance-table.capacity th, .glance-table.capacity td { padding: .85rem .6rem; overflow-wrap: anywhere; }
.glance-table.capacity tbody th { min-width: 0; width: 9.5rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.legend .lv { padding: .35rem .9rem; font-weight: 600; border: 1px solid var(--line); }
.glance details { margin-top: .5rem; }
.glance summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.glance details .prose { margin-top: .75rem; padding: 1rem 1.25rem; background: var(--desk); }
@media print { .glance-table { min-width: 0; } .glance-table tr { break-inside: avoid; } .glance details .prose { background: #fff; } .glance summary { display: none; } .glance-table th a { color: #000; } .glance-table thead th { color: #000; background: #fff; border-bottom: 2px solid #000; } .glance-table tbody th { background: #fff; } }
.glance-table tbody th a.brief-link { display: block; margin-top: .35rem; font-size: 1rem; font-weight: 700; color: var(--antique, #8a5f1a); }
@media print { .glance-table tbody th a.brief-link { display: none; } }
/* Four cover boxes on the profile */
.cover-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 1.25rem clamp(1.5rem, 6vw, 4.5rem) .5rem; background: var(--desk); }
.cover-box { background: var(--ink); color: #fff; padding: .9rem 1rem 1rem; border-top: 3px solid var(--gold); }
.cover-box p { margin: 0; }
.cover-box .cb-label { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; line-height: 1.35; margin-bottom: .45rem; }
.cover-box .cb-main { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.cover-box .cb-sub { font-size: 1rem; font-style: italic; color: var(--parchment); margin-top: .25rem; line-height: 1.35; }
@media (max-width: 900px) { .cover-boxes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cover-boxes { grid-template-columns: 1fr; padding-left: 1.35rem; padding-right: 1.35rem; } }
@media print { .cover-boxes { grid-template-columns: repeat(4, 1fr); padding: 0 0 1rem; background: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; } .cover-box { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* Intelligence Scan */
.intel { margin-top: 2rem; }
.intel h1 { margin-bottom: .5rem; }
.intel h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin: 2.25rem 0 .9rem; padding-top: 1rem; border-top: 2px solid var(--gold); }
.intel .lead { font-size: 1.1rem; max-width: 46rem; }
.intel-asof { color: var(--muted); font-size: 1rem; margin: 0 0 1.25rem; }
.intel-release { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: .85rem 1.1rem; margin: 1.25rem 0 1rem; }
.intel-release p { margin: 0; }
.intel-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: .75rem; }
.intel-tab { font: inherit; font-size: 1rem; font-weight: 700; padding: .6rem 1.1rem; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; }
.intel-tab:hover { background: var(--parchment); }
.intel-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.intel-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.intel-panel[hidden] { display: none; }
.intel-card { background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.1rem 1.25rem 1.2rem; }
.intel-card h2, .intel-card h3 { margin: 0 0 .75rem; padding: 0; border: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.25rem; }
.intel-card p { margin: 0 0 .5rem; }
.intel-card.wide { margin-bottom: 1rem; }
.intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; align-items: start; }
.intel-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; margin-top: 1.25rem; align-items: start; }
.intel-note { color: var(--muted); font-size: 1rem; margin: .75rem 0 0; }
.intel-list { margin: 0; padding-left: 1.25rem; }
.intel-list li { margin-bottom: .6rem; }
.intel-list.findings { list-style: none; padding: 0; }
.intel-list.findings li { background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: .8rem 1rem; }
.intel-list.findings strong { display: block; color: var(--ink); }
.intel-plain { margin: 0; padding-left: 1.25rem; }
.intel-plain li { margin-bottom: .4rem; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 4.5rem; align-items: center; gap: .6rem; margin: .5rem 0; }
.bar-label { font-size: 1rem; line-height: 1.3; }
.bar-track { display: block; height: 1.1rem; background: var(--parchment); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink); border-right: 3px solid var(--gold); }
.bar-val { font-size: 1rem; color: var(--muted); text-align: right; white-space: nowrap; }
.intel-people th a { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--gold); }
.intel-people tbody th .sub { display: block; margin-top: .25rem; color: var(--muted); font-size: 1rem; font-weight: 400; }
.intel-people tbody th { background: transparent; color: var(--ink); letter-spacing: 0; font-weight: 400; min-width: 10rem; }
@media (max-width: 700px) {
  .intel-people { min-width: 0; }
  .intel-people thead { display: none; }
  .intel-people, .intel-people tbody, .intel-people tr, .intel-people th, .intel-people td { display: block; width: 100%; }
  .intel-people tr { border-bottom: 2px solid var(--gold); padding: .75rem 0; }
  .intel-people td::before { content: attr(data-label); display: block; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
  .bar-row { grid-template-columns: 1fr 4.5rem; }
  .bar-label { grid-column: 1 / -1; }
}
@media print {
  .intel-tabs, .intel-release { display: none !important; }
  .intel-panel[hidden] { display: block; }
  .intel-card, .intel-list.findings li { break-inside: avoid; background: #fff; }
  .bar-fill, .bar-track { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Three-column tables in profiles (the 30-60-90 plan) stack on phones so every column reads in order */
@media (max-width: 700px) {
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td, .prose table.stack th { display: block; width: 100%; }
  .prose table.stack thead { display: none; }
  .prose table.stack tr { padding: .6rem 0; border-bottom: 2px solid var(--gold); }
  .prose table.stack td { border: 0; padding: .3rem 1rem; }
  .prose table.stack td:first-child { font-weight: 700; color: var(--ink); padding-top: .6rem; }
  .prose table.stack td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .1rem; }
}

/* Long file names wrap instead of widening the page on phones */
.narrow .card p { overflow-wrap: anywhere; }

/* ---- Pastor's fillable Compass ---- */
.pc { max-width: 56rem; }
.pc-head h1 { margin-bottom: .25rem; }
.pc-who { color: var(--muted, #5b4a3a); margin-top: 0; }
.pc-private { background: var(--cream, #fbf5e9); border-left: 4px solid var(--gold, #dca356); padding: .75rem 1rem; border-radius: 4px; }
.pc-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; position: sticky; top: 0; background: var(--paper, #fff); padding: .5rem 0; z-index: 5; }
.pc-state { font-size: 1rem; font-weight: 600; }
.pc-state.bad { color: #8a1c1c; }
.pc-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .5rem; margin: 1rem 0 1.5rem; }
.pc-tab { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; text-align: left; font: inherit; font-size: 1rem; padding: .6rem .75rem; border: 1px solid var(--line-strong, #c9b99a); background: #fff; border-radius: 6px; cursor: pointer; color: inherit; }
.pc-tab[aria-selected="true"] { background: #4a0102; color: #fff; border-color: #4a0102; }
.pc-num { font-family: Georgia, serif; font-weight: 700; color: #dca356; grid-row: span 2; font-size: 1.25rem; }
.pc-tt { font-weight: 700; }
.pc-count { font-size: 1rem; opacity: .85; grid-column: 2; }
.pc-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: #7a5a1e; margin: 0; }
.pc-sub { font-style: italic; margin-top: 0; }
.pc-verse { border-left: 3px solid #dca356; margin: 1rem 0; padding: .25rem 1rem; font-family: Georgia, serif; }
.pc-verse cite { display: block; font-size: 1rem; }
.pc-panel h3 { margin-top: 2rem; }
.pc-row, .pc-q { margin-bottom: 1rem; }
.pc-row h4 { margin: 0 0 .5rem; font-family: Georgia, serif; }
.pc-given { background: #fbf5e9; padding: .5rem .75rem; border-radius: 4px; margin: 0 0 .75rem; }
.pc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem 1rem; }
.pc .field textarea, .pc .field input[type="text"] { width: 100%; font: inherit; font-size: 1rem; padding: .55rem .65rem; border: 1px solid var(--line-strong, #c9b99a); border-radius: 4px; box-sizing: border-box; resize: vertical; min-height: 4.5rem; overflow: hidden; }
.pc .field input[type="text"] { min-height: 0; }
.pc .field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.pc-hint { margin: 0 0 .35rem; font-size: 1rem; color: #5b4a3a; }
.pc-choice { display: grid; gap: .4rem; }
.pc-opt { display: flex; gap: .6rem; align-items: center; padding: .5rem .65rem; border: 1px solid var(--line-strong, #c9b99a); border-radius: 6px; cursor: pointer; font-size: 1rem; }
.pc-opt input { width: 1.25rem; height: 1.25rem; flex: none; }
.pc-note { background: #fbf5e9; border-left: 4px solid #4a0102; padding: .75rem 1rem; margin: 1rem 0; border-radius: 4px; }
.pc-read { padding-left: 1.2rem; }
.pc-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 2rem; }
.pc-swap { margin-top: 2rem; }
@media (min-width: 700px) { .pc-choice { grid-template-columns: repeat(3, 1fr); } }
@media print { .pc-panel { break-before: page; } .pc .field textarea { overflow: visible; border-color: #999; } .pc-tabs, .pc-bar { display: none; } }
