/* Home (static_pages#welcome). Owned by the home screen session.
 * Page-only styles; shared components live in ../fd.css. Load with <%= content_for :head, fd_stylesheet_tag('home') %>.
 * Taken from boards/Home1.dc.html. */

/* Hero: a full-width band. The layout's <main> is 1400px wide, so the band's colour and bottom rule are
   drawn by box shadows (which never cause sideways scrolling) and clipped to the hero's height. */
.fd .home-hero { background: #f1f7fb; margin-top: -26px; padding: 34px 0 28px; text-align: center;
  box-shadow: 0 0 0 100vmax #f1f7fb, 0 1px 0 100vmax #d9e2e8; clip-path: inset(0 -100vmax -1px); }
.fd .home-hero h1 { font-size: 40px; font-weight: 650; line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.fd .home-hero__intro { font-size: 18px; line-height: 1.5; max-width: 800px; margin: 12px auto 0; color: #3d4a54; }
.fd .home-search { margin: 0; }
.fd .big { display: flex; align-items: center; max-width: 760px; margin: 20px auto 0; background: #fff; border: 1px solid #a9beca; border-radius: 36px; padding: 6px 8px 6px 26px; box-shadow: 0 2px 10px rgba(23, 61, 83, .08); }
.fd .big:focus-within { outline: 3px solid #0074ad; outline-offset: 2px; }
.fd .big input { flex: 1; min-width: 0; border: 0; margin: 0; font: inherit; font-size: 18px; color: #243442; padding: 12px 0; background: transparent; -webkit-appearance: none; appearance: none; }
.fd .big input:focus { outline: none; }
.fd .big button { flex: 0 0 auto; border: 0; border-radius: 28px; margin: 0; background: #0074ad; color: #fff; font: inherit; font-weight: 600; min-height: 48px; padding: 0 26px; cursor: pointer; }
.fd .big button:hover { background: #005a87; }

/* Scope pills: radio buttons of the search form, drawn as the mock's pills. */
.fd .scopes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.fd .scopes label { position: relative; display: inline-flex; margin: 0; font-weight: 400; cursor: pointer; }
.fd .scopes input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fd .scopes span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #c5ced5; border-radius: 999px; background: #fff; color: #243442; }
.fd .scopes label:hover span { border-color: #0074ad; }
.fd .scopes input:checked + span { background: #0074ad; border-color: #0074ad; color: #fff; }
.fd .scopes input:focus-visible + span { outline: 3px solid #0074ad; outline-offset: 2px; }
.fd .home-hero__try { margin-top: 14px; }
.fd .home-hero__filter { margin-top: 6px; }

/* Sections */
.fd .home .sec { margin-top: 26px; }
.fd .home .sec--first { margin-top: 0; padding-top: 34px; }
.fd .home-who .lead { font-size: 15px; color: #243442; max-width: 860px; }
.fd .home-cols { display: flex; flex-wrap: wrap; gap: 0 44px; align-items: flex-start; }
.fd .home-cols > .sec { flex: 1 1 420px; min-width: 0; }

/* "Who invests in…" cards and the investor profile cards */
.fd .home .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 14px; }
.fd .home .card a.tname { text-decoration: none; }
.fd .home .card a.tname:hover { text-decoration: underline; }
.fd .home .card .muted a { color: #3d5566; }
.fd .home .card > .kick { display: block; }
.fd .home-investors__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.fd .home-profile__more { margin-top: 8px; }

@media (max-width: 1000px) {
  .fd .home-investors__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Last 7 days by state */
.fd .home-states__note { margin-top: 12px; }
.fd .home-states__top { margin-top: 6px; }

/* Largest new raises */
.fd .home-raises__kind { margin: 14px 0 0; }
.fd .home-raises__kind + .rank { margin-top: 6px; }
.fd .rank + .home-raises__kind { margin-top: 16px; }
.fd .home-raises__newest { margin-top: 10px; }

/* Browse */
.fd .home .foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; }

@media (max-width: 600px) {
  .fd .home-hero { margin-top: -22px; padding: 30px 0 24px; }
  .fd .home-hero h1 { font-size: 38px; }
  .fd .home-hero__intro { font-size: 17px; }
  .fd .big { padding-left: 18px; }
  .fd .big input { font-size: 17px; }
  .fd .scopes span { min-height: 44px; }
  .fd .home .sec--first { padding-top: 28px; }
  .fd .home .tiles, .fd .home-investors__cards { grid-template-columns: 1fr; }
  .fd .home-states__top a, .fd .home-raises__newest a, .fd .home .foot a, .fd .home-hero__try a, .fd .home-hero__filter a,
  .fd .home .sechead > a { display: inline-flex; align-items: center; min-height: 44px; }
  .fd .home .foot { gap: 0 24px; align-items: center; }
  .fd .home .foot > span { display: inline-flex; align-items: center; min-height: 44px; }
}
