/* KIMI-019 atlas: own prefixed styles in the VELA visual language (never edits shared site.css). */
:root {
  --atlas-bg: #141414;
  --atlas-panel: #1b1918;
  --atlas-field: #1c1a19;
  --atlas-line: #3d3633;
  --atlas-line-strong: #59504b;
  --atlas-text: #f2ede3;
  --atlas-muted: #b7b1a9;
  --atlas-dim: #bbb2aa;
  --atlas-red: #d93632;
  --atlas-red-text: #e3655f;
  --atlas-gold: #e3a16d;
  --atlas-focus: #eea463;
}
.atlas-page { max-width: 1240px; margin: 0 auto; padding: 0 20px 64px; color: var(--atlas-text); font-family: 'Manrope', system-ui, sans-serif; background: var(--atlas-bg); }
.atlas-hero { padding: 48px 0 24px; }
.atlas-hero .atlas-kicker { color: var(--atlas-gold); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.atlas-hero h1 { font-size: clamp(28px, 5vw, 52px); line-height: 1.1; margin: 12px 0; }
.atlas-hero p { color: var(--atlas-muted); max-width: 760px; line-height: 1.8; }
.atlas-date { color: var(--atlas-dim); font-size: 13px; }
.atlas-filters { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.atlas-filters label { display: flex; flex-direction: column; gap: 8px; flex: 1 1 160px; color: var(--atlas-muted); font-size: 14px; }
.atlas-filters input, .atlas-filters select { width: 100%; min-height: 46px; color: var(--atlas-text); background: var(--atlas-field); border: 1px solid var(--atlas-line-strong); border-radius: 4px; padding: 10px 12px; font: inherit; }
.atlas-status { padding: 14px 0; color: var(--atlas-dim); min-height: 50px; }
.atlas-status.is-empty { color: #f5be95; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.atlas-card { display: flex; flex-direction: column; border: 1px solid var(--atlas-line); background: var(--atlas-panel); }
/* KIMI-022 (R19-C08): the hidden attribute MUST win over display:flex, otherwise JS filtering
 * only changes the counter while all cards stay visible. */
.atlas-card[hidden] { display: none; }
.atlas-card a.atlas-card-link { display: flex; flex-direction: column; gap: 0; color: inherit; text-decoration: none; height: 100%; min-height: 44px; }
.atlas-card a.atlas-card-link:focus-visible { outline: 2px solid var(--atlas-focus); outline-offset: 4px; }
.atlas-card figure { margin: 0; }
.atlas-card img { width: 100%; height: auto; display: block; background: #111; aspect-ratio: 3 / 4; }
.atlas-card .atlas-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.atlas-card h2 { font-size: 18px; margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.atlas-card .atlas-en { color: var(--atlas-dim); font-size: 13px; margin: 0; }
.atlas-card .atlas-meta { color: var(--atlas-muted); font-size: 13px; margin: 0; }
.atlas-badge { display: inline-block; font-size: 12px; letter-spacing: .1em; color: var(--atlas-gold); border: 1px solid var(--atlas-line); border-radius: 999px; padding: 3px 10px; margin-right: 6px; }
.atlas-role-fighter { color: #f0a35e; }
.atlas-role-mage { color: #7fb4e0; }
.atlas-role-tank { color: #b9c39a; }
.atlas-role-support { color: #d3a1d9; }
/* class page */
.atlas-class-head { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 32px; align-items: start; padding: 32px 0; }
.atlas-class-head img { width: 100%; height: auto; display: block; border: 1px solid var(--atlas-line); }
.atlas-class-head .atlas-lineage { color: var(--atlas-muted); line-height: 1.8; }
.atlas-class-head .atlas-lineage b { color: var(--atlas-text); }
.atlas-class-head .atlas-perk { border-left: 3px solid var(--atlas-red); padding: 8px 16px; color: var(--atlas-dim); margin-top: 16px; }
.atlas-table-wrap { overflow: auto; margin: 18px 0 32px; }
.atlas-table { border-collapse: collapse; width: 100%; text-align: left; }
.atlas-table caption { text-align: left; margin: 12px 0; color: var(--atlas-dim); }
.atlas-table th, .atlas-table td { border-bottom: 1px solid var(--atlas-line); padding: 12px 14px; vertical-align: top; }
.atlas-table th { color: var(--atlas-gold); font-size: 13px; white-space: nowrap; }
.atlas-table td { color: var(--atlas-dim); font-size: 14px; }
.atlas-table td.atlas-name { color: var(--atlas-text); font-weight: 700; min-width: 180px; }
.atlas-table .atlas-desc { max-width: 560px; line-height: 1.6; }
.atlas-chip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--atlas-line-strong); background: #111; color: var(--atlas-muted); font-size: 11px; border-radius: 4px; }
/* KIMI-022: real skill icons (R19-C05) and the new data badges */
.atlas-icon { width: 40px; height: 40px; display: block; border: 1px solid var(--atlas-line); border-radius: 4px; background: #111; image-rendering: auto; }
.atlas-variant { display: inline-block; font-size: 11px; letter-spacing: .05em; color: #9ec3e8; border: 1px solid #33506b; border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.atlas-descsrc { color: var(--atlas-muted); font-size: 12px; }
.atlas-rules { margin-top: 48px; border-top: 1px solid var(--atlas-line); padding-top: 24px; }
.atlas-rules h2 { font-size: 22px; }
.atlas-rules p, .atlas-rules li { color: var(--atlas-muted); line-height: 1.7; }
.atlas-rules li { margin: 8px 0; }
.atlas-rules li b { color: var(--atlas-text); }
.atlas-note { color: var(--atlas-dim); font-size: 13px; max-width: 850px; line-height: 1.7; }
.atlas-star { color: var(--atlas-red-text); white-space: nowrap; }
.atlas-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--atlas-gold); }
.atlas-back:focus-visible, .atlas-table a:focus-visible { outline: 2px solid var(--atlas-focus); outline-offset: 4px; }
@media (max-width: 900px) {
  .atlas-class-head { grid-template-columns: 1fr; }
  .atlas-class-head figure { max-width: 320px; }
}
@media (max-width: 480px) {
  .atlas-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .atlas-card .atlas-card-body { padding: 10px 12px 12px; }
  .atlas-card h2 { font-size: 15px; }
  .atlas-table th, .atlas-table td { padding: 10px 8px; }
}
@media (max-width: 380px) {
  .atlas-grid { grid-template-columns: 1fr; }
}

/* Standalone atlas surface and readable mobile skill cards. */
.atlas-document { margin: 0; background: var(--atlas-bg); color: var(--atlas-text); color-scheme: dark; }
.atlas-document *, .atlas-document *::before, .atlas-document *::after { box-sizing: border-box; }
.atlas-document .atlas-hero { padding: 36px 0 12px; }
.atlas-document .atlas-hero p { margin: 12px 0; }
.atlas-document .atlas-filters { margin: 16px 0 4px; }
.atlas-document .atlas-status { min-height: 0; padding: 8px 0; }
.atlas-document .atlas-class-head figure { margin: 0; }
.atlas-document .atlas-class-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.atlas-document .atlas-jump { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--atlas-line-strong); color: var(--atlas-gold); text-decoration: none; }
.atlas-document .atlas-jump:focus-visible { outline: 2px solid var(--atlas-focus); outline-offset: 3px; }
.atlas-document .atlas-table-wrap { scroll-margin-top: 16px; }
@media (max-width: 680px) {
  .atlas-document .atlas-page { padding: 0 16px 40px; }
  .atlas-document .atlas-hero { padding-top: 24px; }
  .atlas-document .atlas-class-head { gap: 16px; padding: 16px 0; }
  .atlas-document .atlas-class-head figure { max-width: 220px; }
  .atlas-document .atlas-table-wrap { overflow: visible; }
  .atlas-document .atlas-table, .atlas-document .atlas-table tbody { display: block; }
  .atlas-document .atlas-table caption { display: block; line-height: 1.6; }
  .atlas-document .atlas-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .atlas-document .atlas-table tr { display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(0,1fr); gap: 12px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--atlas-line); background: var(--atlas-panel); }
  .atlas-document .atlas-table td { display: block; min-width: 0; max-width: none; border: 0; padding: 0; overflow-wrap: anywhere; }
  .atlas-document .atlas-table td:nth-child(2) { grid-column: 2 / 4; min-width: 0; line-height: 1.6; }
  .atlas-document .atlas-table td:nth-child(6) { grid-column: 1 / 3; }
  .atlas-document .atlas-table td:last-child { grid-column: 1 / -1; border-top: 1px solid var(--atlas-line); padding-top: 12px; }
  .atlas-document .atlas-table td[data-label]::before { display: block; content: attr(data-label); color: var(--atlas-muted); font-size: 11px; line-height: 1.5; margin-bottom: 4px; }
  html[data-lang="en"] .atlas-document .atlas-table td[data-label-en]::before { content: attr(data-label-en); }
}

.atlas-document .atlas-toplinks { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: system-ui, sans-serif; border-bottom: 1px solid var(--atlas-line); }
.atlas-document .atlas-toplinks a { display: inline-flex; align-items: center; min-height: 44px; color: var(--atlas-gold); text-decoration: none; }
.atlas-document .atlas-toplinks a[aria-current] { color: var(--atlas-text); }
.atlas-document .atlas-toplinks a:focus-visible { outline: 2px solid var(--atlas-focus); outline-offset: 3px; }

/* CL-04: proven VELA changes and the filter reset */
.atlas-vela { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #c4302c; color: #f2ede3; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.atlas-vela-note { margin-top: 8px; padding: 8px 10px; border-left: 2px solid #c4302c; background: rgba(196, 48, 44, .08); overflow-wrap: anywhere; }
.atlas-reset { align-self: end; min-height: 44px; padding: 0 18px; border: 1px solid rgba(242, 237, 227, .22); border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.atlas-reset:focus-visible { outline: 2px solid #e7b8a4; outline-offset: 2px; }
