/* 完備教養 — Weebly / parish bulletin chrome
   Matched to 中華完備救恩會大埔堂 screenshots (visual only). */

:root {
  --ground: #fafafa;
  --panel: #fff;
  --body: #868686;
  --verse: #626262;
  --heading: #3f3f3f;
  --accent: #90cbf5;
  --accent-hover: #6ca9d5;
  --nav-text: #545454;
  --nav-wash: #e3f3ff;
  --burgundy: #8d2424;
  --orange: #f38403;
  --purple: #5040ae;
  --sky: #76cae9;
  --border: #d4d4d4;
  --border-soft: #eee;
  --max: 900px;
  --actor: Actor, "Myriad Pro", Arial, Helvetica, sans-serif;
  --bodyfont: Tahoma, Geneva, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--panel);
  color: var(--body);
  font-family: var(--bodyfont);
  font-size: 14px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 1px dotted var(--heading);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--panel);
  color: var(--heading);
  padding: 6px 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

.page {
  min-height: 100vh;
  background: var(--panel);
}

.site-header {
  background: var(--panel);
  padding: 56px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  margin: 0 auto;
  color: #111;
  text-decoration: none;
}

.brand:hover {
  color: #111;
}

.brand img {
  width: 86px;
  height: 86px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1.15;
}

.brand-zh {
  display: block;
  font-family: var(--actor);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

.brand-en {
  display: block;
  font-family: var(--actor);
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-top: 2px;
}

.nav-bar {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--nav-text);
  font-family: var(--bodyfont);
  font-size: 13px;
  padding: 4px 10px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--actor);
  font-size: 13px;
  color: var(--nav-text);
  padding: 8px 13px;
  border-right: 1px solid var(--border-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--nav-wash);
  color: var(--nav-text);
}

.nav-shade {
  height: 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), transparent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 72px;
  background: var(--panel);
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--actor);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 28px;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}

h2.burgundy { color: var(--burgundy); }
h2.orange { color: var(--orange); }
h2.purple { color: var(--purple); }
h2.plain { color: var(--heading); }

h2.with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

h2.with-icon img {
  width: 36px;
  height: 36px;
}

h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}

p {
  margin: 0 0 14px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0 20px;
}

.plain-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.plain-list li a {
  font-weight: 700;
  color: var(--accent);
}

.plain-list li span {
  display: block;
  color: var(--body);
  font-size: 13px;
  margin-top: 2px;
}

.verse {
  color: var(--verse);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 8px;
}

.verse .ref {
  display: block;
  font-family: var(--actor);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.verse cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-style: normal;
  color: var(--body);
}

.crumbs {
  font-size: 13px;
  color: var(--body);
  margin: 0 0 18px;
}

.crumbs a {
  color: var(--accent);
}

.age-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 18px;
}

.age-table th,
.age-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.age-table th {
  background: #f3f8fc;
  color: var(--heading);
}

.steps,
.check-list {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.steps li,
.check-list li {
  margin: 0 0 8px;
}

.callout {
  border-left: 4px solid var(--accent);
  background: #f7fbfe;
  padding: 12px 14px;
  margin: 16px 0 20px;
}

.callout strong {
  color: var(--heading);
}

.cols,
.two-speech,
.split,
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0 24px;
}

.topic-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.topic-card {
  border: 1px solid var(--border-soft);
  padding: 14px;
  background: #fff;
}

.topic-card a {
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid #e8e8e8;
  text-align: center;
  padding: 28px 16px 36px;
  font-size: 13px;
  color: var(--body);
  background: var(--ground);
}

.footer-copy {
  margin: 0 0 10px;
  color: var(--body);
}

.contact-strip {
  margin: 0;
  color: var(--heading);
  font-size: 13px;
}

.contact-strip span {
  display: inline-block;
  margin: 0 28px;
  white-space: nowrap;
}

.contact-strip a {
  color: var(--heading);
}

.contact-strip a:hover {
  color: var(--accent-hover);
}

.disclaimer {
  font-size: 12px;
  color: var(--body);
  margin-top: 14px;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 28px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .brand-zh {
    font-size: 22px;
  }

  .brand-en {
    font-size: 14px;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 8px 16px 10px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 10px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .cols,
  .two-speech,
  .split,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip span {
    display: block;
    margin: 4px 0;
    white-space: normal;
  }

  main {
    padding: 24px 16px 48px;
  }

  h2.burgundy {
    font-size: 22px;
  }
}
