/* Äerdschëff: a shared visual grammar, complete before motion. */
html[data-aerd-adaptation='1'] {
  --rd-ink: #453a36;
  --rd-accent: #873550;
  --rd-paper: #fffcfa;
  --rd-line: #d5bdbb;
  --rd-soft: #fcf4f2;
  --rd-focus: #76344f;
}
html[data-aerd-adaptation='1'] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--rd-focus);
  outline-offset: 5px;
}
html[data-aerd-adaptation='1'] :is(.about-prose, .bd-panel, .why-chapter, .education-intro-copy) p {
  max-width: 68ch;
  line-height: 1.78;
}
html[data-aerd-adaptation='1'] :is(.about-prose, .bd-panel, .why-chapter) a {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
html[data-aerd-adaptation='1'] :is(.education-door, .about-text-link, .bd-text-link, .hub-next-doors a, .journal-read) {
  touch-action: manipulation;
}
html[data-aerd-adaptation='1'] :is(.about-photo, .da-about-photo, .bd-opening-photo, .rd-education-photo) figcaption {
  font-size: .8125rem;
  line-height: 1.55;
  color: #705c59;
}
html[data-aerd-adaptation='1'] .rd-open-book {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 723 / 467;
  isolation: isolate;
}
html[data-aerd-adaptation='1'] .rd-open-book .rd-book-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 723 / 467;
  object-fit: contain;
  transform-origin: 50% 88%;
}
/* A smaller building leaves distinct space for every labelled destination. */
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell {
  display: block;
  min-height: 0;
  padding-bottom: 35px;
  overflow: clip;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-intro {
  width: min(720px, calc(100% - 340px));
  margin: 34px auto 10px;
  padding: 0;
  text-align: center;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-intro h1 {
  font-size: clamp(1.65rem, 2.45vw, 2.25rem);
  line-height: 1.28;
  text-wrap: balance;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell #scene {
  width: min(100%, 1280px);
  height: clamp(640px, 56vw, 760px);
  min-height: 0;
  margin: 0 auto;
  container-type: size;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor {
  scale: 1;
  --tilt: 0deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place {
  left: 31%; top: 33%; width: 38%; --tilt: -2deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-learn {
  left: 40%; top: 4%; width: 21%; --tilt: 2deg;
  mix-blend-mode: normal;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-news {
  left: 8%; top: 12%; width: 17%; --tilt: -4deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-books {
  left: 76%; top: 4%; width: 14%; --tilt: 3deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-key {
  left: 81%; top: 57%; width: 13%; --tilt: 7deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-games {
  left: 7%; top: 59%; width: 14%; --tilt: -3deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-blog {
  left: 28%; top: 73%; width: 11%; --tilt: 2deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-mobility {
  left: 54%; top: 67%; width: 19%; --tilt: -2deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-newsletter-object {
  left: 77%; top: 36%; width: 14%; transform: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-object-label {
  min-height: 1.5em;
  margin: 0;
  padding-top: 10px;
  color: var(--rd-ink);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.3;
  text-wrap: balance;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place .aerd-object-label {
  padding-top: 12px;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor .art {
  transition: filter .18s ease;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor.is-selected .art {
  transform: none;
  filter: drop-shadow(0 4px 3px #6e3e4316);
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor.is-selected .aerd-object-label {
  color: var(--rd-accent);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-learn-cutout .rl-scene {
  height: auto;
  aspect-ratio: 723 / 467;
  display: block;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-learn-cutout .rd-book-image {
  width: 100%; height: auto; transform: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .frame {
  left: 35%; top: 29%; width: 30%; opacity: .16; --tilt: -3deg;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] :is(.worker, .school) {
  display: none;
}
/* Non-interactive atmosphere never becomes a hit target. */
html[data-aerd-adaptation='1'] .rd-ambience,
html[data-aerd-adaptation='1'] .rd-ambience * {
  pointer-events: none !important;
  user-select: none;
}
html[data-aerd-adaptation='1'] .rd-ambience {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
html[data-aerd-adaptation='1'] .rd-ambience .rd-cloud {
  position: absolute;
  left: 7%; top: 37%; width: 17%; height: auto;
  opacity: .53;
}
html[data-aerd-adaptation='1'] .rd-ambience .rd-insect {
  position: absolute;
  left: 70%; top: 60%; width: 34px; height: 34px;
  color: #735152;
  opacity: .76;
}
/* JavaScript places this against the actual building rectangle. */
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] #scene-label {
  position: fixed;
  width: min(340px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  bottom: auto !important;
  margin: 0;
  z-index: 80;
  overflow: visible;
  box-sizing: border-box;
  filter: drop-shadow(0 5px 8px #453a3620);
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] #scene-label h2 {
  font-size: 27px;
  line-height: 1.16;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] #scene-label #label-description {
  font-size: 15px;
  line-height: 1.6;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] #scene-label .label-close {
  min-width: 44px;
  min-height: 44px;
}
html[data-aerd-adaptation='1'] .rd-mobile-description { display: none; }
/* Education: text, open book and a real workshop photograph. */
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 20px 7%;
  padding-top: 45px;
  padding-bottom: 38px;
  align-items: start;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro > h1 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(43px, 4.7vw, 68px);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.035em;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro > .rl-education-scene {
  grid-column: 2;
  grid-row: 1 / 3;
  width: min(100%, 390px);
  margin: 0;
  float: none;
  justify-self: center;
  align-self: center;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .rl-education-scene .rl-scene {
  aspect-ratio: 723 / 467;
  width: 100%;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro-copy {
  grid-column: 1;
  grid-row: 3;
  display: block;
  margin: 0;
  max-width: 58ch;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro-copy p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 1em;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .rd-education-photo {
  grid-column: 2;
  grid-row: 3;
  width: min(86%, 350px);
  margin: 0;
  justify-self: center;
  align-self: start;
  transform: rotate(-2deg);
}
html[data-aerd-adaptation='1'] .rd-education-photo img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px 22px 4px 7px;
}
html[data-aerd-adaptation='1'] .rd-education-photo figcaption {
  margin-top: 11px;
  transform: rotate(2deg);
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-doors {
  padding-top: 24px;
  border-top: 1px solid var(--rd-line);
  gap: 5%;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door {
  min-width: 0;
  transform: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door:nth-child(2) {
  margin-top: 32px;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door :is(img, img.education-photo, .rd-door-object) {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: contain;
  transform: none;
  transition: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door img.education-photo {
  object-fit: cover;
  border-radius: 4px 26px 5px 9px;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door h2 {
  font-size: clamp(27px, 2.65vw, 35px);
  line-height: 1.18;
}
html[data-aerd-adaptation='1'] .why-reading {
  max-width: 74ch;
  margin-inline: auto;
}
html[data-aerd-adaptation='1'] .why-chapter {
  padding-block: 22px 30px;
}
html[data-aerd-adaptation='1'] .why-chapter h2 {
  max-width: 28ch;
  text-wrap: balance;
}
html[data-aerd-adaptation='1'] :is(.about-opening, .bd-opening, .why-editorial-hero, .journal-heading) {
  column-gap: clamp(30px, 6vw, 80px);
}
html[data-aerd-adaptation='1'] :is(.about-chapters, .bd-local-nav, .hub-page-nav, .education-nav, .journal-sections) a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
html[data-aerd-adaptation='1'] .rl-motion-control {
  min-height: 44px;
  color: var(--rd-accent);
}
@media (min-width: 761px) and (max-width: 980px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-intro {
    width: calc(100% - 80px);
    margin-top: 150px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-login {
    top: 95px; right: 140px; min-height: 44px; display: flex; align-items: center;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell #scene { height: 640px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    gap: 18px 5%;
  }
}
@media (max-width: 760px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-intro {
    width: auto;
    max-width: 580px;
    margin: 135px auto 14px;
    padding-inline: 24px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-intro h1 {
    font-size: clamp(24px, 5.5vw, 32px);
    line-height: 1.3;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-home-login {
    top: 82px; right: 122px; font-size: 14px; min-height: 44px; display: flex; align-items: center;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell #scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 34px 24px;
    width: min(100%, 620px);
    height: auto;
    padding: 20px 24px 45px;
    container-type: inline-size;
    overflow: visible;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene .actor,
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-newsletter-object {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    transform: none !important;
    scale: 1;
    order: 0;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene .actor-place {
    grid-column: 1 / -1;
    margin: 0 auto 6px;
    max-width: 430px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor .art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(135px, 30vw, 180px);
    padding: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    mix-blend-mode: normal;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor .art img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    transform: none;
    clip-path: none;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place .art,
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place .art img {
    height: auto;
    max-height: none;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor .aerd-learn-cutout .rd-open-book {
    width: 100%;
    height: auto;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor .aerd-learn-cutout .rd-book-image {
    height: auto;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-blog svg.art { display: block; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor .book-back { display: none; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-object-label {
    font-size: 18px;
    padding-top: 11px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-newsletter-art {
    height: clamp(135px, 30vw, 180px);
    display: block;
    max-width: 160px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-newsletter-art img { top: 38px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .decor { display: none; }
  html[data-aerd-adaptation='1'] .rd-ambience {
    height: 240px;
    overflow: hidden;
  }
  html[data-aerd-adaptation='1'] .rd-ambience .rd-cloud { left: 2%; top: 1%; width: 18%; opacity: .3; }
  html[data-aerd-adaptation='1'] .rd-ambience .rd-insect { left: 88%; top: 60%; width: 24px; height: 24px; }
  html[data-aerd-adaptation='1'] .rd-mobile-description {
    display: block;
    font: 13px/1.55 Arial, sans-serif;
    color: #705c59;
    margin: 8px auto 0;
    text-align: center;
    max-width: 25ch;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    padding-top: 28px;
    padding-bottom: 24px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro > .eyebrow {
    grid-column: 1 / -1; grid-row: 1;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro > h1 {
    grid-column: 1 / -1; grid-row: 2;
    font-size: clamp(36px, 8vw, 52px);
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro > .rl-education-scene {
    grid-column: 1; grid-row: 3;
    width: 100%; max-width: 290px;
    margin: 0;
    align-self: center;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .rd-education-photo {
    grid-column: 2; grid-row: 3;
    width: 100%; margin: 0;
    align-self: center;
  }
  html[data-aerd-adaptation='1'] .rd-education-photo figcaption { font-size: 12px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro-copy {
    grid-column: 1 / -1; grid-row: 4; margin-top: 8px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-intro-copy p { font-size: 16px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-doors {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 28px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(86px, 29%) minmax(0, 1fr);
    gap: 0 20px;
    margin: 0;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door :is(img, img.education-photo, .rd-door-object) {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    height: 145px;
    align-self: center;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door .rd-door-object img {
    height: 100%;
    object-fit: contain;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door h2 {
    font-size: clamp(25px, 5.5vw, 32px);
    margin: 10px 0;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door .eyebrow { font-size: 11px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='formations'] .education-door p { font-size: 15px; }
  html[data-aerd-adaptation='1'] .why-reading { max-width: 100%; }
  html[data-aerd-adaptation='1'] .rl-motion-slot {
    display: flex;
    justify-content: flex-end;
    height: auto;
    margin: 8px 20px 18px;
  }
  html[data-aerd-adaptation='1'] .rl-motion-slot .rl-motion-control {
    position: static;
    margin: 0;
    max-width: 100%;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-aerd-adaptation='1'] :is(.actor, .education-door, .rd-open-book, .rd-ambience) *,
  html[data-aerd-adaptation='1'] :is(.actor, .education-door, .rd-open-book, .rd-ambience) {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the whole caption visible, and scroll only long panel content. */
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] #scene-label .label-content{max-height:calc(100dvh - 80px);overflow:auto}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor{transform:none!important}
/* The global pause also covers the recovered CSS traces and halos. */
html[data-rd-pause='true'] :is(.atmospheres,.hub-atmosphere),
html[data-rd-pause='true'] .atmospheres *,
html[data-rd-pause='true'] .atmospheres *::before,
html[data-rd-pause='true'] .atmospheres *::after { animation:none!important;transition:none!important; }
html[data-rd-pause='true'] .world.is-active.is-positioned .aerd-traces path { stroke-dashoffset:0; }
html[data-rd-pause='true'] .world.is-active.is-positioned .aerd-hover-word { opacity:1; }
/* Preserve the complete portrait artwork for the three upcoming games. */
html[data-aerd-adaptation='1'] body[data-aerd-art='games'] .acn-upcoming-feature > img {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  justify-self: center;
}
