/* Archive section (2026-11-09, archive1). One panel shape for every block, same tokens
 * as the rest of the site (styles.css). Article pages are long reads: comfortable
 * measure, generous line height, tables that scroll instead of overflowing. */
.arc-wrap { --arc-gap: 12px; --arc-pad: 14px; max-width: 960px; margin: 0 auto; padding: 0 16px 16px; display: flex; flex-direction: column; gap: var(--arc-gap); }
.arc-wrap a { color: var(--accent); }
.arc-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 0; padding: var(--arc-pad); min-width: 0; }
.arc-panel h2 { font-size: 1.05rem; margin: 0 0 8px; }
.arc-panel h2:not(:first-child) { margin-top: 18px; }
.arc-panel p { margin: 0 0 10px; line-height: 1.55; }
.arc-panel p:last-child { margin-bottom: 0; }

/* Page header: back link, title, language menu (same shape as weapon-compare). */
.arc-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; padding: 12px 0 4px; }
.arc-headtext { flex: 1 1 320px; min-width: 0; }
.arc-head h1, .arc-page-head h1 { font-size: 1.4rem; margin: 0; line-height: 1.25; }
.arc-sub { color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.arc-back { color: var(--accent); text-decoration: none; white-space: nowrap; padding-top: 2px; }
.arc-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.arc-page-head h1 { flex: 1 1 320px; min-width: 0; }

/* Lineage list + legend table. */
.arc-lineage { margin: 0; padding-left: 1.4em; line-height: 1.55; }
.arc-lineage li { margin-bottom: 8px; }
.arc-legend { width: 100%; border-collapse: collapse; }
.arc-legend td { padding: 6px 8px; border-bottom: 1px solid var(--row-border); vertical-align: top; line-height: 1.45; }
.arc-legend td:first-child { white-space: nowrap; }

/* Currency badges (archive vocabulary — kept in English, see the legend). */
.arc-badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem; line-height: 1.5; white-space: nowrap; }
.arc-st-verified { color: var(--ok); border-color: var(--ok); }
.arc-st-timeless { color: var(--accent); border-color: var(--accent); }
.arc-st-outdated, .arc-st-mixed { color: var(--warn); border-color: var(--warn); }
.arc-st-dead { color: var(--muted); border-color: var(--muted); }
.arc-st-lost { color: var(--err); border-color: var(--err); }
.arc-st-pending { color: var(--warn); border-color: var(--warn); }

/* Core cards. */
.arc-core { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.arc-card { background: var(--bg); border: 1px solid var(--border); padding: 12px; }
.arc-card h3 { font-size: 1rem; margin: 0 0 6px; line-height: 1.35; }
.arc-card p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.5; }
.arc-card p:last-child { margin-bottom: 0; }
.arc-card-meta { color: var(--muted); font-size: 0.85rem; }
.arc-dl { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); text-decoration: none; }

/* Inventory tools + table. */
.arc-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.arc-tools input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border); border-radius: 0; }
.arc-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.arc-filter { cursor: pointer; font: inherit; padding: 6px 12px; color: var(--text); background: var(--ctrl-btn-muted-bg); border: 1px solid var(--border); border-radius: 0; }
.arc-filter.on { background: var(--chip-active-bg); border-color: var(--accent); }
.arc-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.arc-table-wrap { overflow-x: auto; }
.arc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.arc-table th, .arc-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--row-border); vertical-align: top; line-height: 1.4; }
.arc-table thead th { color: var(--muted); font-weight: 600; }
.arc-table tbody tr:nth-child(even) { background: var(--row-alt); }
.arc-num { text-align: right; white-space: nowrap; }
.arc-note { color: var(--muted); font-size: 0.9rem; }
.arc-lost-list li { margin-bottom: 4px; line-height: 1.5; }

/* Attribution box on every article page. */
.arc-attr { background: var(--panel); border: 1px solid var(--border); padding: 12px 14px; margin-bottom: 12px; font-size: 0.92rem; }
.arc-attr dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.arc-attr dl > div { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.arc-attr dt { color: var(--muted); min-width: 120px; }
.arc-attr dd { margin: 0; flex: 1 1 300px; min-width: 0; overflow-wrap: anywhere; }
.arc-attr-note { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }

/* Article body (rendered markdown). */
.arc-body { line-height: 1.6; overflow-wrap: anywhere; }
.arc-body h2, .arc-body h3, .arc-body h4 { margin: 1.2em 0 0.4em; line-height: 1.3; }
.arc-body h2 { font-size: 1.25rem; }
.arc-body h3 { font-size: 1.1rem; }
.arc-body p { margin: 0 0 0.9em; }
.arc-body ul, .arc-body ol { margin: 0 0 0.9em; padding-left: 1.4em; }
.arc-body li { margin-bottom: 0.3em; }
.arc-body blockquote { margin: 0 0 0.9em; padding: 8px 12px; border-left: 3px solid var(--border); color: var(--muted); }
.arc-body blockquote blockquote { margin: 8px 0; }
.arc-body blockquote p { margin-bottom: 0.5em; }
.arc-body pre { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); padding: 10px; }
.arc-body code { font-size: 0.9em; }
.arc-body table { border-collapse: collapse; margin: 0 0 0.9em; display: block; overflow-x: auto; max-width: 100%; }
.arc-body th, .arc-body td { text-align: left; padding: 5px 10px; border: 1px solid var(--row-border); vertical-align: top; }
.arc-body th { background: var(--panel); }
.arc-body hr { border: 0; border-top: 1px solid var(--border); margin: 1.2em 0; }
.arc-img { margin: 0 0 0.9em; padding: 10px 12px; border: 1px dashed var(--border); color: var(--muted); line-height: 1.5; }
.arc-img-inline { color: var(--muted); }

/* Lost stubs + video records. */
.arc-lost { background: var(--panel); border: 1px solid var(--err); padding: 14px; line-height: 1.55; }
.arc-lost h2 { margin: 0 0 8px; }
.arc-lost dl { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.arc-lost dl > div { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.arc-lost dt { color: var(--muted); min-width: 120px; }
.arc-lost dd { margin: 0; flex: 1 1 300px; }
.arc-lost-desc { color: var(--muted); }
.arc-video { line-height: 1.6; }
.arc-video p { margin: 0 0 0.9em; }

.arc-page-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.arc-page-foot p { margin: 8px 0 0; }

@media (max-width: 640px) {
  .arc-wrap { padding: 0 12px 12px; }
  .arc-attr dt, .arc-lost dt { min-width: 0; }
}
