/* ==========================================================================
   ALPHA ENGLISH — its own brand, separate from the Coding Phantom look.
   Linked only by /apps/alpha-english/. Self-contained: no other sheet needed.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-regular.woff?v=773d22bf") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-medium.woff?v=076d566a") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-bold.woff?v=2c73d69f") format("woff");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand, sampled from the logo */
  --ae-ink:        #141A2E;
  --ae-yellow:     #F2D649;

  /* Page */
  --ae-cream:      #FFF8E7;
  --ae-paper:      #FFFFFF;
  --ae-yellow-soft:#FCEFB8;
  --ae-text:       #141A2E;
  --ae-text-soft:  #4E546B;
  --ae-line:       #EADFC2;

  /* Playful accents, matched to the printables */
  --ae-orange: #EC7A2D;
  --ae-blue:   #4A8FE0;
  --ae-green:  #39A64A;
  --ae-red:    #E24B4B;
  --ae-purple: #8A57D8;

  --ae-orange-soft: #FDE6D3;
  --ae-blue-soft:   #DCEAFB;
  --ae-green-soft:  #DDF2DF;
  --ae-red-soft:    #FBDDDD;
  --ae-purple-soft: #EADFF9;

  --ae-radius:    22px;
  --ae-radius-sm: 14px;
  --ae-chunky:    4px 5px 0 var(--ae-ink);
  --ae-wrap:      1120px;
  --ae-font: "Poppins", ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ae {
  margin: 0;
  background: var(--ae-cream);
  color: var(--ae-text);
  font-family: var(--ae-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:where(.ae) img, :where(.ae) svg { display: block; max-width: 100%; }
:where(.ae) :is(h1, h2, h3, p, figure) { margin: 0; }
:where(.ae) a { color: inherit; }
.ae em { font-style: normal; font-weight: 700; color: var(--ae-orange); }

.ae-wrap { max-width: var(--ae-wrap); margin: 0 auto; padding: 0 24px; }
.ae-center { text-align: center; }

/* --- Type --- */

.ae-h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.ae-lede {
  font-size: 18px;
  color: var(--ae-text-soft);
  max-width: 720px;
  margin-bottom: 34px;
}
.ae-lede a { color: var(--ae-ink); font-weight: 700; text-decoration-color: var(--ae-yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ae-center.ae-lede { margin-left: auto; margin-right: auto; }

.ae-prose { max-width: 820px; }
.ae-prose p { margin-bottom: 16px; }
.ae-prose strong { font-weight: 800; }
.ae-aside { max-width: 820px; color: var(--ae-text-soft); margin-top: 26px; }
.ae-aside strong { color: var(--ae-text); }

.ae-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px 5px;
  border-radius: 999px;
  border: 2px solid var(--ae-ink);
  box-shadow: 2px 3px 0 var(--ae-ink);
  margin-bottom: 16px;
  color: #fff;
}
.ae-pill--blue   { background: var(--ae-blue); }
.ae-pill--orange { background: var(--ae-orange); }
.ae-pill--green  { background: var(--ae-green); }
.ae-pill--ink    { background: var(--ae-ink); color: var(--ae-yellow); box-shadow: none; }

/* --- Buttons --- */

.ae-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ae-actions--center { justify-content: center; margin-top: 36px; }

.ae-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--ae-ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--ae-chunky);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ae-btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 var(--ae-ink); }
.ae-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ae-ink); }
.ae-btn--ink    { background: var(--ae-ink); color: var(--ae-yellow) !important; }
.ae-btn--white  { background: var(--ae-paper); color: var(--ae-ink) !important; }
.ae-btn--yellow { background: var(--ae-yellow); color: var(--ae-ink) !important; box-shadow: 4px 5px 0 #000; }

.ae-badge { display: block; }
.ae-badge img { height: 52px; width: auto; }

/* ==========================================================================
   SITE HEADER + FOOTER stay Coding Phantom (dark, from style.css).
   ========================================================================== */

/* The header is the yellow Alpha English bar on every page (layout.css);
   only the footer keeps the dark background here. */
body.ae .site-footer { background: var(--cp-bg); }
/* Keep the site menus above the sticky Alpha English bar. */
body.ae .site-header { position: relative; z-index: 60; }
body.ae .site-footer { border-top: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */

.ae-hero {
  position: relative;
  background: var(--ae-yellow);
  padding: 30px 0 90px;
  overflow: hidden;
}
/* Soft polka dots, like the sunburst on the printables but quieter. */
.ae-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 26, 46, 0.07) 2px, transparent 2.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.ae-hero__inner {
  position: relative;
  max-width: var(--ae-wrap);
  margin: 0 auto;
  padding: 26px 24px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.ae-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3A3F55;
  margin-bottom: 14px;
}
.ae-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.ae-hero__lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 30px;
}
.ae-hero__note { font-size: 14px; color: #3A3F55; margin-top: 16px; }

/* The Alpha English logo, built like the square brand mark. */
.ae-hero__logo { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.ae-logo {
  aspect-ratio: 1;
  background: var(--ae-ink);
  border-radius: 48px;
  box-shadow: 10px 12px 0 rgba(20, 26, 46, 0.22);
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
  padding: 16% 12% 14%;
}
.ae-logo svg { width: 100%; height: auto; }
.ae-logo__name {
  color: var(--ae-yellow);
  font-weight: 700;
  font-size: clamp(15px, 2.1vw, 25px);
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Free forever: a plain line under the two links, no box. */
.ae-free {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #3A3F55;
  text-align: left;
}
.ae-free b { display: block; font-size: 18px; font-weight: 700; color: var(--ae-ink); }
.ae-free__tick {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ae-green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TpT Shop link: the menu's icon and lettering, filled in the AE logo colours. */
.ae-tpt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--ae-ink);
  background: var(--ae-ink);
  color: var(--ae-yellow);
  font-family: var(--cp-font-nav);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ae-tpt svg { width: 20px; height: 20px; flex-shrink: 0; }
.ae-tpt:hover { transform: translateY(-2px); }
/* On the navy band the logo colours flip: yellow fill, navy lettering. */
.ae-tpt--on-dark { background: var(--ae-yellow); color: var(--ae-ink); border-color: var(--ae-yellow); }
/* A quieter outline version for secondary links. */
.ae-tpt--plain { background: transparent; color: var(--ae-ink); }
.ae-tpt--plain:hover { transform: none; background: var(--ae-paper); }

.ae-float {
  position: absolute;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--ae-ink);
  box-shadow: 3px 4px 0 var(--ae-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 4px;
}
.ae-float--1 { background: var(--ae-orange); top: -22px; left: -22px; transform: rotate(-10deg); }
.ae-float--2 { background: var(--ae-blue);   bottom: -18px; left: 18%; transform: rotate(8deg); }
.ae-float--3 { background: var(--ae-green);  top: 30%; right: -26px; transform: rotate(12deg); }

@media (prefers-reduced-motion: no-preference) {
  .ae-float { animation: ae-bob 4.5s ease-in-out infinite; }
  .ae-float--2 { animation-delay: -1.5s; }
  .ae-float--3 { animation-delay: -3s; }
}
@keyframes ae-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

.ae-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  fill: var(--ae-cream);
}

/* Language picker */
.ae-lang {
  position: relative;
  z-index: 6;
  max-width: var(--ae-wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ae-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--ae-ink);
  background: var(--ae-paper);
}
.ae-lang summary::-webkit-details-marker { display: none; }
.ae-lang summary span { font-size: 11px; }
.ae-lang__panel {
  position: absolute;
  top: 100%;
  right: 24px;
  margin-top: 8px;
  min-width: 170px;
  background: var(--ae-paper);
  border: 2px solid var(--ae-ink);
  border-radius: var(--ae-radius-sm);
  box-shadow: var(--ae-chunky);
  padding: 6px 0;
}
.ae-lang__panel a { display: block; padding: 9px 18px; font-size: 15px; text-decoration: none; }
.ae-lang__panel a:hover { background: var(--ae-yellow-soft); }

@media (max-width: 860px) {
  .ae-hero { padding-bottom: 80px; }
  .ae-hero__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .ae-hero__lede { margin-left: auto; margin-right: auto; }
  .ae-hero .ae-actions { justify-content: center; }
  .ae-hero__logo { max-width: 260px; }
  .ae-free { margin-left: auto; margin-right: auto; justify-content: center; width: fit-content; }
  .ae-logo__name { font-size: 17px; }
}
@media (max-width: 480px) {
  .ae-hero__inner { padding-top: 16px; }
  .ae-hero h1 { letter-spacing: -1.2px; }
  .ae-hero__lede { font-size: 17px; }
  .ae-kicker { font-size: 12px; letter-spacing: 1.4px; }
  .ae-float { width: 50px; height: 50px; font-size: 27px; border-radius: 14px; }
  .ae-hero__logo { max-width: 210px; }
  .ae-logo { border-radius: 36px; }
  .ae-logo__name { font-size: 14px; }
  .ae-float--1 { left: -14px; top: -14px; }
  .ae-float--3 { right: -16px; }
  .ae-free { font-size: 14px; }
  .ae-free b { font-size: 17px; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.ae-section { padding: 52px 0; position: relative; }
.ae-section--tight { padding: 0; }
@media (max-width: 620px) { .ae-section { padding: 40px 0; } }

/* --- Three ways --- */

.ae-ways { padding-top: 40px; }
.ae-ways .ae-h2 { margin-bottom: 30px; }
.ae-ways__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ae-card {
  display: flex;
  flex-direction: column;
  background: var(--ae-paper);
  border: 3px solid var(--ae-ink);
  border-radius: var(--ae-radius);
  box-shadow: 6px 7px 0 var(--ae-ink);
  padding: 26px 26px 24px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ae-card:hover { transform: translate(-2px, -3px); box-shadow: 8px 10px 0 var(--ae-ink); }
.ae-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
  border: 2px solid var(--ae-ink);
}
.ae-card__who {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ae-text-soft);
}
.ae-card h3 { font-size: 25px; font-weight: 800; margin: 2px 0 8px; }
.ae-card p { font-size: 16px; color: var(--ae-text-soft); flex: 1; margin-bottom: 18px; }
.ae-card__go { font-weight: 700; font-size: 15px; }
.ae-card__go::after { content: " →"; }

.ae-card--blue   .ae-card__icon { background: var(--ae-blue-soft); }
.ae-card--orange .ae-card__icon { background: var(--ae-orange-soft); }
.ae-card--green  .ae-card__icon { background: var(--ae-green-soft); }
.ae-card--blue   .ae-card__go { color: #2A6CC0; }
.ae-card--orange .ae-card__go { color: #C25A14; }
.ae-card--green  .ae-card__go { color: #23812F; }

@media (max-width: 860px) {
  .ae-ways__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* --- The app --- */

.ae-app { text-align: center; }
.ae-app .ae-lede { margin-left: auto; margin-right: auto; }

.ae-blend {
  max-width: 520px;
  margin: 0 auto;
  background: var(--ae-paper);
  border: 3px solid var(--ae-ink);
  border-radius: 28px;
  box-shadow: 8px 10px 0 var(--ae-ink);
  padding: 34px 24px 28px;
}
.ae-blend__chips { display: flex; gap: 14px; justify-content: center; margin-bottom: 12px; }
.ae-tile {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  border: 3px solid var(--ae-ink);
  box-shadow: 3px 4px 0 var(--ae-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 5px;
}
.ae-tile--orange { background: var(--ae-orange); transform: rotate(-5deg); }
.ae-tile--blue   { background: var(--ae-blue); }
.ae-tile--green  { background: var(--ae-green); transform: rotate(5deg); }
.ae-blend__arrow { display: block; font-size: 26px; color: var(--ae-text-soft); line-height: 1.2; }
.ae-blend__word { font-size: 68px; font-weight: 800; letter-spacing: 3px; line-height: 1.1; margin-bottom: 10px; }
.ae-blend__caption { font-size: 15px; color: var(--ae-text-soft); }

.ae-langs { margin-top: 30px; font-size: 15px; color: var(--ae-text-soft); }

/* --- Features --- */

.ae-features {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.ae-features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--ae-paper);
  border: 2px solid var(--ae-ink);
  border-radius: var(--ae-radius);
  padding: 20px;
}
.ae-feature__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}
.ae-features b { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.ae-features div span { font-size: 15px; color: var(--ae-text-soft); }
.ae-feature--orange .ae-feature__icon { background: var(--ae-orange-soft); }
.ae-feature--blue   .ae-feature__icon { background: var(--ae-blue-soft); }
.ae-feature--green  .ae-feature__icon { background: var(--ae-green-soft); }
.ae-feature--red    .ae-feature__icon { background: var(--ae-red-soft); }
.ae-feature--purple .ae-feature__icon { background: var(--ae-purple-soft); }
.ae-feature--yellow .ae-feature__icon { background: var(--ae-yellow-soft); }

@media (max-width: 760px) { .ae-features { grid-template-columns: 1fr; } }

/* --- Tip --- */

.ae-tip {
  background: var(--ae-yellow-soft);
  border: 2px dashed var(--ae-ink);
  border-radius: var(--ae-radius);
  padding: 26px 28px;
  font-size: 17px;
}
.ae-tip .ae-pill { margin-bottom: 12px; }

/* --- Stages --- */

.ae-stages {
  list-style: none;
  padding: 0;
  margin: 28px 0 30px;
  display: grid;
  gap: 12px;
}
.ae-stages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ae-paper);
  border: 2px solid var(--ae-ink);
  border-radius: 18px;
  padding: 12px 14px 12px 22px;
}
.ae-stage__name { font-weight: 700; font-size: 17px; white-space: nowrap; }
.ae-stage__name small { display: block; font-size: 13px; font-weight: 500; color: var(--ae-text-soft); }
.ae-stage__tiles { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.ae-stage__tiles i {
  font-style: normal;
  min-width: 42px;
  height: 42px;
  padding: 0 10px 3px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}
.ae-stage--orange .ae-stage__tiles i { background: var(--ae-orange); }
.ae-stage--blue   .ae-stage__tiles i { background: var(--ae-blue); }
.ae-stage--green  .ae-stage__tiles i { background: var(--ae-green); }
.ae-stage--red    .ae-stage__tiles i { background: var(--ae-red); }
.ae-stage--purple .ae-stage__tiles i { background: var(--ae-purple); }

@media (max-width: 620px) {
  .ae-stages li { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 10px; }
  .ae-stage__tiles { justify-content: flex-start; }
  .ae-stage__name small { display: inline; margin-left: 6px; }
  .ae-stage__tiles i { min-width: 38px; height: 38px; font-size: 19px; }
}

/* --- Steps --- */

.ae-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ae-steps li {
  counter-increment: step;
  background: var(--ae-paper);
  border: 2px solid var(--ae-ink);
  border-radius: var(--ae-radius);
  padding: 24px;
}
.ae-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ae-ink);
  box-shadow: 2px 3px 0 var(--ae-ink);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}
.ae-step--orange::before { background: var(--ae-orange); }
.ae-step--blue::before   { background: var(--ae-blue); }
.ae-step--green::before  { background: var(--ae-green); }
.ae-steps b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.ae-steps span { font-size: 15px; color: var(--ae-text-soft); }

@media (max-width: 760px) { .ae-steps { grid-template-columns: 1fr; } }

/* --- Promises --- */

.ae-promises {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ae-promises li {
  background: var(--ae-paper);
  border: 2px solid var(--ae-ink);
  border-radius: var(--ae-radius);
  padding: 20px 20px 18px;
}
.ae-promise__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ae-red-soft);
  color: #B42F2F;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}
.ae-promise--yes .ae-promise__mark { background: var(--ae-green-soft); color: #23812F; }
.ae-promises b { display: block; font-size: 17px; font-weight: 700; }
.ae-promises span:not(.ae-promise__mark) { display: block; font-size: 15px; color: var(--ae-text-soft); }
.ae-promises a { color: var(--ae-ink); font-weight: 700; text-decoration-color: var(--ae-yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }

@media (max-width: 860px) { .ae-promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ae-promises { grid-template-columns: 1fr; } }

/* --- Printables --- */

.ae-printables {
  background: var(--ae-yellow-soft);
  padding: 100px 0 110px;
  text-align: center;
}
.ae-printables .ae-lede { margin-left: auto; margin-right: auto; }
.ae-wave--top { top: -1px; bottom: auto; }

.ae-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 30px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.ae-promo img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 3px solid var(--ae-ink);
  box-shadow: 7px 8px 0 var(--ae-ink);
}
.ae-promo:nth-child(odd) img  { transform: rotate(-1deg); }
.ae-promo:nth-child(even) img { transform: rotate(1deg); }
.ae-promo figcaption { padding: 16px 6px 0; font-size: 15px; color: var(--ae-text-soft); }
.ae-promo figcaption b { display: block; font-size: 19px; font-weight: 800; color: var(--ae-text); }

@media (max-width: 620px) {
  .ae-printables { padding: 84px 0 96px; }
  .ae-promos { grid-template-columns: 1fr; }
}

/* --- Community --- */

#community .ae-wrap { text-align: center; }
#community .ae-lede { margin-left: auto; margin-right: auto; }
.ae-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.ae-channel {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ae-ink);
  border-radius: var(--ae-radius);
  box-shadow: 6px 7px 0 var(--ae-ink);
  padding: 24px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ae-channel:hover { transform: translate(-2px, -3px); box-shadow: 8px 10px 0 var(--ae-ink); }
.ae-channel--yellow { background: var(--ae-yellow); }
.ae-channel--blue   { background: var(--ae-blue-soft); }
.ae-channel--red    { background: var(--ae-red-soft); }
.ae-channel__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ae-paper);
  border: 2px solid var(--ae-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  margin-bottom: 14px;
}
.ae-channel b { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.ae-channel span:not(.ae-channel__icon) { font-size: 15px; color: #33384D; }
.ae-channel .ae-channel__go { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--ae-ink); }
.ae-channel__go::after { content: " ↗"; }

@media (max-width: 860px) {
  .ae-channels { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* --- Close --- */

.ae-close {
  background: var(--ae-ink);
  color: #fff;
  text-align: center;
  padding: 70px 24px 74px;
}
.ae-close > img { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 0 0 3px rgba(242,214,73,.35); }
.ae-close h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.8px; color: var(--ae-yellow); margin-bottom: 8px; }
.ae-close p { color: rgba(255,255,255,.78); font-size: 17px; }
.ae-close .ae-actions--center { margin-top: 28px; }

/* --- Questions --- */

.ae-questions { padding-bottom: 56px; }

/* Keyboard focus that is easy to see on every background. */
.ae a:focus-visible, .ae summary:focus-visible {
  outline: 3px solid var(--ae-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Jump links land below the sticky header. */
.ae main [id] { scroll-margin-top: 16px; }
