/* Homepage blocks and archive pages. */

.fo-main { display: block; }

/* Hero + search */
.fo-hero { padding: 48px 0 24px; }
.fo-hero__inner { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.fo-hero .fo-h1 { font-size: 48px; }
.fo-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-btn);
}
.fo-hero__search { transition: border-color var(--ease), box-shadow var(--ease); }
.fo-hero__search:hover { border-color: var(--line-strong); }
.fo-hero__search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.fo-hero__search svg { color: var(--muted); flex: none; }
.fo-hero__search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.fo-hero__search input::placeholder { color: var(--muted); }

/* Category grid */
.fo-categories { padding: 12px 0 var(--section-y); }
.fo-categories__inner { display: flex; flex-direction: column; gap: 14px; }
.fo-categories .fo-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Most used */
.fo-toplist { padding: 8px 0 var(--section-y); }
.fo-toplist__inner { display: flex; flex-direction: column; gap: 12px; }

/* Builder CTA band */
.fo-builder-cta { padding: 8px 0 var(--section-y); }
.fo-builder-cta__band {
  padding: 32px 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.fo-builder-cta__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.fo-builder-cta__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-pale); }
.fo-builder-cta__band h2 { color: var(--white); font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.fo-builder-cta__band p { font-size: 16px; line-height: 1.5; color: var(--teal-tint); }
.fo-builder-cta__band .fo-btn { flex: none; }

/* Archive / category / search */
.fo-archive__inner { padding-top: var(--section-y); padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.fo-archive__head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.fo-archive__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
.fo-group { display: flex; flex-direction: column; gap: 12px; }
.fo-group__title { display: flex; align-items: center; gap: 10px; font-size: var(--h2); font-weight: 800; letter-spacing: -0.02em; }
.fo-group__title a { color: var(--ink); text-decoration: none; }
.fo-group__title a:hover { color: var(--teal); }
.fo-group__count { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted-2); }

@media (max-width: 900px) {
  .fo-categories .fo-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fo-archive__groups { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fo-hero { padding: 32px 0 20px; }
  .fo-hero .fo-h1 { font-size: 32px; }
  .fo-hero__search { height: 52px; padding: 0 14px; }
  .fo-hero__search input { font-size: 16px; }
  .fo-builder-cta__band { padding: 20px 18px; gap: 12px; }
  .fo-builder-cta__band h2 { font-size: 22px; }
  .fo-builder-cta__band p { font-size: 15px; }
  .fo-builder-cta__band .fo-btn { width: 100%; }
}
