:root {
  --green-900: #1e493a;
  --green-800: #285e49;
  --green-600: #3d7b59;
  --cream: #f4f6ef;
  --paper: #eaf0e2;
  --gold: #edc16b;
  --text: #283d30;
  --muted: #626f63;
  --line: #dce3d5;
  --primary: var(--green-800);
  --primary-light: var(--paper);
  --secondary: #3e7285;
  --accent: var(--gold);
  --text-muted: var(--muted);
  --border: var(--line);
  --success: #2e7747;
  --warning: #785c40;
  --danger: #b8463d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 80% 0%, #e8eee0, transparent 540px), #f4f5ef; color: var(--text); font: 400 16px/1.7 'Nunito', 'Segoe UI', sans-serif; }
a { color: var(--green-800); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-800); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, .feature-title, .stat-value { font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; font-weight: 600; line-height: 1.2; }
h1 { color: var(--green-900); font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -.025em; margin: 12px 0 16px; }
h2 { color: var(--green-900); font-size: 1.8rem; margin: 0 0 20px; }
h3 { color: var(--green-800); font-size: 1.35rem; margin: 28px 0 12px; }
h4 { font-size: 1.15rem; margin: 20px 0 10px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
code, pre, .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
code, .code { color: var(--green-900); background: var(--paper); padding: 3px 6px; border-radius: 5px; }
pre { overflow-x: auto; padding: 16px; background: var(--paper); border-radius: 12px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wiki-header { border-bottom: 1px solid var(--line); background: #fdfdf8f5; position: sticky; top: 0; z-index: 20; }
.wiki-header-inner { max-width: 1200px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wiki-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); font-family: 'Fredoka', sans-serif; font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.brand-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: 10px; }
.wiki-brand small { display: block; margin-top: 4px; color: var(--muted); font-family: 'Nunito', sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: .9rem; font-weight: 800; }
.header-actions a { text-decoration: none; }
.lang-switch, .switch { border: 1px solid var(--line); background: white; color: var(--green-800); border-radius: 10px; padding: 8px 12px; font-weight: 800; }
.wiki-layout { max-width: 1200px; margin: 32px auto 64px; padding: 0 24px; display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 36px; align-items: start; }
.wiki-sidebar { position: sticky; top: 112px; max-height: calc(100dvh - 136px); overflow-y: auto; padding: 0 8px 8px 0; scrollbar-width: thin; }
.sidebar-label, .eyebrow { color: var(--green-600); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.topic-nav, .nav-links { display: grid; gap: 4px; }
.topic-nav a, .nav-link { text-decoration: none; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 700; line-height: 1.5; border-left: 3px solid transparent; }
.topic-nav a:hover, .nav-link:hover { background: #eaf0e2; color: var(--green-900); }
.topic-nav a[aria-current="page"] { background: var(--green-800); color: white; }
.toc { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.nav-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; color: var(--muted); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: white; color: var(--green-800); font-size: .8rem; font-weight: 800; }
.nav-link { font-size: .83rem; padding: 6px 10px; }
.nav-link[aria-current="location"] { color: var(--green-800); border-left-color: var(--green-600); background: var(--paper); }
.sidebar-help { margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); font-size: .85rem; }
.sidebar-help p { margin: 8px 0; color: var(--muted); }
.sidebar-help a { font-weight: 800; }
.wiki-main { min-width: 0; scroll-margin-top: 100px; }
.wiki-hero { position: relative; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: #eaf0e2; box-shadow: 0 5px 0 #d1ddc8; margin-bottom: 36px; overflow: hidden; }
.wiki-hero h1 { max-width: 570px; }
.wiki-hero .subtitle { max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--green-900); font-weight: 800; text-decoration: none; }
.button-primary { background: var(--green-800); color: white; border-color: var(--green-800); box-shadow: 0 3px 0 var(--green-900); }
.hero-decoration { position: absolute; right: 32px; top: 30px; font-size: 3rem; opacity: .65; transform: rotate(-10deg); }
.wiki-section { margin: 36px 0; scroll-margin-top: 110px; }
.section-intro { color: var(--muted); margin-top: -10px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.topic-card { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fdfdf8; color: var(--text); text-decoration: none; box-shadow: 0 3px 0 #e4eadc; }
.topic-card:hover { border-color: var(--green-600); background: white; }
.topic-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--paper); font-size: 1.5rem; margin-bottom: 20px; }
.topic-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.topic-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.topic-card .read-more { font-size: .85rem; font-weight: 800; color: var(--green-800); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: 'Fredoka', sans-serif; color: var(--green-600); font-size: 1.4rem; margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font-size: 1.1rem; }
.steps p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.info-box, .howto { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0; }
.info-box.warning { background: #fcf4df; border-color: #eddfb3; }
.info-box.danger { background: #fbefec; border-color: #efcfca; }
.info-box.success { background: #eaf2e6; }
.info-box.info { background: #edf4f5; }
.note, .legend { color: var(--muted); font-size: .9rem; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); gap: 12px; margin: 20px 0 10px; }
.search label { display: block; font-size: .8rem; font-weight: 800; margin-bottom: 6px; }
.search input, .search select { width: 100%; min-width: 0; padding: 12px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 16px; }
.search-status { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; font-size: .85rem; color: var(--muted); }
.text-button { background: none; border: 0; padding: 6px; color: var(--green-800); font-weight: 800; text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: white; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.command-name { font-family: 'Fredoka', sans-serif; color: var(--green-900); font-size: 1.05rem; }
.command-description { margin: 12px 0; font-size: .9rem; }
.pill, .badge { display: inline-block; padding: 3px 9px; background: var(--paper); color: var(--green-800); border-radius: 8px; font-size: .72rem; font-weight: 800; }
.ex { padding: 12px; background: #f4f6ef; border-radius: 9px; font-size: .85rem; }
.ex code { background: transparent; padding: 0; display: block; margin-top: 4px; line-height: 1.7; }
.empty-state { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; background: #fdfdf8; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-list summary { font-weight: 800; color: var(--green-900); }
.faq-list details[open] summary { margin-bottom: 16px; }
.faq-list p:last-child { margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.breadcrumb a { text-decoration: none; }
.article-heading { padding: 0 0 28px; }
.article-heading .subtitle { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.article-meta { display: flex; gap: 16px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.wiki-article > section { scroll-margin-top: 110px; border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 24px; background: #fdfdf8; }
.wiki-article h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.feature-card { min-width: 0; padding: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-title { color: var(--green-800); font-size: 1.2rem; margin-bottom: 10px; }
.feature-desc { color: var(--muted); font-size: .92rem; }
.command-box { background: var(--paper); border-left: 3px solid var(--green-600); border-radius: 10px; padding: 16px; margin: 16px 0; overflow-wrap: anywhere; }
.command-box code { padding: 0; background: transparent; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-item { padding: 16px; border: 1px solid var(--line); background: white; border-radius: 12px; text-align: center; }
.stat-label { color: var(--muted); font-size: .75rem; font-weight: 800; }
.stat-value { color: var(--green-800); font-size: 1.5rem; margin-top: 4px; }
.table-container { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: white; font-size: .88rem; }
th { padding: 12px 14px; text-align: left; background: var(--green-800); color: white; font-weight: 800; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--cream); }
.badge-secondary, .badge-purple, .badge-info { background: #e8f0f2; color: #3e7285; }
.badge-warning { background: #fcf0d1; color: #785c40; }
.badge-danger { background: #fae9e5; color: var(--danger); }
.badge-success { background: #e1efd9; color: var(--success); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.flow-diagram { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.flow-step { padding: 12px 16px; background: var(--paper); border-radius: 12px; }
.flow-arrow { color: var(--green-600); font-size: 1.25rem; }
.related-guides { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); margin-top: 32px; }
.related-guides a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; text-decoration: none; font-size: .9rem; font-weight: 800; }
.wiki-footer { max-width: 1152px; margin: auto; padding: 24px 0 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.wiki-footer a { font-weight: 800; text-decoration: none; }
@media (max-width: 1000px) {
  .wiki-layout { gap: 24px; grid-template-columns: 190px minmax(0, 1fr); }
  .topic-grid, .steps { grid-template-columns: 1fr; }
  .topic-card { padding: 20px; }
  .topic-icon { margin-bottom: 12px; }
  .wiki-footer { margin: 0 24px; }
}
@media (max-width: 760px) {
  .wiki-header-inner { padding: 12px 16px; gap: 12px; }
  .wiki-brand { font-size: 1.1rem; gap: 8px; }
  .wiki-brand small { font-size: .6rem; letter-spacing: .08em; white-space: nowrap; }
  .brand-icon { width: 38px; height: 38px; border-radius: 12px; }
  .header-actions { gap: 8px; font-size: .75rem; }
  .header-actions .home-link { display: none; }
  .lang-switch, .switch { padding: 7px 9px; font-size: .8rem; }
  .wiki-layout { display: block; padding: 0 16px; margin-top: 20px; }
  .wiki-sidebar { position: static; max-height: none; padding: 0; margin-bottom: 24px; overflow: visible; }
  .sidebar-label, .sidebar-help { display: none; }
  .topic-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .topic-nav a { padding: 7px 10px; background: white; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; }
  .toc { background: #fdfdf8; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 14px; }
  .nav-title { margin-bottom: 0; }
  .nav-toggle { display: inline-block; }
  .nav-links { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-hero { padding: 24px; border-radius: 20px; }
  .hero-decoration { display: none; }
  .wiki-hero h1 { font-size: 2.25rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .wiki-section { scroll-margin-top: 90px; }
  .grid, .feature-grid, .two-col { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .wiki-article > section { padding: 20px; scroll-margin-top: 90px; }
  .wiki-article h2 { font-size: 1.5rem; }
  .article-heading h1 { font-size: 2.25rem; }
  .wiki-footer { margin: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.load-more-row { margin-top: 20px; text-align: center; }
.knowledge-entry { display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--text); text-decoration: none; }
.knowledge-entry .topic-icon { flex-shrink: 0; background: #fdfdf8; margin: 0; }
.knowledge-entry h3 { margin: 0 0 8px; }
.knowledge-entry p { margin: 0; color: var(--muted); font-size: .9rem; }
.knowledge-entry .read-more { flex-shrink: 0; margin-left: auto; font-weight: 800; }
.knowledge-search { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); margin-bottom: 28px; }
.knowledge-search .search { margin-top: 0; }
.knowledge-search .search-status { margin-bottom: 0; }
.knowledge-category { display: inline-block; margin-bottom: 12px; font-size: .75rem; color: var(--green-600); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.knowledge-commands { display: grid; gap: 8px; margin: 20px 0; list-style: none; padding: 0; }
.knowledge-commands li { margin: 0; padding: 10px 14px; background: var(--paper); border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.knowledge-commands code { padding: 0; background: transparent; }
.knowledge-commands span { color: var(--muted); font-size: .85rem; }
.knowledge-tip { border-left: 3px solid var(--gold); padding: 12px 16px; background: #fbf6e9; border-radius: 0 10px 10px 0; font-size: .9rem; }
.knowledge-further { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .9rem; font-weight: 800; }
@media (max-width: 760px) {
  .knowledge-entry { align-items: flex-start; flex-wrap: wrap; padding: 20px; gap: 12px; }
  .knowledge-entry .topic-icon { display: none; }
  .knowledge-entry .read-more { margin-left: 0; }
  .knowledge-search { padding: 18px; }
  .knowledge-commands li { grid-template-columns: 1fr; gap: 4px; }
}
