/* ============================================================
   MAIN CSS — loaded async after critical.css
   ============================================================ */

/* ── Section headers ────────────────────────────────────────── */
.section { padding-block: var(--space-12); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-3);
}
.section-header__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}
.section-header__more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header__more:hover { text-decoration: underline; }

/* ── Cat label badges ───────────────────────────────────────── */
.cat-label {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  border-radius: 2px;
  line-height: 1.4;
}
/* Per-category accent colors */
.cat-label--politics    { background: #1d4ed8; }
.cat-label--technology  { background: #0891b2; }
.cat-label--business    { background: #059669; }
.cat-label--sports      { background: #d97706; }
.cat-label--world       { background: #7c3aed; }
.cat-label--science     { background: #0e7490; }
.cat-label--culture     { background: #be185d; }
.cat-label--breaking-news { background: var(--color-accent); }

/* ── Post card ──────────────────────────────────────────────── */
.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card__media { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.post-card__media-link { display: block; height: 100%; }
.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__cat {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  z-index: 2;
}
.post-card__body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: var(--space-3);
}
.post-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.post-card__author a { color: var(--color-text-muted); font-weight: 600; }
.post-card__author a:hover { color: var(--color-accent); }
.post-card__read-time::before { content: '·'; margin-right: var(--space-1); }

/* ── Post grids ─────────────────────────────────────────────── */
.post-grid {
  display: grid;
  gap: var(--gap);
}
.post-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.post-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Category section layout ────────────────────────────────── */
.cat-section__layout {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1.6fr 1fr 1fr;
}
.cat-section__item { display: flex; }
.cat-section__item .post-card { flex: 1; }
.cat-section__item--featured { grid-row: span 2; }
.cat-section__item--featured .post-card__media { aspect-ratio: 4/3; }
.cat-section__item--featured .post-card__title { font-size: 1.25rem; }

/* ── Post meta bar ──────────────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.post-meta__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.post-meta__author { display: flex; align-items: center; gap: 0.3rem; }
.post-meta__author-link { font-weight: 600; color: var(--color-text); }
.post-meta__author-link:hover { color: var(--color-accent); }
.post-meta__date { color: var(--color-text-muted); }
.post-meta__reading-time {
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 0.72rem;
}
.post-meta__cat-link { margin-left: 0.25rem; }

/* ── Single post ────────────────────────────────────────────── */
.single-post { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; }
.single-post__cats { padding: var(--space-6) var(--space-6) 0; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.single-post__header { padding: var(--space-4) var(--space-6); }
.single-post__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.single-post__excerpt {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.single-post__hero { margin-bottom: 0; }
.single-post__hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.single-post__hero-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.single-post__body {
  padding: var(--space-8) var(--space-6);
  max-width: 72ch;
}

/* ── Entry content typography ───────────────────────────────── */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.3em; font-size: 1.05rem; line-height: 1.75; }
.entry-content a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--color-accent); }
.entry-content ul, .entry-content ol { margin: 1em 0 1.3em 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; font-size: 1.05rem; line-height: 1.7; }
.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.entry-content blockquote p { margin-bottom: 0; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 0.82rem; color: var(--color-text-muted); text-align: center; margin-top: 0.4rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: var(--space-4);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.3em 0;
}
.entry-content code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.entry-content pre code { background: none; border: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th { background: var(--color-bg); font-weight: 700; }
.entry-content th, .entry-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.9rem;
}
.entry-content tr:nth-child(even) { background: var(--color-bg); }
.entry-content hr { border: none; border-top: 2px solid var(--color-border); margin: 2.5em 0; }

/* ── Post tags ──────────────────────────────────────────────── */
.post-tags {
  padding: 0 var(--space-6) var(--space-4);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.post-tags__label { font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); }
.post-tags__link {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: all var(--duration) var(--ease);
}
.post-tags__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── Social share ───────────────────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}
.social-share__label { font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); }
.social-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all var(--duration) var(--ease);
}
.social-share__btn:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.social-share__btn--facebook:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-share__btn--twitter:hover   { background: #000; border-color: #000; color: #fff; }
.social-share__btn--linkedin:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social-share__btn--whatsapp:hover  { background: #25d366; border-color: #25d366; color: #fff; }
.social-share__btn--copy:hover      { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ── Author box ─────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.author-box__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box__name { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: var(--space-2); }
.author-box__name a { color: var(--color-text); }
.author-box__name a:hover { color: var(--color-accent); }
.author-box__bio { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-3); }
.author-box__all-posts { font-size: 0.8rem; font-weight: 600; color: var(--color-accent); }

/* ── Related posts ──────────────────────────────────────────── */
.related-posts { margin-block: var(--space-8); }
.related-posts__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* ── Single post updated notice ────────────────────────────── */
.single-post__updated {
  padding: 0 var(--space-6) var(--space-6);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs {
  margin-bottom: var(--space-5);
}
.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.breadcrumbs__item a { color: var(--color-link); }
.breadcrumbs__item a:hover { text-decoration: underline; }
.breadcrumbs__item--current { color: var(--color-text); font-weight: 500; }
.breadcrumbs__sep { color: var(--color-border); padding-inline: 0.2rem; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(60px + 3rem); }
.widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.widget-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent);
}
.widget-posts { display: flex; flex-direction: column; gap: var(--space-3); }
.widget-posts--numbered { counter-reset: widget-posts; }
.widget-posts__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.widget-posts__item:last-child { border-bottom: none; padding-bottom: 0; }
.widget-posts--numbered .widget-posts__item { counter-increment: widget-posts; position: relative; padding-left: 1.8rem; }
.widget-posts--numbered .widget-posts__item::before {
  content: counter(widget-posts);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}
.widget-posts__thumb { width: 60px; height: 45px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.widget-posts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-posts__info { flex: 1; min-width: 0; }
.widget-posts__title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}
.widget-posts__title:hover { color: var(--color-accent); }
.widget-posts__date, .widget-posts__comments {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
/* Categories widget */
.widget_categories ul { list-style: none; }
.widget_categories ul li {
  display: flex;
  justify-content: space-between;
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
.widget_categories ul li a { color: var(--color-text); }
.widget_categories ul li a:hover { color: var(--color-accent); }
/* Tag cloud */
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.widget_tag_cloud .tagcloud a {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: 0.78rem !important;
  color: var(--color-text-muted);
  background: var(--color-bg);
}
.widget_tag_cloud .tagcloud a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── Archive header ─────────────────────────────────────────── */
.archive-header {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}
.archive-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-block: 0.5rem;
}
.archive-header__desc { color: var(--color-text-muted); margin-top: var(--space-3); }
.archive-header__author { display: flex; align-items: center; gap: var(--space-4); }
.archive-header__author img { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  margin-top: var(--space-10);
  display: flex;
  justify-content: center;
}
.pagination__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pagination__item a,
.pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  transition: all var(--duration) var(--ease);
}
.pagination__item a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.pagination__item .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: center;
}
.btn:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; }

/* ── Page article ───────────────────────────────────────────── */
.page-article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-article__header { padding: var(--space-8) var(--space-8) var(--space-4); }
.page-article__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}
.page-article__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.page-article__content { padding: var(--space-6) var(--space-8) var(--space-8); }
.main-content--page { max-width: 800px; }

/* ── 404 ────────────────────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: var(--space-16) 0;
}
.error-404__code {
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-serif);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.error-404__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--space-4);
}
.error-404__desc {
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.error-404 .search-form { max-width: 400px; margin: 0 auto var(--space-6); }
.error-404__latest { margin-top: var(--space-12); text-align: left; }
.error-404__latest h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: var(--space-6);
  text-align: center;
}

/* ── No results ─────────────────────────────────────────────── */
.no-results {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-12);
  text-align: center;
}
.no-results h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: var(--space-4); }
.no-results p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* ── Search form ────────────────────────────────────────────── */
.search-form { display: flex; gap: var(--space-2); }
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.search-form .search-field:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.search-form .search-submit {
  padding: 0.6rem 1.2rem;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--color-accent-dark); }

/* ── Comments ───────────────────────────────────────────────── */
.comments-area {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  margin-top: var(--space-6);
}
.comments-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}
.comment-list { list-style: none; }
.comment { padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); }
.comment:last-child { border-bottom: none; }
.comment .children { margin-left: var(--space-8); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: var(--space-2); }
.comment-meta { margin-bottom: var(--space-3); }
.comment-author b a { font-weight: 600; color: var(--color-text); }
.comment-metadata time { font-size: 0.78rem; color: var(--color-text-muted); }
.comment-body p { font-size: 0.95rem; line-height: 1.7; margin-bottom: var(--space-2); }
.reply a { font-size: 0.78rem; font-weight: 600; color: var(--color-accent); }
.comment-reply-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}
.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.comment-form .submit {
  padding: 0.65rem 1.4rem;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.comment-form .submit:hover { background: var(--color-accent-dark); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { margin-top: var(--space-16); border-top: 3px solid var(--color-accent); }
.footer-widgets { background: #1e293b; padding-block: var(--space-12); }
.footer-widgets__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.footer-widgets .widget { background: none; border: none; padding: 0; margin: 0; color: #cbd5e1; }
.footer-widgets .widget-title {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.footer-widgets a { color: #94a3b8; }
.footer-widgets a:hover { color: #fff; }
.footer-widgets .widget-posts__date { color: #64748b; }
.footer-bottom {
  background: #0f172a;
  padding-block: var(--space-5);
  color: #64748b;
  font-size: 0.82rem;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom__site-name { color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }
.footer-bottom__social { display: flex; gap: var(--space-3); }
.footer-bottom__social-link {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease);
}
.footer-bottom__social-link:hover { color: #fff; }
.footer-bottom__nav .footer-bottom__menu { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom__nav .footer-bottom__menu a { color: #64748b; }
.footer-bottom__nav .footer-bottom__menu a:hover { color: #fff; }

/* ── Screen reader text ─────────────────────────────────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ── Accessibility / focus ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible { text-decoration: underline; }

/* ── Page links ─────────────────────────────────────────────── */
.page-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: 0.875rem;
  font-weight: 600;
}
.page-links a {
  padding: 0.3rem 0.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.page-links a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ── Sticky post badge ──────────────────────────────────────── */
.sticky .post-card::before {
  content: '📌';
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 1rem;
  z-index: 3;
}

/* ── Admin bar offset ───────────────────────────────────────── */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-width: 280px; }
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cat-section__layout { grid-template-columns: 1.4fr 1fr; }
  .cat-section__item:nth-child(n+3) { display: none; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gap: 1rem; }

  /* Layout */
  .layout-wrap {
    grid-template-columns: 1fr;
    padding-block: var(--space-5);
  }
  .sidebar { position: static; }

  /* Nav */
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav__menu { flex-direction: column; }
  .primary-nav__menu > li > a { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .primary-nav__menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    display: none;
  }
  .primary-nav__menu > li.menu-open > .sub-menu { display: block; }
  .site-header__menu-toggle { display: flex; }

  /* Hero */
  .hero-post { min-height: 320px; }
  .hero-post__content { min-height: 320px; padding: var(--space-6) var(--container-pad); }

  /* Grids */
  .post-grid--3 { grid-template-columns: 1fr; }
  .post-grid--2 { grid-template-columns: 1fr; }
  .cat-section__layout { grid-template-columns: 1fr; }
  .cat-section__item:nth-child(n+3) { display: flex; }
  .cat-section__item--featured { grid-row: auto; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .footer-widgets__inner { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }

  /* Single post */
  .single-post__body { padding: var(--space-5) var(--space-4); }
  .single-post__header { padding: var(--space-3) var(--space-4); }
  .single-post__cats { padding: var(--space-4) var(--space-4) 0; }
  .post-tags { padding: 0 var(--space-4) var(--space-3); }
  .social-share { padding: var(--space-3) var(--space-4); }

  /* Author box */
  .author-box { flex-direction: column; }

  /* Top bar */
  .top-bar__left { display: none; }
}

/* ── Small mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero-post__title { font-size: 1.4rem; }
  .breaking-news__list { animation-duration: 18s; }
  .page-article__header { padding: var(--space-5) var(--space-4); }
  .page-article__content { padding: var(--space-4) var(--space-4) var(--space-5); }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .site-header, .primary-nav, .top-bar, .breaking-news,
  .sidebar, .site-footer, .social-share, .related-posts,
  .comments-area, .author-box { display: none !important; }
  .layout-wrap { display: block; }
  .single-post__body { padding: 0; }
  a { color: inherit; text-decoration: underline; }
  img { max-width: 100%; }
}
