/*
Theme Name: Rathausnachrichten
Theme URI: https://rathausnachrichten.de/
Author: Maik Möhring Media
Author URI: https://maik-moehring.ch/
Description: Massgeschneidertes, SEO- und performance-optimiertes Newsroom-Theme für rathausnachrichten.de. Mobile-first, modernes CSS (Grid, clamp, Custom Properties), News-Magazin-Startseite, Blog-Single mit Sidebar. Rank-Math-kompatibel (kein doppeltes Schema). PHP 7.4 / All-Inkl-tauglich.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rathausnachrichten
Tags: news, magazine, blog, custom-logo, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --rhn-green:        #348C28;
  --rhn-green-dark:   #1e3a17;
  --rhn-green-soft:   #f1f7ef;
  --rhn-green-hover:  #2a7320;

  /* Ink & surfaces */
  --rhn-ink:          #16201a;
  --rhn-body:         #2b332d;
  --rhn-muted:        #5c6b5d;
  --rhn-faint:        #84917f;
  --rhn-line:         #e3e8e0;
  --rhn-line-soft:    #eef1ec;
  --rhn-surface:      #ffffff;
  --rhn-surface-2:    #f7f9f6;

  /* Typography */
  --rhn-serif: "Bitter", Georgia, "Times New Roman", serif;
  --rhn-sans:  "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --rhn-wrap:   1200px;
  --rhn-gap:    clamp(1.25rem, 3vw, 2.25rem);
  --rhn-radius: 10px;
  --rhn-radius-sm: 6px;

  /* Shadows */
  --rhn-shadow:    0 1px 2px rgba(22, 32, 26, .04), 0 8px 24px -12px rgba(22, 32, 26, .18);
  --rhn-shadow-lg: 0 18px 50px -20px rgba(22, 32, 26, .32);

  /* Motion */
  --rhn-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rhn-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--rhn-body);
  background: var(--rhn-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rhn-green-hover); text-decoration: none; transition: color .15s var(--rhn-ease); }
a:hover { color: var(--rhn-green-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rhn-serif);
  color: var(--rhn-ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

:focus-visible { outline: 3px solid var(--rhn-green); outline-offset: 2px; border-radius: 3px; }

/* Accessibility skip link */
.rhn-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--rhn-green-dark); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--rhn-radius-sm) 0; font-weight: 600;
}
.rhn-skip-link:focus { left: 0; color: #fff; }

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

/* ============================================================
   3. LAYOUT
   ============================================================ */
.rhn-wrap { width: min(100% - 2.5rem, var(--rhn-wrap)); margin-inline: auto; }

.rhn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
@media (min-width: 1000px) {
  .rhn-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 332px; }
}

/* ============================================================
   4. TOP BAR
   ============================================================ */
.rhn-topbar {
  background: var(--rhn-green-dark);
  color: #cfe3c8;
  font-size: 13px;
  letter-spacing: .02em;
}
.rhn-topbar .rhn-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 1rem; }
.rhn-topbar a { color: #cfe3c8; }
.rhn-topbar a:hover { color: #fff; }
.rhn-topbar__date { display: flex; align-items: center; gap: .5rem; }
.rhn-topbar__date::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fd05a; box-shadow: 0 0 0 3px rgba(111,208,90,.25); }
.rhn-topbar__links { display: flex; gap: 1.25rem; }
@media (max-width: 640px) { .rhn-topbar__links { display: none; } }

/* ============================================================
   5. HEADER / MASTHEAD
   ============================================================ */
.rhn-masthead {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rhn-line);
}
.rhn-masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.rhn-brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.rhn-brand img { max-height: 50px; width: auto; }
.rhn-brand__text { font-family: var(--rhn-serif); font-weight: 800; font-size: 1.5rem; color: var(--rhn-ink); letter-spacing: -.02em; }
.rhn-brand__text b { color: var(--rhn-green); }

/* Primary nav */
.rhn-nav { display: flex; align-items: center; }
.rhn-nav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.rhn-nav li { position: relative; }
.rhn-nav a {
  display: block; padding: .65rem .85rem; font-weight: 600; font-size: 15px;
  color: var(--rhn-ink); border-radius: var(--rhn-radius-sm); letter-spacing: .01em;
}
.rhn-nav > ul > li > a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--rhn-green); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--rhn-ease);
}
.rhn-nav > ul > li:hover > a::after,
.rhn-nav > ul > li.current-menu-item > a::after,
.rhn-nav > ul > li.current-menu-parent > a::after { transform: scaleX(1); }
.rhn-nav a:hover { color: var(--rhn-green-dark); }

/* Sub-menus */
.rhn-nav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; gap: 0;
  background: #fff; border: 1px solid var(--rhn-line); border-radius: var(--rhn-radius);
  box-shadow: var(--rhn-shadow-lg); padding: .4rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .18s var(--rhn-ease); z-index: 50;
}
.rhn-nav li:hover > ul, .rhn-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.rhn-nav ul ul a { padding: .55rem .7rem; font-size: 14px; border-radius: var(--rhn-radius-sm); }
.rhn-nav ul ul a:hover { background: var(--rhn-green-soft); }
.rhn-nav .menu-item-has-children > a::before {
  content: "›"; float: right; margin-left: .35rem; transform: rotate(90deg); color: var(--rhn-faint); font-weight: 700;
}

/* Header actions */
.rhn-actions { display: flex; align-items: center; gap: .35rem; }
.rhn-iconbtn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--rhn-line);
  background: #fff; border-radius: var(--rhn-radius-sm); cursor: pointer; color: var(--rhn-ink);
  transition: all .15s var(--rhn-ease);
}
.rhn-iconbtn:hover { border-color: var(--rhn-green); color: var(--rhn-green); }
.rhn-iconbtn svg { width: 20px; height: 20px; }
.rhn-burger { display: none; }

/* Search drawer */
.rhn-searchbar { display: none; border-bottom: 1px solid var(--rhn-line); background: var(--rhn-surface-2); }
.rhn-searchbar.is-open { display: block; }
.rhn-searchbar form { display: flex; gap: .5rem; padding: 1rem 0; }
.rhn-searchbar input[type="search"] {
  flex: 1; padding: .85rem 1rem; font-size: 16px; border: 1px solid var(--rhn-line);
  border-radius: var(--rhn-radius-sm); font-family: inherit; background: #fff;
}
.rhn-searchbar input[type="search"]:focus { border-color: var(--rhn-green); outline: none; }

/* ============================================================
   6. BUTTONS / LABELS
   ============================================================ */
.rhn-btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 15px;
  padding: .75rem 1.4rem; border-radius: var(--rhn-radius-sm); cursor: pointer;
  background: var(--rhn-green); color: #fff !important; border: 1px solid var(--rhn-green);
  transition: all .15s var(--rhn-ease);
}
.rhn-btn:hover { background: var(--rhn-green-dark); border-color: var(--rhn-green-dark); transform: translateY(-1px); }
.rhn-btn--ghost { background: transparent; color: var(--rhn-green-dark) !important; }
.rhn-btn--ghost:hover { background: var(--rhn-green-soft); transform: none; }

.rhn-kicker {
  display: inline-block; font-family: var(--rhn-sans); font-weight: 700; font-size: 12px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--rhn-green); margin-bottom: .5rem;
}
.rhn-cat-label {
  display: inline-flex; align-items: center; font-family: var(--rhn-sans); font-weight: 700;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff !important;
  background: var(--rhn-green); padding: .28rem .6rem; border-radius: 3px; line-height: 1;
}
.rhn-cat-label:hover { background: var(--rhn-green-dark); color: #fff !important; }
.rhn-cat-label--ghost { background: transparent; color: var(--rhn-green) !important; padding-inline: 0; }

/* ============================================================
   7. SECTION HEADINGS
   ============================================================ */
.rhn-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 0 0 1.5rem; padding-bottom: .6rem; border-bottom: 3px solid var(--rhn-green);
}
.rhn-section-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.rhn-section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ============================================================
   8. CARDS (article grid)
   ============================================================ */
.rhn-grid { display: grid; gap: var(--rhn-gap); }
.rhn-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rhn-grid--2 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.rhn-card { display: flex; flex-direction: column; background: #fff; }
.rhn-card__media { position: relative; overflow: hidden; border-radius: var(--rhn-radius); aspect-ratio: 16 / 10; background: var(--rhn-surface-2); }
.rhn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--rhn-ease); }
.rhn-card:hover .rhn-card__media img { transform: scale(1.05); }
.rhn-card__cat { position: absolute; left: 12px; top: 12px; }
.rhn-card__body { padding: .9rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.rhn-card__title { font-size: 1.18rem; line-height: 1.28; margin: 0; }
.rhn-card__title a { color: var(--rhn-ink); background-image: linear-gradient(var(--rhn-green), var(--rhn-green)); background-size: 0% 2px; background-repeat: no-repeat; background-position: left bottom; transition: background-size .3s var(--rhn-ease); }
.rhn-card__title a:hover { color: var(--rhn-green-dark); background-size: 100% 2px; }
.rhn-card__excerpt { color: var(--rhn-muted); font-size: 15px; margin: 0; }

/* meta line */
.rhn-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 13px; color: var(--rhn-faint); }
.rhn-meta a { color: var(--rhn-muted); font-weight: 600; }
.rhn-meta a:hover { color: var(--rhn-green-dark); }
.rhn-meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.rhn-meta__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.rhn-views { display: inline-flex; align-items: center; gap: .3rem; }
.rhn-views .rhn-eye { width: 15px; height: 15px; opacity: .9; }

/* Initialen-Avatar (markenfarben, ohne Gravatar) */
.rhn-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; color: #fff; font-family: var(--rhn-sans); font-weight: 700;
  line-height: 1; letter-spacing: .01em; text-transform: uppercase; overflow: hidden;
}
.rhn-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============================================================
   9. HERO (front page lead)
   ============================================================ */
.rhn-hero { display: grid; gap: var(--rhn-gap); margin-bottom: clamp(2rem,5vw,3.25rem); }
@media (min-width: 880px) { .rhn-hero { grid-template-columns: 1.55fr 1fr; align-items: stretch; } }

.rhn-hero__lead { position: relative; border-radius: var(--rhn-radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--rhn-shadow); }
.rhn-hero__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rhn-hero__lead::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15,26,12,.92) 0%, rgba(15,26,12,.45) 45%, rgba(15,26,12,.05) 100%); }
.rhn-hero__lead-body { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 2.5rem); }
.rhn-hero__lead-body h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .6rem 0; }
.rhn-hero__lead-body h2 a { color: #fff; }
.rhn-hero__lead-body h2 a:hover { color: #d8f0d0; }
.rhn-hero__lead .rhn-meta, .rhn-hero__lead .rhn-meta a { color: rgba(255,255,255,.85); }

.rhn-hero__side { display: grid; gap: 1rem; align-content: start; }
.rhn-hero__side-item { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.rhn-hero__side-item .rhn-card__media { aspect-ratio: 1 / 1; border-radius: var(--rhn-radius-sm); }
.rhn-hero__side-item h3 { font-size: 1.02rem; line-height: 1.3; margin: .25rem 0 0; }
.rhn-hero__side-item h3 a { color: var(--rhn-ink); }
.rhn-hero__side-item h3 a:hover { color: var(--rhn-green-dark); }

/* ============================================================
   10. SINGLE / PAGE ARTICLE
   ============================================================ */
.rhn-article__header { margin-bottom: 1.75rem; }
.rhn-article__title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.12; margin: .5rem 0 1rem; }
.rhn-article__intro { font-size: 1.18rem; color: var(--rhn-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.rhn-byline { display: flex; align-items: center; gap: .85rem; padding: 1rem 0; border-top: 1px solid var(--rhn-line); border-bottom: 1px solid var(--rhn-line); }
.rhn-byline__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.rhn-byline__meta { font-size: 14px; color: var(--rhn-faint); line-height: 1.4; }
.rhn-byline__meta strong { color: var(--rhn-ink); font-size: 15px; }
.rhn-byline__meta a { color: var(--rhn-ink); }
.rhn-byline__share { margin-left: auto; display: flex; gap: .4rem; }
.rhn-share-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--rhn-line); border-radius: 50%; color: var(--rhn-muted); }
.rhn-share-btn:hover { background: var(--rhn-green); border-color: var(--rhn-green); color: #fff; }
.rhn-share-btn svg { width: 17px; height: 17px; }

.rhn-featured { margin: 0 0 1.75rem; border-radius: var(--rhn-radius); overflow: hidden; }
.rhn-featured figcaption { font-size: 13px; color: var(--rhn-faint); padding: .5rem .2rem 0; }

/* Article body typography */
.rhn-content { font-size: 1.075rem; line-height: 1.8; color: var(--rhn-body); }
.rhn-content > * { max-width: 100%; }
.rhn-content h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2rem 0 .8rem; color: var(--rhn-green-dark); }
.rhn-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); margin: 1.6rem 0 .6rem; }
.rhn-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(52,140,40,.4); }
.rhn-content a:hover { text-decoration-color: var(--rhn-green); }
.rhn-content img { border-radius: var(--rhn-radius-sm); margin: 1.5rem 0; }
.rhn-content blockquote {
  margin: 1.75rem 0; padding: 1rem 0 1rem 1.5rem; border-left: 4px solid var(--rhn-green);
  font-family: var(--rhn-serif); font-size: 1.3rem; line-height: 1.45; color: var(--rhn-ink); font-style: italic;
}
.rhn-content figure { margin: 1.5rem 0; }
.rhn-content ul li, .rhn-content ol li { margin-bottom: .5rem; }
.rhn-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 15px; }
.rhn-content th, .rhn-content td { padding: .7rem .9rem; border: 1px solid var(--rhn-line); text-align: left; }
.rhn-content th { background: var(--rhn-green-soft); color: var(--rhn-green-dark); font-family: var(--rhn-sans); }
.rhn-content tr:nth-child(even) td { background: var(--rhn-surface-2); }

/* Tags + author box */
.rhn-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.rhn-tags a { font-size: 13px; padding: .35rem .8rem; background: var(--rhn-surface-2); border: 1px solid var(--rhn-line); border-radius: 100px; color: var(--rhn-muted); font-weight: 600; }
.rhn-tags a:hover { background: var(--rhn-green-soft); border-color: var(--rhn-green); color: var(--rhn-green-dark); }

.rhn-authorbox { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--rhn-green-soft); border-radius: var(--rhn-radius); margin: 2.5rem 0; border-left: 4px solid var(--rhn-green); }
.rhn-authorbox img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rhn-authorbox h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.rhn-authorbox p { margin: 0; font-size: 14px; color: var(--rhn-muted); }
.rhn-authorbox .rhn-kicker { margin-bottom: .15rem; }

/* Post navigation */
.rhn-postnav { display: grid; gap: 1rem; margin: 2.5rem 0; }
@media (min-width: 600px) { .rhn-postnav { grid-template-columns: 1fr 1fr; } }
.rhn-postnav a { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--rhn-line); border-radius: var(--rhn-radius); background: #fff; transition: all .15s var(--rhn-ease); }
.rhn-postnav a:hover { border-color: var(--rhn-green); box-shadow: var(--rhn-shadow); }
.rhn-postnav span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rhn-faint); margin-bottom: .35rem; }
.rhn-postnav strong { color: var(--rhn-ink); font-family: var(--rhn-serif); font-size: 1.02rem; line-height: 1.3; }
.rhn-postnav .next { text-align: right; }

/* ============================================================
   11. SIDEBAR / WIDGETS
   ============================================================ */
.rhn-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.rhn-widget { background: #fff; }
.rhn-widget__title, .rhn-sidebar .widget-title, .rhn-sidebar .widgettitle {
  font-family: var(--rhn-serif); font-size: 1.15rem; color: var(--rhn-ink); margin: 0 0 1rem;
  padding-bottom: .5rem; border-bottom: 3px solid var(--rhn-green); display: flex; align-items: center; gap: .5rem;
}
.rhn-sidebar ul { list-style: none; margin: 0; padding: 0; }
.rhn-sidebar li { padding: .55rem 0; border-bottom: 1px solid var(--rhn-line-soft); font-size: 15px; }
.rhn-sidebar li:last-child { border-bottom: 0; }
.rhn-sidebar a { color: var(--rhn-body); font-weight: 500; }
.rhn-sidebar a:hover { color: var(--rhn-green-dark); }

/* Popular / Themen die bewegen */
.rhn-popular li { display: grid; grid-template-columns: 34px 1fr; gap: .85rem; align-items: start; border-bottom: 1px solid var(--rhn-line-soft); padding: .85rem 0; }
.rhn-popular__rank { font-family: var(--rhn-serif); font-weight: 800; font-size: 1.5rem; color: var(--rhn-green); line-height: 1; opacity: .55; }
.rhn-popular__t { font-size: 15px; line-height: 1.35; font-weight: 600; }
.rhn-popular__t a { color: var(--rhn-ink); }
.rhn-popular__t a:hover { color: var(--rhn-green-dark); }
.rhn-popular .rhn-meta { margin-top: .25rem; font-size: 12px; }

/* sticky sidebar on desktop */
@media (min-width: 1000px) { .rhn-sidebar { position: sticky; top: 96px; align-self: start; } }

/* Newsletter / CTA widget */
.rhn-cta-widget { background: var(--rhn-green-dark); color: #fff; border-radius: var(--rhn-radius); padding: 1.5rem; }
.rhn-cta-widget h3 { color: #fff; margin: 0 0 .5rem; }
.rhn-cta-widget p { color: #cfe3c8; font-size: 14px; margin: 0 0 1rem; }
.rhn-cta-widget .rhn-btn { background: #fff; color: var(--rhn-green-dark) !important; border-color: #fff; width: 100%; justify-content: center; }
.rhn-cta-widget .rhn-btn:hover { background: var(--rhn-green-soft); }

/* ============================================================
   12. BREADCRUMBS + ARCHIVE HEADER
   ============================================================ */
.rhn-breadcrumbs { font-size: 13px; color: var(--rhn-faint); padding: 1rem 0 0; }
.rhn-breadcrumbs a { color: var(--rhn-muted); }
.rhn-breadcrumbs a:hover { color: var(--rhn-green-dark); }
.rhn-breadcrumbs .sep { margin: 0 .4rem; opacity: .6; }

.rhn-archive-head { padding: clamp(1.75rem,4vw,2.75rem) 0; border-bottom: 1px solid var(--rhn-line); background: var(--rhn-surface-2); }
.rhn-archive-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .25rem 0 .5rem; }
.rhn-archive-head p { margin: 0; color: var(--rhn-muted); max-width: 60ch; }

/* ============================================================
   13. PAGINATION + COMMENTS
   ============================================================ */
.rhn-pagination { margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.rhn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.rhn-pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem;
  border: 1px solid var(--rhn-line); border-radius: var(--rhn-radius-sm); font-weight: 600; color: var(--rhn-ink);
}
.rhn-pagination .page-numbers:hover { border-color: var(--rhn-green); color: var(--rhn-green); }
.rhn-pagination .page-numbers.current { background: var(--rhn-green); border-color: var(--rhn-green); color: #fff; }

.rhn-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rhn-line); }
.rhn-comments .comment-list { list-style: none; padding: 0; }
.rhn-comments .comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--rhn-line-soft); }
.rhn-comments .comment-author { font-weight: 700; color: var(--rhn-ink); }
.rhn-comments .children { list-style: none; padding-left: 1.5rem; border-left: 2px solid var(--rhn-green-soft); }
.rhn-comments input[type="text"], .rhn-comments input[type="email"], .rhn-comments input[type="url"], .rhn-comments textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--rhn-line); border-radius: var(--rhn-radius-sm); font-family: inherit; font-size: 16px; margin-bottom: 1rem;
}
.rhn-comments textarea:focus, .rhn-comments input:focus { border-color: var(--rhn-green); outline: none; }

/* ============================================================
   14. FOOTER
   ============================================================ */
.rhn-footer { background: var(--rhn-green-dark); color: #c3d6bd; margin-top: clamp(3rem,6vw,5rem); }
.rhn-footer__top { display: grid; gap: 2.5rem; padding: clamp(2.5rem,5vw,4rem) 0; }
@media (min-width: 760px) { .rhn-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.rhn-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 1.1rem; font-family: var(--rhn-sans); font-weight: 700; }
.rhn-footer a { color: #c3d6bd; }
.rhn-footer a:hover { color: #fff; }
.rhn-footer ul { list-style: none; margin: 0; padding: 0; }
.rhn-footer li { padding: .35rem 0; }
.rhn-footer__brand p { font-size: 14px; line-height: 1.7; max-width: 38ch; }
.rhn-footer__brand img { max-height: 46px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.rhn-footer__brand-text { font-family: var(--rhn-serif); font-weight: 800; font-size: 1.6rem; color: #fff; margin-bottom: 1rem; display: inline-block; letter-spacing: -.02em; }
.rhn-footer__brand-text b { color: #6fd05a; font-weight: 800; }
a.rhn-footer__brand-text:hover { color: #fff; }
a.rhn-footer__brand-text:hover b { color: #8ade77; }
.rhn-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.rhn-footer__bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.rhn-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.rhn-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #c3d6bd; }
.rhn-social a:hover { background: var(--rhn-green); border-color: var(--rhn-green); color: #fff; }
.rhn-social svg { width: 17px; height: 17px; }

/* ============================================================
   15. UTIL / STATES
   ============================================================ */
.rhn-divider { height: 1px; background: var(--rhn-line); margin: clamp(2rem,5vw,3rem) 0; border: 0; }
.rhn-no-results { text-align: center; padding: 4rem 1rem; color: var(--rhn-muted); }
.rhn-no-results h1 { margin-bottom: .5rem; }
.rhn-error-code { font-family: var(--rhn-serif); font-size: clamp(5rem,18vw,11rem); line-height: 1; color: var(--rhn-green-soft); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   16. RESPONSIVE / MOBILE NAV
   ============================================================ */
@media (max-width: 980px) {
  .rhn-burger { display: grid; }
  .rhn-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: #fff; z-index: 300;
    flex-direction: column; align-items: stretch; padding: 5rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s var(--rhn-ease); box-shadow: var(--rhn-shadow-lg);
  }
  .rhn-nav.is-open { transform: translateX(0); }
  .rhn-nav ul { flex-direction: column; gap: 0; }
  .rhn-nav > ul > li > a::after { display: none; }
  .rhn-nav a { padding: .85rem .5rem; font-size: 16px; border-bottom: 1px solid var(--rhn-line-soft); border-radius: 0; }
  .rhn-nav ul ul {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 0 1rem; min-width: 0;
  }
  .rhn-nav ul ul a { font-size: 14px; color: var(--rhn-muted); }
  .rhn-nav .menu-item-has-children > a::before { content: ""; }
  .rhn-nav__close { position: absolute; top: 1rem; right: 1rem; }
  .rhn-nav-overlay { position: fixed; inset: 0; background: rgba(15,26,12,.5); z-index: 250; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .rhn-nav-overlay.is-open { opacity: 1; visibility: visible; }
  body.rhn-nav-locked { overflow: hidden; }
}
@media (min-width: 981px) { .rhn-nav__close { display: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .rhn-hero__side-item { grid-template-columns: 80px 1fr; }
  .rhn-byline__share { display: none; }
}
