/*
Theme Name: SV Lennetal
Theme URI: https://sv-lennetal.de/
Author: SV Lennetal e.V.
Author URI: https://sv-lennetal.de/
Description: Eigenständiges, responsives WordPress-Theme für den Schützenverein Lennetal e.V. mit Vereinschronik, Sport- und Ergebnisbereichen, Beitragsarchiv, Quellenboxen, Kontaktseite und optionalem Einrichtungsassistenten.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sv-lennetal
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, news, wide-blocks
*/

:root {
  --brand: #06554b;
  --brand-dark: #033d37;
  --brand-soft: #dceae6;
  --gold: #c1935a;
  --gold-soft: #f0e4d4;
  --leaf: #64b352;
  --cream: #f7f3e8;
  --paper: #ffffff;
  --ink: #17332f;
  --muted: #5d716d;
  --line: #d8e1de;
  --warning: #fff4d6;
  --warning-line: #d19a22;
  --shadow: 0 18px 50px rgba(3, 61, 55, .12);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 999;
  padding: .8rem 1rem; background: white; border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus { left: 1rem; }

.mockup-strip {
  background: var(--brand-dark); color: #fff; font-size: .84rem;
  text-align: center; padding: .38rem 1rem; letter-spacing: .02em;
}
.mockup-strip strong { color: #f4d7a9; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,225,222,.9);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: 86px;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.03rem; letter-spacing: .01em; }
.brand-text span { color: var(--muted); font-size: .78rem; margin-top: .28rem; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .7rem .8rem; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem;
  padding: .68rem .78rem; border-radius: 11px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav .nav-cta { background: var(--brand); color: #fff; margin-left: .35rem; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--brand-dark); color: #fff; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 5.2rem 0; }
.section-sm { padding: 3.4rem 0; }
.section-alt { background: var(--cream); }
.section-brand { background: var(--brand); color: #fff; }
.section-brand a { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .9rem;
  color: var(--brand); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: .76rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-brand .eyebrow { color: #f4d7a9; }
.section-brand .eyebrow::before { background: #f4d7a9; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); max-width: 18ch; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 68ch; }
.section-brand .lead { color: rgba(255,255,255,.78); }
.kicker { font-size: 1.04rem; color: var(--muted); max-width: 76ch; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 22%, rgba(100,179,82,.17), transparent 20rem),
    linear-gradient(135deg, #f7f3e8 0%, #ffffff 54%, #e7f0ed 100%);
}
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -120px; bottom: -230px;
  border: 70px solid rgba(193,147,90,.13); border-radius: 50%;
}
.hero-grid {
  min-height: 690px; display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 4rem; position: relative; z-index: 1;
}
.hero-copy .lead { max-width: 57ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  min-height: 50px; padding: .78rem 1.15rem; border-radius: 13px;
  text-decoration: none; font-weight: 800; border: 1px solid transparent;
}
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { color: #fff; background: var(--brand-dark); }
.button-secondary { color: var(--brand-dark); border-color: var(--brand); background: rgba(255,255,255,.75); }
.button-secondary:hover { background: var(--brand-soft); }
.section-brand .button-primary { background: #fff; color: var(--brand-dark); }
.section-brand .button-primary:hover { background: var(--cream); }
.section-brand .button-secondary { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.logo-disc {
  width: min(440px, 90%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow); border: 1px solid rgba(6,85,75,.12);
  position: relative;
}
.logo-disc::before, .logo-disc::after {
  content: ""; position: absolute; border-radius: 50%; inset: 22px; border: 1px solid rgba(193,147,90,.36);
}
.logo-disc::after { inset: -22px; border-color: rgba(6,85,75,.14); }
.logo-disc img { width: 78%; height: 78%; object-fit: contain; }
.floating-note {
  position: absolute; background: #fff; border-radius: 15px; padding: .8rem 1rem; box-shadow: 0 14px 34px rgba(3,61,55,.12);
  font-weight: 750; font-size: .88rem; border-left: 4px solid var(--gold);
}
.floating-note.one { left: 0; top: 90px; }
.floating-note.two { right: 0; bottom: 90px; border-left-color: var(--leaf); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: -64px; position: relative; z-index: 3;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.35rem;
  box-shadow: 0 16px 40px rgba(3,61,55,.08);
}
.stat strong { display: block; color: var(--brand); font-size: 1.8rem; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.18fr .82fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.65rem;
  box-shadow: 0 14px 38px rgba(3,61,55,.06);
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1.15rem;
}
.card-icon svg { width: 25px; height: 25px; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-weight: 800; text-decoration: none; }

.news-card { overflow: hidden; padding: 0; }
.news-card .news-visual {
  min-height: 178px; padding: 1.3rem; display: flex; align-items: flex-end;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.22) 0 4%, transparent 4.5%),
    radial-gradient(circle at 70% 30%, transparent 0 16%, rgba(255,255,255,.16) 16.5% 18%, transparent 18.5%),
    linear-gradient(135deg, var(--brand), #0b7869);
  color: #fff;
}
.news-card:nth-child(2) .news-visual { background: linear-gradient(135deg, #8b6238, var(--gold)); }
.news-card:nth-child(3) .news-visual { background: linear-gradient(135deg, #3c7837, var(--leaf)); }
.news-card .news-body { padding: 1.55rem; }
.meta { color: var(--muted); font-size: .84rem; font-weight: 700; margin-bottom: .6rem; }
.tag {
  display: inline-flex; align-items: center; padding: .3rem .62rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .75rem;
}

.feature-panel {
  border-radius: 32px; background: var(--brand); color: #fff; padding: clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.feature-panel::after {
  content: ""; position: absolute; width: 320px; height: 320px; border: 56px solid rgba(255,255,255,.08);
  border-radius: 50%; right: -100px; bottom: -150px;
}
.feature-panel > * { position: relative; z-index: 1; }
.feature-panel .metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.metric { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; }
.metric strong { display: block; font-size: 1.45rem; color: #f4d7a9; }
.metric span { color: rgba(255,255,255,.72); font-size: .88rem; }

.timeline { position: relative; margin-top: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 3rem; padding: 0 0 2rem; position: relative; }
.timeline-year { font-size: 1.25rem; font-weight: 900; color: var(--brand); text-align: right; }
.timeline-body { position: relative; padding: 0 0 1rem; }
.timeline-body::before {
  content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold); left: -36px; top: .35rem; box-shadow: 0 0 0 6px #fff;
}
.timeline-body h3 { font-size: 1.16rem; margin-bottom: .45rem; }
.timeline-body p { color: var(--muted); margin: 0; }

.page-hero { background: linear-gradient(135deg, var(--cream), #fff 56%, var(--brand-soft)); padding: 5.2rem 0 4.5rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.55rem); max-width: 16ch; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs a { color: inherit; }

.quote {
  border-left: 5px solid var(--gold); background: var(--gold-soft); border-radius: 0 16px 16px 0;
  padding: 1.35rem 1.45rem; font-size: 1.1rem;
}
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.number-list { counter-reset: steps; list-style: none; padding: 0; display: grid; gap: 1rem; }
.number-list li { counter-increment: steps; position: relative; padding: 1.1rem 1.1rem 1.1rem 4rem; border: 1px solid var(--line); border-radius: 16px; }
.number-list li::before { content: counter(steps); position: absolute; left: 1rem; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; }

.source-box { margin-top: 3rem; border: 1px solid var(--line); border-radius: 16px; background: #fafcfb; }
.source-box summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 850; color: var(--brand-dark); }
.source-content { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .9rem; }
.source-content ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.source-content li { margin-bottom: .55rem; }
.editor-note {
  background: var(--warning); border: 1px solid var(--warning-line); border-radius: 14px;
  padding: 1rem 1.1rem; margin: 1.4rem 0; color: #674a0b;
}
.editor-note strong { display: block; margin-bottom: .25rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 750; font-size: .9rem; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .82rem .9rem; background: #fff;
}
textarea { min-height: 145px; resize: vertical; }
.map-placeholder {
  min-height: 330px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 47%, rgba(6,85,75,.07) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(6,85,75,.07) 47% 53%, transparent 53%),
    var(--cream);
  display: grid; place-items: center; text-align: center; padding: 2rem;
}

.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 4rem; align-items: start; }
.article-body { font-size: 1.04rem; }
.article-body h2 { font-size: 2rem; margin-top: 2.7rem; }
.article-body h3 { margin-top: 2rem; }
.article-aside { position: sticky; top: 120px; }
.article-aside .card { padding: 1.2rem; }

.site-footer { background: #062f2b; color: rgba(255,255,255,.78); padding: 4rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; }
.site-footer h3, .site-footer .h3 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer a { color: rgba(255,255,255,.8); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.6rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }

@media (max-width: 980px) {
  .header-inner { min-height: 74px; }
  .brand img { width: 54px; height: 54px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + .45rem);
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    padding: .7rem; display: none; flex-direction: column; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem .9rem; }
  .main-nav .nav-cta { margin-left: 0; }
  .main-nav .sub-menu { position: static; display: flex; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 .8rem; background: transparent; }
  .main-nav .sub-menu a { white-space: normal; font-weight: 600; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; min-height: auto; padding: 4.4rem 0 7rem; }
  .hero-visual { min-height: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col.wide-left, .article-shell { grid-template-columns: 1fr; gap: 2.4rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section { padding: 3.8rem 0; }
  .section-sm { padding: 2.7rem 0; }
  .brand-text span { display: none; }
  .brand img { width: 48px; height: 48px; }
  h1 { font-size: 2.65rem; }
  .hero-grid { padding-top: 3.2rem; }
  .hero-visual { min-height: 350px; }
  .floating-note { font-size: .78rem; padding: .62rem .75rem; }
  .floating-note.one { top: 55px; }
  .floating-note.two { bottom: 55px; }
  .stats, .grid-3, .grid-2, .feature-panel .metric-row, .form-grid { grid-template-columns: 1fr; }
  .stats { margin-top: -42px; }
  .timeline::before { left: 12px; }
  .timeline-item { grid-template-columns: 1fr; gap: .35rem; padding-left: 2.2rem; }
  .timeline-year { text-align: left; }
  .timeline-body::before { left: -30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 3.6rem 0 3rem; }
}

/* --------------------------------------------------------------------------
   WordPress integration
   -------------------------------------------------------------------------- */
:root {
  --wp--style--global--content-size: 760px;
  --wp--style--global--wide-size: 1180px;
}
body.admin-bar .site-header { top: 32px; }
.site-main { min-height: 55vh; }
.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 !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: var(--brand-dark);
  display: block; font-size: .9rem; font-weight: 800; height: auto; left: 1rem;
  line-height: normal; padding: .8rem 1rem; text-decoration: none; top: 1rem;
  width: auto; z-index: 100000; border-radius: 10px; box-shadow: var(--shadow);
}
.custom-logo-link { display: inline-flex; flex: 0 0 auto; }
.custom-logo { width: 64px; height: 64px; object-fit: contain; }
.site-title { margin: 0; font-size: 1.03rem; letter-spacing: .01em; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: .28rem 0 0; color: var(--muted); font-size: .78rem; }
.main-nav ul, .footer-nav ul {
  display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0;
}
.main-nav li { margin: 0; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav li:last-child > a { background: var(--brand); color: #fff; margin-left: .35rem; }
.main-nav li:last-child > a:hover,
.main-nav li:last-child.current-menu-item > a { background: var(--brand-dark); color: #fff; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + .35rem); left: 0; z-index: 20; min-width: 220px;
  display: none; flex-direction: column; align-items: stretch; gap: .15rem; padding: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.main-nav .sub-menu a { display: block; margin: 0; white-space: nowrap; }
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(3,61,55,.08); }
.site-content > :first-child { margin-top: 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :where(:not(.alignwide):not(.alignfull):not(.container):not(.section):not(.page-hero):not(.hero)) {
  width: min(760px, calc(100% - 2rem)); margin-left: auto; margin-right: auto;
}
.entry-content > .alignwide { width: min(var(--max), calc(100% - 2rem)); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content .container > *:first-child { margin-top: 0; }
.entry-content .container > *:last-child { margin-bottom: 0; }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .45rem; }
.entry-content blockquote { margin: 2rem auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem auto; }
.entry-header-default { padding: 4.8rem 0 2.2rem; background: linear-gradient(135deg, var(--cream), #fff 56%, var(--brand-soft)); }
.entry-header-default .entry-title { max-width: 18ch; }
.entry-meta { color: var(--muted); font-size: .9rem; font-weight: 650; }
.entry-meta a { color: inherit; }
.entry-footer { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.4rem; }
.archive-header { padding-bottom: 1rem; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.posts-grid .card { display: flex; flex-direction: column; }
.posts-grid .card-link { margin-top: auto; }
.post-thumbnail { display: block; border-radius: 18px; overflow: hidden; margin-bottom: 1.2rem; }
.post-thumbnail img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-visual.has-image { min-height: 0; padding: 0; }
.news-visual.has-image img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; }
.page-numbers, .post-page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; min-height: 42px;
  padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none;
}
.page-numbers.current, .page-numbers:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: block; text-decoration: none; font-weight: 800; }
.nav-subtitle { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.comments-area { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; }
.comment-meta { font-size: .86rem; color: var(--muted); }
.comment-form { display: grid; gap: .8rem; }
.comment-form p { margin: 0; }
.comment-form input[type="submit"] { width: auto; cursor: pointer; background: var(--brand); color: #fff; border: 0; font-weight: 800; }
.search-form { display: flex; gap: .55rem; max-width: 680px; }
.search-form label { flex: 1; }
.search-submit { border: 0; border-radius: 12px; background: var(--brand); color: #fff; padding: .8rem 1rem; font-weight: 800; cursor: pointer; }
.no-results { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.footer-nav ul { flex-direction: column; align-items: flex-start; gap: .5rem; }
.footer-nav a { color: rgba(255,255,255,.8); }
.footer-contact { font-style: normal; }
.site-footer .custom-logo { width: 62px; height: 62px; }
.footer-bottom-menu { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom-menu a { color: inherit; }
.footer-bottom-menu ul, ul.footer-bottom-menu { list-style: none; margin: 0; padding: 0; }

/* Editorial source information */
.svl-source-box { margin-top: 3rem; margin-bottom: 3rem; }
.svl-source-box[open] summary { border-bottom: 1px solid var(--line); }
.svl-editor-note { display: none; }
.logged-in.admin-bar .svl-editor-note,
body.svl-can-edit .svl-editor-note { display: block; }
.svl-source-list a { overflow-wrap: anywhere; }
.svl-source-list small { display: block; margin-top: .15rem; }

/* Contact form */
.svl-form-status { border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.svl-form-status.success { background: #e7f6e5; border: 1px solid #7bbd72; color: #24551e; }
.svl-form-status.error { background: #fff0ed; border: 1px solid #d58a7c; color: #762b20; }
.svl-honeypot { position: absolute !important; left: -9999px !important; }
.required { color: #9a321e; }
.form-consent { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.form-consent input { width: auto; margin-top: .25rem; }

/* Gutenberg block harmonisation */
.wp-block-button__link, .wp-element-button {
  border-radius: 13px; min-height: 48px; display: inline-flex; align-items: center;
  font-weight: 800; padding: .72rem 1.1rem; text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--brand-dark); border-color: var(--brand); }
.wp-block-group.is-style-svl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.65rem; box-shadow: 0 14px 38px rgba(3,61,55,.06); }
.wp-block-group.is-style-svl-panel { background: var(--brand); color: #fff; border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); }
.wp-block-quote.is-style-svl-quote { border-left: 5px solid var(--gold); background: var(--gold-soft); border-radius: 0 16px 16px 0; padding: 1.35rem 1.45rem; }
.wp-block-paragraph.is-style-svl-notice, p.is-style-svl-notice { background: var(--warning); border: 1px solid var(--warning-line); border-radius: 14px; padding: 1rem 1.1rem; color: #674a0b; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; }
.wp-block-table th { background: var(--brand-soft); color: var(--brand-dark); }
.wp-block-image img { border-radius: 14px; }
.wp-block-separator { border-color: var(--line); }
.wp-block-query .wp-block-post-template { list-style: none; padding: 0; }

/* 404 */
.error-404 { text-align: center; max-width: 760px; margin: 0 auto; }
.error-code { color: var(--gold); font-size: clamp(4rem, 14vw, 9rem); line-height: 1; font-weight: 900; letter-spacing: -.07em; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav li:last-child > a { margin-left: 0; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 680px) {
  .custom-logo { width: 48px; height: 48px; }
  .site-title { font-size: .95rem; }
  .site-description { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .search-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .actions, .post-navigation, .comments-area { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .site-main { min-height: 0; }
}
