.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 1rem 1.8rem 1rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #1F3B4C, #2C5A6E);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.subhead {
    font-size: 0.9rem;
    color: #2c5a6e;
    border-left: 3px solid #3e8aa0;
    padding-left: 12px;
    margin-top: 4px;
    margin-bottom: 1.5rem;
    font-weight: 450;
}

/* accordion grid/list style */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* individual item */
.accordion-item {
    background: white;
    border-radius: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(60, 90, 110, 0.12);
}

.accordion-item:hover {
    border-color: rgba(62, 138, 160, 0.3);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.1);
}

/* header button */
.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: inherit;
    color: #1a3b48;
    transition: background 0.2s;
    border-radius: 1.2rem;
    text-align: left;
}

.accordion-header:focus-visible {
    outline: 2px solid #2c7a8c;
    outline-offset: 2px;
    border-radius: 1rem;
}

.item-number {
    background: #eef3f8;
    padding: 0.2rem 0.75rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f5e74;
    letter-spacing: -0.2px;
    margin-right: 0.9rem;
    min-width: 58px;
    text-align: center;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(70, 130, 150, 0.2);
}

.item-title {
    flex: 1;
    font-weight: 500;
    color: #1e3e4a;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    background: #d9eaf1;
    font-size: 0.7rem;
    font-weight: normal;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    color: #175d73;
}

.chevron {
    font-size: 1.2rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    color: #3e8aa0;
    font-weight: 300;
    margin-left: 0.75rem;
}

.accordion-item.active .chevron {
    transform: rotate(180deg);
}

/* content panel */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.2s ease;
    background: #fefefd;
    border-radius: 0 0 1.2rem 1.2rem;
}

.accordion-item.active .accordion-panel {
    max-height: 500px;    /* enough for single line, dynamic but fine */
    transition: max-height 0.4s ease-in-out;
}

.panel-content {
    padding: 1.2rem;
    border-top: 1px solid #e2edf2;
    margin-top: 0;
    font-size: 1rem;
    color: #2c4b5a;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-number {
    font-weight: 700;
    background: #eef2f5;
    padding: 0.2rem 0.7rem;
    border-radius: 28px;
    font-size: 0.85rem;
    color: #005f73;
}

.detail-text {
    background: #f8fbfd;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    color: #17515f;
}

.item-meta {
    font-size: 0.8rem;
    color: #537a8a;
}

/* search / quick filter */
.search-area {
    margin-bottom: 1.6rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 2;
    min-width: 180px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 60px;
    border: 1px solid #cbdde6;
    background: white;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.search-box input:focus {
    outline: none;
    border-color: #2c7a8c;
    box-shadow: 0 0 0 3px rgba(44,122,140,0.2);
}

.stats {
    background: #e2edf2;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1c5c6e;
}

.reset-btn {
    background: white;
    border: 1px solid #bed3de;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    color: #1f5a6e;
}

.reset-btn:hover {
    background: #eef3f8;
    border-color: #89b7c9;
}

.footer-note {
    text-align: center;
    font-size: 0.7rem;
    margin-top: 1.8rem;
    color: #547e90;
    border-top: 1px dashed #caddE6;
    padding-top: 1rem;
}

@media (max-width: 540px) {
    body {
    padding: 1rem;
    }
    .accordion-header {
    padding: 0.8rem 1rem;
    }
    .item-number {
    min-width: 48px;
    font-size: 0.75rem;
    }
    .panel-content {
    padding: 0.2rem 1rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    }
}