:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --border: rgba(17, 17, 17, 0.14);
  --accent: #111111;
  --accent-text: #ffffff;
  --radius: 8px;
  --button-radius: 6px;
  --max: 1180px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.nav-inner,
.hero,
.section,
.footer-inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand,
.nav-links,
.cta-row,
.official-links,
.footer-inner nav {
  display: flex;
  align-items: center;
}

.brand,
.nav-links,
.hero-copy,
.hero-media {
  min-width: 0;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.nav-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}

.nav-links a,
.footer-inner a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 46px;
  padding: 74px 0 58px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.1;
}

h3 {
  font-size: 22px;
  line-height: 1.22;
}

h4 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.hero-points li {
  display: flex;
  gap: 10px;
}

.hero-points li::before,
.trust-box li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: var(--accent);
  color: var(--accent-text);
}

.button.subtle {
  background: transparent;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.hero-media figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.section {
  padding: 58px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.58fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head.compact {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.section-head p,
.card p,
.article-list p,
.notice p,
.image-card p,
.device-list p,
.editorial-columns p,
.board-grid p,
.support-tree p,
.policy-box p,
.memo-box p,
.mini-index p,
.trust-box p,
.official-link span,
.data-table span {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.notice,
.article-list article,
.device-list article,
.editorial-columns article,
.board-grid article,
.support-tree article,
.policy-box,
.memo-box,
.mini-index,
.trust-box,
.image-card,
.official-link {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.card,
.notice,
.article-list article,
.device-list article,
.editorial-columns article,
.board-grid article,
.support-tree article,
.policy-box,
.memo-box,
.mini-index,
.trust-box {
  padding: 22px;
}

.card {
  display: grid;
  gap: 12px;
}

.kicker,
.device-list span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.timeline,
.notice-stack,
.article-list,
.device-list,
.editorial-columns,
.support-tree {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.timeline li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.timeline div,
.article-list article,
.notice,
.device-list article,
.support-tree article {
  display: grid;
  gap: 10px;
}

.image-card {
  margin: 0;
  overflow: hidden;
}

.image-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.device-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-lead {
  max-width: 760px;
  margin-bottom: 28px;
}

.editorial-lead p {
  color: var(--muted);
  font-size: 20px;
}

.editorial-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.board-grid article {
  display: grid;
  gap: 10px;
}

.board-grid strong,
.memo-box dd {
  color: var(--accent);
  font-size: 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.data-table th,
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 28%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.data-table td {
  display: grid;
  gap: 4px;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.official-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.official-link {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.official-link strong {
  font-size: 20px;
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-strip span,
.mini-index a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.mini-index nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.memo-box dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 24px;
  margin: 22px 0 0;
}

.memo-box dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.memo-box dd {
  margin: 0;
}

.trust-box {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(260px, 0.8fr);
  gap: 30px;
}

.trust-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-box li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

footer {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner div {
  display: grid;
  gap: 4px;
}

.footer-inner strong {
  color: var(--text);
}

.link-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  gap: 10px;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-decoration: none;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .section-head,
  .grid.three,
  .device-list,
  .editorial-columns,
  .official-links,
  .trust-box,
  .link-stack {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 520px) {
  .nav-inner,
  .hero,
  .section,
  .footer-inner {
    width: min(var(--max), calc(100vw - 24px));
  }

  .nav-links a {
    padding: 7px 8px;
  }

  .board-grid,
  .timeline li,
  .memo-box dl {
    grid-template-columns: 1fr;
  }

  .button,
  .official-link {
    width: 100%;
  }

  .network-grid {
    grid-template-columns: 1fr;
  }
}

/* 다이노 공식 주소 네트워크 (허브앤스포크 상호링크) */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.network-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.network-link:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}

.network-link strong {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 14px;
}

.network-link span {
  color: var(--muted);
  font-size: 13px;
}

/* ── 오버플로우 하드닝 (PC/모바일 공통) ──
   공백 없는 영문/URL 토큰(t.me/dinocasino, 다이노카지노주소.com 등)이 버튼·카드·표·
   보드셀을 벗어나 삐져나가거나 잘리는 것을 방지. keep-all로 한글은 단어 단위 유지하고,
   overflow-wrap:anywhere로 넘칠 때만 긴 토큰을 끊습니다. */
h1, h2, h3, h4, p, li, dd, dt, strong, span, a, th, td, figcaption,
.button, .official-link {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* 그리드/플렉스 자식이 내용 폭에 막혀 안 줄어드는 경우 방지 */
.card, .notice, .article-list article, .device-list article,
.editorial-columns article, .board-grid article, .support-tree article,
.timeline div, .memo-box dd, .data-table td, .footer-inner div, .brand {
  min-width: 0;
}

/* 버튼/링크 칩: 내용이 길면 한 줄 고정 대신 줄바꿈 허용 */
.button, .official-link, .network-link, .keyword-strip span, .mini-index a {
  max-width: 100%;
  white-space: normal;
}

.button {
  text-align: center;
}

/* 데이터 표가 좁은 화면에서 가로로 밀릴 때 안전하게 스크롤 */
.module-standard {
  overflow-x: auto;
}

/* ── 공식 주소 자동 점검 상태 카드 ── */
.status-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.status-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-head h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.status-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.status-badge.is-ok .status-led {
  background: #1aa251;
  box-shadow: 0 0 0 4px color-mix(in srgb, #1aa251 22%, transparent);
}

.status-badge.is-warn .status-led {
  background: #d98200;
  box-shadow: 0 0 0 4px color-mix(in srgb, #d98200 22%, transparent);
}

.status-intro {
  margin: 0;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.status-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.status-grid dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-grid dd {
  margin: 0;
  font-weight: 650;
}

.status-note {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.status-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.theme-mongodb {
  --bg: #001e2b;
  --surface: #1c2d38;
  --surface-2: #21313c;
  --text: #ffffff;
  --muted: #b8c4c2;
  --border: #3d4f58;
  --accent: #00ed64;
  --accent-text: #001e2b;
  --radius: 16px;
  --button-radius: 999px;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Source-Code-Pro-style wide-tracked uppercase labels — the "database field label" voice */
.theme-mongodb .eyebrow,
.theme-mongodb .kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Signature MongoDB neon-green accent underline on section headings */
.theme-mongodb .section-head h2 {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

/* Serif display headings stay regular weight — editorial authority, not bold tech */
.theme-mongodb h1,
.theme-mongodb h2 {
  font-weight: 400;
}

/* Forest-tinted elevation: shadows carry the teal-black brand color */
.theme-mongodb .card,
.theme-mongodb .status-card,
.theme-mongodb .notice {
  box-shadow: rgba(0, 30, 43, 0.45) 0px 26px 44px, rgba(0, 0, 0, 0.13) 0px 7px 13px;
}

/* ── helpdesk(desk-*) 골격 전용 스타일 ─────────────────────────────── */

/* Hero band: deep forest gradient with a faint green horizon line */
.theme-mongodb .desk-hero {
  padding: 64px 24px 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 237, 100, 0.09), transparent 70%),
    linear-gradient(180deg, #00151f 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.theme-mongodb .desk-brand a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.theme-mongodb .desk-emblem {
  margin: 22px auto 0;
  max-width: 380px;
}

.theme-mongodb .desk-emblem img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Serif headline: editorial authority, regular weight, tight leading */
.theme-mongodb .desk-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin: 26px auto 0;
  max-width: 760px;
}

.theme-mongodb .desk-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 18px auto 0;
  line-height: 1.7;
}

/* Three channel cards: the desk's front counters */
.theme-mongodb .channel-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 44px auto 0;
  text-align: left;
}

.theme-mongodb .channel-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.theme-mongodb .channel-card:hover,
.theme-mongodb .channel-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: rgba(0, 30, 43, 0.55) 0px 30px 48px, rgba(0, 237, 100, 0.12) 0px 0px 0px 1px;
}

.theme-mongodb .channel-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.theme-mongodb .channel-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-top: 10px;
}

.theme-mongodb .channel-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 10px;
}

/* Slim status strip: one-line ticker under the hero */
.theme-mongodb .status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

/* Glowing green status dot */
.theme-mongodb .strip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.theme-mongodb .strip-dot.is-live {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0, 237, 100, 0.9), 0 0 14px rgba(0, 237, 100, 0.45);
  animation: desk-dot-glow 2.4s ease-in-out infinite;
}

@keyframes desk-dot-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 237, 100, 0.9), 0 0 14px rgba(0, 237, 100, 0.45); }
  50% { box-shadow: 0 0 3px rgba(0, 237, 100, 0.6), 0 0 8px rgba(0, 237, 100, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-mongodb .strip-dot.is-live {
    animation: none;
  }
  .theme-mongodb .channel-card:hover,
  .theme-mongodb .channel-card:focus-visible {
    transform: none;
  }
}

.theme-mongodb .strip-label {
  color: var(--text);
}

.theme-mongodb .strip-link {
  color: var(--accent);
}

.theme-mongodb .desk-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* Multi-column footer: one column per counter, then notice line */
.theme-mongodb .desk-columns {
  border-top: 1px solid var(--border);
  background: #00151f;
  padding: 48px 24px 40px;
}

.theme-mongodb .desk-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.theme-mongodb .desk-col-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.theme-mongodb .desk-col a {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-decoration: none;
}

.theme-mongodb .desk-col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.theme-mongodb .desk-col p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 8px;
}

.theme-mongodb .desk-notice {
  max-width: 980px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.theme-mongodb .desk-build {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

@media (max-width: 760px) {
  .theme-mongodb .channel-cards,
  .theme-mongodb .desk-cols {
    grid-template-columns: 1fr;
  }
  .theme-mongodb .desk-hero {
    padding: 48px 18px 44px;
  }
}
