/* Ikarto GPSR V2 – Frontend (Allegro-style) */

.igpsr {
    font-family: inherit;
    font-size: inherit;
    line-height: 1.6;
    color: inherit;
    max-width: 720px;
    margin: 1.5em 0;
}

.igpsr__heading {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 .2em;
    padding: 0;
    border: none;
    color: inherit;
}

.igpsr__subtitle {
    font-size: .88em;
    color: #888;
    margin: 0 0 1em;
}

/* ─── Sections ───────────────────────────────────── */

.igpsr__section {
    border-top: 1px solid #e0e0e0;
    padding: 1.1em 0 .8em;
}

.igpsr__section:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.igpsr__title {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 .5em;
    padding: 0;
    border: none;
    color: inherit;
}

.igpsr__desc {
    font-size: .88em;
    color: #666;
    margin: 0 0 .7em;
}

/* ─── Entity rows ────────────────────────────────── */

.igpsr__entity {
    font-size: .93em;
}

.igpsr__row {
    margin-bottom: .45em;
}

.igpsr__label {
    font-weight: 700;
}

.igpsr__entity a {
    color: inherit;
    text-decoration: underline;
}

.igpsr__entity a:hover {
    text-decoration: none;
}

/* ─── Safety ─────────────────────────────────────── */

.igpsr__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: .8em;
}

.igpsr__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.igpsr__safety-content {
    font-size: .93em;
}

.igpsr__ext-link {
    font-weight: 600;
    text-decoration: none;
}

.igpsr__ext-link:hover {
    text-decoration: underline;
}

/* ─── Collapsible wrapper (shortcode) ────────────── */

.igpsr-collapsible {
    margin: 1em 0;
}

.igpsr-collapsible__trigger {
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    font-size: .95em;
    color: inherit;
    padding: 6px 0;
    user-select: none;
}

.igpsr-collapsible__trigger:hover {
    opacity: .75;
}

.igpsr-collapsible__arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.igpsr-collapsible__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

/* When checkbox is checked – expand */
.igpsr-collapsible__checkbox:checked ~ .igpsr-collapsible__body {
    max-height: 2000px;
}

.igpsr-collapsible__checkbox:checked ~ .igpsr-collapsible__trigger .igpsr-collapsible__arrow {
    transform: rotate(90deg);
}
