/* ── SychoSoft public theme ── */
:root {
  --bg: #F4F7F6;
  --bg-panel: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --border: #D8E0DC;
  --border-strong: #B8C5BF;
  --text: #18211D;
  --text-muted: #58645E;
  --text-dim: #7C8982;
  --accent: #2E7D5B;
  --accent-hover: #256B4E;
  --accent-soft: rgba(46, 125, 91, 0.12);
  --accent-glow: rgba(46, 125, 91, 0.18);
  --danger: #B4534A;
  --tag-bg: #E8EFEB;
  --shadow: 0 1px 3px rgba(24, 33, 29, 0.07);
  --shadow-lg: 0 10px 28px rgba(24, 33, 29, 0.1);
  --radius: 8px;
  --radius-lg: 8px;
  --font: "Pretendard Variable", Pretendard, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Noto Sans KR", sans-serif;
  --mono: "SF Mono", "Fira Code", Consolas, "Courier New", monospace;
  --sidebar-w: 280px;
  --topbar-h: 52px;
  --doc-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 300;
  background: var(--accent); color: #fff; padding: 8px 14px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Shell layout ── */
.site-shell {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: min(calc(var(--sidebar-w) + var(--doc-max) + 32px), calc(100% - 48px));
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
}

.site-body {
  flex: 1 1 var(--doc-max);
  width: min(100%, var(--doc-max));
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding: 28px 0 48px;
}

.doc-container {
  width: 100%;
  max-width: var(--doc-max);
}

/* ── Sidebar ── */
.site-sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 0 18px;
  overflow-y: auto;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  margin: 20px 0 32px;
}

.sidebar-brand {
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.sidebar-logo {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.sidebar-logo:hover { color: var(--text); text-decoration: none; }

.brand-sycho { color: var(--text); }
.brand-soft { color: var(--accent); }
.brand-wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand-wordmark .brand-sycho,
.brand-wordmark .brand-soft { display: inline; }

.sidebar-tagline {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
}

.sidebar-tree {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 8px;
}

.sidebar-link,
.sidebar-group-toggle {
  display: block;
  padding: 7px 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.35;
}
.sidebar-link:hover,
.sidebar-group-toggle:hover {
  background: rgba(37, 34, 29, 0.05);
  color: var(--text);
  text-decoration: none;
}
.sidebar-link.is-active,
.sidebar-group-toggle.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-group { margin: 2px 0; }

.sidebar-group-toggle {
  font-weight: 600;
  color: var(--text);
}

.sidebar-group-children {
  display: block;
  padding-left: 10px;
  border-left: 2px solid var(--border);
  margin: 2px 0 4px 10px;
}
.sidebar-group.is-open > .sidebar-group-children { display: block; }

.sidebar-sub { font-size: 0.8rem; padding: 5px 10px; }
.sidebar-link.sidebar-program { font-size: 0.82rem; font-weight: 500; }

.sidebar-lang {
  margin-top: 20px;
  padding: 14px 18px 0;
  border-top: 1px solid var(--border);
}
.sidebar-lang-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.sidebar-lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.sidebar-lang-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  text-decoration: none;
}
.sidebar-lang-links a:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-lang-select {
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 9px;
}
.sidebar-lang-select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}
.sidebar-kofi-wrap {
  margin-top: 20px;
  padding: 14px 18px 0;
  border-top: 1px solid var(--border);
}
.sidebar-kofi {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-panel);
}
.sidebar-kofi:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.sidebar-lang-links a[aria-current="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(37, 34, 29, 0.35);
}
.site-shell.sidebar-open .sidebar-backdrop { display: block; }

body.sidebar-no-scroll { overflow: hidden; }

/* ── Mobile topbar ── */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 180;
}

.sidebar-toggle {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.sidebar-toggle:hover { border-color: var(--accent); color: var(--accent); }

.mobile-topbar-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
}

.mobile-kofi {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.mobile-kofi:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Doc header ── */
.doc-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doc-title {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
}
.doc-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.doc-jump {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.doc-jump ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.doc-jump a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.doc-jump a:hover { color: var(--accent); }

.doc-section {
  margin-bottom: 36px;
  scroll-margin-top: 20px;
}
.doc-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.doc-section-body { color: var(--text-muted); }
.doc-section-body p { margin-bottom: 12px; }

.doc-facts {
  list-style: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.doc-facts li { font-size: 0.88rem; margin: 4px 0; }
.doc-facts strong { color: var(--text); }

.resource-page-downloads {
  margin: 8px 0 22px;
}
.resource-page-downloads .post-downloads {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0 18px;
  align-items: center;
}
.resource-page-downloads .post-downloads-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
}
.resource-page-downloads .post-downloads-list {
  grid-column: 2;
  grid-row: 1;
  gap: 8px;
}
.resource-page-downloads .post-dl-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}
.resource-page-downloads .post-dl-info {
  min-width: 0;
  row-gap: 3px;
}
.resource-page-downloads .post-dl-info .post-dl-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}
.resource-page-downloads .post-dl-size,
.resource-page-downloads .post-dl-info .download-count {
  font-size: 0.8rem;
}
.resource-page-downloads .btn-download {
  min-width: 128px;
  justify-content: center;
  padding: 7px 14px;
}
.resource-page-downloads .download-note {
  flex: 0 0 100%;
  margin: 1px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Resource body — h2 similar to legacy doc-section titles */
.resource-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}
.resource-body h2:first-child { margin-top: 8px; }
.resource-body .doc-facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.resource-body .doc-facts li + li { margin-top: 6px; }

/* ── Ad slot ── */
.ad-slot {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}
.ad-slot-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ad-slot-inner { min-height: 90px; }

/* ── Home sections ── */
.home-section { margin-top: 36px; }
.home-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.home-about {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.home-about p + p { margin-top: 10px; }

.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stats-inline strong { color: var(--accent); font-size: 1rem; }

/* ── Archive list rows ── */
.archive-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
}

.archive-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.archive-row:last-child { border-bottom: none; }
.archive-row[hidden] { display: none !important; }

.resource-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.row-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tag-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.row-thumb:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-main { color: inherit; text-decoration: none; min-width: 0; }
.row-main:hover { color: inherit; text-decoration: none; }
.row-main:hover .row-title { color: var(--accent); }

.row-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.row-title {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.35;
  transition: color 0.15s;
}
.row-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.row-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--tag-bg);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.row-size { font-family: var(--mono); font-size: 0.75rem; }
.row-count {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}
.row-dl { margin-top: 4px; }

.empty-note {
  padding: 32px 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-download { white-space: nowrap; }

/* ── Download panel ── */
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.download-panel-info { min-width: 0; }
.download-panel .file-name {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.download-panel .file-meta,
.download-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.download-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* ── FAQ ── */
.faq-list { margin: 0; }
.faq-list dt {
  font-weight: 650;
  color: var(--text);
  margin-top: 16px;
  font-size: 0.92rem;
}
.faq-list dt:first-child { margin-top: 0; }
.faq-list dd {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── Changelog page ── */
.changelog-list { list-style: none; }
.changelog-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.changelog-row time { color: var(--text-dim); min-width: 120px; }

/* ── Article content (blog) ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.article { display: flex; flex-direction: column; }
.article > * { min-width: 0; }

.article-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--tag-bg);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.article-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-content.resource-body {
  overflow-x: auto;
}
.article-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}
.article-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-content p { margin-bottom: 14px; }
.article-content .sycho-p { margin: 0 0 0.35em; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content li { margin-bottom: 4px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 14px 0;
  color: var(--text-dim);
}
.article-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--tag-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}
.article-content pre {
  background: #2A2722;
  color: #EDE8DC;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 14px 0;
  font-size: 0.84rem;
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.article-content p.img-align-left img { margin-left: 0; margin-right: auto; }
.article-content p.img-align-center img { margin-left: auto; margin-right: auto; }
.article-content p.img-align-right img { margin-left: auto; margin-right: 0; }
.article-content img.img-w-20 { width: 20%; }
.article-content img.img-w-30 { width: 30%; }
.article-content img.img-w-40 { width: 40%; }
.article-content img.img-w-50,
.article-content img.img-w-sm { width: 50%; }
.article-content img.img-w-60 { width: 60%; }
.article-content img.img-w-70 { width: 70%; }
.article-content img.img-w-75,
.article-content img.img-w-md { width: 75%; }
.article-content img.img-w-80 { width: 80%; }
.article-content img.img-w-90 { width: 90%; }
.article-content img.img-w-100 { width: 100%; }

.rt-color-cyan { color: #0891B2; }
.rt-color-blue { color: #2563EB; }
.rt-color-green { color: var(--accent); }
.rt-color-yellow { color: #CA8A04; }
.rt-color-red { color: var(--danger); }
.rt-color-purple { color: #7C3AED; }

.article-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 0 24px;
  scroll-snap-type: x proximity;
}
.article-gallery-item {
  flex: 0 0 min(82%, 720px);
  scroll-snap-align: start;
  margin: 0;
}
.article-gallery-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.article-gallery figcaption {
  color: var(--text-dim);
  font-size: 0.84rem;
  text-align: center;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(37, 34, 29, 0.88);
  cursor: zoom-out;
}
.image-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
body.lightbox-open { overflow: hidden; }

.article-content a { color: var(--accent); }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.88rem;
  table-layout: fixed;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-content th { background: var(--tag-bg); color: var(--text); font-weight: 600; }

.toc {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 28px;
}
.toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.toc ul { list-style: none; }
.toc li { margin: 3px 0; }
.toc li.toc-l3 { margin-left: 14px; font-size: 0.88rem; }
.toc a { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; }
.toc a:hover { color: var(--accent); }

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 36px 0 0;
}
.pn-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.pn-link:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.pn-next { text-align: right; }
.pn-label { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.pn-title { font-size: 0.88rem; font-weight: 600; }

.post-downloads {
  align-self: flex-end;
  width: min(300px, 100%);
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-downloads-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-downloads-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.post-dl-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-dl-item + .post-dl-item { border-top: 1px solid var(--border); padding-top: 10px; }
.post-dl-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
}
.post-dl-info .post-dl-name {
  flex: 0 0 100%;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.post-dl-name { font-size: 0.88rem; font-weight: 600; word-break: break-all; }
.post-dl-size { font-size: 0.8rem; color: var(--text-muted); }
.post-dl-info .download-count {
  margin-top: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  padding: 14px 0 28px;
}

.footer-inner {
  max-width: var(--doc-max);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 10px 22px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
}
.footer-legal a {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--accent); }

.footer-contact {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 2px 0 0;
}

/* ── Subscribe ── */
.footer-subscribe {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.subscribe-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.subscribe-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}
.subscribe-form {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}
.subscribe-input {
  width: 100%;
  min-width: 0;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  outline: none;
}
.subscribe-input:focus { border-color: var(--accent); }
.subscribe-hp { display: none !important; }
.subscribe-actions { display: contents; }
.subscribe-privacy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}
.subscribe-msg {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  margin-top: 2px;
}
.subscribe-msg.is-ok { color: var(--accent); }
.subscribe-msg.is-err { color: var(--danger); }
.subscribe-unsub-btn { font-size: 0.82rem; }

/* ── Thumbs-up chip (blog/resource detail) ── */
.like-bar {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.doc-actions .like-bar {
  margin: 0;
}
.article-meta .like-bar {
  margin-left: auto;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.like-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.like-btn.is-liked,
.like-btn:disabled {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(46, 125, 91, 0.08);
}
.like-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.like-label {
  letter-spacing: 0.01em;
}
.like-count::before {
  content: "·";
  margin-right: 7px;
  color: var(--text-dim);
  font-weight: 400;
}
.like-btn.is-liked .like-count::before,
.like-btn:disabled .like-count::before {
  color: var(--accent);
  opacity: 0.55;
}
.like-count {
  min-width: 0.6em;
  font-variant-numeric: tabular-nums;
}

/* ── Comments ── */
.comments-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.comments-empty { color: var(--text-dim); font-size: 0.88rem; }
.comment-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.comment-mine { border-color: var(--accent); background: var(--accent-soft); }
.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.comment-head strong { font-weight: 600; }
.comment-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
}
.comment-time { color: var(--text-dim); margin-left: auto; font-size: 0.72rem; }
.comment-body {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
}
.comments-lead { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; }
.comments-field-pin { max-width: 140px; }
.comments-pin { letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.comment-manage {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.comment-manage[hidden] { display: none !important; }
.comment-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.btn-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover { filter: brightness(1.05); }
.comments-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.comments-field { margin-bottom: 10px; }
.comments-label { display: block; font-size: 0.76rem; color: var(--text-dim); margin-bottom: 4px; }
.comments-input, .comments-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
  padding: 9px 12px;
  outline: none;
}
.comments-input:focus, .comments-textarea:focus { border-color: var(--accent); }
.comments-textarea { resize: vertical; min-height: 96px; }
.comments-hp { display: none !important; }
.comments-msg { font-size: 0.84rem; margin-top: 10px; }
.comments-msg.is-ok { color: var(--accent); }
.comments-msg.is-err { color: var(--danger); }
.comments-pager { display: flex; gap: 8px; margin-bottom: 16px; }
.comments-page-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  cursor: pointer;
  font-family: var(--font);
}
.comments-page-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Free Board ── */
.board-policy {
  margin: 18px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.board-policy p { margin: 0; }
.free-board {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.free-board-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: start;
}
.free-board-list-panel,
.free-board-detail,
.free-board-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 16px;
}
.free-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.free-board-head h2,
.free-board-form h2 {
  margin: 0;
  font-size: 1rem;
}
.free-board-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.free-board-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  cursor: pointer;
  font-family: var(--font);
}
.free-board-row:hover,
.free-board-row.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.free-board-row-title,
.free-board-row-meta,
.free-board-row-excerpt {
  display: block;
}
.free-board-row-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.free-board-row-meta {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-dim);
}
.free-board-row-excerpt {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.free-board-detail-head {
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.free-board-detail-head h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}
.free-board-meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.free-board-body {
  color: var(--text-muted);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.free-board-comments {
  margin-top: 28px;
}
.free-board-form[hidden] { display: none !important; }
.free-board-post-body { min-height: 180px; }

/* ── Legacy card compat (hidden if unused) ── */
.card[hidden], .resource-card[hidden] { display: none !important; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .mobile-topbar { display: flex; }

  .site-shell {
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
  }

  .site-body {
    flex: 1 1 auto;
    width: 100%;
  }

  .site-sidebar {
    width: min(var(--sidebar-w), 86vw);
    flex-basis: min(var(--sidebar-w), 86vw);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    margin: 0;
    max-height: none;
    border-top: 0;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0;
    padding: 20px 0 32px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lg);
  }
  .free-board-layout {
    grid-template-columns: 1fr;
  }
  .site-shell.sidebar-open .site-sidebar { transform: translateX(0); }

  .site-main { padding: 20px 18px 36px; }
  .site-footer { padding: 10px 18px 24px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .footer-subscribe {
    grid-column: auto;
    grid-row: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .subscribe-form {
    grid-template-columns: 1fr;
  }
  .subscribe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .archive-row {
    grid-template-columns: 1fr;
  }
  .resource-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .row-thumb {
    width: 58px;
    grid-row: 1 / span 2;
  }
  .resource-row .row-meta {
    grid-column: 2;
  }
  .row-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .prev-next { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }

  .download-panel { flex-direction: column; align-items: stretch; }
  .btn-download { justify-content: center; }

  .post-downloads { align-self: stretch; width: 100%; }
  .resource-page-downloads .post-downloads {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .resource-page-downloads .post-downloads-title,
  .resource-page-downloads .post-downloads-list,
  .resource-page-downloads .download-note {
    grid-column: 1;
    grid-row: auto;
  }
  .resource-page-downloads .post-downloads-title {
    margin: 0;
  }
  .resource-page-downloads .post-dl-item {
    grid-template-columns: 1fr;
  }
  .resource-page-downloads .btn-download {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .doc-jump ul { flex-direction: column; gap: 6px; }
}

/* ── Korean-first public shell and homepage hub ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 180;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(24, 33, 29, 0.02);
}

.site-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.header-brand:hover { color: var(--text); text-decoration: none; }
.header-brand .brand-wordmark { font-size: 1.16rem; font-weight: 800; }
.header-tagline { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; }

.public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.public-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.public-nav-link:hover { color: var(--accent); text-decoration: none; }
.public-nav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.header-language select {
  min-height: 38px;
  max-width: 108px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 0.8rem;
}

.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav .public-nav-link { width: 100%; border-bottom: 0; border-left: 3px solid transparent; }
.mobile-nav .public-nav-link.is-active { border-left-color: var(--accent); background: var(--accent-soft); }

.site-shell {
  display: block;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
}
.site-body { width: 100%; max-width: none; }
.site-main { padding: 38px 0 54px; }
.doc-container { width: 100%; max-width: none; }
.site-footer { padding-inline: 0; }

.hub-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.hub-intro .doc-header { margin: 0; border: 0; padding: 0; max-width: 720px; }
.hub-intro .doc-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: 0; }
.hub-intro .doc-lead { margin-top: 12px; font-size: 1rem; }
.hub-intro .stats-inline { flex: 0 0 auto; margin: 0 0 4px; }

.hub-quick { margin-top: 30px; }
.hub-quick > h2,
.section-heading .home-section-title,
.home-section > .home-section-title {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.hub-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.hub-action {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.hub-action:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.hub-action strong { font-size: 1rem; }
.hub-action span { color: var(--text-muted); font-size: 0.84rem; }
.hub-action-download { border-left-color: #2E7D5B; }
.hub-action-play { border-left-color: #D06A3A; }
.hub-action-quiz { border-left-color: #326CA8; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-heading .home-section-title { margin: 0; }
.section-heading > a { font-size: 0.82rem; font-weight: 650; }

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.app-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.app-card-visual {
  min-height: 118px;
  display: grid;
  grid-template-columns: repeat(4, 34px);
  place-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.app-card-visual span { width: 34px; height: 34px; border: 2px solid rgba(24, 33, 29, 0.16); }
.app-card-match .app-card-visual { background: #FFF1ED; }
.app-card-match .app-card-visual span { transform: rotate(45deg); border-radius: 7px; }
.app-card-match .app-card-visual span:nth-child(1) { background: #D14C52; }
.app-card-match .app-card-visual span:nth-child(2) { background: #E0A128; }
.app-card-match .app-card-visual span:nth-child(3) { background: #3A8E73; }
.app-card-match .app-card-visual span:nth-child(4) { background: #4979B8; }
.app-card-tetris .app-card-visual { background: #EEF4FB; align-items: end; }
.app-card-tetris .app-card-visual span { border-radius: 3px; background: #326CA8; }
.app-card-tetris .app-card-visual span:nth-child(2) { transform: translateY(-34px); background: #D06A3A; }
.app-card-tetris .app-card-visual span:nth-child(3) { background: #2E7D5B; }
.app-card-tetris .app-card-visual span:nth-child(4) { transform: translateY(-34px); background: #D9A51D; }
.app-card-jigsaw .app-card-visual { background: #EDF6F2; gap: 2px; }
.app-card-jigsaw .app-card-visual span { border-radius: 2px; background: #67A78D; }
.app-card-jigsaw .app-card-visual span:nth-child(2),
.app-card-jigsaw .app-card-visual span:nth-child(3) { background: #9BC4B2; }
.app-card-body { padding: 16px; }
.app-card-body h3 { font-size: 1.02rem; }
.app-card-body p { min-height: 48px; margin-top: 6px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; }
.app-card-body a { display: inline-flex; margin-top: 12px; font-size: 0.84rem; font-weight: 700; }

.quiz-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-link {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.quiz-link:hover { color: var(--text); text-decoration: none; border-color: #326CA8; }
.quiz-link span { color: var(--text-muted); font-size: 0.84rem; }

@media (max-width: 760px) {
  .site-header-inner { width: min(100% - 24px, 1120px); min-height: 58px; gap: 10px; }
  .header-tagline, .public-nav { display: none; }
  .mobile-nav { display: block; }
  .header-language select { max-width: 88px; min-height: 40px; padding-left: 8px; }
  .site-shell { width: min(100% - 28px, 1120px); min-height: calc(100vh - 58px); }
  .site-main { padding: 26px 0 42px; }
  .hub-intro { display: block; }
  .hub-intro .stats-inline { margin-top: 18px; }
  .hub-action-grid, .app-card-grid, .quiz-link-grid { grid-template-columns: 1fr; }
  .app-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .app-card-visual { min-height: 100%; grid-template-columns: repeat(2, 28px); gap: 6px; border-right: 1px solid var(--border); border-bottom: 0; }
  .app-card-visual span { width: 28px; height: 28px; }
  .app-card-tetris .app-card-visual span:nth-child(2),
  .app-card-tetris .app-card-visual span:nth-child(4) { transform: translateY(-28px); }
  .app-card-body p { min-height: 0; }
}

@media (max-width: 420px) {
  .header-brand .brand-wordmark { font-size: 1rem; }
  .app-card { grid-template-columns: 92px minmax(0, 1fr); }
  .app-card-visual { grid-template-columns: repeat(2, 22px); }
  .app-card-visual span { width: 22px; height: 22px; }
  .app-card-body { padding: 14px; }
}
