﻿/* Compact native disclosure lists: no JavaScript required. */
.pg-simple {
    --pg-green: #176b3a;
    --pg-dark: #0e4d2b;
    --pg-muted: #52635a;
    --pg-line: #dce8df;
    padding: 26px 0 40px;
    color: #243129;
    line-height: 1.6
}

    .pg-simple * {
        box-sizing: border-box
    }

    .pg-simple .pg-wrap {
        width: min(100% - 28px,1120px);
        margin-inline: auto
    }

    .pg-simple h1 {
        font-size: 1.6rem;
        color: var(--pg-dark);
        margin: 0 0 20px
    }

    .pg-simple .pg-mine {
        margin-bottom: 22px
    }

        .pg-simple .pg-mine h2 {
            font-size: .94rem;
            letter-spacing: normal;
            margin: 0 0 12px
        }

    .pg-simple .pg-my-topics {
        display: flex;
        flex-wrap: wrap;
        gap: 8px
    }

        .pg-simple .pg-my-topics form {
            margin: 0;
            max-width: 100%
        }

    .pg-simple .pg-chip {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        max-width: 100%;
        border: 1px solid #c6dfcd;
        border-radius: 24px;
        background: #edf7f0;
        color: var(--pg-green);
        padding: 8px 12px;
        font: inherit;
        font-size: .78rem;
        text-align: left;
        cursor: pointer
    }

        .pg-simple .pg-chip span:first-child {
            min-width: 0;
            overflow-wrap: anywhere
        }

        .pg-simple .pg-chip span:last-child {
            font-size: 1.15rem;
            flex-shrink: 0
        }

    .pg-simple .pg-help {
        font-size: .8rem;
        color: var(--pg-muted);
        margin: 0
    }

    .pg-simple .pg-login {
        margin-bottom: 20px
    }

    .pg-simple .pg-area-grid {
        display: grid;
        gap: 16px;
        align-items: start
    }

    .pg-simple .pg-area {
        border: 1px solid var(--pg-line);
        border-radius: 14px;
        background: white;
        min-width: 0
    }

    .pg-simple summary {
        list-style: none;
        cursor: pointer
    }

        .pg-simple summary::-webkit-details-marker {
            display: none
        }

        .pg-simple summary::marker {
            content: ""
        }

    .pg-simple .pg-area-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        min-height: 76px;
        background: #f5faf6;
        border-radius: 14px
    }

    .pg-simple .pg-area[open] > .pg-area-head {
        border-bottom: 1px solid var(--pg-line);
        border-radius: 14px 14px 0 0
    }

    .pg-simple .pg-area-heading, .pg-simple .pg-topic-heading {
        display: block;
        min-width: 0
    }

    .pg-simple .pg-area-name {
        display: block;
        font-size: .94rem;
        font-weight: 650;
        line-height: 1.4;
        color: var(--pg-dark);
        overflow-wrap: anywhere
    }

    .pg-simple .pg-area-heading small {
        display: block;
        font-size: .7rem;
        color: var(--pg-muted);
        margin-top: 4px
    }

    .pg-simple .pg-expand {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        border: 1px solid #c6dfcd;
        border-radius: 50%;
        background: white;
        color: var(--pg-green);
        font-size: 1.1rem
    }

        .pg-simple .pg-expand::before {
            content: "+"
        }

    .pg-simple details[open] > summary > .pg-expand::before {
        content: "−"
    }

    .pg-simple .pg-area-content {
        padding: 12px
    }

    .pg-simple .pg-topic-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
        align-items: start
    }

    .pg-simple .pg-topic {
        border: 1px solid var(--pg-line);
        border-radius: 10px;
        background: white;
        min-width: 0;
        scroll-margin-top: 110px
    }

        .pg-simple .pg-topic.is-selected {
            border-color: #a6cbb2;
            background: #f2f9f4
        }

    .pg-simple .pg-topic-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 10px;
        min-height: 78px
    }

    .pg-simple .pg-topic-name {
        display: block;
        font-size: .77rem;
        font-weight: 600;
        line-height: 1.4;
        overflow-wrap: anywhere
    }

    .pg-simple .pg-topic-heading small {
        display: block;
        font-size: .65rem;
        line-height: 1.5;
        color: var(--pg-muted);
        margin-top: 4px
    }

    .pg-simple .pg-selected-label {
        color: var(--pg-green)
    }

    .pg-simple .pg-topic-head .pg-expand {
        width: 24px;
        height: 24px;
        font-size: 1rem
    }

    .pg-simple .pg-topic-content {
        border-top: 1px solid var(--pg-line);
        padding: 10px
    }

        .pg-simple .pg-topic-content p {
            font-size: .75rem;
            line-height: 1.65;
            margin: 0 0 10px;
            color: var(--pg-muted)
        }

    .pg-simple .pg-select {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 1px solid #b5d1be;
        border-radius: 9px;
        background: white;
        color: var(--pg-green);
        padding: 8px;
        font: inherit;
        font-size: .7rem;
        line-height: 1.4;
        cursor: pointer;
        text-decoration: none
    }

        .pg-simple .pg-select[aria-pressed="true"] {
            background: #edf7f0;
            border-color: var(--pg-green)
        }

        .pg-simple .pg-select:hover, .pg-simple .pg-chip:hover {
            background: #e3f1e7
        }

    .pg-simple .pg-notice, .pg-simple .pg-empty {
        background: #edf7f0;
        border-radius: 12px;
        padding: 14px;
        font-size: .82rem;
        margin: 0 0 18px
    }

    .pg-simple button:focus-visible, .pg-simple a:focus-visible, .pg-simple summary:focus-visible {
        outline: 3px solid #d9a441;
        outline-offset: 3px
    }

@media(min-width:700px) {
    .pg-simple .pg-area-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .pg-simple .pg-topic-head {
        padding: 12px
    }

    .pg-simple .pg-topic-name {
        font-size: .8rem
    }
}
