/* ==========================================================================
   WaveNeuro — main stylesheet
   Values mirror the Claude Design prototype. Colours come from --c-* tokens
   (printed inline from the Customizer palette; defaults below as fallback).
   `cqw` units resolve against .site (container-type:inline-size).
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url(../fonts/inter-latin.woff2) format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Merriweather";
	src: url(../fonts/merriweather-latin.woff2) format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--c-bg: #fbf8f3; --c-soft: #f2eadf; --c-soft-2: #eadfce; --c-ink: #3a2a1f; --c-muted: #76665a;
	--c-faint: #a4968a; --c-line: #e7ddcf; --c-dark: #5b3f2c; --c-dark-rgb: 91, 63, 44; --c-accent: #86c5e8;
	--c-accent-text: #3f8dbd; --c-accent-soft: #d4ebf7; --c-on-accent: #2b1e15; --c-accent2: #8d5f3d; --c-on-dark-muted: #ecdfd2;
	--f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-serif: "Merriweather", Georgia, serif;
	--shadow: 0 14px 34px rgba(var(--c-dark-rgb), .08);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); font-family: var(--f-sans); color: var(--c-ink); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent2); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.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; z-index: 10000; top: 8px; left: 8px; padding: 12px 20px; background: var(--c-bg); color: var(--c-ink); border-radius: 4px; box-shadow: var(--shadow); }

.site { overflow-x: clip; container-type: inline-size; background: var(--c-bg); color: var(--c-ink); }

/* Layout helpers ---------------------------------------------------------- */
.wn-container { max-width: 1280px; width: calc(100% - clamp(40px, 6cqw, 80px)); margin-inline: auto; }
.wn-section { padding-block: clamp(90px, 11cqw, 160px); }
.wn-section--flush-top { padding-top: 0; }
.wn-cover { width: 100%; height: 100%; object-fit: cover; }
.wn-cover--top { object-position: top; }

.wn-grid { display: grid; gap: 30px; text-align: left; }
.wn-grid--posts { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 70px 30px; align-items: start; }

/* Typography ------------------------------------------------------------ */
.wn-eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-faint); margin: 0; }
.wn-title { font-family: var(--f-serif); font-weight: 300; line-height: 1.15; margin: 0; color: inherit; }
.wn-eyebrow + .wn-title { margin-top: 28px; }
.wn-title--xl { font-size: clamp(40px, 4.4cqw, 64px); line-height: 1.1; }
.wn-title--lg { font-size: clamp(36px, 3.6cqw, 56px); }
.wn-title--md { font-size: clamp(28px, 3cqw, 44px); line-height: 1.25; }
.wn-title--sm { font-size: clamp(30px, 3cqw, 44px); line-height: 1.3; }

/* Buttons & small UI ---------------------------------------------------- */
.wn-btn { display: inline-block; padding: 20px 40px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, filter .2s; }
.wn-btn--accent { background: var(--c-accent); color: var(--c-on-accent); }
.wn-btn--accent:hover { color: var(--c-on-accent); filter: brightness(.95); }
.wn-btn--outline { border-color: var(--c-line); color: var(--c-ink); }
.wn-btn--outline-ink { border-color: var(--c-ink); color: var(--c-ink); }
.wn-btn--outline-bg { border-color: var(--c-line); background: var(--c-bg); color: var(--c-ink); }
.wn-btn--outline:hover, .wn-btn--outline-ink:hover, .wn-btn--outline-bg:hover { border-color: var(--c-accent2); color: var(--c-accent2); }
.wn-btn--outline-light { border-color: #fff; color: #fff; }
.wn-btn--outline-light:hover { background: #fff; color: var(--c-dark); }

.wn-badge { flex: none; width: var(--s, 36px); height: var(--s, 36px); border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); display: inline-flex; align-items: center; justify-content: center; }
.wn-readmore { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.wn-tag { position: absolute; left: 40px; bottom: -12px; z-index: 1; background: var(--c-accent); color: var(--c-on-accent); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; }
.wn-admin-note { padding: 14px 18px; border: 1px dashed var(--c-accent2); border-radius: 4px; background: #fff; color: var(--c-ink); font-size: 14px; }

.wn-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--c-muted); }
.wn-breadcrumbs a { color: var(--c-accent2); }
.wn-breadcrumbs a:hover { text-decoration: underline; }

/* Top bar & header ------------------------------------------------------- */
.wn-topbar { background: var(--c-soft); font-size: 14px; color: #5b6570; }
.wn-topbar__inner { min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 32px; padding-block: 8px; }
.wn-topbar__item { display: flex; align-items: center; gap: 8px; color: inherit; }
.wn-topbar__item svg { color: var(--c-accent2); flex: none; }
.wn-topbar__phone { order: 2; margin-left: auto; }

.wn-header { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 18px; }
.wn-logo { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.wn-logo:hover { color: var(--c-ink); }
.wn-logo__mark { width: 66px; }
.wn-logo__img { height: var(--logo-h, 66px); width: auto; }
.wn-logo__img--mark { mix-blend-mode: multiply; }
.wn-header .wn-logo { transition: opacity .25s, transform .25s; }
.wn-header .wn-logo:hover { opacity: .85; }
.wn-logo__text { font-family: var(--f-serif); line-height: 1; }
.wn-logo__l1 { display: block; font-size: 30px; }
.wn-logo__l2 { display: block; font-size: 20px; margin-top: 2px; }

.wn-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; font-size: 16px; font-weight: 500; }
.wn-menu li { position: relative; }
.wn-menu a { display: block; padding: 14px clamp(12px, 2cqw, 30px) 18px; color: var(--c-ink); border-bottom: 3px solid transparent; }
.wn-menu a:hover { color: var(--c-accent2); }
.wn-menu > .is-active > a, .wn-menu > .current_page_item > a { color: var(--c-accent2); border-bottom-color: var(--c-accent2); }
.wn-menu .menu-item-has-children > a::after { content: "▾"; margin-left: 6px; font-size: .8em; }
.wn-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 230px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.wn-menu li:hover > .sub-menu, .wn-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.wn-menu .sub-menu a { padding: 10px 20px; border: 0; font-size: 15px; }
.wn-menu .sub-menu .is-active > a { color: var(--c-accent2); }
.wn-nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg); color: var(--c-ink); cursor: pointer; }

@media (max-width: 900px) {
	.wn-header { padding-block: 14px; }
	.wn-logo__img { height: min(var(--logo-h, 66px), 52px); }
	.wn-js .wn-nav-toggle { display: inline-flex; }
	.wn-nav { flex-basis: 100%; }
	.wn-js .wn-nav { display: none; }
	.wn-js .wn-nav.is-open { display: block; }
	.wn-menu { flex-direction: column; align-items: stretch; border-top: 1px solid var(--c-line); }
	.wn-menu a { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
	.wn-menu > .is-active > a, .wn-menu > .current_page_item > a { border-bottom-color: var(--c-line); }
	.wn-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 18px; background: none; min-width: 0; }
	.wn-topbar__phone { margin-left: 0; }
}

/* Cards ----------------------------------------------------------------- */
.wn-card { border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: var(--c-bg); transition: box-shadow .25s, border-color .25s; }
.wn-card:hover { box-shadow: var(--shadow); }
.wn-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.wn-card__link:hover { color: inherit; }
.wn-card__body { display: flex; flex-direction: column; flex: 1; padding: 30px; }

.wn-post-card:hover { border-color: #d6dbe0; }
.wn-post-card__media { position: relative; height: 250px; background: var(--c-soft); }
.wn-post-card__body { padding: 40px; }
.wn-post-card__title { margin: 0; font: 500 20px/1.45 var(--f-sans); color: var(--c-ink); }
.wn-post-card__excerpt { margin: 24px 0 30px; font-size: 16px; line-height: 1.75; color: var(--c-muted); }

/* Forms (Contact Form 7) ------------------------------------------------ */
.wn-fields { display: grid; gap: 26px 20px; }
.wn-fields--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wn-fields--2 { grid-template-columns: 1fr 1fr; gap: 20px; }
.wn-fields--stack { grid-template-columns: 1fr; gap: 14px; max-width: 550px; margin: 0 auto; text-align: left; }
.wn-field { display: flex; flex-direction: column; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink); }
.wn-field--spaced { margin-top: 30px; }
.wn-field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wn-cf7 .wpcf7-form-control-wrap { display: block; }
.wn-cf7 input:is([type="text"], [type="email"], [type="tel"], [type="date"], [type="url"], [type="number"]),
.wn-cf7 select, .wn-cf7 textarea,
.wn-search input[type="search"],
.comment-form input:is([type="text"], [type="email"], [type="url"]), .comment-form textarea {
	width: 100%; height: 56px; border: 1px solid var(--c-line); border-radius: 4px; padding: 0 20px; background: #fff; font: 15px var(--f-sans); color: var(--c-ink); text-transform: none; letter-spacing: normal; outline-color: var(--c-accent);
}
.wn-cf7 select { color: var(--c-muted); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2376665a' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; }
.wn-cf7 .wn-field__pair select { padding-left: 16px; }
.wn-cf7 textarea, .comment-form textarea { height: 124px; padding: 16px 18px; resize: vertical; }
.wn-cf7 ::placeholder, .comment-form ::placeholder { color: var(--c-muted); opacity: 1; }
select) { background-color: var(--c-soft); }
.wn-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wn-cf7 .wpcf7-submit { height: 62px; margin-top: 30px; padding: 0 40px; border: 0; border-radius: 4px; background: var(--c-accent); color: var(--c-on-accent); font: 600 16px var(--f-sans); cursor: pointer; transition: filter .2s; }
.wn-cf7 .wpcf7-submit:hover { filter: brightness(.95); }
.wn-cf7 .wpcf7-submit.wn-submit--alt { background: var(--c-accent2); color: #fff; margin-top: 10px; }
.wn-cf7 .wpcf7-spinner { margin: 30px 0 0; }
.wn-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.wn-cf7 .wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 16px !important; border-radius: 4px; font-size: 14px; }

/* Gallery --------------------------------------------------------------- */
.wn-gallery { padding-block: clamp(60px, 7cqw, 100px) clamp(90px, 11cqw, 160px); }
.wn-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 4cqw, 56px); }
.wn-filter { cursor: pointer; padding: 12px 22px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg); color: var(--c-ink); font: 500 15px var(--f-sans); }
.wn-filter:hover { border-color: var(--c-accent2); }
.wn-filter.is-active { border-color: var(--c-accent2); background: var(--c-accent2); color: #fff; }
.wn-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); grid-auto-rows: clamp(200px, 20cqw, 280px); grid-auto-flow: dense; gap: 20px; }
.wn-gallery__item.is-wide { grid-column: span 2; }
.wn-gallery__item.is-tall { grid-row: span 2; }
.wn-gallery__item[hidden] { display: none; }
.wn-gallery__link { position: relative; display: block; height: 100%; border-radius: 14px; overflow: hidden; background: var(--c-soft); cursor: zoom-in; color: #fff; }
.wn-gallery__link:hover { color: #fff; }
.wn-gallery__link img { transition: transform .5s; }
.wn-gallery__link:hover img { transform: scale(1.03); }
.wn-gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 40px 24px 22px; background: linear-gradient(180deg, rgba(var(--c-dark-rgb), 0), rgba(var(--c-dark-rgb), .7)); text-align: left; }
.wn-gallery__cat { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.wn-gallery__title { display: block; margin-top: 6px; font-size: 18px; font-weight: 500; }

.wn-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 60px 90px; background: rgba(var(--c-dark-rgb), .92); font-family: var(--f-sans); }
.wn-lightbox[hidden] { display: none; }
.wn-lightbox__img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
.wn-lightbox__caption { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center; color: #fff; font-size: 16px; }
.wn-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wn-lightbox__nav--prev { left: 24px; }
.wn-lightbox__nav--next { right: 24px; }
.wn-lightbox__close { position: absolute; right: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-accent); color: var(--c-on-accent); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Pagination, search, empty states -------------------------------------- */
.wn-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 80px; }
.wn-pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 4px; font-weight: 600; }
.wn-pagination .page-numbers.current { background: var(--c-accent2); border-color: var(--c-accent2); color: #fff; }
.wn-search { display: flex; gap: 10px; max-width: 520px; margin: 30px auto; }
.wn-search .wn-btn { padding-block: 0; height: 56px; border: 0; }
.wn-empty { text-align: center; }
.wn-empty .wn-btn { margin-top: 20px; }

/* Single post ----------------------------------------------------------- */
.wn-single__hero { max-width: 1500px; width: calc(100% - 80px); height: clamp(360px, 40cqw, 960px); margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--c-soft); }
.wn-single__body { position: relative; max-width: 800px; width: calc(100% - 80px); margin: 0 auto; padding-top: clamp(60px, 7cqw, 110px); font-size: 17px; line-height: 1.75; color: var(--c-muted); }

.wn-share { position: absolute; left: -175px; top: clamp(60px, 7cqw, 110px); display: flex; flex-direction: column; gap: 12px; }
.wn-share a { width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); display: flex; align-items: center; justify-content: center; }
.wn-share a:hover { color: var(--c-on-accent); filter: brightness(.95); }
@container (max-width: 1260px) {
	.wn-share { position: static; flex-direction: row; margin-bottom: 30px; }
}

.wn-post-cta { margin-top: 70px; padding: 90px 20px; background: var(--c-soft); border-radius: 16px; text-align: center; }
.wn-post-cta__title { font-size: 40px; color: var(--c-ink); }
.wn-post-cta__text { margin: 20px 0 40px; font-size: 16px; color: var(--c-ink); }
.wn-post-cta .wn-form-actions { max-width: 550px; margin: 0 auto; }

.wn-tags { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 60px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.wn-tags__label { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-ink); }
.wn-tags a { color: var(--c-faint); }
.wn-tags a:hover { color: var(--c-accent2); }

.wn-author { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 80px; padding: clamp(30px, 5cqw, 60px); background: var(--c-soft); border-radius: 16px; }
.wn-author__img { width: 232px; height: 232px; border-radius: 14px; object-fit: cover; }
.wn-author__body { flex: 1 1 280px; }
.wn-author__name { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: 30px; }
.wn-author__body p { margin: 20px 0 0; font-size: 16px; line-height: 1.8; }

.wn-postnav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 100px; border: 1px solid var(--c-line); border-radius: 14px; }
.wn-postnav__link { display: flex; gap: 20px; padding: 30px; }
.wn-postnav__link--prev { border-right: 1px solid var(--c-line); }
.wn-postnav > span:first-child { border-right: 1px solid var(--c-line); }
.wn-postnav__link--next { flex-direction: row-reverse; text-align: right; }
.wn-postnav__img { flex: none; width: 142px; height: 140px; object-fit: cover; border-radius: 12px; }
.wn-postnav__label { display: block; font-size: 14px; color: var(--c-faint); }
.wn-postnav__title { display: block; margin-top: 10px; font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--c-ink); }
.wn-postnav__link:hover .wn-postnav__title { color: var(--c-accent2); }

.wn-related { padding-top: clamp(90px, 9cqw, 130px); }

/* Prose (post/page/service content) ------------------------------------- */
.wn-article .wn-prose { max-width: 800px; width: calc(100% - 80px); margin: 0 auto; padding-block: clamp(60px, 7cqw, 100px) clamp(90px, 9cqw, 130px); font-size: 17px; line-height: 1.75; color: var(--c-muted); }
.wn-prose > * { margin-block: 0; }
.wn-prose > * + * { margin-top: 30px; }
.wn-prose a { color: var(--c-accent2); text-decoration: underline; text-underline-offset: 3px; }
.wn-prose :is(h2, h3, h4) { color: var(--c-ink); }
.wn-prose h2 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(30px, 2.6cqw, 40px); line-height: 1.3; }
.wn-prose h3 { font: 500 22px/1.4 var(--f-sans); }
.wn-prose > :is(h2, h3) { margin-top: 60px; }
.wn-prose > :is(h2, h3) + * { margin-top: 30px; }
.wn-prose > h2 + * { margin-top: 40px; }
.wn-prose > :first-child { margin-top: 0; }
.wn-prose :is(ul, ol) { padding-left: 1.3em; }
.wn-prose li + li { margin-top: .4em; }
.wn-prose strong { color: var(--c-ink); font-weight: 600; }
.wn-prose > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-columns, .wn-tabs) { margin-block: 50px; }
.wn-prose img { border-radius: 16px; }
.wn-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--c-faint); text-align: center; }
.wn-prose .wp-block-columns { gap: 20px; }
.wn-prose blockquote { margin: 48px 0; padding: 0 0 0 28px; border-left: 3px solid var(--c-accent); font-size: 19px; color: var(--c-ink); }
.wn-prose blockquote.is-style-wn-highlight { padding: 52px 40px 90px; border: 0; border-radius: 16px; background: var(--c-accent2); color: #fff; font-size: 19px; font-weight: 500; line-height: 1.55; }
.wn-prose blockquote.is-style-wn-highlight :is(p, cite) { color: #fff; margin: 0; }
.wn-prose blockquote cite { display: block; margin-top: 16px; font-size: 14px; font-style: normal; }
.wn-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wn-prose :is(th, td) { padding: 12px; border: 1px solid var(--c-line); text-align: left; }

/* Tabs pattern (enhanced by main.js) */
.wn-tab { background: var(--c-accent2); color: #fff; padding: 44px 40px; font-size: 16px; line-height: 1.75; }
.wn-tab + .wn-tab { margin-top: 10px; }
.wn-tab > * { margin: 0; color: #fff; }
.wn-tab > * + * { margin-top: 1em; }
.wn-prose .wn-tab .wn-tab__title { font: 500 18px/1.4 var(--f-sans); color: #fff; margin: 0 0 12px; }
.wn-tabs__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.wn-tabs__nav button { height: 56px; padding: 0 20px; border: 1px solid var(--c-line); border-bottom: 0; background: #fff; color: var(--c-ink); font: 500 15px var(--f-sans); cursor: pointer; }
.wn-tabs__nav button[aria-selected="true"] { border-color: var(--c-accent2); background: var(--c-accent2); color: #fff; }
.wn-tabs.is-ready .wn-tab + .wn-tab { margin-top: 0; }
.wn-tabs.is-ready .wn-tab__title { display: none; }
.wn-tabs.is-ready > .wn-tabs__nav + .wn-tab { margin-top: 0; }
.wn-prose .wn-tabs.is-ready > * + * { margin-top: 0; }

/* Comments -------------------------------------------------------------- */
.wn-comments { max-width: 800px; width: calc(100% - 80px); margin: 0 auto; padding-block: clamp(90px, 9cqw, 130px) clamp(90px, 10cqw, 150px); }
.wn-comment-list, .wn-comment-list .children { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.wn-comment-list .children { margin-top: 20px; padding-left: 60px; }
.wn-comment-list .comment-body { border: 1px solid var(--c-line); border-radius: 16px; padding: 40px; position: relative; }
.wn-comment-list .comment-meta { display: flex; flex-direction: column; gap: 6px; }
.wn-comment-list .comment-author { display: flex; align-items: center; gap: 20px; font-size: 18px; font-weight: 500; }
.wn-comment-list .comment-author .avatar { width: 66px; height: 66px; border-radius: 50%; }
.wn-comment-list .says { display: none; }
.wn-comment-list .comment-metadata { padding-left: 86px; margin-top: -30px; font-size: 14px; }
.wn-comment-list .comment-metadata a { color: var(--c-faint); }
.wn-comment-list .comment-content { margin-top: 30px; font-size: 16px; color: var(--c-muted); }
.wn-comment-list .reply { position: absolute; right: 40px; top: 40px; font-size: 14px; font-weight: 600; }
.wn-comment-list .reply a { color: var(--c-accent2); }
.comment-respond { margin-top: 100px; }
.comment-respond .comment-reply-title { margin-bottom: 50px; }
.comment-form { display: grid; gap: 20px; color: var(--c-muted); }
.comment-form label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink); }
.comment-form .comment-form-cookies-consent label { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; }
.comment-form p { margin: 0; }
.comment-form .wn-btn { border: 0; }

/* Small screens --------------------------------------------------------- */
@media (max-width: 640px) {
	.wn-fields--2 { grid-template-columns: 1fr; }
	.wn-gallery__item.is-wide { grid-column: auto; }
	.wn-gallery__item.is-tall { grid-row: auto; }
	.wn-postnav { grid-template-columns: 1fr; }
	.wn-postnav__link--prev, .wn-postnav > span:first-child { border-right: 0; border-bottom: 1px solid var(--c-line); }
	.wn-postnav__img { width: 90px; height: 90px; }
	.wn-author__img { width: 120px; height: 120px; }
	.wn-comment-list .children { padding-left: 20px; }
	.wn-comment-list .reply { position: static; margin-top: 20px; }
	.wn-lightbox { padding: 60px 16px; }
	.wn-lightbox__nav { top: auto; bottom: 70px; transform: none; }
}

/* Page header strip (all pages except Home) ------------------------------ */
.wn-strip { position: relative; overflow: hidden; background: var(--c-soft); padding-block: clamp(70px, 8cqw, 120px); }
.wn-strip.has-image { background: var(--c-dark); color: #fff; padding-block: clamp(90px, 10cqw, 150px); }
.wn-strip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wn-strip__tint { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.wn-strip__inner { position: relative; }
.wn-strip .wn-breadcrumbs { margin-bottom: 28px; }
.wn-strip__title { max-width: 1100px; font-size: clamp(44px, 5cqw, 72px); line-height: 1.1; }
.wn-strip__text { max-width: 720px; margin: 28px 0 0; font-size: 17px; line-height: 1.7; color: var(--c-muted); }
.wn-strip__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; font-size: 14px; color: var(--c-muted); }
.wn-strip__avatar { width: 40px; height: 40px; border-radius: 50%; }
.wn-strip__author { font-weight: 500; }
.wn-strip__cat { padding: 6px 10px; border-radius: 3px; background: var(--c-accent); color: var(--c-on-accent); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wn-strip__cat:hover { color: var(--c-on-accent); filter: brightness(.95); }
.wn-strip__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 40px; }
.wn-strip__call { border-left: 1px solid var(--c-line); padding: 4px 0 4px 30px; }
.wn-strip__call-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.wn-strip__call a { display: block; margin-top: 6px; font-size: 21px; font-weight: 500; color: inherit; }
.wn-strip.has-image :is(.wn-strip__text, .wn-strip__meta, .wn-breadcrumbs) { color: rgba(255, 255, 255, .85); }
.wn-strip.has-image :is(.wn-breadcrumbs a, .wn-strip__author, .wn-strip__call a) { color: #fff; }
.wn-strip.has-image :is(.wn-breadcrumbs a, .wn-strip__author, .wn-strip__call a):hover { color: var(--c-accent); }
.wn-strip.has-image .wn-strip__call { border-color: rgba(255, 255, 255, .6); }

.wn-single__hero { margin-top: clamp(50px, 6cqw, 80px); }
.wn-service__img { margin: 0 0 40px; }
.wn-service__img img { width: auto; max-width: 100%; border-radius: 16px; }

/* Hover & motion --------------------------------------------------------- */
html { scroll-padding-top: 24px; }
.wn-topbar a:hover { color: var(--c-accent2); }
.wn-breadcrumbs a { transition: color .2s; }
.wn-btn--outline:hover, .wn-btn--outline-ink:hover, .wn-btn--outline-bg:hover { background: var(--c-accent2); border-color: var(--c-accent2); color: #fff; }
.wn-share a { transition: transform .25s, background-color .25s, color .25s, filter .25s; }
.wn-share a:hover { background: var(--c-accent2); color: #fff !important; filter: none; }
.wn-filter { transition: background-color .2s, border-color .2s, color .2s; }
.wn-pagination .page-numbers { transition: border-color .2s, color .2s, background-color .2s; }
.wn-pagination a.page-numbers:hover { border-color: var(--c-accent2); color: var(--c-accent2); }
.wn-postnav__link { transition: background-color .25s; }
.wn-postnav__link:hover { background: var(--c-soft); }
.wn-postnav__title { transition: color .2s; }
.wn-badge { transition: transform .3s, background-color .3s, color .3s; }
.wn-post-card__title { transition: color .25s; }
.wn-post-card__title) { color: var(--c-accent2); }
.wn-card:hover .wn-badge { background: var(--c-accent2); color: #fff; }
.wn-gallery__link .wn-badge { transition: transform .35s, background-color .3s; }
.wn-gallery__link:hover .wn-badge { background: #fff; }

@media (min-width: 901px) {
	.wn-menu > li > a { position: relative; border-bottom-color: transparent !important; }
	.wn-menu > li > a::after { content: ""; position: absolute; left: clamp(12px, 2cqw, 30px); right: clamp(12px, 2cqw, 30px); bottom: 0; height: 3px; background: var(--c-accent2); transform: scaleX(0); transition: transform .3s ease; }
	.wn-menu > li > a:hover::after, .wn-menu > .is-active > a::after, .wn-menu > .current_page_item > a::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
	.wn-btn { transition: background-color .25s, border-color .25s, color .25s, filter .25s, transform .25s, box-shadow .25s; }
	.wn-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--c-dark-rgb), .14); }
	.wn-cf7 .wpcf7-submit { transition: filter .25s, transform .25s, box-shadow .25s, background-color .25s; }
	.wn-cf7 .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--c-dark-rgb), .14); }
	.wn-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s; }
	.wn-card:hover { transform: translateY(-6px); }
	.wn-card img { transition: transform .6s ease; }
	.wn-card:hover img:not(.avatar) { transform: scale(1.05); }
	.wn-card:hover .wn-badge { transform: translateX(4px); }
	.wn-gallery__link:hover .wn-badge { transform: rotate(90deg); }
	.wn-share a:hover { transform: translateY(-3px); }
}
