/* Mechanics library pages. Uses the site's colour variables. */
.mech-page h2{margin:1.6em 0 .3em}
.mech-quote{margin:1em 0;padding:16px 20px;border-left:4px solid #c9a45c;background:#fbf4e3;border-radius:0 8px 8px 0}
.mech-quote p{margin:0 0 .8em;font-family:Georgia,serif;font-size:22px;line-height:1.35;color:#2b2415;overflow-wrap:anywhere}
.mech-quote p:last-of-type{margin-bottom:0}
.mech-quote cite{display:block;margin-top:8px;font-style:normal;font-size:13px;color:#6b5a38}
.mech-page code{overflow-wrap:anywhere;font-size:.85em}
.mech-index{list-style:none;padding:0;margin:.4em 0 0}
.mech-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px;margin:14px 0 6px}
.mech-card{--muted:#566174;display:flex;gap:14px;align-items:flex-start;height:100%;box-sizing:border-box;background:#fff;color:#202939;border:1px solid #cbd2db;border-radius:11px;padding:13px 14px;text-decoration:none;box-shadow:0 2px 6px #0003;transition:border-color .15s,transform .15s}
a.mech-card:hover{border-color:#c9a45c;transform:translateY(-2px)}
a.mech-card:focus-visible{outline:2px solid #e3b565;outline-offset:3px}
.mech-card-plain{background:#eef1f6;box-shadow:none}
.mech-icon{flex:none;width:40px;height:40px;border-radius:8px;background:#0c1527;box-shadow:0 1px 4px #0006}
.mech-card-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.mech-card-name{font-family:Georgia,serif;font-size:19px;line-height:1.2;color:#17213a}
.mech-card-text{font-size:14px;line-height:1.45;color:#4c586b;overflow-wrap:anywhere}
.mech-head{display:flex;gap:20px;align-items:center;background:linear-gradient(135deg,#17294b,#101d35 70%);border:1px solid #2f4268;border-radius:14px;padding:22px 26px;margin:0 0 14px}
.mech-head .mech-icon{width:64px;height:64px;border-radius:12px;border:2px solid #c9a45c;box-shadow:0 6px 14px #0008}
.mech-head h1{margin:0;font-size:44px;line-height:1.08}
.mech-head .eyebrow{margin:0 0 4px}
.mech-champions{list-style:none;padding:0;margin:.8em 0;display:flex;flex-wrap:wrap;gap:8px}
.mech-champions li{padding:0}
.mech-champions li a{display:inline-flex;align-items:center;gap:9px;background:#fff;color:#17213a;border:1px solid #cbd2db;border-radius:12px;padding:4px 14px 4px 4px;font-size:14px;line-height:1.2;text-decoration:none;box-shadow:0 1px 3px #0003}
.mech-champions li a:hover{border-color:#c9a45c;background:#fff5df}
.mech-champions li a:not(:has(.mech-ava)){padding:7px 14px;border-radius:999px}
.mech-ava{flex:none;width:40px;height:52px;object-fit:cover;object-position:center top;border-radius:8px;background:#0c1527}
.mech-skills li .mech-ava{width:28px;height:36px;border-radius:6px;vertical-align:middle;margin-right:8px}
.mech-champions.mech-skills{display:block}
.mech-skills li{padding:.3em 0;border-bottom:1px solid rgba(255,255,255,.06)}
.mech-skills li a{display:inline;background:none;border:0;padding:0;color:inherit;text-decoration:underline;border-radius:0}
@media(max-width:700px){.mech-head{padding:16px;gap:14px}.mech-head h1{font-size:32px}.mech-head .mech-icon{width:52px;height:52px}.mech-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.mech-card{transition:none}a.mech-card:hover{transform:none}}

/* Gallery pages (artifact sets, tools): hero, search and filter, cards. Light cards on the site's navy, like the champion pages. */
.gx-page{color:#e8edf6}
.gx-article{max-width:1180px}
.gx-hero{display:flex;gap:28px;align-items:center;padding:10px 0 26px;border-bottom:1px solid #2c3c5c;margin-bottom:26px}
.gx-hero h1{font-size:52px;margin:0 0 10px;line-height:1.05;color:#fff}
.gx-kicker{margin:0 0 6px;font-size:14px;color:#e3b565;font-weight:650}
.gx-lead{max-width:62ch;margin:0;font-size:18px;line-height:1.55;color:#c7d1e3}
.gx-hero-set{background:linear-gradient(135deg,#17294b,#101d35 70%);border:1px solid #2f4268;border-radius:14px;padding:26px 30px;margin-bottom:24px}
.gx-hero-set .gx-emblem,.gx-hero-set .gx-cover{flex:none;filter:drop-shadow(0 6px 14px #0008)}
.gx-cover{border-radius:10px;background:#0c1527;object-fit:cover}
.gx-hero-set .gx-cover{border-radius:14px;border:2px solid #c9a45c}
.gx-tags{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 0}
.gx-pill{display:inline-block;border:1px solid #c9ac75;background:#fff5df;color:#6b4300;border-radius:999px;padding:2px 10px;font-size:13px;line-height:1.5;font-weight:600}
.gx-pill-on-dark{background:#1d3157;border-color:#4a6291;color:#dbe5f6;font-weight:500}
.gx-tools{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:flex-end;margin:0 0 10px}
.gx-search{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#aab6cc;flex:1 1 260px;max-width:420px}
.gx-search input{background:#fff;color:#202939;border:1px solid #9ba7b6;border-radius:8px;padding:11px 14px;font-size:16px}
.gx-chips{display:flex;flex-wrap:wrap;gap:8px}
.gx-chip{background:#16264a;color:#dbe5f6;border:1px solid #3a4f7b;border-radius:999px;padding:8px 14px;font-size:14px;cursor:pointer}
.gx-chip span{opacity:.7;margin-left:4px}
.gx-chip:hover{border-color:#e3b565;background:#1b2e57}
.gx-chip[aria-pressed=true]{background:#f5e3bd;border-color:#e3b565;color:#4d3100;font-weight:650}
.gx-chip:focus-visible,.gx-search input:focus-visible{outline:2px solid #e3b565;outline-offset:3px}
.gx-count{margin:6px 0 16px;font-size:14px;color:#aab6cc}
.gx-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.gx-item[hidden]{display:none}
.gx-card{--muted:#566174;--gold:#805200;display:flex;gap:14px;align-items:flex-start;height:100%;background:#fff;color:#202939;border:1px solid #cbd2db;border-radius:11px;padding:14px;text-decoration:none;box-shadow:0 2px 6px #0003;transition:border-color .15s,transform .15s}
.gx-card:hover{border-color:#c9a45c;transform:translateY(-2px)}
.gx-card:focus-visible{outline:2px solid #e3b565;outline-offset:3px}
.gx-card .gx-emblem,.gx-card .gx-cover{flex:none}
.gx-card .gx-cover{border:1px solid #cdb37a}
.gx-pieces{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.gx-pieces li{display:flex;flex-direction:column;align-items:center;gap:6px;background:#0f1a30;border:1px solid #2f4268;border-radius:10px;padding:10px 6px 8px}
.gx-pieces img{width:100%;max-width:120px;height:auto;border-radius:8px}
.gx-pieces span{font-size:13px;color:#dbe5f6}
.gx-note-light{margin:14px 0 0;font-size:13px;color:#566174}
.gx-card-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.gx-card-name{font-family:Georgia,serif;font-size:21px;line-height:1.15;color:#17213a}
.gx-card-body .gx-pill{align-self:flex-start}
.gx-card-text{font-size:14px;line-height:1.45;color:#4c586b;overflow-wrap:anywhere}
.gx-panel{--muted:#566174;--gold:#805200;background:#fff;color:#202939;border:1px solid #cbd2db;border-radius:12px;padding:22px 26px;margin:0 0 20px}
.gx-panel h2{font-family:Georgia,serif;font-weight:400;font-size:26px;margin:0 0 12px;color:#17213a}
.gx-tip{max-width:640px;margin:0 0 14px;background:linear-gradient(180deg,#22303f,#1a2532);color:#eef4f8;border:2px solid #3f9bb8;border-radius:10px;box-shadow:0 4px 16px #0005,inset 0 0 0 1px #0c1a26;overflow:hidden}
.gx-tip-head{display:flex;align-items:center;gap:12px;padding:12px 16px 8px}
.gx-tip-head .gx-cover,.gx-tip-head .gx-emblem{flex:none;border-radius:8px}
.gx-panel .gx-tip-head h3{margin:0;font:700 clamp(22px,4vw,30px)/1.1 Roboto,system-ui,sans-serif;color:#fff;letter-spacing:.01em}
.gx-tip-rows{list-style:none;margin:0;padding:0}
.gx-tip-rows li{position:relative;padding:11px 16px;font-size:clamp(16px,2.6vw,19px);line-height:1.35;color:#fff;overflow-wrap:anywhere}
.gx-tip-rows li::before{content:"";position:absolute;left:16px;right:16px;top:0;height:1px;background:linear-gradient(90deg,transparent,#5aa9c2 20%,#5aa9c2 80%,transparent);opacity:.7}
.gx-tip-label{color:#cfe3ee}
.gx-tip-text{color:#fff;font-weight:500}
.gx-bonus{margin:0 0 14px;padding:16px 20px;border-left:4px solid #c9a45c;background:#fbf4e3;border-radius:0 8px 8px 0}
.gx-bonus p{margin:0;font-family:Georgia,serif;font-size:24px;line-height:1.35;color:#2b2415;overflow-wrap:anywhere}
.gx-bonus cite{display:block;margin-top:8px;font-style:normal;font-size:13px;color:#6b5a38}
.gx-grid-compact{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.gx-grid-compact .gx-card{box-shadow:none;background:#f6f8fb}
.gx-note{max-width:80ch;margin:20px 0 0;font-size:14px;color:#aab6cc}
.gx-note a,.gx-page .profile-top a{color:#e3b565}
@media(max-width:700px){.gx-hero{gap:16px}.gx-hero h1{font-size:36px}.gx-hero-set{padding:18px;flex-direction:column;align-items:flex-start}.gx-hero-set .gx-emblem,.gx-hero-set .gx-cover{width:88px;height:88px}.gx-lead{font-size:16px}.gx-panel{padding:16px}.gx-bonus p{font-size:20px}.gx-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.gx-card{transition:none}.gx-card:hover{transform:none}}
