.library-controls { padding: 32px 0 18px; background: #10253b; }
.library-controls label { display: block; margin-bottom: 12px; color: #f5f8fc; font-size: 1.15rem; font-weight: 700; }
.library-controls input { display: block; width: 100%; max-width: 720px; min-height: 54px; padding: 14px 18px; font: inherit; font-size: 1rem; color: #102139; background: white; border: 2px solid #7a8da5; border-radius: 5px; }
.library-controls input::placeholder { color: #56647a; }
.library-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.library-topics a { border: 1px solid #64768c; border-radius: 999px; padding: 10px 16px; color: #f5f8fc; font-weight: 600; text-decoration: none; }
.library-topics a:hover { background: #24415f; }
.library-topics a:first-child { border-color: #69d7cc; color: #69d7cc; }
.library-count { color: #c7d3e2; margin-bottom: 0; }
.library-group { scroll-margin-top: 104px; border-bottom: 1px solid #304359; }
.library-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.library-group-heading h2 { font-size: clamp(1.8rem,3.2vw,2.6rem); font-family: 'Montserrat',sans-serif; font-weight: 900; margin: 12px 0; }
.library-group-heading p { color: #c7d3e2; max-width: 650px; }
.library-group-heading > a { flex-shrink: 0; margin-bottom: 18px; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.funding-library .library-grid .article-card { display: flex; flex-direction: column; padding: 26px; border-top: 3px solid #f7c95f; }
.library-grid .article-card h3 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.4; margin: 14px 0; }
.library-grid .article-card h3 a { color: #f8fbff; text-decoration: none; }
.library-grid .article-card h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.library-grid .article-card p { color: #c7d3e2; font-size: 1rem; line-height: 1.65; }
.library-grid .article-card > .text-link { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.funding-library .library-business .article-card { border-top-color: #69d7cc; }
.funding-library .library-business :is(.eyebrow,.tag,.text-link) { color: #69d7cc; }
.funding-library .library-business .eyebrow::before { background: #69d7cc; }
.answer-quick-action { margin: 20px 0 28px; font-weight: 700; }
.answer-related { margin: 40px 0; padding-top: 24px; border-top: 1px solid #526377; }
.answer-related h2, .answer-sources h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 1.3rem; }
.answer-related li { margin: 14px 0; }
.answer-sources { margin-top: 36px; padding: 20px; border: 1px solid #526377; border-radius: 5px; overflow-wrap: anywhere; }
.answer-sources p { color: #bfccdc; font-size: .9rem; line-height: 1.65; }
.answer-sources p:last-child { margin-bottom: 0; }
.funding-answer-page .article h3 { font-weight: 800; }
.funding-answer-page :is(.answer,.answer-section) { overflow-wrap: break-word; }
[data-answer-card][hidden], [data-library-group][hidden], [data-answer-empty][hidden] { display: none !important; }
.library-controls :is(a,input):focus-visible, .library-grid a:focus-visible { outline: 3px solid #69d7cc; outline-offset: 4px; }
@media(max-width: 980px) { .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 620px) {
  .library-grid { grid-template-columns: minmax(0,1fr); }
  .library-group-heading { display: block; }
  .library-topics { gap: 8px; }
  .library-topics a { padding: 10px 12px; font-size: .9rem; }
  .funding-library .library-group { padding: 40px 0; }
  .answer-sources { padding: 18px; }
}
