:root {
  --ail-bg: #f4f7f5;
  --ail-bg-elevated: #ffffff;
  --ail-ink: #14241c;
  --ail-muted: #5b6b62;
  --ail-line: #d8e2db;
  --ail-accent: #0f7a5f;
  --ail-accent-soft: #e4f3ee;
  --ail-accent-deep: #0a5c47;
  --ail-warn: #b45309;
  --ail-radius: 18px;
  --ail-radius-sm: 12px;
  --ail-shadow: 0 14px 40px rgba(20, 36, 28, 0.07);
  --ail-font-display: "Outfit", system-ui, sans-serif;
  --ail-font-body: "Source Sans 3", system-ui, sans-serif;
  --ail-content: 42rem;
  --ail-wrap: 1120px;
  --ail-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ail-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ail-ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, #dceee6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8f0ea 0%, transparent 50%),
    var(--ail-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--ail-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--ail-accent);
}

a:focus-visible,
button:focus-visible,
.ail-nav-toggle:focus-visible,
.ail-search-toggle:focus-visible {
  outline: 2px solid var(--ail-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--ail-font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.ail-wrap {
  width: min(100% - 2rem, var(--ail-wrap));
  margin-inline: auto;
}

.ail-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ail-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.ail-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.ail-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 245, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ail-header.is-scrolled {
  border-bottom-color: var(--ail-line);
  box-shadow: 0 8px 24px rgba(20, 36, 28, 0.05);
}

.ail-header-inner {
  min-height: var(--ail-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ail-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(280px, 58vw);
  line-height: 0;
  text-decoration: none;
}

.ail-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.ail-brand-logo,
.ail-brand svg.ail-brand-logo,
.ail-brand img,
.ail-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px;
}

.ail-brand .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.ail-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ail-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ail-menu > li {
  position: relative;
}

/* Keep :hover alive while the pointer moves into the dropdown */
.ail-menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.85rem;
  z-index: 1199;
}

.ail-menu > li > a {
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ail-ink);
  text-decoration: none;
  padding: 0.55rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ail-menu > li.menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
}

.ail-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 2px;
  background: var(--ail-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ail-menu > li > a:hover::after,
.ail-menu > .current-menu-item > a::after,
.ail-menu > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Desktop dropdown — collapsed by default */
.ail-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--ail-line);
  border-radius: var(--ail-radius-sm);
  box-shadow: var(--ail-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.ail-menu .sub-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ail-ink);
  text-decoration: none;
}

.ail-menu .sub-menu a::after {
  display: none;
}

.ail-menu .sub-menu a:hover,
.ail-menu .sub-menu .current-menu-item > a {
  background: var(--ail-accent-soft);
  color: var(--ail-accent-deep);
}

.ail-menu > li:hover > .sub-menu,
.ail-menu > li:focus-within > .sub-menu,
.ail-menu > li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ail-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ail-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ail-ink);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.ail-icon-btn:hover {
  background: var(--ail-accent-soft);
}

.ail-search-panel {
  display: none;
  border-top: 1px solid var(--ail-line);
  background: var(--ail-bg-elevated);
  padding: 0.85rem 0;
}

.ail-search-panel.is-open {
  display: block;
  animation: ail-fade-up 0.35s ease;
}

.ail-search-panel form {
  display: flex;
  gap: 0.5rem;
}

.ail-search-panel input[type="search"] {
  flex: 1;
  border: 1px solid var(--ail-line);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  background: #fff;
}

.ail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-family: var(--ail-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ail-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.ail-btn-primary {
  background: var(--ail-accent);
  color: #fff;
}

.ail-btn-primary:hover {
  background: var(--ail-accent-deep);
  color: #fff;
}

.ail-btn-ghost {
  background: transparent;
  border-color: var(--ail-line);
  color: var(--ail-ink);
}

.ail-btn-ghost:hover {
  border-color: var(--ail-accent);
  color: var(--ail-accent-deep);
}

.ail-nav-toggle {
  display: none;
}

/* Hero */
.ail-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.ail-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.ail-hero-brand {
  font-family: var(--ail-font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--ail-ink);
  margin: 0 0 1rem;
  animation: ail-fade-up 0.7s ease both;
}

.ail-hero-title {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--ail-accent-deep);
  margin: 0 0 0.85rem;
  max-width: 22ch;
  animation: ail-fade-up 0.7s ease 0.08s both;
}

.ail-hero-text {
  color: var(--ail-muted);
  max-width: 38ch;
  margin-bottom: 1.5rem;
  animation: ail-fade-up 0.7s ease 0.14s both;
}

.ail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: ail-fade-up 0.7s ease 0.2s both;
}

.ail-hero-visual {
  position: relative;
  border-radius: calc(var(--ail-radius) + 8px);
  overflow: hidden;
  min-height: 320px;
  background:
    linear-gradient(145deg, rgba(15, 122, 95, 0.18), rgba(15, 122, 95, 0.02)),
    #cfe4da;
  box-shadow: var(--ail-shadow);
  animation: ail-fade-in 0.9s ease 0.1s both;
}

.ail-hero-visual img,
.ail-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

.ail-hero-slider {
  isolation: isolate;
}

.ail-hero-slides {
  position: relative;
  min-height: 320px;
  height: 100%;
}

.ail-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}

.ail-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ail-hero-slide:hover,
.ail-hero-slide:focus-visible {
  text-decoration: none;
  color: #fff;
}

.ail-hero-slide-fallback {
  display: block;
  min-height: 320px;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(13, 148, 136, 0.55), rgba(129, 140, 248, 0.35)),
    #0f766e;
}

.ail-hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3.5rem 1.15rem 3.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 72%);
  display: grid;
  gap: 0.35rem;
}

.ail-hero-slide-cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.ail-hero-slide-title {
  font-family: var(--ail-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ail-hero-slider-controls {
  position: absolute;
  z-index: 3;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.ail-hero-slider-controls > * {
  pointer-events: auto;
}

.ail-hero-slider-btn {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ail-ink);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.ail-hero-slider-btn:hover,
.ail-hero-slider-btn:focus-visible {
  background: #fff;
}

.ail-hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto;
}

.ail-hero-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.ail-hero-slider-dot.is-active {
  background: #fff;
  width: 1.15rem;
}

/* Sections */
.ail-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.ail-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ail-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ail-muted {
  color: var(--ail-muted);
}

.ail-cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.ail-cat-chip {
  display: block;
  text-decoration: none;
  color: var(--ail-ink);
  background: var(--ail-bg-elevated);
  border: 1px solid var(--ail-line);
  border-radius: var(--ail-radius-sm);
  padding: 1rem 1.1rem;
  font-family: var(--ail-font-display);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ail-cat-chip:hover {
  transform: translateY(-2px);
  border-color: var(--ail-accent);
  box-shadow: var(--ail-shadow);
  text-decoration: none;
  color: var(--ail-accent-deep);
}

.ail-cat-chip span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--ail-font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ail-muted);
}

/* Cards / listings */
.ail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.ail-card-wrap {
  display: flex;
  height: 100%;
  margin: 0;
}

.ail-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--ail-bg-elevated);
  border: 1px solid var(--ail-line);
  border-radius: var(--ail-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ail-shadow);
  border-color: #c5d7cc;
  text-decoration: none;
  color: inherit;
}

.ail-card-media {
  aspect-ratio: 3 / 2;
  background: #d7e6de;
  overflow: hidden;
}

.ail-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ail-card:hover .ail-card-media img {
  transform: scale(1.04);
}

.ail-card-body {
  padding: 1.05rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.ail-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--ail-muted);
  font-weight: 600;
}

.ail-card-title {
  font-size: 1.15rem;
  margin: 0;
}

.ail-card-excerpt {
  color: var(--ail-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Layout with sidebar */
.ail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}

.ail-layout.is-full,
.ail-layout.is-narrow {
  grid-template-columns: minmax(0, 1fr);
}

.ail-layout.is-narrow {
  max-width: 820px;
  margin-inline: auto;
}

.ail-main {
  min-width: 0;
}

.ail-sidebar {
  position: sticky;
  top: calc(var(--ail-header-h) + 1rem);
}

.ail-archive-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ail-line);
}

.ail-archive-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.ail-breadcrumbs {
  font-size: 0.88rem;
  color: var(--ail-muted);
  margin-bottom: 1rem;
}

.ail-breadcrumbs a {
  color: var(--ail-muted);
  text-decoration: none;
  font-weight: 600;
}

.ail-breadcrumbs a:hover {
  color: var(--ail-accent);
}

/* Single */
.ail-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ail-accent);
  z-index: 1100;
  transform-origin: left;
}

.ail-single-header {
  margin-bottom: 1.5rem;
}

.ail-single-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0.4rem 0 0.75rem;
}

.ail-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--ail-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.ail-single-hero {
  position: relative;
  margin: 0 0 2rem;
  border-radius: var(--ail-radius);
  overflow: hidden;
  box-shadow: var(--ail-shadow);
  isolation: isolate;
  aspect-ratio: 21 / 9;
  background: #1a2a22;
  animation: ail-fade-in 0.55s ease both;
}

.ail-single-hero-media {
  position: absolute;
  inset: 0;
}

.ail-single-hero-img,
.ail-single-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ail-single-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: linear-gradient(
    to top,
    rgba(10, 22, 16, 0.88) 0%,
    rgba(10, 22, 16, 0.55) 55%,
    rgba(10, 22, 16, 0) 100%
  );
  color: #fff;
  animation: ail-fade-up 0.6s ease 0.08s both;
}

.ail-single-hero-overlay h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.55rem);
  line-height: 1.15;
  margin: 0.35rem 0 0;
  color: #fff;
  text-wrap: balance;
}

.ail-single-meta--on-hero {
  color: rgba(255, 255, 255, 0.82);
}

.ail-single-meta--on-hero a {
  color: #c8f0e0;
}

.ail-single-meta--on-hero a:hover {
  color: #fff;
}

.ail-featured {
  margin: 0 0 1.75rem;
  border-radius: var(--ail-radius);
  overflow: hidden;
  box-shadow: var(--ail-shadow);
}

.ail-featured img {
  width: 100%;
  display: block;
}

.ail-layout.is-full .entry-content {
  max-width: none;
}

.entry-content {
  max-width: var(--ail-content);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2em;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 3px solid var(--ail-accent);
  color: var(--ail-muted);
  font-size: 1.05rem;
}

.entry-content .ail-table-wrap,
.entry-content figure.wp-block-table,
.entry-content .wp-block-table {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
  background: var(--ail-bg-elevated);
  border: 1px solid var(--ail-line);
  border-radius: var(--ail-radius-sm);
  overflow: hidden;
}

.entry-content thead th,
.entry-content tr:first-child th,
.entry-content th {
  background: var(--ail-accent-soft);
  color: var(--ail-ink);
  font-weight: 700;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.entry-content th,
.entry-content td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ail-line);
  vertical-align: top;
}

.entry-content tbody tr:last-child th,
.entry-content tbody tr:last-child td,
.entry-content tr:last-child td {
  border-bottom: none;
}

.entry-content tbody tr:nth-child(even) td,
.entry-content tbody tr:nth-child(even) th {
  background: rgba(20, 36, 28, 0.03);
}

.entry-content tbody tr:hover td,
.entry-content tbody tr:hover th {
  background: var(--ail-accent-soft);
}

.entry-content .alignleft {
  float: left;
  margin: 0.35rem 1.25rem 1rem 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.25rem;
}

.entry-content .aligncenter {
  display: block;
  margin: 1.25rem auto;
}

.ail-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ail-line);
}

.ail-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.ail-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ail-line);
  text-decoration: none;
  color: var(--ail-ink);
  font-weight: 600;
  background: #fff;
}

.ail-pagination .current,
.ail-pagination a:hover {
  background: var(--ail-accent-soft);
  border-color: var(--ail-accent);
  color: var(--ail-accent-deep);
}

/* Ads */
.ail-ad {
  margin: 1.25rem 0;
  display: grid;
  place-items: center;
  background: #eef3f0;
  border: 1px dashed #c9d7cf;
  border-radius: var(--ail-radius-sm);
  overflow: hidden;
}

.ail-ad--header {
  min-height: 90px;
  margin: 0.75rem 0 0;
}

.ail-ad--inarticle {
  min-height: 250px;
  clear: both;
}

.ail-ad--sidebar {
  min-height: 280px;
  margin-bottom: 1.25rem;
}

.ail-ad--footer {
  min-height: 90px;
}

.ail-ad ins {
  max-width: 100%;
}

/* Widgets / footer */
.ail-widget,
.ail-footer-widget {
  background: var(--ail-bg-elevated);
  border: 1px solid var(--ail-line);
  border-radius: var(--ail-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.ail-widget-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.ail-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--ail-line);
  background: #ebf1ed;
  padding: 2rem 0 1.75rem;
}

.ail-footer-nav {
  display: flex;
  justify-content: center;
}

.ail-footer .ail-footer-menu,
.ail-footer .ail-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.5rem;
}

.ail-footer .ail-menu > li > a {
  font-size: 0.95rem;
  color: var(--ail-muted);
  padding: 0.25rem 0;
}

.ail-footer .ail-menu > li > a::after,
.ail-footer .ail-menu > li > a::before {
  display: none;
}

.ail-footer .ail-menu > li > a:hover {
  color: var(--ail-accent);
}

.ail-footer-copy {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ail-line);
  font-size: 0.88rem;
  color: var(--ail-muted);
  text-align: center;
}

.ail-empty {
  padding: 2rem 0;
  color: var(--ail-muted);
}

@keyframes ail-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ail-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 960px) {
  .ail-single-hero {
    aspect-ratio: 16 / 9;
  }

  .ail-hero-grid,
  .ail-layout,
  .ail-grid {
    grid-template-columns: 1fr;
  }

  .ail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ail-sidebar {
    position: static;
  }

  .ail-menu {
    display: none;
  }

  .ail-nav.is-open .ail-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--ail-header-h);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--ail-line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.15rem;
    box-shadow: var(--ail-shadow);
  }

  .ail-nav.is-open .ail-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.15rem 0 0.35rem 0.85rem;
    display: none;
    min-width: 0;
  }

  .ail-nav.is-open .ail-menu > li.is-open > .sub-menu {
    display: block;
  }

  .ail-nav-toggle {
    display: inline-grid;
  }

  .ail-header {
    position: sticky;
  }

  .ail-nav {
    position: static;
  }

  .ail-header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .ail-brand {
    max-width: min(220px, 62vw);
  }

  .ail-brand-logo,
  .ail-brand img {
    height: 40px;
  }

  .ail-grid {
    grid-template-columns: 1fr;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }
}
