/*
Theme Name: Konstruct
Author: Konstruct, Inc.
Description: Quick-launch marketing site theme for Konstruct — mobile-first, semantic, SEO/GEO-optimized foundation. Homepage template: front-page.php.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: konstruct
*/

/* ---------- Tokens · Ledger kit (purple variant) ---------- */
:root {
  --ink: #18151E;
  --paper: #FFFFFF;
  --mist: #F4F1F9;
  --brand: #502D7F;
  --brand-deep: #3A1F5F;
  --accent: #EB6900;
  --accent-deep: #C85700;
  --line: #E6E2EC;
  --muted: #5A5560;
  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 68rem;
  --radius: 2px;
  --s1: .5rem; --s2: .75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.25rem; --s6: 3.5rem; --s7: 5rem;
}

/* ---------- Base (mobile-first) ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* No scroll-behavior:smooth — Chrome animates CROSS-PAGE fragment jumps with
   it, and load work cancels the animation mid-flight, stranding deep links
   partway down (the case-study anchors bug). The only same-page anchor is
   the skip link, which should jump instantly anyway. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 var(--s3); letter-spacing: .002em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 650; line-height: 1.3; margin: 0 0 var(--s3); }
p { margin: 0 0 var(--s3); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
/* Anchored targets clear the sticky header (~64px) with breathing room. */
[id] { scroll-margin-top: 5rem; }
.section { padding-block: var(--s6); }
.section--tint { background: var(--mist); }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s2);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
/* Service-page lede: the text is split equally in half at a word boundary
   (page-hero render.php) — two newspaper columns on tablet/desktop. Below
   48em the spans are inline, so the paragraph reads as one flowing line of
   text with no visible seam. */
@media (min-width: 48em) {
  .lede--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); max-width: none; }
  .lede--split > span { display: block; }
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-deep); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn--ghost {
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--ink);
  padding: .8rem .1rem .35rem;
  border-bottom: 1px solid var(--brand);
}
.btn--ghost:hover { background: transparent; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand-deep); }
.site-header :focus-visible { outline-color: #fff; }
/* Sit below the WP admin bar when logged in (32px, 46px on small screens) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s2); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { height: 20px; width: auto; display: block; }
@media (min-width: 48em) { .brand img { height: 26px; } }
/* Header quick actions — contact + LinkedIn grouped right of the logo,
   hairline divider fences them off from the menu button (design option B). */
.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; margin-right: -.45rem; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--paper); }
.header-actions a:hover { color: #B79FE0; }
.header-actions .nav-icon { width: 21px; height: 21px; }
.header-actions-div { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin-left: .35rem; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  padding: .7rem .5rem; margin-right: -.5rem;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 2px;
  background: var(--paper); border-radius: 1px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] .bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.site-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .25rem; text-decoration: none; color: #fff; font-weight: 550; }
.site-nav a:hover { color: #B79FE0; } /* light brand tint — var(--brand) is too dark against the dark header */
.site-nav .nav-icon { flex: none; opacity: .9; }
/* Sub-menu = darker-purple panel (one step below the brand-deep header); 2-column grid on mobile, 3 columns from 48em. */
.site-nav .sub-menu {
  list-style: none; margin: .35rem 0 .6rem; padding: .6rem .75rem;
  background: #2C1749; border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .75rem;
}
@media (min-width: 48em) {
  .site-nav .sub-menu { grid-template-columns: repeat(3, 1fr); column-gap: 1rem; }
}
.site-nav .sub-menu a { font-size: .93rem; font-weight: 450; color: #fff; padding: .4rem; border-radius: 6px; }
/* #B79FE0 fails contrast on the panel — lighter tint + pill keeps the hover accessible. */
.site-nav .sub-menu a:hover {
  color: #EDE3FF; background: rgba(255, 255, 255, .1);
  text-decoration: underline; text-underline-offset: 3px;
}
.site-nav .nav-cta > a {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: .55rem 1rem; justify-content: center; margin-top: var(--s2);
}
/* Darkening on hover would blend into the brand-deep header — lighten instead
   (same light brand tint as the nav-link hover, ink text for contrast). */
.site-nav .nav-cta > a:hover { background: #B79FE0; color: var(--ink); }
/* Open menu = drawer panel sliding out from under the sticky bar (overlays the page). */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--brand-deep);
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 30px -18px rgba(24, 21, 30, .55);
  padding: var(--s3) max(1.25rem, calc((100% - var(--wrap)) / 2)) var(--s4);
  max-height: calc(100dvh - 3.5rem); overflow-y: auto;
}
.js .site-nav {
  transform-origin: top;
  transition: transform .28s ease, opacity .28s ease, display .28s allow-discrete;
}
.js .site-nav[hidden] { display: none; opacity: 0; transform: translateY(-.6rem); }
@starting-style {
  .js .site-nav:not([hidden]) { opacity: 0; transform: translateY(-.6rem); }
}
/* The hamburger toggle is used at every viewport width by design — no desktop nav bar. */

/* ---------- Hero: case-study slideshow + static intro copy ---------- */
/* The slideshow is a dark, image-led band (one linked case-study title per
   slide); the intro copy sits below it on the normal light page surface.
   Slides stack in one grid cell: the tallest slide sets the band height, so
   cross-fades never shift the layout below. Inactive slides are
   visibility:hidden — unfocusable and out of the accessibility tree — while
   still fading (visibility flips after the opacity transition ends). */
.hero { padding-block: 0 var(--s6); }
.hero-slideshow { position: relative; background: var(--ink); }
.hero-slideshow :focus-visible { outline-color: #fff; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Mobile: fixed 4:5 portrait frame (pairs with the study-band "Hero slide
     image — mobile" crops); 48em+ swaps back to viewport-based height. */
  aspect-ratio: 4 / 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hero-figure { position: absolute; inset: 0; margin: 0; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; } /* upper-third bias: keeps mid-frame subjects visible when wide viewports crop the landscape masters, without pinning to ceiling/headroom */
/* Legibility scrim — the caption sits at the bottom, so only the lower band
   darkens. The ramp starts at 28% and reaches .9 alpha by 68% so the kicker
   line (the highest caption text) still sits under ≥.85 alpha ink over even
   the lightest image (#B79FE0 kicker ≥5:1, white link ≥11:1). */
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 21, 30, 0) 28%, rgba(24, 21, 30, .9) 68%);
}
/* One linked title per slide — deliberately minimal. */
.hero-slide-caption {
  position: relative; z-index: 1;
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
  padding-block: var(--s4) calc(var(--s3) + 3.25rem); /* bottom room for the 4.25rem controls row */
}
.slide-kicker {
  margin: 0 0 .3rem;
  font-size: .72rem; font-weight: 650;
  letter-spacing: .24em; text-transform: uppercase;
  color: #B79FE0; /* on-dark tint, matches .study--brand eyebrows */
}
.slide-link { margin: 0; }
.slide-link a {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  max-width: 30ch;
  display: inline-block;
}
.slide-link a:hover { color: #B79FE0; text-decoration: underline; text-underline-offset: .18em; }
/* Static intro copy below the slideshow — the original light hero copy. */
.hero-copy { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; padding-top: var(--s5); }
/* Intro figure: free-form artwork beside the copy from 48em up — rendered
   uncropped at its natural proportions (transparent PNG/WebP sits directly
   on the page surface). The 4:5 slideshow owns the small screen, so mobile
   hides it. */
.hero-intro-figure { display: none; margin: 0; }
@media (min-width: 48em) {
  .hero-copy { display: flex; align-items: center; gap: var(--s6); }
  .hero-copy-text { flex: 1 1 auto; }
  .hero-intro-figure { display: block; flex: none; }
  .hero-intro-img { width: clamp(240px, 24vw, 320px); height: auto; display: block; }
}
.hero h1 { max-width: 16ch; }
/* Mobile-only: the home hero heading runs 1.5× the base h1 (52.8px at 375w),
   fluid so it breathes down on the narrowest phones instead of clipping.
   16vw - .45rem hits exactly 3.3rem at 375px; ≥48em falls back to the base
   h1 clamp (3.5rem at desktop). */
@media (max-width: 47.9375em) {
  .hero h1 { font-size: clamp(2.5rem, 16vw - .45rem, 3.3rem); }
}
.hero .lede { margin-bottom: var(--s4); }
.hero-proof { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; max-width: 52ch; }

/* Slideshow controls (revealed by JS) */
/* The hidden attribute's UA display:none loses to any author display rule —
   without this, no-JS visitors would see dead controls (same pattern as
   .site-nav[hidden]). */
.hero-controls[hidden] { display: none; }
.hero-controls {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--s2);
  padding-block: var(--s3);
  pointer-events: none; /* the transparent row must not swallow caption clicks… */
}
.hero-dot { pointer-events: auto; } /* …only its buttons are targets */
.hero-dots { display: flex; align-items: center; }
.hero-dot { background: none; border: 0; padding: .9rem .45rem; cursor: pointer; } /* padded hit area around the dot */
.hero-dot::before {
  content: "";
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transition: background .3s ease;
}
.hero-dot:hover::before { background: #B79FE0; }
.hero-dot[aria-current="true"]::before { background: #fff; }

@media (min-width: 48em) {
  .hero-slide { aspect-ratio: auto; min-height: clamp(26rem, 62vh, 38rem); }
  .slide-link a { max-width: 48ch; }
}

/* ---------- Images in cards & why ---------- */
.card-img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 2px;
  margin-bottom: var(--s3);
}
.why-grid { display: grid; gap: var(--s4); }
.why-figure { margin: 0; max-width: 440px; }
.why-figure img { width: 100%; height: auto; border-radius: 3px; }
@media (min-width: 48em) {
  .why-grid { grid-template-columns: .85fr 1.15fr; align-items: center; }
  .why-figure { max-width: none; }
}

/* ---------- Service clusters ---------- */
.cluster-list { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.cluster-list li { border-top: 1px solid var(--line); }
.cluster-list a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: .6rem 0; text-decoration: none; font-weight: 600; color: var(--ink);
}
.cluster-list a::after { content: "\2192"; color: var(--brand); }
.cluster-list a:hover { color: var(--brand); }
.after-grid { margin: var(--s4) 0 0; font-weight: 650; }
.after-grid a { text-decoration: none; }
.after-grid a:hover { text-decoration: underline; }

/* ---------- Card grids ---------- */
.cards { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 40em) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Why list ---------- */
.why { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.why li { border-left: 2px solid var(--brand); padding-left: var(--s3); }
.why h3 { margin-bottom: .3rem; }
.why p { margin: 0; color: var(--muted); }
@media (min-width: 64em) { .why { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: var(--s2) 0 0; color: var(--muted); max-width: 65ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.cta-band h2 { max-width: 22ch; }
@media (min-width: 48em) {
  /* Desktop: full-width band — the section carries the surface (like .section--tint),
     content stays in the standard site column. Mobile keeps the boxed card. */
  .cta-band { background: #fff; border-block: 1px solid var(--line); }
  .cta-band .wrap { background: none; border: 0; border-radius: 0; padding: 0; }
}
.cta-contact { margin-top: var(--s3); color: var(--muted); font-size: .97rem; }
.cta-contact a { color: var(--ink); font-weight: 650; }

/* ---------- Inside pages ---------- */
.page-hero { padding: var(--s6) 0 var(--s5); }
.page-hero h1 { max-width: 18ch; }
.page-hero .crumb { color: var(--brand); text-decoration: none; }
.page-hero .crumb:hover { text-decoration: underline; }
/* ---------- 404 ---------- */
.error-404 .lede { margin-bottom: var(--s4); }
.notfound-links { padding-block: 0 var(--s6); }
.notfound-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.svc-index-wrap { border-top: 1px solid var(--line); }
.svc-index { display: grid; gap: var(--s6) var(--s5); }
.svc-title { font-size: 1.35rem; margin-bottom: var(--s2); }
.svc-entry img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; margin-bottom: var(--s3); }
.svc-desc { color: var(--muted); max-width: 46ch; margin: 0 0 var(--s3); }
.read-more {
  display: inline-block; font-weight: 600; font-size: .92rem;
  color: var(--ink); text-decoration: none;
  padding-bottom: .2rem; border-bottom: 1px solid var(--brand);
}
.read-more:hover { color: var(--brand); }
@media (min-width: 40em) { .svc-index { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .svc-index { grid-template-columns: 1fr 1fr 1fr; } }
.service-hero-img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 3px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.svc-list li { border-top: 1px solid var(--line); padding: .55rem 0; font-size: .95rem; }
@media (min-width: 40em) { .svc-list { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
.svc-detail-grid { display: grid; gap: var(--s4); }
@media (min-width: 64em) { .svc-detail-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s6); } }

/* ---------- Content pages (approach · case studies · about) ---------- */
/* Numbered process steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; border-top: 2px solid var(--brand); padding-top: var(--s3); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: var(--brand); margin-bottom: var(--s2);
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Engagement timeline */
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.phases li { border-left: 2px solid var(--brand); padding-left: var(--s3); }
.phases .phase-label { display: block; font-weight: 650; margin-bottom: .3rem; }
.phases p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 48em) { .phases { grid-template-columns: repeat(3, 1fr); } }

/* Split media/text section (case studies, about) */
.split { display: grid; gap: var(--s4); }
.split-figure { margin: 0; }
.split-figure img { width: 100%; height: auto; border-radius: 3px; }
.split-figure--portrait { max-width: 440px; }
@media (min-width: 48em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: var(--s6); }
  .split--flip .split-figure { order: 2; }
  .split-figure--portrait { max-width: none; }
}

/* Contact split: image + business details left, JotForm right; below 48em it
   stacks in source order — image → details → form */
.contact-split { display: grid; gap: var(--s5); }
.contact-figure { margin: 0 0 var(--s4); }
.contact-figure img { width: 100%; height: auto; border-radius: 3px; }
.contact-details { font-style: normal; }
.contact-details p { margin: 0 0 var(--s2); }
.contact-company { font-weight: 650; }
.contact-address { color: var(--muted); }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
/* No reserved height on .contact-embed: the jsform script inserts its iframe
   synchronously during parse (539px start), so a reservation prevents no
   shift — and would leave a blank band when JS or the JotForm host is blocked. */
.contact-embed iframe { max-width: 100%; }
.contact-embed-placeholder {
  display: grid; place-items: center; min-height: 30rem; padding: var(--s4);
  background: var(--mist); border: 2px dashed var(--brand); border-radius: var(--radius);
  color: var(--muted); text-align: center;
}
@media (min-width: 48em) {
  .contact-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s6); align-items: start; }
}

/* Utility sections: Custom HTML + Text. Embedded media stays inside the
   column; with the block's "Scroll wide content" option on (default),
   anything wider — a table, a fixed-width widget — scrolls within the
   section instead of forcing a page scroll. The option exists because a
   scroll container also clips in-page popovers and disables position:sticky
   inside it; editors turn it off for embeds that need those. */
.custom-html--scroll { overflow-x: auto; }
.custom-html--narrow { max-width: 46rem; }
.custom-html :is(iframe, embed, object, video, img) { max-width: 100%; }
/* Editor-preview note shown inside utility blocks before they have content. */
.block-note {
  background: var(--mist); border: 2px dashed var(--brand); border-radius: var(--radius);
  color: var(--muted); padding: var(--s3); text-align: center;
}

/* Case-study bands: white by default; .study--brand is the purple variant */
.study-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  margin: var(--s4) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line);
}
.study-stats .num { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; }
.study-stats .lbl { color: var(--muted); font-size: .9rem; }
.study-tags { margin: var(--s3) 0 0; color: var(--muted); font-size: .92rem; }
.study-tags a { color: var(--ink); font-weight: 600; }
.study--brand { background: var(--brand-deep); }
.study--brand h2, .study--brand .study-stats .num { color: #fff; }
.study--brand p, .study--brand .study-stats .lbl, .study--brand .study-tags { color: #D7D3DF; }
.study--brand .eyebrow { color: #B79FE0; }
.study--brand .study-stats { border-top-color: rgba(255, 255, 255, .25); }
.study--brand .study-tags a { color: #fff; }
.study--brand li, .study--brand a { color: #fff; }
.study--brand a:hover { color: #B79FE0; }

/* Two-column card grid (about values) */
@media (min-width: 40em) { .cards--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Generic page content ---------- */
.entry-content { max-width: 46rem; }
.entry-content a { color: var(--brand); }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin: 0 0 var(--s3); }
.entry-content li { margin-bottom: .35rem; }
.entry-content h2 { margin-top: var(--s5); }
.entry-content h3 { margin-top: var(--s4); }
/* Classic-editor image alignment + captions — the Text section block is the
   theme's first TinyMCE surface, and wp_kses_post keeps these classes. */
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content .alignleft { float: left; margin: .3rem var(--s4) var(--s3) 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3rem 0 var(--s3) var(--s4); max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { color: var(--muted); font-size: .9rem; margin-top: var(--s1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D7D3DF; padding-block: var(--s5); margin-top: var(--s6); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: var(--s4); }
.footer-logo { height: 20px; width: auto; display: block; margin-bottom: var(--s3); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-nav a { text-decoration: none; }
.footer-meta { color: #A29CAD; font-size: .85rem; }
@media (min-width: 48em) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
