/* 2026-10-28 홈페이지 피드백 반영 (native.8.22). 홈과 푸터만 덮어씀. 맨 마지막에 읽음.
   1 대문 좌우 여백 줄이고 가운데 크게 · 2 안내 배너 파스텔 · 3 설교 썸네일 날짜 · 4 말씀 구간 밝게
   5 은혜와 감사 나눔 4칸 · 6 푸터 담임목사·연락처 · 7 표어 강조 · 8 대문·푸터 글자 크게 · 9 맨 앞 고정 사진 */

/* ---------- 색 토큰(홈 전용) ---------- */
body[data-page="home"] {
  --section-word:#6A5580;            /* 말씀 구간: 이전 #352A3E → 한 단계 밝은 보라 (흰 글씨 대비 6.5:1) */
  --door-bg:#F3F0F6;                 /* 안내 배너 바탕: 연한 회보라 */
  --door-1:#E9E1F3; --door-2:#FBE9DF; --door-3:#DDEFE5; --door-4:#DDEAF7;  /* 파스텔 4색 돌려 쓰기 */
  --door-ink:#2F2638; --door-ic:#5B3F6E;
}
html[data-theme="blue"] body[data-page="home"] {
  --section-word:#2E5F96;
  --door-bg:#EEF3F9; --door-1:#DCE8F6; --door-2:#E7EFE9; --door-3:#F6EEDC; --door-4:#E6E4F4;
  --door-ink:#14304F; --door-ic:#0F4C8C;
}
html[data-theme="contrast"] body[data-page="home"] {
  --door-bg:#241D2C; --door-1:#35294A; --door-2:#2C3A38; --door-3:#40352A; --door-4:#2B3550;
  --door-ink:#F7F2FA; --door-ic:#E6D3F8;
}

/* ---------- 3·9. 설교 썸네일 날짜 표시 ('2026.10.25. 주일예배') ---------- */
.wf__card,.fan__card { container-type:inline-size; }
.wf__date { position:absolute;z-index:3;top:8.6%;right:3.2%;padding:1.5cqw 2.6cqw;border-radius:1.4cqw;background:#fff;color:#1c4a96;font-weight:800;font-size:3.9cqw;line-height:1.15;letter-spacing:-.01em;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.2);pointer-events:none; }
html[data-theme="contrast"] .wf__date { background:#fff;color:#102A55; }

/* ---------- 데스크톱 ---------- */
@media (min-width:1025px) {

  /* 1. 대문: 포스터 양옆 빈 띠를 같은 포스터 색으로 채우고, 포스터 자체도 크게 */
  body[data-page="home"] .hero { height:clamp(660px,92svh,900px);min-height:660px;max-height:900px; }
  body[data-page="home"] .hero .slide__content.pslide { padding:calc(var(--hdr) + 6px) 24px 54px; }
  body[data-page="home"] .hero[data-poster-layout="wide"] .slide--poster .slide__bg { display:block; }
  body[data-page="home"] .hero[data-poster-layout="wide"] .slide--poster { background:var(--section-hero); }
  body[data-page="home"] .hero[data-poster-layout="wide"] .pslide__veil { background:rgba(255,255,255,.16); }
  body[data-page="home"] .hero .slide--solo .pslide__frame img,
  body[data-page="home"] .hero[data-slide-count="1"] .slide--solo .pslide__frame img {
    max-height:calc(clamp(660px,92svh,900px) - var(--hdr) - 60px);
    max-width:calc(100vw - 48px);
  }
  body[data-page="home"] .hero[data-poster-layout="wide"] .pslide__frame img { box-shadow:0 20px 60px -24px rgba(30,20,40,.45); }
  body[data-page="home"] .hero .hctrl { bottom:14px; }
  /* 8. 대문 컨트롤 글자 */
  body[data-page="home"] .hctrl__count { font-size:1.05rem; }
  body[data-page="home"] .hero .slide__sub { font-size:clamp(1.15rem,1.4vw,1.4rem); }

  /* 2·8. 안내 배너: 연한 바탕 + 칸마다 파스텔, 글자·아이콘 키움 */
  body[data-page="home"] .home-doors { background:var(--door-bg);border-block:1px solid var(--section-edge);gap:12px;min-height:160px;padding:22px 40px; }
  html[data-theme] body[data-page="home"] .home-doors { background:var(--door-bg);border-color:var(--section-edge); }
  body[data-page="home"] .home-doors a { border-radius:16px;color:var(--door-ink);font-size:1.3rem;font-weight:600;gap:10px;padding:14px 6px;letter-spacing:-.02em;transition:transform .18s ease,box-shadow .18s ease; }
  body[data-page="home"] .home-doors a:nth-child(4n+1) { background:var(--door-1); }
  body[data-page="home"] .home-doors a:nth-child(4n+2) { background:var(--door-2); }
  body[data-page="home"] .home-doors a:nth-child(4n+3) { background:var(--door-3); }
  body[data-page="home"] .home-doors a:nth-child(4n) { background:var(--door-4); }
  body[data-page="home"] .home-doors a:hover,body[data-page="home"] .home-doors a:focus-visible { color:var(--door-ink);text-decoration:none;transform:translateY(-3px);box-shadow:0 10px 22px -14px rgba(47,38,57,.55); }
  html[data-theme] body[data-page="home"] .home-doors__icon { color:var(--door-ic); }
  body[data-page="home"] .home-doors__icon { width:52px;height:46px; }
  body[data-page="home"] .home-doors__icon svg { width:36px;height:36px; }

  /* 4. 말씀 구간 밝게 */
  body[data-page="home"] .word,html[data-theme] body[data-page="home"] .word { background:var(--section-word); }
  body[data-page="home"] .wf__big { color:rgba(255,255,255,.09); }
  body[data-page="home"] .wf__amb i.is-on { opacity:.5; }
  body[data-page="home"] .wf__card::after { background:#2a1d37; }
  body[data-page="home"] .wf__txt h3 { font-size:clamp(30px,2.7vw,42px); }
}
@media (min-width:1025px) and (max-width:1400px) {
  body[data-page="home"] .home-doors { padding-inline:24px;gap:8px; }
  body[data-page="home"] .home-doors a { font-size:1.18rem; }
}

/* 4. 모바일·태블릿 말씀 구간도 같은 색 */
body[data-page="home"] .word__shell { background:var(--section-word); }
html[data-theme] body[data-page="home"] .word__shell::before { background:radial-gradient(60% 70% at 15% 10%,rgba(255,255,255,.18),transparent 70%),linear-gradient(160deg,var(--section-word),color-mix(in srgb,var(--section-word) 78%,#000)); }

/* ---------- 5. 은혜와 감사 나눔: 한 줄 4칸 ---------- */
body[data-page="home"] .home-sharing__list { list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px; }
body[data-page="home"] .home-share { margin:0;min-width:0; }
body[data-page="home"] .home-share > a { position:relative;display:flex;flex-direction:column;gap:10px;height:100%;min-height:220px;padding:22px 22px 20px;background:#fff;color:var(--ink);border:1px solid var(--section-edge);border-radius:14px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
body[data-page="home"] .home-share > a:hover,body[data-page="home"] .home-share > a:focus-visible { transform:translateY(-3px);border-color:var(--home-accent);box-shadow:0 14px 28px -20px rgba(47,38,57,.6); }
body[data-page="home"] .home-share__cat { align-self:flex-start;padding:4px 14px;border-radius:99px;font-size:.95rem;font-weight:700;letter-spacing:.02em; }
body[data-page="home"] .home-share__cat.is-grace { background:#E9E1F3;color:#4B2F60; }
body[data-page="home"] .home-share__cat.is-thanks { background:#FBE9DF;color:#7A3E1E; }
body[data-page="home"] .home-share h3 { margin:0;font-size:1.28rem;line-height:1.45;letter-spacing:-.03em;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
body[data-page="home"] .home-share p { margin:0;font-size:1.05rem;line-height:1.65;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
body[data-page="home"] .home-share time { margin-top:auto;font-size:.95rem;color:var(--ink-3); }
body[data-page="home"] .home-share--invite > a { align-items:center;justify-content:center;text-align:center;background:transparent;border:2px dashed var(--section-edge);gap:8px; }
body[data-page="home"] .home-share__plus { display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--home-soft);color:var(--home-accent); }
body[data-page="home"] .home-share__plus svg { width:22px;height:22px; }
body[data-page="home"] .home-share--invite b { font-size:1.2rem; }
body[data-page="home"] .home-share--invite > a > span:last-child { font-size:1rem;line-height:1.6;color:var(--ink-2); }
body[data-page="home"] .home-sharing__list.is-empty { grid-template-columns:1fr; }
body[data-page="home"] .home-sharing__list.is-empty .home-share > a { min-height:150px; }
body[data-page="home"] .home-sharing .home-section-head h2 { font-size:34px; }
html[data-theme="contrast"] body[data-page="home"] .home-share > a { background:var(--section-guide);color:var(--home-on-dark); }
html[data-theme="contrast"] body[data-page="home"] .home-share p,html[data-theme="contrast"] body[data-page="home"] .home-share time { color:var(--home-on-dark-muted); }
html[data-theme="contrast"] body[data-page="home"] .home-share__cat.is-grace,html[data-theme="contrast"] body[data-page="home"] .home-share__cat.is-thanks { background:#42344F;color:#F2E6FA; }
@media (max-width:1100px) { body[data-page="home"] .home-sharing__list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
  body[data-page="home"] .home-sharing__list { grid-template-columns:1fr;gap:14px; }
  body[data-page="home"] .home-share > a { min-height:0; }
  body[data-page="home"] .home-sharing .home-section-head h2 { font-size:27px; }
}

/* ---------- 6·7·8. 푸터 ---------- */
.ftr { padding-block:76px 36px; }
.ftr__inner { grid-template-columns:1.15fr 1.3fr 1fr; gap:44px; }
.ftr__tag { margin-top:26px; }
.ftr__tag span { display:inline-block;padding:11px 28px;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--gold-soft) 85%,transparent);background:linear-gradient(135deg,rgba(231,211,175,.22),rgba(255,255,255,.08));color:#fff;font-size:1.45rem;font-weight:650;letter-spacing:-.02em;line-height:1.35;box-shadow:0 8px 26px -14px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.08); }
.ftr__info { gap:12px;font-size:1.1rem;line-height:1.6; }
.ftr__info .ic { width:20px;height:20px;margin-top:5px;flex:none; }
.ftr__info a { color:inherit; }
.ftr__info a:hover,.ftr__info a:focus-visible { color:#fff;text-decoration:underline;text-underline-offset:4px; }
.ftr__pastor { font-size:1.28rem;font-weight:700;color:#fff;margin-bottom:2px; }
.ftr__pastor .ic { color:var(--gold-soft); }
.ftr__tel > span { display:flex;flex-wrap:wrap;gap:2px 22px; }
.ftr__item { white-space:nowrap; }
.ftr__links { font-size:1.1rem;gap:10px 20px; }
.ftr__bottom,.ftr__admin { font-size:1rem; }
.ftr .brand__txt b { font-size:1.35rem; }
@media (max-width:1024px) {
  .ftr__inner { grid-template-columns:1fr;gap:28px; }
  .ftr__tag span { font-size:1.25rem;padding:10px 22px; }
  .ftr__info { font-size:1.05rem; }
}
@media (max-width:420px) { .ftr__tag span { display:block;text-align:center;font-size:1.15rem;padding:10px 14px; } }
html[data-theme="blue"] .ftr__tag span { border-color:rgba(190,215,245,.7);background:linear-gradient(135deg,rgba(150,190,235,.25),rgba(255,255,255,.08)); }
html[data-theme="contrast"] .ftr__tag span { border-color:#E6D3F8;background:rgba(230,211,248,.14); }

/* ---------- 모바일 안내 영역·대문 글자 (8) ---------- */
@media (max-width:1024px) {
  body[data-page="home"] .hero .slide__sub { font-size:1.12rem; }
}

/* ---------- 9. 맨 앞 고정 장면: 드론 영상 위에 문구 가운데 정렬 (영상은 살짝 눌러 글자가 또렷하게) ---------- */
.slide--fixed .slide__bg > *,.slide.is-active.slide--fixed .slide__bg > * { animation:none;transform:none; }
.slide--fixed .slide__media { object-fit:cover;object-position:center 40%; }
/* Keep the new-building facade visible when the hero video is cropped on phones. */
@media (max-width:640px) { .slide--fixed video.slide__media[src*="video/hero-church.mp4"] { object-position:72% 40%; } }
.slide--fixed .slide__veil { background:linear-gradient(180deg,rgba(14,10,22,.55) 0%,rgba(14,10,22,.46) 45%,rgba(14,10,22,.62) 100%); }
.slide--fixed .slide__content { justify-content:center;align-items:center;text-align:center;min-height:100%;padding-top:var(--hdr);padding-bottom:70px; }
.slide--fixed .slide__title { margin-top:0;font-size:clamp(2.1rem,5.2vw,4.6rem);line-height:1.25;letter-spacing:-.035em;color:#fff;text-shadow:0 3px 22px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.5); }
.slide--fixed .slide__title br + .w,.slide--fixed .slide__title .w:last-child { color:#fff; }
.slide--fixed .slide__sub { margin-top:18px;max-width:none;font-size:clamp(1.05rem,1.6vw,1.4rem);font-weight:500;letter-spacing:.02em;color:rgba(255,255,255,.92);text-shadow:0 2px 12px rgba(0,0,0,.6); }
.slide--fixed .slide__cta { margin-top:30px; }
@media (max-width:640px) { .slide--fixed .slide__title { font-size:clamp(1.7rem,8vw,2.4rem); } }

/* native.8.25 로그인·회원가입 */
.hdr__login{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;margin-left:6px;border-radius:999px;border:1px solid currentColor;font-size:.82rem;font-weight:600;white-space:nowrap;opacity:.9;transition:opacity .3s,background .3s,color .3s}
.hdr__login .ic{width:15px;height:15px}
.hdr__login:hover,.hdr__login:focus-visible{opacity:1;background:var(--plum-deep,#2a2431);color:#fff;border-color:var(--plum-deep,#2a2431)}
.hdr__login.is-in span{max-width:9em;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1180px){.hdr__login{width:40px;padding-inline:0;justify-content:center}.hdr__login span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}
.drawer__login{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(42,36,49,.18);text-decoration:none;color:inherit}
.drawer__login>span:nth-child(2){flex:1;display:flex;flex-direction:column;min-width:0}.drawer__login i{font-style:normal;font-size:.8rem;opacity:.7}
.auth-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:820px){.auth-grid{grid-template-columns:1fr}}
.auth-card{background:var(--surface,#fff);border:1px solid rgba(42,36,49,.14);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:10px;min-width:0}
.auth-card--soft{background:rgba(255,246,224,.7)}
.auth-card__t{font-size:1.3rem;margin:0 0 4px}
.auth-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.auth-kids{flex-direction:row;align-items:center;gap:14px;text-decoration:none;color:inherit;background:#fff6e0;border:2px solid #2b1c2a;box-shadow:0 3px 0 #2b1c2a}
.auth-kids>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.auth-kids>span:nth-child(2) span{font-size:.9rem;opacity:.8}
.auth-kids__art{display:flex}.auth-kids__art img{width:48px;height:48px;image-rendering:pixelated}
.auth-admin{font-size:.85rem}
.auth-steps{list-style:none;padding:0;margin:0 0 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.auth-steps li{border:1px solid rgba(42,36,49,.14);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;background:var(--surface,#fff)}
.auth-steps span{font-size:.85rem;opacity:.75}
@media (max-width:560px){.auth-steps{grid-template-columns:1fr}}
.auth-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0}.auth-dl dt{opacity:.65}.auth-dl dd{margin:0}
.auth-links{display:flex;flex-wrap:wrap;gap:8px}
.activity-group .kv-cta{margin-top:4px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 22px}
.auth-tabs a{position:relative;display:flex;align-items:center;gap:10px;padding:14px 14px;border:2px solid rgba(42,36,49,.18);border-radius:14px;background:#fff;color:var(--ink,#2a2431);text-decoration:none;transition:border-color .15s,background .15s,transform .15s}
.auth-tabs a:hover{border-color:rgba(42,36,49,.5);transform:translateY(-1px)}
.auth-tabs a:focus-visible{outline:3px solid var(--gold,#c9a45c);outline-offset:2px}
.auth-tabs__ic{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:rgba(42,36,49,.08)}
.auth-tabs__ic .ic{width:20px;height:20px}
.auth-tabs__tx{display:flex;flex-direction:column;gap:1px;min-width:0;line-height:1.25}
.auth-tabs__tx b{font-size:.98rem;font-weight:700}.auth-tabs__tx small{font-size:.76rem;opacity:.62}
.auth-tabs__ck{position:absolute;top:8px;right:8px;display:none;width:20px;height:20px;border-radius:50%;background:var(--gold,#e6c27a);color:#2a2431;place-items:center}
.auth-tabs__ck .ic{width:13px;height:13px;stroke-width:2.6}
.auth-tabs a[aria-current]{background:var(--plum-deep,#2a2431);border-color:var(--plum-deep,#2a2431);color:#fff;box-shadow:0 8px 18px -8px rgba(42,36,49,.7)}
.auth-tabs a[aria-current] .auth-tabs__ic{background:rgba(255,255,255,.16)}
.auth-tabs a[aria-current] small{opacity:.8}
.auth-tabs a[aria-current] .auth-tabs__ck{display:grid}
.auth-tabs a[aria-current]::after{content:"";position:absolute;left:50%;bottom:-9px;width:14px;height:14px;background:var(--plum-deep,#2a2431);transform:translateX(-50%) rotate(45deg);border-radius:0 0 3px 0}
@media (max-width:420px){.auth-tabs{grid-template-columns:1fr}.auth-tabs a[aria-current]::after{display:none}}
