/* member/css/section.css - 선교회 메뉴 페이지 (section.html). home.css · about.css 다음에 불러온다 */

.section-subs a.is-active { background: #fff; color: var(--brand-700); }
.section-subs[hidden] { display: none; }

.section-main { max-width: var(--content-width); margin: 0 auto; padding: 32px 16px 60px; }
.section-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.section-toolbar[hidden], .section-grid[hidden], .section-view[hidden] { display: none; }

/* 버튼 */
.sc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; border: 1px solid var(--brand-200); border-radius: 999px;
    background: #fff; color: var(--brand-700); font: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap; text-decoration: none;
}
.sc-btn:hover { background: var(--brand-50); }
.sc-btn:disabled { opacity: 0.6; cursor: wait; }
.sc-btn-primary { border-color: transparent; background: var(--brand-gradient); color: #fff; }
.sc-btn-primary:hover { background: var(--brand-gradient); filter: brightness(1.05); }
.sc-btn-danger { color: #d64545; border-color: #f3c4c4; }
.sc-link {
    border: none; background: none; padding: 8px 12px; border-radius: 8px;
    font: inherit; font-size: 15px; font-weight: 700; color: var(--brand-700); cursor: pointer;
}
.sc-link:hover { background: var(--brand-100); }
.sc-link.sc-danger { color: #d64545; }
.sc-link.sc-danger:hover { background: #fdecec; }

/* 카드 목록 */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.section-grid .about-empty { grid-column: 1 / -1; }
.sc-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(22, 56, 41, 0.25); }
.sc-thumb {
    position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
    background: var(--brand-gradient-soft) center / cover no-repeat;
}
.sc-thumb b { font-size: 22px; font-weight: 900; color: var(--brand-600); letter-spacing: 1px; }
.sc-thumb-img { background-color: var(--brand-50); background-position: center top; }   /* 본문 첫 사진 (선교 카드 등) */
.sc-thumb-audio { background: linear-gradient(135deg, #f8f5ed, #e0eae0); }
.sc-thumb-file b { color: #d64545; }
.sc-play {
    width: 54px; height: 54px; border-radius: 50%; background: rgba(22, 56, 41, 0.72);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.sc-play::after {
    content: ''; display: block; margin: 17px 0 0 21px;
    border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.sc-card-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.sc-card-text b { font-size: 15.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.sc-card-text time { font-size: 12.5px; color: var(--ink-muted); }
.sc-tag {
    align-self: flex-start; padding: 1px 9px; border-radius: 999px;
    background: var(--brand-100); color: var(--brand-700); font-size: 12.5px; font-weight: 700;
}

/* 글 보기 */
.section-view {
    border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.14); overflow: hidden;
}
.section-view-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--brand-50);
}
.section-view-actions { display: flex; gap: 4px; }
.section-view-body { padding: 28px 34px 34px; max-width: 900px; margin: 0 auto; }
.section-view-sub { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--brand-600); }
.section-view-sub[hidden] { display: none; }
.section-view-title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.35; color: var(--brand-900); overflow-wrap: anywhere; }
.section-view-date { margin: 8px 0 20px; font-size: 13px; color: var(--ink-muted); }
.section-tr-note {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
    margin-bottom: 18px; padding: 9px 14px; border-radius: var(--radius-sm);
    background: var(--brand-50); border: 1px dashed var(--brand-200); font-size: 13.5px; color: var(--brand-700);
}
.section-tr-note[hidden] { display: none; }
.section-tr-note button {
    padding: 4px 12px; border: 1px solid var(--brand-200); border-radius: 999px; background: #fff;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-700); cursor: pointer;
}
.section-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 22px; border-radius: 8px; overflow: hidden; background: #000; }
.section-video[hidden] { display: none; }
.section-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.section-view-text { font-size: 16px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.section-view-text[hidden] { display: none; }
.section-view-text a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }
/* 본문 안 그림 · 파일 (section.js bodyHtml - ![..](주소) / [..](주소) 줄) */
.sc-body-img { display: block; width: 100%; max-width: 720px; height: auto; margin: 10px auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--brand-50); }
.sc-body-file { display: grid; gap: 8px; margin: 8px 0; white-space: normal; }
.sc-body-file audio { width: 100%; }

/* 자료 → 성경 화면 모양은 shared/bible-book.css (신학원 찾기와 같이 쓴다) */

/* 목록 쪽 번호 (20개씩) */
.sc-pager { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; }
.sc-pager button {
    min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--brand-200); border-radius: 999px;
    background: #fff; color: var(--brand-700); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.sc-pager button:hover:not(:disabled) { background: var(--brand-50); }
.sc-pager button.is-active { background: var(--brand-600, #1f4d3a); border-color: var(--brand-600, #1f4d3a); color: #fff; }
.sc-pager button:disabled { opacity: 0.35; cursor: default; }
.sc-pager-gap { color: var(--muted, #8a94a6); padding: 0 2px; }

/* 글이 많은 탭의 찾기 칸 */
.section-search {
    display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto 18px;
    padding: 10px 16px; border: 1px solid var(--brand-200); border-radius: 999px; background: #fff;
    box-shadow: 0 4px 14px -10px rgba(22, 56, 41, 0.3);
}
.section-search[hidden] { display: none; }
.section-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--brand-600, #1f4d3a); stroke-width: 2; stroke-linecap: round; }
.section-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.section-view-file { margin-top: 24px; display: grid; gap: 10px; }
.section-view-file[hidden] { display: none; }
.section-view-file audio { width: 100%; }
.sc-file-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-50);
}
.sc-file-icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: #fff; border: 1px solid var(--brand-200); color: #d64545; font-size: 12px; font-weight: 900;
}
.sc-file-title { flex: 1; min-width: 140px; font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* 글 올리기 창 (크게) */
.sc-modal {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
    background: rgba(11, 25, 19, 0.5);
}
.sc-modal[hidden] { display: none; }
.sc-modal-box {
    width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    border-radius: var(--radius-md); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden;
}
.sc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.sc-modal-head h2 { margin: 0; font-size: 19px; color: var(--brand-900); }
.sc-x { border: none; background: none; font-size: 28px; line-height: 1; color: var(--ink-muted); cursor: pointer; }
.sc-modal-body { padding: 18px 22px; overflow-y: auto; display: grid; gap: 14px; }
.sc-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.sc-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sc-field[hidden] { display: none; }
.sc-field input, .sc-field select, .sc-field textarea, .sc-tr-fields input, .sc-tr-fields textarea {
    width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff;
}
.sc-field textarea, .sc-tr-fields textarea { resize: vertical; line-height: 1.6; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus, .sc-tr-fields input:focus, .sc-tr-fields textarea:focus {
    outline: none; border-color: var(--brand-600); box-shadow: var(--brand-ring);
}
.sc-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-file-name { flex: 1; min-width: 120px; font-weight: 400; color: var(--ink-muted); }
.sc-tr { padding: 14px; border-radius: 8px; background: var(--brand-50); border: 1px solid var(--line); }
.sc-tr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-tr-head small { color: var(--ink-muted); }
.sc-tr-head .sc-btn { margin-left: auto; padding: 7px 14px; font-size: 13.5px; }
.sc-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
.sc-tr-fields { display: grid; gap: 8px; margin-top: 10px; }
.sc-tr-fields[hidden] { display: none; }


/* ══════════════════════════════════════════════
   자료 → 찬양 (hymns.js) - 찬양/반주/추천, 100곡 단위, 검색
   ══════════════════════════════════════════════ */
/* 찬양 화면 전체를 가운데로 (탭·검색·목록이 같은 폭)
   minmax(0, 1fr): 스페인어 탭 이름이 길어도 화면보다 넓어지지 않게 (예전엔 탭 줄 폭만큼 전체가 밀려 휴대폰에서 옆으로 삐져나왔다) */
.hy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
.hy-results { display: contents; }
.hy-more {
    justify-self: center; padding: 11px 26px; border: 1px solid var(--brand-200); border-radius: 999px; background: #fff;
    font: inherit; font-size: 15px; font-weight: 800; color: var(--brand-700); cursor: pointer;
}
.hy-more:hover { background: var(--brand-50); }
.hy-kinds { justify-self: center; display: flex; gap: 6px; padding: 5px; border-radius: 10px; background: #fff; border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.hy-kinds button {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: none; border-radius: 10px;
    background: none; font: inherit; font-size: 15px; font-weight: 800; color: var(--ink-muted); cursor: pointer; white-space: nowrap;
}
.hy-kinds button small { padding: 1px 7px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; }
.hy-kinds button.is-active { background: var(--brand-gradient); color: #fff; box-shadow: 0 4px 12px -4px rgba(31, 77, 58, 0.5); }
.hy-kinds button.is-active small { background: rgba(255, 255, 255, 0.25); color: #fff; }
.hy-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hy-search {
    flex: 1 1 280px; display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 48px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.hy-search:focus-within { border-color: var(--brand-600); box-shadow: var(--brand-ring); }
.hy-search svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.hy-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.hy-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hy-groups button {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: var(--brand-900); cursor: pointer; font-variant-numeric: tabular-nums;
}
.hy-groups button small { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
.hy-groups button:hover { background: var(--brand-50); }
.hy-groups button.is-active { border-color: transparent; background: var(--brand-900); color: #fff; }
.hy-groups button.is-active small { color: rgba(255, 255, 255, 0.75); }
.hy-groups.is-muted { opacity: 0.55; }
.hy-count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hy-count { margin: 0 2px; font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }
/* 곡 목록 - 노션 찬양집처럼: 번호. 이름 / ▸ 가사 / 넓은 오디오 바 (hymns.js) */
.hy-list { display: grid; gap: 4px; padding: 8px 26px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.hy-item { display: grid; gap: 6px; padding: 16px 0 18px; border-bottom: 1px solid #f8f5ed; }
.hy-item:last-child { border-bottom: none; }
.hy-title-line { display: flex; align-items: baseline; gap: 8px; }
.hy-num { flex-shrink: 0; min-width: 2.2em; font-size: 16px; font-weight: 800; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.hy-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.hy-admin { display: flex; gap: 2px; flex-shrink: 0; }
.hy-admin .sc-link { padding: 2px 8px; font-size: 13px; }
.hy-hit { margin-left: 2.7em; font-size: 13px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-left: 2.2em; }
.hy-toggle {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; border: none; background: none;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--brand-600); cursor: pointer;
}
.hy-toggle:hover { text-decoration: underline; }
.hy-toggle i { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 0.15s; }
.hy-toggle.is-open i { transform: rotate(90deg); }
.hy-picks { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.hy-picks button {
    padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); cursor: pointer;
}
.hy-picks button.is-on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.hy-lyrics { margin-left: 2.2em; padding: 10px 14px; border-left: 3px solid var(--brand-200); background: #fefdfb; border-radius: 0 10px 10px 0; }
.hy-lyrics-text { font-size: 16.5px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.hy-muted { margin: 0; color: var(--ink-muted); font-size: 14px; }
.hy-videos { margin-left: 2.2em; display: grid; gap: 10px; }
.hy-missing { display: block; margin: 2px 0 0 2.2em; font-size: 12.5px; color: var(--muted, #8a94a6); }
.hy-yt-label { margin-bottom: -4px; font-size: 13px; font-weight: 800; color: var(--brand-700); }
.hy-yt { position: relative; aspect-ratio: 16 / 9; max-width: 640px; border-radius: 10px; overflow: hidden; background: #000; }
.hy-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hy-audio { margin-top: 4px; }
.hy-bar { display: block; width: 100%; height: 44px; border-radius: 999px; background: #f1f3f4; }
.hy-frame { display: block; width: 100%; height: 120px; border: 0; border-radius: 8px; background: #f1f3f4; }
/* 올리기 창 */
.hy-ed-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.hy-ed-links { display: grid; gap: 8px; }
.hy-ed-link { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr) auto; gap: 8px; align-items: center; }
.hy-ed-link input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14.5px; font-weight: 400; }
.hy-ed-link input:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--brand-ring); }
#hy-ed-link-add[hidden] { display: none; }

/* 자료 → 암송: 주제마다 접기/펼치기 (section.js) */
.mem-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.mem-list { display: grid; gap: 10px; }
.mem-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.mem-item[open] { border-color: var(--brand-200); box-shadow: 0 8px 22px -14px rgba(22, 56, 41, 0.35); }
.mem-item summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; }
.mem-item summary::-webkit-details-marker { display: none; }
.mem-item[open] summary { background: var(--brand-50); border-bottom: 1px solid var(--line); }
.mem-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-gradient); color: #fff; font-size: 16px; font-weight: 900; }
.mem-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; color: var(--brand-900); overflow-wrap: anywhere; }
.hy-chevron { flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; }
.mem-item .hy-chevron { margin-left: 4px; }
.mem-item[open] .hy-chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.mem-body { padding: 16px 20px 18px; display: grid; gap: 12px; }
.mem-text { font-size: 17px; line-height: 1.95; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.mem-body .section-video { margin-bottom: 0; max-width: 720px; }
.mem-body .section-tr-note { margin-bottom: 0; }


/* ══════════════════════════════════════════════
   성경강연회 - 소개(고정 글) / 성인 탭 위 나라별 강사 (seminar-intro.js)
   ══════════════════════════════════════════════ */
.section-grid.is-static { display: block; }
.section-static-head { grid-column: 1 / -1; }
.sem-intro { display: grid; gap: 28px; max-width: 900px; margin: 0 auto; }
.sem-hero {
    padding: 34px 24px; border-radius: 10px; text-align: center; color: #fff;
    background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%), var(--brand-gradient-deep, var(--brand-gradient));
}
.sem-hero p { margin: 0; font-family: 'Gowun Batang', serif; font-size: 22px; line-height: 1.6; }
.sem-hero b { font-size: 26px; }
.sem-what, .sem-themes, .sem-speakers { padding: 26px 28px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.sem-what h2, .sem-themes h2, .sem-speakers h2 { margin: 0 0 12px; font-size: 22px; color: var(--brand-900); }
.sem-what h3 { margin: 18px 0 8px; font-size: 16px; color: var(--brand-700); }
.sem-what p, .sem-speakers p { margin: 0 0 10px; font-size: 16px; line-height: 1.85; color: var(--ink); }
.sem-topics { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 16px; line-height: 1.7; }
.sem-closing { margin-top: 16px !important; padding: 14px 16px; border-radius: 8px; background: var(--brand-50); font-weight: 700; }
.sem-themes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sem-theme { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 10px; background: #fefdfb; border: 1px solid var(--line); }
.sem-no {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-gradient); color: #fff; font-size: 19px; font-weight: 900;
}
.sem-theme h3 { margin: 6px 0 8px; font-size: 18px; color: var(--brand-900); }
.sem-theme blockquote {
    margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid var(--brand-200, #ceddce); border-radius: 0 10px 10px 0;
    background: #fff; font-family: 'Gowun Batang', serif; font-size: 15.5px; line-height: 1.75; color: var(--ink);
}
.sem-theme cite { display: block; margin-top: 4px; font-style: normal; font-family: 'Noto Sans KR', sans-serif; font-size: 13px; font-weight: 700; color: var(--brand-700); }
.sem-theme p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink); }
.sem-more { margin: 0; text-align: center; color: var(--ink-muted); font-size: 14.5px; }
/* 영상 (소개 영상 / 성인 탭 강연) */
.sem-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 10px 26px -14px rgba(22, 56, 41, 0.45); }
.sem-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 주제 사진 - 카드 위에 넓게 */
.sem-photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; background: var(--brand-50); }

/* 성인 탭: 강사 + 영상 7개 */
.sem-speakers { margin-bottom: 18px; display: grid; gap: 14px; }
.sem-speaker { display: flex; align-items: center; gap: 12px; }
.sem-flag { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11, 19, 15, 0.12); }
.sem-speaker b { display: block; font-size: 19px; color: var(--brand-900); }
.sem-speaker small { font-size: 13.5px; color: var(--ink-muted); }
.sem-video-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sem-video-list button {
    width: 100%; display: grid; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 8px;
    background: #fefdfb; font: inherit; text-align: left; cursor: pointer;
}
.sem-video-list button:hover { background: var(--brand-50); }
.sem-video-list button.is-on { border-color: var(--brand-600); background: var(--brand-50); }
.sem-video-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.sem-video-list span { font-size: 14px; font-weight: 800; color: var(--brand-900); }
/* 세계선교 > 선교현황 (mission-status.js) */
.ms { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.ms-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-totals > div { display: grid; justify-items: center; gap: 2px; padding: 22px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ms-totals b { font-size: 44px; font-weight: 900; line-height: 1.1; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ms-totals small { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.ms-totals p { grid-column: 1 / -1; margin: 0; text-align: right; font-size: 13px; color: var(--ink-muted); }
.ms-continents { padding: 22px 24px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; }
.ms-continents h2 { margin: 0 0 4px; font-size: 22px; color: var(--brand-900); }
.ms-continent { border: 1px solid var(--line); border-radius: 10px; background: #fefdfb; }
.ms-continent summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
    padding: 14px 16px; cursor: pointer; list-style: none;
}
.ms-continent summary::-webkit-details-marker { display: none; }
.ms-continent summary b { font-size: 17px; color: var(--brand-900); }
.ms-continent summary span { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.ms-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 999px; background: #eaf1ea; position: relative; overflow: hidden; }
.ms-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand-gradient); border-radius: 999px; }
.ms-continent ul { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ms-continent li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.ms-continent li b { color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ms-continent li.is-home { border-color: var(--brand-600); background: var(--brand-50); font-weight: 800; }
.ms-continent li > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ms-flag { flex-shrink: 0; width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 19, 15, 0.12); }
.ms-note { margin: -4px 16px 14px; font-size: 13px; color: var(--ink-muted); }


/* 첨부 사진 미리보기 - 글 보기(카드 위) · 관리자 글쓰기 창 */
.sc-file-preview { display: block; margin: 4px 0 8px; text-align: center; }
.sc-file-preview img { max-width: 100%; max-height: 520px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); background: var(--brand-50); }
.sc-file-preview-edit { display: block; max-width: 100%; max-height: 240px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: var(--brand-50); }
/* 메뉴 글 카드 - 보기 방식 (목록 / 작은 아이콘) */
.section-viewbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.section-viewbar[hidden] { display: none; }
.section-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.section-grid.is-list .sc-card { flex-direction: row; align-items: stretch; }
.section-grid.is-list .sc-card:hover { transform: none; }
.section-grid.is-list .sc-thumb { flex: 0 0 168px; width: 168px; aspect-ratio: auto; min-height: 94px; }
.section-grid.is-list .sc-thumb b { font-size: 18px; }
.section-grid.is-list .sc-play { width: 40px; height: 40px; }
.section-grid.is-list .sc-play::after { margin: 12px 0 0 15px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
.section-grid.is-list .sc-card-text { flex: 1; min-width: 0; justify-content: center; }
.section-grid.is-small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.section-grid.is-small .sc-card { border-radius: 8px; }
.section-grid.is-small .sc-thumb b { font-size: 16px; }
.section-grid.is-small .sc-play { width: 36px; height: 36px; }
.section-grid.is-small .sc-play::after { margin: 11px 0 0 14px; border-left-width: 12px; border-top-width: 7px; border-bottom-width: 7px; }
.section-grid.is-small .sc-card-text { padding: 8px 10px 10px; gap: 2px; }
.section-grid.is-small .sc-card-text b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-grid.is-small .sc-card-text time, .section-grid.is-small .sc-tag { font-size: 12px; }
.section-grid.is-list > :not(.sc-card), .section-grid.is-small > :not(.sc-card) { grid-column: 1 / -1; }
/* 설교 - 유튜브 자동 가져오기 (관리자, js/sermon-sync.js) */
.section-toolbar { gap: 8px; flex-wrap: wrap; }
#btn-sermon-sync { display: inline-flex; align-items: center; gap: 6px; }
#btn-sermon-sync svg { width: 20px; height: 20px; fill: none; stroke: #d62828; stroke-width: 1.8; stroke-linejoin: round; }
.ss-box { max-width: 760px; }
.ss-lead { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: var(--brand-50); font-size: 14px; line-height: 1.6; color: var(--ink); }
.ss-add { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 16px; }
.ss-add-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-add-row .sc-field { margin: 0; min-width: 150px; }
.ss-add-row .ss-grow { flex: 1; min-width: 220px; }
.ss-add .sc-btn-primary { justify-self: end; }
.ss-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ss-empty { padding: 18px; text-align: center; color: var(--ink-muted); }
.ss-item { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ss-item.is-off { opacity: 0.6; }
.ss-item-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-item-main a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--brand-700); }
.ss-kind { flex-shrink: 0; padding: 2px 9px; border-radius: 999px; background: #fdecec; color: #c62828; font-size: 12px; font-weight: 800; }
.ss-item-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ss-item-opts select, .ss-item-opts input[type="text"] { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13.5px; background: #fff; }
.ss-item-opts input[type="text"] { flex: 1; min-width: 160px; }
.ss-on { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; }
.ss-meta { font-size: 12px; color: var(--ink-muted); }
.ss-error { color: #c62828; font-weight: 700; }
.ss-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 800; color: var(--brand-700); }
.ss-live { background: #d62828; color: #fff; letter-spacing: 0.5px; }
.ss-lives-add { justify-self: start; }
.ss-lives-add small { font-weight: 500; color: var(--ink-muted); }
/* 가져오기 결과 상자 (크게 · 색) */
.ss-status { margin: 0 0 14px; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--brand-200); background: var(--brand-50); color: var(--brand-700); font-size: 14.5px; }
.ss-status[hidden] { display: none; }
.ss-status b { display: block; font-size: 15.5px; font-weight: 900; }
.ss-status ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ss-status li.is-error { color: #b42318; font-weight: 700; }
.ss-status.is-ok { border-color: #a7e3bd; background: #ecfdf3; color: #067647; }
.ss-status.is-error { border-color: #f5b5b0; background: #fef3f2; color: #b42318; }
.ss-box .sc-modal-body { display: block; }   /* 줄이 눌려 겹치지 않게 (결과 상자가 길어도) */

/* 주소 지우기 - 주소만 / 주소와 설교 모두 (그 칸 안에서 고른다) */
.ss-del { margin-top: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid #f5b5b0; background: #fef3f2; }
.ss-del p { margin: 0 0 10px; font-weight: 800; color: #b42318; }
.ss-del-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-del .sc-btn-danger { background: #d92d20; border-color: #d92d20; color: #fff; }
/* 연결된 사이트(교회학교 …)의 홈 탭: 작은 탭마다 최근 글 + 더보기 (section.js renderSiteHome) */
.section-grid.is-site-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.site-home-block { min-width: 0; }
.site-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-50, #f8f5ed); }
.site-home-head h2 { margin: 0; font-size: 19px; font-weight: 900; color: var(--brand-900, #163829); }
.site-home-head h2 small { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--ink-muted, #6b7785); }
.site-home-head a { font-size: 13.5px; font-weight: 700; color: var(--brand-600, #1f4d3a); text-decoration: none; white-space: nowrap; }
.site-home-head a:hover { text-decoration: underline; }
.site-home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.site-home-block .about-empty { margin: 0; padding: 14px 0; }
@media (max-width: 1000px) { .site-home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ── 연결된 사이트 홈 (section.js renderSiteHome / spotlightHtml) ───────── */
.section-grid[data-site] { --acc1: #1f4d3a; --acc2: #c9a227; --acc-soft: #f8f5ed; }
.section-grid[data-site="churchschool"] { --acc1: #f08c2e; --acc2: #f7c548; --acc-soft: #fff4e2; }
.section-grid[data-site="lightoflife"] { --acc1: #d9822b; --acc2: #f2b84b; --acc-soft: #fdf3e3; }
.section-grid[data-site="invitation"] { --acc1: #0f9488; --acc2: #34c5b4; --acc-soft: #e2f7f4; }
.section-grid[data-site="bibleletter"] { --acc1: #c2185b; --acc2: #f47ba3; --acc-soft: #fdeaf1; }
.section-grid.is-site-home { gap: 30px; }

@keyframes shUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sh-tiles, .sh-spot, .sh-block, .sh-empty, .sh-all-title { animation: shUp 0.5s cubic-bezier(.2, .7, .3, 1) both; }
.sh-spot { animation-delay: 0.08s; }
.sh-block:nth-of-type(2) { animation-delay: 0.14s; }
.sh-block:nth-of-type(3) { animation-delay: 0.2s; }
.sh-block:nth-of-type(n+4) { animation-delay: 0.26s; }
@media (prefers-reduced-motion: reduce) { .sh-tiles, .sh-spot, .sh-block, .sh-empty, .sh-all-title { animation: none; } }

/* 바로가기 타일 */
.sh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.sh-tile {
    position: relative; overflow: hidden; display: grid; gap: 4px; align-content: end;
    min-height: 132px; padding: 18px 18px 16px; border-radius: 10px; color: #fff; text-decoration: none;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45); transition: transform 0.2s, box-shadow 0.2s;
}
.sh-tile::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.sh-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5); }
.sh-tile-ico { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: rgba(255, 255, 255, 0.22); }
.sh-tile-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-tile b { font-size: 18px; font-weight: 900; }
.sh-tile small { font-size: 12.5px; opacity: 0.9; }
.sh-tile i { position: absolute; right: 16px; bottom: 12px; font-style: normal; font-size: 26px; opacity: 0.8; transition: transform 0.2s; }
.sh-tile:hover i { transform: translateX(4px); }
.sh-t1 { background: linear-gradient(135deg, var(--acc1), var(--acc2)); }
.sh-t2 { background: linear-gradient(135deg, #1f4d3a, #c9a227); }
.sh-t3 { background: linear-gradient(135deg, #be7483, #cfa9b1); }
.sh-t4 { background: linear-gradient(135deg, #1f9d6b, #7fd1a5); }

/* 가장 최근 글 크게 + 최근 글 */
.sh-spot { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 18px; }
.sh-spot.is-single { grid-template-columns: minmax(0, 1fr); }
.sh-feature {
    position: relative; display: flex; align-items: flex-end; min-height: 320px; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: 10px; color: #fff; text-decoration: none; background: center / cover no-repeat;
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55); transition: transform 0.25s, box-shadow 0.25s;
}
.sh-spot.is-single .sh-feature { aspect-ratio: 21 / 9; }
.sh-feature.is-text { background-image: linear-gradient(135deg, var(--acc1), var(--acc2)); }
.sh-feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72)); transition: opacity 0.25s; }
.sh-feature.is-text::before { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 45%); }
.sh-feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); }
.sh-feature .sc-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(1.25); background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(4px); transition: transform 0.25s; }
.sh-feature:hover .sc-play { transform: translate(-50%, -50%) scale(1.4); }
.sh-feature-text { position: relative; display: grid; gap: 6px; padding: 22px 24px; }
.sh-feature-text b { font-size: clamp(19px, 2.2vw, 28px); font-weight: 900; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.sh-feature-text time { font-size: 13px; opacity: 0.88; }
.sh-badge { justify-self: start; padding: 3px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--acc1), var(--acc2)); font-size: 12px; font-weight: 800; letter-spacing: 0.3px; }
.sh-feature.is-text .sh-badge { background: rgba(255, 255, 255, 0.25); }
.sh-recent { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.12); }
.sh-recent h3 { margin: 0 0 6px; font-size: 16px; font-weight: 900; color: var(--brand-900); }
.sh-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; transition: background 0.15s; }
.sh-row:hover { background: var(--acc-soft); }
.sh-row .sc-thumb { flex: 0 0 104px; width: 104px; border-radius: 9px; overflow: hidden; }
.sh-row .sc-thumb b { font-size: 14px; }
.sh-row .sc-play { width: 28px; height: 28px; }
.sh-row .sc-play::after { margin: 8px 0 0 11px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.sh-row > span:last-child { display: grid; gap: 3px; min-width: 0; }
.sh-row b { font-size: 14px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-row small { font-size: 12px; color: var(--ink-muted); }

/* 탭마다 옆으로 넘기는 줄 */
.sh-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sh-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--acc-soft); }
.sh-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--acc1); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh-block-head h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 900; color: var(--brand-900); }
.sh-block-head h2 small { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc1); font-size: 12.5px; font-weight: 800; vertical-align: middle; }
.sh-block-head a { font-size: 13.5px; font-weight: 800; color: var(--acc1); text-decoration: none; white-space: nowrap; }
.sh-block-head a:hover { text-decoration: underline; }
.sh-rail-wrap { position: relative; }
.sh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: max(220px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.sh-rail::-webkit-scrollbar { display: none; }
.sh-rail > .sc-card { scroll-snap-align: start; }
.sh-arrow {
    position: absolute; top: calc(50% - 30px); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; background: #fff; color: var(--brand-900); font-size: 24px; line-height: 1; cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35); transition: opacity 0.2s, transform 0.2s;
}
.sh-arrow:hover { transform: scale(1.08); }
.sh-arrow.is-prev { left: -14px; }
.sh-arrow.is-next { right: -14px; }
.sh-arrow:disabled { opacity: 0; pointer-events: none; }
.sh-rail-wrap.is-static .sh-arrow { display: none; }

/* 글이 없을 때 */
.sh-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border-radius: 10px; text-align: center; background: linear-gradient(135deg, var(--acc-soft), #fff); border: 1px dashed var(--acc1); }
.sh-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg, var(--acc1), var(--acc2)); box-shadow: 0 10px 22px -12px var(--acc1); }
.sh-empty-ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-empty h2 { margin: 6px 0 0; font-size: 20px; font-weight: 900; color: var(--brand-900); }
.sh-empty p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.sh-all-title { margin: 30px 0 0; font-size: 20px; font-weight: 900; color: var(--brand-900); }
.section-static-head .sh-spot + .sh-all-title { margin-top: 30px; }

@media (max-width: 900px) {
    .sh-spot { grid-template-columns: minmax(0, 1fr); }
    .sh-feature, .sh-spot.is-single .sh-feature { min-height: 220px; aspect-ratio: 16 / 10; }
    .sh-rail { grid-auto-columns: 72%; }
    .sh-arrow { display: none; }
}

/* 홈 탭의 큰 대표 글이 PDF 일 때: 첫 쪽 그림 위에 글자 (shared/pdf-preview.js 의 .pdfp-cover) */
.sh-feature.is-pdf { background: #fff; }
.sh-feature .pdfp-cover { z-index: 0; }
.sh-feature.is-pdf::before { z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7)); }
.sh-feature .sh-feature-text, .sh-feature .sc-play { z-index: 2; }
.section-grid .sh-feature.is-pdf::after { z-index: 2; left: auto; right: 14px; top: 14px; bottom: auto; }   /* pdf-preview.js 의 "PDF" 표시를 오른쪽 위로 (더 강한 선택자) */

/* 찬양 태그 (hymns.js - 60번 SQL hymns.tags) */
.hy-tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.hy-tagbar button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid #efdde1; border-radius: 999px; background: #fdf8f9; color: #995663; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hy-tagbar button small { font-size: 12px; font-weight: 800; opacity: .7; }
.hy-tagbar button:hover { background: #f9eef0; }
.hy-tagbar button.is-active { background: linear-gradient(135deg, #be7483, #d59ea9); border-color: transparent; color: #fff; }
.hy-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.hy-tag { padding: 1px 9px; border: 0; border-radius: 999px; background: #f9eef0; color: #995663; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.hy-tag:hover { background: #f4dee2; }
.hy-tag.is-on { background: #be7483; color: #fff; }
.hy-ed-tagpick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.hy-ed-tagpick:empty { display: none; }

/* 세계선교 > 선교현황 다시 정렬 (2026-10-24): 국기 크게(48×32), 나라마다 같은 크기 카드 = 국기 | 나라 이름 | 교회 수 */
.ms-continents { gap: 12px; }
.ms-continent { background: #fff; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.ms-continent[open] { border-color: var(--brand-200); box-shadow: 0 8px 22px -14px rgba(22, 56, 41, .35); }
.ms-continent summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; column-gap: 12px; row-gap: 10px; padding: 16px 18px; cursor: pointer; list-style: none; }
.ms-cont-name { font-size: 18px; font-weight: 900; color: var(--brand-900); }
.ms-cont-line { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.ms-chev { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); position: relative; transition: transform .2s; }
.ms-chev::after { content: ''; position: absolute; left: 8px; top: 7px; width: 7px; height: 7px; border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600); transform: rotate(45deg); }
.ms-continent[open] .ms-chev { transform: rotate(180deg); }
.ms-continent .ms-bar { grid-column: 1 / -1; height: 7px; }
.ms-continent .ms-countries { list-style: none; margin: 0; padding: 4px 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ms-continent li.ms-country {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    min-height: 60px; padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 15px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ms-continent li.ms-country:hover { transform: translateY(-2px); border-color: var(--brand-200); box-shadow: 0 8px 18px -12px rgba(22, 56, 41, .35); }
.ms-continent li.ms-country.is-home { border: 2px solid var(--brand-600); background: var(--brand-50); }
.ms-flag { display: block; width: 48px; height: 32px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(11, 19, 15, .12), 0 3px 8px -4px rgba(11, 19, 15, .35); background: #f8f5ed; }
.ms-flag-none { display: grid; place-items: center; font-size: 20px; }
.ms-name { min-width: 0; font-weight: 700; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ms-country.is-home .ms-name { font-weight: 900; color: var(--brand-900); }
.ms-count { display: grid; justify-items: end; line-height: 1.1; }
.ms-count b { font-size: 20px; font-weight: 900; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ms-count small { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.ms-note { margin: -6px 18px 16px; }
/* 나라 이름은 한 줄로 (긴 이름은 mission-status.js 가 줄임말 · 글자 크기 줄이기로 맞추고, 그래도 넘치면 …) */
.ms-continent li.ms-country .ms-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; overflow-wrap: normal; word-break: normal; }
/* 교회 수: 숫자 위 · "교회" 아래 (예전 .ms-continent li > span 규칙이 한 줄로 만들던 것을 덮음) - 이름 칸이 넓어진다 */
.ms-continent li.ms-country > .ms-count { display: grid; justify-items: end; gap: 0; }

/* ── 자료 여러 개 (찬양 문서 등 - 96번 SQL attachments, section.js) ── */
.se-att .se-att-hint { display: block; margin: -2px 0 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-muted, #667085); }
.se-att-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.se-att-list:empty { display: none; }
.se-att-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #e2eae2; border-radius: 8px; background: #fbf9f3; }
.se-att-pic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid #e7eee7; overflow: hidden; font-size: 22px; }
.se-att-pic img { width: 100%; height: 100%; object-fit: cover; }
.se-att-main { display: grid; gap: 2px; min-width: 0; }
.se-att-main input { min-height: 34px; padding: 5px 9px; border: 1px solid #d5e1d5; border-radius: 8px; font: inherit; font-size: 14px; }
.se-att-main small { font-size: 12px; color: #667085; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-att-btns { display: inline-flex; gap: 2px; }
.se-att-btns .sc-link { min-width: 30px; font-size: 15px; }
.se-att-btns .sc-link:disabled { opacity: .3; }
.se-att-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.se-att-linkrow input { min-height: 40px; padding: 7px 10px; border: 1px solid #d5e1d5; border-radius: 10px; font: inherit; font-size: 14.5px; }
.se-att-linkrow #se-att-url { flex: 2 1 240px; }
.se-att-linkrow #se-att-name { flex: 1 1 140px; }
.section-view-att { display: grid; gap: 14px; margin-top: 18px; }
.section-view-att[hidden] { display: none; }
.sc-att { margin: 0; }
.sc-att-image img, .sc-att-drive img { display: block; width: 100%; max-height: 92vh; object-fit: contain; border-radius: 8px; border: 1px solid #e7eee7; background: #fff; }
.sc-att figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 700; color: #344054; }
.sc-att-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e2eae2; border-radius: 8px; background: #fbf9f3; color: inherit; text-decoration: none; }
.sc-att-link:hover { border-color: var(--brand-400, #4baf82); }
.sc-att-link > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.sc-att-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-att-link small { font-size: 12.5px; color: #667085; }
.sc-att-link i { font-style: normal; font-weight: 900; color: var(--brand-600, #1f4d3a); }
