/* Static user guide (/usage). Large type and generous spacing so younger
   and first-time readers can follow each step with its screenshot. */
:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e2e6ee;
  --accent: #2a6db3;
  --red: #ff3b30;
  --paper: #f5f7fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

:lang(ko) { word-break: keep-all; }

a { color: var(--accent); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Top bar: brand link home and the language switch. */
.bar { position: sticky; top: 0; z-index: 5; background: #172c45; color: #fff; }
.bar .wrap { max-width: 1196px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { color: #fff; font-size: 19px; font-weight: 800; text-decoration: none; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a { padding: 4px 11px; border: 1px solid #5c7ea3; border-radius: 16px; color: #d6e9fb; font-size: 14px; text-decoration: none; }
.langs a[aria-current="page"] { border-color: #fff; background: #fff; color: #172c45; font-weight: 700; }

/* Two columns: a sticky contents sidebar on the left and the guide on the
   right. Below 1000px the sidebar hides and the in-page contents box stays. */
.layout { display: grid; grid-template-columns: 260px minmax(0, 860px); justify-content: center; gap: 36px; padding: 0 20px; }
.side { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; padding: 28px 4px 28px 0; font-size: 14px; line-height: 1.5; }
.side-title { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.side ol { margin: 0; padding: 0; list-style: none; }
.side > ol > li { margin-bottom: 10px; }
.side a { display: block; padding: 4px 10px; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; color: var(--ink); text-decoration: none; }
.side a:hover { background: #e8f0fa; }
.side > ol > li > a { font-weight: 800; }
.side ol ol a { padding: 3px 10px 3px 22px; color: var(--muted); font-size: 13px; }
.side a.is-current { border-left-color: var(--accent); background: #e3effb; color: var(--accent); }

.hero { padding: 36px 0 8px; }
.hero h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.3; }
.hero p { margin: 0 0 10px; color: var(--muted); }
.note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink) !important; }
.redbox { flex: none; width: 26px; height: 18px; border: 3px solid var(--red); border-radius: 4px; }

.toc { margin: 18px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.toc h2 { margin: 0 0 6px; font-size: 18px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

section { margin: 34px 0; scroll-margin-top: 70px; }
section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 27px; }
.chapter { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 20px; }
.intro { margin: 0 0 18px; color: var(--muted); }

.steps { margin: 0; padding: 0; list-style: none; }
.step { scroll-margin-top: 70px; margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; }
.num { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #e3effb; color: var(--accent); font-size: 15px; }
.step p { margin: 0 0 8px; }
figure { margin: 14px 0 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px #1d24331a; }

.top { display: inline-block; margin-top: 4px; font-size: 14px; text-decoration: none; }

.words { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.words dt { font-weight: 800; }
.words dd { margin: 0; color: var(--muted); }

details { margin: 0 0 10px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { padding: 20px 20px 48px; color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 6px; }

@media (min-width: 1000px) {
  /* The sidebar already lists every section. */
  .toc { display: none; }
}
@media (max-width: 999px) {
  .layout { display: block; max-width: 920px; margin: 0 auto; }
  .side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 17px; }
  .langs { gap: 4px; }
  .langs a { padding: 2px 7px; font-size: 12px; }
  .hero h1 { font-size: 27px; }
  section h2 { font-size: 23px; }
  .toc ol { columns: 1; }
  .step { padding: 16px; }
  .words { grid-template-columns: 1fr; gap: 2px; }
  .words dd { margin-bottom: 10px; }
}
