/* PRO AnalytiX Lab — 단일 스타일시트. 색과 글꼴은 아래 토큰에서만 바꾸세요. */
:root {
  --ink: #16202b;
  --muted: #5a6573;
  --paper: #ffffff;
  --tint: #f3f5f8;
  --line: #dde2e8;
  --accent: #1d4f86;
  --accent-soft: #e6edf6;
  --lab-brand-blue: #2457f5; /* 밝은 바탕용 로고 X의 연구실 고유 블루 */
  --logo-x-on-dark: #7fa6ff; /* 어두운 바탕용 로고(mark-dark.png 등)의 X 색 */
  --f-display: var(--f-body);
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wide: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6eaf0; --muted: #9aa5b3; --paper: #11161d; --tint: #171e27;
    --line: #2a3441; --accent: #8fb6e6; --accent-soft: #1c2a3b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--wide); margin: 0 auto; padding-inline: 20px; }
main.container { padding-block: 48px 80px; }

.eyebrow {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
h1, h2, h3 { text-wrap: balance; line-height: 1.25; }
h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; font-size: clamp(32px, 5vw, 46px); margin: 0; }
h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; font-size: 26px; margin: 0 0 18px; }
h3 { font-size: 18px; font-weight: 600; margin: 0; }

/* Header + dropdown nav */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-mark { width: 40px; height: 40px; flex: none; }
/* 연구실 로고 (assets/images/logo, 밝은/어두운 화면용 두 벌) */
.brand picture, .footer-logo picture { display: block; line-height: 0; }
.brand-logo { display: block; height: 36px; width: auto; }
.brand .brand-mark { width: 36px; height: 36px; }
.brand picture + .brand-mark { margin-left: -12px; }  /* 로고 PNG 오른쪽 여백만큼 당겨 X 바로 옆에 둔다 */
.footer-logo { margin-bottom: 12px; }
.footer-logo-img { display: block; width: min(100%, 261px); height: auto; }
.hero-title { display: flex; align-items: center; gap: .3em; }
.hero-mark { display: block; height: 1.25em; width: auto; flex: none; }
.brand-text { display: grid; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.brand-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 20px 12px; font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.nav-item > a:hover, .nav-item > a[aria-current] { color: var(--accent); }
.submenu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%;
  min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10, 20, 35, .08); display: none;
}
.has-children:hover .submenu, .has-children:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 8px 16px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.submenu a:hover { background: var(--tint); color: var(--accent); }
.submenu-beta { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: #fff0ed; color: #c92d28; font-size: 10px; font-weight: 700; line-height: 1.3; vertical-align: 1px; white-space: nowrap; }
.menu-toggle {
  display: none; font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .nav-item > a { padding: 10px 0; }
  .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; background: transparent; }
  .submenu a { padding: 4px 0; color: var(--muted); }
}

/* Home */
.hero { display: grid; gap: 16px; padding-block: 24px 56px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(36px, 6vw, 58px); }
.hero h1 .brand-middle { font-size: .65em; }
/* 히어로는 두 테마 모두 어두운 바탕 — 옆의 로고 마크와 같은 X 색 */
.hero h1 .brand-x { color: var(--logo-x-on-dark); }
.hero h1 .expand { display: block; font-family: var(--f-body); font-weight: 500; font-size: .36em; color: var(--muted); margin-top: 10px; letter-spacing: .01em; }
.hero p { margin: 0; max-width: 62ch; font-size: 17px; }
.section { padding-block: 56px 0; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.area { border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 8px; align-content: start; background: var(--paper); }
.area { overflow: hidden; padding-top: 0; }
a.area { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.area:hover, a.area:focus-visible { border-color: var(--accent); box-shadow: 0 4px 14px rgba(11, 31, 56, .08); }
.area-art { display: block; width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 400 / 115; margin: 0 -20px 4px; background: #0b1f38; }
.area .area-en { font-family: var(--f-body); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.area .area-ko { font-family: var(--f-body); font-size: 12.5px; color: var(--accent); margin-top: -4px; }
.area p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.area .tags { gap: 5px; }
.area .tags li { font-size: 12px; padding: 2px 8px; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--tint); }
.notice { background: var(--accent-soft); border-radius: 8px; padding: 24px; }
.notice ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 680px) { .areas { grid-template-columns: 1fr; } }

/* Content pages */
.page-head { display: grid; gap: 10px; margin-bottom: 40px; }
.lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }
.page-header-notice { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-header-notice strong { font-weight: 700; }
.prose { max-width: none; }
.prose h2 { margin-top: 48px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: none; }

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); max-width: none; }
.ledger .yr { font-family: var(--f-mono); font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ledger .sub { color: var(--muted); font-size: 14.5px; }
.member-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.member-awards li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; min-width: 0; }
@media (max-width: 700px) { .member-awards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ledger li { grid-template-columns: 1fr; gap: 0; } }

.badge { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 4px; background: var(--tint); color: var(--muted); margin-left: 6px; vertical-align: 2px; }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.post-list a { font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-list p { margin: 0; color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); max-width: none; }

/* Footer */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-block: 24px 16px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-row p { margin: 6px 0 0; }
.copyright { margin-top: 12px; font-size: 12.5px; }

/* ---- Migrated data views ---- */
.n { font-family: var(--f-mono); font-size: .6em; font-weight: 400; color: var(--muted); vertical-align: .2em; margin-left: 4px; }
.count { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.prose h3 { margin: 32px 0 12px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plain .past { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.kv dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.profile { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.profile-name { font-family: var(--f-display); font-size: 26px; margin: 0 0 12px; }
.profile-name span { font-family: var(--f-body); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.profile .kv { background: var(--tint); border-radius: 8px; padding: 18px; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.member { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.member-name { font-weight: 600; font-size: 16.5px; }
.member-name span { font-weight: 400; font-size: 13px; color: var(--muted); }
.member .sub, .alumni .sub { color: var(--muted); font-size: 14px; }
.member .tags li { font-size: 12px; }
.alumni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }
.alumni li { display: grid; padding-block: 6px; border-bottom: 1px solid var(--line); }

.year-group h3 { font-family: var(--f-mono); font-size: 18px; font-weight: 500; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.book-year-group + .book-year-group { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pubs li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 15px; line-height: 1.6; max-width: none; }
.pubs .cite { flex: 1 1 520px; }
.pubs .idx { display: flex; gap: 4px; }
.pubs .badge { margin: 0; }
.prose .pubs, .prose .ledger, .prose .member-grid, .prose .alumni, .prose .table-wrap, .prose .gallery { max-width: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 640px) {
  .table-wrap:not(:has(table.stack)) { position: relative; }
  .table-wrap:not(:has(table.stack))::after { content: "옆으로 밀면 더 볼 수 있습니다."; display: block; padding: 4px 10px 6px; font-size: 11.5px; color: var(--muted); text-align: right; }
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; color: var(--muted); font-weight: 500; background: var(--tint); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap { white-space: nowrap; color: var(--muted); }
tfoot td { font-weight: 600; border-bottom: 0; }
.tags.big li { font-size: 14px; padding: 5px 12px; }

.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.inst { display: grid; gap: 10px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.inst:hover { border-color: var(--accent); }
.inst h3 { font-size: 18px; }
.inst .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.inst .badge { margin: 0; }
.inst.ended { color: var(--muted); }
/* 카드 안에 링크가 둘 이상인 경우: 제목 링크가 카드 전체를 덮고, 보조 링크는 그 위에 둔다 */
.inst--multi { position: relative; cursor: pointer; }
.inst--multi .inst-main { color: inherit; text-decoration: none; }
.inst--multi .inst-main::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.inst-doc { position: relative; z-index: 2; justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: -4px; padding: 4px 10px; border: 1px solid #1d4f86; border-radius: 999px; font-size: 12px; line-height: 1.3; font-weight: 600; color: #fff; text-decoration: none; background: #1d4f86; }
.inst-doc::before { content: "↓"; font-weight: 700; }
.inst-docs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; }
.inst-docs .inst-doc { margin-top: 0; }
.inst-doc:hover { background: #163e6b; border-color: #163e6b; }
.inst { min-width: 0; }
.inst h3, .inst p, .inst dd { overflow-wrap: anywhere; }
.inst .kv { grid-template-columns: max-content minmax(0, 1fr); }
.inst-docs { min-width: 0; }
.inst-doc { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.gal-head h2 { margin-right: 4px; }
.gal-years { display: flex; flex-wrap: wrap; gap: 4px; }
.gal-years button { font: inherit; font-family: var(--f-mono); font-size: 12px; line-height: 1; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer; }
.gal-years button:hover { border-color: var(--accent); color: var(--accent); }
.gal-years button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.gal-yg[hidden] { display: none; }
.gal-yg { margin-bottom: 8px; }
.gal-empty { color: var(--muted); font-size: 14px; }
.gcard { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 6px; align-content: start; background: var(--paper); }
.gcard img, .gcard .ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--tint); max-width: 100%; }
.gcard-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.gcard-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: -2px; }

/* ---- Blog post content ---- */
.post .prose > table, .daily-content > table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-block: 16px; }
.post .prose > table td:first-child { font-weight: 600; white-space: nowrap; }
.post .prose thead th:empty { background: var(--tint); }
.post .prose blockquote { margin: 16px 0; padding: 16px 20px; background: var(--accent-soft); border-radius: 8px; }
.post .prose blockquote p { margin: 0; }
.post .prose h3 { margin: 32px 0 10px; font-size: 18px; }
.post .prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 40px 24px; }
.download { display: inline-block; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 15px; }
.download:hover { background: var(--accent-soft); }

/* ---- Factor-structure figures ---- */
.fig-wrap { margin: 24px 0; max-width: none; }
.fig-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--paper); }
.factor-fig { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--f-body); }
.fig-link { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 3; fill: none; }
.fig-path { stroke: var(--muted); stroke-width: 1; fill: none; opacity: .7; }
.fig-arrowhead { fill: var(--muted); }
.fig-construct { fill: var(--accent); }
.fig-construct-t { fill: var(--paper); font-size: 15px; font-weight: 600; text-anchor: middle; }
.fig-factor { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.fig-factor-t { fill: var(--ink); font-size: 14px; font-weight: 600; text-anchor: middle; }
.fig-factor-n { fill: var(--muted); font-size: 11px; text-anchor: middle; font-family: var(--f-mono); }
.fig-item { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.fig-item-no { fill: var(--accent); font-size: 11.5px; font-family: var(--f-mono); }
.fig-item-t { fill: var(--ink); font-size: 12.5px; }
.fig-caption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---- Report (interactive) ---- */
:root { --series-1: #2a78d6; --series-2: #eb6834; --good: #1a7f37; --warn: #b54708; }
@media (prefers-color-scheme: dark) { :root { --series-1: #3987e5; --series-2: #d95926; --good: #4ac26b; --warn: #f0883e; } }
.post.wide .prose { max-width: none; }
.post.wide .prose > p, .post.wide .prose > ul, .post.wide .prose > h2 { max-width: none; }
.report { display: grid; gap: 20px; margin-block: 28px 40px; }
.report-note { margin: 0; font-size: 14px; color: var(--muted); }
.report-controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.seg { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.seg-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
.seg button { font: inherit; font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.seg button:hover { border-color: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpis.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.kpi-k { font-size: 13px; color: var(--muted); }
.kpi-v { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi-v small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.kpi-s { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .report-grid { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--paper); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.prose .panel-title { font-family: var(--f-body); font-size: 17px; font-weight: 600; margin: 0; padding: 0; }
.panel-sub { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-block: 4px 6px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-key { width: 16px; height: 3px; border-radius: 2px; background: var(--muted); }
.lg-key.s1 { background: var(--series-1); } .lg-key.s2 { background: var(--series-2); }
.lg-key.lg-dashed { background: none; border-top: 2px dashed var(--muted); height: 0; }

.radar-box { max-width: 460px; margin: 0 auto; }
.radar { width: 100%; height: auto; display: block; font-family: var(--f-body); }
.rd-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-outer { stroke: var(--muted); stroke-opacity: .5; }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-tick { fill: var(--muted); font-size: 10px; font-family: var(--f-mono); }
.rd-label { fill: var(--ink); font-size: 12.5px; font-weight: 500; }
.rd-area { stroke-width: 2; stroke-linejoin: round; }
.rd-area.s1 { fill: var(--series-1); fill-opacity: .14; stroke: var(--series-1); }
.rd-area.s2 { fill: var(--series-2); fill-opacity: .08; stroke: var(--series-2); }
.rd-area.ref { fill: none; stroke: var(--muted); }
.rd-dashed { stroke-dasharray: 5 4; }
.rd-dot { stroke: var(--paper); stroke-width: 2; }
.rd-dot.s1 { fill: var(--series-1); } .rd-dot.s2 { fill: var(--series-2); }
.rd-hit { fill: transparent; cursor: default; }

.dumbbell { display: grid; gap: 10px; margin-top: 8px; }
.db-scale, .db-row { display: grid; grid-template-columns: 88px 1fr 52px; gap: 10px; align-items: center; }
.db-axis { position: relative; height: 16px; }
.db-axis i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); font-family: var(--f-mono); }
.db-name { font-size: 13.5px; }
.db-track { position: relative; height: 22px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.db-bar { position: absolute; top: 9px; height: 4px; background: var(--muted); opacity: .35; border-radius: 2px; }
.db-dot { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--paper); }
.db-dot.s1 { background: var(--series-1); } .db-dot.s2 { background: var(--series-2); }
.db-val { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

.resp-table { font-size: 13.5px; }
.resp-table th button { all: unset; cursor: pointer; }
.resp-table th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.resp-table td, .resp-table th { padding: 7px 10px; }
.resp-table tr.is-sel td { background: var(--accent-soft); }
.id-btn { font: inherit; font-family: var(--f-mono); font-size: 13px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--accent); cursor: pointer; }
.id-btn:hover, .id-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.cell { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 3px; background: color-mix(in srgb, var(--series-1) calc(var(--v) * 45%), transparent); }
.strong { font-weight: 600; }
.up { color: var(--good); } .down { color: var(--warn); }

.profile-panel { border-color: var(--accent); }
.profile-panel:focus { outline: none; }
.prose .profile-id { font-family: var(--f-mono); font-size: 22px; }
.profile-id span { font-family: var(--f-body); font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.close-btn { font: inherit; font-size: 13.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; margin-top: 8px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-side { display: grid; gap: 12px; align-content: start; }
.insight { margin: 0; font-size: 14px; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); margin-right: 4px; }
.chip.good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.mini-table { font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; display: table; }
.mini-table td, .mini-table th { padding: 6px 10px; }
.prose .items-title { font-family: var(--f-body); font-size: 15px; font-weight: 600; margin: 24px 0 10px; }
.items-title span { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.item-group { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 3px; align-content: start; }
.ig-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ir { display: grid; grid-template-columns: 22px 1fr 14px 14px 14px; gap: 6px; align-items: baseline; font-size: 12.5px; }
.ir-no { font-family: var(--f-mono); color: var(--muted); font-size: 11px; }
.ir-kw { color: var(--ink); }
.ir-v { text-align: center; font-variant-numeric: tabular-nums; }
.ir-arrow { text-align: center; font-size: 9px; color: var(--muted); }
.ir-arrow.up { color: var(--good); } .ir-arrow.down { color: var(--warn); }

.viz-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12.5px; padding: 6px 10px; border-radius: 6px; max-width: 280px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

/* ---- Daily Insight: same palette and typography as the lab ---- */
.preview-banner { background: var(--accent-soft); border-bottom: 1px solid var(--line); color: var(--accent); font-size: 13px; }
.preview-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 8px; }
.preview-banner strong { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.daily-index { max-width: 900px; margin-inline: auto; }
.daily-hero { display: grid; gap: 18px; padding-block: 12px 40px; }
.daily-hero h1 { font-size: clamp(40px, 7vw, 60px); }
.daily-hero h1 span { display: block; margin-top: 16px; font-family: var(--f-body); font-size: 20px; font-weight: 500; line-height: 1.5; }
.daily-feature { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; background: var(--tint); padding: clamp(22px, 4vw, 36px); }
.daily-feature-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.daily-feature-meta .eyebrow { color: var(--accent); }
.daily-feature-meta time { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.daily-feature h2 { font-size: clamp(24px, 3.8vw, 34px); line-height: 1.45; margin-bottom: 14px; }
.daily-feature h2 a { color: var(--ink); text-decoration: none; }
.daily-feature h2 a:hover { color: var(--accent); }
.daily-feature > p { color: var(--muted); margin: 0 0 20px; max-width: 68ch; }
.daily-feature .tags li { background: var(--paper); border: 1px solid var(--line); }
.daily-feature-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.daily-feature-bottom > span, .daily-issue-meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.daily-read { text-decoration: none; font-weight: 600; font-size: 15px; }
.daily-read span { margin-left: 8px; }
.daily-archive { margin-top: 48px; }
.daily-archive h2 { font-size: 23px; }
.daily-method { margin-top: 36px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--muted); }
.daily-method strong { color: var(--ink); }
.daily-method p { margin: 6px 0 0; }
.daily-issue { max-width: none; margin-inline: 0; }
.daily-back { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 13.5px; text-decoration: none; margin-bottom: 30px; }
.daily-back:hover, .daily-back:focus-visible { background: var(--accent-soft); color: var(--accent); }
.post-nav .daily-back { margin-bottom: 0; }
.daily-issue-head { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.daily-issue-head h1 { font-size: clamp(30px, 4.5vw, 42px); line-height: 1.4; }
.daily-issue-head .tags { margin-block: 10px; }
.daily-issue-notice { margin: 12px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.daily-issue-notice strong { font-weight: 700; }
.daily-takeaway { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 20px 24px; }
.daily-takeaway p { margin: 0; }
.daily-takeaway p + p { margin-top: 8px; font-size: 18px; }
.daily-check { color: var(--muted); font-size: 13px; margin-block: 18px 32px; }
.daily-content h2 { font-family: var(--f-body); font-size: 23px; line-height: 1.5; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; scroll-margin-top: 90px; }
.daily-content blockquote { background: var(--tint); margin: 20px 0; padding: 16px 20px; border-left: 2px solid var(--line); border-radius: 0 6px 6px 0; font-size: 14.5px; }
.daily-content blockquote p { margin: 0; }
.daily-content blockquote p + p { margin-top: 6px; }
.daily-content #sources ~ p { font-size: 13px; overflow-wrap: anywhere; }
.daily-brief { margin: 8px 0 36px; padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; background: var(--paper); }
.daily-brief-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }
.daily-brief h3 { font-size: 20px; line-height: 1.45; margin: 0 0 4px; }
.daily-brief-cite { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.daily-brief-cite a { overflow-wrap: anywhere; }
.daily-brief dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 20px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.daily-brief dt { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.daily-brief dd { margin: 0; font-size: 15px; }
.daily-brief dd p { margin: 0; }
.daily-brief dd p + p { margin-top: 6px; }
@media (max-width: 680px) {
  .daily-desktop-break { display: none; }
  .daily-hero { padding-top: 0; }
  .daily-hero h1 span { font-size: 18px; }
  .daily-feature-bottom { align-items: flex-start; flex-direction: column; }
  .daily-content h2 { font-size: 20px; }
  .daily-brief { padding: 18px; }
  .daily-brief dl { grid-template-columns: 1fr; gap: 4px; }
  .daily-brief dd { margin-bottom: 10px; }
}

/* Panoramic illustrations for the home and menu pages */
.page-banner {
  margin: 0 0 36px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tint);
}
.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 320;
  object-fit: cover;
  object-position: center;
}
.page-banner--home { margin: 12px 0 0; }
.daily-hero .page-banner { margin: 24px 0 0; }
@media (max-width: 600px) {
  .page-banner { border-radius: 8px; margin-bottom: 24px; }
  .page-banner img { aspect-ratio: 3 / 1; }
  .page-banner--home { margin-bottom: 0; }
}

/* Journal and Conference numbering continues across year groups. */
.journal-pubs, .conference-pubs { gap: 0; }
.journal-pubs li, .conference-pubs li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.publication-number {
  font-family: var(--f-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}
.journal-pubs .idx, .conference-pubs .idx { grid-column: 2; flex-wrap: wrap; }
@media (max-width: 520px) {
  .journal-pubs li, .conference-pubs li { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 10px; }
}

/* Index totals for the current Journal list. */
.journal-index-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}
.journal-index-summary > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
}
.journal-index-summary dt {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.journal-index-summary dd {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.journal-index-summary dd span { margin-left: 5px; font-size: 14px; font-weight: 400; color: var(--muted); }
@media (max-width: 520px) {
  .journal-index-summary { grid-template-columns: 1fr; }
}

/* Teaching course lists share a row on larger screens. */
.page--wide .prose { max-width: none; }
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}
.teaching-grid h2 { margin-top: 0; }
.teaching-grid .ledger li { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
@media (max-width: 680px) {
  .teaching-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .teaching-grid .ledger li { grid-template-columns: 1fr; gap: 0; }
}

/* Professor portrait and biography. */
.profile-portrait { margin: 0; }
.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f0f0f0;
}
.profile-details { display: grid; gap: 24px; min-width: 0; }
.profile-intro > .plain { font-size: 15px; }
.profile .profile-name { margin: 0 0 12px; }
.profile-name span { display: block; margin: 6px 0 0; }
.profile .kv dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile-portrait { width: min(230px, 100%); margin-inline: auto; }
}

/* Lab members: portraits above consistent name and research cards. */
.member-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member { padding: 0; gap: 0; overflow: hidden; }
.member-photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f5f8;
  border-bottom: 1px solid var(--line);
}
.member-photo--empty { display: grid; place-items: center; color: var(--muted); }
.member-photo--empty span { font-size: 40px; font-weight: 500; opacity: .45; }
.member-photo--label span { font-size: 20px; }
.member-info { padding: 18px; display: grid; gap: 8px; align-content: start; }
.member-info .member-name span { display: block; margin-top: 2px; }
@media (max-width: 800px) {
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .member-grid { grid-template-columns: 1fr; }
  .member-photo { height: 160px; }
}


/* ---- Home: research map (papers × keywords) ---- */
.rmap { --rm-bg: #fbfcfe; --rm-grid: rgba(29,79,134,.06); --rm-ring: #ffffff; --rm-label: #1f2937; --rm-label-bg: rgba(251,252,254,.9);
  margin-top: 16px; display: grid; gap: 16px; }
@media (prefers-color-scheme: dark) { .rmap { --rm-bg: #121a24; --rm-grid: rgba(255,255,255,.05); --rm-ring: #121a24; --rm-label: #e6eaf0; --rm-label-bg: rgba(18,26,36,.85); } }
.rmap-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, var(--accent-soft), var(--paper) 70%); }
.rmap .rmap-title { font-family: var(--f-body); font-size: clamp(28px, 3.5vw, 36px); font-weight: 600; margin: 0 0 10px; letter-spacing: -.02em; }
.rmap .rmap-desc { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 52ch; }
.rmap-stats { display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 8px; margin: 0; }
.rmap-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.rmap-stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; order: -1; }
.rmap-stats div { display: flex; flex-direction: column; }
.rmap-stats dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rmap-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .rmap-body { grid-template-columns: 1fr; } .rmap-side { order: 2; } }
.rmap-side { display: grid; gap: 12px; }
.rmap-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); display: grid; gap: 10px; align-content: start; }
.rmap .rmap-card h3 { font-size: 15px; margin: 0; }
.rm-label { font-size: 12px; color: var(--muted); }
.rm-input { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.rm-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rm-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; user-select: none; }
.rm-chip input { margin: 0; accent-color: var(--accent); }
.rm-chip:has(input:not(:checked)) { opacity: .5; }
.rm-sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rm-check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.rm-btn { font: inherit; font-size: 13.5px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.rm-btn:hover { border-color: var(--accent); }
.rmap .rm-hint { margin: 0; font-size: 13px; color: var(--muted); max-width: none; }
.rm-detail { max-height: 460px; overflow-y: auto; }
.rm-d-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.rm-d-title { font-size: 18px; font-weight: 700; }
.rm-d-title span { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.rm-d-count { font-size: 13px; color: var(--muted); }
.rm-d-count strong { font-size: 20px; color: var(--ink); margin-right: 2px; }
.rmap .rm-d-cite { margin: 0; font-size: 13.5px; line-height: 1.6; max-width: none; }
.rm-d-rel { display: flex; flex-wrap: wrap; gap: 5px; }
.rm-d-rel button { font: inherit; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); cursor: pointer; }
.rm-d-rel button:hover { border-color: var(--accent); color: var(--accent); }
.rm-d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rm-d-list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 36px 1fr; gap: 6px; width: 100%; padding: 7px 4px; font-size: 12.5px; line-height: 1.5; border-bottom: 1px solid var(--line); cursor: pointer; }
.rm-d-list button:hover { background: var(--tint); }
.rm-d-list button:focus-visible { outline: 2px solid var(--accent); }
.rm-y { font-family: var(--f-mono); font-size: 11.5px; color: var(--accent); }
.rmap-graph { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background-color: var(--rm-bg);
  background-image: linear-gradient(var(--rm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--rm-grid) 1px, transparent 1px); background-size: 28px 28px; }
.rmap-graph-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.rmap-graph-title { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.rmap-lab-mark { display: block; flex: 0 0 16px; width: 16px; height: 16px; object-fit: contain; filter: brightness(0); }
.rmap-graph-head span { color: var(--muted); font-size: 12px; }
@media (prefers-color-scheme: dark) { .rmap-lab-mark { filter: brightness(0) invert(1); } }
.rm-svg { display: block; width: 100%; height: 620px; cursor: grab; font-family: var(--f-body); }
.rm-svg:active { cursor: grabbing; }
@media (max-width: 860px) { .rm-svg { height: 480px; } }
.rm-link { stroke-opacity: .18; stroke-width: .8; transition: stroke-opacity .3s; }
.rm-link.hot { stroke-opacity: .75; stroke-width: 1.4; }
.rm-link.faded { stroke-opacity: .04; }
.rm-link.hidden, .rm-node.hidden { display: none; }
.rm-node { cursor: pointer; transition: opacity .3s; }
.rm-node circle { stroke: var(--rm-ring); stroke-width: 1.6; }
.rm-node.kw circle { stroke-width: 2.4; }
.rm-node.pinned circle { stroke: var(--ink); stroke-dasharray: 2 2; }
.rm-node.sel circle, .rm-node.match circle { stroke: var(--ink); stroke-width: 2.6; }
.rm-node.faded { opacity: .14; }
.rm-node:focus { outline: none; }
.rm-node:focus-visible circle { stroke: var(--accent); stroke-width: 3; }
.rm-label { fill: var(--rm-label); font-size: 9.5px; text-anchor: middle; paint-order: stroke; stroke: var(--rm-label-bg); stroke-width: 2.5px; stroke-linejoin: round; pointer-events: none; }
.rm-node.kw .rm-label { font-size: 9.5px; font-weight: 600; letter-spacing: .01em; }
.rm-node.paper .rm-label { display: none; }
/* 배치 자체(틱)는 멈춰 있다(CPU 절약). rm-float는 각 노드 phase로 시작점만 다르게 한 CSS 애니메이션이라 거의 공짜로 떠다니는 느낌을 준다.
   글자가 흐려 보이지 않도록 scale은 쓰지 않고 위치(translate)만 움직인다. */
@keyframes rm-float { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(3.5px, -4.5px); } 50% { transform: translate(0, -6.5px); } 75% { transform: translate(-3.5px, -4.5px); } }
.rm-float { animation: rm-float 5.5s ease-in-out infinite; }
.rm-node.pinned .rm-float { animation: none; }
@media (prefers-reduced-motion: reduce) { .rm-float { animation: none; } }
.rm-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 4px; }
.rm-zoom button { width: 32px; height: 32px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }


/* Soft academic background behind the home introduction. */
.hero-intro {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 310px;
  padding: 40px;
  border: 1px solid rgba(148, 178, 207, .2);
  border-radius: 16px;
  overflow: hidden;
  background-color: #142536;
  background-image: linear-gradient(90deg, rgba(10, 22, 35, .86) 0%, rgba(10, 22, 35, .68) 55%, rgba(10, 22, 35, .16) 100%), url('../images/banners/hero-research-background.jpg');
  background-position: center;
  background-size: cover;
  color: #f4f7fb;
}
.hero-intro .eyebrow { color: #c3d3e2; }
.hero-intro h1 .expand { color: #cbd9e5; }
.hero-intro p { color: #edf2f7; max-width: 62ch; }
@media (max-width: 680px) {
  .hero-intro { min-height: 300px; padding: 28px 22px; border-radius: 12px; }
  .hero-intro h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero-intro p { font-size: 16px; }
}
.report-source { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.report-foot { font-size: 12.5px; color: var(--muted); }

/* ---- Persona diagnosis ---- */
.persona-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
@media (max-width: 760px) { .persona-cards { grid-template-columns: 1fr; } }
.persona-card { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper); }
.persona-card:hover { border-color: var(--accent); }
.persona-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.persona-card[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.persona-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: var(--paper); background: var(--accent); }
.persona-meta { display: grid; gap: 1px; min-width: 0; }
.persona-type { font-size: 12px; color: var(--accent); font-weight: 600; }
.persona-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.persona-name small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .pr-grid { grid-template-columns: 1fr; } }
.pr-diag { display: grid; gap: 14px; }
.prose .pr-summary { margin: 0; font-size: 14.5px; line-height: 1.65; max-width: none; }
.pd-block { display: grid; gap: 6px; }
.prose .pd-block h3 { margin: 0; font-size: 14px; }
.pd-block ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 14px; }
.pd-score { font-variant-numeric: tabular-nums; font-weight: 600; }
.pd-diff { font-size: 12.5px; }
.pd-acts { list-style: none; padding-left: 0 !important; gap: 8px !important; }
.pd-acts li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; line-height: 1.55; }
.pd-tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.pd-plan { font-size: 14px; line-height: 1.65; padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); }
.pd-plan strong { margin-right: 4px; }
.report-intro { width: 100%; max-width: none; margin-block: 20px 24px; display: grid; gap: 12px; }
.factor-profile { display: grid; gap: 14px; padding-block: 12px; }
.factor-profile-row { display: grid; gap: 5px; }
.factor-profile-value { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr 3em; gap: 8px; align-items: center; font-size: 13px; }
.factor-profile-value meter { width: 100%; accent-color: var(--accent); }
.prose .report-intro h2 { font-size: 20px; margin: 0; padding: 0; }
.prose .report-intro p { margin: 0; width: 100%; max-width: none; line-height: 1.7; }

/* ---- Home: diagnosis solution contact ---- */
.solution { margin-top: 20px; }
.solution-btn { font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.solution-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.solution-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.solution-dialog { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 28px 28px 24px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.solution-dialog::backdrop { background: rgba(11,20,32,.55); backdrop-filter: blur(2px); }
.solution-dialog[open] { display: grid; gap: 12px; }
.solution-close { position: absolute; top: 10px; right: 12px; font-size: 24px; line-height: 1; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.solution-kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.solution-dialog .solution-title { font-family: var(--f-body); font-size: 21px; font-weight: 700; margin: -6px 0 0; color: var(--ink); }
.solution-dialog .solution-desc { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.solution-contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.solution-contact dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.solution-contact dd { margin: 0; color: var(--ink); }
.solution-contact a, .solution-desc a { color: var(--accent); }
.solution-booking-group { display: grid; gap: 10px; margin-top: 8px; }
.solution-booking-group > strong { font-size: 14px; }
.solution-booking-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.solution-booking { display: block; padding: 12px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; }
.solution-booking:hover { filter: brightness(1.1); }
.solution-booking:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.solution { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.solution-link { font-size: 13.5px; color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.solution-link:hover { opacity: 1; }
.solution { gap: 6px 10px; }
.solution-link { font-size: 12.5px; text-decoration: none; opacity: .8; }
.solution-link:hover { text-decoration: underline; opacity: 1; }

/* ---- Tables on phones: rows become stacked cards ---- */
@media (max-width: 640px) {
  .table-wrap:has(table.stack) { overflow: visible; border: 0; border-radius: 0; }
  table.stack, table.stack tbody, table.stack tfoot, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
  table.stack td { border: 0; padding: 2px 0; text-align: left; white-space: normal; }
  table.stack td.st-title { font-weight: 600; font-size: 14.5px; padding-bottom: 4px; }
  table.stack td[data-label] { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 13.5px; color: var(--ink); }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; }
  table.stack td.num { font-variant-numeric: tabular-nums; }
  table.stack td.st-hide, table.stack td:empty { display: none; }
  table.stack tfoot tr { background: var(--tint); }
  table.stack tfoot td[data-label] { font-weight: 600; }
}

/* ---- Header: smaller menu, centered ---- */
.nav-item > a { font-size: 14px; padding: 22px 11px; letter-spacing: .005em; }
.submenu a { font-size: 13.5px; }
@media (min-width: 861px) {
  /* 로고 오른쪽 남은 공간의 가운데에 메뉴를 둔다 */
  .header-row { display: grid; grid-template-columns: max-content 1fr; align-items: center; min-height: 64px; column-gap: 24px; }
  .site-nav { justify-self: center; }
  .site-nav > ul { gap: 2px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .nav-item > a { padding-inline: 8px; font-size: 13.5px; }
}

/* ---- Page titles (Members, Research 등 각 탭 제목): 원래(600)와 400의 중간 ---- */
.page-head h1, .daily-hero h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -.022em; }
.page-head--menu h1, .daily-index .daily-hero h1 { font-size: clamp(27px, 4vw, 36px); }
.page-head--menu .lede, .daily-index .daily-hero > .lede { font-size: 16px; }
.page-heading-suffix { font-size: .5em; }

/* ---- Mobile hardening: 긴 URL·통계 칸 때문에 화면이 옆으로 넘치지 않게 ---- */
.hero { grid-template-columns: minmax(0, 1fr); }
.hero > *, .report-grid > *, .rmap-body > *, .pr-grid > *, .profile-grid > * { min-width: 0; }
.prose p, .prose li, .prose dd, .pubs .cite, .report-intro, .kp-list, .rm-d-list, .solution-contact dd { overflow-wrap: anywhere; }
.appointment-panel { max-width: 660px; border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 4vw, 32px); }
.appointment-panel > p:first-child { margin-top: 0; }
#appointment-form { display: grid; gap: 18px; margin-top: 24px; }
.appointment-field { display: grid; gap: 6px; }
.appointment-field label { font-weight: 600; font-size: 14px; }
.appointment-label { font-weight: 600; font-size: 14px; }
.appointment-field input, .appointment-field select, .appointment-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit;
}
.appointment-field textarea { resize: vertical; }
.appointment-field input:focus-visible, .appointment-field select:focus-visible, .appointment-field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.appointment-optional, .appointment-note { color: var(--muted); font-size: 13px; font-weight: 400; }
.appointment-note { margin: 0; }
.appointment-type-options, .appointment-time-options { display: flex; flex-wrap: wrap; gap: 8px; }
.appointment-type-options[hidden] { display: none; }
.appointment-type-options label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.appointment-type-options input { width: auto; min-height: 0; accent-color: var(--accent); }
.appointment-time-options button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.appointment-time-options button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.appointment-calendar { max-width: 370px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.appointment-calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.appointment-calendar-head button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--tint); color: var(--ink); font-size: 23px; cursor: pointer; }
.appointment-calendar-head button:disabled { opacity: .35; cursor: default; }
.appointment-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.appointment-calendar-grid .appointment-weekday { font-size: 12px; color: var(--muted); padding: 5px 0; }
.appointment-calendar-grid button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.appointment-calendar-grid button:disabled { background: transparent; color: var(--muted); opacity: .45; cursor: default; }
.appointment-calendar-grid button.selected { background: var(--accent); color: #fff; font-weight: 700; }
.appointment-calendar-grid button:not(:disabled):hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.appointment-dropzone { display: grid; gap: 4px; justify-items: center; padding: 28px 16px; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--ink); text-align: center; }
.appointment-dropzone strong { font-size: 15px; }
.appointment-dropzone span { color: var(--muted); font-size: 13px; }
.appointment-dropzone.is-dragging { background: var(--accent); color: #fff; }
.appointment-dropzone.is-dragging span { color: #fff; }
.appointment-file-list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.appointment-file-list:empty { display: none; }
.appointment-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.appointment-file-list button { flex: none; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
.appointment-error { margin: 0; color: #b42318; font-size: 14px; }
.appointment-error[hidden] { display: none; }
.appointment-submit { justify-self: start; padding: 11px 20px; border: 0; border-radius: 6px; background: var(--accent); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer; }
.appointment-submit:hover { opacity: .88; }
.appointment-submit:disabled { opacity: .6; cursor: wait; }
.appointment-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.appointment-admin-link { margin-top: 18px; }
.appointment-admin { max-width: 780px; }
.appointment-admin-login { display: grid; gap: 12px; max-width: 320px; }
.appointment-admin-login label { display: grid; gap: 6px; font-weight: 600; }
.appointment-admin-login input { padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.appointment-admin button { padding: 9px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--paper); color: var(--accent); font: inherit; cursor: pointer; }
.appointment-admin button:disabled { opacity: .5; cursor: wait; }
.appointment-admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.appointment-admin-card { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.appointment-admin-card h2 { margin: 0 0 6px; font-size: 18px; }
.appointment-admin-card p { margin: 0 0 8px; white-space: pre-wrap; }
.appointment-admin-card ul { margin: 0; padding-left: 22px; }
.appointment-admin-card li { margin-top: 6px; }
.appointment-admin-status { color: #b42318; }
@media (max-width: 560px) {
  .rmap-top { padding: 18px; }
  .rmap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .rmap .rmap-title { font-size: 24px; }
  .solution-btn { white-space: normal; text-align: left; max-width: 100%; }
}

/* ---- Journal: 등재 분류 필터 칩 ---- */
.pub-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; }
.pf-chip { font: inherit; font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer; }
.pf-chip:hover { border-color: var(--accent); color: var(--accent); }
.pf-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.pf-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose .pf-empty { color: var(--muted); font-size: 14px; }
.badge.region-intl { background: var(--accent-soft); color: var(--accent); }
/* hidden 속성은 항상 숨김(필터에서 사용) */
[hidden] { display: none !important; }

/* ---- Daily Insight 목록: 다른 탭과 같은 폭·제목 크기로 맞춤 ---- */
.daily-index { max-width: none; margin-inline: 0; }
.daily-hero { gap: 10px; padding-block: 0; margin-bottom: 40px; }
.daily-hero h1 span { margin-top: 10px; font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.daily-hero .page-banner { margin-top: 26px; }
.daily-issue-head h1 { font-weight: 500; }

/* ---- Agile 조직문화 진단 ---- */
:root { --series-3: #1baf7a; }
@media (prefers-color-scheme: dark) { :root { --series-3: #199e70; } }
.rd-area.s3 { fill: var(--series-3); fill-opacity: .08; stroke: var(--series-3); }
.rd-dot.s3, .lg-key.s3 { fill: var(--series-3); background: var(--series-3); }
.prose .report-section-title { font-size: 20px; margin: 4px 0 -6px; padding: 0; }
.prose .panel h3.panel-title { font-family: var(--f-body); font-size: 17px; font-weight: 600; margin: 0; }
.prose .lvr-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; max-width: none; }
.lvr { display: grid; gap: 12px; margin-top: 6px; }
.lvr-scale, .lvr-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px; gap: 14px; align-items: center; }
.lvr-axis { position: relative; height: 16px; }
.lvr-axis i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); font-family: var(--f-mono); }
.lvr-head { font-size: 11.5px; color: var(--muted); }
.lvr-name { font-size: 13.5px; }
.lvr-track { position: relative; height: 22px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.lvr-range { position: absolute; top: 8px; height: 6px; border-radius: 3px; background: var(--muted); opacity: .22; }
.lvr-iqr { position: absolute; top: 6px; height: 10px; border-radius: 3px; background: var(--series-1); opacity: .35; }
.lvr-org { position: absolute; top: 2px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink); opacity: .55; }
.lvr-mean { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--series-1); border: 2px solid var(--paper); }
.lvr-val { font-size: 13px; font-variant-numeric: tabular-nums; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lvr-sd { color: var(--muted); font-size: 12px; }
.lvr-key-mean, .lvr-key-iqr, .lvr-key-range, .lvr-key-org { display: inline-block; vertical-align: middle; }
.lvr-key-mean { width: 10px; height: 10px; border-radius: 50%; background: var(--series-1); }
.lvr-key-iqr { width: 16px; height: 8px; border-radius: 2px; background: var(--series-1); opacity: .35; }
.lvr-key-range { width: 16px; height: 5px; border-radius: 2px; background: var(--muted); opacity: .3; }
.lvr-key-org { width: 2px; height: 12px; background: var(--ink); opacity: .55; }
@media (max-width: 640px) {
  .lvr-scale, .lvr-row { grid-template-columns: 1fr; gap: 4px; }
  .lvr-scale .lvr-head, .lvr-scale > span:first-child { display: none; }
}
.la-level { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; padding: 12px 14px; border-radius: 8px; background: var(--tint); }
.la-level-k { font-size: 12.5px; color: var(--muted); }
.la-level strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.la-level-type { font-weight: 600; color: var(--accent); margin-left: auto; }
.la-combo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .la-combo { grid-template-columns: 1fr; } }
.prose .la-combo-line { margin: 0; font-size: 14px; max-width: none; }

/* ---- Learning Motivation 진단 ---- */
:root { --series-4: #c98500; }
.rd-area.s4 { fill: var(--series-4); fill-opacity: .07; stroke: var(--series-4); }
.rd-dot.s4, .lg-key.s4 { fill: var(--series-4); background: var(--series-4); }
.rd-label.rd-burden { fill: var(--warn); }
.lm-select { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.lm-select select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); min-width: 190px; }
.lm-pname { font-size: 20px !important; }
.lm-share { display: grid; gap: 14px; margin-top: 10px; }
.lm-share-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-size: 13.5px; }
.lm-share-name { display: inline-flex; align-items: center; gap: 6px; }
.lm-share-track { height: 12px; background: var(--tint); border-radius: 6px; overflow: hidden; }
.lm-share-bar { display: block; height: 100%; border-radius: 6px; }
.lm-share-bar.s1 { background: var(--series-1); } .lm-share-bar.s2 { background: var(--series-2); } .lm-share-bar.s3 { background: var(--series-3); } .lm-share-bar.s4 { background: var(--series-4); }
.lm-share-val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; text-align: right; }
.lm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .lm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lm-cards { grid-template-columns: 1fr; } }
.lm-av-s1 { background: var(--series-1); } .lm-av-s2 { background: var(--series-2); } .lm-av-s3 { background: var(--series-3); } .lm-av-s4 { background: var(--series-4); }

/* ---- Goal Orientation: 3×3 조합 지도 ---- */
.gm { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 6px; margin-top: 8px; }
.gm-ylab { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; color: var(--muted); text-align: center; align-self: center; }
.gm-grid { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 6px; }
.gm-xlab { grid-column: 2; font-size: 12px; color: var(--muted); text-align: center; padding-left: 44px; }
.gm-rowlab, .gm-collab { font-size: 12px; color: var(--muted); display: grid; place-items: center; }
.gm-cell { position: relative; min-height: 92px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--series-1) calc(var(--a) * 38%), var(--paper)); display: grid; gap: 4px; align-content: start; transition: opacity .2s; }
.gm-name { font-size: 13.5px; font-weight: 600; }
.gm-n { font-size: 13px; font-variant-numeric: tabular-nums; }
.gm-n small { color: var(--muted); }
.gm-cell .chip { justify-self: start; }
.gm-marks { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; }
.gm-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.gm-m1, .gm-av1 { background: var(--series-1); } .gm-m2, .gm-av2 { background: var(--series-2); } .gm-m3, .gm-av3 { background: var(--series-3); } .gm-m4, .gm-av4 { background: var(--series-4); }
#gl-legend .lg { gap: 6px; }
.gm-small .gm-cell { min-height: 46px; padding: 6px 8px; }
.gm-small .gm-name { font-size: 11.5px; font-weight: 500; }
.gm-cell.dim { opacity: .35; }
.gm-cell.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.prose .gl-sub { font-size: 14px; margin: 6px 0 8px; }
.gl-sub span { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.gl-bars .lvr-row { grid-template-columns: 120px minmax(0, 1fr) 110px; }
@media (max-width: 640px) { .gm-cell { min-height: 74px; padding: 8px; } .gm-name { font-size: 12px; } .gm-grid { grid-template-columns: 34px repeat(3, minmax(0, 1fr)); } .gm-xlab { padding-left: 34px; } }
/* 세로축 이름은 세로쓰기 대신 표 위에 가로로 표시 */
.gm { grid-template-columns: 1fr; }
.gm-ylab { writing-mode: horizontal-tb; transform: none; text-align: left; align-self: start; }
.gm-xlab { grid-column: 1; }
/* Daily Insight 요약 상자: 항목 구분 없이 이어지는 문단 */
.daily-brief-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.daily-brief-body p { margin: 0; font-size: 15px; line-height: 1.75; max-width: none; }
/* APA References: 내어쓰기 */
.references { display: grid; gap: 8px; font-size: 14px; line-height: 1.65; }
.references p { margin: 0; padding-left: 2em; text-indent: -2em; overflow-wrap: anywhere; max-width: none; }

/* ---- 자기자비 진단 ---- */
.sc-compare { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 860px) { .sc-compare { grid-template-columns: 1fr; } }
.sc-persona-list { display: grid; gap: 10px; }
.sc-pcard { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sc-pcard:hover { border-color: var(--accent); }
.sc-pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-state { font-size: 13px; color: var(--muted); line-height: 1.5; }
.sc-av-s1 { background: var(--series-1); } .sc-av-s2 { background: var(--series-2); } .sc-av-s3 { background: var(--series-3); } .sc-av-s4 { background: var(--series-4); }
.sc-pattern td, .sc-pattern th { white-space: nowrap; font-size: 13px; }
.sc-pattern tr[data-pid] { cursor: pointer; }
.sc-pattern tr.is-sel td { background: var(--accent-soft); }
.sc-cell { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 12px; }
.sc-cell.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); font-weight: 600; }
.sc-cell.bad { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); font-weight: 600; }

/* ---- 심리적 특권의식 진단 ---- */
.pe-swarm-wrap { border: 0; }
.pe-swarm { display: block; width: 100%; min-width: 620px; height: auto; font-family: var(--f-body); }
.pe-hiband { fill: var(--warn); fill-opacity: .07; }
.pe-band-label { fill: var(--warn); font-size: 12px; }
.pe-grid { stroke: var(--line); }
.pe-tick { fill: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.pe-team { fill: var(--ink); font-size: 13px; font-weight: 600; }
.pe-dot { stroke: var(--paper); stroke-width: 1.2; transition: opacity .2s; }
.pe-dot.none { fill: var(--muted); fill-opacity: .4; }
.pe-dot.s1 { fill: var(--series-1); } .pe-dot.s2 { fill: var(--series-2); } .pe-dot.s3 { fill: var(--series-3); } .pe-dot.s4 { fill: var(--series-4); }
.pe-dot.dim { opacity: .2; }
.pe-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.pe-key.none { background: var(--muted); opacity: .45; } .pe-key.s1 { background: var(--series-1); } .pe-key.s2 { background: var(--series-2); } .pe-key.s3 { background: var(--series-3); } .pe-key.s4 { background: var(--series-4); }
.pe-cause-list { display: grid; gap: 12px; margin-top: 8px; }
.pe-cause-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.pe-cause-track { height: 14px; background: var(--tint); border-radius: 7px; overflow: hidden; }
.pe-cause-bar { display: block; height: 100%; border-radius: 7px; }
.pe-cause-bar.pos { background: var(--warn); opacity: .75; } .pe-cause-bar.neg { background: var(--muted); opacity: .4; }
.pe-cause-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pe-howto { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 14px; }
.pe-tprofile { display: grid; gap: 10px; }
.pe-trow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.pe-trow.key .pe-tname { font-weight: 600; }
.pe-tbar { position: relative; height: 14px; background: var(--tint); border-radius: 7px; }
.pe-tbar-fill { position: absolute; top: 0; height: 100%; border-radius: 7px; }
.pe-tbar-fill.pos { background: var(--warn); opacity: .75; } .pe-tbar-fill.neg { background: var(--series-1); opacity: .45; }
.pe-tbar-mid { position: absolute; left: 50%; top: -3px; width: 2px; height: 20px; background: var(--ink); opacity: .45; }
.pe-tval { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
@media (max-width: 640px) { .pe-trow { grid-template-columns: 1fr; gap: 4px; } .pe-cause-row { grid-template-columns: 90px minmax(0, 1fr) 46px; } }

/* ---- 지식은폐 진단 ---- */
.kh-legend { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 4px; font-size: 13.5px; }
.kh-heat { font-size: 13.5px; }
.kh-heat th, .kh-heat td { text-align: center; }
.kh-heat .kh-sit { text-align: left; white-space: nowrap; }
.kh-cell { display: inline-block; min-width: 54px; padding: 6px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--warn) calc(var(--a) * 55%), var(--tint)); }
.kh-cell.top { font-weight: 700; outline: 2px solid var(--warn); outline-offset: -2px; }
.prose .kh-chips { margin: 0 0 6px; max-width: none; display: flex; flex-wrap: wrap; gap: 6px; }

.inquiry-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; align-items: stretch; max-width: 600px; margin-top: 20px; }
.inquiry-actions .solution-btn { width: 100%; min-width: 0; white-space: normal; text-align: center; font-size: 12px; padding: 10px 16px; }
.inquiry-actions .solution-link { grid-column: 2; text-align: center; }
@media (max-width: 600px) {
  .inquiry-actions { column-gap: 10px; }
  .inquiry-actions .solution-btn { font-size: 11px; padding: 9px 8px; }
}

.inquiry-actions .solution-btn:hover { transform: translateY(-3px) scale(1.025); box-shadow: 0 12px 28px rgba(0,0,0,.3); }

/* ---- Research Map: 분야 버튼 ---- */
.rm-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-gbtn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.rm-gbtn:hover { border-color: var(--accent); color: var(--accent); }
.rm-gbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.rm-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-gbtn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.rm-gbtn:hover { border-color: var(--accent); color: var(--accent); }
.rm-gbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.rmap-top { align-items: flex-start; min-width: 0; }
/* Keep the metric groups on one compact row; scroll only this strip on phones. */
.rmap-metrics { display: grid; grid-template-columns: minmax(252px, 4fr) minmax(242px, 3.5fr) minmax(200px, 3fr) minmax(126px, 1.8fr); gap: 12px; width: 100%; min-width: 0; overflow-x: auto; padding: 8px 8px 20px; }
.rmap-metrics-group { min-width: 0; }
.rmap-hit-inline { display: flex; align-items: baseline; gap: 10px; min-height: 12px; line-height: normal; }
.rmap-hit-inline span { display: inline-flex; align-items: baseline; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }
.rmap-hit-inline small { color: inherit; font-size: inherit; letter-spacing: normal; }
.rmap-hit-inline strong { color: inherit; font-size: inherit; font-weight: inherit; font-variant-numeric: tabular-nums; }
.rmap-metrics-label { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; font-size: 10px; font-weight: 600; margin-bottom: 5px; color: var(--muted); white-space: nowrap; }
.rmap-metrics-label span { font-size: 10px; font-weight: 400; }
.rmap-metrics .rmap-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
.rmap-metrics .scholar-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rmap-metrics .rmap-stats div { min-width: 0; min-height: 56px; padding: 6px 7px; border-radius: 8px; }
.rmap-metrics .rmap-stats dd { font-size: 16px; white-space: nowrap; }
.rmap-metrics .rmap-stats dt { font-size: 8.5px; letter-spacing: .03em; white-space: nowrap; }

.rmap-metrics .scopus-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rmap-orcid { display: grid; align-content: center; gap: 3px; min-height: 56px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 11px; text-decoration: none; white-space: nowrap; }
.rmap-orcid small { color: var(--muted); font-size: 9px; }
.rmap-orcid:hover { border-color: var(--accent); }

/* Project: 기관 목록과 강연·자문 네트워크 */
.lecture-network { display:grid; grid-template-columns:260px minmax(0,1fr); gap:16px; margin:24px 0 36px; align-items:start; }
.lecture-list,.lecture-visual { border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.lecture-list { padding:16px; max-height:730px; overflow:auto; }
.lecture-search-label { display:block; font-size:12px; font-weight:600; margin-bottom:6px; }
#lecture-search { box-sizing:border-box; width:100%; padding:9px 10px; font-family:inherit; font-size:12px; color:var(--ink); border:1px solid var(--line); border-radius:8px; background:var(--paper); }
.lecture-reset,.lecture-fit { padding:6px 10px; font-size:11px; color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:7px; cursor:pointer; }
.lecture-reset { margin:8px 0; }
.prose .lecture-category h3 { margin:16px 0 8px; font-size:13px; }
.lecture-category h3 button { display:flex; align-items:center; gap:6px; width:100%; font-weight:650; }
.lecture-category button { border:0; background:transparent; color:var(--ink); font:inherit; padding:3px 4px; text-align:left; cursor:pointer; border-radius:5px; }
.lecture-category small { margin-left:auto; font-size:10px; color:var(--muted); }
.lecture-dot { width:7px; height:7px; border-radius:50%; background:var(--group-color); flex-shrink:0; }
.prose .lecture-category ul { list-style:none; padding:0; margin:0; }
.prose .lecture-category li { font-size:11px; line-height:1.55; margin:1px 0; }
.lecture-category button:hover,.lecture-category button.is-selected,.lecture-category button.is-related { background:color-mix(in srgb,var(--group-color) 12%,transparent); color:var(--group-color); }
.lecture-visual { position:relative; overflow:hidden; }
.lecture-visual-head { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--line); padding:13px 16px; font-size:12px; }
.lecture-visual-head span { font-size:10px; color:var(--muted); }
.lecture-svg { display:block; width:100%; height:auto; min-height:460px; color:var(--muted); touch-action:none; }
.lecture-node { cursor:pointer; }
.lecture-node:focus circle { stroke:var(--ink); stroke-width:2; }
.lecture-label { fill:var(--ink); font-family:inherit; paint-order:stroke; stroke:var(--paper); stroke-width:3px; stroke-linejoin:round; }
.lecture-label-org { font-size:10px; }.lecture-label-group { font-size:12px; font-weight:650; }.lecture-label-lab { font-size:14px; font-weight:700; }
.lecture-label-topic { font-size:12px; font-weight:650; fill:#8b5ac5; }
.lecture-topic-buttons { display:flex; flex-wrap:wrap; gap:5px; }
.lecture-topic-buttons button { font-size:11px; border:1px solid var(--line); padding:4px 7px; }
.prose .lecture-example { font-size:10px; line-height:1.6; color:var(--muted); margin:8px 0 12px; }
.prose .lecture-selection { font-size:11px; color:var(--muted); margin:0; padding:12px 16px; border-top:1px solid var(--line); padding-right:100px; }
.lecture-fit { position:absolute; bottom:8px; right:12px; }
@media(max-width:700px) { .lecture-network { grid-template-columns:1fr; }.lecture-list { max-height:340px; }.lecture-svg { min-height:360px; } }

/* 대문 소개 박스: 박스와 글씨를 같은 비율(약 85%)로 축소 */
.hero-intro { min-height: 264px; padding: 34px; gap: 15px; }
.hero-intro .eyebrow { font-size: 10.6px; }
.hero-intro h1 { font-size: clamp(31px, 5.1vw, 49px); }
.hero-intro p { font-size: 14.5px; }
.hero-intro .inquiry-actions { max-width: 510px; gap: 7px 14px; margin-top: 17px; }
.hero-intro .inquiry-actions .solution-btn { font-size: 10.5px; padding: 8.5px 14px; }
.hero-intro .solution-link { font-size: 10.6px; }
@media (max-width: 680px) {
  .hero-intro { min-height: 255px; padding: 24px 19px; }
  .hero-intro h1 { font-size: clamp(27px, 6.8vw, 37px); }
  .hero-intro p { font-size: 13.6px; }
}

/* 상단 메뉴: 한양대 로고가 들어간 뒤에도 한 줄로 */
@media (min-width: 861px) {
  .header-row { column-gap: 16px; }
  .nav-item > a { white-space: nowrap; padding-inline: 8px; font-size: 13.5px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .header-row { column-gap: 10px; }
  .nav-item > a { padding-inline: 5px; font-size: 12px; }
}
@media (min-width: 861px) and (max-width: 980px) {
  .nav-item > a { padding-inline: 4px; font-size: 11px; letter-spacing: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-logo { height: 30px; }
  .brand .brand-mark { width: 30px; height: 30px; }
}

/* 사이트 전체: 마우스를 올리면 해당 항목의 제목 옆에 빨간 점이 깜빡임 (berl.hanyang.ac.kr 참고)
   - 목록 행(논문, 학회, 연혁·과목 목록): 행 왼쪽, 첫 줄(제목) 높이에
   - 카드(Insight, Blog, Institute, Gallery, 연구분야, Members)와 표의 첫 칸: 제목 바로 오른쪽에 */
.journal-pubs li, .conference-pubs li, .ledger li { position: relative; }
.journal-pubs li::before, .conference-pubs li::before, .ledger li::before,
.inst h3::after, .gcard .gcard-title::after, .area .area-en::after, .member .member-name::before, tbody td:first-child::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #e0312b; opacity: 0; pointer-events: none;
}
.journal-pubs li::before, .conference-pubs li::before, .ledger li::before { position: absolute; z-index: 2; }
.journal-pubs li::before, .conference-pubs li::before { left: 4px; top: calc(16px + .8em - 4px); }
.ledger li::before { left: -14px; top: calc(12px + .8em - 4px); }
/* 제목 옆 점: 자리를 차지하지 않도록 바깥 여백으로 상쇄 (Members 카드는 영문 이름이 아래 줄이라 이름 왼쪽) */
.member .member-name::before { display: inline-block; vertical-align: middle; margin: -2px 6px 0 -14px; }
.inst h3::after, .gcard .gcard-title::after, .area .area-en::after, tbody td:first-child::after {
  display: inline-block; vertical-align: middle; margin: -2px -14px 0 6px;
}
.journal-pubs li:hover::before, .conference-pubs li:hover::before, .ledger li:hover::before,
.inst:hover h3::after, .gcard:hover .gcard-title::after, .area:hover .area-en::after, .member:hover .member-name::before, tbody tr:hover td:first-child::after {
  animation: pub-blink 1s ease-in-out infinite;
}
@keyframes pub-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224, 49, 43, .45); }
  50% { opacity: .25; box-shadow: 0 0 0 5px rgba(224, 49, 43, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .journal-pubs li:hover::before, .conference-pubs li:hover::before, .ledger li:hover::before,
  .inst:hover h3::after, .gcard:hover .gcard-title::after, .area:hover .area-en::after, .member:hover .member-name::before, tbody tr:hover td:first-child::after {
    animation: none; opacity: 1;
  }
}

/* 검색 비노출 구성원: 이름 이미지 */
.member-name-img { display: block; width: 77px; height: auto; margin: 2px 0 5px -3px; }
/* 이름 이미지 카드: 빨간 점이 줄을 차지해 이름이 아래로 밀리지 않도록 겹쳐 띄운다 */
.member .member-name--img { position: relative; display: flex; align-items: flex-start; }
/* 이름 이미지 안의 한글 이름(폭 약 45px) 바로 뒤에 다른 카드와 같은 6px 간격으로 놓는다 */
.member .member-name--img .member-home { position: absolute; left: 48px; top: -1px; margin: 0; }
.member .member-name--img::before { position: absolute; left: -14px; top: 8px; margin: 0; }
@media (prefers-color-scheme: dark) { .member-name-img { filter: invert(1) hue-rotate(180deg); } }

/* 포인터(마우스)를 올리거나 손가락으로 누르면 박스가 살짝 커지는 효과 */
main.container { overflow-x: clip; }
.area, .member, .inst, .gcard, .kpi, .item-group, .journal-index-summary > div, .rmap-card,
.persona-card, .sc-pcard, .pd-acts li, .gm-cell,
.journal-pubs li, .conference-pubs li, .ledger li, .post-list li {
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.area, .member, .inst, .gcard, .kpi, .item-group, .journal-index-summary > div, .rmap-card,
.persona-card, .sc-pcard, .pd-acts li, .gm-cell { will-change: transform; }
@media (hover: hover) {
  .area:hover, .member:hover, .inst:hover, .gcard:hover, .kpi:hover, .item-group:hover, .journal-index-summary > div:hover, .rmap-card:hover,
  .persona-card:hover, .sc-pcard:hover, .pd-acts li:hover, .gm-cell:hover {
    transform: scale(1.03); z-index: 3; border-color: var(--accent); box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  }
  .journal-pubs li:hover, .conference-pubs li:hover, .ledger li:hover, .post-list li:hover {
    transform: scale(1.012); z-index: 3; background-color: var(--tint);
  }
}
.area:active, .member:active, .inst:active, .gcard:active, .kpi:active, .item-group:active, .journal-index-summary > div:active, .rmap-card:active,
.persona-card:active, .sc-pcard:active, .pd-acts li:active, .gm-cell:active {
  transform: scale(1.03); z-index: 3; border-color: var(--accent); box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.journal-pubs li:active, .conference-pubs li:active, .ledger li:active, .post-list li:active {
  transform: scale(1.012); z-index: 3; background-color: var(--tint);
}
@media (prefers-reduced-motion: reduce) {
  .area, .member, .inst, .gcard, .kpi, .item-group, .journal-index-summary > div, .rmap-card,
  .persona-card, .sc-pcard, .pd-acts li, .gm-cell,
  .journal-pubs li, .conference-pubs li, .ledger li, .post-list li { transition: none; transform: none !important; }
}

/* Research Map 지표 상자: 마우스를 올리면 살짝 커짐 */
.rmap-stats div, .rmap-orcid { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.rmap-stats div:hover, .rmap-orcid:hover { position: relative; z-index: 1; transform: translateY(-2px) scale(1.06); border-color: var(--accent); box-shadow: 0 8px 20px rgba(16,32,43,.14); }
@media (prefers-reduced-motion: reduce) { .rmap-stats div:hover, .rmap-orcid:hover { transform: none; } }

/* 상단 메뉴: 마우스를 올리면 살짝 커짐 (데스크톱) */
@media (min-width: 861px) {
  .nav-item > a { transition: transform .18s ease, color .18s ease; }
  .nav-item > a:hover, .nav-item > a:focus-visible { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .nav-item > a:hover, .nav-item > a:focus-visible { transform: none; } }

/* 최근 48시간 업데이트 메뉴: NEW 배지 */
.nav-item > a { position: relative; }
.nav-new {
  position: absolute; top: 9px; right: -4px;
  padding: 1px 4px 0; border-radius: 4px;
  background: #e5484d; color: #fff;
  font-family: var(--f-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.35;
  pointer-events: none;
  animation: nav-new-blink 1.4s ease-in-out infinite;
}
@keyframes nav-new-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 860px) { .nav-new { position: static; display: inline-block; margin-left: 6px; vertical-align: 2px; } }
@media (prefers-reduced-motion: reduce) { .nav-new { animation: none; } }

/* 메뉴 안의 NEW: 페이지 위 '최근 업데이트' 안내와 바뀐 항목 옆 배지 (assets/js/nav.js) */
.item-new {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: #e0312b; color: #fff; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; line-height: 1.5; vertical-align: 2px; white-space: nowrap;
}

/* 대문 소개 상자 오른쪽: 키워드 궤도(Research Orbit) 그래픽 (assets/js/hero-orbit.js) */
.hero-intro { position: relative; }
.hero-orbit { display: none; }
@media (min-width: 900px) {
  .hero-orbit { display: block; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); width: min(36%, 340px); height: auto; aspect-ratio: 1 / 1; pointer-events: none; }
  .hero-intro > :not(.hero-orbit):not(dialog) { max-width: 58%; }
}

/* 각 메뉴 배너 위 키워드 궤도 (assets/js/orbit.js) */
.page-banner { position: relative; }
.banner-orbit { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 52%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
@media (max-width: 640px) { .banner-orbit { width: 72%; } }

/* 모바일 메뉴: 펼쳤을 때 스크롤 없이 한 화면에 Weekly Insight까지 보이게 — 큰 메뉴는 한 줄씩, 하위 메뉴는 그 아래 줄바꿈 나열 */
@media (max-width: 860px) {
  .site-nav { padding-bottom: 8px; }
  .site-nav.open { max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-item { padding: 5px 0; border-top: 1px solid var(--line); }
  .nav-item:first-child { border-top: 0; }
  .nav-item > a { padding: 2px 0; font-size: 15px; font-weight: 600; }
  .submenu { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 0; }
  .submenu a { padding: 3px 0; font-size: 13px; }
}

/* 대문 Research Map 지표: 휴대폰에서는 옆으로 밀지 않아도 ORCID까지 다 보이게 네 묶음을 위아래로 쌓고 조금 작게 */
@media (max-width: 700px) {
  .rmap-metrics { grid-template-columns: minmax(0, 1fr); gap: 10px; overflow-x: visible; padding: 2px 0 4px; }
  .rmap-metrics-label { flex-wrap: wrap; white-space: normal; gap: 0 6px; margin-bottom: 4px; }
  .rmap-metrics .rmap-stats div { min-height: 0; padding: 5px 7px; }
  .rmap-metrics .rmap-stats dd { font-size: 15px; }
  .rmap-orcid { min-height: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 8px 10px; }
}

/* Weekly Insight 목록 카드 썸네일 (tools/og_images.rb 가 만든 공유 이미지) */
.inst-thumb { display: block; width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: -20px -20px 4px; border-radius: 8px 8px 0 0; background: var(--tint); }
.inst { overflow: hidden; }
/* Measurement·Weekly Insight 목록: 썸네일 윗부분(분류·제목·칩)만 보이게 낮게 자른다 */
.inst-thumb--compact { aspect-ratio: 1200 / 360; object-position: top; }
.inst-thumb--in-progress { aspect-ratio: 1200 / 430; object-fit: cover; object-position: top; }
.inst-thumb--full { aspect-ratio: 1200 / 630; object-fit: contain; object-position: center; }

/* Weekly Insight 글 제목 옆 공유 버튼 */
/* 공유 버튼은 제목 마지막 글자 바로 뒤에 붙는다 */
.title-row h1 { display: inline; }
.title-row--link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.title-row--link h1 { display: block; margin: 0; }
.title-row .title-link { margin: 0; white-space: nowrap; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.title-row .title-link:hover, .title-row .title-link:focus-visible { background: var(--accent); color: #fff; }
.share { position: relative; display: inline-block; vertical-align: .3em; margin-left: .45em; white-space: nowrap; }
.share-btn { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #e0312b; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.share-btn:hover { background: #c4241f; transform: translateY(-1px); }
.share-btn:focus-visible { outline: 2px solid #e0312b; outline-offset: 3px; }
.share-menu { position: fixed; left: 0; top: 0; z-index: 60; width: max-content; min-width: 168px; max-width: calc(100vw - 16px); display: grid; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { font: inherit; font-size: 14px; text-align: left; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--tint); }
.share-done { font-size: 12.5px; color: #e0312b; padding: 0 12px; }
.share-done:empty { display: none; }
.share-menu.to-left { left: auto; right: 0; }
@media (prefers-reduced-motion: reduce) { .share-btn { transition: none; } .share-btn:hover { transform: none; } }

/* Teaching: 수업 이름 옆 학기 링크(예: 학습조직 26-2 → LO_Review 제출 페이지) */
.course-term { margin-left: 6px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: #e0312b; text-decoration: none; }
.course-term:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==== 모바일 다듬기 (2026-10-21) ==== */
.nowrap { white-space: nowrap; }

/* 메뉴 버튼: 햄버거 아이콘 + 글자, 열리면 ×/닫기 */
.menu-toggle { align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; transition: background-color .15s, border-color .15s, color .15s; }
.menu-icon { position: relative; display: inline-block; width: 18px; height: 12px; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .15s ease, top .2s ease; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 5px; }
.menu-icon span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .header-row { flex-wrap: nowrap; min-height: 60px; }
  .brand-logo { height: 30px; }
  .menu-toggle { display: inline-flex; flex: none; }

  /* 펼친 메뉴는 본문을 밀어내지 않고 헤더 아래에 겹쳐 뜬다 */
  .site-nav, .site-nav.open { position: absolute; left: 0; right: 0; top: 100%; width: auto; padding: 4px 20px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(10, 20, 35, .14);
    max-height: calc(100dvh - 61px); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav { display: none; }
  .site-nav.open { display: block; animation: nav-drop .18s ease-out; }
  .nav-item { padding: 10px 0; }
  .nav-item > a { display: inline-block; padding: 4px 0; font-size: 16px; font-weight: 600; }
  .submenu { gap: 6px; margin-top: 6px; }
  .submenu a { padding: 6px 11px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 13px; line-height: 1.3; }
  .submenu a:hover, .submenu a:active { background: var(--accent-soft, var(--tint)); color: var(--accent); }
  html.nav-open, html.nav-open body { overflow: hidden; }
  /* 메뉴 뒤 본문을 살짝 어둡게 — 바깥을 누르면 닫힘 (nav.js) */
  html.nav-open main, html.nav-open .site-footer { filter: brightness(.82); transition: filter .15s; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-nav.open { animation: none; } .menu-icon span { transition: none; } }

/* 대문: 휴대폰에서 헤더 아래 빈 공간 줄이고, 문의 버튼은 한 줄에 하나씩 꽉 차게 */
@media (max-width: 680px) {
  main.container { padding-block: 20px 64px; }
  .hero { padding-block: 0 36px; }
  .section { padding-block: 40px 0; }
  .hero-intro { gap: 14px; padding: 26px 20px 24px; }
  .hero-intro .eyebrow { font-size: 11px; letter-spacing: .06em; line-height: 1.6; }
  .hero-intro h1 .expand { margin-top: 6px; }
  .hero-intro p { font-size: 15.5px; line-height: 1.7; }
  .inquiry-actions { grid-template-columns: 1fr; gap: 10px; max-width: none; margin-top: 6px; }
  .inquiry-actions .solution-btn { font-size: 15px; padding: 14px 18px; text-align: center; line-height: 1.35; }
  .inquiry-actions .solution-link { grid-column: 1; justify-self: center; font-size: 13px; padding: 2px 6px; }
}
@media (max-width: 680px) {
  .hero-intro .eyebrow-sep { display: none; }
  .hero-intro .eyebrow .nowrap { display: block; }
}
/* 태블릿·가로 휴대폰(701–1100px): 지표 네 묶음이 옆으로 넘쳐 글자가 겹치지 않게 2×2로 */
@media (min-width: 701px) and (max-width: 1100px) {
  .rmap-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; overflow-x: visible; padding: 4px 0 8px; }
  .rmap-metrics-label { flex-wrap: wrap; white-space: normal; gap: 0 6px; }
}
/* 메뉴 버튼이 보이는 폭에서는 헤더 아래 빈 공간을 줄인다 */
@media (min-width: 681px) and (max-width: 860px) {
  main.container { padding-block: 28px 72px; }
  .hero { padding-block: 0 44px; }
}

/* AI 역량 수준 진단 (in-progress/ai-competency, assets/js/ai-diagnosis.js) */
.aidx { display: grid; gap: 20px; margin-block: 8px 40px; }
.aidx-preview { margin: 0; padding: 8px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; }
.aidx-home { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px 20px; border: 1px solid var(--line); border-radius: 12px; }
.prose .aidx-lead { font-size: 18px; line-height: 1.65; margin: 0; }
.aidx-meta { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.aidx-meta li { font-size: 13px; padding: 2px 12px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.aidx-group { margin: 0; font-size: 14px; color: var(--muted); }
.aidx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.aidx-actions.sub { margin-top: 0; }
.aidx-actions.sub .aidx-btn { font-size: 13px; padding: 8px 14px; white-space: nowrap; }
.aidx-actions.sub .aidx-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.aidx-btn { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.aidx-btn:hover { border-color: var(--accent); color: var(--accent); }
.aidx-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); font-size: 16px; padding: 12px 36px; }
.aidx-btn.primary:hover { color: var(--paper); filter: brightness(1.08); }
.aidx-btn:disabled { opacity: .5; cursor: wait; }
.aidx-link { all: unset; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.prose .aidx-small { margin: 0; font-size: 13px; color: var(--muted); }
.aidx-muted { color: var(--muted); font-size: 12.5px; }
.aidx-err { color: var(--warn); font-size: 13.5px; }
.aidx-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 14px; }
.aidx-code input { font: inherit; font-family: var(--f-mono); font-size: 15px; width: 130px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-transform: uppercase; }
.aidx-code .aidx-err { flex-basis: 100%; }
.aidx-bigcode { font-family: var(--f-mono); font-size: 24px; font-weight: 600; letter-spacing: .08em; padding: 2px 10px; border-radius: 6px; background: var(--tint); }

.aidx-survey { display: grid; gap: 14px; }
.aidx-progress { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.aidx-progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.prose .aidx-step { margin: 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.prose .aidx-h { font-size: 21px; margin: 0; padding: 0; }
.aidx-role { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aidx-role legend { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.aidx-role label, .aidx-dots label { cursor: pointer; }
.aidx-role input, .aidx-scale input { position: absolute; opacity: 0; pointer-events: none; }
.aidx-role span { display: inline-block; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.aidx-role input:checked + span, .aidx-scale input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.aidx-role input:focus-visible + span, .aidx-scale input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.aidx-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.aidx-item { padding: 18px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.aidx-item.is-miss { box-shadow: inset 3px 0 0 var(--warn); padding-left: 14px; }
.prose .aidx-q { margin: 0; font-size: 16px; font-weight: 500; display: flex; gap: 10px; }
.aidx-no { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 3px; min-width: 20px; }
.aidx-scale { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 14px; padding-left: 30px; }
.aidx-end { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.aidx-dots { display: flex; gap: 10px; }
.aidx-dots span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); font-family: var(--f-mono); font-size: 14px; color: var(--muted); transition: border-color .12s, background .12s; }
.aidx-dots label:hover span { border-color: var(--accent); color: var(--accent); }
.aidx-dots label:hover input:checked + span { color: var(--paper); }
@media (max-width: 560px) {
  .aidx-scale { grid-template-columns: 1fr 1fr; padding-left: 0; row-gap: 6px; }
  .aidx-dots { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .aidx-end:last-child { text-align: right; }
}
.aidx-model { display: grid; gap: 12px; }
.prose .aidx-model p { margin: 0; color: var(--muted); font-size: 15px; }
.aidx-flow { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.aidx-flow li { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-width: none; }
.aidx-flow li + li::before { content: "→"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 18px; font-weight: 600; }
.aidx-when { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px 2px 3px; }
.aidx-when b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--paper); font-family: var(--f-mono); font-size: 11px; }
.aidx-ficon { font-size: 34px; line-height: 1.2; margin-top: 4px; }
.aidx-fname { font-size: 17px; line-height: 1.35; }
.aidx-fq { font-size: 14px; font-weight: 500; color: var(--accent); }
.aidx-fex { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); text-align: left; width: 100%; }
.prose .aidx-fsum { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.aidx-fsum span:last-child { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .aidx-flow { grid-template-columns: 1fr; gap: 18px; }
  .aidx-flow li { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; column-gap: 12px; row-gap: 2px; padding: 14px 16px; }
  .aidx-flow li > :not(.aidx-ficon) { grid-column: 2; }
  .aidx-ficon { grid-column: 1; grid-row: 1 / span 4; font-size: 30px; margin: 0; align-self: center; justify-self: center; }
  .aidx-flow li + li::before { content: "↓"; left: 50%; top: -17px; transform: translateX(-50%); font-size: 15px; }
  .aidx-fex { padding-top: 6px; margin-top: 2px; }
}
.aidx-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.aidx-spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: aidx-spin .8s linear infinite; }
@keyframes aidx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aidx-spin { animation: none; } .aidx-progress span { transition: none; } }

.aidx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.aidx-tabs button { font: inherit; font-size: 15.5px; font-weight: 500; padding: 10px 18px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); cursor: pointer; }
.aidx-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.aidx [role="tabpanel"] { display: grid; gap: 20px; }
.aidx-type { padding: 24px; border-radius: 12px; background: var(--accent-soft); display: grid; gap: 6px; }
.prose .aidx-type h2 { margin: 0; padding: 0; font-size: 28px; color: var(--accent); }
.prose .aidx-type p { margin: 0; }
.prose .aidx-eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.prose .aidx-tag { font-weight: 600; }
.aidx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .aidx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aidx-kpis .kpi-v { font-size: 24px; }
.rd-grid.aidx-cut { stroke: var(--muted); stroke-width: 1.6; stroke-opacity: .7; }
.aidx-table { font-size: 14px; }
.aidx-table th, .aidx-table td { padding: 8px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aidx-table tr.aidx-sep td { border-top: 2px solid var(--line); color: var(--muted); }
.aidx-lv { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; margin-left: 2px; }
.aidx-lv.l1 { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.aidx-lv.l2 { background: var(--tint); color: var(--muted); }
.aidx-lv.l3 { background: color-mix(in srgb, var(--series-1) 14%, transparent); color: var(--series-1); }
.aidx-lv.l4 { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.aidx-good { border-top: 3px solid var(--good); }
.aidx-warn { border-top: 3px solid var(--warn); }
.aidx .panel p { margin: 0 0 10px; font-size: 15px; }
.aidx-list { margin: 4px 0 12px; padding-left: 20px; font-size: 14.5px; display: grid; gap: 4px; }
.aidx-check { list-style: "☐  "; }
.aidx-fix { border-top: 1px solid var(--line); padding-top: 10px; }
.prose .aidx-fix-h { font-weight: 600; margin: 0 0 2px; }
.prose .aidx-note { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--tint); border-radius: 0 8px 8px 0; font-size: 15px; }
.prose .aidx-context { margin: 0; font-size: 14px; color: var(--muted); }
.aidx-foot { margin-top: 4px; }

.aidx-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.aidx-sw.l1, .aidx-sbar .l1 { background: color-mix(in srgb, var(--series-1) 14%, var(--paper)); }
.aidx-sw.l2, .aidx-sbar .l2 { background: color-mix(in srgb, var(--series-1) 38%, var(--paper)); }
.aidx-sw.l3, .aidx-sbar .l3 { background: color-mix(in srgb, var(--series-1) 70%, var(--paper)); }
.aidx-sw.l4, .aidx-sbar .l4 { background: var(--series-1); }
.aidx-stack { display: grid; gap: 12px; margin-top: 10px; }
.aidx-srow { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; }
.aidx-sname { font-size: 13.5px; }
.aidx-sbar { display: flex; height: 26px; border-radius: 4px; overflow: hidden; gap: 1px; background: var(--paper); }
.aidx-sbar span { display: grid; place-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.aidx-sbar .l3, .aidx-sbar .l4 { color: var(--paper); }
.aidx-hbars { display: grid; gap: 8px; }
.aidx-hrow { display: grid; grid-template-columns: 120px 1fr 86px; gap: 10px; align-items: center; font-size: 13.5px; }
.aidx-htrack { height: 14px; background: var(--tint); border-radius: 3px; overflow: hidden; }
.aidx-htrack span { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }
.aidx-hval { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
@media (max-width: 520px) { .aidx-hrow { grid-template-columns: 96px 1fr 72px; } .aidx-srow { grid-template-columns: 84px 1fr; } }
.aidx .report-grid.aidx-top { align-items: start; }
.aidx-persona { grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 28px; }
.aidx-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 44px; line-height: 1; box-shadow: 0 2px 10px rgba(10, 20, 35, .08); }
.aidx-pbody { display: grid; gap: 8px; }
.prose .aidx-quote { font-size: 18px; font-weight: 500; color: var(--ink); }
.prose .aidx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aidx-tags span { font-size: 13px; padding: 1px 10px; border-radius: 999px; background: var(--paper); color: var(--accent); }
.aidx-pfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.aidx-pfacts > div { background: var(--paper); border-radius: 8px; padding: 10px 14px; }
.aidx-pfacts dt { font-size: 12px; color: var(--muted); }
.aidx-pfacts dd { margin: 0; font-weight: 600; font-size: 15px; }
@media (max-width: 640px) { .aidx-persona { grid-template-columns: 1fr; padding: 22px; } .aidx-icon { width: 64px; height: 64px; font-size: 34px; } .aidx-pfacts { grid-template-columns: 1fr; } }
.aidx-hrow { grid-template-columns: 170px 1fr 86px; }
@media (max-width: 520px) { .aidx-hrow { grid-template-columns: 130px 1fr 72px; } }
.aidx-pfacts dd .aidx-muted { font-weight: 400; }
.aidx-guide { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aidx-guide li { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 10px; background: var(--tint); font-size: 14px; line-height: 1.55; max-width: none; }
.aidx-gicon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.aidx-guide strong { font-size: 16px; }
.aidx-guide li > span:last-child { color: var(--muted); }
.aidx-role { margin-top: 8px; }
.aidx-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aidx-roles span { display: block; text-align: center; padding: 14px 8px; border-radius: 10px; font-size: 16px; font-weight: 500; }
.aidx-roles label:hover span { border-color: var(--accent); color: var(--accent); }
.aidx-roles label:hover input:checked + span { color: var(--paper); }
@media (max-width: 700px) { .aidx-guide { grid-template-columns: 1fr; } .aidx-guide li { grid-template-columns: 34px 1fr; column-gap: 10px; } .aidx-guide li > :not(.aidx-gicon) { grid-column: 2; } .aidx-gicon { grid-row: 1 / span 2; } .aidx-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aidx-roles { flex: 1 1 100%; max-width: 640px; }
.aidx-org { margin-top: 22px; max-width: 640px; }
.aidx-org label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.aidx-org input { box-sizing: border-box; width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: inherit; }
.aidx-org input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
/* 작은 설명이 붙은 버튼이 있어도 한 줄의 버튼 높이를 맞춘다 */
.aidx-roles label { display: flex; }
.aidx-roles label > span { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* 학교 AIX 진단 종합 결과: 행동 조언의 주체 표시(나 / 학교) */
.axr-advice > li { margin-bottom: 10px; }
.axr-who { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); vertical-align: 1px; }
.axr-who.school { background: color-mix(in srgb, var(--warn) 12%, var(--paper)); color: var(--warn); }
.aidx-role-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; opacity: .75; }
.aidx-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.aidx-pfacts { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.aidx-pfacts .aidx-why { font-weight: 400; font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.aidx-pfacts .aidx-why strong { color: var(--ink); }
@media (max-width: 640px) { .aidx-pfacts { grid-template-columns: 1fr; } }
.aidx-gate { display: grid; gap: 6px; justify-items: center; padding: 14px 20px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.prose .aidx-gate p { margin: 0; color: var(--warn); }
.aidx-gate .aidx-link { font-size: 13.5px; }
/* 휴대폰: 탭할 때 파란 사각형 강조 없애고, 좁은 화면에서도 결과 탭이 한 줄에 들어가게 */
.aidx label, .aidx button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 420px) {
  .aidx-tabs button { flex: 1; padding: 10px 6px; font-size: 14.5px; white-space: nowrap; letter-spacing: -.02em; }
}
.prose .aidx-codeline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.aidx-copy { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--paper); color: var(--accent); cursor: pointer; }
.aidx-copy:hover { background: var(--accent-soft); }
.aidx-copy.is-done { background: var(--accent); color: var(--paper); }
.aidx-copy.small { font-size: 12px; padding: 1px 10px; margin-left: 4px; }
/* 나의 결과: 강점·약점 순위 막대 */
.aidx-sw-panel { display: grid; gap: 14px; }
.aidx-rank { display: grid; gap: 10px; }
.aidx-rrow { display: grid; grid-template-columns: 120px 1fr 36px 72px; gap: 12px; align-items: center; font-size: 14.5px; }
.aidx-rdot { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #e5484d; vertical-align: middle; animation: aidx-rdot-pulse 1.4s ease-in-out infinite; }
@keyframes aidx-rdot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .aidx-rdot { animation: none; } }
.aidx-rname { font-weight: 500; }
.aidx-rtrack { position: relative; height: 18px; border-radius: 4px; background: var(--tint); }
.aidx-rbar { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: color-mix(in srgb, var(--series-1) 55%, var(--paper)); }
.aidx-rrow.good .aidx-rbar { background: var(--good); }
.aidx-rrow.warn .aidx-rbar { background: var(--warn); }
.aidx-rcut { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dashed var(--muted); opacity: .6; }
.aidx-rmean { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); opacity: .55; }
.aidx-rval { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.aidx-rtag { font-size: 12px; font-weight: 600; }
.aidx-rrow.good .aidx-rtag { color: var(--good); } .aidx-rrow.warn .aidx-rtag { color: var(--warn); }
.aidx-rrow.held .aidx-rbar { background: var(--muted); opacity: .45; } .aidx-rrow.held .aidx-rtag { color: var(--muted); font-weight: 500; cursor: help; }
.prose .aidx-note.axr-order { margin-top: 12px; font-size: 14px; border-left-color: var(--warn); }
.prose .aidx-note.axr-order p { margin: 0 0 6px; } .prose .aidx-note.axr-order p:last-child { margin-bottom: 0; }
.prose .aidx-note.axr-few { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--paper)); }
.aidx-swgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aidx-swcard { border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.aidx-swcard.good { background: color-mix(in srgb, var(--good) 8%, var(--paper)); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.aidx-swcard.warn { background: color-mix(in srgb, var(--warn) 8%, var(--paper)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.prose .aidx-swh { margin: 0; font-weight: 700; font-size: 16px; }
.aidx-switem strong { font-size: 15.5px; }
.aidx-switem strong span { font-weight: 500; color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.aidx .aidx-switem p { margin: 2px 0 0; font-size: 14px; }
@media (max-width: 760px) { .aidx-swgrid { grid-template-columns: 1fr; } .aidx-rrow { grid-template-columns: 96px 1fr 30px 58px; gap: 8px; font-size: 13.5px; } }
/* 생각과 행동의 차이 */
.axr-rolestage { font-weight: 600; font-size: 13.5px; margin: 10px 0 4px; } .axr-rolestage:first-child { margin-top: 2px; }
.aidx-gap { border-radius: 12px; padding: 24px 26px; display: grid; gap: 10px; border: 2px solid var(--accent); background: var(--accent-soft); }
.aidx-gap.ahead { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--paper)); }
.prose .aidx-gap h3 { margin: 0; font-size: 22px; }
.aidx-gap.ahead h3 { color: var(--warn); } .aidx-gap.behind h3, .aidx-gap.match h3 { color: var(--accent); }
.aidx .aidx-gap p { margin: 0; font-size: 15px; }
.aidx-gbars { display: grid; gap: 8px; max-width: 640px; }
.aidx-grow { display: grid; grid-template-columns: 92px 1fr 44px; gap: 12px; align-items: center; font-weight: 600; }
.aidx-grow small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.aidx-gtrack { height: 22px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.aidx-gtrack span { display: block; height: 100%; background: var(--muted); opacity: .55; border-radius: 5px; }
.aidx-grow.act .aidx-gtrack span { background: var(--accent); opacity: 1; }
.aidx-grow b { font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.prose .aidx-gnum { font-size: 15px; }
.aidx-gnum strong { font-size: 26px; margin-left: 4px; }
.aidx-gap.ahead .aidx-gnum strong { color: var(--warn); }
.aidx-gap.slight { border-color: color-mix(in srgb, var(--warn) 55%, var(--accent)); }
.aidx-gap.slight h3 { color: var(--ink); }
span.warn { color: var(--warn); font-weight: 600; }
.axr-kpi-help { margin: 4px 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.axr-kpi-help summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.axr-kpi-help ul { margin-top: 8px; } .axr-kpi-help li { font-size: 14px; line-height: 1.65; }
.aidx-gmean { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.aidx .aidx-gmean p { font-size: 13px; color: var(--muted); line-height: 1.6; }
/* 나의 행동 추천 */
.aidx-plan { display: grid; gap: 14px; padding-top: 6px; border-top: 3px solid var(--ink); }
.aidx-plan-top { display: grid; gap: 4px; }
.prose .aidx-plan-top h3 { margin: 0; font-size: 22px; }
.aidx .aidx-plan-top p { margin: 0; }
.aidx-plan-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.aidx-plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 6px; align-content: start; max-width: none; }
.aidx-plan-card.keep { background: var(--tint); }
.prose .aidx-plan-h { margin: 0 0 4px; font-weight: 700; font-size: 16.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.aidx-prio { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--paper); font-size: 13px; font-family: var(--f-mono); }
.aidx-plan-card.keep .aidx-prio { background: var(--good); }
.aidx .aidx-plan-card p { margin: 0; font-size: 14.5px; }
/* 그룹별 비교 */
.aidx-cmp-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.prose .aidx-cmp-lead { margin: 0; font-size: 16px; line-height: 1.7; }
.aidx-cmp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.aidx-cmp-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.aidx .aidx-cmp-card p { margin: 0; }
.aidx-cmp-name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.aidx-cmp-total { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.aidx-cmp-total small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.aidx-sig { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
@media (max-width: 420px) { .aidx-tabs button { font-size: 13.5px; padding: 10px 4px; } }
.aidx-dl { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.aidx-dl .aidx-btn { font-size: 14px; padding: 8px 16px; }
.page-badge { display: inline-block; vertical-align: .55em; margin-left: .35em; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; line-height: 1; padding: 5px 8px; border-radius: 5px; border: 1.5px solid #e0312b; color: #e0312b; }
.title-row .page-badge { margin-right: .1em; }
.aidx-meta li.beta, .badge.beta { color: #e0312b; background: color-mix(in srgb, #e0312b 10%, transparent); font-weight: 600; }
/* 휴대폰: 긴 낱말·코드가 화면 밖으로 밀리지 않게 */
.aidx, .aidx * { min-width: 0; }
.aidx p, .aidx li, .aidx dd, .aidx strong { overflow-wrap: anywhere; }
.aidx-ts { display: none; }
@media (max-width: 480px) { .aidx-tl { display: none; } .aidx-ts { display: inline; } .aidx-tabs button { font-size: 14.5px; } }

/* AX 전환 준비도 진단 (in-progress/ax-readiness, assets/js/ax-readiness.js). 나머지 모양은 .aidx-* 를 그대로 쓴다. */
.prose .axr-pagehead { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.axr-has-unk { grid-template-columns: auto auto auto auto; }
.axr-unk { cursor: pointer; }
.axr-unk span { display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; transition: border-color .12s, background .12s; }
.axr-unk:hover span { border-color: var(--accent); color: var(--accent); }
.axr-unk input:checked + span { background: var(--muted); border-color: var(--muted); border-style: solid; color: var(--paper); }
@media (max-width: 760px) {
  .axr-has-unk { grid-template-columns: 1fr 1fr; }
  .axr-unk { grid-column: 1 / -1; justify-self: center; }
}
.axr-stairs-box { margin-top: 10px; background: var(--paper); border-radius: 10px; padding: 8px 8px 0; }
.axr-stairs { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.axr-step { fill: var(--tint); stroke: var(--line); stroke-width: 1; }
.axr-step.on { fill: var(--accent); stroke: var(--accent); }
.axr-step.next { fill: var(--paper); stroke: var(--warn); stroke-width: 2; stroke-dasharray: 5 4; }
.axr-snum { fill: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.axr-sname { fill: var(--ink); font-size: 13px; font-weight: 600; }
.axr-sicon { font-size: 18px; }
.axr-base { stroke: var(--muted); stroke-width: 1.5; }
.axr-bars { margin-bottom: 14px; }
.axr .aidx-rrow { grid-template-columns: 128px 1fr 36px 76px; }
@media (max-width: 760px) { .axr .aidx-rrow { grid-template-columns: 104px 1fr 30px 64px; } }
/* 나와 다른 응답자의 인식 차이: 가운데 0을 기준으로 좌우로 뻗는 막대 */
.axr-lvlegend { margin: 6px 0 10px; padding: 10px 14px; background: var(--tint); border-radius: 8px; font-size: 13.5px; }
.axr-lvlegend p { margin: 0 0 6px; } .axr-lvlegend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.axr-lvlegend li .aidx-lv { margin-right: 6px; }
.axr-colhelp { font-size: 13px; color: var(--muted); margin: 0 0 10px; } .axr-colhelp li { margin: 2px 0; }
.axr-rolegap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.axr-rolewhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.axr-rolewho { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--paper); }
.axr-rolewho.mine { border-color: var(--accent); background: var(--accent-soft); }
.axr-rolewho-h { font-weight: 700; margin: 0 0 6px; font-size: 14.5px; }
.axr-metag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--paper); background: var(--accent); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.axr-together { margin: 2px 0 0; }
.axr-pair { display: grid; gap: 12px; }
.axr-prow { display: grid; grid-template-columns: 112px 1fr 150px; gap: 10px; align-items: center; font-size: 14px; }
.axr-pname { font-weight: 600; }
.axr-ptracks { position: relative; display: grid; gap: 3px; }
.axr-ptrack { position: relative; display: block; height: 12px; background: var(--tint); border-radius: 3px; }
.axr-ptrack > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.axr-ptrack.me > span { background: var(--series-1); } .axr-ptrack.ot > span { background: color-mix(in srgb, var(--muted) 45%, var(--paper)); }
.axr-ptrack b { position: absolute; right: -30px; top: -3px; font-size: 12px; font-weight: 600; color: var(--ink); width: 26px; text-align: left; }
.axr-pcut { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dashed var(--muted); z-index: 1; }
.axr-ptracks { margin-right: 30px; }
.axr-psay { font-size: 13px; color: var(--muted); }
.axr-prow.lo .axr-psay { color: var(--warn); font-weight: 600; } .axr-prow.hi .axr-psay { color: var(--accent); font-weight: 600; }
.axr-plegend { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.axr-plegend span { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.axr-plegend span.me { background: var(--series-1); margin-left: 0; } .axr-plegend span.ot { background: color-mix(in srgb, var(--muted) 45%, var(--paper)); }
@media (max-width: 560px) { .axr-prow { grid-template-columns: 88px 1fr; } .axr-psay { grid-column: 2; } }
.axr-div { display: grid; gap: 10px; }
.axr-drow { display: grid; grid-template-columns: 112px 1fr 40px 84px; gap: 10px; align-items: center; font-size: 14px; }
.axr-dname { font-weight: 500; }
.axr-dtrack { position: relative; height: 18px; border-radius: 4px; background: var(--tint); }
.axr-dzero { position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1.5px solid var(--muted); opacity: .7; }
.axr-dbar { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--series-1) 45%, var(--paper)); }
.axr-drow.hi .axr-dbar { background: var(--series-1); }
.axr-drow.lo .axr-dbar { background: var(--warn); }
.axr-dval { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.axr-dtag { font-size: 12px; font-weight: 600; color: var(--muted); }
.axr-drow.hi .axr-dtag { color: var(--series-1); } .axr-drow.lo .axr-dtag { color: var(--warn); }
.axr-daxis { font-size: 11.5px; color: var(--muted); }
.axr-daxis-in { display: flex; justify-content: space-between; }
.axr-daxis-in i { font-style: normal; }
.axr-dist { display: grid; gap: 8px; }
.axr-distrow { display: grid; grid-template-columns: 150px 1fr 88px; gap: 10px; align-items: center; font-size: 13.5px; }
.axr-distval { white-space: nowrap; text-align: right; }
.axr-distrow b { font-size: 11px; color: var(--paper); background: var(--accent); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.axr-disttrack { height: 14px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.axr-disttrack span { display: block; height: 100%; background: color-mix(in srgb, var(--series-1) 40%, var(--paper)); }
.axr-distrow.me .axr-disttrack span { background: var(--accent); }
.axr-distval { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.axr-steps { padding-left: 1.3em; }
@media (max-width: 760px) {
  .axr-drow { grid-template-columns: 92px 1fr 34px 70px; gap: 6px; font-size: 13px; }
  .axr-distrow { grid-template-columns: 120px 1fr 34px; }
}
/* 나와 우리학교 AI 역량 수준 진단: 결과 탭 다섯 개(크기 고정), 비교 상자, 우선순위 카드 */
.aidx-tabs.aidx-tabs5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.aidx-tabs5 button { height: 52px; padding: 0 6px; display: grid; place-items: center; text-align: center; line-height: 1.3; white-space: normal; font-weight: 500; }
.aidx-tabs5 button[aria-selected="true"] { font-weight: 500; background: var(--accent-soft); }
@media (max-width: 480px) { .aidx-tabs5 button { height: 48px; padding: 0 2px; font-size: 13px; letter-spacing: -.03em; } }
.aidx-kpis.aidx-fixed .kpi { min-height: 116px; }
.aidx-cmp3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aidx-cmpbox { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 108px; display: grid; align-content: start; gap: 2px; }
.aidx .aidx-cmpbox p { margin: 0; }
.prose .aidx-cmpk { font-size: 13px; color: var(--muted); }
.prose .aidx-cmpv { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.aidx-cmpv small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.aidx-cmpv.up { color: var(--good); } .aidx-cmpv.down { color: var(--warn); }
@media (max-width: 640px) { .aidx-cmp3 { grid-template-columns: 1fr; } .aidx-cmpbox { min-height: 0; } }
.aidx .aidx-muted.up { color: var(--good); } .aidx .aidx-muted.down { color: var(--warn); }
.aidx-prio3, .aidx-prio5 { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aidx-prio3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aidx-prio5 { grid-template-columns: 1fr; }
@media (max-width: 860px) { .aidx-prio3 { grid-template-columns: 1fr; } }
.aidx-prio-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; max-width: none; }
.aidx-prio5 .aidx-prio-card { grid-template-columns: minmax(150px, 200px) 1fr; column-gap: 16px; align-items: start; }
.aidx-prio5 .aidx-prio-card > :not(.aidx-plan-h) { grid-column: 2; }
.aidx-prio5 .aidx-plan-h { grid-row: 1 / span 2; }
@media (max-width: 640px) { .aidx-prio5 .aidx-prio-card { grid-template-columns: 1fr; } .aidx-prio5 .aidx-prio-card > * { grid-column: 1 !important; grid-row: auto !important; } }
.prose .aidx-prio-act { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.aidx-sw3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .aidx-sw3 { grid-template-columns: 1fr; } }
.aidx-swcard:not(.good):not(.warn) { border: 1px solid var(--line); background: var(--tint); }
.prose .aidx-subh { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 19px; }
.aidx-school-bars .aidx-hrow { grid-template-columns: 90px 1fr 100px; }
.aidx-school-bars .aidx-htrack { position: relative; height: 18px; overflow: visible; }
.aidx-school-bars .aidx-htrack span { background: color-mix(in srgb, var(--series-1) 45%, var(--paper)); }
.aidx-school-bars .aidx-htrack i { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dashed var(--ink); opacity: .5; }
.aidx-school-bars .is-mine .aidx-hname { font-weight: 700; color: var(--accent); }
.aidx-school-bars .is-mine .aidx-htrack span { background: var(--accent); }
.aidx-table tr.aidx-mine-row td { background: var(--accent-soft); font-weight: 600; }

/* A4 결과지: 화면과 독립된 복사본. 휴대폰·다크 모드에서도 같은 출력 크기를 쓴다. */
.diagnosis-pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.diagnosis-pdf-status { flex-basis: 100%; }
.diagnosis-pdf-host {
  position: fixed; left: -20000px; top: 0; width: 720px; padding: 0;
  background: #fff; color: #16202b; color-scheme: light; pointer-events: none;
  --ink: #16202b; --muted: #5a6573; --paper: #fff; --tint: #f3f5f8;
  --line: #dde2e8; --accent: #1d4f86; --accent-soft: #e6edf6;
  --series-1: #2a78d6; --series-2: #eb6834; --good: #1a7f37; --warn: #b54708;
  font-size: 15px; line-height: 1.7; max-width: none;
}
.diagnosis-pdf-host {
  font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  color: #111; --ink: #111; --muted: #555; --accent: #222; --accent-soft: #eceef1;
  --series-1: #1f2a37; --series-2: #9aa0a8; --good: #333; --warn: #555;
  font-size: 14.5px; line-height: 1.85;
}
.diagnosis-pdf-report.aidx { display: grid; gap: 18px; width: 720px; margin: 0; }
.diagnosis-pdf-host .diagnosis-pdf-heading { border-top: 3.2px solid #111; padding-top: 24px; text-align: center; }
.diagnosis-pdf-host .diagnosis-pdf-heading h1 {
  font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: #222; font-size: 25px; font-weight: 700; line-height: 1.45; margin: 0 0 12px;
}
.diagnosis-pdf-host .dr-beta {
  display: inline-block; vertical-align: 4px; margin-left: 8px; padding: 0 6px;
  color: #333; border: 1.2px solid #333; border-radius: 3px;
  font-size: 10px; line-height: 1.7; letter-spacing: .08em;
}
.diagnosis-pdf-host .diagnosis-pdf-meta {
  font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  margin: 0; padding-bottom: 15px; border-bottom: 1px solid #222; font-size: 12.5px; color: #444;
}
.diagnosis-pdf-host .dr-date { margin: 10px 0 0; text-align: right; font-size: 12px; color: #444; }
.diagnosis-pdf-host .dr-section { display: grid; gap: 7px; }
.diagnosis-pdf-host .dr-section-title {
  margin: 9px 0 7px; padding: 0 0 7px; border-bottom: 1px solid #222;
  font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 18px; font-weight: 700; color: #111; line-height: 1.5;
}
.diagnosis-pdf-host .dr-subtitle {
  font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: #222; font-size: 14.5px; font-weight: 700; line-height: 1.6; margin: 9px 0 2px;
}
.diagnosis-pdf-host .dr-paragraph { font-size: 14.5px; line-height: 1.85; margin: 0; }
.diagnosis-pdf-host .dr-square { padding-left: 1.2em; text-indent: -1.2em; }
.diagnosis-pdf-host .dr-square::before { content: "□ "; }
.diagnosis-pdf-host .dr-circle { padding-left: 2.4em; text-indent: -1.2em; }
.diagnosis-pdf-host .dr-circle::before { content: "○ "; }
.diagnosis-pdf-host .dr-dash { padding-left: 3.4em; text-indent: -1em; }
.diagnosis-pdf-host .dr-dash::before { content: "- "; }
.diagnosis-pdf-host .dr-note { color: #555; font-size: 12px; padding-left: 1.4em; }
.diagnosis-pdf-host .dr-item { display: grid; gap: 4px; margin: 5px 0; }
.diagnosis-pdf-host .dr-item > .dr-square { margin-bottom: 3px; }
.diagnosis-pdf-host .dr-caption, .diagnosis-pdf-host figcaption {
  text-align: center; font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 12.5px; font-weight: 600; color: #333; margin: 8px 0 5px;
}
.diagnosis-pdf-host .dr-table-block { margin: 6px 0; }
.diagnosis-pdf-host .dr-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 12.5px; line-height: 1.65; }
.diagnosis-pdf-host .dr-table th, .diagnosis-pdf-host .dr-table td {
  border: 0; border-bottom: 1px solid #bbb; padding: 7px 9px;
  white-space: normal; overflow-wrap: anywhere; color: #222; text-align: center;
}
.diagnosis-pdf-host .dr-table th {
  background: #e9ebee; border-top: 1.6px solid #111; border-bottom: 1px solid #999;
  font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif; font-weight: 600;
}
.diagnosis-pdf-host .dr-table th + th, .diagnosis-pdf-host .dr-table td + td { border-left: 1px solid #bbb; }
.diagnosis-pdf-host .dr-table td:first-child { text-align: center; font-weight: 600; background: #f6f7f8; font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif; }
.diagnosis-pdf-host .dr-definition-table td:first-child { width: 24%; }
.diagnosis-pdf-host .dr-table tr:last-child td { border-bottom: 1.6px solid #111; }
.diagnosis-pdf-host .dr-figure { margin: 10px auto; padding: 0; width: 620px; max-width: 100%; }
.diagnosis-pdf-host .dr-figure > * { max-width: 100%; }
.diagnosis-pdf-host .dr-figure svg { width: 100%; max-height: 440px; }
.diagnosis-pdf-host .dr-legend, .diagnosis-pdf-host .dr-figure {
  font-family: Pretendard, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
}
.diagnosis-pdf-host .dr-report-note { margin-top: 18px; padding-top: 10px; border-top: 1px solid #999; }
.diagnosis-pdf-host .dr-report-note p { font-size: 11.5px; color: #555; margin: 2px 0; line-height: 1.7; }
.diagnosis-pdf-host .aidx-hrow { grid-template-columns: 120px 1fr 86px; }
.diagnosis-pdf-host .aidx-srow { grid-template-columns: 104px 1fr; }
.diagnosis-pdf-host .axr-stairs { min-width: 0; }
.diagnosis-pdf-host .axr-stairs-box { overflow: visible; }
.diagnosis-pdf-host * { animation: none !important; transition: none !important; }

/* Weekly Insight: DrS / Lab 탭 */
.daily-hero .insight-tabs { margin: 14px 0 4px; }

/* Mobile menu overlay: full-viewport layer independent of scroll position.
   The nav is portaled to body by nav.js to avoid sticky/transform stacking contexts. */
@media (max-width: 860px) {
  html.nav-open .site-header {
    position: fixed !important; top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: auto !important; width: 100%;
    z-index: 2147483647 !important; isolation: auto;
    background: var(--paper);
  }
  html.nav-open body > #site-nav.open {
    position: fixed !important; top: var(--mobile-header-height, 60px) !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: calc(100dvh - var(--mobile-header-height, 60px)) !important;
    max-height: none !important; margin: 0 !important;
    padding: 12px 20px max(32px, env(safe-area-inset-bottom)) !important;
    display: block !important; overflow-y: auto !important; overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: var(--paper) !important; opacity: 1 !important;
    visibility: visible !important; transform: none !important;
    animation: none !important; box-shadow: none !important;
    border: 0 !important; z-index: 2147483646 !important;
  }
  html.nav-open main, html.nav-open .site-footer { filter: none !important; }
  html.nav-open, html.nav-open body { overflow: hidden; }
}

/* ---- Research help ---- */
.page--research-practice .page-head--menu { gap: 6px; margin-bottom: 22px; }
.page--research-practice .page-head--menu h1 { font-size: clamp(22px, 2.8vw, 26px); line-height: 1.4; }
.page--research-practice .page-head--menu .lede { font-size: 14px; line-height: 1.65; max-width: none; }
.page--research-practice .tabs { gap: 5px; margin-bottom: 20px; }
.page--research-practice .tabs a { font-size: 13.5px; padding: 5px 12px; }
.page--research-practice .rh-motto { margin-bottom: 14px; padding: 10px 14px; font-size: clamp(14px, 1.5vw, 16px); }
.page--research-practice .rh-admin-entry { margin-bottom: 10px; font-size: 13px; }
.page--research-practice .rh-intro { padding: 4px 0 24px; }
.page--research-practice .rhg { max-width: none; font-size: 14px; line-height: 1.65; }
.page--research-practice .rhg p { margin: 6px 0 10px; }
.page--research-practice .rhg h3 { margin: 22px 0 10px; font-size: 19px; line-height: 1.45; }
.page--research-practice .rhg h4 { margin: 16px 0 6px; font-size: 15px; line-height: 1.5; }
.page--research-practice .rhg .rhb-flow { width: min(100%, 840px); margin: 14px auto 18px; gap: 8px; }
.page--research-practice .rhg .rhb-flow li { grid-template-columns: 24px 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 18px; font-size: 13.5px; }
.page--research-practice .rhg .rhb-flow span { font-size: 13px; }
@media (max-width: 620px) {
  .page--research-practice .rhg .rhb-flow li { grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; padding: 10px 14px; }
  .page--research-practice .rhg .rhb-flow span { grid-column: 2; }
}
.page--research-practice .rh-intro-start { margin-top: 22px; }
.page--research-practice .rh-intro-go { padding: 10px 22px; font-size: 15px; }
.page--research-practice #research-help.rh { gap: 14px; font-size: 14px; line-height: 1.65; }
.page--research-practice #research-help .rh-grid { gap: 10px; }
.page--research-practice #research-help .rh-row { gap: 10px; padding: 12px 0; }
.page--research-practice #research-help .rh-mine { gap: 4px; }
.page--research-practice #research-help label,
.page--research-practice #research-help .rh-mine h3 { font-size: 14px; }
.page--research-practice #research-help .rh-revision-guide,
.page--research-practice #research-help .rh-comments { padding: 12px 14px; font-size: 14px; }
.page--research-practice #research-help .rh-final-plan { padding: 22px; }
.page--research-practice #research-help .rh-final-plan .rh-final-title { font-size: 22px; }
.page--research-practice #research-help .rh-final-plan h3 { margin: 22px 0 10px; font-size: 18px; }
.page--research-practice #research-help .rh-final-plan h4 { margin: 16px 0 8px; font-size: 15px; }
.page--research-practice #research-help .rh-final-plan p.rh-final-text { line-height: 1.7; }
@media (max-width: 600px) {
  .page--research-practice .page-head--menu h1 { font-size: 22px; }
  .page--research-practice .rhg h3 { font-size: 18px; }
  .page--research-practice #research-help .rh-final-plan { padding: 16px 14px; }
}
.rh { display: grid; gap: 18px; max-width: 100%; }
.rh[hidden] { display: none; }
.rh-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rh-steps li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.rh-steps li.is-done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.rh-steps li.is-current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.rh-notice { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--tint); font-size: 13.5px; color: var(--muted); }
.rh-consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
.rh-consent input { margin-top: 5px; accent-color: var(--accent); }
.rh .rh-consent { font-weight: 400; font-size: 14px; }
.rh-name { display: grid; gap: 6px; max-width: 320px; }
.rh label, .rh-mine h3 { font-weight: 600; font-size: 15px; margin: 0; }
.rh input[type="text"], .rh input[type="password"], .rh textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; line-height: 1.65;
}
.rh textarea { resize: vertical; }
.rh textarea[readonly], .rh input[readonly] { background: var(--tint); }
.rh input:focus-visible, .rh textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rh-grid { display: grid; gap: 14px; }
.rh-grid-head { display: none; }
.rh-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--line); }
.rh-mine { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rh-hint, .rh-count, .rh-small { color: var(--muted); font-size: 13px; }
.rh-count { justify-self: end; font-family: var(--f-mono); font-size: 12px; }
.rh-revision-guide { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 14.5px; }
.rh-final-plan { width: 100%; max-width: 900px; margin: 12px auto; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 4px; }
.rh-final-plan .rh-final-kicker { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.rh-final-plan .rh-final-title { text-align: center; font-size: 25px; line-height: 1.5; margin: 0 0 14px; overflow-wrap: anywhere; }
.rh-final-plan .rh-final-meta { text-align: center; color: var(--muted); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rh-final-plan h3 { margin: 28px 0 12px; font-size: 20px; }
.rh-final-plan h4 { margin: 20px 0 10px; font-size: 16px; }
.rh-final-plan p.rh-final-text { white-space: pre-wrap; overflow-wrap: anywhere; text-indent: 1em; margin: 0 0 12px; line-height: 1.9; }
.rh-final-plan .rh-final-ref { padding-left: 2em; text-indent: -2em; overflow-wrap: anywhere; }
.rh-final-plan figure { margin: 16px 0; text-align: center; }
.rh-final-plan figure img { max-width: 100%; max-height: 520px; object-fit: contain; }
.rh-saved-editor { min-width: 0; }
.rh-saved-editor > summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) { .rh-final-plan { padding: 18px 14px; } .rh-final-plan .rh-final-title { font-size: 21px; } }
.rh-text { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.rh-comments { min-width: 0; padding: 14px 16px; border-radius: 8px; background: var(--tint); border: 1px solid var(--line); font-size: 14.5px; }
.rh-comments-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.rh-comments-head strong { color: var(--accent); }
.rh-ai-badge, .rh-checks { margin: 0 0 12px; }
.rh-checks dt { font-weight: 600; margin-top: 10px; }
.rh-checks dt::before { content: '✓ '; color: var(--accent); }
.rh-checks dd { margin: 4px 0 0 18px; }
.rh-withheld { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--accent-soft); color: var(--accent); }
.rh-withheld { background: transparent; border: 1px solid var(--muted); color: var(--muted); margin-bottom: 4px; }
.rh-comment p, .rh-comment li { overflow-wrap: anywhere; }
.rh-critic { margin: 0 0 18px; }
.rh-critic-summary { margin: 4px 0 12px; }
.rh-critic-card { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 8px; background: var(--paper); }
.rh-critic-card h4 { margin: 0 0 8px; font-size: 15px; }
.rh-critic-card.is-critical { border-left-color: #c92d28; }
.rh-critic-card.is-major { border-left-color: #b54708; }
.rh-critic-card.is-minor { border-left-color: var(--accent); }
.rh-critic-card.is-sound { border-left-color: #1a7f37; }
.rh-sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--muted); }
.rh-quote { color: var(--muted); font-size: 13.5px; }
.rh-comment p { margin: 0 0 8px; }
.rh-comment ol, .rh-comment ul { margin: 0 0 8px; padding-left: 1.3em; }
.rh-sources { font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; }
.rh-sources li { margin-bottom: 6px; }
.rh-scope { display: block; color: var(--muted); font-size: 12.5px; }
.rh-earlier { margin-top: 8px; font-size: 13.5px; }
.rh-earlier summary { cursor: pointer; color: var(--muted); }
.rh-note { margin: 0; font-size: 13px; color: var(--muted); }
.rh-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.rh-btn { min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 8px; background: var(--paper); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.rh-btn.primary { background: var(--accent); color: #fff; }
.rh-btn:disabled { opacity: .55; cursor: default; }
.rh-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.rh-status { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); }
.rh-status.is-error { background: #fdecec; color: #8a1c1c; }
.rh-status.is-empty { display: none; }
.rh-done { margin: 0; font-weight: 600; color: var(--accent); }
.rh-login { display: grid; gap: 10px; max-width: 320px; }
.rh-intro { padding: 8px 0 48px; }
.rh-intro-start { text-align: center; margin: 36px 0 0; }
.rh-motto { margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); text-align: center;
  font-size: clamp(14px, 1.75vw, 19px); font-weight: 600; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) { .rh-motto { white-space: normal; word-break: keep-all; } }
.rhg { max-width: 860px; }
.rhg h3 { margin-top: 30px; }
.rhb-flow { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; counter-reset: rhb; }
.rhb-flow li { counter-increment: rhb; display: grid; grid-template-columns: 28px 120px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.rhb-flow li::before { content: counter(rhb); font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.rhb-flow span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .rhb-flow li { grid-template-columns: 22px minmax(0, 1fr); } .rhb-flow span { grid-column: 2; } }
.rh-intro[hidden] { display: none; }
.rh-intro-msg { font-size: clamp(19px, 2.6vw, 26px); font-weight: 600; line-height: 1.7; margin: 0 0 32px; word-break: keep-all; }
.rh-intro-go { display: inline-flex; align-items: center; text-decoration: none; padding: 12px 28px; font-size: 17px; }
.rh-admin-entry { text-align: right; margin: 0 0 16px; font-size: 14px; }
.rh-admin-entry a { display: inline-flex; align-items: center; text-decoration: none; }
.rh-admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.rh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rh-list li { display: flex; align-items: stretch; gap: 8px; }
.rh-list-item { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.rh-list-download { flex: none; }
.rh-list-item span { color: var(--muted); font-size: 13px; }
.rh-list-item:hover { border-color: var(--accent); }
@media (max-width: 600px) { .rh-list li { flex-direction: column; } }
.rh-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-tabs button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.rh-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 860px) {
  .rh-grid.has-comments .rh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rh-grid.has-comments .rh-grid-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
}
@media (prefers-color-scheme: dark) {
  .rh-status.is-error { background: #3a1d1d; color: #f3b4b4; }
}

/* Research help: 연구 모형 그림 넣기(붙여넣기·끌어다 놓기·파일 선택) */
.rh-drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; background: var(--tint); display: grid; gap: 10px; justify-items: start; }
.rh-drop p { margin: 0; font-size: 13.5px; color: var(--muted); }
.rh-drop img { display: block; max-width: 100%; max-height: 420px; height: auto; border-radius: 6px; background: #fff; }
.rh-drop.has-image { border-style: solid; background: var(--paper); }
.rh-drop.is-locked { border-color: var(--line); }
.rh-drop-actions { display: flex; gap: 14px; }
.rh-mine.is-dragging .rh-drop, .rh-drop:hover { border-color: var(--accent); }
.rh-file { display: none; }

/* Mobile touch stability: prevent inherited desktop hover scaling and sticky hover states. */
@media (max-width: 860px) {
  html.nav-open body > #site-nav.open .nav-item > a,
  html.nav-open body > #site-nav.open .nav-item > a:hover,
  html.nav-open body > #site-nav.open .nav-item > a:active,
  html.nav-open body > #site-nav.open .nav-item > a:focus {
    transform: none !important;
    scale: 1 !important;
    transition: color .15s ease, background-color .15s ease !important;
  }
  html.nav-open body > #site-nav.open .submenu a {
    transform: none !important;
    scale: 1 !important;
    -webkit-tap-highlight-color: transparent;
  }
  html.nav-open body > #site-nav.open .submenu a:active {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
  }
}

/* iOS Safari: :hover/:focus-within must not override the mobile flex submenu with display:block. */
@media (max-width: 860px) {
  html.nav-open body > #site-nav.open .nav-item.has-children > .submenu,
  html.nav-open body > #site-nav.open .nav-item.has-children:hover > .submenu,
  html.nav-open body > #site-nav.open .nav-item.has-children:focus-within > .submenu {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start;
    align-content: flex-start;
    gap: 6px !important;
    width: 100%;
  }
  html.nav-open body > #site-nav.open .submenu > li {
    display: list-item;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100%;
  }
  html.nav-open body > #site-nav.open .submenu > li > a {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
  }
}

/* ---- 하위 메뉴 2단계(Research help → 기초·실습): 데스크톱은 오른쪽으로 펼치고, 모바일은 같은 줄의 버튼으로 이어 보인다 ---- */
.submenu .has-sub { position: relative; }
.submenu .has-sub > a::after { content: "›"; float: right; margin-left: 12px; color: var(--muted); }
.submenu-sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 100%; top: -9px;
  min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10, 20, 35, .08); display: none;
}
.submenu .has-sub:hover > .submenu-sub, .submenu .has-sub:focus-within > .submenu-sub { display: block; }
/* 모바일은 display:contents 대신(일부 iOS Safari에서 ul/li 기본 들여쓰기가 남는 버그가 있음) Conference·Research help를 제 줄로 두고
   그 아래에 하위 항목을 같은 모양의 알약 버튼으로 줄바꿈해 보여 준다. */
@media (max-width: 860px) {
  .submenu .has-sub > a::after { content: none; }
  html.nav-open body > #site-nav.open .submenu > li.has-sub {
    flex: 1 1 100% !important; width: 100% !important;
  }
  html.nav-open body > #site-nav.open .submenu-sub {
    display: flex !important; flex-wrap: wrap !important; gap: 6px !important;
    position: static !important; width: 100%; margin: 6px 0 0; padding: 0 !important;
    min-width: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
  }
  html.nav-open body > #site-nav.open .submenu-sub li {
    list-style: none; flex: 0 0 auto !important; width: auto !important; max-width: 100%;
  }
  html.nav-open body > #site-nav.open .submenu-sub a {
    display: inline-block !important; width: auto !important; max-width: 100%;
  }
}

/* 논문작성법(기초) */
/* The basics guide follows the compact type scale used in the intermediate guide. */
.page--research-basics .page-head--menu { gap: 6px; margin-bottom: 22px; }
.page--research-basics .page-head--menu h1 { font-size: clamp(22px, 2.8vw, 26px); line-height: 1.4; }
.page--research-basics .page-head--menu .lede { font-size: 14px; line-height: 1.65; max-width: none; }
.page--research-basics .tabs { gap: 5px; margin-bottom: 20px; }
.page--research-basics .tabs a { font-size: 13.5px; padding: 5px 12px; }
.rhb { max-width: none; font-size: 14px; line-height: 1.65; }
.rhb p { margin: 6px 0 10px; }
.rhb ul, .rhb ol { margin-block: 8px 12px; padding-left: 24px; }
.rhb li { margin-block: 3px; }
.rhb li > ul, .rhb li > ol { margin-block: 4px; }
.rhb h2 { font-size: 19px; line-height: 1.45; margin: 32px 0 12px; padding: 0 0 6px; border-bottom: 2px solid var(--ink); scroll-margin-top: 80px; }
.rhb h3 { font-size: 15.5px; line-height: 1.5; margin: 20px 0 8px; }
.rhb-toc { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); }
.rhb .rhb-toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; padding: 0; }
.rhb .rhb-toc p { margin: 0; color: var(--muted); font-size: 13px; }
.rhb .rhb-rule { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }
.rhb-rule strong { display: inline-block; margin-right: 8px; color: var(--accent); }
.rhb-table-wrap { overflow-x: auto; margin: 12px 0 16px; }
@media (max-width: 640px) { .rhb-table-wrap { position: relative; } .rhb-table-wrap::after { content: "옆으로 밀면 더 볼 수 있습니다."; display: block; padding: 4px 2px 0; font-size: 11.5px; color: var(--muted); text-align: right; } }
.rhb-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.rhb-table th, .rhb-table td { padding: 8px 10px; border: 1px solid var(--line); text-align: center; vertical-align: middle; }
.rhb-table thead th, .rhb-table tbody th { background: var(--tint); font-weight: 600; }
.rhb-fig { margin: 22px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: grid; gap: 10px; }
.rhb-fig figcaption { font-weight: 700; font-size: 14px; color: var(--accent); }
.rhb-fig { container-type: inline-size; }
.rhb-flowline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px 22px; }
.rhb-flowline > .rhb-node { position: relative; min-width: 0; }
.rhb-flowline > .rhb-node:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.rhb-node { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--accent-soft); text-align: center; }
.rhb-node b { font-size: 13.5px; }
.rhb-node span, .rhb-col span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rhb-node--wide { max-width: 520px; width: 100%; margin: 0 auto; }
.rhb-fig-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rhb-chip { flex: 1 1 200px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: 13.5px; background: var(--tint); }
.rhb-chip b { display: block; color: var(--ink); }
.rhb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rhb-col { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.rhb-down { text-align: center; color: var(--accent); font-weight: 700; font-size: 14px; }
.rhb-pairs { display: grid; gap: 6px; }
.rhb-pair { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 6px; align-items: center; }
.rhb-pair span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; }
.rhb-pair span:last-child { border-color: var(--accent); background: var(--accent-soft); }
.rhb-pair i { font-style: normal; text-align: center; color: var(--accent); font-weight: 700; }
.rhb-fig-note { margin: 0; font-size: 13px; color: var(--muted); }
@container (max-width: 600px) {
  .rhb-flowline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rhb-flowline > .rhb-node:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -20px; transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .rhb-flowline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rhb-flowline > .rhb-node:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -20px; transform: translateX(-50%); }
  .rhb-cols { grid-template-columns: minmax(0, 1fr); }
}
.rhb .rhb-def { margin: 10px 0 16px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 8px; line-height: 1.65; }
.rhb-def strong { display: block; margin-bottom: 4px; color: var(--accent); }
.rhb-def b { color: var(--accent); }
.rhb-theory-model { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 96px minmax(0, 1fr); gap: 8px 6px; align-items: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: 10px; }
.rhb-theory { grid-column: 1 / -1; display: grid; gap: 2px; padding: 14px; border-radius: 8px; background: var(--accent); color: #fff; text-align: center; }
.rhb-theory b { font-size: 14.5px; }
.rhb-theory span { font-size: 13px; opacity: .9; }
.rhb-tm-link { display: grid; justify-items: center; gap: 0; color: var(--accent); }
.rhb-tm-link i { font-style: normal; font-weight: 700; font-size: 20px; line-height: 1; }
.rhb-tm-link span { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.35; }
.rhb-tm-link--1 { grid-column: 2; grid-row: 2; }
.rhb-tm-link--2 { grid-column: 4; grid-row: 2; }
.rhb-tm-c1 { grid-column: 1; grid-row: 3; } .rhb-tm-r1 { grid-column: 2; grid-row: 3; }
.rhb-tm-c2 { grid-column: 3; grid-row: 3; } .rhb-tm-r2 { grid-column: 4; grid-row: 3; }
.rhb-tm-c3 { grid-column: 5; grid-row: 3; }
.rhb-tm-rel { display: grid; justify-items: center; color: var(--accent); font-weight: 700; }
.rhb-tm-rel span { font-size: 12px; padding: 1px 8px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--accent-soft); }
.rhb-tm-rel i { font-style: normal; font-size: 22px; line-height: 1.1; }
.rhb-theory-model .rhb-lens-model { grid-column: 1 / -1; grid-row: 4; }
.rhb-lens-model { margin: 0; text-align: center; font-size: 13px; font-weight: 600; }
@container (max-width: 520px) {
  .rhb-theory-model { grid-template-columns: minmax(0, 1fr); }
  .rhb-theory-model > * { grid-column: 1 !important; grid-row: auto !important; }
  .rhb-tm-link { display: none; }
  .rhb-tm-rel i { transform: rotate(90deg); }
  .rhb-tm-rel span::after { content: " · 이론적 틀에 근거"; font-weight: 500; }
}
@media (max-width: 640px) {
  .rhb-theory-model { grid-template-columns: minmax(0, 1fr); }
  .rhb-theory-model > * { grid-column: 1 !important; grid-row: auto !important; }
  .rhb-tm-link { display: none; }
  .rhb-tm-rel i { transform: rotate(90deg); }
  .rhb-tm-rel span::after { content: " · 이론적 틀에 근거"; font-weight: 500; }
}
.rhb-key {
  padding: .05em .25em; border-radius: 4px; color: inherit; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(110deg, #fff1a8 0%, #ffe066 35%, #fffdf0 50%, #ffe066 65%, #fff1a8 100%); background-size: 300% 100%;
  animation: rhb-shine 3.6s ease-in-out infinite;
}
@keyframes rhb-shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@media (prefers-color-scheme: dark) {
  .rhb-key { color: #fff8d6; background-image: linear-gradient(110deg, #5c4a00 0%, #7a6200 35%, #b39200 50%, #7a6200 65%, #5c4a00 100%); }
}
@media (prefers-reduced-motion: reduce) { .rhb-key { animation: none; background-position: 50% 0; } }
.rhb .rhb-cta { margin-top: 26px; }
.rhb-cta .rh-btn { display: inline-block; text-decoration: none; }

@media (max-width: 600px) {
  .page--research-basics .page-head--menu h1 { font-size: 22px; }
  .rhb h2 { font-size: 18px; margin-top: 26px; }
  .rhb-fig { padding: 12px; }
}

/* 논문작성법(기초) 퀴즈 */
.rhq { margin-top: 64px; padding: 24px; border: 2px solid var(--accent); border-radius: 12px; display: grid; gap: 14px; }
.rhq > h2 { margin: 0; border: 0; padding: 0; }
.rhq > p { margin: 0; }
.rhq-start { justify-self: start; }
.rhq-form { display: grid; gap: 14px; }
.rhq-guide { margin: 0; color: var(--muted); }
.rhq-name { display: grid; gap: 6px; max-width: 320px; }
.rhq-name label { font-weight: 600; }
.rhq-name input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.rhq-ch { margin: 18px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--accent); }
.rhq-q { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.rhq-q legend { padding: 0 4px; font-weight: 600; line-height: 1.6; }
.rhq-opts { display: grid; gap: 6px; margin-top: 8px; }
.rhq-opts label { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 6px; cursor: pointer; line-height: 1.55; }
.rhq-opts label:hover { background: var(--tint); }
.rhq-opts input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.rhq-actions { display: flex; gap: 10px; margin-top: 6px; }
.rhq-score { display: grid; gap: 4px; padding: 18px 20px; border-radius: 10px; }
.rhq-score.is-pass { background: #e8f5ec; color: #14532d; }
.rhq-score.is-fail { background: #fdecec; color: #7f1d1d; }
.rhq-score strong { font-size: 18px; }
.rhq-verdict { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.rhq-review { padding: 12px 14px; border-left: 3px solid #c2410c; background: var(--tint); border-radius: 0 8px 8px 0; display: grid; gap: 4px; }
.rhq-review.is-ok { border-left-color: #15803d; }
.rhq-review p { margin: 0; line-height: 1.65; }
.rhq-tag { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 400; }
.rhq-mine { color: #b91c1c; }
.rhq-answer { color: #15803d; font-weight: 600; }
.rhq-explain { color: var(--ink); font-size: 14.5px; }
.rhq-right { display: grid; gap: 8px; }
.rhq-right summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }
.rhq-admin-link { font-size: 13px; text-align: right; }
.rhq-wait { margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--accent-soft); line-height: 1.7; }
.rhq-wait strong { color: var(--accent); }
.rhq-table td.rhq-pass { color: #15803d; font-weight: 700; }
.rhq-table td.rhq-fail { color: #b91c1c; font-weight: 700; }
.rhq-table td.rhq-wrong { text-align: left; font-size: 13px; }
@media (prefers-color-scheme: dark) {
  .rhq-score.is-pass { background: #12301d; color: #bbf7d0; }
  .rhq-score.is-fail { background: #3a1d1d; color: #fecaca; }
  .rhq-mine { color: #fca5a5; } .rhq-answer { color: #86efac; }
}

/* Compact quiz spacing on the basics guide. */
.rhb .rhq { margin-top: 32px; padding: 18px; gap: 10px; }
.rhb .rhq > h2 { margin: 0; padding: 0; border: 0; }
.rhb .rhq > p { margin: 0; }
.rhb .rhq-form { gap: 10px; }
.rhb .rhq-ch { margin: 14px 0 0; font-size: 15px; }
.rhb .rhq-q { padding: 10px 12px; }
.rhb .rhq-score strong { font-size: 16px; }
.rhb .rhq-verdict { font-size: 22px; }
.rhb .rhq-explain { font-size: 14px; }
.rhb .rh-btn { font-size: 14px; }

/* 구성원 카드: 이름 옆 개인 홈페이지(집 아이콘) */
.member-home { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 6px; vertical-align: -5px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.member-home:hover, .member-home:focus-visible { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* Alumni 강조(음영) */
.alumni li.alumni-hl { padding-inline: 10px; border-radius: 6px; background: var(--accent-soft); border-bottom-color: transparent; }
.alumni li.alumni-hl strong { color: var(--accent); }

/* Lab Insight PDF and author attribution */
.insight-pdf-link { display:inline-block; margin: 8px 0 8px 14px; padding: 7px 12px; border:1px solid var(--accent); border-radius:999px; color:var(--accent); font-size:13px; font-weight:600; text-decoration:none; vertical-align:middle; white-space:nowrap; }
.insight-pdf-link:hover { background:var(--accent); color:var(--paper); }
.daily-issue-author { display:inline-block; margin:4px 0 12px; padding:8px 12px; border-left:3px solid var(--accent); border-radius:6px; background:#eaf0f7; color:#183b5b; font-size:15px; font-weight:700; line-height:1.5; }
@media(max-width:600px) { .insight-pdf-link { margin-left:0; } }
.study-first-figure { max-width:900px; margin:28px auto; }
.study-first-figure svg { display:block; width:100%; height:auto; }
.study-first-figure figcaption { margin-top:9px; color:var(--muted); font-size:13px; line-height:1.6; }

.daily-issue.has-pdf .title-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; column-gap:14px; }
.daily-issue.has-pdf .title-row h1 { grid-column:1; min-width:0; margin:0; }
.daily-issue.has-pdf .title-row .insight-pdf-link { grid-column:2; margin:0; }
.daily-issue.has-pdf .title-row .share { grid-column:3; }
@media(max-width:760px) { .daily-issue.has-pdf .title-row { grid-template-columns:minmax(0,1fr) auto; row-gap:8px; } .daily-issue.has-pdf .title-row h1 { grid-column:1 / -1; } .daily-issue.has-pdf .title-row .insight-pdf-link { grid-column:1; justify-self:start; } .daily-issue.has-pdf .title-row .share { grid-column:2; justify-self:end; } }

/* 논문작성법(기초): 다섯 장 도식과 접이식 장 */
.rhb-map { margin: 8px 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.rhb-foundations { margin-bottom: 22px; }
.rhb .rhb-foundations > p:first-of-type { margin: -4px 0 14px; font-size: 13.5px; line-height: 1.65; }
.rhb-foundation-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.rhb-foundation-chain li { position: relative; min-width: 0; }
.rhb-foundation-chain li > a { display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 13px 14px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s, background-color .15s; }
.rhb-foundation-chain li:hover > a, .rhb-foundation-chain li:focus-within > a { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.14); transform: translateY(-2px); }
.rhb-foundation-chain li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 40%; width: 18px; text-align: center; font-size: 20px; font-weight: 700; color: var(--accent); }
.rhb-foundation-chain .rhb-no { font-size: 11px; }
.rhb-foundation-chain strong { font-size: 15px; line-height: 1.4; }
.rhb-foundation-chain .rhb-sum { font-size: 12.5px; line-height: 1.6; }
.rhb-foundation-chain li:hover .rhb-peek, .rhb-foundation-chain li:focus-within .rhb-peek { display: flex; }
.rhb-foundation-chain .rhb-peek { gap: 6px; }
.rhb .rhb-foundations .rhb-loop { margin-top: 14px; }
/* 일반 목록 들여쓰기(.rhb ol)가 도식 목록에 적용되지 않도록 */
.rhb .rhb-chain, .rhb .rhb-foundation-chain { margin: 0; padding: 0; }
.rhb .rhb-foundation-chain .rhb-no { font-family: var(--f-body); letter-spacing: 0; }
.rhb .rhb-map h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 18px; }
.rhb-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; counter-reset: none; }
.rhb .rhb-chain > li { position: relative; margin: 0; }
.rhb-chain > li > a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 14px 12px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.rhb-chain > li > a:hover, .rhb-chain > li > a:focus-visible { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.rhb-chain > li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 46px; width: 18px; text-align: center; font-size: 20px; font-weight: 700; color: var(--accent); }
.rhb-no { font: 600 12px/1.4 var(--f-mono); color: var(--accent); letter-spacing: .04em; }
.rhb-chain strong { font-size: 17px; line-height: 1.35; }
.rhb-chain em { font-style: normal; font-size: 13px; color: var(--muted); }
.rhb-sum { font-size: 13.5px; line-height: 1.6; }
.rhb-thread { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.5; color: var(--accent); }
.rhb-thread b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rhb .rhb-loop { margin: 16px 0 6px; padding: 10px 14px; border: 1.5px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; }
.rhb-loop span { display: inline-block; margin-right: 6px; font-size: 18px; font-weight: 700; color: var(--accent); vertical-align: -1px; }
.rhb .rhb-map-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
details.rhb-ch { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); scroll-margin-top: 80px; }
.rhb-ch > summary { cursor: pointer; padding: 14px 18px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.rhb-ch > summary .rhb-no { margin-right: 10px; }
.rhb-ch > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rhb-ch[open] > summary { border-bottom: 1px solid var(--line); }
.rhb-ch > :not(summary) { margin-left: 18px; margin-right: 18px; }
.rhb-ch > .rhb-fig, .rhb-ch > .rhb-table-wrap { max-width: calc(100% - 36px); }
.rhb-ch > :last-child { margin-bottom: 18px; }
@media (max-width: 1000px) {
  .rhb-chain { grid-template-columns: 1fr; gap: 28px; }
  .rhb-chain > li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -26px; transform: translateX(-50%); }
  .rhb-foundation-chain { grid-template-columns: 1fr; gap: 12px; }
  .rhb-foundation-chain li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); z-index: 1; }
}
@media print { .rhb-ch > summary { break-after: avoid; } }

/* 다섯 장 도식: 마우스를 올리면 음영과 장의 구성이 보입니다 */
.rhb-chain > li > a { position: relative; }
.rhb-chain > li:hover > a, .rhb-chain > li:focus-within > a { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.rhb-peek { position: absolute; left: -1px; right: -1px; top: calc(100% - 6px); z-index: 5; display: none; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 0 0 10px 10px; background: var(--paper); box-shadow: 0 10px 24px rgba(0,0,0,.16); font-size: 12.5px; line-height: 1.5; color: var(--ink); text-align: left; }
.rhb-peek b { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rhb-peek span { display: block; }
.rhb-chain > li:hover .rhb-peek, .rhb-chain > li:focus-within .rhb-peek { display: flex; }
@media (max-width: 1000px) {
  .rhb-peek { position: static; display: flex; margin-top: 8px; padding: 8px 0 0; border: 0; border-top: 1px dashed var(--line); border-radius: 0; background: none; box-shadow: none; }
}
.rhb-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 18px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rhb-pager a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.rhb-pager a:hover, .rhb-pager a:focus-visible { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rhb-pager .rhb-top { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.rhb-pager .rhb-top:hover, .rhb-pager .rhb-top:focus-visible { background: var(--accent); color: var(--paper); opacity: .9; }
@media (max-width: 560px) { .rhb-pager { flex-wrap: wrap; } .rhb-pager .rhb-top { order: 3; width: 100%; justify-content: center; } .rhb-pager a { flex: 1 1 40%; justify-content: center; } }
@media print { .rhb-pager { display: none; } }

/* 수동 NEW 배지: 드롭다운 항목 */
.submenu-new { display: inline-block; margin-left: 8px; padding: 1px 5px 0; border-radius: 4px; background: #e5484d; color: #fff; font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: .04em; line-height: 1.4; vertical-align: 2px; animation: nav-new-blink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .submenu-new { animation: none; } }

/* Conference network: match the site navigation and paper palette. */
.conference-open { display:inline-flex; align-items:center; gap:8px; padding:9px 15px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--accent); text-decoration:none; font-size:14px; font-weight:500; }
.conference-open:hover { background:var(--accent-soft); border-color:var(--accent); }

/* Conference selection: neutral tabs, selected blue, gentle hover lift. */
.conference-tabs a { display:inline-flex; align-items:center; background:var(--paper); transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.conference-tabs a[aria-current="page"] { background:var(--accent); border-color:var(--accent); color:var(--paper); }
@media (hover:hover) and (pointer:fine) {
  .conference-tabs a:hover { background:var(--accent-soft); border-color:var(--accent); box-shadow:0 5px 14px rgba(29,79,134,.16); transform:translateY(-2px) scale(1.04); }
  .conference-tabs a[aria-current="page"]:hover { background:var(--accent); }
}
.conference-tabs a:active { transform:scale(.98); }
@media (prefers-reduced-motion:reduce) { .conference-tabs a { transition:none; } .conference-tabs a:hover, .conference-tabs a:active { transform:none; } }

/* Conference: 금빛 노드 안내 문구 강조 (DrS & DrS' Kids) */
.drs-hl{--drs-ink:#7a520c;--drs-bg:#fbf0d4;--drs-sheen:#fffaf0;--drs-line:#d4a64a;--drs-star:#c48a14;display:inline-flex;align-items:center;gap:4px;margin:2px 0;padding:1px 9px 1px 7px;border-radius:999px;border:1px solid var(--drs-line);color:var(--drs-ink);font-size:.8em;font-weight:600;line-height:1.5;background:linear-gradient(110deg,var(--drs-bg) 0%,var(--drs-bg) 38%,var(--drs-sheen) 50%,var(--drs-bg) 62%,var(--drs-bg) 100%);background-size:260% 100%;animation:drs-shine 3.2s linear infinite,drs-glow 2.4s ease-in-out infinite}
.drs-hl .drs-star{color:var(--drs-star);display:inline-block;font-size:.9em;animation:drs-twinkle 1.6s ease-in-out infinite}
@media (prefers-color-scheme: dark){.drs-hl{--drs-ink:#f3d48e;--drs-bg:#342a18;--drs-sheen:#5a4724;--drs-line:#b88d39;--drs-star:#f0c45e}}
@keyframes drs-shine{0%{background-position:100% 0}100%{background-position:-160% 0}}
@keyframes drs-glow{0%,100%{box-shadow:0 0 0 0 rgba(212,160,60,0)}50%{box-shadow:0 0 9px 1px rgba(212,160,60,.4)}}
@keyframes drs-twinkle{0%,100%{opacity:.55;transform:scale(.85) rotate(0)}50%{opacity:1;transform:scale(1.2) rotate(18deg)}}
@media (prefers-reduced-motion: reduce){.drs-hl,.drs-hl .drs-star{animation:none}}
.summary-copy .drs-hl{font-size:11.5px}
