/* ============================================================
   SINDACO THEME — CSS principale
   Font: Open Sans | Design: Istituzionale
   ============================================================ */

/* ── Google Fonts fallback già caricato via <link> ── */

/* ─────────────────────────────────────────
   1. CUSTOM PROPERTIES (light mode default)
───────────────────────────────────────── */
:root {
  /* Palette istituzionale — blu tricolore */
  --color-primary:        #003E7E;   /* blu istituzionale */
  --color-primary-dark:   #002855;
  --color-primary-light:  #1a5fa0;
  --color-accent:         #C8272D;   /* rosso tricolore */
  --color-accent-hover:   #a01f24;

  /* Superfici */
  --color-bg:             #F5F6F8;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #EEF1F5;
  --color-border:         #D0D7E2;
  --color-border-light:   #E8ECF2;

  /* Testo */
  --color-text:           #1A1D23;
  --color-text-secondary: #4A5568;
  --color-text-muted:     #718096;
  --color-link:           #003E7E;
  --color-link-hover:     #C8272D;

  /* Header */
  --color-topbar-bg:      #002855;
  --color-topbar-text:    #B8CCE4;
  --color-header-bg:      #003E7E;
  --color-header-text:    #FFFFFF;
  --color-hero-bg:        #003E7E;

  /* Footer */
  --color-footer-bg:      #002855;
  --color-footer-text:    #B8CCE4;
  --color-footer-heading: #FFFFFF;

  /* Tipografia */
  --font-body:     'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height:    1.7;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;

  /* Layout */
  --container-width: 1140px;
  --container-pad:   1.25rem;
  --border-radius:   4px;
  --border-radius-lg: 8px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,62,126,0.08);
  --shadow-md:  0 4px 12px rgba(0,62,126,0.12);
  --shadow-lg:  0 8px 24px rgba(0,62,126,0.16);

  /* Transition */
  --transition: 200ms ease;
}

/* ─────────────────────────────────────────
   2. DARK MODE
───────────────────────────────────────── */
[data-theme="dark"] {
  --color-bg:             #0F1923;
  --color-surface:        #182333;
  --color-surface-alt:    #1E2D42;
  --color-border:         #2A3D56;
  --color-border-light:   #243348;

  --color-text:           #E8EDF5;
  --color-text-secondary: #A8B8CC;
  --color-text-muted:     #7A90A8;
  --color-link:           #82AACC;
  --color-link-hover:     #C8272D;

  --color-topbar-bg:      #0A1520;
  --color-topbar-text:    #7A90A8;
  --color-header-bg:      #0D1E33;
  --color-header-text:    #D8E6F3;
  --color-hero-bg:        #0D1E33;

  --color-footer-bg:      #0A1520;
  --color-footer-text:    #7A90A8;
  --color-footer-heading: #D8E6F3;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.5);
}

/* ─────────────────────────────────────────
   3. RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-link-hover); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────
   4. CONTAINER
───────────────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─────────────────────────────────────────
   5. HEADER — TOP BAR
───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; }

.header-topbar {
  background: var(--color-topbar-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.35rem;
}

.topbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-topbar-text);
}

/* ─── Dark mode toggle ─── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  color: var(--color-topbar-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  transition: color var(--transition);
}

.theme-toggle:hover { color: #fff; }
.theme-toggle:focus-visible { outline: 2px solid var(--color-primary-light); }

.toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  padding: 2px;
}

[data-theme="dark"] .toggle-track { background: var(--color-primary-light); }

.toggle-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .toggle-thumb { transform: translateX(18px); }

.icon-sun, .icon-moon {
  position: absolute;
  width: 11px;
  height: 11px;
  transition: opacity var(--transition);
}

.icon-sun  { right: 4px; opacity: 1; color: #f4c430; }
.icon-moon { left: 4px;  opacity: 0; color: #c5d8f0; }

[data-theme="dark"] .icon-sun  { opacity: 0; }
[data-theme="dark"] .icon-moon { opacity: 1; }

.toggle-label { font-weight: 600; }

/* ─────────────────────────────────────────
   6. HEADER — MAIN
───────────────────────────────────────── */
.header-main {
  background: var(--color-header-bg);
  border-bottom: 3px solid var(--color-accent);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: var(--space-lg);
}

/* Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.site-logo, .site-logo-default {
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

.site-logo svg, .site-logo-default svg { width: 100%; height: 100%; }

.site-identity { display: flex; flex-direction: column; }

.site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-name:hover { color: rgba(255,255,255,0.85); }

.site-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

/* Navigation */
.site-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-menu a[aria-current="page"] {
  border-bottom: 2px solid var(--color-accent);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ─────────────────────────────────────────
   7. PAGE HERO / BREADCRUMB
───────────────────────────────────────── */
.page-hero {
  background: var(--color-hero-bg);
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; opacity: 0.4; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ─────────────────────────────────────────
   8. HERO SECTION (homepage)
───────────────────────────────────────── */
.hero {
  background: var(--color-hero-bg);
  background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  padding-block: var(--space-2xl);
  transition: background var(--transition);
}

[data-theme="dark"] .hero {
  background-image: linear-gradient(135deg, #070f1a 0%, #0d1e33 60%, #162b48 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.hero-text { flex: 1; }

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.65;
}

/* Sindaco card */
.sindaco-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  backdrop-filter: blur(4px);
  min-width: 240px;
}

.sindaco-foto {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.sindaco-info { display: flex; flex-direction: column; gap: 2px; }
.sindaco-ruolo  { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.sindaco-nome   { font-size: 1rem; font-weight: 700; color: #fff; }
.sindaco-mandato { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ─────────────────────────────────────────
   9. POSTS SECTION
───────────────────────────────────────── */
.section-posts {
  padding-block: var(--space-2xl);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-md);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--color-accent);
  margin-right: 0.7rem;
  vertical-align: middle;
  border-radius: 2px;
}

.btn-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

[data-theme="dark"] .btn-link { color: var(--color-link); }
.btn-link:hover { color: var(--color-accent); }

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

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

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.post-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.post-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .post-category {
  background: rgba(130,170,204,0.12);
  color: var(--color-link);
  border-color: rgba(130,170,204,0.2);
}

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); }
[data-theme="dark"] .post-card-title a:hover { color: var(--color-link); }

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
}

.post-read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-xs);
}

[data-theme="dark"] .post-read-more { color: var(--color-link); }
.post-read-more:hover { color: var(--color-accent); }

/* ─────────────────────────────────────────
   10. LIST PAGE
───────────────────────────────────────── */
.section-list { padding-block: var(--space-2xl); }

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 3px solid var(--color-accent);
}

.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-list-item {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.post-list-item:last-child { border-bottom: none; }

.post-list-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-xs);
}

.post-list-meta time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.post-list-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.post-list-title a { color: var(--color-text); }
.post-list-title a:hover { color: var(--color-primary); }

.post-list-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ─────────────────────────────────────────
   11. SINGLE POST
───────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl);
  align-items: start;
}

.post-single { min-width: 0; }

.post-header { margin-bottom: var(--space-xl); }

.post-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.post-meta time { font-weight: 600; }

/* Prose / article content */
.prose { max-width: 72ch; }

.prose h2 { font-size: 1.45rem; font-weight: 700; margin-block: 2rem 1rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-block: 1.75rem 0.75rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface-alt);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--color-border); }
.prose a:hover { text-decoration-color: var(--color-accent); }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin-block: 2rem; }
.prose code {
  font-size: 0.88em;
  background: var(--color-surface-alt);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

/* Post footer */
.post-footer { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }

.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-bottom: var(--space-lg); font-size: 0.82rem; }
.post-tags > span { color: var(--color-text-muted); font-weight: 600; }

.tag {
  padding: 3px 10px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
}

.tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.post-nav-link { display: flex; flex-direction: column; gap: 2px; max-width: 48%; }
.post-nav-next { align-items: flex-end; text-align: right; }
.nav-label { font-size: 0.72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.nav-title { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.nav-title:hover { color: var(--color-primary); }

.btn-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

[data-theme="dark"] .btn-back { color: var(--color-link); }
.btn-back:hover { color: var(--color-accent); }

/* ─────────────────────────────────────────
   12. SIDEBAR
───────────────────────────────────────── */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--space-2xl) + 4rem);
}

.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.widget-sindaco { text-align: center; }

.widget-foto {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  object-fit: cover;
  margin: 0 auto var(--space-sm);
}

.widget-nome { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: var(--space-xs); }
.widget-bio  { font-size: 0.82rem; color: var(--color-text-secondary); line-height: 1.55; }

.widget-recent ul { display: flex; flex-direction: column; gap: 0.9rem; }

.widget-recent li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-recent a  { font-size: 0.86rem; font-weight: 600; color: var(--color-text); line-height: 1.35; }
.widget-recent a:hover { color: var(--color-primary); }
.widget-recent time { font-size: 0.73rem; color: var(--color-text-muted); }

/* ─────────────────────────────────────────
   13. FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-2xl);
  transition: background var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-footer-heading);
  margin-bottom: var(--space-md);
}

.footer-comune {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-footer-heading);
  margin-bottom: var(--space-xs);
}

.footer-address, .footer-pec { font-size: 0.83rem; margin-bottom: var(--space-xs); }
.footer-pec a { color: var(--color-footer-text); text-decoration: underline; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a  { font-size: 0.85rem; color: var(--color-footer-text); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ─────────────────────────────────────────
   14. PAGINATION
───────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
}

.pagination a, .pagination span {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  transition: all var(--transition);
}

.pagination a:hover, .pagination .active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ─────────────────────────────────────────
   15. RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner     { flex-direction: column; }
  .sindaco-card   { align-self: stretch; }
  .post-layout    { grid-template-columns: 1fr; }
  .post-sidebar   { position: static; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-primary-dark);
    padding: var(--space-md);
    gap: 0;
    border-bottom: 3px solid var(--color-accent);
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .posts-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .toggle-label { display: none; }

  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* ─────────────────────────────────────────
   16. UTILITY
───────────────────────────────────────── */
.no-posts, .section-intro { color: var(--color-text-secondary); }

.section-content { padding-block: var(--space-xl); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -100%;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--border-radius) 0;
}

.skip-link:focus { left: 0; }
