/* ============================================================
   Transparency & documents page
   ============================================================ */

.transparency-page {
    color: var(--ink-body);
    background: var(--bg);
}

/* ---- intro: how the money is managed --------------------- */
.tr-intro {
    padding: clamp(30px, 5vw, 52px) 0 0;
}
.tr-intro h2 {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.3vw, 1.75rem);
    color: var(--primary);
}
.tr-intro p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.85;
    color: var(--ink-body);
}

/* ---- the card grid --------------------------------------- */
.tr-docs {
    padding: clamp(30px, 5vw, 52px) 0 clamp(44px, 7vw, 72px);
}
.tr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 26px);
    align-items: start;
}

/* the busiest trust (SVT) gets its own full-width row; the other
   three sit in the row below */
.tr-card--wide {
    grid-column: 1 / -1;
}
.tr-card--wide .tr-card__body {
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1fr;
    gap: clamp(20px, 3vw, 44px);
}
.tr-card--wide .tr-set + .tr-set {
    margin-top: 0;
    padding-top: 0;
    padding-left: clamp(20px, 3vw, 44px);
    border-top: 0;
    border-left: 1px dashed var(--rule);
}

@media (max-width: 900px) {
    .tr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tr-card--wide .tr-card__body {
        grid-template-columns: 1fr;
    }
    .tr-card--wide .tr-set + .tr-set {
        margin-top: 18px;
        padding-top: 16px;
        padding-left: 0;
        border-top: 1px dashed var(--rule);
        border-left: 0;
    }
}
@media (max-width: 560px) {
    .tr-grid {
        grid-template-columns: 1fr;
    }
}

.tr-card {
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.tr-card:target {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(123, 42, 40, .16), var(--shadow-md);
}

/* card header */
.tr-card__head {
    padding: clamp(18px, 2.6vw, 24px);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-wash);
}
.tr-card__head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.02rem, 1.6vw, 1.24rem);
    line-height: 1.4;
    color: var(--primary);
}
.tr-card__meta {
    margin: 7px 0 0;
    font-size: .84rem;
    color: var(--ink-muted);
}
.tr-card__meta a {
    color: var(--accent);
    text-decoration: none;
}
.tr-card__meta a:hover { text-decoration: underline; }

/* registration credential chips (in the header) */
.tr-creds {
    list-style: none;
    margin: 15px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tr-cred {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}
.tr-cred:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tr-cred__num {
    font-family: var(--font-latin);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--ink-muted);
}
.tr-cred__go {
    font-size: .82em;
    color: var(--accent);
}

/* card body */
.tr-card__body {
    padding: clamp(16px, 2.4vw, 22px);
}
.tr-set + .tr-set {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--rule);
}
.tr-set h3 {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: .94rem;
    letter-spacing: .01em;
    color: var(--ink);
}
.tr-set__note {
    margin: 0 0 10px;
    font-size: .82rem;
    line-height: 1.6;
    color: var(--ink-muted);
}
.tr-soon {
    margin: 0;
    font-size: .84rem;
    font-style: italic;
    color: var(--ink-muted);
}

/* year / certificate pills */
.tr-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.tr-pills a {
    display: inline-block;
    padding: 6px 11px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
    background: var(--bg);
    font-family: var(--font-latin);
    font-size: .8rem;
    color: var(--ink-body);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--transition), color var(--transition);
}
.tr-pills a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tr-pills a.tr-pill--wide {
    font-family: var(--font-body);
    font-size: .82rem;
    white-space: normal;
    color: var(--primary);
    border-color: var(--rule-strong);
}

/* "show all years" disclosure */
.tr-more {
    margin-top: 10px;
}
/* keep the extra years hidden until opened (our .tr-pills sets
   display:flex, which would otherwise defeat the native collapse) */
.tr-more:not([open]) > .tr-pills {
    display: none;
}
.tr-more > summary {
    cursor: pointer;
    padding: 3px 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    list-style: none;
}
.tr-more > summary::-webkit-details-marker { display: none; }
.tr-more > summary::before {
    content: "\25B8\00A0";   /* ▸ */
}
.tr-more[open] > summary {
    margin-bottom: 9px;
}
.tr-more[open] > summary::before {
    content: "\25BE\00A0";   /* ▾ */
}
.tr-more > summary:hover {
    color: var(--primary);
}

/* ---- closing -------------------------------------------- */
.tr-section { padding: clamp(38px, 6vw, 60px) 0; }
.tr-closing {
    border-top: 1px solid var(--rule);
    background: var(--bg-wash);
}
.tr-closing h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--primary);
}
.tr-closing > .hi-shell { max-width: 860px; }
.tr-closing p {
    margin: 12px 0 20px;
    max-width: 62ch;
    font-size: .98rem;
    line-height: 1.8;
    color: var(--ink-body);
}
