/* ============================================================================
   utilities-layout.css — full-bleed pages (_Shared/_utilitiesLayout.leaf)
   Utilities/error, Utilities/notfound, Utilities/parking.

   These render under their own layout: no sidebar, no footer, no htmx, no
   cards. They are a single centred panel that owns the whole viewport, so this
   file carries only the page chrome and the two page designs. Everything else
   the internal tools need lives in main-layout.css.
   ========================================================================= */

/* ── Base ─────────────────────────────────────────────────────────────── */
html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Only ever seen on overscroll: .pn-404 and .pn-parked paint the viewport. */
    background-color: #f7f9fc;
}

/* The wrappers the layout renders. Unlike the internal pages there is no
   navbar padding and no gutter to leave — the panel is the page. The p-3 and
   the Bootstrap utilities on .cover-container are !important, so this has to
   be too. */
.main-app-layout {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.cover-container {
    padding: 0 !important;
    max-width: none;
    flex: 1 0 auto;
}

/* ── Error page (Utilities/error, Utilities/notfound) ─────────────────────
   Scoped under .pn-404 because Parked below reuses the same .e-* names, which
   Blazor kept apart with per-component scope attributes. */
.pn-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.pn-404 .e-inner {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pn-404 .e-code {
    font-size: 88px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.pn-404 .e-title { font-size: 30px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }

.pn-404 .e-sub { font-size: 17px; line-height: 1.6; margin: 0; }

.pn-404 .e-btn {
    margin-top: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

/* Neitzke brand (neitzke.ca / cl.neitzke.ca) */
.pn-404.is-neitzke {
    background: #FAF8F4;
    color: #292521;
    font-family: system-ui, -apple-system, sans-serif;
}

.pn-404.is-neitzke .e-code { color: rgba(217, 119, 87, 0.22); }

.pn-404.is-neitzke .e-title { font-family: Georgia, 'Iowan Old Style', serif; color: #1F1B16; }

.pn-404.is-neitzke .e-sub { color: #4A443C; }

.pn-404.is-neitzke .e-btn { background: #D97757; }

.pn-404.is-neitzke .e-btn:hover { background: #C15F3C; color: #fff; }

/* Blup brand (blup.ca / default) */
.pn-404.is-blup {
    background: #f7f9fc;
    color: #2b2b2e;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pn-404.is-blup .e-code {
    background: linear-gradient(160deg, #a3c3e0 0%, #8f9adb 48%, #7670d3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pn-404.is-blup .e-title { font-family: "Space Grotesk", system-ui, sans-serif; color: #2b2b2e; }

.pn-404.is-blup .e-sub { color: #5b5d63; }

.pn-404.is-blup .e-btn { background: #1e81ce; }

.pn-404.is-blup .e-btn:hover { background: #1868a6; color: #fff; box-shadow: 0 12px 26px -12px rgba(30, 129, 206, .6); }

@media (max-width: 600px) {
    .pn-404 .e-code { font-size: 68px; }
    .pn-404 .e-title { font-size: 24px; }
    .pn-404 .e-sub { font-size: 15px; }
}

/* ── Parked page (Utilities/parking) ──────────────────────────────────── */
.pn-parked {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: #f7f9fc;
    color: #2b2b2e;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pn-parked .e-inner {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pn-parked .e-eyebrow {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1e81ce;
}

.pn-parked .e-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 42px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    color: #2b2b2e;
    word-break: break-word;
}

.pn-parked .e-sub { font-size: 17px; line-height: 1.6; margin: 0; color: #5b5d63; }

.pn-parked .e-btn {
    margin-top: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #1e81ce;
    transition: background 0.2s, box-shadow 0.2s;
}

.pn-parked .e-btn:hover { background: #1868a6; color: #fff; box-shadow: 0 12px 26px -12px rgba(30, 129, 206, .6); }

.pn-parked .e-link {
    font-size: 14px;
    font-weight: 600;
    color: #1e81ce;
    text-decoration: none;
    transition: color 0.2s;
}

.pn-parked .e-link:hover { color: #1868a6; text-decoration: underline; }

@media (max-width: 600px) {
    .pn-parked .e-title { font-size: 32px; }
    .pn-parked .e-sub { font-size: 15px; }
}
