/* Homepage sections below the hero. Uses the brand tokens from style.css; one sans-serif family throughout. */
.hm { font-family: var(--font-body); color: var(--text-primary); }
.hm-section { padding: 36px 0; }
.hm-alt { background: var(--background-secondary); border-block: 1px solid var(--border-default); }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.hm h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-heading); margin: 0; }
.hm h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--text-heading); margin: 0; }
.hm a { text-decoration: none; }
.hm-more, .hm-links a { font-size: .9rem; font-weight: 700; color: var(--brand-link); }
.hm-more:hover, .hm-links a:hover { color: var(--brand-primary-hover); text-decoration: underline; }
.hm-links { display: flex; gap: 16px; flex-wrap: wrap; }
.hm-meta { font-size: .82rem; color: var(--text-muted); margin: 2px 0 0; }
.hm-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-link); margin: 0 0 6px; }
.hm-note { font-size: .8rem; color: var(--text-muted); margin: 14px 0 0; }

.hm-grid { display: grid; gap: 16px; }
.hm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hm-card, .hm-project, .hm-guide { background: var(--surface-primary); border: 1px solid var(--border-default); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hm-card:hover, .hm-project:hover, .hm-guide:hover { border-color: var(--brand-primary); box-shadow: 0 6px 18px rgba(11, 31, 51, .08); }
.hm-card-img { display: block; aspect-ratio: 16 / 9; background: var(--background-secondary); }
.hm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-card-body { padding: 14px 16px 16px; }
.hm-card h3 a { color: inherit; }
.hm-card h3 a:hover { color: var(--brand-link); }

.hm-project { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.hm-project-top { display: flex; gap: 12px; align-items: center; }
.hm-logo { position: relative; flex: none; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--border-default); background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 1.1rem; color: var(--brand-secondary); }
.hm-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.hm-project-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.hm-status, .hm-sponsored { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-right: 6px; }
.hm-status { background: #ECFDF5; color: #047857; }
.hm-sponsored { background: var(--brand-primary-light); color: var(--brand-primary-hover); border: 1px solid #F0C3A6; }
.hm-cta { font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 8px; background: var(--brand-primary); color: #fff; }
.hm-cta:hover { background: var(--brand-primary-hover); color: #fff; }

.hm-guide { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hm-guide h3 { font-size: 1.12rem; }
.hm-guide h3 a { color: inherit; }
.hm-guide p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-secondary); }
.hm-preview { padding-top: 10px; border-top: 1px solid var(--border-default); }
.hm-preview span { font-weight: 700; color: var(--text-heading); }
.hm-preview a { color: var(--brand-link); }
.hm-guide .hm-more { margin-top: auto; }

.hm-news { background: var(--brand-secondary); padding: 30px 0; }
.hm-news-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: center; }
.hm-news h2 { color: #fff; }
.hm-news-copy p { margin: 8px 0 0; color: #CBD5E1; font-size: .98rem; line-height: 1.6; }
.hm-news-form { background: #fff; border-radius: 12px; padding: 18px; color: var(--text-primary); }

.hm-rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.hm-rank li { border-bottom: 1px solid var(--border-default); }
.hm-rank a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; color: inherit; }
.hm-rank a:hover strong { color: var(--brand-link); }
.hm-rank-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-secondary); color: #fff; font-size: .82rem; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.hm-rank-t strong { display: block; font-size: .98rem; line-height: 1.4; color: var(--text-heading); font-weight: 700; }
.hm-rank-t small { display: block; margin-top: 3px; font-size: .78rem; color: var(--text-muted); }

@media (max-width: 960px) {
    .hm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-news-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hm-section { padding: 26px 0; }
    .hm h2 { font-size: 1.3rem; }
    .hm-grid--3, .hm-rank { grid-template-columns: 1fr; }
    .hm-card:has(.hm-card-img) { display: grid; grid-template-columns: 112px 1fr; }
    .hm-card-img { aspect-ratio: auto; height: 100%; min-height: 96px; }
    .hm-card-body { padding: 10px 12px; }
}

/* Shorter homepage: four-up rows, a compact trending list, an airdrop row and a one-line list-your-project band. */
.hm-tight { padding: 24px 0; }
.hm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-drops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-drops a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px; background: var(--surface-primary); border: 1px solid var(--border-default); border-radius: 12px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.hm-drops a:hover { border-color: var(--brand-primary); box-shadow: 0 6px 18px rgba(11, 31, 51, .08); }
.hm-drops strong { font-size: .98rem; line-height: 1.35; color: var(--text-heading); }
.hm-drops .hm-meta { margin: 0; }
.hm-drops .hm-status { align-self: flex-start; margin: 2px 0 0; }
.hm-drop-note { font-size: .8rem; font-weight: 700; color: var(--brand-primary-hover); }
.hm-listbox { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 26px 30px; background: var(--brand-primary-light); border: 2px solid var(--brand-primary); border-radius: 16px; box-shadow: 0 10px 28px rgba(198, 93, 40, .16); position: relative; }
.hm-listbox::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 6px; border-radius: 0 6px 6px 0; background: var(--brand-primary); }
.hm-listbox-copy { max-width: 720px; padding-left: 8px; }
.hm-listbox h2 { font-size: 1.6rem; }
.hm-listbox p { margin: 6px 0 0; font-size: 1.08rem; line-height: 1.55; font-weight: 600; color: var(--text-secondary); }
.hm-listbox-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.hm-cta--lg { font-size: 1rem; padding: 13px 26px; border-radius: 10px; box-shadow: 0 6px 16px rgba(198, 93, 40, .3); }
.hm-news { padding: 22px 0; }
@media (max-width: 960px) {
    .hm-grid--4, .hm-drops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hm-tight { padding: 20px 0; }
    .hm-grid--4 { grid-template-columns: 1fr; }
    .hm-swipe { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .hm-swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
    .hm-swipe:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 2px; }
    .hm-drops { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hm-drops a { padding: 12px; }
    .hm-listbox { padding: 22px 20px; }
    .hm-listbox-copy { padding-left: 6px; }
    .hm-listbox h2 { font-size: 1.35rem; }
    .hm-listbox-actions { width: 100%; }
    .hm-cta--lg { flex: 1 1 100%; text-align: center; }
}

/* "Your project here" slot in the featured row. */
.hm-project--cta { background: var(--brand-primary-light); border: 2px dashed var(--brand-primary); }
.hm-project--cta:hover { border-style: solid; }
.hm-logo--plus { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-size: 1.5rem; }
.hm-cta-text { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text-secondary); }

/* Sponsored tag: small, pinned to the card's top-right corner. */
.hm-project { position: relative; }
.hm-sponsored--corner { position: absolute; top: 0; right: 0; margin: 0; padding: 2px 8px; font-size: .6rem; letter-spacing: .05em; line-height: 1.5; border-width: 0 0 1px 1px; border-style: solid; border-color: #F0C3A6; border-radius: 0 11px 0 8px; }
.hm-sponsored--corner + .hm-project-top { margin-top: 6px; }
