/* ==========================================================================
   ISIT CERTIFICATION — Premium Registry Theme
   Design concept: a "verification ledger" — the visual language of an
   official register/seal, not a generic SaaS blue. Serif display type
   for authority, monospace for certificate/serial data, brass for the
   "verified" accent (the seal), deep ink-navy for structure.
   ========================================================================== */

:root {
    /* Core palette */
    --ink: #10182b; /* near-black navy — text, wordmark */
    --ink-soft: #2b3348; /* secondary ink */
    --paper: #faf8f2; /* warm ledger paper */
    --paper-deep: #f3f0e6; /* deeper paper for panels */
    --line: #e4dfcf; /* hairline rule on paper */
    --line-cool: #e3e6ee; /* hairline rule on white */
    --slate: #6b7280; /* muted body copy */
    /* Brand */
    --sapphire: #1c2f6b; /* deep registry blue */
    --sapphire-dark: #101e4d;
    --sapphire-soft: #eaeefb;
    /* Seal / verification accent (the signature color) */
    --brass: #ed1e26;
    --brass-dark: #ed1e26;
    --brass-soft: #f6efdc;
    --teal: #0d6e63;
    --green: #1c8a4b;
    --green-soft: #eafaf0;
    --red: #b3432f;
    --red-soft: #fdecec;
    /* Legacy aliases kept so existing markup/JS references still resolve */
    --brand: var(--sapphire);
    --brand-dark: var(--sapphire-dark);
    --brand-soft: var(--sapphire-soft);
    --purple: #6a4fb3;
    --purple-soft: #efeaf9;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 1px 2px rgba(16, 24, 43, 0.04), 0 12px 28px rgba(16, 24, 43, 0.06);
    --shadow-lift: 0 18px 44px rgba(16, 24, 43, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: #fff;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, .brand-name {
    font-family: 'Fraunces', serif;
}

.mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
}

img, svg {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.container-max {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

@media (max-width: 575.98px) {
    .container-max {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   Header shell (topbar + nav) — replaces the old single-row .site-nav
   ========================================================================== */

.site-header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(16, 24, 43, 0.05);
}

/* ---------- Top bar: logo, contact, social ---------- */

.topbar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line-cool);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    margin: 0;
    padding: 0;
}

.brand-name-group {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-weight: 700;
    font-size: 26px;
    letter-spacing: .2px;
    color: var(--ink);
    white-space: nowrap;
    text-transform: lowercase;
}

.brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-dark);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: color 0.15s ease;
}

    .topbar-contact i {
        color: var(--brass);
        font-size: 14px;
    }

    .topbar-contact:hover {
        color: var(--sapphire);
    }

.topbar-social {
    gap: 8px;
}

    .topbar-social a {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        background: var(--paper-deep);
        color: var(--ink);
    }

        .topbar-social a:hover {
            background: var(--brass);
            color: #fff;
        }

/* ---------- Bottom bar: primary nav ---------- */

.site-nav {
    width: 100%;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    width: 44px;
    height: 40px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: 7px;
    color: var(--ink);
    flex-shrink: 0;
}

    .navbar-toggler i {
        font-size: 22px;
        line-height: 1;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(28, 47, 107, .12);
    }

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
}

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--ink-soft);
        padding: 16px 18px;
        white-space: nowrap;
        position: relative;
        border-bottom: 2px solid transparent;
        transition: color 0.15s ease, border-color 0.15s ease;
    }

        .nav-links a i {
            font-size: 9px;
            color: var(--slate);
        }

        .nav-links a:hover {
            color: var(--sapphire);
        }

        .nav-links a.active {
            color: var(--ink);
            border-bottom-color: var(--brass);
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.link-login {
    color: var(--sapphire);
    font-weight: 600;
}

.btn-outline-brand {
    border: 1px solid var(--sapphire);
    color: var(--sapphire);
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

    .btn-outline-brand:hover {
        background: var(--sapphire-soft);
    }

.btn-brand {
    background: var(--sapphire);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .btn-brand:hover {
        background: var(--sapphire-dark);
        color: #fff;
    }

@media (max-width: 991.98px) {
    .topbar-inner {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .topbar-actions {
        margin-left: auto;
        gap: 14px;
    }

    .topbar-contact span {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

    .nav-inner {
        padding: 0 20px;
        justify-content: flex-start;
    }

    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
    }

    .nav-links {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

        .nav-links a {
            width: 100%;
            padding: 12px 4px;
            border-bottom: 1px solid var(--line);
            border-left: 2px solid transparent;
        }

            .nav-links a.active {
                border-bottom-color: var(--line);
                border-left-color: var(--brass);
            }

    .nav-actions {
        width: 100%;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--line-cool);
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .topbar-inner {
        padding: 10px 16px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-sub {
        font-size: 9px;
    }

    .navbar-toggler {
        width: 42px;
        height: 38px;
        border-radius: 7px;
    }

        .navbar-toggler i {
            font-size: 21px;
        }

    .topbar-actions {
        gap: 10px;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .nav-actions a {
            width: 100%;
            text-align: center;
        }
}

/* ==========================================================================
   Search shell (shared, Home + CertSearch)
   ========================================================================== */

.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

    .search-wrapper .search-shell {
        max-width: 100%;
        margin: 0;
    }

.search-shell {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: var(--shadow-lift);
    position: relative;
    z-index: 1;
}

    .search-shell input {
        border: none;
        background: transparent;
        flex: 1 1 200px;
        min-width: 0;
        padding: 10px 14px;
        font-size: 15px;
        outline: none;
        color: var(--ink);
    }

    .search-shell button {
        background: var(--brass);
        background-image: linear-gradient(180deg, #ed1e269e, #d17d81ab);
        color: #251b06;
        border: none;
        border-radius: var(--radius-sm);
        padding: 0 22px;
        font-weight: 700;
        font-size: 14.5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        min-height: 44px;
        transition: filter 0.15s ease, transform 0.1s ease;
    }

        .search-shell button:hover {
            filter: brightness(1.06);
        }

        .search-shell button:active {
            transform: translateY(1px);
        }

.search-icon {
    align-self: center;
    margin-left: 8px;
    color: #9aa2b4;
}

@media (max-width: 575.98px) {
    .search-shell {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 5px;
        min-height: 52px;
    }

        .search-shell input {
            flex: 1 1 auto;
            width: auto;
            min-width: 0;
            height: 42px;
            padding: 8px 6px;
            font-size: 14px;
        }

        .search-shell .search-icon {
            flex: 0 0 auto;
            margin-left: 7px;
            margin-right: 2px;
            font-size: 17px;
        }

        .search-shell button {
            flex: 0 0 auto;
            width: auto;
            min-height: 42px;
            height: 42px;
            padding: 0 14px;
            font-size: 13px;
        }
}

.search-hint {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--slate);
    padding: 0 8px;
}

.company-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    overflow-y: auto;
    text-align: left;
    max-height: 300px;
    z-index: 1000;
}

@media (max-width: 575.98px) {
    .company-suggestions {
        max-height: 250px;
    }
}

.company-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f1f5;
    transition: background 0.15s ease;
}

    .company-suggestion-item:last-child {
        border-bottom: none;
    }

    .company-suggestion-item:hover {
        background: var(--sapphire-soft);
    }

.company-suggestion-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--sapphire-soft);
    color: var(--sapphire);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-suggestion-content {
    min-width: 0;
}

.company-suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-suggestion-type {
    font-size: 12px;
    color: var(--slate);
    margin-top: 2px;
}

.no-suggestion,
.company-suggestion-empty {
    padding: 16px;
    text-align: center;
    color: var(--slate);
    font-size: 13px;
}

/* ==========================================================================
   Seal mark — the signature element. A stamped-ledger badge used behind
   hero copy to evoke an authenticated document seal.
   ========================================================================== */

.seal-mark {
    position: absolute;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 1.5px dashed rgba(169, 129, 47, 0.4);
    pointer-events: none;
}

    .seal-mark::before {
        content: "";
        position: absolute;
        inset: 14px;
        border-radius: 50%;
        border: 1px solid rgba(169, 129, 47, 0.28);
    }

@media (max-width: 767.98px) {
    .seal-mark {
        display: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--line-cool);
    padding: clamp(28px, 6vw, 44px) 16px 26px;
    background: var(--paper);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.footer-cols {
    margin-bottom: 26px;
}

    .footer-cols a {
        display: block;
        color: var(--slate);
        font-size: 14px;
        margin-bottom: 12px;
    }

        .footer-cols a:hover {
            color: var(--sapphire);
        }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--slate);
    text-align: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

    .footer-legal a {
        color: var(--slate);
    }

        .footer-legal a:hover {
            color: var(--sapphire);
        }

.social-icons {
    display: flex;
    gap: 8px;
}

    .social-icons a {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--ink);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        transition: background 0.15s ease;
    }

        .social-icons a:hover {
            background: var(--brass-dark);
        }

@media (max-width: 575.98px) {
    .brand-name {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   CertSearch — hero, feature cards, results, modal
   ========================================================================== */

.hero {
    padding: clamp(40px, 8vw, 76px) 16px clamp(28px, 5vw, 40px);
    text-align: center;
    background: radial-gradient(ellipse at 12% 15%, rgba(28, 47, 107, 0.05), transparent 55%), radial-gradient(ellipse at 88% 10%, rgba(169, 129, 47, 0.06), transparent 50%), var(--paper);
    position: relative;
    overflow: visible;
}

    .hero .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 11.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--brass-dark);
        background: var(--brass-soft);
        border: 1px solid rgba(169, 129, 47, 0.25);
        border-radius: 999px;
        padding: 5px 14px;
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: clamp(24px, 5vw, 40px);
        font-weight: 600;
        color: var(--ink);
        margin-bottom: 14px;
        line-height: 1.2;
    }

    .hero p {
        color: var(--slate);
        font-size: clamp(13.5px, 2.5vw, 16px);
        margin-bottom: clamp(22px, 4vw, 34px);
        padding: 0 8px;
    }

.feature-grid {
    max-width: 900px;
    margin: 36px auto 0;
}

.feature-card {
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    height: 100%;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .feature-card:hover {
        border-color: var(--brass);
        box-shadow: var(--shadow-card);
        transform: translateY(-1px);
    }

    .feature-card i {
        font-size: 18px;
        color: var(--sapphire);
        background: var(--sapphire-soft);
        width: 38px;
        height: 38px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .feature-card h3 {
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 4px;
        color: var(--ink);
    }

    .feature-card p {
        font-size: 13.5px;
        color: var(--slate);
        margin: 0;
    }

@media (max-width: 575.98px) {
    .feature-card {
        padding: 16px;
    }
}

.results-section {
    max-width: 900px;
    margin: 0 auto;
}

.results-heading {
    margin-bottom: 6px;
}

    .results-heading h2 {
        font-size: clamp(19px, 3.5vw, 23px);
        font-weight: 600;
        margin-bottom: 4px;
    }

    .results-heading .results-subtitle {
        font-size: 13.5px;
        color: var(--slate);
        margin-bottom: 0;
    }

.results-count-line {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 18px 0 14px;
}

    .results-count-line b,
    .results-count-line strong {
        font-family: 'IBM Plex Mono', monospace;
        color: var(--ink);
    }

/* ---------- Entity (company) card ---------- */

.entity-card {
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-md);
    background: #fff;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .entity-card:hover {
        border-color: var(--brass);
        box-shadow: var(--shadow-card);
    }

.entity-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    flex-wrap: wrap;
}

.entity-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.entity-info {
    min-width: 0;
    flex: 1 1 160px;
}

.entity-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    word-break: break-word;
}

.entity-location {
    font-size: 12.5px;
    color: var(--slate);
    margin-top: 2px;
}

.entity-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-wrap: wrap;
}

.cert-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sapphire-soft);
    color: var(--sapphire);
    border: 1px solid rgba(28, 47, 107, 0.14);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.entity-chevron {
    color: var(--slate);
    font-size: 15px;
    transition: transform 0.2s ease;
}

.entity-card.open .entity-chevron {
    transform: rotate(180deg);
    color: var(--brass-dark);
}

.entity-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-top: 0 solid var(--line-cool);
}

.entity-card.open .entity-body {
    border-top: 1px solid var(--line-cool);
}

.entity-body-inner {
    padding: 4px 18px 6px;
}

.cert-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1efe6;
}

    .cert-detail-row:last-child {
        border-bottom: none;
    }

.cert-detail-main {
    min-width: 0;
    flex: 1 1 200px;
}

.cert-standard {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--sapphire);
    margin-bottom: 3px;
}

.cert-sub {
    font-size: 12.5px;
    color: var(--slate);
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .cert-sub strong {
        font-family: 'IBM Plex Mono', monospace;
        font-weight: 600;
        color: var(--ink-soft);
    }

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

    .status-dot::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
    }

    .status-dot.is-valid {
        color: var(--green);
    }

        .status-dot.is-valid::before {
            background: var(--green);
        }

    .status-dot.is-expired {
        color: var(--red);
    }

        .status-dot.is-expired::before {
            background: var(--red);
        }

.btn-view-details {
    border: 1px solid var(--line-cool);
    background: #fff;
    color: var(--sapphire);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex: 0 0 auto;
}

    .btn-view-details:hover {
        background: var(--sapphire-soft);
        border-color: var(--sapphire);
        color: var(--sapphire);
    }

@media (max-width: 575.98px) {
    .entity-header {
        padding: 14px;
    }

    .entity-meta {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .cert-detail-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-view-details {
        width: 100%;
        text-align: center;
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--slate);
    font-size: 14px;
}

    .empty-state i {
        font-size: 30px;
        color: var(--line);
        display: block;
        margin-bottom: 10px;
    }

/* Details modal */

#detailsModal .modal-content {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#detailsModal .modal-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

#detailsModal .modal-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
}

#detailsModal .modal-footer {
    flex-wrap: wrap;
    gap: 8px;
}

    #detailsModal .modal-footer .btn {
        flex: 1 1 auto;
    }

.detail-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 3px;
}

.detail-value {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    word-break: break-word;
}

.pdf-viewer-wrap {
    border: 1px solid var(--line-cool);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
}

    .pdf-toolbar .pdf-toolbar-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12.5px;
        font-weight: 600;
        color: #cfd4e0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .pdf-toolbar .pdf-toolbar-label i {
            color: var(--brass);
            flex-shrink: 0;
        }

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .zoom-btn:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .zoom-btn:active {
        background: rgba(255, 255, 255, 0.2);
    }

    .zoom-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

.zoom-level {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    min-width: 46px;
    text-align: center;
    user-select: none;
}

.pdf-canvas-area {
    max-height: 640px;
    overflow: auto;
    background: #4b4f56;
    padding: 20px;
    text-align: center;
    position: relative;
}

.pdf-page-canvas {
    display: block;
    margin: 0 auto 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    max-width: 100%;
    height: auto;
}

    .pdf-page-canvas:last-child {
        margin-bottom: 0;
    }

.pdf-canvas-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: #4b4f56;
    color: #d7dae0;
    font-size: 13px;
}

    .pdf-canvas-overlay i {
        font-size: 24px;
    }

@media (max-width: 575.98px) {
    .pdf-canvas-area {
        max-height: 460px;
        padding: 12px;
    }

    .pdf-toolbar {
        padding: 8px 10px;
    }

    .pdf-toolbar-label span {
        display: none;
    }
}

/* ==========================================================================
   Certificate Details — standalone page
   ========================================================================== */

.cert-page-header {
    padding: clamp(28px, 6vw, 44px) 16px 0px;
    background: radial-gradient(ellipse at 90% 0%, rgba(169, 129, 47, 0.06), transparent 55%), var(--paper);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

    .cert-page-header .back-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        color: var(--sapphire);
        margin-bottom: 18px;
    }

        .cert-page-header .back-link:hover {
            color: var(--sapphire-dark);
        }

.cert-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-dark);
    background: var(--brass-soft);
    border: 1px solid rgba(169, 129, 47, 0.25);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.cert-page-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 26px;
}

.cert-page-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
    background: var(--sapphire);
    background-image: radial-gradient(circle at 30% 25%, #33459c, var(--sapphire) 70%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(28, 47, 107, 0.22);
}

.cert-page-title-row h1 {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 600;
    margin: 0;
    line-height: 1.25;
}

.cert-page-title-row .cert-page-sub {
    font-size: 13px;
    color: var(--slate);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .cert-page-title-row .cert-page-sub .mono {
        color: var(--ink-soft);
    }

.cert-detail-panel {
    max-width: 96%;
    margin: 0 auto;
    padding: clamp(23px, 5vw, 40px) 7px 28px;
}

.cert-detail-card {
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    padding: clamp(20px, 4vw, 16px);
    margin-bottom: 22px;
}

    .cert-detail-card .section-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--brass-dark);
        margin-bottom: 20px;
    }

        .cert-detail-card .section-label::before {
            content: "";
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--brass);
            display: inline-block;
        }

.detail-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .detail-field i {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
        background: var(--sapphire-soft);
        color: var(--sapphire);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        margin-top: 1px;
    }

.badge-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 16px;
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-md);
    background: var(--paper-deep);
}

    .badge-preview .badge-preview-img {
        width: 64px;
        height: 64px;
        min-width: 64px;
        object-fit: contain;
        background: #fff;
        border-radius: 8px;
        border: 1px solid var(--line-cool);
        padding: 6px;
    }

        .badge-preview .badge-preview-img.is-hidden {
            display: none;
        }

.cert-loading-state,
.cert-error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate);
    font-size: 14px;
}

    .cert-error-state i {
        font-size: 30px;
        color: var(--red);
        display: block;
        margin-bottom: 10px;
    }

/* ==========================================================================
   Home — hero, help section, trust strip, map
   ========================================================================== */

.hero h1 .brass {
    color: var(--brass-dark);
}

.hero h1 .ink {
    color: var(--ink);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 44px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.stat-num {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--sapphire);
}

.stat-label {
    font-size: 13px;
    color: var(--slate);
    margin-top: 2px;
}

@media (max-width: 575.98px) {
    .stats-row {
        gap: 34px;
    }
}

.help-section {
    max-width: 1100px;
    margin: clamp(40px, 8vw, 70px) auto 0;
}

    .help-section h2 {
        font-size: clamp(19px, 3.5vw, 24px);
        font-weight: 600;
        margin-bottom: 22px;
    }

.help-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.help-tab {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

    .help-tab.verification {
        background: var(--sapphire);
        color: #fff;
    }

    .help-tab.analytics {
        background: var(--purple-soft);
        color: var(--purple);
    }

    .help-tab.certified {
        background: var(--green-soft);
        color: var(--green);
    }

    .help-tab:not(.active) {
        opacity: 0.55;
    }

.help-card {
    border-left: 3px solid var(--brass);
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
    height: 100%;
}

    .help-card .icon-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .help-card i.bi-search {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: var(--sapphire-soft);
        color: var(--sapphire);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }

    .help-card h3 {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 700;
        margin: 14px 0 8px;
    }

    .help-card p {
        font-size: 13.5px;
        color: var(--slate);
        margin-bottom: 12px;
    }

    .help-card a {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--sapphire);
    }

.browser-mock {
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

    .browser-mock .bar {
        background: var(--paper-deep);
        padding: 10px 14px;
        display: flex;
        gap: 6px;
        border-bottom: 1px solid var(--line);
    }

        .browser-mock .bar span {
            width: 9px;
            height: 9px;
            border-radius: 50%;
        }

            .browser-mock .bar span:nth-child(1) {
                background: #f2716a;
            }

            .browser-mock .bar span:nth-child(2) {
                background: var(--brass);
            }

            .browser-mock .bar span:nth-child(3) {
                background: #4cc06a;
            }

    .browser-mock .preview {
        padding: 30px 20px 40px;
        text-align: center;
        background: var(--paper);
    }

        .browser-mock .preview h4 {
            font-family: 'Fraunces', serif;
            font-size: clamp(16px, 3vw, 20px);
            font-weight: 600;
            margin: 0;
        }

.trust-strip {
    text-align: center;
    padding: clamp(36px, 7vw, 60px) 16px clamp(24px, 5vw, 40px);
}

    .trust-strip p {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 12px;
        letter-spacing: 0.04em;
        color: var(--sapphire);
        font-weight: 600;
        margin-bottom: 26px;
        padding: 0 8px;
    }

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 54px;
    flex-wrap: wrap;
    opacity: 0.75;
}

    .trust-logos span {
        font-family: 'Fraunces', serif;
        font-weight: 600;
        font-size: 19px;
        color: #8891a3;
        letter-spacing: 0.2px;
    }

@media (max-width: 575.98px) {
    .trust-logos {
        gap: 22px 30px;
    }

        .trust-logos span {
            font-size: 15px;
        }
}

.map-section {
    background: var(--paper);
    padding: clamp(36px, 7vw, 60px) 16px;
}

.map-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.map-visual {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-cool);
    padding: 30px;
    min-height: 220px;
    overflow: hidden;
}

    .map-visual::before {
        content: "";
        position: absolute;
        inset: 20px;
        background: radial-gradient(circle, var(--brass) 1.5px, transparent 1.6px);
        background-size: 16px 16px;
        opacity: 0.16;
        border-radius: 10px;
    }

.map-pill {
    position: absolute;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}

    .map-pill i.bi-patch-check-fill {
        color: var(--green);
        font-size: 12px;
    }

    .map-pill.p1 {
        top: 22px;
        left: 40px;
    }

    .map-pill.p2 {
        top: 60px;
        right: 60px;
    }

    .map-pill.p3 {
        top: 110px;
        left: 90px;
    }

    .map-pill.p4 {
        bottom: 30px;
        right: 100px;
    }

    .map-pill.p5 {
        bottom: 20px;
        left: 50px;
    }

@media (max-width: 767.98px) {
    .map-visual {
        min-height: 260px;
        padding: 16px;
    }

    .map-pill {
        font-size: 10.5px;
        padding: 4px 9px 4px 6px;
    }

        .map-pill.p1 {
            top: 12px;
            left: 12px;
        }

        .map-pill.p2 {
            top: 46px;
            right: 12px;
        }

        .map-pill.p3 {
            top: 96px;
            left: 20px;
        }

        .map-pill.p4 {
            bottom: 46px;
            right: 16px;
        }

        .map-pill.p5 {
            bottom: 12px;
            left: 60px;
        }
}

@media (max-width: 420px) {
    .map-pill.p3, .map-pill.p5 {
        display: none;
    }
}

.map-text h2 {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 600;
    margin-bottom: 14px;
}

.map-text p {
    color: var(--slate);
    font-size: 14.5px;
    line-height: 1.7;
}

.map-text a {
    color: var(--sapphire);
    font-weight: 600;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.brand-mark {
    width: 134px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
