/* =========================
   IP119.biz | HQ Positioning CSS (Index-first baseline)
   - Control 70 / System 30
   - No marketing cards. No photo-led visuals.
   - Static, rule-driven layout.
   ========================= */

/* Pretendard (CDN) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* ---------------------------------
   TOKENS
---------------------------------- */
/* @tokens */
:root {
  /* Color */
  --bg: #ffffff;
  --ink: #0b1220;
  --muted: #3b4456;
  --faint: #6b7280;
  --line: rgba(15, 23, 42, 0.14);
  --line2: rgba(15, 23, 42, 0.08);

  /* Dark panel */
  --panel-bg: #0b1220;
  --panel-ink: rgba(255, 255, 255, 0.92);
  --panel-muted: rgba(255, 255, 255, 0.68);
  --panel-line: rgba(255, 255, 255, 0.14);
  --panel-line2: rgba(255, 255, 255, 0.08);

  /* Accent (restrained) */
  --accent: #122544;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(18px, 3.2vw, 42px);
  --gap-1: clamp(10px, 1.2vw, 14px);
  --gap-2: clamp(16px, 2vw, 24px);
  --gap-3: clamp(22px, 3.2vw, 40px);

  /* Typography */
  --font: "Pretendard", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --fs-0: 14px;
  --fs-1: 16px;
  --fs-2: 18px;
  --fs-3: 22px;
  --fs-4: clamp(42px, 5vw, 76px); /* Declaration */
  --lh-tight: 1.02;
  --lh: 1.5;

  /* Radius (minimal) */
  --r-1: 10px;
  --r-2: 16px;

  /* Rules */
  --rule-w: 1px;
  --rule: var(--line);
}

/* ---------------------------------
   BASE
---------------------------------- */
* {
  box-sizing: border-box;
}
html,

/* @base */
/* @base
   STAGE 7-5 — merged duplicate body blocks (top-level)
*/
body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  display: block;
}
::selection {
  background: rgba(18, 37, 68, 0.14);
}

/* @layout */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 72px;
}

/* Subpages can override wrap spacing */
.page-home .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* ---------------------------------
   NAV
---------------------------------- */

/* @nav */
.nav {
  position: relative;
  border-bottom: var(--rule-w) solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-2);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo--txt {
  width: 92px;
  height: auto;
  opacity: 0.92;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  font-size: 14px;
  color: var(--muted);
}
.nav-menu a {
  padding: 6px 2px;
  text-decoration: none;
}
.nav-menu a.active {
  color: var(--ink);
  font-weight: 650;
}
.nav-menu a:hover {
  color: var(--ink);
  text-decoration: none;
}

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

/* ---------------------------------
   META / TYPO UTIL
---------------------------------- */
.kicker,
.structure-kicker,
.meta__tag,
.ref-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.meta__sep {
  width: 18px;
  height: 1px;
  background: rgba(15, 23, 42, 0.18);
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}
.lead {
  font-size: var(--fs-2);
  color: var(--muted);
  max-width: 66ch;
}

/* ---------------------------------
   BUTTONS (restrained)
---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: var(--r-1);
  border: var(--rule-w) solid var(--line);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn:active {
  transform: translateY(0);
}

/* ---------------------------------
   HERO | A (Split Axis)
---------------------------------- */

/* @hero */
.hero {
  padding: 0;
  margin: 0;
}
.hero--split {
  min-height: 660px;
  display: grid;
  align-items: stretch;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--gap-3);
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .structure-list {
    border-left: none;
    padding-left: 0;
  }
}

.hero__left {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 6px;
}

.hero__meta {
  color: var(--faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.hero__title {
  font-size: var(--fs-4);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 11.5em;
  word-break: keep-all;
  margin-bottom: 36px;
}

.hero__submeta {
  margin-bottom: 8px;
}

.hero__lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 8px;
}

.hero__body {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 64px;
}

.hero__core {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line2);
  /* Axis */
  position: relative;
  padding-left: 18px;
}

.hero__core::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px; /* border-top 아래에서 시작 */
  bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: 0.9;
}

.hero__core-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__core-links {
  display: flex;
  gap: 20px;
  align-items: baseline;
  font-size: 15px;
}

.hero__core-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.82;
  position: relative;
  padding-left: 14px; /* 축에서 떨어지게 */
}

.hero__core-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* 링크 앞 방향 표시 */
.hero__core-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 1px;
  background: var(--line);
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.hero__kv {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: var(--rule-w) solid var(--line2);
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  max-width: 640px;
}
.kv dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 4px;
}
.kv dd {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  word-break: keep-all; /* 단어 중간 분해 방지 */
  line-break: strict; /* 한글 줄바꿈 규칙 강화(지원 브라우저) */
  overflow-wrap: normal; /* 임의 쪼개기 억제 */
}
@media (max-width: 900px) {
  .hero__kv {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
@media (max-width: 560px) {
  .hero__kv {
    grid-template-columns: 1fr;
  }
}

/* Right Panel as HQ Reference device */
.hero__right {
  display: grid;
}

/* @panel */
.hero__panel {
  background: var(--panel-bg);
  color: var(--panel-ink);
  border-radius: var(--r-2);
  border: var(--rule-w) solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
@media (max-width: 980px) {
  .hero__panel {
    min-height: 360px;
  }
}

/* Inset frame + corner ticks */
.panel__frame {
  position: absolute;
  inset: 20px;
  border: var(--rule-w) solid var(--panel-line);
  border-radius: 14px;
  pointer-events: none;
}
.panel__frame::before,
.panel__frame::before {
  left: -1px;
  top: -1px;
  border-right: none;
  border-bottom: none;
}

/* Grid overlay */
.panel__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--panel-line2) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(to bottom, var(--panel-line2) 1px, transparent 1px) 0 0/28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

/* Header label */
.panel__header {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.panel__sub {
  opacity: 0.9;
}

/* Bridge line: ties left declaration to the panel (system feel) */
.panel__bridge {
  position: absolute;
  left: -22px;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--panel-line);
  transform: translateY(-1px);
  opacity: 0.85;
}

/* Infrastructure SVG */
.panel__infra {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

/* SVG primitives */
.panel__infra path {
  fill: none;
  stroke: var(--panel-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.panel__infra circle {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.panel__infra rect {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.panel__seal {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 84px;
  height: auto;
  opacity: 0.14;
  filter: saturate(0);
  pointer-events: none;
}

/* ---------------------------------
   STRUCTURE SECTION (Index)
---------------------------------- */

/* @structure */
.home-structure {
  margin-top: 52px;
  padding-top: 44px;
  border-top: var(--rule-w) solid var(--line2);
}
.structure-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.structure-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.structure-kicker {
  color: var(--faint);
}

@media (max-width: 980px) {
  .structure-body {
    grid-template-columns: 1fr;
  }
}

/* STRUCTURE stability + HQ panel emphasis (B) */
@media (max-width: 980px) {
  .structure-ref,
/* PATCH/RESPONSIVE */

/* STAGE 7-3 — merged safe duplicates inside this @media block */
.structure-list {
    grid-column: auto;
    grid-row: auto;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    border-left: none;
    padding-left: 0;
  }
}

.structure-main {
  position: relative;
  padding-left: 18px;
}
.structure-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.structure-item {
  padding: 16px 0;
  border-bottom: var(--rule-w) solid var(--line);
}
.structure-item:last-child {
  border-bottom: none;
}

.structure-no {
  font-size: 12px;
  letter-spacing: 0.14em; /* 0.18 → 0.14 (덜 흩어져 ‘번호’로 보임) */
  color: rgba(15, 23, 42, 0.46); /* #8fa0b5보다 약간 단단하게 */
  font-weight: 600;
  padding-top: 0; /* “떠 보임”의 원인 제거 */
  line-height: 1; /* 줄높이 정리 */
}
.structure-link {
  border-radius: 6px;
  display: grid;
  grid-template-columns: 56px 1fr 64px;
  gap: 14px;
  align-items: start;
  text-decoration: none;
}
.structure-link:hover .structure-name {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
\.structure-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
\.structure-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

.structure-tag {
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding-top: 4px;
}

.structure-stamp {
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--rule-w) solid var(--line2);
  font-size: 13px;
  color: var(--muted);
}
.structure-stamp strong {
  color: var(--ink);
  font-weight: 650;
}

/* Reference aside */
@media (max-width: 980px) {
  .structure-ref {
    border-left: none;
    padding-left: 0;
    border-top: var(--rule-w) solid var(--line2);
    padding-top: 18px;
  }
}

.inline-link {
  text-decoration-thickness: 1px;
}

/* ---------------------------------
   FOOTER (Index baseline)
---------------------------------- */
.home-footer {
  margin-top: 66px;
  border-top: var(--rule-w) solid var(--line2);
  padding: 28px 0 0;
  position: relative;
}
.home-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap-3);
  align-items: start;
}
@media (max-width: 980px) {
  .home-footer-inner {
    grid-template-columns: 1fr;
  }
}
.home-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-footer-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.home-footer-meta {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.footer-group-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer-seal {
  position: absolute;
  right: 0;
  top: 18px;
  width: 92px;
  opacity: 0.08;
  filter: saturate(0);
  pointer-events: none;
}

.home-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: var(--rule-w) solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 12px;
}
.home-footer-bottom .inline-link {
  color: inherit;
}
.home-footer-legal,
.home-footer-policy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .home-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ---------------------------------
   SIMPLE SUBPAGE BASELINE (keeps other pages readable)
---------------------------------- */
.page-standard .wrap,
.page-principles .wrap,
.page-scope .wrap,
.page-operations .wrap,
.page-contact .wrap {
  padding-top: 84px;
}
.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-2);
}
@media (max-width: 980px) {
  .home-grid-3 {
    grid-template-columns: 1fr;
  }
}
.home-box {
  border-top: var(--rule-w) solid var(--line);
  padding-top: 14px;
}
.home-box-title {
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.home-box-body {
  color: var(--muted);
  margin: 0;
}
.home-note {
  border-left: var(--rule-w) solid var(--line);
  padding-left: 14px;
  color: var(--muted);
}
.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.home-cta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: var(--rule-w) solid var(--line2);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.22;
  margin-right: 8px;
  transform: translateY(-1px);
}

/* @footer */
.footer {
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid var(--line2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer-hq {
  font-size: 14px;
  line-height: 1.8;
}

.footer-legal {
  font-size: 12px;
  color: #8fa0b5;
  text-align: right;
}

.footer-policy {
  margin-top: 6px;
}

.footer-policy a {
  color: #8fa0b5;
  text-decoration: none;
}

.footer-policy a:hover {
  text-decoration: underline;
}

/* =========================
   FINAL POLISH (HQ) — consolidated
   (Single source of truth for spacing + HQ STAMP)
   ========================= */

/* Utilities */
.section {
  padding: 0;
}
.section-gap-xl {
  margin-top: 90px;
} /* Hero -> Structure */
.section-gap-lg {
  margin-top: 80px;
} /* Structure -> Seal */
.section-gap-md {
  margin-top: 70px;
} /* Seal -> Footer */

/* Container utility aligned to global tokens */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Label utility (shared) */
.section-label,
.stamp-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(15, 23, 42, 0.45);
  text-transform: uppercase;
}

/* -------------------------
   HQ STAMP / HQ SEAL
   ------------------------- */

/* @stamp */
.hq-stamp {
  /* Scope HQ tone here (avoid site-wide token drift) */
  --line2: rgba(18, 37, 68, 0.1);
  --ink: #122544;

  margin-top: 80px;
  padding-top: 44px;
  border-top: 1px solid var(--line2);
}

.hq-stamp-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

/* LEFT */
.hq-stamp .stamp-mark {
  padding-top: 6px;
}

.hq-stamp .seal-badge {
  margin: 10px 0 14px;
}

/* Badge: subordinate */
.hq-stamp .seal-badge svg {
  width: 78px;
  height: auto;
  display: block;
  opacity: 0.76;
  filter: saturate(0.85);
}

/* Guide lines */
.hq-stamp .stamp-lines span {
  display: block;
  height: 0.13em;
  background: var(--line2);
  margin: 0 0 6px 0;
  width: auto;
}
/* 길이 차이로 리듬 만들기 */
.stamp-lines span:nth-child(1) {
  width: 120px;
}

.stamp-lines span:nth-child(2) {
  width: 90px;
}

.stamp-lines span:nth-child(3) {
  width: 60px;
}

/* RIGHT */
.hq-stamp .stamp-body {
  border-left: 1px solid var(--line2);
  padding-left: 28px;
}

/* Signature: primary */
.hq-stamp .seal-logo svg {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  --ip119-color: var(--ink);
}

.hq-stamp .stamp-title {
  margin: 10px 0 0;
  line-height: 1.02;
}

.hq-stamp .seal-standard {
  display: block;
  font-size: 26px;
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hq-stamp .seal-domain {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #8fa0b5;
  text-transform: uppercase;
}

.hq-stamp .seal-note {
  margin-top: 18px;
  max-width: 52ch;
  color: #8fa0b5;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 980px) {
  .hq-stamp-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hq-stamp .stamp-body {
    border-left: none;
    padding-left: 0;
  }
  .hq-stamp .seal-badge svg {
    width: 72px;
  }
  .hq-stamp .seal-logo svg {
    width: 210px;
  }
  .hq-stamp .stamp-lines span {
    width: 100%;
  }
}

/* =========================
   PATCH v2 (Right-Panel 강화 + Left 착시 최소화)
   - No new copy, no layout rewrite.
   - Pure CSS overrides (safe).
   ========================= */

/* 0) Button hover: remove "marketing lift" */

/* @patch
   PATCH MAP (purpose-based, no rule moves)
   - PATCH/HERO       late overrides for hero typography/spacing
   - PATCH/PANEL      late overrides for control panel visuals
   - PATCH/STRUCTURE  late overrides for reference index + external
   - PATCH/STAMP      late overrides for HQ seal/stamp
   - PATCH/FOOTER     late overrides for footer
   - PATCH/MOBILE     mobile-specific behavior fixes
   - PATCH/A11Y       accessibility utilities (sr-only etc.)
*/

/* @patch */
/* PATCH/UTIL */
/* === STAGE 6 MERGED: .btn:hover === */

.btn:hover {
  transform: none;
}

/* 1) Structure axiom (index.html has .structure-axiom, define it) */
.structure-axiom {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 86ch;
  letter-spacing: -0.01em;
}

/* 2) STRUCTURE 영역: 좌/우 높이 리듬을 '같은 시스템'처럼 보이게 */
/* 3) Right panel(리스트) 강화: '주 패널'로 보이게, 카드화 금지 */
/* row hover는 "버튼"이 아니라 '행 강조' */

/* 4) Left(EXTERNAL) 착시 최소화: 정보가 적어도 '끝난 게 아니라 정렬된' 느낌 */
/* EXTERNAL 리스트 리듬(밀도) */

/* @patch
   STAGE 7-2 — Manual lossless merges (top-level only)
   Merged selectors:
   - .structure-link:hover
   - .panel__frame::after
   - .ref-link:last-child
*/

.structure-link:hover {
  background: rgba(11, 18, 32, 0.02);
}

.panel__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: var(--rule-w) solid var(--panel-line);
  right: -1px;
  bottom: -1px;
  border-left: none;
  border-top: none;
}

.ref-link:last-child {
  border-bottom: none;
}

/* dot은 좌측에서 너무 약하면 '비어 보임' -> 미세 강화 */
/* Mobile: 기존 규칙 유지 (border-right 제거) */
@media (max-width: 980px) {
  .structure-ref {
    border-right: none;
    padding-right: 0;
  }
  .structure-list {
    padding-left: 0;
    background: none;
  }
}
/* EXTERNAL: 밀도/리듬 최소 정규화 (설명 없이 착시 재발 방지) */

.structure-ref .ref-link {
  padding: 8px 0;
}

/* 좌측 컬럼의 ‘빈 여백’을 의도된 여백처럼 보이게 */
/* === MERGED: .structure-body, .structure-rule, .structure-ref, .structure-list, .ref-links, .ref-link, .ref-dot === */

.structure-body {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  gap: var(--gap-3);
  align-items: stretch;
}

.structure-rule {
  grid-column: 1 / -1;
  margin-top: 18px;
  border-top: var(--rule-w) solid var(--line2);
}

.structure-ref {
  grid-column: 1;
  grid-row: 2;
  border-left: none;
  padding-left: 0;
  /* display: flex; */
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-right: 18px;
  border-right: 1px solid var(--line2);
  padding-top: 2px;
}

.structure-list {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(to right, rgba(11, 18, 32, 0.03), rgba(11, 18, 32, 0) 68%);
  border: none;
  border-radius: 0;
  padding: 0;
  border-left: 1px solid var(--line2);
  list-style: none;
  margin: 0;
  display: grid;
  padding-left: 18px;
}

.ref-links {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.ref-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line2);
  text-decoration: none;
}

.ref-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.28;
}

.structure-ref .ref-aside h3 {
  margin-top: 28px;
}

/* PATCH/MOBILE */

/* @responsive
   MOBILE BEHAVIOR FIX — STRUCTURE STACKING (PROVEN)
*/
@media (max-width: 980px) {
  .home-structure .structure-body {
    grid-template-columns: 1fr;
  }
  .home-structure .structure-ref,
  .home-structure .structure-list {
    grid-column: auto;
    grid-row: auto;
  }
}

/* EXTERNAL CHANNEL */

.structure-ref {
  max-width: 320px;
}

.ref-links {
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.ref-item {
  display: flex;
  flex-direction: column;
}

.ref-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.ref-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.5;
}

.ref-desc {
  margin-top: 6px;
  margin-left: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================
   STRUCTURE INDEX — HOVER TUNE (HQ)
   ========================= */

/* 기본 전환(튀지 않게) */
.structure-item {
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.structure-link {
  transition: transform 0.18s ease;
}
.structure-no,
.structure-tag {
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

/* 기존 밑줄 hover 제거 */
.structure-link:hover .structure-name {
  text-decoration: none;
}

/* HQ 스타일: 행의 "라인"과 "번호"로 포커스 주기 */
.structure-item:hover {
  border-bottom-color: rgba(15, 23, 42, 0.28); /* 라인만 살짝 진하게 */
}

/* 아주 미세한 정렬 이동(과하면 촌스러움이라 1px만) */
.structure-item:hover .structure-link {
  transform: translateX(1px);
}

/* 번호/태그는 조용하게만 올라오게 */
.structure-item:hover .structure-no {
  color: rgba(15, 23, 42, 0.72);
}
.structure-item:hover .structure-tag {
  color: rgba(15, 23, 42, 0.6);
}

/* 선택: 제목만 아주 미세하게 진해지게(밑줄 대신) */
.structure-item:hover .structure-name {
  color: rgba(15, 23, 42, 0.96);
}

/* 구조 인덱스: name/desc 위계 분리 */
.structure-main {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 두 줄 간격 */
  min-width: 0; /* 긴 텍스트 줄바꿈 안전 */
}

.structure-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.structure-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted); /* 없으면 아래 rgba로 대체 */
  opacity: 0.85;
}

.footer {
  margin-top: 80px; /* 120 → 96 (조금만 타이트) */
  padding-top: 32px; /* 40 → 32 */
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-hq {
  font-size: 13px; /* 14 → 13 (문서 톤) */
  line-height: 1.75; /* 1.8 → 1.75 */
  color: rgba(15, 23, 42, 0.78);
}

.footer-hq strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.96);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: right;
  margin-bottom: 0.6em;
}
