/* Accordion Blueprint — earth palette overrides applied via App\Core\Security
   namespace via the existing --fm-* variables in theme.css. */

.accordion-container { max-width: 800px; margin: 0 auto; padding: 0 0 2rem; }

.acc-group { margin-bottom: 0.75rem; }

.acc-header {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.18s;
    user-select: none;
}
.acc-header:hover {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 2px rgba(74, 107, 58, 0.08);
}
.acc-group.open .acc-header {
    border-color: var(--fm-primary);
    background: var(--fm-surface-2);
    border-radius: var(--fm-radius) var(--fm-radius) 0 0;
}
.acc-title {
    font-family: var(--fm-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--fm-text);
}
.acc-icon { font-size: 1.05rem; opacity: 0.85; }
.acc-count {
    font-size: 0.7rem;
    background: var(--fm-primary);
    color: #fff;
    padding: 0.1rem 0.55rem;
    border-radius: 100px;
    font-weight: 700;
}
.acc-chevron { color: var(--fm-text-muted); transition: transform 0.2s; }
.acc-group.open .acc-chevron { transform: rotate(180deg); }

.acc-body {
    display: none;
    border: 1px solid var(--fm-primary);
    border-top: none;
    border-radius: 0 0 var(--fm-radius) var(--fm-radius);
    background: var(--fm-surface);
    overflow: hidden;
}
.acc-group.open .acc-body { display: block; }
.acc-item {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--fm-border-soft);
}
.acc-item:last-child { border-bottom: 0; }
.acc-item-name { font-weight: 700; font-size: 1rem; margin: 0 0 0.4rem; color: var(--fm-text); }
.acc-item-desc { color: var(--fm-text-muted); font-size: 0.95rem; line-height: 1.6; }
.acc-item-desc p { margin: 0 0 0.65rem; }
.acc-item-desc p:last-child { margin: 0; }
.acc-item-meta { font-size: 0.75rem; color: var(--fm-text-soft); margin-top: 0.4rem; }

.acc-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}
.acc-search-wrap input {
    width: 100%;
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    color: var(--fm-text);
    padding: 0.7rem 2.4rem 0.7rem 0.9rem;
    border-radius: var(--fm-radius);
    font: inherit;
    outline: none;
    transition: all 0.18s;
}
.acc-search-wrap input:focus {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 3px rgba(74, 107, 58, 0.12);
}
.acc-no-results {
    text-align: center;
    padding: 2.5rem;
    color: var(--fm-text-muted);
    display: none;
}

@media (max-width: 720px) {
    .accordion-container { padding: 0 0 1.5rem; }
    .acc-header { padding: 0.85rem 1rem; }
    .acc-item { padding: 0.95rem 1rem; }
}
