/* Powder-pink theme for pages after the blue welcome postcard. */
:root {
  --powder: #faedef;
  --sky: var(--powder);
  --sky-soft: var(--powder);
  --sky-band: var(--powder);
  --sky-strong: var(--powder);
  --paper: #fff9fa;
  --line: #e5cfd7;
}
html { background: var(--powder); }
body { background: var(--powder); isolation: isolate; }
/* Each figure belongs to its content block and is always rendered in full. */
body { --dance-figure: url("media/dancer-street-full.webp"); }
body[data-dance-theme="performing"] { --dance-figure: url("media/dancer-performing-full.webp"); }
.hero-copy, .about-hero-grid > div:first-child, .festival-hero-grid > div:first-child,
.guide-hero > .shell, .rules-hero > .shell, .archive-title-row {
  position: relative;
  isolation: isolate;
}
.hero-copy::before, .about-hero-grid > div:first-child::before,
.festival-hero-grid > div:first-child::before, .guide-hero > .shell::before,
.rules-hero > .shell::before, .archive-title-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 65px;
  right: -30px;
  width: min(280px, 48%);
  height: min(440px, calc(100% - 85px));
  background: var(--dance-figure) center / contain no-repeat;
  opacity: .15;
  pointer-events: none;
}
.guide-hero > .shell::before, .rules-hero > .shell::before {
  right: 15px;
  top: 30px;
  width: 290px;
  height: min(435px, calc(100% - 60px));
}
.archive-title-row::before { right: 32%; top: 0; height: 100%; width: 170px; }
/* The original composition is also kept, fitted inside the contact section. */
.contact-section, .guide-contact, .archive-contact { position: relative; isolation: isolate; }
.contact-section::before, .guide-contact::before, .archive-contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px;
  background: url("media/dancer-shadows.webp") center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.hero, .about-hero, .guide-hero, .rules-hero,
.new-chapter, .organizers, .memory-strip, .inclusion-section, .winners-section,
.festival-hero, .festival-program, .festival-info, .postcard-archive, .guide-dance-band,
.dance-world, .archive-story, .partners, .festival-stay, .guide-section,
.event-band, .contact-section, .archive-hero, .archive-gallery, .archive-contact,
.festival-awards, .guide-contact, .guide-banner, .guide-section:nth-of-type(odd),
.rules-entry, .registration-banner {
  background: transparent;
  border-color: var(--line);
}
.topline, .site-header, .guide-header, .footer, .guide-footer, .archive-tabs {
  background: var(--powder);
  border-color: var(--line);
}
.style-text, .style-street .style-text, .style-couple .style-text,
.stay-card, .official-hotel, .guide-other,
.rules-entry-grid article, .guide-contents a {
  background: #fff9faf0;
  border-color: var(--line);
}
.guide-header .language-switch { background: #fff9fa; border-color: var(--line); }
.guide-header .language-switch a:hover { background: #f3dce3; }
.guide-header .language-switch a[aria-current="page"] { background: var(--blue); color: white; }
.guide-table caption, .guide-table thead { background: #f7e5eb; }
.guide-table tbody tr:nth-child(even) { background: #fff6f8; }
/* A quiet full-figure raster continues through every content section. */
.about-story, .festival-intro { background: transparent; }
.dance-raster-section { position: relative; isolation: isolate; }
.dance-raster-field {
  position: absolute;
  z-index: -1;
  inset: 24px 14px;
  display: grid;
  grid-template-rows: repeat(var(--raster-rows, 1), minmax(0, 1fr));
  gap: 24px;
  pointer-events: none;
}
.dance-raster-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
  padding-inline: clamp(0px, 2vw, 32px);
  opacity: .18;
}
.dance-raster-row::before, .dance-raster-row::after {
  content: "";
  display: block;
  width: min(24%, 250px);
  height: 100%;
  max-height: 375px;
  background: url("media/dancer-performing-full.webp") center / contain no-repeat;
}
.dance-raster-row::after { background-image: url("media/dancer-street-full.webp"); }
.dance-raster-row[data-variant="1"] { flex-direction: row-reverse; }
.rules-section .dance-raster-field { inset-inline: -90px; }
/* Keep entire silhouettes in text areas, away from the photograph panels. */
.new-chapter .dance-raster-row { flex-direction: row; }
.organizers .dance-raster-row { flex-direction: row-reverse; }
.new-chapter .dance-raster-row::after, .organizers .dance-raster-row::after { display: none; }
.rules-entry .dance-raster-field, .dance-world .dance-raster-field,
.guide-dance-band .dance-raster-field, .memory-strip .dance-raster-field {
  top: 15px;
  bottom: auto;
  height: 155px;
  grid-template-rows: minmax(0, 1fr);
}
.rules-entry .dance-raster-row:not(:first-child), .dance-world .dance-raster-row:not(:first-child),
.guide-dance-band .dance-raster-row:not(:first-child), .memory-strip .dance-raster-row:not(:first-child) { display: none; }
.guide-section:has(.guide-photo) .dance-raster-field { top: auto; height: 300px; bottom: 35px; grid-template-rows: minmax(0, 1fr); }
.guide-section:has(.guide-photo) .dance-raster-row:not(:first-child) { display: none; }
.registration-banner .dance-raster-field { right: 35%; }
.registration-banner .dance-raster-row { flex-direction: row-reverse; }
.registration-banner .dance-raster-row::after { display: none; }
@media (max-width: 900px) {
  #main-nav { background: var(--powder); }
  .hero-copy::before, .about-hero-grid > div:first-child::before,
  .festival-hero-grid > div:first-child::before { right: 0; width: min(240px, 52%); }
  .guide-hero > .shell::before, .rules-hero > .shell::before {
    right: 0; width: min(250px, 45%); top: 65px; height: 375px;
  }
  .rules-section .dance-raster-field { inset-inline: 0; }
}
@media (max-width: 600px) {
  .hero-copy::before, .about-hero-grid > div:first-child::before,
  .festival-hero-grid > div:first-child::before,
  .guide-hero > .shell::before, .rules-hero > .shell::before {
    right: 0;
    top: 75px;
    width: min(190px, 58%);
    height: min(285px, calc(100% - 95px));
    opacity: .13;
  }
  .archive-title-row::before { right: 0; top: 10px; width: 160px; height: 240px; }
  .dance-raster-field { inset: 20px 14px; gap: 36px; }
  .dance-raster-row { justify-content: flex-start; opacity: .15; padding: 0; }
  .dance-raster-row::before { width: min(190px, 64%); max-height: 285px; }
  .dance-raster-row::after { display: none; }
  .dance-raster-row[data-variant="1"]::before { background-image: url("media/dancer-street-full.webp"); }
  .registration-banner .dance-raster-field { right: 14px; bottom: 100px; }
  .new-chapter .dance-raster-field { bottom: 38%; }
  .organizers .dance-raster-field { top: 40%; }
}
@media print {
  .dance-raster-field { display: none; }
  .hero-copy::before, .about-hero-grid > div:first-child::before,
  .festival-hero-grid > div:first-child::before, .guide-hero > .shell::before,
  .rules-hero > .shell::before, .archive-title-row::before,
  .contact-section::before, .guide-contact::before, .archive-contact::before { display: none; }
  html, body { background: white; }
}
