.app-header {
    height: 82px;
    position: relative;
    z-index: 5;
}

.main-site-link {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--moss);
    border-radius: 999px;
    background: var(--moss);
    color: #fff;
    padding: 9px 14px;
    text-decoration: none;
    font: 700 12px APTThai, "Segoe UI", sans-serif;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(38, 62, 53, .18);
}

.main-site-link:hover {
    background: var(--moss-2);
}

.identity-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image:
        linear-gradient(90deg, rgba(17, 39, 30, .97) 0%, rgba(20, 47, 36, .91) 45%, rgba(20, 47, 36, .42) 100%),
        url("doi-inthanon-hero.webp");
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 60px rgba(21, 46, 36, .22);
}

.identity-card::after {
    display: block;
    inset: 0;
    width: auto;
    height: auto;
    right: 0;
    bottom: 0;
    border: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 28px 28px;
    box-shadow: none;
    mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
    pointer-events: none;
}

.identity-card .eyebrow,
.identity-card h1,
.identity-card .company-type,
.identity-card .identity-number {
    max-width: 65%;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .34);
}

.verified-mark {
    z-index: 2;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
}

footer {
    justify-content: center;
}

.details,
.documents {
    border-color: rgba(38, 62, 53, .13);
    box-shadow: 0 14px 34px rgba(35, 57, 47, .07);
    backdrop-filter: blur(14px);
}

.documents .section-heading {
    align-items: center;
}

.documents .section-heading::after {
    content: "SECURE • VERIFIED";
    border: 1px solid rgba(184, 149, 84, .34);
    border-radius: 999px;
    padding: 5px 9px;
    color: #8b6b32;
    background: rgba(250, 246, 236, .84);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.document-card {
    overflow: hidden;
    border-color: rgba(38, 62, 53, .13);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,247,.94));
    box-shadow: 0 7px 20px rgba(28, 52, 42, .055);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    align-items: start;
}

.document-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--good));
}

.document-card:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 62, 53, .24);
    box-shadow: 0 13px 28px rgba(28, 52, 42, .1);
}

.document-icon {
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: 2px;
    background: linear-gradient(145deg, #f2f6f2, #e7efe9);
    box-shadow: inset 0 0 0 1px rgba(38, 62, 53, .045);
}

.status {
    border-radius: 999px;
    padding: 4px 8px;
    background: #edf5ee;
}

.document-link,
.coverage-toggle {
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.document-link {
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: 2px;
}

.document-link:hover,
.coverage-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--moss);
    background: var(--moss);
    color: #fff;
}

.document-number strong {
    color: var(--moss);
    font-weight: 700;
    letter-spacing: .015em;
}

.insurer-name {
    width: fit-content;
    margin: 6px 0 0;
    border-left: 2px solid var(--gold);
    padding-left: 7px;
    color: #53665c;
    font-size: 11px;
    line-height: 1.4;
}

.coverage-details {
    margin-top: 10px;
}

.coverage-toggle {
    width: fit-content;
    cursor: pointer;
    border: 1px solid #cbd4cc;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--moss);
    background: #fff;
    font: 700 11px APTThai, "Segoe UI", sans-serif;
}

.coverage-toggle::after {
    content: " +";
}

.coverage-toggle[aria-expanded="true"]::after {
    content: " -";
}

.coverage-content {
    margin-top: 9px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(38, 62, 53, .1);
    background:
        linear-gradient(135deg, rgba(237,245,238,.96), rgba(249,250,247,.98));
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.coverage-content p {
    margin: 0 0 6px;
    color: var(--moss);
    font-weight: 700;
}

.coverage-content ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coverage-content li {
    position: relative;
    border-bottom: 1px solid rgba(38, 62, 53, .08);
    padding: 5px 0 7px 15px;
}

.coverage-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,149,84,.13);
}

.coverage-content small {
    display: block;
    margin-top: 7px;
}

@media (prefers-reduced-motion: reduce) {
    .document-card,
    .document-link,
    .coverage-toggle {
        transition: none;
    }
}

@media (max-width: 560px) {
    .app-header {
        height: 74px;
        gap: 10px;
        padding: 0 12px;
    }

    .app-header > .brand-link {
        width: 108px;
    }

    .header-actions {
        gap: 5px;
    }

    .main-site-link {
        padding: 8px 10px;
        font-size: 11px;
    }

    .identity-card {
        min-height: 330px;
        padding-top: 45px;
        background-image:
            linear-gradient(90deg, rgba(17, 39, 30, .97) 0%, rgba(20, 47, 36, .88) 67%, rgba(20, 47, 36, .56) 100%),
            url("doi-inthanon-hero.webp");
        background-position: 42% center;
    }

    .documents .section-heading::after {
        display: none;
    }

    .document-card:hover {
        transform: none;
    }

    .identity-card .eyebrow,
    .identity-card h1,
    .identity-card .company-type,
    .identity-card .identity-number {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .app-header > .brand-link {
        width: 94px;
    }

    .main-site-link {
        padding-inline: 9px;
    }

    .language-toggle {
        padding-inline: 7px;
    }
}
