/* Homepage: a focused, spacious template library. */
.home .pbf-container { max-width: 1280px; padding-inline: 32px; }
.home .pbf-hero { padding: 56px 0 44px; background: var(--pbf-surface); border-bottom: 1px solid var(--pbf-border); }
.home .pbf-hero::before, .home .pbf-hero__dots { display: none; }
.home .pbf-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
.home .pbf-hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 4.4vw, 3.7rem); letter-spacing: -.055em; line-height: 1.08; }
.home .pbf-hero__badge { padding: 0; background: none; font-size: .75rem; letter-spacing: .12em; margin-bottom: 20px; }
.home .pbf-hero__lead { font-size: 1rem; max-width: 48ch; margin-bottom: 24px; }
.home .pbf-hero__search { max-width: 570px; }
.home .pbf-hero__search .pbf-searchform { border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 5px 20px rgba(20,25,55,.06); }
.home .pbf-searchform__submit { border-radius: 9px; font-size: .875rem; min-height: 44px; }
.home .pbf-hero__trust { gap: 8px 18px; margin-bottom: 0; }
.home .pbf-hero__trust-item { font-size: .8125rem; font-weight: 400; }
.home .pbf-hero__media { padding: 0; }
.home .pbf-hero__stats { margin-top: 24px; padding-top: 18px; }
.home .pbf-hero__stat-tx small { font-size: .75rem; white-space: normal; }
.home .pbf-hero__stat-tx strong { font-size: .875rem; white-space: normal; }
.home .pbf-section { padding-block: 40px; }
.home .pbf-section__head { align-items: center; margin-bottom: 24px; }
.home .pbf-section__title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -.035em; }
.home .pbf-section__title::before { display: none; }
.home .pbf-section__subtitle { font-size: .9375rem; margin-top: 7px; }
.home .pbf-section__more { min-height: 44px; padding: 9px 16px; border: 1px solid var(--pbf-border); border-radius: 10px; background: var(--pbf-surface); font-size: .875rem; }
.home .pbf-grid { gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home .pbf-card, .home .pbf-card.is-featured { border-color: var(--pbf-border); border-radius: 14px; box-shadow: 0 2px 4px rgba(20,25,55,.025); }
.home .pbf-card:hover { border-color: var(--pbf-accent); box-shadow: 0 10px 28px rgba(20,25,55,.10); }
.home .pbf-card__thumb { margin: 8px 8px 0; border: 0; border-radius: 9px; }
.home .pbf-card__thumb .pbf-frame-bar { display: none; }
.home .pbf-card__body { padding: 17px; gap: 12px; }
.home .pbf-card__title { font-size: 1.0625rem; }
.home .pbf-card__head { flex-wrap: wrap; }
.home .pbf-card__flag { font-size: .6875rem; letter-spacing: 0; text-transform: none; padding: 3px 7px; }
.home .pbf-card__meta { font-size: .8125rem; text-transform: none; letter-spacing: 0; }
.home .pbf-card__stats { font-size: .8125rem; flex-wrap: wrap; }
.home .pbf-card__actions { padding-top: 12px; border-top: 1px solid var(--pbf-border); }
.home .pbf-card__actions .pbf-btn { min-height: 40px; background: var(--pbf-accent-soft); color: var(--pbf-accent); font-size: .875rem; justify-content: space-between; padding-inline: 12px; }
.home .pbf-card__actions .pbf-btn:hover { background: var(--pbf-accent); color: white; }
.home .pbf-category-showcase { padding-block: 28px 32px; }
.home .pbf-category-showcase .pbf-section__head { margin-bottom: 18px; }
.home .pbf-category-showcase .pbf-section__title { font-size: 1.25rem; }
.home .pbf-category-showcase .pbf-section__subtitle { display: none; }
.home .pbf-category-showcase .pbf-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home .pbf-cat-card { min-width: 0; padding: 15px; border-radius: 12px; }
.home .pbf-cat-card__name { font-size: .9375rem; }
.home .pbf-cat-card__count { font-size: .8125rem; }
.home .pbf-home-popular { background: var(--pbf-surface-2); border-block: 1px solid var(--pbf-border); }
.home .pbf-home-discovery--developers { background: none; }
.home .pbf-home-discovery--developers .pbf-dev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home .pbf-dev-card__name { white-space: normal; overflow: visible; text-overflow: clip; font-size: .9375rem; }
.home .pbf-dev-card__count { font-size: .8125rem; }
.home .pbf-feature { font-size: .875rem; }
.home .pbf-home-support { padding-top: 24px; }
.home .pbf-support__inner { border-radius: 18px; box-shadow: none; padding: 32px; }
.home .pbf-footer { margin-top: 8px; }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--pbf-accent); outline-offset: 4px; }
@media (max-width: 1100px) {
 .home .pbf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .home .pbf-hero__grid { gap: 24px; }
 .home .pbf-hero__stats { grid-template-columns: 1fr 1fr; }
 .home .pbf-hero__stat:last-child { display: none; }
}
@media (max-width: 800px) {
 .home .pbf-container { padding-inline: 24px; }
 .home .pbf-hero__grid { grid-template-columns: 1fr; }
 .home .pbf-hero__media { display: none; }
 .home .pbf-hero h1 { max-width: 20ch; }
 .home .pbf-hero { padding-block: 36px; }
 .home .pbf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
 .home .pbf-category-showcase .pbf-cat-grid, .home .pbf-home-discovery--developers .pbf-dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
 .home .pbf-container { padding-inline: 20px; }
 .home .pbf-hero h1 { font-size: 2.5rem; }
 .home .pbf-hero__stats { display: none; }
 .home .pbf-hero__trust-item { font-size: .75rem; }
 .home .pbf-hero__trust-item:last-child { display: none; }
 .home .pbf-section { padding-block: 28px; }
 .home .pbf-section__head { gap: 12px; }
 .home .pbf-section__more { padding: 8px 12px; }
 .home .pbf-grid { grid-template-columns: minmax(0, 1fr); }
 .home .pbf-card__body { padding: 18px; }
 .home .pbf-card__title { font-size: 1.125rem; }
 .home .pbf-cat-card { padding: 12px; gap: 10px; }
 .home .pbf-cat-card__arrow { display: none; }
 .home .pbf-home-discovery--developers .pbf-dev-grid { grid-template-columns: 1fr; }
 .home .pbf-support__inner { padding: 26px 20px; }
 .home .pbf-support .pbf-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
 .home .pbf-card:hover, .home .pbf-card:hover .pbf-card__img { transform: none; }
}
.home .pbf-mobile-menu[hidden] { display: none; }
/* The page supplies available width; the provider code controls its layout. */
.home .pbf-home-ad { padding-block: 0; min-width: 0; }
.home .pbf-home-ad__code { width: 100%; min-width: 0; display: flow-root; }
/* Quick discovery paths alongside the hero search. */
.home .pbf-hero__shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.home .pbf-hero__shortcuts > span { color: var(--pbf-text-2); font-size: .8125rem; margin-right: 4px; }
.home .pbf-hero__shortcuts a { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 13px; border: 1px solid var(--pbf-border); border-radius: 999px; background: var(--pbf-surface); color: var(--pbf-text); font-size: .8125rem; font-weight: 500; }
.home .pbf-hero__shortcuts a:hover { background: var(--pbf-accent-soft); border-color: var(--pbf-accent); color: var(--pbf-accent); }
.home .pbf-hero__browse { margin: 12px 0 18px; }
.home .pbf-hero__browse a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: .875rem; font-weight: 600; }
@media (max-width: 520px) { .home .pbf-hero__shortcuts { gap: 7px; } .home .pbf-hero__shortcuts a { min-height: 40px; } }
