/* Light is the default; dark remains available via data-theme="dark".
   All light colors are deliberate semantic overrides of the original dark palette. */
:root[data-theme="light"] {
  color-scheme:light;
  --bg:#f5f7f5;--surface:#ffffff;--surface2:#edf4ef;--raised:#e5f0e8;
  --edge:#d8e2da;--muted:#597369;--text:#182e26;
  --accent:#257f59;--gold:#976e29;
}
html[data-theme="light"] body {background:#f5f7f5;color:#182e26}
html[data-theme="light"] a {color:inherit}
html[data-theme="light"] .sidebar {background:#fff;border-color:#dbe5de;box-shadow:7px 0 24px #223d2610}
html[data-theme="light"] .brand {border-bottom-color:#e2eae5}
html[data-theme="light"] .brand-icon {background:linear-gradient(130deg,#d9eedb,#8fc6a3);color:#145639;box-shadow:0 5px 18px #448a6230}
html[data-theme="light"] .brand-title {color:#1c392b}
html[data-theme="light"] .brand-sub {color:#608476}
html[data-theme="light"] .nav-label {color:#647d71}
html[data-theme="light"] .nav-link {color:#455e54}
html[data-theme="light"] .nav-link:hover {color:#1a5b3f;background:#f0f5f1}
html[data-theme="light"] .nav-link.active {color:#125a38;background:#e7f5e9}
html[data-theme="light"] .nav-count {color:#668878}
html[data-theme="light"] .sidebar-bottom {color:#627c6e;border-color:#e0e9e2}
html[data-theme="light"] .topbar {background:#fffffff0;border-bottom-color:#e0e8e2}
html[data-theme="light"] .breadcrumb {color:#688274}
html[data-theme="light"] .breadcrumb strong {color:#234d37}
html[data-theme="light"] .mobile-menu {color:#274533}
html[data-theme="light"] .search-wrap {background:#f4f7f3;border-color:#d5e2d8;color:#607d6b}
html[data-theme="light"] .search-wrap:focus-within {border-color:#529e71;box-shadow:0 0 0 3px #51ad7720}
html[data-theme="light"] .search-wrap input {color:#17392a}
html[data-theme="light"] .search-wrap input::placeholder {color:#779282}
html[data-theme="light"] .keycap {color:#6e8779;border-color:#d6e1d7;background:#fff}
html[data-theme="light"] .top-link {color:#315b43;border-color:#c6d8ca;background:#fff}
html[data-theme="light"] .top-link:hover {border-color:#4b926c}
html[data-theme="light"] .eyebrow {color:#247b53}
html[data-theme="light"] .page-title {color:#19372b}
html[data-theme="light"] .lead {color:#5a7467}
html[data-theme="light"] .hero {background:radial-gradient(circle at 83% 35%,#b9e1c5 0%,transparent 48%),linear-gradient(125deg,#f7fbf7,#e7f3e8 62%,#dcece0);border-color:#badbc6}
html[data-theme="light"] .hero:before {background-image:linear-gradient(#2b775312 1px,transparent 1px),linear-gradient(90deg,#2b775312 1px,transparent 1px)}
html[data-theme="light"] .hero h1 {color:#183e2e}
html[data-theme="light"] .hero h1 em {color:#26754c}
html[data-theme="light"] .hero p {color:#567b66}
html[data-theme="light"] .hero-note {color:#5a9774}
html[data-theme="light"] .orb {border-color:#66a98577;box-shadow:0 0 0 20px #6fb98a12,0 0 0 60px #6fb98a10,0 0 95px #7cbb9a23 inset}
html[data-theme="light"] .orb:before {border-color:#4d9a7570}
html[data-theme="light"] .orb:after {background:#5ca478;box-shadow:0 0 35px #458d6580}
html[data-theme="light"] .ridge {border-color:#679f76a8;background:repeating-linear-gradient(0deg,transparent 0 17px,#5eab7f18 18px 19px),linear-gradient(110deg,#9dd7ad57,transparent 60%)}
html[data-theme="light"] .btn {background:#fff;color:#1f583a;border-color:#c4d9c9}
html[data-theme="light"] .btn:hover {border-color:#6eab7f;background:#f0f8ef}
html[data-theme="light"] .btn.primary {color:#fff;background:#287b51;border-color:#287b51}
html[data-theme="light"] .btn.primary:hover {background:#16613c}
html[data-theme="light"] .btn.ghost {background:#fff;color:#255d3f}
html[data-theme="light"] .stat {background:#fff;border-color:#dce6de;box-shadow:0 4px 13px #1c51380a}
html[data-theme="light"] .stat .value {color:#234632}
html[data-theme="light"] .stat .label {color:#61796d}
html[data-theme="light"] .section-heading h2 {color:#1c3b2e}
html[data-theme="light"] .section-heading p {color:#657d70}
html[data-theme="light"] .text-link {color:#297450}
html[data-theme="light"] .category-tile {background:#fff;border-color:#d6e3d8}
html[data-theme="light"] .category-tile:hover {border-color:#72ae86;box-shadow:0 8px 20px #2a664414}
html[data-theme="light"] .category-tile strong {color:#254e39}
html[data-theme="light"] .category-tile small {color:#627b6c}
html[data-theme="light"] .entry-card {background:#fff;border-color:#d7e4da;box-shadow:0 2px 8px #2e63360a}
html[data-theme="light"] .entry-card:hover {border-color:#77ab85;box-shadow:0 7px 20px #24573913}
html[data-theme="light"] .cover {background:radial-gradient(circle at 48% 45%,color-mix(in srgb,var(--item) 24%,#f4f8f3),#eff5f0 78%);border-color:#d9e6da}
html[data-theme="light"] .cover:before {border-color:color-mix(in srgb,var(--item) 37%,transparent)}
html[data-theme="light"] .cover:after {border-color:color-mix(in srgb,var(--item) 42%,transparent)}
html[data-theme="light"] .cover-kind {color:#3a634b;background:#ffffffd9;border-color:#d0e3d5}
html[data-theme="light"] .entry-category {color:#387b55}
html[data-theme="light"] .entry-body h3 {color:#1d3a2d}
html[data-theme="light"] .entry-desc {color:#647f6f}
html[data-theme="light"] .entry-footer {color:#277b4e}
html[data-theme="light"] .entry-footer .origin {color:#7c9386}
html[data-theme="light"] .guide-tile {border-color:#d3e3d9;background:linear-gradient(155deg,#fff,#edf6ef)}
html[data-theme="light"] .guide-tile:hover {border-color:#79a88b}
html[data-theme="light"] .guide-tile .marker {color:#35845a}
html[data-theme="light"] .guide-tile h3 {color:#1c3d2c}
html[data-theme="light"] .guide-tile p {color:#61786a}
html[data-theme="light"] .guide-tile .arrow {color:#3f8f65}
html[data-theme="light"] .chip {background:#fff;border-color:#d7e2d9;color:#4e6d5a}
html[data-theme="light"] .chip:hover,html[data-theme="light"] .chip.active {background:#e8f5eb;border-color:#7bb18b;color:#206141}
html[data-theme="light"] .result-counter {color:#5b7767}
html[data-theme="light"] .empty {border-color:#c4d8c8;color:#567767}
html[data-theme="light"] .empty strong {color:#214832}
html[data-theme="light"] .detail-illustration {background:radial-gradient(circle at center,color-mix(in srgb,var(--item) 21%,#fff),#eaf4ed);border-color:#d5e4da}
html[data-theme="light"] .detail-illustration:after {border-color:#4c946c55}
html[data-theme="light"] .detail-note {color:#6b8674}
html[data-theme="light"] .detail-info {background:#fff;border-color:#d6e5d9}
html[data-theme="light"] .detail-info h2 {color:#20432e}
html[data-theme="light"] .detail-info p {color:#5d7968}
html[data-theme="light"] .meta-row {border-color:#e0e9e1}
html[data-theme="light"] .meta-row span:first-child {color:#6e8577}
html[data-theme="light"] .meta-row span:last-child {color:#2b5039}
html[data-theme="light"] .notice {background:#fff6e8;border-color:#e8d5ac;color:#79572c}
html[data-theme="light"] .info-banner {background:#e9f5e9;border-color:#3d9a67;color:#315c3c}
html[data-theme="light"] .article-pane {background:#fff;border-color:#d6e4db}
html[data-theme="light"] .article-nav {background:#fff;border-color:#d6e5da}
html[data-theme="light"] .article-nav strong {color:#315f43}
html[data-theme="light"] .article-nav a {color:#5b7b67}
html[data-theme="light"] .article-nav a:hover {color:#286b48}
html[data-theme="light"] .markdown {color:#405c4b}
html[data-theme="light"] .markdown h1 {color:#183f2c}
html[data-theme="light"] .markdown h2,html[data-theme="light"] .markdown h3 {color:#1c5035}
html[data-theme="light"] .markdown a {color:#216c48}
html[data-theme="light"] .markdown code:not([class]) {color:#235a3c;background:#e8f3ea}
html[data-theme="light"] .markdown pre {background:#f0f5f0!important;color:#2c4938!important;border:1px solid #d3e3d7}
html[data-theme="light"] .markdown th,html[data-theme="light"] .markdown td {border-color:#d4e2d7}
html[data-theme="light"] .markdown th {background:#edf5ee;color:#244934}
html[data-theme="light"] .markdown blockquote {color:#5b7b68;border-color:#51a074}
html[data-theme="light"] .source-footer {color:#637e6d;border-color:#dbe7de}
html[data-theme="light"] .source-footer a,html[data-theme="light"] .light-link {color:#347754}
html[data-theme="light"] .mini-pill {color:#2d7450;border-color:#a6c9ad}

/* Shared table and remotely sourced image components */
.asset-table-toolbar {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin:21px 0 13px}
.asset-table-count {display:flex;flex-wrap:wrap;align-items:center;gap:13px;font-size:12px;color:var(--muted)}
.asset-table-count strong {font-size:14px;color:var(--text)}
.asset-table-controls {display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.table-check {display:flex;gap:8px;align-items:center;cursor:pointer;color:var(--text);font-size:12px}
.table-check input {accent-color:var(--accent);width:15px;height:15px}
.table-page-limit {display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
.table-page-limit select {padding:7px 11px;color:var(--text);border:1px solid var(--edge);border-radius:7px;background:var(--surface)}
.asset-table-scroll {overflow-x:auto;border:1px solid var(--edge);border-radius:12px;background:var(--surface);scrollbar-width:thin}
.asset-table {width:100%;min-width:740px;border-collapse:collapse;font-size:12px}
.asset-table th {position:sticky;top:0;z-index:1;text-align:left;font-size:11px;font-weight:750;letter-spacing:.15px;color:var(--muted);background:var(--surface2);border-bottom:1px solid var(--edge);padding:13px 14px;white-space:nowrap}
.asset-table td {border-bottom:1px solid var(--edge);padding:10px 14px;vertical-align:middle;color:var(--text)}
.asset-table tr:last-child td {border-bottom:0}
.asset-table tbody tr:hover {background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.asset-table th:first-child {width:106px}.asset-table th:nth-child(2) {min-width:170px;width:20%}.asset-table th:nth-child(3) {min-width:270px;width:42%}.asset-table th:nth-child(4) {min-width:110px}
.table-sort {all:unset;cursor:pointer;color:inherit;display:inline-flex;align-items:center;min-height:20px}
.table-sort:hover {color:var(--accent)}
.table-sort:focus-visible {outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.asset-table-title a {font-size:13px;font-weight:740;color:var(--text)}
.asset-table-title a:hover {color:var(--accent);text-decoration:underline}
.asset-table-title small {display:block;color:var(--muted);font-size:10px;margin-top:4px}
.asset-table-description {color:var(--muted)!important;line-height:1.65}
.table-category {font-size:11px}
.table-source a {white-space:nowrap;color:var(--accent);font-weight:700;font-size:11px}
.table-source a:hover {text-decoration:underline}
.table-empty {text-align:center;padding:50px!important;color:var(--muted)}
wiki-asset-preview.asset-preview {display:flex;align-items:center;justify-content:center;min-width:76px;width:76px;height:76px;overflow:hidden;background:var(--surface2);border:1px solid var(--edge);border-radius:9px}
.asset-preview__img {max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block}
.preview-missing {color:var(--muted);font-size:10px;text-align:center;padding:5px;line-height:1.35}
.cover:before,.cover:after {z-index:0;pointer-events:none}
.cover wiki-asset-preview.asset-preview {width:100%;height:100%;min-width:0;max-width:100%;position:relative;z-index:1;border:0;background:transparent;border-radius:0;padding:10px}
.cover .cover-kind {z-index:2}
.cover wiki-asset-preview .asset-preview__img {object-fit:contain;filter:drop-shadow(0 8px 10px #0001)}
.detail-illustration wiki-asset-preview.asset-preview {width:100%;height:100%;border:0;background:transparent;position:relative;z-index:3}
.detail-illustration .asset-preview__img {object-fit:contain;padding:18px;filter:drop-shadow(0 10px 14px #0001)}
.table-pagination {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px;margin:20px 0 5px}
.table-pagination span {font-size:12px;color:var(--muted)}
.table-pagination button:disabled {cursor:not-allowed;opacity:.42}
.table-copyright {font-size:11px;line-height:1.75;color:var(--muted);margin-top:17px;max-width:820px}
.view-switch {display:inline-flex;align-items:center;gap:4px;background:var(--surface2);border:1px solid var(--edge);border-radius:9px;padding:3px}
.view-switch a {padding:6px 12px;border-radius:6px;color:var(--muted);font-size:12px;font-weight:650}
.view-switch a.active {background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #0001}
.theme-toggle {display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid var(--edge);border-radius:9px;background:var(--surface);color:var(--text);font-size:16px}
.theme-toggle:hover {border-color:var(--accent)}
html[data-theme="light"] .theme-toggle {background:#fff;border-color:#d2e1d5;color:#2c6746}
@media(max-width:640px) {
  .asset-table-toolbar {align-items:flex-start}
  .asset-table-count {width:100%}
  .asset-table-scroll {border-radius:9px}
  .asset-table th,.asset-table td {padding:9px}
  .theme-toggle {width:34px;height:34px}
  .table-pagination {gap:10px}
}
