/* =========================================
   TERPS GLOSSARIES — page-scoped styles
========================================= */

:root {
    --terps-gl-primary: #A4C912;
    --terps-gl-ink: #21213E;
    --terps-gl-ink-soft: #3a3a5c;
    --terps-gl-white: #ffffff;
    --terps-gl-cream: #f7f9f0;
    --terps-gl-muted: #5c5c72;
    --terps-gl-light: #c5df5a;
    --terps-gl-lighter: #e8f2c4;
    --terps-gl-pale: #f3f8e3;
    --terps-gl-shadow-soft: 0 6px 18px rgba(33, 33, 62, 0.08);
    --terps-gl-radius: 18px;
    --terps-gl-max: 1120px;
}

.main-header {
    display: none;
}

body:has(.terps-gl-page) {
    background: var(--terps-gl-cream);
}

.menu-list a.active,
.menu-list a[aria-current="page"] {
    color: var(--terps-gl-ink);
    opacity: 1;
    box-shadow: inset 0 -3px 0 var(--terps-gl-primary);
    padding-bottom: 4px;
}

.terps-gl-page {
    color: var(--terps-gl-ink);
    background: var(--terps-gl-cream);
    overflow-x: hidden;
}

.terps-gl-container {
    width: min(92%, var(--terps-gl-max));
    margin: 0 auto;
}

#community,
#social-services,
#police,
#court,
#medical,
#legal,
#media {
    scroll-margin-top: 24px;
}

.terps-gl-intro {
    padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 4vw, 40px);
    background:
        radial-gradient(circle at 88% 12%, rgba(164, 201, 18, 0.24), transparent 42%),
        linear-gradient(165deg, var(--terps-gl-white) 0%, var(--terps-gl-pale) 100%);
}

.terps-gl-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--terps-gl-lighter);
    color: var(--terps-gl-ink);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.terps-gl-title {
    margin: 0 0 16px;
    color: var(--terps-gl-ink);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
}

.terps-gl-lead {
    margin: 0 0 26px;
    max-width: 44rem;
    color: var(--terps-gl-ink-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.terps-gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.terps-gl-btn:focus-visible {
    outline: 3px solid var(--terps-gl-ink);
    outline-offset: 3px;
}

.terps-gl-btn-primary {
    background: var(--terps-gl-primary);
    border-color: var(--terps-gl-primary);
    color: var(--terps-gl-ink);
}

.terps-gl-btn-primary:hover {
    background: var(--terps-gl-light);
    border-color: var(--terps-gl-light);
    color: var(--terps-gl-ink);
}

.terps-gl-section {
    padding: 0 0 clamp(56px, 8vw, 88px);
}

.terps-gl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.terps-gl-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    background: var(--terps-gl-white);
    border: 1px solid rgba(164, 201, 18, 0.22);
    border-radius: var(--terps-gl-radius);
    padding: 22px 18px 20px;
    box-shadow: var(--terps-gl-shadow-soft);
}

.terps-gl-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--terps-gl-primary);
    color: var(--terps-gl-ink);
    font-size: 1.1rem;
}

.terps-gl-card-title {
    margin: 0;
    color: var(--terps-gl-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.terps-gl-card-text {
    margin: 0;
    color: var(--terps-gl-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1 1 auto;
}

.terps-gl-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 33, 62, 0.08);
    color: var(--terps-gl-ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .terps-gl-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .terps-gl-grid {
        grid-template-columns: 1fr;
    }

    .terps-gl-btn {
        width: 100%;
    }
}
