/* ===== Color tokens ===== */
:root {
  --orange: #F58220;
  --orange-deep: #E5651A;
  --runit: #6E2EE5;
  --runit-deep: #5824B8;
  --runit-light: #7B3DFE;
  --yellow: #FFC72C;
  --yellow-soft: #FFE5A0;
  --navy: #1A2E4A;
  --navy-deep: #0E1E33;
  --navy-soft: #2A446A;
  --cream: #FFF8EB;
  --paper: #FAF6EE;
  --line: #E5DDD0;
  --text: #1A2E4A;
  --muted: #6B7280;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(26,46,74,0.08);
  --shadow-md: 0 8px 24px rgba(26,46,74,0.12);
  --shadow-lg: 0 16px 48px rgba(26,46,74,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Topbar ===== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 24px; }
.topbar-cta { color: var(--yellow); font-weight: 600; }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; padding: 18px 24px; gap: 32px; }
.brand-logo { height: 52px; display: block; margin: 4px 0; }
.brand { display: inline-flex; align-items: center; padding: 4px 0; }
.brand-mark {
  display: inline-flex; flex-direction: column; line-height: 1;
  font-weight: 900; letter-spacing: -0.5px;
}
.brand-mark .brand-year {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-size: 16px; margin-bottom: 6px; letter-spacing: 1.5px;
}
.brand-mark .brand-year em {
  font-style: normal; background: var(--navy); color: var(--white);
  padding: 3px 8px; border-radius: 4px; font-size: 12px; letter-spacing: 1px; font-weight: 800;
}
.brand-mark .brand-name {
  font-size: 22px; color: var(--navy); white-space: nowrap;
}
.brand-mark .brand-name strong { color: var(--orange); }

.main-nav .nav-root {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1;
  justify-content: flex-end;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 14px 22px; font-weight: 700; color: var(--navy);
  font-size: 16px; border-radius: 6px; transition: color .2s, background .2s;
  white-space: nowrap; text-align: center;
  min-width: 130px;
}
.nav-item:hover > a { color: var(--orange); background: var(--cream); }

.nav-sub {
  position: absolute; top: 100%; left: 0;
  transform: translateY(8px);
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange);
  list-style: none; margin: 0; padding: 8px;
  min-width: 100%;
  box-shadow: var(--shadow-md); border-radius: 0 0 10px 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 10;
}
.nav-item:hover .nav-sub { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-sub li a {
  display: block; padding: 10px 14px; font-size: 14.5px; color: var(--navy);
  border-radius: 4px; white-space: nowrap;
}
.nav-sub li a:hover { background: var(--yellow-soft); color: var(--orange-deep); }

.nav-toggle { display: none; background: transparent; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

.nav-close { display: none; }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
}
.hero::before {
  content: ""; position: absolute; inset: -8px;
  background: url('../images/banner.png') center/cover no-repeat;
  filter: blur(5px) saturate(1.15) contrast(1.04);
  transform: scale(1.025);
  opacity: 1;
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,30,51,0.55) 0%, rgba(14,30,51,0.28) 45%, rgba(14,30,51,0.10) 75%, rgba(14,30,51,0.05) 100%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-text { position: relative; }
.hero-text h1, .hero-text p { text-shadow: 0 2px 14px rgba(14,30,51,0.55); }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none; z-index: 1;
}
.hero-tag {
  display: inline-block; background: var(--orange); color: var(--white);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 56px; font-weight: 900; line-height: 1.05; margin: 0 0 12px;
  letter-spacing: -1.5px; text-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.hero-title .yellow { color: var(--yellow); }
.hero-sub { font-size: 20px; opacity: 0.95; margin: 0 0 28px; font-weight: 500; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-item .label { font-size: 12px; color: var(--yellow); font-weight: 700; letter-spacing: 1px; }
.hero-meta-item .value { font-size: 18px; font-weight: 700; }

.poster-card {
  background: var(--white); padding: 12px; border-radius: 18px;
  box-shadow: var(--shadow-lg); transform: rotate(1.5deg);
  transition: transform .4s;
}
.poster-card:hover { transform: rotate(0deg) scale(1.02); }
.poster-card img { border-radius: 10px; max-height: 560px; object-fit: contain; }

.poster-art {
  position: relative; border-radius: 12px; padding: 28px 26px 22px;
  background:
    radial-gradient(circle at 80% 110%, rgba(255,199,44,0.25), transparent 55%),
    linear-gradient(160deg, #FFF7E6 0%, #FFE9B8 60%, #FFD27A 100%);
  border: 2px solid var(--orange);
  color: var(--navy);
  min-height: 540px;
  overflow: hidden;
}
.poster-art::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,130,32,0.35), transparent 70%);
  border-radius: 50%;
}
.poster-top {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2; margin-bottom: 12px;
}
.poster-mbn {
  font-weight: 900; color: var(--orange); font-size: 18px; letter-spacing: 1.5px;
}
.poster-tag {
  background: var(--orange); color: var(--white); padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
}
.poster-title {
  position: relative; z-index: 2; line-height: 0.95; margin-bottom: 18px;
}
.poster-title .poster-line1 {
  display: block; font-size: 56px; font-weight: 900; color: var(--navy);
  letter-spacing: -2px;
}
.poster-title .poster-line1 em {
  font-style: normal; color: var(--orange);
}
.poster-title .poster-line2 {
  display: block; font-size: 48px; font-weight: 900; color: var(--navy);
  letter-spacing: -2px; margin-top: 4px;
}
.poster-festival {
  background: rgba(255,255,255,0.7); border-left: 4px solid var(--orange);
  padding: 10px 14px; border-radius: 6px; position: relative; z-index: 2;
  margin-bottom: 18px;
}
.poster-festival strong { display: block; color: var(--orange-deep); font-size: 16px; }
.poster-festival small { color: var(--navy); font-size: 12.5px; }
.poster-meta {
  background: rgba(255,255,255,0.85); border-radius: 8px; padding: 14px 16px;
  position: relative; z-index: 2; box-shadow: var(--shadow-sm);
}
.poster-meta .pm-row {
  display: grid; grid-template-columns: 50px 1fr; gap: 8px;
  padding: 7px 0; border-bottom: 1px dashed rgba(26,46,74,0.15);
  font-size: 13px; align-items: center;
}
.poster-meta .pm-row:last-child { border-bottom: 0; }
.poster-meta .pm-k {
  background: var(--navy); color: var(--white); padding: 2px 6px;
  border-radius: 4px; font-size: 11px; text-align: center; font-weight: 700;
}
.poster-meta .pm-v { color: var(--navy); font-weight: 600; }
.poster-meta .pm-tag {
  grid-column: 2; color: var(--orange-deep); font-size: 11.5px; font-weight: 700; margin-top: -2px;
}
.poster-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; position: relative; z-index: 2;
}
.poster-quote {
  font-size: 14px; color: var(--navy); font-weight: 700; font-style: italic;
}
.poster-bib {
  background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  border-radius: 4px;
}

/* ===== Main info cards ===== */
.info-section { padding: 64px 0 32px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  display: inline-block; color: var(--orange); font-weight: 700; letter-spacing: 3px;
  font-size: 13px; margin-bottom: 8px;
}
.section-head h2 {
  font-size: 36px; margin: 0 0 8px; color: var(--navy); letter-spacing: -1px;
}
.section-head h2 strong { color: var(--orange); }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }

.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.info-card {
  background: var(--white); border-radius: 16px; padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.info-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--orange), var(--yellow));
}
.info-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange);
}
.info-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: var(--white); display: grid; place-items: center; font-size: 24px;
  margin-bottom: 16px; font-weight: 900;
}
.info-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 20px; }
.info-card .body { color: var(--text); }
.info-card .body strong { color: var(--orange-deep); font-size: 17px; }
.info-card .note { display: block; color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ===== Page (sub) ===== */
.page-area { min-height: 60vh; }
.subpage {
  padding: 56px 0 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.crumb {
  display: flex; gap: 6px; align-items: center; color: var(--muted);
  font-size: 13px; margin-bottom: 8px;
}
.crumb .sep::before { content: "›"; margin: 0 4px; color: var(--line); }
.page-title {
  font-size: 36px; font-weight: 900; color: var(--navy); margin: 0 0 8px;
  letter-spacing: -1px;
}
.page-title-bar {
  width: 64px; height: 4px; background: var(--orange); border-radius: 2px;
  margin-bottom: 32px;
}
.page-lead {
  color: var(--muted); font-size: 16px; margin: -16px 0 28px;
}

/* ===== Collapsible details ===== */
.fold {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.fold:hover { box-shadow: var(--shadow-sm); border-color: #D8CDB8; }
.fold[open] { box-shadow: var(--shadow-sm); border-color: var(--orange); }
.fold > summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--navy); font-size: 17px;
  background: var(--white);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "";
  width: 32px; height: 32px;
  background: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10' stroke='%23F58220' stroke-width='2' stroke-linecap='round' fill='none'/><path d='M8 3v10' stroke='%23F58220' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  border-radius: 50%;
  transition: transform .2s, background-image .2s;
  flex-shrink: 0;
}
.fold[open] > summary::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10' stroke='%23F58220' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
}
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold .fold-body { padding: 20px 24px 24px; color: var(--text); }
.fold .fold-body p { margin: 0 0 10px; }
.fold .fold-body p:last-child { margin-bottom: 0; }

/* Highlight number/badge inside summary */
.fold-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-size: 13px; font-weight: 800; margin-right: 12px;
}

/* ===== Cards / blocks within pages ===== */
.card {
  background: var(--white); border-radius: 14px; padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card h3 {
  margin: 0 0 16px; color: var(--navy); font-size: 22px;
  border-left: 4px solid var(--orange); padding-left: 12px;
}
.card h4 { margin: 16px 0 10px; color: var(--orange-deep); font-size: 17px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--white); }
.tbl th, .tbl td {
  padding: 12px 14px; border: 1px solid var(--line); text-align: center; font-size: 14.5px;
}
.tbl thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.tbl tbody tr:nth-child(even) td { background: #FBF7EE; }
.tbl .group { background: var(--yellow-soft); font-weight: 700; }
.tbl .total { background: var(--cream); font-weight: 700; color: var(--orange-deep); }
.tbl-grp .grp-letter { background: var(--cream); color: var(--orange-deep); font-weight: 800; }
.tbl-wrap { overflow-x: auto; }

/* Pills / badges */
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--yellow-soft); color: var(--orange-deep);
  font-size: 13px; font-weight: 700; margin-right: 6px;
}
.pill.orange { background: var(--orange); color: var(--white); }
.pill.navy { background: var(--navy); color: var(--white); }

/* Notice list */
.bullets { padding-left: 18px; margin: 8px 0; }
.bullets li { margin-bottom: 6px; }

/* Hero meta box */
.meta-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.meta-row:last-child { border-bottom: 0; }
.meta-row .k {
  color: var(--orange-deep); font-weight: 700; font-size: 15px;
}
.meta-row .v { color: var(--text); }

/* Forms */
.form-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.form-row label { font-weight: 600; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14.5px; background: var(--white); font-family: inherit; color: var(--text);
}
.form-row textarea { min-height: 160px; resize: vertical; }
.btn {
  display: inline-block; padding: 12px 28px; background: var(--orange); color: var(--white);
  border-radius: 8px; font-weight: 700; font-size: 15px; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn.outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-deep); }
.btn-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Course map */
.course-img-wrap {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.course-img-wrap img { width: 100%; }

/* Board */
.board-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.board-toolbar .btn { padding: 10px 18px; font-size: 14px; }
.board-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.board-table thead th {
  background: var(--navy); color: var(--white); padding: 14px;
  font-size: 14.5px; font-weight: 700;
}
.board-table tbody td {
  padding: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px;
  text-align: center;
}
.board-table tbody td.title { text-align: left; cursor: pointer; }
.board-table tbody td.title:hover { color: var(--orange); }
.board-table tbody tr:last-child td { border-bottom: 0; }
.empty {
  text-align: center; padding: 60px 0; color: var(--muted);
}

.post-detail { padding: 24px; background: var(--white); border-radius: 12px; border: 1px solid var(--line); }
.post-detail h2 { margin: 0 0 8px; color: var(--navy); }
.post-detail .post-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-detail .post-body { white-space: pre-wrap; line-height: 1.8; }

/* Award podium ribbon */
.podium {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.podium-card {
  background: var(--white); border-radius: 12px; border: 1px solid var(--line);
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.podium-card h4 { margin: 0 0 8px; color: var(--orange-deep); font-size: 18px; }
.podium-card .rank { color: var(--navy); font-weight: 700; }
.podium-card .prize { color: var(--orange); font-weight: 800; font-size: 18px; }

/* Welcome / message */
.welcome-block {
  background: var(--white);
  border-radius: 16px; padding: 40px 36px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.welcome-block::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, var(--yellow-soft) 0%, transparent 70%);
}
.welcome-block p { font-size: 16.5px; line-height: 1.95; color: #2A3B58; margin: 0 0 14px; position: relative; }

/* Course hero ribbon */
.ribbon-row { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ribbon-tag {
  background: var(--white); border: 2px solid var(--orange); color: var(--orange-deep);
  padding: 10px 22px; border-radius: 30px; font-weight: 700; font-size: 15px;
}

/* Footer */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.85);
  margin-top: 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 48px 24px 24px;
}
.footer-brand strong { display: block; color: var(--white); font-size: 18px; margin-bottom: 12px; }
.footer-brand p { margin: 4px 0; font-size: 14px; opacity: 0.85; }
.footer-meta div { font-size: 14px; margin-bottom: 8px; }
.footer-meta span {
  display: inline-block; min-width: 50px; padding: 2px 10px;
  background: var(--orange); color: var(--white); border-radius: 4px;
  font-size: 12px; font-weight: 700; margin-right: 10px; text-align: center;
}
.footer-bottom {
  text-align: center; padding: 16px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; opacity: 0.7;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none; position: fixed; top: 0; right: 0; width: 320px; max-width: 100%;
    height: 100vh; background: var(--white); padding: 60px 24px 24px;
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: transparent; border: 0;
    color: var(--navy); font-size: 28px; line-height: 1;
    cursor: pointer; padding: 0; border-radius: 8px;
    transition: background .15s, color .15s;
  }
  .nav-close:hover { background: var(--cream); color: var(--orange); }
  .nav-root { flex-direction: column; gap: 4px; }
  .nav-item > a { padding: 10px 0; }
  .nav-sub,
  .nav-item:hover .nav-sub {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--orange);
    border-radius: 0; padding: 4px 0 8px 12px; margin: 0 0 8px 0;
    min-width: 0; width: auto;
  }
  .nav-sub li a { padding: 6px 12px; }
  .nav-item > a { min-width: 0; text-align: left; padding: 10px 0; }
  .podium { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 64px; }
  .hero-title { font-size: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 28px; }
  .topbar-text { display: none; }
  .events-grid { grid-template-columns: 1fr !important; }
  .date-card { grid-template-columns: 1fr !important; }
  .place-card { grid-template-columns: 1fr !important; }
  .order-grid { grid-template-columns: 1fr !important; }
  .apply-strip { grid-template-columns: 1fr !important; gap: 16px !important; }
  .contact-card { grid-template-columns: 1fr !important; }
  .big-date .bd-md { font-size: 60px !important; }
  .clock .ck-v { font-size: 44px !important; }
}

/* =================================================================
   ===== Home v2 — long scrolling, image-style sections =========
   ================================================================= */

/* Hero v2 tweaks */
.hero-v2 { padding: 90px 0 110px; }
.hero-v2 .hero-bg-deco {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.15;
  background:
    radial-gradient(circle at 20% 30%, var(--yellow) 0%, transparent 8%),
    radial-gradient(circle at 80% 70%, var(--orange) 0%, transparent 8%),
    radial-gradient(circle at 50% 90%, var(--yellow) 0%, transparent 6%);
}
.hero-naju {
  background: rgba(255,255,255,0.95); display: inline-block;
  padding: 8px 16px; border-radius: 10px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-naju img { height: 38px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-hero {
  padding: 14px 32px; font-size: 16px; font-weight: 800;
  background: var(--orange); color: var(--white);
  border-radius: 999px; box-shadow: 0 6px 18px rgba(245,130,32,0.4);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,130,32,0.55); }
.btn-hero.outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7); box-shadow: none;
}
.btn-hero.outline:hover { background: rgba(255,255,255,0.15); }

.scroll-hint {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px; pointer-events: none;
}
.scroll-hint span {
  display: block; width: 4px; height: 8px; background: var(--yellow);
  border-radius: 2px; margin: 8px auto 0;
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* Common block layout */
.block { padding: 80px 0; position: relative; }
.block .section-head { text-align: center; margin-bottom: 40px; }
.block .section-head .eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--orange); color: var(--white); font-size: 11.5px;
  font-weight: 800; letter-spacing: 2.5px; margin-bottom: 14px;
}
.block .section-head h2 { font-size: 40px; color: var(--navy); margin: 0 0 8px; letter-spacing: -1.5px; font-weight: 900; }
.block .section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ----- 01 Date ----- */
.block-date { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }
.date-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: stretch;
  background: var(--white); border-radius: 24px; padding: 36px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.date-card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, var(--yellow-soft), transparent 70%);
}
.date-cal {
  background: linear-gradient(160deg, #FFF8E6, #FFEEC0);
  border-radius: 16px; padding: 24px; position: relative;
  border: 2px solid var(--yellow);
}
.cal-month {
  font-size: 22px; font-weight: 900; color: var(--navy);
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-grid .ch {
  text-align: center; font-size: 11.5px; font-weight: 700;
  color: var(--orange-deep); padding: 6px 0;
}
.cal-grid .cd {
  text-align: center; padding: 7px 0; font-size: 14px; color: var(--navy);
  border-radius: 8px; background: rgba(255,255,255,0.6); font-weight: 600;
}
.cal-grid .cd-empty { background: transparent; }
.cal-grid .cd-festival { background: rgba(245,130,32,0.18); color: var(--orange-deep); }
.cal-grid .cd-active {
  background: var(--orange) !important; color: var(--white) !important;
  font-weight: 900; font-size: 16px; box-shadow: 0 4px 14px rgba(245,130,32,0.5);
  position: relative; z-index: 2;
}
.cal-legend {
  margin-top: 14px; font-size: 13px; color: var(--orange-deep); font-weight: 700;
}
.cal-legend .dot {
  display: inline-block; width: 10px; height: 10px; background: var(--orange);
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
}

.date-time {
  display: flex; flex-direction: column; justify-content: center; padding: 12px;
}
.big-date { text-align: center; line-height: 1; margin-bottom: 24px; }
.big-date .bd-y { display: block; font-size: 16px; color: var(--orange); font-weight: 800; letter-spacing: 6px; }
.big-date .bd-md {
  display: block; font-size: 110px; font-weight: 900; color: var(--navy);
  letter-spacing: -4px; margin: 4px 0;
}
.big-date .bd-day { display: block; font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 4px; }

.date-clocks {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  background: var(--cream); border-radius: 14px; padding: 18px; margin-top: 8px;
}
.clock { text-align: center; flex: 1; }
.clock .ck-k {
  display: block; font-size: 11px; color: var(--orange-deep);
  font-weight: 800; letter-spacing: 3px; margin-bottom: 4px;
}
.clock .ck-v {
  display: block; font-size: 56px; font-weight: 900; color: var(--navy); line-height: 1;
}
.clock .ck-v small { font-size: 28px; font-weight: 700; color: var(--orange); }
.clock .ck-x {
  display: block; font-size: 11px; color: var(--muted); margin-top: 4px;
  font-weight: 700; letter-spacing: 2px;
}
.clock-sep { font-size: 32px; color: var(--orange); font-weight: 900; }

.date-note {
  text-align: center; margin-top: 14px; color: var(--muted); font-size: 13.5px;
}

/* ----- 02 Apply ----- */
.block-apply { background: var(--paper); }
.apply-strip {
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 24px;
  background: var(--white); border-radius: 24px; padding: 32px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  align-items: center;
}
.strip-side { text-align: center; }
.strip-side.end { text-align: center; }
.apply-tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: var(--orange); color: var(--white); font-weight: 800;
  font-size: 11px; letter-spacing: 2px; margin-bottom: 10px;
}
.apply-tag.close { background: var(--navy); }
.strip-side strong { display: block; font-size: 22px; color: var(--navy); font-weight: 900; }
.strip-side small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.flow-track {
  position: relative; height: 12px; background: var(--cream); border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
}
.flow-fill {
  height: 100%; width: 5%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  animation: flowGrow 2s ease-out forwards;
}
@keyframes flowGrow { to { width: 100%; } }
.flow-marks {
  display: flex; justify-content: space-between; margin-top: 10px;
}
.flow-marks span {
  display: flex; flex-direction: column; align-items: center; flex: 1; position: relative;
}
.flow-marks span::before {
  content: ""; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--orange); margin-top: -22px; position: relative; z-index: 2;
}
.flow-marks span:nth-child(2)::before { border-color: var(--navy); }
.flow-marks span:nth-child(3)::before { background: var(--orange); border-color: var(--orange); }
.flow-marks b {
  margin-top: 6px; font-size: 12.5px; color: var(--navy); font-weight: 700;
}
.flow-marks i { font-style: normal; font-size: 13px; color: var(--orange-deep); font-weight: 800; }

.apply-extras {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px;
}
.extra {
  background: var(--white); border-radius: 12px; padding: 16px 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.extra .ek {
  background: var(--navy); color: var(--white); padding: 4px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; flex-shrink: 0;
}
.extra .ev { color: var(--text); font-size: 14px; }
.extra.warn { border-color: var(--orange); }
.extra.warn .ek { background: var(--orange); }

/* ----- 03 Place ----- */
.block-place { background: var(--cream); }
.place-card {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: stretch;
  background: var(--white); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.place-map-img {
  position: relative; min-height: 0; background: var(--cream);
  display: flex; align-items: stretch; justify-content: center; overflow: hidden;
}
.place-map-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.place-turns {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.place-turns .pt {
  background: var(--cream); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 20px; font-size: 12.5px;
  color: var(--navy); font-weight: 700;
}
.place-turns .pt i {
  font-style: normal; color: var(--orange); font-weight: 900; margin-right: 4px;
}
.place-map {
  position: relative; min-height: 380px;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,199,44,0.2), transparent 40%),
    linear-gradient(135deg, #F5EBD8 0%, #EDDFC2 100%);
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,46,74,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,46,74,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-river {
  position: absolute; left: -20px; right: -20px; top: 38%;
  height: 80px; background: linear-gradient(180deg, transparent, rgba(150,200,230,0.45), transparent);
  filter: blur(8px); transform: rotate(-3deg);
}
.map-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; right: 8%; top: 38%; font-size: 32px; z-index: 3;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.map-marker {
  position: absolute; background: var(--white); border-radius: 8px;
  padding: 6px 10px; font-size: 11.5px; font-weight: 800; color: var(--navy);
  box-shadow: var(--shadow-sm); border: 2px solid var(--navy);
  white-space: nowrap; z-index: 2;
}
.map-marker.start {
  background: var(--orange); color: var(--white); border-color: var(--orange);
  right: 18%; top: 36%; padding: 8px 14px; font-size: 13px;
}
.map-marker.start small {
  display: block; font-size: 10.5px; opacity: 0.9; font-weight: 600; margin-top: 2px;
}
.map-marker.turn { padding: 4px 8px; font-size: 11px; background: var(--white); }
.map-marker.turn i { font-style: normal; color: var(--orange); font-weight: 900; margin-right: 4px; }
.map-marker.t5 { right: 6%; top: 56%; }
.map-marker.t10 { left: 36%; top: 58%; }
.map-marker.thalf { left: 22%; top: 42%; }
.map-marker.tfull { left: 6%; top: 64%; }

.place-info { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.place-info h3 { margin: 0 0 8px; color: var(--navy); font-size: 24px; font-weight: 900; }
.place-info .place-addr { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.place-ways { list-style: none; padding: 0; margin: 0 0 18px; }
.place-ways li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.place-ways li:last-child { border-bottom: 0; }
.place-ways .way {
  background: var(--cream); padding: 4px 10px; border-radius: 6px; font-weight: 700;
  font-size: 13px; color: var(--orange-deep); min-width: 90px; text-align: center;
}

/* ----- 04 Events ----- */
.block-events { background: var(--paper); }
.events-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.event-card {
  background: var(--white); border-radius: 18px; padding: 28px 24px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.event-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
}
.event-card.accent-orange::before { background: linear-gradient(90deg, var(--orange), #FF9F4A); }
.event-card.accent-yellow::before { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.event-card.accent-navy::before { background: linear-gradient(90deg, var(--navy), var(--navy-soft)); }
.event-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
}
.event-card.accent-orange:hover { border-color: var(--orange); }
.event-card.accent-yellow:hover { border-color: var(--yellow); }
.event-card.accent-navy:hover { border-color: var(--navy); }
.ec-icon {
  font-size: 40px; margin-bottom: 12px; line-height: 1;
}
.ec-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--cream); color: var(--orange-deep); font-size: 11.5px;
  font-weight: 900; letter-spacing: 1.5px; margin-bottom: 8px;
}
.event-card.accent-navy .ec-tag { background: var(--navy); color: var(--white); }
.event-card.accent-orange .ec-tag { background: var(--orange); color: var(--white); }

/* Decorative watermark — big distance number + track curve */
.event-card > *:not(.ec-watermark) { position: relative; z-index: 1; }
.ec-watermark {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  border-radius: 18px;
}
.ec-watermark .ec-track {
  position: absolute; right: 0; top: 70px;
  width: 240px; height: 80px;
}
.event-card.accent-orange .ec-watermark .ec-track { color: var(--orange); }
.event-card.accent-yellow .ec-watermark .ec-track { color: var(--orange); opacity: 0.7; }
.event-card.accent-navy .ec-watermark .ec-track { color: var(--navy); }
.ec-bignum {
  position: absolute; top: 14px; right: 18px;
  display: flex; align-items: baseline;
  font-weight: 900; line-height: 1;
  letter-spacing: -3px;
  user-select: none;
}
.ec-bignum em {
  font-style: normal;
  font-size: 92px;
}
.ec-bignum i {
  font-style: normal;
  font-size: 28px;
  margin-left: 1px;
  letter-spacing: -1px;
  font-weight: 800;
}
.ec-bignum small {
  font-size: 14px; font-weight: 800;
  margin-left: 6px; letter-spacing: 1px;
  opacity: 0.85;
}
.event-card.accent-orange .ec-bignum { color: var(--orange); opacity: 0.16; }
.event-card.accent-yellow .ec-bignum { color: var(--orange-deep); opacity: 0.18; }
.event-card.accent-navy .ec-bignum { color: var(--navy); opacity: 0.13; }
.event-card:hover .ec-bignum { opacity: 0.22; transition: opacity .25s; }
.event-card.accent-navy:hover .ec-bignum { opacity: 0.18; }
.event-card h3 {
  margin: 6px 0 4px; color: var(--navy); font-size: 24px; font-weight: 900;
}
.ec-km {
  color: var(--muted); font-size: 13.5px; margin: 0 0 18px; font-weight: 600;
}
.ec-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.ec-meta div { text-align: center; }
.ec-meta span {
  display: block; font-size: 11px; color: var(--muted); font-weight: 700;
  letter-spacing: 1px; margin-bottom: 4px;
}
.ec-meta strong { font-size: 14px; color: var(--navy); font-weight: 800; }
.events-note {
  text-align: center; margin-top: 18px; color: var(--orange-deep);
  font-size: 13.5px; font-weight: 600;
}

/* ----- 05 Start order ----- */
.block-order { background: var(--cream); }
.order-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch;
}
.order-track {
  background: var(--white); border-radius: 18px; padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.lane {
  display: grid; grid-template-columns: 70px 1fr 110px; align-items: center; gap: 14px;
}
.lane-tag {
  background: var(--orange); color: var(--white); padding: 6px 10px;
  border-radius: 6px; font-weight: 800; font-size: 12.5px; text-align: center;
}
.lane-b .lane-tag { background: var(--navy); }
.lane-c .lane-tag { background: var(--muted); }
.lane-bar {
  display: block; height: 22px; border-radius: 12px; position: relative;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
  overflow: hidden; width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.lane-a .lane-bar::after {
  content: "🏃‍♂️"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 16px; animation: runPulse 2.4s ease-in-out infinite;
}
.lane-b .lane-bar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-soft) 100%);
  width: 75%;
}
.lane-c .lane-bar {
  background: linear-gradient(90deg, #9CA3AF 0%, #D1D5DB 100%);
  width: 55%;
}
@keyframes runPulse {
  0%,100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.1); }
}
.lane-time { font-size: 12.5px; color: var(--muted); font-weight: 700; }

.order-table-wrap {
  background: var(--white); border-radius: 18px; padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.order-table {
  width: 100%; border-collapse: collapse;
}
.order-table th, .order-table td {
  padding: 11px 8px; text-align: center; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.order-table thead th {
  background: var(--navy); color: var(--white); font-size: 13px;
  font-weight: 800; letter-spacing: 1px;
}
.order-table thead th:first-child { border-top-left-radius: 8px; }
.order-table thead th:last-child { border-top-right-radius: 8px; }
.order-table .gh {
  background: var(--cream); color: var(--orange-deep); font-weight: 900;
  font-size: 15px; vertical-align: middle;
}
.order-table .gg {
  background: var(--yellow-soft); color: var(--orange-deep); font-weight: 900;
  width: 60px;
}
.order-note {
  margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6;
}

/* ----- 06 Contact ----- */
.block-contact { background: var(--paper); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white); border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,199,44,0.25), transparent 70%);
}
.contact-main { position: relative; }
.contact-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--orange); color: var(--white); font-size: 11.5px;
  font-weight: 800; letter-spacing: 2.5px; margin-bottom: 16px;
}
.contact-tel {
  display: block; font-size: 56px; font-weight: 900; color: var(--white);
  letter-spacing: -2px; line-height: 1;
}
.contact-tel:hover { color: var(--yellow); }
.contact-sub {
  margin: 8px 0 0; color: var(--yellow); font-size: 15px; font-weight: 700; letter-spacing: 1px;
}
.contact-rows { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cr-row {
  display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center;
  padding: 12px 16px; background: rgba(255,255,255,0.08);
  border-radius: 10px; backdrop-filter: blur(2px);
}
.cr-k { color: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.cr-v { color: var(--white); font-size: 15px; font-weight: 600; }

/* ----- 07 Sponsors ----- */
.block-sponsors { background: var(--white); padding-bottom: 60px; }
.sponsors-image {
  background: var(--paper); border-radius: 18px; padding: 28px 36px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; justify-content: center; align-items: center;
}
.sponsors-image img {
  max-width: 880px; width: 100%; height: auto;
}

/* Responsive for the new sections */
@media (max-width: 980px) {
  .date-card { grid-template-columns: 1fr; }
  .place-card { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .apply-strip { grid-template-columns: 1fr; gap: 18px; }
  .apply-extras { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 30px; }
  .contact-tel { font-size: 44px; }
  .big-date .bd-md { font-size: 88px; }
  .block .section-head h2 { font-size: 32px; }
  .block { padding: 60px 0; }
}

/* ===== Naver Map / Location card ===== */
.naver-map-card {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--cream);
}
.naver-map-iframe {
  display: block; width: 100%; height: 420px; border: 0;
}
.naver-map-pin {
  position: absolute; top: 14px; left: 14px; pointer-events: none;
}
.nmp-marker {
  background: var(--white); border-radius: 10px; padding: 10px 14px;
  box-shadow: var(--shadow-md); border-left: 4px solid var(--orange);
  display: inline-block;
}
.nmp-marker .nmp-icon { font-size: 18px; margin-right: 6px; }
.nmp-marker strong { display: block; color: var(--navy); font-size: 14.5px; margin-top: 2px; }
.nmp-marker small { color: var(--muted); font-size: 12px; }

/* ===== Scroll reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .9s cubic-bezier(0.22, 1, 0.36, 1),
              transform .9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"].is-in { transition-delay: 0.08s; }
.reveal[data-delay="2"].is-in { transition-delay: 0.18s; }
.reveal[data-delay="3"].is-in { transition-delay: 0.28s; }
.reveal[data-delay="4"].is-in { transition-delay: 0.38s; }
.reveal[data-delay="5"].is-in { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Apply form consent card ===== */
.consent-card { padding-bottom: 18px; }
.consent-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-bottom: 8px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.consent-row:hover { border-color: var(--orange); }
.consent-row input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--orange); cursor: pointer;
}
.consent-row .cr-label {
  font-size: 14.5px; color: var(--text); line-height: 1.6; flex: 1;
}
.consent-row .cr-label strong {
  color: var(--orange-deep); margin-right: 4px; font-weight: 800;
}
.consent-all {
  margin-top: 10px; background: var(--white);
  border: 2px solid var(--orange); padding: 16px;
}
.consent-all .cr-label strong { color: var(--orange); }

.btn:disabled,
.btn[disabled] {
  background: #C7CDD6 !important; color: #fff !important;
  cursor: not-allowed; box-shadow: none; transform: none;
  opacity: 0.7;
}
.btn:disabled:hover { background: #C7CDD6 !important; transform: none; }
.apply-hint {
  margin: 12px 0 0; font-size: 13px; color: var(--orange-deep); font-weight: 600;
}

/* =================================================================
   ===== 출발순서 v2 — track stack (sleeker, full-width) =========
   ================================================================= */
.track-stack { display: flex; flex-direction: column; gap: 18px; }
.track-row {
  position: relative; display: grid;
  grid-template-columns: 290px 1fr; gap: 24px;
  background: var(--white); border-radius: 18px; padding: 22px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.track-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.track-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
}
.track-a::before { background: linear-gradient(180deg, var(--orange), #FFA84A); }
.track-b::before { background: linear-gradient(180deg, var(--navy), var(--navy-soft)); }
.track-c::before { background: linear-gradient(180deg, #9CA3AF, #D1D5DB); }
.track-row.track-a {
  background: linear-gradient(135deg, #FFF8EB 0%, #FFF1D5 100%);
  border-color: rgba(245,130,32,0.3);
}
.track-row.track-b {
  background: linear-gradient(135deg, #F5F7FB 0%, #E9EEF7 100%);
  border-color: rgba(26,46,74,0.2);
}
.track-row.track-c {
  background: linear-gradient(135deg, #FAFAFA 0%, #F0F2F4 100%);
}

.tr-badge {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center;
}
.tr-letter {
  width: 78px; height: 78px; border-radius: 18px;
  display: grid; place-items: center;
  font-size: 44px; font-weight: 900; color: var(--white);
  letter-spacing: -2px; line-height: 1;
}
.track-a .tr-letter {
  background: linear-gradient(135deg, var(--orange), #FF9F4A);
  box-shadow: 0 8px 20px rgba(245,130,32,0.4);
}
.track-b .tr-letter {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 8px 20px rgba(26,46,74,0.3);
}
.track-c .tr-letter {
  background: linear-gradient(135deg, #6B7280, #9CA3AF);
  box-shadow: 0 8px 20px rgba(107,114,128,0.3);
}

.tr-meta { display: flex; flex-direction: column; gap: 2px; }
.tr-order {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--orange-deep);
}
.track-b .tr-order { color: var(--navy-soft); }
.track-c .tr-order { color: var(--muted); }
.tr-label { font-size: 18px; font-weight: 900; color: var(--navy); letter-spacing: -0.3px; }
.tr-sub {
  font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--muted);
}
.tr-icon {
  font-size: 32px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.track-a .tr-icon { animation: trRun 2.4s ease-in-out infinite; }
@keyframes trRun {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.tr-times {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  align-items: stretch;
}
.tr-event {
  background: rgba(255,255,255,0.75); border-radius: 12px;
  padding: 12px 14px; backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.5);
}
.te-name {
  display: block; font-size: 12px; font-weight: 900; color: var(--navy);
  letter-spacing: 2px; margin-bottom: 8px;
}
.track-a .te-name { color: var(--orange-deep); }
.te-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.te-grid span {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--white); padding: 6px 8px; border-radius: 6px;
}
.te-grid i {
  font-style: normal; font-size: 11px; font-weight: 800;
  color: var(--white); background: var(--navy); padding: 1px 6px; border-radius: 3px;
}
.te-grid b {
  font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: -0.3px;
}

.tr-track-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(245,130,32,0.4) 0 12px,
    transparent 12px 22px
  );
  opacity: 0.3;
}
.track-b .tr-track-line { background: repeating-linear-gradient(90deg, rgba(26,46,74,0.4) 0 12px, transparent 12px 22px); }
.track-c .tr-track-line { background: repeating-linear-gradient(90deg, rgba(107,114,128,0.4) 0 12px, transparent 12px 22px); }

@media (max-width: 980px) {
  .track-row { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .tr-times { grid-template-columns: 1fr; }
}

/* =================================================================
   ===== Sponsors v2 — individual logos with transparency ======
   ================================================================= */
.sponsor-rows { display: flex; flex-direction: column; gap: 18px; }
.sponsor-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 22px; align-items: center;
  background: var(--white); border-radius: 16px; padding: 22px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sponsor-tag {
  display: grid; place-items: center;
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF9F4A);
  color: var(--white); font-size: 18px; font-weight: 900; letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(245,130,32,0.4);
}
.sponsor-row:nth-child(2) .sponsor-tag {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 6px 16px rgba(26,46,74,0.3);
}
.sponsor-row:nth-child(3) .sponsor-tag {
  background: linear-gradient(135deg, #6B7280, #9CA3AF);
  box-shadow: 0 6px 16px rgba(107,114,128,0.3);
}
.sponsor-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 28px 36px; padding: 6px 0;
}
.sp-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; min-height: 60px;
}
.sp-logo img {
  height: 56px; width: auto; max-width: 240px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
  transition: transform .2s;
}
.sp-logo:hover img { transform: scale(1.05); }
/* sp-tall preserved for backward compatibility but collapsed to default size */
.sp-logo.sp-tall img { height: 56px; max-width: 240px; }

@media (max-width: 600px) {
  .sponsor-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; text-align: center; }
  .sponsor-tag { margin: 0 auto; }
  .sponsor-logos { justify-content: center; gap: 18px 24px; }
}

/* =================================================================
   ===== 모시는 글 — large editorial typography =========
   ================================================================= */
.welcome-hero {
  position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, #FF9F4A 50%, var(--yellow) 100%);
  border-radius: 24px; padding: 60px 56px;
  color: var(--white); margin-bottom: 32px;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 16px 40px rgba(245,130,32,0.25);
}
.welcome-deco-orbit {
  position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none; z-index: -1;
}
.welcome-deco-orbit::after {
  content: ""; position: absolute; inset: 60px;
  border: 2px dashed rgba(255,255,255,0.3); border-radius: 50%;
}
.welcome-quote-mark {
  font-family: Georgia, serif; font-size: 180px; line-height: 0.5;
  color: rgba(255,255,255,0.35); margin-bottom: -20px;
  font-weight: 900;
}
.welcome-headline {
  font-size: 72px; font-weight: 900; line-height: 1.1; margin: 8px 0 18px;
  letter-spacing: -3px; text-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.welcome-headline .wh-accent {
  color: var(--navy); display: inline-block;
  background: var(--white); padding: 0 16px; border-radius: 8px;
  margin-top: 8px;
}
.welcome-subline {
  font-size: 20px; font-weight: 600; opacity: 0.95; margin: 0;
  letter-spacing: -0.3px;
}
.welcome-subline strong { background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 4px; font-weight: 800; }

.welcome-letter {
  background: var(--white); border-radius: 20px; padding: 56px 64px 48px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.welcome-letter::before {
  content: ""; position: absolute; left: 32px; top: 0; bottom: 0;
  width: 4px; background: linear-gradient(180deg, var(--orange), var(--yellow));
  border-radius: 2px;
}
.welcome-letter .wl-greeting {
  font-size: 32px; font-weight: 800; color: var(--navy);
  line-height: 1.3; margin: 0 0 28px; letter-spacing: -1px;
}
.welcome-letter .wl-body {
  font-size: 19px; font-weight: 500; color: #2A3B58;
  line-height: 1.85; margin: 0 0 20px; letter-spacing: -0.3px;
}
.welcome-letter .wl-emphasis {
  font-size: 22px; font-weight: 700; color: var(--orange-deep);
  line-height: 1.7; margin: 0 0 24px; letter-spacing: -0.5px;
  padding-left: 18px; border-left: 4px solid var(--orange);
}
.welcome-sign {
  margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.welcome-sign .ws-line {
  font-size: 13.5px; color: var(--muted); font-weight: 700; letter-spacing: 1px;
}
.welcome-sign .ws-org {
  font-size: 17px; color: var(--navy); font-weight: 800; letter-spacing: -0.3px;
}

@media (max-width: 980px) {
  .welcome-hero { padding: 44px 32px; border-radius: 18px; }
  .welcome-headline { font-size: 48px; letter-spacing: -2px; }
  .welcome-subline { font-size: 16px; }
  .welcome-quote-mark { font-size: 120px; }
  .welcome-letter { padding: 36px 28px; }
  .welcome-letter::before { left: 12px; }
  .welcome-letter .wl-greeting { font-size: 22px; margin-bottom: 18px; }
  .welcome-letter .wl-body { font-size: 16px; }
  .welcome-letter .wl-emphasis { font-size: 18px; }
}

/* =================================================================
   ===== 출발순서 v3 — Matrix layout (events × groups) =========
   ================================================================= */
.order-matrix {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border-radius: 18px; padding: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.om-head, .om-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, 1.1fr);
  gap: 12px; align-items: stretch;
}
.om-corner {
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  letter-spacing: 1.5px; padding: 14px 18px;
  background: var(--cream); border-radius: 12px;
}
.om-grouphead {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 12px; color: var(--white);
}
.om-grouphead.om-a { background: linear-gradient(135deg, var(--orange), #FF9F4A); box-shadow: 0 8px 18px rgba(245,130,32,0.35); }
.om-grouphead.om-b { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); box-shadow: 0 8px 18px rgba(26,46,74,0.30); }
.om-grouphead.om-c { background: linear-gradient(135deg, #6B7280, #9CA3AF); box-shadow: 0 8px 18px rgba(107,114,128,0.30); }
.omh-letter {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,0.20);
  display: grid; place-items: center;
  font-size: 32px; font-weight: 900; line-height: 1; letter-spacing: -1.5px;
  border: 2px solid rgba(255,255,255,0.45);
}
.omh-meta { display: flex; flex-direction: column; gap: 2px; }
.omh-meta strong { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.omh-meta small { font-size: 10.5px; opacity: 0.9; letter-spacing: 1.5px; font-weight: 700; }

.om-event {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  background: linear-gradient(135deg, #FFF8EB 0%, #FFF1D5 100%);
  border-radius: 12px; padding: 14px 18px;
  border: 1px solid rgba(245,130,32,0.25);
}
.om-icon {
  font-size: 28px; line-height: 1;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,0.7); border-radius: 12px;
}
.om-event-meta { display: flex; flex-direction: column; gap: 2px; }
.om-event-tag {
  display: inline-block; align-self: flex-start;
  background: var(--orange); color: var(--white);
  padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
}
.om-event-meta strong { font-size: 17px; color: var(--navy); font-weight: 800; letter-spacing: -0.3px; }
.om-event-meta small { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.om-cell {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.om-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.om-cell.om-a { border-color: rgba(245,130,32,0.35); background: linear-gradient(180deg, rgba(255,248,235,0.6) 0%, var(--white) 100%); }
.om-cell.om-b { border-color: rgba(26,46,74,0.20); }
.om-cell.om-c { border-color: rgba(107,114,128,0.20); background: linear-gradient(180deg, #FAFAFA 0%, var(--white) 100%); }
.omc-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 8px; background: rgba(0,0,0,0.02); border-radius: 6px;
}
.omc-row i {
  font-style: normal; font-size: 11px; font-weight: 800;
  color: var(--white); padding: 2px 7px; border-radius: 3px;
  background: var(--navy);
}
.om-cell.om-a .omc-row i { background: var(--orange); }
.om-cell.om-c .omc-row i { background: #6B7280; }
.omc-row b { font-size: 14.5px; font-weight: 800; color: var(--navy); letter-spacing: -0.3px; }
.om-cell.om-c .omc-row b { color: var(--muted); }

/* Mobile-only cell title — shown like "풀코스 A 빠른그룹" */
.omc-title { display: none; }

@media (max-width: 980px) {
  .om-head { display: none; }
  .om-row {
    grid-template-columns: 1fr; gap: 10px;
    background: var(--cream); padding: 14px; border-radius: 14px;
    border: 1px solid var(--line);
  }
  .om-corner { display: none; }
  .om-event { display: none; }
  .om-cell {
    padding: 14px 16px; border-radius: 12px;
  }
  .omc-title {
    display: flex; align-items: center; gap: 8px;
    margin: -2px 0 8px; padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
    font-weight: 800; color: var(--navy);
  }
  .omc-title .omc-event {
    font-size: 14.5px; letter-spacing: -0.2px;
  }
  .omc-title .omc-group {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text);
    margin-left: auto;
  }
  .omc-title .omc-group i {
    font-style: normal; font-weight: 900; font-size: 12px;
    color: var(--white); padding: 3px 8px; border-radius: 6px;
    background: var(--navy);
  }
  .om-cell.om-a .omc-title .omc-group i { background: var(--orange); }
  .om-cell.om-c .omc-title .omc-group i { background: #6B7280; }
  .om-cell.om-c .omc-title .omc-event,
  .om-cell.om-c .omc-title .omc-group { color: var(--muted); }
}

/* ===== Footer sponsors ===== */
.footer-sponsors {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-sp-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
}
.footer-sp-tag {
  background: var(--orange); color: var(--white);
  padding: 4px 0; border-radius: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-align: center; line-height: 1.6;
}
.footer-sp-row:nth-child(2) .footer-sp-tag { background: var(--yellow); color: var(--navy-deep); }
.footer-sp-row:nth-child(3) .footer-sp-tag { background: rgba(255,255,255,0.15); color: var(--yellow); }
.footer-sp-logos {
  background: var(--white); border-radius: 10px; padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  min-height: 48px;
}
.footer-sp-logos img {
  max-height: 28px; width: auto; max-width: 130px; display: block;
  flex: 0 0 auto;
}
.footer-sp-logos img.tall { max-height: 44px; max-width: 160px; }

@media (max-width: 600px) {
  .footer-sp-row { grid-template-columns: 1fr; }
  .footer-sp-tag { width: 56px; }
  .footer-sp-logos { gap: 10px 16px; padding: 10px 12px; }
  .footer-sp-logos img { max-height: 24px; }
}

/* ===== Big Apply / Check CTA buttons ===== */
.apply-cta-wrap {
  text-align: center; margin-top: 30px;
}
.apply-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 28px 56px; min-width: 380px;
  background: linear-gradient(135deg, var(--runit) 0%, var(--runit-light) 100%);
  color: var(--white); border: 0; border-radius: 18px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  cursor: pointer; transition: transform .2s, box-shadow .25s, filter .2s;
  box-shadow: 0 12px 28px rgba(110,46,229,0.4);
}
.apply-cta-btn:hover:not(:disabled) {
  transform: translateY(-3px); box-shadow: 0 18px 36px rgba(110,46,229,0.5);
}
.apply-cta-btn:active:not(:disabled) { transform: translateY(0); }
.apply-cta-btn:disabled {
  background: linear-gradient(135deg, #C7CDD6 0%, #B7BDC6 100%) !important;
  cursor: not-allowed; box-shadow: none;
}
.apply-cta-btn .acb-tag {
  background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.35);
  padding: 4px 12px; border-radius: 6px; font-size: 12px;
  font-weight: 800; letter-spacing: 2px;
}
.apply-cta-btn .acb-text {
  font-size: 24px; font-weight: 900;
}
.apply-cta-btn .acb-arrow {
  font-size: 24px; font-weight: 900;
  transition: transform .25s;
}
.apply-cta-btn:hover:not(:disabled) .acb-arrow {
  transform: translateX(6px);
}

.runit-text { color: var(--runit); font-weight: 800; }

/* Mobile-only line break helper */
br.mb-only { display: none; }
@media (max-width: 600px) {
  br.mb-only { display: inline; }
}

/* ===== Apply: 3 type cards ===== */
.apply-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.apply-type-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .25s, transform .2s;
}
.apply-type-card:hover {
  border-color: var(--runit);
  box-shadow: 0 12px 28px rgba(110,46,229,0.15);
  transform: translateY(-2px);
}
.apply-type-card .atc-tag {
  display: inline-block; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
  background: var(--runit); color: var(--white);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.apply-type-card .atc-tag.tag-group { background: var(--navy); }
.apply-type-card .atc-tag.tag-team { background: var(--orange); }
.apply-type-card h3 {
  margin: 0 0 8px; font-size: 19px; color: var(--navy); font-weight: 900;
  letter-spacing: -0.4px; padding: 0; border: 0;
}
.apply-type-card p {
  margin: 0 0 18px; color: var(--text); font-size: 13.5px; line-height: 1.65;
  flex: 1;
}
.apply-type-card .apply-cta-btn {
  min-width: 0; width: 100%;
  padding: 16px 18px; gap: 10px;
  font-size: 15px; border-radius: 12px;
  box-shadow: 0 6px 14px rgba(110,46,229,0.28);
}
.apply-type-card .apply-cta-btn .acb-tag {
  font-size: 10.5px; padding: 3px 8px; letter-spacing: 1.4px;
}
.apply-type-card .apply-cta-btn .acb-text { font-size: 15px; }
.apply-type-card .apply-cta-btn .acb-arrow { font-size: 16px; }

.apply-cta-btn.variant-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #2A446A 100%);
  box-shadow: 0 6px 14px rgba(26,46,74,0.32);
}
.apply-cta-btn.variant-navy:hover:not(:disabled) {
  box-shadow: 0 12px 24px rgba(26,46,74,0.40);
}
.apply-cta-btn.variant-orange {
  background: linear-gradient(135deg, var(--orange) 0%, #FF9F4A 100%);
  box-shadow: 0 6px 14px rgba(245,130,32,0.32);
}
.apply-cta-btn.variant-orange:hover:not(:disabled) {
  box-shadow: 0 12px 24px rgba(245,130,32,0.40);
}

#apply-hint.apply-hint {
  text-align: center; margin: 16px 0 0;
  color: var(--muted); font-size: 13px;
}

@media (max-width: 900px) {
  .apply-types { grid-template-columns: 1fr; gap: 12px; }
  .apply-type-card { padding: 22px 20px; }
}

/* Apply template download modal */
.apply-template-modal .tpl-modal-box { max-width: 460px; width: min(94vw, 460px); }
.apply-template-modal .login-sub { margin-bottom: 16px; line-height: 1.6; }
.apply-template-modal .login-sub strong { color: var(--runit-deep); font-weight: 800; }
.tpl-info {
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.tpl-info-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
}
.tpl-info-row .tpl-k {
  color: var(--muted); font-weight: 700; min-width: 80px;
}
.tpl-info-row .tpl-v {
  color: var(--navy); font-weight: 700;
  text-decoration: none;
}
.tpl-info-row .tpl-v:hover { color: var(--orange-deep); text-decoration: underline; }
.tpl-actions { justify-content: flex-end; }
.tpl-actions .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; font-size: 14.5px;
}

/* ===== Check (Runit) CTA card ===== */
.check-cta-card {
  background: var(--white); border-radius: 20px;
  padding: 56px 48px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.check-cta-card::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(123,61,254,0.18), transparent 70%);
  border-radius: 50%;
}
.check-cta-card .check-icon {
  margin: 0 auto 16px;
  width: 96px; height: 96px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(110,46,229,0.32);
  display: block;
}
.check-cta-card h3 {
  font-size: 28px; color: var(--navy); font-weight: 900;
  margin: 0 0 14px; letter-spacing: -0.5px; padding: 0; border: 0;
}
.check-cta-card .brand-text {
  color: var(--runit);
  background: linear-gradient(180deg, transparent 60%, rgba(123,61,254,0.18) 60%);
  padding: 0 6px;
}
.check-cta-card .check-msg {
  color: var(--text); font-size: 15.5px; line-height: 1.85;
  margin: 0 0 28px; max-width: 600px; margin-inline: auto;
}
.check-cta-card .check-msg strong { color: var(--runit-deep); font-weight: 800; }
.check-cta-card .check-note {
  margin-top: 22px; font-size: 13.5px; color: var(--muted); font-weight: 600;
}

@media (max-width: 600px) {
  .apply-cta-btn { min-width: 0; width: 100%; padding: 22px 24px; gap: 12px; }
  .apply-cta-btn .acb-text { font-size: 18px; }
  .check-cta-card { padding: 40px 24px; }
  .check-cta-card h3 { font-size: 22px; }
}

/* =================================================================
   ===== Mobile responsive fixes =================================
   ================================================================= */

/* Tables: enable horizontal scroll on small screens by setting min-width */
@media (max-width: 600px) {
  .tbl-wrap {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
  }
  .tbl { min-width: 0; table-layout: auto; width: 100%; }
  .tbl th, .tbl td {
    padding: 8px 6px; font-size: 12.5px;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.4;
  }
  /* Allow wrapping in all cells so tables fit without horizontal scroll */
  .tbl td:nth-child(n+2) { white-space: normal; }

  /* Board table: prevent character-by-character vertical wrap */
  .board-table {
    min-width: 560px;
    table-layout: auto;
  }
  .board-table thead th,
  .board-table tbody td {
    padding: 10px 8px; font-size: 13px; white-space: nowrap;
  }
  .board-table td.title {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 220px; min-width: 180px;
  }
  /* Wrap board in scrollable container */
  #board-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px;
    padding: 0 8px 4px;
  }
  .board-toolbar { gap: 8px; }

  /* Calendar grid — tighter cells */
  .cal-grid { gap: 2px; }
  .cal-grid .ch { font-size: 10.5px; padding: 4px 0; }
  .cal-grid .cd { font-size: 12.5px; padding: 6px 0; border-radius: 6px; }
  .cal-grid .cd-active { font-size: 14px; }
  .date-cal { padding: 18px; }
  .cal-month { font-size: 18px; margin-bottom: 8px; }

  /* Date section large numbers */
  .big-date .bd-md { font-size: 80px; letter-spacing: -3px; }
  .clock .ck-v { font-size: 38px; }
  .clock .ck-v small { font-size: 22px; }

  /* Order matrix on mobile */
  .om-grouphead { padding: 10px 12px; }
  .om-event { padding: 10px 12px; }
  .om-cell { padding: 10px 12px; }
  .omc-row b { font-size: 13.5px; }

  /* Track times on mobile */
  .tr-times { grid-template-columns: 1fr; gap: 8px; }

  /* Forms: stack labels above inputs */
  .form-row {
    grid-template-columns: 1fr; gap: 6px;
    padding: 10px 0;
  }

  /* Page title smaller on tiny screens */
  .page-title { font-size: 26px; }
  .section-head h2 { font-size: 28px !important; }

  /* Hero adjust */
  .hero { padding: 56px 0 60px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }

  /* Container padding tight */
  .container { padding: 0 16px; }

  /* Topbar text hide already handled */
  .topbar-inner { padding: 6px 16px; font-size: 11.5px; }
  .topbar-cta { font-weight: 700; }

  /* Footer */
  .footer-inner { padding: 32px 16px 16px; gap: 20px; }
  .footer-meta div { font-size: 13px; line-height: 1.5; }

  /* Naver map iframe height */
  .naver-map-iframe { height: 320px; }

  /* Welcome page typography on mobile */
  .welcome-headline { font-size: 36px !important; letter-spacing: -1.5px; }
  .welcome-subline { font-size: 14px !important; }
  .welcome-letter { padding: 28px 22px !important; }
  .welcome-letter::before { left: 8px !important; }
  .welcome-letter .wl-greeting { font-size: 20px !important; }
  .welcome-letter .wl-body { font-size: 15px !important; line-height: 1.7; }
  .welcome-letter .wl-emphasis { font-size: 16.5px !important; padding-left: 14px !important; }

  /* Apply CTA button mobile */
  .apply-cta-btn .acb-text { font-size: 17px; }
  .apply-cta-btn .acb-tag { padding: 3px 9px; font-size: 11px; }
  .apply-cta-btn { padding: 18px 20px; gap: 10px; }

  /* Check (런잇) card */
  .check-cta-card { padding: 32px 20px !important; }
  .check-cta-card h3 { font-size: 19px !important; line-height: 1.4; }
  .check-cta-card .check-msg { font-size: 14px; }

  /* Sponsors v2 mobile */
  .sponsor-row { padding: 16px 18px !important; }
  .sponsor-tag { width: 60px; height: 60px; font-size: 16px; }
  .sp-logo img { height: 42px; max-width: 160px; }
  .sp-logo.sp-tall img { height: 42px; max-width: 160px; }

  /* Place section */
  .place-card { border-radius: 16px; }
  .place-info { padding: 22px 20px; }
  .place-info h3 { font-size: 20px; }

  /* Events grid */
  .events-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .event-card { padding: 22px 20px 20px; }
  .ec-bignum em { font-size: 78px; }
  .ec-bignum i { font-size: 22px; }
  .ec-watermark .ec-track { width: 200px; height: 64px; top: 60px; }

  /* Event meta grid */
  .ec-meta { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .ec-meta strong { font-size: 13px; }
  .ec-meta span { font-size: 10.5px; }
}

/* Even tighter for very small screens */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 26px; }
  .big-date .bd-md { font-size: 64px; }
  .cal-grid .cd { font-size: 11.5px; padding: 5px 0; }
  .cal-grid .cd-active { font-size: 13px; }
}

/* ===== Login (Admin) ===== */
.board-login-bar {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 8px; margin: -4px 0 8px;
}
.btn-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 700;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--navy); border-radius: 6px;
  cursor: pointer; line-height: 1; transition: all .15s;
}
.btn-login:hover { background: var(--navy); color: var(--white); }
.btn-login.is-on { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-login.is-on:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.login-status-tag {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.login-status-tag strong { color: var(--orange); }
.reply-badge {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  margin-left: 6px; vertical-align: middle;
}

/* Login modal */
.login-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.login-modal[hidden] { display: none; }
.login-modal-backdrop {
  position: absolute; inset: 0; background: rgba(14,30,51,0.55);
}
.login-modal-box {
  position: relative; width: min(92vw, 380px);
  background: var(--white); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  border-top: 4px solid var(--orange);
  padding: 28px 26px 22px;
}
.login-modal-box h3 {
  margin: 0 0 4px; color: var(--navy); font-size: 20px; letter-spacing: -.3px;
}
.login-modal-box .login-sub {
  margin: 0 0 18px; color: var(--muted); font-size: 13px;
}
.login-modal-box .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.login-modal-box .form-row label { font-size: 13px; font-weight: 700; color: var(--navy); }
.login-modal-box .form-row input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px;
}
.login-modal-box .form-row input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.login-error {
  display: none; color: #c0392b; font-size: 13px; font-weight: 600;
  background: #fdecea; border: 1px solid #f5c6c1; padding: 8px 10px;
  border-radius: 6px; margin-bottom: 10px;
}
.login-modal .btn-row { margin-top: 8px; justify-content: flex-end; }
.login-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; border: 0; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.login-modal-close:hover { color: var(--navy); }

/* QnA replies */
.replies { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.replies h4 { margin: 0 0 12px; color: var(--navy); font-size: 15px; }
.reply-item {
  background: #fff7ec; border-left: 3px solid var(--orange);
  padding: 12px 14px; border-radius: 6px; margin-bottom: 10px;
}
.reply-item .reply-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.reply-item .reply-meta strong { color: var(--orange-deep); }
.reply-item .reply-body { white-space: pre-wrap; line-height: 1.7; font-size: 14px; }
.reply-item .reply-actions { margin-top: 6px; }
.reply-item .reply-actions button {
  background: transparent; border: 0; color: var(--muted);
  font-size: 12px; cursor: pointer; padding: 0;
}
.reply-item .reply-actions button:hover { color: #c0392b; }
.reply-form { margin-top: 14px; }
.reply-form textarea {
  width: 100%; min-height: 90px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; resize: vertical;
}

/* Gallery board */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  text-align: left; padding: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  font: inherit; color: inherit;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: var(--orange);
}
.gallery-thumb {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3;
  background: #f3f3f3 center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.gallery-placeholder {
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.gallery-count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(14,30,51,0.78); color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 12px;
}
.gallery-meta { padding: 12px 14px 14px; }
.gallery-title {
  font-weight: 700; color: var(--navy); font-size: 14.5px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-sub {
  margin-top: 6px;
  color: var(--muted); font-size: 12.5px;
}

/* Gallery post detail images */
.post-images {
  display: flex; flex-direction: column; gap: 12px;
  margin: 16px 0 20px;
}
.post-image {
  margin: 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.post-image img {
  display: block; width: 100%; height: auto;
}

/* Image upload preview */
.images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.images-preview-item {
  width: 100%; aspect-ratio: 1 / 1;
  background: #eee center / cover no-repeat;
  border-radius: 6px;
  border: 1px solid var(--line);
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-title { font-size: 13.5px; }
  .gallery-sub { font-size: 11.5px; }
}
