/* 음성 명령 아톰 — 명령어 페이지(atom.html)와 설명서(atom-guide.html) 공용. 폰·패드에서 보며 쓰는 것이 목적.
   사이트 메뉴에는 안 넣은 단독 페이지(주소로만 들어옴, 2026-10-21 사용자) — 머리글엔 두 페이지 전환만 */

.atom-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.atom-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: #bcd2da;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.atom-nav a[aria-current="page"],
.atom-nav a:hover {
  color: var(--amber-bright);
  background: rgba(240, 163, 26, 0.08);
}

.atom-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.atom-intro h1,
.guide-head h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 40px);
}

.atom-intro p,
.guide-head p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.atom-intro b {
  color: var(--text);
}

.atom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atom-button {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid rgba(240, 163, 26, 0.65);
  border-radius: 999px;
  color: #111;
  background: var(--amber);
  font-weight: 700;
  text-decoration: none;
}

.atom-button.ghost {
  color: var(--amber-bright);
  background: rgba(240, 163, 26, 0.08);
}

/* 켜기·끄기·되묻기 세 칸 */
.atom-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.quick-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.quick-card .say {
  color: var(--amber-bright);
  font-size: 24px;
  font-weight: 800;
}

.quick-card .what {
  color: var(--text);
  font-weight: 600;
}

.quick-card .reply,
.atom-card .reply {
  color: var(--cyan);
  font-style: italic;
  font-size: 14px;
}

/* 찾기 */
.atom-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.atom-tools .search-field {
  max-width: 520px;
}

.atom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atom-count {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

/* 명령 카드 */
.atom-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.atom-group-title {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--amber);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.atom-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.atom-card .ko {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.atom-card .alt {
  color: var(--muted);
  font-size: 14px;
}

.atom-card .en {
  color: #cfe3ea;
  font-size: 15px;
}

.atom-card .en small {
  color: var(--muted);
}

.atom-card .key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.keycap {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  color: var(--text);
  background: #0e2029;
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.keycap.spare {
  color: var(--muted);
  border-style: dashed;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.atom-card .game {
  color: #6f8c96;
  font-size: 12px;
}

/* 알아듣는 방식 */
.atom-how,
.atom-lines {
  margin-top: 40px;
}

.atom-how h2,
.atom-lines h2,
.guide-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.how-grid article,
.guide-section {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.how-grid h3 {
  margin: 0 0 8px;
  color: var(--amber-bright);
  font-size: 17px;
}

.how-grid p,
.guide-section p,
.guide-section li {
  margin: 0;
  color: #c4d6dc;
  line-height: 1.75;
}

.how-grid b,
.guide-section b {
  color: var(--text);
}

.lines-list {
  display: grid;
  gap: 8px;
}

.line-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.line-row .when {
  color: var(--amber-bright);
  font-weight: 700;
}

.line-row .reply {
  color: var(--cyan);
  font-style: italic;
}

.line-row .text {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
}

/* 설명서 */
.guide-toc a {
  text-decoration: none;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.guide-sections {
  display: grid;
  gap: 14px;
}

.guide-section ol,
.guide-section ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.guide-section li + li {
  margin-top: 6px;
}

.guide-section code,
.how-grid code {
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--amber-bright);
  background: rgba(240, 163, 26, 0.1);
  font-size: 0.92em;
  word-break: break-all;
}

.guide-section p + p,
.guide-section p + ol,
.guide-section p + ul,
.guide-section ul + p,
.guide-section ol + p {
  margin-top: 10px;
}

.guide-note {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  color: #d8e6ea;
  background: rgba(240, 163, 26, 0.07);
  line-height: 1.7;
}

.faq dt {
  margin-top: 12px;
  color: var(--text);
  font-weight: 700;
}

.faq dd {
  margin: 4px 0 0;
  color: #c4d6dc;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .brand small {
    display: none;
  }

  .atom-main {
    padding-top: 16px;
  }

  .atom-quick {
    grid-template-columns: 1fr;
  }

  .quick-card {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 2px 12px;
  }

  .quick-card .reply {
    grid-column: 1 / -1;
  }

  .atom-list,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .line-row {
    grid-template-columns: 1fr;
  }

  .line-row .text {
    grid-column: 1;
  }
}
