/* Warm Brown / Beige / Light-Brown Social Event Platform Palette */
.home-body {
  --bg-parchment: #f5efe6;
  --bg-cream: #fffcf7;
  --bg-oat: #efe6d8;
  --bg-latte: #e5d6c2;
  --bg-toast: #d8c2a6;
  --border-warm: #e2d5c3;
  --border-hover: #c9b194;
  --espresso: #5c3b28;
  --espresso-deep: #3d2518;
  --espresso-hover: #492d1e;
  --caramel: #a9784c;
  --caramel-soft: #c99d70;
  --ink-roast: #2f1f16;
  --cocoa-muted: #765e4d;

  background:
    radial-gradient(ellipse 90% 420px at 50% -80px, #fdf9f2 0%, transparent 72%),
    var(--bg-parchment);
  color: var(--ink-roast);
}

/* Sticky frosted top bar */
.home-mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 252, 247, 0.9);
  border-bottom: 1px solid var(--border-warm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-mast-inner {
  height: 70px;
  display: grid;
  grid-template-columns: auto minmax(200px, 440px) auto;
  align-items: center;
  gap: 20px;
}
.home-mast .brand {
  color: var(--espresso-deep);
}
.home-mast .brand-mark {
  background: linear-gradient(145deg, #6e4833, var(--espresso));
  --brand-fill: #64412e;
  box-shadow: 0 2px 8px rgba(74, 48, 34, 0.22);
}

/* Search bar */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-oat);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--cocoa-muted);
  transition: background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.search:hover {
  background: #ebe0cf;
}
.search:focus-within {
  background: var(--bg-cream);
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(169, 120, 76, 0.18);
  color: var(--espresso-deep);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-roast);
}
.search input::placeholder {
  color: var(--cocoa-muted);
}
.search .ico {
  width: 17px;
  height: 17px;
  flex: none;
}

.mast-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--bg-cream);
  color: var(--espresso-deep);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 170px;
  transition: background 0.15s, border-color 0.15s;
}
.account-pill:hover {
  background: var(--bg-oat);
  border-color: var(--border-hover);
}
.account-pill.is-signed-in {
  padding-left: 6px;
}
.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c69a6c, #8c5c3d);
  color: #fffaf2;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  flex: none;
}
#homeAccountLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.create-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, #6a4530, var(--espresso));
  box-shadow: 0 3px 12px rgba(74, 48, 34, 0.22);
}
.create-btn:hover {
  background: var(--espresso-hover);
  transform: translateY(-1px);
}
.create-btn .ico {
  width: 16px;
  height: 16px;
}

/* 3-Column Social Platform Shell */
.home-shell {
  width: min(1240px, calc(100% - 64px));
  padding-block: 24px 56px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 292px;
  gap: 26px;
  align-items: start;
}

.rail-left,
.rail-right {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.rail-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(66, 42, 27, 0.04);
}

/* Left Navigation Rail */
.rail-nav {
  padding: 10px;
  display: grid;
  gap: 4px;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--cocoa-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.rail-link .ico {
  width: 18px;
  height: 18px;
}
.rail-link:hover {
  background: var(--bg-oat);
  color: var(--espresso-deep);
}
.rail-link[aria-current="page"] {
  background: linear-gradient(135deg, #efe3d2, #e7d6be);
  color: var(--espresso-deep);
}
.rail-link[aria-current="page"] .ico {
  color: var(--espresso);
  stroke-width: 2;
}
.rail-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  color: var(--espresso);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.rail-link[aria-current="page"] .rail-badge {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff9f0;
}
.rail-divider {
  border: 0;
  border-top: 1px solid #ede2d3;
  margin: 6px 8px;
}

/* Quick Host Card */
.host-card {
  background: linear-gradient(160deg, #f3e9db 0%, #eadbc7 100%);
  border-color: #decab1;
  padding: 18px;
}
.host-eyebrow {
  color: var(--caramel);
  margin-bottom: 6px;
}
.host-card h2 {
  font: 400 25px/1.08 var(--serif);
  letter-spacing: -0.5px;
  color: var(--espresso-deep);
}
.host-card p:not(.overline) {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--cocoa-muted);
}
.quick-occasions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}
.quick-occasions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-cream);
  border: 1px solid #decbb3;
  color: var(--espresso-deep);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.quick-occasions a:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff9f0;
  transform: translateY(-1px);
}

/* Center Feed Column */
.feed-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.mobile-search-wrap {
  display: none;
}

/* Event Stories Strip */
.stories-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 12px rgba(66, 42, 27, 0.04);
  overflow: hidden;
}
.stories-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.stories-head .overline {
  color: var(--caramel);
}
.stories-sub {
  font-size: 12px;
  color: var(--cocoa-muted);
}
.stories-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 2px;
}
.stories-rail::-webkit-scrollbar {
  display: none;
}
.story-item {
  width: 78px;
  min-width: 0;
  flex: 0 0 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink-roast);
  transition: transform 0.16s;
}
.story-item:hover {
  transform: translateY(-2px);
}
.story-ring {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d7af83 0%, #a57348 52%, #5c3b28 100%);
  display: grid;
  place-items: center;
  flex: none;
}
.story-ring.is-host {
  background: transparent;
  border: 2px dashed var(--caramel);
  padding: 3px;
}
.story-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg-cream);
  background: var(--bg-oat);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-thumb.is-host-fill {
  background: linear-gradient(145deg, #f3e8d9, #e6d4bc);
  color: var(--espresso);
}
.story-thumb.is-private-fill {
  background: linear-gradient(145deg, #5e3d2b, #3e2619);
  color: #f4dec0;
}
.story-thumb .ico {
  width: 22px;
  height: 22px;
}
.story-lock {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--espresso);
  color: #fff6e9;
  border: 2px solid var(--bg-cream);
  display: grid;
  place-items: center;
}
.story-lock .ico {
  width: 11px;
  height: 11px;
}
.story-label {
  width: 100%;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-roast);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Feed Bar + Layout Switch */
.feed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding-top: 2px;
}
.feed-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feed-sort {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-warm);
  background: var(--bg-cream);
  color: var(--espresso-deep);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.feed-sort:hover {
  border-color: var(--border-hover);
  background: var(--bg-oat);
}
.feed-heading {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
}
.feed-heading h1 {
  font: 400 clamp(32px, 3.4vw, 44px)/1.04 var(--serif);
  letter-spacing: -1.4px;
  color: var(--espresso-deep);
}
.feed-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cocoa-muted);
  background: var(--bg-oat);
  padding: 3px 10px;
  border-radius: 999px;
}
.feed-count:empty {
  display: none;
}

.layout-switch {
  display: inline-flex;
  background: var(--bg-oat);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 3px;
  flex: none;
}
.layout-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cocoa-muted);
  padding: 6px 11px;
  min-height: 32px;
  font-size: 12.5px;
  font-weight: 650;
  transition: background 0.15s, color 0.15s;
}
.layout-switch .ico {
  width: 14px;
  height: 14px;
}
.layout-switch [aria-pressed="true"] {
  background: var(--bg-cream);
  color: var(--espresso-deep);
  box-shadow: 0 1px 4px rgba(74, 48, 34, 0.14);
}

/* Occasion Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 1px;
  margin-top: -4px;
}
.filters::-webkit-scrollbar {
  display: none;
}
.filter {
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  background: var(--bg-cream);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  color: var(--cocoa-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.filter:hover:not([aria-pressed="true"]) {
  background: var(--bg-oat);
  border-color: var(--border-hover);
  color: var(--espresso-deep);
}
.filter[aria-pressed="true"] {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fffaf2;
  box-shadow: 0 2px 8px rgba(92, 59, 40, 0.22);
}

/* Social Event Stream & Grid */
.feed-stream {
  display: grid;
  gap: 20px;
}
.feed-stream.is-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-post {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(74, 48, 34, 0.055);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.event-post:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 28px rgba(74, 48, 34, 0.095);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px 12px;
}
.event-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.03em;
  background: #ead9c5;
  color: #5a3a28;
}
.event-avatar[data-tone="1"] {
  background: #e4d1b8;
  color: #4f311f;
}
.event-avatar[data-tone="2"] {
  background: #efe2cf;
  color: #6b4630;
}
.event-avatar[data-tone="3"] {
  background: #dcc3a5;
  color: #422719;
}
.event-avatar.is-private {
  background: linear-gradient(145deg, #5f3e2c, #42291b);
  color: #f6e1c4;
}
.event-avatar .ico {
  width: 18px;
  height: 18px;
}

.post-identity {
  flex: 1;
  min-width: 0;
}
.post-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.post-title {
  font: 400 clamp(22px, 2.2vw, 28px)/1.08 var(--serif);
  letter-spacing: -0.6px;
  color: var(--espresso-deep);
  overflow-wrap: break-word;
  word-break: normal;
}
.post-title a {
  text-decoration: none;
}
.post-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  background: var(--bg-oat);
  color: var(--espresso);
}
.post-pill .ico {
  width: 11px;
  height: 11px;
}
.post-pill.is-joined {
  background: #e4cfb4;
  color: #4a2d1d;
}
.post-pill.is-private {
  background: #4e3324;
  color: #f7e4c8;
}
.post-date {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--cocoa-muted);
}
.post-date .ico {
  width: 14px;
  height: 14px;
}

.post-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.icon-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cocoa-muted);
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-action:hover {
  background: var(--bg-oat);
  color: var(--espresso-deep);
}
.icon-action .ico {
  width: 17px;
  height: 17px;
}
.icon-action[aria-pressed="true"] {
  background: #efe1ce;
  border-color: #dec7a9;
  color: var(--espresso);
}
.icon-action[aria-pressed="true"] .ico {
  fill: currentColor;
}

.post-caption {
  padding: 0 16px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #543f31;
}

/* Media Stage */
.post-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-latte);
  text-decoration: none;
}
.post-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-media:hover > img {
  transform: scale(1.025);
}
.post-media.has-previews {
  display: grid;
  grid-template-columns: 65% 1fr;
  gap: 3px;
  background: var(--bg-cream);
}
.post-media.has-previews > img,
.post-previews {
  min-width: 0;
  min-height: 0;
}
.post-previews {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 3px;
  overflow: hidden;
}
.preview-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-latte);
}
.preview-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-media:hover .preview-cell img {
  transform: scale(1.03);
}
.preview-more {
  position: absolute;
  inset: 0;
  background: rgba(54, 33, 21, 0.56);
  color: #fff9f0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(2px);
}

/* Warm Brown Private Event Cover */
.private-cover {
  background:
    radial-gradient(ellipse at 75% 18%, rgba(212, 169, 120, 0.28), transparent 60%),
    linear-gradient(135deg, #4b3021 0%, #684430 56%, #7d553d 100%);
  display: grid;
  place-items: center;
  color: #f8ead6;
}
.private-art-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.private-art {
  position: relative;
  width: 112px;
  height: 76px;
  border: 1px solid rgba(244, 222, 192, 0.55);
  border-radius: 10px;
  display: grid;
  place-items: center;
  transform: rotate(5deg);
  background: rgba(94, 61, 42, 0.88);
  box-shadow: 0 8px 22px rgba(32, 18, 10, 0.3);
}
.private-art::before,
.private-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 222, 192, 0.35);
  border-radius: 10px;
  z-index: -1;
}
.private-art::before {
  transform: translate(-11px, 4px) rotate(-13deg);
  background: rgba(74, 47, 32, 0.55);
}
.private-art::after {
  transform: translate(8px, 5px) rotate(8deg);
  background: rgba(114, 75, 52, 0.45);
}
.private-art .ico {
  width: 26px;
  height: 26px;
  transform: rotate(-5deg);
}
.private-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f5dfc2;
  background: rgba(44, 27, 18, 0.48);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 222, 192, 0.28);
}

/* Post Footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #f0e6d8;
  margin-top: auto;
}
.post-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--cocoa-muted);
}
.stat .ico {
  width: 15px;
  height: 15px;
  color: var(--caramel);
}
.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-oat);
  color: var(--espresso-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.open-pill .ico {
  width: 14px;
  height: 14px;
}
.open-pill:hover {
  background: var(--espresso);
  color: #fffaf2;
}

/* Grid layout tweaks */
.feed-stream.is-grid .post-header {
  padding: 13px 14px 10px;
  gap: 9px;
  align-items: flex-start;
}
.feed-stream.is-grid .event-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}
.feed-stream.is-grid .post-title {
  font-size: 20px;
  line-height: 1.15;
}
.feed-stream.is-grid .post-date {
  font-size: 12px;
}
.feed-stream.is-grid .post-caption {
  padding: 0 14px 10px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-stream.is-grid .post-media {
  aspect-ratio: 1.5;
}
.feed-stream.is-grid .post-footer {
  padding: 10px 14px;
}
.feed-stream.is-grid .open-pill {
  padding: 6px 11px;
  font-size: 12px;
}

/* Right Discovery Rail */
.pulse-card {
  background: linear-gradient(160deg, #f3e9db 0%, #ece0cf 100%);
  border-color: #decab1;
  padding: 18px;
}
.pulse-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 0 4px rgba(169, 120, 76, 0.22);
}
.pulse-head h2 {
  font: 650 15px/1.2 var(--sans);
  color: var(--espresso-deep);
}
.pulse-copy {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cocoa-muted);
}
.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.pulse-metric {
  background: var(--bg-cream);
  border: 1px solid #e2d1bc;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: grid;
  gap: 2px;
}
.pulse-metric strong {
  font: 600 20px/1.1 var(--serif);
  color: var(--espresso-deep);
  font-variant-numeric: tabular-nums;
}
.pulse-metric span {
  font-size: 11px;
  font-weight: 600;
  color: var(--cocoa-muted);
}

/* Right Rail Template Spotlight Card */
.template-card {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #543727 0%, #3b2418 100%);
  color: #fff8ed;
  box-shadow: 0 8px 24px rgba(59, 36, 24, 0.22);
}
.template-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #6c4d3a;
  overflow: hidden;
}
.template-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}
.slide-control {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(42, 26, 17, 0.82);
  border: 1px solid rgba(255, 244, 229, 0.28);
  border-radius: 999px;
  padding: 2px 4px;
  color: #fff7eb;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}
.slide-control button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.slide-control button:hover {
  background: rgba(255, 255, 255, 0.16);
}
.slide-control .ico {
  width: 14px;
  height: 14px;
}
.reverse {
  transform: rotate(180deg);
}
.template-copy {
  padding: 16px 18px 18px;
}
.template-eyebrow {
  color: #e4c39d;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.template-eyebrow span {
  width: 20px;
  height: 1px;
  background: #c79f74;
}
.template-copy h2 {
  font: 400 31px/1.02 var(--serif);
  letter-spacing: -0.9px;
  margin: 10px 0 8px;
}
.template-copy h2 em {
  font-weight: 400;
  color: #f3d2a4;
}
.template-copy p {
  font-size: 13px;
  line-height: 1.5;
  color: #ebddd0;
}
.template-copy .button {
  width: 100%;
  margin-top: 14px;
  min-height: 40px;
  border-radius: 11px;
  background: #fbf1e2;
  color: var(--espresso-deep);
  font-size: 13.5px;
}
.template-copy .button:hover {
  background: #ffffff;
}

.rail-footer {
  display: grid;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--cocoa-muted);
}
.rail-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rail-footer-top span {
  font: 18px var(--serif);
  color: var(--espresso-deep);
}
.rail-footer-top a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 600;
  color: var(--espresso);
}
.rail-footer-top a:hover {
  text-decoration: underline;
}
.rail-footer .ico {
  width: 14px;
  height: 14px;
}
.rail-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
}
.rail-legal-links a {
  color: var(--cocoa-muted);
  text-decoration: none;
  font-weight: 550;
}
.rail-legal-links a:hover {
  color: var(--espresso);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rail-footer-copy {
  font-size: 11.5px;
  color: var(--cocoa-muted);
  opacity: 0.85;
}
.feed-mobile-footer {
  display: none;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-warm);
  color: var(--cocoa-muted);
  font-size: 12.5px;
  gap: 8px;
}
.feed-mobile-footer-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.feed-mobile-footer-top strong {
  font: 600 18px var(--serif);
  color: var(--espresso-deep);
}

/* Loading Skeletons & Empty State */
.loading-post {
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ede4d6 25%, #f5eee3 50%, #ede4d6 75%);
  background-size: 200% 100%;
  animation: warm-shimmer 1.6s ease-in-out infinite;
  border: 1px solid var(--border-warm);
}
@keyframes warm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.feed-empty {
  border: 1px dashed var(--border-hover);
  border-radius: 20px;
  padding: 40px 22px;
  text-align: center;
  background: var(--bg-cream);
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--bg-oat);
  color: var(--espresso);
  display: grid;
  place-items: center;
}
.empty-icon .ico {
  width: 24px;
  height: 24px;
}
.feed-empty h2 {
  font: 400 30px/1.1 var(--serif);
  color: var(--espresso-deep);
  margin-bottom: 8px;
}
.feed-empty p {
  color: var(--cocoa-muted);
  font-size: 14px;
  max-width: 340px;
  margin: 0 auto 18px;
}

/* Warm mobile nav overrides */
.home-body .phone-nav {
  background: rgba(255, 252, 247, 0.94);
  border-top-color: var(--border-warm);
}
.home-body .phone-nav .nav-item {
  color: var(--cocoa-muted);
}
.home-body .phone-nav .nav-item[aria-current="page"] {
  color: var(--espresso);
}

/* Responsive: Tablet (2-column) */
@media (max-width: 1120px) {
  .home-shell {
    width: min(980px, calc(100% - 48px));
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
  }
  .rail-right {
    display: none;
  }
  .feed-mobile-footer {
    display: grid;
  }
}

/* Responsive: Small tablet & Mobile (1-column social stream) */
@media (max-width: 780px) {
  .home-mast-inner {
    height: 62px;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .home-search {
    display: none;
  }
  .mobile-search-wrap {
    display: block;
  }
  .home-shell {
    width: min(640px, calc(100% - 32px));
    grid-template-columns: 1fr;
    padding-block: 14px 28px;
    gap: 16px;
  }
  .rail-left {
    display: none;
  }
  .home-body .phone-nav {
    display: flex;
  }
  .home-body.has-phone-nav {
    padding-bottom: 68px;
  }
  .feed-stream.is-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 520px) {
  .home-body {
    overflow-x: clip;
  }
  .home-mast-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }
  .home-mast .brand {
    font-size: 20px;
    gap: 7px;
  }
  .mast-actions {
    gap: 6px;
    min-width: 0;
  }
  .home-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
  }
  .account-pill,
  .acct-trigger {
    min-height: 36px;
    padding: 4px 10px;
    font-size: 12.5px;
    max-width: 110px;
  }
  .acct-trigger {
    padding-left: 5px;
  }
  .create-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .create-btn span {
    display: none;
  }
  .stories-card {
    padding: 12px 12px 13px;
    border-radius: 16px;
  }
  .story-item {
    flex-basis: 66px;
  }
  .story-ring {
    width: 58px;
    height: 58px;
  }
  .feed-heading h1 {
    font-size: 32px;
  }
  .layout-switch button span {
    display: none;
  }
  .event-post {
    border-radius: 16px;
  }
  .post-header {
    padding: 12px 13px 10px;
    gap: 10px;
  }
  .event-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .post-title {
    font-size: 23px;
  }
  .post-caption {
    padding: 0 13px 10px;
    font-size: 13.5px;
  }
  .post-footer {
    padding: 10px 13px;
  }
  .open-pill {
    padding: 6px 11px;
    font-size: 12.5px;
  }
}
