/* Phase 1 홈의 컬러 변수를 재사용합니다. 배경을 지정해 OS 다크 모드와 밝은 테마가 섞여도 글자가 보입니다. */
.jm-directory-editorial .jm-dir-surface {
  padding: clamp(.875rem, 2.2vw, 1.5rem);
  color: var(--jm-ink);
  background: var(--jm-soft);
  border: 1px solid var(--jm-line);
  border-radius: .875rem;
  min-width: 0;
}
.jm-directory-editorial :is(#jm-official-links,#jm-editorial,#jm-guide-toc,.jm-editorial-chapter) {scroll-margin-top: 5rem}
.jm-directory-editorial .jm-official p {margin: .5rem 0; color:var(--jm-muted); word-break:keep-all; overflow-wrap:anywhere}
.jm-directory-editorial .jm-official-list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;list-style:none;margin:.8rem 0;padding:0}
.jm-directory-editorial .jm-official-list li {min-width:0}
.jm-directory-editorial .jm-official-card {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;height:100%;padding:.68rem .72rem;gap:.18rem .35rem;border:1px solid var(--jm-line);border-radius:.6rem;background:var(--jm-panel);color:var(--jm-ink);text-decoration:none}
.jm-directory-editorial .jm-official-card:hover {border-color:var(--jm-accent);color:var(--jm-accent)}
.jm-directory-editorial .jm-official-card:hover .jm-official-name {text-decoration:underline}
.jm-directory-editorial .jm-official-name {font-size:.94rem;line-height:1.35}
.jm-directory-editorial .jm-official-domain {grid-column:1;font-size:.73rem;font-variant-numeric:tabular-nums;color:var(--jm-accent)}
.jm-directory-editorial .jm-official-use {grid-column:1 / -1;font-size:.77rem;color:var(--jm-muted);line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
.jm-directory-editorial .jm-official-arrow {grid-column:2;grid-row:1 / span 2;align-self:center;color:var(--jm-accent)}

.jm-directory-editorial .jm-editorial {background:var(--jm-panel);line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.jm-directory-editorial .jm-editorial-header {padding-bottom:.3rem}
.jm-directory-editorial .jm-editorial-header h2 {font-size:clamp(1.3rem,2.8vw,1.75rem);line-height:1.4}
.jm-directory-editorial .jm-editorial-kicker {margin:0 0 .3rem;color:var(--jm-accent);font-size:.72rem;font-weight:750;letter-spacing:.1em}
.jm-directory-editorial .jm-editorial p:not(.jm-editorial-kicker) {margin:.64rem 0; line-height:1.8}
.jm-directory-editorial .jm-editorial a {color:var(--jm-accent);text-decoration:underline;text-underline-offset:.18em}
.jm-directory-editorial .jm-editorial a:hover {text-decoration-thickness:2px}
.jm-directory-editorial :is(.jm-official-card,.jm-editorial a,.jm-editorial-table-wrap):focus-visible {outline:2px solid var(--jm-accent);outline-offset:2px}
.jm-directory-editorial .jm-editorial-toc {margin:1rem 0;padding:.7rem .9rem;border:1px solid var(--jm-line);border-radius:.7rem;background:var(--jm-soft)}
.jm-directory-editorial #jm-editorial-toc-title {margin:0 0 .38rem;font-weight:750}
.jm-directory-editorial .jm-editorial-toc ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.15rem 1.35rem;margin:0;padding-inline-start:1.3rem}
.jm-directory-editorial .jm-editorial-toc a {display:inline-block;padding:.15rem 0}
.jm-directory-editorial .jm-editorial-chapter {margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--jm-line)}
.jm-directory-editorial .jm-editorial h3 {margin:0 0 .54rem;color:var(--jm-ink);font-size:clamp(1.05rem,2.2vw,1.32rem);line-height:1.45;letter-spacing:-.025em}
.jm-directory-editorial .jm-editorial h4 {margin:1rem 0 .25rem;color:var(--jm-ink);font-size:1rem;line-height:1.45}
.jm-directory-editorial .jm-editorial li p {margin:.16rem 0}
.jm-directory-editorial .jm-editorial-table-wrap {max-width:100%;overflow-x:auto;margin:.85rem 0;border:1px solid var(--jm-line);border-radius:.55rem}
.jm-directory-editorial .jm-editorial table {width:100%;margin:0;border-collapse:collapse;font-size:.88rem;line-height:1.55;color:var(--jm-ink)}
.jm-directory-editorial .jm-editorial caption {caption-side:top;text-align:left;margin:0;padding:.55rem .65rem;background:var(--jm-panel);font-weight:700;color:var(--jm-ink)}
.jm-directory-editorial .jm-editorial thead {background:var(--jm-soft)}
.jm-directory-editorial .jm-editorial :is(th,td) {vertical-align:top;padding:.52rem .62rem;border-top:1px solid var(--jm-line);overflow-wrap:anywhere}
.jm-directory-editorial .jm-editorial th[scope="row"] {font-weight:650}
.jm-directory-editorial .jm-editorial td {color:var(--jm-muted)}
.jm-directory-editorial .jm-editorial code {color:var(--jm-accent);background:var(--jm-soft);padding:.06em .22em;border-radius:.2em;overflow-wrap:anywhere;white-space:normal}
.jm-directory-editorial .jm-editorial-faq {margin:0}
.jm-directory-editorial .jm-editorial-faq-item {margin:0 0 .55rem;padding:.55rem .7rem;border:1px solid var(--jm-line);border-radius:.5rem;background:var(--jm-soft)}
.jm-directory-editorial .jm-editorial-faq dt {margin:0 0 .22rem;color:var(--jm-ink);font-weight:750}
.jm-directory-editorial .jm-editorial-faq dd {margin:0;color:var(--jm-muted)}
.jm-directory-editorial .jm-editorial-return {text-align:right}
@media(max-width:991.98px) {
  .jm-directory-editorial .jm-official-list {grid-template-columns:repeat(2,minmax(0,1fr))}
  .jm-directory-editorial .jm-editorial-toc ol {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:359.98px) {
  .jm-directory-editorial .jm-editorial-toc ol {grid-template-columns:1fr}
  .jm-directory-editorial .jm-official-card {padding:.55rem .5rem}
  .jm-directory-editorial .jm-official-list {gap:.4rem}
  .jm-directory-editorial .jm-editorial :is(th,td) {padding:.4rem .33rem}
}
