﻿/* DailyMed Drug Lookup – scoped styles */
/*:root {
    --primary: #1a5276;
    --primary-light: #2e86c1;
    --accent: #117a65;
    --accent-light: #1abc9c;
    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #d5d8dc;
    --text: #1c2833;
    --text-muted: #626567;
    --danger: #c0392b;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
}

.lookup-container {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
}

.lookup-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .25rem;
}

.lookup-header .subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}

.ndc-input {
    flex: 1;
    padding: .65rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color .2s;
}

    .ndc-input:focus {
        outline: none;
        border-color: var(--primary-light);
    }

.btn-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

    .btn-search:hover:not(:disabled) {
        background: var(--primary-light);
    }

    .btn-search:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.quick-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
}

.chip-label {
    font-size: .85rem;
    color: var(--text-muted);
}

.chip {
    padding: .25rem .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .82rem;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

    .chip:hover:not(:disabled) {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

.alert-error {
    background: #fdecea;
    border: 1px solid #f1948a;
    color: var(--danger);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.results-meta {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.spl-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.spl-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

    .spl-card:hover {
        border-color: var(--primary-light);
        box-shadow: var(--shadow);
    }

    .spl-card.selected {
        border-color: var(--primary);
        background: #eaf3fb;
    }

.spl-title {
    font-weight: 600;
    margin-bottom: .3rem;
    font-size: .95rem;
}

.spl-meta {
    display: flex;
    gap: 1rem;
    font-size: .78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.spl-setid {
    font-family: monospace;
}

.label-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 2rem;
}

.label-header-band {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

    .label-header-band h2 {
        font-size: 1.3rem;
        color: var(--primary);
        line-height: 1.3;
        margin: 0;
    }

.doc-type-badge {
    display: inline-block;
    margin-top: .35rem;
    background: #eaf3fb;
    color: var(--primary);
    border: 1px solid #aed6f1;
    border-radius: 4px;
    padding: .15rem .55rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.label-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

    .label-links a {
        color: var(--accent);
        font-weight: 600;
        font-size: .85rem;
        text-decoration: none;
        border-bottom: 2px solid var(--accent-light);
        padding-bottom: 1px;
        transition: color .15s;
        white-space: nowrap;
    }

        .label-links a:hover {
            color: var(--primary);
        }

.detail-section {
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

    .detail-section > h3 {
        font-size: .9rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: .65rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .detail-section h4 {
        font-size: .85rem;
        font-weight: 700;
        color: var(--text-muted);
        margin: .85rem 0 .4rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .detail-section dl {
        display: grid;
        grid-template-columns: 160px 1fr;
        row-gap: .4rem;
        column-gap: .75rem;
        font-size: .9rem;
    }

    .detail-section dt {
        font-weight: 600;
        color: var(--text-muted);
    }

    .detail-section dd {
        margin: 0;
    }

.ingredient-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin-top: .4rem;
}

    .ingredient-table th {
        text-align: left;
        padding: .4rem .6rem;
        background: var(--bg);
        border-bottom: 2px solid var(--border);
        font-weight: 700;
        color: var(--text-muted);
    }

    .ingredient-table td {
        padding: .35rem .6rem;
        border-bottom: 1px solid #eaecee;
    }

.inactive-details {
    margin-top: .6rem;
}

    .inactive-details summary {
        cursor: pointer;
        color: var(--primary);
        font-weight: 600;
        font-size: .85rem;
        padding: .3rem 0;
    }

.ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    list-style: none;
    padding: .5rem 0 0;
    margin: 0;
}

    .ingredient-list li {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: .15rem .5rem;
        font-size: .78rem;
    }

.ndc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}

.ndc-badge {
    font-family: monospace;
    font-size: .8rem;
    background: #eaf0fb;
    border: 1px solid #aed6f1;
    border-radius: 4px;
    padding: .15rem .5rem;
    color: var(--primary);
}*/

/* Image gallery */
/*.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .5rem;
}

.gallery-figure {
    margin: 0;
    cursor: zoom-in;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    background: var(--bg);
}

    .gallery-figure:hover {
        border-color: var(--primary-light);
        box-shadow: var(--shadow);
    }

.gallery-thumb {
    display: block;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    padding: .5rem;
}

.gallery-figure figcaption {
    font-size: .75rem;
    color: var(--text-muted);
    padding: .25rem .5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}*/

/* Lightbox */
/*.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.lightbox-img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-caption {
    font-size: .85rem;
    color: var(--text-muted);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: .25rem .4rem;
    border-radius: 4px;
    transition: background .15s;
}

    .lightbox-close:hover {
        background: var(--bg);
        color: var(--text);
    }*/

/* Label sections */
/*.label-section {
    border-bottom: 1px solid var(--border);
}

.section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: .65rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    transition: color .15s;
}

    .section-toggle:hover {
        color: var(--primary-light);
    }

.toggle-icon {
    font-size: .7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.section-body {
    padding: .25rem 0 .75rem;
    font-size: .875rem;
    line-height: 1.6;
}

    .section-body p {
        margin: 0 0 .5rem;
    }

.sub-section {
    margin: .5rem 0 .5rem 1rem;
    padding-left: .75rem;
    border-left: 3px solid var(--border);
}

    .sub-section h5 {
        font-size: .8rem;
        font-weight: 700;
        color: var(--text-muted);
        margin: 0 0 .25rem;
        text-transform: uppercase;
    }

@media (max-width: 600px) {
    .label-header-band {
        flex-direction: column;
    }

    .detail-section dl {
        grid-template-columns: 1fr;
    }

    .detail-section dt {
        color: var(--text-muted);
        font-size: .8rem;
        margin-top: .4rem;
    }

    .gallery-thumb {
        max-width: 140px;
        max-height: 140px;
    }
}*/



/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1a3a5c;
    --navy-mid: #1e5799;
    --teal: #0d7a6e;
    --teal-lt: #19a896;
    --sky: #deeef7;
    --sky-deep: #b8d8ed;
    --cream: #f7f9fb;
    --white: #ffffff;
    --border: #ccdde8;
    --text: #1a2c3d;
    --muted: #5a7080;
    --danger: #be3b2b;
    --warn-bg: #fff8e1;
    --warn-bd: #f5c842;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --r: 10px;
    --font: 'DM Sans', system-ui, sans-serif;
    --mono: 'DM Mono', monospace;
}

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* ── Top nav bar ─────────────────────────────────────────────────────────── */
.topnav {
    background: var(--navy);
    color: #fff;
    padding: 0 2rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

    .topnav-brand svg {
        opacity: .85;
    }

.topnav-links {
    display: flex;
    gap: 1.5rem;
}

    .topnav-links a {
        color: rgba(255,255,255,.75);
        font-size: .82rem;
        font-weight: 500;
        text-decoration: none;
        letter-spacing: .02em;
        transition: color .15s;
    }

        .topnav-links a:hover {
            color: #fff;
        }

/* ── Page shell ──────────────────────────────────────────────────────────── */
.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Search row ──────────────────────────────────────────────────────────── */
.search-row {
    display: flex;
    gap: .5rem;
    margin-bottom: .65rem;
}

.search-input {
    flex: 1;
    height: 46px;
    padding: 0 1.1rem;
    border: 2px solid var(--sky-deep);
    border-radius: var(--r);
    font-family: var(--font);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    box-shadow: var(--shadow-sm);
}

    .search-input:focus {
        border-color: var(--navy-mid);
    }

.search-btn {
    height: 46px;
    padding: 0 1.4rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(26,58,92,.25);
    transition: background .15s;
}

    .search-btn:hover {
        background: var(--navy-mid);
    }

.chips {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.chips-label {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
}

.chip {
    padding: .22rem .7rem;
    border-radius: 999px;
    border: 1.5px solid var(--sky-deep);
    background: var(--white);
    font-size: .78rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s;
}

    .chip.active {
        background: var(--navy);
        color: #fff;
        border-color: var(--navy);
    }

    .chip:hover:not(.active) {
        border-color: var(--navy-mid);
        color: var(--navy-mid);
    }

/* ── Results meta ────────────────────────────────────────────────────────── */
.results-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

    .results-meta strong {
        color: var(--navy);
        font-weight: 600;
    }

    .results-meta code {
        font-family: var(--mono);
        font-size: .8rem;
        background: var(--sky);
        padding: .1rem .4rem;
        border-radius: 4px;
        color: var(--navy-mid);
    }

/* ── SPL card list ───────────────────────────────────────────────────────── */
.spl-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 2rem;
}

.spl-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: .7rem 1rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

    .spl-card:hover {
        border-color: var(--navy-mid);
        box-shadow: var(--shadow-sm);
    }

    .spl-card.active {
        border-color: var(--navy);
        background: #edf4fb;
    }

.spl-card-title {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
}

.spl-card-meta {
    display: flex;
    gap: .75rem;
    font-size: .75rem;
    color: var(--muted);
    flex-wrap: wrap;
}

    .spl-card-meta code {
        font-family: var(--mono);
        font-size: .72rem;
    }

.spl-version-badge {
    padding: .1rem .45rem;
    border-radius: 4px;
    background: var(--sky);
    font-size: .72rem;
    font-weight: 600;
    color: var(--navy);
}

/* ── Label card ──────────────────────────────────────────────────────────── */
.label-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: slideUp .3s ease both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* header band */
.label-head {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 1.4rem 1.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

    .label-head h2 {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: .35rem;
    }

.doc-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    padding: .15rem .55rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.label-head-links {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}

.head-link {
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
    padding-bottom: 1px;
    transition: color .15s;
    white-space: nowrap;
}

    .head-link:hover {
        color: #fff;
    }

.label-body {
    padding: 1.5rem 1.75rem;
}

/* section block */
.sect {
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--border);
}

    .sect:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.sect-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--teal);
    margin-bottom: .75rem;
}

/* ── Image gallery ───────────────────────────────────────────────────────── */
.gallery {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}

.gallery-figure {
    border: 2px solid var(--border);
    border-radius: var(--r);
    background: var(--cream);
    cursor: zoom-in;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .gallery-figure:hover {
        border-color: var(--teal-lt);
        box-shadow: 0 2px 12px rgba(13,122,110,.15);
    }

    .gallery-figure img {
        display: block;
        width: 130px;
        height: 130px;
        object-fit: contain;
        padding: .6rem;
    }

.gal-cap {
    font-size: .7rem;
    color: var(--muted);
    background: var(--sky);
    width: 100%;
    text-align: center;
    padding: .2rem .4rem;
    border-top: 1px solid var(--border);
}


/* ── Product dl ──────────────────────────────────────────────────────────── */
.prod-grid {
    display: grid;
    grid-template-columns: 155px 1fr;
    row-gap: .45rem;
    column-gap: 1rem;
    font-size: .875rem;
}

.prod-label {
    color: var(--muted);
    font-weight: 500;
}

.prod-value {
    color: var(--text);
    font-weight: 400;
}

/* ── Ingredient table ────────────────────────────────────────────────────── */
.ingredient-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    margin-top: .5rem;
}

    .ingredient-table th {
        text-align: left;
        padding: .4rem .65rem;
        background: var(--sky);
        border-bottom: 2px solid var(--sky-deep);
        color: var(--muted);
        font-weight: 600;
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .ingredient-table td {
        padding: .38rem .65rem;
        border-bottom: 1px solid var(--border);
    }

    .ingredient-table tr:last-child td {
        border-bottom: none;
    }

/* inactive accordion */
.inact-toggle {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    color: var(--navy-mid);
    font-size: .82rem;
    font-weight: 500;
    margin-top: .65rem;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font);
}

    .inact-toggle:hover {
        color: var(--navy);
    }

.inact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .5rem;
}

.inact-pill {
    background: var(--sky);
    border: 1px solid var(--sky-deep);
    color: var(--navy);
    font-size: .74rem;
    padding: .15rem .5rem;
    border-radius: 4px;
}

/* ndc badges */
.ndc-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.ndc-chip {
    font-family: var(--mono);
    font-size: .78rem;
    background: #e8f4f0;
    border: 1px solid #9dd0c5;
    color: var(--teal);
    border-radius: 5px;
    padding: .18rem .55rem;
}

/* ── Label sections accordion ────────────────────────────────────────────── */
.lsect-list {
    display: flex;
    flex-direction: column;
}

.lsect-item {
    border-bottom: 1px solid var(--border);
}

    .lsect-item:last-child {
        border-bottom: none;
    }

.lsect-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: .7rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: color .15s;
}

    .lsect-btn:hover {
        color: var(--navy-mid);
    }

.lsect-icon {
    font-size: .65rem;
    color: var(--muted);
    flex-shrink: 0;
}


    .lsect-icon::before {
        content: "\25BC"; /* ▼ */
        display: inline-block;
        transition: transform 0.2s ease;
    }

    .lsect-icon.open::before {
        transform: rotate(180deg); /* ▲ */
    }



.lsect-body {
    padding: .1rem 0 .85rem;
    font-size: .855rem;
    font-family: sans-serif;
    line-height: 1.5;
    color: var(--text);
    display: none;
}

    .lsect-body.open {
        display: block;
    }

    .lsect-body p {
        margin-bottom: .5rem;
    }

.sub-sect {
    margin: .4rem 0 0 1rem;
    padding-left: .75rem;
    border-left: 3px solid var(--sky-deep);
}

    .sub-sect h5 {
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--muted);
        margin-bottom: .3rem;
    }

/* warn box */
.warn-box {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn-bd);
    border-radius: 0 var(--r) var(--r) 0;
    padding: .65rem .9rem;
    font-size: .84rem;
    line-height: 1.55;
    color: #5a4000;
    margin-bottom: .6rem;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5,15,25,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lbIn .18s ease;
}

@keyframes lbIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lb-inner {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 88vw;
    max-height: 88vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 16px 64px rgba(0,0,0,.45);
}

    .lb-inner img {
        max-width: 72vw;
        max-height: 68vh;
        object-fit: contain;
        padding-top: 20px;
    }

.lb-cap {
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
}

.lb-close {
    position: absolute;
    top: .6rem;
    right: .8rem;
    background: var(--sky);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size:1rem;
    color:var(--navy);display:flex;align-items:center;justify-content:center; transition:background.15s;
}
.lb-close:hover{background:var(--sky-deep);}
 