/* 청소년사역자협의회 — 디자인 「신호」: 코발트(로고 파랑에서 이어 옴) + 레몬(청소년의 힘) · 글자 20px · 바닥 18px */
:root {
  --cobalt: #2340D9;      /* 흰 글자 대비 7.48 */
  --cobalt-deep: #1D36C2;
  --ink: #0D1747;         /* 종이 위 대비 15.79 */
  --paper: #F4F6FC;
  --white: #FFFFFF;
  --lemon: #FFD43B;       /* 먹 글자 대비 11.97 · 글자색으로는 쓰지 않음 */
  --muted: #4A4F6B;       /* 종이 위 대비 7.41 */
  --line: #DCE0EE;
  --gutter: 56px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { font-size: 20px; }
body { margin: 0; font: 500 1rem/1.7 "Wanted Sans Variable", "Wanted Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--ink); background: var(--paper); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--cobalt); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 4px solid var(--lemon); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--lemon); color: var(--ink); padding: 12px 18px; font-weight: 700; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2.6rem; font-weight: 850; }
h2 { font-size: 1.5rem; font-weight: 800; }
p { margin: 0 0 1em; }

/* 머리 */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand img { width: 72px; height: 66px; object-fit: cover; object-position: center 28%; }
.brand-short { display: none; }
.pc-nav { display: flex; gap: 6px; }
.pc-nav a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.1rem; padding: 8px 14px; border-bottom: 4px solid transparent; }
.pc-nav a:hover { border-bottom-color: var(--line); }
.pc-nav a[aria-current="page"] { border-bottom-color: var(--lemon); }
.m-menu { display: none; }

main { display: block; max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 80px; }
main.wide { max-width: none; padding: 0 0 80px; }

/* 단추 */
.btn { display: inline-block; padding: 15px 26px; border-radius: 6px; font-weight: 750; text-decoration: none; line-height: 1.4; }
.btn-lemon { background: var(--lemon); color: var(--ink); }
.btn-line { border: 2px solid var(--white); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-lemon:hover { background: #FFDF6B; }
.btn-ink:hover { background: var(--cobalt); }

/* 대문 */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--cobalt); color: var(--white); overflow: hidden; min-height: 600px; }
.hero-copy { position: relative; z-index: 2; padding: 84px 32px 96px var(--gutter); max-width: 720px; }
.hero-since { font-weight: 650; margin-bottom: 18px; }
.hero h1 { font-size: 3.8rem; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 26px; }
.hero-lead { font-size: 1.05rem; max-width: 30em; margin-bottom: 34px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { position: absolute; top: 56px; bottom: 76px; left: 0; right: var(--gutter); width: calc(100% - var(--gutter)); height: calc(100% - 132px); object-fit: cover; border-radius: 4px; }
.hero-stripe { position: absolute; left: -10%; right: -10%; bottom: 34px; height: 30px; background: var(--lemon); transform: rotate(-6deg); z-index: 1; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-top: 6px solid var(--lemon); border-bottom: 1px solid var(--line); }
.doors a { padding: 30px var(--gutter); color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.doors a:last-child { border-right: 0; }
.doors a:hover b { text-decoration: underline; text-decoration-color: var(--lemon); text-decoration-thickness: 4px; }
.doors b { display: block; font-size: 1.3rem; font-weight: 850; }
.doors span { color: var(--muted); }
.block { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.block-head a { font-weight: 700; }
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-cards a { display: block; color: var(--ink); text-decoration: none; }
.news-cards img, .news-cards .no-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--white); border-radius: 4px; margin-bottom: 12px; }
.news-cards .nc-title { display: block; font-weight: 750; line-height: 1.45; }
.news-cards a:hover .nc-title { text-decoration: underline; }
.news-cards .nc-date, .nr-date, .post-date { display: block; color: var(--muted); font-size: 1rem; margin-top: 4px; }
.about-teaser { padding-bottom: 8px; }
.about-teaser h2 { margin-bottom: 14px; }
.about-teaser p { max-width: 40em; font-size: 1.05rem; }

.no-img { background: var(--white) url(/img/logo.webp) center / 46% no-repeat !important; border: 1px solid var(--line); }

/* 속 쪽 공통 */
.page-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 6px solid var(--lemon); }
.page-head h1 { margin-bottom: 12px; }
.page-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.prose { max-width: 40em; margin-bottom: 48px; }
.prose h2 { margin-bottom: 16px; }
.presidents, .timeline { list-style: none; margin: 0; padding: 0; }
.presidents li { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.presidents b { font-weight: 800; }
.presidents span { color: var(--muted); }
.timeline li { display: grid; grid-template-columns: 11em 1fr; gap: 4px 20px; padding: 14px 0 14px 22px; border-left: 4px solid var(--cobalt); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--lemon); border: 2px solid var(--ink); }
.tl-date { font-weight: 750; }
.tl-note { grid-column: 2; color: var(--muted); }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.people li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.people b { display: block; font-weight: 800; }
.people span { color: var(--muted); }

.orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.orgs li { background: var(--white); border-left: 6px solid var(--cobalt); padding: 22px 26px; }
.orgs h2 { font-size: 1.15rem; margin-bottom: 8px; }
.orgs p { color: var(--muted); margin: 0 0 6px; }

.sheets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sheets img { display: block; width: 100%; background: var(--white); }

.news-rows { list-style: none; margin: 0; padding: 0; }
.news-rows a { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-rows img, .news-rows .no-img { display: block; width: 160px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--white); border-radius: 4px; }
.nr-title { display: block; font-weight: 750; font-size: 1.05rem; }
.news-rows a:hover .nr-title { text-decoration: underline; }

.post { max-width: 900px; }
.post-img { margin: 0 0 24px; }
.post-img img { display: block; width: 100%; background: var(--white); }
.post-links { padding-left: 1.2em; margin-bottom: 24px; }
.post-source { color: var(--muted); font-size: 1rem; margin-top: 32px; }

.contact { display: grid; grid-template-columns: minmax(0, 40em); gap: 24px; }
.contact-card { background: var(--white); padding: 30px 32px; border-top: 6px solid var(--cobalt); }
.contact-card h2 { margin-bottom: 12px; }
.hint { color: var(--muted); }

/* 로그인·주소록 */
.form { display: grid; gap: 8px; max-width: 28em; margin-bottom: 28px; }
.form label { font-weight: 750; margin-top: 10px; }
.form input { font: inherit; padding: 12px 14px; border: 2px solid var(--muted); border-radius: 6px; background: var(--white); color: var(--ink); min-height: 52px; }
.form button { margin-top: 18px; border: 0; cursor: pointer; font: inherit; font-weight: 750; justify-self: start; }
.notice { background: var(--white); border-left: 6px solid var(--lemon); padding: 14px 18px; font-weight: 700; max-width: 40em; }
.btn-line-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-weight: 750; }
.directory a { display: block; }

/* 바닥 */
.site-foot { background: var(--ink); color: var(--white); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; }
.foot-in p { margin: 0 0 8px; }
.foot-name { font-weight: 850; font-size: 1.1rem; }
.site-foot a { color: var(--white); }

/* ── 폰(832 미만) — 넓은 화면을 줄인 것이 아니라 따로 정한 배치 ──
   순서: 머리(로고·메뉴) → 대문 글·단추(엄지 닿는 크기 · 한 줄 하나) → 사진 → 바로 가기 목록 → 최근 소식 줄 → 소개 */
@media (max-width: 831px) {
  :root { --gutter: 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.3rem; }
  .site-head { padding: 10px 16px; position: sticky; top: 0; z-index: 5; }
  .brand { font-size: 1.3rem; gap: 10px; white-space: nowrap; }
  .brand img { width: 60px; height: 55px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .pc-nav { display: none; }
  .m-menu { display: block; }
  .m-menu summary { list-style: none; cursor: pointer; font-weight: 750; font-size: 1.1rem; background: var(--ink); color: var(--white); padding: 10px 20px; border-radius: 6px; min-height: 52px; display: flex; align-items: center; }
  .m-menu summary::-webkit-details-marker { display: none; }
  .m-menu[open] summary { background: var(--cobalt); }
  .m-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 6px solid var(--lemon); box-shadow: 0 12px 24px rgba(13, 23, 71, .18); }
  .m-menu nav a { display: block; padding: 16px; min-height: 56px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 750; font-size: 1.1rem; text-decoration: none; }
  .m-menu nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 6px 0 0 var(--lemon); }
  main { padding: 28px 16px 56px; }

  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 30px 16px 0; }
  .hero-since { font-size: 1rem; margin-bottom: 10px; }
  .hero h1 { font-size: 2.05rem; line-height: 1.15; margin-bottom: 14px; }
  .pc-br { display: none; }
  .hero-lead { font-size: 1rem; margin-bottom: 22px; }
  .hero-btns { display: grid; gap: 10px; }
  .hero-btns .btn { text-align: center; padding: 15px; }
  .hero-photo { margin-top: 26px; height: 220px; overflow: hidden; }
  .hero-photo img { position: static; width: 100%; height: 100%; border-radius: 0; }
  .hero-stripe { left: -5%; right: -5%; bottom: auto; top: auto; height: 18px; transform: rotate(-3deg); position: relative; margin: -14px 0 0; }
  .doors { display: block; border-top-width: 0; }
  .doors a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); min-height: 64px; }
  .doors b { font-size: 1.1rem; }
  .doors span { font-size: 1rem; text-align: right; }
  .block { padding: 40px 16px 0; }
  .block-head { margin-bottom: 8px; }
  .news-cards { display: block; }
  .news-cards li { border-bottom: 1px solid var(--line); }
  .news-cards a { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 14px 0; }
  .news-cards a { gap: 2px 14px; }
  .news-cards img, .news-cards .no-img { width: 88px; margin: 0; grid-row: 1 / 3; }
  .news-cards .nc-title { grid-column: 2; align-self: end; }
  .news-cards .nc-date { grid-column: 2; align-self: start; margin-top: 0; }

  .page-head { margin-bottom: 24px; padding-bottom: 18px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 18px; }
  .tl-note { grid-column: 1; }
  .people { display: block; }
  .orgs { display: block; }
  .orgs li { margin-bottom: 12px; padding: 18px; }
  .sheets { display: block; }
  .sheets a { display: block; margin-bottom: 16px; }
  .news-rows a { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px 0; }
  .news-rows img, .news-rows .no-img { width: 88px; }
  .contact { display: block; }
  .contact-card { margin-bottom: 16px; padding: 22px 18px; }
  .contact-card .btn { display: block; text-align: center; }
  .form { max-width: none; }
  .form button { justify-self: stretch; text-align: center; }
  .foot-in { padding: 32px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
