@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/sora-latin.woff2') format('woff2'); }
@import url('/repairs.css');
:root {
  --ink: #171916;
  --muted: #72766e;
  --paper: #f4f2ec;
  --surface: #fff;
  --line: rgba(23, 25, 22, 0.12);
  --lime: #b7d932;
  --sage: #dce4d2;
  --lilac: #ded4ea;
  --shadow: 0 22px 70px rgba(29, 31, 27, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input, select, textarea, kbd { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; }

img { display: block; width: 100%; }

body.panel-open { overflow: hidden; }

.feed-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: min(1440px, calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 236, 0.88);
  backdrop-filter: blur(18px);
}

.feed-header.has-desktop-nav {
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  column-gap: clamp(18px, 3vw, 42px);
}

.feed-brand {
  justify-self: start;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.feed-brand span { color: #9dbb1d; }

.feed-heading { text-align: center; }
.has-desktop-nav .feed-heading { min-width: 0; text-align: left; }

.feed-heading > span {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.feed-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.feed-account {
  justify-self: end;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 25, 22, 0.2);
  border-radius: 50%;
  background: var(--lilac);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.feed-account.account-icon-control {
  position: relative;
  width: 42px;
  height: 42px;
  background: #f8f8f4;
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.feed-account.account-icon-control:hover,
.feed-account.account-icon-control[aria-expanded="true"] {
  border-color: rgba(23, 25, 22, 0.42);
  background: #fff;
}

.feed-account.account-icon-control::after {
  content: "⌄";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.feed-account.account-icon-control[aria-expanded="true"]::after { transform: rotate(180deg); }

.feed-account.account-icon-control svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-account.is-guest {
  width: auto;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.78rem;
}

.feed-session-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% - 4px);
  right: 0;
  width: min(318px, calc(100vw - 28px));
  padding: 9px;
  border: 1px solid rgba(23, 25, 22, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 52px rgba(23, 25, 22, 0.14);
  text-align: left;
  backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: account-menu-in 160ms ease-out both;
}

.feed-session-menu[hidden] { display: none !important; }

.session-menu-person {
  padding: 10px 10px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.session-menu-person > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4d5;
}

.session-menu-person svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
}

.session-menu-person strong,
.session-menu-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-menu-person strong { font-size: 0.84rem; }
.session-menu-person small { margin-top: 4px; color: var(--muted); font-size: 0.7rem; }
.feed-session-menu nav { padding: 6px 0; }

.feed-session-menu nav a {
  min-height: 56px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  text-decoration: none;
}

.feed-session-menu nav a:hover { background: var(--paper); }
.feed-session-menu nav a > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0efe9;
  font-size: 0.92rem;
  font-weight: 800;
}

.feed-session-menu nav strong,
.feed-session-menu nav small { display: block; }
.feed-session-menu nav strong { font-size: 0.78rem; }
.feed-session-menu nav small { margin-top: 3px; color: var(--muted); font-size: 0.67rem; }

.session-logout {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: transparent;
  color: #9c332d;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.session-logout:hover { background: #fff4f1; }

@keyframes account-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-desktop-nav a {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.feed-desktop-nav a:hover,
.feed-desktop-nav a.is-active {
  background: rgba(23, 25, 22, 0.065);
  color: var(--ink);
}

.feed-main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 70px;
}

.feed-intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.feed-kicker {
  margin: 0 0 10px;
  color: #67801a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feed-intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.7vw, 6.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.feed-intro h1 em {
  color: #69745d;
  font-style: normal;
  font-weight: 300;
}

.feed-search-prompt {
  width: min(570px, 100%);
  min-height: 56px;
  margin-top: 28px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 9px 30px rgba(30, 32, 29, 0.06);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.feed-search-prompt > span:nth-child(2) {
  overflow: hidden;
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-search-prompt kbd {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f5f1;
  font-size: 0.75rem;
}

.feed-search-icon,
.search-glyph {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.feed-search-icon::after,
.search-glyph::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 6px;
  height: 1.8px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(46deg);
}

.topic-row {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-row::-webkit-scrollbar { display: none; }

.discover-onboard-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52631f;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.discover-onboard-link span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.topic-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.topic-row button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.masonry-feed {
  --feed-columns: 5;
  display: grid;
  grid-template-columns: repeat(var(--feed-columns), minmax(0, 1fr));
  align-items: start;
  gap: 24px 18px;
  width: 100%;
  max-width: calc(var(--visible-cards, 5) * 420px + (var(--visible-cards, 5) - 1) * 18px);
  margin-inline: auto;
}

.masonry-feed.is-masonry {
  grid-auto-rows: 8px;
  row-gap: 0;
  column-gap: 18px;
}

.feed-card {
  min-width: 0;
  margin: 0;
  width: 100%;
}

.feed-image {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background: #dddcd5;
}

.feed-image.tall { aspect-ratio: 4 / 5.8; }
.feed-image.short { aspect-ratio: 4 / 4.35; }

.feed-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(13, 15, 12, 0.32));
  pointer-events: none;
}

.feed-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.feed-image:hover img { transform: scale(1.025); }

.image-source {
  position: absolute;
  z-index: 1;
  left: 12px;
  max-width: calc(100% - 24px);
  bottom: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(16, 18, 15, 0.66);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.product-source {
  background: var(--lime);
  color: var(--ink);
}

.feed-card-copy { padding: 12px 5px 0; }

.feed-card-copy > a { text-decoration: none; }

.feed-card-copy h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.42;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.feed-card-copy > p {
  margin: 6px 0 11px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.feed-tag {
  display: inline-block;
  margin-bottom: 7px;
  color: #6a7a28;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feed-author {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  text-decoration: none;
}

.feed-author > span {
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 800;
}

.feed-author strong {
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.2;
}

.feed-author small {
  color: var(--muted);
  font-size: 0.75rem;
}

.feed-card[hidden] { display: none; }

.feed-end {
  margin: 54px 0 0;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.feed-empty-state {
  position: relative;
  width: min(920px, 100%);
  min-height: 248px;
  margin: 46px auto 0;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(23, 25, 22, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 93% 12%, rgba(183, 217, 50, 0.34), transparent 31%),
    radial-gradient(circle at 10% 92%, rgba(222, 212, 234, 0.5), transparent 34%),
    #fff;
  color: var(--ink);
  text-align: left;
}

.feed-empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 25, 22, 0.16) 0.8px, transparent 0.8px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
}

.feed-empty-icon {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 25, 22, 0.12);
  border-radius: 28px;
  background: var(--ink);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.04);
  transform: rotate(-3deg);
}

.feed-empty-icon i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
}
.feed-empty-icon i:nth-child(1) { transform: translate(-20px, -18px); }
.feed-empty-icon i:nth-child(2) { transform: translate(18px, -14px); }
.feed-empty-icon i:nth-child(3) { transform: translate(-12px, 19px); }
.feed-empty-icon i:nth-child(4) { width: 11px; height: 11px; transform: translate(22px, 22px); background: var(--lilac); }

.feed-empty-copy,
.feed-empty-actions { position: relative; z-index: 1; }
.feed-empty-copy small { color: #71821d; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; }
.feed-empty-copy h2 { margin: 7px 0 8px; font-size: clamp(1.45rem, 2.5vw, 2.15rem); letter-spacing: -0.045em; }
.feed-empty-copy p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

.feed-empty-actions {
  min-width: 174px;
  display: grid;
  gap: 9px;
}

.feed-empty-actions a {
  min-height: 45px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 25, 22, 0.2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.feed-empty-actions .empty-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.feed-empty-state.is-error .feed-empty-icon { background: #7f302c; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(430px, calc(100% - 28px));
  min-height: 68px;
  padding: 7px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(24, 26, 23, 0.94);
  box-shadow: 0 16px 44px rgba(16, 18, 15, 0.3);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.bottom-nav > a,
.bottom-nav > button {
  min-width: 0;
  padding: 6px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #b8bcb3;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav > .is-active {
  background: rgba(183, 217, 50, 0.13);
  color: var(--lime);
}

.bottom-nav small {
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-glyph {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.home-glyph::before {
  content: "";
  position: absolute;
  inset: 5px 3px 2px;
  border: 1.7px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.home-glyph::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-top: 1.7px solid currentColor;
  border-left: 1.7px solid currentColor;
  transform: rotate(45deg);
}

.profile-glyph::before,
.profile-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1.7px solid currentColor;
  transform: translateX(-50%);
}

.profile-glyph::before {
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.profile-glyph::after {
  bottom: 0;
  width: 15px;
  height: 8px;
  border-radius: 9px 9px 4px 4px;
}

.menu-glyph::before,
.menu-glyph::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 14px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
}

.menu-glyph::before { top: 5px; box-shadow: 0 7px 0 currentColor; }

.feed-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(14, 16, 13, 0.5);
  backdrop-filter: blur(5px);
}

.search-sheet,
.menu-sheet {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 30px));
  overflow: auto;
  padding: 10px 28px max(28px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.menu-sheet { width: min(590px, 100%); }

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: #cccbc5;
}

.search-sheet header,
.menu-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.search-sheet header p,
.menu-sheet header p {
  margin: 0 0 4px;
  color: #718322;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-sheet h2,
.menu-sheet h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  letter-spacing: -0.05em;
}

.search-sheet header button,
.menu-sheet header button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 1.15rem;
  cursor: pointer;
}

.universal-search {
  min-height: 58px;
  margin-top: 24px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #a8aaa3;
  border-radius: 17px;
  background: white;
}

.universal-search:focus-within {
  border-color: #7c9125;
  box-shadow: 0 0 0 3px rgba(183, 217, 50, 0.22);
}

.universal-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.search-hint {
  margin: 10px 2px 16px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.search-results {
  display: grid;
  gap: 7px;
}

.search-results > a {
  min-height: 66px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-decoration: none;
}

.result-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 800;
}

.result-avatar-dark { color: white; }
.result-avatar-lilac { background: var(--lilac); color: var(--ink); }
.result-avatar-lime { background: var(--lime); color: var(--ink); }

.search-results strong,
.search-results small { display: block; }
.search-results strong { margin-bottom: 4px; font-size: 0.875rem; overflow-wrap: anywhere; }
.search-results small { color: var(--muted); font-size: 0.75rem; }
.search-results i { color: var(--muted); font-style: normal; }

.search-empty {
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.menu-profile {
  margin: 22px 0 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-radius: 17px;
  background: var(--lilac);
}

.menu-profile > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  font-size: 0.875rem;
  font-weight: 700;
}

.menu-profile strong,
.menu-profile small { display: block; }
.menu-profile strong { font-size: 0.875rem; overflow-wrap: anywhere; }
.menu-profile small { margin-top: 3px; color: #605c67; font-size: 0.75rem; }

.menu-profile a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.workspace-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workspace-menu > a {
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  text-decoration: none;
}

.workspace-menu > a > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0efe9;
  font-size: 0.875rem;
}

.workspace-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-menu strong,
.workspace-menu small { display: block; }
.workspace-menu strong { font-size: 0.875rem; overflow-wrap: anywhere; }
.workspace-menu small { margin-top: 4px; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.workspace-menu i { color: #6e8029; font-size: 0.75rem; font-style: normal; font-weight: 800; }

.menu-sheet footer a {
  margin-top: 13px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  border-radius: 15px;
  background: var(--ink);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

[hidden] { display: none !important; }

@media (min-width: 681px) {
  .feed-intro {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
  }

  .feed-intro h1 {
    max-width: 850px;
    margin-inline: auto;
    font-size: clamp(2.75rem, 4.7vw, 4.75rem);
    line-height: 1.04;
  }

  .feed-intro h1 em { display: block; }

  .feed-search-prompt { margin-inline: auto; }
  .topic-row { justify-content: center; flex-wrap: wrap; }
}

@media (min-width: 1051px) and (max-width: 1250px) {
  .masonry-feed { --feed-columns: 4; }
}

@media (max-width: 680px) {
  .feed-header {
    width: calc(100% - 28px);
    height: 66px;
    grid-template-columns: 1fr 1fr;
  }

  .feed-header.has-desktop-nav { grid-template-columns: 1fr 1fr; column-gap: 0; }

  .feed-heading,
  .feed-desktop-nav { display: none; }

  .feed-main {
    width: calc(100% - 24px);
    padding: 20px 0 122px;
  }

  .feed-session-menu { top: calc(100% - 1px); right: 0; }

  .feed-empty-state {
    min-height: 0;
    margin-top: 28px;
    padding: 27px 22px 23px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    border-radius: 24px;
  }

  .feed-empty-icon { width: 64px; height: 64px; border-radius: 19px; }
  .feed-empty-icon i { width: 10px; height: 10px; }
  .feed-empty-icon i:nth-child(1) { transform: translate(-11px, -10px); }
  .feed-empty-icon i:nth-child(2) { transform: translate(10px, -8px); }
  .feed-empty-icon i:nth-child(3) { transform: translate(-7px, 11px); }
  .feed-empty-icon i:nth-child(4) { width: 7px; height: 7px; transform: translate(13px, 13px); }
  .feed-empty-copy h2 { font-size: 1.34rem; }
  .feed-empty-copy p { font-size: 0.78rem; line-height: 1.55; }
  .feed-empty-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
  .feed-empty-actions a { min-height: 42px; padding-inline: 12px; font-size: 0.7rem; }

  .bottom-nav { display: grid; }

  .feed-intro { margin-bottom: 22px; }

  .feed-intro h1 {
    max-width: 340px;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height:1.08;
    letter-spacing:-.035em;
  }
  .feed-intro h1 em { display:block; }

  .feed-search-prompt { margin-top: 22px; }
  .feed-search-prompt kbd { display: none; }

  .masonry-feed {
    --feed-columns: 2;
    column-gap: 10px;
  }

  .feed-image { border-radius: 16px; }
  .feed-card-copy { padding: 9px 3px 0; }
  .feed-card-copy h2 { font-size: 0.875rem; }
  .feed-card-copy > p { display: none; }
  .feed-author { margin-top: 9px; }
  .feed-author small { display: none; }
  .image-source { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 7px; font-size: 0.75rem; }

  .search-sheet,
  .menu-sheet {
    padding: 10px 15px max(22px, env(safe-area-inset-bottom));
  }

  .workspace-menu { grid-template-columns: 1fr; }
}

@media (min-width: 681px) and (max-width: 1050px) {
  .masonry-feed { --feed-columns: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed-image img { transition: none; }
}

/* Discover hero: desktop visual stays beside the search content and is hidden on smaller screens. */
.discover-visual { display: none; }
@media (min-width: 900px) {
  .feed-intro:has(.discover-visual) {
    max-width: 1180px;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    align-items: center;
    gap: clamp(42px, 6vw, 78px);
    margin-inline: auto;
    text-align: left;
  }
  .feed-intro:has(.discover-visual) h1 {
    max-width: 650px;
    margin-inline: 0;
    font-size: clamp(3.4rem, 5.4vw, 5.65rem);
    line-height: .98;
  }
  .feed-intro:has(.discover-visual) h1 em { display: block; }
  .feed-intro:has(.discover-visual) .feed-search-prompt { margin-inline: 0; }
  .feed-intro:has(.discover-visual) .topic-row { justify-content: flex-start; }
  .discover-visual {
    position: relative;
    min-height: 350px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: radial-gradient(circle at 18% 18%, #e8ffad, transparent 38%), radial-gradient(circle at 82% 80%, #e5d9f3, transparent 38%), #fcfbf7;
  }
  .discover-core {
    position: relative;
    z-index: 3;
    width: 146px;
    height: 146px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: white;
  }
  .discover-core i { width: 32px; height: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(45deg); }
  .discover-core i b { display: block; border-radius: 50%; background: var(--lime); }
  .discover-core strong { margin-top: 10px; font-size: 1rem; }
  .discover-core small { margin-top: 4px; color: #c9ccc5; font-size: .6rem; }
  .discover-orbit { position: absolute; border: 1px solid rgba(23,25,22,.13); border-radius: 50%; }
  .orbit-one { width: 280px; height: 280px; animation: discover-spin 20s linear infinite; }
  .orbit-two { width: 205px; height: 205px; animation: discover-spin 14s linear infinite reverse; }
  .discover-node { position: absolute; z-index: 4; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.94); font-size: .72rem; font-weight: 700; }
  .node-person { left: 8%; top: 18%; }
  .node-ideas { right: 7%; top: 24%; }
  .node-products { left: 13%; bottom: 15%; }
  .node-business { right: 8%; bottom: 12%; }
  .discover-bubble { position: absolute; border-radius: 50%; background: var(--lime); animation: discover-drift 6s ease-in-out infinite alternate; }
  .bubble-one { width: 24px; height: 24px; left: 16%; top: 45%; }
  .bubble-two { width: 17px; height: 17px; right: 18%; bottom: 35%; background: var(--purple); animation-delay: -2s; }
  .bubble-three { width: 11px; height: 11px; right: 28%; top: 15%; background: #f3ae68; animation-delay: -4s; }
  @keyframes discover-spin { to { transform: rotate(360deg); } }
  @keyframes discover-drift { to { transform: translate(30px,-22px); } }
}
@media (prefers-reduced-motion: reduce) {
  .discover-orbit,.discover-bubble { animation: none; }
}
