/* 닷코드 기자실 — 머리 · 바닥 · 휴대폰 탭 · 내용 폭 (보조K12, 운영자 2026-11-22 21:54 「전부 통일해」)
   기자실 모든 쪽(gj_shell)과 기사 쓰기 편집기(editor.html)가 이 파일 하나를 쓴다. HTML 은 app/gj/view.php gj_head_html · gj_foot_html · gj_tab_html.
   메뉴 글자는 어느 폭에서도 한 줄: 1600px 이상 아이콘 + 글자, 1280~1599px 글자만(숫자 딱지가 붙어도 넘치지 않게), 761~1279px 덜 쓰는 메뉴는 「더보기 ▾」, 760px 아래는 아래 탭. */
.gs-hd, .gs-ft, .gs-tab {
  --bg: #0A0C0B; --panel: #121514; --line: #2A322E; --text: #E8EEE9; --soft: #C6CFC9; --mute: #9CA7A0; --amber: #FFB21E; --ink: #0A0C0B;
  --mono: 'JetBrains Mono', 'IBM Plex Sans KR', ui-monospace, Menlo, Consolas, monospace;
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.gs-hd *, .gs-ft *, .gs-tab * { box-sizing: border-box; }
/* 내용 폭: 모든 쪽 같은 최대 폭 · 가운데 */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.gs-hd a, .gs-ft a, .gs-tab a { color: inherit; text-decoration: none; }
.gs-hd .ico, .gs-tab .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 머리 ---------- */
.gs-hd { position: relative; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
.gs-hd__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.gs-hd form { display: inline-flex; margin: 0; }
.gs-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.gs-logo__dc { display: inline-flex; align-items: center; gap: 10px; }
.gs-logo img { width: 32px; height: 32px; display: block; }
.gs-logo__word { font-family: var(--mono); font-weight: 700; font-size: 21px; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.gs-logo__room { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; margin-left: 4px; border: 1px solid var(--amber); border-radius: 3px; color: var(--amber); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.gs-logo__dc:hover .gs-logo__word, .gs-logo__room:hover { color: #FFC44D; }
.gs-logo__room--link { margin-left: 0; border-color: var(--line); color: var(--soft, #A3A3A3); font-weight: 600; }   /* 다른 방으로 가는 고리 알약(국장실 ↔ 닷코드월드) — 조용하게, 손을 올리면 호박색 */
.gs-logo__room--link:hover { border-color: var(--amber); color: var(--amber); }
.gs-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.gs-nav a, .gs-more > summary { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 64px; padding: 0 10px; font-size: 14.5px; font-weight: 500; color: var(--soft); white-space: nowrap; flex: none; }
.gs-nav .ico { width: 17px; height: 17px; color: var(--mute); }
.gs-nav a:hover, .gs-more > summary:hover { color: var(--text); }
.gs-nav a[aria-current="page"], .gs-more.is-cur > summary, .gs-nav a[aria-current="page"] .ico, .gs-more.is-cur > summary .ico { color: var(--amber); }
.gs-nav > a[aria-current="page"]::after, .gs-more.is-cur > summary::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--amber); }
.gs-nav .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1; }
.gs-more { position: relative; display: none; flex: none; }
.gs-more > summary { list-style: none; cursor: pointer; user-select: none; }
.gs-more > summary::-webkit-details-marker { display: none; }
.gs-more > summary i { font-style: normal; font-size: 11px; color: var(--mute); }
.gs-more__pop { position: absolute; top: calc(100% - 6px); left: 0; z-index: 70; display: grid; gap: 2px; min-width: 200px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
.gs-more__pop a { height: 40px; padding: 0 12px; border-radius: 4px; }
.gs-more__pop a:hover, .gs-more__pop a[aria-current="page"] { background: #1A1F1D; }
.gs-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.gs-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--soft); font-size: 14px; line-height: 1; white-space: nowrap; cursor: pointer; }
.gs-icon:hover { color: var(--text); border-color: var(--mute); }
.gs-icon .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.gs-out { font-size: 13px; }
.gs-me { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 230px; padding-left: 4px; }
.gs-me img { width: 36px; height: 36px; border-radius: 8px; display: block; flex: none; }
.gs-me .face, .gs-me .noface { height: 36px; width: auto; border-radius: 6px; display: block; flex: none; }
.gs-me .noface { background: var(--line); }
.gs-me__t { display: block; min-width: 0; }
.gs-me b, .gs-me small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-me b { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--text); }
.gs-me small { font-size: 12px; line-height: 1.3; color: var(--mute); }
.gs-hd__login { font-size: 14px; color: var(--soft); white-space: nowrap; }
.gs-hd__login b { color: var(--amber); font-weight: 600; }

/* ---------- 바닥 ---------- */
.gs-ft { background: var(--bg); border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.gs-ft__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-top: 22px; padding-bottom: 26px; }
.gs-ft__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.gs-ft__nav a { color: var(--soft); font-size: 13px; }
.gs-ft__copy { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.gs-tab { display: none; }

/* ---------- 폭이 모자랄 때 (글자는 절대 두 줄로 꺾지 않음) ---------- */
@media (max-width: 1599px) {
  .gs-hd__in { gap: 16px; }
  .gs-nav .ico { display: none; }
  .gs-nav a, .gs-more > summary { padding: 0 9px; }
  .gs-nav > a[aria-current="page"]::after, .gs-more.is-cur > summary::after { left: 9px; right: 9px; }
  .gs-out span { display: none; }
  .gs-me { max-width: 190px; }
}
@media (max-width: 1279px) {
  .gs-nav__x { display: none !important; }
  .gs-more { display: block; }
  .gs-more__pop .ico { display: inline-block; }
}
@media (max-width: 960px) {
  .gs-logo__word { display: none; }
  .gs-me { max-width: 150px; }
}
@media (max-width: 860px) {
  .gs-me__t { display: none; }
}
/* ---------- 휴대폰 ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .gs-hd__in { height: 56px; gap: 10px; }
  .gs-logo img { width: 28px; height: 28px; }
  .gs-logo__room { margin-left: 0; }
  .gs-nav, .gs-me { display: none; }
  .gs-tools { gap: 8px; }
  .gs-icon { height: 34px; min-width: 34px; padding: 0 8px; }
  .gs-ft__in { padding-top: 18px; padding-bottom: 18px; }
  .gs-tab { position: sticky; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); height: 62px; background: var(--bg); border-top: 1px solid var(--line); }
  .gs-tab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--mute); white-space: nowrap; }
  .gs-tab a .ico { width: 21px; height: 21px; }
  .gs-tab a[aria-current="page"] { color: var(--amber); }
  .gs-tab a.pen { color: var(--ink); }
  .gs-tab a.pen span.pw { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 15px; background: var(--amber); }
  .gs-tab a.pen span.pw .ico { width: 18px; height: 18px; }
  .gs-tab a.pen em { font-style: normal; color: var(--mute); }
}
/* 기사 쓰기 편집기: 아래 고정 단추 띠(.mbar)에 바닥 글이 가리지 않게 */
@media (max-width: 760px) { .gj-write .gs-ft__in { padding-bottom: 90px; } }
/* 0011-07: 쓰기 화면은 desk2.css 를 싣지 않아(write.php 는 shell.css 만) 국장 머리의 「사이트 보기」(.gs-view) 고리에 모양 · 휴대폰 틀이 없었음 —
   글자 · 고리 둘이 한 줄로 늘어 390 에서 오른쪽으로 42px 넘침. 쓰기 화면에만 desk2 의 .gs-view 꼴을 shell 값으로 옮김(다른 화면은 desk2 그대로):
   휴대폰은 「닷코드 ↗」 하나만(다른 화면 760 아래와 같음) · 400 아래에서도 없애지 않고 로고 줄이 모자라면 다음 줄로 내림 */
.gj-write .gs-view { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; min-width: 0; font-size: 13px; }
.gj-write .gs-view > b { font-size: 11px; font-weight: 500; color: var(--mute); white-space: nowrap; }
.gj-write .gs-view > a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--soft); white-space: nowrap; }
.gj-write .gs-view > a:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 760px) {
  .gj-write .gs-hd__in { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .gj-write .gs-logo { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; gap: 8px 10px; }
  .gj-write .gs-tools { flex: none; }
  .gj-write .gs-view { margin-left: 0; }
  .gj-write .gs-view > b, .gj-write .gs-view > a + a { display: none; }
  .gj-write .gs-view > a { min-height: 30px; padding: 0 8px; }
}

/* ---------- 맨 위 줄(퀘스트 0222-01 · 0222-03 — 국장실 · 닷코드월드 같은 줄) ----------
   1줄 = 로고 · 닷코드월드 · 국장실 · 닷코드애즈 ｜ 바깥 고리 열 개(새 창), 2줄 = 메뉴 | 알림 · 나 · 나가기.
   좁으면(1100 아래) 1줄 오른쪽에 알림 · 나, 1줄이 모자라면 옆으로 밀어서 봄(줄을 꺾지 않음). 쓰기 화면(desk2.css 없음)도 같은 틀. */
.gs-hd.gs-hd--m12.gs-hd--top .gs-hd__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo logo" "nav tools"; align-items: center; height: auto; gap: 0 16px; padding-top: 10px; }
.gs-hd.gs-hd--top .gs-logo { grid-area: logo; min-width: 0; flex-wrap: nowrap; gap: 8px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gs-hd.gs-hd--top .gs-logo::-webkit-scrollbar { display: none; }
.gs-hd.gs-hd--top .gs-logo > * { flex: none; }
.gs-hd.gs-hd--top .gs-logo__room { margin-left: 0; }
.gs-hd.gs-hd--top .gs-tools { grid-area: tools; min-width: 0; }
.gs-hd.gs-hd--top .gs-nav { grid-area: nav; min-width: 0; }
.gs-ext { display: inline-flex; align-items: center; gap: 1px; flex: none; }
.gs-ext__bar { color: var(--line); font-weight: 400; margin: 0 4px 0 0; }
.gs-ext > a { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 7px; border-radius: 3px; color: var(--soft, #A3A3A3); font-size: 13px; white-space: nowrap; }
.gs-ext > a i { font-style: normal; font-size: 10px; color: var(--mute); }
.gs-ext > a:hover { color: var(--amber); background: rgba(245, 179, 36, 0.08); }
.gs-ext > a:hover i { color: var(--amber); }
@media (max-width: 1100px) {
  .gs-hd.gs-hd--m12.gs-hd--top .gs-hd__in { grid-template-areas: "logo tools" "nav nav"; }
  .gs-hd.gs-hd--top .gs-logo { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }   /* 오른쪽 끝이 흐려져 옆으로 밀 수 있음을 알림 */
}
@media (max-width: 760px) {
  .gs-hd.gs-hd--m12.gs-hd--top .gs-hd__in { padding-top: 8px; }
  .gs-ext > a { height: 30px; padding: 0 6px; }
}
