:root {
  --bg: #080a12;
  --bg-2: #0d111c;
  --text: #f4f7fb;
  --muted: #b7c1d4;
  --muted-soft: #96a2b8;
  --line: rgba(244, 247, 251, 0.15);
  --line-strong: rgba(244, 247, 251, 0.23);
  --accent: #6fe7f2;
  --accent-2: #9b8cff;
  --max: 980px;
  --copy: 680px;
  --gutter: 28px;
  --section-gap: clamp(58px, 7.5vw, 88px);
  --section-pad: clamp(30px, 4.5vw, 46px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 70px) + 24px);
}

body {
  margin: 0;
  padding-top: calc(var(--header-height, 70px) + 1px);
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(111, 231, 242, 0.15), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(155, 140, 255, 0.13), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 55%, #07070b);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 18px max(var(--gutter), calc((100vw - var(--max)) / 2)) 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  background: linear-gradient(90deg,
    rgba(8, 10, 18, 0.96) 0%,
    rgba(8, 10, 18, 0.91) 7%,
    rgba(8, 10, 18, 0.88) 18%,
    rgba(8, 10, 18, 0.88) 82%,
    rgba(8, 10, 18, 0.91) 93%,
    rgba(8, 10, 18, 0.96) 100%);
  border-bottom: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(244, 247, 251, 0.04) 8%,
    var(--line) 22%,
    var(--line) 78%,
    rgba(244, 247, 251, 0.04) 92%,
    transparent 100%);
}

.top-title {
  grid-column: 1;
  min-width: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.top-title-latin {
  direction: ltr;
  unicode-bidi: isolate;
}

.main-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.language-switcher {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.language-switcher a {
  min-width: 0;
  padding: 2px 0;
  border-radius: 0;
  color: var(--muted-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher .active-lang {
  color: var(--accent);
  background: transparent;
}

/* Main layout */
.page {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.page {
  padding: clamp(48px, 7vw, 82px) 0 0;
}

.hero {
  padding-bottom: 2px;
}

/* Unified eyebrow labels used above every primary section. */
.edition,
.section-label,
.section-marker {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: start;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  text-wrap: balance;
}

h1 {
  line-height: 1;
}

.impossible-word {
  display: block;
  font-size: clamp(4.8rem, 15vw, 12.5rem);
  font-weight: 650;
  letter-spacing: -0.095em;
  line-height: 0.92;
}

.im {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: -0.06em;
}

.festival-line {
  display: block;
  margin-top: clamp(24px, 3.7vw, 46px);
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tagline {
  max-width: 660px;
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3.5vw, 3.15rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.description {
  max-width: var(--copy);
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.72;
}

.about,
.why-submit,
.categories,
.submission {
  margin-top: var(--section-gap);
  padding-top: var(--section-pad);
  border-top: 1px solid var(--line);
}

h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4.8vw, 4.5rem);
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.about > p:not(.section-label),
.why-submit > p:not(.section-label),
.submission > p:not(.section-label),
.sponsorship > p:not(.section-label) {
  max-width: var(--copy);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.about p + p,
.why-submit p + p,
.sponsorship p + p {
  margin-top: 17px;
}

.about strong,
.why-submit strong,
.sponsorship strong {
  color: var(--text);
}

.founder-note {
  padding-top: 5px;
}

.founder-note a {
  color: inherit;
  font-weight: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.founder-note a:hover,
.founder-note a:focus-visible {
  color: var(--text);
}

.sponsorship a,
.inline-legal-link,
.legal-content a,
.legal-back {
  color: var(--accent);
  text-underline-offset: 4px;
}

/* Categories */
.category-list {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.category-item {
  border-bottom: 1px solid var(--line);
}

.category-item summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.category-item summary::-webkit-details-marker {
  display: none;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.plus {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.category-item[open] .plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.category-item p {
  max-width: var(--copy);
  margin: -2px 0 20px 40px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

/* Use the category list's final border as the only transition rule. */
.categories + .submission {
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 0;
  border-top: 0;
}

/* Dates and deadlines */
.dates-panel {
  max-width: 760px;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(111, 231, 242, 0.045), rgba(155, 140, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dates-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.dates-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.event-format-note {
  margin: 0 !important;
  color: var(--muted-soft) !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  text-align: end;
}

.dates-list {
  margin: 0;
}

.date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(244, 247, 251, 0.09);
}

.date-row:last-child {
  border-bottom: 0;
}

.date-row dt,
.date-row dd {
  margin: 0;
  line-height: 1.45;
}

.date-row dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.date-row dd {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.date-row:first-child dd {
  color: var(--accent);
}

/* Buttons and actions */
.submission-actions,
.support-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid rgba(111, 231, 242, 0.42);
  border-radius: 999px;
  color: var(--text);
  background: rgba(111, 231, 242, 0.065);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(155, 140, 255, 0.68);
  background: rgba(111, 231, 242, 0.1);
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(111, 231, 242, 0.7);
  outline-offset: 4px;
}

.official-ff-button {
  width: 190px;
  height: 50px;
  min-width: 190px;
  min-height: 50px;
  padding: 8px 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(111, 231, 242, 0.14), rgba(155, 140, 255, 0.16)),
    var(--bg-2);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  line-height: 0;
}

.official-ff-button:hover,
.official-ff-button:focus-visible {
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(111, 231, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  filter: brightness(1.08);
}

.official-ff-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-button {
  min-width: 190px;
}

.payment-note,
.support-terms-note {
  margin-top: 0 !important;
  color: var(--muted-soft) !important;
  font-size: 0.88rem !important;
  line-height: 1.58 !important;
}

/* Sponsorship */
.sponsorship {
  margin-top: var(--section-gap);
  padding: var(--section-pad) 0 clamp(58px, 7vw, 78px);
  border-top: 1px solid var(--line);
}

.sponsorship h2 {
  max-width: 790px;
}

/* Legal document pages */
body.legal-document {
  background: var(--bg);
}

body.legal-document::before {
  display: none;
}

.legal-page {
  width: min(calc(100% - (var(--gutter) * 2)), 860px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) 0 68px;
}

.legal-hero {
  max-width: 760px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-hero .section-label {
  margin-bottom: 11px;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.14;
  text-align: start;
}

.legal-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.legal-effective {
  margin: 13px 0 0;
  color: var(--muted-soft);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

.legal-content {
  max-width: 760px;
}

.legal-content section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  max-width: 720px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.45;
  text-align: start;
}

.legal-content p,
.legal-content li {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.legal-content p {
  margin: 11px 0 0;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-inline-start: 1.25rem;
}

.legal-content strong {
  color: var(--text);
}

.legal-back {
  display: inline-flex;
  margin-top: 24px;
  font-size: 0.88rem;
}

/* French optical adjustments for longer headings */
html[lang="fr"] h2 {
  max-width: 820px;
  font-size: clamp(2.02rem, 4.5vw, 4.22rem);
}

html[lang="fr"] .legal-content h2 {
  font-size: 1.08rem;
}

/* RTL */
html[dir="rtl"] body {
  font-family: "Vazirmatn", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[dir="rtl"] .site-header {
  /* Keep the global header layout consistent across all languages:
     festival name on the left, language links on the right. */
  direction: ltr;
}

html[dir="rtl"] .main-nav {
  /* Preserve natural Persian text shaping without reversing the header grid. */
  direction: rtl;
}

html[dir="rtl"] .top-title,
html[dir="rtl"] .impossible-word,
html[dir="rtl"] .festival-line,
html[dir="rtl"] .official-ff-button {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  direction: ltr;
}

html[dir="rtl"] .hero h1 {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] h2 {
  letter-spacing: -0.025em;
}

html[dir="rtl"] .section-marker,
html[dir="rtl"] .section-label {
  font-family: "Vazirmatn", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: none;
}

html[dir="rtl"] .category-item summary {
  grid-template-columns: minmax(0, 1fr) 26px;
}

html[dir="rtl"] .category-name {
  grid-column: 1;
  grid-row: 1;
}

html[dir="rtl"] .plus {
  grid-column: 2;
  grid-row: 1;
}

html[dir="rtl"] .category-item p {
  margin-right: 40px;
  margin-left: 0;
}

html[dir="rtl"] .submission-actions,
html[dir="rtl"] .support-actions {
  align-items: flex-start;
}

html[dir="rtl"] .event-format-note {
  text-align: start;
}

html[dir="rtl"] .date-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Responsive */
@media (max-width: 760px) {
  body {
    padding-top: calc(var(--header-height, 118px) + 1px);
  }

  :root {
    --gutter: 22px;
    --section-gap: 54px;
    --section-pad: 30px;
  }

  html {
    scroll-padding-top: calc(var(--header-height, 118px) + 20px);
  }

  .dates-panel-head {
    display: block;
    padding: 18px;
  }

  .event-format-note {
    margin-top: 6px !important;
    text-align: start;
  }

  .date-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 12px 18px;
  }

  .date-row dd {
    white-space: normal;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title language"
      "navigation navigation";
    row-gap: 13px;
    column-gap: 16px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .top-title {
    grid-area: title;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.94rem;
  }

  .language-switcher {
    grid-area: language;
    justify-self: end;
  }

  .main-nav {
    grid-area: navigation;
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 9px 15px;
    padding-top: 11px;
    border-top: 1px solid rgba(244, 247, 251, 0.09);
  }

  .main-nav a {
    font-size: 0.75rem;
  }

  .page {
    padding-top: 42px;
  }

  .impossible-word {
    font-size: clamp(3.8rem, 19vw, 7rem);
  }

  .festival-line {
    margin-top: 20px;
    font-size: clamp(1.7rem, 7.2vw, 2.65rem);
  }

  .tagline {
    margin-top: 26px;
  }

  .description {
    margin-top: 22px;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    line-height: 1.04;
  }

  html[lang="fr"] h2 {
    font-size: clamp(1.9rem, 9.2vw, 3.25rem);
  }

  .about > p:not(.section-label),
  .why-submit > p:not(.section-label),
  .submission > p:not(.section-label),
  .sponsorship > p:not(.section-label) {
    font-size: 1rem;
    line-height: 1.7;
  }

  .category-item summary {
    min-height: 58px;
    padding: 14px 0;
  }

  .category-item p {
    margin-left: 40px;
    font-size: 0.95rem;
  }

  html[dir="rtl"] .category-item p {
    margin-right: 40px;
    margin-left: 0;
  }

  .official-ff-button {
    width: min(290px, 88vw);
  }

  .sponsorship {
    padding-bottom: 54px;
  }

  .legal-page {
    padding-top: 34px;
  }

  .legal-hero {
    padding-bottom: 25px;
  }

  .legal-content section {
    padding: 20px 0;
  }
}

@media (max-width: 430px) {
  .main-nav {
    gap: 8px 13px;
  }

  .main-nav a {
    font-size: 0.72rem;
  }

  .language-switcher {
    gap: 10px;
  }

  .language-switcher a {
    min-width: 0;
    padding-inline: 0;
  }

  .section-marker,
  .section-label {
    font-size: 0.71rem;
    letter-spacing: 0.16em;
  }

  html[dir="rtl"] .section-marker,
  html[dir="rtl"] .section-label {
    font-size: 0.78rem;
  }
}

/* Floating back-to-top control */
.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 900;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 247, 251, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.82);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(111, 231, 242, 0.55);
  background: rgba(13, 17, 28, 0.94);
  color: var(--accent);
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: max(18px, env(safe-area-inset-left));
}

@media (max-width: 760px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  html[dir="rtl"] .back-to-top {
    right: auto;
    left: max(14px, env(safe-area-inset-left));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent, #ffffff);
}

.submission-terms-note {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Resilient fixed-header spacing and narrow-screen navigation */
@media (max-width: 390px) {
  .site-header {
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .main-nav {
    gap: 7px 11px;
    padding-top: 9px;
  }

  .main-nav a {
    font-size: 0.69rem;
    line-height: 1.25;
  }

  .top-title {
    font-size: 0.9rem;
  }
}

/* Site footer */
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
  padding: 44px 0 28px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.22) 18%, rgba(255,255,255,0.22) 82%, transparent) 1;
}

.footer-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, .75fr) minmax(180px, .9fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-kicker,
.footer-heading {
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 650;
}

.footer-kicker {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.025em;
}

.footer-heading {
  color: var(--muted-soft);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-edition {
  max-width: 440px;
  margin: 7px 0 0;
  color: var(--muted-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.footer-email {
  display: inline-block;
  margin-top: 18px;
  color: var(--text);
  font-size: 0.92rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-email:hover,
.footer-email:focus-visible,
.footer-column > a:hover,
.footer-column > a:focus-visible {
  color: var(--accent);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column > a {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.footer-socials {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
}

.footer-socials a {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.76);
  opacity: 0.86;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}

.footer-socials svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials svg .fill {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--text);
}

html[dir="rtl"] .footer-brand {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .footer-column {
  direction: rtl;
  text-align: right;
  align-items: flex-end;
}

html[dir="rtl"] .footer-socials {
  direction: ltr;
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .site-footer {
    width: min(100% - 28px, 1180px);
    margin-top: 56px;
    padding-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
}

/* Submission fee waiver */
.fee-waiver-copy {
  max-width: var(--copy);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.fee-waiver-copy strong {
  color: var(--text);
  font-weight: 700;
}

.fee-waiver-copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fee-waiver-copy a:hover,
.fee-waiver-copy a:focus-visible {
  color: var(--accent);
}
