/* Style4 homepage: mint navigation, photographic hero and softly raised content. */
body.mobile-ui .home-ref {
  --home-gutter: 16px;
  --home-banner-height: 176px;
  --home-paper: var(--holyuni-canvas);
  --home-shadow: 0 4px 16px rgba(7,88,62,.06);
  --home-ink: #17232d;
  --home-secondary: #66737c;
  --font: var(--ui-font-family);
  font-family: var(--ui-font-family);
  color: var(--home-ink);
}
body.mobile-ui .home-ref.app { background: var(--home-paper); padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

/* Compact identity and a single campus control. */
body.mobile-ui .home-ref .hero-head { padding: calc(8px + env(safe-area-inset-top)) var(--home-gutter) 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 0; border: 0; background: transparent; }
body.mobile-ui .home-ref .topline { min-height: 36px; height: auto; gap: 8px; align-items: center; }
body.mobile-ui .home-ref .hu-brand { min-width: 0; gap: 6px; padding: 0; align-items: flex-start; }
body.mobile-ui .home-ref .hu-brand-mark, body.mobile-ui .home-ref .hu-brand-mark img { width: 22px; height: 22px; min-width: 22px; border-radius: 0; background: transparent; }
body.mobile-ui .home-ref .hu-brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.mobile-ui .home-ref .hu-brand-name { display: block; font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -.9px; }
body.mobile-ui .home-ref .hu-brand-name span { color: var(--holyuni-forest); }
body.mobile-ui .home-ref .hu-slogan { display: block; margin: 0; padding: 0; font-size: 9px; line-height: 1.2; font-weight: 400; letter-spacing: -.2px; color: var(--home-secondary); white-space: nowrap; }
body.mobile-ui .home-ref .hu-actions { gap: 8px; }
body.mobile-ui .home-ref .hu-actions .round { width: 36px; min-width: 36px; height: 36px; border: 0; background: var(--holyuni-surface); box-shadow: var(--home-shadow); }
body.mobile-ui .home-ref .hu-actions .icon { width: 20px; height: 20px; stroke-width: 1.8; }
body.mobile-ui .home-ref .hu-actions .holo-ai-launch img { width: 24px; height: 24px; }
body.mobile-ui .home-ref .holo-ai-launch::after { min-width: 18px; height: 10px; bottom: 1px; right: 3px; padding: 0 2px; font-size: 7px; line-height: 10px; border-radius: 4px; }
body.mobile-ui .home-ref .notification-badge { top: 0; right: -1px; }
body.mobile-ui .home-ref .hu-campus { min-height: 28px; height: auto; margin: 0 0 4px; gap: 0; }
body.mobile-ui .home-ref .school.hu-campus-current { flex: 0 1 auto; min-height: 28px; max-width: 100%; width: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; gap: 5px; color: var(--home-ink); }
body.mobile-ui .home-ref .hu-campus-current strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: -.1px; }
body.mobile-ui .home-ref .hu-campus-current .icon { width: 15px; height: 15px; color: var(--holyuni-mint); }
body.mobile-ui .home-ref .hu-campus-current::after { content: ""; width: 5px; height: 5px; flex: 0 0 auto; margin: -3px 0 0 3px; border: solid var(--home-secondary); border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); }

/* Restore the campus photograph, branded headline and distinct white CTA. */
body.mobile-ui .home-ref .promo-wrap { margin: 0; }
body.mobile-ui .home-ref .promo { min-height: var(--home-banner-height); height: auto; display: flex; align-items: center; padding: 24px 16px; border: 0; border-radius: 20px; background: var(--holyuni-ink); }
body.mobile-ui .home-ref .promo:not(.partner-banner):not(.founder-banner) { background-image: linear-gradient(90deg,rgba(0,0,0,.8),rgba(0,0,0,.36) 58%,rgba(0,0,0,.02)),url('../campus-life-hero-v2.jpg'); background-size: cover; background-position: center 52%; }
body.mobile-ui .home-ref .promo-content { position: relative; width: 100%; z-index: 2; }
body.mobile-ui .home-ref .promo small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.mobile-ui .home-ref .promo h1 { max-width: calc(100% - 68px); margin: 0 0 5px; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.55px; color: white; text-wrap: balance; }
body.mobile-ui .home-ref .promo h1 .hero-accent { color: var(--holyuni-mint); }
body.mobile-ui .home-ref .promo p { max-width: calc(100% - 72px); margin: 0; font-size: 11px; line-height: 1.4; font-weight: 400; color: rgba(255,255,255,.78); text-wrap: pretty; }
body.mobile-ui .home-ref .banner-cta { position: relative; z-index: 6; display: inline-flex; align-items: center; min-height: 32px; margin: 8px 0 0; padding: 0 12px; border: 0; border-radius: var(--holyuni-radius-pill); background: var(--holyuni-surface); color: var(--holyuni-ink); font-size: 12px; font-weight: 600; }
body.mobile-ui .home-ref .promo.partner-banner { background: var(--holyuni-forest); }
body.mobile-ui .home-ref .promo.founder-banner { background: #29261f; }
body.mobile-ui .home-ref .promo.partner-banner .promo-content, body.mobile-ui .home-ref .promo.founder-banner .promo-content { width: 100%; }
body.mobile-ui .home-ref .halo-banner-visual { width: 88px; height: 88px; right: 8px; top: auto; bottom: 16px; }
body.mobile-ui .home-ref .halo-banner-visual::before { display: none; }
body.mobile-ui .home-ref .halo-banner-visual img { width: 88px; height: 88px; filter: none; animation: none; }
body.mobile-ui .home-ref .banner-dots { left: auto; right: 5px; bottom: 0; gap: 0; }
body.mobile-ui .home-ref .banner-dot, body.mobile-ui .home-ref .banner-dot.active { width: 24px; min-width: 24px; height: 28px; margin: 0; background: transparent !important; border-radius: 6px; }
body.mobile-ui .home-ref .banner-dot::before { width: 4px; height: 4px; }
body.mobile-ui .home-ref .banner-dot.active::before { width: 12px; background: white; }

/* Three distinct levels: mint highlights, category tiles and filter pills. */
body.mobile-ui .home-ref .home-hot-entry { width: calc(100% - 2 * var(--home-gutter)); min-height: 48px; height: auto; margin: 8px var(--home-gutter) 0; padding: 8px; gap: 8px; border: 0; border-radius: var(--holyuni-radius-card); box-shadow: none; background: var(--holyuni-mint-light); }
body.mobile-ui .home-ref .home-hot-entry > i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--holyuni-radius-control); background: var(--holyuni-mint); color: var(--holyuni-surface); font-size: 0; }
body.mobile-ui .home-ref .home-hot-entry > i .icon { width: 20px; height: 20px; stroke-width: 1.8; }
body.mobile-ui .home-ref .home-hot-copy { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
body.mobile-ui .home-ref .home-hot-copy strong { flex: 0 0 auto; font-size: 12px; line-height: 1.4; font-weight: 650; color: var(--holyuni-forest); }
body.mobile-ui .home-ref .home-hot-copy span { display: block; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--home-secondary); font-size: 11px; line-height: 1.4; }
body.mobile-ui .home-ref .home-hot-entry > b { color: var(--holyuni-forest); font-size: 16px; font-weight: 400; }
body.mobile-ui .home-ref .primary-tabs { padding: 0 var(--home-gutter) 4px; gap: 8px; border: 0; background: var(--home-paper); backdrop-filter: none; }
body.mobile-ui .home-ref .primary-tab { position: relative; min-height: 44px; height: auto; padding: 2px 0 5px; gap: 3px; border: 0; border-radius: var(--holyuni-radius-control); color: var(--home-ink); font-size: 11px; line-height: 1.2; font-weight: 500; background: var(--ui-subtle); }
body.mobile-ui .home-ref .primary-tab .icon { width: 20px; height: 20px; stroke-width: 1.7; }
body.mobile-ui .home-ref .primary-tab.active { color: var(--holyuni-forest); background: var(--holyuni-mint-light); font-size: 11px; font-weight: 600; }
body.mobile-ui .home-ref .primary-tab::after { content: ""; position: absolute; height: 2px; width: 16px; left: calc(50% - 8px); bottom: 0; border-radius: 2px; background: transparent; }
body.mobile-ui .home-ref .primary-tab.active::after { display: none; }
body.mobile-ui .home-ref .filters { min-height: 32px; gap: var(--filter-gap,12px) !important; padding: 0 var(--home-gutter) !important; margin: 0 0 12px; border: 0; background: transparent; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; scroll-padding-inline: var(--home-gutter); }
body.mobile-ui .home-ref .filters .chip { flex: 0 0 auto; position: relative; height: 32px !important; min-height: 32px !important; padding: 0 8px !important; border: 0; border-radius: 999px !important; font-size: 11px !important; font-weight: 400; color: var(--home-secondary); background: var(--ui-subtle); white-space: nowrap; }
body.mobile-ui .home-ref .filters .chip::before { display: none; }
body.mobile-ui .home-ref .filters .chip.active { background: var(--holyuni-mint-light); color: var(--holyuni-forest); font-weight: 600; box-shadow: inset 0 0 0 1px var(--holyuni-mint); }
body.mobile-ui .home-ref .filters #filterCount { font-size: 11px !important; }
body.mobile-ui .home-ref .filters #filterCount:empty { display: none; }

/* Content carries the page: deliberate spacing, larger headlines, quieter metadata. */
body.mobile-ui .home-ref .feed { padding: 0 var(--home-gutter); gap: 16px; scroll-margin-top: 64px; }
body.mobile-ui .home-ref .feed > .card { padding: 16px; border: 0; border-radius: 16px; background: var(--holyuni-surface); box-shadow: var(--home-shadow); }
body.mobile-ui .home-ref .feed > .card::before { display: none; }
body.mobile-ui .home-ref .feed > .card > .author { min-height: 44px; gap: 12px; }
body.mobile-ui .home-ref .feed > .card .avatar { width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; }
body.mobile-ui .home-ref .feed > .card .who strong { font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.15px; }
body.mobile-ui .home-ref .feed > .card .who > span { margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--home-secondary); }
body.mobile-ui .home-ref .feed > .card .who strong.campus-status { display: block; position: relative; width: fit-content; max-width: 100%; padding-right: 18px; white-space: nowrap; }
body.mobile-ui .home-ref .feed > .card .who strong.campus-status::after { position: absolute; right: 0; top: 2px; }
body.mobile-ui .home-ref .feed > .card .who strong.campus-status.is-unverified { padding-right: 66px; }
body.mobile-ui .home-ref .feed > .card .who strong.campus-status.is-verified::after { content: "✓"; min-height: 13px; width: 13px; height: 13px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: var(--holyuni-mint); color: white; font-size: 9px; box-shadow: none; }
body.mobile-ui .home-ref .feed > .card .who strong.campus-status.is-unverified::after { min-height: 16px; padding: 1px 4px; font-size: 10px; font-weight: 400; box-shadow: none; }
body.mobile-ui .home-ref .feed > .card > .author > .more { flex: 0 0 36px; width: 36px; height: 40px; min-height: 40px; margin: 0 -8px 0 0; align-self: flex-start; background: transparent; }
body.mobile-ui .home-ref .feed > .card > .author > .more .icon { width: 18px; height: 18px; stroke-width: 1.8; color: var(--home-secondary); }
body.mobile-ui .home-ref .feed > .card > .meta { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
body.mobile-ui .home-ref .feed > .card .tag, body.mobile-ui .home-ref .feed > .card .halo-lit { height: 22px; min-height: 22px; padding: 0 6px; font-size: 11px !important; font-weight: 500; line-height: 1.2; border: 0; border-radius: 6px; background: transparent; color: var(--home-secondary); }
body.mobile-ui .home-ref .feed > .card > .meta > .tag:first-child { background: var(--holyuni-mint-light); color: var(--holyuni-forest); }
body.mobile-ui .home-ref .feed > .card .halo-lit { position: relative; padding-left: 17px; background: transparent; color: var(--home-secondary); }
body.mobile-ui .home-ref .feed > .card .halo-lit::before { left: 2px; top: 8px; width: 9px; height: 4px; border-width: 1.5px; }
body.mobile-ui .home-ref .feed > .card > h2 { margin: 8px 0 4px; font-size: 16px; line-height: 1.4; letter-spacing: -.3px; font-weight: 650; color: var(--home-ink); }
body.mobile-ui .home-ref .feed > .card > p { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 400; color: var(--home-secondary); }
body.mobile-ui .home-ref .feed > .card > .media-grid { margin-top: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: none; gap: 8px; border-radius: 0; overflow: visible; }
body.mobile-ui .home-ref .feed > .card > .media-grid img { grid-row: auto; height: auto; aspect-ratio: 1.2; border-radius: 8px; object-fit: cover; }
body.mobile-ui .home-ref .feed > .card > .market-media { margin-top: 12px; border-radius: 10px; box-shadow: none; }
body.mobile-ui .home-ref .feed > .card .actions { margin-top: 16px; padding-top: 0; gap: 2px; border: 0; }
body.mobile-ui .home-ref .feed > .card .action { min-width: 40px; height: 40px; padding: 0 5px; gap: 5px; font-size: 12px; color: var(--home-secondary); border-radius: 8px; }
body.mobile-ui .home-ref .feed > .card .action span { font-size: 12px; font-weight: 400; }
body.mobile-ui .home-ref .feed > .card .action .icon { width: 19px; height: 19px; stroke-width: 1.7; }
body.mobile-ui .home-ref .feed > .card .action.like.liked { color: var(--holyuni-notification-count); }
body.mobile-ui .home-ref .feed > .card .action.save { min-width: 40px; margin-left: auto; }
body.mobile-ui .home-ref .feed > .card .action.save.saved { color: var(--holyuni-forest); }
body.mobile-ui .home-ref .feed > .card .primary-mini { min-width: 52px; padding-inline: 10px; }

/* Keep the shared nav identity; lighten its surface on the homepage. */
.bottom-nav.home-ref-nav { font-family: var(--ui-font-family); background: var(--holyuni-surface); }
.bottom-nav.home-ref-nav .nav-btn { color: #758087; }
.bottom-nav.home-ref-nav .nav-btn.active { color: var(--holyuni-mint); }
.bottom-nav.home-ref-nav .create { background: var(--holyuni-forest); color: white; }
body.mobile-ui:not(:has(.page-layer.open)) .bottom-nav.home-ref-nav { border-radius: 24px 24px 0 0; box-shadow: 0 4px 20px rgba(24,46,52,.08); }
body.mobile-ui:not(:has(.page-layer.open)) .bottom-nav.home-ref-nav .create { width: 52px; height: 52px; flex-basis: 52px; margin-top: -8px; box-shadow: 0 0 0 4px var(--holyuni-mint-light); }
body.mobile-ui .home-ref button { transition: background-color .18s ease, color .18s ease; -webkit-tap-highlight-color: transparent; }
body.mobile-ui .home-ref button:focus-visible, body.mobile-ui .home-ref .card:focus-visible { outline: 2px solid var(--holyuni-forest); outline-offset: 2px; }
body.mobile-ui .home-ref .banner-cta:focus-visible, body.mobile-ui .home-ref .banner-dot:focus-visible { outline-color: white; }
@media (hover:hover) {
  body.mobile-ui .home-ref :is(.primary-tab,.filters .chip,.action,.hu-actions .round,.hu-campus-current):hover { background: var(--holyuni-mint-light); }
  body.mobile-ui .home-ref .home-hot-entry:hover { color: var(--home-ink); }
  body.mobile-ui .home-ref .banner-cta:hover { background: var(--holyuni-mint-light); }
}
@media (min-width:700px) {
  body.mobile-ui .home-ref { --home-gutter: 20px; }
  body.mobile-ui .home-ref.app { border-radius: 20px; box-shadow: 0 8px 40px rgba(20,45,35,.04); }
  body.mobile-ui .home-ref .hero-head { padding-top: 16px; }
  body.mobile-ui .home-ref { --home-banner-height: 192px; }
}
@media (max-width:360px) {
  body.mobile-ui .home-ref { --home-gutter: 12px; --home-banner-height: 160px; }
  body.mobile-ui .home-ref .hu-brand-name { font-size: 21px; }
  body.mobile-ui .home-ref .hu-brand { gap: 4px; }
  body.mobile-ui .home-ref .hu-actions { gap: 0; }
  body.mobile-ui .home-ref .feed > .card { padding: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  body.mobile-ui .home-ref *, body.mobile-ui .home-ref *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The home feed ends with its content; omit the manual load-more control. */
body.mobile-ui .home-ref #loadMore { display: none; }
