/* Shared presentation refinements. Routes, API forms, and page content stay intact. */
.granthub-design {
  --paper: #f8fafb;
  --paper-2: #f2f6f8;
  --panel-2: #f8fafb;
  --ink: #233342;
  --ink-soft: #4d6072;
  --muted: #687c8e;
  --line: #e2e9ee;
  --navy-line: #d3e0e8;
  --mint: #edf7f2;
  --sky: #eef5fa;
  --shadow: 0 4px 16px rgba(29, 50, 65, .045);
  --shadow-lg: 0 12px 32px rgba(29, 50, 65, .09);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.granthub-design *, .granthub-design *::before, .granthub-design *::after { box-sizing: border-box; }
.granthub-design .wrap { width: min(1200px, calc(100% - 48px)); max-width: 1200px; }
.granthub-design h1 { line-height: 1.16; letter-spacing: -.035em; }
.granthub-design h2 { line-height: 1.3; letter-spacing: -.025em; }
.granthub-design h3 { line-height: 1.4; letter-spacing: -.015em; }
.granthub-design p { line-height: 1.7; }
.granthub-design .small, .granthub-design .note { font-size: 12px; line-height: 1.65; }
.granthub-design .gh-kicker, .granthub-design .eyebrow { font-size: 12px; font-weight: 500; }

/* A quieter, consistent navigation and page heading. */
.granthub-design .topbar { font-size: 11px; }
.granthub-design .nav { box-shadow: none; border-bottom: 1px solid var(--line); }
.granthub-design .nav .wrap { height: 66px; gap: 16px; }
.granthub-design .brand .mark { width: 36px; height: 36px; }
.granthub-design .brand .bt b { font-size: 20px; }
.granthub-design .brand .bt small { font-size: 10px; margin-top: 2px; }
.granthub-design .nav .navlinks > a, .granthub-design .nav .gh-nav-more > summary { font-size: 13px; padding-inline: 10px; }
.granthub-design .nav .navlinks > a.active::after { height: 2px; }
.granthub-design .navcta .btn { font-size: 12px; padding: 8px 12px; border-radius: 999px; min-height: 36px; }
.granthub-design .gh-nav-dropdown { padding: 6px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.granthub-design .gh-nav-dropdown a, .granthub-design .gh-nav-dropdown button { font-size: 13px; padding: 9px 11px; }
.granthub-design .design-page-header, .granthub-design .gh-account-hero,
.granthub-design .gh-about-hero { padding-top: 40px; padding-bottom: 40px; }
.granthub-design .design-page-header h1, .granthub-design .gh-account-hero h1,
.granthub-design .gh-about-hero h1 { font-size: clamp(29px, 3vw, 42px); margin: 8px 0 14px; }
.granthub-design .design-page-header .lead, .granthub-design .gh-about-hero p,
.granthub-design .gh-account-hero p { font-size: 15px; line-height: 1.7; max-width: 66ch; margin-top: 0; }
.granthub-design .phero-ill { opacity: .55; max-width: 28%; pointer-events: none; }
.granthub-design .glow2 { opacity: .35; }
.granthub-design .design-page-header .herocard { margin-top: 24px; padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }
.granthub-design .srcchip { font-size: 11px; padding: 5px 10px; }

/* One control scale, with focus on the control rather than its entire card. */
.granthub-design .btn { border-radius: 12px; padding: 10px 18px; min-height: 42px; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.granthub-design .btn.sm, .granthub-design .btn.btn-sm { min-height: 38px; padding: 9px 14px; font-size: 13px; }
.granthub-design .btn.primary, .granthub-design .btn-primary { box-shadow: none; }
.granthub-design .btn:hover { transform: none; }
.granthub-design .btn.primary:hover, .granthub-design .btn-primary:hover { box-shadow: none; }
.granthub-design .gh-actions { gap: 10px; flex-wrap: wrap; }
.granthub-design .gh-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.granthub-design .gh-form select, .granthub-design .gh-form textarea,
.granthub-design .profform input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.granthub-design .profform select, .granthub-design .profform textarea {
  min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #dce6ed;
  border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.granthub-design .gh-form textarea, .granthub-design .profform textarea { min-height: 116px; }
.granthub-design .gh-form label, .granthub-design .profform label { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.granthub-design .profform .row { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.granthub-design .profform .row label { display: block; margin: 0 0 7px; }
.granthub-design .profform .two, .granthub-design .gh-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.granthub-design .profform { display: grid; gap: 18px; }
.granthub-design .gh-profile-form { gap: 0; }
.granthub-design .gh-profile-local-form { gap: 18px; }
.granthub-design .gh-form .btn { margin-top: 20px; }
.granthub-design .gh-profile-actions .btn { margin-top: 0; }
.granthub-design :is(.gh-form, .profform) :is(input, select, textarea):focus { outline: 2px solid #12805f24; outline-offset: 1px; border-color: #12805f; box-shadow: none; }
.granthub-design .errorlist { font-size: 12px; line-height: 1.6; color: #b42318; }

/* Use light borders for grouping; reserve elevation for menus and overlays. */
.granthub-design main :is(.card, .gh-funder-card, .gh-peer-result-card, .gh-funder-section,
.gh-auth-card, .gh-contact-card, .gh-vendor-example, .gh-fit-gate, .chart, .plan) {
  border-color: var(--line); border-radius: 16px; box-shadow: none;
}
.granthub-design main :is(.card, .gh-funder-card, .gh-peer-result-card, .gh-funder-section,
.gh-auth-card, .gh-contact-card, .gh-vendor-example, .gh-fit-gate, .chart, .plan):hover {
  transform: none; box-shadow: none;
}
.granthub-design main :is(a.gcard, a.gh-funder-card):hover { border-color: #aacfbf; background: #fff; }
.granthub-design .gh-badge, .granthub-design .pill, .granthub-design .chip { font-size: 11px; font-weight: 500; line-height: 1.5; padding: 4px 8px; }
.granthub-design .pill-row, .granthub-design .gh-card-top { flex-wrap: wrap; gap: 7px; }
.granthub-design :is(.gh-find-content, .gh-funder-results, .gh-recipient-results, .gh-peers-content,
.gh-fit-content, .gh-profile-page, .gh-dashboard, .gh-funder-detail-content) { padding-top: 30px; padding-bottom: 48px; }
.granthub-design .gh-section { padding-top: 48px; padding-bottom: 48px; }
.granthub-design :is(.gh-find-grid, .gh-funder-grid, .gh-peer-results-grid, .gh-peer-funders-grid) { gap: 18px; }
.granthub-design .gh-find-grid .gcard, .granthub-design .gh-funder-card,
.granthub-design .gh-peer-result-card { padding: 20px; min-height: 0; gap: 12px; }
.granthub-design .gh-find-grid .gcard h3, .granthub-design .gh-funder-card h2,
.granthub-design .gh-peer-result-card h3 { font-size: 16px; line-height: 1.45; margin: 0; }
.granthub-design .gh-find-grid .gcard .funder { font-size: 13px; margin: 3px 0 12px; }
.granthub-design .gh-find-facts { margin-top: auto; padding-top: 14px; }
.granthub-design .gh-find-facts strong, .granthub-design .gh-peer-record-stats strong { font-size: 17px; }
.granthub-design .gh-find-grid .gcard .teaser { font-size: 11px; padding: 8px 10px; margin-top: 10px; }
.granthub-design .gh-funder-card p, .granthub-design .gh-funder-card-bottom,
.granthub-design .gh-peer-result-card .small { font-size: 12px; }
.granthub-design .gh-funder-monogram { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.granthub-design .gh-find-toolbar { gap: 10px; margin-bottom: 18px; }
.granthub-design .gh-find-search { box-shadow: none; padding: 5px; }
.granthub-design .gh-find-search input { font-size: 14px; padding: 9px 12px; }
.granthub-design .gh-find-filter-panel { padding: 18px; border-radius: 14px; margin-bottom: 20px; gap: 16px; }
.granthub-design .gh-find-filter-panel label { font-size: 12px; }
.granthub-design .gh-find-filter-panel select { font-size: 13px; min-height: 42px; padding: 10px 12px; }
.granthub-design .gh-filter-note { font-size: 11px; line-height: 1.6; }
.granthub-design .gh-peer-results-heading h2 { font-size: 24px; }
.granthub-design .gh-peer-method, .granthub-design .gh-peer-data-note { font-size: 13px; }

/* Reading-heavy details, account areas, and tables. */
.granthub-design .gdx .gd-top { gap: 28px; }
.granthub-design .gdx .gd-top h1, .granthub-design .gh-funder-detail-hero h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.25; }
.granthub-design .gdx .gd-body { gap: 26px; }
.granthub-design .gdx .gq { margin-top: 28px; padding-top: 24px; }
.granthub-design .gdx .panel, .granthub-design .gh-funder-section { padding: 20px; }
.granthub-design .gdx .panel h3, .granthub-design .gh-funder-section h2 { font-size: 17px; }
.granthub-design .gh-detail-lock { padding: 18px; border-radius: 14px; gap: 14px; }
.granthub-design .gh-detail-lock h3 { font-size: 15px; }
.granthub-design .gh-detail-lock p { font-size: 12px; }
.granthub-design .gh-profile-menu { border-radius: 14px; padding: 9px; box-shadow: none; }
.granthub-design .gh-profile-menu a, .granthub-design .gh-profile-menu button { font-size: 13px; padding: 10px 12px; }
.granthub-design .design-account-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
.granthub-design .design-account-layout .panel { margin-bottom: 18px; padding: 22px; }
.granthub-design .gh-profile-editor-header .gh-panel-heading { font-size: 22px; }
.granthub-design .gh-fit-content .prof { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 24px; }
.granthub-design .gh-recipient-table { font-size: 13px; }
.granthub-design .gh-recipient-table :is(th, td) { padding: 13px 16px; line-height: 1.5; vertical-align: middle; }
.granthub-design .gh-recipient-table th { font-size: 11px; font-weight: 600; background: #f4f7f9; color: var(--ink-soft); }
.granthub-design .gh-recipient-table tbody tr:hover { background: #f6faf8; }
.granthub-design .gh-contact-grid { gap: 24px; align-items: start; }
.granthub-design .design-contact-section { padding: 32px 0 48px; }
.granthub-design .design-contact-section .card { padding: 22px; }
.granthub-design .design-contact-section .ico { width: 36px; height: 36px; border-radius: 10px; }
.granthub-design .design-contact-section h3 { font-size: 17px; }
.granthub-design .design-contact-section p, .granthub-design .design-contact-section .link { font-size: 13px; }
.granthub-design .gh-auth-card { padding: 30px; }
.granthub-design .gh-auth-card h1 { font-size: 28px; }
.granthub-design .gh-auth-card p { font-size: 13px; }
.granthub-design .gh-pricing-page .plan { padding: 26px; }
.granthub-design .gh-pricing-page .plan .feats, .granthub-design .gh-pricing-page .plan li { font-size: 13px; line-height: 1.8; }
.granthub-design .gh-pricing-page .plans { gap: 20px; }

/* Keep the landing page expressive without overwhelming the working pages. */
.granthub-design .design-home .hero { padding-top: 56px; padding-bottom: 86px; }
.granthub-design .design-home .hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.15; }
.granthub-design .design-home .hero .lead { font-size: 17px; line-height: 1.7; }
.granthub-design .design-home .sc { padding: 22px; border-radius: 20px; box-shadow: var(--shadow); }
.granthub-design .design-home .kpi-cell { padding: 20px; }
.granthub-design .design-home .sc .ttl { font-size: 16px; }
.granthub-design .design-home .sc .small { font-size: 12px; }
.granthub-design .design-home .sec { padding-top: 48px; padding-bottom: 48px; }
.granthub-design .gh-footer { padding-top: 34px; padding-bottom: 20px; }
.granthub-design .gh-footer-grid { gap: 28px; padding-bottom: 28px; }
.granthub-design .gh-footer-grid p, .granthub-design .gh-footer-grid a { font-size: 12px; line-height: 1.8; }
.granthub-design .gh-footer-grid h4 { font-size: 12px; margin-bottom: 10px; }
.granthub-design .gh-footer-bottom { padding-top: 18px; font-size: 11px; }
.granthub-design .gh-chat-launcher { min-height: 42px; padding: 10px 15px; font-size: 12px; box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .granthub-design .design-account-layout, .granthub-design .gh-fit-content .prof { grid-template-columns: minmax(0, 1fr); }
  .granthub-design .gh-profile-menu { position: static; }
}
@media (max-width: 640px) {
  .granthub-design .wrap { width: calc(100% - 32px); }
  .granthub-design .nav .wrap { height: 62px; gap: 9px; }
  .granthub-design .nav .brand .mark { width: 32px; height: 32px; }
  .granthub-design .nav .brand .bt b { font-size: 18px; }
  .granthub-design .design-page-header, .granthub-design .gh-account-hero, .granthub-design .gh-about-hero { padding-top: 28px; padding-bottom: 28px; }
  .granthub-design .design-page-header h1, .granthub-design .gh-account-hero h1, .granthub-design .gh-about-hero h1 { font-size: 30px; }
  .granthub-design .design-page-header .lead { font-size: 14px; }
  .granthub-design .phero-ill { display: none; }
  .granthub-design .design-page-header .herocard { padding: 15px; margin-top: 20px; }
  .granthub-design .profform .two, .granthub-design .gh-form-pair { grid-template-columns: minmax(0, 1fr); }
  .granthub-design .btn { min-height: 42px; padding: 10px 15px; font-size: 13px; }
  .granthub-design .btn.sm { min-height: 38px; font-size: 12px; }
  .granthub-design :is(.gh-find-content, .gh-funder-results, .gh-recipient-results, .gh-peers-content, .gh-fit-content, .gh-profile-page) { padding-top: 24px; padding-bottom: 36px; }
  .granthub-design .gh-section, .granthub-design .design-home .sec { padding-top: 36px; padding-bottom: 36px; }
  .granthub-design .gh-find-toolbar { flex-wrap: wrap; }
  .granthub-design .gh-find-toolbar .gh-find-search { flex-basis: 100%; }
  .granthub-design .gh-find-grid .gcard, .granthub-design .gh-funder-card, .granthub-design .gh-peer-result-card { padding: 18px; }
  .granthub-design .gh-peer-results-heading h2 { font-size: 22px; }
  .granthub-design .gh-auth-card { padding: 24px 20px; }
  .granthub-design .gh-detail-lock { padding: 16px; }
  .granthub-design .gdx .gd-top h1 { font-size: 28px; }
  .granthub-design .design-home .hero { padding-top: 34px; padding-bottom: 66px; }
  .granthub-design .design-home .hero .lead { font-size: 15px; }
  .granthub-design .gh-footer-grid { gap: 24px; }
  .granthub-design .gh-chat-launcher { right: 14px; bottom: 14px; padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .granthub-design .btn { transition: none; }
}

.granthub-design .gh-find-shortcuts { align-items: center; margin: -3px 0 22px; gap: 7px; }
.gh-find-shortcuts > span { font-size: 12px; color: var(--muted); margin-right: 3px; }
.granthub-design .gh-find-shortcuts button { font-size: 12px; padding: 5px 10px; background: #fff; }
.granthub-design main [id], .granthub-design [data-live-results] { scroll-margin-top: 86px; }

/* Quiet directory metadata instead of a stack of competing pills. */
.granthub-design .gh-funder-grid .gh-funder-card .gh-funder-monogram { background: var(--mint); color: #14775b; }
.granthub-design .gh-funder-card .gh-funder-tags { gap: 4px 8px; }
.granthub-design .gh-funder-card .gh-funder-tags > span { background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 11px; line-height: 1.7; }
.granthub-design .gh-funder-card .gh-funder-tags > span + span::before { content: "·"; color: #9aacb9; margin-right: 8px; }
