@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/static/fonts/public-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
/* Bear Much — one stylesheet for church sites, dashboards and the marketing site.
   Large type, high contrast, mobile-first: many readers are older church members. */
:root {
  --brand: #1E2A47; --brand-ink: #fff; --ink: #1d1d1b; --muted: #5d5a55; --line: #e4e0d8;
  --paper: #fffdf9; --soft: #f5f1e9; --warn: #9a3412; --warn-bg: #fff4ed; --ok: #166534; --ok-bg: #effaf2;
  --danger: #b91c1c; --radius: 10px; --max: 1080px;
  --serif: 'Caslon', Georgia, 'Times New Roman', serif; --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 9; }

/* header / nav */
.site-head { background: var(--brand); color: var(--brand-ink); }
.site-head a { color: var(--brand-ink); text-decoration: none; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.brandmark { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.25rem; font-weight: bold; }
.brandmark img { height: 44px; width: auto; border-radius: 6px; background: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-color: currentColor; }
.menu-btn { display: none; background: none; border: 2px solid currentColor; color: inherit; border-radius: 8px; padding: 6px 10px; font-size: 1rem; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding: 0 20px 14px; max-width: var(--max); margin: 0 auto; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
}

.hero { background: var(--brand) center/cover no-repeat; color: #fff; padding: 80px 20px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero > * { position: relative; }
.hero h1 { font-size: 2.6rem; margin: 0 0 .3em; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.2em; }
.hero.plain::before { background: transparent; }

/* buttons + forms */
.btn, button.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 22px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn.alt { background: #fff; color: var(--brand); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.big { padding: 18px 30px; font-size: 1.2rem; }
.linkbtn { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
label.check input { width: auto; margin-top: 5px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #c9c3b8; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; }
textarea.tall { min-height: 260px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.hp { position: absolute; left: -9999px; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px 18px; margin: 20px 0; }
legend { font-weight: 700; padding: 0 6px; font-family: var(--serif); font-size: 1.1rem; }

/* layout bits */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card.link { text-decoration: none; color: inherit; display: block; } .card.link:hover { border-color: var(--brand); }
.section { padding-top: 40px; padding-bottom: 40px; } .section.soft { background: var(--soft); }
.flash { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbe5c8; padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.alert { background: var(--warn-bg); color: var(--warn); border: 1px solid #fed7aa; padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.alert.stop { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; font-weight: 700; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-family: var(--serif); font-size: 1.1rem; } .prose p { margin: 0 0 1em; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1em 0; padding: .2em 1em; color: var(--muted); }
.verses p { margin: .3em 0; } .verses sup { color: var(--muted); font-family: var(--sans); font-size: .7em; margin-right: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.services li { margin-bottom: 6px; }
.site-foot { background: #24221f; color: #ddd; padding: 40px 0 20px; margin-top: 60px; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-foot .sub input { margin-bottom: 8px; }
.langtoggle { font-size: .85rem; }

/* hymns */
.hymn .verse { margin: 0 0 1.2em; white-space: pre-line; font-family: var(--serif); font-size: 1.15rem; }
.hymn .chorus { margin: 0 0 1.2em 1.5em; font-style: italic; white-space: pre-line; font-family: var(--serif); font-size: 1.15rem; }

/* dashboard */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin aside { background: #1E2A47; color: #e6e9f2; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin aside a { display: block; color: #e6e9f2; text-decoration: none; padding: 6px 22px; font-size: .93rem; }
.admin aside a:hover { background: rgba(255,255,255,.07); }
.admin aside a.on { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 #D9B45E; }
.admin aside .grp { font-size: .78rem; opacity: .55; padding: 14px 22px 3px; font-weight: 600; }
.admin aside .who { padding: 0 22px 12px; font-size: .85rem; opacity: .8; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.admin main { padding: 18px 40px 72px; max-width: 1080px; }
.admin { background: #f6f5f1; }
.admin main h1 { font-family: 'Caslon', Georgia, serif; font-size: 2rem; }
.admin .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin .badge { background: #e11d48; color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; margin-left: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.8rem; font-family: var(--serif); }
.checklist li { list-style: none; margin: 8px 0; } .checklist { padding: 0; }
.checklist .done { color: var(--ok); text-decoration: line-through; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.ai-box { background: #f3f6ff; border: 1px dashed #93a5d8; border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; font-size: .9rem; }
@media (max-width: 820px) { .admin { grid-template-columns: 1fr; } .admin aside { padding: 8px 0; } .admin aside nav { display: flex; flex-wrap: wrap; } .admin aside .grp { display: none; } .admin aside a { padding: 6px 12px; } .admin main { padding: 10px 16px 40px; } }

/* nursery */
.board { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.room h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.room.bad { border-color: var(--danger); box-shadow: 0 0 0 2px #fecaca; }
.kid { padding: 10px 0; border-top: 1px solid var(--line); }
.kid .flags { margin-top: 4px; }
.flag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0; }
.flag.allergy { background: #fef3c7; color: #92400e; } .flag.custody { background: #fee2e2; color: #991b1b; } .flag.med { background: #e0e7ff; color: #3730a3; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; font-weight: 800; letter-spacing: .15em; }
.bigcode { font-family: ui-monospace, Menlo, monospace; font-size: 3rem; font-weight: 800; letter-spacing: .25em; }
.parent-card { max-width: 420px; margin: 30px auto; text-align: center; }
.parent-card img { width: 260px; image-rendering: pixelated; }
#reader { max-width: 420px; }

/* print */
@media print {
  .site-head, .site-foot, .noprint, .share, nav, aside { display: none !important; }
  body { background: #fff; font-size: 12pt; } .wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
.verse-hero { font-family: var(--serif); font-style: italic; font-size: 1.3rem; max-width: 640px; margin: 0 auto 1.6em; color: var(--brand); }
.verse-hero cite { display: block; font-style: normal; font-size: .9rem; margin-top: 6px; color: var(--muted); letter-spacing: .05em; }

.admin .brandbar { display: flex; align-items: center; gap: 10px; padding: 0 22px 14px; font-family: 'Caslon', Georgia, serif; font-weight: 700; font-size: 1.05rem; color: #fff; }
.admin .brandbar img { width: 26px; height: 26px; }
.stat { border-radius: 12px; }
.stat b { color: #1E2A47; }
.sunday { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin: 22px 0; }
.sunday .card { border-radius: 12px; }
.sunday h3 { font-family: 'Caslon', Georgia, serif; margin: 0 0 6px; }
.progress { height: 8px; background: #ece9e1; border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; background: #5E7A3E; }
.checklist .done { color: #5d5a55; text-decoration: none; }
.checklist .done::before { content: '✓ '; color: #5E7A3E; font-weight: 800; }
.checklist .todo::before { content: '○ '; color: #B48A3C; font-weight: 800; }
.admin .card { border-radius: 12px; }
.admin .btn { border-radius: 8px; }
.room { border-radius: 12px; }
@media (max-width: 820px) { .sunday { grid-template-columns: 1fr; } .admin aside { position: static; height: auto; } }
.prep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.prep-side { position: sticky; top: 16px; display: grid; gap: 16px; }
.prep-side h3 { font-family: 'Caslon', Georgia, serif; margin: 0 0 10px; }
.prep-text { max-height: 46vh; overflow-y: auto; font-family: 'Caslon', Georgia, serif; font-size: 1rem; }
.prep-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 22px; }
.prep-head label { margin: 0; }
@media (max-width: 1000px) { .prep-grid { grid-template-columns: 1fr; } .prep-side { position: static; } }
[hidden] { display: none !important; }

.admin aside .nav-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 4px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 820px) {
  .admin aside .brandbar { display: flex; align-items: center; }
  .admin aside .nav-toggle { display: inline-block; }
  .admin aside nav#adminnav { display: none; flex-direction: column; flex-wrap: nowrap; }
  .admin aside nav#adminnav.open { display: flex; }
  .admin aside nav#adminnav.open .grp { display: block; padding: 10px 16px 2px; }
  .admin aside nav#adminnav a { padding: 8px 16px; }
}
/* Wide tables scroll inside the page instead of pushing the menu off a phone screen. */
.admin main { min-width: 0; }
@media (max-width: 820px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin main { overflow-x: hidden; }
  .admin main table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
}
.admin textarea { font-family: inherit; }
.admin input[type=checkbox], .admin input[type=radio], .mk input[type=checkbox], .mk input[type=radio] { width: 20px; height: 20px; flex: none; }
@media (pointer: coarse) { .admin .linkbtn, .admin td a, .admin td button { min-height: 40px; display: inline-flex; align-items: center; } }
/* Sidebar sections fold so the menu stays short. */
.admin aside details.navg > summary { list-style: none; cursor: pointer; font-size: .78rem; opacity: .7; padding: 12px 22px 4px; font-weight: 600; display: flex; justify-content: space-between; }
.admin aside details.navg > summary::-webkit-details-marker { display: none; }
.admin aside details.navg > summary::after { content: '▸'; opacity: .7; }
.admin aside details.navg[open] > summary::after { content: '▾'; }
.admin aside details.navg > summary:hover { opacity: 1; }
/* Nursery tablet mode: volunteers see only nursery screens, with large tap targets. */
.admin.kiosk { grid-template-columns: minmax(0, 1fr); }
.admin.kiosk > aside { display: none; }
.admin.kiosk main { max-width: none; padding-top: 0; }
.kiosk-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 -40px 18px; padding: 10px 40px; background: #1E2A47; color: #fff; }
.kiosk-bar strong { margin-right: 14px; font-family: 'Caslon', Georgia, serif; }
.kiosk-bar a { color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 10px; font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.kiosk-bar a.on, .kiosk-bar a:hover { background: rgba(255,255,255,.16); }
@media (max-width: 820px) { .kiosk-bar { margin: 0 -16px 14px; padding: 8px 16px; } }
.admin.kiosk input::placeholder { text-transform: none; }
.code-in::placeholder { text-transform: none; letter-spacing: normal; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
