/* Testing suite pages: dashboard, map catalog, map details */

/* dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 570px)); gap: 24px; }
.dash-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.dash-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, transparent 40%, rgba(255, 217, 100, 0.08) 50%, transparent 60%) -200% 0 / 200% 100% no-repeat; transition: background-position 0.8s; }
.dash-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 217, 100, 0.25); color: var(--text); }
.dash-card:hover::after { background-position: 200% 0; }
.dash-art { display: block; aspect-ratio: 3 / 2; background: #11141b center / cover no-repeat; border-bottom: 1px solid var(--line); }
.dash-body { display: grid; align-content: start; gap: 8px; padding: 18px 20px 60px; }
.dash-name { font: 700 24px/1.1 var(--head); letter-spacing: 0.03em; color: #fff; }
.dash-desc { color: var(--muted); font-size: 14px; max-width: 46ch; }
.dash-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 26px; margin-top: 6px; font: 500 13px/1 var(--mono); color: var(--muted); }
.dash-stat b { color: #fff; font: 600 15px/1 var(--ui); }
.dash-sep { width: 1px; height: 16px; background: var(--line2); }
.dash-skel { width: 220px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--panel2), #1c2438, var(--panel2)) 0 0 / 200% 100%; animation: mt-sk 1.2s infinite linear; }
@keyframes mt-sk { to { background-position: -200% 0; } }
.dash-item { display: grid; gap: 10px; align-content: start; }
.dash-guide { justify-self: start; padding: 4px 2px; font: 600 13px/1.2 var(--ui); color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.dash-guide:hover { color: #fff; }
.dash-go { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.dash-go i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); position: relative; transition: background 0.2s; }
.dash-go i::after { content: ""; position: absolute; left: 9px; top: 10px; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.dash-card:hover .dash-go i { background: var(--gold); color: #111; }

/* catalog */
.cat-hero { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: 30px; align-items: center; margin: 0 0 30px; padding: 22px; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(120deg, rgba(255, 217, 100, 0.08), transparent 55%), var(--panel); box-shadow: 0 0 0 1px rgba(255, 217, 100, 0.06), 0 30px 60px rgba(0, 0, 0, 0.4); }
.cat-hero-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #0d2236; }
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-hero-img:hover img { transform: scale(1.03); }
.cat-hero-b { display: grid; gap: 16px; justify-items: start; }
.cat-hero-b h2 { margin: 0; font: 700 44px/1 var(--head); color: #fff; }
.cat-hero-b h2 small, .md-head h1 small { font: 600 18px/1 var(--mono); color: var(--gold); letter-spacing: 0.04em; vertical-align: middle; }
.cat-hero-act { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; min-height: 40px; }
.cat-n { display: grid; gap: 4px; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cat-n b { font: 700 26px/1 var(--ui); letter-spacing: 0; }
.cat-last { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.cat-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.cat-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.15s, transform 0.15s; }
.cat-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.cat-card.is-t1 { border-color: rgba(255, 217, 100, 0.55); }
.cat-card.is-arch { opacity: 0.6; }
.cat-img { position: relative; display: block; aspect-ratio: 1; background: #0d2236; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img .mt-badge, .cat-img .cat-arch { position: absolute; left: 12px; top: 12px; }
.cat-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.cat-arch { display: inline-block; padding: 4px 9px; border-radius: 6px; background: #2a2f3d; color: var(--muted); font: 700 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.cat-b { display: grid; gap: 10px; align-content: start; padding: 14px 16px 16px; }
.cat-b h3 { margin: 0; font: 700 20px/1.2 var(--head); } .cat-b h3 a { color: #fff; }
.cat-vers { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-ver { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font: 600 12px/1 var(--mono); }
.cat-ver.is-on { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.cat-ver i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--faint); font-size: 12px; }
.cat-foot .mt-btn { min-height: 34px; }
.cat-foot .mt-btn[aria-disabled] { opacity: 0.4; pointer-events: none; }
.cat-empty { color: var(--muted); grid-column: 1 / -1; }
.cat-load { grid-column: 1 / -1; padding: 60px 0; }

/* details */
.md-grid { display: grid; grid-template-columns: minmax(300px, 760px) minmax(320px, 1fr); gap: 28px; align-items: start; }
.md-img { aspect-ratio: 1; overflow: hidden; border-radius: 14px; border: 1px solid var(--line2); background: #0d2236; }
.md-img img { width: 100%; height: 100%; object-fit: cover; }
.md-side { display: grid; gap: 18px; align-content: start; }
.md-head { display: grid; gap: 12px; justify-items: start; }
.md-head h1 { margin: 0; font: 700 40px/1.05 var(--head); color: #fff; }
.md-go { justify-self: stretch; }
.md-go[aria-disabled] { opacity: 0.5; pointer-events: none; }
.md-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.md-facts div { padding: 10px 12px; box-shadow: inset -1px -1px 0 var(--line); }
.md-facts dt { font: 500 10px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.md-facts dd { margin: 4px 0 0; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.md-man { padding: 14px; border-radius: 10px; border: 1px dashed var(--line2); }
.md-man-row, .md-carry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.md-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 26px; }
.md-panel { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.md-pg + .md-pg { margin-top: 16px; }
.md-pg-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.md-pr { display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto 6px; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.md-pr .mt-ico { color: var(--gold); }
.md-pr .mt-bar { grid-column: 2 / 4; }
.md-pr-c { font: 500 12px/1 var(--mono); color: var(--muted); }
.md-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.md-gone { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 122, 89, 0.1); color: #ffb39f; font-size: 13px; }
.md-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.md-hist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--muted); }
.md-hist li b { color: var(--text); font-weight: 600; }
.md-h-who { color: #fff; font-weight: 600; }
.md-hist q { flex-basis: 100%; color: var(--text); font-style: italic; }
.md-hist time { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--faint); }
.md-none { color: var(--faint); }
@media (max-width: 1100px) { .md-grid, .md-cols, .cat-hero { grid-template-columns: 1fr; } .cat-hero-b h2 { font-size: 32px; } }
/* quick start walk-through: one reading column, large text, numbered steps, sticky step list (owner 2026-11-22) */
.qs-main { width: min(100% - 32px, 860px); margin: 0 auto; padding: 32px 0 80px; font-size: 18px; line-height: 1.6; }
.qs-h1 { margin: 0 0 8px; font: 700 36px/1.15 var(--head); letter-spacing: 0.03em; color: #fff; }
.qs-lead { margin: 0 0 22px; font-size: 19px; color: var(--text); }
.qs-nav { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 -12px 34px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 13, 22, 0.96); backdrop-filter: blur(6px); }
.qs-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.qs-nav a:hover { border-color: var(--gold); color: #fff; }
.qs-nav b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #111; font: 700 15px/1 var(--ui); }
.qs-step { margin: 0 0 56px; scroll-margin-top: 150px; }
.qs-step-h { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.qs-n { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #111; font: 700 26px/1 var(--ui); }
.qs-step-h h2 { margin: 0; font: 700 26px/1.25 var(--ui); color: #fff; }
.qs-shot { display: block; max-width: 100%; height: auto; margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--line2); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }
.qs-text { margin: 0; font-size: 18px; color: var(--text); }
.qs-cmdbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 16px; padding: 22px 24px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); }
.qs-cmdbox span { color: var(--muted); font-size: 17px; }
.qs-cmdbox code { font: 700 26px/1.2 var(--mono); color: var(--gold); }
.qs-main code { font: 600 16px/1.5 var(--mono); color: var(--gold); }
.qs-main kbd { font: 600 15px/1 var(--mono); }
.qs-ref-h { margin: 70px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); font: 700 28px/1.2 var(--head); letter-spacing: 0.03em; color: #fff; scroll-margin-top: 150px; }
.qs-ref { margin: 0 0 22px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 150px; }
.qs-ref h3 { margin: 0 0 14px; font: 700 21px/1.3 var(--ui); color: #fff; }
.qs-ref p { margin: 0 0 8px; font-size: 18px; }
.qs-ref p:last-child { margin-bottom: 0; }
.qs-main .mt-st { font-size: 15px; padding: 4px 11px; }
.qs-end .mt-btn { font-size: 16px; min-height: 46px; padding: 0 22px; }
.qs-st { display: grid; gap: 12px; margin: 0; }
.qs-st div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.qs-st dd { margin: 0; font-size: 18px; }
.qs-tbl { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 16px; }
.qs-tbl th { padding: 8px 10px; text-align: left; font: 600 15px/1.3 var(--ui); color: var(--muted); border-bottom: 1px solid var(--line2); }
.qs-tbl td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.qs-tbl td:first-child code { white-space: nowrap; }
.qs-tbl td:nth-child(2) { width: 42%; }
.qs-end { margin: 40px 0 0; }
@media (max-width: 700px) {
  .qs-main { font-size: 17px; }
  .qs-nav { position: static; margin: 0 0 28px; }
  .qs-step, .qs-ref, .qs-ref-h { scroll-margin-top: 12px; }
  .qs-h1 { font-size: 28px; }
  .qs-step-h h2 { font-size: 22px; }
  .qs-n { width: 44px; height: 44px; font-size: 22px; }
  .qs-st div { grid-template-columns: 1fr; gap: 4px; }
  .qs-tbl, .qs-tbl tbody, .qs-tbl tr, .qs-tbl td { display: block; width: 100%; }
  .qs-tbl thead { display: none; }
  .qs-tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .qs-tbl td { padding: 4px 0; border: 0; }
  .qs-tbl td code { white-space: normal; overflow-wrap: anywhere; }
}
