/* Detona Wiki — standalone, local assets and native browser controls. */
:root {
  color-scheme: dark;
  --dw-bg: #101114;
  --dw-surface: #17191d;
  --dw-raised: #1c1e23;
  --dw-hover: #23262d;
  --dw-text: #dfe1e6;
  --dw-muted: #979da8;
  --dw-heading: #f4f5f7;
  --dw-border: #272a31;
  --dw-accent: #c9a765;
  --dw-accent-soft: #c9a76517;
  --dw-link: #ddbb7b;
  --dw-info: #94bcec;
  --dw-shadow: 0 16px 50px #0007;
  --dw-header-height: 72px;
  --dw-sidebar-width: 248px;
  --dw-toc-width: 202px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --dw-bg: #fcfcfd;
  --dw-surface: #f5f5f7;
  --dw-raised: #fff;
  --dw-hover: #ebedf1;
  --dw-text: #363943;
  --dw-muted: #666d79;
  --dw-heading: #171a22;
  --dw-border: #e1e3e8;
  --dw-accent: #8d6427;
  --dw-accent-soft: #9c70200c;
  --dw-link: #895d1d;
  --dw-info: #325f97;
  --dw-shadow: 0 16px 50px #17213020;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.dw-site {
  margin: 0;
  background: var(--dw-bg);
  color: var(--dw-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.dw-site button, .dw-site input { font: inherit; }
.dw-site button { cursor: pointer; }
.dw-site a { color: var(--dw-link); text-decoration: none; }
.dw-site a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dw-site a, .dw-site button, .dw-site input { -webkit-tap-highlight-color: transparent; }
.dw-site :focus-visible { outline: 2px solid var(--dw-accent); outline-offset: 4px; }
.dw-site [hidden] { display: none !important; }
.dw-site img { max-width: 100%; }
.dw-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; }
.dw-skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 100;
  padding: 8px 16px; border-radius: 5px; background: var(--dw-accent); color: var(--dw-bg) !important;
}
.dw-skip-link:focus { top: 12px; }
.dw-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  height: var(--dw-header-height); padding: 0 max(28px, calc((100vw - 1440px) / 2 + 28px));
  background: var(--dw-bg); border-bottom: 1px solid var(--dw-border);
}
.dw-brand {
  display: flex; flex: 0 0 192px; align-items: center; gap: 16px;
  color: var(--dw-heading) !important; text-decoration: none !important;
}
.dw-brand img { display: block; width: 112px; height: 60px; object-fit: contain; }
.dw-brand span { padding-left: 16px; border-left: 1px solid var(--dw-border); font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--dw-muted); }
.dw-search { position: relative; width: min(480px, 100%); margin-left: auto; }
.dw-search-box, .dw-search-field { position: relative; }
#wiki-search {
  display: block; width: 100%; height: 40px; padding: 0 58px 0 40px;
  border: 1px solid var(--dw-border); border-radius: 6px;
  background: var(--dw-surface); color: var(--dw-text); font-size: 13px;
}
#wiki-search::placeholder { color: var(--dw-muted); opacity: 1; }
#wiki-search:focus { outline: 2px solid var(--dw-accent); outline-offset: 1px; }
.dw-search > svg, .dw-search-box > svg, .dw-search-field > svg, .dw-search-icon {
  position: absolute; left: 13px; top: 12px; width: 17px; height: 17px;
  color: var(--dw-muted); pointer-events: none;
}
.dw-search-icon { font-size: 20px; line-height: 17px; }
.dw-search kbd, .dw-search-shortcut {
  position: absolute; right: 12px; top: 10px; padding: 0 5px;
  border: 1px solid var(--dw-border); border-radius: 4px; color: var(--dw-muted);
  font-family: inherit; font-size: 11px; line-height: 19px; pointer-events: none;
}
.dw-header-actions { display: flex; align-items: center; gap: 9px; }
.dw-icon-button, #theme-toggle, #nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 8px; border: 1px solid transparent;
  border-radius: 6px; color: var(--dw-muted); background: transparent;
}
.dw-icon-button:hover, #theme-toggle:hover, #nav-toggle:hover { background: var(--dw-hover); color: var(--dw-text); }
.dw-icon-button svg, #theme-toggle svg, #nav-toggle svg { width: 19px; height: 19px; }
#nav-toggle { display: none; }
.dw-header-link, .dw-site-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 5px; font-size: 12px; white-space: nowrap; color: var(--dw-muted) !important; }
.dw-site-link svg { width: 14px; height: 14px; }
.dw-site-link:hover { background: var(--dw-surface); color: var(--dw-text) !important; text-decoration: none !important; }
.dw-search-results {
  position: absolute; z-index: 60; top: calc(100% + 9px); right: 0;
  width: 100%; max-height: min(500px, calc(100vh - 120px)); overflow-y: auto;
  border: 1px solid var(--dw-border); border-radius: 8px;
  background: var(--dw-raised); box-shadow: var(--dw-shadow);
}
.dw-search-status { margin: 0; padding: 10px 15px; font-size: 11px; color: var(--dw-muted); border-bottom: 1px solid var(--dw-border); }
.dw-search-result { display: block; padding: 13px 15px; border-bottom: 1px solid var(--dw-border); color: var(--dw-text) !important; }
.dw-search-result:last-child { border-bottom: 0; }
.dw-search-result:hover, .dw-search-result:focus { background: var(--dw-hover); text-decoration: none !important; }
.dw-search-result strong { display: block; font-size: 14px; color: var(--dw-heading); line-height: 1.5; }
.dw-search-result span { display: block; margin-top: 3px; color: var(--dw-muted); font-size: 12px; line-height: 1.6; }
.dw-search-result small { display: block; margin-top: 5px; color: var(--dw-link); font-size: 10px; }
.dw-search-empty { padding: 18px 15px; margin: 0; color: var(--dw-muted); font-size: 13px; }
.dw-layout {
  display: grid; grid-template-columns: var(--dw-sidebar-width) minmax(0, 1fr) var(--dw-toc-width);
  max-width: 1440px; margin: var(--dw-header-height) auto 0;
}
.dw-sidebar {
  position: sticky; top: var(--dw-header-height); align-self: start;
  height: calc(100vh - var(--dw-header-height)); padding: 30px 18px 44px 24px;
  border-right: 1px solid var(--dw-border); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--dw-border) transparent;
}
.dw-nav-group { margin: 0 0 25px; }
.dw-sidebar > nav > .dw-nav-link:first-child { margin-bottom: 28px; }
.dw-sidebar-footer { margin-top: 30px; padding: 19px 10px 0; border-top: 1px solid var(--dw-border); font-size: 10px; color: var(--dw-muted); }
.dw-sidebar-footer span { color: var(--dw-text); font-weight: 600; }
.dw-sidebar-footer p { margin: 4px 0 0; }
.dw-sidebar .dw-nav-group h2, .dw-nav-group-title {
  margin: 0 0 9px; padding: 0 10px; color: var(--dw-muted);
  font-size: 10px; line-height: 1.7; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
}
.dw-sidebar .dw-nav-group.is-active h2 { color: var(--dw-text); }
.dw-nav-group ul, .dw-toc ul { list-style: none; padding: 0; margin: 0; }
.dw-nav-link {
  display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 7px 11px;
  margin: 2px 0; border-radius: 4px; font-size: 13px; line-height: 1.6; color: var(--dw-muted) !important;
}
.dw-nav-link svg { flex: 0 0 15px; width: 15px; height: 15px; opacity: .8; }
.dw-nav-link:hover { background: var(--dw-surface); color: var(--dw-text) !important; text-decoration: none !important; }
.dw-nav-link.active, .dw-nav-link[aria-current="page"] { background: var(--dw-accent-soft); box-shadow: inset 2px 0 var(--dw-accent); color: var(--dw-link) !important; font-weight: 600; }
.dw-main { min-width: 0; width: 100%; padding: 40px clamp(28px, 3.4vw, 48px) 0; }
.dw-article { max-width: 720px; margin: 0 auto; }
.dw-breadcrumb, .dw-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 27px; font-size: 12px; color: var(--dw-muted); }
.dw-article .dw-breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; list-style: none; }
.dw-article .dw-breadcrumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.dw-breadcrumbs svg { flex: 0 0 12px; width: 12px; height: 12px; margin: 0 9px; color: var(--dw-muted); opacity: .55; }
.dw-breadcrumbs li[aria-current="page"] { color: var(--dw-text); }
.dw-breadcrumb a, .dw-breadcrumbs a { color: var(--dw-muted); }
.dw-breadcrumb span[aria-hidden], .dw-breadcrumbs span[aria-hidden] { opacity: .55; }
.dw-article-header { padding-bottom: 27px; border-bottom: 1px solid var(--dw-border); margin-bottom: 34px; }
.dw-eyebrow { display: block; margin: 0 0 9px; font-size: 10px; color: var(--dw-link); font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.dw-site h1, .dw-site h2, .dw-site h3 { color: var(--dw-heading); font-weight: 650; line-height: 1.3; }
.dw-site h1 { margin: 0 0 15px; font-size: clamp(30px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.dw-site h2 { margin: 36px 0 15px; font-size: 23px; letter-spacing: -.02em; }
.dw-site h3 { margin: 24px 0 10px; font-size: 17px; letter-spacing: -.01em; }
.dw-article p { margin: 0 0 18px; }
.dw-article .dw-lead { font-size: 16px; line-height: 1.8; color: var(--dw-muted); max-width: 680px; margin-bottom: 20px; }
.dw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--dw-muted); font-size: 11px; }
.dw-section { scroll-margin-top: 96px; }
.dw-section + .dw-section { margin-top: 40px; }
.dw-section > h2:first-child { margin-top: 0; }
.dw-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.dw-section-heading h2 { margin: 0; }
.dw-section-copy { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 4px; color: var(--dw-muted); background: transparent; opacity: .35; }
.dw-section-copy svg { width: 16px; height: 16px; }
.dw-section-heading:hover .dw-section-copy, .dw-section-copy:focus-visible { opacity: 1; }
.dw-section-copy:hover, .dw-section-copy[data-copied="true"] { opacity: 1; color: var(--dw-link); background: var(--dw-accent-soft); }
.dw-article-tools { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.dw-article ul, .dw-article ol { padding-left: 23px; margin: 0 0 21px; }
.dw-article li { padding-left: 3px; margin-bottom: 7px; }
.dw-article strong { font-weight: 650; color: var(--dw-heading); }
.dw-article code { border: 1px solid var(--dw-border); border-radius: 4px; background: var(--dw-surface); padding: 2px 5px; font-size: .88em; overflow-wrap: anywhere; }
.dw-article pre { padding: 16px; overflow-x: auto; border: 1px solid var(--dw-border); border-radius: 6px; background: var(--dw-surface); line-height: 1.7; }
.dw-article pre code { padding: 0; border: 0; }
.dw-callout {
  margin: 24px 0; padding: 17px 20px; border: 1px solid var(--dw-border);
  border-left: 3px solid var(--dw-info); border-radius: 0 6px 6px 0;
  background: var(--dw-surface); font-size: 14px; line-height: 1.8;
}
.dw-callout > strong { display: block; margin-bottom: 5px; font-size: 13px; }
.dw-callout p:last-child { margin-bottom: 0; }
.dw-callout h3, .dw-callout strong:first-child { color: var(--dw-info); }
.dw-callout.warning, .dw-callout--warning { border-left-color: var(--dw-accent); }
.dw-callout.warning h3, .dw-callout--warning h3, .dw-callout.warning strong:first-child, .dw-callout--warning strong:first-child { color: var(--dw-link); }
.dw-table-wrapper, .dw-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--dw-border); border-radius: 7px; margin: 20px 0 26px; }
.dw-table .dw-resource-label { display: flex; align-items: center; gap: 10px; }
.dw-table .dw-resource-icon { display: block; flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
/* Monster portraits for the Wheel gem drop catalog; preserve native proportions. */
[data-page="roda-de-habilidades"] section[id^="drops-gemas-"] td:first-child .dw-resource-icon { flex-basis: 64px; width: 64px; height: 64px; }
[data-page="roda-de-habilidades"] section[id^="drops-gemas-"] td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--dw-heading); }
[data-page="roda-de-habilidades"] section[id^="drops-gemas-"] .dw-resource-label > span { min-width: 0; }
.dw-table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.65; text-align: left; }
.dw-table th { background: var(--dw-surface); color: var(--dw-heading); font-weight: 600; }
.dw-table th, .dw-table td { padding: 11px 15px; border-bottom: 1px solid var(--dw-border); vertical-align: top; }
.dw-table tr:last-child td { border-bottom: 0; }
.dw-table tbody tr:hover { background: var(--dw-accent-soft); }
.dw-table th:first-child, .dw-table td:first-child { padding-left: 19px; }
.dw-table caption { padding: 12px 16px; text-align: left; color: var(--dw-muted); font-size: 12px; }
.dw-content-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 26px; }
.dw-content-card { padding: 20px; border: 1px solid var(--dw-border); border-radius: 7px; background: var(--dw-surface); }
.dw-content-card h3 { margin: 0 0 8px; }
.dw-content-card p { font-size: 13px; color: var(--dw-muted); }
.dw-content-card p:last-child { margin-bottom: 0; }
.dw-outfit-list { width: min(100%, 360px); margin: 22px 0 28px; border-collapse: collapse; table-layout: fixed; text-align: left; }
.dw-outfit-list th, .dw-outfit-list td { padding: 4px 6px; border-bottom: 1px solid var(--dw-border); vertical-align: middle; }
.dw-outfit-list thead th { color: var(--dw-muted); font-size: 11px; line-height: 1.5; font-weight: 600; padding-block: 7px 12px; }
.dw-outfit-list .dw-outfit-name { padding-left: 0; padding-right: 14px; overflow-wrap: anywhere; font-size: 14px; font-weight: 500; line-height: 1.5; }
.dw-outfit-list thead .dw-outfit-name { font-size: 11px; font-weight: 600; }
.dw-outfit-list .dw-outfit-preview { width: 80px; text-align: center; }
.dw-outfit-list tbody .dw-outfit-name { color: var(--dw-heading); }
.dw-outfit-list tbody tr:last-child th, .dw-outfit-list tbody tr:last-child td { border-bottom: 0; }
.dw-outfit-list tbody tr:hover { background: var(--dw-accent-soft); }
.dw-outfit-sprite { display: block; width: 64px; height: 64px; margin: 0 auto; object-fit: contain; image-rendering: pixelated; }
.dw-figure { width: fit-content; max-width: 100%; margin: 22px 0 28px; }
.dw-figure > img { display: block; max-width: 100%; height: auto; border: 1px solid var(--dw-border); border-radius: 6px; image-rendering: pixelated; }
.dw-figure figcaption { margin-top: 10px; color: var(--dw-muted); font-size: 12px; line-height: 1.7; }
.dw-figure--panel { width: 500px; }
.dw-figure-viewport { position: relative; width: 100%; aspect-ratio: var(--dw-panel-ratio); overflow: hidden; border: 1px solid var(--dw-border); border-radius: 6px; background: var(--dw-surface); }
.dw-figure-viewport > img { position: absolute; width: var(--dw-panel-source); max-width: none; height: auto; left: var(--dw-panel-left); top: var(--dw-panel-top); }
.dw-operation-steps { margin: 20px 0; padding-left: 25px; }
.dw-operation-steps li { padding: 4px 0 4px 5px; }
.dw-operation-steps li::marker { color: var(--dw-link); font-weight: 700; }
.dw-item-pairs { width: 100%; margin: 22px 0 28px; border-collapse: collapse; table-layout: fixed; text-align: center; }
.dw-item-pairs th, .dw-item-pairs td { border-bottom: 1px solid var(--dw-border); vertical-align: middle; }
.dw-item-pairs thead th { padding: 0 8px 13px; color: var(--dw-muted); font-size: 11px; font-weight: 600; line-height: 1.6; }
.dw-item-pairs td { padding: 18px 8px; }
.dw-item-pairs tbody tr:last-child td { border-bottom: 0; }
.dw-item-pairs .dw-item-pair-arrow { width: 36px; padding-inline: 0; color: var(--dw-link); }
.dw-item-pair-arrow svg { display: block; width: 22px; height: 22px; margin: 0 auto; }
.dw-item-pair-preview { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.dw-item-quantity { color: var(--dw-link); font-size: 12px; font-weight: 600; line-height: 1.3; }
.dw-item-sprite { display: block; width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.dw-item-name { color: var(--dw-heading); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.dw-toc { position: sticky; top: 111px; align-self: start; max-height: calc(100vh - 141px); overflow-y: auto; padding: 0 24px 24px 12px; font-size: 12px; line-height: 1.7; }
.dw-toc h2, .dw-toc-title { margin: 0 0 14px; font-size: 10px; color: var(--dw-muted); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.dw-toc a { display: block; padding: 5px 0 5px 13px; border-left: 1px solid var(--dw-border); color: var(--dw-muted); }
.dw-toc a:hover, .dw-toc a.active { color: var(--dw-link); text-decoration: none; }
.dw-toc a.active { border-left-color: var(--dw-accent); }
.dw-related { margin: 42px 0 28px; padding-top: 25px; border-top: 1px solid var(--dw-border); }
.dw-related h2 { margin: 0 0 15px; font-size: 15px; }
.dw-related ul { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.dw-related li { margin: 0; padding: 0; }
.dw-related-links { display: flex; flex-wrap: wrap; gap: 9px; }
.dw-related a { display: block; padding: 6px 12px; border: 1px solid var(--dw-border); border-radius: 5px; font-size: 12px; }
.dw-related a:hover { background: var(--dw-surface); text-decoration: none; }
.dw-page-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.dw-page-nav-link { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid var(--dw-border); border-radius: 6px; color: var(--dw-text) !important; }
.dw-page-nav-link > svg { flex: 0 0 17px; width: 17px; height: 17px; color: var(--dw-muted); }
.dw-page-nav-link:hover { border-color: var(--dw-accent); background: var(--dw-surface); text-decoration: none !important; }
.dw-page-nav-link small { display: block; margin-bottom: 4px; color: var(--dw-muted); font-size: 11px; }
.dw-page-nav-link strong { display: block; font-size: 13px; line-height: 1.6; }
.dw-page-nav-link--next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
.dw-page-nav-link--next span { margin-left: auto; }
.dw-footer { max-width: 720px; margin: 44px auto 0; padding: 23px 0 30px; border-top: 1px solid var(--dw-border); color: var(--dw-muted); font-size: 11px; line-height: 1.8; }
.dw-footer p { margin-bottom: 5px; }
.dw-footer > span + span { margin-left: 20px; }
.dw-footer a { color: var(--dw-muted); }
.dw-hero { padding: 13px 0 34px; margin-bottom: 32px; border-bottom: 1px solid var(--dw-border); }
.dw-hero h1 { max-width: 660px; font-size: clamp(34px, 3.4vw, 44px); }
.dw-hero p { max-width: 650px; color: var(--dw-muted); font-size: 16px; line-height: 1.85; margin: 0 0 24px; }
.dw-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--dw-border); border-radius: 5px; color: var(--dw-heading) !important; background: var(--dw-surface); font-size: 13px; font-weight: 600; }
.dw-button:hover { background: var(--dw-hover); text-decoration: none !important; }
.dw-button svg { width: 16px; height: 16px; }
.dw-button.primary, .dw-button--primary { background: var(--dw-accent); border-color: var(--dw-accent); color: #18130b !important; }
.dw-button.primary:hover, .dw-button--primary:hover { filter: brightness(1.08); }
:root[data-theme="light"] .dw-button.primary, :root[data-theme="light"] .dw-button--primary { color: #fff !important; }
.dw-home-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.dw-home-grid, .dw-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; margin: 0 0 32px; }
.dw-category-grid { grid-template-columns: 1fr; gap: 22px; }
.dw-card, .dw-category-card { display: block; padding: 22px; border: 1px solid var(--dw-border); border-radius: 7px; background: var(--dw-surface); }
.dw-category-card { background: transparent; }
.dw-card > svg, .dw-category-card > svg { width: 25px; height: 25px; margin-bottom: 13px; color: var(--dw-link); }
.dw-card h2, .dw-category-card h2 { margin: 0 0 8px; font-size: 17px; }
.dw-card p, .dw-category-card p { color: var(--dw-muted); font-size: 13px; margin-bottom: 16px; }
.dw-category-card .dw-category-intro { margin: 0 0 14px; font-size: 12px; line-height: 1.75; }
.dw-cardlist { display: flex; flex-direction: column; gap: 0; }
.dw-article-card { display: grid; grid-template-columns: 32px minmax(0, 1fr) 12px; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--dw-border); font-size: 13px; color: var(--dw-text) !important; }
.dw-article-card:first-child { border-top: 0; }
.dw-article-card:hover { text-decoration: none !important; }
.dw-article-card:hover h3 { color: var(--dw-link); }
.dw-article-card h3 { font-size: 14px; margin: 0 0 4px; line-height: 1.5; }
.dw-article-card p { font-size: 12px; margin: 0; line-height: 1.7; }
.dw-card-icon { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.dw-card-icon--text { display: flex; justify-content: center; align-items: center; font-size: 22px; color: var(--dw-link); }
.dw-card-arrow { width: 14px; height: 14px; color: var(--dw-muted); }
.dw-card[href]:hover { border-color: var(--dw-accent); text-decoration: none; }
.dw-backdrop { position: fixed; z-index: 45; inset: var(--dw-header-height) 0 0; border: 0; background: #0008; }
@media (min-width: 768px) {
  .dw-category-card .dw-cardlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
  .dw-category-card .dw-article-card:nth-child(2) { border-top: 0; }
  .dw-category-card .dw-article-card:only-child { grid-column: 1 / -1; }
}
@media (max-width: 1199px) {
  :root { --dw-sidebar-width: 224px; --dw-toc-width: 175px; }
  .dw-header { padding: 0 24px; gap: 16px; }
  .dw-brand { flex-basis: 176px; gap: 10px; }
  .dw-main { padding-inline: 32px; }
  .dw-sidebar { padding-left: 20px; padding-right: 15px; }
  .dw-toc { padding-right: 16px; }
}
@media (max-width: 1023px) {
  .dw-layout { grid-template-columns: var(--dw-sidebar-width) minmax(0, 1fr); }
  .dw-toc { display: none; }
  .dw-header-link, .dw-site-link { display: none; }
  .dw-main { padding-inline: 34px; }
}
@media (max-width: 767px) {
  :root { --dw-header-height: 68px; }
  .dw-header { padding: 0 16px; gap: 12px; }
  .dw-brand { flex: 0 0 98px; }
  .dw-brand img { width: 98px; height: 53px; }
  .dw-brand span { display: none; }
  .dw-header-actions { gap: 2px; }
  #nav-toggle { display: inline-flex; }
  #theme-toggle, #nav-toggle { width: 33px; height: 36px; }
  .dw-search { width: auto; flex: 1; min-width: 0; }
  #wiki-search { padding: 0 9px 0 33px; font-size: 12px; height: 36px; }
  .dw-search > svg, .dw-search-box > svg, .dw-search-field > svg, .dw-search-icon { left: 10px; top: 10px; width: 15px; height: 15px; }
  .dw-search kbd, .dw-search-shortcut { display: none; }
  .dw-search-results { position: fixed; top: 66px; left: 14px; right: 14px; width: auto; max-height: calc(100vh - 90px); }
  .dw-layout { display: block; }
  .dw-sidebar {
    position: fixed; z-index: 50; top: var(--dw-header-height); bottom: 0; left: 0;
    width: min(300px, 85vw); height: auto; padding: 26px 20px 35px;
    background: var(--dw-bg); box-shadow: var(--dw-shadow); transform: translateX(-110%);
    transition: transform .18s ease;
  }
  .dw-nav-open .dw-sidebar, .dw-sidebar.open { transform: translateX(0); }
  body.dw-nav-open { overflow: hidden; }
  .dw-main { padding: 29px 24px 0; }
  .dw-nav-link { font-size: 14px; min-height: 40px; }
  .dw-breadcrumb, .dw-breadcrumbs { margin-bottom: 22px; }
  .dw-article .dw-lead { font-size: 15px; }
  .dw-site h2 { font-size: 21px; }
  .dw-home-grid, .dw-category-grid { gap: 14px; }
  .dw-home-highlights { grid-template-columns: 1fr; }
  .dw-section-copy { opacity: .65; }
  .dw-card, .dw-category-card { padding: 18px; }
  .dw-footer { margin-top: 32px; }
}
@media (max-width: 479px) {
  .dw-header { gap: 8px; padding: 0 12px; }
  .dw-brand { flex-basis: 77px; }
  .dw-brand img { width: 77px; height: 48px; }
  .dw-main { padding-inline: 18px; }
  .dw-home-grid, .dw-category-grid, .dw-content-cards { grid-template-columns: 1fr; }
  body.dw-site { font-size: 15px; }
  .dw-table th, .dw-table td { padding: 10px 12px; }
  .dw-callout { padding: 15px 16px; }
  .dw-page-nav { gap: 9px; }
  .dw-page-nav-link { padding: 12px; }
}
/* Structured guides keep the same Detona palette and preserve every section link. */
.dw-guide .dw-article-header { margin-bottom: 24px; }
.dw-guide-nav { margin-bottom: 38px; }
.dw-guide-nav > p { margin: 0 0 12px; color: var(--dw-muted); font-size: 12px; }
.dw-guide-nav ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.dw-guide-nav li { margin: 0; padding: 0; min-width: 0; }
.dw-guide-nav a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px; border: 1px solid var(--dw-border); border-radius: 7px; background: var(--dw-surface); color: var(--dw-heading); font-size: 12px; font-weight: 600; line-height: 1.5; }
.dw-guide-nav a:hover { border-color: var(--dw-accent); text-decoration: none; background: var(--dw-accent-soft); }
.dw-guide-nav a > span { color: var(--dw-link); font-size: 11px; font-variant-numeric: tabular-nums; }
.dw-guide-group { scroll-margin-top: 96px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--dw-border); }
.dw-guide-group-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.dw-guide-number { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid var(--dw-border); border-radius: 9px; background: var(--dw-accent-soft); color: var(--dw-link); font-size: 13px; font-weight: 700; }
.dw-guide-group-header h2 { margin: 1px 0 8px; font-size: 24px; }
.dw-guide-group-header p { margin: 0; color: var(--dw-muted); font-size: 13px; line-height: 1.7; }
.dw-guide .dw-section-heading h3 { margin: 0; font-size: 18px; }
.dw-guide .dw-section + .dw-section { margin-top: 28px; }
.dw-guide .dw-section > p, .dw-guide .dw-section > ul, .dw-guide .dw-section > ol { font-size: 14px; }
.dw-guide .dw-table-wrap { margin-top: 18px; }
.dw-guide .dw-figure { margin-inline: auto; }
.dw-guide .dw-figure--panel { max-width: min(100%, 420px); }
.dw-guide .dw-operation-steps { padding: 16px 20px 16px 42px; background: var(--dw-surface); border: 1px solid var(--dw-border); border-radius: 8px; }
.dw-guide .dw-operation-steps li:last-child { margin-bottom: 0; }
.dw-disclosure { border: 1px solid var(--dw-border); border-radius: 8px; background: var(--dw-surface); }
.dw-guide .dw-disclosure + .dw-disclosure { margin-top: 10px; }
.dw-disclosure > summary { padding: 17px 20px; cursor: pointer; list-style: none; border-radius: 8px; }
.dw-disclosure > summary::-webkit-details-marker { display: none; }
.dw-disclosure > summary:hover { background: var(--dw-accent-soft); }
.dw-disclosure > summary h3, .dw-disclosure > summary h2 { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; font-size: 16px; line-height: 1.5; }
.dw-disclosure > summary small { display: block; margin-top: 4px; color: var(--dw-muted); font-size: 12px; font-weight: 400; line-height: 1.65; }
.dw-disclosure > summary svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--dw-link); }
.dw-disclosure[open] > summary { border-bottom: 1px solid var(--dw-border); border-radius: 8px 8px 0 0; }
.dw-disclosure[open] > summary svg { transform: rotate(90deg); }
.dw-disclosure-body { padding: 0 20px 20px; background: var(--dw-bg); border-radius: 0 0 8px 8px; font-size: 14px; }
.dw-disclosure-body > :last-child { margin-bottom: 0; }
.dw-disclosure-tools { display: flex; justify-content: flex-end; padding-top: 9px; margin-bottom: 5px; }
.dw-disclosure-tools .dw-section-copy { opacity: .65; }
.dw-grouped-toc > ol { padding: 0; margin: 0; list-style: none; }
.dw-grouped-toc > ol > li { margin-bottom: 17px; }
.dw-grouped-toc .dw-toc-group { display: flex; gap: 8px; color: var(--dw-heading); font-weight: 600; line-height: 1.5; }
.dw-toc-group > span { color: var(--dw-link); font-size: 10px; margin-top: 2px; }
.dw-grouped-toc ul { margin-left: 15px; padding-top: 5px; }
.dw-grouped-toc ul a { font-size: 11px; line-height: 1.5; padding-block: 4px; }
@media (max-width: 767px) {
  .dw-guide-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-guide-nav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dw-guide-group-header { gap: 12px; }
  .dw-guide-group-header h2 { font-size: 22px; }
}
@media (max-width: 599px) {
  .dw-guide .dw-table--responsive { min-width: 0; }
  .dw-table--responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dw-table--responsive, .dw-table--responsive tbody, .dw-table--responsive tr { display: block; width: 100%; }
  .dw-table--responsive tr + tr { border-top: 2px solid var(--dw-border); }
  .dw-guide .dw-table--responsive td { display: grid; grid-template-columns: minmax(75px, 32%) minmax(0, 1fr); gap: 12px; padding: 10px 13px; border-bottom: 0; overflow-wrap: anywhere; }
  .dw-table--responsive td::before { content: attr(data-label); color: var(--dw-muted); font-size: 11px; font-weight: 500; }
  .dw-table--responsive td:first-child { background: var(--dw-surface); color: var(--dw-heading); font-weight: 600; }
  .dw-disclosure > summary { padding: 14px; }
  .dw-disclosure-body { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .dw-header, .dw-sidebar, .dw-toc, .dw-backdrop, .dw-related { display: none !important; }
  .dw-layout { display: block; margin: 0; }
  .dw-main { padding: 0; }
  .dw-site { background: white !important; color: black !important; }
  .dw-site h1, .dw-site h2, .dw-site h3, .dw-site strong { color: black !important; }
  .dw-section { break-inside: avoid; }
  .dw-table th { background: #eee; }
}
