/* Public site — editorial theme */
:root {
  --brand: #9f1239;
  --brand-dark: #881337;
  --brand-soft: #fff1f2;
  --brand-border: #fecdd3;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --line-soft: #f0eeec;
  --surface: #ffffff;
  --bg: #f7f6f4;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(28, 25, 23, 0.16);
  --font-ui: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif Bengali', 'Hind Siliguri', Georgia, serif;
  --bs-body-font-family: var(--font-ui);
  --bs-link-color-rgb: 159, 18, 57;
  --bs-link-hover-color-rgb: 136, 19, 55;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.04rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-border);
  color: var(--ink);
}

a {
  color: var(--brand);
}

.container {
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.min-w-0 {
  min-width: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.header-search {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 340px;
}

.header-search .bi-search {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f5f5f4;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.header-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-border);
  box-shadow: 0 0 0 4px rgba(159, 18, 57, 0.08);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-left: auto;
}

.icon-btn:hover {
  background: #f5f5f4;
}

.mobile-search {
  border-top: 1px solid var(--line-soft);
}

.mobile-search .header-search {
  max-width: none;
  margin: 0.7rem 0;
}

/* Primary top menu (মুখ পৃষ্ঠ | জনপ্রিয় গল্প | জনপ্রিয় লেখক | গল্প লিখে পাঠান) */
.primary-nav {
  background: #edf7ed;
  border-top: 1px solid #dcecdc;
  border-bottom: 1px solid #dcecdc;
}

.primary-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.primary-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #15803d;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.primary-nav-link:hover {
  background: #dcfce7;
  color: #14532d;
}

.primary-nav-link.active {
  background: #d8ecd8;
  color: #14532d;
}

/* Category navigation */
.cat-nav {
  border-top: 1px solid var(--line-soft);
  padding: 0.25rem 0;
}

.cat-nav-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

.cat-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cat-nav-link::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.15s ease;
}

.cat-nav-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.cat-nav-link.active {
  color: var(--brand);
  font-weight: 600;
}

.cat-nav-link.active::after {
  background: var(--brand);
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-weight: 500;
  border-radius: 10px;
  padding: 0.5rem 1.15rem;
}

.btn-ghost:hover {
  border-color: #d6d3d1;
  color: var(--ink);
  background: #fafaf9;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--brand);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.page-intro h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.page-intro p {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* ---------- Story cards ---------- */
.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.story-card:hover {
  border-color: #d6d3d1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.story-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f4;
}

.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.1rem;
}

.story-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  min-width: 0;
}

.cat-label {
  position: relative;
  z-index: 2;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-label:hover {
  text-decoration: underline;
  color: var(--brand-dark);
}

.featured-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a16207;
  background: #fef9c3;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
}

.story-card-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.story-card-title a {
  color: inherit;
  text-decoration: none;
}

.story-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-card:hover .story-card-title a {
  color: var(--brand);
}

.story-card-excerpt {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.story-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--muted);
}

.story-meta-row > span,
.story-meta-row > time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.story-meta-row .author {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-meta-row .ms-auto {
  margin-left: auto;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Lead (featured) story */
.story-card.lead {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(159, 18, 57, 0.07), transparent 60%),
    var(--surface);
}

.story-card.lead .story-card-body {
  padding: 1.75rem 1.9rem 1.5rem;
}

.story-card.lead .story-card-title {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.story-card.lead .story-card-excerpt {
  font-size: 1.02rem;
  color: var(--ink-2);
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

/* Compact story (stacked list) */
.story-card.compact .story-card-body {
  padding: 0.95rem 1.1rem;
}

.story-card.compact .story-card-title {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.story-card.compact .story-meta-row {
  border-top: 0;
  padding-top: 0.2rem;
}

.featured-stack {
  display: grid;
  gap: 0.85rem;
  height: 100%;
  grid-auto-rows: 1fr;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 140px;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}

.widget-title i {
  color: var(--brand);
  font-size: 0.95rem;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.rank-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 1.2rem;
}

.rank-list li + li {
  border-top: 1px solid var(--line-soft);
}

.rank-num {
  flex-shrink: 0;
  width: 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #a8a29e;
}

.rank-list li:nth-child(-n + 3) .rank-num {
  color: var(--brand);
}

.rank-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
}

.rank-list a:hover {
  color: var(--brand);
}

.rank-list small {
  color: var(--muted);
  font-size: 0.78rem;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.6rem 0.6rem;
}

.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-list a:hover {
  background: #f5f5f4;
  color: var(--ink);
}

.cat-list a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.cat-count {
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f5f5f4;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.6rem;
}

.cat-list a.active .cat-count {
  background: #fff;
  color: var(--brand);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: #a8a29e;
  font-size: 0.86rem;
  margin-bottom: 1.1rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.breadcrumb-item {
  white-space: nowrap;
}

.breadcrumb-item.active {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ---------- Story page ---------- */
.story-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.story-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--brand-border);
}

.chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.story-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--muted);
}

.byline-author {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f4;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
}

.story-byline .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.story-hero-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* Reader toolbar */
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  background: #fafaf9;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.reader-toolbar .label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  min-width: 34px;
  height: 30px;
  padding: 0 0.55rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg button:hover {
  background: #f5f5f4;
}

.seg button.active {
  background: var(--ink);
  color: #fff;
}

.story-content {
  font-family: var(--font-serif);
  font-size: var(--reader-font-size, 1.16rem);
  line-height: var(--reader-line-height, 2.05);
  color: #292524;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 44em;
  margin: 0 auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.story-content.reader-sepia {
  background: #f8f1e3;
  color: #3b2f1e;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 12px;
}

.story-content.reader-dark {
  background: #1c1917;
  color: #e7e5e4;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 12px;
}

.story-content.reader-dark a {
  color: #fda4af;
}

.story-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.story-content p {
  margin-bottom: 1.3em;
}

.story-content h2,
.story-content h3,
.story-content h4 {
  font-weight: 700;
  margin: 1.8em 0 0.7em;
  line-height: 1.45;
}

.story-content blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--brand);
  color: var(--ink-2);
  font-style: italic;
}

.story-content hr {
  margin: 2.5em auto;
  width: 30%;
  opacity: 0.25;
}

/* Prev / next */
.story-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.pager-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pager-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.pager-card.next {
  text-align: right;
  grid-column: 2;
}

.pager-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pager-card.next .pager-label {
  justify-content: flex-end;
}

.pager-title {
  font-family: var(--font-serif);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pager-card:hover .pager-title {
  color: var(--brand);
}

/* ---------- Search page ---------- */
.search-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.search-hero .header-search {
  max-width: none;
  margin: 0;
}

.search-hero .header-search input {
  height: 50px;
  font-size: 1.02rem;
  padding-right: 7.5rem;
}

.search-hero .btn-brand {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 40px;
  border-radius: 999px;
  padding: 0 1.25rem;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed #d6d3d1;
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state i {
  display: block;
  font-size: 2rem;
  color: #d6d3d1;
  margin-bottom: 0.5rem;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.9;
}

/* ---------- Pagination ---------- */
.pagination {
  gap: 0.35rem;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px !important;
  font-weight: 500;
  box-shadow: none !important;
}

.pagination .page-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-border);
}

.pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  background: transparent;
  color: #a8a29e;
}

/* ---------- Ads ---------- */
.ad-slot {
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1917;
  color: #a8a29e;
  margin-top: 3rem;
  font-size: 0.92rem;
}

.site-footer .footer-top {
  padding: 3rem 1.25rem 2rem;
}

.site-footer .brand-name {
  color: #fafaf9;
}

.site-footer p {
  max-width: 420px;
  margin: 0.9rem 0 0;
  line-height: 1.75;
}

.footer-heading {
  color: #fafaf9;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #a8a29e;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
}

.footer-cats a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-bottom {
  border-top: 1px solid #292524;
  padding: 1.1rem 1.25rem;
  font-size: 0.82rem;
  color: #78716c;
}

/* Maintenance */
.maintenance {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .header-main {
    min-height: 60px;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .primary-nav .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .primary-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding: 0.35rem 0;
  }

  .primary-nav-link {
    padding: 0.55rem 0.5rem;
    font-size: 0.92rem;
    border-radius: 6px;
    text-align: center;
  }

  .story-card.lead .story-card-body {
    padding: 1.3rem 1.25rem 1.2rem;
  }

  .story-pager {
    grid-template-columns: 1fr;
  }

  .pager-card.next {
    grid-column: 1;
  }

  .site-footer .footer-top {
    padding: 2.25rem 1.25rem 1.75rem;
  }

  .site-footer .footer-bottom {
    padding: 1rem 1.25rem;
  }

  .footer-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.55rem;
  }

  .footer-cats a {
    white-space: normal;
    line-height: 1.45;
  }

  .cat-list a {
    white-space: normal;
  }

  .cat-list a .text-truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 1rem;
  }

  .story-card-body {
    padding: 1rem 1.05rem 0.95rem;
  }

  .story-content {
    font-size: var(--reader-font-size, 1.08rem);
    line-height: 1.95;
  }

  .reader-toolbar {
    padding: 0.5rem 0.75rem;
    justify-content: center;
  }

  .reader-toolbar .label span {
    display: none;
  }

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