/* =========================================================
   OPYEB hub
   Design language shared with studio.opyeb.com:
   obsidian panels, muted gold accent, mono labels, serif display.
   Dark is the default; html[data-theme="light"] switches to paper.
   ========================================================= */

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

:root {
  color-scheme: dark;

  --bg: #0b0b0d;
  --bg2: #101014;
  --panel: #121216;
  --panel2: #17171c;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .18);
  --ink: #f5f2ea;
  --muted: #a8a296;
  --muted2: #857e72;
  --accent: #e5b45c;
  --accent-dim: rgba(229, 180, 92, .14);
  --accent-line: rgba(229, 180, 92, .40);
  --on-accent: #191104;
  --card-sheen: rgba(255, 255, 255, .032);
  --glow-a: rgba(229, 180, 92, .10);
  --glow-b: rgba(229, 180, 92, .05);
  --bar-bg: rgba(11, 11, 13, .78);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
          "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Malgun Gothic", "Noto Sans KR",
          "Noto Sans JP", "Noto Sans SC", "Noto Sans CJK KR", "Noto Sans",
          "Helvetica Neue", Arial, "Liberation Sans", "DejaVu Sans", system-ui, sans-serif;
  --display: "Helvetica Neue", "Segoe UI", Arial, "Noto Sans KR", "Noto Sans CJK KR",
             "Liberation Sans", "DejaVu Sans", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "AppleMyungjo",
           "Nanum Myeongjo", "Noto Serif CJK KR", "Noto Serif KR", Batang, "Songti SC",
           "Times New Roman", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f6f3ec;
  --bg2: #fbf9f4;
  --panel: #ffffff;
  --panel2: #f3efe6;
  --line: rgba(26, 20, 11, .11);
  --line2: rgba(26, 20, 11, .24);
  --ink: #171310;
  --muted: #5b5346;
  --muted2: #6d6459;
  --accent: #96661a;
  --accent-dim: rgba(150, 102, 26, .11);
  --accent-line: rgba(150, 102, 26, .42);
  --on-accent: #fffaf0;
  --card-sheen: rgba(150, 102, 26, .045);
  --glow-a: rgba(196, 140, 46, .13);
  --glow-b: rgba(196, 140, 46, .07);
  --bar-bg: rgba(246, 243, 236, .84);
  --shadow: 0 18px 40px -26px rgba(50, 38, 18, .35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% -20%, var(--glow-a), transparent 62%),
    radial-gradient(70% 45% at 100% 4%, var(--glow-b), transparent 58%);
  background-repeat: no-repeat;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body, html[lang="zh-Hant"] body { word-break: normal; }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 14px; top: -70px; z-index: 90;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--accent-line); background: var(--panel);
  font-size: 13px; font-weight: 600; transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

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

.wrap--narrow { max-width: 760px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 0;
}

.brand-word {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
}

.brand-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.topbar-link {
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.topbar-link:hover { color: var(--ink); border-bottom-color: var(--line2); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.lang-switch .lt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted2);
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.lang-switch .lt:hover { color: var(--ink); }

.lang-switch .lt[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-dim);
}

.lang-switch .lt-zh { letter-spacing: .02em; }

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .15s ease;
}

.icon-button:hover { color: var(--ink); border-color: var(--line2); }
.icon-button:active { transform: scale(.94); }
.icon-button svg { width: 17px; height: 17px; }
.icon-button .i-moon { display: none; }
:root[data-theme="light"] .icon-button .i-sun { display: none; }
:root[data-theme="light"] .icon-button .i-moon { display: block; }

/* ---------- hero ---------- */
.hero { padding-top: 34px; padding-bottom: 30px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 11px;
  border: 1px solid rgba(229, 180, 92, .28);
  border-radius: 999px;
  background: rgba(229, 180, 92, .06);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

:root[data-theme="light"] .eyebrow {
  border-color: rgba(150, 102, 26, .3);
  background: rgba(150, 102, 26, .06);
}

.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 5.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hero h1 .soft { color: var(--muted); }

html[lang="en"] .hero h1 .soft { font-style: italic; }

.hero h1 .gold { color: var(--accent); }

.hero .lede {
  max-width: 64ch;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.68;
  color: var(--muted);
}

.hero .lede strong { color: var(--ink); font-weight: 600; }

/* search */
.search {
  position: relative;
  max-width: 560px;
  margin-top: 26px;
}

.search .search-icon {
  position: absolute;
  left: 15px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  color: var(--muted2);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 44px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.search input::placeholder { color: var(--muted2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

.search input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--panel);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.search-clear {
  position: absolute;
  right: 9px; top: 50%;
  display: none;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel2);
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.search-clear:hover { color: var(--ink); }
.search.has-value .search-clear { display: grid; }
.search-clear svg { width: 13px; height: 13px; }

/* stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 0 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
  white-space: nowrap;
}

/* ---------- tabs ---------- */
.tabs-row {
  position: sticky;
  top: 63px;
  z-index: 40;
  padding-top: 10px; padding-bottom: 10px;
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.tab:hover { color: var(--ink); }

.tab[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

.tab .n {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted2);
}

.tab[aria-pressed="true"] .n { color: var(--accent); opacity: .8; }

/* ---------- sections ---------- */
.sec { padding: 40px 0 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.sec-head .kick {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted2);
}

.sec-head h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.sec-note {
  flex: none;
  padding-bottom: 3px;
  font-size: 12px;
  color: var(--muted2);
  text-align: right;
}

.sec-lede {
  max-width: 62ch;
  margin: -8px 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted2);
}

/* groups */
.group { margin-bottom: 26px; }
.group:last-child { margin-bottom: 0; }

.group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.group-head .mark {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.group-head .count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: .06em;
}

.group-head .g-note {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted2);
  text-align: right;
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-sheen), transparent 46%), var(--panel);
  transition: border-color .22s ease, transform .22s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(90% 65% at 85% -10%, var(--accent-dim), transparent 62%);
  opacity: 0;
  transition: opacity .28s ease;
}

.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted2);
}

.kind {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted2);
  text-align: right;
}

html[lang="ko"] .kind { text-transform: none; letter-spacing: .02em; font-size: 10px; }

.card h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.28;
}

.card p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.58;
  color: var(--muted);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--accent);
}

.open .arw { transition: transform .22s ease; }
.card:hover .open .arw { transform: translateX(4px); }

.host {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52%;
  text-align: right;
}

.group-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.group-more:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.group-more svg { width: 13px; height: 13px; }

/* ---------- studio tools ---------- */
.tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.tools-bar .studio {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
}

.tools-bar .studio strong {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--ink);
}

.tools-bar .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tools-bar .open-studio {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.tools-bar .open-studio .arw { transition: transform .2s ease; }
.tools-bar .open-studio:hover .arw { transform: translateX(3px); }
.tools-bar .open-studio svg { width: 13px; height: 13px; }

.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  background: var(--bg2);
  color: var(--ink);
  font-size: 13.5px;
  transition: background .18s ease;
}

.list a:hover, .list a:focus-visible { background: var(--panel2); }

.list a b { font-weight: 600; letter-spacing: -.01em; }

.list a span {
  color: var(--muted2);
  font-size: 11.5px;
  text-align: right;
  flex: none;
}

.list a span.desc { flex: 1 1 auto; min-width: 0; }

.sec.is-clipped .list li:nth-child(n + 13) { display: none; }

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.btn:hover { border-color: var(--accent-line); color: var(--accent); }
.btn svg { width: 14px; height: 14px; }

.btn.btn--solid {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn.btn--solid:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.06); }

/* prose links must not restyle buttons or list rows */
.prose a.btn {
  color: var(--ink);
  border-bottom: 0;
}

.prose a.btn.btn--solid { color: var(--on-accent); }
.prose .link-list a { color: var(--ink); border-bottom: 0; }
.prose .link-list a:hover { color: var(--accent); }

/* empty state */
.empty {
  margin: 26px 0 0;
  padding: 40px 20px;
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  text-align: center;
}

.empty b { display: block; font-size: 15px; }
.empty p { margin-top: 6px; font-size: 13px; color: var(--muted2); }
.empty .btn-row { margin-top: 16px; }

/* notes */
.notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 44px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.note { display: flex; gap: 12px; }

.note .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
}

.note .ico svg { width: 15px; height: 15px; }
.note b { display: block; font-size: 12.5px; font-weight: 650; }

.note p {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted2);
}

/* ---------- prose pages ---------- */
.page { padding-top: 40px; padding-bottom: 10px; }

.page-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-head .kick {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.page-head .page-lede {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--muted);
}

.prose {
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}

.prose h2 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 6px; font-size: 14.5px; color: var(--ink); }
.prose p { margin: 0 0 12px; }

.prose ul, .prose ol { margin: 0 0 14px; padding-left: 19px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--muted2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.prose a:hover { border-bottom-color: var(--accent-line); }

.callout {
  margin: 20px 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--panel);
  font-size: 13.5px;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.notice[hidden] { display: none; }
.notice svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }

.updated {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted2);
}

.contact-box {
  margin: 6px 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact-box .mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 6px 0 18px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.link-list a:hover { background: var(--panel2); color: var(--accent); }
.link-list b { font-size: 13.5px; font-weight: 600; }

.link-list span { font-size: 11.5px; font-weight: 400; color: var(--muted2); }

/* ---------- footer ---------- */
.foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-top: 34px; padding-bottom: 24px;
}

.foot-brand .brand { margin-bottom: 10px; }

.foot-brand p {
  max-width: 40ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted2);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.foot-col h4 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted2);
}

.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin-bottom: 7px; }

.foot-col a {
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.foot-col a:hover { color: var(--ink); border-bottom-color: var(--line2); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 14px; padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted2);
}

.foot-bottom .mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.foot-bottom .sep { margin-left: auto; }

.foot-bottom a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.foot-bottom a:hover { color: var(--ink); border-bottom-color: var(--line2); }

[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .hero { padding-top: 46px; padding-bottom: 34px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .list { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .card { padding: 20px 20px 15px; }
  .foot-inner { grid-template-columns: 1fr 1.2fr; gap: 30px; }
  .link-list { grid-template-columns: 1fr 1fr; }
  .topbar-inner { min-height: 66px; }
  .tabs-row { top: 67px; }
}

@media (min-width: 960px) {
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .hero h1 { max-width: 22ch; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-head h2 { font-size: 22px; }
}

@media (max-width: 899px) {
  .top-nav { display: none; }

  .tabs {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
  }
}

@media (max-width: 639px) {
  .topbar-inner { gap: 8px; }
  .brand-label { display: none; }
  .brand-mark { width: 24px; height: 24px; }
  .lang-switch { height: 32px; padding: 2px; }
  .lang-switch .lt { height: 26px; padding: 0 5px; font-size: 10px; }
  .stat {
    width: 50%;
    margin: 0 0 10px;
    padding: 0 12px 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .sec-head { flex-wrap: wrap; align-items: flex-start; }
  .sec-note { width: 100%; text-align: left; }
  .group-head .g-note { display: none; }
  .list a { gap: 10px; }
  .list a span { font-size: 11px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (hover: none) {
  .card:hover { transform: none; }
  .card:hover .open .arw { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .tabs-row, .search, .more-row, .foot, .tools-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .list, .notes, .note { border-color: #ccc; }
}

/* =========================================================
   Korea essentials: hub band and /korea/ guide
   Same palette as the rest of the hub. Inside .wrap only, so the
   page keeps its 20px / 28px side padding.
   ========================================================= */

/* ---------- hub band ---------- */
.kband { padding-top: 6px; padding-bottom: 4px; }

.kband-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(140% 120% at 0% 0%, var(--accent-dim), transparent 62%),
    linear-gradient(180deg, var(--card-sheen), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.kband-main .kick {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.kband-main h2 {
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.22;
  letter-spacing: -.015em;
}

.kband-lede {
  max-width: 56ch;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--muted);
}

.kband-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 16px;
}

.kband-chips span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  font-size: 11.5px;
  color: var(--muted);
}

.kband-cta { height: 38px; }

.kband-side {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.kband-side .kick {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted2);
}

.kband-side ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.kband-side a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  transition: border-color .18s ease, color .18s ease;
}

.kband-side a:hover { border-color: var(--accent-line); color: var(--accent); }
.kband-side b { font-size: 12.5px; font-weight: 600; }
.kband-side .host {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
}

/* ---------- guide page ---------- */
.kpage { padding-top: 34px; padding-bottom: 20px; }

.kg-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.kg-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.kg-fact { padding: 12px 14px; background: var(--panel); }

.kg-fact span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.kg-fact b { font-size: 12.5px; font-weight: 600; }

.kg-start {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-dim);
}

.kg-start h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kg-start ol {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.62;
}

.kg-start li { margin-bottom: 5px; }
.kg-start li::marker { color: var(--accent); font-family: var(--mono); font-size: 11px; }

.kg-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kg-toc-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted2);
}

.kg-toc-links { display: flex; flex-wrap: wrap; gap: 6px; }

.kg-toc a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  font-size: 12px;
  color: var(--muted);
  transition: border-color .18s ease, color .18s ease;
}

.kg-toc a:hover { border-color: var(--accent-line); color: var(--accent); }
.kg-toc a span { font-family: var(--mono); font-size: 10px; color: var(--accent); }

.kg-sec { padding-top: 34px; }

.kg-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.kg-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
}

.kg-ico { width: 16px; height: 16px; color: var(--accent); }

.kg-sec-head h2 {
  flex: 1 1 100%;
  margin-top: 2px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 25px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.kg-lede {
  flex: 1 1 100%;
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--muted);
}

.kg-block { max-width: 74ch; margin-bottom: 18px; }
.kg-block:last-child { margin-bottom: 14px; }

.kg-block h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.kg-block p {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.kg-block p:last-child { margin-bottom: 0; }
.kg-block a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.kg-block a:hover { border-bottom-color: var(--accent-line); }

.kg-links {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.kg-links-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.kg-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
}

.kg-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  font-size: 12px;
  color: var(--ink);
  transition: border-color .18s ease, color .18s ease;
}

.kg-links a:hover { border-color: var(--accent-line); color: var(--accent); }
.kg-links .arw { font-size: 10px; color: var(--accent); }

.kg-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.kg-tool {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color .18s ease, transform .18s ease;
}

.kg-tool:hover { border-color: var(--accent-line); }
.kg-tool b { font-size: 13.5px; font-weight: 650; }
.kg-tool span:not(.host) { font-size: 12px; line-height: 1.55; color: var(--muted); }
.kg-tool .host {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
}

.kg-updated {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
}

.kpage .callout { margin: 8px 0 30px; }

@media (min-width: 640px) {
  .kband-in { grid-template-columns: 1.45fr 1fr; gap: 24px; padding: 26px 26px; }
  .kband-side { padding-top: 0; padding-left: 22px; border-top: 0; border-left: 1px solid var(--line); }
  .kg-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kg-tools { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .kband-in { padding: 30px 32px; }
  .kg-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kg-sec { padding-top: 40px; }
}

@media (max-width: 639px) {
  .kband-in { padding: 18px 16px; }
  .kband-chips { margin-bottom: 14px; }
  .kg-toc-links { width: 100%; }
  .kg-fact b { font-size: 12px; }
  .kg-block p { font-size: 13.5px; }
}

/* ---- OPYEB official brand symbol (site-wide logo package) ---- */
.brand-mark{display:inline-block;width:28px;height:28px;min-width:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;flex:none;line-height:0;overflow:visible}
.brand-mark .brand-sym{display:block;width:100%;height:100%;object-fit:contain}
.brand-mark .brand-sym-light{display:none}
html[data-theme="light"] .brand-mark .brand-sym-dark{display:none}
html[data-theme="light"] .brand-mark .brand-sym-light{display:block}
@media (max-width:639px){.brand.mark, .brand .brand-mark{width:24px;height:24px}}
