/* ==========================================================
   StateLab — error and special-state pages, on top of kit/pl.css
   (500, maintenance and offline pages are self-contained instead:
   they must work when our own server or network does not)
   ========================================================== */
.st-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.st-logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); }
.st-logo .mk { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand); color: #fff; font-size: 1.15rem; }
.st-main { flex: 1; display: grid; align-items: center; padding-block: clamp(16px, 3vw, 40px) clamp(32px, 5vw, 64px); }
.st-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.st-foot a { color: inherit; }
.st-code { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .9rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px; }
.st-code b { color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.st-h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.3; margin: 1rem 0 .6rem; }
.st-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 0 0 1.6rem; }
.st-acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.st-box { padding: clamp(18px, 2vw, 26px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.st-box h2 { font-size: 18px; margin: 0 0 .8rem; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.links-grid a { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; transition: border-color var(--ease), transform var(--ease); }
.links-grid a:hover { border-color: rgba(var(--brand-rgb), .4); transform: translateY(-2px); }
.links-grid a i { color: var(--brand-ink); font-size: 1.2rem; }
.st-ref { display: flex; align-items: center; gap: .5rem; padding: 6px 6px 6px 14px; padding-inline: 14px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.st-ref span { flex: 1; color: var(--muted); font-size: 15px; }
.st-ref b { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 575.98px) { .st-acts .btx { flex: 1 1 100%; } }
