/* Grants page (/granty/). Loaded after /styles.css and /calendar/event.css
   (shared header, footer and ev-* layout). All classes use the gr- prefix. */

.gr-main { max-width: 880px; }

.gr-lead { max-width: 68ch; margin-bottom: 22px; }

/* === Audience filter === */
.gr-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.gr-filter[hidden] { display: none; }

.gr-chip {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 100px;
    border: 1.5px solid rgba(164, 48, 63, 0.28);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.gr-chip:hover { border-color: var(--accent-rose); color: var(--accent-hot); }
.gr-chip[aria-pressed="true"] {
    background: var(--accent-hot);
    border-color: var(--accent-hot);
    color: #fff;
}
.gr-chip:focus-visible { outline: 3px solid var(--accent-hot); outline-offset: 2px; }

.gr-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* === Groups === */
.gr-group { margin-top: 34px; }
.gr-group[hidden] { display: none; }

.gr-group-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(164, 48, 63, 0.18);
    scroll-margin-top: 96px;
}

/* === Entry === */
.gr-item {
    background: var(--bg-card);
    border: 1px solid rgba(164, 48, 63, 0.12);
    border-radius: 16px;
    padding: 18px 20px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(128, 0, 32, 0.05);
    scroll-margin-top: 96px;
}
.gr-item[hidden] { display: none; }

.gr-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px 12px;
}

.gr-item-title {
    flex: 1 1 320px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    text-wrap: balance;
}

.gr-status {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    padding: 4px 11px;
    border-radius: 100px;
    white-space: nowrap;
}
.gr-status-open { background: var(--accent-hot); color: #fff; }
.gr-status-rolling { background: #fff; color: var(--accent-hot); border: 1.5px solid rgba(128, 0, 32, 0.45); }
.gr-status-next { background: var(--bg-elevated); color: var(--text-secondary); }

.gr-org {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 4px 0 12px;
}

.gr-facts {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 0.9fr;
    gap: 12px 20px;
    margin: 0;
}
.gr-facts dt {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.gr-facts dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.gr-note {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-top: 12px;
}
.gr-note a { color: var(--accent-rose); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.gr-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-rose);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.gr-link:hover { color: var(--accent-hot); }
.gr-ext {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gr-empty {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}
.gr-empty[hidden] { display: none; }

/* === Steps === */
.gr-steps { margin-top: 44px; }
.gr-steps-list {
    list-style: none;
    counter-reset: grstep;
    padding: 0 !important;
    display: grid;
    gap: 10px;
}
.gr-steps-list li {
    counter-increment: grstep;
    position: relative;
    padding: 2px 0 2px 44px;
    max-width: 70ch;
}
.gr-steps-list li::before {
    content: counter(grstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--accent-hot);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-steps-list b { color: var(--text-primary); }

/* === Verified note === */
.gr-verified {
    margin-top: 32px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg-elevated);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.gr-verified b { color: var(--text-primary); }
.gr-verified p + p { margin-top: 4px; }

.gr-main .ev-related li a { min-height: 44px; display: flex; align-items: center; }

@media (max-width: 720px) {
    .gr-facts { grid-template-columns: 1fr; gap: 10px; }
    .gr-item { padding: 16px 16px 12px; }
    .gr-item-title { font-size: 17px; flex-basis: 100%; }
    .gr-group-title { font-size: 20px; }
    .gr-chip { font-size: 14px; padding: 0 14px; }
}

.gr-nowrap { white-space: nowrap; }
.gr-main .ev-related { padding-left: 0; }
