/* ============================================================
   AFRICAN UPDATES — au-theme.css
   Magazine/news design system
   ============================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* Palette */
  --au-black:       #0d0d0d;
  --au-ink:         #1a1a1a;
  --au-charcoal:    #2e2e2e;
  --au-mid:         #666666;
  --au-muted:       #999999;
  --au-border:      #e0e0e0;
  --au-surface:     #f5f5f5;
  --au-white:       #ffffff;

  /* Brand accent — sky blue */
  --au-navy:         #0284c7;   /* sky blue - main brand (backgrounds) */
  --au-navy-dark:    #0369a1;   /* deeper sky - hovers, gradients */
  --au-navy-text:    #0369a1;   /* sky for TEXT on white - keeps contrast readable */
  --au-navy-light:   #38bdf8;   /* pale sky - accents */
  --au-red:          #ff5757;   /* brand red - breaking pulse */

  /* Category colours */
  --cat-politics:   #1a4fa0;
  --cat-business:   #1a7a4a;
  --cat-sport:      #d97706;
  --cat-culture:    #7c3aed;
  --cat-security:   #b91c1c;
  --cat-world:      #0891b2;
  --cat-featured:   #0369a1;
  --cat-default:    #374151;
  /* Added: colours for the remaining categories (were falling back to navy) */
  --cat-news:          #475569;
  --cat-africa:        #b45309;
  --cat-east:          #0369a1;
  --cat-entertainment: #db2777;
  --cat-health:        #0d9488;
  --cat-international: #6b21a8;
  --cat-tech:          #4338ca;
  --cat-african-union: #0f766e;
  --cat-tourism:       #c2410c;
  --cat-regional:      #52525b;
  --cat-north:         #a16207;
  --cat-central:       #7c2d12;
  --cat-south:         #15803d;
  --cat-west:          #b45309;
  --cat-agriculture:   #4d7c0f;
  --cat-editors:       #9d174d;

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Sans 3', system-ui, sans-serif;
  --font-label:     'Roboto Condensed', Arial Narrow, sans-serif;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --max-width:    1240px;
  --sidebar-w:    300px;
  --radius-sm:    2px;
  --radius:       4px;
  --radius-lg:    8px;

  /* Animation */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast:     150ms;
  --dur-base:     250ms;
  --dur-slow:     400ms;

  /* Topbar */
  --topbar-h:   36px;
  --header-h:   90px;
  --nav-h:      48px;
  --sticky-top: calc(var(--nav-h));
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--au-ink);
  background: var(--au-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--au-navy); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, button, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--au-navy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── CONTAINER ─────────────────────────────────────────────── */
.au-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .au-container { padding-inline: var(--space-6); }
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.au-topbar {
  background: var(--au-black);
  color: var(--au-white);
  height: var(--topbar-h);
  font-size: var(--text-xs);
  font-family: var(--font-label);
  letter-spacing: 0.03em;
  margin: 0;
  padding: 0;
}
.au-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}
.au-topbar__left,
.au-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.au-topbar__date {
  color: var(--au-white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.au-topbar__links {
  display: flex;
  gap: var(--space-1);
}
.au-topbar__links li + li::before {
  content: '·';
  margin-right: var(--space-1);
  color: rgba(255,255,255,0.4);
}
.au-topbar__links a {
  color: var(--au-white);
  transition: color var(--dur-fast);
}
.au-topbar__links a:hover { color: rgba(255,255,255,0.7); }
.au-lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.au-lang-switcher__item {
  color: var(--au-white);
  padding: 0 var(--space-2);
  border-left: 1px solid rgba(255,255,255,0.2);
}
.au-lang-switcher__item:first-child { border-left: none; }
.au-lang-switcher__item:hover { color: rgba(255,255,255,0.7); }
.au-lang-switcher__current {
  color: var(--au-white);
  font-weight: 700;
  padding-left: var(--space-2);
  border-left: 1px solid rgba(255,255,255,0.2);
}
.au-topbar__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.au-topbar__social a {
  color: var(--au-white);
  transition: color var(--dur-fast);
  font-size: 0.8rem;
}
.au-topbar__social a:hover { color: rgba(255,255,255,0.7); }

/* ── HEADER ─────────────────────────────────────────────────── */
.au-topbar {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.au-header {
  background: var(--au-white);
  border-bottom: 1px solid var(--au-border);
  padding-block: var(--space-4);
  margin-top: 0 !important;
  padding-top: var(--space-4) !important;
}
.au-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  min-height: var(--header-h);
}
.au-header__branding { flex-shrink: 0; }
.au-logo { display: inline-block; }
.au-logo__img { height: 70px; width: auto; object-fit: contain; }
.au-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--au-navy-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.au-logo__tagline {
  font-size: var(--text-xs);
  font-family: var(--font-label);
  color: var(--au-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}
.au-header__search {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

/* Hide the toggle button — search is always visible */
.au-search-toggle { display: none; }

/* Always-visible inline search panel */
.au-search-panel {
  position: static;
  width: 280px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: block !important; /* override [hidden] */
}
.au-search-panel[hidden] { display: block !important; }
.au-search-form {
  display: flex;
  gap: var(--space-2);
}
.au-search-form__input {
  flex: 1;
  border: 1px solid var(--au-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--au-ink);
  outline: none;
  transition: border-color var(--dur-fast);
}
.au-search-form__input:focus { border-color: var(--au-navy); }
.au-search-form__btn {
  background: var(--au-navy);
  color: var(--au-white);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  transition: background var(--dur-fast);
}
.au-search-form__btn:hover { background: var(--au-navy-dark); }

/* ── NAV ────────────────────────────────────────────────────── */
.au-nav {
  background: var(--au-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.au-nav__inner {
  display: flex;
  align-items: stretch;
  min-height: var(--nav-h);
  position: relative;
}
/* Logo inside the nav bar, far left */
.au-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: var(--space-5);
  margin-right: var(--space-2);
}
.au-nav__logo-img {
  height: calc(var(--nav-h) - var(--space-3));
  width: auto;
  max-height: 44px;
  object-fit: contain;
  display: block;
}
.au-nav__menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}
.au-nav__item {
  position: relative;
}
.au-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-4);
  height: var(--nav-h);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.au-nav__link:hover,
.au-nav__item.is-active > .au-nav__link {
  background: rgba(0,0,0,0.25);
  color: var(--au-white);
}
.au-nav__arrow {
  font-size: 0.65em;
  transition: transform var(--dur-fast);
}
.au-nav__item:hover .au-nav__arrow,
.au-nav__item.dropdown-open .au-nav__arrow {
  transform: rotate(180deg);
}
/* Dropdown */
.au-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--au-black);
  border-top: 3px solid var(--au-navy-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease),
              visibility var(--dur-base),
              transform var(--dur-base) var(--ease);
}
.au-nav__item:hover .au-nav__dropdown,
.au-nav__item.dropdown-open .au-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.au-nav__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.au-nav__dropdown-link:hover {
  color: var(--au-white);
  padding-left: var(--space-7, 1.75rem);
  background: rgba(255,255,255,0.05);
}
/* Right-side controls */
.au-nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  padding-left: var(--space-4);
}
.au-nav__search-btn {
  color: rgba(255,255,255,0.8);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
  display: none; /* shown on mobile only */
}
.au-nav__search-btn:hover { color: var(--au-white); }
/* Mobile search panel */
.au-nav__mobile-search {
  background: var(--au-black);
  padding-block: var(--space-3);
}
.au-nav__mobile-search[hidden] { display: none; }
/* Hamburger */
.au-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--space-3);
  margin-right: var(--space-2);
}
.au-hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--au-white);
  border-radius: 1px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}
.au-nav__hamburger[aria-expanded="true"] .au-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.au-nav__hamburger[aria-expanded="true"] .au-hamburger__bar:nth-child(2) {
  opacity: 0;
}
.au-nav__hamburger[aria-expanded="true"] .au-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── BADGES ─────────────────────────────────────────────────── */
.au-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--au-navy);
  color: var(--au-white);
  line-height: 1.6;
  transition: background var(--dur-fast);
}
/* Category badges are deliberately uniform: they all use the brand sky
   blue from .au-badge above. The --cat-* variables are kept in :root so
   per-category colours can be restored later if wanted. */
.au-badge:hover { background: var(--au-navy-dark); color: var(--au-white); }
.au-badge--sm { font-size: 10px; padding: 1px 6px; }

/* Slider badges use the brand colour like every other badge */
.au-slider__caption .au-badge,
.au-slider__tile-body .au-badge {
  background: var(--au-navy) !important;
  color: var(--au-white) !important;
}
/* ── HERO SLIDER ─────────────────────────────────────────────── */
.au-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--au-black);
  margin-bottom: var(--space-4);
}
.au-slider__track { position: relative; }
.au-slider__slide {
  display: none;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 520px;
}
.au-slider__slide.is-active { display: grid; }

/* Large hero card — spans full height, left column */
.au-slider__hero {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}
.au-slider__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}
.au-slider__hero:hover .au-slider__img { transform: scale(1.04); }
.au-slider__img--placeholder,
.au-slider__tile-img--placeholder {
  background: var(--au-charcoal);
}
.au-slider__img-link {
  position: absolute;
  inset: 0;
  display: block;
}
.au-slider__overlay,
.au-slider__tile .au-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.au-slider__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-6) var(--space-8);
  z-index: 2;
}
.au-slider__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--au-white);
  line-height: 1.2;
  margin-block: var(--space-3) var(--space-3);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.au-slider__title a { color: inherit; }
.au-slider__title a:hover { color: inherit; text-decoration: underline; }
.au-slider__meta {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Tiles grid — right column */
.au-slider__tiles {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
}
/* Horizontal tile: thumbnail on the left, text on the right */
.au-slider__tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: var(--au-white);
}
.au-slider__tile-img-link {
  position: relative;
  flex: 0 0 40%;
  max-width: 40%;
  display: block;
  overflow: hidden;
}
.au-slider__tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease);
}
.au-slider__tile:hover .au-slider__tile-img { transform: scale(1.06); }
.au-slider__tile-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
}
.au-slider__tile-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--au-ink);
  line-height: 1.25;
  margin-block: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.au-slider__tile-title a { color: inherit; }
.au-slider__tile-title a:hover { color: var(--au-navy); }
.au-slider__tile-date {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  color: var(--au-muted);
}
.au-slider__tile-body .au-badge { align-self: flex-start; }
/* Dots */
.au-slider__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}
.au-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.au-slider__dot.is-active {
  background: var(--au-white);
  transform: scale(1.3);
}
/* Arrows */
.au-slider__prev,
.au-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.5);
  color: var(--au-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--dur-fast);
  font-size: var(--text-sm);
}
.au-slider__prev { left: var(--space-4); }
.au-slider__next { right: var(--space-4); }
.au-slider__prev:hover,
.au-slider__next:hover { background: var(--au-navy); }

/* ── HOMEPAGE BODY (main + sidebar) ─────────────────────────── */
.au-home-body {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-16);
}

/* ── SECTION HEADINGS ────────────────────────────────────────── */
.au-section { margin-bottom: var(--space-10); }
.au-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--au-navy);
  position: relative;
}
.au-section__title {
  font-family: var(--font-label);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--au-ink);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.au-section__title i { color: var(--au-navy); font-size: 0.85em; }
.au-section__more {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--au-navy-text);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--dur-fast);
}
.au-section__more:hover { gap: var(--space-2); color: var(--au-navy-dark); }

/* ── POST CARD ───────────────────────────────────────────────── */
.au-card {
  display: flex;
  flex-direction: column;
  background: var(--au-white);
  border: 1px solid var(--au-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.au-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.au-card__img-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.au-card__img {
  width: 100%;
  padding-bottom: 66.66%; /* 3:2 ratio */
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease);
}
.au-card:hover .au-card__img { transform: scale(1.05); }
.au-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.au-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--au-ink);
}
.au-card__title a:hover { color: var(--au-navy); }
.au-card__excerpt {
  font-size: var(--text-sm);
  color: var(--au-mid);
  line-height: 1.6;
}
.au-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  color: var(--au-muted);
}
.au-card__meta i { color: var(--au-navy); }

/* Card sizes */
.au-card--large .au-card__title { font-size: var(--text-2xl); }
.au-card--mini {
  flex-direction: row;
  align-items: flex-start;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--au-border);
  padding: var(--space-3) 0;
  background: transparent;
}
.au-card--mini:hover { transform: none; box-shadow: none; }
.au-card--mini .au-card__img-wrap { width: 90px; flex-shrink: 0; }
.au-card--mini .au-card__img { padding-bottom: 90px; width: 90px; }
.au-card--mini .au-card__body { padding: 0 0 0 var(--space-3); }
.au-card--mini .au-card__title { font-size: var(--text-sm); }

/* ── GRIDS ───────────────────────────────────────────────────── */
.au-grid { display: grid; gap: var(--space-5); }
.au-grid--4 { grid-template-columns: repeat(4, 1fr); }
.au-grid--3 { grid-template-columns: repeat(3, 1fr); }
.au-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Large hero + aside mini-list layout */
.au-list-with-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.au-list-with-hero__aside {
  display: flex;
  flex-direction: column;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.au-sidebar {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  /* Fixed height = viewport minus sticky nav and breathing room.
     The sidebar itself never scrolls; only the Recent Posts card inside
     it scrolls. Fixed widgets (search, follow-us) always stay visible. */
  height: calc(100vh - var(--nav-h) - var(--space-4));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden;
}
/* Fixed widgets keep their natural height and never shrink */
.au-sidebar__fixed { flex: 0 0 auto; }
/* The growing widget takes all remaining space */
.au-sidebar__grow {
  flex: 1 1 auto;
  min-height: 0;   /* critical: lets a flex child scroll instead of overflow */
  display: flex;
  flex-direction: column;
}
.au-widget--scroll {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.au-widget__title--sticky { flex: 0 0 auto; }
.au-widget__scrollarea {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--au-border) transparent;
}
.au-widget__scrollarea::-webkit-scrollbar { width: 6px; }
.au-widget__scrollarea::-webkit-scrollbar-track { background: transparent; }
.au-widget__scrollarea::-webkit-scrollbar-thumb { background: var(--au-border); border-radius: 3px; }
.au-widget__scrollarea::-webkit-scrollbar-thumb:hover { background: var(--au-muted); }
.au-sidebar::-webkit-scrollbar { width: 6px; }
.au-sidebar::-webkit-scrollbar-track { background: transparent; }
.au-sidebar::-webkit-scrollbar-thumb { background: var(--au-border); border-radius: 3px; }
.au-sidebar::-webkit-scrollbar-thumb:hover { background: var(--au-muted); }
/* On mobile the sidebar is not sticky and should never be height-capped */
@media (max-width: 768px) {
  .au-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
.au-widget {
  background: var(--au-white);
  border: 1px solid var(--au-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.au-widget__title {
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--au-white);
  background: var(--au-navy);
  padding: var(--space-3) var(--space-4);
}
.au-widget__list { padding: var(--space-3) var(--space-4); }
/* Recent list */
.au-recent-item {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--au-border);
}
.au-recent-item:last-child { border-bottom: none; }
.au-recent-item__img-link { flex-shrink: 0; }
.au-recent-item__img {
  width: 72px;
  height: 50px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}
.au-recent-item__body { flex: 1; }
.au-recent-item__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-1);
}
.au-recent-item__title a:hover { color: var(--au-navy); }
.au-recent-item__date {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  color: var(--au-muted);
}
/* Category list */
.au-cat-item { border-bottom: 1px solid var(--au-border); }
.au-cat-item:last-child { border-bottom: none; }
.au-cat-item__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  transition: background var(--dur-fast);
}
.au-cat-item__link:hover { background: var(--au-surface); color: var(--au-navy); }
.au-cat-item__count {
  background: var(--au-surface);
  border-radius: 99px;
  padding: 1px 8px;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--au-mid);
}

/* ── COLLAPSIBLE WIDGET ──────────────────────────────────────── */
.au-widget--collapsible .au-widget__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.au-widget--collapsible .au-widget__title::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75em;
  transition: transform var(--dur-base) var(--ease);
}
.au-widget--collapsible.is-open .au-widget__title::after {
  transform: rotate(180deg);
}
.au-widget__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
.au-widget--collapsible.is-open .au-widget__body {
  max-height: 1000px; /* large enough to show all categories */
}
/* Tag cloud */
.au-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4);
}
.au-tag {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--au-border);
  border-radius: 99px;
  color: var(--au-mid);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.au-tag:hover {
  background: var(--au-navy);
  color: var(--au-white);
  border-color: var(--au-navy);
}
/* Social follow */
.au-widget--social .au-social-follow {
  display: flex;
  flex-direction: column;
}
.au-social-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--au-white);
  transition: opacity var(--dur-fast);
}
.au-social-btn:hover { opacity: 0.9; color: var(--au-white); }
.au-social-btn--facebook { background: #1877f2; }
.au-social-btn--twitter  { background: #000000; }
.au-social-btn--youtube  { background: #ff0000; }
.au-social-btn--whatsapp { background: #25d366; }
.au-social-btn + .au-social-btn { border-top: 1px solid rgba(255,255,255,0.15); }

/* Inline search widget */
.au-widget .au-search-form {
  margin: var(--space-3) var(--space-4);
}

/* ── LOAD MORE BUTTON ────────────────────────────────────────── */
.au-loadmore {
  text-align: center;
  margin-block: var(--space-8);
}
.au-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-base);
}
.au-btn--outline {
  border: 2px solid var(--au-navy);
  color: var(--au-navy-text);
  background: transparent;
}
.au-btn--outline:hover {
  background: var(--au-navy);
  color: var(--au-white);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.au-footer {
  background: var(--au-ink);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
}
.au-footer__top { padding-block: var(--space-12); }
.au-footer__top-inner {
  display: grid;
  /* brand | quick links | categories | advertising | languages | follow us */
  grid-template-columns: 1.7fr 1.15fr 1fr 0.85fr 0.85fr 1.05fr;
  gap: var(--space-6);
}
/* Between tablet and desktop: brand on its own row, five columns below,
   rather than squeezing six across a narrow viewport. */
@media (max-width: 1200px) and (min-width: 1025px) {
  .au-footer__top-inner { grid-template-columns: repeat(3, 1fr); }
}
.au-footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--au-navy-light);
}
.au-footer__logo img {
  margin-bottom: var(--space-4);
  max-width: 220px;
  width: 100%;
  height: auto;          /* never squash, whatever the declared size */
}
.au-footer__about {
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.au-footer__social {
  display: flex;
  gap: var(--space-4);
}
.au-footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.au-footer__social a:hover { background: var(--au-navy); color: var(--au-white); }

/* Footer "Follow Us" column buttons */
.au-footer__follow {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.au-footer__follow-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.au-footer__follow-btn i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}
.au-footer__follow-btn:hover {
  color: var(--au-white);
  transform: translateX(3px);
}
.au-footer__follow-btn--x:hover        { background: #000000; }
.au-footer__follow-btn--facebook:hover { background: #1877f2; }
.au-footer__follow-btn--whatsapp:hover { background: #25d366; }

.au-footer__col-title {
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--au-white);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--au-navy);
}
.au-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.au-footer__links a {
  color: rgba(255,255,255,0.65);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.au-footer__links a:hover { color: var(--au-white); padding-left: var(--space-2); }
.au-footer__bottom {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-4);
}
.au-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.au-footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.4); }
.au-footer__policy {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-xs);
}
.au-footer__policy a { color: rgba(255,255,255,0.5); }
.au-footer__policy a:hover { color: var(--au-white); }

/* ── SINGLE POST (will be expanded in Part 2) ────────────────── */
.au-site-body { min-height: 60vh; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  :root { --sidebar-w: 260px; }
  .au-slider__slide { height: 420px; }
  .au-slider__title { font-size: var(--text-2xl); }
  .au-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .au-footer__top-inner { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

/* Large mobile: ≤ 768px */
@media (max-width: 768px) {
  /* Topbar on mobile: keep the language switcher + social, hide date & text links */
  .au-topbar__links,
  .au-topbar__date { display: none; }
  .au-topbar__inner {
    justify-content: space-between;
  }
  .au-lang-switcher {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
  }

  /* Header stack */
  .au-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
  .au-header__branding { text-align: center; }
  .au-logo__img { height: 52px; }

  /* Nav mobile */
  .au-nav__hamburger { display: flex; }
  .au-nav__search-btn { display: flex; }
  .au-nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--au-black);
    z-index: 300;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    max-height: 70vh;
    overflow-y: auto;
  }
  .au-nav__menu.is-open { display: flex; }
  .au-nav__link { padding: var(--space-4) var(--space-5); border-bottom: 1px solid rgba(255,255,255,0.07); }
  .au-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    display: none;
  }
  .au-nav__item.dropdown-open .au-nav__dropdown { display: block; }

  /* Slider mobile: stack hero, hide tiles */
  .au-slider__slide {
    display: none;
    grid-template-columns: 1fr;
    height: auto;
  }
  .au-slider__slide.is-active { display: block; }
  .au-slider__hero {
    height: 280px;
    grid-row: auto;
    grid-column: auto;
  }
  .au-slider__tiles { display: none; }
  .au-slider__title { font-size: var(--text-xl); }

  /* Home body: single column */
  .au-home-body { grid-template-columns: 1fr; }
  .au-sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }
  .au-sidebar__grow { flex: 0 0 auto; }
  .au-widget--scroll { overflow: visible; }
  .au-widget__scrollarea { overflow: visible; min-height: 0; }

  /* Grids */
  .au-grid--4,
  .au-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .au-list-with-hero { grid-template-columns: 1fr; }

  /* Footer */
  .au-footer__top-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .au-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .au-grid--4,
  .au-grid--3,
  .au-grid--2 { grid-template-columns: 1fr; }
  .au-slider__hero { height: 240px; }
  .au-card--mini { flex-direction: column; }
  .au-card--mini .au-card__img-wrap { width: 100%; }
  .au-card--mini .au-card__img { width: 100%; padding-bottom: 56.25%; }
  .au-card--mini .au-card__body { padding: var(--space-3) 0 0; }
}

/* ============================================================
   PART 2 — Single post, List/Archive, Taxonomy, Share, Breadcrumb
   ============================================================ */

/* ── READING PROGRESS BAR ──────────────────────────────────── */
.au-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.au-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--au-navy);
  transition: width 100ms linear;
  box-shadow: 0 0 6px rgba(192, 39, 45, 0.5);
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.au-breadcrumb {
  padding-block: var(--space-4) var(--space-2);
}
.au-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  color: var(--au-muted);
}
.au-breadcrumb__link {
  color: var(--au-mid);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--dur-fast);
}
.au-breadcrumb__link:hover { color: var(--au-navy); }
.au-breadcrumb__sep { color: var(--au-border); font-size: 0.65em; }
.au-breadcrumb__item--current { color: var(--au-ink); font-weight: 600; }

/* ── SINGLE POST LAYOUT ────────────────────────────────────── */
.au-single-wrap { padding-bottom: var(--space-16); }
.au-single-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-4);
}

/* ── ARTICLE HEADER ─────────────────────────────────────────── */
.au-article__header { margin-bottom: var(--space-6); }
.au-article__cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.au-article__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: 900;
  line-height: 1.15;
  color: var(--au-ink);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}
.au-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--au-mid);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--au-border);
}
.au-article__meta i { color: var(--au-navy); margin-right: var(--space-1); }
.au-article__author { font-weight: 600; color: var(--au-ink); }
.au-article__updated { color: var(--au-muted); font-size: var(--text-xs); }
.au-article__read-time {
  margin-left: auto;
  background: var(--au-surface);
  padding: 2px 10px;
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--au-mid);
}

/* ── HERO IMAGE ─────────────────────────────────────────────── */
.au-article__hero {
  margin-bottom: var(--space-8);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.au-article__hero-img {
  /* Show every hero at its own size and shape: never stretched wider than
     the source, never cropped. Images bigger than the column shrink to fit;
     smaller ones sit centred at their true size. */
  width: auto;
  max-width: 100%;     /* never wider than the article column */
  height: auto;
  max-height: 520px;   /* never taller than the hero area */
  margin: 0 auto;
  object-fit: contain;
  display: block;
}
.au-article__hero-caption {
  background: var(--au-surface);
  border-left: 3px solid var(--au-navy);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--au-mid);
  font-style: italic;
}

/* ── ARTICLE PROSE ──────────────────────────────────────────── */
.au-prose {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--au-charcoal);
}
.au-prose > * + * { margin-top: 1.25em; }

.au-prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--au-ink);
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.5em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--au-border);
}
.au-prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--au-ink);
  margin-top: 1.75em;
  margin-bottom: 0.4em;
}
.au-prose h4 {
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--au-ink);
  margin-top: 1.5em;
}
.au-prose a {
  color: var(--au-navy-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(192,39,45,0.3);
  transition: text-decoration-color var(--dur-fast), color var(--dur-fast);
}
.au-prose a:hover {
  color: var(--au-navy-dark);
  text-decoration-color: var(--au-navy-dark);
}
.au-prose strong { font-weight: 700; color: var(--au-ink); }
.au-prose em { font-style: italic; }
.au-prose ul, .au-prose ol {
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.au-prose ul { list-style: disc; }
.au-prose ol { list-style: decimal; }
.au-prose li::marker { color: var(--au-navy); }

.au-prose blockquote {
  border-left: 4px solid var(--au-navy);
  margin: var(--space-8) 0;
  padding: var(--space-4) var(--space-6);
  background: var(--au-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--au-charcoal);
  position: relative;
}
.au-prose blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--au-navy-text);
  opacity: 0.2;
  position: absolute;
  top: -0.25em;
  left: var(--space-3);
  font-family: Georgia, serif;
  line-height: 1;
}
.au-prose blockquote p { margin: 0; }

.au-prose img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}
.au-prose figure { margin-block: var(--space-8); }
.au-prose figcaption {
  font-size: var(--text-sm);
  color: var(--au-muted);
  text-align: center;
  margin-top: var(--space-2);
  font-style: italic;
}
.au-prose code {
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: var(--au-navy-dark);
}
.au-prose pre {
  background: var(--au-ink);
  color: #e5e7eb;
  padding: var(--space-5);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.au-prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.au-prose hr {
  border: none;
  border-top: 2px solid var(--au-border);
  margin-block: var(--space-10);
}
/* WordPress [caption] shortcode compatibility */
.au-prose .wp-caption { max-width: 100%; }
.au-prose .wp-caption-text {
  font-size: var(--text-sm);
  color: var(--au-muted);
  font-style: italic;
  margin-top: var(--space-2);
}

/* ── ARTICLE TAGS ───────────────────────────────────────────── */
.au-article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--au-border);
}
.au-article__tags-label {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--au-ink);
  margin-right: var(--space-1);
}
.au-article__tags-label i { color: var(--au-navy); }

/* ── SOCIAL SHARE ───────────────────────────────────────────── */
.au-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--au-border);
  border-bottom: 1px solid var(--au-border);
}
.au-share__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--au-mid);
  margin-right: var(--space-2);
}
.au-share__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 99px;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--au-white);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  border: none;
  cursor: pointer;
}
.au-share__btn:hover { opacity: 0.88; transform: translateY(-1px); color: var(--au-white); }
.au-share__btn--facebook  { background: #1877f2; }
.au-share__btn--twitter   { background: #000000; }
.au-share__btn--whatsapp  { background: #25d366; }
.au-share__btn--linkedin  { background: #0a66c2; }
.au-share__btn--copy      { background: var(--au-surface); color: var(--au-ink); border: 1px solid var(--au-border); }
.au-share__btn--copy:hover { background: var(--au-ink); color: var(--au-white); transform: translateY(-1px); }
.au-share__btn--copy.copied { background: #16a34a; color: var(--au-white); border-color: #16a34a; }

/* ── AUTHOR BOX ─────────────────────────────────────────────── */
.au-author-box {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-left: 4px solid var(--au-navy);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-block: var(--space-8);
}
.au-author-box__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--au-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--au-white);
  font-size: 1.75rem;
}
.au-author-box__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.au-author-box__bio {
  font-size: var(--text-sm);
  color: var(--au-mid);
  line-height: 1.7;
}

/* ── POST PREV / NEXT ───────────────────────────────────────── */
.au-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-block: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--au-border);
}
.au-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--au-border);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.au-post-nav__item:hover { border-color: var(--au-navy); background: var(--au-surface); }
.au-post-nav__next { text-align: right; }
.au-post-nav__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--au-navy-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.au-post-nav__next .au-post-nav__label { justify-content: flex-end; }
.au-post-nav__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--au-ink);
  line-height: 1.3;
}

/* ── RELATED POSTS ──────────────────────────────────────────── */
.au-related {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 3px solid var(--au-navy);
}

/* ── LIST / ARCHIVE ─────────────────────────────────────────── */
.au-list-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-16);
}

/* Archive header */
.au-archive-header {
  margin-bottom: var(--space-8);
  padding-top: var(--space-4);
}
.au-archive-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.au-archive-header__icon {
  width: 56px;
  height: 56px;
  background: var(--au-navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--au-white);
  font-size: var(--text-xl);
  flex-shrink: 0;
}
.au-archive-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--au-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.au-archive-header__desc {
  color: var(--au-mid);
  margin-top: var(--space-2);
  font-size: var(--text-base);
}
.au-archive-header__count {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--au-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.au-archive-header__rule {
  height: 3px;
  background: linear-gradient(to right, var(--au-navy) 60px, var(--au-border) 60px);
}

/* List body structure */
.au-list-hero { margin-bottom: var(--space-6); }
.au-list-hero .au-card--large .au-card__img { padding-bottom: 45%; }
.au-list-row { margin-bottom: var(--space-6); }
.au-list-stack {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--au-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.au-list-stack .au-card--mini {
  border-bottom: 1px solid var(--au-border);
  border-radius: 0;
  padding: var(--space-4) var(--space-5);
  margin: 0;
  transition: background var(--dur-fast);
}
.au-list-stack .au-card--mini:last-child { border-bottom: none; }
.au-list-stack .au-card--mini:hover { background: var(--au-surface); }

/* Empty state */
.au-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--au-muted);
}
.au-empty__icon {
  font-size: 3rem;
  color: var(--au-border);
  display: block;
  margin-bottom: var(--space-4);
}
.au-empty p { margin-bottom: var(--space-6); }

/* ── PAGINATION ─────────────────────────────────────────────── */
.au-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.au-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--au-navy);
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--au-navy-text);
  transition: all var(--dur-fast);
}
.au-pagination__btn:hover {
  background: var(--au-navy);
  color: var(--au-white);
}
.au-pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.au-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--au-ink);
  border: 1px solid var(--au-border);
  transition: all var(--dur-fast);
}
.au-pagination__page:hover { border-color: var(--au-navy); color: var(--au-navy); }
.au-pagination__page.is-current {
  background: var(--au-navy);
  border-color: var(--au-navy);
  color: var(--au-white);
}
.au-pagination__ellipsis {
  color: var(--au-muted);
  padding-inline: var(--space-1);
}

/* ── TAXONOMY GRID ──────────────────────────────────────────── */
.au-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-16);
}
.au-taxonomy-card {
  display: block;
  border: 2px solid var(--au-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.au-taxonomy-card:hover {
  border-color: var(--au-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192,39,45,0.12);
}
.au-taxonomy-card__inner {
  padding: var(--space-5) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.au-taxonomy-card__name {
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--au-ink);
}
.au-taxonomy-card:hover .au-taxonomy-card__name { color: var(--au-navy); }
.au-taxonomy-card__count {
  background: var(--au-navy);
  color: var(--au-white);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* ── SINGLE POST RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .au-single-layout,
  .au-list-layout {
    grid-template-columns: 1fr 240px;
    gap: var(--space-6);
  }
  .au-article__title { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
  .au-single-layout,
  .au-list-layout {
    grid-template-columns: 1fr;
  }
  .au-sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }
  .au-post-nav { grid-template-columns: 1fr; }
  .au-article__title { font-size: var(--text-2xl); }
  .au-prose { font-size: var(--text-base); }
  .au-archive-header__title { font-size: var(--text-2xl); }
  .au-share { gap: var(--space-1); }
  .au-share__btn span { display: none; }
  .au-share__btn { padding: var(--space-2) var(--space-3); border-radius: 50%; }
  .au-related .au-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .au-taxonomy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .au-related .au-grid--4 { grid-template-columns: 1fr; }
  .au-taxonomy-grid { grid-template-columns: 1fr; }
  .au-author-box { flex-direction: column; }
  .au-archive-header__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PART 3 — Ticker, 404, Skip link, Back-to-top, Print
   ============================================================ */

/* ── SKIP LINK ──────────────────────────────────────────────── */
.au-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--au-navy);
  color: var(--au-white);
  padding: var(--space-2) var(--space-5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 10000;
  text-decoration: none;
  transition: top var(--dur-fast);
}
.au-skip-link:focus { top: 0; }

/* ── BREAKING TICKER ─────────────────────────────────────────── */
.au-ticker {
  background: var(--au-ink);
  color: var(--au-white);
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  position: relative;
  border-top: 2px solid var(--au-navy);
}

/* "Breaking" label pill */
.au-ticker__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--au-navy);
  color: var(--au-white);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 var(--space-4);
  height: 100%;
  white-space: nowrap;
  z-index: 2;
}

/* Pulsing red dot */
.au-ticker__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--au-red);
  box-shadow: 0 0 0 0 rgba(255, 87, 87, 0.7);
  animation: ticker-pulse 1.4s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Scrolling track wrapper — masks overflow */
.au-ticker__track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  /* Fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 3%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 3%,
    black 92%,
    transparent 100%
  );
}

/* The scrolling list — JS sets animation-duration after measuring width */
.au-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.au-ticker__track.is-paused { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 50% because list is doubled */
}

.au-ticker__item {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-6);
  position: relative;
}
/* Separator dot between items */
.au-ticker__item::after {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--au-charcoal);
  font-size: 1.2em;
}
.au-ticker__link {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--dur-fast);
}
.au-ticker__link:hover { color: var(--au-white); }

.au-ticker__cat {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Screen-reader only list — visually hidden */
.au-ticker__sr-list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Pause button */
.au-ticker__pause {
  flex-shrink: 0;
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.au-ticker__pause:hover { color: var(--au-white); background: rgba(255,255,255,0.06); }
.au-ticker__pause[aria-pressed="true"] { color: var(--au-navy-light); }

/* Reduced motion — disable scroll animation */
@media (prefers-reduced-motion: reduce) {
  .au-ticker__track { animation: none; }
  .au-ticker__pulse { animation: none; }
}

/* Mobile: slightly taller label area */
@media (max-width: 480px) {
  .au-ticker { height: 34px; }
  .au-ticker__label { padding: 0 var(--space-3); font-size: 10px; }
  .au-ticker__link  { font-size: var(--text-xs); }
}

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.au-back-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 42px;
  height: 42px;
  background: var(--au-navy);
  color: var(--au-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  box-shadow: 0 4px 16px rgba(192,39,45,0.35);
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-base), transform var(--dur-base), background var(--dur-fast);
  pointer-events: none;
}
.au-back-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.au-back-top[hidden] { display: flex; } /* override hidden so we can animate */
.au-back-top:hover { background: var(--au-navy-dark); }
@media (max-width: 480px) {
  .au-back-top { bottom: var(--space-4); right: var(--space-4); width: 36px; height: 36px; }
}

/* ── 404 PAGE ────────────────────────────────────────────────── */
.au-404-wrap {
  padding-block: var(--space-12) var(--space-16);
}
.au-404 {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.au-404__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.au-404__number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 900;
  color: var(--au-navy-text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.au-404__globe {
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--au-ink);
  line-height: 1;
  animation: globe-spin 12s linear infinite;
}
@keyframes globe-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .au-404__globe { animation: none; }
}
.au-404__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--au-ink);
  margin-bottom: var(--space-4);
}
.au-404__desc {
  color: var(--au-mid);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-inline: auto;
}
.au-404__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.au-404__search {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
}
.au-btn--red {
  background: var(--au-navy);
  color: var(--au-white);
  border: 2px solid var(--au-navy);
}
.au-btn--red:hover {
  background: var(--au-navy-dark);
  border-color: var(--au-navy-dark);
  color: var(--au-white);
}
.au-404__recent { text-align: left; }
.au-404__recent-title {
  font-family: var(--font-label);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--au-navy);
  color: var(--au-ink);
}
@media (max-width: 480px) {
  .au-404__actions { flex-direction: column; }
  .au-404__search  { max-width: 100%; }
  .au-404__recent .au-grid--4 { grid-template-columns: 1fr; }
}

/* ── PRINT STYLES ────────────────────────────────────────────── */
@media print {
  .au-topbar,
  .au-ticker,
  .au-nav,
  .au-sidebar,
  .au-share,
  .au-post-nav,
  .au-related,
  .au-footer,
  .au-back-top,
  .au-progress { display: none !important; }

  .au-single-layout { grid-template-columns: 1fr; }
  .au-article__title { font-size: 2rem; }
  .au-prose { font-size: 11pt; line-height: 1.6; }
  .au-prose a { color: var(--au-ink); text-decoration: none; }
  .au-prose a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: var(--au-mid); }
  .au-header { border-bottom: 2px solid var(--au-ink); padding-bottom: 1rem; margin-bottom: 1rem; }
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────────── */
.au-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--au-ink);
  color: rgba(255,255,255,0.9);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  animation: consent-slide-up var(--dur-slow) var(--ease);
}
.au-consent[hidden] { display: none; }
@keyframes consent-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.au-consent__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.au-consent__text {
  flex: 1;
  min-width: 260px;
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}
.au-consent__link {
  color: var(--au-navy-light);
  text-decoration: underline;
  white-space: nowrap;
}
.au-consent__link:hover { color: var(--au-white); }
.au-consent__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.au-consent__btn {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.au-consent__btn--accept {
  background: var(--au-navy);
  color: var(--au-white);
  border: 2px solid var(--au-navy);
}
.au-consent__btn--accept:hover {
  background: var(--au-navy-light);
  border-color: var(--au-navy-light);
  transform: translateY(-1px);
}
.au-consent__btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 2px solid rgba(255,255,255,0.25);
}
.au-consent__btn--decline:hover {
  color: var(--au-white);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 600px) {
  .au-consent__inner { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-4); }
  .au-consent__actions { justify-content: stretch; }
  .au-consent__btn { flex: 1; text-align: center; }
}

/* ── STATIC PAGES (About, Privacy, Contact) ──────────────────── */
.au-page-wrap { padding-bottom: var(--space-16); }
.au-page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-10);
  align-items: start;
}
.au-page__header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 3px solid var(--au-navy);
}
.au-page__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  line-height: 1.1;
  color: var(--au-ink);
  letter-spacing: -0.02em;
}
.au-page__subtitle {
  font-size: var(--text-lg);
  color: var(--au-mid);
  margin-top: var(--space-3);
}
.au-page__meta {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--au-muted);
  margin-top: var(--space-3);
}
.au-page__body { font-size: var(--text-lg); }
@media (max-width: 768px) {
  .au-page-layout { grid-template-columns: 1fr; }
  .au-page__title { font-size: var(--text-3xl); }
  .au-page__body { font-size: var(--text-base); }
}

/* ── AUTHOR PROFILE PAGE ──────────────────────────────────────── */
.au-author-wrap { padding-bottom: var(--space-16); }
.au-author-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-10);
  align-items: start;
}
.au-author-profile {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--au-surface, #f7f9fb);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--au-navy);
  margin-bottom: var(--space-8);
}
.au-author-profile__avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--au-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--au-white);
  font-size: 3rem;
}
.au-author-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.au-author-profile__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--au-ink);
  line-height: 1.1;
}
.au-author-profile__role {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--au-navy-text);
  margin-top: var(--space-1);
}
.au-author-profile__bio {
  margin-top: var(--space-3);
  color: var(--au-mid);
  line-height: 1.6;
}
.au-author-profile__links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.au-author-profile__links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--au-navy);
  color: var(--au-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}
.au-author-profile__links a:hover { background: var(--au-navy-dark); }
.au-author-articles-head { margin-bottom: var(--space-5); }
/* Byline author link in article meta */
.au-article__author-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.au-article__author-link:hover { color: var(--au-navy); border-bottom-color: var(--au-navy); }
@media (max-width: 768px) {
  .au-author-layout { grid-template-columns: 1fr; }
  .au-author-profile { flex-direction: column; align-items: center; text-align: center; }
  .au-author-profile__links { justify-content: center; }
}

/* ── SEARCH PAGE (Pagefind) ───────────────────────────────────── */
.au-search-page { padding-block: var(--space-8) var(--space-16); min-height: 60vh; }
.au-search-results { margin-top: var(--space-6); }
/* Tune Pagefind UI to brand colors */
:root {
  --pagefind-ui-primary: var(--au-navy);
  --pagefind-ui-text: var(--au-ink);
  --pagefind-ui-background: var(--au-white);
  --pagefind-ui-border: var(--au-border);
  --pagefind-ui-tag: var(--au-surface, #f7f9fb);
  --pagefind-ui-border-radius: var(--radius-sm);
  --pagefind-ui-font: var(--font-body);
}
.pagefind-ui__search-input { font-size: var(--text-lg); }
.pagefind-ui__result-title a { color: var(--au-navy); }

/* ── RESPONSIVE CARD IMAGES (img instead of background-image) ──── */
.au-card__img--responsive {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  padding-bottom: 0;
}
.au-card__img--responsive .au-card__img-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.au-card:hover .au-card__img-el { transform: scale(1.05); }

/* ── ARTICLE TABLES (responsive) ──────────────────────────────── */
.au-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-6);
  font-size: var(--text-base);
}
.au-prose th,
.au-prose td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--au-border);
  text-align: left;
  vertical-align: top;
}
.au-prose thead th {
  background: var(--au-navy);
  color: var(--au-white);
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
.au-prose tbody tr:nth-child(even) { background: var(--au-surface, #f7f9fb); }
/* Wrapper lets wide tables scroll horizontally instead of breaking layout */
.au-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-6);
}
.au-table-wrap table { margin-block: 0; }
@media (max-width: 480px) {
  .au-prose th,
  .au-prose td { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
}

/* ── SEARCH PANEL — flexible on mobile (was fixed 280px) ──────── */
@media (max-width: 768px) {
  .au-search-panel { width: 100%; max-width: 100%; }
}

/* ── SMALL HERO IMAGES ──
   A thumbnail smaller than the hero area is shown at its own size and
   centred, rather than stretched full width and blurry. No panel or
   background - the leftover space is just page, so it reads as normal
   whitespace instead of an empty box. */
.au-article__hero--small {
  text-align: center;
  background: none;
  padding: 0;
}
.au-article__hero--small .au-article__hero-img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ══ ADVERT PANE (between topbar and nav) ═══════════════════════
   Two equal halves side by side. If there is more than one pair,
   the track slides between pairs. Stacks on small screens so the
   creatives stay legible. */
.au-ads {
  background: var(--au-surface);
  border-bottom: 1px solid var(--au-border);
  padding: var(--space-3) 0;
}
.au-ads__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--au-muted);
  text-align: center;
  margin-bottom: var(--space-2);
}
.au-ads__viewport { overflow: hidden; }
.au-ads__track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}
.au-ads__cell {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 0 var(--space-2);
}
.au-ads__item {
  display: block;
  background: var(--au-white);
  border: 1px solid var(--au-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 60px;
}
a.au-ads__item:hover { border-color: var(--au-navy); }
.au-ads__item img {
  width: 100%;
  height: auto;
  display: block;
}
.au-ads__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-2);
}
.au-ads__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--au-border);
  border: 0; padding: 0; cursor: pointer;
}
.au-ads__dot[aria-current="true"] { background: var(--au-navy); }
@media (max-width: 640px) {
  .au-ads__cell { flex: 0 0 100%; }
}

/* ══ FOOTER: CONTACT DETAILS ════════════════════════════════════ */
.au-footer__contact {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.au-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.au-footer__contact-item i {
  width: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  opacity: 0.75;
}
.au-footer__contact-item a { text-decoration: none; }
.au-footer__contact-item a:hover { text-decoration: underline; }

/* ══ FOOTER: ADVERTS ════════════════════════════════════════════ */
.au-footer__ads {
  display: grid;
  gap: var(--space-3);
}
.au-footer__ad {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.au-footer__ad img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══ NAV HOME BUTTON (next to the logo) ═════════════════════════ */
.au-nav__home {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: center;
  margin-left: var(--space-4);
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--au-white);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast);
}
.au-nav__home:hover,
.au-nav__home.is-active {
  background: rgba(255, 255, 255, 0.24);
  color: var(--au-white);
}
/* On narrow screens keep the icon but drop the word, so the logo and
   hamburger still have room. */
@media (max-width: 900px) {
  .au-nav__home { margin-left: var(--space-2); padding: 6px 9px; }
  .au-nav__home-text { display: none; }
}
