/* ============================================================
   Lebensart — Component & Layout Styles
   Modern feminine editorial magazine. Tokens: tokens.css.
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Astra paints the body from its own globals; the theme's background wins. */
body.ast-separate-container, body.ast-plain-container { background-color: var(--bg-page); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--text-strong);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-text); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.la-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink-900); color: var(--white); padding: 0.75rem 1.25rem;
}
.la-skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
:root { --container-article: 760px; }

.la-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.la-container--narrow { max-width: var(--container-narrow); }
.la-container--wide   { max-width: var(--container-wide); margin-inline: auto; }

.la-section { padding-block: var(--section-y); }

/* Pattern sections are full-width groups; their inner .la-container sets the
   measure. Neutralise the margins WordPress' layout styles add between them. */
.entry-content > .alignfull,
.la-page-content > .alignfull { margin-block: 0; max-width: none; width: 100%; }
.la-page-content > * + * { margin-block-start: 0; }

.la-tint--sage { background: var(--bg-section-sage); }
.la-tint--rose { background: var(--bg-section-soft); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.la-eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
}
.la-eyebrow a { color: inherit; }

.la-section-title { margin: 0; }
.la-section-intro {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: var(--text-md);
}

/* Section head: eyebrow + title (+ intro, + "alle" link). */
.la-section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.la-section-head > * { margin-block: 0; }
.la-section-head > .la-section-intro { margin-top: 1rem; }
.la-section-head--center { text-align: center; }
.la-section-head--center .la-section-intro { margin-inline: auto; }
.la-section-head--split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 2rem;
}
.la-section-head--split > .la-eyebrow,
.la-section-head--split > .la-section-title { grid-column: 1; }
.la-section-head--split > .la-section-head__link { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
@media (max-width: 640px) {
  .la-section-head--split { grid-template-columns: 1fr; }
  .la-section-head--split > .la-section-head__link { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}

/* A short pink rule under centered section titles. */
.la-section-head--center > .la-section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 3px;
  background: var(--brand);
}

/* ============================================================
   BUTTONS (.la-btn in templates + matching Button-block styles)
   ============================================================ */
.la-btn,
.wp-block-button[class*="is-style-la-"] > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  line-height: 1.1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
}
.la-btn:hover,
.wp-block-button[class*="is-style-la-"] > .wp-block-button__link:hover { transform: translateY(-1px); text-decoration: none; }

.la-btn--sm { padding: 0.6rem 1.15rem; font-size: var(--text-sm); }
.la-btn--full { width: 100%; }

/* Akzent (Beere): the deep pink, white text — readable at 5:1+. */
.la-btn--primary,
.wp-block-button.is-style-la-primary > .wp-block-button__link {
  background: var(--rose-600);
  color: var(--white);
}
.la-btn--primary:hover,
.wp-block-button.is-style-la-primary > .wp-block-button__link:hover {
  background: var(--rose-700);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.wp-block-button.is-style-la-dark > .wp-block-button__link { background: var(--ink-900); color: var(--white); }
.wp-block-button.is-style-la-dark > .wp-block-button__link:hover { background: var(--rose-700); color: var(--white); }
.la-btn--secondary,
.wp-block-button.is-style-la-secondary > .wp-block-button__link {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--ink-300);
}
.la-btn--secondary:hover,
.wp-block-button.is-style-la-secondary > .wp-block-button__link:hover {
  border-color: var(--rose-600);
  color: var(--accent-text);
}
.wp-block-button.is-style-la-ghost > .wp-block-button__link {
  padding: 0.25rem 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-text);
}
.wp-block-button.is-style-la-ghost > .wp-block-button__link::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease-soft);
}
.wp-block-button.is-style-la-ghost > .wp-block-button__link:hover { transform: none; }
.wp-block-button.is-style-la-ghost > .wp-block-button__link:hover::after { transform: translateX(3px); }

.la-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--paper);
  color: var(--text-strong);
  cursor: pointer;
  transition: var(--transition-color);
}
.la-icon-btn:hover { background: var(--rose-50); border-color: var(--rose-200); }
.hidden { display: none !important; }

/* ---- Block styles for images, separators, quotes ---- */
.wp-block-image.is-style-la-soft img { border-radius: var(--radius-image); }
.wp-block-image.is-style-la-arch img { border-radius: 999px 999px var(--radius-image) var(--radius-image); }
.wp-block-separator.is-style-la-short {
  width: 64px; height: 3px; border: 0; border-radius: 3px;
  background: var(--brand); margin-inline: auto;
}
.wp-block-quote.is-style-la-pull {
  border: 0;
  margin: 3rem auto;
  padding: 0;
  max-width: 34ch;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-strong);
}
.wp-block-quote.is-style-la-pull::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--brand);
}
.wp-block-quote.is-style-la-pull cite { display: block; margin-top: 0.75rem; font-family: var(--font-sans); font-size: var(--text-sm); font-style: normal; color: var(--text-muted); }

/* ============================================================
   HEADER
   ============================================================ */
.la-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft),
    backdrop-filter var(--dur-base) var(--ease-soft);
}
.la-header.is-scrolled,
.la-header.is-open {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-color: var(--border-soft);
}

.la-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 78px;
}

.la-header__logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-900);
  flex-shrink: 0;
}
.la-header__logo:hover { text-decoration: none; }


.la-header__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ---- Primary nav: multi-level menu (up to 3 levels) ---- */
.la-nav-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.la-nav-item { position: relative; list-style: none; }
.la-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-color);
}
.la-nav-link:hover,
.la-nav-item:focus-within > .la-nav-link {
  color: var(--accent-text);
  background: var(--rose-50);
}
.la-nav-link.is-current,
.la-nav-item.current-menu-item > .la-nav-link,
.la-nav-item.current-menu-ancestor > .la-nav-link,
.la-nav-item.current_page_item > .la-nav-link {
  color: var(--accent-text);
  font-weight: var(--weight-semibold);
}
.la-nav-item--has-children > .la-nav-link svg {
  transition: transform var(--dur-base) var(--ease-soft);
}
.la-nav-item--has-children:hover > .la-nav-link svg,
.la-nav-item--has-children:focus-within > .la-nav-link svg { transform: rotate(180deg); }

/* Dropdown panel (level 2) */
.la-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease-soft);
  z-index: 60;
}
/* Transparent bridge across the 6px gap so the pointer keeps hovering the
   .la-nav-item while travelling from the top-level link into the panel. */
.la-submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.la-nav-item:hover > .la-submenu,
.la-nav-item:focus-within > .la-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.la-submenu__list,
.la-submenu__sub { list-style: none; margin: 0; padding: 0; }
.la-submenu__item { list-style: none; }
.la-submenu__link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition-color);
}
.la-submenu__link:hover,
.la-submenu__link.is-current { background: var(--rose-50); color: var(--accent-text); }

/* Accordion row (level 3): label link + caret toggle */
.la-submenu__row { display: flex; align-items: center; gap: 0.1rem; }
.la-submenu__caret {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-color);
}
.la-submenu__caret:hover { background: var(--rose-50); color: var(--accent-text); }
.la-submenu__caret svg { transition: transform var(--dur-base) var(--ease-soft); }
.la-submenu__item.is-open > .la-submenu__row > .la-submenu__caret svg { transform: rotate(180deg); }

/* Nested branch (level 3) — indented with a tree line */
.la-submenu__sub {
  margin: 0.15rem 0 0.3rem 0.6rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.la-submenu__sub[hidden] { display: none; }
.la-submenu__sub .la-submenu__link { font-size: var(--text-xs); padding: 0.5rem 0.6rem; }

.la-header__cta { flex-shrink: 0; }

.la-header__menu-toggle {
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-strong);
  transition: var(--transition-color);
}
.la-header__menu-toggle:hover { background: var(--rose-50); }

.la-header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--gutter) 1.25rem;
}
.la-header__mobile-nav.is-open { display: flex; }
/* Long menus: the open panel never runs past the bottom of the screen, it
   scrolls inside. theme.js sets the space above it; 80px is the fallback. */
.la-header__mobile-nav.is-open {
  max-height: calc(100vh - var(--la-mobile-nav-top, 80px));
  max-height: calc(100dvh - var(--la-mobile-nav-top, 80px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Mobile nav reuses the walker markup — sub-levels expand inline, level 3
   collapses behind a caret (toggled by JS). */
.la-header__mobile-nav .la-nav-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.la-header__mobile-nav .la-nav-item { position: static; }
.la-header__mobile-nav .la-nav-link {
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-body);
}
.la-header__mobile-nav .la-nav-link.is-current,
.la-header__mobile-nav .la-nav-item.current-menu-item > .la-nav-link,
.la-header__mobile-nav .la-nav-item.current-menu-ancestor > .la-nav-link,
.la-header__mobile-nav .la-nav-item.current_page_item > .la-nav-link {
  color: var(--accent-text);
  font-weight: var(--weight-semibold);
}
/* Dropdown panel becomes a static inline block on mobile */
.la-header__mobile-nav .la-submenu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: 0;
  padding: 0.2rem 0 0.5rem 1rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.la-header__mobile-nav .la-submenu::before { display: none; }
.la-header__mobile-nav .la-submenu__link { font-size: var(--text-base); padding: 0.65rem 0.6rem; }
.la-header__mobile-nav .la-submenu__caret { width: 38px; min-width: 38px; height: 38px; }
.la-header__mobile-cta { margin-top: 0.6rem; }

@media (min-width: 1025px) {
  .la-header__menu-toggle { display: none; }
  .la-header__mobile-nav { display: none !important; }
}
@media (max-width: 1024px) {
  .la-header__nav { display: none; }
  .la-header__cta { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.la-footer {
  background: var(--ink-900);
  color: var(--ivory);
  padding-top: var(--space-10);
}
.la-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.la-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: var(--space-9);
}
.la-footer__tagline {
  margin: 1.1rem 0 1.2rem;
  max-width: 32ch;
  color: var(--ink-300);
  font-size: var(--text-base);
  line-height: 1.6;
}
.la-footer__social {
  display: flex;
  gap: 0.6rem;
}
.la-footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(253, 251, 248, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.la-footer__social-link:hover {
  border-color: rgba(253, 251, 248, 0.5);
  text-decoration: none;
}
.la-footer__col-title {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.la-footer__col-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}
.la-footer__col-title-link:hover { color: var(--ivory); }
.la-footer__link {
  display: block;
  text-decoration: none;
  color: var(--ink-300);
  font-size: var(--text-base);
  padding: 0.35rem 0;
  transition: color var(--dur-fast) var(--ease-soft);
}
.la-footer__link:hover { color: var(--ivory); text-decoration: none; }
.la-footer__legal {
  border-top: 1px solid rgba(253, 251, 248, 0.14);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.la-footer__copyright {
  font-size: var(--text-sm);
  color: var(--ink-400);
}
.la-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
}
.la-footer__legal-link {
  color: var(--ink-300);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease-soft);
}
.la-footer__legal-link:hover { color: var(--ivory); text-decoration: none; }

@media (max-width: 1024px) {
  .la-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .la-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.la-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.la-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}
.la-input,
.la-select,
.la-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-strong);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
  appearance: none;
}
.la-input:focus,
.la-select:focus,
.la-textarea:focus {
  border-color: var(--rose-400);
  box-shadow: var(--shadow-focus);
}
.la-textarea { resize: vertical; min-height: 7rem; }
.la-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a726c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.la-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}
.la-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--rose-600);
  cursor: pointer;
}
.la-checkbox-label {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.55;
}
.la-checkbox-label a { color: var(--text-link); }

/* ============================================================
   SIDEBAR — Astra "Seitenleiste" control (Design → Customizer)
   Position: astra_page_layout()  ·  Width: site-sidebar-width
   Style:    astra_is_sidebar_style_boxed()
   Own class names on purpose: Astra ships #primary/#secondary width,
   float and padding rules that would fight this grid.
   ============================================================ */

.la-layout__main { min-width: 0; }
.la-sidebar      { min-width: 0; }

.la-layout--left,
.la-layout--right {
  display: grid;
  align-items: start;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: var(--space-9);
}

/* --la-main-col / --la-side-col come from the theme's
   *_output_sidebar_css(). Fallbacks match Astra's 30% default.
   minmax(0,…) stops long words, <pre> and wide images blowing the track out. */
.la-layout--right {
  grid-template-columns: minmax(0, var(--la-main-col, 70fr)) minmax(0, var(--la-side-col, 30fr));
}
.la-layout--left {
  grid-template-columns: minmax(0, var(--la-side-col, 30fr)) minmax(0, var(--la-main-col, 70fr));
}

/* Article stays first in the DOM for reading order and SEO; the grid
   places it visually for the left-sidebar case. */
.la-layout--right .la-layout__main { grid-column: 1; grid-row: 1; }
.la-layout--right .la-sidebar      { grid-column: 2; grid-row: 1; }
.la-layout--left  .la-layout__main { grid-column: 2; grid-row: 1; }
.la-layout--left  .la-sidebar      { grid-column: 1; grid-row: 1; }

/* Sticky only when Astra's "Klebrige Seitenleiste" is on. */
body.ast-sticky-sidebar .la-sidebar__inner {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (max-width: 1000px) {
  .la-layout--left,
  .la-layout--right { display: block; }
  .la-sidebar { margin-top: var(--space-9); }
  body.ast-sticky-sidebar .la-sidebar__inner {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* ---- Widget rhythm ---- */
.la-sidebar .widget { margin: 0 0 var(--space-7); }
.la-sidebar .widget:last-child { margin-bottom: 0; }

/* ---- Boxed (Seitenleisten-Stil → Box-Layout) ---- */
.la-sidebar--boxed .widget {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

/* ---- Titles: classic (.widget-title) and block-based widgets ---- */
.la-sidebar .widget-title,
.la-sidebar .widget_block > h1,
.la-sidebar .widget_block > h2,
.la-sidebar .widget_block > h3,
.la-sidebar .widget_block > h4,
.la-sidebar .wp-block-heading {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 var(--space-4);
  line-height: var(--leading-snug);
}

/* ---- Generic ---- */
.la-sidebar ul,
.la-sidebar ol { list-style: none; margin: 0; padding: 0; }
.la-sidebar li { margin: 0 0 var(--space-3); line-height: var(--leading-snug); }
.la-sidebar li:last-child { margin-bottom: 0; }
.la-sidebar a {
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}
.la-sidebar a:hover,
.la-sidebar a:focus-visible { color: var(--text-link); }
.la-sidebar p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}
.la-sidebar__inner > *:last-child { margin-bottom: 0; }
.la-sidebar img { max-width: 100%; height: auto; }
.la-sidebar select,
.la-sidebar .wp-block-categories__dropdown {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: var(--text-sm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
}

/* ---- Search: classic widget + core Search block ----
   Astra absolutely-positions the button and makes the submit text
   transparent so its own icon can overlay the field. Undo all of it. */
.la-sidebar .search-form,
.la-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  gap: var(--space-2);
  position: relative;
}
.la-sidebar .search-field,
.la-sidebar .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--text-sm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-body);
}
.la-sidebar .search-field:focus-visible,
.la-sidebar .wp-block-search__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--surface-accent-soft);
  border-color: var(--accent-strong);
}
.la-sidebar .widget_search .search-form button,
.la-sidebar .widget_search .search-form input[type="submit"],
.la-sidebar .widget_search .search-form input[type="submit"]:hover,
.la-sidebar .widget_search .search-form input[type="submit"]:focus,
.la-sidebar .search-submit,
.la-sidebar .wp-block-search__button {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  max-width: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-strong);
  color: var(--text-on-accent);
  cursor: pointer;
}
.la-sidebar .widget_search .search-form .search-field { padding-right: 0.9rem; }

/* ---- Categories / Archives / Pages ---- */
.la-sidebar .wp-block-categories-list,
.la-sidebar .wp-block-archives-list,
.la-sidebar .wp-block-page-list { list-style: none; margin: 0; padding: 0; }
.la-sidebar .cat-item,
.la-sidebar .wp-block-categories-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.la-sidebar__count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.la-sidebar .children { margin-top: var(--space-2); padding-left: var(--space-4); }

/* ---- Recent / Latest Posts ---- */
.la-sidebar .wp-block-latest-posts__list,
.la-sidebar .widget_recent_entries ul { display: grid; gap: var(--space-4); }
.la-sidebar .wp-block-latest-posts__featured-image img {
  border-radius: var(--radius-sm);
  width: 100%;
}
.la-sidebar .wp-block-latest-posts__post-title,
.la-sidebar .widget_recent_entries a {
  display: block;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  line-height: var(--leading-snug);
}
.la-sidebar .wp-block-latest-posts__post-date,
.la-sidebar__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.la-sidebar .wp-block-latest-posts__post-excerpt {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- Tag cloud. Core inlines style="font-size:22.4pt" per tag, and an
        author !important declaration outranks a non-important inline. ---- */
.la-sidebar .wp-block-tag-cloud a,
.la-sidebar .tagcloud a {
  font-size: var(--text-xs) !important;
  display: inline-block;
  margin: 0 4px 6px 0;
  padding: 0.35em 0.8em;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  color: var(--text-body);
  line-height: 1.5;
}
.la-sidebar .wp-block-tag-cloud a:hover,
.la-sidebar .tagcloud a:hover {
  background: var(--surface-accent-soft);
  border-color: var(--accent-strong);
  color: var(--accent-text);
}

/* ---- Other blocks a site owner may drop in ---- */
.la-sidebar .wp-block-group,
.la-sidebar .widget_block > .wp-block-group { margin: 0; }
.la-sidebar .wp-block-image { margin: 0 0 var(--space-3); }
.la-sidebar .wp-block-image img { border-radius: var(--radius-md); }
.la-sidebar .wp-block-buttons { margin: 0; }
.la-sidebar .wp-block-button__link {
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
}
.la-sidebar .wp-block-latest-comments,
.la-sidebar .wp-block-latest-comments__comment {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.la-sidebar .wp-block-calendar table,
.la-sidebar .widget_calendar table { width: 100%; font-size: var(--text-sm); }
.la-sidebar .wp-block-social-links { margin: 0; }
.la-sidebar .wp-block-separator { margin: var(--space-5) 0; border-color: var(--border-soft); }

/* ---- Starter-widget CTA + editor-only hint ---- */
.la-sidebar__cta .btn,
.la-sidebar__cta .la-btn { width: 100%; justify-content: center; }
.la-sidebar__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-5);
}

/* The article stack centres itself on its own measures; inside a sidebar
   column they must fill the track. (page.php drops its narrow container class
   when a sidebar is active — see la_has_sidebar(); single.php is always full
   width.) */
.la-layout__main .la-single-content,
.la-layout__main .la-single-header {
  max-width: none;
  margin-inline: 0;
}

/* ---- Blog-Seite (home.php) + Seitennavigation ---------------------------
   Die Liste gab bisher Pagination-Markup ohne jede Regel aus, die Links
   erschienen also als nackte Textzeile. Die Inline-Styles aus index.php
   (Kopfabstand, Pagination, Leer-Zustand, Karten-Link) leben jetzt hier. */
.la-archive-head { margin-bottom: var(--space-10); }
.la-loop-empty { text-align: center; padding: var(--space-12) 0; }
.la-article-card__link { color: inherit; text-decoration: none; }

.la-blog-intro { margin-bottom: var(--space-10); }
.la-blog-intro > *:first-child { margin-top: 0; }
.la-blog-intro > *:last-child { margin-bottom: 0; }

.la-pagination { margin-top: var(--space-12); text-align: center; }
.la-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.la-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
}
.la-pagination .page-numbers.current { border-color: var(--rose-500); background: var(--rose-500); color: #fff; }
.la-pagination a.page-numbers:hover { border-color: var(--rose-400); color: var(--rose-700); }
.la-pagination .page-numbers.dots { border-color: transparent; }

.la-editor-note {
  margin: var(--space-6) 0;
  padding: 0.875rem 1.125rem;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   HEADER — Lebensart overrides on top of the shared nav styles
   ============================================================ */
.la-header,
.la-header.is-scrolled,
.la-header.is-open {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.la-header.is-scrolled { box-shadow: var(--shadow-sm); }
.la-header__inner { height: 80px; gap: 2rem; }

.la-logo__wordmark {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: 1;
}
.la-logo__dot { color: var(--brand); font-style: normal; }
.la-logo__img,
.la-header__logo .custom-logo {
  display: block;
  width: auto !important;
  height: 48px !important;
  max-width: 220px !important;
  object-fit: contain;
}

.la-header__nav { margin-left: auto; }
.la-nav-link { font-size: var(--text-base); }
.la-header__actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; margin-left: auto; }
.la-header__nav + .la-header__actions { margin-left: 0; }
@media (max-width: 1024px) { .la-header__actions { margin-left: auto !important; } }

/* Search: <details> needs no JS; the panel drops below the header. */
.la-search { position: relative; }
.la-search > summary { list-style: none; }
.la-search > summary::-webkit-details-marker { display: none; }
.la-search[open] > summary { background: var(--rose-50); border-color: var(--rose-200); }
.la-search__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(360px, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 210;
}

@media (max-width: 1024px) {
  .la-header__inner { height: 68px; }
  .la-logo__wordmark { font-size: 1.5rem; }
  .la-logo__img, .la-header__logo .custom-logo { height: 40px !important; }
}

/* Shared search form (header panel, sidebar, empty states). */
.la-search-form { display: flex; gap: 0.5rem; }
.la-search-form .search-field {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--text-strong);
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
}
.la-search-form .search-field:focus { border-color: var(--rose-600); outline: none; box-shadow: var(--shadow-focus); }
.la-search-form .search-submit {
  flex: none;
  width: 46px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--rose-600);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.la-search-form .search-submit:hover { background: var(--rose-700); }

/* Footer brand */
.la-footer__logo { display: inline-block; text-decoration: none; }
.la-footer__logo .la-logo__wordmark { color: var(--ivory); }
.la-footer__logo .la-logo__img { height: 44px !important; }

/* ============================================================
   HERO
   ============================================================ */
.la-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60% 80% at 100% 0%, var(--rose-50), transparent 70%),
    var(--paper);
}
.la-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.la-hero__text > * { margin-block: 0; }
.la-hero__title { margin-top: 0.25rem !important; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; }
.la-hero__lead { margin-top: 1.5rem !important; max-width: 46ch; font-size: var(--text-md); color: var(--text-body); }
.la-hero__text .wp-block-buttons { margin-top: 2rem; gap: 0.75rem; }
.la-hero__image { margin: 0; position: relative; }
.la-hero__image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
/* Soft pink frame offset behind the photo. */
.la-hero__image::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border-radius: var(--radius-image);
  background: var(--rose-100);
  z-index: -1;
}
.la-hero { position: relative; isolation: isolate; }
@media (max-width: 860px) {
  .la-hero__grid { grid-template-columns: 1fr; }
  .la-hero__image { order: -1; margin-right: 1.25rem; }
}

/* ============================================================
   TOPIC TILES (static, fully editable pattern)
   ============================================================ */
.la-topics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.la-topic { position: relative; }
.la-topic > * { margin-block: 0; }
.la-topic__img { margin: 0 0 1rem !important; overflow: hidden; border-radius: var(--radius-image); }
.la-topic__img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-image);
  transition: transform var(--dur-slow) var(--ease-out);
}
.la-topic:hover .la-topic__img img { transform: scale(1.04); }
.la-topic__title { font-size: 1.375rem; margin-bottom: 0.3rem !important; }
.la-topic__title a { color: var(--text-strong); text-decoration: none; }
.la-topic__title a::after { content: " →"; color: var(--brand); opacity: 0; transition: opacity var(--dur-fast); }
.la-topic:hover .la-topic__title a::after { opacity: 1; }
.la-topic__text { color: var(--text-muted); font-size: var(--text-sm); }
@media (max-width: 860px) { .la-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   ARTICLE CARDS — Query Loop patterns and PHP lists share these
   ============================================================ */
.la-query .wp-block-post-template,
.la-grid-3,
.la-feature,
.la-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.la-query .wp-block-post-template > li { margin: 0; }

.la-card { display: flex; flex-direction: column; height: 100%; }
.la-card > * { margin-block: 0; }
.la-card__img { margin: 0 0 1rem !important; overflow: hidden; border-radius: var(--radius-image); background: var(--rose-50); }
.la-card__img img {
  display: block;
  width: 100%;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.la-card:hover .la-card__img img { transform: scale(1.04); }
.la-card__body > * { margin-block: 0; }
.la-card__cat {
  margin-bottom: 0.5rem !important;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.la-card__cat a { color: var(--accent-text); text-decoration: none; }
.la-card__cat .wp-block-post-terms__separator { color: var(--ink-300); }
.la-card__title { font-size: 1.3rem; line-height: 1.25; }
.la-card__title a { color: var(--text-strong); text-decoration: none; background-image: linear-gradient(var(--rose-300), var(--rose-300)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--dur-base) var(--ease-soft); }
.la-card:hover .la-card__title a { background-size: 100% 2px; }
.la-card__excerpt { margin-top: 0.6rem !important; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.la-card__excerpt p { margin: 0; }
.la-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.la-card__date { margin-top: 0.75rem !important; font-size: var(--text-xs); color: var(--ink-400); }

/* Placeholder for posts without a featured image. */
.la-card-placeholder {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 70% at 30% 20%, var(--rose-100), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, var(--sage-100), transparent 70%),
    var(--rose-50);
}
.la-card-placeholder > a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; text-decoration: none; }
.la-card-placeholder__mark {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--rose-400);
}

/* Grid of three. */
.la-query .wp-block-post-template.la-grid-3,
.la-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem);
}

/* Feature: newest post large on the left, four small ones beside it. */
.la-query .wp-block-post-template.la-feature {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
.la-feature > li:first-child { grid-column: span 2; grid-row: span 2; }
.la-feature > li:first-child .la-card__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.la-feature > li:first-child .la-card__img img { aspect-ratio: 4 / 3.4; }
.la-feature > li:not(:first-child) .la-card__excerpt { display: none; }
.la-feature > li:not(:first-child) .la-card__title { font-size: 1.1rem; }

/* List: compact rows, image left. */
.la-query .wp-block-post-template.la-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem);
}
.la-list .la-card { flex-direction: row; gap: 1.25rem; align-items: center; }
.la-list .la-card__img { flex: 0 0 38%; margin: 0 !important; }
.la-list .la-card__img img { aspect-ratio: 1 / 1; }
.la-list .la-card__title { font-size: 1.15rem; }

@media (max-width: 960px) {
  .la-query .wp-block-post-template.la-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-feature > li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .la-query .wp-block-post-template.la-grid-3, .la-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-query .wp-block-post-template.la-list { grid-template-columns: 1fr; }
}
/* Phones: no long single-column stacks. Feature keeps a 2-column grid under
   its big lead card; three-up grids and lists become compact rows. */
@media (max-width: 560px) {
  .la-query .wp-block-post-template.la-feature { gap: 1.5rem 1rem; }
  .la-feature > li:not(:first-child) .la-card__title { font-size: 1rem; }
  .la-query .wp-block-post-template.la-grid-3,
  .la-grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  :is(.la-grid-3, .la-list) .la-card { flex-direction: row; gap: 1rem; align-items: flex-start; }
  :is(.la-grid-3, .la-list) .la-card__img { flex: 0 0 36%; margin: 0 !important; }
  :is(.la-grid-3, .la-list) .la-card__img img,
  :is(.la-grid-3, .la-list) .la-card-placeholder { aspect-ratio: 1 / 1; }
  :is(.la-grid-3, .la-list) .la-card__title { font-size: 1.05rem; }
  :is(.la-grid-3, .la-list) .la-card__excerpt { display: none; }
  .la-topics__grid { gap: 1.5rem 1rem; }
  .la-topic__title { font-size: 1.1rem; }
  .la-topic__text { font-size: var(--text-xs); }
}

.la-query-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--rose-50);
  border-radius: var(--radius-md);
}

/* ============================================================
   ABOUT
   ============================================================ */
.la-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.la-about__img { margin: 0; }
.la-about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.la-about__text > * { margin-block: 0 1rem; }
.la-about__text .la-section-title { margin-bottom: 1.25rem; }
.la-about__sign { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--accent-text); }
.la-about__text .wp-block-buttons { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .la-about__grid { grid-template-columns: 1fr; }
  .la-about__img { max-width: 420px; }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.la-newsletter { padding-block: clamp(2rem, 5vw, 4rem); }
.la-newsletter__box {
  max-width: 980px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 90% at 0% 100%, var(--sage-100), transparent 70%),
    radial-gradient(60% 90% at 100% 0%, var(--rose-200), transparent 70%),
    var(--rose-50);
}
.la-newsletter__box > * { margin-block: 0; }
.la-newsletter__box .la-section-intro { margin: 1rem auto 0; }
.la-newsletter__cta { justify-content: center; margin-top: 2rem !important; }

/* ============================================================
   INSTAGRAM
   ============================================================ */
.la-insta__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.la-insta__img { margin: 0 !important; overflow: hidden; border-radius: var(--radius-md); }
.la-insta__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base); }
.la-insta__img a:hover img { transform: scale(1.05); opacity: 0.9; }
.la-insta__cta { justify-content: center; margin-top: 2.25rem !important; }
@media (max-width: 760px) { .la-insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============================================================
   ARCHIVE / BLOG HEAD + TOPIC CHIPS
   ============================================================ */
.la-archive-head { margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.la-archive-head > * { margin-block: 0; }
.la-archive-head__title { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.la-archive-head__text { max-width: 60ch; margin: 1rem auto 0 !important; color: var(--text-muted); }
.la-archive-head__text p:last-child { margin-bottom: 0; }
.la-blog-intro { margin-bottom: 2.5rem; text-align: center; }
.la-blog-intro > * { max-width: 62ch; margin-inline: auto; }

.la-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem !important;
}
.la-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-body);
  background: var(--paper);
  text-decoration: none;
  transition: var(--transition-color);
}
.la-chip:hover { border-color: var(--rose-300); color: var(--accent-text); text-decoration: none; }
.la-chip.is-active { background: var(--rose-600); border-color: var(--rose-600); color: var(--white); }

.la-loop-empty { max-width: 520px; margin: 0 auto; text-align: center; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.la-article__head {
  max-width: calc(var(--container-article) + 2 * var(--gutter));
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.la-article__head > * { margin-block: 0; }
.la-article__title { margin-top: 0.25rem !important; font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
.la-article__lead { margin-top: 1.25rem !important; font-size: var(--text-md); color: var(--text-muted); }
.la-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem !important;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.la-article__time { display: inline-flex; align-items: center; gap: 0.3rem; }
.la-article__image {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-inline: var(--gutter);
  max-width: calc(1100px + 2 * var(--gutter));
}
.la-article__image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-image);
}
.la-article__wrap { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-y); }
.la-article__content,
.la-article__tags,
.la-page-links { max-width: var(--container-article); margin-inline: auto; }
.la-article__content { font-size: 1.125rem; line-height: 1.8; }
.la-article__content > * { margin-block: 0 1.4em; }
.la-article__content h2 { margin-top: 2em; font-size: clamp(1.6rem, 3vw, 2rem); }
.la-article__content h3 { margin-top: 1.6em; }
.la-article__content a { text-decoration: underline; text-decoration-color: var(--rose-300); text-underline-offset: 3px; }
.la-article__content img { border-radius: var(--radius-md); }
.la-article__content > .alignwide { max-width: 1100px; margin-inline: calc((var(--container-article) - 1100px) / 2); width: auto; }
@media (max-width: 1180px) { .la-article__content > .alignwide { margin-inline: 0; } }
.la-article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 2rem; border-top: 1px solid var(--border-soft); }
.la-article__comments { max-width: calc(var(--container-article) + 2 * var(--gutter)); padding-bottom: var(--section-y); }
.la-layout--left .la-layout__main :is(.la-article__content, .la-article__tags),
.la-layout--right .la-layout__main :is(.la-article__content, .la-article__tags) { max-width: none; }

/* ============================================================
   PAGE TITLE BAND (page.php)
   ============================================================ */
.la-page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: radial-gradient(60% 100% at 50% 0%, var(--rose-50), transparent 75%);
}
.la-page-hero .la-archive-head__title { margin: 0; }
.la-page-content.entry-content > :where(:not(.alignfull)) { max-width: var(--container-narrow); margin-inline: auto; }

/* ============================================================
   NEUTRALISE PARENT + CORE LAYOUT RULES
   ============================================================ */
/* Astra dresses every post (post_class → .ast-article-post / .ast-article-single
   / .ast-grid-common-col) as a white padded box with a rule underneath. Query
   Loop items and the single article carry those classes too — strip them. */
.la-query .wp-block-post-template > li.wp-block-post,
.la-grid-3 > .la-card,
.ast-separate-container .la-article.la-article,
.la-article.la-article {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}

/* Full-width pattern sections: core/Astra pull .alignfull out with negative
   margins meant for a padded content column; here the column has no padding. */
main.la-page-content > .alignfull.alignfull,
.la-page-content.entry-content > .alignfull.alignfull {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: none;
}

/* WordPress' flow layout adds a 24px top margin between sibling blocks. Inside
   the theme's components the component's own spacing applies instead. */
.wp-block-group:is(.la-container, .la-section-head, .la-hero__text, .la-hero__grid, .la-topics__grid, .la-topic, .la-card, .la-card__body, .la-about__grid, .la-about__text, .la-newsletter__box, .la-insta__grid) > * {
  margin-block-start: 0;
}
.wp-block-group.la-about__text > * + * { margin-block-start: 1rem; }
.wp-block-group.la-about__text > .la-section-title { margin-block: 0.25rem 1.25rem; }
.wp-block-group.la-section-head > .la-section-title { margin-block: 0; }

/* Flow layout also zeroes block end margins (`:root :where(.is-layout-flow) > *`),
   so the component spacing is restated with a stronger selector. */
.wp-block-group.la-section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.wp-block-group.la-section-head > .la-eyebrow { margin-bottom: 0.85rem; }
.wp-block-group.la-section-head > .la-section-intro { margin-top: 1.1rem; }
.wp-block-group.la-section-head--center > .la-section-intro { margin-inline: auto; }
.wp-block-group.la-hero__text > .la-eyebrow { margin-bottom: 1rem; }
.la-section-head__link .wp-block-button__link { border: 0 !important; box-shadow: none !important; }
.la-list .la-card { align-items: flex-start; }

/* Astra puts a 30px shadow on every figure of a single post and a grey bar on
   every quote (inline CSS printed after this file) — not part of this design. */
.la-article.ast-article-single figure,
.la-article.ast-article-single img { box-shadow: none; }
.wp-block-quote.is-style-la-pull { border: 0 !important; }

/* ============================================================
   COMMENTS (Astra's comment template, in the theme's look)
   ============================================================ */
.la-article__comments .comment-reply-title,
.la-article__comments .comments-title { font-family: var(--font-serif); font-size: 1.6rem; }
.la-article__comments :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--text-strong);
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
}
.la-article__comments :is(input, textarea):focus { border-color: var(--rose-600); outline: none; box-shadow: var(--shadow-focus); }
.la-article__comments :is(.submit, input[type="submit"], .ast-button) {
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--rose-600);
  color: var(--white);
  font: inherit;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.la-article__comments :is(.submit, input[type="submit"], .ast-button):hover { background: var(--rose-700); }
.la-article__comments .comment-list { list-style: none; padding: 0; }

/* The Featured Image block writes its aspect ratio inline on the <img>; the
   list/row layouts need square thumbnails regardless of that setting. */
.la-list .la-card__img img { aspect-ratio: 1 / 1 !important; border-radius: var(--radius-md); }
.la-list .la-card__img { border-radius: var(--radius-md); }
@media (max-width: 560px) {
  :is(.la-grid-3, .la-list) .la-card__img,
  :is(.la-grid-3, .la-list) .la-card__img img { aspect-ratio: 1 / 1 !important; border-radius: var(--radius-md); }
}

/* Astra prints `h1…h6 { color: var(--ast-global-color-2) }` inline after this
   file — :root raises the specificity so the Customizer's text colour wins.
   (Block colour classes like .has-white-color stay stronger: core marks them
   !important.) */
:root :is(h1, h2, h3, h4, h5, h6) { color: var(--text-strong); }

/* 404 */
.la-404__search { max-width: 460px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
