/*
Theme Name: OneEarth
Theme URI: https://oneearth.co.ke/
Author: TWM Digital Solutions
Description: A calm, editorial theme for OneEarth. Warm ivory pages, navy type, a dawn palette of blue and orange, serif headlines and no icons. Includes an editorial hero, top stories, colour-coded section cards, latest stories, newsletter, popular topics and a quote banner.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.8
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: oneearth
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Fonts (self-hosted, SIL OFL) */
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("assets/fonts/newsreader-latin-opsz.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-display: swap; font-weight: 200 800; src: url("assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 400; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 500; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 600; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--oe-ink: #0E2238;
	--oe-text: #33465C;
	--oe-muted: #5A6B7E;
	--oe-soft: #4A5C70;
	--oe-ground: #FBF8F3;
	--oe-paper: #FFFFFF;
	--oe-line: #E6DFD3;
	--oe-line-2: #ECE5D9;
	--oe-sky: #EAF1F9;
	--oe-sand: #F1E2CA;
	--oe-blue: #2459A6;
	--oe-ember: #BD5400;
	--oe-orange: #E36800;
	--oe-teal: #1F7F7F;
	--oe-green: #005D3B;
	--oe-peach: #F6C79B;

	--oe-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--oe-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--oe-wrap: 1240px;
	--oe-gutter: clamp(18px, 3vw, 32px);
	--oe-section: clamp(64px, 8vw, 104px);
	--oe-shadow: 0 24px 60px rgba(14, 34, 56, .08);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--oe-head-h, 80px) + var(--wp-admin--admin-bar--height, 0px) + 16px); }
body { margin: 0; background: var(--oe-ground); color: var(--oe-ink); font-family: var(--oe-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--oe-blue); }
.oe-dark a:hover { color: var(--oe-peach); }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--oe-blue); outline-offset: 3px; }
.oe-dark :focus-visible { outline-color: var(--oe-peach); }
::selection { background: var(--oe-sky); color: var(--oe-ink); }

.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; }
.oe-skip { position: absolute; left: -9999px; }
.oe-skip:focus { left: 12px; top: 12px; z-index: 100000; background: var(--oe-paper); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--oe-ink); }

.oe-wrap { max-width: var(--oe-wrap); margin-inline: auto; padding-inline: var(--oe-gutter); }
.oe-serif { font-family: var(--oe-serif); }

/* ==========================================================================
   Shared bits
   ========================================================================== */
.oe-label { display: inline-block; font-family: var(--oe-sans); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--oe-ink); }
.oe-label--blue { color: var(--oe-blue); }
.oe-label--teal { color: var(--oe-teal); }
.oe-label--ember { color: var(--oe-ember); }
.oe-label--green { color: var(--oe-green); }
.oe-label--ink { color: var(--oe-ink); }
.oe-meta { font-size: 13px; color: var(--oe-muted); }

.oe-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--oe-ember); color: #fff; font-family: var(--oe-sans); font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; transition: background .15s ease, transform .15s ease; }
.oe-btn:hover { color: #fff; background: #9E4600; }
.oe-btn--ink { background: var(--oe-ink); }
.oe-btn--ink:hover { background: #1D3A5C; }
.oe-btn--sm { min-height: 44px; padding: 11px 20px; font-size: 14px; }
.oe-btn--blue { background: var(--oe-blue); } .oe-btn--blue:hover { background: #1B4785; }
.oe-btn--teal { background: var(--oe-teal); } .oe-btn--teal:hover { background: #176464; }
.oe-btn--ember { background: var(--oe-ember); } .oe-btn--ember:hover { background: #9E4600; }
.oe-btn--green { background: var(--oe-green); } .oe-btn--green:hover { background: #00472D; }

.oe-textlink { display: inline-block; padding: 8px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; line-height: 1.3; }
.oe-textlink--blue { color: var(--oe-blue); font-size: 14px; }
.oe-textlink--sm { font-size: 14px; }

.oe-hover-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease; }
.oe-hover:hover .oe-hover-title a, .oe-hover-title a:hover { background-size: 100% 1px; color: inherit; }
.oe-stretch::after { content: ""; position: absolute; inset: 0; }
.oe-hover { position: relative; }

/* Photos and the soft "sky" fallback when a post has no featured image */
.oe-photo { position: relative; overflow: hidden; border-radius: 16px; background: #DCE4EC; aspect-ratio: 4 / 3; }
.oe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oe-photo--wide { aspect-ratio: 16 / 10; border-radius: 12px; }
.oe-photo--hero { aspect-ratio: 5 / 4; border-radius: 28px; }
.oe-photo--thumb { aspect-ratio: 4 / 3; border-radius: 12px; }
.oe-sky { position: absolute; inset: 0; }
.oe-sky span { position: absolute; display: block; border-radius: 50%; }
.oe-sky .s { width: 38%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,243,226,.95) 0%, rgba(255,226,190,0) 70%); left: 52%; top: 36%; }
.oe-sky .h1 { width: 135%; height: 46%; left: -18%; bottom: -24%; background: rgba(38,66,88,.36); }
.oe-sky .h2 { width: 95%; height: 42%; right: -30%; bottom: -26%; background: rgba(16,38,56,.46); }
.oe-sky--0 { background: linear-gradient(180deg, #9FBCE2 0%, #DCCFC6 58%, #F2B98A 100%); }
.oe-sky--1 { background: linear-gradient(180deg, #7E9CC9 0%, #D9B7A6 62%, #F0A46C 100%); }
.oe-sky--1 .s { left: 14%; }
.oe-sky--2 { background: linear-gradient(180deg, #D7E3EC 0%, #EFE6DA 100%); }
.oe-sky--2 .h2 { background: rgba(31,127,127,.3); }
.oe-sky--3 { background: linear-gradient(180deg, #F6D7B9 0%, #F0B27F 100%); }
.oe-sky--3 .s { top: 10%; left: 60%; }
.oe-sky--4 { background: linear-gradient(180deg, #BFD4E8 0%, #8FB2D3 100%); }
.oe-sky--4 .s { left: 8%; top: 8%; }
.oe-sky--5 { background: linear-gradient(180deg, #2E3F66 0%, #8B6E8C 55%, #E9A06A 100%); }
.oe-sky--5 .h1 { background: rgba(10,20,34,.6); }

/* ==========================================================================
   Header
   ========================================================================== */
/* Sticky header: stays at the top while reading; a soft shadow appears once the page scrolls. */
.oe-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--oe-ground); border-bottom: 1px solid var(--oe-line); transition: box-shadow .2s ease; }
.oe-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(14, 34, 56, .35); }
.oe-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 20px; }
.oe-logo { display: flex; align-items: center; }
.oe-logo img { height: 40px; width: auto; }
.oe-logo .custom-logo { height: 44px; width: auto; }
.oe-nav ul { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0; padding: 0; list-style: none; }
.oe-nav a { position: relative; display: block; padding: 8px 0; font-size: 15px; font-weight: 500; }
.oe-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--oe-orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.oe-nav a:hover { color: var(--oe-ink); }
.oe-nav a:hover::after, .oe-nav .current-menu-item > a::after, .oe-nav .current-cat > a::after, .oe-nav .current-menu-ancestor > a::after, .oe-nav .current-post-ancestor > a::after { transform: scaleX(1); }
.oe-nav .sub-menu { display: none; }
.oe-header__tools { display: flex; align-items: center; gap: 22px; }
.oe-textbtn { background: none; border: 0; border-bottom: 1px solid var(--oe-ink); padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--oe-ink); }
.oe-textbtn:hover { color: var(--oe-blue); border-color: var(--oe-blue); }
.oe-menu-toggle { display: none; min-height: 44px; padding: 0 20px; border: 1px solid var(--oe-ink); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; }
.oe-search-panel { border-top: 1px solid var(--oe-line); padding-block: 22px; }
.oe-search-panel[hidden] { display: none; }
.oe-search-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.oe-search-form label { flex: 1 1 260px; display: flex; }
.oe-input { width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid #C9C0B2; border-radius: 999px; background: var(--oe-paper); color: var(--oe-ink); font-size: 16px; }
.oe-input::placeholder { color: #6E7C8C; }
.oe-input:focus { border-color: var(--oe-blue); outline: none; box-shadow: 0 0 0 3px rgba(36,89,166,.18); }

/* ==========================================================================
   Hero
   ========================================================================== */
.oe-hero { padding-block: 64px 150px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: center; }
.oe-hero__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 540px; }
.oe-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; font-weight: 500; color: var(--oe-muted); }
.oe-kicker__rule { width: 28px; height: 1px; background: #C9C0B2; }
.oe-hero__title { font-family: var(--oe-serif); font-weight: 500; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.oe-hero__dek { font-size: 18px; line-height: 1.65; color: var(--oe-text); max-width: 480px; }
.oe-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.oe-hero__media { display: block; }

/* ==========================================================================
   Top stories panel
   ========================================================================== */
.oe-top { position: relative; margin-top: -96px; }
.oe-panel { background: var(--oe-paper); border: 1px solid var(--oe-line-2); border-radius: 28px; box-shadow: var(--oe-shadow); padding: clamp(22px, 3vw, 40px); }
.oe-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.oe-h2 { font-family: var(--oe-serif); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.oe-h2--lg { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.015em; line-height: 1.05; }
.oe-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px 28px; }
.oe-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.oe-card__title { font-family: var(--oe-serif); font-weight: 500; font-size: 22px; line-height: 1.22; letter-spacing: -0.005em; text-wrap: pretty; }
.oe-card__title a::after { content: ""; position: absolute; inset: 0; }
.oe-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--oe-soft); }

/* ==========================================================================
   Explore: section cards
   ========================================================================== */
.oe-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.oe-head__text { display: flex; flex-direction: column; gap: 10px; }
.oe-sub { font-size: 16px; color: var(--oe-soft); }
.oe-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.oe-section { display: flex; flex-direction: column; background: var(--oe-paper); border: 1px solid var(--oe-line-2); border-radius: 22px; overflow: hidden; }
.oe-section__band { min-height: 116px; padding: 22px 24px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--oe-ink); }
.oe-section__band h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.oe-section__band h3 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.oe-section__band span { font-size: 13px; opacity: .92; }
.oe-section--blue .oe-section__band { background: var(--oe-blue); }
.oe-section--teal .oe-section__band { background: var(--oe-teal); }
.oe-section--ember .oe-section__band { background: var(--oe-ember); }
.oe-section--green .oe-section__band { background: var(--oe-green); }
.oe-section__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.oe-section__title { font-family: var(--oe-serif); font-weight: 500; font-size: 20px; line-height: 1.25; }
.oe-section__title a::after { content: ""; position: absolute; inset: 0; }
.oe-section__also { border-top: 1px solid var(--oe-line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.oe-section__also .oe-label { font-size: 11px; color: var(--oe-muted); }
.oe-section__also a { font-size: 15px; font-weight: 500; line-height: 1.4; }
.oe-section .oe-btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Latest + aside
   ========================================================================== */
.oe-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.oe-split__main { flex: 999 1 560px; min-width: 0; }
.oe-split__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.oe-rule-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--oe-ink); }
.oe-row { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--oe-line); }
.oe-row__thumb { flex: none; width: 132px; }
.oe-row__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.oe-row__title { font-family: var(--oe-serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.oe-row__title a::after { content: ""; position: absolute; inset: 0; }
.oe-row--sm { gap: 16px; padding: 16px 0; }
.oe-row--sm .oe-row__thumb { width: 96px; }
.oe-row--sm .oe-row__title { font-size: 18px; }

.oe-news { background: var(--oe-sky); border-radius: 26px; padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.oe-news__title { font-family: var(--oe-serif); font-weight: 500; font-size: 30px; line-height: 1.12; letter-spacing: -0.01em; }
.oe-news__text { font-size: 15px; line-height: 1.6; color: var(--oe-text); }
.oe-news form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.oe-news label { font-size: 13px; font-weight: 600; }
.oe-news .oe-input { border-color: #C7D3E3; }
.oe-news .oe-btn { min-height: 52px; }
.oe-news__note { font-size: 12px; color: var(--oe-soft); }
.oe-news .oe-shortcode input[type="email"], .oe-news .oe-shortcode input[type="text"] { width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid #C7D3E3; border-radius: 999px; background: #fff; }
.oe-news .oe-shortcode input[type="submit"], .oe-news .oe-shortcode button { min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--oe-ink); color: #fff; font-weight: 500; }

.oe-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.oe-topics a { display: inline-block; font-size: 14px; font-weight: 500; line-height: 1.3; padding: 11px 16px; border: 1px solid #D9D1C4; border-radius: 999px; background: var(--oe-paper); }
.oe-topics a:hover { border-color: var(--oe-ink); color: var(--oe-ink); }

/* ==========================================================================
   Quote banner
   ========================================================================== */
.oe-quote { padding-bottom: 88px; }
.oe-quote__banner { width: 100%; height: auto; aspect-ratio: 1600 / 530; object-fit: cover; border-radius: 26px; }
.oe-quote__mobile { display: none; border-radius: 22px; overflow: hidden; background: var(--oe-sand); margin: 0; }
.oe-quote__mobile img { width: 100%; height: auto; aspect-ratio: 720 / 600; object-fit: cover; }
.oe-quote__mobile blockquote { margin: 0; padding: 22px 24px 28px; font-family: var(--oe-serif); font-size: 24px; line-height: 1.3; color: #22332B; }
.oe-quote__mobile blockquote span { color: #6F8A45; }

/* ==========================================================================
   Footer
   ========================================================================== */
.oe-footer { background: var(--oe-ink); color: #fff; }
.oe-footer__inner { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 48px; }
.oe-footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.oe-footer__brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.oe-footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.oe-footer__about { font-size: 15px; line-height: 1.65; color: #C9D4E2; }
.oe-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.oe-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.oe-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.oe-footer__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oe-peach); }
.oe-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid #263B54; font-size: 13px; color: #AFBDD0; }
.oe-footer__bottom a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Article
   ========================================================================== */
.oe-article__head { padding-block: 56px 36px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 920px; }
.oe-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 500; color: var(--oe-muted); }
.oe-crumbs li + li::before { content: "/"; margin-right: 8px; color: #B5AC9E; }
.oe-article__title { font-family: var(--oe-serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
.oe-article__dek { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--oe-text); max-width: 720px; }
.oe-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--oe-muted); }
.oe-byline strong { color: var(--oe-ink); font-weight: 600; }
.oe-figure { margin: 0 auto 56px; display: flex; flex-direction: column; gap: 12px; }
.oe-figure .oe-photo { aspect-ratio: 16 / 8; border-radius: 28px; }
.oe-figure figcaption { font-size: 13px; color: var(--oe-muted); }
.oe-article__layout { display: flex; flex-wrap: wrap; gap: 72px; align-items: stretch; padding-bottom: 96px; }
.oe-article__main { flex: 999 1 600px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 36px; align-self: flex-start; }
.oe-article__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.oe-sticky { position: sticky; top: calc(24px + var(--oe-head-h, 80px) + var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column; gap: 36px; }
.oe-aside-title { font-family: var(--oe-serif); font-weight: 500; font-size: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--oe-ink); }
.oe-ranked { list-style: none; margin: 0; padding: 0; counter-reset: oerank; }
.oe-ranked li { position: relative; counter-increment: oerank; display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--oe-line); }
.oe-ranked li::before { content: counter(oerank); flex: none; width: 22px; font-family: var(--oe-serif); font-size: 26px; line-height: 1; color: var(--oe-orange); }
.oe-ranked a { font-family: var(--oe-serif); font-weight: 500; font-size: 18px; line-height: 1.3; }
.oe-ranked a::after { content: ""; position: absolute; inset: 0; }
.oe-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 14px; border-top: 1px solid var(--oe-line); border-bottom: 1px solid var(--oe-line); width: 100%; font-size: 14px; }
.oe-share__label { font-weight: 600; color: var(--oe-ink); }
.oe-share a, .oe-share button { background: none; border: 0; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--oe-blue); border-bottom: 1px solid transparent; }
.oe-share a:hover, .oe-share button:hover { border-bottom-color: currentColor; }

.oe-prose { font-family: var(--oe-serif); font-size: 20px; line-height: 1.75; color: #1D2F44; overflow-wrap: break-word; }
.oe-prose > *, .oe-prose p, .oe-prose ul, .oe-prose ol, .oe-prose figure, .oe-prose table, .oe-prose pre, .oe-prose .wp-block-image, .oe-prose .wp-block-embed, .oe-prose .wp-block-group { margin-top: 0; margin-bottom: 26px; }
.oe-prose > :last-child, .oe-prose p:last-child { margin-bottom: 0; }
.oe-prose a { color: var(--oe-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.oe-prose a:hover { color: var(--oe-ink); }
.oe-prose h2, .oe-prose h3, .oe-prose h4 { font-family: var(--oe-serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 44px 0 14px; color: var(--oe-ink); }
.oe-prose > h2:first-child, .oe-prose > h3:first-child { margin-top: 0; }
.oe-prose h2 { font-size: clamp(26px, 2.4vw, 32px); }
.oe-prose h3 { font-size: clamp(21px, 2vw, 25px); }
.oe-prose h4 { font-family: var(--oe-sans); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.oe-prose ul, .oe-prose ol { padding-left: 1.3em; }
.oe-prose li + li { margin-top: 8px; }
.oe-prose li::marker { color: var(--oe-orange); }
.oe-prose img { height: auto; border-radius: 18px; }
.oe-prose figure { margin-left: 0; margin-right: 0; }
.oe-prose figcaption, .oe-prose .wp-element-caption { font-family: var(--oe-sans); font-size: 13px; color: var(--oe-muted); margin-top: 10px; }
.oe-prose blockquote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--oe-orange); font-style: italic; font-size: 24px; line-height: 1.45; color: var(--oe-ink); }
.oe-prose blockquote cite { display: block; margin-top: 12px; font-family: var(--oe-sans); font-style: normal; font-size: 14px; color: var(--oe-muted); }
.oe-prose .wp-block-pullquote { border: 0; border-top: 1px solid var(--oe-ink); border-bottom: 1px solid var(--oe-ink); padding: 28px 0; text-align: left; }
.oe-prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.oe-prose table { width: 100%; border-collapse: collapse; font-family: var(--oe-sans); font-size: 15px; }
.oe-prose th, .oe-prose td { border-bottom: 1px solid var(--oe-line); padding: 10px 12px; text-align: left; }
.oe-prose th { background: var(--oe-sky); }
.oe-prose code, .oe-prose pre { font-size: 15px; background: #F1ECE4; border-radius: 6px; }
.oe-prose code { padding: 2px 6px; }
.oe-prose pre { padding: 16px; overflow-x: auto; }
.oe-prose hr { border: 0; height: 1px; background: var(--oe-line); margin-block: 40px; }
.oe-prose .wp-block-button__link { font-family: var(--oe-sans); font-size: 15px; font-weight: 500; border-radius: 999px; background: var(--oe-ember); color: #fff; text-decoration: none; padding: 13px 26px; }
.oe-prose .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.oe-prose .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.oe-prose .aligncenter { margin-inline: auto; }
.oe-prose iframe { max-width: 100%; }

.oe-tags { display: flex; flex-direction: column; gap: 12px; }
.oe-author { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; background: var(--oe-paper); border: 1px solid var(--oe-line-2); border-radius: 22px; }
.oe-author__name { font-family: var(--oe-serif); font-weight: 500; font-size: 22px; }
.oe-author__bio { font-size: 15px; color: var(--oe-text); }

/* Comments */
.oe-comments { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; border-top: 1px solid var(--oe-line); }
.oe-comments ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.oe-comments ol.children { margin: 14px 0 0 24px; }
.oe-comments .comment-body { padding: 18px 20px; background: var(--oe-paper); border: 1px solid var(--oe-line-2); border-radius: 18px; font-size: 15px; }
.oe-comments .comment-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--oe-muted); margin-bottom: 8px; }
.oe-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--oe-ink); }
.oe-comments .comment-author img { border-radius: 50%; }
.oe-comments .says { display: none; }
.oe-comments .reply a { font-size: 13px; font-weight: 600; color: var(--oe-blue); }
.comment-respond { padding: 26px; background: var(--oe-sky); border-radius: 22px; }
.comment-reply-title { font-family: var(--oe-serif); font-weight: 500; font-size: 24px; margin-bottom: 10px; }
.comment-form { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.comment-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; border: 1px solid #C7D3E3; border-radius: 16px; background: #fff; padding: 12px 16px; font-size: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { border-radius: 999px; min-height: 50px; }
.comment-form .submit { min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--oe-ink); color: #fff; font-weight: 500; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   Archive, search, pages, 404
   ========================================================================== */
.oe-archive-head { padding-block: 56px 44px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 820px; }
.oe-archive-head h1 { font-family: var(--oe-serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.oe-archive-head__desc { font-size: 17px; color: var(--oe-text); }
.oe-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 44px 28px; }
.oe-pagination { display: flex; justify-content: center; padding-top: 56px; }
.oe-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.oe-pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border: 1px solid #D9D1C4; border-radius: 999px; background: var(--oe-paper); font-size: 14px; font-weight: 500; }
.oe-pagination .page-numbers.current { background: var(--oe-ink); border-color: var(--oe-ink); color: #fff; }
.oe-pagination .dots { border: 0; background: none; }
.oe-empty { padding: 40px; border-radius: 26px; background: var(--oe-paper); border: 1px solid var(--oe-line-2); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.oe-page { padding-block: 56px 96px; }
.oe-page .oe-prose { max-width: 760px; }
.oe-builder { min-height: 40vh; }
.oe-404 { padding-block: 104px 120px; }
.oe-404__inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 680px; }
.oe-404__mark { width: 96px; height: 96px; }

/* WordPress core */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--oe-muted); }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { display: block; margin-inline: auto; }
.sticky, .bypostauthor { }

/* ==========================================================================
   Contact page
   ========================================================================== */
.oe-contact { padding-bottom: var(--oe-section); }
.oe-contact__head { padding-bottom: 40px; }
.oe-contact__intro { max-width: 640px; font-size: 18px; line-height: 1.6; }
.oe-contact__extra { max-width: 680px; font-size: 18px; }
.oe-contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.oe-contact--solo .oe-contact__grid { grid-template-columns: minmax(0, 780px); }
.oe-contact__main { background: var(--oe-paper); border: 1px solid var(--oe-line-2); border-radius: 26px; padding: 38px 40px 40px; box-shadow: var(--oe-shadow); scroll-margin-top: calc(var(--oe-head-h, 80px) + var(--wp-admin--admin-bar--height, 0px) + 16px); }
.oe-contact__main:focus { outline: none; }
.oe-contact__title { font-family: var(--oe-serif); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }

.oe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 26px; }
.oe-form__field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.oe-form__field--full, .oe-form__foot { grid-column: 1 / -1; }
.oe-form label { font-size: 13px; font-weight: 600; color: var(--oe-ink); }
.oe-form__opt { font-weight: 400; color: var(--oe-muted); }
.oe-form .oe-input { border-color: #C9C0B2; }
.oe-form .oe-input[aria-invalid="true"] { border-color: #B54708; box-shadow: 0 0 0 3px rgba(181, 71, 8, .12); }
.oe-select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; background-color: var(--oe-paper); background-image: linear-gradient(45deg, transparent 50%, var(--oe-ink) 50%), linear-gradient(135deg, var(--oe-ink) 50%, transparent 50%); background-position: calc(100% - 25px) 50%, calc(100% - 19px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.oe-textarea { min-height: 190px; padding: 16px 20px; border-radius: 22px; line-height: 1.6; resize: vertical; }
.oe-form__error { font-size: 13px; font-weight: 500; color: #9A3A06; }
.oe-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.oe-form__foot .oe-btn { min-height: 54px; padding-inline: 34px; }
.oe-form__note { font-size: 13px; color: var(--oe-muted); }
.oe-form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.oe-alert { margin-top: 22px; padding: 16px 20px; border-radius: 18px; background: #FCEEE3; border: 1px solid #F1C9A8; color: #6E2C05; font-size: 15px; }
.oe-alert ul { margin: 6px 0 0; padding-left: 18px; }

.oe-contact__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; }
.oe-contact__done p { margin: 0; max-width: 520px; font-size: 17px; color: var(--oe-text); }
.oe-contact__done-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 10px; }

/* Form plugins (Contact Form 7, WPForms…) inside the contact card. */
.oe-contact__plugin { margin-top: 24px; }
.oe-contact__plugin input[type="text"], .oe-contact__plugin input[type="email"], .oe-contact__plugin input[type="tel"], .oe-contact__plugin input[type="url"], .oe-contact__plugin select { width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid #C9C0B2; border-radius: 999px; background: #fff; font-size: 16px; }
.oe-contact__plugin textarea { width: 100%; min-height: 180px; padding: 16px 20px; border: 1px solid #C9C0B2; border-radius: 22px; background: #fff; font-size: 16px; }
.oe-contact__plugin input[type="submit"], .oe-contact__plugin button[type="submit"] { min-height: 54px; padding: 0 34px; border: 0; border-radius: 999px; background: var(--oe-ink); color: #fff; font-weight: 500; cursor: pointer; }
.oe-contact__plugin label { font-size: 13px; font-weight: 600; }
.oe-contact__plugin p { margin: 0 0 16px; }

.oe-contact__aside { display: flex; flex-direction: column; gap: 22px; }
.oe-contact__aside-title { font-family: var(--oe-serif); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.oe-contact__card { overflow: hidden; border-radius: 26px; background: var(--oe-sky); }
.oe-contact__art { position: relative; height: 140px; overflow: hidden; }
.oe-contact__art .oe-sky .s { width: 26%; left: 60%; top: 24%; }
.oe-contact__card-body { padding: 28px 30px 12px; }
.oe-contact__help { list-style: none; margin: 12px 0 0; padding: 0; }
.oe-contact__help li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 18px; border-top: 1px solid rgba(14, 34, 56, .12); }
.oe-contact__help strong { font-family: var(--oe-serif); font-weight: 500; font-size: 20px; line-height: 1.25; color: var(--oe-ink); }
.oe-contact__help span { font-size: 15px; line-height: 1.55; color: var(--oe-text); }
.oe-contact__direct { padding: 28px 30px 30px; border: 1px solid var(--oe-line-2); border-radius: 26px; background: var(--oe-paper); }
.oe-contact__details { margin: 12px 0 0; }
.oe-contact__details > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--oe-line-2); }
.oe-contact__details dt { padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--oe-muted); }
.oe-contact__details dd { margin: 0; font-size: 16px; color: var(--oe-ink); overflow-wrap: anywhere; }
.oe-contact__details dd a { border-bottom: 1px solid #C9C0B2; }
.oe-contact__details dd a:hover { border-color: currentColor; }
.oe-contact__follow { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
	.oe-nav ul { gap: 6px 22px; }
}
@media (max-width: 980px) {
	.oe-contact__grid { grid-template-columns: minmax(0, 1fr); }
	.oe-menu-toggle { display: inline-flex; align-items: center; }
	.oe-nav { display: none; width: 100%; order: 10; }
	.oe-nav.is-open { display: block; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
	.oe-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--oe-line); padding-top: 6px; }
	.oe-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--oe-line); }
	.oe-nav a::after { display: none; }
	.oe-header__tools .oe-btn { display: none; }
	.oe-sticky { position: static; }
	.oe-logo img { height: 32px; }
}
@media (max-width: 600px) {
	/* WordPress scrolls its admin bar away on small screens, so the header sticks to the very top. */
	.admin-bar .oe-header { top: 0; }
}
@media (max-width: 700px) {
	.oe-header__bar { padding-block: 14px; }
	.oe-contact__head { padding-bottom: 28px; }
	.oe-contact__intro { font-size: 17px; }
	.oe-contact__main { padding: 28px 22px 30px; border-radius: 22px; }
	.oe-contact__title { font-size: 28px; }
	.oe-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.oe-form__field[aria-hidden="true"] { display: none; }
	.oe-form__foot .oe-btn { width: 100%; }
	.oe-contact__card-body, .oe-contact__direct { padding-inline: 22px; }
	.oe-contact__card, .oe-contact__direct { border-radius: 22px; }
	.oe-hero { padding-block: 28px 92px; gap: 26px; }
	.oe-hero__title { font-size: 36px; }
	.oe-hero__dek { font-size: 16px; }
	.oe-hero__actions .oe-textlink { display: none; }
	.oe-photo--hero { border-radius: 22px; aspect-ratio: 4 / 3; }
	.oe-top { margin-top: -64px; padding-inline: 12px; }
	.oe-top .oe-wrap { padding-inline: 0; }
	.oe-panel { border-radius: 24px; padding: 22px 0 24px; }
	.oe-panel__head { padding-inline: 18px; margin-bottom: 16px; }
	/* Swipe row. The inset lives on the first card (not on the scroller), so no browser can scroll it away. */
	.oe-panel .oe-grid4 { display: flex; gap: 16px; overflow-x: auto; padding: 0; margin: 0; scroll-snap-type: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
	.oe-panel .oe-grid4::-webkit-scrollbar { display: none; }
	.oe-panel .oe-grid4::after { content: ""; flex: 0 0 2px; }
	.oe-panel .oe-card { flex: none; width: 240px; }
	.oe-panel .oe-card:first-child { margin-left: 18px; }
	.oe-panel .oe-card__title { font-size: 19px; }
	.oe-panel .oe-card__excerpt { display: none; }
	.oe-section__band { min-height: 0; padding: 16px 20px; }
	.oe-section__band h3 { font-size: 18px; }
	.oe-section__band span { display: none; }
	.oe-section__body { padding: 16px 20px 20px; }
	.oe-section .oe-photo, .oe-section__also { display: none; }
	.oe-row { gap: 14px; padding: 16px 0; }
	.oe-row__thumb { width: 92px; }
	.oe-row__title { font-size: 17px; }
	.oe-news { padding: 26px 22px; border-radius: 22px; }
	.oe-news__title { font-size: 26px; }
	.oe-quote { padding-bottom: 56px; }
	.oe-quote__banner { display: none; }
	.oe-quote__mobile { display: block; }
	.oe-footer__inner { padding-block: 40px 28px; gap: 28px; }
	.oe-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
	.oe-article__head { padding-block: 28px 24px; }
	.oe-figure .oe-photo { aspect-ratio: 4 / 3; border-radius: 22px; }
	.oe-prose { font-size: 18px; }
	.oe-article__layout { gap: 48px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.oe-nav a::after, .oe-hover-title a, .oe-btn { transition: none; }
}
@media print {
	.oe-header__tools, .oe-nav, .oe-share, .oe-article__aside, .oe-news, .oe-footer, .oe-quote { display: none !important; }
	body { background: #fff; }
}
