/*
Theme Name: Versicherungstester
Theme URI: https://der-versicherungstester.com/
Author: Der Versicherungstester
Author URI: https://der-versicherungstester.com/
Description: Ein ruhiges, redaktionelles und SEO-freundliches WordPress-Theme für Der Versicherungstester. Klare Typografie, großzügige Abstände, schnelle Ladezeiten und ein vertrauenswürdiges Markendesign.
Version: 2.0.0
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: versicherungstester
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  /* Brand */
  --brand:       #1772BF;
  --brand-deep:  #0E5490;
  --brand-ink:   #0B3A63;
  --tint:        #EFF6FC;
  --tint-2:      #F7FBFE;

  /* Neutrals */
  --ink:      #10263D;
  --body:     #4A5C6E;
  --muted:    #7C8C9C;
  --line:     #E4EBF2;
  --line-2:   #EFF4F8;
  --bg:       #FFFFFF;
  --surface:  #F7FAFC;
  --footer-bg:#0C2136;

  /* Spacing scale */
  --sp-1: .5rem;
  --sp-2: .75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 2.5rem;
  --sp-7: 3.5rem;
  --sp-8: 5rem;

  /* Section rhythm */
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gutter:    clamp(1.25rem, 4vw, 2rem);

  /* Widths */
  --container: 1200px;
  --content:   720px;

  /* Shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16,38,61,.05);
  --shadow:    0 8px 24px rgba(16,38,61,.08);
  --shadow-lg: 0 20px 48px rgba(16,38,61,.12);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 84px;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.4em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.3em; }
li { margin: .45em 0; }
strong, b { font-weight: 700; color: var(--ink); }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-deep); }

blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--tint);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .93em; }
code { background: var(--tint); padding: .15em .4em; border-radius: 4px; color: var(--brand-deep); }
pre { background: var(--ink); color: #E6F0F8; padding: var(--sp-4); border-radius: var(--r); overflow: auto; }
pre code { background: none; color: inherit; padding: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

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

/* =========================================================
   3. Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-content { padding-block: var(--section-y); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: var(--sp-8); } }

.readable { max-width: var(--content); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding img, .custom-logo { max-height: 42px; width: auto; display: block; }
.site-title-text { font-size: 1.2rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.site-title-text .sub { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }

/* Navigation cluster on the right */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--sp-1); }
.main-nav li { margin: 0; position: relative; }
.main-nav > ul > li > a {
  display: block; padding: .6rem .9rem; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: .975rem;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-category-ancestor > a,
.main-nav .current-page-ancestor > a { background: var(--tint); color: var(--brand-deep); }

/* Dropdown */
.main-nav ul ul {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: var(--sp-1); display: none; flex-direction: column; z-index: 60;
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }
.main-nav ul ul a { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); color: var(--body); font-weight: 500; font-size: .95rem; }
.main-nav ul ul a:hover { background: var(--tint); color: var(--brand-deep); }

/* Icon buttons (search / menu toggle) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); cursor: pointer; transition: all .15s ease; padding: 0;
}
.icon-btn:hover { background: var(--tint); border-color: var(--brand); color: var(--brand-deep); }
.icon-btn[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-toggle { display: none; }

/* Search drawer */
.header-search {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding-block: var(--sp-4);
}
.header-search.open { display: block; }
.header-search .search-form { max-width: 620px; margin-inline: auto; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-125%); transition: transform .25s ease;
    visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: .85rem .75rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .main-nav ul ul { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 var(--sp-3); }
}

/* =========================================================
   5. Hero (front page) — light & editorial
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tint) 0%, #FBFDFF 70%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(23,114,191,.10), transparent 65%);
}
/* Split hero: copy on the left, photograph on the right. */
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-text { max-width: 560px; }
.kicker {
  display: inline-block;
  color: var(--brand); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: var(--sp-3);
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lead {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.65; color: var(--body);
  margin: 0 0 var(--sp-5);
}
.hero-trust {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  color: var(--muted); font-size: .93rem; font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { color: var(--brand); flex-shrink: 0; }

/* Hero photograph */
.hero-media { position: relative; }
.hero-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
/* Soft brand tile peeking out behind the photo */
.hero-media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 62%; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(23,114,191,.16), rgba(143,187,224,.10));
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-7) var(--sp-6); }
  .hero-text { max-width: none; }
  .hero-media::before { display: none; }
}

/* Phones: text-only hero — the photo is dropped so the headline and the
   article start higher up the screen. */
@media (max-width: 640px) {
  .hero-media { display: none; }
  .hero-grid { padding-block: var(--sp-7); gap: 0; }
}

/* The same photograph is embedded inside the homepage article. It is shown
   full size in the hero above, so the small inline duplicate is hidden on
   the front page only. Post content in the database is untouched. */
.home .entry-content img[src*="der-versicherungstester-Startseite"] { display: none; }

/* =========================================================
   6. Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .9rem 1.6rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .16s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--tint); }

/* =========================================================
   7. Section headings
   ========================================================= */
.section-head { max-width: 640px; margin: 0 auto var(--sp-7); text-align: center; }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); text-align: left; max-width: none; margin-bottom: var(--sp-6);
}
.section-head--row h2 { margin: 0; }
.section-head--row .more { color: var(--brand); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 600px) { .section-head--row { flex-direction: column; align-items: flex-start; } }

/* =========================================================
   8. Post cards
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--sp-5);
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3E2F0; }
.card-thumb { display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.placeholder { display: grid; place-items: center; color: var(--brand); opacity: .35; }

.card-body { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 var(--sp-2); }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card .excerpt { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 var(--sp-4); }
.card .card-meta {
  margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--muted); font-size: .85rem;
}
.card .card-meta span { display: inline-flex; align-items: center; gap: .35rem; }

.cat-badge {
  display: inline-block; align-self: flex-start;
  color: var(--brand); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: var(--sp-2);
}
.cat-badge:hover { color: var(--brand-deep); }

/* =========================================================
   9. Topic tiles
   ========================================================= */
/* Explicit breakpoints keep a 4-topic row balanced (no 3 + 1 orphan). */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 1080px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .topic-grid { grid-template-columns: 1fr; } }
.topic {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-5); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: all .2s ease;
}
.topic:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.topic .ico {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r); background: var(--tint); color: var(--brand);
  margin-bottom: var(--sp-2);
}
.topic h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.topic .count { color: var(--muted); font-size: .9rem; }

/* =========================================================
   10. Article
   ========================================================= */
.article-header { margin-bottom: var(--sp-6); }
.article-header h1 { margin-bottom: var(--sp-4); }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-4);
  color: var(--muted); font-size: .92rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }

.featured-media { margin: 0 0 var(--sp-6); border-radius: var(--r-lg); overflow: hidden; }
.featured-media img { width: 100%; display: block; }

.entry-content { font-size: 1.09rem; line-height: 1.8; }
.entry-content > h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.entry-content > h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: #B9D5EC; }
.entry-content a:hover { text-decoration-color: var(--brand); }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin: var(--sp-6) 0; }
.entry-content figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: var(--sp-2); }

/* Content lists with subtle blue markers */
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul > li { position: relative; padding-left: 1.75rem; }
.entry-content ul > li::before {
  content: ""; position: absolute; left: .2rem; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.entry-content ol { padding-left: 1.35em; }
.entry-content ol > li::marker { color: var(--brand); font-weight: 700; }

.entry-content table { width: 100%; border-collapse: collapse; margin: var(--sp-6) 0; font-size: .98rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .8rem 1rem; text-align: left; }
.entry-content th { background: var(--tint); color: var(--ink); font-weight: 700; }

/* Article footer */
.entry-footer {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.tag-list a {
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: .85rem; padding: .3rem .8rem; border-radius: 100px;
}
.tag-list a:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--tint); }

.share { display: flex; align-items: center; gap: var(--sp-1); }
.share .share-label { color: var(--muted); font-size: .88rem; margin-right: .25rem; }
.share a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
}
.share a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Prev / next */
.post-nav { margin-top: var(--sp-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block; padding: var(--sp-4); border: 1px solid var(--line);
  border-radius: var(--r); background: #fff; transition: all .16s ease;
}
.post-nav a:hover { border-color: var(--brand); background: var(--tint-2); }
.post-nav .label { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .3rem; }
.post-nav .title { display: block; color: var(--ink); font-weight: 600; line-height: 1.4; font-size: .98rem; }
.post-nav .next { text-align: right; }

/* Related */
.related { margin-top: var(--sp-8); padding-top: var(--sp-7); border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; margin-bottom: var(--sp-5); }

/* =========================================================
   11. Sidebar
   ========================================================= */
.sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-5); }
@media (max-width: 960px) { .sidebar { position: static; } }

.widget {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.widget > :last-child { margin-bottom: 0; }
.widget .widget-title, .widget > h2, .widget > h3 {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin: 0 0 var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-2);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.widget ul li:first-child { padding-top: 0; }
.widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget ul li a { color: var(--body); font-size: .97rem; line-height: 1.5; }
.widget ul li a:hover { color: var(--brand); }
.widget img { border-radius: var(--r-sm); }
.widget select { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }

.tagcloud { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.tagcloud a {
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  padding: .3rem .75rem; border-radius: 100px; font-size: .84rem !important;
}
.tagcloud a:hover { border-color: var(--brand); color: var(--brand-deep); }

/* Gallery widget tidy-up */
.widget .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-1); margin: 0; }
.widget .gallery-item { margin: 0 !important; width: auto !important; }
.widget .gallery img { border: 0 !important; border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; }

/* =========================================================
   12. Page banner (archives / pages)
   ========================================================= */
.page-banner { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-banner .inner { padding-block: clamp(2.5rem, 5vw, 3.75rem); max-width: var(--content); }
.page-banner h1 { margin-bottom: var(--sp-2); }
.page-banner p { color: var(--body); margin: 0; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: var(--sp-3); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }

/* =========================================================
   13. Pagination
   ========================================================= */
.pagination { margin-top: var(--sp-7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; justify-content: center; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: .95rem; background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--tint); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

/* =========================================================
   14. Footer
   ========================================================= */
.site-footer { background: var(--footer-bg); color: #9DB2C4; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-7) var(--sp-6); } }
.footer-brand img { max-height: 40px; width: auto; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { color: #8AA0B4; max-width: 360px; font-size: .96rem; margin: 0; }
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 var(--sp-4); }
.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col li { padding: .4rem 0; }
.site-footer a { color: #9DB2C4; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
/* widgets placed in footer */
.site-footer .widget { background: none; border: 0; padding: 0; }
.site-footer .widget .widget-title, .site-footer .widget > h2, .site-footer .widget > h3 {
  color: #fff; border-bottom: 0; padding-bottom: 0; margin-bottom: var(--sp-4);
}
.site-footer .widget ul li { border-bottom: 0; padding: .4rem 0; }
.site-footer .widget ul li a { color: #9DB2C4; }
.site-footer .widget ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2) var(--sp-5); font-size: .9rem; color: #74899C;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* =========================================================
   15. Search form / states
   ========================================================= */
.search-form { display: flex; gap: var(--sp-2); }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: .75rem 1rem; font: inherit;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.search-form input[type="search"]::placeholder { color: var(--muted); }
.search-form input[type="search"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(23,114,191,.12); }
.search-form button {
  display: inline-grid; place-items: center; padding: 0 1.1rem;
  background: var(--brand); color: #fff; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.search-form button:hover { background: var(--brand-deep); }

.no-results { text-align: center; padding-block: var(--sp-8); max-width: 560px; margin-inline: auto; }
.no-results .ico { color: var(--brand); opacity: .4; margin-bottom: var(--sp-4); }
.no-results p { color: var(--muted); }

/* =========================================================
   16. WordPress core classes
   ========================================================= */
.alignleft { float: left; margin: .3rem var(--sp-5) var(--sp-4) 0; }
.alignright { float: right; margin: .3rem 0 var(--sp-4) var(--sp-5); }
.aligncenter { display: block; margin-inline: auto; text-align: center; }
.alignwide { width: min(1080px, 100vw - 2 * var(--gutter)); margin-inline: auto; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: .88rem; text-align: center; margin-top: var(--sp-2); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.page-links { margin-top: var(--sp-5); font-weight: 600; }
.page-links a { padding: .2rem .5rem; }
