/* Funding Match (funding.html) — Draft V1. Prefix fm-. Builds on course-finder.css, erp.css and assess.css (finder-*, as-*, erp-*). */
.fm-cols2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fm-cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:720px){.fm-cols2,.fm-cols3{grid-template-columns:1fr}}
#fm-result{outline:none}
.fm-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.fm-tiles div{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.fm-tiles strong{display:block;font-family:var(--font-head);font-size:30px;color:var(--navy);line-height:1.1}
.fm-tiles span{font-size:13.5px;color:var(--muted)}
@media (max-width:820px){.fm-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fm-group{display:flex;flex-direction:column;gap:14px}
.fm-group-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:2px solid var(--navy);padding-bottom:8px}
.fm-group-h h3{font-size:22px;margin:0}
.fm-group>div[hidden]+.fm-more,.fm-more{align-self:flex-start}
.fm-group>div:not([hidden]){display:flex;flex-direction:column;gap:14px}
.fm-card{border:1px solid var(--line);border-radius:12px;background:var(--white);padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.fm-card-top{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}
.fm-card h4{font-size:18px;margin:0;line-height:1.3}
.fm-admin{font-size:13.5px;color:var(--muted);margin:3px 0 0}
.fm-fit{flex:0 0 76px;text-align:center;position:relative;padding-bottom:8px}
.fm-fit b{display:block;font-family:var(--font-head);font-size:24px;color:var(--navy);line-height:1}
.fm-fit span{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.fm-fit i{position:absolute;left:6px;right:6px;bottom:0;height:5px;border-radius:3px;background:var(--sand);overflow:hidden}
.fm-fit i::after{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--w);background:var(--blue)}
.fm-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.fm-chip{font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--sand);color:var(--navy)}
.fm-chip.t{background:#E3F2FA;color:var(--blue)}
.fm-chip.ok{background:#EAF4DC;color:#3E6A0C}
.fm-chip.mid{background:#FFF3D6;color:#7A5A00}
.fm-chip.no{background:#F6E2E2;color:#8A2B2B}
.fm-amt{margin:0;font-weight:600;color:var(--navy)}
.fm-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}
@media (max-width:720px){.fm-cols{grid-template-columns:1fr}.fm-card-top{flex-direction:row}}
.fm-cols h5{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:2px 0 6px;font-family:var(--font-body)}
.fm-why,.fm-check{margin:0;padding:0;list-style:none;font-size:14.5px;display:flex;flex-direction:column;gap:4px}
.fm-why li,.fm-check li{padding-left:22px;position:relative;line-height:1.45}
.fm-why li::before{content:"✓";position:absolute;left:2px;color:var(--green-dark);font-weight:700}
.fm-check li::before{content:"!";position:absolute;left:4px;top:1px;width:14px;height:14px;border-radius:50%;background:#FFF3D6;color:#7A5A00;font-size:11px;font-weight:700;line-height:14px;text-align:center}
.fm-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:2px 0 0;font-size:14.5px;align-items:baseline}
.fm-links a{font-weight:600;color:var(--blue)}
.fm-links .muted{font-size:13.5px}
.fm-stack-t{width:100%;border-collapse:collapse;font-size:14.5px;margin:12px 0 14px}
.fm-stack-t th{text-align:left;font-size:12.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);border-bottom:1px solid var(--line);padding:6px 8px 6px 0}
.fm-stack-t td{border-bottom:1px solid var(--line);padding:9px 8px 9px 0;vertical-align:top}
.fm-stack-t .num{text-align:right;white-space:nowrap}
.fm-stack-t a{color:var(--blue);font-weight:600}
.fm-warn{background:#FFF3D6;border-radius:8px;padding:10px 14px;font-size:14.5px;margin:12px 0 0;color:#5A4300}
.fm-small{font-size:13px;margin:10px 0 0}
.fm-near{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.fm-near li{display:flex;flex-direction:column;gap:2px;border-left:3px solid var(--line-2);padding-left:12px}
.fm-near a{font-weight:600;color:var(--blue)}
.fm-near span{font-size:14.5px;color:var(--body)}
.fm-todo{margin:8px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:10px}
.fm-todo b{display:block;color:var(--navy)}
.fm-todo span{font-size:14.5px}
.fm-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:22px}
.fm-two>div:empty{display:none}
.fm-note{font-size:13.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;margin:0}
.fm-draft{background:#FFF3D6;color:#5A4300;font-size:14px;font-weight:600;text-align:center;padding:8px 16px}
.gr-card.fm-flash,.fm-flash{box-shadow:0 0 0 3px var(--blue-bright);transition:box-shadow .3s}
.fm-limit{font-size:14px;color:#7A5A00;margin:6px 0 0;min-height:1em}
.finder-opt input:disabled+span{opacity:.55}
@media (max-width:600px){
  .fm-stack-t thead{display:none}
  .fm-stack-t,.fm-stack-t tbody,.fm-stack-t tr,.fm-stack-t td{display:block;width:100%}
  .fm-stack-t tr{border-bottom:1px solid var(--line);padding:8px 0}
  .fm-stack-t td{border:0;padding:2px 0}
  .fm-stack-t .num{text-align:left;white-space:normal;font-weight:600}
}
@media (max-width:820px){#fm-result .erp-lead{grid-template-columns:minmax(0,1fr)}}
#fm-result .erp-lead>*{min-width:0;max-width:100%}
/* undo Digital Assessment page-level rules that assess.css applies on this page */
html{scroll-padding-top:auto}
.gr-hero .stat-row{gap:16px 48px}
@media (max-width:720px){.gr-hero .stat-row{gap:16px 28px}}
.fm-cost{margin-top:18px;display:flex;flex-direction:column;gap:6px;max-width:360px}
.fm-cost label{font-weight:600;color:var(--navy)}
.fm-cost .hint{font-weight:400;color:var(--muted)}
.fm-cost-in{display:flex;align-items:center;border:1px solid var(--line-2);border-radius:10px;background:var(--white);padding:0 12px}
.fm-cost-in:focus-within{outline:2px solid var(--blue);outline-offset:1px}
.fm-cost-in span{color:var(--muted);font-weight:600;margin-right:6px}
.fm-cost-in input{border:0;outline:0;font:inherit;font-size:16px;padding:12px 0;width:100%;background:transparent;color:var(--ink)}
.fm-cost-msg{font-size:14px;color:var(--muted);margin:0;min-height:1.2em}
.fm-jump{margin:0;font-weight:600}
.fm-jump a{color:var(--blue)}
/* V5.60: keep the five step names on one line, as on the Digital Assessment */
#fm .finder-intro .stack{max-width:720px}
/* V5.61: same gap below the wizard box as on the Digital Assessment, now that the directory band below is sand */
#match.finder-section{padding-bottom:80px}
@media (max-width:720px){#match.finder-section{padding-bottom:56px}}
/* V5.61: directory band starts with the same top space as the Digital Assessment's Software Finder band */
@media (min-width:721px){#finder.sand.gr-section{padding-top:104px}}
/* V5.62: leads (programs that need something the tool cannot confirm) and the stack note */
.fm-fit.fm-lead b{font-size:18px;color:#7A5A00}
.fm-fit.fm-lead{background:#FFF3D6;border-radius:10px;padding:8px 6px}
.fm-note2{background:var(--sand);border-radius:8px;padding:10px 14px;font-size:14.5px;margin:4px 0 0}
.fm-stack-t td:last-child{font-size:14px}
.fm-fit.fm-lead{flex-basis:104px}
.fm-fit.fm-lead span{white-space:nowrap;font-size:11px}
.fm-amt-l{font-weight:400;color:var(--muted);font-size:14px}
@media (max-width:600px){.fm-stack-t td:last-child::before{content:"Program publishes: ";color:var(--muted)}}
