/* Grant list cards: region, amount and a description snippet, as in the first
   prototype's funding cards. Loaded after app.css, so it uses its tokens. */

.grant-card .grant-amount,
.grant-card .grant-description,
.grant-card .grant-tags { grid-column: 2 / -1; }

.grant-amount { display: flex; align-items: center; gap: 0.35rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 0.85rem; color: var(--accent); overflow-wrap: anywhere; }
.grant-amount .icon { flex: none; }
.grant-description { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.grant-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* The region chip is green, like the prototype's, but also says what it is in words. */
.chip.region { color: var(--text); background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: var(--ok); font-weight: 600; text-transform: none; }

/* The title is the card's button, stretched over the whole card; the grant number is a
   link above it (a link cannot sit inside a button). */
.grant-card { position: relative; cursor: pointer; }
.card-open { display: inline-block; min-height: 24px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.card-open::after { content: ""; position: absolute; inset: 0; }
.card-open:focus-visible { outline: none; }
.grant-card:has(.card-open:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.grant-card .card-link { position: relative; z-index: 1; display: inline-block; min-height: 24px; min-width: 24px; line-height: 24px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.grant-code.card-link { font-size: inherit; }
h2 .card-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
