/* =========================================================================
   NU Church — site shell
   ========================================================================= */

:root {
  --deep: #1b6a95;
  --ink: #13435f;
  --ink-soft: #3f6a85;
  --sky: #62b4d8;
  --pale: #e6f3f9;
  --pale-2: #f4fafd;
  --line: #06c755;
  --muted: #5d7380;
  --paper: #ffffff;
  --stage: #d9dde1;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(19, 67, 95, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(19, 67, 95, 0.35);
  --font-sans: "Barlow", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The header is sticky (72px / 64px on small screens); without this every
   * in-page anchor lands with its title hidden underneath it. */
  scroll-padding-top: 88px;
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 76px;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sky);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 14px 0 0;
  color: var(--ink);
}

.section-lede {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(19, 67, 95, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

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

/* CTF wordmark sits alongside the church logo — the mark is a wide
   wordmark (1859×348), so its height needs to be closer to cap-height
   than the square-ish church logo to keep the two visually balanced.
   Sized down to 16px: at 20px it read as a second co-equal brand next to
   the church logo, which it is not — it is a family affiliation mark. */
.brand .brand-ctf {
  height: 16px;
  opacity: 0.82;
}

.brand-sep {
  width: 1px;
  height: 18px;
  flex: none;
  background: rgba(19, 67, 95, 0.16);
}

@media (max-width: 520px) {
  .brand {
    gap: 8px;
  }
  .brand img {
    height: 26px;
  }
  .brand .brand-ctf {
    height: 13px;
  }
  .brand-sep {
    height: 15px;
  }
  /* The wider brand leaves little room beside it — keep the CTA on one
     line and shrink it so it never wraps into a two-line blob. */
  .nav .nav-cta {
    padding: 8px 11px;
    font-size: 13px;
  }
  .site-header .wrap {
    gap: 10px;
  }
}

/* Below ~460px the church logo + CTF wordmark + hamburger simply leave less
   room than the CTA's own text needs (it measured 59px tall at 390px, i.e.
   wrapped to two lines, and caused a 16px horizontal overflow at 320px).
   The CTA gives way rather than the brand: the drawer carries an identical
   「加入 LINE 好友」 button, and the hero + #line section already offer it. */
@media (max-width: 460px) {
  .nav .nav-cta {
    display: none;
  }
  .site-header .wrap {
    gap: 8px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  background: var(--pale);
  color: var(--deep);
}

.nav .nav-cta {
  margin-left: 8px;
  background: var(--deep);
  color: #fff;
  font-weight: 600;
  /* Once the header is tight the CTA squeezes below its text width and wraps
     to two lines (it grew 37px → 59px tall at 390px). A nav button must never
     wrap; below 460px it is hidden entirely and the drawer carries the link. */
  white-space: nowrap;
}

.nav .nav-cta:hover {
  background: #155577;
  color: #fff;
}

/* Six nav items + the CTA stop fitting somewhere around 1080px: the pills
   shrink below their text width and every label wraps to two lines (header
   grew 41.9px → 65.8px on the way down). Tighten the pills and the brand in
   that band instead of letting them break. */
@media (min-width: 861px) and (max-width: 1080px) {
  .brand {
    gap: 9px;
  }
  .brand img {
    height: 28px;
  }
  /* Must stay below the 16px base — a breakpoint can only shrink the mark,
     never grow it, or the band looks heavier than full desktop. */
  .brand .brand-ctf {
    height: 14px;
  }
  .brand-sep {
    height: 16px;
  }
  .nav {
    gap: 2px;
  }
  .nav a {
    font-size: 13.5px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .nav .nav-cta {
    margin-left: 5px;
    padding: 8px 12px;
  }
}

@media (max-width: 860px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
  .site-header .wrap {
    height: 64px;
  }
}

/* ------------------------------------------------------------ nav drawer -- */
/* Hidden entirely above 860px, where the inline pills already do the job. */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(19, 67, 95, 0.16);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--deep);
  transition: transform 0.2s ease, opacity 0.16s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  border-top: 1px solid rgba(19, 67, 95, 0.08);
  background: #fff;
  padding: 8px 0 18px;
}

.nav-drawer nav {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  display: grid;
  gap: 2px;
}

.nav-drawer a {
  text-decoration: none;
  padding: 12px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(19, 67, 95, 0.07);
}

.nav-drawer a:active {
  color: var(--deep);
}

.nav-drawer .nav-drawer-cta {
  margin-top: 12px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-drawer:not([hidden]) {
    display: block;
  }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0 clamp(60px, 7vw, 104px);
  background: radial-gradient(120% 90% at 78% 0%, #eaf6fc 0%, #ffffff 58%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 67, 95, 0.12), transparent);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy h1 {
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.015em;
  margin-top: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-copy h1 em {
  font-size: 0.82em;
  line-height: 1.24;
  display: inline-block;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--deep);
}

.hero-verse {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--sky);
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.hero-verse cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--sky);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.55vw, 17.5px);
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 34em;
}

/* Legal entities listed directly under the church title. */
.hero-orgs {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 34em;
}

.hero-orgs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-orgs .org-n {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  transform: translateY(-1px);
}

.hero-orgs .org-name {
  font-weight: 600;
  color: var(--ink);
}

.hero-orgs .org-id {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Registration number sits on its own line under 統一編號 — a leading dot
   separator wrapped badly on mobile and read like stray punctuation. */
.hero-orgs .org-reg {
  flex-basis: 100%;
  padding-left: 27px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ------------------------------------------------ hero vision panel -- */
.vision-panel {
  position: relative;
  width: min(400px, 100%);
  padding: 34px 32px 30px;
  border-radius: 22px;
  background: linear-gradient(165deg, #1b6a95 0%, #155577 100%);
  color: #fff;
  box-shadow: 0 26px 60px -30px rgba(19, 67, 95, 0.7);
  overflow: hidden;
}

.vision-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 180, 216, 0.34) 0%, rgba(98, 180, 216, 0) 70%);
}

.vp-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #a9daf0;
  border: 1px solid rgba(169, 218, 240, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
}

.vp-text {
  margin-top: 20px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: #fff;
}

.vp-cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #a9daf0;
}

.vp-rule {
  height: 1px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.vp-facts {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.vp-facts dt {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.vp-facts dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: #bfe0ef;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------- about -- */
.about {
  padding: clamp(60px, 7vw, 100px) 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-copy p {
  margin-top: 18px;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 2.05;
  color: var(--ink-soft);
  letter-spacing: 0.015em;
}

.about-copy .about-lead {
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 19.5px);
  line-height: 1.95;
  font-weight: 500;
  color: var(--ink);
}

.about-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.about-fact {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--pale-2);
  border: 1px solid rgba(19, 67, 95, 0.08);
}

.af-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}

.af-value {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}

.af-value a,
.af-meta a {
  color: inherit;
  text-decoration: none;
}

.af-value a:hover,
.af-meta a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.af-meta {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.about-fact--quote {
  background: linear-gradient(160deg, var(--pale) 0%, #d9edf6 100%);
  border-color: rgba(27, 106, 149, 0.14);
}

.about-fact--quote p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.about-fact--quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--deep);
}

/* ------------------------------------------------------- CTF (點火事工) -- */
.ctf-block {
  margin-top: clamp(44px, 5vw, 64px);
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 22px;
  border: 1px solid rgba(19, 67, 95, 0.12);
  background: linear-gradient(158deg, #fbfaf7 0%, #f4f8fb 100%);
  box-shadow: var(--shadow-sm);
}

.ctf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  padding-bottom: clamp(20px, 2.6vw, 28px);
  border-bottom: 1px solid rgba(19, 67, 95, 0.1);
}

/* The official wordmark is a wide horizontal lockup — cap it so the flame mark
 * never dominates the section on narrow screens. */
.ctf-mark {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.08);
}

.ctf-mark img {
  display: block;
  width: min(260px, 52vw);
  height: auto;
}

.ctf-title {
  flex: 1 1 240px;
  min-width: 0;
}

.ctf-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(233, 30, 99, 0.1);
  color: #c2185b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

/* Once the join date has passed the wording becomes a statement of fact
   rather than an announcement, so the badge goes solid. */
.ctf-badge.is-joined {
  background: #c2185b;
  color: #fff;
}

.ctf-title h3 {
  margin: 10px 0 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.ctf-title h3 em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep);
}

.ctf-body {
  padding-top: clamp(20px, 2.6vw, 28px);
  max-width: 68ch;
}

.ctf-body p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.ctf-body p + p {
  margin-top: 14px;
}

.ctf-body .ctf-lead {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.85;
  color: var(--ink);
}

.ctf-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ctf-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.ctf-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.ctf-link {
  margin-top: 26px;
}

@media (max-width: 620px) {
  .ctf-head {
    gap: 16px;
  }
  .ctf-mark {
    padding: 10px 12px;
  }
  .ctf-mark img {
    width: min(230px, 62vw);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-aside {
    position: static;
  }
}

/* --------------------------------------------------------- vision -- */
.vision {
  padding: clamp(60px, 7vw, 100px) 0;
  background: linear-gradient(180deg, var(--pale-2) 0%, #fff 100%);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.mission-card {
  position: relative;
  padding: 34px 32px 36px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(98, 180, 216, 0.55);
}

.mc-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--pale);
  color: var(--deep);
}

.mc-ico svg {
  width: 25px;
  height: 25px;
}

.mc-index {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(27, 106, 149, 0.32);
}

.mission-card h3 {
  margin-top: 22px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.mission-card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
}

.vision-quote {
  margin: 54px auto 0;
  max-width: 720px;
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(160deg, #1b6a95 0%, #155577 100%);
  color: #fff;
  box-shadow: 0 26px 60px -32px rgba(19, 67, 95, 0.72);
}

.vision-quote p {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.1em;
}

.vision-quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #a9daf0;
}

@media (max-width: 1020px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .vision-panel {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    padding: 12px 18px;
    font-size: 14px;
    flex: 1 1 auto;
    justify-content: center;
  }
  .vision-panel {
    padding: 26px 22px 24px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(27, 106, 149, 0.85);
}

.btn-primary:hover {
  background: #155577;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(19, 67, 95, 0.18);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--sky);
  color: var(--deep);
  transform: translateY(-1px);
}

.btn-line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(6, 199, 85, 0.9);
}

.btn-line:hover {
  background: #05b34c;
  transform: translateY(-1px);
}

.hero-art {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  transform-origin: top center;
  max-width: 100%;
}

@media (max-width: 1020px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-art {
    gap: 12px;
    flex-wrap: wrap;
  }
  /* one card is enough on phones — the pair lives in the showcase section */
  .hero-art .card-slot + .card-slot {
    display: none;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    padding: 12px 18px;
    font-size: 14px;
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* -------------------------------------------------------------- showcase -- */
.showcase {
  padding: clamp(56px, 6vw, 88px) 0 clamp(60px, 6vw, 92px);
  background: var(--stage);
}

.showcase .section-lede {
  color: #546a76;
}

.showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.showcase-head .eyebrow {
  color: #4a6b7c;
}

.showcase-head .eyebrow::before {
  background: #8fa4b0;
}

.showcase-head .section-title {
  color: #12384f;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #3d5a6a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 67, 95, 0.12);
  padding: 7px 13px;
  border-radius: 999px;
}

.card-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 6vw, 60px);
  margin-top: clamp(36px, 4vw, 56px);
}

.card-pair .card-tag {
  color: #5b6d78;
}

/* ------------------------------------------------------------- schedule -- */
.schedule {
  padding: clamp(60px, 7vw, 100px) 0;
  background: #fff;
}

.sched-table-wrap {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(19, 67, 95, 0.12);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.sched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sched-table thead th {
  background: linear-gradient(180deg, #e8f4fa 0%, #dceff8 100%);
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(19, 67, 95, 0.14);
  white-space: nowrap;
}

.sched-table tbody td,
.sched-table tbody th {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(19, 67, 95, 0.08);
  vertical-align: middle;
  text-align: left;
}

.sched-table tbody tr:last-child td,
.sched-table tbody tr:last-child th {
  border-bottom: 0;
}

.sched-table tbody tr:hover {
  background: var(--pale-2);
}

.sched-day {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  background: rgba(230, 243, 249, 0.45);
  border-right: 1px solid rgba(19, 67, 95, 0.08);
  width: 1%;
}

.sched-time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 1%;
}

.sched-name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}

/* Channel tag — 線上 / 現場 / 活動中心. */
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: middle;
}

.tag-online {
  background: rgba(98, 180, 216, 0.16);
  color: #1b6a95;
}

.tag-onsite {
  background: rgba(19, 67, 95, 0.09);
  color: var(--ink);
}

.tag-venue {
  background: rgba(217, 119, 6, 0.12);
  color: #a15c00;
}

.sched-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.sched-legend .tag {
  margin-left: 0;
}

.sched-legend .tag + span {
  margin-right: 10px;
}

/* Mobile card list — hidden until the 4-column table stops fitting. */
.sched-cards {
  display: none;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  gap: 12px;
}

.sched-card {
  border: 1px solid rgba(19, 67, 95, 0.1);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sc-day {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sky);
}

.sc-head .tag {
  margin-left: 0;
}

.sc-name {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.sc-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .sched-table-wrap {
    display: none;
  }
  .sched-cards {
    display: grid;
  }
  .sched-legend {
    margin-top: 24px;
  }
}
/* ---------------------------------------------------------------- assoc -- */
/* Two legal entities, one card each. The registration label differs per entity
 * (立案證書字號 = 6 chars vs 高市立案編號 = 6 chars) so the label column is
 * `auto` — grid sizes it to the widest label and every row still lines up. */
.assoc-sec {
  padding: clamp(60px, 7vw, 100px) 0;
  background: var(--pale-2);
}

.assoc-grid {
  display: grid;
  /* `minmax(320px, ...)` forces a 320px min track, which overflows the 288px
     wrap on a 320px-wide phone. Clamp the min against the container. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  margin-top: 44px;
}

.assoc-card {
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.1);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--shadow-sm);
}

.assoc-card header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(19, 67, 95, 0.1);
}

.assoc-n {
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sky);
  flex: none;
}

.assoc-card h3 {
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.assoc-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  margin: 20px 0 0;
  align-items: baseline;
}

/* Each row is its own wrapper div so the dt/dd pair can be re-flowed to a
   stacked layout on narrow screens without touching the grid definition. */
.assoc-card .ar {
  display: contents;
}

.assoc-card dt {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.assoc-card dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* The registration number is the number people copy onto forms — give it the
   weight and tracking of a reference figure, not body text. */
.assoc-card dd.reg {
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--deep);
}

.assoc-card dd.addr {
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.assoc-note {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 460px) {
  /* `display: contents` collapses the row wrappers, so a 2-column grid would
   * still squeeze the 6-char label next to a long address. Stack instead. */
  .assoc-card dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .assoc-card dt {
    margin-top: 10px;
  }
  /* The row wrappers use `display: contents`, so the first *visible* child is
     the dt inside the first .ar — not a direct child of dl. */
  .assoc-card .ar:first-child dt {
    margin-top: 0;
  }
}

/* The `.detail` selector had gone missing from this file, leaving its
 * declaration block orphaned — the whole 聯絡資訊 section rendered with no
 * vertical padding. Restored. */
.detail {
  padding: clamp(60px, 7vw, 100px) 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.info-card {
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(98, 180, 216, 0.5);
}

.info-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}

.info-card .value {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.info-card .value.small {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.info-card .meta {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.info-card a.value {
  text-decoration: none;
  display: inline-block;
}

.info-card a.value:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-frame {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(19, 67, 95, 0.12);
  box-shadow: var(--shadow-sm);
  background: var(--pale-2);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.map-foot p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.map-foot .btn {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- social -- */
.social-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--pale-2);
  border: 1px solid rgba(19, 67, 95, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-card:hover {
  background: var(--pale);
  transform: translateY(-2px);
}

.social-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}

.social-card .ico svg {
  width: 22px;
  height: 22px;
}

.social-card .txt strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.social-card .txt span {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------- giving -- */
.giving {
  padding: clamp(60px, 7vw, 96px) 0;
  background: linear-gradient(180deg, #fff 0%, var(--pale-2) 55%, var(--pale) 100%);
}

.giving-panel {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.1);
  box-shadow: var(--shadow-md);
}

.giving-rows {
  padding: clamp(26px, 3.4vw, 40px);
}

.giving-rows dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px 16px;
  align-items: baseline;
}

.giving-rows dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.giving-rows dd {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}

.giving-rows dd.account {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.copy-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--deep);
  background: var(--pale);
  border: 1px solid rgba(27, 106, 149, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.copy-btn:hover {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.copy-btn.done {
  background: var(--line);
  border-color: var(--line);
  color: #fff;
}

.giving-side {
  padding: clamp(26px, 3.4vw, 40px);
  background: linear-gradient(165deg, var(--deep) 0%, #155577 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.giving-side h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.giving-side p {
  font-size: 14px;
  color: #bfe0ef;
  line-height: 1.8;
}

.tax-list {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tax-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.1);
  border-radius: 14px;
}

.tax-item .nm {
  font-size: 15.5px;
  font-weight: 500;
}

/* Two stacked figures: 統一編號 (the big one, used for receipts) and the
   registration number beneath it. */
.tax-item .ids {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.tax-item .id,
.tax-item .reg {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  display: block;
}

.tax-item .reg {
  letter-spacing: 0.02em;
  padding-top: 7px;
  border-top: 1px solid rgba(19, 67, 95, 0.1);
}

.tax-item .id b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--deep);
  margin-top: 2px;
}

.tax-item .reg b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 840px) {
  .giving-panel {
    grid-template-columns: 1fr;
  }
  .tax-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tax-item .ids {
    text-align: left;
    width: 100%;
  }
}

/* ----------------------------------------------------------------- line -- */
.line-cta {
  padding: clamp(56px, 6vw, 88px) 0;
  background: var(--stage);
}

.line-cta .panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border-radius: 26px;
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--shadow-md);
}

.line-qr-box {
  width: 190px;
  height: 190px;
  flex: none;
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(19, 67, 95, 0.1);
  box-shadow: 0 0.3mm 1.6mm rgba(19, 67, 95, 0.14);
}

.line-qr-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.line-cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--line);
  letter-spacing: 0.04em;
}

.line-cta .sub {
  margin-top: 8px;
  font-size: 14.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 500;
}

.line-cta p.body {
  margin: 20px 0 26px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 46ch;
}

@media (max-width: 720px) {
  .line-cta .panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
  background: #12384f;
  color: #c9e3ef;
  padding: clamp(48px, 5vw, 68px) 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h4 {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 14px;
  font-weight: 700;
}

.footer-grid p,
.footer-grid a {
  font-size: 14px;
  line-height: 1.9;
  color: #c9e3ef;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 34ch;
  color: #9dc4d6;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #8fb6c8;
  letter-spacing: 0.06em;
}

.footer-credit a {
  color: #a9daf0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 218, 240, 0.4);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-credit a:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1180px, 100% - 32px);
  }
}

/* ------------------------------------------------------------- quickbar -- */
/* Mobile-only shortcut bar. The header hides its anchors below 860px, so the
   four things a phone visitor actually wants (when / where / give / LINE) get
   a persistent thumb-reachable row instead of two taps through a drawer. */
.quickbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid rgba(19, 67, 95, 0.1);
  box-shadow: 0 -6px 22px -14px rgba(19, 67, 95, 0.5);
  /* iOS home-indicator area — without this the labels sit under the bar. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.quickbar a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 2px 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}

.quickbar a svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.quickbar a:active {
  color: var(--deep);
  background: var(--pale);
}

/* The LINE entry is the one real conversion — give it the brand colour so it
   reads as the primary action rather than a fourth equal tab. */
.quickbar .qb-cta {
  color: var(--line);
}

.quickbar .qb-cta:active {
  color: var(--line);
  background: rgba(6, 199, 85, 0.08);
}

/* `screen` is not decoration here: the print page is 55mm wide (≈208px), which
   also satisfies `max-width: 860px`. Without the media-type guard a real print
   would inherit 58px of bottom padding and could spill a blank third page onto
   the 2-page business card sheet. */
@media screen and (max-width: 860px) {
  .quickbar {
    display: flex;
  }
  /* Reserve the bar's height so it never covers the footer's last lines.
     The bar measures 56.4px (9+8 padding + 21 icon + 3 gap + ~15 text), so
     56px left the footer's last 0.4px tucked under it — 58px clears it. */
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

/* ------------------------------------------------------------- utilities -- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
