@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* ==========================================================================
   서강대학교 글쓰기센터 홈페이지 개편 — 제안 시안(Mockup)
   노상우 / 2026.09
   ※ 실제 서비스가 아닌 제안 목적의 화면 시안입니다.
   ========================================================================== */

:root {
  /* 색 */
  --brand:        #8E1B2E;
  --brand-deep:   #5E0F1E;
  --brand-bright: #C8102E;
  --brand-tint:   #FCF0F2;
  --brand-tint-2: #F5DCE1;
  --brand-line:   #E9C7CE;

  --ink:      #17120F;
  --ink-2:    #423A36;
  --ink-3:    #746A64;
  --ink-4:    #A69C96;

  --paper:    #FFFFFF;
  --paper-2:  #FBFAF9;
  --paper-3:  #F4F1EF;
  --paper-4:  #EBE6E3;
  --line:     #E8E3DF;
  --line-2:   #D6CFCA;

  --ok:       #146A47;
  --ok-tint:  #E6F3EC;
  --warn:     #96590B;
  --warn-tint:#FDF3E2;
  --info:     #17457E;
  --info-tint:#EAF1F9;
  --stop:     #9E1C1C;
  --stop-tint:#FBEBEB;

  /* 간격 8pt 스케일 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px; --s10: 80px; --s11: 104px;

  /* 라운드 */
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 26px; --r-full: 999px;

  /* 그림자 — 얇은 테두리 + 부드러운 확산 2겹 */
  --sh-1: 0 1px 2px rgba(23,18,15,.05), 0 2px 6px rgba(23,18,15,.04);
  --sh-2: 0 2px 4px rgba(23,18,15,.05), 0 10px 24px -6px rgba(23,18,15,.10);
  --sh-3: 0 4px 8px rgba(23,18,15,.06), 0 24px 56px -12px rgba(23,18,15,.20);
  --sh-in: inset 0 1px 0 rgba(255,255,255,.6);

  --maxw: 1240px;
  --hdr: 68px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.028em; line-height: 1.32; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-s);
  font-weight: 600; transition: top .15s;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 시안 고지 배너 ===================================================== */
.mock-flag {
  background: #17120F; color: #E9E0DD; font-size: 12.5px; letter-spacing: -.01em;
  position: relative; z-index: 100;
}
.mock-flag .wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 40px; padding-top: 8px; padding-bottom: 8px;
}
.mock-flag b {
  background: var(--brand-bright); color: #fff; padding: 3px 9px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.mock-flag > .wrap > span { color: #B0A5A0; }
.mock-flag .short { display: none; }
/* 시안 탐색 링크 — 제안 관련 이동 경로는 전부 이 막대 안에만 둔다 */
.mock-flag .mock-nav { display: flex; gap: 14px; margin-left: auto; flex-shrink: 0; }
.mock-flag .mock-nav a {
  color: #FFC9D2; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid rgba(255,201,210,.4); padding-bottom: 1px;
}
.mock-flag .mock-nav a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 900px) {
  .mock-flag .long { display: none; }
  .mock-flag .short { display: inline; }
  .mock-flag .wrap { gap: 8px 12px; }
  .mock-flag .mock-nav { margin-left: auto; gap: 10px; font-size: 11.5px; }
}

/* ===== 헤더 ============================================================== */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; gap: var(--s5); height: var(--hdr); }
.hdr-act .btn, .sso-chip { white-space: nowrap; }

.logo { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; letter-spacing: -.05em;
  box-shadow: 0 2px 8px rgba(142,27,46,.28);
}
.logo .txt { line-height: 1.15; overflow: hidden; }
.logo .txt strong { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.035em; }
.logo .txt small { display: block; font-size: 9.5px; color: var(--ink-3); letter-spacing: .1em; font-weight: 600; }

.gnb { display: flex; gap: 2px; margin-left: auto; }
.gnb > li > a {
  display: block; padding: 9px 13px; border-radius: var(--r-s); white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: .14s var(--ease);
}
.gnb > li > a:hover { background: var(--paper-3); color: var(--ink); }
.gnb > li > a[aria-current] { color: var(--brand); background: var(--brand-tint); }

.hdr-act { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }

/* ===== 버튼 ============================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--r-s); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 650; cursor: pointer; transition: .15s var(--ease);
  white-space: nowrap; letter-spacing: -.01em;
}
.btn-pri {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(94,15,30,.2), 0 4px 12px -2px rgba(142,27,46,.28);
}
.btn-pri:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(94,15,30,.24), 0 8px 20px -4px rgba(142,27,46,.36); }
.btn-pri:active { transform: none; }
.btn-gho { background: var(--paper); color: var(--ink-2); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-gho:hover { background: var(--paper-2); border-color: var(--ink-4); color: var(--ink); }
.btn-soft { background: var(--brand-tint); color: var(--brand); }
.btn-soft:hover { background: var(--brand-tint-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C2420; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--r-m); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }

.sso-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 6px; border-radius: var(--r-full);
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.burger { display: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 9px 11px; cursor: pointer; }

/* ===== 아바타 =========================================================== */
.av {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand); letter-spacing: -.02em;
}
.av-lg { width: 40px; height: 40px; font-size: 14.5px; }
.av-xl { width: 56px; height: 56px; font-size: 19px; border-radius: 16px; }
.av-a { background: linear-gradient(140deg,#8E1B2E,#B8354B); }
.av-b { background: linear-gradient(140deg,#1F4E7A,#3777AE); }
.av-c { background: linear-gradient(140deg,#1F6B4C,#2E9670); }
.av-d { background: linear-gradient(140deg,#8A5A12,#B98322); }
.av-e { background: linear-gradient(140deg,#5A3C86,#8163B4); }
.avstack { display: flex; }
.avstack .av { border: 2px solid var(--paper); margin-left: -8px; }
.avstack .av:first-child { margin-left: 0; }

/* ===== 페이지 헤드 / 서브 히어로 ========================================= */
.phead { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: var(--s8) 0 var(--s7); }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.crumb li + li::before { content: "›"; margin-right: 8px; color: var(--ink-4); }
.crumb li { display: flex; align-items: center; }
.phead h1 { font-size: 34px; letter-spacing: -.04em; }
.phead .desc { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }

/* 사진 서브 히어로 */
.subhero { position: relative; overflow: hidden; background: var(--ink); }
.subhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.subhero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(23,18,15,.92) 0%, rgba(23,18,15,.72) 42%, rgba(94,15,30,.42) 100%);
}
.subhero .wrap { position: relative; z-index: 2; padding: var(--s9) var(--s6); color: #fff; }
.subhero .crumb { color: rgba(255,255,255,.6); }
.subhero .crumb li + li::before { color: rgba(255,255,255,.4); }
.subhero h1 { font-size: 38px; letter-spacing: -.04em; }
.subhero .desc { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 16.5px; max-width: 58ch; line-height: 1.7; }

/* ===== 카드 ============================================================= */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--sh-1);
}
.card-p { padding: var(--s6); }
.card-hd {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s6); border-bottom: 1px solid var(--line);
}
.card-hd h2, .card-hd h3 { font-size: 16px; letter-spacing: -.028em; }
.card-hd .more { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 650; }
.card-hd .more:hover { color: var(--brand); }

.sec { padding: var(--s10) 0; }
.sec-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-hd { margin-bottom: var(--s7); }
.sec-hd .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 12px;
}
.sec-hd .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.sec-hd h2 { font-size: 32px; letter-spacing: -.04em; }
.sec-hd p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; font-size: 16px; }
.sec-hd.ctr { text-align: center; }
.sec-hd.ctr .eyebrow { justify-content: center; }
.sec-hd.ctr p { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: var(--s5); }
.grid > *, .adm > *, .hero .wrap > * { min-width: 0; }
.card, .tblwrap, .adm-main, .adm-side { min-width: 0; }
.tblwrap { max-width: 100%; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-8-4 { grid-template-columns: minmax(0,2.05fr) minmax(0,1fr); }
.g-4-8 { grid-template-columns: minmax(0,1fr) minmax(0,2.4fr); }

/* ===== 태그 ============================================================= */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; letter-spacing: -.01em;
  background: var(--paper-3); color: var(--ink-2); white-space: nowrap;
}
.tag-red   { background: var(--brand-tint); color: var(--brand); }
.tag-ok    { background: var(--ok-tint); color: var(--ok); }
.tag-warn  { background: var(--warn-tint); color: var(--warn); }
.tag-info  { background: var(--info-tint); color: var(--info); }
.tag-mute  { background: var(--paper-3); color: var(--ink-3); }
.tag-solid { background: var(--brand); color: #fff; }
.tag-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.req { color: var(--brand-bright); font-weight: 700; }

.rid {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: #17120F; color: #FFD3DA; font-size: 11px; font-weight: 700;
  font-family: var(--mono); letter-spacing: .01em;
}

/* ===== 폼 =============================================================== */
.field { margin-bottom: var(--s5); }
.field > label, .lbl {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px;
  letter-spacing: -.01em;
}
.inp, .sel, .ta {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--paper); font-size: 14.5px; transition: .14s var(--ease); box-shadow: var(--sh-in);
}
.inp:focus, .sel:focus, .ta:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
.ta { min-height: 100px; resize: vertical; }
.hint { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: .14s var(--ease);
}
.chip:hover { border-color: var(--ink-4); background: var(--paper-2); }
.chip[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 2px 8px -2px rgba(142,27,46,.4);
}
.chip:disabled { opacity: .4; cursor: not-allowed; }

.drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-l); padding: var(--s7) var(--s5);
  text-align: center; background: var(--paper-2); transition: .15s var(--ease); cursor: pointer;
}
.drop:hover { border-color: var(--brand); background: var(--brand-tint); }
.drop .ico {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 20px; color: var(--brand); box-shadow: var(--sh-1);
}
.drop strong { display: block; font-size: 15px; margin-bottom: 5px; }
.drop small { color: var(--ink-3); font-size: 12.5px; }

.filerow {
  display: flex; align-items: center; gap: var(--s3); padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); margin-top: 10px;
}
.filerow .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.filerow .meta { flex: 1; min-width: 0; }
.filerow .meta strong { display: block; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow .meta small { color: var(--ink-3); font-size: 12px; }

/* ===== 스텝퍼 =========================================================== */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: var(--s7); }
.steps li { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; font-size: 14px; font-weight: 650; color: var(--ink-4); }
.steps li span.tx { white-space: nowrap; }
.steps li:last-child { flex: 0 0 auto; }
.steps .n {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--paper); color: var(--ink-4); border: 1.5px solid var(--line-2);
}
.steps li[data-on] { color: var(--ink); }
.steps li[data-on] .n { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.steps li[data-done] .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.steps li[data-done] { color: var(--ink-2); }
.steps .bar { flex: 1; height: 2px; background: var(--line); margin: 0 14px; }
.steps li[data-done] .bar { background: var(--ok); }

/* ===== 예약: 주간 슬롯 보드 ============================================== */
.weeknav { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s4); }
.weeknav .rng { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.weeknav .nav { margin-left: auto; display: flex; gap: 6px; }
.weeknav .nav button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--paper); cursor: pointer; color: var(--ink-2); font-size: 13px;
}
.weeknav .nav button:hover { background: var(--paper-3); }

.wboard { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.wcol { min-width: 0; }
.wcol .dh {
  text-align: center; padding: 9px 4px 10px; border-radius: var(--r-s) var(--r-s) 0 0;
  background: var(--paper-3); border: 1px solid var(--line); border-bottom: 0;
}
.wcol .dh .dow { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.wcol .dh .d { font-size: 17px; font-weight: 800; letter-spacing: -.03em; margin-top: 1px; }
.wcol .dh .c { font-size: 10.5px; font-weight: 700; color: var(--ok); margin-top: 2px; }
.wcol.today .dh { background: var(--brand-tint); border-color: var(--brand-line); }
.wcol.today .dh .d { color: var(--brand); }
.wcol .body {
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-s) var(--r-s);
  padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); min-height: 190px;
}
.slot {
  width: 100%; border: 1px solid var(--line-2); border-radius: 7px; background: var(--paper);
  padding: 8px 6px; text-align: center; cursor: pointer; transition: .13s var(--ease);
}
.slot .t { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.slot .s { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.slot[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 2px 10px -2px rgba(142,27,46,.5);
}
.slot[aria-pressed="true"] .s { color: rgba(255,255,255,.8); }
.slot:disabled { background: var(--paper-3); color: var(--ink-4); cursor: not-allowed; border-style: dashed; }
.slot:disabled .s { color: var(--ink-4); }
.wempty { text-align: center; font-size: 11.5px; color: var(--ink-4); padding: 14px 4px; }

/* 선택 요약(큰 날짜) */
.pickbox { display: flex; gap: var(--s4); align-items: center; padding: var(--s4); border: 1px solid var(--brand-line); border-radius: var(--r-m); background: var(--brand-tint); }
.pickbox .big { text-align: center; padding: 8px 14px; background: var(--paper); border-radius: var(--r-s); box-shadow: var(--sh-1); }
.pickbox .big .m { font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.pickbox .big .d { font-size: 26px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.pickbox .big .w { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.pickbox .info b { display: block; font-size: 16px; letter-spacing: -.02em; }
.pickbox .info span { font-size: 13px; color: var(--ink-2); }

/* ===== 테이블 =========================================================== */
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.tbl th {
  text-align: left; padding: 12px 16px; background: var(--paper-2);
  font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
  border-bottom: 1px solid var(--line); letter-spacing: .01em;
}
.tbl th.sortable::after { content: " ⇅"; color: var(--ink-4); font-size: 10px; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--paper-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ctr { text-align: center; }
.tbl a.subj { font-weight: 650; }
.tbl a.subj:hover { color: var(--brand); text-decoration: underline; }
.tbl .who { display: flex; align-items: center; gap: 9px; }
.tbl .who b { font-weight: 650; }
.tbl .who small { color: var(--ink-3); font-size: 12px; display: block; line-height: 1.3; }

/* ===== 리스트 =========================================================== */
.notice li { border-bottom: 1px solid var(--line); }
.notice li:last-child { border-bottom: 0; }
.notice a { display: flex; align-items: center; gap: var(--s3); padding: 14px 0; }
.notice a:hover .s { color: var(--brand); text-decoration: underline; }
.notice .s { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice .d { font-size: 12.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ===== 통계 타일 ======================================================== */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s4); }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: var(--s5); box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.tile .k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.tile .v { font-size: 30px; font-weight: 800; letter-spacing: -.045em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .v small { font-size: 14px; font-weight: 650; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.tile .delta { font-size: 12px; font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.tile .delta.up { color: var(--ok); }
.tile .delta.dn { color: var(--stop); }
.tile .spark { position: absolute; right: 0; bottom: 0; width: 96px; height: 42px; opacity: .9; }

/* 가로 바 */
.hbars li { display: grid; grid-template-columns: 104px minmax(0,1fr) 56px; align-items: center; gap: var(--s3); padding: 8px 0; }
.hbars .n { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.hbars .t { height: 10px; background: var(--paper-3); border-radius: var(--r-full); overflow: hidden; }
.hbars .t i { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--brand-deep), var(--brand)); }
.hbars .v { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* 차트 */
.chartbox { position: relative; }
.chartbox svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s3); font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }

/* ===== 타임라인 ======================================================== */
.tl { position: relative; padding-left: 28px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 var(--s5); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2);
}
.tl li[data-done]::before { background: var(--ok); border-color: var(--ok); }
.tl li[data-now]::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint); }
.tl .ti { font-size: 14.5px; font-weight: 700; }
.tl .tm { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.tl li:not([data-done]):not([data-now]) .ti { color: var(--ink-4); font-weight: 600; }

/* ===== 관리자 레이아웃 ================================================== */
.adm { display: grid; grid-template-columns: 244px minmax(0,1fr); min-height: calc(100vh - var(--hdr) - 40px); }
.adm-side { background: #17120F; padding: var(--s5) var(--s3); }
.adm-side .who {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px var(--s4); margin-bottom: 6px;
  border-bottom: 1px solid #322925;
}
.adm-side .who b { display: block; color: #fff; font-size: 13.5px; }
.adm-side .who small { color: #8D817C; font-size: 11.5px; }
.adm-side h4 { color: #756963; font-size: 10.5px; letter-spacing: .1em; padding: var(--s4) 12px 6px; text-transform: uppercase; font-weight: 800; }
.adm-side a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-s);
  color: #C4B9B4; font-size: 14px; font-weight: 550; transition: .14s var(--ease);
}
.adm-side a:hover { background: #251E1B; color: #fff; }
.adm-side a[aria-current] { background: var(--brand); color: #fff; font-weight: 650; }
.adm-side a .ic { width: 18px; text-align: center; opacity: .92; }
.adm-side a .cnt {
  margin-left: auto; background: #322925; color: #C4B9B4; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: var(--r-full);
}
.adm-side a[aria-current] .cnt { background: rgba(255,255,255,.22); color: #fff; }
.adm-main { padding: var(--s6) var(--s7) var(--s10); background: var(--paper-2); min-width: 0; }
.adm-hd { display: flex; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.adm-hd h1 { font-size: 25px; letter-spacing: -.04em; }
.adm-hd p { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.adm-hd .act { margin-left: auto; display: flex; gap: 8px; }

.toolbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: var(--s3) var(--s5); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-l) var(--r-l) 0 0; border-bottom: 0;
}
.toolbar .sp { margin-left: auto; }

.perm td.ctr i { font-style: normal; font-size: 15px; }
.perm .yes { color: var(--ok); }
.perm .no  { color: var(--ink-4); }
.perm .par { color: var(--warn); }

/* ===== 시네마틱 영상 히어로 ============================================== */
.hero {
  position: relative; background: #0E0708; overflow: hidden;
  min-height: min(78vh, 720px); display: flex; align-items: center;
}
/* 영상 레이어 — 클립 여러 개를 겹쳐 두고 opacity로 교차 전환한다 */
.hero .media { position: absolute; inset: 0; z-index: 0; }
.hero .media video,
.hero .media img.fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero .media video[data-on],
.hero .media img.fallback[data-on] { opacity: 1; }
/* 첫 클립은 스크립트 이전에도 보이게 */
.hero .media video:first-of-type { opacity: 1; }
.hero .media.js-ready video:first-of-type:not([data-on]) { opacity: 0; }

.hero .scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(14,7,8,.92) 0%, rgba(40,9,16,.80) 30%, rgba(74,12,24,.46) 58%, rgba(90,18,32,.20) 100%),
    linear-gradient(0deg, rgba(14,7,8,.88) 0%, rgba(14,7,8,.18) 34%, rgba(14,7,8,0) 62%);
}

.hero .wrap {
  position: relative; z-index: 2; color: #fff;
  padding: var(--s11) var(--s6) calc(var(--s11) + 20px);
  width: 100%;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; color: rgba(255,255,255,.72); margin-bottom: var(--s5);
}
.hero .eyebrow::before { content: ""; width: 26px; height: 1.5px; background: #FFC2CD; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.055em; line-height: 1.14; font-weight: 800;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero h1 em { font-style: normal; color: #FFC2CD; }
.hero p.lead {
  margin-top: var(--s5); font-size: clamp(15px, 1.35vw, 18px);
  color: rgba(255,255,255,.82); max-width: 34ch; line-height: 1.7;
}
.hero .cta { display: flex; gap: 10px; margin-top: var(--s7); flex-wrap: wrap; }
.hero .cta .btn-pri { background: #fff; color: var(--brand-deep); box-shadow: 0 6px 24px -6px rgba(0,0,0,.6); }
.hero .cta .btn-pri:hover { background: #FFE9EC; }
.hero .cta .btn-gho { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.36); backdrop-filter: blur(8px); box-shadow: none; }
.hero .cta .btn-gho:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }

/* 클립 인디케이터 — 본문 흐름 안에 두어 아래 예약 카드에 가리지 않게 한다 */
.hero .dots { display: flex; gap: 8px; align-items: center; margin-top: var(--s7); }
.hero .dots:empty { display: none; }
.hero .dots button {
  width: 34px; height: 3px; border: 0; padding: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.28); transition: background .3s;
}
.hero .dots button[aria-current="true"] { background: #fff; }
.hero .dots button:hover { background: rgba(255,255,255,.62); }

/* 영상 정지/재생 토글 — 접근성 요구사항 */
.hero .motion {
  position: absolute; z-index: 3; right: 22px; bottom: 78px;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.34);
  color: #fff; font-size: 12px; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: .15s var(--ease);
}
.hero .motion:hover { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.6); }

/* 움직임을 줄이도록 설정한 사용자에게는 정지 화면만 */
@media (prefers-reduced-motion: reduce) {
  .hero .media video { display: none; }
  .hero .media img.fallback { opacity: 1; }
  .hero .dots, .hero .motion { display: none; }
}

/* ===== 히어로 바로 아래 — 빠른 예약 스트립 =============================== */
.quickbook { position: relative; z-index: 5; margin-top: -54px; }
.quickbook .inner {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); overflow: hidden;
  display: grid; grid-template-columns: minmax(0,auto) minmax(0,1fr);
}
.quickbook .lead-col {
  padding: var(--s6) var(--s6) var(--s6) var(--s7);
  border-right: 1px solid var(--line); background: var(--paper-2);
  display: flex; flex-direction: column; justify-content: center; min-width: 232px;
}
.quickbook .lead-col .k {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--brand);
}
.quickbook .lead-col h2 { font-size: 20px; letter-spacing: -.035em; margin: 8px 0 6px; }
.quickbook .lead-col p { font-size: 12.5px; color: var(--ink-3); }
.quickbook .lead-col .btn { margin-top: var(--s4); }
.quickbook .slots-col { padding: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s3); }

@media (max-width: 1100px) {
  .quickbook .inner { grid-template-columns: 1fr; }
  .quickbook .lead-col { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s5) var(--s6); }
  .quickbook .slots-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .quickbook { margin-top: -28px; }
  .quickbook .slots-col { grid-template-columns: 1fr; }
}

.slotrow {
  display: flex; align-items: center; gap: var(--s3); padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r-m); transition: .15s var(--ease); background: var(--paper);
}
.slotrow:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateX(2px); }
.slotrow .dt { width: 46px; text-align: center; flex-shrink: 0; }
.slotrow .dt .m { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.slotrow .dt .d { font-size: 20px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.slotrow .mid { flex: 1; min-width: 0; }
.slotrow .mid strong { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; }
.slotrow .mid small { color: var(--ink-3); font-size: 12.5px; }

/* ===== 퀵링크 ========================================================== */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s4); position: relative; z-index: 5; }
.quick a {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: var(--s6); box-shadow: var(--sh-2); transition: .18s var(--ease); display: block;
}
.quick a:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--brand-line); }
.quick .ic {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(145deg, var(--brand-tint), var(--brand-tint-2));
  color: var(--brand); display: grid; place-items: center; font-size: 19px; margin-bottom: var(--s4);
  border: 1px solid var(--brand-line);
}
.quick strong { display: block; font-size: 16px; letter-spacing: -.03em; }
.quick small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }
.quick .go { display: inline-block; margin-top: var(--s3); font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* ===== 사진 카드 (프로그램/콘텐츠) ====================================== */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s5); }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; transition: .18s var(--ease); display: flex; flex-direction: column;
}
.pcard:hover { box-shadow: var(--sh-2); border-color: var(--line-2); transform: translateY(-3px); }
.pcard .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-3); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .ph img { transform: scale(1.045); }
.pcard .ph .badge { position: absolute; top: 12px; left: 12px; }
.pcard .bd { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.pcard h3 { font-size: 17.5px; margin: 0 0 8px; letter-spacing: -.03em; }
.pcard p { font-size: 13.5px; color: var(--ink-2); line-height: 1.68; flex: 1; }
.pcard .ft {
  display: flex; align-items: center; gap: 8px; margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); font-weight: 600;
}
.pcard .ft .go { margin-left: auto; color: var(--brand); font-weight: 700; }

/* ===== 사진 밴드 ======================================================= */
.band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(92deg, rgba(18,12,10,.93) 0%, rgba(60,14,24,.8) 50%, rgba(94,15,30,.6) 100%); }
.band .wrap { position: relative; z-index: 2; padding: var(--s10) var(--s6); }
.band h2 { font-size: 30px; letter-spacing: -.04em; }
.band p { margin-top: var(--s4); color: rgba(255,255,255,.8); max-width: 58ch; font-size: 16px; line-height: 1.75; }
.bandstats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s5); margin-top: var(--s8); }
.bandstats div { border-left: 2px solid rgba(255,255,255,.28); padding-left: var(--s4); }
.bandstats b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bandstats small { font-size: 12.5px; color: rgba(255,255,255,.68); line-height: 1.5; display: block; margin-top: 3px; }

/* ===== 절차 스텝 — 번호 뱃지 + 연결 트랙 =============================== */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s5); counter-reset: f; }
.flow .st { position: relative; padding-top: 58px; counter-increment: f; }

/* 번호 뱃지 */
.flow .st::before {
  content: counter(f, decimal-leading-zero);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 0 0 5px var(--brand-tint), 0 2px 8px -2px rgba(142,27,46,.4);
}
/* 다음 단계로 이어지는 트랙 — 뱃지 높이 정중앙, 열 사이 간격까지 가로지른다 */
.flow .st::after {
  content: ""; position: absolute; top: 19px; left: 50px;
  right: calc(var(--s5) * -1); height: 2px;
  background: linear-gradient(90deg, var(--brand-tint-2), var(--line));
  border-radius: 2px;
}
.flow .st:last-child::after { display: none; }

.flow .st h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -.03em; }
.flow .st p { font-size: 13.5px; color: var(--ink-2); line-height: 1.68; }

/* ===== 연동/안내 박스 ================================================== */
.link-note {
  display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px;
  background: var(--info-tint); border: 1px solid #CFE0F2; border-radius: var(--r-m);
  font-size: 13px; color: #143B68; line-height: 1.65;
}
.link-note .ic { flex-shrink: 0; font-size: 14px; width: 22px; height: 22px; border-radius: 7px; background: #D6E4F4; display: grid; place-items: center; }
.link-note b { color: #0E2C50; }

.callout { padding: var(--s4) var(--s5); border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.callout.red { background: var(--brand-tint); border-color: var(--brand-line); color: #5E0F1E; }

.anno {
  position: relative; margin: var(--s4) 0 0;
  padding: 13px 16px 13px 46px; border-radius: var(--r-m);
  background: #FFFBEB; border: 1px solid #F2E2B6; color: #6B4E08;
  font-size: 12.5px; line-height: 1.65;
}
.anno::before {
  content: "설계"; position: absolute; left: 12px; top: 13px;
  background: #B8850C; color: #fff; font-size: 9.5px; font-weight: 800;
  padding: 2px 5px; border-radius: 4px;
}
.anno b { color: #4A3605; }

/* ===== 푸터 =========================================================== */
.ftr { background: #17120F; color: #948883; padding: var(--s9) 0 var(--s8); margin-top: 0; font-size: 13px; }
.ftr .top { display: flex; gap: var(--s7); flex-wrap: wrap; align-items: flex-start; padding-bottom: var(--s6); border-bottom: 1px solid #322925; }
.ftr .top nav { display: flex; gap: var(--s5); flex-wrap: wrap; flex: 1; min-width: 0; }
.ftr .top nav a { color: #C4B9B4; font-weight: 650; }
.ftr .top nav a:hover { color: #fff; }
.ftr .sites { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; font-size: 12.5px; }
.ftr .sites .lb { color: #756963; font-weight: 700; letter-spacing: .04em; }
.ftr .sites a { color: #C4B9B4; }
.ftr .sites a:hover { color: #fff; text-decoration: underline; }
.ftr .bot { padding-top: var(--s5); display: flex; gap: var(--s6); flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }
.ftr address { font-style: normal; line-height: 1.85; }
.ftr .by { text-align: right; line-height: 1.85; }
.ftr .by b { color: #E4DAD6; }

/* ===== 반응형 ========================================================== */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s7); padding: var(--s9) var(--s6); }
  .hero h1 { font-size: 38px; }
  .quick { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-8-4, .g-4-8, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pcards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: var(--s7); }
  /* 2열이 되면 오른쪽 칸의 트랙은 이어질 곳이 없다 */
  .flow .st:nth-child(2n)::after { display: none; }
  .bandstats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .adm { grid-template-columns: 1fr; }
  .adm-side { display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .adm-side h4, .adm-side .who { display: none; }
  .adm-side a { white-space: nowrap; }
  .adm-side a .cnt { margin-left: 6px; }
  .adm-main { padding: var(--s5); }
  .wboard { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 var(--s4); }
  .hdr .wrap { gap: 10px; }
  .gnb { display: none; }
  .burger { display: block; flex-shrink: 0; }
  .hdr-act { margin-left: auto; min-width: 0; }
  .hdr-act .sso-chip { display: none; }
  .hdr-act .btn { padding: 8px 12px; font-size: 13px; }
  .logo .txt small { display: none; }
  .logo .txt strong { font-size: 15px; }
  .hero h1 { font-size: 29px; }
  .hero p.lead { font-size: 15.5px; }
  .hero .stats { gap: var(--s5); }
  .hero .stats div b { font-size: 22px; }
  .quick, .g2, .g3, .g4, .g-8-4, .g-4-8, .pcards, .flow { grid-template-columns: 1fr; }
  .flow .st::after { display: none; }
  .flow .st { padding-top: 0; padding-left: 56px; min-height: 40px; }
  .tiles, .bandstats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .phead h1, .subhero h1 { font-size: 25px; }
  .sec { padding: var(--s9) 0; }
  .sec-hd h2, .band h2 { font-size: 23px; }
  .steps { font-size: 12px; }
  .steps li span.tx { display: none; }
  .steps li[data-on] span.tx { display: inline; }
  .steps .bar { margin: 0 8px; }
  .wboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ftr .bot { flex-direction: column; align-items: flex-start; }
  .ftr .by { text-align: left; }
  .pickbox { flex-wrap: wrap; }
}

/* 모바일 메뉴 — 헤더(sticky) 안에 절대 배치한다.
   문서 흐름에 두면 스크롤한 뒤 열었을 때 문서 최상단에 그려져 화면 밖에 놓인다. */
.mnav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px -14px rgba(27,22,20,.3);
  max-height: calc(100vh - var(--hdr) - 16px);
  max-height: calc(100dvh - var(--hdr) - 16px);
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav.on { display: block; }
.mnav a { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 650; }
.mnav a:last-child { border-bottom: 0; }
.mnav a[aria-current] {
  color: var(--brand); background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand);
}

@media print { .mock-flag, .hdr, .ftr, .mnav { display: none; } }
