/* ===== Blog pages — loaded after ../assets/css/style.css ===== */

/* ===== Header overrides (same as the home page) ===== */
html,
body {
  scroll-padding-top: 90px;
}

.wais-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px max(24px, calc((100% - 1086px) / 2));
  border-radius: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgb(255 255 255);
  /* no backdrop-filter: Safari clips the Past Edition dropdown to the nav box */
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.wais-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin: 0;
}

.wais-links>li>a,
.wais-dropdown:hover>a,
.wais-links>li>a:hover {
  color: #111;
  text-decoration: none;
}

.wais-links>li>a[aria-current="page"]::after {
  width: 100%;
}

/* ===== Past Edition dropdown ===== */
.wais-dropdown {
  position: relative;
}

.wais-dropdown>a {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wais-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 1200;
}

.wais-dropdown:hover .wais-submenu,
.wais-dropdown:focus-within .wais-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wais-submenu li {
  display: block;
  margin: 0;
  list-style: none;
}

.wais-submenu li a {
  display: block;
  padding: 11px 18px;
  white-space: nowrap;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.wais-submenu li a:hover {
  background: linear-gradient(95deg, #0022f6, #3026b6 45%, #c53d89);
}

/* ===== Hamburger (hidden on desktop) ===== */
.wais-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  margin-left: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}

.wais-burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}

.wais-nav.open .wais-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.wais-nav.open .wais-burger span:nth-child(2) {
  opacity: 0;
}

.wais-nav.open .wais-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Mobile nav (<= 900px) ===== */
@media (max-width: 900px) {
  .wais-nav {
    flex-wrap: wrap;
    padding: 10px 16px 10px;
    margin-bottom: 0;
    align-items: center;
  }

  .wais-burger {
    display: flex;
  }

  .wais-nav-cta {
    margin-left: auto;
  }

  .wais-nav .wais-links {
    order: 5;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .wais-nav.open .wais-links {
    max-height: 85vh;
    overflow-y: auto;
    padding-top: 6px;
  }

  .wais-nav .wais-links>li {
    width: 100%;
  }

  .wais-nav .wais-links>li>a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid #eee;
  }

  .wais-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    background: transparent;
    padding: 0 0 6px 14px;
  }

  .wais-submenu li a {
    color: #333;
    padding: 9px 0;
  }

  .wais-submenu li a:hover {
    background: transparent;
  }
}

@media (max-width: 480px) {
  .wais-nav-cta {
    font-size: 12px;
    padding: 4px 4px 4px 12px;
    gap: 8px;
  }

  .wais-logo img {
    max-height: 34px;
  }
}

/* ===== Event banner (top of every blog page) =====
   Top padding keeps the fixed nav from covering the banner. */
.blog-banner {
  padding-top: 62px;
  background: #0b0a24;
}

@media (max-width: 900px) {
  .blog-banner {
    padding-top: 84px;
  }
}

.blog-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* banner already clears the nav, so the hero is just a title band */
.blog-banner+.blog-hero {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ===== Blog hero ===== */
.blog-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 16px 72px;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(48, 38, 182, .10), transparent 70%),
    #fff;
  border-bottom: 1px solid #ececf3;
}

/* AI waves: two tiled SVG line layers drifting in opposite directions.
   Each tile is 1200px wide and loops seamlessly, so the animation shifts exactly one tile. */
.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 1200px 160px;
  background-position: 0 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}

.blog-hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='160' viewBox='0 0 1200 160'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%230022f6'/%3E%3Cstop offset='.5' stop-color='%233026b6'/%3E%3Cstop offset='1' stop-color='%230022f6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-linecap='round'%3E%3Cpath stroke-width='2' stroke-opacity='.35' d='M0 90 Q150 40 300 90 T600 90 T900 90 T1200 90'/%3E%3Cpath stroke-width='1.5' stroke-opacity='.25' d='M0 105 Q150 65 300 105 T600 105 T900 105 T1200 105'/%3E%3Cpath stroke-width='1' stroke-opacity='.18' d='M0 120 Q150 90 300 120 T600 120 T900 120 T1200 120'/%3E%3C/g%3E%3C/svg%3E");
  animation: blog-wave-left 22s linear infinite;
}

.blog-hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='160' viewBox='0 0 1200 160'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c53d89'/%3E%3Cstop offset='.5' stop-color='%233026b6'/%3E%3Cstop offset='1' stop-color='%23c53d89'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23p)' stroke-linecap='round'%3E%3Cpath stroke-width='2' stroke-opacity='.3' d='M0 110 Q100 70 200 110 T400 110 T600 110 T800 110 T1000 110 T1200 110'/%3E%3Cpath stroke-width='1' stroke-opacity='.2' d='M0 130 Q100 100 200 130 T400 130 T600 130 T800 130 T1000 130 T1200 130'/%3E%3C/g%3E%3C/svg%3E");
  animation: blog-wave-right 30s linear infinite;
}

@keyframes blog-wave-left {
  to {
    background-position: -1200px 100%;
  }
}

@keyframes blog-wave-right {
  to {
    background-position: 1200px 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .blog-hero::before,
  .blog-hero::after {
    animation: none;
  }
}

.blog-hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero h1 {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.blog-hero-sub {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--gy);
}

/* ===== Article ===== */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 16px 88px;
  color: #2a2d33;
}

.blog-article p {
  margin: 0 0 1.25em;
  font-size: 18px;
  line-height: 1.8;
}

.blog-article>p:first-child {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
}

.blog-article h2 {
  position: relative;
  margin: 2.2em 0 .8em;
  padding-top: 18px;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.blog-article h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
}

.blog-article h3 {
  margin: 1.9em 0 .6em;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.blog-h3-num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-article ul {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 22px 26px;
  border-radius: 14px;
  background: #f5f5fb;
}

.blog-article li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

/* list of full sentences — lighter weight reads better */
.blog-article .blog-list-long li {
  font-weight: 500;
  line-height: 1.6;
}

.blog-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
}

/* .blog-callout: a highlighted paragraph (e.g. one quoting a speaker) */
.blog-article blockquote,
.blog-article .blog-callout {
  position: relative;
  margin: 2em 0;
  padding: 30px 32px 26px 36px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 34, 246, .06), rgba(197, 61, 137, .08));
  overflow: hidden;
}

.blog-article .blog-callout {
  color: var(--ink);
}

/* several callouts in a row — tighter stack */
.blog-voices {
  display: grid;
  gap: 14px;
  margin: 1.6em 0 2em;
}

.blog-article .blog-voices .blog-callout {
  margin: 0;
}

.blog-article blockquote::before,
.blog-article .blog-callout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--grad);
}

.blog-article blockquote p {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink);
}

/* quote with no attribution line */
.blog-article blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article blockquote footer {
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
}

.blog-article a {
  color: var(--blue);
  font-weight: 600;
  word-break: break-word;
}

.blog-article a:hover {
  color: var(--mag);
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.blog-article .blog-back {
  color: var(--ink);
}

/* ===== Blog listing ===== */
.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px 88px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ececf3;
  box-shadow: 0 10px 30px rgba(17, 17, 17, .06);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(48, 38, 182, .16);
}

.blog-card-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 25%, rgba(0, 34, 246, .7), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(197, 61, 137, .7), transparent 55%),
    #0b0a24;
  color: #fff;
}

.blog-card-visual--alt {
  background:
    radial-gradient(circle at 85% 20%, rgba(197, 61, 137, .7), transparent 55%),
    radial-gradient(circle at 10% 95%, rgba(48, 38, 182, .8), transparent 55%),
    #0b0a24;
}

.blog-card-visual--alt2 {
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 34, 246, .75), transparent 55%),
    radial-gradient(circle at 20% 100%, rgba(197, 61, 137, .6), transparent 50%),
    #0b0a24;
}

.blog-card-visual--alt3 {
  background:
    radial-gradient(circle at 80% 80%, rgba(0, 34, 246, .7), transparent 55%),
    radial-gradient(circle at 15% 15%, rgba(197, 61, 137, .65), transparent 50%),
    #0b0a24;
}

.blog-card-visual--alt4 {
  background:
    radial-gradient(circle at 50% 100%, rgba(197, 61, 137, .7), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(0, 34, 246, .65), transparent 50%),
    #0b0a24;
}

.blog-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 18px 18px;
}

.blog-card-visual span {
  position: relative;
  z-index: 1;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* post banner as the card image (1600x500 with the title baked in), shown whole */
.blog-card-img {
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: #0b0a24;
}

.blog-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.blog-card-body h2 {
  margin-bottom: 10px;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.blog-card-body p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gy);
}

.blog-card-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 700px) {
  .blog-hero {
    padding: 120px 16px 52px;
  }

  .blog-banner+.blog-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .blog-article {
    padding-top: 40px;
  }

  .blog-article p {
    font-size: 17px;
  }

  .blog-article>p:first-child {
    font-size: 18px;
  }

  .blog-article blockquote,
  .blog-article .blog-callout {
    padding: 24px 20px 20px 26px;
  }

  .blog-article blockquote p {
    font-size: 17px;
  }

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