/* Sandbox Africa GR2 — Public Grant Radar */
.gr2-radar-page,
.gr2-results-page,
.gr2-directory-page,
.gr2-grant-detail-page {
    --gr2-gold: #f2b84b;
    --gr2-gold-soft: rgba(242, 184, 75, .14);
    --gr2-green: #15d6a1;
    --gr2-green-soft: rgba(21, 214, 161, .12);
    --gr2-blue: #8ea7ff;
    --gr2-panel: rgba(10, 22, 38, .86);
    --gr2-panel-2: rgba(15, 27, 49, .86);
    --gr2-border: rgba(152, 174, 210, .18);
    --gr2-text: #f4f7fb;
    --gr2-muted: #9ba9bf;
    --gr2-deep: #051016;
}

.gr2-radar-page main,
.gr2-results-page main,
.gr2-directory-page main,
.gr2-grant-detail-page main {
    overflow: hidden;
}

.gr2-radar-hero,
.gr2-results-hero,
.gr2-directory-hero,
.gr2-detail-hero {
    position: relative;
    padding: clamp(70px, 8vw, 126px) 0 clamp(54px, 7vw, 96px);
    background:
        radial-gradient(circle at 80% 30%, rgba(20, 215, 164, .08), transparent 32%),
        radial-gradient(circle at 22% 12%, rgba(242, 184, 75, .08), transparent 26%);
}

.gr2-radar-hero-grid,
.gr2-directory-hero-grid,
.gr2-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(40px, 7vw, 92px);
    align-items: center;
}

.gr2-radar-copy h1,
.gr2-results-title h1,
.gr2-directory-hero h1,
.gr2-detail-hero h1 {
    margin: 12px 0 18px;
    max-width: 900px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.gr2-detail-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.gr2-radar-copy .lede,
.gr2-directory-hero p,
.gr2-detail-hero .lede,
.gr2-results-title p {
    max-width: 760px;
    color: var(--gr2-muted);
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    line-height: 1.75;
}

.gr2-radar-proofline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 26px 0 8px;
    color: var(--gr2-muted);
    font-size: .84rem;
}

.gr2-radar-proofline span { display: inline-flex; align-items: baseline; gap: 7px; }
.gr2-radar-proofline b { color: var(--gr2-text); font-size: 1.08rem; }

.gr2-radar-visual,
.gr2-result-radar,
.gr2-coverage-card,
.gr2-top-match,
.gr2-filter-panel,
.gr2-grant-card,
.gr2-detail-facts,
.gr2-side-panel {
    border: 1px solid var(--gr2-border);
    background: linear-gradient(145deg, rgba(11, 27, 37, .91), rgba(11, 17, 36, .94));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.gr2-radar-visual {
    position: relative;
    min-height: 520px;
    padding: 30px;
    border-color: rgba(21, 214, 161, .34);
    border-radius: 20px;
    overflow: hidden;
}

.gr2-radar-visual::before,
.gr2-result-radar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.gr2-scan-status {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #bcc7d9;
    font-size: .78rem;
    letter-spacing: .18em;
}
.gr2-scan-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--gr2-green); box-shadow: 0 0 18px var(--gr2-green); }

.gr2-radar-disc {
    position: relative;
    width: min(360px, 86vw);
    aspect-ratio: 1;
    margin: 38px auto 28px;
    border-radius: 50%;
    border: 1px solid rgba(106, 145, 159, .22);
    background: radial-gradient(circle, rgba(21,214,161,.08), rgba(3,15,24,.3) 57%, transparent 58%);
    overflow: hidden;
}

.gr2-radar-disc::before,
.gr2-radar-disc::after {
    content: "";
    position: absolute;
    background: rgba(102, 141, 157, .16);
}
.gr2-radar-disc::before { width: 1px; top: 6%; bottom: 6%; left: 50%; }
.gr2-radar-disc::after { height: 1px; left: 6%; right: 6%; top: 50%; }

.gr2-radar-ring { position: absolute; border: 1px solid rgba(93, 137, 150, .2); border-radius: 50%; inset: 14%; }
.gr2-radar-ring.ring-two { inset: 29%; }
.gr2-radar-ring.ring-three { inset: 43%; }

.gr2-radar-sweep {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: conic-gradient(from 20deg, transparent 0 68%, rgba(21,214,161,.02) 72%, rgba(21,214,161,.2) 84%, transparent 88%);
    animation: gr2Sweep 7s linear infinite;
}

@keyframes gr2Sweep { to { transform: rotate(360deg); } }

.gr2-signal {
    --angle: 0deg;
    --distance: 30%;
    position: absolute;
    width: 7px;
    height: 7px;
    left: 50%;
    top: 50%;
    margin: -3px;
    border-radius: 50%;
    background: var(--gr2-green);
    box-shadow: 0 0 8px var(--gr2-green), 0 0 17px rgba(21,214,161,.7);
    transform: rotate(var(--angle)) translateX(var(--distance));
    transform-origin: center;
    animation: gr2Pulse 2.2s ease-in-out infinite alternate;
}
@keyframes gr2Pulse { from { opacity: .45; scale: .75; } to { opacity: 1; scale: 1.15; } }

.gr2-radar-centre {
    position: absolute;
    z-index: 4;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(4, 17, 24, .85);
    border: 1px solid rgba(242,184,75,.46);
    box-shadow: 0 0 40px rgba(242,184,75,.08);
}
.gr2-radar-centre strong { font-size: 2.3rem; line-height: 1; color: #fff; }
.gr2-radar-centre small { margin-top: -22px; color: var(--gr2-muted); }
.gr2-radar-caption { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.gr2-radar-caption span,
.gr2-chip-row span,
.gr2-profile-mini span {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--gr2-border);
    border-radius: 999px;
    color: #aebcd0;
    background: rgba(255,255,255,.025);
    font-size: .72rem;
}

.gr2-scan-section { padding-top: 88px; }
.gr2-scan-shell {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: clamp(38px, 6vw, 82px);
    align-items: start;
}
.gr2-scan-intro { position: sticky; top: 110px; }
.gr2-scan-intro h2,
.gr2-method-shell h2,
.gr2-ranked-head h2,
.gr2-directory-heading h2,
.gr2-detail-main h2 { margin: 10px 0 16px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.gr2-scan-intro > p,
.gr2-method-shell > div > p { color: var(--gr2-muted); line-height: 1.72; }
.gr2-method-grid { margin-top: 32px; border-top: 1px solid var(--gr2-border); }
.gr2-method-grid span { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--gr2-border); color: #c3cddd; font-size: .86rem; }
.gr2-method-grid b { color: var(--gr2-gold); font-size: .72rem; }

.gr2-scan-form {
    position: relative;
    min-height: 480px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--gr2-border);
    border-radius: 20px;
    background: rgba(9, 18, 33, .8);
}
.gr2-scan-form.is-scanning::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 60px rgba(21,214,161,.08); }
.gr2-step-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--gr2-border); }
.gr2-step-head small { color: var(--gr2-gold); letter-spacing: .08em; text-transform: uppercase; }
.gr2-step-head h3 { margin: 0; font-size: 1.55rem; }
.gr2-form-grid { display: grid; gap: 20px; }
.gr2-form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gr2-scan-form label > span,
.gr2-filter-panel label > span { display: block; margin-bottom: 7px; color: #c0cad9; font-size: .78rem; }
.gr2-scan-form input,
.gr2-scan-form select,
.gr2-filter-panel input,
.gr2-filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: #eef3fa;
    border: 1px solid rgba(152,174,210,.22);
    border-radius: 10px;
    background: rgba(4, 12, 23, .82);
    outline: none;
}
.gr2-scan-form input:focus,
.gr2-scan-form select:focus,
.gr2-filter-panel input:focus,
.gr2-filter-panel select:focus { border-color: rgba(242,184,75,.75); box-shadow: 0 0 0 3px rgba(242,184,75,.08); }
.gr2-scan-form option,
.gr2-filter-panel option { color: #101722; background: #fff; }
.gr2-scan-form fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.gr2-scan-form fieldset.has-error { outline: 1px solid rgba(237,104,104,.7); outline-offset: 10px; border-radius: 4px; }
.gr2-scan-form legend { width: 100%; margin-bottom: 12px; color: #d7dfeb; font-size: .86rem; }
.gr2-scan-form legend small { color: var(--gr2-muted); }
.gr2-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.gr2-choice-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gr2-choice { cursor: pointer; }
.gr2-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gr2-choice span { display: flex !important; align-items: center; min-height: 48px; margin: 0 !important; padding: 10px 12px; border: 1px solid var(--gr2-border); border-radius: 9px; background: rgba(255,255,255,.02); color: #aebbd0 !important; transition: .18s ease; }
.gr2-choice input:checked + span { border-color: rgba(21,214,161,.58); background: var(--gr2-green-soft); color: #e9fff9 !important; box-shadow: inset 0 0 0 1px rgba(21,214,161,.15); }
.gr2-choice input:focus-visible + span { outline: 2px solid var(--gr2-gold); outline-offset: 2px; }
.gr2-step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.gr2-scan-assurance { display: flex; gap: 11px; margin-top: 24px; padding: 15px; border: 1px solid rgba(21,214,161,.22); background: rgba(21,214,161,.05); border-radius: 10px; color: var(--gr2-muted); font-size: .82rem; line-height: 1.55; }
.gr2-scan-assurance strong { color: #dffbf3; white-space: nowrap; }
.gr2-form-errors { margin-top: 26px; padding: 14px 17px; border: 1px solid rgba(237,104,104,.3); background: rgba(237,104,104,.08); border-radius: 10px; color: #ffd3d3; }
.gr2-form-errors ul { margin: 8px 0 0 18px; }
.gr2-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.gr2-method-section { padding-top: 74px; }
.gr2-method-shell { padding-top: 50px; border-top: 1px solid var(--gr2-border); }
.gr2-method-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 32px; }
.gr2-method-cards article { padding: 24px; border: 1px solid var(--gr2-border); background: rgba(10,19,33,.55); }
.gr2-method-cards span,
.gr2-panel-label { color: var(--gr2-gold); font-size: .68rem; letter-spacing: .15em; }
.gr2-method-cards h3 { margin: 9px 0; font-size: 1.18rem; }
.gr2-method-cards p { margin: 0; color: var(--gr2-muted); font-size: .88rem; line-height: 1.65; }

/* Results */
.gr2-results-title { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.gr2-results-title h1 { font-size: clamp(3rem, 6vw, 5.3rem); }
.gr2-results-overview { padding-top: 8px; }
.gr2-results-grid { display: grid; grid-template-columns: minmax(360px,.92fr) minmax(0,1.08fr); gap: 30px; align-items: stretch; }
.gr2-result-radar { position: relative; padding: 28px; border-radius: 18px; text-align: center; border-color: rgba(21,214,161,.28); overflow: hidden; }
.gr2-radar-disc.is-results { width: min(330px, 90%); }
.gr2-scan-grade { display: inline-flex; padding: 8px 13px; border-radius: 8px; background: rgba(21,214,161,.12); color: var(--gr2-green); font-size: .72rem; letter-spacing: .08em; }
.gr2-result-radar > p { color: var(--gr2-muted); font-size: .84rem; }
.gr2-profile-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 20px; }
.gr2-result-side { display: grid; gap: 20px; }
.gr2-coverage-card,
.gr2-top-match { padding: 25px; border-radius: 18px; }
.gr2-coverage-row { display: grid; grid-template-columns: minmax(130px,1fr) minmax(100px,.8fr) 30px; gap: 12px; align-items: center; margin-top: 12px; color: #c2cbd9; font-size: .79rem; }
.gr2-coverage-row i { position: relative; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.05); }
.gr2-coverage-row b { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--gr2-gold), #ffd47a); }
.gr2-coverage-row em { color: var(--gr2-muted); font-style: normal; text-align: right; }
.gr2-top-match { border-color: rgba(242,184,75,.38); box-shadow: inset 4px 0 0 var(--gr2-gold), 0 24px 70px rgba(0,0,0,.18); }
.gr2-top-match-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.gr2-top-match-head span { color: var(--gr2-gold); font-size: .68rem; letter-spacing: .13em; }
.gr2-top-match-head b { color: #dce5f2; font-size: .74rem; font-weight: 500; }
.gr2-top-match > small,
.gr2-ranked-main > small,
.gr2-card-copy small,
.gr2-funder-name { color: var(--gr2-muted); }
.gr2-top-match h2 { margin: 7px 0 14px; font-size: clamp(1.45rem,2.5vw,2.1rem); line-height: 1.15; }
.gr2-top-match h2 a,
.gr2-ranked-card h3 a,
.gr2-grant-card h3 a { color: inherit; text-decoration: none; }
.gr2-top-amount { display: flex; align-items: baseline; gap: 9px; margin-bottom: 15px; }
.gr2-top-amount strong { font-size: 1.28rem; }
.gr2-top-amount span { color: var(--gr2-muted); font-size: .82rem; }
.gr2-match-notes { margin: 12px 0; padding: 0; list-style: none; }
.gr2-match-notes li { position: relative; margin: 7px 0; padding-left: 18px; color: #c5cedb; font-size: .78rem; line-height: 1.5; }
.gr2-match-notes.good li::before { content: "✓"; position: absolute; left: 0; color: var(--gr2-green); }
.gr2-match-notes.watch li::before { content: "•"; position: absolute; left: 3px; color: var(--gr2-gold); }
.gr2-text-action { display: inline-flex; margin-top: 10px; color: var(--gr2-gold); text-decoration: none; font-size: .84rem; }
.gr2-empty-mini { padding: 28px 0 8px; color: var(--gr2-muted); }

.gr2-ranked-section { padding-top: 76px; }
.gr2-ranked-head,
.gr2-directory-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 30px; }
.gr2-ranked-head > p,
.gr2-directory-heading > p { max-width: 480px; color: var(--gr2-muted); font-size: .86rem; line-height: 1.6; }
.gr2-ranked-list { display: grid; gap: 13px; }
.gr2-ranked-card { display: grid; grid-template-columns: 92px minmax(0,1fr) minmax(180px,.28fr); gap: 24px; align-items: start; padding: 24px; border: 1px solid var(--gr2-border); background: rgba(8,17,30,.68); }
.gr2-score { display: flex; align-items: baseline; justify-content: center; padding: 15px 8px; border-right: 1px solid var(--gr2-border); }
.gr2-score strong { color: var(--gr2-gold); font-size: 2.2rem; }
.gr2-score small { color: var(--gr2-muted); }
.gr2-card-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.gr2-pill,
.gr2-verified,
.gr2-state-review { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: .67rem; }
.gr2-pill { color: #ffd98f; background: var(--gr2-gold-soft); border: 1px solid rgba(242,184,75,.22); }
.gr2-verified { color: #8ff2d6; background: var(--gr2-green-soft); border: 1px solid rgba(21,214,161,.18); }
.gr2-state-review { color: #ffd98f; background: rgba(242,184,75,.08); border: 1px solid rgba(242,184,75,.16); }
.gr2-ranked-main h3 { margin: 7px 0 8px; font-size: 1.25rem; }
.gr2-ranked-main > p { margin: 0; color: var(--gr2-muted); font-size: .83rem; line-height: 1.6; }
.gr2-match-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 18px; }
.gr2-match-columns b { font-size: .72rem; color: #dce4ef; }
.gr2-match-columns ul { margin: 6px 0 0; padding-left: 17px; color: var(--gr2-muted); font-size: .74rem; line-height: 1.55; }
.gr2-ranked-meta { display: grid; gap: 13px; padding-left: 18px; border-left: 1px solid var(--gr2-border); }
.gr2-ranked-meta span { display: grid; gap: 2px; }
.gr2-ranked-meta small { color: var(--gr2-muted); font-size: .67rem; }
.gr2-ranked-meta b { font-size: .86rem; }
.gr2-no-matches { padding: clamp(35px,7vw,80px); border: 1px dashed rgba(152,174,210,.25); text-align: center; background: rgba(7,15,28,.45); }
.gr2-no-matches > span { color: var(--gr2-gold); font-size: .7rem; letter-spacing: .15em; }
.gr2-no-matches h3 { margin: 12px auto; max-width: 740px; font-size: clamp(1.6rem,3vw,2.4rem); }
.gr2-no-matches p { max-width: 760px; margin: 0 auto; color: var(--gr2-muted); line-height: 1.65; }
.gr2-no-matches .actions { justify-content: center; }

/* Directory */
.gr2-directory-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--gr2-border); background: rgba(9,18,33,.72); }
.gr2-directory-stats span { display: grid; gap: 5px; padding: 26px 20px; border-right: 1px solid var(--gr2-border); }
.gr2-directory-stats span:last-child { border-right: 0; }
.gr2-directory-stats small { color: var(--gr2-muted); font-size: .7rem; }
.gr2-directory-stats strong { font-size: 2rem; color: var(--gr2-gold); }
.gr2-directory-section { padding-top: 40px; }
.gr2-filter-panel { display: grid; grid-template-columns: 1.6fr repeat(5,minmax(120px,1fr)); gap: 10px; padding: 18px; border-radius: 15px; margin-bottom: 48px; }
.gr2-filter-panel label { min-width: 0; }
.gr2-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 15px; align-items: center; padding-top: 4px; }
.gr2-filter-actions a { color: var(--gr2-muted); font-size: .78rem; }
.gr2-grant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.gr2-grant-card { display: flex; flex-direction: column; padding: 22px; border-radius: 14px; min-height: 410px; }
.gr2-card-copy { flex: 1; }
.gr2-card-copy h3 { margin: 8px 0 10px; font-size: 1.18rem; line-height: 1.25; }
.gr2-card-copy p { color: var(--gr2-muted); font-size: .81rem; line-height: 1.62; }
.gr2-card-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 15px 0; padding: 14px 0; border-block: 1px solid var(--gr2-border); }
.gr2-card-meta span { display: grid; gap: 3px; }
.gr2-card-meta b { font-size: .82rem; }
.gr2-card-meta small { color: var(--gr2-muted); font-size: .63rem; }
.gr2-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gr2-card-actions { margin-top: 18px; }
.gr2-pagination { margin-top: 35px; }

/* Detail */
.gr2-detail-hero-grid { align-items: end; }
.gr2-detail-facts { display: grid; padding: 24px; border-radius: 16px; }
.gr2-detail-facts span { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--gr2-border); }
.gr2-detail-facts small { color: var(--gr2-muted); }
.gr2-detail-facts strong { text-align: right; }
.gr2-detail-facts .button { margin-top: 20px; justify-content: center; }
.gr2-funder-name { display: block; margin-top: 18px; }
.gr2-detail-matchbar { border-block: 1px solid rgba(242,184,75,.18); background: rgba(242,184,75,.06); }
.gr2-detail-matchbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.gr2-detail-matchbar .container > div { display: flex; align-items: baseline; gap: 12px; }
.gr2-detail-matchbar span { color: var(--gr2-muted); font-size: .78rem; }
.gr2-detail-matchbar strong { color: var(--gr2-gold); font-size: 1.4rem; }
.gr2-detail-matchbar b { font-size: .78rem; }
.gr2-detail-matchbar a { color: var(--gr2-gold); text-decoration: none; font-size: .78rem; }
.gr2-detail-body { padding-top: 60px; }
.gr2-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(40px,6vw,76px); align-items: start; }
.gr2-detail-main section { padding: 0 0 50px; margin-bottom: 50px; border-bottom: 1px solid var(--gr2-border); }
.gr2-detail-main h2 { font-size: clamp(1.75rem,3vw,2.7rem); }
.gr2-richtext { color: #b9c4d4; line-height: 1.78; }
.gr2-eligibility-grid,
.gr2-cost-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.gr2-eligibility-grid article,
.gr2-cost-grid article { padding: 18px; border: 1px solid var(--gr2-border); background: rgba(255,255,255,.018); }
.gr2-eligibility-grid small,
.gr2-cost-grid small { color: var(--gr2-gold); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.gr2-eligibility-grid p,
.gr2-cost-grid p { margin-bottom: 0; color: #bcc7d7; line-height: 1.65; font-size: .84rem; }
.gr2-rule-list { display: grid; gap: 9px; margin-top: 24px; }
.gr2-rule-list article { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--gr2-border); }
.gr2-rule-list article > span { color: var(--gr2-green); font-size: .66rem; letter-spacing: .12em; }
.gr2-rule-list h3 { margin: 0 0 5px; font-size: .95rem; }
.gr2-rule-list p { margin: 0; color: var(--gr2-muted); font-size: .8rem; }
.gr2-detail-aside { position: sticky; top: 110px; display: grid; gap: 14px; }
.gr2-side-panel { padding: 21px; border-radius: 13px; }
.gr2-side-panel h3 { margin: 10px 0; font-size: 1.05rem; }
.gr2-side-panel p { color: var(--gr2-muted); font-size: .79rem; line-height: 1.6; }
.gr2-side-score { display: flex; align-items: baseline; margin: 12px 0; }
.gr2-side-score strong { color: var(--gr2-gold); font-size: 3rem; }
.gr2-side-score small { color: var(--gr2-muted); }
.gr2-side-panel > b { display: block; margin-top: 15px; font-size: .72rem; }
.gr2-side-panel ul { margin: 7px 0 0; padding-left: 16px; color: var(--gr2-muted); font-size: .74rem; line-height: 1.55; }
.gr2-side-panel ul.watch { color: #cabd9d; }
.gr2-side-panel dl { margin: 15px 0 4px; }
.gr2-side-panel dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--gr2-border); font-size: .72rem; }
.gr2-side-panel dt { color: var(--gr2-muted); }
.gr2-side-panel dd { margin: 0; text-align: right; }
.gr2-side-panel.is-caution { border-color: rgba(242,184,75,.22); background: rgba(242,184,75,.05); }

@media (max-width: 1100px) {
    .gr2-filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .gr2-search-wide { grid-column: span 3; }
    .gr2-grant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gr2-ranked-card { grid-template-columns: 74px minmax(0,1fr); }
    .gr2-ranked-meta { grid-column: 2; grid-template-columns: repeat(3,1fr); padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--gr2-border); }
}

@media (max-width: 900px) {
    .gr2-radar-hero-grid,
    .gr2-directory-hero-grid,
    .gr2-detail-hero-grid,
    .gr2-scan-shell,
    .gr2-results-grid,
    .gr2-detail-layout { grid-template-columns: 1fr; }
    .gr2-radar-visual { min-height: 470px; }
    .gr2-scan-intro,
    .gr2-detail-aside { position: static; }
    .gr2-method-cards { grid-template-columns: 1fr; }
    .gr2-results-title,
    .gr2-ranked-head,
    .gr2-directory-heading { align-items: start; flex-direction: column; }
    .gr2-directory-stats { max-width: 620px; }
}

@media (max-width: 680px) {
    .gr2-radar-hero,
    .gr2-results-hero,
    .gr2-directory-hero,
    .gr2-detail-hero { padding-top: 58px; }
    .gr2-radar-copy h1,
    .gr2-results-title h1,
    .gr2-directory-hero h1,
    .gr2-detail-hero h1 { font-size: clamp(2.45rem,13vw,4rem); }
    .gr2-radar-visual { min-height: auto; padding: 20px 14px; }
    .gr2-radar-disc { width: min(310px, 92vw); }
    .gr2-scan-form { padding: 20px 16px; }
    .gr2-step-head { align-items: start; flex-direction: column; }
    .gr2-form-grid.two,
    .gr2-choice-grid,
    .gr2-choice-grid.compact,
    .gr2-method-cards,
    .gr2-grant-grid,
    .gr2-eligibility-grid,
    .gr2-cost-grid,
    .gr2-card-meta { grid-template-columns: 1fr; }
    .gr2-step-actions { justify-content: stretch; }
    .gr2-step-actions .button { flex: 1; justify-content: center; }
    .gr2-results-title .actions { width: 100%; }
    .gr2-directory-stats { grid-template-columns: 1fr; }
    .gr2-directory-stats span { border-right: 0; border-bottom: 1px solid var(--gr2-border); }
    .gr2-directory-stats span:last-child { border-bottom: 0; }
    .gr2-filter-panel { grid-template-columns: 1fr; }
    .gr2-search-wide { grid-column: auto; }
    .gr2-ranked-card { grid-template-columns: 1fr; padding: 18px; }
    .gr2-score { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--gr2-border); padding: 0 0 12px; }
    .gr2-ranked-meta { grid-column: auto; grid-template-columns: 1fr; }
    .gr2-match-columns { grid-template-columns: 1fr; }
    .gr2-coverage-row { grid-template-columns: minmax(110px,1fr) 80px 26px; }
    .gr2-detail-matchbar .container,
    .gr2-detail-matchbar .container > div { align-items: flex-start; flex-direction: column; }
    .gr2-rule-list article { grid-template-columns: 1fr; gap: 7px; }
    .gr2-scan-assurance { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .gr2-radar-sweep,
    .gr2-signal { animation: none; }
    * { scroll-behavior: auto !important; }
}

/* Home-page Grant Radar gateway */
.sandbox-v8-home {
    --gr2-gold: #f2b84b;
    --gr2-gold-soft: rgba(242, 184, 75, .14);
    --gr2-green: #15d6a1;
    --gr2-green-soft: rgba(21, 214, 161, .12);
    --gr2-border: rgba(152, 174, 210, .18);
    --gr2-text: #f4f7fb;
    --gr2-muted: #9ba9bf;
}
.gr2-home-radar { position: relative; }
.gr2-home-radar-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
    gap: clamp(36px, 7vw, 90px);
    align-items: center;
    padding-top: clamp(28px, 5vw, 58px);
    padding-bottom: clamp(28px, 5vw, 58px);
    border-block: 1px solid var(--gr2-border);
}
.gr2-home-radar-copy h2 { margin: 10px 0 16px; max-width: 760px; font-size: clamp(2.1rem, 4.7vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.gr2-home-radar-copy > p { max-width: 700px; color: var(--gr2-muted); line-height: 1.7; }
.gr2-home-radar-visual { min-height: 380px; display: grid; place-items: center; border: 1px solid rgba(21,214,161,.2); background: radial-gradient(circle, rgba(21,214,161,.06), transparent 65%); }
.gr2-home-radar-visual .gr2-radar-disc { margin: 0; width: min(330px, 85vw); }
@media (max-width: 900px) { .gr2-home-radar-shell { grid-template-columns: 1fr; } }
.gr2-result-limit-note { margin: -8px 0 18px; padding: 11px 14px; border-left: 2px solid var(--gr2-gold); background: rgba(242,184,75,.055); color: var(--gr2-muted); font-size: .78rem; line-height: 1.5; }

/* GR3 persistent workspace conversion */
.gr3-save-radar{margin-top:24px;border:1px solid rgba(211,154,67,.35);background:rgba(12,45,51,.72);border-radius:18px;padding:20px;display:flex;justify-content:space-between;gap:24px;align-items:center}.gr3-save-radar>div:first-child{max-width:720px}.gr3-save-radar span{display:block;font-size:11px;letter-spacing:.13em;font-weight:800;color:#e6ad55}.gr3-save-radar strong{display:block;font-size:18px;color:#fff;margin:5px 0}.gr3-save-radar p{margin:0;color:rgba(255,255,255,.68);font-size:13px}.gr3-save-radar .actions{display:flex;gap:8px;flex-wrap:wrap}.gr3-save-radar form,.gr3-inline-save{margin:0}.gr3-inline-save button{border:1px solid rgba(210,160,75,.45);background:transparent;color:#d8a348;border-radius:8px;padding:7px 11px;font-size:12px;font-weight:800;cursor:pointer}.gr3-inline-save button:hover{background:rgba(210,160,75,.12)}.gr2-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gr2-detail-facts form{margin:0;width:100%}.gr2-detail-facts form .button{width:100%}@media(max-width:760px){.gr3-save-radar{align-items:flex-start;flex-direction:column}.gr3-save-radar .actions{width:100%}.gr3-save-radar .actions form,.gr3-save-radar .actions .button{width:100%}}

/* GR5 verified catalogue application-window context */
.gr5-window-note{margin-top:14px;padding:14px 16px;border:1px solid var(--gr2-border);border-radius:12px;background:rgba(255,255,255,.025);display:grid;gap:5px}.gr5-window-note strong{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gr2-text)}.gr5-window-note small{color:var(--gr2-muted);line-height:1.55}
