/* NSD Opportunities (9 Nov 2026): portal page, staff page and the public list. */
.opp-kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #eef2f0; color: #34433b; white-space: nowrap; }
.opp-kind-1 { background: #e9f6ee; color: #134d2c; }   /* grant */
.opp-kind-2 { background: #e6f0fb; color: #0b4a8b; }   /* call for proposals */
.opp-kind-3 { background: #f3ecfd; color: #5b21b6; }   /* conference */
.opp-kind-4 { background: #fff4e5; color: #8a5300; }   /* award */
.opp-kind-5 { background: #e0f4f4; color: #0b6464; }   /* fellowship */
.opp-kind-6 { background: #fdecef; color: #9f1239; }   /* training */
.opp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.opp-filters a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--nsd-border, #d9e4de); background: #fff; color: #26332c; text-decoration: none; font-weight: 600; font-size: .88rem; }
.opp-filters a[aria-current="true"] { background: var(--nsd-green, #028742); border-color: var(--nsd-green, #028742); color: #fff; }
.opp-group { margin: 0 0 22px; }
.opp-group > h4 { margin: 0 0 10px; font-size: 1.05rem; color: #025f30; font-family: Georgia, "Times New Roman", serif; }
.opp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.opp-card { background: #fff; border: 1px solid var(--nsd-border, #d9e4de); border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(17, 38, 28, .05); }
.opp-card.is-soon { border-left: 4px solid #c2410c; }
.opp-card h5 { margin: 6px 0 4px; font-size: 1.02rem; line-height: 1.35; }
.opp-card h5 a { color: #1f2d27; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--nsd-muted, #5c6870); font-size: .85rem; }
.opp-meta .opp-due { font-weight: 600; color: #26332c; }
.opp-card.is-soon .opp-due { color: #c2410c; }
.opp-card p { margin: 6px 0 0; line-height: 1.5; font-size: .92rem; }
.opp-new { display: inline-block; padding: 0 7px; border-radius: 999px; background: #c2410c; color: #fff; font-size: .7rem; font-weight: 700; margin-left: 6px; vertical-align: 2px; }
.opp-fields { font-size: .8rem; color: var(--nsd-muted, #5c6870); margin-top: 6px; }
.opp-empty { padding: 18px; text-align: center; color: var(--nsd-muted, #5c6870); border: 1px dashed var(--nsd-border, #cbd8d1); border-radius: 12px; }
.opp-more > summary { cursor: pointer; font-weight: 700; color: #025f30; padding: 6px 0; }

/* public announcements list */
.opp-public { border: 1px solid #d9e4de; border-left: 5px solid #028742; border-radius: 10px; padding: 16px 20px; margin: 0 0 24px; background: #fff; }
.opp-public h2 { margin: 0 0 4px; }
.opp-public ul { list-style: none; margin: 10px 0 0; padding: 0; }
.opp-public li { padding: 8px 0; border-bottom: 1px solid #eef2f0; line-height: 1.5; }
.opp-public li:last-child { border-bottom: 0; }
.opp-public small { color: #5c6870; margin-left: 6px; }

/* staff page */
.opp-staff-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.opp-staff-form .wide { grid-column: 1 / -1; }
.opp-staff-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.opp-staff-form input[type=text], .opp-staff-form input[type=date], .opp-staff-form input[type=url], .opp-staff-form select, .opp-staff-form textarea {
    width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cbd8d1; border-radius: 6px; font: inherit; box-sizing: border-box; }
.opp-staff-form textarea { min-height: 110px; }
.opp-disc { border: 1px solid #e3eae6; border-radius: 6px; padding: 8px 12px; max-height: 240px; overflow: auto; }
.opp-disc ul { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 18px; }
.opp-disc li { break-inside: avoid; padding: 3px 0; display: flex; gap: 8px; align-items: center; }
.opp-disc li label { font-weight: 400; margin: 0; }
.opp-staff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.opp-staff-table th, .opp-staff-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e3eae6; vertical-align: top; }
.opp-staff-table td.actions { white-space: nowrap; }
.opp-staff-table td.actions button { margin: 0 4px 4px 0; padding: 4px 10px; min-height: 0; font-size: 13px; font-weight: 600; border-radius: 6px; border: 1px solid #cbd8d1; background: #fff; color: #1f2d27; cursor: pointer; }
.opp-staff-table td.actions button:hover { background: #eef7f1; color: #025f30; }
.opp-staff-table tr.is-closed td { color: #8a968f; }
@media (max-width: 720px) { .opp-staff-form { grid-template-columns: 1fr; } .opp-staff-table thead { display: none; } .opp-staff-table td { display: block; border: 0; padding: 3px 0; } .opp-staff-table tr { display: block; border-bottom: 1px solid #e3eae6; padding: 8px 0; } }

/* portal pages style every submit input as a green pill; keep secondary actions outlined */
.nsd-app input[type="submit"].btn-secondary, .nsd-app input[type="submit"].btn-secondary:hover { background: #fff; border: 1.5px solid #028742; color: #028742; box-shadow: none; }
.nsd-app input[type="submit"].btn-secondary:hover { background: #eef7f1; }
