/**
 * Block: Accordion — Styles
 */

/* ─── Block Wrapper ───────────────────────────────── */

.abs-accordion-block {
    padding: 0;
    margin: 0;
}

/* ─── Accordion Wrap ──────────────────────────────── */

.abs-acc-wrap {
    max-width: 800px;
    /* overridden inline per instance */
    margin: 0 auto;
    display: grid;
    gap: 12px;
    /* overridden inline per instance */
}

/* ─── Accordion Item (details element) ───────────── */

.abs-acc-item {
    border: 1px solid rgba(0, 41, 77, .10);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.abs-acc-item[open] {
    border-color: rgba(153, 0, 0, .35);
    box-shadow: 0 0 0 3px rgba(153, 0, 0, .08);
}

/* ─── Summary / Header ────────────────────────────── */

.abs-acc-summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    /* overridden inline per instance */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 700;
    font-size: 1.0625rem;
    color: #00294d;
    user-select: none;
}

.abs-acc-summary::-webkit-details-marker {
    display: none;
}

/* Focus visible for keyboard nav */
.abs-acc-summary:focus-visible {
    outline: 2px solid rgba(153, 0, 0, .5);
    outline-offset: -2px;
    border-radius: 14px;
}

/* ─── Title span (icon + text) ───────────────────── */

.abs-acc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.abs-acc-title>i {
    color: #990000;
    font-size: 1.05em;
    flex-shrink: 0;
}

/* ─── Toggle Icon Button ─────────────────────────── */

.abs-acc-toggle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f314a;
    /* overridden inline per instance */
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.abs-acc-item[open] .abs-acc-toggle {
    transform: rotate(45deg);
    background: rgba(153, 0, 0, .08);
    border-color: rgba(153, 0, 0, .2);
    color: #990000;
    /* overridden inline per instance */
}

/* ─── Body ────────────────────────────────────────── */

.abs-acc-body {
    padding: 0 20px 18px;
    /* overridden inline per instance */
    font-size: .9375rem;
    color: #334155;
    line-height: 1.7;
}

/* ─── WYSIWYG Content ─────────────────────────────── */

.abs-acc-content {
    line-height: 1.7;
}

.abs-acc-content>*:first-child {
    margin-top: 0;
}

.abs-acc-content>*:last-child {
    margin-bottom: 0;
}

.abs-acc-content ul,
.abs-acc-content ol {
    padding-left: 1.25em;
    display: grid;
    gap: 4px;
    margin: 0;
}

.abs-acc-content ul li,
.abs-acc-content ol li {
    line-height: 1.6;
    margin-bottom: 0;
}

.abs-acc-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── CTA Link ────────────────────────────────────── */

.abs-acc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-weight: 700;
    font-size: .9em;
    color: #990000;
    /* overridden inline per instance */
    text-decoration: none;
    transition: color .15s ease, opacity .15s ease;
}

.abs-acc-cta:hover {
    opacity: .7;
}

.abs-acc-cta i {
    font-size: .85em;
    transition: transform .2s ease;
}

.abs-acc-cta:hover i {
    transform: translateX(4px);
}

/* ─── Open / Close Animation ─────────────────────── */

@keyframes abs-acc-open {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abs-acc-close {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.abs-acc-body.abs-acc-opening {
    animation: abs-acc-open 0.28s ease both;
}

.abs-acc-body.abs-acc-closing {
    animation: abs-acc-close 0.22s ease both;
}

/* ─── Placeholder (no items) ──────────────────────── */

.abs-acc-placeholder {
    padding: 40px;
    text-align: center;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 12px;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
}

.abs-acc-placeholder p {
    margin: 0;
    line-height: 1.6;
}