/*
 * steno-shell.css — 좌측 내비가 있는 화면 틀
 *
 * 도면의 뼈대를 그대로 옮겼다. 왼쪽 고정 메뉴, 오른쪽 본문.
 * 색은 세 가지만 쓴다 — 바탕(흰색·아주 옅은 회색), 글자(진회색),
 * 짚는 색(파랑) 하나. 지표마다 색을 달리하면 색 자체가 등급표가 된다.
 */

:root {
  --steno-ink: #1f2430;
  --steno-ink-soft: #5b6472;
  --steno-ink-faint: #8a92a0;
  --steno-line: #e3e6ec;
  --steno-ground: #f5f7fa;
  --steno-card: #ffffff;
  --steno-accent: #2f6bd8;
  --steno-accent-soft: #eaf1fd;
}

body.steno-has-shell {
  margin: 0;
  background: var(--steno-ground);
  color: var(--steno-ink);
}

.steno-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
}

/* ------------------------------------------------------------------
 * 왼쪽 메뉴
 * ------------------------------------------------------------------ */

.steno-side {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px 16px;
  background: var(--steno-card);
  border-right: 1px solid var(--steno-line);
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.steno-side-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--steno-ink);
  text-decoration: none;
}

.steno-side-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--steno-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.steno-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steno-side-link {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--steno-ink-soft);
  text-decoration: none;
}

.steno-side-link:hover {
  background: #f2f4f8;
  color: var(--steno-ink);
}

.steno-side-link.is-active {
  background: var(--steno-accent-soft);
  color: var(--steno-accent);
  font-weight: 600;
}

.steno-side-guide {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--steno-line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--steno-ink-soft);
  text-decoration: none;
  text-align: center;
}

/* ------------------------------------------------------------------
 * 위쪽 머리
 * ------------------------------------------------------------------ */

.steno-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 28px 16px;
  background: var(--steno-card);
  border-bottom: 1px solid var(--steno-line);
}

.steno-shell-head .steno-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.steno-shell-sub {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--steno-ink-soft);
}

.steno-shell-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--steno-ink-soft);
}

.steno-shell-date {
  padding: 6px 12px;
  border: 1px solid var(--steno-line);
  border-radius: 8px;
  background: #fbfcfe;
  font-variant-numeric: tabular-nums;
}

.steno-shell-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------------
 * 본문
 * ------------------------------------------------------------------ */

.steno-shell-main {
  padding: 22px 28px 60px;
  min-width: 0;
}

/* 원칙 문장. 화면마다 맨 위에 한 줄로 둔다.
 * 이 시스템이 무엇을 하고 무엇을 안 하는지 늘 보이게 하려는 것이다. */
.steno-principle {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 3px solid var(--steno-accent);
  background: var(--steno-accent-soft);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #2a4a80;
}

.steno-panel {
  padding: 18px 20px;
  border: 1px solid var(--steno-line);
  border-radius: 12px;
  background: var(--steno-card);
  margin-bottom: 16px;
}

.steno-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.steno-panel-head h2,
.steno-panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.steno-panel-head a {
  font-size: 13px;
  color: var(--steno-accent);
  text-decoration: none;
}

.steno-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .steno-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .steno-shell { grid-template-columns: minmax(0, 1fr); }
  .steno-side {
    grid-row: auto;
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--steno-line);
  }
  .steno-side-nav { flex-direction: row; flex-wrap: wrap; }
  .steno-side-brand { padding-bottom: 4px; }
  .steno-side-guide { margin-top: 0; }
  .steno-shell-head,
  .steno-shell-main { padding-left: 16px; padding-right: 16px; }
}

/* 사용 가이드에서 두 갈래를 나란히 보여 준다 */
.steno-guide-lead { margin: 18px 0 8px; font-weight: 600; }
.steno-guide-modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0 0 8px; }
.steno-guide-mode { padding: 14px 16px; border: 1px solid var(--steno-line); border-radius: 10px; background: var(--steno-bg); }
.steno-guide-mode-title { margin: 0 0 6px; font-weight: 700; }
.steno-guide-mode-flow { margin: 0 0 6px; font-size: 13px; line-height: 1.7; }
.steno-guide-mode-note { margin: 0; font-size: 12.5px; color: var(--steno-dim); }
