:root {
  --tc-yellow: #ffe100;
  --tc-black: #111111;
  --tc-white: #ffffff;
  --tc-gray: #f5f5f1;
  --tc-soft: #fff9b8;
  --text: #171717;
  --muted: #6c6c63;
  --line: #deded6;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 225, 0, .22), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f6f6ef 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 8px; font-weight: 900; }
h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }

.skip-link {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--tc-black); color: #fff;
  padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 8px; }

/* Low-key top bar — not a yellow block */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--tc-black);
  min-width: 0;
}
.brand-link strong {
  font-size: 15px; font-weight: 800; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-logo {
  width: 32px; height: 32px; position: relative; flex: 0 0 auto;
  font-weight: 950; color: var(--tc-black);
}
.tc-logo span { position: absolute; left: 9px; font-size: 16px; line-height: 1; letter-spacing: -.08em; }
.tc-logo .tc-top { top: 0; }
.tc-logo .tc-bottom { bottom: 0; }
.tc-logo .tc-arc {
  position: absolute; width: 34px; height: 9px; top: 13px; left: -1px;
  background: var(--tc-yellow); border-radius: 0 0 100px 100px; transform: rotate(-8deg);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; min-width: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: var(--tc-black);
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center;
  padding: 8px 11px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 650; color: #333;
}
.nav-links a:hover { background: var(--tc-gray); }
.nav-links a.is-current {
  font-weight: 800; color: var(--tc-black);
  box-shadow: inset 0 -2px 0 var(--tc-yellow);
  border-radius: 0;
  padding-bottom: 6px;
}
.nav-links a.is-staff { font-size: 13px; color: var(--muted); }

.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.page { padding: 20px 0 48px; }

.brand-intro {
  display: flex; align-items: center; gap: 16px;
  margin: 8px 0 18px;
}
.brand-mark {
  width: 72px; height: 72px; flex: 0 0 auto;
  background: #fff; border-radius: 20px;
  display: grid; place-items: center;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, .08);
}
.brand-mark .tc-logo { width: 46px; height: 46px; }
.brand-mark .tc-logo span { font-size: 23px; left: 14px; }
.brand-mark .tc-logo .tc-arc { width: 50px; height: 13px; top: 20px; left: -2px; }
.eyebrow, .section-label {
  color: var(--tc-black); letter-spacing: .16em; text-transform: uppercase;
  font-size: 11px; font-weight: 900; margin-bottom: 4px;
}
.subtitle, .muted, .hint, .empty, .loading { color: var(--muted); }

/* Dominant hero */
.today-hero {
  background: var(--tc-yellow);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 28px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.today-hero.is-pause { background: var(--tc-soft); }
.today-hero.is-waiting, .today-hero.is-missing, .today-hero.is-completed {
  background: #fff;
  border-color: var(--line);
}
.today-hero .section-label { margin-bottom: 2px; }
.today-hero h2 {
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.15; margin: 0 0 6px; font-weight: 950;
}
.today-plan-list { display: grid; gap: 10px; margin-top: 14px; }
.today-plan-card {
  background: var(--tc-black); color: #fff;
  border-radius: 20px; padding: 16px 18px;
}
.today-plan-card strong { display: block; font-size: clamp(20px, 3vw, 26px); margin-bottom: 10px; }
.bible-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bible-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: var(--tc-yellow); color: var(--tc-black);
  font-size: 13px; font-weight: 800; text-decoration: none;
}
.plan-note { color: rgba(255,255,255,.7); font-size: 13px; margin: 8px 0 0; }
.week-review { margin-top: 14px; }
.week-review h3 { font-size: 15px; margin-bottom: 6px; }
.week-review ol { margin: 0; padding-left: 1.2em; }
.quiet-btn {
  display: inline-flex; align-items: center;
  margin-top: 14px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid rgba(0,0,0,.18);
  background: transparent; color: var(--tc-black);
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.api-banner {
  margin: 0 0 12px; padding: 10px 14px;
  border-radius: 14px; background: #fff; border: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}
.toolbar {
  display: grid; grid-template-columns: 1.5fr 1fr auto;
  gap: 12px; align-items: end; margin-bottom: 16px;
}
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, button {
  width: 100%; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; font: inherit; background: #fff;
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255, 225, 0, .55);
  outline-offset: 2px;
}
button, .btn {
  cursor: pointer; background: var(--tc-black); color: #fff;
  border-color: var(--tc-black); font-weight: 800; min-width: 120px;
  text-align: center; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center;
}
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.devotion-list { display: grid; gap: 0; }
.devotion-item { border-top: 1px solid var(--line); padding: 16px 0 8px; }
.devotion-item:first-child { border-top: none; padding-top: 0; }
.devotion-item h3 { margin-bottom: 6px; }
.devotion-more, .tc-load-more {
  width: auto; min-width: 0; margin-top: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px;
}
.tc-load-more-wrap { display: flex; justify-content: center; padding-top: 12px; }

.tc-modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(17,17,17,.58);
}
.tc-modal-backdrop.is-open { display: flex; }
.tc-modal {
  width: min(760px, 100%); max-height: min(82vh, 820px);
  overflow: auto; position: relative;
  background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.tc-modal-close {
  position: absolute; right: 12px; top: 10px;
  width: 42px; min-width: 42px; height: 42px; padding: 0;
  border-radius: 50%; font-size: 26px; line-height: 1;
}
.tc-modal-body { white-space: pre-wrap; word-break: break-word; margin-top: 16px; }

.resource-list, .info-list { display: grid; gap: 10px; }
.resource-card, .info-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; text-decoration: none; color: inherit;
}
a.resource-card:hover { box-shadow: 0 7px 18px rgba(0,0,0,.06); }
.resource-card .icon { font-size: 20px; line-height: 1.2; }
.resource-card strong, .info-card strong { display: block; font-size: 16px; }
.resource-card small, .info-card small, .resource-card .note { display: block; font-size: 13px; color: var(--muted); }
.badge-pending {
  display: inline-block; margin-left: 6px;
  padding: 1px 8px; border-radius: 999px;
  background: var(--tc-soft); font-size: 12px; font-weight: 800;
}
.group-title { margin: 28px 0 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted); font-size: 13px;
}
.site-footer .wrap { display: grid; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.footer-links a { color: var(--tc-black); font-weight: 700; text-decoration-color: var(--tc-yellow); text-underline-offset: 3px; }
.staff-links { margin-top: 8px; font-size: 12px; }
.staff-links[hidden] { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 14px 14px; gap: 2px;
  }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .toolbar { grid-template-columns: 1fr; }
  .today-hero, .card { padding: 18px; border-radius: 22px; }
  .brand-mark { width: 60px; height: 60px; }
}
