/* =====================================================================
 * 제40회 첨단구조재료 심포지엄 - 스타일시트
 * 모바일 우선(mobile-first) 반응형 디자인
 * ===================================================================== */

:root {
  --navy:        #0b2c62;   /* KIM 딥 블루 */
  --navy-2:      #123a7a;
  --navy-soft:   #1a56a8;
  --blue:        #1a56a8;
  --gold:        #c9a227;   /* KIM 골드 */
  --gold-soft:   #dcc06a;
  --ink:         #1c2430;
  --ink-soft:    #55606e;
  --line:        #e4e7ec;
  --bg:          #f4f6f9;
  --card:        #ffffff;
  --shadow:      0 2px 12px rgba(16, 33, 58, .07);
  --shadow-lg:   0 10px 40px rgba(16, 33, 58, .16);
  --radius:      14px;
  --maxw:        1160px;
  --util-h:      34px;
  --header-h:    62px;
  --top:         96px;      /* 유틸바 + 헤더 총 높이 (데스크톱) */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px; /* 모바일 하단 탭바 공간 */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------------- 상단 헤더 (KIM 스타일: 화이트 헤더) ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(11,44,98,.10);
  border-bottom: 1px solid var(--line);
}
/* 상단 유틸리티 바 */
.util-bar { background: var(--navy); color: #cfdbef; height: var(--util-h); font-size: .8rem; }
.util-bar .wrap { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.util-bar a { color: #cfdbef; padding: 0 10px; height: 100%; display: inline-flex; align-items: center; transition: color .15s; }
.util-bar a:hover { color: #fff; }
.util-bar a.strong { color: #fff; font-weight: 600; }
.util-bar .divider { width: 1px; height: 12px; background: rgba(255,255,255,.22); }

/* 메인 헤더 행 */
.header-main { height: var(--header-h); display: flex; align-items: center; }
.header-main .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.3px; padding-left: 12px; position: relative; }
.brand::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:4px; border-radius:3px; background: linear-gradient(180deg, var(--gold), var(--navy)); }
.brand .ed { color: var(--gold); font-size: .82rem; font-weight: 700; }
.brand .tt { font-size: 1.04rem; color: var(--navy); line-height: 1.1; }
.brand .tt small { display:block; font-size:.58rem; font-weight:500; color:#9aa6b4; letter-spacing:.5px; margin-top:2px; }
.nav-desktop { display: none; gap: 30px; font-size: .96rem; font-weight: 600; }
.nav-desktop a { color: #33404f; padding: 6px 0; transition: color .15s; position: relative; }
.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a.active { color: var(--navy); }
.nav-desktop a.active::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:3px; background:var(--gold); border-radius:2px; }

/* ---------------- 히어로 ---------------- */
.hero {
  margin-top: var(--top);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,162,39,.30), transparent 60%),
    linear-gradient(160deg, #08234f 0%, #0b2c62 55%, #1a56a8 100%);
  color: #fff;
  text-align: center;
  padding: 54px 18px 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
}
.hero .kicker {
  display:inline-block; font-size:.8rem; letter-spacing:3px; color: var(--gold-soft);
  border:1px solid rgba(217,185,106,.5); border-radius:30px; padding:5px 16px; margin-bottom:20px;
}
.hero h1 { font-size: 2rem; line-height:1.25; margin: 0 0 6px; font-weight: 800; letter-spacing:-.5px; text-shadow: 0 2px 22px rgba(4,14,30,.45); }
.hero .meta, .hero .kicker { text-shadow: 0 1px 14px rgba(4,14,30,.4); }
.hero h1 .ed { display:block; font-size: 1.05rem; font-weight:600; color: var(--gold-soft); margin-bottom:8px; letter-spacing:1px; }
.hero .meta { margin: 18px 0 26px; font-size: 1rem; color:#d7e2f0; }
.hero .meta div { margin: 4px 0; }
.hero .meta strong { color:#fff; font-weight:600; }
.hero .meta .mlabel {
  display:inline-block; min-width:42px; margin-right:8px; padding:1px 0;
  color: var(--gold-soft); font-size:.8rem; font-weight:700; letter-spacing:1px;
  border-bottom:1px solid rgba(220,192,106,.4);
}
.hero .meta .msub { margin-top:10px; font-size:.9rem; color:#aec4de; }
.hero .cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:.98rem;
  padding: 13px 24px; border-radius: 40px; border:1.5px solid transparent; cursor:pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#2a1e05; box-shadow: 0 6px 18px rgba(193,154,62,.4); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(193,154,62,.55); }
.btn-ghost { border-color: rgba(255,255,255,.5); color:#fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------------- 서브페이지 상단 배너 ---------------- */
.page-hero {
  margin-top: var(--top);
  background:
    radial-gradient(900px 380px at 82% -20%, rgba(201,162,39,.28), transparent 60%),
    linear-gradient(160deg, #08234f 0%, #0b2c62 60%, #1a56a8 100%);
  color: #fff; text-align: center; padding: 40px 18px 42px; position: relative; overflow: hidden;
}
.page-hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold)); }
.page-hero .eyebrow { color: var(--gold-soft); font-weight:700; letter-spacing:2px; font-size:.78rem; text-transform:uppercase; }
.page-hero h1 { font-size: 1.7rem; margin:.4rem 0 0; font-weight:800; letter-spacing:-.5px; }
.page-hero p { margin:.6rem 0 0; color:#cdd9e8; font-size:.95rem; }

.page-main { padding: 38px 0 48px; }

/* ---------------- 홈 메뉴(바로가기) ---------------- */
.home-cards { display:grid; grid-template-columns: 1fr; gap:12px; margin-top: 4px; }
.home-card {
  display:flex; align-items:center; gap:16px; background:var(--card); border:1px solid var(--line);
  border-left:4px solid var(--navy);
  border-radius:12px; padding:18px 20px; box-shadow:var(--shadow); transition: transform .12s, box-shadow .15s, border-color .15s; color:var(--ink);
}
.home-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-left-color: var(--gold); }
.home-card.gold { border-left-color: var(--gold); }
.home-card .hc-no {
  flex:0 0 auto; font-weight:800; font-size:1.15rem; color:var(--gold); font-style:italic;
  letter-spacing:-.5px; min-width:26px;
}
.home-card .hc-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.home-card .hc-t { font-weight:700; color:var(--navy); font-size:1.06rem; line-height:1.35; }
.home-card .hc-d { font-size:.87rem; color:var(--ink-soft); margin-top:4px; }
.home-card .hc-go { flex:0 0 auto; color:var(--gold); font-size:1.4rem; opacity:.55; }
.home-card:hover .hc-go { opacity:1; }

/* ---------------- 홈 · 구조재료 연구분야 갤러리 ---------------- */
.fields { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; margin-top:6px; }
.field-card {
  background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow); transition: transform .12s, box-shadow .15s;
}
.field-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.field-card .fc-img { display:block; width:100%; height:118px; object-fit:cover; background:#0b2c62; }
.field-card .fc-body { padding:13px 14px 15px; }
.field-card .fc-t { font-weight:700; color:var(--navy); font-size:1rem; }
.field-card .fc-d { font-size:.82rem; color:var(--ink-soft); margin-top:3px; line-height:1.5; }

/* 히어로 배경 애니메이션(원자/결정격자 네트워크) */
.hero-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; z-index:0; pointer-events:none; }
.hero .wrap { position:relative; z-index:1; }

/* ---------------- 섹션 공통 ---------------- */
.section { padding: 46px 0; scroll-margin-top: var(--header-h); }
.section.alt { background: #fff; }
.section-head { text-align:center; margin-bottom: 30px; }
.section-head .eyebrow { color: var(--gold); font-weight:700; letter-spacing:2px; font-size:.8rem; text-transform:uppercase; }
.section-head h2 { font-size: 1.5rem; margin:.35rem 0 0; color: var(--navy); font-weight:800; letter-spacing:-.5px; }
.section-head .bar { width:44px; height:3px; background:var(--gold); border-radius:2px; margin:14px auto 0; }

/* ---------------- 초대의 글 ---------------- */
.invite {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 22px; border:1px solid var(--line);
}
.invite p { margin: 0 0 15px; color:#3a4553; }
.invite .sign { margin-top: 24px; text-align:right; color: var(--ink-soft); font-size:.95rem; }
.invite .sign strong { display:block; color: var(--navy); font-size:1.05rem; margin-top:4px; }

.facts { display:grid; grid-template-columns: 1fr; gap:10px; margin-top:22px; }
.fact { display:flex; gap:12px; align-items:flex-start; background:#f8fafc; border:1px solid var(--line); border-radius:10px; padding:13px 15px; }
.fact .k { flex: 0 0 84px; color: var(--gold); font-weight:700; font-size:.9rem; }
.fact .v { color: var(--ink); font-size:.95rem; }

/* ---------------- 프로그램 ---------------- */
.prog-controls { position: sticky; top: var(--top); z-index: 20; background: var(--bg); padding: 12px 0 10px; }
.section.alt .prog-controls { background:#fff; }

.day-tabs { display:flex; gap:8px; justify-content:center; margin-bottom:12px; }
.day-tab {
  flex:1; max-width:200px; text-align:center; padding: 10px 8px; border-radius:12px; cursor:pointer;
  background:#fff; border:1.5px solid var(--line); font-weight:600; color:var(--ink-soft);
  transition: all .15s; line-height:1.3;
}
.day-tab small { display:block; font-size:.72rem; font-weight:500; opacity:.8; }
.day-tab.active { background: var(--navy); color:#fff; border-color: var(--navy); box-shadow: var(--shadow); }
.day-tab.active small { color: var(--gold-soft); }

.hall-pills { display:flex; gap:7px; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
.hall-pill {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 30px; cursor:pointer; white-space:nowrap;
  background:#fff; border:1.5px solid var(--line); font-weight:600; font-size:.9rem; color:var(--ink-soft);
  transition: all .15s;
}
.hall-pill.active { background: var(--gold); color:#241a03; border-color: var(--gold); }
.hall-pill .rm { font-weight:400; font-size:.8rem; opacity:.75; margin-left:4px; }

.search-box { position:relative; margin-top:10px; }
.search-box input {
  width:100%; padding: 12px 40px 12px 16px; border-radius:30px; border:1.5px solid var(--line);
  font-size:.95rem; font-family:inherit; background:#fff; color:var(--ink);
}
.search-box input:focus { outline:none; border-color: var(--navy-soft); box-shadow:0 0 0 3px rgba(27,74,126,.12); }
.search-box .ico { position:absolute; right:15px; top:50%; transform:translateY(-50%); color:var(--ink-soft); }

.hall-header {
  display:flex; align-items:center; gap:10px; margin: 18px 0 6px;
  color: var(--navy); font-weight:800; font-size:1.12rem;
}
.hall-header .room { font-size:.82rem; font-weight:500; color:var(--ink-soft); background:#eef2f7; padding:3px 10px; border-radius:20px; }

/* 타임라인 */
.timeline { position: relative; }
.block { background:var(--card); border:1px solid var(--line); border-radius:12px; margin-bottom:12px; overflow:hidden; box-shadow: var(--shadow); }
.block-time {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 11px 15px; background:#f3f6fa; border-bottom:1px solid var(--line);
}
.block-time .t { font-weight:800; color:var(--navy); font-size:.98rem; letter-spacing:.3px; }
.block-time .chair { font-size:.82rem; color:var(--ink-soft); }
.block-time .chair b { color: var(--gold); font-weight:700; }

.block.break .block-time, .block.event .block-time { border-bottom:none; }
.block.break { background:#fbfbfd; }
.block.break .block-time .t, .block.event .block-time .t { color:var(--ink-soft); }
.block .badge { font-size:.8rem; font-weight:700; padding:3px 12px; border-radius:20px; }
.block.break .badge { background:#eceff3; color:var(--ink-soft); }
.block.event .badge { background: linear-gradient(180deg,var(--gold-soft),var(--gold)); color:#2a1e05; }
.block .event-note { font-size:.82rem; color:var(--ink-soft); padding:0 15px 12px; }

.talks { list-style:none; margin:0; padding:6px; }
.talk {
  display:flex; gap:11px; padding: 11px 10px; border-radius:9px; cursor:pointer;
  transition: background .13s; align-items:flex-start;
}
.talk:hover { background:#f4f7fb; }
.talk .num {
  flex:0 0 24px; height:24px; margin-top:1px; border-radius:7px; background:var(--navy); color:#fff;
  font-size:.78rem; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.talk .body { flex:1; min-width:0; display:flex; flex-direction:column; }
.talk .ti { display:block; font-weight:600; color:var(--ink); font-size:.96rem; line-height:1.45; }
.talk .au { display:block; font-size:.83rem; color:var(--ink-soft); margin-top:3px; line-height:1.6; }
.talk .go { flex:0 0 auto; color:var(--gold); align-self:center; opacity:.5; transition:opacity .13s; }
.talk:hover .go { opacity:1; }

.empty { text-align:center; color:var(--ink-soft); padding:40px 10px; }

/* 검색 결과 강조 */
mark { background: #fff1c2; color: inherit; padding:0 1px; border-radius:2px; }

/* ---------------- 등록안내 ---------------- */
.reg-grid { display:grid; grid-template-columns:1fr; gap:18px; }
.fee-table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }
.fee-table th, .fee-table td { padding: 13px 12px; text-align:center; border-bottom:1px solid var(--line); font-size:.95rem; }
.fee-table thead th { background:var(--navy); color:#fff; font-weight:600; }
.fee-table tbody th { background:#f3f6fa; color:var(--navy); font-weight:700; }
.fee-table td { color:var(--ink); }
.fee-table tr:last-child td, .fee-table tr:last-child th { border-bottom:none; }
.reg-note { font-size:.86rem; color:var(--ink-soft); background:#fff8e8; border:1px solid #f0e2be; border-radius:10px; padding:12px 14px; }
.reg-cta { text-align:center; }
.reg-cta .btn { width:100%; justify-content:center; }
.reg-cta .sub { font-size:.83rem; color:var(--ink-soft); margin-top:10px; }

/* ---------------- 후원사 ---------------- */
.sponsors { display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
.sponsor {
  background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 12px; text-align:center;
  font-weight:600; color:var(--navy); font-size:.9rem; box-shadow:var(--shadow);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:76px;
}
a.sponsor {
  transition: transform .12s, box-shadow .15s, border-color .15s;
  border-bottom:3px solid transparent;
}
a.sponsor:hover, a.sponsor:focus-visible {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
  border-color:#d3ddea; border-bottom-color: var(--gold); outline:none;
}
.sponsor .sp-n { line-height:1.4; }
.sponsor .sp-u {
  font-size:.72rem; font-weight:500; color:#93a0b0; letter-spacing:.2px;
  word-break:break-all; transition:color .15s;
}
a.sponsor:hover .sp-u { color: var(--navy-soft); }
.sponsor .sp-x { color: var(--gold); font-weight:700; }

/* ---------------- 오시는 길 ---------------- */
.loc-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.loc-map { width:100%; border:0; display:block; height:300px; background:#eef2f7; }
.loc-body { padding: 20px 20px 22px; }
.loc-body h3 { margin:0 0 12px; color:var(--navy); font-size:1.15rem; }
.loc-item { display:flex; gap:11px; padding:9px 0; border-bottom:1px dashed var(--line); align-items:flex-start; }
.loc-item:last-child { border-bottom:none; }
.loc-item .lk { flex:0 0 58px; color:var(--gold); font-weight:700; font-size:.9rem; }
.loc-item .lv { flex:1; color:var(--ink); font-size:.94rem; }
.loc-item .lv .path { color:var(--ink-soft); font-size:.85rem; }

/* ---------------- 하단 모바일 탭바 ---------------- */
.tabbar {
  position: fixed; bottom:0; left:0; right:0; z-index:40; height:64px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top:1px solid var(--line); display:flex;
  box-shadow: 0 -4px 20px rgba(16,33,58,.08);
}
.tabbar a {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  color:var(--ink-soft); font-size:.68rem; font-weight:600; padding-top:4px;
}
.tabbar a svg { width:22px; height:22px; }
.tabbar a.active { color:var(--navy); }
.tabbar a.reg { color: var(--gold); }

/* ---------------- 푸터 (KIM 스타일) ---------------- */
.site-footer { background:#0a2450; color:#a9bcd6; font-size:.85rem; }
/* 관련 사이트 링크 줄 */
.ft-links { border-bottom:1px solid rgba(255,255,255,.1); }
.ft-links .wrap { display:flex; flex-wrap:wrap; gap:4px 0; padding-top:14px; padding-bottom:14px; justify-content:center; }
.ft-links a { color:#c3d2e4; font-size:.82rem; padding:4px 14px; position:relative; transition:color .15s; }
.ft-links a:not(:last-child)::after { content:""; position:absolute; right:0; top:50%; transform:translateY(-50%); width:1px; height:11px; background:rgba(255,255,255,.18); }
.ft-links a:hover { color:#fff; }
/* 본문 정보 */
.ft-info { padding:26px 18px 30px; text-align:center; }
.site-footer .ft-title { color:#fff; font-weight:700; font-size:1.02rem; margin-bottom:6px; }
.site-footer .ft-org { color:var(--gold-soft); margin-bottom:14px; }
.site-footer .ft-meta { line-height:1.9; color:#93a9c7; }
.site-footer .ft-copy { margin-top:16px; color:#6f86a6; font-size:.78rem; letter-spacing:.3px; }

/* ---------------- 모달(초록) ---------------- */
.modal-mask {
  position:fixed; inset:0; z-index:100; background:rgba(9,20,38,.6); backdrop-filter:blur(3px);
  display:none; align-items:flex-end; justify-content:center;
}
.modal-mask.open { display:flex; }
.modal {
  background:#fff; width:100%; max-width:640px; max-height:88vh; overflow-y:auto;
  border-radius:18px 18px 0 0; box-shadow:var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity:.4; } to { transform:none; opacity:1; } }
.modal-head {
  position:sticky; top:0; background:#fff; padding:20px 22px 14px; border-bottom:1px solid var(--line);
}
.modal-head .tag { display:inline-block; font-size:.75rem; font-weight:700; color:var(--gold); letter-spacing:1px; margin-bottom:8px; }
.modal-head .m-time { font-size:.82rem; color:var(--ink-soft); margin-bottom:8px; }
.modal-head h3 { margin:0; font-size:1.18rem; color:var(--navy); line-height:1.4; padding-right:34px; }
.modal-close {
  position:absolute; right:16px; top:16px; width:34px; height:34px; border-radius:50%;
  border:none; background:#f0f2f5; color:var(--ink); font-size:1.2rem; cursor:pointer; line-height:1;
}
.modal-body { padding: 18px 22px 30px; }
.modal-body .m-au { color:var(--ink-soft); font-size:.92rem; margin-bottom:18px; }
.modal-body .m-au b { color:var(--navy); }
.modal-body .abs-title { font-weight:700; color:var(--navy); margin-bottom:8px; font-size:.95rem; }
.modal-body .abs-text { color:#3a4553; font-size:.95rem; white-space:pre-wrap; }
.modal-body .abs-empty {
  text-align:center; color:var(--ink-soft); padding:26px 10px; background:#f8fafc;
  border:1px dashed var(--line); border-radius:12px; font-size:.92rem;
}

/* ---------------- 온라인 등록 안내 팝업 ---------------- */
.popup-mask {
  position:fixed; inset:0; z-index:120; padding:18px;
  background:rgba(6,16,34,.62); backdrop-filter:blur(3px);
  display:none; align-items:center; justify-content:center;
  opacity:0; transition:opacity .2s ease;
}
.popup-mask.open { display:flex; opacity:1; }
.popup {
  width:100%; max-width:384px; background:#fff; border-radius:18px; overflow:hidden;
  box-shadow:0 24px 70px rgba(4,14,30,.55); transform:translateY(14px) scale(.97); opacity:.6;
  transition:transform .28s ease, opacity .28s ease;
}
.popup-mask.open .popup { transform:none; opacity:1; }
.popup-top {
  position:relative; padding:18px 22px 16px; color:#fff;
  background:
    radial-gradient(500px 200px at 85% -30%, rgba(201,162,39,.4), transparent 60%),
    linear-gradient(150deg,#08234f,#0b2c62 55%,#1a56a8);
}
.popup-top .pk { color:var(--gold-soft); font-size:.72rem; letter-spacing:1.5px; font-weight:700; }
.popup-top h3 { margin:5px 0 0; font-size:1.22rem; font-weight:800; letter-spacing:-.3px; }
.popup-x {
  position:absolute; top:12px; right:12px; width:30px; height:30px; border:none; border-radius:50%;
  background:rgba(255,255,255,.16); color:#fff; font-size:1.15rem; line-height:1; cursor:pointer; transition:background .15s;
}
.popup-x:hover { background:rgba(255,255,255,.3); }
.popup-body { padding:22px 22px 20px; text-align:center; }
.popup-body .p-title { font-size:1.06rem; font-weight:800; color:var(--navy); }
.popup-body .p-dates {
  margin:15px 0; padding:15px 14px; background:#f3f6fc; border:1px solid #e2e9f4; border-radius:13px;
}
.popup-body .p-dates .lbl { font-size:.75rem; color:var(--gold); font-weight:700; letter-spacing:1.5px; }
.popup-body .p-dates .val { font-size:1.08rem; font-weight:800; color:var(--navy); margin-top:5px; line-height:1.4; }
.popup-body .p-fee { font-size:.86rem; color:var(--ink-soft); margin-bottom:16px; }
.popup-body .p-btn {
  display:block; width:100%; padding:14px 18px; border-radius:40px; font-weight:700; font-size:1rem;
  color:#2a1e05; background:linear-gradient(180deg,var(--gold-soft),var(--gold));
  box-shadow:0 8px 22px rgba(201,162,39,.4); transition:transform .12s, box-shadow .15s;
}
.popup-body .p-btn:hover { box-shadow:0 10px 28px rgba(201,162,39,.55); }
.popup-body .p-btn:active { transform:translateY(1px); }
.popup-body .p-note { margin-top:12px; font-size:.8rem; color:#93a0b0; }
.popup-foot {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 18px; border-top:1px solid var(--line); background:#f8fafc;
}
.popup-foot label { font-size:.82rem; color:var(--ink-soft); display:flex; align-items:center; gap:7px; cursor:pointer; }
.popup-foot input { width:15px; height:15px; accent-color:var(--navy); }
.popup-close-link { border:none; background:none; color:var(--navy); font-weight:700; font-size:.88rem; cursor:pointer; padding:6px 8px; }

/* ======================= 태블릿 / 데스크톱 ======================= */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.6rem; }
  .hero .kicker { font-size:.85rem; }
  .home-cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .reg-grid { grid-template-columns: 1.2fr .8fr; align-items:start; }
  .sponsors { grid-template-columns: repeat(3, 1fr); }
  .section-head h2 { font-size: 1.8rem; }
  .modal-mask { align-items:center; }
  .modal { border-radius:18px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display:none; }
  .nav-desktop { display:flex; }
  .sponsors { grid-template-columns: repeat(4, 1fr); }
  .prog-columns { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; align-items:start; }
  .prog-columns.single { grid-template-columns: 1fr; max-width:760px; margin:0 auto; }
  .hall-pills { display:none; } /* 데스크톱: 3개 회장 동시 표시 */
  .prog-controls { top: var(--top); }
  .desktop-hide { display:none; }
  .fields { grid-template-columns: repeat(4, 1fr); }
  .field-card .fc-img { height:130px; }
}

@media (max-width: 899px) {
  :root { --top: 56px; }              /* 모바일: 유틸바 숨김, 헤더만 */
  .util-bar { display:none; }
  .header-main { height: 56px; }
  .prog-columns { display:block; }
  .mobile-hide { display:none; }
}

/* =====================================================================
 *  제40회 추가 컴포넌트
 * ===================================================================== */

/* 공통 */
.inline-link { color: var(--navy-soft); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.inline-link:hover { color: var(--navy); }
.btn-ghost.dark { border-color: var(--navy-soft); color: var(--navy); }
.btn-ghost.dark:hover { background: rgba(26,86,168,.08); }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* ---------------- 홈 · 한눈에 보기 ---------------- */
.glance { display:grid; grid-template-columns: repeat(2,1fr); gap:10px; margin-top:-6px; }
.gl {
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:14px 16px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:2px;
  border-top:3px solid var(--navy);
}
.gl.gold { border-top-color: var(--gold); }
.gl .gk { font-size:.78rem; color:var(--ink-soft); font-weight:600; letter-spacing:.5px; }
.gl .gv { font-size:1.45rem; font-weight:800; color:var(--navy); line-height:1.2; letter-spacing:-.5px; }
.gl .gv small { font-size:.85rem; font-weight:600; color:var(--ink-soft); margin-left:2px; }

/* ---------------- 프로그램 : 분야 칩 · 발표 항목 ---------------- */
.field-chips { display:flex; gap:6px; overflow-x:auto; padding:10px 0 4px; -webkit-overflow-scrolling:touch; }
.field-chip {
  flex:0 0 auto; padding:5px 12px; border-radius:20px; cursor:pointer; white-space:nowrap;
  background:#fff; border:1.5px solid var(--line); font-size:.82rem; font-weight:600; color:var(--ink-soft);
  transition: all .13s;
}
.field-chip:hover { border-color:#c7d2e0; }
.field-chip.active { background:var(--navy); border-color:var(--navy); color:#fff; }
.prog-dim { font-size:.8rem; color:var(--ink-soft); padding:6px 2px 0; }

.prog-foot { text-align:center; color:var(--ink-soft); font-size:.85rem; margin-top:20px; line-height:1.8; }

.hall-header .room { display:inline-flex; align-items:center; gap:4px; transition:background .13s, color .13s; }
.hall-header a.room:hover { background:#dbe5f3; color:var(--navy); }
.hall-header .room .pin { font-size:.78rem; }

.talk .tmeta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:3px; }
.talk .tmeta .tt { font-size:.78rem; font-weight:700; color:var(--navy-soft); letter-spacing:.3px; }
.talk .tmeta .kn {
  font-size:.7rem; font-weight:800; letter-spacing:.5px; padding:1px 8px; border-radius:20px;
  background:linear-gradient(180deg,var(--gold-soft),var(--gold)); color:#2a1e05;
}
.talk .num.key { background:linear-gradient(180deg,var(--gold-soft),var(--gold)); color:#2a1e05; }

/* 취소된 발표 — 안내는 남기고 제목·발표자에만 취소선을 긋는다.
   괄호 안 취소 사유(.cnote)에는 줄을 긋지 않아야 읽힌다. */
.talk.cancelled .num { background:#e3e7ec; color:#98a2ae; }
.talk.cancelled .tmeta .tt { color:#98a2ae; }
.talk.cancelled .ti .tx,
.talk.cancelled .au .tx { text-decoration:line-through; text-decoration-thickness:1.5px; color:#98a2ae; }
.talk.cancelled .fbadge { opacity:.55; }
.talk .tmeta .cx {
  font-size:.7rem; font-weight:800; letter-spacing:.5px; padding:1px 8px; border-radius:20px;
  background:#fdeaea; color:#b3312c; border:1px solid #f3c9c7;
}
.cnote { font-weight:700; font-size:.86em; color:#b3312c; white-space:nowrap; text-decoration:none; }
#m-title.cancelled .tx { text-decoration:line-through; text-decoration-thickness:2px; color:#98a2ae; }
.talk .au.sub { display:block; color:#93a0b0; font-size:.78rem; margin-top:2px; }

.fbadge {
  display:inline-block; font-size:.7rem; font-weight:700; padding:1px 8px; border-radius:20px;
  background:#eef2f7; color:#4a5768; white-space:nowrap;
}
.fb-steel  { background:#e8eef8; color:#1d4a8c; }
.fb-am     { background:#eaf3ec; color:#256b3c; }
.fb-heat   { background:#fdeee6; color:#a4502a; }
.fb-light  { background:#e9f2fa; color:#1f6f96; }
.fb-hea    { background:#f0ebfa; color:#5b41a8; }
.fb-nano   { background:#f6efe3; color:#7d5e1e; }
.fb-weld   { background:#fbeaea; color:#9c3232; }
.fb-policy { background:#e7f0ee; color:#1f6156; }
.fb-etc    { background:#eef2f7; color:#4a5768; }
.field-chip.fb-steel.active, .field-chip.fb-am.active, .field-chip.fb-heat.active,
.field-chip.fb-light.active, .field-chip.fb-hea.active, .field-chip.fb-nano.active,
.field-chip.fb-weld.active, .field-chip.fb-policy.active,
.field-chip.fb-etc.active { background:var(--navy); color:#fff; border-color:var(--navy); }
h3 .fbadge { vertical-align:middle; margin-right:4px; }

/* ---------------- 초록 모달 (확장) ---------------- */
.modal-head .m-title-en {
  margin-top:8px; font-size:.85rem; color:var(--ink-soft); line-height:1.5; font-style:italic; padding-right:34px;
}
.modal-body .m-au { background:#f7f9fc; border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.modal-body .m-au .row { display:flex; gap:10px; align-items:flex-start; font-size:.9rem; }
.modal-body .m-au .row + .row { margin-top:6px; padding-top:6px; border-top:1px dashed var(--line); }
.modal-body .m-au .row b { flex:0 0 48px; color:var(--gold); font-weight:700; }
.modal-body .abs-title { display:flex; align-items:baseline; gap:8px; margin:20px 0 8px; }
.modal-body .abs-title small { font-size:.72rem; letter-spacing:1.5px; color:var(--gold); font-weight:700; }
.modal-body .abs-text { color:#3a4553; font-size:.94rem; line-height:1.85; white-space:normal; }
.modal-body .abs-text p { margin:0 0 12px; }
.modal-body .abs-text p:last-child { margin-bottom:0; }
.modal-body .abs-figs {
  margin-top:16px; padding:12px 14px; background:#f8fafc; border:1px solid var(--line);
  border-radius:10px; font-size:.83rem; color:var(--ink-soft); line-height:1.7;
}
.modal-body .abs-figs b { display:block; color:var(--navy); margin-bottom:5px; font-size:.8rem; letter-spacing:.5px; }
.modal-body .abs-src { margin-top:14px; font-size:.76rem; color:#93a0b0; text-align:right; }

/* ---------------- 발표회장 위치 (halls.html) ---------------- */
.hall-table { width:100%; border-collapse:collapse; background:#fff; box-shadow:var(--shadow); border-radius:12px; overflow:hidden; min-width:420px; }
.hall-table th, .hall-table td { padding:12px 12px; border-bottom:1px solid var(--line); font-size:.92rem; text-align:center; }
.hall-table thead th { background:var(--navy); color:#fff; font-weight:600; }
.hall-table tbody th { background:#f3f6fa; color:var(--navy); font-weight:700; white-space:nowrap; }
.hall-table tbody tr:last-child th, .hall-table tbody tr:last-child td { border-bottom:none; }

.split-note {
  margin-top:14px; font-size:.88rem; color:#5b4a1e; line-height:1.8;
  background:#fff8e8; border:1px solid #f0e2be; border-radius:12px; padding:14px 16px;
}
.split-note b { color:#7a5f14; }

.floor { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px; margin-bottom:16px; }
.floor-head { display:flex; align-items:baseline; gap:10px; margin-bottom:14px; }
.floor-head .fl { font-size:1.15rem; font-weight:800; color:var(--navy); }
.floor-head .fc { font-size:.85rem; color:var(--ink-soft); }
.floor-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.floor-map { min-width:0; }
.floor-svg { width:100%; height:auto; display:block; background:#f7f9fc; border:1px solid var(--line); border-radius:10px; }
.floor-svg .floor-bg { fill:#fff; stroke:#d8e0ea; stroke-width:.5; }
.floor-svg .rm-g { cursor:pointer; }
.floor-svg .rm-rect { fill:#e6eefa; stroke:var(--navy-soft); stroke-width:.5; transition:fill .15s; }
.floor-svg .rm-g:hover .rm-rect { fill:#d5e3f7; }
.floor-svg .rm-rect.aux { fill:#f2f4f7; stroke:#cbd3dd; stroke-dasharray:1.2 1; }
.floor-svg .rm-rect.hit { fill:#fdf1cf; stroke:var(--gold); stroke-width:.9; }
.floor-svg .rm-rect.hit.half { fill:rgba(201,162,39,.28); }
.floor-svg .split-line { stroke:var(--navy-soft); stroke-width:.5; stroke-dasharray:1.6 1.2; }
.floor-svg .rm-name { font-size:3.4px; font-weight:700; fill:var(--navy); text-anchor:middle; dominant-baseline:middle; }
.floor-svg .rm-name.aux { font-size:2.6px; font-weight:500; fill:#8d98a6; }
.floor-svg .rm-area { font-size:2.4px; fill:#6b7785; text-anchor:middle; }
.floor-svg .rm-sub { font-size:3px; font-weight:800; fill:var(--navy-soft); text-anchor:middle; opacity:.65; }
.map-note { font-size:.76rem; color:#93a0b0; margin-top:7px; text-align:center; }

.floor-rooms { display:flex; flex-direction:column; gap:10px; }
.rm-card { border:1px solid var(--line); border-left:4px solid var(--navy); border-radius:10px; padding:13px 15px; background:#fbfcfe; }
.rm-card.hit { border-left-color:var(--gold); background:#fffdf6; box-shadow:0 0 0 2px rgba(201,162,39,.18); }
.rm-card.flash { animation: flashCard .9s ease; }
@keyframes flashCard { 0%,100% { background:#fbfcfe; } 40% { background:#fff6da; } }
.rc-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.rc-name { font-weight:800; color:var(--navy); font-size:1.02rem; }
.rc-name small { font-weight:500; font-size:.76rem; color:#93a0b0; margin-left:4px; }
.rc-floor { font-size:.76rem; font-weight:700; color:#fff; background:var(--navy-soft); border-radius:20px; padding:2px 9px; white-space:nowrap; }
.rc-spec { font-size:.83rem; color:var(--ink-soft); margin-top:4px; }
.rc-split { font-size:.83rem; color:#7a5f14; background:#fff8e8; border:1px solid #f0e2be; border-radius:8px; padding:8px 10px; margin-top:9px; line-height:1.6; }
.rc-use { margin:9px 0 0; padding-left:0; list-style:none; display:flex; flex-wrap:wrap; gap:6px; }
.rc-use li { font-size:.78rem; font-weight:600; color:var(--navy); background:#e8eef8; border-radius:20px; padding:3px 10px; }

.venue-foot {
  margin-top:26px; background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:20px; display:flex; flex-direction:column; gap:14px;
}
.vf-name { font-weight:800; color:var(--navy); font-size:1.05rem; }
.vf-name small { font-weight:500; color:#93a0b0; font-size:.78rem; margin-left:5px; }
.vf-addr { font-size:.9rem; color:var(--ink); margin-top:4px; }
.vf-addr a { color:var(--navy-soft); font-weight:600; }
.vf-src { font-size:.78rem; color:#93a0b0; margin-top:8px; line-height:1.7; }
.vf-r { display:flex; gap:10px; flex-wrap:wrap; }
.vf-r .btn { padding:10px 18px; font-size:.9rem; }

/* ---------------- 직선간사 선출 투표 (vote.html · 홈 배너) ---------------- */
.vote-banner {
  display:flex; align-items:center; gap:14px; margin:0 0 22px; padding:16px 18px;
  border-radius:var(--radius); color:#2a1e05; text-decoration:none;
  background:linear-gradient(135deg,#fff6d8,#f7e7ad);
  border:1px solid var(--gold-soft); border-left:5px solid var(--gold);
  box-shadow:var(--shadow); transition:transform .12s, box-shadow .15s;
}
.vote-banner:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.vote-banner .vb-icon { font-size:1.6rem; line-height:1; flex:0 0 auto; }
.vote-banner .vb-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.vote-banner .vb-t { font-weight:800; color:var(--navy); font-size:1.02rem; line-height:1.35; }
.vote-banner .vb-d { font-size:.86rem; color:#6b5a20; margin-top:3px; }
.vote-banner .vb-go { flex:0 0 auto; color:var(--gold); font-size:1.5rem; }

.vote-state {
  display:flex; flex-direction:column; gap:3px; padding:14px 18px; margin-bottom:20px;
  border-radius:14px; background:#eef7ee; border:1px solid #c8e2c8; border-left:5px solid #3f8f4a;
}
.vote-state b { color:#28642f; font-size:1rem; }
.vote-state span { font-size:.9rem; color:var(--ink-soft); }
.vote-state.closed { background:#f3f5f7; border-color:#d7dde4; border-left-color:#8b96a3; }
.vote-state.closed b { color:#5b6672; }

.vote-state.done { background:#f6f1e2; border-color:#e6d8ac; border-left-color:var(--gold); }
.vote-state.done b { color:#8a6d14; }

/* 개표 결과 — 당선자 명단 (득표수는 싣지 않는다) */
.vote-result {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px; margin-bottom:20px;
  border-top:4px solid var(--gold);
}
.vote-result .vr-h {
  margin:0; font-size:1.15rem; color:var(--navy);
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.vote-result .vr-n {
  font-size:.78rem; font-weight:800; letter-spacing:.3px; padding:2px 10px;
  border-radius:20px; background:#f6f1e2; color:#8a6d14; border:1px solid #e6d8ac;
}
.vote-result .vr-at { margin:8px 0 0; font-size:.88rem; color:var(--ink-soft); }
.vote-result .vr-list {
  list-style:none; margin:18px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px;
}
.vote-result .vr-list li {
  display:flex; flex-direction:column; gap:3px; padding:11px 14px;
  border:1px solid var(--line); border-radius:12px; background:#fbfcfd;
}
.vote-result .vr-name { font-weight:800; color:var(--ink); font-size:1rem; }
.vote-result .vr-org { font-size:.84rem; color:var(--ink-soft); }
.vote-result .vr-note { margin:16px 0 0; font-size:.84rem; color:#93a0b0; line-height:1.7; }

.vote-grid { display:grid; grid-template-columns:1fr; gap:18px; align-items:start; }
.vote-info, .vote-qr {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:20px;
}
.vote-list { display:flex; flex-direction:column; gap:10px; }
.vote-list .li { display:flex; gap:12px; align-items:flex-start; }
.vote-list .k { flex:0 0 72px; color:var(--gold); font-weight:700; font-size:.86rem; padding-top:2px; }
.vote-list .v { font-size:.95rem; color:var(--ink); line-height:1.7; }
.vote-cta { display:block; width:100%; margin-top:20px; text-align:center; justify-content:center; }
.vote-cta.off {
  padding:13px 24px; border-radius:40px; background:#eef1f5; color:#7a8492;
  font-weight:700; border:1.5px solid #dde2e9;
}
.vote-sub { margin:10px 0 0; font-size:.82rem; color:#93a0b0; text-align:center; }
.vote-qr { text-align:center; }
.vote-qr img { width:100%; max-width:280px; height:auto; margin:0 auto; }
.vote-qr p { margin:12px 0 6px; font-size:.88rem; color:var(--ink-soft); }

@media (min-width: 760px) {
  .vote-grid { grid-template-columns:1.25fr .75fr; }
  .vote-grid.single { grid-template-columns:1fr; }
}

/* ---------------- 9/4 중식 메뉴 (lunch.html) ---------------- */
.lunch-info { display:grid; grid-template-columns:1fr; gap:8px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 18px; }
.lunch-info .li { display:flex; gap:12px; align-items:flex-start; }
.lunch-info .k { flex:0 0 52px; color:var(--gold); font-weight:700; font-size:.86rem; }
.lunch-info .v { font-size:.94rem; color:var(--ink); }
.lunch-info .v small { display:block; color:#93a0b0; font-size:.78rem; }
.lunch-guide { margin:16px 0 18px; font-size:.92rem; color:var(--ink-soft); line-height:1.8; text-align:center; }

/* 사진 비율이 카드마다 달라 높이가 제각각이므로, 카드를 늘리지 않고 제 높이대로 둔다 */
.menus { display:grid; grid-template-columns:1fr; gap:16px; align-items:start; }
.menu-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); transition:box-shadow .15s, border-color .15s; display:flex; flex-direction:column; }
/* 도시락 사진은 가로(3:2), 브런치 사진은 세로(2:3)다. 높이를 고정하면 세로 사진이
   잘리므로 height 를 사진 비율에 맡겨 네 장 모두 전체가 보이게 한다. */
.mc-img { display:block; width:100%; height:auto; background:#eef2f7; }
.mc-body { padding:18px 18px 20px; display:flex; flex-direction:column; flex:1; }
.mc-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.mc-head h3 { margin:0; font-size:1.18rem; color:var(--navy); font-weight:800; }
.mc-head h3 small { display:block; font-size:.75rem; font-weight:500; color:#93a0b0; letter-spacing:.5px; margin-top:2px; }
.mc-where { margin-top:8px; font-size:.85rem; color:var(--ink-soft); font-weight:600; }
.allergen-list { display:block; margin-top:6px; font-size:.8rem; color:#93a0b0; line-height:1.7; }
.mc-where .inline-link { font-weight:600; margin-left:4px; }
.menu-card.no-img .mc-body { padding-top:20px; }
.menu-card.no-img { border-style:dashed; }
.mc-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.mc-tags span { font-size:.76rem; font-weight:600; color:var(--navy); background:#e8eef8; border-radius:20px; padding:3px 10px; }
.mc-sum { font-size:.88rem; color:var(--ink-soft); line-height:1.75; margin:12px 0 4px; }
.mc-items { list-style:none; margin:8px 0 0; padding:0; border-top:1px solid var(--line); }
.mc-items li { padding:9px 0; border-bottom:1px dashed var(--line); font-size:.9rem; }
.mc-items li:last-child { border-bottom:none; }
.mc-body .mc-items { margin-bottom:2px; }
.mc-items b { color:var(--ink); font-weight:700; }
.mc-items .en { color:#93a0b0; font-size:.78rem; margin-left:6px; }
.mc-items .dc { display:block; color:var(--ink-soft); font-size:.82rem; margin-top:2px; }
@media (min-width: 700px) {
  .glance { grid-template-columns: repeat(4,1fr); }
  .lunch-info { grid-template-columns: repeat(3,1fr); }
  .menus { grid-template-columns: 1fr 1fr; }
  .lunch-info { grid-template-columns: 1fr 1fr 1fr; }
  .venue-foot { flex-direction:row; align-items:center; justify-content:space-between; }
  .vf-r { justify-content:flex-end; }
}
@media (min-width: 900px) {
  .floor-grid { grid-template-columns: 1.15fr .85fr; align-items:start; }
}
@media (min-width: 1040px) {
  .menus { grid-template-columns: repeat(2,1fr); }
}
