/* Standalone explore layout; semantic color tokens are generated from src/index.css. */
* { box-sizing: border-box; }
html { color-scheme: light; }
html.dark { color-scheme: dark; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font-family: Inter, system-ui, sans-serif; line-height: 1.6; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 12px; background: hsl(var(--card)); padding: 12px; z-index: 3; }
header { border-bottom: 1px solid hsl(var(--border)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; min-width: 0; white-space: nowrap; }
.brand img { width: 32px; height: 40px; object-fit: contain; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 20px; }
.header-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav-home { font-weight: 650; color: hsl(var(--muted-foreground)); min-height: 44px; display: inline-flex; align-items: center; padding-right: 18px; border-right: 1px solid hsl(var(--border)); white-space: nowrap; }
.nav .login-link { font-weight: 600; }
.nav .home-link { color: hsl(var(--muted-foreground)); font-weight: 600; }
.theme { order: -1; }
.more-cta { margin-top: 24px; padding: 20px; border: 1px dashed hsl(var(--border)); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: hsl(var(--card)); }
.more-cta p { margin: 0; color: hsl(var(--muted-foreground)); }
.nav-home:hover { color: hsl(var(--primary)); }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border-radius: 6px; font-weight: 650; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.button:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: hsl(var(--foreground)); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.theme:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.theme:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.theme-icons { position: relative; display: block; width: 20px; height: 20px; }
.theme-sun, .theme-moon { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s ease, opacity .3s ease; }
.theme-sun { transform: rotate(0deg) scale(1); opacity: 1; }
.theme-moon { transform: rotate(90deg) scale(0); opacity: 0; }
.dark .theme-sun { transform: rotate(-90deg) scale(0); opacity: 0; }
.dark .theme-moon { transform: rotate(0deg) scale(1); opacity: 1; }
.intro { padding: 52px 0 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: hsl(var(--muted-foreground)); margin-bottom: 28px; }
.breadcrumb a:hover { color: hsl(var(--primary)); }
.eyebrow { font-size: 12px; font-weight: 750; text-transform: uppercase; color: hsl(var(--primary)); }
h1 { font-size: 44px; line-height: 1.18; margin: 12px 0 20px; max-width: 840px; overflow-wrap: anywhere; }
h2 { font-size: 25px; line-height: 1.3; margin: 0; }
.lead { font-size: 18px; max-width: 740px; color: hsl(var(--muted-foreground)); }
.snapshot { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 24px; }
.section { padding: 30px 0 52px; border-top: 1px solid hsl(var(--border)); }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 24px; }
.count { color: hsl(var(--muted-foreground)); font-size: 14px; }
.hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hub { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
.hub h3 { margin: 4px 0; font-size: 23px; }
.hub p { margin: 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
.hub:hover, .grant:hover { border-color: hsl(var(--primary)); }
.arrow { color: hsl(var(--primary)); font-size: 26px; }
.grants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grant { display: flex; flex-direction: column; padding: 26px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 8px; min-width: 0; }
.grant .donor { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 0 0 12px; overflow-wrap: anywhere; }
.grant h3 { font-size: 20px; line-height: 1.4; margin: 0 0 18px; overflow-wrap: anywhere; }
.deadline { margin: 0 0 10px; font-size: 13px; font-weight: 650; color: hsl(var(--foreground)); }
.teaser { margin: 0 0 18px; font-size: 14px; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.secondary { background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.browse-link { color: hsl(var(--primary)); min-height: 44px; display: inline-flex; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 4px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.unlock { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid hsl(var(--border)); font-size: 14px; font-weight: 650; color: hsl(var(--primary)); min-height: 44px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.empty { padding: 28px 0; color: hsl(var(--muted-foreground)); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
footer { border-top: 1px solid hsl(var(--border)); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
  .brand { font-size: 20px; gap: 7px; }
  .brand img { width: 26px; height: 32px; }
  .nav { gap: 8px; }
  .nav .home-link { display: none; }
  .nav-home { padding-right: 10px; font-size: 14px; }
  .header-left { gap: 10px; }
  .button { padding: 10px 12px; font-size: 14px; }
  .intro { padding: 32px 0 24px; }
  h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .hubs, .grants { grid-template-columns: minmax(0, 1fr); }
  .hub, .grant { padding: 22px; }
  .section-heading { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .nav { width: 100%; justify-content: flex-end; }
  .nav .login-link { margin-right: auto; order: 1; }
  .theme { order: 2; }
  .nav .button { order: 3; }
}