.glossary-content {
    flex: 1 1 auto;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.5rem clamp(1rem, 4vw, 4rem) 3rem;
    background: #f8fafc;
}

.glossary-hero,
.glossary-section,
.glossary-note {
    width: min(1180px, 100%);
    margin: 0 auto 2rem;
}

.glossary-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.eyebrow {
    color: #008080;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.glossary-hero h1 {
    color: #000000 !important;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.8rem;
    text-align: left !important;
}

.glossary-hero > p:not(.eyebrow) {
    max-width: 850px;
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.glossary-tip {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid #008080;
    background: #f0fdfa;
    color: #334155;
    border-radius: 6px;
    line-height: 1.6;
}

.glossary-section {
    padding: 0.25rem 0;
}

.glossary-section h2,
.glossary-note h2 {
    color: #0f172a;
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

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

.term-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    min-height: 150px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.term-card h3 {
    color: #008080;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.term-card p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.94rem;
}

.glossary-note {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}

.glossary-note p {
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .term-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .glossary-content {
        padding: 1.25rem 0.85rem 2rem;
    }

    .term-grid {
        grid-template-columns: 1fr;
    }

    .term-card {
        min-height: 0;
    }
}

.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.25rem;
}

.glossary-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: #f0fdfa;
    color: #006666;
    border: 1px solid #b7e4df;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}

.glossary-nav a:hover {
    background: #dff7f3;
    transform: translateY(-1px);
}

.glossary-section {
    scroll-margin-top: 1.5rem;
}

.term-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.term-card h3 {
    line-height: 1.3;
}

.term-card p {
    margin-top: .15rem;
}

@media (max-width: 600px) {
    .glossary-nav {
        gap: .45rem;
    }

    .glossary-nav a {
        font-size: .84rem;
        padding: .5rem .68rem;
    }
}
