/*
 * News & Updates and the category archives (components/site/ArchiveView.tsx). Editorial and quiet: the blue banner
 * with the site's illustration (animated: public/zz/banner.css), then white space, type and pictures doing the work —
 * no badges, tinted tags or icon boxes. Site fonts and colours: Poppins headings, Roboto text, the logo's blue #006DB8 (buttons in its gradient).
 * !important where the Alone theme styles h1/h2/h3/a/ul/input/button globally.
 */
.zza-hero, .zza {
  --b: #006db8; --b-d: #005592; --navy: #006db8; --ink: #101828; --t: #344054; --m: #667085; --line: #e4e7ec; --soft: #f5f7fa;
  font-family: "Roboto", system-ui, sans-serif; color: var(--t);
}
.zza-hero, .zza-hero *, .zza-hero *::before, .zza-hero *::after, .zza, .zza *, .zza *::before, .zza *::after { box-sizing: border-box; }
.zza-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- banner ---------- */
.zza-hero { position: relative; display: flex; align-items: center; min-height: 440px; padding: 64px 24px 72px; overflow: hidden; background: var(--b); }
.zza-hero__art { top: 0; right: 0; height: 100%; }
.zza-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; }
.zza-hero__inner > * { max-width: 600px; }
.zza-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 20px; font: 400 14px/1.4 "Roboto", sans-serif; color: rgb(255 255 255 / 0.72); }
.zza-crumbs a { color: rgb(255 255 255 / 0.8) !important; text-decoration: none !important; transition: color 0.2s ease; }
.zza-crumbs a:hover, .zza-crumbs a:focus-visible { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.zza-crumbs [aria-current] { color: #fff; }
.zza-crumbs > span[aria-hidden] { color: rgb(255 255 255 / 0.45); }
.zza-hero .zza-title {
  margin: 0 !important; font: 600 54px/1.08 "Poppins", sans-serif !important; letter-spacing: -0.025em; color: #fff !important;
  text-transform: none !important; text-wrap: balance; overflow-wrap: anywhere;
}
.zza-hero .zza-intro { margin: 18px 0 0 !important; max-width: 540px; font: 400 18px/1.6 "Roboto", sans-serif; color: rgb(255 255 255 / 0.86); text-wrap: pretty; }

.zza-search {
  display: flex; align-items: center; max-width: 500px; margin-top: 32px; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgb(0 20 60 / 0.12), 0 16px 36px -16px rgb(0 20 60 / 0.5); transition: box-shadow 0.2s ease;
}
.zza-search:focus-within { box-shadow: 0 0 0 4px rgb(255 255 255 / 0.35), 0 16px 36px -16px rgb(0 20 60 / 0.5); }
.zza-search__icon { display: grid; place-items: center; padding: 0 2px 0 14px; color: var(--m); }
.zza-search input[type="search"] {
  flex: 1; min-width: 0; height: 46px !important; margin: 0 !important; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: none; font: 400 16px/1 "Roboto", sans-serif !important; color: var(--ink) !important;
}
.zza-search input[type="search"]::placeholder { color: #98a2b3; opacity: 1; }
.zza-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.zza-search button[type="submit"] {
  flex: none; height: 46px !important; margin: 0 !important; padding: 0 26px !important; border: 0 !important; border-radius: 999px !important;
  background: var(--navy) !important; color: #fff !important; font: 500 15px/1 "Poppins", sans-serif !important; letter-spacing: 0 !important;
  text-transform: none !important; cursor: pointer; box-shadow: none !important; transition: background 0.2s ease;
}
.zza-search button[type="submit"]:hover, .zza-search button[type="submit"]:focus-visible { background: var(--b-d) !important; }
.zza-search button[type="submit"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- body ---------- */
.zza { display: block; padding: 56px 24px 96px; background: #fff; }
.zza__wrap { max-width: 1200px; margin: 0 auto; }
.zza a { text-decoration: none !important; }

/* topics */
.zza-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.zza .zza-head__label { margin: 0 !important; font: 500 13px/1.4 "Poppins", sans-serif !important; letter-spacing: 0.06em; text-transform: uppercase !important; color: var(--m) !important; }
.zza .zza-head__count { margin: 0 !important; font: 400 14px/1.4 "Roboto", sans-serif; color: var(--m); font-variant-numeric: tabular-nums; }
/* position: the screen-reader labels (.zza-sr, absolute) stay inside the strip, which scrolls sideways on phones */
.zza .zza-topics ul { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.zza .zza-topics li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.zza .zza-topics li::before { display: none !important; }
.zza .zza-topics a {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 500 14px/1.2 "Poppins", sans-serif; color: var(--ink) !important; white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.zza-topics__n { font: 400 13px/1 "Roboto", sans-serif; color: #98a2b3; font-variant-numeric: tabular-nums; transition: color 0.2s ease; }
.zza .zza-topics a:hover { border-color: #c4cdd9; background: var(--soft); }
.zza .zza-topics a[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff !important; }
.zza .zza-topics a[aria-current] .zza-topics__n { color: rgb(255 255 255 / 0.6); }
.zza .zza-topics a:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; }

/* pictures: post images carry their title in them, so they keep their 3:2 shape */
.zza-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: var(--soft); isolation: isolate; }
.zza-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.zza-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(16 24 40 / 0.06); pointer-events: none; }
.zza-media__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e8f1fa, #f4f8ec); }

/* category and date */
.zza .zza-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 !important; font: 400 14px/1.4 "Roboto", sans-serif; color: var(--m); }
.zza-meta__cat { font: 500 14px/1.4 "Poppins", sans-serif; color: var(--b); }
.zza-meta__cat + time::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 12px; background: #d0d5dd; vertical-align: -1px; }

/* the whole post is the link (its title's link stretched over it) */
.zza-feature, .zza .zza-card { position: relative; }
.zza .zza-feature__title a::after, .zza .zza-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.zza .zza-feature__title a:focus-visible, .zza .zza-card__title a:focus-visible { outline: none; }
.zza .zza-feature__title a:focus-visible::after { outline: 2px solid var(--b); outline-offset: 6px; }
.zza-feature:hover .zza-media img, .zza-card:hover .zza-media img { transform: scale(1.035); }

/* newest post */
.zza-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 56px; margin-top: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.zza-feature .zza-media { border-radius: 20px; }
.zza-feature__body { display: flex; flex-direction: column; align-items: flex-start; }
.zza .zza-feature__title {
  margin: 16px 0 0 !important; font: 600 38px/1.15 "Poppins", sans-serif !important; letter-spacing: -0.02em; color: var(--navy) !important;
  text-transform: none !important; text-wrap: balance;
}
.zza .zza-feature__title a { color: inherit !important; }
.zza .zza-feature__text {
  margin: 18px 0 0 !important; font-size: 17px; line-height: 1.65; color: var(--t);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.zza-feature__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
  font: 500 15px/1.2 "Poppins", sans-serif; color: var(--navy); transition: color 0.2s ease, gap 0.25s ease;
}
.zza-feature:hover .zza-feature__more { gap: 12px; color: var(--b); }

/* post grid: each post its own card — picture across the top, text below */
.zza .zza-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin: 48px 0 0 !important; padding: 0 !important; list-style: none !important; }
.zza .zza-card {
  display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; list-style: none !important; overflow: hidden;
  border: 1px solid rgb(16 24 40 / 0.06); border-radius: 20px; background: #fff;
  /* layered: a crisp edge, a close soft shadow and a wide faint one, so each card sits clearly on the page */
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 4px 10px -2px rgb(16 24 40 / 0.06), 0 16px 32px -12px rgb(16 24 40 / 0.14);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.zza .zza-card::before { display: none !important; }
.zza .zza-card:hover {
  border-color: rgb(16 24 40 / 0.08);
  box-shadow: 0 2px 4px rgb(16 24 40 / 0.05), 0 12px 24px -6px rgb(16 24 40 / 0.10), 0 32px 56px -20px rgb(0 85 146 / 0.28);
  transform: translateY(-4px);
}
.zza .zza-card:has(a:focus-visible) { outline: 2px solid var(--b); outline-offset: 3px; }
.zza-card .zza-media { border-radius: 0; }
.zza-card .zza-media::after { display: none; }
.zza-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.zza .zza-card__title {
  margin: 10px 0 0 !important; font: 600 20px/1.35 "Poppins", sans-serif !important; letter-spacing: -0.01em; color: var(--navy) !important; text-transform: none !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zza .zza-card__title a {
  color: inherit !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s ease, color 0.2s ease;
}
.zza .zza-card:hover .zza-card__title a { background-size: 100% 1.5px; color: var(--b-d) !important; }
.zza .zza-card__text {
  margin: 10px 0 0 !important; font-size: 15.5px; line-height: 1.6; color: var(--m);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* gentle reveal as posts scroll into view, where the browser can tie it to scrolling */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .zza-card { animation: zza-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes zza-reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* ---------- empty topic ---------- */
.zza-empty { max-width: 520px; margin: 56px auto 0; padding: 56px 24px; border-top: 1px solid var(--line); text-align: center; }
.zza .zza-empty h2 { margin: 0 0 8px !important; font: 600 22px/1.3 "Poppins", sans-serif !important; color: var(--navy) !important; text-transform: none !important; }
.zza .zza-empty p { margin: 0 0 20px !important; color: var(--m); line-height: 1.6; }
.zza .zza-empty a { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1 "Poppins", sans-serif; color: var(--b) !important; }
.zza .zza-empty a:hover, .zza .zza-empty a:focus-visible { color: var(--b-d) !important; }

/* ---------- pages ---------- */
.zza-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.zza .zza-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.zza .zza-pager li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.zza .zza-pager li::before { display: none !important; }
.zza .zza-pager li a, .zza-pager__gap {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px;
  font: 500 15px/1 "Poppins", sans-serif; color: var(--t) !important; font-variant-numeric: tabular-nums;
}
.zza .zza-pager li a { transition: background 0.2s ease, color 0.2s ease; }
.zza .zza-pager li a:hover { background: var(--soft); color: var(--navy) !important; }
.zza .zza-pager li a[aria-current] { background: var(--navy); color: #fff !important; }
.zza-pager__gap { color: var(--m) !important; }
.zza .zza-pager__step {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px;
  font: 500 15px/1 "Poppins", sans-serif; color: var(--navy) !important; transition: color 0.2s ease, gap 0.25s ease;
}
.zza a.zza-pager__step:hover { color: var(--b) !important; gap: 12px; }
.zza .zza-pager__step[aria-disabled] { color: #c0c6d0 !important; }
.zza .zza-pager a:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; border-radius: 12px; }

/* ---------- donate ---------- */
.zza-cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 96px; padding: 56px; overflow: hidden;
  border-radius: 28px; background: radial-gradient(120% 140% at 100% 0%, #0b7ac4 0%, #006db8 45%, #005592 100%); color: #fff;
}
.zza-cta__text { max-width: 580px; }
.zza .zza-cta h2 { margin: 0 !important; font: 600 34px/1.15 "Poppins", sans-serif !important; letter-spacing: -0.02em; color: #fff !important; text-transform: none !important; }
.zza .zza-cta p { margin: 14px 0 0 !important; font-size: 17px; line-height: 1.6; color: rgb(255 255 255 / 0.78); }
.zza-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; flex: none; }
.zza .zza-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 54px; padding: 0 32px; border-radius: 999px;
  background: #fff; color: var(--navy) !important; font: 600 16px/1 "Poppins", sans-serif; white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
/* green with navy text: 6.9:1 */
.zza .zza-cta__btn:hover, .zza .zza-cta__btn:focus-visible { background: #8bc34a; transform: translateY(-1px); }
.zza .zza-cta__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.zza .zza-cta__link { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1.2 "Poppins", sans-serif; color: rgb(255 255 255 / 0.85) !important; transition: color 0.2s ease, gap 0.25s ease; }
.zza .zza-cta__link:hover, .zza .zza-cta__link:focus-visible { color: #fff !important; gap: 10px; }
.zza .zza-cta__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .zza-hero__inner > * { max-width: 460px; }
  .zza-hero .zza-title { font-size: 46px !important; }
  .zza-feature { gap: 40px; }
  .zza .zza-feature__title { font-size: 32px !important; }
}
@media (max-width: 999px) {
  .zza-hero { min-height: 0; padding: 56px 24px 64px; }
  .zza-hero__art { display: none; }
  .zza-hero__inner > * { max-width: 620px; }
  .zza .zza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .zza-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .zza .zza-feature__title { margin-top: 12px !important; }
  .zza-cta { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px; }
  .zza-cta__actions { flex-direction: row; gap: 24px; }
}
@media (max-width: 767px) {
  .zza-hero { padding: 40px 16px 48px; }
  .zza-crumbs { margin-bottom: 14px; font-size: 13px; }
  .zza-hero .zza-title { font-size: 34px !important; line-height: 1.12 !important; }
  .zza-hero .zza-intro { margin-top: 12px !important; font-size: 16px; }
  .zza-search { margin-top: 24px; }
  .zza-search button[type="submit"] { padding: 0 18px !important; }
  .zza { padding: 36px 16px 72px; }
  .zza-head { margin-bottom: 12px; }
  /* topics scroll sideways on phones, edge to edge */
  .zza .zza-topics ul {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px !important; padding: 0 16px 4px !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .zza .zza-topics ul::-webkit-scrollbar { display: none; }
  .zza .zza-topics li { flex: none; }
  .zza-feature { margin-top: 32px; padding-bottom: 40px; gap: 20px; }
  .zza .zza-feature__title { font-size: 25px !important; line-height: 1.22 !important; }
  .zza .zza-feature__text { margin-top: 12px !important; font-size: 16px; -webkit-line-clamp: 3; }
  .zza-feature__more { margin-top: 20px; }
  .zza .zza-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px !important; }
  .zza-card__body { padding: 20px 20px 22px; }
  .zza-pager { margin-top: 56px; gap: 8px; }
  .zza-pager__step span { display: none; }
  .zza .zza-pager__step { justify-content: center; width: 44px; padding: 0; }
  .zza .zza-pager li a, .zza-pager__gap { min-width: 38px; height: 40px; padding: 0 6px; }
  .zza-cta { margin-top: 72px; padding: 32px 24px; border-radius: 22px; }
  .zza .zza-cta h2 { font-size: 26px !important; }
  .zza .zza-cta p { font-size: 16px; }
  .zza-cta__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 16px; }
  .zza .zza-cta__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .zza *, .zza-hero * { transition: none !important; }
  .zza-feature:hover .zza-media img, .zza-card:hover .zza-media img { transform: none; }
  .zza .zza-card:hover { transform: none; }
}
