:root {
  --sky: #1f8eb4;
  --sky-deep: #187a9c;
  --ink: #2a3138;
  --muted: #66707a;
  --line: #e3e7eb;
  --paper: #f3f5f7;
  --card: #ffffff;
  --teal: #128f8c;
  --teal-deep: #0e7876;
  --teal-2: #127f92;
  --navy: #1d4f86;
  --navy-deep: #173f6b;
  --green: #2f8f57;
  --green-deep: #26764a;
  --gold: #e4b04a;
  --gold-deep: #c4922e;
  --gold-ink: #5c4010;
  --link: #146f8a;
  --shadow: 0 1px 2px rgba(20, 32, 48, 0.05);
  --wrap: 1120px;
  --serif: "Noto Serif KR", "Source Han Serif K", "Batang", "Pretendard Variable", serif;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.45) 0 2px,
    transparent 2px 9px
  );
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: #fff;
  padding: 8px 12px;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  background: var(--sky);
  color: #fff;
  font-size: 12.5px;
}

.topbar .wrap,
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
}

.top-left,
.top-right,
.quick {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar a,
.topbar button {
  color: #fff;
  padding: 8px 8px;
  border-radius: 2px;
}

.topbar a:hover,
.topbar button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.top-right a + a,
.top-right a + button,
.top-left a + button,
.top-left button + a {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.35);
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  min-height: 86px;
  justify-content: flex-start;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-svg,
.brand-logo {
  width: 46px;
  height: 58px;
  object-fit: contain;
  flex: none;
}

.hero-slide .hero-scene.has-photo,
.thumb.has-photo,
.gtile.has-photo,
.gcard.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-photo {
  margin: 4px 0 16px;
}

.page-photo img,
.sheet-photo {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 2px;
}

.sheet-photo {
  margin-bottom: 12px;
}

.sheet-photo.portrait {
  object-fit: contain;
  max-height: 640px;
  background: #2a2a2a;
}

.band .art.photo {
  top: 0;
  width: 44%;
  height: 100%;
}

.band .art.photo img,
.mission-card .art.photo img,
.gold-card .art.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band .art.photo img.face {
  object-position: center 16%;
}

.pastor-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.pastor-portrait {
  width: 100%;
  height: auto;
  display: block;
}

.pastor-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.pastor-card img {
  width: 84px;
  height: 104px;
  object-fit: cover;
  object-position: center 16%;
  flex: none;
}

.gtile.has-photo,
.gcard.has-photo span {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.brand small {
  display: block;
  color: #5d6a74;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.brand strong {
  display: block;
  margin-top: 1px;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.search {
  flex: 1;
  display: flex;
  max-width: 460px;
  border: 1.5px solid #8fd0ea;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.search input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}

.search button {
  width: 46px;
  color: #1f8eb4;
  display: grid;
  place-items: center;
}

.search svg {
  width: 18px;
  height: 18px;
}

.quick {
  margin-left: auto;
  gap: 8px;
}

.qbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 72px;
  height: 58px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #3e4a53;
  font-size: 12px;
  background: #fff;
}

.qbtn svg {
  width: 18px;
  height: 18px;
}

.qbtn:hover {
  border-color: #8fd0ea;
  color: var(--link);
}

.menu-btn {
  min-width: 76px;
  border-color: #d7e3ea;
  color: #1f6f8d;
  font-weight: 700;
}

.menu-btn svg {
  width: 16px;
  height: 16px;
}

.mega {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(20, 40, 60, 0.08);
}

.mega .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding: 22px 0 26px;
}

.mega h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--teal-deep);
}

.mega a {
  display: block;
  padding: 6px 0;
  color: #3d4850;
  font-size: 14px;
}

.mega a:hover {
  color: var(--link);
}

.mega-head {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.mega-close {
  color: var(--muted);
  font-size: 13px;
  padding: 6px;
}

main {
  padding: 16px 0 28px;
}

.home-top {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
  min-height: 430px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 2px;
  background: #14233c;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide,
.video-slide {
  pointer-events: none;
}

.hero-slide.is-on {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-scene {
  position: absolute;
  inset: 0;
}

.tone-sunday .hero-scene {
  background:
    radial-gradient(ellipse at 78% 28%, rgba(255, 214, 166, 0.72), transparent 36%),
    linear-gradient(105deg, #10192e 0%, #1c365c 46%, #c48455 100%);
}

.tone-word .hero-scene {
  background:
    radial-gradient(ellipse at 74% 36%, rgba(232, 244, 255, 0.5), transparent 34%),
    linear-gradient(110deg, #0e1c33 0%, #1a4572 50%, #3e6f92 100%);
}

.tone-anniversary .hero-scene {
  background:
    radial-gradient(ellipse at 76% 30%, rgba(255, 228, 170, 0.65), transparent 36%),
    linear-gradient(110deg, #142033 0%, #1f4d55 48%, #d7a24a 100%);
}

.win {
  position: absolute;
  top: 28px;
  width: 58px;
  height: 150px;
  border-radius: 40px 40px 4px 4px;
  background: linear-gradient(#d8f4ef, #3d7ea4 55%, #1d4068);
  opacity: 0.85;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.tone-sunday .w1 { right: 168px; }
.tone-sunday .w2 { right: 98px; height: 176px; }
.tone-sunday .w3 { right: 28px; top: 48px; height: 130px; }

.tone-word .w1 { right: 150px; background: linear-gradient(#f7f1e4, #8fb4d6); }
.tone-word .w2 { right: 78px; height: 190px; }
.tone-word .w3 { display: none; }

.tone-anniversary .w1 { right: 180px; background: linear-gradient(#fff4d4, #4aa392); }
.tone-anniversary .w2 { right: 108px; }
.tone-anniversary .w3 { right: 36px; height: 120px; top: 58px; }

.cross {
  position: absolute;
  right: 86px;
  top: 86px;
  width: 14px;
  height: 78px;
  background: #f6e7cb;
  border-radius: 2px;
}

.cross::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 16px;
  width: 58px;
  height: 14px;
  background: #f6e7cb;
  border-radius: 2px;
}

.tone-word .cross { right: 118px; top: 70px; }
.beam {
  position: absolute;
  right: 40px;
  top: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.28), transparent 70%);
  clip-path: polygon(40% 0, 70% 0, 100% 100%, 0 100%);
}

.pulpit {
  position: absolute;
  right: 78px;
  bottom: 78px;
  width: 120px;
  height: 54px;
  background: linear-gradient(#8a5340, #5c3428);
  border-radius: 4px 4px 8px 8px;
}

.pulpit::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -16px;
  width: 84px;
  height: 18px;
  background: #a86a52;
  border-radius: 3px;
}

.pews {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background:
    linear-gradient(#1a2740, #1a2740) 0 8px / 100% 16px no-repeat,
    linear-gradient(#223250, #223250) 0 30px / 100% 14px no-repeat,
    linear-gradient(#2a3b5c, #2a3b5c) 0 50px / 100% 12px no-repeat;
  opacity: 0.72;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 36px;
  right: 36%;
  top: 54px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero-meta {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: #1f6f9a;
  color: #fff;
  border-radius: 3px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero-cta:hover {
  background: #18587c;
}

.hero-ui {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.dot,
.pager {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
}

.dot.is-on {
  background: #7fd0ea;
  width: 22px;
  border-radius: 99px;
}

.home-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 430px;
}

.side-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 0;
}

.widget-head h2,
.panel-head h2,
.gold-copy strong {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.pager-row {
  display: flex;
  gap: 4px;
}

.pager-row button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #60707c;
  font-size: 12px;
}

.pager-row button:hover {
  border-color: #8fd0ea;
  color: var(--link);
}

.video-frame {
  margin: 10px 12px 6px;
  position: relative;
  flex: 1;
  min-height: 92px;
  overflow: hidden;
  background: #d7e4ee;
}

.video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.video-slide.is-on {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.thumb {
  position: absolute;
  inset: 0;
}

.thumb-pulpit {
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.2), transparent 45%),
    linear-gradient(145deg, #1b3f66 0%, #3d6f8c 42%, #c48455 100%);
}

.thumb-bible {
  background:
    radial-gradient(circle at 50% 45%, #f7f1e4 0 18%, transparent 19%),
    linear-gradient(160deg, #1d4f86, #d7c4a2);
}

.thumb-dawn {
  background: linear-gradient(#f7d7a8, #6a8cae 55%, #1d334c);
}

.play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1d4f86;
  display: grid;
  place-items: center;
}

.play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.video-caption {
  padding: 0 12px 10px;
  font-size: 13px;
  color: #4c5963;
}

.mission-card,
.gold-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.mission-card {
  background: linear-gradient(180deg, #fff, #f4fbfb);
}

.mission-card .art,
.gold-card .art {
  margin-top: auto;
  height: 78px;
  flex: none;
}

.mission-card .art svg,
.gold-card .art svg {
  width: 100%;
  height: 100%;
}

.mission-card p,
.gold-copy span {
  display: block;
  margin: 6px 12px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 12px;
}

.pill {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 3px;
  background: #2f74b5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  padding: 4px 6px;
}

details {
  margin: 8px 0 16px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}

.pill:hover {
  background: #245e94;
}

.gold-card {
  background: linear-gradient(160deg, #f3c86a, #e7b14d 55%, #f6d48a);
  color: var(--gold-ink);
}

.gold-copy {
  padding: 12px 12px 0;
}

.gold-copy span {
  color: #6d5018;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.band {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  color: #fff;
  padding: 16px 16px 14px;
}

.band h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.band h2,
.band .dot-list {
  position: relative;
  z-index: 1;
  max-width: 62%;
}

.band a {
  color: #fff;
}

.dot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dot-list li + li {
  margin-top: 3px;
}

.dot-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  padding: 2px 0;
}

.dot-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.dot-list a:hover {
  text-decoration: underline;
}

.band-pastor { background: linear-gradient(120deg, #14a39a, #0e8b86); }
.band-about { background: linear-gradient(120deg, #1497a8, #0f7f90); }
.band-word { background: linear-gradient(120deg, #245f98, #1a4a7c); }
.band-share { background: linear-gradient(120deg, #3aa265, #2b8752); }

.band .art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 78%;
  pointer-events: none;
}

.band .art svg {
  width: 100%;
  height: 100%;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 92px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 0;
}

.panel p {
  margin: 8px 14px 14px;
  color: #44515b;
}

.panel a.more:hover {
  color: var(--link);
}

.news-slide,
.prayer-slide {
  display: none;
}

.news-slide.is-on,
.prayer-slide.is-on {
  display: block;
}

.gallery-panel {
  padding: 12px 14px 14px;
}

.gallery-panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.gmini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: calc(100% - 32px);
}

.gtile {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tone-hall { background: linear-gradient(160deg, #8d3a34, #e7b99a); }
.tone-worship { background: linear-gradient(160deg, #1d4f86, #e4b04a); }
.tone-forty { background: linear-gradient(160deg, #0e7876, #e4b04a); }
.tone-school { background: linear-gradient(160deg, #2f74b5, #f2d7a2); }
.tone-prayer { background: linear-gradient(160deg, #24344f, #8eb4d4); }
.tone-mission { background: linear-gradient(160deg, #2f8f57, #f3c86a); }

.iconbar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.iconbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 6px 14px;
  color: #4b5963;
  font-size: 12.5px;
  letter-spacing: -0.03em;
  border-right: 1px solid var(--line);
}

.iconbar a:last-child {
  border-right: 0;
}

.iconbar svg {
  width: 26px;
  height: 26px;
  color: #7b8791;
}

.iconbar a:hover {
  color: var(--link);
}

.iconbar a:hover svg {
  color: var(--teal);
}

.footer {
  background: #f7f8f9;
  border-top: 1px solid var(--line);
  color: #5c6872;
  font-size: 13px;
}

.foot-links {
  display: flex;
  gap: 18px;
  padding: 16px 0 8px;
}

.foot-links a:hover {
  color: var(--link);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding-bottom: 8px;
}

address {
  font-style: normal;
  line-height: 1.7;
}

.site-chip {
  position: relative;
}

.site-chip summary,
.foot-sites > a {
  list-style: none;
  background: #4d555c;
  color: #fff;
  padding: 7px 12px;
  min-width: 132px;
  cursor: pointer;
}

.site-chip summary::-webkit-details-marker {
  display: none;
}

.site-chip a {
  display: block;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 8px 12px;
}

.copy {
  margin: 0;
  padding-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.snav,
.content,
.notice,
.card,
.person,
.composer {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.snav {
  padding: 0 0 8px;
}

.snav h2 {
  margin: 0;
  padding: 14px 16px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
}

.snav a {
  display: block;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: #3d4850;
}

.snav a.is-on,
.snav a:hover {
  color: var(--teal-deep);
  font-weight: 700;
  background: #f3fbfb;
}

.content {
  padding: 22px 26px 32px;
  min-height: 520px;
}

.crumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a:hover {
  color: var(--link);
}

.content h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.content h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  background: var(--teal);
}

.lede {
  color: #4c5963;
  margin-top: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.tabs a {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  color: #52606a;
  font-size: 13.5px;
}

.tabs a.is-on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}

.prose p,
.column p {
  margin: 0 0 12px;
}

.sign {
  margin-top: 18px;
  font-weight: 800;
}

.timeline,
.plain-list,
.news-list,
.board-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.timeline li,
.news-list li,
.board-list li,
.resource {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline b,
.news-list time,
.board-list time {
  color: var(--teal-deep);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.card {
  padding: 16px;
}

.card h2,
.person h2,
.column h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0 16px;
}

.person {
  padding: 12px;
  text-align: center;
}

.person span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
}

th {
  background: #f6fafb;
  font-weight: 700;
}

.callout {
  background: #f3fbfb;
  border: 1px solid #cfe7e6;
  padding: 14px 16px;
  margin: 12px 0;
}

.callout a {
  color: var(--link);
  font-weight: 800;
}

.service-block {
  margin-top: 22px;
}

.service-block h2 {
  margin-bottom: 2px;
}

.order {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.order li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dept {
  scroll-margin-top: 12px;
}

.dept.is-current {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.composer,
.notice {
  padding: 14px;
  margin-top: 14px;
}

.composer label,
.field {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.composer input,
.composer textarea,
.composer select,
.field input,
.field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d5dde3;
  border-radius: 3px;
  padding: 10px 12px;
  font-weight: 400;
  background: #fff;
}

.composer textarea {
  min-height: 110px;
  resize: vertical;
}

.manage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manage-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-wait { color: #9a6b12; }
.status-ok { color: #1d7a45; }
.status-no { color: #a33b32; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 3px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  border: 0;
}

.btn:hover {
  background: var(--teal-deep);
}

.btn.secondary {
  background: #fff;
  color: #345;
  border: 1px solid var(--line);
}

.btn.secondary:hover {
  border-color: #8fd0ea;
  color: var(--link);
}

.help,
.empty {
  color: var(--muted);
  font-size: 13.5px;
}

.error {
  color: #9a3412;
  font-size: 13.5px;
  font-weight: 400;
}

.map-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 12px;
}

.map-frame {
  min-height: 320px;
  border: 1px solid var(--line);
  background: #e7eef3;
}

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

.addr-card p {
  margin: 0 0 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gcard {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 0;
  text-align: left;
  color: #fff;
  border: 0;
  overflow: hidden;
}

.gcard span {
  margin-top: auto;
  padding: 12px;
  font-weight: 800;
}

.gcard:hover {
  filter: saturate(1.05) brightness(1.03);
}

dialog {
  border: 0;
  padding: 0;
  max-width: min(560px, calc(100% - 28px));
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(16, 24, 36, 0.48);
}

.dialog-body {
  padding: 20px 22px 22px;
}

.dialog-body h2 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #1d2a36;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  z-index: 30;
  font-size: 14px;
}

.search-hit {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.search-hit b {
  display: block;
}

.search-hit span {
  color: var(--muted);
  font-size: 13px;
}

.columns {
  display: grid;
  gap: 14px;
}

.column {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

:focus-visible {
  outline: 2px solid #127ea3;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

@media (max-width: 1020px) {
  .home-top,
  .lower-grid,
  .page,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .home-side {
    min-height: 0;
  }

  .hero {
    min-height: 360px;
  }

  .hero-copy {
    right: 28px;
  }

  .feature-grid,
  .mega .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .iconbar {
    grid-template-columns: repeat(5, 1fr);
  }

  .iconbar a:nth-child(5) {
    border-right: 0;
  }

  .people,
  .gallery-grid,
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header .wrap,
  .topbar .wrap,
  .foot-bottom {
    flex-wrap: wrap;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .search {
    order: 5;
    max-width: none;
    flex-basis: 100%;
  }

  .quick {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
  }

  .feature-grid,
  .side-row,
  .mega .wrap,
  .people,
  .gallery-grid,
  .cards,
  .school-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pastor-intro {
    grid-template-columns: 1fr;
  }

  .pastor-portrait {
    max-width: 240px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .content {
    padding: 18px 16px 26px;
  }

  .timeline li,
  .news-list li,
  .board-list li,
  .resource {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .snav {
    display: flex;
    overflow-x: auto;
  }

  .snav h2 {
    display: none;
  }

  .snav a {
    white-space: nowrap;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .iconbar,
  .feature-grid,
  .people,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-left {
    display: none;
  }

  .band {
    min-height: 0;
    padding-bottom: 96px;
  }

  .band h2,
  .band .dot-list {
    max-width: 100%;
  }
}

.seo-fallback {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

.seo-fallback .kicker {
  margin: 0 0 8px;
  color: var(--sky-deep);
  font-size: 14px;
}

.seo-fallback h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.3;
}

.seo-fallback h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.seo-fallback p,
.seo-fallback li {
  color: var(--ink);
  line-height: 1.7;
}

@media print {
  .topbar,
  .header,
  .mega,
  .snav,
  .iconbar,
  .footer,
  .tabs,
  .composer,
  .hero-ui,
  .pager-row {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .content,
  .panel,
  .widget {
    border: 0;
    box-shadow: none;
  }
}
