/*
Theme Name: Tayo Host Blog
Theme URI: https://tayohost.com/blog
Author: Hassan Wardhere
Author URI: https://tayohost.com
Description: Custom WordPress theme for the Tayo Host blog. Hosting guides, WordPress tips and East African web hosting news. Brand-matched to tayohost.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tayohost-blog
Tags: blog, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════
   BRAND TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  --th-blue: #4285F4;
  --th-blue-dark: #2d6fd4;
  --th-orange: #FF6E00;
  --th-orange-dark: #e86200;
  --th-navy: #0d1a35;
  --th-cream: #F0F0EB;
  --th-border: #e5e7eb;
  --th-muted: #6b7280;
  --th-body: #1f2937;
  --th-bar-h: 3.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   BASE  (from design files, verbatim)
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F0F0EB;
  color: #0d1a35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* The blog menu bar is the ONLY sticky bar. Neutralise the main-site
   navbar's sticky positioning without editing navbar.php. */
.th-navbar { position: static !important; top: auto !important; }

/* ═══════════════════════════════════════════════════════════════
   BLOG MENU BAR  (NEW — cream, the only sticky bar)
   ═══════════════════════════════════════════════════════════════ */
.th-blogbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #F0F0EB;
  border-bottom: 1px solid var(--th-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.th-blogbar.th-blogbar-stuck {
  box-shadow: 0 4px 20px rgba(13, 26, 53, .08);
  background: rgba(240, 240, 235, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.th-blogbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--th-bar-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.th-blogbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  font-size: .875rem;
  font-weight: 800;
  color: var(--th-navy);
  letter-spacing: -.01em;
}
.th-blogbar-brand-mark {
  width: 26px;
  height: 26px;
  background: var(--th-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.th-blogbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.th-blogbar-nav::-webkit-scrollbar { display: none; }
.th-blogbar-link {
  padding: .375rem .75rem;
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--th-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.th-blogbar-link:hover { background: #fff; color: var(--th-blue); }
.th-blogbar-link.th-blogbar-current {
  background: var(--th-blue);
  color: #fff;
}
.th-blogbar-search {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.th-blogbar-search input {
  width: 190px;
  padding: .4375rem .75rem .4375rem 2rem;
  border: 1.5px solid var(--th-border);
  border-radius: 99px;
  background: #fff;
  font-family: inherit;
  font-size: .8125rem;
  color: var(--th-navy);
  outline: none;
  transition: border-color .15s, width .2s;
}
.th-blogbar-search input:focus { border-color: var(--th-blue); width: 230px; }
.th-blogbar-search svg {
  position: absolute;
  left: .625rem;
  pointer-events: none;
  color: #9ca3af;
}
.th-blogbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .375rem;
  color: var(--th-navy);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .th-blogbar-search input { width: 130px; }
  .th-blogbar-search input:focus { width: 150px; }
}
@media (max-width: 560px) {
  .th-blogbar-brand span { display: none; }
  .th-blogbar-search { display: none; }
  .th-blogbar-search.th-blogbar-search-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: .75rem 1rem;
    background: #F0F0EB;
    border-bottom: 1px solid var(--th-border);
  }
  .th-blogbar-search.th-blogbar-search-open input { width: 100%; }
  .th-blogbar-toggle { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════
   POST CARD  (from design files, verbatim)
   ═══════════════════════════════════════════════════════════════ */
.pc {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.pc:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.13); }
.pci {
  aspect-ratio: 16/9;
  background: #f0f0eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  overflow: hidden;
}
.pci img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.pc:hover .pci img { transform: scale(1.05); }
.pct { font-size: 11px; color: #a8a89e; font-weight: 500; letter-spacing: 0.02em; }
.pcb { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.pbg {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  align-self: flex-start;
}
.pbg-blue  { background: #eff6ff; color: #1d4ed8; }
.pbg-org   { background: #fff7ed; color: #c2410c; }
.pbg-grn   { background: #f0fdf4; color: #15803d; }
.pbg-pur   { background: #faf5ff; color: #6d28d9; }
.pbg-yel   { background: #fffbeb; color: #b45309; }
.pbg-slate { background: #f1f5f9; color: #475569; }
.pttl { font-size: 14px; font-weight: 700; color: #0d1a35; line-height: 1.45; }
.pc:hover .pttl { color: #2d6fd4; }
.pfot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  width: 100%;
}
.pau { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #374151; min-width: 0; overflow: hidden; }
.pau span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.pad img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.prdr {
  font-size: 11px;
  font-weight: 700;
  color: #4285F4;
  text-decoration: none;
  padding: 4px 11px;
  border: 1.5px solid #4285F4;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.prdr:hover { background: #4285F4; color: white; }

/* ═══════════════════════════════════════════════════════════════
   GRIDS + SECTIONS  (from design files, verbatim)
   ═══════════════════════════════════════════════════════════════ */
.grid3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sw { background: #ffffff; }
.sc { background: #F0F0EB; }
.si { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.stitle { font-size: 1.4rem; font-weight: 800; color: #0d1a35; letter-spacing: -.02em; }
.ssub   { font-size: 13px; color: #6b7280; margin-top: 4px; }
.val    { font-size: 13px; font-weight: 700; color: #4285F4; display: flex; align-items: center; gap: 4px; white-space: nowrap; text-decoration: none; }
.val:hover { color: #2d6fd4; }
.val svg { transition: transform .2s; }
.val:hover svg { transform: translateX(3px); }
.sicon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE — 3-COLUMN LAYOUT  (from blog-single design, verbatim)
   ═══════════════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr 288px;
  gap: 32px;
  align-items: start;
}

.toc-wrap { position: sticky; top: calc(var(--th-bar-h) + 20px); align-self: start; }
.toc-link {
  display: block;
  font-size: 12.5px;
  color: #6b7280;
  padding: 5px 0 5px 12px;
  border-left: 2px solid #e5e7eb;
  line-height: 1.4;
  transition: all .15s;
  text-decoration: none;
}
.toc-link:hover { color: #4285F4; border-left-color: #4285F4; }
.toc-link.active { color: #4285F4; border-left-color: #4285F4; font-weight: 600; }
.toc-h3 { padding-left: 22px; font-size: 12px; }

.sidebar-wrap { display: flex; flex-direction: column; gap: 16px; align-self: start; }

/* PROSE */
.prose { font-size: 15px; line-height: 1.85; color: #374151; }
.prose h2 { font-size: 1.3rem; font-weight: 800; color: #0d1a35; margin: 40px 0 14px; letter-spacing: -.02em; scroll-margin-top: calc(var(--th-bar-h) + 20px); }
.prose h3 { font-size: 1.05rem; font-weight: 700; color: #0d1a35; margin: 28px 0 10px; scroll-margin-top: calc(var(--th-bar-h) + 20px); }
.prose h4 { font-size: .95rem; font-weight: 700; color: #0d1a35; margin: 22px 0 8px; }
.prose p { margin-bottom: 20px; }
.prose p:first-child { scroll-margin-top: calc(var(--th-bar-h) + 20px); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: #0d1a35; font-weight: 700; }
.prose a { color: #4285F4; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #2d6fd4; }
.prose code {
  background: #f3f4f6;
  color: #db2777;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre {
  background: #0d1a35;
  color: #e5e7eb;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose blockquote {
  border-left: 3px solid #4285F4;
  padding: 14px 20px;
  background: #f8faff;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}
.prose blockquote p { margin-bottom: 0; color: #1d4ed8; font-style: italic; }
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 36px 0; }
.prose img { border-radius: 10px; margin: 8px 0 24px; }
.prose figure { margin: 0 0 24px; }
.prose figcaption { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; }
.prose th { background: #F0F0EB; font-weight: 700; color: #0d1a35; }

/* FAQ */
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #0d1a35;
}
.faq-trigger:hover { color: #4285F4; }
.faq-body {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding-bottom .3s ease;
}
.faq-body.open { max-height: 600px; padding-bottom: 16px; }
.faq-icon { flex-shrink: 0; transition: transform .25s ease; }
.faq-icon.open { transform: rotate(45deg); }

/* COMMENT INPUTS */
.cinput {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #0d1a35;
  outline: none;
  transition: border-color .15s;
  background: white;
}
.cinput:focus { border-color: #4285F4; }

/* HEADER ALIGNMENT — matches center col of page-wrap */
.art-hdr-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px calc(24px + 288px + 32px) 28px calc(24px + 220px + 32px);
}
@media (max-width: 1200px) { .art-hdr-inner { padding-left: 24px; padding-right: calc(24px + 280px + 32px); } }
@media (max-width: 860px)  { .art-hdr-inner { padding-left: 16px; padding-right: 16px; } }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Single-page card variants (design uses slightly tighter card metrics here) */
.page-wrap .pcb  { padding: 14px 16px; gap: 9px; }
.page-wrap .pttl { font-size: 13px; line-height: 1.4; }
.page-wrap .pbg  { font-size: 10px; padding: 3px 9px; }
.page-wrap .pfot { padding-top: 10px; }
.page-wrap .pau  { gap: 6px; font-size: 11px; }
.page-wrap .pad  { width: 22px; height: 22px; font-size: 8px; }
.page-wrap .prdr { font-size: 11px; padding: 3px 9px; border-radius: 5px; }

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════ */
.th-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(13,26,53,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
  z-index: 600;
}
.th-totop.th-totop-show { opacity: 1; visibility: visible; transform: translateY(0); }
.th-totop:hover { background: #2d6fd4; }

/* ═══════════════════════════════════════════════════════════════
   MOTION LAYER
   Base state is ALWAYS VISIBLE. The hidden start state only exists
   when <html> carries .th-js, which is set by an inline script that
   runs before paint. theme.js then reveals on scroll and force-reveals
   everything after 2.5s as a failsafe, so content can never be
   trapped invisible if the observer or the script fails.
   ═══════════════════════════════════════════════════════════════ */
.th-reveal { opacity: 1; transform: none; }

html.th-js .th-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
html.th-js .th-reveal.th-in { opacity: 1; transform: none; }

html.th-js .th-reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
html.th-js .th-reveal-stagger.th-in > * { opacity: 1; transform: none; }
html.th-js .th-reveal-stagger.th-in > *:nth-child(1) { transition-delay: 0ms; }
html.th-js .th-reveal-stagger.th-in > *:nth-child(2) { transition-delay: 70ms; }
html.th-js .th-reveal-stagger.th-in > *:nth-child(3) { transition-delay: 140ms; }
html.th-js .th-reveal-stagger.th-in > *:nth-child(4) { transition-delay: 210ms; }
html.th-js .th-reveal-stagger.th-in > *:nth-child(5) { transition-delay: 280ms; }
html.th-js .th-reveal-stagger.th-in > *:nth-child(6) { transition-delay: 350ms; }

/* Hero pentagons drift */
@keyframes th-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
.th-penta-l svg { animation: th-float 9s ease-in-out infinite; }
.th-penta-r svg { animation: th-float 11s ease-in-out infinite reverse; }

/* Hero orbs pulse */
@keyframes th-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.12); opacity: .75; }
}
.th-orb { animation: th-pulse 7s ease-in-out infinite; }
.th-orb-2 { animation-duration: 9s; animation-direction: reverse; }

/* CTA badge shimmer */
@keyframes th-bolt {
  0%, 92%, 100% { transform: scale(1)   rotate(0deg); }
  95%           { transform: scale(1.2) rotate(-8deg); }
}
.th-bolt { animation: th-bolt 3.5s ease-in-out infinite; transform-origin: center; }

/* Button press */
.th-press { transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.th-press:hover  { transform: translateY(-2px); }
.th-press:active { transform: translateY(0); }

/* Everything above is decoration only. Kill it for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.th-js .th-reveal,
  html.th-js .th-reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   WORDPRESS CORE CLASSES
   ═══════════════════════════════════════════════════════════════ */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip-path: none;
  color: #0d1a35;
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 14px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption-text, .wp-element-caption {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 8px;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }
.wp-block-image img { border-radius: 10px; }
.th-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Focus visibility — keyboard users must always see where they are */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF6E00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Pagination (category / tag / author / search) */
.th-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.th-pager .page-numbers {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-family: inherit;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  display: inline-block;
}
.th-pager .page-numbers:hover { border-color: #4285F4; color: #4285F4; }
.th-pager .page-numbers.current {
  color: white;
  background: #4285F4;
  border-color: #4285F4;
  font-weight: 700;
}
.th-pager .page-numbers.dots { border-color: transparent; background: none; }

/* Empty state */
.th-empty {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 56px 32px;
  text-align: center;
  grid-column: 1 / -1;
}
.th-empty h2 { font-size: 1.1rem; font-weight: 800; color: #0d1a35; margin-bottom: 8px; }
.th-empty p  { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE  (from design files, verbatim)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .page-wrap { grid-template-columns: 1fr 280px; }
  .toc-wrap  { display: none; }
  .mobile-toc { display: block !important; }
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .grid3, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-img  { display: none !important; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar-wrap { display: none !important; }
  .mobile-toc { display: block !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid3, .grid-3 { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .si { padding: 44px 16px; }
  .cta-inner  { flex-direction: column !important; gap: 24px !important; }
  .news-row   { flex-direction: column !important; }
  .art-title  { font-size: 1.4rem !important; }
  .meta-row   { flex-wrap: wrap !important; gap: 8px !important; }
  .share-row  { flex-wrap: wrap !important; }
  .ai-row     { flex-wrap: wrap !important; }
  .comment-name-row { grid-template-columns: 1fr !important; }
  .related-grid     { grid-template-columns: 1fr !important; }
  .cat-header-row   { flex-direction: column !important; align-items: flex-start !important; }
  .cat-stats-box    { margin-left: 0 !important; }
  .filter-sort-row  { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .tag-header-row   { flex-direction: column !important; align-items: flex-start !important; }
  .author-header-row { flex-direction: column !important; }
  .author-stats-row  { gap: 20px !important; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
