@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #f7fafc;
  --bg-soft: #eaf6ff;
  --card: #ffffff;
  --card-soft: #f5fbff;
  --mint: #7fe7e1;
  --blue: #58afff;
  --blue-strong: #3b82f6;
  --orange: #ff9f2d;
  --text: #1f2a44;
  --muted: #5b6b84;
  --line: rgba(88, 137, 191, 0.14);
  --line-strong: rgba(59, 130, 246, 0.22);
  --shadow: 0 18px 44px rgba(108, 139, 176, 0.12);
  --shadow-soft: 0 10px 24px rgba(108, 139, 176, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: 1240px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(88, 175, 255, 0.14), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(127, 231, 225, 0.18), transparent 20%),
    radial-gradient(circle at 18% 72%, rgba(255, 159, 45, 0.12), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 44%, #f4f9fd 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 10px;
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 252, 0.84);
}

.homepage-canvas {
  min-height: calc(100vh - 180px);
}

.hero-section {
  padding: 18px 0 34px;
}

.hero-topics-wrap {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(88, 175, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 246, 255, 0.92));
  box-shadow: var(--shadow);
}

.hero-topics-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-topics-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.hero-topics-nav::-webkit-scrollbar {
  display: none;
}

.trending-topics-section {
  padding: 0 0 36px;
}

.top-stories-section {
  padding: 0 0 48px;
}

.latest-news-section {
  padding: 0 0 56px;
}

.community-voices-section {
  padding: 0 0 64px;
}

.newsletter-section {
  padding: 0 0 72px;
}

.newsletter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at top right, rgba(127, 231, 225, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.9));
  box-shadow: var(--shadow);
}

.newsletter-copy {
  display: grid;
  gap: 8px;
}

.newsletter-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 520px);
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(88, 137, 191, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(247, 250, 252, 0.92);
  color: var(--text);
  font: inherit;
  outline: 0;
}

.newsletter-form input::placeholder {
  color: var(--muted);
}

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

.community-voice-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at top right, rgba(88, 175, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.community-voice-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.community-author {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.latest-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 320px;
  gap: 22px;
  align-items: start;
}

.latest-news-main,
.latest-news-sidebar,
.latest-news-list,
.sidebar-list {
  display: grid;
  gap: 18px;
}

.latest-news-item {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.latest-news-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(108, 139, 176, 0.16);
}

.latest-news-item a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.latest-news-thumb {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.08), rgba(127, 231, 225, 0.12));
}

.latest-news-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}

.latest-news-topic {
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.latest-news-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.latest-news-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.latest-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-list a {
  padding: 12px 0;
  border-top: 1px solid rgba(88, 137, 191, 0.12);
  color: var(--text);
  font-weight: 600;
}

.sidebar-list a:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.news-grid-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.news-grid-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(108, 139, 176, 0.16);
}

.news-grid-card a {
  display: block;
}

.news-grid-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.08), rgba(127, 231, 225, 0.12));
}

.news-grid-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.news-grid-head,
.news-grid-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-grid-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.news-grid-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-grid-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
}

.save-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(88, 137, 191, 0.12);
  border-radius: 50%;
  background: rgba(247, 250, 252, 0.92);
  color: var(--muted);
}

.save-chip svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.trending-topics-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.trending-topics-row::-webkit-scrollbar {
  display: none;
}

.trending-topic-card {
  display: flex;
  min-height: 116px;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(127, 231, 225, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.88));
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.trending-topic-card:nth-child(3n + 1) {
  background:
    radial-gradient(circle at top right, rgba(88, 175, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.88));
}

.trending-topic-card:nth-child(3n + 2) {
  background:
    radial-gradient(circle at top right, rgba(127, 231, 225, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 255, 253, 0.88));
}

.trending-topic-card:nth-child(3n) {
  background:
    radial-gradient(circle at top right, rgba(255, 159, 45, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 238, 0.9));
}

.trending-topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(108, 139, 176, 0.16);
}

.topic-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-layout,
.hero-side-stack {
  display: grid;
  gap: 20px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.95fr);
  align-items: start;
}

.hero-story,
.mini-story-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-story {
  overflow: hidden;
}

.hero-story-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.08), rgba(127, 231, 225, 0.12));
}

.hero-story-body {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.hero-story h1,
.mini-story-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-story h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1;
  text-wrap: balance;
}

.hero-summary,
.mini-story-card p,
.hero-meta,
.story-meta {
  color: var(--muted);
}

.hero-summary,
.mini-story-card p {
  margin: 0;
  line-height: 1.75;
  font-size: 1rem;
}

.hero-meta,
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.mini-story-card {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mini-story-card:hover,
.hero-story:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(108, 139, 176, 0.16);
}

.mini-story-card a {
  display: block;
  padding: 20px;
}

.mini-story-copy {
  display: grid;
  gap: 12px;
}

.mini-story-card h3 {
  font-size: 1.3rem;
  line-height: 1.12;
}

.header-bar,
.header-actions,
.hero-actions,
.hero-pills,
.topic-pills,
.story-meta,
.post-card-footer,
.footer-bar,
.voice-bubbles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-bar,
.post-card-footer,
.footer-bar {
  justify-content: space-between;
}

.header-bar {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.12) 0%, rgba(127, 231, 225, 0.16) 100%);
  box-shadow: 0 10px 24px rgba(88, 175, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.topic-chip {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid rgba(88, 137, 191, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  appearance: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.topic-chip:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--line-strong);
}

.topic-chip.active {
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.14), rgba(127, 231, 225, 0.16));
  color: var(--text);
  border-color: rgba(88, 175, 255, 0.18);
}

.topic-pills a,
.hero-pills span {
  padding: 10px 14px;
  border: 1px solid rgba(88, 137, 191, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.topic-pills a:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
  height: 56px;
  border: 1px solid rgba(88, 137, 191, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(247, 250, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.header-search input::placeholder {
  color: var(--muted);
}

.search-icon,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  flex: 0 0 auto;
  color: var(--muted);
}

.search-icon svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-utilities,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-utilities {
  justify-content: flex-end;
}

.header-link {
  padding: 10px 8px;
  color: var(--text);
  white-space: nowrap;
}

.header-join {
  white-space: nowrap;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(88, 137, 191, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.button-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button-link {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--orange), #ffb85b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 159, 45, 0.24);
}

.button-link.soft {
  background: linear-gradient(135deg, var(--blue), #89c5ff);
  box-shadow: 0 12px 24px rgba(88, 175, 255, 0.18);
}

.button-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.text-link {
  padding: 10px 0;
  color: var(--blue-strong);
}

.hero {
  padding: 14px 0 28px;
}

.hero-grid,
.homepage-layout,
.posts-grid,
.sidebar-stack,
.latest-feed,
.pick-list,
.community-card-list,
.plain-list {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.45fr) 330px;
}

.hero-panel,
.sidebar-card,
.post-card,
.feed-card,
.article-shell {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(88, 175, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(127, 231, 225, 0.2), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.hero-copy {
  display: grid;
  align-content: start;
}

.hero-mascot {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(88, 137, 191, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-mascot img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eyebrow,
.mini-label,
.card-tag,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  padding: 8px 12px;
  background: rgba(88, 175, 255, 0.12);
  color: var(--blue-strong);
}

.mini-label,
.card-tag {
  padding: 7px 10px;
  background: rgba(127, 231, 225, 0.2);
  color: #11837d;
}

.card-tag.warm {
  background: rgba(255, 159, 45, 0.16);
  color: #d87b0b;
}

.card-tag.mint {
  background: rgba(127, 231, 225, 0.22);
  color: #11837d;
}

.hero h1,
.hero-story-card h2,
.section-head h2,
.post-card h3,
.feed-card h3,
.sidebar-card h3,
.article-head h1,
.article-content h2,
.article-content h3,
.sidebar-card strong {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero h1,
.article-head h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 0.96;
  text-wrap: balance;
}

.lead,
.section-copy,
.hero-story-card p,
.post-card p,
.feed-card p,
.sidebar-card p,
.community-item span,
.pick-list span,
.footer-bar p,
.article-content,
.article-meta,
.post-source,
.post-card time {
  color: var(--muted);
}

.lead,
.post-card p,
.feed-card p,
.sidebar-card p,
.section-copy,
.community-item span,
.pick-list span,
.article-content {
  line-height: 1.75;
}

.lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-pills {
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-story-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(88, 137, 191, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-story-card h2 {
  font-size: 1.8rem;
  line-height: 1.08;
}

.story-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-stack,
.right-sidebar {
  align-content: start;
}

.sidebar-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  opacity: 0.55;
}

.warm-card {
  background: linear-gradient(180deg, #fff8ee 0%, #ffffff 100%);
}

.warm-card::before {
  background: linear-gradient(90deg, var(--orange), #ffc66a);
}

.mint-card {
  background: linear-gradient(180deg, #f1fffd 0%, #ffffff 100%);
}

.plain-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.plain-list li {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 18px 0 26px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-copy {
  max-width: 56ch;
  margin-top: 10px;
}

.topic-pills {
  flex-wrap: wrap;
}

.homepage-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.main-column {
  display: grid;
  gap: 22px;
}

.posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.top-stories-grid .featured-card {
  grid-column: span 1;
}

.post-card,
.feed-card {
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.post-card:hover,
.feed-card:hover,
.sidebar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 175, 255, 0.28);
  box-shadow: 0 22px 46px rgba(108, 139, 176, 0.16);
}

.post-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.08), rgba(127, 231, 225, 0.12));
}

.post-card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.post-card h3 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.post-card-footer {
  flex-wrap: wrap;
  margin-top: 8px;
}

.read-link {
  color: var(--blue-strong);
  font-weight: 700;
}

.latest-feed {
  gap: 16px;
}

.feed-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 18px;
}

.feed-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.feed-card h3 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.feed-thumb {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.08), rgba(127, 231, 225, 0.12));
}

.pick-list {
  margin-top: 14px;
}

.pick-list a,
.community-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(88, 137, 191, 0.12);
}

.pick-list a:first-child,
.community-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.voice-bubbles {
  flex-wrap: wrap;
  margin-top: 14px;
}

.voice-bubbles span {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(88, 175, 255, 0.1);
  color: var(--blue-strong);
  font-size: 0.92rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 8px 0 52px;
}

.article-shell {
  padding: 30px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.hero-image,
.section-image {
  margin: 26px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.hero-image figcaption,
.section-image figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-content h2,
.faq h2 {
  margin-top: 28px;
  font-size: 2rem;
}

.article-content h3 {
  margin-top: 24px;
  font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content table {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.faq-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.site-footer {
  padding: 6px 0 42px;
}

.footer-bar {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-column a,
.social-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-bottom,
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(88, 137, 191, 0.12);
}

.social-links {
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1120px) {
  .hero-grid,
  .homepage-layout,
  .article-layout,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-bar,
  .footer-bar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-bar {
    grid-template-columns: 1fr;
  }

  .header-search,
  .header-utilities {
    width: 100%;
  }

  .header-utilities {
    justify-content: space-between;
  }

  .feed-card a {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .trending-topics-row {
    grid-auto-columns: minmax(200px, 1fr);
  }

  .top-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-news-layout {
    grid-template-columns: 1fr;
  }

  .community-voices-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-card,
  .newsletter-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-form {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    padding-top: 12px;
  }

  .top-stories-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-item a {
    grid-template-columns: 1fr;
  }

  .header-utilities,
  .auth-actions {
    flex-wrap: wrap;
  }

  .hero-panel,
  .sidebar-card,
  .post-card-body,
  .feed-card a,
  .article-shell {
    padding: 18px;
  }

  .hero h1,
  .article-head h1 {
    font-size: 2.2rem;
  }

  .post-card h3,
  .feed-card h3 {
    font-size: 1.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
