/* 어울림교회 — eoulrim.org */
:root {
  --red: #93343f;
  --red-dark: #6f2530;
  --brown: #4a3f31;
  --ink: #2a2622;
  --muted: #6d665e;
  --line: #e6e1d9;
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --gray: #bec2c5;
  --radius: 14px;
  --wrap: 1120px;
  --header-h: 76px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; color: var(--brown); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: background .25s, border-color .25s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: -.01em; }
.brand-text strong { font-size: 22px; font-weight: 800; color: var(--brown); letter-spacing: -.02em; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav li { position: relative; }
.nav-top {
  display: block; padding: 10px 16px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--brown); text-decoration: none;
  border-radius: 8px;
}
.nav-top:hover, .nav li.open > .nav-top, .nav-top[aria-current="true"], .nav-top[aria-current="page"] { color: var(--red); }
.nav-top .caret { display: inline-block; margin-left: 4px; font-size: 10px; transition: transform .2s; }
.nav li.open > .nav-top .caret { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(42,38,34,.12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav li:last-child .sub { left: auto; right: 0; }
.nav li.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 14px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--ink); white-space: nowrap; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--bg-soft); color: var(--red); }

.menu-btn { display: none; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: transform .2s, opacity .2s; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* home: transparent header over hero */
.home .site-header:not(.scrolled) { background: transparent; border-color: transparent; }
.home .site-header:not(.scrolled) .brand-text strong,
.home .site-header:not(.scrolled) .nav-top { color: #fff; }
.home .site-header:not(.scrolled) .brand-text small { color: rgba(255,255,255,.75); }
.home .site-header:not(.scrolled) .menu-btn span { background: #fff; }
.brand .logo-white { display: none; }
.home .site-header:not(.scrolled) .brand .logo-color { display: none; }
.home .site-header:not(.scrolled) .brand .logo-white { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, #6f2530 0%, #93343f 55%, #7b5a4a 100%);
  padding: calc(var(--header-h) + 90px) 0 110px;
}
.hero-mosaic { position: absolute; right: -40px; bottom: -30px; width: min(520px, 55vw); opacity: .12; pointer-events: none; }
.hero .eyebrow { letter-spacing: .28em; font-size: 13px; font-weight: 600; opacity: .85; margin-bottom: 22px; }
.hero h1 { color: #fff; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.02em; }
.hero .verse { margin-top: 26px; font-size: clamp(15px, 1.8vw, 18px); max-width: 560px; opacity: .92; line-height: 1.9; }
.hero .verse cite { display: block; font-style: normal; font-size: 14px; margin-top: 6px; opacity: .8; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--red); letter-spacing: .22em; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.page-hero p { margin: 12px 0 0; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-top: 14px; }
.crumbs a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--bg-soft); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--line); color: var(--brown); background: #fff; }
.btn-line:hover { border-color: var(--red); color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { color: var(--red); letter-spacing: .22em; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 10px 0 0; }
.content h2 { font-size: 26px; margin: 56px 0 18px; padding-top: 8px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 19px; margin: 28px 0 10px; }
.content p, .content li { color: #3d3833; }
.lead { font-size: 18px; color: var(--brown); }

/* ---------- Home quad blocks ---------- */
.quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.block:hover { box-shadow: 0 14px 36px rgba(42,38,34,.10); transform: translateY(-2px); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 24px 14px; }
.block-head h3 { font-size: 20px; }
.block-head .eyebrow { font-size: 11px; letter-spacing: .2em; color: var(--red); font-weight: 700; display: block; margin-bottom: 2px; }
.block-head a.more { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.block-head a.more:hover { color: var(--red); }
.block-body { padding: 0 24px 24px; flex: 1; display: flex; flex-direction: column; }

.video-card { text-decoration: none; display: block; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #ddd center/cover no-repeat; }
.thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(147,52,63,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/28px no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s;
}
.video-card:hover .thumb::after { transform: scale(1.08); }
.video-meta { margin-top: 14px; }
.video-meta .title { font-weight: 700; font-size: 17px; color: var(--brown); }
.video-meta .sub-info { font-size: 14px; color: var(--muted); margin-top: 2px; }
.skeleton { color: var(--muted); font-size: 14px; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list b { color: var(--red); flex: none; }
.notice-date { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.mini-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.addr { margin-top: 14px; font-size: 15px; }
.addr strong { color: var(--brown); }

/* ---------- Worship table ---------- */
.worship-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.w-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.w-item .name { font-weight: 700; color: var(--brown); font-size: 17px; }
.w-item .time { color: var(--red); font-weight: 700; font-size: 20px; margin-top: 8px; }
.w-item .note { color: var(--muted); font-size: 14px; margin-top: 4px; }

table.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--bg-soft); color: var(--brown); font-weight: 700; white-space: nowrap; }
.tbl td.time { color: var(--red); font-weight: 700; white-space: nowrap; }

/* ---------- Cards / misc ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card .num { font-family: var(--serif); color: var(--red); font-size: 28px; font-weight: 700; line-height: 1; }
.card h3 { margin: 12px 0 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

.motto {
  text-align: center; padding: 56px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, #6f2530, #93343f); color: #fff;
}
.motto .year { letter-spacing: .3em; font-size: 13px; opacity: .85; }
.motto .theme { font-size: 18px; margin-top: 6px; opacity: .9; }
.motto h3 { color: #fff; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 34px); margin: 18px 0; }
.motto blockquote { margin: 0 auto; max-width: 520px; opacity: .92; line-height: 1.9; }
.motto cite { display: block; font-style: normal; margin-top: 8px; font-size: 14px; opacity: .8; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; background: var(--red); border-radius: 3px; }
.timeline .date { font-weight: 700; color: var(--red); }

.person { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person .portrait {
  aspect-ratio: 3/4; border-radius: var(--radius); background: var(--bg-soft);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.person .portrait img { width: 56%; opacity: .55; }
.person .role { color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.person h3 { font-size: 26px; margin: 4px 0 18px; }
.person h3 small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.cv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 16px; }
.cv dt { font-weight: 700; color: var(--brown); }
.cv dd { margin: 0 0 12px; }
.cv ul { margin: 0; padding-left: 18px; }
.staff-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.app-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 8px; }
.app-links a {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px;
  border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: #fff;
}
.app-links a:hover { border-color: var(--red); color: var(--red); }
.app-links .dot { width: 10px; height: 10px; border-radius: 50%; }

.info-rows { display: grid; grid-template-columns: 140px 1fr; border-top: 2px solid var(--brown); }
.info-rows > div { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.info-rows .k { font-weight: 700; color: var(--brown); background: var(--bg-soft); }

.transit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.transit .card h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; }
.badge.l8 { background: #e6186c; }
.badge.bus-b { background: #3d5bab; }
.badge.bus-g { background: #3d9b35; }
.badge.bus-r { background: #d9352b; }
.badge.bus-v { background: #53b332; }
.bus-row { margin: 6px 0; font-size: 15px; }

.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.yt-grid .video-meta .title { font-size: 15px; }
.embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.callout { background: var(--bg-soft); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.callout p:last-child { margin: 0; }

/* contact strip (like ssueim CONTACT US) */
.contact-strip { background: var(--brown); color: #fff; padding: 64px 0; }
.contact-strip .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.contact-strip h2 { color: #fff; font-size: 28px; }
.contact-strip .eyebrow { letter-spacing: .3em; font-size: 12px; opacity: .7; margin-bottom: 8px; }
.contact-strip dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; margin: 0; }
.contact-strip dt { opacity: .7; }
.contact-strip dd { margin: 0; font-weight: 600; }
.contact-strip a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #231f1b; color: #bdb5aa; font-size: 14px; padding: 48px 0 32px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid #3a342e; }
.site-footer .f-brand { display: flex; gap: 14px; align-items: center; }
.site-footer .f-brand img { width: 46px; }
.site-footer .f-brand strong { color: #fff; font-size: 20px; display: block; }
.site-footer .f-brand small { font-size: 12px; }
.site-footer .f-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.site-footer .f-info span:nth-child(odd) { color: #8b8378; }
.site-footer a { color: #e7e1d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.sns { display: flex; gap: 10px; }
.sns a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #3a342e; border-radius: 999px; }
.sns svg { width: 18px; height: 18px; }
.site-footer .bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8b8378; }
.to-top { background: none; border: 1px solid #3a342e; color: #bdb5aa; border-radius: 999px; padding: 4px 14px; cursor: pointer; font: inherit; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .worship-grid { grid-template-columns: repeat(2, 1fr); }
  .cards3, .transit, .yt-grid, .staff-list { grid-template-columns: 1fr 1fr; }
  .contact-strip .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 36px; }
  .brand-text strong { font-size: 19px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; padding: 12px 20px 40px;
    transform: translateX(100%); transition: transform .25s;
  }
  body.menu-open .nav { transform: none; }
  body.menu-open { overflow: hidden; }
  .home .site-header:not(.scrolled) .nav .nav-top { color: var(--brown); }
  body.menu-open .site-header { background: #fff !important; border-color: var(--line) !important; }
  body.menu-open .site-header .brand-text strong { color: var(--brown) !important; }
  body.menu-open .site-header .brand-text small { color: var(--muted) !important; }
  body.menu-open .site-header .menu-btn span { background: var(--brown) !important; }
  body.menu-open .site-header .logo-color { display: block !important; }
  body.menu-open .site-header .logo-white { display: none !important; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; text-align: left; padding: 16px 4px; font-size: 18px; display: flex; justify-content: space-between; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; }
  .nav li.open > .sub { display: block; }
  .sub a { font-size: 16px; padding: 10px 12px; }
  .quad, .two { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; gap: 20px; }
  .person .portrait { max-width: 200px; aspect-ratio: 1; }
  .app-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .worship-grid, .cards3, .transit, .yt-grid, .staff-list { grid-template-columns: 1fr; }
  .info-rows { grid-template-columns: 96px 1fr; }
  .tbl th, .tbl td { padding: 12px 10px; font-size: 15px; }
  .cv { grid-template-columns: 1fr; }
  .cv dd { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* quick buttons (ssueim 방식) */
.quick-menu { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.quick-menu a, .quick-menu button {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(42,38,34,.22); text-decoration: none;
}
.quick-menu .quick-top { background: #fff; color: var(--brown); border: 1px solid var(--line); border-radius: 50%; padding: 0; }

/* photos */
.hero { background: #5a1f27; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background: center/cover no-repeat; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(74,24,32,.88) 0%, rgba(111,37,48,.70) 45%, rgba(60,30,25,.25) 100%);
}
.hero > .wrap, .hero .hero-mosaic { position: relative; z-index: 2; }
.hero .hero-mosaic { position: absolute; }
.hero { min-height: min(86vh, 760px); display: flex; align-items: center; }

.page-hero.has-img {
  position: relative; color: #fff; border: 0;
  padding: calc(var(--header-h) + 96px) 0 80px;
  background: linear-gradient(rgba(42,28,26,.50), rgba(42,28,26,.62)), var(--banner) center/cover no-repeat;
}
.page-hero.has-img h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.page-hero.has-img .eyebrow { color: #f2d8dc; }
.page-hero.has-img p { color: rgba(255,255,255,.88); }

/* inline map */
.church-map { display: block; width: 100%; height: auto; font-family: var(--sans); }
.map-frame { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mini-map { display: block; }
.mini-map .church-map text { font-size: inherit; }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none; } }

/* this week (auto) */
.season { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.season-badge { background: var(--red); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: 13px; }
.week-list { list-style: none; margin: 0 0 14px; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; }
.week-list li { display: grid; grid-template-columns: 128px 1fr auto; gap: 8px; padding: 6px 0; font-size: 15px; }
.week-list .w-date { color: var(--brown); font-weight: 700; white-space: nowrap; }
.week-list em { font-style: normal; font-size: 11px; background: var(--red); color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 2px; vertical-align: 1px; }
.week-list .w-time { color: var(--red); font-weight: 600; white-space: nowrap; }
.week-wide .week-list { padding: 18px 22px; }
.week-wide .week-list li { font-size: 16px; padding: 8px 0; }

/* ---------- mobile refinements ---------- */
.map-hint { display: none; }
@media (max-width: 860px) {
  .map-frame, .mini-map { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .map-frame .church-map { min-width: 760px; }
  .mini-map .church-map { min-width: 620px; }
  .map-hint { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
  .person .portrait { display: none; }
  .person { padding: 28px 0; }
  .person h3 { font-size: 23px; margin-bottom: 12px; }
  .quick-menu { right: 12px; bottom: 14px; gap: 8px; }
  .quick-menu a, .quick-menu button { width: 42px; height: 42px; font-size: 11px; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 64px) 0 72px; }
  .hero .actions .btn { padding: 11px 18px; }
  .page-hero.has-img { padding: calc(var(--header-h) + 56px) 0 44px; }
  .block-head { padding: 18px 18px 12px; }
  .block-body { padding: 0 18px 18px; }
  .section-head { margin-bottom: 28px; }
  .contact-strip { padding: 48px 0; }
  .contact-strip dl { grid-template-columns: 78px 1fr; }
  .site-footer .top { flex-direction: column; gap: 20px; }
  .site-footer .f-info { grid-template-columns: 64px 1fr; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl thead { display: none; }
  .tbl tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  .tbl th { border-bottom: 0; padding: 12px 14px 4px; background: none; }
  .tbl td { border-bottom: 0; padding: 2px 14px; }
  .tbl td:last-child { padding-bottom: 12px; color: var(--muted); font-size: 14px; }
  .week-list li { grid-template-columns: 1fr auto; }
  .week-list .w-name { grid-column: 1; grid-row: 2; font-size: 14px; }
  .week-list .w-time { grid-row: 1 / span 2; align-self: center; }
  .notice-list li { flex-direction: column; gap: 2px; }
  .motto { padding: 40px 20px; }
}
.nav-top .caret { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 8px; font-size: 0; }
.nav li.open > .nav-top .caret { transform: rotate(-135deg) translate(-2px, -1px); }
@media (max-width: 860px) { .nav-top { align-items: center; } }

/* motto with photo */
.motto {
  background:
    linear-gradient(180deg, rgba(74,24,32,.78) 0%, rgba(111,37,48,.62) 50%, rgba(74,24,32,.82) 100%),
    url(/assets/img/motto.jpg) center 60%/cover no-repeat;
  padding: 84px 28px;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
@media (max-width: 860px) { .motto { padding: 56px 20px; } }

/* outlined logo (글꼴 없이 경로로 그린 SVG) */
.brand img { width: auto; height: 40px; }
.site-footer .f-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer .f-brand img { width: auto; height: 40px; }
.site-footer .f-brand small { font-size: 12px; color: #8b8378; letter-spacing: .02em; }
@media (max-width: 860px) { .brand img { height: 34px; } }

/* footer YouTube link & TOP: 테두리 없이 */
.sns a { border: 0; padding: 0; border-radius: 0; gap: 10px; align-items: center; }
.sns svg { width: 30px; height: 30px; color: #e7e1d8; flex: none; transition: color .2s; }
.sns span { display: flex; flex-direction: column; line-height: 1.35; font-weight: 600; color: #e7e1d8; }
.sns small { font-weight: 400; font-size: 12px; color: #8b8378; }
.sns a:hover { text-decoration: none; }
.sns a:hover svg { color: #ff3b3b; }
.sns a:hover span { color: #fff; }
.site-footer .to-top { border: 0; padding: 0; color: #8b8378; }
.site-footer .to-top:hover { color: #fff; }
@media (max-width: 860px) { .site-footer { padding-bottom: 96px; } }
@media (max-width: 860px) { .site-footer .bottom { padding-right: 60px; } .site-footer { padding-bottom: 120px; } }

/* pastor photos */
.person .portrait.photo { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-soft); }
.person .portrait.photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
@media (max-width: 860px) {
  .person .portrait.photo { display: block; width: 180px; max-width: 60%; aspect-ratio: 4/5; }
}
