/* ============================================================
   Public page chrome: the state-law guide's nav and the homepage's footer,
   shared by every public page that is not the homepage (see PublicShell.jsx).

   The nav and footer carry `.lp` (litPath.css supplies their tokens, the two
   typefaces, the `.btn` and the focus ring). The page body is outside `.lp`
   so its Tailwind spacing survives; the `.pub` wrapper only paints the paper.
   Composed at 375 first.
   ============================================================ */

.pub {
    background: var(--t-paper, #fdfbf7);
    color: var(--t-ink, #12201b);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.pub .pub-main {
    flex: 1 0 auto;
}

.pub-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--t-card, #f7f2e8);
    color: var(--t-ink, #12201b);
    font: 700 15px/1 var(--t-sans, sans-serif);
    text-decoration: none;
    transition: top .2s ease;
}

.pub-skip:focus-visible {
    top: 12px;
}

/* ---------- nav ---------- */

.pub-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--hair) 70%, transparent);
}

.pub-nav__in {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp.pub-chrome .pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--ink);
    font: 600 16.5px/1 var(--serif);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.pub-brand__name {
    white-space: nowrap;
}

.pub-brand__mark {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
}

.pub-brand__mark svg {
    width: 17px;
    height: 17px;
}

.lp.pub-chrome .pub-nav__btn {
    margin-left: auto;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

@media (min-width: 860px) {
    .pub-nav__in {
        width: min(1200px, calc(100% - 48px));
        height: 72px;
    }

    .lp.pub-chrome .pub-brand {
        font-size: 19px;
        gap: 10px;
    }

    .pub-brand__mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .pub-brand__mark svg {
        width: 19px;
        height: 19px;
    }

    .lp.pub-chrome .pub-nav__btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* ---------- footer ---------- */

.pub-foot {
    margin-top: 72px;
    padding: 34px 0 44px;
    background: var(--paper-2);
}

.pub-foot__in {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
    font: 500 14px/1.55 var(--sans);
    color: var(--muted);
}

.pub-foot__in ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp.pub-chrome .pub-foot__in a {
    color: var(--ink-2);
    text-decoration: none;
}

.lp.pub-chrome .pub-foot__in a:hover {
    color: var(--brand-2);
    text-decoration: underline;
}

@media (min-width: 860px) {
    .pub-foot {
        margin-top: 96px;
    }

    .pub-foot__in {
        width: min(1200px, calc(100% - 48px));
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
        gap: 24px;
    }

    .pub-foot__in ul {
        justify-content: flex-end;
    }
}

@media print {
    .pub-nav,
    .pub-foot,
    .pub-skip {
        display: none !important;
    }
}
