/* Sign-in and access pages (layouts.auth), public documents (layouts.public) and error pages (layouts.minimal).
   Layout comes from the kit (.ui-entry, .ui-empty, cards); only what the kit lacks lives here. */

/* Brand lockup: product mark and name (the kit's own mark is Neo Elite's) */
.pv-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--bs-emphasis-color);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.pv-auth-brand:hover {
    color: var(--bs-emphasis-color);
}

.pv-auth-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.ui-entry-logo.pv-auth-brand {
    margin-bottom: 1.5rem;
}

.ui-entry-logo.pv-auth-brand .pv-auth-brand-mark {
    width: 2.25rem;
    height: 2.25rem;
}

/* Page tools: stay clear of the content on narrow screens */
.ui-entry-tools {
    z-index: 2;
}

/* Sign-in and access pages (layouts.auth): the form alone on small screens; from lg, a frosted brand
   panel (--pv-panel-* tokens from brand.css) on the left and the form on the page backdrop on the right. */
.pv-auth {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

.pv-auth-main {
    flex: 1 1 auto;
    min-width: 0;
}

.pv-auth-inner {
    max-width: 26rem;
}

.pv-auth-main-brand {
    margin-inline: auto;
}

.pv-auth-aside {
    display: none;
}

@media (min-width: 992px) {
    .pv-auth-aside {
        position: sticky;
        top: 0.75rem;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: space-between;
        gap: 2.5rem;
        width: min(44%, 38rem);
        height: calc(100vh - 1.5rem);
        height: calc(100dvh - 1.5rem);
        min-height: 34rem;
        margin: 0.75rem 0 0.75rem 0.75rem;
        padding: 2.5rem 3rem;
        overflow: hidden;
        border: 1px solid var(--pv-panel-border);
        border-radius: 1.25rem;
        background: var(--pv-panel-bg);
        box-shadow: var(--pv-panel-shadow);
        color: var(--pv-panel-muted);
        -webkit-backdrop-filter: var(--ui-glass-filter);
        backdrop-filter: var(--ui-glass-filter);
    }

    .pv-auth-aside-brand,
    .pv-auth-aside-brand:hover {
        color: var(--pv-panel-ink);
    }

    /* A thin rim keeps the mark's tile crisp on the glass */
    .pv-auth-aside-brand .pv-auth-brand-mark {
        box-shadow: 0 0 0 1px var(--pv-panel-chip-border);
    }

    .pv-auth-main-brand {
        display: none;
    }

    /* The panel already frames the page: the form needs no card of its own */
    .pv-auth-card {
        --bs-card-bg: transparent;
        --bs-card-border-color: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .pv-auth-card > .card-body {
        padding: 0;
    }

    .pv-auth-card #auth-heading {
        font-size: 1.5rem;
    }

    .pv-auth-main-copy {
        display: none;
    }
}

.pv-auth-tagline {
    margin: 0 0 1rem;
    color: var(--pv-panel-ink);
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.pv-auth-lead {
    max-width: 28rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.pv-auth-highlights {
    display: grid;
    gap: 1.125rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pv-panel-rule);
}

.pv-auth-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.pv-auth-highlight strong {
    color: var(--pv-panel-ink);
    font-weight: 600;
}

.pv-auth-highlight-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--pv-panel-chip-border);
    border-radius: 0.625rem;
    background: var(--pv-panel-chip-bg);
    color: var(--pv-panel-accent);
    font-size: 1rem;
}

.pv-auth-aside-note {
    color: var(--pv-panel-subtle);
    font-size: 0.8125rem;
}

/* Public documents: one readable column */
.pv-doc-container {
    max-width: 52rem;
}

.pv-doc {
    max-width: 44rem;
    line-height: 1.7;
}

.pv-doc h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.pv-doc > section:first-of-type > h2 {
    margin-top: 1.5rem;
}

.pv-doc p {
    margin-bottom: 0.875rem;
}

.pv-doc .lead {
    font-size: 1.0625rem;
    font-weight: 400;
}

/* Contact block on the support page: set apart by rules, not by a second card */
.pv-doc-callout {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-block: 1px solid var(--bs-border-color);
}

.pv-doc-callout > div {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .pv-doc-callout {
        flex-direction: column;
    }
}

.pv-doc-callout h2 {
    margin-top: 0;
}

.pv-doc-callout .btn {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Error pages */
.pv-minimal-wrap {
    max-width: 32rem;
}

/* Public site (layouts.public): sticky header, footer, and a wider column for custom pages */
.pv-site {
    --ui-topbar-height: 4rem;
}

.pv-public-container {
    max-width: 72rem;
}

.pv-site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--ui-glass-border);
    background-color: var(--ui-glass-chrome);
    box-shadow: var(--ui-glass-shadow);
    -webkit-backdrop-filter: var(--ui-glass-filter);
    backdrop-filter: var(--ui-glass-filter);
}

.pv-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--ui-topbar-height);
}

.pv-site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--bs-border-radius);
    color: var(--bs-secondary-color);
    font-weight: 500;
    text-decoration: none;
}

.pv-site-nav-link:hover {
    background-color: var(--ui-hover);
    color: var(--bs-emphasis-color);
}

.pv-site-nav-link:focus-visible {
    outline: 0;
    box-shadow: var(--ui-focus-ring, 0 0 0 0.25rem rgba(23, 99, 129, 0.35));
    color: var(--bs-emphasis-color);
}

.pv-site-nav-link[aria-current="page"] {
    color: var(--bs-primary-text-emphasis);
    background-color: var(--ui-nav-active-bg, var(--ui-active));
}

#main-content:focus {
    outline: 0;
}

.pv-site-footer {
    padding: 2rem 0 1.25rem;
    border-top: 1px solid var(--ui-glass-border);
    background-color: var(--ui-glass-surface);
    font-size: 0.875rem;
}

.pv-site-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

.pv-site-footer-about {
    grid-column: 1 / -1;
    max-width: 22rem;
}

.pv-site-footer-about p {
    margin: 0.5rem 0;
    color: var(--bs-secondary-color);
}

@media (min-width: 768px) {
    .pv-site-footer-grid {
        grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    }

    .pv-site-footer-about {
        grid-column: auto;
    }
}

.pv-site-footer-title {
    margin-bottom: 0.5rem;
    color: var(--bs-emphasis-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.pv-site-footer ul {
    display: grid;
    gap: 0.25rem;
    margin: 0;
}

.pv-site-footer a.link-secondary {
    text-decoration: none;
}

.pv-site-footer a.link-secondary:hover {
    color: var(--bs-emphasis-color) !important;
    text-decoration: underline;
}

.pv-site-footer-legal {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
}

/* Document check (/verifier): explanation on the left, the card (drop zone, hash form, results) on the right */
.pv-verify-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .pv-verify-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 3.5rem;
        align-items: start;
    }

    .pv-verify-header {
        position: sticky;
        top: calc(var(--ui-topbar-height) + 2rem);
        padding-top: 0.5rem;
    }
}

.pv-verify-main {
    min-width: 0;
}

.pv-verify-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2.125rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.pv-verify-lead {
    margin: 0;
    color: var(--bs-secondary-color);
    line-height: 1.6;
}

.pv-verify-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    .pv-verify-points {
        flex-direction: column;
    }
}

.pv-verify-points li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pv-verify-points i {
    color: var(--bs-primary-text-emphasis);
}

.pv-verify-card {
    box-shadow: var(--bs-box-shadow-sm);
}

.pv-verify-drop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem;
    cursor: pointer;
    border: 1.5px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--bs-tertiary-bg);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-verify-drop:hover,
.pv-verify-drop.is-dragover {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.pv-verify-drop:focus-within {
    border-color: var(--bs-primary);
    box-shadow: var(--ui-focus-ring, 0 0 0 0.25rem rgba(23, 99, 129, 0.35));
}

.pv-verify-drop.is-busy {
    cursor: progress;
    opacity: 0.7;
}

.pv-verify-drop-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.pv-verify-drop-title {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}

.pv-verify-drop-hint {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.pv-verify-drop-button {
    flex-shrink: 0;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .pv-verify-drop {
        flex-wrap: wrap;
    }

    .pv-verify-drop-text {
        flex-basis: calc(100% - 4rem);
    }

    .pv-verify-drop-button {
        width: 100%;
    }
}

.pv-verify-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pv-verify-or::before,
.pv-verify-or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--bs-border-color);
}

.pv-verify-status:not(:empty) {
    margin-top: 0.5rem;
    color: var(--bs-primary-text-emphasis);
    font-size: 0.875rem;
}

.pv-verify-results {
    margin-top: 1.5rem;
}

.pv-verify-result {
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--bs-body-bg);
}

.pv-verify-result.is-match {
    border-color: var(--bs-success-border-subtle);
}

.pv-verify-result + .pv-verify-result {
    margin-top: 1rem;
}

.pv-verify-body {
    min-width: 0;
}

.pv-verify-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem 1rem;
    margin: 0;
    font-size: 0.9375rem;
}

.pv-verify-facts dt {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.pv-verify-facts dd {
    margin-bottom: 0.5rem;
}

@media (min-width: 576px) {
    .pv-verify-facts {
        grid-template-columns: 12rem minmax(0, 1fr);
        gap: 0.5rem 1rem;
    }

    .pv-verify-facts dd {
        margin-bottom: 0;
    }
}
