/* The 60-second grant check, shared by /grants and /grant-check with
 assets/grant-check.js. Page layout around it stays in each page. */
/* Agency logos: a white chip, so the colours hold on lemon and navy tiles too. */
.alogo { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 8px 12px; }
.alogo img { height: 26px; width: auto; display: block; }
.res .alogo { padding: 0; margin-bottom: 14px; }
/* Checker */
#selector { position: relative; top: -80px; }
.checker { padding: 36px; min-height: 560px; display: flex; flex-direction: column; }
.cktop { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; min-height: 24px; }
.steplabel { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.prog { flex: 1; display: flex; gap: 4px; }
.prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background-color var(--t-std) var(--ease); }
.prog i.on { background: var(--navy); }
.prog i.cur { background: var(--deep-lemon); }
.qbody { flex: 1; }
.qbody.enter { animation: q-in var(--t-std) var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(20px); } }
.qbody h3 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 8px; outline: none; }
.qbody .hint { color: var(--ink-2); margin-bottom: 22px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: 600 16px/1.4 "Plus Jakarta Sans", sans-serif; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; cursor: pointer; transition: border-color var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease); }
.choice small { display: block; font-weight: 500; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.choice svg { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--ink-2); transition: transform var(--t-quick) var(--ease); }
.choice:hover { background: #fff; border-color: var(--navy); box-shadow: 0 10px 24px -16px rgba(26,43,92,.45); }
.choice:hover svg { transform: translateX(3px); color: var(--navy); }
.choice:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.choice[aria-pressed="true"] { background: var(--cream); border-color: var(--deep-lemon); }
.ckctrl { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.ckctrl .btn { font-size: 14px; padding: 9px 16px; }
.ckctrl .back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.ckctrl .again { margin-left: auto; background: none; border: 0; font: 600 14px "Plus Jakarta Sans", sans-serif; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 4px; }
.ckctrl .again:hover { color: var(--ink); }
.ckctrl [hidden], .cktop [hidden] { display: none; }

/* Result */
.res h3 { font-size: 32px; letter-spacing: -.025em; margin-bottom: 4px; }
.res .agency { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.res .money { background: var(--cream); border: 1px solid #F1E4A0; border-radius: 16px; padding: 16px 18px; margin-bottom: 20px; }
.res h4 { margin: 20px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.res .notes { display: grid; gap: 10px; margin-top: 20px; }
.res .note { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--deep-lemon); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.res .also { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.res .cta-row { margin: 22px 0 18px; }

/* Warning beside the checker */
.warn { display: flex; flex-direction: column; align-self: start; position: sticky; top: 88px; }
.checker.done .cktop { display: none; }
.checker #capture-slot { margin-top: 24px; }
.warn .wicon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--lemon); display: grid; place-items: center; margin-bottom: 20px; }
.warn .wicon svg { width: 22px; height: 22px; }
.warn h3 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 14px; }
.warn .btn { margin-top: auto; align-self: flex-start; }
/* A shared result */
.res .srcline { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.res .srcline a { color: var(--ink); font-weight: 600; }
.res .shared { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 0 0 18px; }
@media (max-width: 900px) {
  .checker { min-height: 0; padding: 28px 22px; }
  .warn { position: static; }
}
@media (max-width: 600px) {
  .qbody h3, .warn h3 { font-size: 24px; }
  .res h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .qbody.enter { animation: none; } }
