:root {
  --nd-purple: #31003b;
  --nd-cream: #f4e8b8;
  --mist-blue: #76d8e6;
  --acid: #bada55;
  --stage-green: #071711;
  --stage-black: #070608;
  --warm-white: #f7f1df;
  --paper: #eceae4;
  --graphite: #3b3d3a;
  --line: rgba(244, 232, 184, 0.22);
  --display: "Instrument Serif", "Bodoni 72", "Georgia", serif;
  --sans: "Familjen Grotesk", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--stage-black);
  color: var(--warm-white);
  font-family: var(--sans);
}

body.has-lightbox {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--mist-blue);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(7, 6, 8, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--nd-cream);
  font-family: var(--display);
  font-size: 1.45rem;
}

.brand img {
  width: 2.7rem;
  height: 2.7rem;
}

.site-nav {
  display: none;
  justify-content: end;
  gap: clamp(0.75rem, 2vw, 1.55rem);
  color: rgba(247, 241, 223, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--nd-cream);
}

.header-admin-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  color: var(--nd-cream);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-admin-mobile:hover {
  background: var(--nd-cream);
  color: var(--nd-purple);
}

.header-social {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  color: var(--nd-cream);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.header-social:hover {
  background: var(--nd-cream);
  color: var(--nd-purple);
  transform: translateY(-1px);
}

.header-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language-switcher {
  display: inline-flex;
  gap: 0.16rem;
  padding: 0.16rem;
  border: 1px solid var(--line);
  background: rgba(7, 6, 8, 0.45);
}

.language-switcher button {
  min-width: 2.2rem;
  min-height: 1.95rem;
  border: 0;
  background: transparent;
  color: rgba(247, 241, 223, 0.64);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.language-switcher button[aria-pressed="true"],
.language-switcher button:hover {
  background: var(--nd-cream);
  color: var(--nd-purple);
}

.home-hero,
.course-hero {
  position: relative;
  min-height: 100svh;
  padding: 7.5rem clamp(1rem, 6vw, 5rem) 3rem;
  overflow: hidden;
}

.home-hero {
  display: grid;
  align-items: end;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 6, 8, 0.92), rgba(7, 6, 8, 0.3) 52%, rgba(7, 6, 8, 0.9)),
    linear-gradient(0deg, #070608, transparent 38%),
    var(--home-hero-image, url("assets/nicholas-dieter-nevoa.png")) center / cover no-repeat;
}

.home-hero__content,
.course-hero__copy {
  width: min(880px, 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--nd-cream);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.home-hero h1,
.course-hero h1 {
  max-width: 10ch;
  font-size: clamp(4.3rem, 14vw, 11rem);
  font-style: italic;
  line-height: 0.78;
}

.home-hero p:not(.eyebrow),
.course-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(247, 241, 223, 0.86);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.button--primary {
  background: var(--nd-cream);
  color: var(--nd-purple);
}

.button--ghost {
  border-color: rgba(244, 232, 184, 0.42);
  background: transparent;
  color: var(--warm-white);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 6vw, 5rem);
}

.section--split,
.course-about,
.coordinator-section {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.section__intro {
  max-width: 520px;
  min-width: 0;
}

.section h2 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.88;
}

.section--records .section__intro,
.section--faq .section__intro {
  max-width: none;
}

.section--records h2,
.section--faq h2 {
  white-space: nowrap;
  font-size: clamp(2.2rem, 8vw, 6rem);
  line-height: 0.92;
}

.section__intro p:not(.eyebrow),
.rich-copy,
.about-copy,
.coordinator-section > p,
.coordinator-section__bio {
  color: rgba(247, 241, 223, 0.74);
  font-size: 1.08rem;
  line-height: 1.65;
}

.workshop-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.workshop-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(247, 241, 223, 0.04);
}

.workshop-card__image {
  min-height: 320px;
  overflow: hidden;
  background: #101010;
}

.workshop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

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

.workshop-card__content {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.workshop-card h3 {
  font-size: clamp(3rem, 5vw, 4rem);
  font-style: italic;
  line-height: 0.82;
  overflow-wrap: anywhere;
}

.workshop-card p {
  color: rgba(247, 241, 223, 0.76);
  font-size: 1.05rem;
  line-height: 1.55;
}

.workshop-card dl {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(244, 232, 184, 0.18);
}

.workshop-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 1rem;
  padding-top: 0.7rem;
}

.workshop-card dt {
  color: var(--mist-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workshop-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.records-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.records-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(244, 232, 184, 0.18);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 980px;
}

.faq-item {
  border: 1px solid rgba(244, 232, 184, 0.18);
  background: rgba(7, 6, 8, 0.34);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--nd-cream);
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: rgba(247, 241, 223, 0.76);
  line-height: 1.55;
}

.section--about {
  display: grid;
  gap: 2rem;
  background:
    linear-gradient(180deg, rgba(7, 6, 8, 0.96), rgba(22, 58, 49, 0.72)),
    #071711;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-top: 1.35rem;
  color: var(--nd-cream);
  font-weight: 900;
}

.text-link svg {
  width: 1.28rem;
  height: 1.28rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 6vw, 5rem);
  border-top: 1px solid rgba(244, 232, 184, 0.14);
  color: rgba(247, 241, 223, 0.58);
}

.site-footer span {
  color: var(--nd-cream);
  font-family: var(--display);
  font-size: 1.8rem;
}

.site-footer p {
  margin: 0;
}

.course-hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  background: #070608;
}

.course-hero > *,
.course-hero__image,
.course-hero__copy,
.commerce-panel,
.program-item,
.video-card {
  min-width: 0;
}

.course-hero__image {
  height: clamp(280px, 42vw, 520px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.course-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hero__copy h1 {
  max-width: min(100%, 15ch);
  font-size: clamp(3.6rem, 7vw, 7.8rem);
  line-height: 0.86;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

.course-about h2 {
  font-size: clamp(2.35rem, 3.8vw, 4rem);
  line-height: 0.95;
}

.language-section {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(244, 232, 184, 0.16);
  border-bottom: 1px solid rgba(244, 232, 184, 0.16);
  background: rgba(244, 232, 184, 0.035);
}

.language-section h2 {
  color: var(--nd-cream);
  font-size: clamp(2.55rem, 4.4vw, 4.4rem);
  line-height: 0.92;
}

.language-section p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(247, 241, 223, 0.74);
  font-size: 1.08rem;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--mist-blue);
  font-weight: 900;
}

.program-grid {
  display: grid;
  gap: 1rem;
}

.section--program .section__intro {
  max-width: 680px;
}

.section--program h2,
.coordinator-section h2 {
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  line-height: 0.9;
}

.program-item {
  padding: 1.5rem;
  border: 1px solid rgba(244, 232, 184, 0.16);
  text-align: center;
}

.program-item span {
  color: var(--acid);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.program-item h3 {
  margin: 0.8rem 0 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 241, 223, 0.72);
  line-height: 1.55;
}

.course-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding-top: 0;
}

.course-gallery img {
  width: 100%;
  aspect-ratio: 1;
  cursor: zoom-in;
  object-fit: cover;
}

.section--videos {
  border-top: 1px solid rgba(244, 232, 184, 0.14);
  border-bottom: 1px solid rgba(244, 232, 184, 0.14);
  background: rgba(244, 232, 184, 0.035);
}

.section--videos .section__intro {
  max-width: 720px;
}

.video-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.video-card {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(244, 232, 184, 0.18);
  background: rgba(7, 6, 8, 0.26);
  padding: 1rem;
}

.video-card iframe,
.video-card__fallback {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-card__fallback {
  place-items: center;
  border: 1px solid rgba(244, 232, 184, 0.2);
  color: var(--nd-cream);
  font-weight: 900;
}

.video-card h3 {
  margin: 0;
  color: var(--nd-cream);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 0.92;
}

.video-card p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(247, 241, 223, 0.72);
  line-height: 1.6;
}

.records-strip img,
.course-hero__image img {
  cursor: zoom-in;
}

.workshop-card__image img {
  cursor: pointer;
}

.coordinator-section {
  background: var(--acid);
  color: #0b0b0b;
}

.coordinator-section .eyebrow,
.coordinator-section p,
.coordinator-section__bio {
  color: #0b0b0b;
}

.coordinator-section__intro {
  min-width: 0;
}

.coordinator-section__bio p {
  margin: 0;
  max-width: 760px;
  white-space: pre-line;
}

.coordinator-photo {
  width: min(280px, 100%);
  margin: 0;
}

.coordinator-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(7, 6, 8, 0.24);
  object-fit: cover;
}

.course-commerce {
  display: grid;
  min-height: 680px;
}

.commerce-panel {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.commerce-panel h2 {
  font-family: var(--sans);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.commerce-panel strong {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.commerce-panel p {
  max-width: 360px;
  line-height: 1.55;
}

.commerce-panel small {
  max-width: 360px;
  color: rgba(247, 241, 223, 0.72);
  line-height: 1.55;
}

.button--payment {
  display: grid;
  gap: 0.15rem;
  width: min(100%, 360px);
  margin-top: 1.35rem;
  border-color: var(--nd-cream);
  background: var(--nd-cream);
  color: var(--nd-purple);
  text-align: center;
}

.button--payment small {
  color: rgba(49, 0, 59, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
}

.commerce-panel--dark {
  background: #000;
}

.commerce-panel--mid {
  background: var(--graphite);
}

.commerce-panel--form {
  align-items: stretch;
  background: var(--paper);
  color: #0b0b0b;
  text-align: left;
}

.commerce-panel--form h2,
.commerce-panel--form p {
  text-align: center;
}

.floating-whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 3.85rem;
  padding: 0.6rem 1.15rem 0.6rem 0.6rem;
  border: 1px solid rgba(37, 211, 102, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(6, 23, 17, 0.98), rgba(10, 35, 26, 0.96));
  color: var(--warm-white);
  box-shadow:
    0 1rem 2.6rem rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(247, 241, 223, 0.08);
  font-family: "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.floating-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.7);
  box-shadow:
    0 1.25rem 3.1rem rgba(0, 0, 0, 0.5),
    0 0 0 0.35rem rgba(37, 211, 102, 0.08),
    inset 0 0 0 1px rgba(247, 241, 223, 0.12);
  transform: translateY(-2px);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 4px;
}

.floating-whatsapp__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: #25d366;
  color: #04110a;
  box-shadow:
    0 0.55rem 1.2rem rgba(37, 211, 102, 0.24),
    inset 0 0 0 1px rgba(4, 17, 10, 0.14);
}

.floating-whatsapp svg {
  width: 1.38rem;
  height: 1.38rem;
  fill: currentColor;
}

.floating-whatsapp__copy {
  display: grid;
  gap: 0.1rem;
}

.floating-whatsapp__eyebrow {
  color: rgba(247, 241, 223, 0.68);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.floating-whatsapp__label {
  color: #fffbe9;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.divider {
  display: block;
  width: 2.6rem;
  height: 0.35rem;
  margin: 2rem auto 0;
  background: currentColor;
  opacity: 0.85;
}

.accent-text {
  color: var(--acid);
  font-weight: 900;
}

.signup-form,
.admin-form {
  display: grid;
  gap: 1rem;
}

.signup-form label,
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.signup-form input,
.signup-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid rgba(7, 6, 8, 0.5);
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0.75rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  border-color: rgba(244, 232, 184, 0.28);
  background: rgba(7, 6, 8, 0.26);
  color: var(--warm-white);
}

.signup-form ::placeholder,
.admin-login-card ::placeholder,
.admin-form ::placeholder {
  color: rgba(247, 241, 223, 0.42);
}

.signup-form__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.signup-form button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.signup-form__status {
  min-height: 1.4rem;
  margin: 0;
  color: rgba(7, 6, 8, 0.72);
  font-weight: 800;
  line-height: 1.45;
}

.signup-form__status.is-success {
  color: #1d4f37;
}

.signup-form__status.is-error {
  color: #641a14;
}

.signup-form__status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.admin-form select option {
  color: #0b0b0b;
}

.admin-shell {
  padding: 7rem clamp(1rem, 6vw, 5rem) 4rem;
}

.admin-mobile-gate {
  display: none;
}

.admin-login {
  display: grid;
  min-height: calc(100svh - 7rem);
  place-items: center;
}

.admin-login-card {
  display: grid;
  width: min(420px, 100%);
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(247, 241, 223, 0.05);
}

.admin-login-card h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.86;
}

.admin-error {
  margin: 0;
  color: #ffd0c4;
  font-weight: 800;
}

.admin-hero {
  max-width: 780px;
}

.admin-hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.admin-hero h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.86;
}

.admin-route-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.65rem;
  border: 1px solid rgba(244, 232, 184, 0.16);
  background: rgba(7, 6, 8, 0.86);
  backdrop-filter: blur(18px);
}

.admin-route-nav a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.65rem;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.8rem;
  border: 1px solid rgba(244, 232, 184, 0.14);
  color: rgba(247, 241, 223, 0.72);
  background: rgba(247, 241, 223, 0.035);
}

.admin-route-nav a:hover,
.admin-route-nav a.is-active {
  border-color: var(--nd-cream);
  color: var(--nd-cream);
  background: rgba(244, 232, 184, 0.1);
}

.admin-route-nav span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid currentColor;
  color: var(--mist-blue);
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-route-nav strong {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-route-nav small {
  color: rgba(247, 241, 223, 0.54);
  font-size: 0.76rem;
  line-height: 1.25;
}

.admin-route-nav a.is-active span {
  background: var(--nd-cream);
  color: var(--nd-purple);
}

.admin-section {
  margin-top: 3rem;
}

.admin-section-heading {
  max-width: 760px;
}

.admin-section-heading h2 {
  color: var(--nd-cream);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.88;
}

.admin-section-heading p:not(.eyebrow) {
  color: rgba(247, 241, 223, 0.68);
  font-size: 1.02rem;
  line-height: 1.6;
}

.admin-form--site {
  margin-top: 1rem;
}

.admin-site-block {
  margin-top: 1rem;
  background: rgba(7, 6, 8, 0.22);
}

.admin-language-picker {
  max-width: 320px;
}

.admin-language-picker--workshop {
  max-width: 360px;
}

.admin-copy-group {
  border: 1px solid rgba(244, 232, 184, 0.14);
  background: rgba(247, 241, 223, 0.035);
}

.admin-copy-group + .admin-copy-group {
  margin-top: 0.8rem;
}

.admin-copy-group summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  color: var(--nd-cream);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-copy-group[open] summary {
  border-bottom: 1px solid rgba(244, 232, 184, 0.12);
}

.admin-copy-group > label,
.admin-copy-group > .form-row {
  margin: 1rem;
}

.admin-save-status {
  align-self: center;
  margin: 0;
  color: var(--mist-blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-save-status.is-error {
  color: #ffd0c4;
}

.admin-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 6, 8, 0.78);
  backdrop-filter: blur(10px);
}

.admin-busy-overlay[hidden] {
  display: none;
}

body.is-admin-busy {
  overflow: hidden;
}

.admin-busy-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(100%, 360px);
  border: 1px solid rgba(244, 232, 184, 0.22);
  background: #100c13;
  padding: 1.25rem;
  text-align: center;
}

.admin-busy-card strong {
  color: var(--nd-cream);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-busy-card p {
  margin: 0;
  color: rgba(247, 241, 223, 0.72);
  line-height: 1.45;
}

.admin-busy-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid rgba(244, 232, 184, 0.2);
  border-top-color: var(--nd-cream);
  border-radius: 50%;
  animation: admin-spin 850ms linear infinite;
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.admin-panel,
.admin-form {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(247, 241, 223, 0.04);
}

.admin-form {
  align-content: start;
}

.admin-panel {
  align-self: start;
}

.admin-panel-actions {
  display: grid;
  gap: 0.55rem;
}

.admin-flow {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 232, 184, 0.14);
}

.admin-flow a {
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(244, 232, 184, 0.12);
  color: rgba(247, 241, 223, 0.74);
  padding: 0.55rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-flow a:hover {
  border-color: var(--nd-cream);
  color: var(--nd-cream);
}

.admin-flow a.is-active {
  border-color: var(--nd-cream);
  background: rgba(244, 232, 184, 0.12);
  color: var(--nd-cream);
}

.admin-step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(244, 232, 184, 0.16);
  background: rgba(7, 6, 8, 0.36);
}

.admin-step-indicator span,
.admin-step-controls span {
  color: var(--mist-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-step-indicator strong {
  color: var(--nd-cream);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 0.9;
}

.admin-card {
  display: none;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(244, 232, 184, 0.18);
  background: rgba(7, 6, 8, 0.28);
}

.admin-card.is-active {
  display: grid;
}

.admin-card__header {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(244, 232, 184, 0.14);
}

.admin-card__header > span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--nd-cream);
  color: var(--nd-purple);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-card h2,
.admin-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-card__header p,
.image-uploader p,
.gallery-uploader p {
  margin: 0.35rem 0 0;
  color: rgba(247, 241, 223, 0.58);
  line-height: 1.5;
}

.admin-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-list button {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  border: 1px solid rgba(244, 232, 184, 0.16);
  background: transparent;
  color: var(--warm-white);
  cursor: pointer;
  padding: 0.75rem;
  text-align: left;
}

.admin-list button.is-active {
  border-color: var(--acid);
}

.admin-list span,
.admin-url {
  color: rgba(247, 241, 223, 0.58);
  font-size: 0.85rem;
}

.admin-field-hint {
  margin: 0;
  color: rgba(247, 241, 223, 0.58);
  line-height: 1.55;
}

.admin-form fieldset {
  border: 1px solid rgba(244, 232, 184, 0.16);
  padding: clamp(1rem, 2vw, 1.2rem);
  background: rgba(247, 241, 223, 0.025);
}

.admin-inline-fieldset {
  display: grid;
  gap: 1rem;
}

.admin-form legend {
  padding: 0 0.4rem;
  color: var(--nd-cream);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.image-uploader-grid {
  display: grid;
  gap: 1rem;
}

.image-uploader,
.gallery-uploader {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(244, 232, 184, 0.14);
  background: rgba(247, 241, 223, 0.035);
  padding: 1rem;
}

.image-uploader--compact {
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  align-items: stretch;
}

.image-uploader--compact .image-uploader__preview {
  min-height: 180px;
}

.image-uploader__preview {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(244, 232, 184, 0.24);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(247, 241, 223, 0.52);
}

.image-uploader__preview img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.image-uploader__preview small {
  display: block;
  width: 100%;
  padding: 0.45rem;
  overflow: hidden;
  color: rgba(247, 241, 223, 0.7);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-uploader__body {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--nd-cream);
  background: var(--nd-cream);
  color: var(--nd-purple);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.upload-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.upload-button.is-loading {
  color: transparent;
  opacity: 0.62;
  pointer-events: none;
}

.upload-button.is-loading::after {
  position: absolute;
  content: "Processando...";
  color: var(--nd-purple);
}

.upload-button--wide {
  width: 100%;
}

.admin-advanced {
  border: 1px solid rgba(244, 232, 184, 0.12);
  padding: 0.65rem;
}

.admin-advanced summary {
  cursor: pointer;
  color: rgba(247, 241, 223, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-advanced[open] summary {
  margin-bottom: 0.75rem;
}

.admin-path-label {
  font-size: 0.82rem;
}

.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}

.admin-gallery-item {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  border: 1px solid rgba(244, 232, 184, 0.14);
  padding: 0.45rem;
}

.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.admin-gallery-item figcaption {
  overflow: hidden;
  color: rgba(247, 241, 223, 0.58);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-gallery {
  margin: 0;
  border: 1px dashed rgba(244, 232, 184, 0.18);
  color: rgba(247, 241, 223, 0.58);
  padding: 1rem;
}

.admin-repeater {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-repeater-item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(244, 232, 184, 0.14);
  background: rgba(7, 6, 8, 0.24);
}

.admin-repeater-heading {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.admin-mini-button {
  border: 1px solid rgba(244, 232, 184, 0.28);
  background: transparent;
  color: var(--warm-white);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-step-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(244, 232, 184, 0.16);
  background: rgba(7, 6, 8, 0.28);
}

.admin-step-controls .button:last-child {
  justify-self: end;
}

.admin-step-controls span {
  justify-self: center;
  text-align: center;
}

.admin-actions--sticky {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(244, 232, 184, 0.16);
  background: rgba(7, 6, 8, 0.34);
}

.export-box {
  display: none;
}

.export-box.is-visible {
  display: block;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}

.image-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 1px solid rgba(244, 232, 184, 0.42);
  background: rgba(7, 6, 8, 0.82);
  color: var(--warm-white);
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  font-weight: 900;
}

.image-lightbox__frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(1120px, 100%);
}

.image-lightbox__frame img {
  width: 100%;
  max-height: calc(100svh - 6rem);
  object-fit: contain;
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }

  .section--split,
  .course-about,
  .coordinator-section,
  .language-section {
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  }

  .coordinator-photo {
    grid-row: 1 / span 2;
  }

  .coordinator-photo + .coordinator-section__intro,
  .coordinator-photo ~ .coordinator-section__bio {
    grid-column: 2;
  }

  .workshop-card {
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  }

  .records-strip,
  .course-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .program-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-hero {
    grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  }

  .course-commerce {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .form-row--two {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: minmax(260px, 0.28fr) minmax(0, 1fr);
  }

  .admin-panel {
    position: sticky;
    top: 5.8rem;
  }

  .image-uploader-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-uploader {
    grid-template-columns: minmax(180px, 0.52fr) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .admin-route-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 621px) and (max-width: 899px) {
  .section--split,
  .course-about,
  .coordinator-section,
  .language-section,
  .workshop-card,
  .course-hero,
  .course-commerce {
    grid-template-columns: 1fr;
  }

  .course-commerce {
    min-height: 0;
  }

  .commerce-panel {
    min-height: auto;
  }

  .program-grid,
  .records-strip,
  .course-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.4rem;
  }

  .brand span {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    display: none;
  }

  .header-admin-mobile {
    display: none;
  }

  body[data-page="admin"] .admin-shell {
    display: none;
  }

  body[data-page="admin"] .admin-login,
  body[data-page="admin"] .admin-app {
    display: none !important;
  }

  body[data-page="admin"] .admin-mobile-gate {
    display: grid;
    min-height: 100svh;
    align-content: center;
    gap: 1rem;
    padding: 7rem 1rem 3rem;
  }

  .admin-mobile-gate h1 {
    max-width: 8ch;
    color: var(--nd-cream);
    font-size: clamp(3rem, 18vw, 4.6rem);
    line-height: 0.82;
  }

  .admin-mobile-gate p:not(.eyebrow) {
    max-width: 34rem;
    color: rgba(247, 241, 223, 0.74);
    line-height: 1.6;
  }

  .home-hero,
  .course-hero {
    padding-top: 6.5rem;
  }

  .course-hero__image {
    height: clamp(220px, 70vw, 300px);
    min-height: 0;
  }

  .course-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 4.2rem);
    line-height: 0.92;
  }

  .course-commerce {
    min-height: 0;
  }

  .commerce-panel {
    min-height: auto;
  }

  .course-gallery {
    grid-template-columns: 1fr;
  }

  .language-switcher button {
    min-width: 1.7rem;
    padding-inline: 0.25rem;
  }

  .workshop-card dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .section--records h2,
  .section--faq h2 {
    font-size: clamp(1.6rem, 6.4vw, 2.2rem);
  }

  .workshop-card h3 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 3.6rem;
    height: 3.6rem;
    min-width: 3.15rem;
    justify-content: center;
    padding: 0.5rem;
  }

  .floating-whatsapp__icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .floating-whatsapp__copy {
    display: none;
  }

  .admin-route-nav {
    grid-template-columns: repeat(4, minmax(13.5rem, 1fr));
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }

  .admin-route-nav a {
    min-width: 13.5rem;
  }

  .admin-step-controls {
    grid-template-columns: 1fr;
  }

  .admin-step-controls .button,
  .admin-step-controls .button:last-child {
    justify-self: stretch;
    width: 100%;
  }

  .admin-flow {
    grid-template-columns: 1fr 1fr;
  }
}
