/*
Theme Name: FAR Elettric Blog
Theme URI: https://www.farelettric.it/
Author: FAR Elettric
Description: Tema WordPress custom per il blog FAR Elettric, coerente con il sito Next.js.
Version: 1.0.23
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: far-elettric
*/

@font-face {
  font-family: "Univers Next FAR";
  src: url("assets/fonts/univers-next-pro-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Univers Next FAR";
  src: url("assets/fonts/univers-next-pro-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Monument Grotesk FAR";
  src: url("assets/fonts/monument-grotesk-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --far-red: #e40513;
  --far-black: #060608;
  --far-ink: #111216;
  --far-muted: #5f6673;
  --far-soft: #f6f7f8;
  --far-line: #e3e5eb;
  --far-white: #ffffff;
  --far-surface-shadow: 0 18px 42px -34px rgba(24, 24, 27, 0.36);
  --far-motion-duration: 260ms;
  --far-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --far-font-sans: "Univers Next FAR", Arial, system-ui, sans-serif;
  --far-font-kicker: "Monument Grotesk FAR", Arial, system-ui, sans-serif;
  --type-kicker: 0.78rem;
  --type-hero-title: 3.35rem;
  --type-section-title: 2.25rem;
  --type-section-title-compact: 2.05rem;
  --type-subsection-title: 1.45rem;
  --type-card-title: 1.2rem;
  --type-section-lead: 1.12rem;
  --type-body: 1rem;
  --type-body-lg: 1.08rem;
}

@media (min-width: 640px) {
  :root {
    --type-hero-title: 4.2rem;
    --type-section-title: 2.85rem;
    --type-section-title-compact: 2.5rem;
    --type-subsection-title: 1.7rem;
    --type-card-title: 1.35rem;
    --type-section-lead: 1.22rem;
    --type-body-lg: 1.12rem;
  }
}

@media (min-width: 768px) {
  :root {
    --type-kicker: 0.82rem;
    --type-hero-title: 5.55rem;
    --type-section-title: 3.8rem;
    --type-section-title-compact: 3.2rem;
    --type-subsection-title: 2rem;
    --type-card-title: 1.55rem;
    --type-section-lead: 1.35rem;
    --type-body-lg: 1.18rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --type-hero-title: min(7.65rem, 13.5vh);
    --type-section-title: 5.4rem;
    --type-section-title-compact: 4.2rem;
    --type-subsection-title: 2.4rem;
    --type-card-title: 1.85rem;
    --type-section-lead: 1.55rem;
    --type-body-lg: 1.22rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html.mobile-menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--far-white);
  color: var(--far-ink);
  font-family: var(--far-font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--far-red);
  color: var(--far-white);
}

.far-container {
  width: 100%;
  min-width: 0;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .far-container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .far-container {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .far-container {
    padding-inline: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .far-container {
    padding-inline: 5rem;
  }
}

@media (min-width: 1536px) {
  .far-container {
    padding-inline: 7rem;
  }
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  border-radius: 999px;
  background: var(--far-red);
  color: var(--far-white);
  font-weight: 700;
}

.type-kicker {
  margin: 0;
  font-family: var(--far-font-kicker);
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.type-hero-title {
  margin: 0;
  font-size: var(--type-hero-title);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.type-section-title {
  margin: 0;
  font-size: var(--type-section-title);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.type-section-title-compact {
  margin: 0;
  font-size: var(--type-section-title-compact);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.type-subsection-title {
  margin: 0;
  font-size: var(--type-subsection-title);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.type-card-title {
  margin: 0;
  font-size: var(--type-card-title);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.type-body {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.62;
  letter-spacing: 0;
}

.type-body-lg {
  margin: 0;
  font-size: var(--type-body-lg);
  line-height: 1.58;
  letter-spacing: 0;
}

.cta-glass,
.button-outline,
.far-search-form button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background-color var(--far-motion-duration) var(--far-motion-ease),
    border-color var(--far-motion-duration) var(--far-motion-ease),
    color var(--far-motion-duration) var(--far-motion-ease),
    transform var(--far-motion-duration) var(--far-motion-ease);
}

.cta-glass:active,
.button-outline:active,
.wp-block-button__link:active {
  transform: scale(0.99);
}

.cta-glass-primary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: #111114;
  color: var(--far-white);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.64);
}

.cta-glass-primary:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: #1a1a1f;
}

.cta-glass-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  color: var(--far-white);
}

.cta-glass-secondary:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
}

.cta-glass-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--far-white);
}

.cta-glass-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button-outline {
  border: 1px solid #d9dde5;
  background: transparent;
  color: var(--far-ink);
}

.button-outline:hover {
  border-color: var(--far-ink);
}

.button-outline--dark {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--far-white);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  transition:
    background-color 300ms var(--far-motion-ease),
    box-shadow 300ms var(--far-motion-ease);
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 1rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-inline: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .site-header__inner {
    padding-inline: 5rem;
  }
}

@media (min-width: 1536px) {
  .site-header__inner {
    padding-inline: 7rem;
  }
}

/* Mobile/tablet (<1024px): replica del "glass pill" del sito React */
@media (max-width: 1023px) {
  .site-header__inner {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(0, 0, 0, 0.58);
    color: var(--far-white);
    box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    padding: 0.5rem 0.75rem;
    transition:
      background-color 300ms var(--far-motion-ease),
      border-color 300ms var(--far-motion-ease),
      color 300ms var(--far-motion-ease);
  }

  .site-header {
    padding: 0.75rem 1rem 0;
  }

  .site-header.is-solid .site-header__inner {
    border-color: rgba(17, 18, 22, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #1f2026;
  }
}

@media (max-width: 1023px) and (min-width: 640px) {
  .site-header {
    padding: 0.875rem 1.5rem 0;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  width: 101px;
  height: auto;
}

@media (min-width: 768px) {
  .site-logo img {
    width: 129px;
  }
}

@media (min-width: 1280px) {
  .site-logo img {
    width: 144px;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    --nav-seg-height: 2.5rem;
    --nav-seg-gap: 4px;
    --nav-seg-radius-outer: calc(var(--nav-seg-height) / 2);
    --nav-seg-radius-inner: calc(var(--nav-seg-radius-outer) - var(--nav-seg-gap));
    display: flex;
    height: 3.75rem;
    align-items: center;
    gap: var(--nav-seg-gap);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.625rem 0.5rem;
    color: var(--far-white);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    transition:
      background-color 300ms var(--far-motion-ease),
      color 300ms var(--far-motion-ease),
      border-color 300ms var(--far-motion-ease);
  }

  .site-header.is-solid .site-nav {
    height: 3.5rem;
    padding: 0.5rem 0.375rem;
  }

  .site-nav__link {
    display: inline-flex;
    height: var(--nav-seg-height);
    align-items: center;
    gap: 0.38rem;
    border: 1px solid transparent;
    border-radius: var(--nav-seg-radius-inner);
    padding: 0 0.75rem;
    color: currentColor;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    transition:
      transform var(--far-motion-duration) var(--far-motion-ease),
      background-color var(--far-motion-duration) var(--far-motion-ease),
      border-color var(--far-motion-duration) var(--far-motion-ease),
      color var(--far-motion-duration) var(--far-motion-ease),
      box-shadow var(--far-motion-duration) var(--far-motion-ease);
  }

  .site-nav__link:first-child {
    border-top-left-radius: var(--nav-seg-radius-outer);
    border-bottom-left-radius: var(--nav-seg-radius-outer);
    border-top-right-radius: var(--nav-seg-radius-inner);
    border-bottom-right-radius: var(--nav-seg-radius-inner);
  }

  .site-nav__link:last-child {
    border-top-left-radius: var(--nav-seg-radius-inner);
    border-bottom-left-radius: var(--nav-seg-radius-inner);
    border-top-right-radius: var(--nav-seg-radius-outer);
    border-bottom-right-radius: var(--nav-seg-radius-outer);
  }

  @media (min-width: 1280px) {
    .site-nav__link {
      padding: 0 1rem;
      font-size: 0.92rem;
    }
  }

  .site-nav__link:hover,
  .site-nav__link.is-active {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.15);
    color: var(--far-white);
    box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.8);
  }

  .site-nav__chevron {
    width: 0.88rem;
    height: 0.88rem;
    opacity: 0.75;
    transition: transform var(--far-motion-duration) var(--far-motion-ease);
  }

  .site-nav__link.is-active .site-nav__chevron {
    transform: rotate(180deg);
  }

  .site-header.is-solid .site-nav {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.84);
    color: #474747;
    box-shadow: 0 12px 26px -20px rgba(24, 24, 27, 0.5);
  }

  .site-header.is-solid .site-nav__link:hover,
  .site-header.is-solid .site-nav__link.is-active {
    border-color: transparent;
    background: rgba(0, 0, 0, 0.06);
    color: #1f2026;
    box-shadow: 0 12px 24px -20px rgba(24, 24, 27, 0.45);
  }
}

.mega-menu {
  display: none;
}

@media (min-width: 1024px) {
  .mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    opacity: 0;
    transform: translateY(-0.5rem);
    pointer-events: none;
    transition:
      opacity 220ms var(--far-motion-ease),
      transform 220ms var(--far-motion-ease);
  }

  .mega-menu.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mega-menu__outer {
    width: 100%;
    padding: 1rem 1rem 0;
  }
}

@media (min-width: 768px) {
  .mega-menu__outer {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .mega-menu__outer {
    padding-inline: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .mega-menu__outer {
    padding-inline: 5rem;
  }
}

@media (min-width: 1536px) {
  .mega-menu__outer {
    padding-inline: 7rem;
  }
}

@media (min-width: 1024px) {
  .mega-menu__panel {
    display: none;
    max-width: 73.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.35rem;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 42px 110px -64px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(28px);
  }

  .mega-menu__panel.is-active {
    display: block;
  }

  .mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    min-height: 15.625rem;
    padding: 0.65rem;
  }

  .mega-menu__intro,
  .mega-menu__card {
    display: flex;
    min-height: 13.125rem;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    color: var(--far-white);
  }

  .mega-menu__intro {
    justify-content: space-between;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
  }

  .mega-menu__card {
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 20px 52px -42px rgba(0, 0, 0, 0.95);
  }

  .mega-menu__intro .type-kicker {
    color: rgba(255, 255, 255, 0.55);
  }

  .mega-menu__intro .type-card-title {
    margin-top: 0.75rem;
    color: var(--far-white);
    font-weight: 600;
  }

  .mega-menu__intro p:not(.type-kicker) {
    max-width: 28ch;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .mega-menu__cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.62rem 1rem;
    color: var(--far-white);
    font-size: 0.88rem;
    font-weight: 700;
    transition:
      transform var(--far-motion-duration) var(--far-motion-ease),
      background-color var(--far-motion-duration) var(--far-motion-ease),
      border-color var(--far-motion-duration) var(--far-motion-ease);
  }

  .mega-menu__cta:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.16);
  }

  .mega-menu__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .mega-menu__card h4 {
    max-width: 15ch;
    color: var(--far-white);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.08;
  }

  .mega-menu__card-head span {
    color: rgba(255, 255, 255, 0.42);
    font-family: var(--far-font-kicker);
    font-size: 0.72rem;
    font-weight: 600;
  }

  .mega-menu__links {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .mega-menu__links a {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.032);
    padding: 0.45rem 0.62rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    transition:
      transform var(--far-motion-duration) var(--far-motion-ease),
      background-color var(--far-motion-duration) var(--far-motion-ease),
      color var(--far-motion-duration) var(--far-motion-ease);
  }

  .mega-menu__links a:hover {
    transform: translateX(0.125rem);
    background: rgba(255, 255, 255, 0.07);
    color: var(--far-white);
  }

  .mega-menu__arrow {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.48);
    transition:
      border-color var(--far-motion-duration) var(--far-motion-ease),
      color var(--far-motion-duration) var(--far-motion-ease);
  }

  .mega-menu__links a:hover .mega-menu__arrow {
    border-color: rgba(255, 255, 255, 0.34);
    color: rgba(255, 255, 255, 0.82);
  }

  .mega-menu__arrow svg {
    width: 0.62rem;
    height: 0.62rem;
  }
}

.site-cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-cta {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.site-header.is-solid .mobile-menu-toggle {
  color: #1f2026;
}

.mobile-menu-toggle--close {
  color: var(--far-white);
}

.site-header.is-solid .mobile-menu-toggle--close {
  color: var(--far-white);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.site-header.is-solid .mobile-menu-toggle:hover,
.site-header.is-solid .mobile-menu-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

.site-header.is-solid .mobile-menu-toggle--close:hover,
.site-header.is-solid .mobile-menu-toggle--close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.dot-grid {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.dot-grid span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.23rem;
  height: 0.23rem;
  border-radius: 999px;
  background: currentColor;
  transform: translate(calc(-50% + var(--dot-x, 0px)), calc(-50% + var(--dot-y, 0px))) scale(1);
  transition:
    opacity 180ms var(--far-motion-ease),
    transform 220ms var(--far-motion-ease),
    background-color 180ms var(--far-motion-ease);
}

.dot-grid span:nth-child(1) {
  --dot-x: -8px;
  --dot-y: -8px;
}

.dot-grid span:nth-child(2) {
  --dot-x: 0px;
  --dot-y: -8px;
}

.dot-grid span:nth-child(3) {
  --dot-x: 8px;
  --dot-y: -8px;
}

.dot-grid span:nth-child(4) {
  --dot-x: -8px;
  --dot-y: 0px;
}

.dot-grid span:nth-child(5) {
  --dot-x: 0px;
  --dot-y: 0px;
}

.dot-grid span:nth-child(6) {
  --dot-x: 8px;
  --dot-y: 0px;
}

.dot-grid span:nth-child(7) {
  --dot-x: -8px;
  --dot-y: 8px;
}

.dot-grid span:nth-child(8) {
  --dot-x: 0px;
  --dot-y: 8px;
}

.dot-grid span:nth-child(9) {
  --dot-x: 8px;
  --dot-y: 8px;
}

.dot-grid--open span:nth-child(2),
.dot-grid--open span:nth-child(4),
.dot-grid--open span:nth-child(6),
.dot-grid--open span:nth-child(8) {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.mobile-menu {
  position: fixed;
  z-index: 70;
  inset: 0;
  padding: calc(max(env(safe-area-inset-top), 0px) + 0.75rem) 1rem 1rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
  pointer-events: none;
  transition: opacity 200ms var(--far-motion-ease);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__panel {
  display: flex;
  overflow: hidden;
  height: min(88dvh, 47.5rem);
  max-height: calc(100dvh - 1.75rem);
  min-height: 0;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 34px 100px -48px rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(28px);
  transform: translateY(-0.35rem) scale(0.99);
  transition:
    transform 280ms var(--far-motion-ease),
    opacity 220ms var(--far-motion-ease);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateY(0) scale(1);
}

.mobile-menu__top {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}

.mobile-menu__nav {
  display: grid;
  gap: 0.55rem;
  overflow-y: auto;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu__nav a {
  display: flex;
  min-height: 5.1rem;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.9rem;
  color: var(--far-white);
  font-size: 1rem;
  font-weight: 700;
  transition:
    background-color var(--far-motion-duration) var(--far-motion-ease),
    border-color var(--far-motion-duration) var(--far-motion-ease);
}

.mobile-menu__nav a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu__nav span {
  font-family: var(--far-font-kicker);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.mobile-menu__cta {
  background: var(--far-red) !important;
}

.blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  background: var(--far-black);
  color: var(--far-white);
  min-height: 100svh;
}

@media (min-width: 768px) {
  .blog-hero {
    min-height: 100dvh;
  }
}

.blog-hero--compact {
  min-height: auto;
  padding: 9rem 0 5rem;
}

@media (min-width: 768px) {
  .blog-hero--compact {
    padding-top: 11rem;
  }
}

.blog-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.84) 100%);
}

.blog-hero__content {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding-top: 7.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .blog-hero__content {
    min-height: 100dvh;
    padding-top: 8.25rem;
    padding-bottom: 3rem;
  }
}

.blog-hero__headline {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.blog-hero__kicker {
  color: rgba(255, 255, 255, 0.58);
}

.blog-hero__title {
  display: grid;
  gap: 0.04em;
  max-width: min(64rem, 100%);
  margin-top: 1.25rem;
  color: var(--far-white) !important;
  text-shadow: 0 22px 68px rgba(0, 0, 0, 0.76);
}

.blog-hero__title span {
  display: block;
}

.blog-hero__copy {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.72);
}

.blog-hero__baseline {
  display: none;
  max-width: 42ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
}

.blog-hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 20px 42px -30px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

.blog-hero-card__media {
  overflow: hidden;
  height: 8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.blog-hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.blog-hero-card__body {
  padding: 1.25rem;
}

.blog-hero-card--summary {
  margin-top: 1.5rem;
}

.blog-hero__copy--desktop,
.single-hero__excerpt--desktop {
  display: none;
}

@media (max-width: 767.98px) {
  .blog-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem;
    align-items: end;
    gap: 0.75rem;
    border-radius: 1rem;
    padding: 0.875rem;
    background: rgba(0, 0, 0, 0.52);
  }

  .blog-hero-card__media {
    order: 2;
    height: 5.75rem;
    min-height: 0;
    border-bottom: 0;
    border-radius: 0.85rem;
  }

  .blog-hero-card__body {
    order: 1;
    min-width: 0;
    padding: 0;
  }

  .blog-hero-card .type-kicker {
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .blog-hero-card .type-card-title {
    margin-top: 0.4rem;
    font-size: 1.02rem;
    line-height: 1.06;
  }

  .blog-hero-card .blog-hero__copy {
    display: -webkit-box;
    margin-top: 0.55rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .blog-hero-card__link {
    display: none;
  }
}

@media (min-width: 768px) {
  .blog-hero-card {
    border-radius: 1.5rem;
  }

  .blog-hero-card__media {
    height: 10.5rem;
  }

  .blog-hero-card__body {
    padding: 1.5rem;
  }

  .blog-hero-card--summary {
    display: none;
  }

  .blog-hero__copy--desktop,
  .single-hero__excerpt--desktop {
    display: block;
  }
}

@media (min-width: 1024px) {
  .blog-hero__headline {
    padding-bottom: 11rem;
  }

  .blog-hero__title {
    max-width: min(46rem, calc(100% - 27rem));
    font-size: clamp(3.8rem, 5.7vw, 5.25rem);
    line-height: 1.04;
  }

  .blog-hero__baseline {
    display: block;
    position: absolute;
    bottom: 5.25rem;
    left: 3.5rem;
    max-width: 42ch;
    margin-top: 0;
  }

  .blog-hero-card {
    position: absolute;
    right: 3.5rem;
    bottom: 3rem;
    width: min(25rem, calc(43% - 1.5rem));
  }
}

@media (min-width: 1280px) {
  .blog-hero__title {
    max-width: min(50rem, calc(100% - 31rem));
    font-size: clamp(4.6rem, 6.2vw, 6.25rem);
  }

  .blog-hero__baseline {
    left: 5rem;
    max-width: 44ch;
  }

  .blog-hero-card {
    right: 5rem;
    width: 27.5rem;
  }
}

@media (min-width: 1536px) {
  .blog-hero__title {
    max-width: calc(100% - 44rem);
    font-size: min(7.65rem, 13.5vh);
  }

  .blog-hero__baseline {
    left: 7rem;
    max-width: 42ch;
  }

  .blog-hero-card {
    right: 7rem;
    width: 36.25rem;
  }
}

.blog-hero-card .type-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.blog-hero-card .type-card-title {
  margin-top: 0.6rem;
  color: var(--far-white);
  font-weight: 600;
}

.blog-hero-card .blog-hero__copy {
  margin-top: 0.9rem;
}

.blog-hero-card__link {
  display: inline-flex;
  margin-top: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    background-color var(--far-motion-duration) var(--far-motion-ease),
    border-color var(--far-motion-duration) var(--far-motion-ease);
}

.blog-hero-card__link:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.blog-hero__copy--left {
  margin-top: 1.5rem;
  text-align: left;
}

@media (min-width: 1280px) {
  .blog-hero__copy--left {
    justify-self: start;
  }
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.25rem;
  padding-top: 0;
}

@media (min-width: 768px) {
  .category-pills {
    margin-top: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .category-pills {
    position: absolute;
    bottom: 1.65rem;
    left: 3.5rem;
    max-width: calc(100% - 42rem);
    margin-top: 0;
  }
}

@media (min-width: 1280px) {
  .category-pills {
    left: 5rem;
    max-width: calc(100% - 46rem);
  }
}

@media (min-width: 1536px) {
  .category-pills {
    left: 7rem;
    max-width: calc(100% - 52rem);
  }
}

.category-pills a,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--far-font-kicker);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.category-pills a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.68rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  transition:
    background-color var(--far-motion-duration) var(--far-motion-ease),
    border-color var(--far-motion-duration) var(--far-motion-ease),
    color var(--far-motion-duration) var(--far-motion-ease);
}

.category-pills a:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: var(--far-white);
}

.featured-section {
  background: var(--far-white);
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .featured-section {
    padding: 5rem 0;
  }
}

.featured-post__link {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1280px) {
  .featured-post__link {
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(2.75rem, 4vw, 4.5rem);
    align-items: stretch;
  }
}

.featured-post__media {
  position: relative;
  overflow: hidden;
  min-height: 22.5rem;
  border-radius: 1.45rem;
  background: var(--far-black);
}

@media (min-width: 768px) {
  .featured-post__media {
    min-height: 32.5rem;
  }
}

.featured-post__image,
.post-card__image,
.single-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--far-motion-ease);
}

.featured-post__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.56) 100%);
}

.featured-post:hover .featured-post__image,
.post-card:hover .post-card__image {
  transform: scale(1.05);
}

.featured-post__badge {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  border-radius: 999px;
  background: var(--far-white);
  padding: 0.4rem 0.75rem;
  color: var(--far-ink);
  font-family: var(--far-font-kicker);
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .featured-post__badge {
    top: 1.5rem;
    left: 1.5rem;
  }
}

.featured-post__content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--far-line);
  border-bottom: 1px solid var(--far-line);
  padding: 1.5rem 0;
}

@media (min-width: 1280px) {
  .featured-post__content {
    padding: 2.25rem clamp(0.75rem, 1.6vw, 1.4rem);
  }
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pills span {
  background: var(--far-ink);
  padding: 0.42rem 0.75rem;
  color: var(--far-white);
}

.meta-pills span + span {
  background: #f1f2f4;
  color: #636b78;
}

.meta-pills--featured span:first-child {
  background: var(--far-red);
}

.featured-post__title {
  max-width: 16ch;
  margin-top: 1.25rem;
}

.featured-post__excerpt {
  max-width: 68ch;
  margin-top: 1.25rem;
  color: #555b66;
}

.featured-post__footer,
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.featured-post__footer time,
.post-card__footer time,
.single-hero__dates {
  font-family: var(--far-font-kicker);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.featured-post__footer time {
  color: #7b8190;
}

.featured-post__footer span,
.post-card__footer span {
  color: var(--far-red);
  font-weight: 700;
}

.archive-section {
  background: var(--far-soft);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .archive-section {
    padding: 6rem 0;
  }
}

.section-heading-grid {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 768px) {
  .section-heading-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.section-heading-grid .type-kicker {
  color: #6b7280;
}

.section-heading-grid .type-section-title {
  margin-top: 1rem;
}

.section-heading-grid__copy {
  max-width: 58ch;
  color: #5f6673;
}

@media (min-width: 1280px) {
  .section-heading-grid__copy {
    justify-self: end;
    text-align: right;
  }
}

.post-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-grid--related {
  margin-top: 2.25rem;
}

.post-card__link {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  border-radius: 1.1rem;
  background: var(--far-white);
  box-shadow: var(--far-surface-shadow);
}

.post-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--far-black);
}

.post-card__body {
  display: flex;
  min-height: 18.75rem;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .post-card__body {
    padding: 1.5rem;
  }
}

.post-card__title {
  margin-top: 1.25rem;
  font-weight: 600;
}

.post-card__excerpt {
  margin-top: 1rem;
  color: var(--far-muted);
}

.post-card__footer time {
  color: #89909c;
}

.far-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
}

.far-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dde5;
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--far-ink);
  font-weight: 700;
}

.far-pagination .current {
  border-color: var(--far-ink);
  background: var(--far-ink);
  color: var(--far-white);
}

.single-hero {
  position: relative;
  overflow: hidden;
  background: var(--far-white);
  color: var(--far-ink);
}

.single-hero--light {
  border-bottom: 1px solid var(--far-line);
}

.single-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8rem;
  padding-bottom: 2.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .single-hero__content {
    padding-top: 10rem;
    padding-bottom: 3rem;
  }
}

.single-hero__media {
  margin-bottom: 0;
  padding-bottom: 2.5rem;
}

.single-hero__media-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 1.25rem;
}

.single-hero__excerpt {
  max-width: 58rem;
  margin-top: 1.25rem;
  color: var(--far-muted);
}

.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--far-muted);
  font-family: var(--far-font-kicker);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.breadcrumb-trail a {
  color: inherit;
}

.breadcrumb-trail a:hover {
  color: var(--far-ink);
}

.meta-pills--hero {
  margin-top: 1.5rem;
}

.meta-pills--hero span {
  border: 1px solid var(--far-line);
  background: transparent;
  color: var(--far-muted);
}

.single-hero__title {
  max-width: min(100%, 64rem);
  margin-top: 1.25rem;
  color: var(--far-ink);
  text-wrap: balance;
}

.single-hero__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--far-muted);
  font-size: 0.9rem;
}

.single-hero__dates--mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .single-hero__content {
    padding-top: 6.6rem;
    padding-bottom: 0.85rem;
  }

  .meta-pills--hero {
    margin-top: 1rem;
  }

  .single-hero__title {
    max-width: 100%;
    margin-top: 0.95rem;
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    line-height: 1.02;
  }

  .single-hero__excerpt {
    max-width: 31rem;
    margin-top: 0.95rem;
    font-size: 1.02rem;
    line-height: 1.48;
  }

  .single-hero__dates {
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.72rem;
  }

  .single-hero__summary-card,
  .single-hero__dates--desktop {
    display: none !important;
  }

  .single-hero__dates--mobile {
    display: flex;
    margin-top: 0.85rem;
    padding-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .single-hero__media {
    padding-bottom: 1.45rem;
  }

  .single-hero__media-image {
    aspect-ratio: 16 / 10;
    max-height: none;
    object-fit: cover;
    border-radius: 1rem;
  }
}

.article-body-section {
  background: var(--far-white);
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .article-body-section {
    padding: 5rem 0;
  }
}

.article-grid {
  display: grid;
  min-width: 0;
  gap: clamp(2rem, 4vw, 4.75rem);
  align-items: start;
}

.article-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .article-grid {
    grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  }
}

.article-aside {
  align-self: start;
}

@media (min-width: 1280px) {
  .article-aside {
    position: sticky;
    top: 7rem;
  }
}

.key-points,
.article-index {
  border-top: 1px solid var(--far-line);
  border-bottom: 1px solid var(--far-line);
  padding: 1.5rem 0;
}

.key-points .type-kicker,
.article-index .type-kicker {
  color: #6b7280;
}

.key-points ol,
.article-index ol {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.key-points li,
.article-index li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.75rem;
  color: #333842;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.key-points li span,
.article-index li span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--far-red);
  color: var(--far-white);
  font-size: 0.78rem;
}

.article-index a {
  color: #333842;
  text-decoration: none;
}

.article-index a:hover {
  color: var(--far-red);
}

.key-points--meta .type-body {
  margin-top: 1.1rem;
  color: var(--far-muted);
}

.key-points--meta .button-outline {
  margin-top: 1.25rem;
}

@media (max-width: 767.98px) {
  .article-body-section {
    padding: 2.35rem 0;
  }

  .article-grid {
    gap: 1.75rem;
  }

  .key-points,
  .article-index {
    padding: 1.05rem 0;
  }

  .key-points ol,
  .article-index ol {
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .key-points li,
  .article-index li {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .key-points li span,
  .article-index li span {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.68rem;
  }

  .key-points--meta .type-body {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .key-points--meta .button-outline {
    margin-top: 0.9rem;
  }

  .post-card__body {
    min-height: 15.5rem;
    padding: 1rem;
  }

  .post-card__media {
    aspect-ratio: 16 / 9;
  }
}

.entry-content {
  width: min(100%, 84ch);
  min-width: 0;
  max-width: 84ch;
  color: #4f5560;
  text-align: left;
  justify-self: center;
}

.entry-content .far-toc {
  display: none;
}

.entry-content > * {
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.entry-content > * + * {
  margin-top: 1.35rem;
}

.entry-content h2 {
  margin-top: 3rem;
  color: var(--far-ink);
  font-size: var(--type-subsection-title);
  font-weight: 600;
  line-height: 1.06;
  text-wrap: balance;
}

.entry-content h2::before {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--far-red);
  font-family: var(--far-font-kicker);
  font-size: 0.78rem;
  content: "//";
}

.entry-content h3 {
  margin-top: 2.2rem;
  color: var(--far-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.12;
}

.entry-content p,
.entry-content li {
  font-size: var(--type-body-lg);
  line-height: 1.62;
}

.entry-content a {
  color: var(--far-red);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3rem;
}

.entry-content li + li {
  margin-top: 0.65rem;
}

.entry-content blockquote,
.wp-block-quote {
  border-left: 4px solid var(--far-red);
  margin-inline: 0;
  padding: 0.35rem 0 0.35rem 1.35rem;
  color: var(--far-ink);
  font-size: var(--type-section-lead);
  line-height: 1.35;
}

.entry-content figure {
  margin: 2.25rem 0;
}

.entry-content img {
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
}

.entry-content figcaption {
  margin-top: 0.75rem;
  color: #7b8190;
  font-size: 0.9rem;
  line-height: 1.4;
}

.entry-content .wp-block-image.alignwide,
.entry-content .alignwide {
  max-width: min(100vw - 2rem, 78rem);
}

.entry-content .wp-block-button__link {
  background: var(--far-ink);
  color: var(--far-white);
  text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
  background: #1a1a1f;
}

.entry-content details,
.wp-block-details {
  border: 1px solid var(--far-line);
  border-radius: 1rem;
  background: var(--far-white);
  padding: 1.25rem;
  box-shadow: 0 16px 38px -34px rgba(24, 24, 27, 0.34);
}

.entry-content details + details,
.wp-block-details + .wp-block-details {
  margin-top: 0.75rem;
}

.entry-content summary,
.wp-block-details summary {
  cursor: pointer;
  color: var(--far-ink);
  font-size: var(--type-card-title);
  font-weight: 700;
  list-style: none;
}

.entry-content summary::-webkit-details-marker {
  display: none;
}

.entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.9rem;
  font-size: 0.98rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--far-line);
  padding: 0.85rem;
  text-align: left;
}

.entry-content th {
  background: var(--far-soft);
  color: var(--far-ink);
}

.entry-content .far-article-clean,
.entry-content .far-table-wrap,
.entry-content .wp-block-table,
.entry-content .far-faq-box,
.entry-content .far-faq-list,
.entry-content .far-faq-item {
  max-width: 100% !important;
  min-width: 0 !important;
}

.entry-content .far-table-wrap,
.entry-content .wp-block-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.entry-content .far-table-wrap table,
.entry-content .wp-block-table table {
  width: 100% !important;
  max-width: 100% !important;
}

.entry-content .far-faq-box {
  overflow: hidden;
}

.entry-content .far-faq-item summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.entry-content .far-faq-item summary > span:first-child {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

.entry-content .far-faq-icon {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .entry-content {
    width: 100%;
    max-width: 100%;
  }

  .entry-content .far-faq-box {
    padding: 1rem !important;
    border-radius: 0.9rem !important;
  }

  .entry-content .far-faq-item {
    padding: 0.95rem 1rem !important;
  }

  .entry-content .far-faq-item summary {
    gap: 0.75rem !important;
    font-size: 1.03rem !important;
    line-height: 1.28 !important;
  }

  .entry-content .far-table-wrap table,
  .entry-content .wp-block-table table {
    table-layout: fixed !important;
    min-width: 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
  }

  .entry-content .far-table-wrap th,
  .entry-content .far-table-wrap td,
  .entry-content .wp-block-table th,
  .entry-content .wp-block-table td,
  .entry-content th,
  .entry-content td {
    min-width: 0 !important;
    padding: 0.62rem 0.48rem !important;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

.related-section {
  background: var(--far-white);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .related-section {
    padding: 6rem 0;
  }
}

.related-section__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.related-section__heading .type-kicker {
  color: #6b7280;
}

.related-section__heading .type-section-title-compact {
  margin-top: 1rem;
}

.primary-cta-block {
  background: var(--far-black);
  color: var(--far-white);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .primary-cta-block {
    padding: 6rem 0;
  }
}

.primary-cta-block__inner {
  max-width: 70rem;
}

.primary-cta-block .type-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.primary-cta-block .type-section-title-compact {
  max-width: 13ch;
  margin-top: 1rem;
  color: var(--far-white) !important;
}

.primary-cta-block .type-body-lg {
  max-width: 58ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.76);
}

.primary-cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.far-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 44rem;
  margin-top: 2rem;
}

.far-search-form input {
  min-width: min(100%, 18rem);
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.1rem;
  color: var(--far-white);
  outline: none;
}

.far-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.far-search-form input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.far-search-form button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: var(--far-white);
  color: var(--far-ink);
  cursor: pointer;
}

.empty-state {
  max-width: 54rem;
  border-top: 1px solid var(--far-line);
  border-bottom: 1px solid var(--far-line);
  padding: 3rem 0;
}

.empty-state .type-kicker {
  color: var(--far-red);
}

.empty-state .type-section-title-compact {
  margin-top: 1rem;
}

.empty-state .type-body-lg,
.empty-state .button-outline {
  margin-top: 1.25rem;
}

.far-page__content {
  margin-inline: auto;
}

.site-footer {
  background: var(--far-black);
  color: var(--far-white);
}

.site-footer__frame {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3.5rem 0 2rem;
}

@media (min-width: 768px) {
  .site-footer__frame {
    padding-top: 4rem;
    padding-bottom: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__frame {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1280px) {
  .site-footer__grid {
    grid-template-columns: 1.02fr 1.98fr;
    gap: 3.5rem;
  }
}

.footer-logo img {
  width: 8.8rem;
  height: auto;
}

.footer-kicker {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-title {
  max-width: 16ch;
  margin-top: 1rem;
  color: var(--far-white) !important;
  font-weight: 500;
}

.footer-copy {
  max-width: 60ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.76);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.footer-certifications {
  margin-top: 2.25rem;
}

.footer-certifications .footer-kicker {
  margin-top: 0;
}

.footer-certifications__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-certification-badge {
  display: inline-flex;
  min-width: 7.25rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: var(--far-white);
  padding: 0.75rem 1rem;
  box-shadow: 0 18px 38px -30px rgba(0, 0, 0, 0.9);
}

.footer-certification-badge img {
  width: auto;
  max-width: 9.5rem;
  height: auto;
  max-height: 2.75rem;
  object-fit: contain;
}

.site-footer__links {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .site-footer__links {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.site-footer ul {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer li,
.site-footer a,
.footer-address {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  transition: color var(--far-motion-duration) var(--far-motion-ease);
}

.site-footer a:hover {
  color: var(--far-white);
}

.footer-info-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-info-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

.footer-info-card .type-kicker {
  color: rgba(255, 255, 255, 0.5);
}

.footer-info-card .type-body {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-address {
  margin-top: 0.5rem;
  font-style: normal;
  line-height: 1.62;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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