/* Sidebar + feed page styles */
.sidebar .sticky { position: sticky; top: 72px; }
/* Make title responsive across screen sizes */
.sidebar h1 { margin: 8px 0 6px; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.sidebar .amp { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.sidebar .sub { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.sidebar hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.sidebar h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.filters { display: grid; gap: 8px; }
.filters button { text-align: left; border: 1px solid var(--border); background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.filters button:hover { background: #f3f4f6; }
.filters .active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* Keep selected style on hover */
.filters .active:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
/* Keyboard focus */
.filters button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Ensure contrast in dark theme */
:root[data-theme="dark"] .filters button:hover { background: #111827; }
:root[data-theme="dark"] .filters .active:hover { background: var(--brand); }

/* Responsive grid: 3 → 2 → 1 columns */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1100px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .feed { grid-template-columns: 1fr; } }

@media (max-width: 1000px) { 
  .sidebar .sticky { position: static; } 
}
