/* 두라니 주식회사 홍보 사이트 — 공용 스타일 하나.
 *
 * 색은 게임 UI 팔레트(client/scripts/game_data.gd 의 PALETTE)에서 옮겨 왔다. 이름도 같은 역할 이름을 쓴다
 * (--primary-light = PALETTE.primary_light …). 게임 쪽 값을 바꾸면 여기도 같이 바꾼다.
 * 대비(WCAG, bg #171A24 기준): text 15.5 · text-dim 10.2 · text-muted 7.3 · primary-light 12.5 · link 9.9 · violet 7.2 ·
 * primary 5.5(큰 글자·장식에만) · 흰 글자/primary-dark 5.25 · primary-pale/primary-deep 7.05. 본문 글자는 전부 AA 이상.
 * 게임 규칙 그대로 「흰 글자를 올리는 바탕은 primary-dark 이하」다.
 *
 * 글꼴: 제목·로고·버튼은 픽셀 글꼴 Galmuri11(12px 격자라 12의 배수 크기에서만 또렷하다 — 크기는 12·24·36·48),
 * 본문은 읽기 쉬운 시스템 산세리프. 게임과 같은 규칙 — 한 줄 안에서 둘을 섞지 않는다.
 *
 * 모바일 우선: 기본 규칙이 좁은 화면(360px~)이고 넓은 화면은 min-width 미디어쿼리로만 덧붙인다.
 * 탭 대상은 높이 44px 이상, 본문 16px, 가로 스크롤이 생기지 않게 표는 .table-scroll 로 감싼다. */

@font-face {
  font-family: "Galmuri11";
  src: url("/assets/v/fonts/Galmuri11.7f52671d2a4da99ca406d71d1e256987b519da89244e649d9f93d5b31eb8af41.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* 브랜드 틸 — PALETTE.primary_* */
  --primary-light: #66F2CC;
  --primary: #12A38C;
  --primary-dark: #0B7A69;
  --primary-deep: #085C4F;
  --primary-shade: #173833;
  --primary-pale: #BFFFEB;
  --glow: #52CFFF;
  /* 바탕 — PALETTE.bg … */
  --bg: #171A24;
  --screen: #080A12;
  --sheet: #0D121A;
  --panel-sunken: #14171F;
  --panel: #1A1F29;
  --panel-raised: #242933;
  --border: #667085;
  --border-soft: #2E3442; /* panel-raised 와 border 사이 — 카드 테두리용(장식, 글자 아님) */
  --disabled: #6B7385;
  /* 글자 */
  --text: #F0F2F7;
  --text-sub: #D9E6FF;
  --text-dim: #BFC7D9;
  --text-muted: #9EA8BD;
  --outline: #141A26;
  /* 의미 */
  --warning: #FFC773;
  --warning-bg: #40240A;
  --gold: #FFDB73;
  --success: #8CFF99;
  --dooranium: #8CFFEB;
  --link: #80CCFF;
  --violet: #CC8CFF;
  --danger: #FF998C;

  --font-pixel: "Galmuri11", ui-monospace, monospace;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic",
    "Noto Sans KR", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --gutter: 16px;
  --radius: 4px;
  --tap: 44px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;      /* 한글을 낱말 단위로 줄바꿈 — 게임의 ko@lw=phrase 와 같은 뜻 */
  overflow-wrap: break-word; /* 긴 URL·영문 낱말은 끊어서라도 가로 넘침을 막는다(anywhere 는 최소 폭까지 줄여 표·메뉴를 한 글자씩 꺾는다) */
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--primary-pale); }
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; }
p, ul, ol, dl { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 6px; }
strong { color: var(--text); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--panel-sunken);
  padding: 1px 5px;
  border-radius: 3px;
}

.pixel {
  font-family: var(--font-pixel);
  font-weight: normal;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

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

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip:focus { top: 8px; }

/* ── 머리 ──────────────────────────────────────────────── */
.site-header {
  background: var(--sheet);
  border-bottom: 2px solid var(--primary-shade);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding-top: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--primary-light); }
.brand img { width: 40px; height: 40px; image-rendering: auto; }
.brand-name { font-size: 24px; line-height: 1; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.lang-switch:hover { color: var(--text); border-color: var(--primary-light); }

/* 좁은 화면에서는 메뉴가 둘째 줄 전체를 탭 세 칸(홈 · QnA · 공지사항)으로 나눠 쓴다 */
.site-nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
}
.site-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 24px;
  -webkit-font-smoothing: none;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

@media (min-width: 720px) {
  .header-inner { flex-wrap: nowrap; padding-top: 0; gap: 16px; }
  .site-nav { order: 0; flex: 0 0 auto; gap: 8px; }
  .site-nav a { flex: 0 0 auto; padding: 0 16px; min-height: 64px; white-space: nowrap; }
  .brand img { width: 48px; height: 48px; }
}

main { flex: 1 0 auto; }

/* ── 버튼 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary-light);
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  -webkit-font-smoothing: none;
  box-shadow: 4px 4px 0 var(--screen);
}
.btn:hover { background: var(--primary-shade); color: var(--primary-pale); }
.btn-primary {
  background: var(--primary-dark);
  border-color: var(--primary-light);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-deep); color: #fff; }

/* ── 히어로 ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px 0 48px;
  background:
    radial-gradient(circle at 50% 30%, rgba(82, 207, 255, 0.16), transparent 42%),
    linear-gradient(transparent 0 calc(100% - 1px), rgba(102, 242, 204, 0.06) calc(100% - 1px)) 0 0 / 100% 24px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(102, 242, 204, 0.06) calc(100% - 1px)) 0 0 / 24px 100%,
    var(--bg);
  border-bottom: 2px solid var(--primary-shade);
}
.hero::after {
  /* 지평선 — 조사하러 내려선 행성의 땅 */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -120px;
  height: 200px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(var(--primary-shade), var(--sheet) 60%);
  border-top: 2px solid var(--primary-dark);
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-logo { width: 144px; height: 144px; margin: 0 auto 12px; display: block; }
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--primary-dark);
  border-radius: var(--radius);
  background: rgba(8, 92, 79, 0.35);
  color: var(--primary-pale);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 { font-size: 36px; margin: 0 0 4px; color: var(--text); text-shadow: 3px 3px 0 var(--outline); }
.hero .en-name { font-size: 12px; color: var(--primary-light); margin: 0 0 16px; letter-spacing: 1px; }
.tagline { font-size: 18px; font-weight: 700; color: var(--text-sub); margin: 0 auto 12px; max-width: 34em; }
.lead { color: var(--text-dim); margin: 0 auto 24px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.cta .btn { flex: 1 1 200px; max-width: 280px; }

@media (min-width: 720px) {
  .hero { padding: 64px 0 88px; }
  .hero-logo { width: 192px; height: 192px; }
  .hero h1 { font-size: 48px; }
  .hero .en-name { font-size: 24px; }
  .tagline { font-size: 20px; }
}

/* ── 구역 ──────────────────────────────────────────────── */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--panel-raised); }
.section-alt { background: var(--sheet); }
.section-title {
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 24px;
  color: var(--primary-light);
  -webkit-font-smoothing: none;
  margin-bottom: 8px;
}
.section-title::before { content: "▸ "; color: var(--primary); }
.section-intro { color: var(--text-dim); max-width: 44em; margin-bottom: 24px; }
@media (min-width: 720px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 36px; }
}

/* 게임 화면 나열(홈 「전초기지의 하루」) — 세로 9:16 스크린샷 + 소제목 + 한 줄 설명.
 * 좁은 화면은 한 줄로 늘어놓고 가로로 넘겨 본다(한 장씩 붙음 · 다음 장이 옆에 비쳐 넘길 수 있음을 알린다 — 페이지는 넘치지 않는다),
 * 640px~ 2열, 960px~ 4열 격자 */
.shots {
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
}
.shots:focus-visible { outline-offset: -3px; }
.shots > ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 280px);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots li { margin: 0; scroll-snap-align: start; }
@media (min-width: 640px) {
  .shots { margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .shots > ul { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) { .shots > ul { grid-template-columns: repeat(4, 1fr); } }

.shot {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--screen);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--screen);
  border-bottom: 1px solid var(--border-soft);
}
.shot figcaption { padding: 16px; }
.shot h3 {
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 24px;
  color: var(--text);
  -webkit-font-smoothing: none;
}
.shot p { color: var(--text-dim); font-size: 15px; margin: 0; }
.shot .tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--primary-light);
  -webkit-font-smoothing: none;
}
.shots-more { color: var(--text-dim); max-width: 44em; margin: 24px 0 0; }

/* ── 스토어 ────────────────────────────────────────────── */
.stores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}
.stores > li { margin: 0; }
@media (min-width: 560px) { .stores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stores { grid-template-columns: repeat(5, 1fr); } }

/* 카드 = 단색 브랜드 아이콘(layouts/_partials/store-icon.html — 32px, 글자색을 따른다) + 글자 묶음.
   좁은 화면(한 줄·두 줄 배치)은 아이콘이 왼쪽, 다섯 칸 한 줄(960px~)은 위 */
.store {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 88px;
  padding: 14px 16px;
  background: var(--panel);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--screen);
}
.store-icon {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--primary-light);
}
.store-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
@media (min-width: 960px) {
  .store { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; }
}
.store-name {
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1.2;
  -webkit-font-smoothing: none;
}
.store-platform { font-size: 14px; color: var(--text-muted); }
.store-state {
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--panel-raised);
}
/* 주소가 있는 스토어(hugo.toml params.stores 에 주소가 있으면 빌드가 href 와 is-live 를 붙인다 — layouts/_shortcodes/store.html) */
.store.is-live { border-color: var(--primary-dark); }
.store.is-live .store-state { background: var(--primary-dark); color: #fff; }
.store.is-live:hover { border-color: var(--primary-light); background: var(--primary-shade); }
.store.is-live:hover .store-name { color: var(--primary-pale); }
.store:not(.is-live) .store-name, .store:not(.is-live) .store-icon { color: var(--text-dim); }
.store.is-live:hover .store-icon { color: var(--primary-pale); }

.note {
  padding: 14px 16px;
  background: var(--panel-sunken);
  border-left: 4px solid var(--primary-dark);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-warn { border-left-color: var(--warning); background: var(--warning-bg); color: var(--text-sub); }
/* 약관·방침 머리의 판 안내 띠(layouts/page.html — 개정 예정 · 지난 판 · 시행 중 · 시행 예정) — 문서 폭에 맞춘다 */
.legal-band { max-width: 760px; margin-top: 24px; }
.legal-soon { color: var(--warning); }
.legal-now { color: var(--primary-light); font-weight: 700; }

/* 안전 목록 */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; } }
.checks li { margin: 0; padding-left: 28px; position: relative; color: var(--text-dim); }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background: var(--primary-light);
  box-shadow: 2px 2px 0 var(--primary-dark);
}
.checks strong { display: block; color: var(--text); }

.more { margin: 24px 0 0; }

/* ── 문서(QnA · 약관 · 방침) ───────────────────────────── */
.page-head { padding: 32px 0 8px; }
.page-head h1 {
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 36px;
  color: var(--primary-light);
  -webkit-font-smoothing: none;
}
@media (min-width: 720px) { .page-head { padding-top: 48px; } .page-head h1 { font-size: 48px; } }
.page-head p { color: var(--text-dim); max-width: 46em; }

.doc { max-width: 760px; padding-bottom: 48px; }
.doc h2 {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-raised);
  font-size: 20px;
  color: var(--text);
}
.doc h3 { margin-top: 24px; font-size: 17px; color: var(--text-sub); }
.doc p, .doc li, .doc td, .doc dd { color: var(--text-dim); }
.doc strong { color: var(--text); }

.doc-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.doc-meta dt { color: var(--text-muted); font-size: 14px; }
.doc-meta dd { margin: 0; color: var(--text); font-weight: 600; }

.toc {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--panel-sunken);
  border-radius: var(--radius);
}
.toc h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; color: var(--text-muted); }
.toc ol, .toc ul { margin: 0; padding-left: 1.4em; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-block; padding: 6px 0; }

/* 라이선스 원문(licenses.html) — 원문 줄바꿈은 지키되 좁은 화면에서는 줄을 접어 가로로 넘치지 않는다 */
.license-text {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--panel-sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* 자리표시자 — 채우기 전 값. 화면에서도 눈에 띄게 */
.ph {
  padding: 0 4px;
  border-radius: 3px;
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 700;
  white-space: normal;
}

/* 표 — 좁은 화면에서는 표만 가로로 스크롤된다(페이지는 넘치지 않는다) */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.table-scroll:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; padding: 10px 12px 0; color: var(--text-muted); font-size: 14px; }
th, td { padding: 10px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--panel-raised); }
thead th { background: var(--panel-raised); color: var(--text); font-size: 14px; white-space: nowrap; }
tbody th { color: var(--text-sub); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.wide-table { min-width: 640px; }
.wide-table tbody th { width: 9em; }

/* QnA */
.qna-group { margin-top: 32px; }
.qna-group > h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 24px;
  color: var(--primary-light);
  -webkit-font-smoothing: none;
}
.qna-item {
  margin: 0 0 8px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.qna-item > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}
.qna-item > summary::-webkit-details-marker { display: none; }
.qna-item > summary::before {
  content: "Q";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: var(--primary-dark);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 12px;
  -webkit-font-smoothing: none;
}
.qna-item > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--primary-light);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.qna-item[open] > summary::after { content: "−"; }
.qna-item[open] > summary { border-bottom: 1px solid var(--panel-raised); }
.qna-item > summary:hover { background: var(--panel-raised); }
.qna-body { padding: 14px 16px 2px; }
.qna-body p, .qna-body li { color: var(--text-dim); }

/* 공지사항 — 목록·글은 website/layouts/notices/ 템플릿이 마크다운 원고로 만든다. 공지 제목·본문은 운영자가 쓴 글이라 픽셀이 아니라 본문 글꼴 */
.notice-page-of { font-size: 14px; color: var(--text-muted); margin-top: -8px; }
.notice-empty {
  margin: 8px 0 48px;
  padding: 32px 16px;
  text-align: center;
  background: var(--panel-sunken);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.notice-list { list-style: none; padding: 0; margin: 8px 0 24px; }
.notice-list > li { margin: 0 0 8px; }
.notice-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: var(--tap);
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--primary-dark);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.notice-row:hover { background: var(--panel-raised); border-left-color: var(--primary-light); color: var(--text); }
.notice-row-title { font-weight: 700; line-height: 1.5; }
.notice-row:hover .notice-row-title { color: var(--primary-pale); }
.notice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.cat {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.cat-update { color: var(--primary-light); }
.cat-maintenance { color: var(--warning); }
.cat-event { color: var(--gold); }
.cat-policy { color: var(--violet); }
.cat-other { color: var(--text-dim); }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 48px;
}
.pager-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pager-pages > li { margin: 0; }
.pager a, .pager-step, .pager-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 10px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.pager a { border: 1px solid var(--border-soft); background: var(--panel); color: var(--text-dim); }
.pager a:hover { border-color: var(--primary-light); color: var(--text); }
.pager a[aria-current="page"] { background: var(--primary-dark); border-color: var(--primary-light); color: #fff; }
.pager span.pager-step { color: var(--disabled); border: 1px solid var(--panel-raised); } /* 누를 수 없는 이전·다음 — 비활성 컨트롤이라 4.5:1 대상 밖 */
.pager-gap { min-width: 0; padding: 0 2px; color: var(--text-muted); }

.notice-post { padding-top: 24px; }
.notice-back { margin: 0 0 16px; font-size: 15px; }
.notice-back a { display: inline-flex; align-items: center; min-height: var(--tap); }
.notice-head { margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--panel-raised); }
.notice-head .notice-meta { margin: 0 0 8px; }
.notice-title { font-size: 24px; color: var(--text); }
@media (min-width: 720px) { .notice-post { padding-top: 40px; } .notice-title { font-size: 30px; } }
.notice-body img { display: block; margin: 0 0 16px; border-radius: var(--radius); }
.notice-body h2:first-child { margin-top: 0; }
/* 공지 마크다운 표(layouts/_markup/render-table.html — 개정 공지의 신·구 비교표) — 첫 칸은 조항 이름, 지운 글자는 흐린 취소선 */
.notice-body td:first-child { width: 9em; color: var(--text-sub); font-weight: 600; }
.notice-body del { color: var(--text-muted); }
.notice-foot { margin: 40px 0 0; }

/* ── 꼬리 ──────────────────────────────────────────────── */
.site-footer {
  margin-top: 0;
  padding: 28px 0 32px;
  background: var(--screen);
  border-top: 2px solid var(--primary-shade);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}
.footer-links li { margin: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-dim);
  font-weight: 600;
}
.footer-links a:hover { color: var(--text); }
/* 사업자 정보(layouts/_partials/footer-biz.html) — 작은 글자로 「이름 값」 묶음이 줄을 채우며 넘어간다. 긴 주소는 묶음 안에서 줄바꿈 */
.footer-biz {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.footer-biz li { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.footer-biz .biz-k { color: var(--text-muted); margin-right: 2px; }
.footer-biz a { color: var(--text-dim); }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine a { color: var(--text-muted); }

/* ── 한 장짜리 화면(언어 고르기 · 404) ────────────────── */
.center-page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--gutter);
  text-align: center;
}
.center-page h1 { font-size: 36px; color: var(--primary-light); }
.center-page img { display: block; margin: 0 auto 16px; }
.center-page .cta { margin-top: 16px; }
.center-page p { color: var(--text-dim); }
.center-links { justify-content: center; margin: 24px 0 0; }
