/* Theme follows gbcbowie.org (Grace Baptist Church of Bowie): sky-blue header,
   cream background, plum Georgia headings, Open Sans body, pill buttons. */
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(/fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-700.woff2) format("woff2"); }

:root {
  --sky: #7eade0;        /* church header/footer */
  --sky-mid: #5694d6;    /* section headings */
  --sky-light: #eaf2fb;
  --indigo: #3237a3;     /* main action buttons ("Plan a Visit") */
  --indigo-dark: #262a85;
  --indigo-light: #eceefa;
  --blush: #f3d9d4;      /* secondary buttons ("Get Involved") */
  --plum: #2e0032;       /* headings and body text */
  --cream: #f6f5eb;
  --good: #2e7d4f;
  --good-light: #e6f4ea;
  --amber: #a14c06;
  --amber-light: #fdf1d6;
  --red: #b42318;
  --red-light: #fee4e2;
  --ink: var(--plum);
  --muted: #5d5363;
  --line: #e2ddd6;
  --bg: var(--cream);
  --card: #fff;
  --radius: 15px;
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1 0 auto; width: 100%; }
[hidden] { display: none !important; }
a { color: var(--indigo); }

header.top {
  background: var(--sky); color: #fff; padding: .6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
header.top .brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 700; }
header.top .brand img { display: block; height: 2.6rem; width: auto; }
header.top .brand .sub { border-left: 1px solid rgba(255,255,255,.6); padding-left: .75rem; line-height: 1.2; font-size: .95rem; }
header.top #who { color: #fff; }
header.top #who button.link { color: #fff; }
.lang { display: flex; gap: .3rem; flex: none; }
.lang button {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--plum); border-color: #fff; }

.hero {
  background: linear-gradient(rgba(46,0,50,.45), rgba(46,0,50,.55)), url(/img/hero.jpg) center 35% / cover no-repeat var(--plum);
  color: #fff; text-align: center; padding: 2.4rem 1rem 2.6rem;
}
.hero .eyebrow { margin: 0 0 .2rem; font-size: .95rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { color: #fff; margin: 0; font-size: 2.3rem; line-height: 1.1; }

main { max-width: 36rem; margin: 0 auto; padding: 1rem; }
main.wide { max-width: 64rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--plum); }
h1 { font-size: 2rem; line-height: 1.15; margin: .8rem 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; line-height: 1.2; margin: 1.2rem 0 .6rem; }
.card h2 { color: var(--sky-mid); margin-top: .3rem; }
.ministry-logo { display: block; width: min(18rem, 80%); height: auto; margin: 1.25rem auto .75rem; }
.card {
  background: var(--card); border: 0; border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(46,0,50,.06), 0 4px 16px rgba(46,0,50,.06);
  padding: 1.1rem 1.25rem; margin: 1rem 0;
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.notice { border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; background: var(--amber-light); border: 1px solid #f0d08a; }
.notice.good { background: var(--sky-light); border-color: #bcd6f0; }
.notice.bad { background: var(--red-light); border-color: #f6b4ad; }
.card.notice.good { box-shadow: none; }
.card.notice.good h2 { color: var(--plum); }
fieldset.plain { border: 0; padding: 0; margin: 0; }
fieldset.plain legend { padding: 0; }
.legend { display: block; font-weight: 700; margin: 0 0 .5rem; }
label { display: block; font-weight: 700; margin: .9rem 0 .25rem; }
.help { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .65rem .8rem; border: 1px solid #c9c2cc; border-radius: 10px; background: #fff;
}
textarea { min-height: 3.2rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.row { display: flex; gap: .75rem; }
.row > * { flex: 1; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .9rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; accent-color: var(--indigo); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.slot input { position: absolute; opacity: 0; }
.slot span {
  display: block; text-align: center; padding: .9rem .5rem; border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
}
.slot small { display: block; font-family: "Open Sans", system-ui, sans-serif; font-weight: 400; font-size: .8rem; color: var(--muted); }
.slot input:checked + span { border-color: var(--indigo); background: var(--indigo-light); }
.slot input:focus-visible + span { outline: 3px solid var(--sky); }
.slot input:disabled + span { opacity: .45; cursor: not-allowed; }
button.primary, a.primary {
  display: inline-block; width: 100%; margin-top: 1.1rem; padding: .85rem 1.2rem; border: 0; border-radius: 999px;
  background: var(--indigo); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: center; text-decoration: none;
}
button.primary:hover { background: var(--indigo-dark); }
button.primary:disabled { opacity: .6; cursor: wait; }
button.danger { background: var(--red); }
button.danger:hover { background: #8f1c13; }
button.link { background: none; border: 0; color: var(--indigo); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.error { color: var(--red); font-weight: 700; margin: .8rem 0 0; }
.ts { margin-top: 1rem; min-height: 0; }
.confirm-big { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin: .4rem 0; }
.break { word-break: break-all; }
.find { text-align: center; margin: 1.5rem 0 2rem; }

footer.site { background: var(--sky); color: var(--plum); text-align: center; padding: 1.4rem 1rem 1.8rem; font-size: .9rem; }
footer.site p { margin: .2rem 0; }
footer.site strong { color: #fff; font-size: 1rem; }
footer.site a { color: var(--plum); }

@media (max-width: 420px) {
  header.top .brand .sub { display: none; }
  .hero h1 { font-size: 1.9rem; }
}

/* ---------- Coordinator dashboard ---------- */
nav.tabs { display: flex; gap: 1.5rem; margin: .6rem 0 1.1rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { padding: .7rem 0 .55rem; margin-bottom: -1px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
nav.tabs a:hover { color: var(--plum); border-bottom-color: var(--line); }
nav.tabs a.active { color: var(--indigo); border-bottom-color: var(--indigo); }
nav.tabs a:focus-visible { outline-offset: -3px; }
/* On narrow screens the tabs scroll sideways; fade the edge while more tabs are hidden */
nav.tabs.more { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.card:has(> table) { overflow-x: auto; }
.btn.small { padding: .25rem .65rem; font-size: .82rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.toolbar select, .toolbar input { width: auto; }
.btn {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1px solid #c9c2cc; background: #fff; font: inherit; font-size: .92rem; cursor: pointer; color: var(--ink); text-decoration: none;
}
.btn.green { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn.blush { background: var(--blush); border-color: var(--blush); color: var(--plum); }
.btn.red { background: #fff; border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sky-light); font-weight: 700; }
tr.inactive td { color: #9a8f9e; text-decoration: line-through; }
tr.inactive td.keep { text-decoration: none; }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem; font-weight: 600; margin: 0 .2rem .1rem 0; white-space: nowrap; }
.tag.amber { background: var(--amber-light); color: var(--amber); }
.tag.red { background: var(--red-light); color: var(--red); }
.tag.green { background: var(--good-light); color: var(--good); }
.tag.grey { background: #efeceb; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; min-width: 8rem; }
.stat b { display: block; font-size: 1.5rem; }
.checkin-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin: .5rem 0; }
.checkin-item.done { background: var(--good-light); }
.checkin-item .who { font-weight: 700; font-size: 1.1rem; }
.checkin-item .btn { padding: .8rem 1rem; font-weight: 700; }
.content-item { border-top: 1px solid var(--line); padding: .8rem 0; }
.content-item .cols { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
/* Wording page: section list on the left, one section at a time on the right */
.wording { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; align-items: start; }
.wording aside { position: sticky; top: .75rem; }
.wording aside input[type=search] { margin: 0 0 .25rem; }
.wording nav.cats h3 { font-family: inherit; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem .6rem .3rem; }
.wording button.cat { display: flex; justify-content: space-between; align-items: center; gap: .4rem; width: 100%; text-align: left; background: none; border: 0; padding: .45rem .6rem; border-radius: 8px; font: inherit; font-size: .95rem; color: var(--plum); cursor: pointer; }
.wording button.cat:hover { background: var(--indigo-light); }
.wording button.cat.active { background: var(--indigo); color: #fff; }
.wording button.cat .tag { margin: 0; }
.wording .pane { margin: 0; min-width: 0; }
.wording .pane > h2 { margin-top: 0; }
.wording code { background: var(--sky-light); border-radius: 4px; padding: 0 .25rem; margin-right: .25rem; font-size: .8rem; }
iframe.email-preview { display: block; width: 100%; height: 36rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.design-card { display: flex; flex-direction: column; gap: .3rem; border: 2px solid var(--line); border-radius: 12px; padding: .8rem; cursor: pointer; font-weight: 400; }
.design-card input { position: absolute; opacity: 0; }
.design-card:has(input:checked) { border-color: var(--indigo); background: var(--indigo-light); }
.design-card:has(input:focus-visible) { outline: 3px solid var(--sky); }
.design-card .tag { margin-left: .4rem; }
.wording .toolbar .primary { width: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
.lang-toggle button { background: #fff; border: 0; padding: .35rem .9rem; font: inherit; font-size: .9rem; color: var(--plum); cursor: pointer; }
.lang-toggle button[aria-pressed=true] { background: var(--indigo); color: #fff; }
@media (max-width: 760px) {
  .wording { grid-template-columns: 1fr; }
  .wording aside { position: static; }
}
@media (max-width: 640px) {
  .content-item .cols { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* ---------- Print ---------- */
.print-page { padding: 1rem 1.5rem; font-size: 12pt; }
.print-page h1 { font-size: 16pt; margin-top: 0; }
.print-page h2 { font-size: 13pt; margin-top: 1rem; page-break-after: avoid; }
.print-page td.box { width: 1.6rem; }
.print-page td.box span { display: inline-block; width: 1rem; height: 1rem; border: 1.5px solid #333; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; display: block; }
  .print-page { padding: 0; }
  table { font-size: 10.5pt; }
  tr { page-break-inside: avoid; }
}
