/*
Theme Name: The Civic Journal
Theme URI: https://thecivicjournal.com
Author: The Civic Journal
Description: Custom news theme for The Civic Journal — editorial homepage, tight article layout, share buttons, Instagram-ready "Download post" images, dark mode, contact / policy page templates, automatic WebP image compression and Rank Math SEO fixes.
Version: 1.1.1
Requires at least: 6.0
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: civic-journal
*/

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7e2d9;
  --paper: #faf8f4;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --live: #dc2626;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --line: #1e293b;
  --paper: #0b1120;
  --card: #111a2e;
}
.logo--light-ink { display: none; }
[data-theme="dark"] .logo--dark-ink { display: none; }
[data-theme="dark"] .logo--light-ink { display: block; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 12.5px; }
[data-theme="dark"] .topbar { background: #020617; }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 36px; }
.topbar__weather { color: #94a3b8; }
.topbar__links { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.topbar__links a:hover { color: #fff; }
.theme-toggle { background: none; border: 1px solid #334155; color: #e2e8f0; border-radius: 99px; width: 26px; height: 22px; cursor: pointer; }

/* Masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 18px; }
.logo img { height: 92px; width: auto; margin-bottom: -18px; }
.masthead__inner { padding-bottom: 6px; }
.masthead__inner .logo { grid-column: 2; }
.masthead__actions { grid-column: 3; }
@media (min-width: 761px) { .masthead .menu-btn { display: none; } }

/* Mobile menu drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 90; }
.drawer-overlay[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--paper); color: var(--ink); z-index: 95; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 18px; border-bottom: 1px solid var(--line); }
.drawer__logo { height: 56px; width: auto; margin-bottom: -10px; }
.drawer__head .icon-btn { font-size: 30px; line-height: 1; padding: 2px 10px 6px; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 18px 16px; display: flex; flex-direction: column; }
.drawer__nav h4 { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 0 4px; }
.drawer__nav a { padding: 10px 0; font: 600 16px var(--sans); border-bottom: 1px solid var(--line); }
.drawer__nav a.active, .drawer__nav a:hover { color: var(--accent); }
.drawer__foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 22px; border-top: 1px solid var(--line); }
.drawer__foot .insta-btn { justify-content: center; }
.drawer__foot .btn { justify-content: center; }
.masthead__actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.icon-btn { display: inline-flex; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; border-radius: 8px; justify-self: start; }
.insta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 99px; color: #fff; font: 600 13px var(--sans); background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); box-shadow: 0 2px 10px rgba(221,42,123,.25); transition: transform .15s, box-shadow .15s; }
.insta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(221,42,123,.35); }
.icon-btn:hover { background: var(--line); }
.tagline { text-align: center; margin: -6px 0 12px; font: italic 14px var(--serif); color: var(--muted); }
.btn { display: inline-flex; align-items: center; border: 0; border-radius: 99px; padding: 9px 18px; font: 600 13px var(--sans); cursor: pointer; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--light { background: #fff; color: var(--ink); }
[data-theme="dark"] .btn--light { color: #0f172a; }

.nav { border-top: 1px solid var(--line); }
.nav__inner { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 12px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Ticker */
.ticker { background: var(--card); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 16px; height: 44px; overflow: hidden; }
.ticker__label { display: inline-flex; align-items: center; gap: 8px; color: var(--live); font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(220,38,38,.6)} 70%{box-shadow:0 0 0 8px rgba(220,38,38,0)} 100%{box-shadow:0 0 0 0 rgba(220,38,38,0)} }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__items { display: flex; gap: 48px; white-space: nowrap; animation: scroll 60s linear infinite; width: max-content; }
.ticker__items a { font-size: 14px; font-weight: 500; }
.ticker__items a:hover { color: var(--accent); }
.ticker:hover .ticker__items { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Shared */
.kicker { display: inline-block; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.kicker--light { color: #bfdbfe; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.meta span + span::before { content: "·"; margin-right: 8px; }
.h { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 8px; letter-spacing: -.005em; }
.h a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.thumb { display: block; overflow: hidden; border-radius: 6px; background: var(--line); aspect-ratio: 16/10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
article:hover .thumb img { transform: scale(1.04); }
.excerpt { color: var(--ink-2); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Front page */
.front { display: grid; grid-template-columns: 1.15fr 1.6fr 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.front__col { display: flex; flex-direction: column; gap: 22px; }
.front__col + .front__col { border-left: 1px solid var(--line); padding-left: 32px; }
.front__left article + article { border-top: 1px solid var(--line); padding-top: 22px; }
.front__left .h { font-size: 21px; }
.lead .thumb { aspect-ratio: 3/2; border-radius: 8px; margin-bottom: 16px; }
.lead .h { font-size: 36px; font-weight: 700; }
.lead .excerpt { font-size: 16.5px; font-family: var(--serif); -webkit-line-clamp: 4; }
.front__list { border-top: 3px solid var(--ink); padding-top: 12px; }
.front__list h4 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px; }
.front__list ul { list-style: none; margin: 0; padding: 0; }
.front__list li { padding: 11px 0 11px 16px; border-bottom: 1px solid var(--line); position: relative; }
.front__list li:last-child { border-bottom: 0; }
.front__list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.front__list a { display: block; font: 600 16px/1.3 var(--serif); }
.front__list a:hover { color: var(--accent); }
.front__list span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.lead-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.lead-subs .thumb { margin-bottom: 10px; }
.lead-subs .h { font-size: 17px; }
.front__right article { display: grid; grid-template-columns: 1fr 92px; gap: 14px; }
.front__right article + article { border-top: 1px solid var(--line); padding-top: 18px; }
.front__right .thumb { aspect-ratio: 1; }
.front__right .h { font-size: 16.5px; }
.front__right .kicker { margin-bottom: 4px; }

/* Sections */
.section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 22px; }
.section__head h2 { font: 700 24px var(--serif); margin: 0; }
.section__head h2 small { font: 500 12px var(--sans); color: var(--muted); margin-left: 10px; text-transform: uppercase; letter-spacing: .08em; }
.section__head a { font-size: 13px; font-weight: 600; color: var(--accent); }

.latest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.latest .thumb { margin-bottom: 12px; }
.latest .h { font-size: 18px; }

.split { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.cat-list article { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cat-list article:first-child { padding-top: 0; }
.cat-list article:last-child { border-bottom: 0; }
.cat-list .h { font-size: 22px; }

.sidebar { display: flex; flex-direction: column; gap: 28px; }
.most-read { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.most-read h3 { font: 700 20px var(--serif); margin: 0 0 8px; }
.most-read ol { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.most-read li:first-child { border-top: 0; }
.most-read li::before { content: counter(mr); font: 700 26px/1 var(--serif); color: var(--accent); }
.most-read a { font: 600 15px/1.3 var(--serif); }
.most-read a:hover { color: var(--accent); }

.sidebar .most-read { position: sticky; top: 150px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.overlay { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; background: #000; }
.overlay img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s, opacity .3s; }
.overlay:hover img { transform: scale(1.05); opacity: .7; }
.overlay__body { position: absolute; inset: auto 0 0 0; padding: 80px 22px 22px; background: linear-gradient(transparent, rgba(2,6,23,.75) 40%, rgba(2,6,23,.95)); color: #fff; }
.overlay .kicker { color: #93c5fd; }
.overlay .h { font-size: 23px; color: #fff; }
.overlay .meta { color: #cbd5e1; }

.brand__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.brand article { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.brand .thumb { border-radius: 0; }
.brand .brand__body { padding: 14px 16px 16px; }
.brand .h { font-size: 16.5px; }
.brand .kicker { color: #b45309; }

/* Footer */
.footer { background: #0b1120; color: #94a3b8; margin-top: 48px; padding: 48px 0 20px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { width: 210px; max-width: 100%; height: auto; margin: 0 0 6px; }
.footer__brand p { margin: 0 0 14px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 14px; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .footer__social { display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; border: 1px solid #334155; border-radius: 99px; padding: 7px 14px; font-size: 13px; }
.footer .footer__social:hover { border-color: #dd2a7b; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 18px; font-size: 12.5px; }
.footer__bottom a { display: inline; padding: 0; }

/* Article page */
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 20px 0 28px; }
.article__title { font: 700 40px/1.12 var(--serif); letter-spacing: -.01em; margin: 0 0 10px; }
.article__dek { font: 400 19px/1.45 var(--serif); color: var(--ink-2); margin: 0 0 14px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 14px var(--sans); }
.byline__text { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.byline__text strong { color: var(--ink); font-size: 14px; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sans); color: var(--muted); margin-right: 4px; }
.share__btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.share__btn:hover { color: #fff; border-color: transparent; transform: translateY(-1px); }
.share__btn--whatsapp:hover { background: #25d366; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x:hover { background: #000; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__btn--telegram:hover { background: #229ed9; }
.share__btn--copy:hover { background: var(--ink); }
.btn--download { margin-left: auto; gap: 8px; background: var(--ink); color: var(--paper); padding: 9px 16px; }
.btn--download:hover { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--lg { padding: 12px 26px; font-size: 14px; }
.sponsored-note { margin-top: 14px; padding: 10px 14px; background: #fef3c7; color: #92400e; border-radius: 8px; font-size: 13px; }
.article__figure { margin: 16px 0 18px; }
.article__media { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0b1120; }
.article__media::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover no-repeat; filter: blur(30px) brightness(.6); }
.article__media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.article__figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.article__body { font: 400 18.5px/1.7 var(--serif); color: var(--ink); }
.article__body p { margin: 0 0 1.05em; }
.article__body h2 { font: 700 26px/1.25 var(--serif); margin: 1.4em 0 .5em; }
.article__body h3 { font: 700 21px/1.3 var(--serif); margin: 1.3em 0 .4em; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.article__body li { margin-bottom: .4em; }
.article__body img { border-radius: 6px; height: auto; }
.article__body blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-style: italic; color: var(--ink-2); }
.article__body table { width: 100%; border-collapse: collapse; font: 14px var(--sans); margin: 0 0 1.2em; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tags a { font: 500 12.5px var(--sans); padding: 5px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.article__end { margin-top: 8px; }
.article__end p { margin: 0 0 6px; font: 600 14px var(--sans); }
.post-aside .aside-box { position: sticky; top: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.aside-box h3 { font: 700 19px var(--serif); margin: 0 0 6px; }
.aside-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font: 600 14px/1.3 var(--serif); }
.aside-item:first-of-type { border-top: 0; }
.aside-item img { width: 76px; height: 60px; object-fit: cover; border-radius: 5px; }
.aside-item em { display: block; font: 700 10px var(--sans); font-style: normal; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.aside-item small { display: block; font: 400 11.5px var(--sans); color: var(--muted); margin-top: 4px; }
.aside-item:hover { color: var(--accent); }
.related { padding-top: 24px; }

/* Download modal + toast */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(2,6,23,.7); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal__box { position: relative; background: var(--card); color: var(--ink); border-radius: 14px; padding: 22px; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal__box h3 { font: 700 22px var(--serif); margin: 0; }
.modal__sub { margin: 2px 0 14px; font-size: 13px; color: var(--muted); }
.modal__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal__preview { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #0b1120; }
.modal__preview img { width: 100%; height: 100%; }
.modal__loading { position: absolute; inset: 0; display: none; place-items: center; color: #cbd5e1; font-size: 14px; }
.modal.loading .modal__loading { display: grid; }
.modal.loading .modal__preview img { visibility: hidden; }
.modal__actions { display: flex; gap: 10px; margin-top: 14px; }
.modal__actions .btn { flex: 1; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font: 600 13px var(--sans); opacity: 0; pointer-events: none; transition: all .25s; z-index: 110; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Static pages */
.page-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 24px 0 40px; }
.page-nav { position: sticky; top: 150px; align-self: start; display: flex; flex-direction: column; }
.page-nav h4 { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.page-nav h4:not(:first-child) { margin-top: 22px; }
.page-nav a { padding: 7px 12px; border-left: 2px solid var(--line); font-size: 14px; color: var(--ink-2); }
.page-nav a:hover { color: var(--ink); }
.page-nav a.active { border-left-color: var(--accent); color: var(--accent); font-weight: 600; background: var(--card); }
article.page { max-width: 800px; }
.page__title { font: 700 42px/1.1 var(--serif); margin: 0 0 6px; }
.page__updated { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.page__intro { font: 400 20px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page__body { font-size: 17.5px; }
.page__body h2 { font-size: 23px; margin-top: 1.2em; }
.page__contact { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; font-size: 14.5px; }
.page__contact svg { color: var(--accent); flex-shrink: 0; }
.page__contact a, .page__intro a { color: var(--accent); font-weight: 600; }

/* Contact page */
.contact-hero { padding: 24px 0 8px; max-width: 760px; }
.contact-hero .page__intro { border-bottom: 0; padding-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; padding: 8px 0 44px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.contact-card__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(37,99,235,.1); color: var(--accent); }
.contact-card h3 { font: 700 17px var(--serif); margin: 0 0 4px; }
.contact-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.contact-card a { color: var(--accent); font-weight: 600; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 14px; }
.contact-form h2 { font: 700 24px var(--serif); margin: 0 0 4px; }
.contact-form label { display: grid; gap: 6px; font: 600 13px var(--sans); color: var(--ink-2); }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: 15px var(--sans); padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(37,99,235,.35); border-color: var(--accent); }
.contact-form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.contact-form .check input { width: auto; }
.contact-form .check a { color: var(--accent); }
.contact-form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin: 0; font-size: 14px; color: #15803d; }

/* Responsive */
@media (max-width: 1080px) {
  .front { grid-template-columns: 1.6fr 1fr; }
  .front__left { grid-column: 1 / -1; order: 3; flex-direction: row; border-top: 1px solid var(--line); padding-top: 22px; }
  .front__left article + article { border-top: 0; padding-top: 0; }
  .front__col.front__left { border-left: 0; padding-left: 0; }
  .latest, .brand__row { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .post-aside { display: none; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar__weather, .topbar__links a { display: none; }
  .logo img { height: 52px; }
  .masthead__inner { grid-template-columns: 1fr auto; padding-top: 10px; }
  .masthead__inner .logo { grid-column: 1; }
  .masthead__actions { grid-column: 2; gap: 4px; }
  .masthead .insta-btn span { display: none; }
  .masthead .insta-btn { padding: 8px; }
  .article__title { font-size: 29px; }
  .article__dek { font-size: 17px; }
  .article__body { font-size: 17.5px; }
  .btn--download { margin-left: 0; }
  .page-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .page-nav h4 { display: none; }
  .page-nav a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; }
  .page__title { font-size: 32px; }
  .contact-grid, .field-row { grid-template-columns: 1fr; }
  .tagline { display: none; }
  .nav__inner { justify-content: flex-start; }
  .front, .split { grid-template-columns: 1fr; }
  .front__col + .front__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .front__left { flex-direction: column; }
  .lead .h { font-size: 28px; }
  .cat-list article { grid-template-columns: 120px 1fr; gap: 14px; }
  .cat-list .h { font-size: 17px; }
  .cat-list .excerpt { display: none; }
  .trio { grid-template-columns: 1fr; }
  .latest, .brand__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}


/* ---------- WordPress additions ---------- */
.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; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 10px 16px; left: 8px; top: 8px; z-index: 1000; background: var(--card); color: var(--ink); border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
h1.logo, div.logo { margin: 0; font-size: inherit; line-height: 0; }
.custom-logo-link img, .logo img.custom-logo { height: 92px; width: auto; }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }

.site-search { border-top: 1px solid var(--line); padding: 12px 0; }
.site-search[hidden] { display: none; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: 15px var(--sans); }
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form .btn { gap: 6px; }
.site-search .search-form { margin: 0 auto; }

.alignleft { float: left; margin: 4px 20px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.article__body img, .article__body figure { max-width: 100%; height: auto; }
.article__body figure { margin: 18px 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption, .article__body figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.article__body iframe, .article__body embed, .article__body video { max-width: 100%; }
.article__body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article__body blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-style: italic; }
.article__body::after { content: ""; display: table; clear: both; }
.article__media img { height: auto; }
.page-links { margin: 16px 0; font-weight: 600; }

.archive-head { padding: 22px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.archive-head__title { font: 700 40px/1.1 var(--serif); margin: 6px 0 4px; }
.archive-head__desc { color: var(--muted); margin: 4px 0 12px; }
.archive-head__desc p { margin: 0; }
.archive-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.archive-lead .h { font-size: 30px; }
.archive-grid { margin-bottom: 24px; }
.empty-state { padding: 40px 0; }

.pagination, .navigation.pagination { margin: 10px 0 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nav-links .page-numbers { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font: 600 14px var(--sans); }
.nav-links .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-links a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.nav-links .dots { border: 0; background: none; }

.not-found { text-align: center; padding: 50px 0 20px; max-width: 640px; margin: 0 auto; }
.not-found__code { font: 700 96px/1 var(--serif); color: var(--accent); margin: 0; }
.not-found .search-form { margin: 18px auto; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.form-notice--ok { background: #dcfce7; color: #14532d; }
.form-notice--error { background: #fee2e2; color: #7f1d1d; }
.page__intro p { margin: 0 0 10px; }
.page__body a, .article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-nav a.active { color: var(--accent); }

@media (max-width: 760px) {
  .archive-lead { grid-template-columns: 1fr; gap: 12px; }
  .archive-head__title { font-size: 30px; }
  .custom-logo-link img, .logo img.custom-logo { height: 64px; }
}
