/* Feed hierarchy and controls. Scoped to the home page except for navigation. */
.feed-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px}
.feed-heading h1 {font-size:clamp(27px,5vw,37px);line-height:1.13;letter-spacing:-.045em;margin:0}
.feed-heading .btn {flex-shrink:0;min-height:42px}
.feed-surface .stories-card {border-radius:21px}
.feed-surface .tabs.feed-tabs {gap:5px;padding:5px;margin:0 0 14px;background:var(--card);border:1px solid var(--border);border-radius:16px}
.feed-surface .feed-tabs a {display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;min-width:0;margin:0;padding:7px 8px;border:0;border-radius:11px;white-space:normal;line-height:1.2}
.feed-surface .feed-tabs a.active {background:var(--accent-soft,var(--hover));color:var(--text);font-weight:800}
.feed-surface .feed-tabs .i {width:17px;height:17px;flex-shrink:0}
.feed-surface .card.hero {padding:30px 23px;background:linear-gradient(145deg,var(--card),var(--bg));border-radius:23px}
.feed-surface .hero h1 {font-size:clamp(29px,6vw,42px);line-height:1.12;letter-spacing:-.05em}
.feed-surface .hero p {max-width:40ch;margin:9px auto 18px;color:var(--text-2)}
.feed-surface .hero .row {flex-wrap:wrap;justify-content:center}
.feed-surface .hero img {width:62px;height:62px;border-radius:17px;margin-bottom:13px}
.feed-surface .card.post {padding-block:17px}
.feed-surface .post-actions .act {min-height:38px}
.mobile-nav [aria-current="page"]:not([data-mmenu-open]) {font-weight:850}
.feed-heading a:focus-visible,.feed-tabs a:focus-visible,.mobile-nav a:focus-visible {outline:2px solid var(--accent,var(--link));outline-offset:-2px}
@media(max-width:900px) {
  .feed-heading {margin:6px 0 12px}
  .feed-surface .post-actions .act {min-height:41px}
  .feed-surface .feed-tabs a {font-size:13px}
  .mobile-nav a,.mobile-nav button {min-width:0}
}
@media(max-width:355px) {
  .feed-surface .feed-tabs a {gap:4px;font-size:12px;padding-inline:4px}
  .feed-surface .feed-tabs .i {width:14px;height:14px}
}

/* Softer default corners. Respect the user's appearance preference. */
:root:not(.p-corners-soft,.p-corners-sharp) {
  --radius: 26px;
  --radius-sm: 18px;
}
:root:not(.p-corners-soft,.p-corners-sharp) :is(
  .card.post, .card.stories-card, .card.hero, .modal, .auth-card, .composer,
  .feed-surface .card.hero, .feed-surface .stories-card
) { border-radius: var(--radius); }
:root:not(.p-corners-soft,.p-corners-sharp) :is(
  .btn, .nav-item, .menu, .icon-btn, input, textarea, select,
  .post .att, .post .post-media img, .post .media-grid,
  .profile-btns > .btn, .profile-btns > .menu-wrap > .btn
) { border-radius: var(--radius-sm); }
:root:not(.p-corners-soft,.p-corners-sharp) .feed-surface .tabs.feed-tabs {
  border-radius: 22px;
}
:root:not(.p-corners-soft,.p-corners-sharp) .feed-surface .feed-tabs a {
  border-radius: 17px;
}
@media (max-width: 900px) {
  :root:not(.p-corners-soft,.p-corners-sharp) .mobile-nav { border-radius: 30px; }
  :root:not(.p-corners-soft,.p-corners-sharp) .mobile-nav .fab { border-radius: 20px; }
}
