@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f3f5f2;
  --surface: #ffffff;
  --surface-soft: #ebefe9;
  --ink: #16362e;
  --text: #223830;
  --muted: #5a685d;
  --line: #d5ddd4;
  --line-soft: #e4eae2;
  --teal: #215245;
  --gold: #856425;
  --gold-pale: #f2eddf;
  --sidebar-width: 228px;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Noto Serif KR", "Batang", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button, input, select { border-radius: 6px; }
button:disabled { cursor: default; }
svg { display: block; flex: 0 0 auto; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); word-break: keep-all; }
h1 { margin-bottom: 8px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 750; line-height: 1.28; letter-spacing: -0.8px; }
h2 { font-size: 19px; line-height: 1.38; letter-spacing: -.4px; }
h3 { font-size: 16px; line-height: 1.45; letter-spacing: -.2px; }
::selection { background: #dae5ce; color: #153b30; }
:focus-visible { outline: 2px solid #a7772c; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; min-height: 40px; padding: 8px 16px; background: var(--teal); color: #fff; transform: translateY(-180%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }

/* Compact Left Sidebar Navigation */
.sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); overflow-y: auto; overscroll-behavior: contain; background: #15362e; color: #e3eade; border-right: 1px solid #122e27; scrollbar-width: thin; scrollbar-color: #6c8371 #15362e; }
.brand { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0 16px; padding: 16px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 38px; border: 1px solid #b5a16d; color: #e2c68a; font: 20px/1 Georgia, serif; clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { display: block; color: #fffdf3; font-size: 18px; font-weight: 750; line-height: 1.3; letter-spacing: -.5px; }
.brand-caption { display: block; margin-top: 2px; color: #b8c8b2; font-size: 11px; line-height: 1.3; letter-spacing: .5px; }
/* Hide redundant sidebar search button since topbar has instant global search */
.sidebar-search { display: none !important; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 18px; }
.nav-group { margin-top: 10px; }
.nav-group-title, .nav-label { display: block; margin: 0 0 4px; padding: 0 10px; color: #9eb398; font-size: 11.5px; font-weight: 700; line-height: 1.4; letter-spacing: .2px; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 10px; border-radius: 6px; color: #dce5d6; font-size: 13.5px; line-height: 1.45; transition: background 120ms ease; }
.nav-link:hover { background: #234b3e; color: #fffdf3; }
.nav-link[aria-current="page"] { background: #2d5848; color: #fffdf3; font-weight: 700; }
.nav-link[aria-current="page"]::before { position: absolute; inset: 7px auto 7px 0; width: 3px; border-radius: 2px; background: #ddbf7b; content: ""; }
.nav-icon { display: grid; place-items: center; width: 18px; height: 20px; color: #b9cdb2; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-link[aria-current="page"] .nav-icon { color: #eed59e; }
.nav-count { margin-left: auto; color: #b4c6ad; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sidebar-foot { margin: auto 16px 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #b4c6ad; font-size: 11.5px; line-height: 1.6; }
.sidebar-foot strong { display: block; color: #edf2e5; font-size: 12px; font-weight: 650; }
.sidebar-foot > span:last-child { display: block; }

/* Workspace & Sticky Topbar */
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 8px 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); }
.crumbs { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.crumbs a { color: var(--ink); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: #8a9989; }
.global-search { display: flex; flex: 0 1 320px; align-items: center; gap: 8px; min-width: 180px; min-height: 38px; padding: 0 4px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); transition: border-color 120ms ease, background-color 120ms ease; }
.global-search .search-icon svg, .global-search > svg { width: 16px; height: 16px; color: var(--muted); }
.global-search input { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13.5px; }
.global-search input::placeholder { color: #687564; }
.global-search:focus-within { background: var(--surface); border-color: var(--teal); box-shadow: 0 0 0 3px #23544714; }
.global-search button { display: grid; flex: 0 0 auto; place-items: center; width: 30px; min-height: 30px; padding: 5px; border: 0; border-radius: 6px; background: var(--teal); color: #fffdf4; }
.global-search button svg { width: 15px; height: 15px; }
.global-search button:hover { background: #173e31; }
.menu-toggle, .sidebar-close { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.menu-toggle svg, .sidebar-close svg { width: 20px; height: 20px; }
.mobile-overlay { display: none; }
main { width: min(100%, 1360px); min-height: calc(100vh - 160px); margin: 0 auto; padding: 20px 28px 0; }
.page-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; width: min(calc(100% - 56px), 1304px); margin: 44px auto 0; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Headings & Search Forms */
.dictionary-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
.dictionary-heading h1 { margin: 0; font-size: clamp(22px, 2.5vw, 30px); }
.heading-label { display: block; margin-bottom: 4px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.heading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.record-count { display: block; color: var(--muted); font-size: 13px; }
.heading-count { display: inline-block; margin-left: 8px; color: #5f735d; font-size: .65em; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; vertical-align: .1em; }
.ruleset { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 24px; padding: 2px 8px; border: 1px solid #d3c8a5; border-radius: 999px; background: var(--gold-pale); color: #725721; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.index-search { margin: 0 0 20px; }
.search-form { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 4px 6px 4px 14px; border: 1px solid #b5c4b0; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 20, 0.04); }
.search-form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px #23544718; }
.search-icon { flex: 0 0 auto; color: #526c52; }
.search-icon svg { width: 18px; height: 18px; }
.search-form input { flex: 1; width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14.5px; }
.search-form input::placeholder { color: #677460; }
.search-form input:focus-visible { outline: 0; }
.search-submit { flex: 0 0 auto; align-self: stretch; min-width: 68px; min-height: 36px; padding: 6px 16px; border: 1px solid var(--teal); border-radius: 6px; background: var(--teal); color: #fffdf3; font-size: 13.5px; font-weight: 700; }
.search-submit:hover { background: #173f32; }
.search-shortcut { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border: 1px solid #cdd5c6; border-radius: 5px; background: #f5f6ed; color: #60725b; font-size: 12px; }
.search-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 750; }
.section-head a { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; color: var(--teal); font-size: 12.5px; font-weight: 650; }
.section-head h2 a { font-size: inherit; font-weight: inherit; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-head svg { width: 16px; height: 16px; }
.group-count { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.directory-group { min-width: 0; padding: 14px 16px 10px; border: 1px solid var(--line); border-top: 3px solid #78906d; border-radius: 8px; background: var(--surface); }
.directory-group h2, .directory-group h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.directory-links { display: grid; grid-template-columns: 1fr; }
.directory-links a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; min-height: 38px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: 14px; line-height: 1.45; }
.directory-links a:last-child { border-bottom: 0; }
.directory-links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.directory-icon { color: #6a7c56; }
.directory-icon svg { width: 18px; height: 18px; }
.directory-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.directory-links a > svg { width: 14px; height: 14px; color: #8b9d80; }

.home-section-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 12px 0; border-block: 1px solid var(--line); }
.home-section-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--teal); font-size: 13px; line-height: 1.4; }
.home-section-nav a:hover { border-color: #899e7d; background: #eaf0e2; }
.index-group { margin-bottom: 26px; }
.index-tiles, .related-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.index-tile { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 68px; padding: 10px 12px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.index-tile:hover { background: #eaf0e2; }
.index-tile > span:last-child { min-width: 0; }
.index-tile .entity-picture { width: 42px; height: 42px; }
.index-tile .entity-picture[data-category='civilizations'] { padding: 5px; }
.index-more { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: #eaf0e2; color: var(--teal); font-size: 13px; font-weight: 600; }
.index-more:hover { background: #dfe9d6; }
.index-more svg { width: 15px; height: 15px; }
.tile-civilization { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.tile-civilization img { width: 17px; height: 17px; padding: 2px; border-radius: 50%; background: #355747; object-fit: contain; }

/* Listings: Compact Filter Bar, Toolbar, and High-Density Rows */
.browse-layout { margin: 0; }
.browse-search { margin-bottom: 10px; }
.filter-panel { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.filter-panel > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; color: var(--ink); font-size: 13.5px; font-weight: 700; list-style: none; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary > span { color: var(--muted); font-size: 12px; font-weight: 400; }
.filter-panel > summary svg { width: 16px; height: 16px; margin-left: auto; }
.filter-panel[open] > summary { border-bottom: 1px solid var(--line-soft); }
.filter-panel[open] > summary svg { transform: rotate(90deg); }
.filter-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
.filter-group { display: flex; align-items: flex-start; gap: 12px; }
.filter-label { flex: 0 0 36px; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 34px; padding: 5px 11px; border: 1px solid #ced7c7; border-radius: 6px; background: #fffefa; color: #425e42; font-size: 12.5px; line-height: 1.4; }
.filter-chip:hover { border-color: #718d66; background: #eef3e7; }
.filter-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #fffdf4; font-weight: 650; }
.filter-category-select { width: min(100%, 280px); min-height: 36px; padding: 6px 10px; border: 1px solid #c2cdbb; background: var(--surface); color: var(--ink); font-size: 13px; }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 48px; padding: 8px 0; color: var(--muted); font-size: 13px; }
.results-summary { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.results-count { margin: 0; }
.results-count strong { color: var(--ink); font-size: 15.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.active-filters:empty { display: none; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 4px 9px; border: 1px solid #bbcdb0; border-radius: 999px; background: #e8f0df; color: #2a5038; font-size: 12px; line-height: 1.4; }
.active-filter:hover { border-color: #6d8c60; background: #dce9d1; }
.active-filter svg { width: 13px; height: 13px; }
.sort-select { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; color: var(--muted); font-size: 12.5px; }
.sort-select select { min-height: 36px; max-width: 150px; padding: 5px 8px; border: 1px solid #c2cdbb; background: var(--surface); color: var(--ink); font-size: 13px; }

.listing-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 0 12px; color: var(--muted); font-size: 12.5px; }
.pagination-slot:last-of-type .listing-pagination { padding: 14px 0 0; }
.page-numbers { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 5px 9px; border: 1px solid #ccd5c5; border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
a.page-link:hover { border-color: #6e8a62; background: #e7efde; }
.page-link[aria-current='page'] { border-color: var(--teal); background: var(--teal); color: #fffdf4; font-weight: 700; }
.page-direction { min-width: 48px; }
.page-gap { padding: 0 3px; }
.page-range { margin-left: auto; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }

.listing-caption { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 8px 16px; border-top: 2px solid #6f8866; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #e9ede0; color: #4a6345; font-size: 12px; font-weight: 700; }
.entry-list, .data-list { display: block; border: 1px solid var(--line); border-top: 2px solid #6f8866; border-radius: 8px; background: var(--surface); }
.listing-caption + .entry-list { border-top: 0; border-radius: 0 0 8px 8px; }
.entry-group-heading { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #eef2e8; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.entry-row + .entry-group-heading { border-top: 2px solid #6f8866; }
.entry-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 76px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.entry-row:last-child { border-bottom: 0; }
.entry-row:nth-child(even) { background: #f8faf6; }
.entry-row:hover { background: #eff4eb; }
.entry-identity { min-width: 0; }
.entry-name-link { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 48px; border-radius: 4px; }
.entry-name-link:hover .entry-title { color: #194d37; text-decoration: underline; text-underline-offset: 4px; }
.entry-identity .entity-picture { width: 48px; height: 48px; }
.entry-title { display: block; min-width: 0; margin: 0; color: var(--ink); font-size: 15.5px; font-weight: 750; line-height: 1.4; letter-spacing: -.2px; word-break: keep-all; overflow-wrap: anywhere; }
.entry-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.entry-era { display: block; margin-top: 2px; color: #656c52; font-size: 11.5px; font-weight: 400; line-height: 1.4; }
.entry-identity > .civ-badge { margin: 5px 0 0 59px; }
.entry-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px 18px; min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.entry-metric { display: block; min-width: 0; }
.metric-label { display: block; margin-bottom: 2px; color: #5d6e58; font-size: 12px; line-height: 1.45; font-weight: 600; }
.metric-value { display: block; color: #203d2e; font-size: 14px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.entry-effect { grid-column: 1 / -1; }
.entry-effect .metric-value { max-width: 86ch; font-size: 14px; }
.entry-metric .civ-badge { margin-left: 3px; }
#search-results:focus { outline: 0; }
.empty-state { margin-top: 16px; padding: 36px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; }
.empty-state h2 { margin-bottom: 10px; font-size: 19px; }
.reset-search { min-height: 38px; padding: 7px 16px; border: 1px solid #8ea383; border-radius: 6px; background: #eaf1e2; color: var(--teal); font-size: 13.5px; font-weight: 600; }
.reset-search:hover { background: #dae7ce; }
.notice { margin: 14px 0; padding: 12px 16px; border: 1px solid #d4c39a; border-radius: 8px; background: #f7f1df; color: #654e23; font-size: 13.5px; }

/* Detail Pages */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; color: var(--teal); }
.breadcrumb a svg { width: 15px; height: 15px; transform: rotate(180deg); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-layout { display: block; }
.detail-layout > article { min-width: 0; }
.record-header { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 2px solid #6f8866; }
.record-art { display: grid; flex: 0 0 76px; place-items: center; width: 76px; height: 76px; }
.record-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.record-heading { min-width: 0; }
.record-summary { margin: 18px 0; max-width: 78ch; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.record-header h1 { margin: 0; font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; line-height: 1.25; letter-spacing: -.6px; }
.detail-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; color: #665e3e; font-size: 12px; line-height: 1.4; }
.detail-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.english-name { display: block; margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.record-header .ruleset { align-self: flex-start; margin-left: auto; }
.record-connections { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
.record-connections:empty { display: none; }
.record-connections .civ-badge { margin: 0; }
.classification-link { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border: 1px solid #c3d0b8; border-radius: 6px; background: #eff3e7; color: #355b37; font-size: 12px; line-height: 1.4; }
.classification-link:hover { border-color: #8da17d; background: #e4edda; }
.replacement-link { color: var(--muted); }
.record-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.highlight { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid #d6dec9; border-radius: 8px; background: #eef2e6; }
.highlight dt { margin: 0 0 4px; color: #566e4e; font-size: 12px; font-weight: 600; line-height: 1.4; }
.highlight dd { margin: 0; color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.45; font-variant-numeric: tabular-nums; word-break: keep-all; overflow-wrap: anywhere; }
.highlight dd .term-link { font-weight: 650; }
.article-jumpbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0; padding: 10px 0; border-block: 1px solid var(--line); }
.article-jumpbar a { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--teal); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.article-jumpbar a:hover { border-color: #8aa17a; background: #e9f0df; }
.mobile-toc { margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mobile-toc > summary { min-height: 40px; padding: 8px 14px; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.mobile-toc > summary span { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.mobile-toc > nav { padding: 6px 14px 12px; }
.mobile-toc .toc-link { margin-left: 0; padding-left: 10px; }
.data-section { margin: 22px 0; }
.shared-civilization { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--ink); }
.shared-civilization .entity-picture { width: 36px; height: 36px; }
.shared-civilization strong { font-size: 15.5px; }
.shared-civilization > span:last-child { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: auto; color: var(--muted); font-size: 12.5px; }
.shared-civilization > span:last-child svg { width: 15px; height: 15px; }
.shared-civilization:hover { border-color: #8da17d; background: #e4edda; }
.common-section-title { margin: 16px 0 10px; font-size: 15.5px; }
.data-section > h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; color: var(--ink); font-size: 18.5px; font-weight: 750; line-height: 1.35; letter-spacing: -.4px; }
.data-section > h2 .group-count { margin-left: 0; }
.section-permalink { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; color: #687e5f; font-size: 15px; font-weight: 500; text-decoration: none; }
.section-permalink:hover { color: var(--teal); text-decoration: underline; }
.data-rows { display: block; margin: 0; border: 1px solid var(--line); border-top: 2px solid #a2b197; border-radius: 8px; background: var(--surface); }
.data-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.65; }
.data-row:last-child { border-bottom: 0; }
.data-row dt { min-width: 0; padding: 10px 14px; border-right: 1px solid var(--line); background: #eef1e7; color: #496343; font-size: 12.5px; font-weight: 600; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.data-row dd { min-width: 0; margin: 0; padding: 10px 16px; color: #223e2e; word-break: keep-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.data-row:nth-child(even) dd { background: #fbfcf6; }
.data-row dt .term-link { text-decoration-color: #8fa17e; }
.record-facts { display: block; }
.related-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-index .index-tile { min-height: 64px; padding: 10px 12px; font-size: 13.5px; }
.related-index .entity-picture { width: 40px; height: 40px; }
.more-references { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--surface); }
.more-references summary { min-height: 38px; padding: 8px 14px; background: #eaf0e2; color: var(--teal); font-size: 13px; font-weight: 600; line-height: 1.5; }
.more-references summary:hover { background: #e0eada; }
.more-references .related-index, .more-references .data-list { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.upgrade-chain { padding: 16px; border: 1px solid #d4ddca; border-radius: 8px; background: #edf2e6; }
.upgrade-current { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--ink); font-size: 16px; }
.upgrade-current .entity-picture { width: 44px; height: 44px; }
.upgrade-direction + .upgrade-direction { margin-top: 16px; }
.upgrade-direction h3 { margin: 0 0 8px; color: #45613e; font-size: 14px; font-weight: 700; }
.detail-aside { display: none; min-width: 0; }
.toc { padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.toc > p { margin: 0 0 10px; color: var(--ink); font-size: 12.5px; font-weight: 750; line-height: 1.4; }
.toc-link { display: block; margin-left: -15px; padding: 6px 8px 6px 14px; border-left: 2px solid transparent; color: var(--muted); font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.toc-link:hover { background: #eaf0e2; color: var(--teal); }
.toc-link[aria-current="location"] { border-left-color: var(--teal); background: #e6eedb; color: var(--ink); font-weight: 700; }
.toc-top { display: inline-flex; align-items: center; min-height: 36px; margin-top: 8px; color: var(--teal); font-size: 12.5px; }
.toc-top:hover { text-decoration: underline; }
.game-scene { margin: 14px 0 20px; }
.game-scene img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.game-scene figcaption { padding-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--teal); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 16px; height: 16px; }

/* Game art, glyphs and keyword links */
.entity-picture { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; }
.entity-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.entity-picture.scene-picture { border-radius: 6px; }
.entity-picture.scene-picture img { object-fit: cover; }
.entity-picture[data-category='units'], .entity-picture[data-category='civilizations'], .entity-picture[data-category='great-people'], .entity-picture[data-monochrome='true'] { padding: 6px; border-radius: 50%; background: #355747; }
.entity-picture[data-category='research'] { padding: 3px; }
.record-art[data-category='units'], .record-art[data-category='civilizations'], .record-art[data-category='great-people'], .record-art[data-monochrome='true'] { padding: 12px; border-radius: 50%; background: #355747; }
.record-art[data-image-kind='symbol'] img { max-width: 48px; max-height: 48px; image-rendering: auto; }
.category-picture { border: 1px solid #c4d3b6; border-radius: 7px; background: #e4edd8; color: #426f3e; }
.category-picture svg { width: 60%; height: 60%; }
.term-icon { display: inline-block; width: 19px; height: 19px; margin: 0 3px 0 0; vertical-align: -.26em; object-fit: contain; }
.term-icon[data-category='units'], .term-icon[data-category='civilizations'], .term-icon[data-category='great-people'], .term-icon[data-monochrome='true'] { padding: 2px; border-radius: 50%; background: #355747; }
.metric-label .term-icon, .data-row dt .term-icon, .highlight dt .term-icon { width: 16px; height: 16px; margin-right: 3px; vertical-align: -.25em; }
.game-term { white-space: nowrap; }
.term-link { color: #205d3c; text-decoration: underline; text-decoration-color: #82a171; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: normal; word-break: keep-all; }
.term-link, .game-term { display: inline-flex; align-items: baseline; max-width: 100%; gap: 3px; vertical-align: baseline; }
.term-label { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.term-link > .term-icon, .game-term > .term-icon, .term-category-icon { flex: none; margin-right: 0; }
.listing-guide-help { margin-top: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.listing-guide-help > summary { min-height: 40px; padding: 10px 16px; cursor: pointer; color: var(--teal); font-weight: 650; font-size: 13.5px; }
.listing-guide-help > .mg-bridge { margin: 0; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.term-link:hover { color: #694d19; text-decoration-color: #96763a; background: #f1edda; }
.term-reference { display: inline; max-width: 100%; vertical-align: baseline; }
.term-category-icon { display: inline-flex; width: 18px; height: 18px; margin-right: 3px; vertical-align: -.25em; color: #466b40; }
.term-category-icon svg { width: 18px; height: 18px; }
.civ-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 24px; margin-left: 5px; padding: 2px 8px 2px 4px; border: 1px solid #c0d0b3; border-radius: 999px; background: #edf3e4; color: #365a34; font-size: 11.5px; font-weight: 600; line-height: 1.4; text-decoration: none; vertical-align: middle; white-space: normal; }
.civ-badge img, .preview-owner img { flex: 0 0 auto; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #355747; object-fit: contain; }
.civ-badge:hover { border-color: #849e71; background: #dfeccd; color: #244923; }
.term-preview { position: fixed; z-index: 150; width: 340px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #aabf9b; border-top: 3px solid #567f49; border-radius: 10px; background: #ffffff; color: var(--text); box-shadow: 0 10px 30px rgba(15, 23, 20, 0.16); }
.preview-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.preview-heading .entity-picture { width: 48px; height: 48px; }
.preview-heading small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.preview-heading strong { display: block; margin: 2px 0; color: var(--ink); font-size: 17px; font-weight: 750; line-height: 1.3; }
.preview-heading span[lang] { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.preview-owner { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #526c49; font-size: 12px; line-height: 1.4; }
.term-preview dl { margin: 0; border-top: 1px solid var(--line); }
.term-preview dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.55; }
.term-preview dt { color: #566c4e; font-weight: 600; }
.term-preview dd { min-width: 0; margin: 0; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }

@media (min-width: 1280px) {
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: start; gap: 28px; }
  .detail-aside { display: block; align-self: stretch; }
  .detail-aside .toc { position: sticky; top: 80px; max-height: calc(100dvh - 104px); overflow: auto; scrollbar-width: thin; }
  .mobile-toc { display: none; }
  .detail-layout .entry-row { grid-template-columns: 205px minmax(0, 1fr); gap: 16px; padding-inline: 14px; }
  .detail-layout .entry-metrics { gap: 10px 14px; padding-left: 16px; }
}
@media (max-width: 1279px) {
  .article-jumpbar { display: none; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry-row, .listing-caption { grid-template-columns: 205px minmax(0, 1fr); gap: 16px; }
  .entry-row { padding: 12px 14px; }
  .entry-metrics { gap: 10px 14px; padding-left: 16px; }
  .related-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .global-search { flex-basis: 280px; }
}
@media (max-width: 1000px) {
  .workspace { margin-left: 0; }
  .sidebar { z-index: 80; width: min(280px, calc(100vw - 48px)); visibility: hidden; transform: translateX(-100%); transition: transform 160ms ease, visibility 160ms; }
  body.menu-open .sidebar, .app-shell.menu-open .sidebar, .sidebar.is-open { visibility: visible; transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .sidebar .brand { margin-top: 20px; }
  .sidebar-close { position: absolute; top: 9px; right: 11px; display: flex; border-color: #66816c; background: #244d3e; color: #f6f6e8; }
  .menu-toggle { display: flex; flex: 0 0 38px; }
  .mobile-overlay { position: fixed; z-index: 70; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #0a2219a6; }
  body.menu-open .mobile-overlay, .app-shell.menu-open .mobile-overlay, .mobile-overlay.is-open { display: block; }
  .topbar { gap: 12px; padding-inline: 20px; }
  .global-search { flex-basis: 280px; }
  main { padding: 18px 20px 0; }
  .page-footer { width: calc(100% - 40px); }
  .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .directory-group { padding-inline: 14px; }
}
@media (max-width: 800px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-row, .listing-caption { grid-template-columns: 185px minmax(0, 1fr); gap: 14px; }
  .entry-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding-left: 14px; }
  .record-header { gap: 14px; }
  .record-art { flex-basis: 68px; width: 68px; height: 68px; }
  .record-highlights { gap: 8px; }
  .highlight { padding: 10px 12px; }
  .related-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-header .ruleset { margin-left: 0; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 124px; }
  .topbar { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px 10px; min-height: 0; padding: 8px 14px; }
  .topbar .crumbs { font-size: 12px; gap: 4px 6px; }
  .global-search { grid-column: 1 / -1; min-width: 0; min-height: 36px; padding-left: 10px; }
  .global-search input { height: 34px; font-size: 15px; }
  .global-search button { width: 32px; min-height: 32px; }
  main { padding: 14px 14px 0; }
  .page-footer { width: calc(100% - 28px); margin-top: 32px; padding: 16px 0 20px; }
  .dictionary-heading { align-items: flex-start; gap: 8px 12px; margin-bottom: 14px; }
  .dictionary-heading h1 { font-size: 24px; }
  .search-form { gap: 8px; padding-left: 10px; min-height: 42px; }
  .search-form input { font-size: 15px; height: 34px; }
  .search-submit { min-width: 56px; min-height: 34px; padding-inline: 10px; }
  .search-shortcut { display: none; }
  .index-search { margin-bottom: 18px; }
  .directory-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .directory-group { padding: 14px 14px 8px; }
  .directory-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .directory-links a { grid-template-columns: 18px minmax(0, 1fr) auto; font-size: 13px; gap: 6px; }
  .directory-links a > svg { display: none; }
  .directory-links a:last-child { border-bottom: 1px solid var(--line-soft); }
  .home-section-nav { gap: 6px; margin-bottom: 18px; padding-block: 10px; }
  .home-section-nav a { padding-inline: 10px; font-size: 12.5px; }
  .section-head { align-items: center; }
  .section-head h2 { font-size: 17px; }
  .index-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-group { margin-bottom: 22px; }
  .index-tile { gap: 8px; min-height: 62px; padding: 9px; font-size: 13px; }
  .index-tile .entity-picture { width: 36px; height: 36px; }
  .filter-panel { margin-top: 10px; }
  .filter-bar { padding: 10px 12px; }
  .filter-group { flex-direction: column; gap: 6px; }
  .filter-label { flex-basis: auto; margin: 0; }
  .filter-options { gap: 5px; }
  .filter-chip { padding-inline: 9px; min-height: 32px; }
  .results-toolbar { gap: 8px 12px; padding: 10px 0 8px; }
  .results-summary { align-items: flex-start; gap: 6px; }
  .active-filters { flex-basis: 100%; }
  .active-filter { min-height: 32px; padding-block: 4px; }
  .listing-pagination { gap: 8px; padding-bottom: 12px; }
  .page-numbers { gap: 4px; }
  .page-link { min-width: 36px; min-height: 36px; padding-inline: 8px; }
  .page-direction { min-width: 44px; }
  .page-range { flex-basis: 100%; margin-left: 0; font-size: 11.5px; }
  .listing-caption { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 12px; }
  .listing-caption span:last-child { color: var(--muted); font-weight: 400; }
  .entry-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 12px; }
  .entry-name-link { gap: 10px; min-height: 46px; }
  .entry-identity .entity-picture { width: 46px; height: 46px; }
  .entry-title { font-size: 15.5px; }
  .entry-identity > .civ-badge { margin-top: 4px; margin-left: 56px; }
  .entry-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 10px 0 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .metric-label { font-size: 11.5px; }
  .metric-value, .entry-effect .metric-value { font-size: 13.5px; line-height: 1.55; }
  .entry-metric--wide { grid-column: 1 / -1; }
  .breadcrumb { margin-bottom: 12px; font-size: 12.5px; }
  .record-header { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px 12px; padding-bottom: 16px; }
  .record-art { grid-row: 1 / span 2; width: 64px; height: 64px; }
  .record-heading { flex: 1; min-width: 0; }
  .record-heading:first-child { grid-column: 1 / -1; }
  .record-header h1 { font-size: 22px; overflow-wrap: anywhere; }
  .detail-kicker { gap: 4px; margin-bottom: 4px; font-size: 12px; }
  .english-name { margin-top: 3px; font-size: 12px; }
  .record-header .ruleset { grid-column: 2; justify-self: start; margin-left: 0; }
  .record-heading:first-child ~ .ruleset { grid-column: 1 / -1; }
  .record-connections { gap: 5px; margin-top: 6px; font-size: 12px; }
  .record-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
  .highlight { padding: 10px 12px; }
  .highlight dd { font-size: 15.5px; }
  .highlight--wide, .highlight--last-short { grid-column: 1 / -1; }
  .article-jumpbar { gap: 6px; margin: 14px 0; }
  .article-jumpbar a { min-height: 36px; padding-inline: 9px; }
  .mobile-toc { margin: 14px 0; }
  .mobile-toc .toc-link { min-height: 36px; }
  .data-section { margin: 20px 0; }
  .data-section > h2 { font-size: 17.5px; }
  .data-row { grid-template-columns: minmax(0, 1fr); }
  .data-row dt { padding: 8px 12px 4px; border-right: 0; background: #eef1e7; font-size: 12px; line-height: 1.5; }
  .data-row dd { padding: 6px 12px 10px; font-size: 14px; line-height: 1.6; }
  .data-row:nth-child(even) dd { background: var(--surface); }
  .related-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-index .index-tile { gap: 8px; min-height: 62px; padding: 8px; font-size: 13px; }
  .related-index .entity-picture { width: 36px; height: 36px; }
  .upgrade-chain { padding: 12px; }
  .upgrade-chain .related-index { grid-template-columns: 1fr; }
  .term-preview { width: 320px; padding: 14px; }
}
@media (max-width: 380px) {
  main { padding-inline: 12px; }
  .topbar { padding-inline: 12px; }
  .page-footer { width: calc(100% - 24px); }
  .entry-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-links { gap: 0 12px; }
  .directory-links a { gap: 5px; }
  .index-tile { flex-direction: column; align-items: flex-start; gap: 6px; }
  .related-index .index-tile { flex-direction: row; }
  .record-art { flex-basis: 56px; width: 56px; height: 56px; }
  .record-header h1 { font-size: 20px; }
  .record-header { grid-template-columns: 56px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .sidebar, .topbar, .mobile-overlay, .menu-toggle, .sidebar-close, .detail-aside, .mobile-toc, .article-jumpbar, .term-preview, .filter-panel, .search-form, .listing-pagination, .skip-link, .section-permalink { display: none !important; }
  .workspace { margin-left: 0; }
  main { width: 100%; padding: 0; }
  .detail-layout { display: block; }
  .record-header, .data-section > h2 { break-after: avoid; }
  .data-row, .entry-row, .highlight { break-inside: avoid; }
  .record-header h1 { font-size: 26pt; }
  .data-row { grid-template-columns: 140px minmax(0, 1fr); font-size: 11pt; }
  .data-row dt { border-right: 1px solid #ddd; }
  .data-row dd { font-size: 11pt; }
  .page-footer { width: 100%; margin-top: 25px; }
  .more-references:not([open]) > :not(summary) { display: block; }
  .term-link { color: #163d2c; }
}

.record-block { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--line, #d5dfd9); border-radius: 10px; background: var(--surface, #fff); }
.record-block > .data-section:first-child { margin-top: 0; }
.compat-anchor { display: block; scroll-margin-top: 84px; }
.incoming-references > summary { cursor: pointer; padding: 8px 0; font-weight: 700; font-size: 13.5px; }
.detail-layout:not(:has(.detail-aside)) { display: block; max-width: 1100px; }
.record-effects:empty { display: none; }
@media (max-width: 600px) { .record-block { padding: 12px; } }

.research-mini-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; align-items: center; }
.research-mini-flow .data-row { display: block; }
.research-current { padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; }
.research-mini-flow dl { margin: 0; }
@media (max-width: 600px) { .research-mini-flow { grid-template-columns: 1fr; } .research-current { text-align: center; } }

/* Wiki Infobox Summary & Synchronized Guide Cards */
.wiki-infobox-summary {
  margin: 10px 0 14px;
  border: 1px solid var(--line, #d5dfd9);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #fff);
  min-width: 0;
}
.wiki-infobox-summary__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(23, 60, 56, 0.06);
  border-bottom: 1px solid var(--line, #d5dfd9);
}
.wiki-infobox-summary__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d5dfd9);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #173c38);
}
.wiki-infobox-summary__title {
  font-size: 15px;
  font-weight: 800;
}
.wiki-infobox-summary__en {
  font-size: 13px;
  color: var(--muted, #5c6c67);
}
.wiki-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line, #d5dfd9);
}
.wiki-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface, #fff);
  font-size: 13px;
  min-width: 0;
}
.wiki-meta-row span {
  color: var(--muted, #5c6c67);
  font-weight: 600;
}
.wiki-meta-row strong {
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.civ-synced-guide-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line, #d5dfd9);
  border-radius: 8px;
  background: var(--surface, #fff);
  min-width: 0;
  overflow-x: hidden;
}
.civ-synced-guide-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #d5dfd9);
}
.civ-synced-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: rgba(23, 60, 56, 0.08);
  color: var(--accent, #173c38);
  font-size: 12px;
  font-weight: 700;
}
.civ-synced-guide-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.civ-category-master-table {
  margin: 12px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line, #d5dfd9);
  border-radius: 10px;
  background: var(--surface, #fff);
  min-width: 0;
}
.civ-category-master-table > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14.5px;
}
.civ-master-guide-body {
  margin-top: 12px;
  min-width: 0;
  overflow-x: auto;
}

