/* Explain: Component styles for cards, buttons, and forms. */
.site-header {
    background: linear-gradient(180deg, rgba(251, 247, 238, 0.9), rgba(251, 247, 238, 0.6));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(251, 247, 238, 0.8), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(251, 247, 238, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 700px);
    min-height: 480px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 560px;
    max-width: 430px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.class-card {
    min-height: 340px;
    border-radius: 2.2rem;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: rgba(201, 162, 39, 0.58);
    box-shadow: 0 26px 80px rgba(27, 42, 74, 0.16);
    transform: translateY(-6px);
}

.article-item.is-filtered-out {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.5rem 1.15rem;
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.chip:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.chip.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--text-color);
}

.form-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-status.success {
    color: #1B2A4A;
}

.form-status.error {
    color: #A03B2C;
}

.article-body {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 2.1;
}

.article-body p {
    margin-bottom: 1.35rem;
    color: var(--text-muted);
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--text-color);
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-size: 1.3rem;
    color: var(--text-color);
}

.article-body ul,
.article-body ol {
    margin: 1.25rem 0;
    padding-inline-start: 1.5rem;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.article-body strong {
    color: var(--text-color);
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    min-height: 100dvh;
    flex-direction: column;
    overflow-y: auto;
    background: var(--background-color);
    color: var(--text-color);
}

.nav-overlay.is-open {
    display: flex;
}

@media (min-width: 1024px) {
    .nav-overlay,
    .nav-overlay.is-open {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 480px;
        min-height: 0;
    }

    .arch-frame-large,
    .arch-frame-medium {
        width: min(100%, 430px);
        margin-inline: auto;
    }
}