:root {
  --hapster-bg: #f6f4ef;
  --hapster-surface: #ffffff;
  --hapster-ink: #131313;
  --hapster-muted: #66615a;
  --hapster-line: #ddd6cc;
  --hapster-accent: #e7a941;
  /* HAP-01: on-image overlay tokens defined in the theme layer (not only the
     React shell build), so overlay text resolves to white on every template. */
  --color-white: #fff;
  --color-black: #000;
  --hapster-color-on-image: #fff;
  --hapster-max: 1180px;
  --hapster-blog-max: 100%;
  --hapster-radius: 24px;
  --brand-accent: #7DC6AD;
  --brand-accent-strong: #5FAE94;
  --brand-accent-ink: #0A2A22;
  --off-white: #FAFAF8;
  --ink-900: #0B0F14;
  --ink-700: #1B2330;
  --ink-600: #2A3340;
  --ink-400: #6B7585;
  --hairline: #ECEEF1;
  --space-section-y: clamp(3rem, 6.5vw, 5.5rem);
  --container-max: 1240px;
  --fs-h1: clamp(2rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-lead: clamp(1rem, 1.4vw, 1.25rem);
  --radius-soft: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--hapster-ink);
  background: var(--hapster-bg);
  line-height: 1.6;
}

/* Keep legacy serif defaults, but force React-shell pages to use the
   same typography baseline as the Vite source-of-truth. */
header[data-react-header],
header[data-react-header] :where(a, button, span, input),
.hapster-react-page,
.hapster-react-page :where(h1, h2, h3, h4, h5, h6, p, li, a, button, input, label, span, blockquote) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Parity guardrails for the React-like WP header and dynamic Use Cases block. */
header[data-react-header] a[href*="deploiement"],
header[data-react-header] a[href*="deploiement"] span {
  color: var(--text-gray) !important;
}

[data-use-cases-proof] h2 {
  color: var(--ink-900);
}

[data-use-cases-proof] p.mt-5 {
  color: var(--ink-600);
}

/* Shared scroll-reveal primitives used by Gutenberg blocks and dynamic sections. */
html[data-reveal-ready="true"] [data-reveal].is-reveal-pending {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  will-change: opacity, transform;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-reveal-ready="true"] [data-reveal="fade-in"].is-reveal-pending {
  transform: none;
}

html[data-reveal-ready="true"] [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #hapster-scroll-progress-indicator {
    display: none !important;
  }
}

#hapster-scroll-progress-indicator {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 60;
  background: var(--brand-accent, #5FAE94);
}

a {
  text-decoration: none;
}

a.text-white {
  color:#fff;
}

/* HAP-01: fallback for the on-image text utility so overlay copy stays white
   even on templates where the React shell stylesheet is not enqueued. Uses a
   literal fallback in case --color-white is unavailable. */
.text-white {
  color: var(--color-white, #fff);
}

img {
  max-width: 100%;
}

.site-container {
  width: min(calc(100% - 2rem), var(--hapster-max));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 239, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hapster-line);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-branding__link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav__menu,
.site-footer__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__menu a {
  font-family: Inter, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4286;
  letter-spacing: normal;
}

header nav[aria-label='Navigation principale'] a {
  font-family: Inter, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
}

/* Third-level nav: .left-full and .min-w-[220px] are not compiled by the Tailwind build */
[data-react-subdropdown] > div {
  left: 100%;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(8, 20, 30, 0.14);
}

.hapster-section-controller {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 1;
  pointer-events: auto;
}

.hapster-section-controller[hidden] {
  display: none;
}

.hapster-section-controller__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--border-gray, var(--hapster-line));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(8, 20, 30, 0.12);
  padding: 0.375rem;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .hapster-section-controller__controls {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
  }
}

.hapster-section-controller__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-900, var(--hapster-ink));
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.hapster-section-controller__button:hover:not(:disabled),
.hapster-section-controller__button:focus-visible {
  border-color: var(--border-gray, var(--hapster-line));
  background: var(--off-white, var(--hapster-bg));
  outline: none;
}

.hapster-section-controller__button:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-accent, var(--hapster-accent));
}

.hapster-section-controller__button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.hapster-section-controller__button svg {
  width: 18px;
  height: 18px;
}

.hapster-section-controller__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  border-radius: 999px;
  background: var(--off-white, var(--hapster-bg));
  color: var(--ink-500, var(--hapster-muted));
  padding: 0.25rem 0.625rem;
  font-family: Inter, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.hapster-section-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: none;
  pointer-events: auto;
}

.hapster-section-rail[hidden] {
  display: none;
}

.hapster-section-rail__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hapster-section-rail__item {
  margin: 0;
  padding: 0;
}

.hapster-section-rail__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hapster-section-rail__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-500, var(--hapster-muted)) 52%, transparent);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.hapster-section-rail__dot:hover::before,
.hapster-section-rail__dot:focus-visible::before {
  background: var(--ink-900, var(--hapster-ink));
}

.hapster-section-rail__dot--active::before {
  width: 0.9rem;
  height: 0.56rem;
  background: var(--brand-accent, var(--hapster-accent));
}

.hapster-section-rail__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-accent, var(--hapster-accent));
}

@media (min-width: 640px) {
  .hapster-section-controller__button {
    width: 2.25rem;
    height: 2.25rem;
  }

  .hapster-section-controller__counter {
    min-width: 3.5rem;
    font-size: 0.6875rem;
  }
}

@media (min-width: 1024px) {
  .hapster-section-rail {
    display: flex;
  }
}

.site-main {
  padding: 2rem 0 4rem;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero__inner,
.narrow-stack {
  max-width: 780px;
}

.hero__eyebrow,
.entry-meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hapster-muted);
}

.hero__title,
.entry-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero__lead,
.entry-summary,
.archive-description {
  margin: 0;
  font-size: 1.1rem;
  color: var(--hapster-muted);
}

.content-section {
  padding: 2rem 0;
}

.error404 #main {
  min-height: clamp(62vh, 70vh, 78vh);
  display: grid;
  align-items: center;
}

.error404 .content-section {
  width: 100%;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.error404 .narrow-stack {
  margin-inline: auto;
  text-align: center;
  max-width: min(720px, 100%);
  background:
    radial-gradient(circle at 8% 8%, rgba(231, 169, 65, 0.2), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(111, 126, 85, 0.18), transparent 40%),
    var(--hapster-surface);
  border: 1px solid var(--hapster-line);
  border-radius: var(--hapster-radius);
  box-shadow: 0 22px 44px -34px rgba(19, 19, 19, 0.45);
  padding: clamp(1.8rem, 4vw, 3.6rem);
}

.error404 .hero__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.error404 .entry-title {
  margin: clamp(0.7rem, 1.8vw, 1.15rem) 0 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.error404 .entry-summary {
  margin: clamp(1rem, 2vw, 1.4rem) auto 0;
  max-width: 45ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.error404 .entry-summary + p {
  margin: clamp(1.5rem, 2.8vw, 2.2rem) 0 0;
}

.error404 .button-link {
  min-height: 3.1rem;
  padding-inline: clamp(1.2rem, 2.4vw, 1.9rem);
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.error404 .button-link:hover {
  background: #d89b38;
  box-shadow: 0 14px 30px -20px rgba(19, 19, 19, 0.5);
  transform: translateY(-1px);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.content-main,
.content-aside,
.panel,
.post-card,
.entry {
  background: var(--hapster-surface);
  border: 1px solid var(--hapster-line);
  border-radius: var(--hapster-radius);
}

.content-main,
.entry,
.panel,
.post-card,
.content-aside {
  padding: 1.5rem;
}

.post-list {
  display: grid;
  gap: 1.25rem;
}

.post-card__title,
.widget-title,
.site-footer__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--hapster-line);
}

.site-footer__copy {
  margin: 0;
  color: var(--hapster-muted);
}

/* Footer contact CTA mirrors the established header action while keeping a
   compact footprint inside the footer column. */
.hapster-footer-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--hapster-orange, #FFC000);
  box-shadow: 0 1px 2px rgba(11, 15, 20, 0.08);
  color: #0B0F14;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hapster-footer-contact-cta:hover {
  background: #0B0F14;
  box-shadow: 0 6px 16px rgba(11, 15, 20, 0.14);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.hapster-footer-contact-cta:active {
  box-shadow: 0 2px 6px rgba(11, 15, 20, 0.12);
  transform: translateY(0);
}

.hapster-footer-contact-cta:focus-visible {
  outline: 3px solid var(--brand-accent, #7DC6AD);
  outline-offset: 3px;
}

.hapster-footer-contact-cta svg {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .hapster-footer-contact-cta {
    transition: background-color 180ms ease, color 180ms ease;
  }

  .hapster-footer-contact-cta:hover,
  .hapster-footer-contact-cta:active {
    transform: none;
  }
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--hapster-accent);
  font-weight: 700;
}

/* Container context for the Hapster blocks.
 *
 * The blocks are ported from the React app, which establishes a single page-level container
 * (`<div className="@container">`, src/app/pages/templates/Home.tsx:506). WordPress had no
 * equivalent, so every Tailwind container-query variant the blocks emit — `@md:`, `@2xl:`,
 * `@3xl:`, `@4xl:`, `@xl:` — evaluated against no container and never matched. 108 occurrences
 * across 36 of the 45 block directories were silently inert: mostly padding and gap nudges,
 * plus 6 `grid-cols` variants in benefices-static, pricing-proof-static and
 * solution-intro-static, which rendered single-column at every viewport.
 *
 * This wrapper is on both templates — page-react.php:42 and content-universal.php:83 — so one
 * declaration covers Pages, posts and CPTs, and mirrors the React reference implementation.
 *
 * Safe with respect to containment: `container-type: inline-size` implies
 * `contain: layout style inline-size`, which makes this element a containing block for
 * fixed/absolute descendants. No block markup uses `position: fixed`, the 26 blocks using
 * `.absolute` all resolve against their own `.relative` section, and dialogs mount to
 * document.body (assets/js/react-shell.js:335) rather than inside this wrapper.
 *
 * Frontend only — the Tailwind bundle is not loaded in wp-admin, so there are no container
 * query rules for an editor-side container to satisfy.
 */
.hapster-react-page-content {
  container-type: inline-size;
}

/* Core paragraph and list typography.
 *
 * These declarations used to live in theme.json under styles.blocks. WordPress derives a
 * block's style selector from the block itself, and core/paragraph's selector is the bare
 * element `p` (core/list's is `ul, ol`), so theme.json emitted:
 *
 *   :root :where(p) { color: #4A5563; font-size: …; line-height: 1.7 }
 *
 * That matched every paragraph on the page, not just core paragraph blocks — including the
 * theme's own React-shell markup and the site footer. The React bundle wraps its utilities in
 * `@layer utilities` while this file and WordPress's global styles are unlayered, and
 * unlayered CSS beats layered regardless of specificity, so the Tailwind classes lost. Because
 * wp_should_load_separate_core_block_assets() is true, the rule was only emitted on pages
 * containing a core paragraph — which is why the homepage looked right and content pages did
 * not. Measured: `text-[11px]` rendering at 16px and `text-[var(--ink-600)]` at #4A5563 on
 * /use-cases/servier/ and /hello-world/.
 *
 * Targeting the block classes instead is an exact substitution — every core/paragraph block
 * renders with .wp-block-paragraph (verified 1:1 on both pages) — and cannot reach markup that
 * is not a core block. Editor parity is unaffected: editor.css already styles `:where(p, li)`
 * inside the block-list canvas independently of theme.json, and the editor never loads the
 * Tailwind bundle, so a bare selector has nothing to clobber there.
 */
.wp-block-paragraph,
.wp-block-list {
  color: #4A5563;
  font-size: var(--wp--preset--font-size--m);
  line-height: 1.7;
}

/* Core heading typography.
 *
 * Same root cause as the paragraph rules above, but worse reach. These came from
 * styles.elements.heading and styles.elements.h1…h6 in theme.json, and element styles are
 * emitted on EVERY page (unlike block styles, which are gated by block presence). WordPress
 * emitted them as a bare selector list:
 *
 *   h1, h2, h3, h4, h5, h6 { color:#000; font-weight:800; line-height:1.12 }
 *   h1 { letter-spacing:-0.02em } … h6 { … }
 *
 * Unlayered, so they beat the layered Tailwind utilities on every heading in the React shell
 * and in all 45 custom blocks. Measured on the homepage H1: letter-spacing -1.44px and
 * line-height 80.64px — a ratio of exactly 1.12/0.02, i.e. both theme.json values winning over
 * the component's own `leading-[1.02] tracking-tight`. 22 blocks set a custom heading leading
 * and 29 set an explicit heading colour; all were being overridden.
 *
 * Scoped to the block classes here instead. Font sizes were already safe — blocks set them via
 * inline style, which outranks everything — but line-height and letter-spacing were not.
 * Editor parity is unaffected: editor.css styles :where(h1…h6) inside the block canvas
 * independently of theme.json.
 */
/* Core link colour.
 *
 * This came from styles.elements.link in theme.json, which WordPress emits as the bare
 * `a:where(:not(.wp-element-button))`. Unlayered, so it beat every layered Tailwind colour
 * utility on every anchor on the site — including hover states. The header's contact CTA
 * carries `hover:text-white`, and that never applied: on hover the fill went black and the
 * label stayed black with it.
 *
 * Scoped here to links inside core blocks, which is what the declaration was ever meant to
 * style. Same fix as the paragraph, list and heading rules above.
 */
:where(.wp-block-paragraph, .wp-block-list, .wp-block-heading, .wp-block-quote, .wp-block-table, .wp-block-post-excerpt) a:where(:not(.wp-element-button)) {
  color: #000000;
}

.wp-block-heading,
.wp-block-post-title {
  color: #000000;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 800;
  line-height: 1.12;
}

h1.wp-block-heading,
h1.wp-block-post-title {
  font-size: var(--wp--preset--font-size--3-xl);
  letter-spacing: -0.02em;
}

h2.wp-block-heading {
  font-size: var(--wp--preset--font-size--2-xl);
  letter-spacing: -0.01em;
}

h3.wp-block-heading {
  font-size: var(--wp--preset--font-size--xl);
}

h4.wp-block-heading {
  font-size: var(--wp--preset--font-size--l);
  font-weight: 700;
}

h5.wp-block-heading {
  font-size: var(--wp--preset--font-size--m);
  font-weight: 700;
}

h6.wp-block-heading {
  font-size: var(--wp--preset--font-size--s);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hapster-react-page-content--universal {
  width: min(100%, var(--hapster-blog-max));
  margin: 0 auto;
  max-width: 1240px;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.1rem, 2vw, 2rem) clamp(1rem, 2.4vw, 2.4rem) clamp(2.6rem, 5vw, 4.5rem);
}

.hapster-react-page-content--universal .archive-header,
.hapster-react-page-content--universal .entry,
.hapster-react-page-content--universal .panel {
  background: var(--hapster-surface);
  border: 1px solid var(--hapster-line);
  border-radius: var(--hapster-radius);
  padding: clamp(1.25rem, 2vw, 2rem);
}

.hapster-react-page-content--universal .archive-header {
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
}

.hapster-react-page-content--universal .post-list {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.hapster-react-page-content--universal .post-list--blog {
  grid-template-columns: 1fr;
  max-width: 1040px;
}

.hapster-react-page-content--universal .post-list--search,
.hapster-react-page-content--universal .post-list--archive {
  max-width: 920px;
}

@media (min-width: 1440px) {
  .hapster-react-page-content--universal {
    max-width: 1380px;
    padding-inline: clamp(1.4rem, 3.1vw, 3.2rem);
  }

  .hapster-react-page-content--universal .archive-header,
  .hapster-react-page-content--universal .post-list,
  .hapster-react-page-content--universal .navigation,
  .hapster-react-page-content--universal .posts-navigation,
  .hapster-react-page-content--universal .post-navigation {
    max-width: 960px;
  }

  .hapster-react-page-content--universal .post-list--blog {
    max-width: 980px;
  }

  .hapster-react-page-content--universal .post-list--search,
  .hapster-react-page-content--universal .post-list--archive,
  .hapster-react-page-content--universal.is-search-results .archive-header {
    max-width: 840px;
  }
}

@media (min-width: 1024px) {
  .hapster-react-page-content--universal .post-list--blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.hapster-react-page-content--universal.is-search-results .archive-header {
  max-width: 920px;
}

.hapster-react-page-content--universal.is-search-results .entry-title {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  margin-bottom: 0;
}

.hapster-blog-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
}

.hapster-blog-hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6f7e55;
  font-weight: 700;
}

.hapster-blog-hero__title {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
}

.hapster-blog-hero__lead {
  margin: 0;
  max-width: 62ch;
  color: var(--hapster-muted);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
}

.hapster-blog-controls {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.hapster-blog-controls__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hapster-blog-controls__search input[type='search'] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hapster-line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--hapster-ink);
  padding: 0.62rem 0.95rem 0.62rem 2.1rem;
  font: inherit;
  background-image: radial-gradient(circle at center, #66615a 0, #66615a 45%, transparent 47%);
  background-size: 0.52rem 0.52rem;
  background-repeat: no-repeat;
  background-position: 0.9rem 50%;
}

.hapster-blog-controls__search button {
  border: 1px solid #111;
  border-radius: 0.75rem;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.62rem 1rem;
  cursor: pointer;
}

.hapster-blog-controls__search button:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.hapster-blog-controls__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hapster-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hapster-line);
  border-radius: 999px;
  padding: 0.38rem 0.74rem;
  background: #fff;
  color: var(--hapster-ink);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.hapster-chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.hapster-react-page-content--universal .post-card {
  background: #fff;
  border: 1px solid var(--hapster-line);
  border-radius: 0.9rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hapster-react-page-content--universal .post-card:hover {
  border-color: #cfd7c2;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -26px rgba(16, 24, 32, 0.5);
}

.hapster-react-page-content--universal .post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--hapster-line);
}

.hapster-react-page-content--universal .post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hapster-react-page-content--universal .post-card__media-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(231, 169, 65, 0.35), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(111, 126, 85, 0.28), transparent 42%),
    linear-gradient(135deg, #0f1720, #222f3c 58%, #29384a);
}

.hapster-react-page-content--universal .post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.hapster-react-page-content--universal .post-card__chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(22, 35, 24, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hapster-react-page-content--universal .post-card--search {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  border-radius: 0.8rem;
}

.hapster-react-page-content--universal .post-card--search .post-card__media {
  aspect-ratio: auto;
  min-height: 100%;
  border-right: 1px solid var(--hapster-line);
  border-bottom: 0;
}

.hapster-react-page-content--universal .post-card--search .post-card__header,
.hapster-react-page-content--universal .post-card--search .post-card__excerpt,
.hapster-react-page-content--universal .post-card--search .post-card__read-row {
  padding-inline: 0.9rem;
}

.hapster-react-page-content--universal .post-card--search .post-card__header {
  padding-top: 0.82rem;
}

.hapster-react-page-content--universal .post-card--search .post-card__excerpt {
  padding-bottom: 0.42rem;
}

.hapster-react-page-content--universal .post-card--search .post-card__read-row {
  padding-bottom: 0.72rem;
}

.hapster-react-page-content--universal .post-card--search .post-card__title {
  font-size: clamp(0.94rem, 1.1vw, 1.06rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.hapster-react-page-content--universal .post-card--search .post-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.hapster-react-page-content--universal .post-card--search .entry-meta {
  font-size: 0.64rem;
  margin-bottom: 0.4rem;
}

.hapster-react-page-content--universal .post-card--search .post-card__excerpt {
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .hapster-react-page-content--universal .post-card--search {
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  }
}

.hapster-react-page-content--universal .post-card--search .post-card__chip {
  top: 0.62rem;
  left: 0.62rem;
  padding: 0.24rem 0.5rem;
  font-size: 0.56rem;
}

/* Dynamic press blocks parity layer (WP <-> React source). */
[data-press-listing],
[data-press-listing] :where(h1, h2, h3, h4, p, a, span),
[data-press-mentions],
[data-press-mentions] :where(h1, h2, h3, h4, p, a, span) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-press-listing] {
  background: radial-gradient(1200px 500px at 100% -10%, #eef5f8 0%, rgba(238, 245, 248, 0) 66%), var(--off-white);
}

[data-press-listing] h2,
[data-press-listing] h3,
[data-press-mentions] h2,
[data-press-mentions] h3 {
  letter-spacing: -0.02em;
}

[data-press-listing] article,
[data-press-mentions] article {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

[data-press-listing] article:hover,
[data-press-mentions] article:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(8, 20, 30, 0.1);
}

[data-press-mentions] article {
  transform: none;
  box-shadow: 0 10px 24px rgba(8, 20, 30, 0.04);
}

[data-press-mentions] article:hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(8, 20, 30, 0.06);
}

[data-press-listing] a,
[data-press-mentions] a {
  text-underline-offset: 3px;
}

[data-press-listing] .grid.grid-cols-1.\@xl\:grid-cols-2 {
  align-items: stretch;
}

[data-press-listing] .grid.grid-cols-1.\@xl\:grid-cols-2 article {
  height: 100%;
}

[data-press-listing] .rounded-\[var\(--radius-soft\)\].border.border-\[var\(--hairline\)\].bg-white.p-6.\@md\:p-8,
[data-press-listing] .mt-12.rounded-\[var\(--radius-soft\)\].border.border-\[var\(--hairline\)\].bg-white.p-6.\@md\:p-8 {
  box-shadow: 0 18px 38px rgba(8, 20, 30, 0.07);
}

@media (max-width: 900px) {
  [data-press-listing],
  [data-press-mentions] {
    --space-section-y: clamp(2.5rem, 8vw, 3.2rem);
  }

  [data-press-listing] h2,
  [data-press-mentions] h2 {
    font-size: clamp(1.85rem, 7vw, 2.35rem) !important;
  }
}

.hapster-react-page-content--universal .post-card__header,
.hapster-react-page-content--universal .post-card__excerpt,
.hapster-react-page-content--universal .post-card__read-row {
  padding-inline: 1.15rem;
}

.hapster-react-page-content--universal .post-card__header {
  padding-top: 1.05rem;
}

.hapster-react-page-content--universal .entry-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin-bottom: 0.75rem;
}

.hapster-react-page-content--universal .post-card__title {
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.32;
}

.hapster-react-page-content--universal .post-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.hapster-react-page-content--universal .post-card:hover .post-card__title a {
  color: #6f7e55;
}

.hapster-react-page-content--universal .post-card__excerpt {
  padding-bottom: 0.8rem;
  color: var(--hapster-muted);
  font-size: 0.9rem;
}

.hapster-react-page-content--universal .post-card__read-row {
  margin-top: auto;
  padding-bottom: 1.1rem;
}

.hapster-react-page-content--universal .post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6f7e55;
}

.hapster-react-page-content--universal .post-card__read::after {
  content: "->";
  transition: transform 0.2s ease;
}

.hapster-react-page-content--universal .post-card:hover .post-card__read::after {
  transform: translateX(2px);
}

.hapster-react-page-content--universal .entry-content {
  color: var(--hapster-ink);
}

.hapster-react-page-content--universal .entry-content > * {
  max-width: 74ch;
}

.hapster-react-page-content--universal .entry-content > * + * {
  margin-top: 1rem;
}

.hapster-react-page-content--universal .navigation,
.hapster-react-page-content--universal .posts-navigation,
.hapster-react-page-content--universal .post-navigation {
  width: 100%;
  max-width: 1080px;
  margin: 0.35rem auto 0;
}

.hapster-react-page-content--universal .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hapster-react-page-content--universal .nav-links a,
.hapster-react-page-content--universal .nav-links .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  min-width: 2.2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--hapster-line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hapster-react-page-content--universal .nav-links a {
  color: var(--hapster-ink);
  background: #fff;
}

.hapster-react-page-content--universal .nav-links .current,
.hapster-react-page-content--universal .nav-links a:hover {
  color: #fff;
  border-color: #111;
  background: #111;
}

/* Default Gutenberg compatibility layer.
   Scope to core post content so custom blocks/components keep their own CSS. */
:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) {
  --hapster-ds-font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  --hapster-ds-text: #000000;
  --hapster-ds-muted: #4A5563;
  --hapster-ds-border: #E6E8EC;
  --hapster-ds-primary: #7DC6AD;
  --hapster-ds-primary-strong: #5FAE94;
  --hapster-ds-focus: rgba(125, 198, 173, 0.38);
  font-family: var(--hapster-ds-font-family);
  color: var(--hapster-ds-text);
}

/* SCOPED TO CORE BLOCK CLASSES, NOT BARE ELEMENTS.
 *
 * These rules were written with :where() gates on the assumption that zero specificity made
 * them safe to place over any content. Specificity is not what decides here: the React shell's
 * utilities live in `@layer utilities` and this file declares no layers, and unlayered CSS
 * beats layered CSS regardless of specificity. A bare `h1` or `a` here therefore overrode the
 * shell's and the custom blocks' own Tailwind classes wherever post content wrapped them.
 *
 * Measured on the homepage H1 before this change: line-height 72.576px and letter-spacing
 * -1.296px on a 64.8px font — i.e. 1.12 and -0.02em from these rules, not the component's own
 * `leading-[1.02] tracking-tight`.
 *
 * Every selector below is now qualified with the class core actually puts on the block
 * (.wp-block-heading, .wp-block-post-title, .wp-block-paragraph, …), so the compat layer does
 * what it was always meant to do — style core blocks dropped into post content — and cannot
 * reach markup that is not a core block. Same fix as the theme.json p/h1-h6 changes.
 */
:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-heading, .wp-block-post-title) {
  font-family: var(--hapster-ds-font-family);
  color: var(--hapster-ds-text);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-block: 0 0.8rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h1.wp-block-heading,
:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h1.wp-block-post-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h2.wp-block-heading {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h3.wp-block-heading {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h4.wp-block-heading {
  font-size: 1.125rem;
  font-weight: 700;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h5.wp-block-heading {
  font-size: 1rem;
  font-weight: 700;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) h6.wp-block-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}



:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-paragraph, .wp-block-list, .wp-block-heading, .wp-block-quote, .wp-block-table, .wp-block-post-excerpt) a {
  color: var(--hapster-ds-text);
  text-decoration: underline;
  text-decoration-color: rgba(125, 198, 173, 0.65);
  text-underline-offset: 0.17em;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-paragraph, .wp-block-list, .wp-block-heading, .wp-block-quote, .wp-block-table, .wp-block-post-excerpt) a:hover {
  color: var(--hapster-ds-primary-strong);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-button__link {
  border: 1px solid #000;
  border-radius: 0.625rem;
  background: #000;
  color: #fff;
  font-family: var(--hapster-ds-font-family);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.62rem 1rem;
  text-decoration: none;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #000;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-button.is-style-hapster-secondary .wp-block-button__link {
  background: var(--hapster-ds-primary);
  border-color: var(--hapster-ds-primary);
  color: #082033;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-button.is-style-hapster-ghost .wp-block-button__link {
  background: transparent;
  border-color: transparent;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-quote {
  border-left: 3px solid var(--hapster-ds-primary);
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-quote p {
  color: #1b2330;
  font-size: 1.08rem;
  line-height: 1.65;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-quote cite {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--hapster-ds-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-pullquote {
  border-top: 1px solid var(--hapster-ds-border);
  border-bottom: 1px solid var(--hapster-ds-border);
  padding-block: 1.25rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-pullquote blockquote {
  border: 0;
  margin: 0;
  padding: 0;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--hapster-ds-border);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-table :where(th, td) {
  border: 1px solid var(--hapster-ds-border);
  padding: 0.62rem 0.72rem;
  font-size: 0.93rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-table th {
  background: #fafaf8;
  color: #1b2330;
  font-weight: 700;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--hapster-ds-border);
  opacity: 1;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-separator.is-style-hapster-soft {
  border-top-color: rgba(125, 198, 173, 0.5);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(pre, .wp-block-preformatted, .wp-block-code code) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(pre, .wp-block-preformatted) {
  background: #0f1720;
  color: #e7ecf1;
  border-radius: 0.625rem;
  border: 1px solid #222f3c;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-code {
  background: #f7f8fa;
  border: 1px solid var(--hapster-ds-border);
  border-radius: 0.625rem;
  padding: 0.8rem 1rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-image, .wp-block-gallery) img {
  border-radius: 0.875rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed) figcaption,
:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-element-caption {
  margin-top: 0.45rem;
  color: var(--hapster-ds-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--hapster-ds-border);
  border-radius: 0.875rem;
  background: #fafaf8;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-file .wp-block-file__button {
  border-radius: 0.625rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content)
  :where(.wp-block-group, .wp-block-columns, .wp-block-media-text, .wp-block-table table) {
  border-color: var(--hapster-ds-border);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(button, .wp-block-button__link, a):focus-visible {
  outline: 3px solid var(--hapster-ds-focus);
  outline-offset: 2px;
}

/* Optional utility classes for core Group/Columns blocks. */
:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .is-style-hapster-container {
  width: min(100%, 1240px);
  margin-inline: auto;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-group, .wp-block-columns).is-style-hapster-surface {
  border: 1px solid var(--hapster-ds-border);
  border-radius: 0.875rem;
  background: #fff;
  padding: 1.15rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) :where(.wp-block-group, .wp-block-columns).is-style-hapster-section {
  padding-block: clamp(2rem, 4vw, 3rem);
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .is-style-hapster-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .is-style-hapster-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-template > li {
  list-style: none;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-group.is-style-hapster-surface {
  height: 100%;
  display: grid;
  gap: 0.8rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-title {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.32;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-excerpt {
  color: var(--hapster-ds-muted);
  font-size: 0.92rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-excerpt__more-link {
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  color: #6f7e55;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-compact .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-compact .wp-block-post-template > li {
  border-bottom: 1px solid var(--hapster-ds-border);
  padding-bottom: 0.75rem;
}

:where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-compact .wp-block-post-title {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 900px) {
  :where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .wp-block-query.is-style-hapster-query-cards .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  :where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .is-style-hapster-grid-2,
  :where(.hapster-react-page-content--universal, .hapster-react-page-content) :where(.entry-content, .wp-block-post-content) .is-style-hapster-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .error404 #main {
    min-height: 0;
  }

  .error404 .narrow-stack {
    border-radius: clamp(16px, 4vw, 24px);
    padding: clamp(1.5rem, 6vw, 2.2rem);
  }

  .error404 .entry-title {
    font-size: clamp(2rem, 12vw, 2.9rem);
  }

  .hapster-blog-controls__search {
    flex-direction: column;
    align-items: stretch;
  }

  .hapster-blog-controls__search button {
    width: 100%;
  }

  .hapster-react-page-content--universal .post-list--search,
  .hapster-react-page-content--universal .post-list--archive,
  .hapster-react-page-content--universal .post-list--blog {
    max-width: 100%;
  }

  .hapster-react-page-content--universal .post-card--search {
    grid-template-columns: 1fr;
  }

  .hapster-react-page-content--universal .post-card--search .post-card__media {
    border-right: 0;
    border-bottom: 1px solid var(--hapster-line);
    aspect-ratio: 16 / 9;
  }

  .site-header__inner,
  .site-footer__inner,
  .content-grid,
  .site-nav__menu,
  .site-footer__menu {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* code modified by me do not remove */
img.w-full.h-full.object-cover
 {
    height: 100%;
}

h2.text-white
 {
    color: var(--color-white);
}

.text-\[var\(--brand-accent\)\]
 {
    color: var(--brand-accent);
}
article.text-white h3 {
  color:#fff;
}

.hapster-press-document {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-soft);
  background: #fff;
}

.hapster-press-document__icon {
  display: inline-flex;
  width: clamp(3.5rem, 7vw, 4.5rem);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius-soft) - 4px);
  background: var(--soft-blue);
  color: var(--brand-accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hapster-press-document__icon.is-pdf {
  background: color-mix(in srgb, var(--brand-accent) 24%, #fff);
}

.hapster-press-document__content {
  min-width: 0;
}

.hapster-press-document__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand-accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hapster-press-document__title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hapster-press-document__meta {
  margin: 0.45rem 0 0;
  color: var(--ink-400);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hapster-press-document__filename {
  display: block;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.hapster-press-document__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.hapster-press-document__action {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hapster-press-document__action--primary {
  background: var(--ink-900);
  color: #fff;
}

.hapster-press-document__action--primary:hover {
  border-color: var(--brand-accent-strong);
  background: var(--brand-accent-strong);
  color: var(--brand-accent-ink);
}

.hapster-press-document__action--secondary {
  background: #fff;
  color: var(--ink-700);
}

.hapster-press-document__action--secondary:hover {
  border-color: var(--brand-accent-strong);
  color: var(--brand-accent-ink);
}

.hapster-press-document__action:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .hapster-press-document {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hapster-press-document__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .hapster-press-document__action {
    flex: 1 1 10rem;
  }
}

.addtoany_share_save_container.addtoany_content.addtoany_content_bottom {
  display: none;
}
