/* ============================================================
   동림자유발도르프학교 — 반응형 구성 키트
   디자인 토큰 + 페이지 스타일 + 컨테이너 쿼리 반응형 + 인스펙터 UI
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* palette */
  --cream:       #FFF8F6;
  --peach:       #FFF0EB;
  --peach-soft:  #FBE8E1;
  --white-warm:  #FFFBF7;
  --orange:      #E85D2F;
  --orange-2:    #DD5E34;
  --orange-red:  #EB4600;
  --brown-dark:  #502615;
  --brown-deep:  #4A1500;
  --text:        #2D1810;
  --text-soft:   #5A3020;
  --text-mute:   #6E6E73;
  --tag-bg:      #F4DECD;
  --placeholder: #FFD7C5;
  --foot-text:   #FFC4A6;
  --line:        rgba(247,183,154,0.7);
  --card-line:   #F0C8A0;

  --shadow-card: 0 4px 16px -2px rgba(31,15,5,0.08);
  --shadow-soft: 0 4px 16px -2px rgba(31,15,5,0.06);

  --serif: "Noto Serif KR", ui-serif, Georgia, serif;
  --display: "Playfair Display", ui-serif, Georgia, serif;
  --sans: "Noto Sans KR", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shell tokens */
  --shell-bg: #1c1714;
  --shell-panel: #ffffff;
  --shell-border: #e9e2da;
  --shell-ink: #2b2320;
  --shell-mute: #8a7f76;
  --shell-accent: #E85D2F;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--shell-bg);
  color: var(--shell-ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ============================================================
   SHELL — toolbar + stage + inspector
   ============================================================ */
.kit {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: 56px 1fr;
  grid-template-areas:
    "toolbar toolbar"
    "stage   inspector";
  height: 100vh;
  width: 100vw;
}

/* ---- Toolbar ---- */
.toolbar {
  grid-area: toolbar;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: #161210;
  border-bottom: 1px solid #2c2520;
  color: #efe7df;
  z-index: 30;
}
.toolbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.toolbar .brand .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--orange);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 13px;
}
.toolbar .brand small { color: #8a7f76; font-weight: 500; font-size: 11px; letter-spacing: 0; }

.tb-divider { width: 1px; height: 26px; background: #2c2520; }

.devices { display: flex; gap: 4px; }
.devices button {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: #b9ada3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.devices button:hover { color: #efe7df; background: #221c18; }
.devices button.active { color: #fff; background: var(--orange); }
.devices button svg { width: 14px; height: 14px; }

.width-control {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
  min-width: 0;
}
.width-control input[type=range] {
  flex: 1;
  min-width: 80px;
  accent-color: var(--orange);
  height: 4px;
}
.width-readout {
  font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 600;
  color: #efe7df;
  white-space: nowrap;
  min-width: 86px;
  text-align: right;
}
.width-readout span { color: #8a7f76; font-weight: 500; }

.mode-toggle {
  display: flex;
  background: #221c18;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.mode-toggle button {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: #b9ada3;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 6px 13px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.mode-toggle button.active { color: var(--shell-ink); background: #efe7df; }
.mode-toggle button svg { width: 13px; height: 13px; }

/* ---- Stage ---- */
.stage {
  grid-area: stage;
  overflow: auto;
  position: relative;
  background:
    repeating-linear-gradient(45deg, #221c18 0 2px, transparent 2px 11px),
    #1c1714;
  display: flex;
  justify-content: safe center;
  padding: 28px;
}
.stage.edit-mode { cursor: crosshair; }

.viewport-wrap {
  position: relative;
  align-self: flex-start;
  flex: 0 0 auto;
}

.viewport {
  container-type: inline-size;
  container-name: page;
  width: 1280px;
  background: var(--cream);
  min-height: 400px;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.6);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* drag handle to resize viewport width */
.resize-handle {
  position: absolute;
  top: 0; right: -7px;
  width: 14px; height: 100%;
  cursor: ew-resize;
  z-index: 20;
  display: flex; align-items: center; justify-content: center;
}
.resize-handle::after {
  content: "";
  width: 4px; height: 46px;
  border-radius: 3px;
  background: #5a4f47;
  transition: background .15s;
}
.resize-handle:hover::after { background: var(--orange); }

/* ============================================================
   INSPECTOR
   ============================================================ */
.inspector {
  grid-area: inspector;
  background: var(--shell-panel);
  border-left: 1px solid var(--shell-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.insp-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--shell-border);
  position: sticky; top: 0;
  background: var(--shell-panel);
  z-index: 2;
}
.insp-head h2 {
  margin: 0;
  font-size: 13px; font-weight: 700;
  letter-spacing: .02em;
  color: var(--shell-ink);
  display: flex; align-items: center; gap: 7px;
}
.insp-head h2 svg { width: 15px; height: 15px; color: var(--shell-accent); }
.insp-sel {
  margin-top: 9px;
  font-size: 12px;
  color: var(--shell-mute);
  display: flex; align-items: center; gap: 7px;
  min-height: 22px;
}
.insp-sel .chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 600;
  color: var(--shell-accent);
  background: #fdeee8;
  border-radius: 6px;
  padding: 3px 8px;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.insp-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--shell-mute);
  font-size: 12.5px;
  line-height: 1.7;
}
.insp-empty svg { width: 32px; height: 32px; color: #d8cfc6; margin-bottom: 12px; }
.insp-empty b { color: var(--shell-ink); }

.insp-body { padding: 6px 0 40px; display: none; }
.insp-body.show { display: block; }

.ctl-group {
  padding: 16px 18px;
  border-bottom: 1px solid var(--shell-border);
}
.ctl-group:last-child { border-bottom: none; }
.ctl-group > .g-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--shell-mute);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 6px;
}

.ctl-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.ctl-row:last-child { margin-bottom: 0; }
.ctl-row > label {
  font-size: 12px; font-weight: 500;
  color: var(--shell-ink);
  white-space: nowrap;
  min-width: 44px;
}
.ctl-row .val {
  font-variant-numeric: tabular-nums;
  font-size: 11px; font-weight: 600;
  color: var(--shell-mute);
  min-width: 42px; text-align: right;
}

.ctl-row input[type=range] {
  flex: 1;
  accent-color: var(--shell-accent);
  height: 4px; min-width: 60px;
}

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatches button {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,.12);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .1s;
}
.swatches button:hover { transform: scale(1.1); }
.swatches button.active { box-shadow: 0 0 0 2px var(--shell-panel), 0 0 0 4px var(--shell-accent); }
.swatches button.none {
  background:
    linear-gradient(45deg, transparent 45%, #e5484d 45% 55%, transparent 55%),
    #fff;
}
.swatches .custom-wrap {
  width: 26px; height: 26px; border-radius: 7px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.12); position: relative; cursor: pointer;
  background: conic-gradient(from 0deg, #ff5252, #ffd152, #6fe06f, #52c5ff, #b152ff, #ff5252);
}
.swatches .custom-wrap input { position: absolute; inset: -4px; width: 140%; height: 140%; border: none; padding: 0; cursor: pointer; opacity: 0; }

/* select & input fields */
.field {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  color: var(--shell-ink);
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  width: 100%;
}
.field:focus { outline: none; border-color: var(--shell-accent); }
select.field { cursor: pointer; }

.num-field {
  width: 64px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* margin pad */
.margin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.margin-grid .mcell { display: flex; flex-direction: column; gap: 4px; }
.margin-grid .mcell label {
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: var(--shell-mute); text-transform: uppercase;
}

.insp-actions {
  display: flex; gap: 8px;
  padding: 14px 18px;
}
.insp-actions button {
  flex: 1;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  border-radius: 9px;
  padding: 9px;
  cursor: pointer;
  border: 1px solid var(--shell-border);
  background: #fff;
  color: var(--shell-ink);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.insp-actions button:hover { background: #f6f1ec; }
.insp-actions button svg { width: 13px; height: 13px; }
.insp-actions button.danger { color: #c0392b; }

/* selection highlight overlays (in stage) */
.kit-hover-outline, .kit-sel-outline {
  position: absolute;
  pointer-events: none;
  z-index: 9998;
  border-radius: 3px;
}
.kit-hover-outline { box-shadow: 0 0 0 1.5px rgba(232,93,47,.5); background: rgba(232,93,47,.06); }
.kit-sel-outline  { box-shadow: 0 0 0 2px var(--orange); }
.kit-sel-outline .tag {
  position: absolute; top: -20px; left: -2px;
  background: var(--orange); color: #fff;
  font: 600 10px/1 ui-monospace, monospace;
  padding: 3px 6px; border-radius: 4px 4px 4px 0;
  white-space: nowrap;
}

/* ============================================================
   PAGE — 동림 홈페이지 (responsive via container queries)
   ============================================================ */
.site { font-family: var(--sans); color: var(--text); }
.site img { display: block; max-width: 100%; }

/* shared section paddings */
.sec { padding: 50px 52px; }
.wrap { max-width: 1336px; margin: 0 auto; }

.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  color: var(--orange-2);
  margin-bottom: 14px;
}
.sec-label::after { content: ""; width: 36px; height: 1.5px; background: var(--orange-2); }
.sec-title {
  font-family: var(--display);
  font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1.3;
  color: var(--text-soft);
  margin: 0;
  text-wrap: pretty;
}

/* --- Header --- */
.site-header {
  height: 64px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 52px;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  position: relative;
  z-index: 5;
}
.logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo-img { height: 30px; width: auto; }
.gnb { display: flex; gap: 32px; }
.gnb-item { position: relative; }
.gnb-item > a {
  font-size: 15px; font-weight: 500; color: var(--text);
  text-decoration: none; position: relative; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  transition: color .18s ease;
}
.gnb-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px;
  height: 4px; border-radius: 6px; background: var(--orange);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.gnb-item:hover > a,
.gnb-item > a.active { color: var(--orange); font-weight: 700; }
.gnb-item:hover > a::after,
.gnb-item > a.active::after { transform: scaleX(1); }

/* dropdown submenu */
.submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: -14px;
  min-width: 186px;
  background: var(--white-warm);
  border: 1px solid rgba(244,222,205,.9);
  border-radius: 22px;
  box-shadow: 0 16px 38px -12px rgba(31,15,5,.24);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 40;
}
.submenu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.gnb-item:hover .submenu,
.gnb-item.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  font-size: 14px; font-weight: 500; color: var(--text-soft);
  text-decoration: none; padding: 11px 14px; border-radius: 13px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .12s, color .12s;
}
.submenu a:hover { background: var(--peach); color: var(--orange-2); }
.need-login {
  font-size: 10.5px; font-weight: 600; color: var(--orange-red);
  background: var(--tag-bg); border-radius: 9999px; padding: 2px 8px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-pill {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  border-radius: 9999px; padding: 9px 18px; cursor: pointer;
  border: none; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn-pill:hover { transform: translateY(-1px); }
.btn-pill:active { transform: translateY(0); }
.btn-pill.primary { background: var(--orange); color: #fff; }
.btn-pill.primary:hover { background: var(--orange-red); box-shadow: 0 6px 16px -4px rgba(232,93,47,.5); }
.btn-pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--card-line); font-weight: 500; }
.btn-pill.ghost:hover { border-color: var(--orange); color: var(--orange-2); background: var(--peach); }
.btn-pill.text { background: transparent; color: var(--text); border: none; padding: 9px 8px; }
.btn-pill.text:hover { color: var(--orange-2); }
.hamburger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; align-items: center; justify-content: center;
}
.hamburger svg { width: 24px; height: 24px; color: var(--text); }
.hamburger .ic-close { display: none; }
.site.menu-open .hamburger .ic-open { display: none; }
.site.menu-open .hamburger .ic-close { display: block; }

/* mobile drawer menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--card-line);
  box-shadow: 0 18px 30px -16px rgba(31,15,5,.3);
  padding: 8px 20px 24px;
  z-index: 30;
  max-height: calc(100% - 64px);
  overflow-y: auto;
}
.m-acc { border-bottom: 1px solid rgba(247,183,154,.5); }
.m-acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--text);
  background: transparent; border: none; cursor: pointer;
  padding: 18px 4px;
}
.m-acc-trigger svg { width: 20px; height: 20px; color: var(--orange-2); transition: transform .2s; }
.m-acc.open .m-acc-trigger svg { transform: rotate(180deg); }
.m-acc-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .26s ease;
}
.m-acc.open .m-acc-panel { max-height: 320px; }
.m-acc-panel a {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--text-soft);
  text-decoration: none; padding: 13px 16px;
}
.m-acc-panel a:first-child { padding-top: 4px; }
.m-acc-panel a:last-child { padding-bottom: 18px; }
.m-auth { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.m-auth .btn-pill { width: 100%; padding: 13px; font-size: 14px; }
.m-auth-row { display: flex; gap: 10px; }
.m-auth-row .btn-pill { flex: 1; }
.site.menu-open .mobile-menu { display: block; }

/* --- Hero / Banner (3-slide carousel) --- */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero-track {
  display: flex;
  width: 300%;
  transition: transform .6s cubic-bezier(.45,.05,.2,1);
  touch-action: pan-y;
}
.hero-track.no-anim { transition: none; }
.hero-slide {
  position: relative;
  flex: 0 0 33.3333%;
  height: 600px;
  display: flex;
}
.hero-slide .photo {
  position: absolute; inset: 0 auto 0 0;
  width: 50%;
  background-color: #f2d6c6;
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}
.hero-slide .photo::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 200px;
  background: linear-gradient(90deg, rgba(255,248,246,0), var(--cream) 90%);
}
.hero .htext {
  position: relative; z-index: 2;
  margin-left: 50%;
  width: 50%;
  padding: 0 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.season {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--orange-2);
}
.season::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-2); }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: 45px; line-height: 1.2; margin: 0;
  color: var(--brown-deep);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--orange-2); display: block; }
.hero .sub { font-size: 15px; line-height: 1.73; color: var(--text-soft); margin: 0; max-width: 460px; }
.btn-outline {
  align-self: flex-start;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--orange-2);
  background: transparent;
  border: 1.5px solid var(--orange);
  border-radius: 9999px;
  padding: 13px 24px; cursor: pointer; margin-top: 4px;
}
.hero .dots {
  position: absolute; right: 52px; bottom: 38px; z-index: 3;
  display: flex; gap: 10px;
}
.hero .dots button {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(236,165,142,.5); color: #fff;
  display: grid; place-items: center;
  transition: background .18s, transform .18s;
}
.hero .dots button:hover { background: var(--orange); transform: scale(1.08); }
.hero .dots button svg { width: 16px; height: 16px; }

/* --- Curriculum --- */
.curriculum { background: var(--cream); }
.curr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.curr-card {
  position: relative;
  border-radius: 28px;
  background: var(--peach);
  box-shadow: var(--shadow-card);
  padding: 32px;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease;
  min-height: 261px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  overflow: hidden;
}
.curr-card .c-img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 46%;
  border-radius: 0;
  background-size: cover; background-position: center;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.curr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -14px rgba(31,15,5,.28);
}
.curr-card:hover .c-img { transform: scale(1.06); }
.curr-card:hover h3 { color: var(--orange-2); }
.curr-card h3 { transition: color .2s ease; }
.curr-card .c-body { max-width: 50%; }
.curr-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.curr-card p { font-size: 13px; line-height: 1.6; color: var(--text-soft); margin: 0; }
.tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 500; color: var(--orange-red);
  background: var(--tag-bg);
  border-radius: 9999px; padding: 4px 10px;
}

/* --- Testimonials / Ticker --- */
.ticker { background: var(--peach); }
.ticker-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.t-card {
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
  padding: 24px 26px 29px;
  display: flex; flex-direction: column; gap: 14px;
}
.t-card p { font-size: 15px; line-height: 1.73; color: var(--text); margin: 0; flex: 1; }
.t-card .who { font-size: 13px; font-weight: 700; color: var(--orange-red); }

/* --- Admission CTA --- */
.admission {
  background: var(--brown-dark);
  padding: 56px 44px;
  display: flex; align-items: center; gap: 24px;
}
.admission h2 {
  font-family: var(--sans); font-weight: 300; font-size: 42px; line-height: 1.1;
  color: var(--cream); margin: 0; flex: 1; text-wrap: balance;
}
.btn-light {
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--brown-dark); background: var(--peach);
  border: none; border-radius: 9999px; padding: 14px 28px; cursor: pointer; white-space: nowrap;
}

/* --- Notice --- */
.notice { background: var(--white-warm); padding: 36px 70px 60px; }
.notice-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.notice-head .sec-label { margin-bottom: 0; }
.more-link { font-size: 15px; font-weight: 500; color: var(--orange-red); text-decoration: none; }
.notice-list { border-top: 1px solid var(--line); }
.notice-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.notice-item:hover { background: rgba(255,240,235,.5); }
.notice-item:hover .n-title { color: var(--orange-2); }
.badge {
  font-size: 12px; font-weight: 500; line-height: 1.4; color: #fff;
  background: var(--orange); border-radius: 6px; padding: 5px 11px;
  flex: 0 0 auto; margin-top: 2px;
  white-space: nowrap; box-sizing: border-box;
}
.badge.badge-notice { background: var(--orange); }
.notice-item .n-main { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.notice-item .n-title { font-size: 16px; font-weight: 700; color: var(--text); }
.notice-item .n-excerpt {
  font-size: 13.5px; line-height: 1.55; color: var(--text-mute);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.notice-item .n-date { font-size: 14px; color: var(--orange-red); white-space: nowrap; margin-top: 2px; }

/* --- SNS --- */
.sns { background: var(--peach); border-top: 1px solid var(--card-line); }
.sns h2 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.3; color: var(--text-soft); margin: 0 0 28px; text-wrap: pretty; }

/* SNS static grid (롤링 제거) */
.sns-marquee { margin-top: 4px; }
.sns-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sns-card {
  border-radius: 20px; overflow: hidden; background: var(--cream);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease;
}
.sns-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -14px rgba(31,15,5,.26); }
.sns-card:hover h4 { color: var(--orange-2); }
.sns-card h4 { transition: color .2s ease; }
.s-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,0,0,.92);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,.4);
  z-index: 3;
}
.s-play svg { width: 24px; height: 24px; margin-left: 3px; }

/* in-card YouTube horizontal slider (사진+텍스트 함께 좌우 롤링) */
.yt-card { position: relative; }
.yt-viewport { position: relative; overflow: hidden; }
.yt-track { display: flex; width: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); touch-action: pan-y; }
.yt-track.no-anim { transition: none; }
.yt-item { flex: 0 0 100%; min-width: 0; }
.yt-item .s-img { transition: none; }
.yt-card:hover .yt-item .s-img { transform: none; }
.s-dots {
  position: absolute; left: 0; right: 0; top: 244px; z-index: 4;
  display: flex; gap: 6px; justify-content: center;
}
.s-dots button {
  width: 18px; height: 4px; border-radius: 3px; border: none; padding: 0;
  background: rgba(255,255,255,.6); cursor: pointer;
  transition: background .25s, width .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.s-dots button.on { background: #fff; width: 24px; }
.s-tags .plat { width: 20px; height: 14px; display: inline-flex; vertical-align: middle; margin-right: 6px; }
.s-tags .plat svg { width: 100%; height: 100%; border-radius: 4px; }
.s-tags .plat.nv, .s-tags .plat.ig { width: 16px; height: 16px; }
.sns-card .s-img {
  position: relative;
  height: 268px;
  background:
    repeating-linear-gradient(135deg, #ffcdb8 0 14px, #ffd7c5 14px 28px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: flex-end;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.sns-card:hover .s-img:not(.s-roller) { transform: scale(1.05); }
.sns-card:hover .s-play { transform: translate(-50%,-50%) scale(1.1); }
.s-play { transition: transform .25s ease, background .2s ease; }
.sns-card:hover .s-play { background: #FF0000; }
.sns-card .s-img .ph-label {
  margin: 14px; font: 600 11px/1 ui-monospace, monospace; color: #b06a4a;
  background: rgba(255,248,246,.7); padding: 5px 9px; border-radius: 6px;
}
.sns-card .s-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.sns-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.sns-card .s-desc { font-size: 13px; color: var(--text-soft); margin: 0; }
.sns-card .s-tags { font-size: 12px; font-weight: 500; color: var(--orange-2); margin: 2px 0 0; display: flex; align-items: center; }

/* --- Footer --- */
.site-footer {
  background: var(--brown-dark);
  border-top: 1px solid rgba(160,96,64,.4);
  padding: 59px 64px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.foot-brand { max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand .flogo { display: flex; align-items: center; gap: 10px; }
.foot-brand .flogo .flogo-img { height: 34px; width: auto; }
.foot-brand .flogo .name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: #fff; }
.foot-brand .desc { font-size: 13px; line-height: 1.7; color: var(--foot-text); margin: 0; white-space: pre-line; }
.foot-brand .copy { font-size: 11px; color: var(--orange-red); margin: 0; }
.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-contact .ftitle { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.foot-contact p { font-size: 13px; line-height: 1.6; color: var(--foot-text); margin: 0; white-space: pre-line; }

/* ============================================================
   RESPONSIVE — container queries on .viewport (name: page)
   ============================================================ */

/* tablet */
@container page (max-width: 980px) {
  .sec { padding: 44px 36px; }
  .notice { padding: 32px 36px 52px; }
  .site-header { padding: 0 28px; gap: 18px; }
  .hero h1 { font-size: 38px; }
  .sec-title { font-size: 27px; }
  .ticker-cards { grid-template-columns: 1fr; }
  .sns-cards { grid-template-columns: 1fr 1fr; }
  .sns-track { grid-template-columns: 1fr 1fr; }
  .admission { padding: 44px 36px; }
  .admission h2 { font-size: 32px; }
}

/* mobile */
@container page (max-width: 640px) {
  .gnb, .nav-right { display: none; }
  .hamburger { display: flex; }
  .site-header { gap: 12px; padding: 0 20px; }

  .sec { padding: 38px 20px; }
  .notice { padding: 28px 20px 44px; }

  .hero-slide { height: auto; flex-direction: column; }
  .hero-slide .photo { position: relative; width: 100%; height: 240px; }
  .hero-slide .photo::after { display: none; }
  .hero .htext { margin-left: 0; width: 100%; padding: 32px 20px 40px; }
  .hero h1 { font-size: 30px; }
  .hero .sub { font-size: 14px; }
  .hero .dots { right: 20px; bottom: 20px; }

  .sec-title { font-size: 22px; }
  .sec-label { font-size: 11px; }

  .curr-cards { grid-template-columns: 1fr; }
  .curr-card { min-height: 0; padding: 24px; }
  .curr-card .c-img { position: relative; width: calc(100% + 48px); margin: -24px -24px 16px; height: 168px; order: -1; border-radius: 0; }
  .curr-card .c-body { max-width: 100%; }

  .admission { flex-direction: column; align-items: flex-start; padding: 36px 20px; }
  .admission h2 { font-size: 26px; }

  .notice-head { flex-wrap: wrap; gap: 8px; }
  .notice-item { gap: 10px 12px; padding: 18px 2px; }
  .notice-item .n-title { font-size: 14px; }
  .notice-item .n-excerpt { font-size: 12.5px; }
  .notice-item .n-date { font-size: 12px; }

  .sns h2 { font-size: 22px; }
  .sns-track { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; gap: 32px; padding: 44px 24px; }
}

/* ============================================================
   ADDED: 배너 캐러셀 · 학부모 메모 마퀴 · 주간일정 FAB/드로어
   ============================================================ */

/* --- hero carousel controls --- */
#hPause .ic-play { display: none; }
#hPause.paused .ic-pause { display: none; }
#hPause.paused .ic-play { display: block; }
.hero-ind {
  position: absolute; left: 52px; bottom: 46px; z-index: 3;
  display: flex; gap: 7px;
}
.hero-ind button {
  width: 26px; height: 4px; border-radius: 3px; border: none; padding: 0;
  background: rgba(221,94,52,.32); cursor: pointer;
  transition: background .25s, width .25s;
}
.hero-ind button.on { background: var(--orange); width: 36px; }

/* --- 학부모 메모 마퀴 --- */
.ticker-marquee {
  margin-top: 36px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 64s linear infinite;
}
.ticker-marquee:hover .ticker-track,
.stage.edit-mode .ticker-track { animation-play-state: paused; }
.ticker .t-card { width: 366px; flex: 0 0 366px; min-height: 182px; margin-right: 20px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- 주간일정 플로팅 버튼 --- */
.sched-fab {
  position: absolute; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: none; border-radius: 36px; padding: 13px 22px; cursor: pointer;
  box-shadow: 0 8px 22px -4px rgba(232,93,47,.55);
  transition: transform .16s, opacity .22s, visibility .22s;
}
.sched-fab svg { width: 17px; height: 17px; }
.sched-fab:hover { transform: translateY(-2px); }
.sched-fab.hide { opacity: 0; visibility: hidden; transform: translateY(10px); }

/* --- 주간일정 드로어 (bottom sheet) --- */
.sched-backdrop {
  position: absolute; z-index: 59; background: rgba(31,15,5,.24);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.sched-backdrop.open { opacity: 1; visibility: visible; }
.sched-sheet {
  position: absolute; z-index: 61;
  background: rgba(255,240,235,0.63);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -12px 44px -12px rgba(31,15,5,.34);
  padding: 22px 30px 28px;
  transform: translateY(115%);
  transition: transform .34s cubic-bezier(.4,0,.2,1);
  max-height: 82%; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.sched-sheet[data-dev=desktop] { max-height: 92%; }
.sched-sheet[data-dev=tablet] { max-height: 86%; }
.sched-sheet[data-dev=mobile] { height: 70%; max-height: 70%; }
.sched-sheet::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sched-sheet.open { transform: translateY(0); }
.sched-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sched-head .s-ttl { font-size: 16px; font-weight: 700; color: #FF715E; margin: 0; }
.sched-head .s-sub { font-size: 13px; color: var(--text-soft); margin: 5px 0 0; }
.sched-head .s-right { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
.sched-viewall { font-size: 13px; font-weight: 500; color: #FF715E; text-decoration: none; white-space: nowrap; }
.sched-close { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--orange); color: #fff; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.sched-close svg { width: 15px; height: 15px; }
.sched-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.sched-sheet[data-dev=tablet] .sched-grid { grid-template-columns: repeat(3, 1fr); }
.sched-sheet[data-dev=mobile] .sched-grid { grid-template-columns: 1fr; gap: 8px; }
/* mobile: 월~토 세로 정리 — 각 요일을 가로 행으로 */
.sched-sheet[data-dev=mobile] .day-col {
  flex-direction: row; align-items: stretch; gap: 12px; padding: 10px 12px;
  background: rgba(255,255,255,.4);
}
.sched-sheet[data-dev=mobile] .day-head {
  flex-direction: row; align-items: center; gap: 8px;
  border-bottom: none; border-right: 1px solid rgba(180,120,90,.22);
  padding: 0 14px 0 2px; flex: 0 0 64px;
}
.sched-sheet[data-dev=mobile] .day-col > .ev-card,
.sched-sheet[data-dev=mobile] .day-empty { flex: 1; }
.sched-sheet[data-dev=mobile] .day-col {
  display: grid; grid-template-columns: 64px 1fr; align-items: center;
}
.sched-sheet[data-dev=mobile] .ev-stack { display: flex; flex-direction: column; gap: 8px; }
.sched-sheet[data-dev=mobile] .day-empty { display: none; }
.sched-sheet[data-dev=mobile] .day-col.empty { display: none; }
.sched-sheet[data-dev=mobile] .ev-card { width: 100%; margin-left: 0; }
.stage.sched-dark .sched-sheet[data-dev=mobile] .day-col { background: rgba(255,255,255,.05); }

/* mobile: 주차 내비(아이콘만) + 학년 스피너(아래 화살표 1개) 한 줄 */
.sched-sheet[data-dev=mobile] .sched-controls { flex-wrap: nowrap; gap: 10px; }
.sched-sheet[data-dev=mobile] .week-nav { gap: 8px; }
.sched-sheet[data-dev=mobile] .wk-txt { display: none; }
.sched-sheet[data-dev=mobile] .wk-btn { padding: 8px; }
.sched-sheet[data-dev=mobile] .wk-label { min-width: 52px; font-size: 13px; }
.sched-sheet[data-dev=mobile] .gs-arrow { display: none; }
.sched-sheet[data-dev=mobile] .gs-current { padding: 6px 4px 6px 12px; min-width: 70px; }
.day-col { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; border-radius: 18px; min-width: 0; }
.day-col.today { background: rgba(255,255,255,.42); box-shadow: inset 0 0 0 1.5px rgba(232,93,47,.4); }
.day-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgba(180,120,90,.22); }
.day-head .wd { font-size: 14px; font-weight: 700; color: var(--text-soft); }
.day-head .dn { font-size: 15px; font-weight: 500; color: var(--text); }
.day-head .dn.tbadge { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.day-head.weekend .wd, .day-head.weekend .dn { color: #c2b1a6; }
.ev-card { background: #fff; border-radius: 12px; padding: 11px 13px; box-shadow: var(--shadow-soft); width: 110%; margin-left: -5%; box-sizing: border-box; }
.ev-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }
.ev-grade { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ev-grade::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ev-act { font-size: 15px; font-weight: 500; color: var(--text); word-break: keep-all; }
.g-green { color: #34C759; } .g-blue { color: #007AFF; } .g-orange { color: #FF9500; } .g-purple { color: #AF52DE; } .g-red { color: #FF3B30; }
.day-empty { text-align: center; color: #cdbcb1; font-size: 16px; padding: 12px 0; }

/* grade spinner */
.s-head-left { min-width: 0; }
.grade-spinner { position: relative; display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--card-line); border-radius: 9999px; padding: 3px 5px; }
.gs-arrow { width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; color: var(--text-soft); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.gs-arrow:hover { background: var(--orange); color: #fff; }
.gs-arrow svg { width: 14px; height: 14px; }
.gs-current { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--text); background: transparent; border: none; cursor: pointer; padding: 4px 6px; min-width: 78px; white-space: nowrap; }
#gradeLabel { white-space: nowrap; }
.gs-current:focus { outline: none; }
.gs-chev { width: 14px; height: 14px; color: var(--orange); transition: transform .2s; flex: 0 0 auto; }
.grade-spinner.open .gs-chev { transform: rotate(180deg); }

/* custom dropdown menu — dark/light aware, orange highlight, rounded */
.gs-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  background: var(--white-warm);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px -12px rgba(31,15,5,.28);
  padding: 7px;
  width: 150px;
  max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  scrollbar-width: none;
}
.gs-menu::-webkit-scrollbar { width: 0; display: none; }
.grade-spinner.open .gs-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gs-opt {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-soft);
  background: transparent; border: none; border-radius: 10px;
  padding: 9px 12px; cursor: pointer; text-align: center; white-space: nowrap;
  transition: background .14s, color .14s;
}
.gs-opt:hover { background: var(--peach); color: var(--orange-red); }
.gs-opt.on { background: var(--orange); color: #fff; }

/* controls row: week-nav + grade-spinner */
.sched-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

/* week nav */
.week-nav { display: flex; align-items: center; gap: 14px; }
.wk-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-soft); background: #fff; border: 1px solid var(--card-line); border-radius: 9999px; padding: 8px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.wk-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.wk-btn svg { width: 14px; height: 14px; }
.wk-label { font-size: 14px; font-weight: 700; color: var(--orange-red); min-width: 64px; text-align: center; }

/* dark — drawer */
.site.dark ~ .sched-fab,
.stage.sched-dark .sched-fab { background: var(--orange); }
.stage.sched-dark .sched-sheet { background: rgba(42,29,22,0.7); }
.stage.sched-dark .sched-head .s-ttl { color: #FF9A75; }
.stage.sched-dark .sched-head .s-sub { color: #CBB4A6; }
.stage.sched-dark .grade-spinner,
.stage.sched-dark .wk-btn,
.stage.sched-dark .ev-card { background: #30231A; }
.stage.sched-dark .grade-spinner { border-color: rgba(255,200,160,.16); }
.stage.sched-dark .gs-arrow { color: #CBB4A6; }
.stage.sched-dark .gs-arrow:hover { background: var(--orange); color: #fff; }
.stage.sched-dark .gs-current { color: #F4E7DE; }
.stage.sched-dark .gs-menu { background: #2A1D16; border-color: rgba(255,200,160,.18); box-shadow: 0 14px 34px -12px rgba(0,0,0,.55); }
.stage.sched-dark .gs-opt { color: #CBB4A6; }
.stage.sched-dark .gs-opt:hover { background: rgba(232,93,47,.18); color: #FF9A75; }
.stage.sched-dark .gs-opt.on { background: var(--orange); color: #fff; }
.stage.sched-dark .wk-btn { color: #CBB4A6; border-color: rgba(255,200,160,.16); }
.stage.sched-dark .wk-btn:hover { background: var(--orange); color: #fff; }
.stage.sched-dark .day-col.today { background: rgba(255,255,255,.06); }
.stage.sched-dark .day-head { border-color: rgba(255,200,160,.16); }
.stage.sched-dark .day-head .wd { color: #CBB4A6; }
.stage.sched-dark .day-head .dn { color: #F4E7DE; }
.stage.sched-dark .ev-act { color: #F4E7DE; }
.stage.sched-dark .gs-arrow:hover { background: rgba(255,255,255,.08); }

@container page (max-width: 640px) {
  .ticker .t-card { width: 300px; flex-basis: 300px; }
  .hero-ind { left: 20px; bottom: 24px; }
}

/* ============================================================
   DARK THEME — 입학 CTA·Footer 제외한 전 영역 다크 버전
   토글: #site.dark
   ============================================================ */
.site.dark {
  --d-bg:    #1E1510;
  --d-bg2:   #2A1D16;
  --d-card:  #30231A;
  --d-line:  rgba(255,200,160,0.14);
  --d-text:  #F4E7DE;
  --d-soft:  #CBB4A6;
  --d-mute:  #9A8678;
  background: var(--d-bg);
}

/* instant theme switch (no cross-fade to keep it crisp) */

/* Header + nav */
.site.dark .site-header { background: var(--d-bg); }
.site.dark .gnb-item > a { color: var(--d-text) !important; }
.site.dark .gnb-item:hover > a,
.site.dark .gnb-item > a.active { color: var(--orange) !important; }
.site.dark .btn-pill.ghost { color: var(--d-text) !important; border-color: var(--d-line); }
.site.dark .btn-pill.ghost:hover { background: rgba(232,93,47,.14); color: var(--orange) !important; border-color: var(--orange); }
.site.dark .btn-pill.text { color: var(--d-text) !important; }
.site.dark .hamburger svg { color: var(--d-text); }
.site.dark .submenu { background: var(--d-card); border-color: var(--d-line); }
.site.dark .submenu a { color: var(--d-soft); }
.site.dark .submenu a:hover { background: rgba(255,255,255,.06); color: var(--orange-2); }
.site.dark .mobile-menu { background: var(--d-bg); border-color: var(--d-line); }
.site.dark .m-acc { border-color: var(--d-line); }
.site.dark .m-acc-trigger { color: var(--d-text); }
.site.dark .m-acc-panel a { color: var(--d-soft); }

/* Hero */
.site.dark .hero { background: var(--d-bg); }
.site.dark .hero-slide .photo { background-color: #2c211a; }
.site.dark .hero-slide .photo::after { background: linear-gradient(90deg, rgba(33,23,18,0), var(--d-bg) 90%); }
.site.dark .hero h1 { color: var(--d-text) !important; }
.site.dark .hero .sub { color: var(--d-soft) !important; }
.site.dark .hero-ind button { background: rgba(255,255,255,.22); }
.site.dark .hero-ind button.on { background: var(--orange); }

/* Section titles */
.site.dark .sec-title { color: var(--d-soft) !important; }

/* Curriculum */
.site.dark .curriculum { background: var(--d-bg); }
.site.dark .curr-card { background: var(--d-card); box-shadow: 0 4px 20px -6px rgba(0,0,0,.5); }
.site.dark .curr-card h3 { color: var(--d-text) !important; }
.site.dark .curr-card p { color: var(--d-soft) !important; }
.site.dark .tag { background: rgba(232,93,47,.18); color: #FF9A75; }

/* Ticker */
.site.dark .ticker { background: var(--d-bg2); }
.site.dark .t-card { background: var(--d-card); box-shadow: 0 4px 20px -6px rgba(0,0,0,.5); }
.site.dark .t-card p { color: var(--d-text) !important; }

/* Notice */
.site.dark .notice { background: var(--d-bg); }
.site.dark .notice-list { border-color: var(--d-line); }
.site.dark .notice-item { border-color: var(--d-line); }
.site.dark .notice-item:hover { background: rgba(255,255,255,.04); }
.site.dark .notice-item .n-title { color: var(--d-text) !important; }
.site.dark .notice-item .n-excerpt { color: var(--d-mute) !important; }

/* SNS */
.site.dark .sns { background: var(--d-bg2); border-color: var(--d-line); }
.site.dark .sns h2 { color: var(--d-text) !important; }
.site.dark .sns-card { background: var(--d-card); box-shadow: 0 4px 20px -6px rgba(0,0,0,.5); }
.site.dark .sns-card h4 { color: var(--d-text) !important; }
.site.dark .sns-card .s-desc { color: var(--d-soft) !important; }
.stage { scroll-behavior: smooth; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }
  /* stagger children */
  .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
}
