/* =========================================================
   Pushback Fund – design system
   Body: black on white (YouWouldNever typography)
   Hero: campaign brown + pink
   ========================================================= */

:root {
  --c-hero-brown: #4b1a0d;
  --c-hero-pink:  #f4a7b9;
  --c-hero-pink-d: #e88da3;
  --c-ink:        #000000;
  --c-muted:      #444444;
  --c-line:       #00000018;
  --c-white:      #ffffff;
  --c-gray-bg:    #f5f5f5;
  --c-hero-yellow:   #F4C24A;
  --c-hero-yellow-d: #E0AB30;

  --radius:       14px;
  --radius-lg:    22px;
  --header-h:     72px;
  --container:    1180px;
  --donate-overlap: clamp(3.5rem, 7vw, 6rem);

  --ff-display: 'Anton', 'Bebas Neue', 'Impact', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; -webkit-user-select: none; user-select: none; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.6rem;
}
.lead {
  font-size: 1.08rem;
  color: var(--c-muted);
  max-width: 42rem;
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
  white-space: nowrap;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(100% - 2.5rem, 680px); text-align: center; }
.container.narrow-left { width: min(100% - 2.5rem, 760px); text-align: center; }

@media (min-width: 600px) {
  .container, .container.narrow, .container.narrow-left {
    width: min(100% - 4rem, var(--container));
  }
  .container.narrow { width: min(100% - 4rem, 680px); }
  .container.narrow-left { width: min(100% - 4rem, 760px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-muted);
  border-color: var(--c-muted);
}

.btn-donate {
  background: var(--c-ink);
  border: 2px solid var(--c-ink);
  color: var(--c-white);
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}
.btn-donate:hover {
  background: var(--c-muted);
  border-color: var(--c-muted);
}

.btn-hero {
  background: var(--c-hero-pink);
  border-color: var(--c-hero-pink);
  color: var(--c-hero-brown);
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-hero:hover {
  background: var(--c-hero-pink-d);
  border-color: var(--c-hero-pink-d);
}

/* =========================================================
   Cookie consent (bottom bar; optional Google Analytics)
   ========================================================= */
body.has-cookie-consent-prompt { padding-bottom: 8.5rem; }
@media (min-width: 720px) {
  body.has-cookie-consent-prompt { padding-bottom: 5.5rem; }
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}
.cookie-consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-consent__copy { flex: 1 1 16rem; min-width: 0; }
.cookie-consent__title {
  margin: 0 0 0.4rem;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ink);
}
.cookie-consent__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--c-muted);
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.cookie-consent__actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}
.cookie-consent__necessary {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.cookie-consent__necessary:hover {
  border-color: var(--c-ink);
  background: var(--c-gray-bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--c-line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.05;
}
.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text { display: block; }
.brand-text__org { color: var(--c-hero-pink); }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.primary-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hamburger {
  width: 40px; height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  margin-inline: auto;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.4rem;
  background: var(--c-gray-bg);
  border-top: 1px solid var(--c-line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 0.8rem 0.4rem;
  border-bottom: 1px solid var(--c-line);
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav .btn-donate { margin-top: 0.6rem; }

/* Hero */
.hero {
  background: var(--c-hero-brown);
  color: var(--c-hero-pink);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.hero-eyebrow { color: var(--c-white); }
.hero-title {
  color: var(--c-hero-pink);
  margin-bottom: 0.15em;
}
.hero-sub {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: var(--c-hero-yellow);
}
.hero-lede {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-hero-pink);
  max-width: 34rem;
}
.hero-link {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-link:hover { color: var(--c-white); }

/* Donate card (Schaamteloos-style popout) */
.hero-donate-card {
  position: relative;
  z-index: 2;
  margin-bottom: calc(-1 * var(--donate-overlap));
}
.hero-donate-card__inner {
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
}
.donate-eyebrow { color: var(--c-muted); }
.donate-card-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-ink);
  margin-bottom: 0.35em;
}
.donate-card-intro {
  font-size: 0.95rem;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.donate-card-link {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.donate-card-link:hover { color: var(--c-muted); }

/* Forms */
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.field-wide { grid-column: 1 / -1; }
.field:not(.checkbox) > span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.field-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  background: var(--c-white);
}
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  background: var(--c-white);
  resize: vertical;
  min-height: 8rem;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--c-ink);
}
.field.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.field.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.field.checkbox .checkbox-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.field.checkbox:hover .checkbox-box { border-color: var(--c-ink); }
.field.checkbox input:checked + .checkbox-box {
  background: var(--c-ink);
  border-color: var(--c-ink);
}
.field.checkbox input:checked + .checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--c-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}
.field.checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}
.field.checkbox span:last-child {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.input-affix {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  background: var(--c-white);
  overflow: hidden;
}
.input-affix:focus-within { border-color: var(--c-ink); }
.input-affix__prefix {
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: var(--c-gray-bg);
  font-weight: 600;
  border-right: 1px solid #ccc;
}
.input-affix > input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
}
.input-affix > input:focus { outline: 0; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}
.amount-pill { position: relative; }
.amount-pill input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.amount-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.25rem;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.amount-pill input:checked + span,
.amount-pill span:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}

.form-fineprint {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin: 0.75rem 0 0;
}
.form-error {
  color: #b0143a;
  font-size: 0.92rem;
  margin-top: 0.75rem;
}
.form-success {
  color: #2d6a2d;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Progress section – pink background, brown text/vectors */
.section.section-progress {
  position: relative;
  z-index: 1;
  background: var(--c-hero-pink);
  color: var(--c-hero-brown);
  padding: calc(clamp(2.5rem, 5vw, 4rem) + var(--donate-overlap)) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.progress-title {
  color: var(--c-hero-brown);
  margin-bottom: 1.5rem;
}
.progress-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 5rem);
  margin-bottom: 1rem;
  text-align: center;
}
.progress-stat--right { text-align: center; }
.progress-stat__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-hero-brown);
  opacity: 0.75;
  margin-bottom: 0.25rem;
}
.progress-stat__value {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--c-hero-brown);
}
.progress-bar {
  height: 12px;
  background: rgba(75, 26, 13, 0.12);
  border: 2px solid var(--c-hero-brown);
  margin-bottom: 0.75rem;
}
.progress-bar__fill {
  height: 100%;
  background: var(--c-hero-yellow);
}
.progress-percent {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-hero-brown);
  margin-bottom: 1.5rem;
}
.section-progress .btn-hero {
  background: var(--c-hero-brown);
  border-color: var(--c-hero-brown);
  color: var(--c-hero-yellow);
}
.section-progress .btn-hero:hover {
  background: #3a1409;
  border-color: #3a1409;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section .container {
  text-align: center;
}
.section-about { border-bottom: 1px solid var(--c-line); }
.section-about h2 {
  max-width: 16em;
  margin-inline: auto;
}
.section-initiators { background: var(--c-gray-bg); }
.section-backers { border-bottom: 1px solid var(--c-line); }
.section-news { background: var(--c-gray-bg); }
.section-faq { border-bottom: 1px solid var(--c-line); }
.section-join { background: var(--c-gray-bg); }
.section-newsletter {
  background: var(--c-gray-bg);
  border-top: 1px solid var(--c-line);
  text-align: center;
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}
.prose h3 { margin-top: 2rem; }
.bullets {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}
.bullets li { margin-bottom: 0.5rem; }

/* Org grids */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.org-list,
.backers-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.org-list li,
.backers-grid li {
  padding: 0;
}

.coalition-link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--c-line);
}
.coalition-link__site {
  grid-column: 2;
  display: block;
  padding: 0.45rem 0;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s ease;
}
.coalition-link__site:hover,
.coalition-link__site:focus-visible {
  opacity: 0.65;
}
.coalition-link__ig {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0 0.45rem 0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.coalition-link:hover .coalition-link__ig,
.coalition-link:focus-within .coalition-link__ig {
  opacity: 0.45;
}
.coalition-link__ig:hover,
.coalition-link__ig:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .coalition-link__ig { opacity: 0.35; }
}

.org-list .coalition-link__site {
  font-family: var(--ff-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

.backers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.coalition-link--backer .coalition-link__site {
  font-size: 0.95rem;
  color: var(--c-muted);
}
.coalition-link--backer .coalition-link__site:hover,
.coalition-link--backer .coalition-link__site:focus-visible {
  color: var(--c-ink);
  opacity: 1;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* News logos */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.news-grid > li {
  min-width: 0;
}
.news-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: 28px;
  background: var(--c-white);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.news-logo__img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.news-logo__img--dark {
  mix-blend-mode: multiply;
  filter: none;
}
.news-logo:hover .news-logo__img,
.news-logo:focus-visible .news-logo__img {
  opacity: 1;
  filter: grayscale(1);
}
.news-logo:hover .news-logo__img--dark,
.news-logo:focus-visible .news-logo__img--dark {
  filter: none;
}
.news-logo:hover,
.news-logo:focus-visible {
  border-color: var(--c-ink);
}

/* FAQ */
.faq-list { margin: 2rem 0 0; }
.faq-item {
  border-bottom: 1px solid var(--c-line);
  padding: 1.25rem 0;
}
.faq-item dt {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.faq-item dd {
  margin: 0;
  color: var(--c-muted);
}

/* Backer form */
.backer-form {
  max-width: 28rem;
  margin: 2rem auto 0;
  text-align: left;
}
.backer-form .field.checkbox { margin-bottom: 0; }
.backer-form > .btn { margin-top: 1.75rem; }

/* Newsletter */
.newsletter-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.newsletter-lead {
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 640px;
  margin: 0 auto;
}
.newsletter-form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}
.newsletter-form-error {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--c-ink);
  background: rgba(0, 0, 0, 0.06);
}
.newsletter-success-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-success-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--c-muted);
}
.newsletter-form input[type="email"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 0.95rem 1.1rem 0.95rem 1.45rem;
  border-radius: 999px;
  border: 0;
  background: var(--c-white);
  color: var(--c-ink);
  text-align: left;
  box-shadow: inset 0 0 0 1px #ccc;
}
.newsletter-form input[type="email"]::placeholder {
  color: #777;
  font-style: italic;
}
.newsletter-form input[type="email"]:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--c-ink);
}
.newsletter-form input[type="email"]:disabled {
  opacity: 0.78;
  cursor: not-allowed;
}
.newsletter-form .btn-primary {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0.95rem 1.4rem;
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
  box-shadow: none;
}
.newsletter-form .btn-primary:hover {
  background: var(--c-muted);
  border-color: var(--c-muted);
}
.newsletter-form button.is-loading.btn-primary:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}
.newsletter-form .btn-spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: newsletter-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.newsletter-form button.is-loading .btn-spinner {
  display: block;
}
@keyframes newsletter-spin {
  to { transform: rotate(360deg); }
}

/* Contact page */
.contact-page { min-height: calc(100vh - var(--header-h)); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
}
.contact-intro {
  background: var(--c-gray-bg);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.contact-intro__inner {
  max-width: 34rem;
}
.contact-intro__text { margin-inline: 0; text-align: left; }
.contact-form-panel {
  background: var(--c-white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.contact-form-panel__inner { max-width: 40rem; }
.contact-form-section { margin-bottom: 1.75rem; }
.contact-form-section__label {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.subject-list {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid #ccc;
}
.subject-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  border-bottom: 1.5px solid #ccc;
  transition: background 0.15s ease;
}
.subject-option:last-child { border-bottom: 0; }
.subject-option:hover { background: var(--c-gray-bg); }
.subject-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--c-ink);
}
.subject-option__text {
  font-size: 0.95rem;
  line-height: 1.45;
}
.subject-option:has(input:checked) {
  background: var(--c-gray-bg);
}
.field-feedback {
  margin: -0.5rem 0 0.75rem;
  padding: 0.45rem 0.85rem;
  background: var(--c-hero-brown);
  color: var(--c-white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-style: italic;
}
.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.contact-done {
  text-align: center;
  padding: 2rem 0;
}
.contact-done h2 { margin-bottom: 0.75rem; }
.contact-done .btn { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    min-height: calc(100vh - var(--header-h));
  }
  .contact-intro,
  .contact-form-panel {
    display: flex;
    align-items: center;
    padding-block: 4rem;
  }
  .contact-intro__inner,
  .contact-form-panel__inner {
    width: min(100% - 2.5rem, 34rem);
    margin-inline: auto;
  }
  .contact-form-panel__inner { max-width: 36rem; }
}

/* Footer */
.site-footer {
  background: var(--c-gray-bg);
  border-top: 1px solid var(--c-line);
  padding: 2.5rem 0 2rem;
}
.footer-contact {
  text-align: center;
}
.footer-instagram {
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.footer-instagram a {
  color: var(--c-ink);
  font-weight: 500;
}
.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.footer-collab {
  color: var(--c-muted);
  margin-bottom: 0.15rem;
}
.footer-org {
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}
.footer-contact a { color: var(--c-ink); }
.footer-year {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr 1fr; }
  .backers-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .btn-donate span { display: none; }
  .org-grid { grid-template-columns: 1fr; }
  .backers-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .progress-stats { flex-direction: column; align-items: center; }
  .newsletter-form-row { flex-direction: column; }
  .newsletter-form .btn-primary { width: 100%; }
}

@media (max-width: 480px) {
  .hero-donate-card__inner {
    border-radius: 0;
    margin-inline: -1.25rem;
  }
}
.page-affiliate-reports {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  --reports-gutter: clamp(1.25rem, 2vw + 0.5rem, 2.5rem);
  --reports-content-max: var(--container);
}
.page-affiliate-reports .container {
  width: min(100% - 2 * var(--reports-gutter), var(--reports-content-max));
  max-width: var(--reports-content-max);
  margin-inline: auto;
}
.page-affiliate-reports .site-header > .container.header-inner {
  width: min(100% - 2 * var(--reports-gutter), var(--reports-content-max));
  max-width: var(--reports-content-max);
}
.page-affiliate-reports .site-header {
  flex-shrink: 0;
}
.page-affiliate-reports .affiliate-reports-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.page-affiliate-reports .affiliate-reports-main-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.page-affiliate-reports.is-affiliate-preauth .affiliate-reports-main-inner {
  justify-content: center;
}
.page-affiliate-reports.is-affiliate-preauth .affiliate-reports-dashboard, .page-affiliate-reports.page-reports-sub.is-affiliate-preauth .affiliate-dash-inner {
  flex: 0 1 auto;
  padding-top: clamp(1rem, 4vw, 2rem);
  padding-bottom: clamp(1rem, 4vw, 2rem);
}
.page-affiliate-reports .site-footer {
  flex-shrink: 0;
}
.page-reports-hub .reports-hub-hero, .page-reports-hub .reports-sub-hero, .page-reports-sub .reports-sub-hero {
  padding: clamp(1rem, 4vw, 2rem) 0;
  margin-bottom: 0.25rem;
}
.page-reports-hub .reports-sub-hero .container, .page-reports-sub .reports-sub-hero .container {
  max-width: var(--container);
  text-align: center;
}
.page-reports-hub .reports-sub-hero .affiliate-dash-intro, .page-reports-sub .reports-sub-hero .affiliate-dash-intro {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
.page-reports-hub .reports-sub-hero .eyebrow, .page-reports-sub .reports-sub-hero .eyebrow {
  display: inline-block;
}
.page-reports-hub .reports-sub-hero .reports-hub-title, .page-reports-sub .reports-sub-hero .reports-hub-title {
  margin: 0.35rem auto 0;
  max-width: none;
  text-align: center;
}
.page-reports-hub .reports-sub-hero .lead, .page-reports-sub .reports-sub-hero .reports-hero-total, .page-reports-sub .reports-sub-hero .subtle {
  display: block;
  margin: 0.5rem auto 0;
  max-width: 42rem;
}
.page-reports-sub .reports-sub-hero .reports-hero-total {
  max-width: none;
  margin-bottom: 0;
}
.page-reports-sub .reports-hero {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-top: clamp(0.5rem, 2vw, 1rem);
}
.page-reports-sub .reports-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.page-reports-sub .reports-hero__head .reports-hero__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.page-reports-sub .reports-hero__actions {
  flex: none;
  align-self: center;
}
.page-reports-sub .reports-hero__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8a7a82;
  margin-bottom: 0.65rem;
}
.page-reports-sub .reports-hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.page-reports-sub .reports-hero__sub {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  color: #5c4b52;
  text-align: left;
}
.page-reports-sub .reports-hero .reports-tool-access {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  justify-content: flex-start;
}
.page-reports-sub .reports-hero .reports-switch {
  font-size: 0.88rem;
}
.page-reports-sub .affiliate-reports-main-inner {
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.page-reports-sub .affiliate-dash-inner {
  max-width: var(--reports-content-max, var(--container));
  margin-inline: auto;
}
.page-reports-sub .affiliate-report-block.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}
.page-reports-sub .affiliate-dash-body .reports-pagination .subtle, .page-reports-sub .reports-pagination .subtle {
  margin-bottom: 0;
}
.reports-hub-intro, .reports-hub-title {
  max-width: 840px;
}
.reports-hub-title {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}
.reports-internal-crumb {
  margin: 0 0 1rem;
}
.reports-internal-crumb a {
  font-weight: 600;
}
.reports-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.reports-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.reports-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.reports-hub-card__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.reports-hub-card__desc {
  margin: 0;
  font-size: 0.94rem;
  color: #5c4b52;
  line-height: 1.55;
}
.reports-hub-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-pink-d);
}
.reports-hub-card:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}
.reports-hub-card__access {
  min-height: 32px;
  width: 100%;
  overflow: visible;
}
.reports-tool-access {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 1.25rem;
}
.reports-tool-access--sm {
  margin: 0.35rem 0 0.5rem;
}
.reports-tool-access__members {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  overflow: visible;
}
.reports-tool-access__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--c-line);
  background: #fff;
  color: var(--c-pink-d);
  cursor: pointer;
  padding: 0;
}
.reports-tool-access__add svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.reports-tool-access__add:hover {
  border-color: var(--c-pink);
  background: rgba(230, 42, 136, 0.08);
}
.reports-avatar-wrap {
  position: relative;
  overflow: visible;
}
.reports-avatar-wrap:hover .reports-avatar-tooltip, .reports-avatar-wrap:focus-within .reports-avatar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.reports-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  cursor: default;
  overflow: hidden;
}
.reports-avatar__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}
.reports-avatar-wrap--sm .reports-avatar, .reports-avatar-wrap--sm .reports-avatar__initials {
  width: 28px;
  height: 28px;
}
.reports-avatar-wrap--md .reports-avatar, .reports-avatar-wrap--md .reports-avatar__initials {
  width: 40px;
  height: 40px;
}
.reports-avatar-wrap--sm .reports-avatar__photo {
  width: 28px;
  height: 28px;
}
.reports-avatar-wrap--md .reports-avatar__photo {
  width: 40px;
  height: 40px;
}
.reports-avatar__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--c-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.reports-avatar-wrap--md .reports-avatar__initials {
  font-size: 13px;
}
.reports-avatar-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: none;
  padding: 0.65rem 0.75rem;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
  pointer-events: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.reports-avatar-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #111;
}
.reports-avatar-tooltip__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  display: block;
}
.reports-avatar-tooltip__name {
  display: block;
  font-weight: 600;
  white-space: nowrap;
}
.reports-avatar-tooltip__email {
  display: block;
  margin-top: 0.2rem;
  font-size: 12px;
  font-style: italic;
  opacity: 0.7;
  white-space: nowrap;
}
.reports-profile-avatar-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.reports-profile-avatar-preview {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.reports-profile-avatar-preview__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--c-pink);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}
.reports-profile-avatar-preview.has-photo .reports-profile-avatar-preview__initials {
  display: none;
}
.reports-profile-avatar-preview__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reports-profile-avatar-preview__img[hidden] {
  display: none !important;
}
.reports-profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.reports-profile-avatar-block > .subtle {
  flex: 1 1 100%;
  margin: 0;
}
body.is-reports-crop-open {
  overflow: hidden;
}
.reports-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
}
.reports-crop-modal[hidden] {
  display: none !important;
}
.reports-crop-modal__dialog {
  width: 100%;
  max-width: 360px;
  margin: 0;
}
.reports-crop-modal__viewport {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
  background: #1a1a1a;
  touch-action: none;
  cursor: grab;
}
.reports-crop-modal__viewport:active {
  cursor: grabbing;
}
.reports-crop-modal__image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.reports-crop-modal__form {
  max-width: none;
}
.reports-profile-section-heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.reports-profile-form.reports-team-form {
  max-width: 520px;
}
.reports-profile-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.reports-profile-fieldset legend {
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--c-ink);
  padding: 0;
}
.reports-profile-field-hint {
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
  color: #5c4b52;
}
.reports-profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.reports-profile-photo-label {
  cursor: pointer;
}
.reports-header__user-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.reports-header-online {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.reports-header-online-divider {
  flex: none;
  color: var(--c-line);
  font-size: 15px;
  line-height: 1;
  user-select: none;
}
.reports-header-online:empty + .reports-header-online-divider, .reports-header-online[hidden] + .reports-header-online-divider {
  display: none;
}
.reports-header-online[hidden], .reports-header-user[hidden] {
  display: none;
}
.reports-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5c4b52;
}
.reports-switch__label {
  white-space: nowrap;
}
.reports-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.reports-switch__track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c9c6bd;
  transition: background 0.15s ease;
  flex: none;
}
.reports-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.reports-switch__input:checked + .reports-switch__track {
  background: var(--c-pink);
}
.reports-switch__input:checked + .reports-switch__track .reports-switch__thumb {
  transform: translateX(16px);
}
.reports-switch__input:focus-visible + .reports-switch__track {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
}
.reports-switch--lg .reports-switch__track {
  width: 48px;
  height: 28px;
}
.reports-switch--lg .reports-switch__thumb {
  width: 22px;
  height: 22px;
}
.reports-switch--lg .reports-switch__input:checked + .reports-switch__track .reports-switch__thumb {
  transform: translateX(20px);
}
.reports-modal__enabled {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex: none;
}
.reports-modal__enabled[hidden] {
  display: none !important;
}
.reports-modal__enabled-label {
  font-size: 13px;
  font-weight: 600;
  color: #5c4b52;
  white-space: nowrap;
}
.reports-modal__enabled-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.reports-modal__enabled-side {
  font-size: 13px;
  color: #5c4b52;
  white-space: nowrap;
}
body.is-reports-modal-open {
  overflow: hidden;
}
.reports-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.reports-modal-backdrop[hidden] {
  display: none !important;
}
.reports-modal {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
  max-height: 80vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
}
.reports-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reports-modal__header .reports-modal__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.reports-modal__close {
  flex-shrink: 0;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: #5c4b52;
}
.reports-modal__close:hover {
  color: var(--c-ink);
}
.reports-modal__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reports-modal__intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-ink);
}
.reports-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.reports-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.reports-modal__item {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.reports-modal__item:hover {
  border-color: rgba(230, 42, 136, 0.35);
  background: rgba(230, 42, 136, 0.03);
}
.reports-modal__item--checked {
  border-color: rgba(230, 42, 136, 0.45);
  background: rgba(230, 42, 136, 0.06);
  box-shadow: 0 0 0 1px rgba(230, 42, 136, 0.12);
}
.reports-modal__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  margin: 0;
}
.reports-modal__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
}
.reports-modal__avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}
.reports-modal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.35;
}
.reports-modal__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reports-modal__email {
  font-size: 12px;
  color: #5c4b52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reports-modal__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}
.reports-modal__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-pink);
  cursor: pointer;
}
.reports-sub-card {
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  margin-top: 1rem;
}
.reports-sub-heading {
  font-family: var(--ff-body);
  text-transform: none;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.reports-code {
  font-size: 0.9em;
  background: var(--c-bone-2);
  padding: 0.08em 0.35em;
  border-radius: 6px;
}
.reports-header-user {
  display: flex;
  align-items: center;
}
.reports-user-menu {
  position: relative;
}
.reports-user-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--c-pink);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.reports-user-menu__trigger:hover {
  background: var(--c-pink-d);
}
.reports-user-menu__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  z-index: 1;
}
.reports-user-menu__initials {
  position: relative;
  z-index: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.reports-user-menu__caret {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  color: #5c4b52;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(30, 18, 24, 0.15);
}
.reports-user-menu__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: max-content;
  min-width: 17.5rem;
  max-width: min(100vw - 2rem, 22rem);
  padding: 0.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  z-index: 80;
}
.reports-user-menu__menu[hidden] {
  display: none;
}
.reports-user-menu__head {
  padding: 0.55rem 0.65rem 0.45rem;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 0.25rem;
}
.reports-user-menu__name {
  margin: 0 0 0.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-ink);
}
.reports-user-menu__email {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: #5c4b52;
  white-space: nowrap;
}
.reports-user-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
}
.reports-user-menu__item:hover {
  background: var(--c-bone-2);
}
.reports-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.35rem;
}
.reports-section-head__main {
  display: contents;
}
.reports-section-head__main h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.reports-section-head__main .subtle {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
}
.reports-section-head__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-left: 0;
}
.reports-section-head__menu {
  flex: 0 0 auto;
}
.reports-mollie-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.reports-mollie-toggle__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c4b52;
  white-space: nowrap;
}
.reports-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.reports-toggle__side {
  font-size: 0.88rem;
  font-weight: 500;
  color: #5c4b52;
}
.reports-toggle__control {
  width: 3rem;
  height: 1.75rem;
  padding: 0.2rem;
  border: 0;
  border-radius: 999px;
  background: #9ca3af;
  cursor: pointer;
  transition: background 0.25s ease;
  display: inline-flex;
  align-items: center;
}
.reports-toggle__control.is-on, .reports-toggle__control[aria-pressed="true"] {
  background: var(--c-pink);
}
.reports-toggle__thumb {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(30, 18, 24, 0.2);
  transform: translateX(0);
  transition: transform 0.25s ease;
}
.reports-toggle__control.is-on .reports-toggle__thumb, .reports-toggle__control[aria-pressed="true"] .reports-toggle__thumb {
  transform: translateX(1.25rem);
}
.reports-options-menu {
  position: relative;
}
.reports-options-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
}
.reports-options-menu__trigger:hover {
  background: var(--c-bone-2);
  border-color: #d4c4cb;
}
.reports-options-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  z-index: 40;
}
.reports-options-menu__dropdown[hidden] {
  display: none;
}
.reports-options-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  white-space: nowrap;
}
.reports-options-menu__item:hover:not(:disabled) {
  background: var(--c-bone-2);
}
.reports-options-menu__item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.reports-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--c-bone-2);
  border: 1px solid var(--c-line);
}
.reports-pagination__size {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c4b52;
}
.reports-pagination__select {
  font: inherit;
  font-weight: 500;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
}
.reports-pagination__nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.reports-pagination__status {
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
}
.affiliate-dash-body .reports-pagination .subtle {
  margin-bottom: 0;
}
.affiliate-dash-loading {
  margin: 0.5rem 0 1rem;
}
.affiliate-dash-body .subtle, .affiliate-dash-hero .subtle {
  color: #5c4b52;
  font-size: 0.94rem;
  margin-bottom: 0.75rem;
}
.affiliate-dash-hero .affiliate-dash-intro {
  max-width: 900px;
}
.affiliate-dash-body .affiliate-dash-inner {
  max-width: 1180px;
}
.affiliate-dash-controls.card {
  max-width: 640px;
  margin-bottom: 2rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.affiliate-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}
.affiliate-dash-actions {
  margin-top: 0.5rem;
}
.page-affiliate-reports.is-reports-preauth .affiliate-reports-main {
  flex: 1 1 auto;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}
.page-affiliate-reports.is-reports-preauth .affiliate-reports-main-inner {
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
}
.page-affiliate-reports.is-reports-preauth .affiliate-dash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}
.page-affiliate-reports.is-reports-preauth .affiliate-reports-dashboard {
  width: 100%;
}
.page-affiliate-reports.is-reports-preauth .affiliate-dash-hero, .page-affiliate-reports.is-reports-preauth .reports-sub-hero, .page-affiliate-reports.is-reports-preauth .reports-hero {
  display: none;
}
.page-affiliate-reports.is-reports-auth-pending .affiliate-dash-auth-card {
  visibility: hidden;
  pointer-events: none;
}
.page-affiliate-reports.is-reports-auth-pending .affiliate-reports-main-inner {
  justify-content: center;
  align-items: center;
}
.reports-page-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.page-reports-hub.is-reports-auth-pending .reports-page-loading, .page-reports-hub.is-reports-hub-loading .reports-page-loading {
  display: flex;
}
.reports-page-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--c-line);
  border-top-color: var(--c-pink);
  border-radius: 50%;
  animation: reports-page-spin 0.75s linear infinite;
}
@keyframes reports-page-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reports-page-loading__spinner {
    animation: none;
  }
}
.page-reports-hub.is-reports-hub-loading #reportsHubHero, .page-reports-hub.is-reports-hub-loading #reportsHubPanels {
  visibility: hidden;
  pointer-events: none;
}
.page-affiliate-reports .affiliate-reports-main-inner {
  position: relative;
}
.affiliate-dash-auth-card {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
}
.affiliate-dash-auth-card .affiliate-dash-auth-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}
.affiliate-dash-auth-card .subtle, .affiliate-dash-auth-card .form-error {
  text-align: center;
}
.affiliate-dash-auth-card .form-error {
  margin-top: 0;
  margin-bottom: 0.65rem;
}
.reports-auth-invite-hint {
  margin: 0;
  max-width: none;
  color: #5c4b52;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}
.affiliate-dash-auth-card > .reports-auth-invite-hint {
  margin-bottom: 1.25rem;
}
.reports-auth-form + .reports-auth-invite-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.45rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
}
.reports-auth-invite-hint a {
  font-weight: 600;
  color: var(--c-pink);
  text-decoration: underline;
  text-decoration-color: rgba(230, 42, 136, 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.reports-auth-invite-hint a:hover {
  color: var(--c-pink-d);
  text-decoration-color: currentColor;
}
.reports-auth-invite-hint a:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
  border-radius: 2px;
}
.reports-auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.35rem;
}
.reports-auth-form input[type="email"], .reports-auth-form input[type="password"], .reports-auth-form input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e6d6d0;
  border-radius: 12px;
  background: #fff;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.reports-auth-form input::placeholder {
  color: #9b8893;
}
.reports-auth-form input:focus {
  outline: 0;
  border-color: var(--c-pink);
  box-shadow: 0 0 0 4px rgba(230, 42, 136, 0.15);
}
.reports-auth-form .btn-primary {
  position: relative;
  width: 100%;
  margin-top: 0.15rem;
  justify-content: center;
}
.reports-auth-form .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.reports-auth-form .btn-primary.btn--loading:disabled {
  opacity: 1;
}
.reports-auth-form .btn-primary.btn--loading .btn__label {
  visibility: hidden;
}
.reports-auth-form .btn__spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: reports-auth-btn-spin 0.65s linear infinite;
}
.reports-auth-form .btn-primary.btn--loading .btn__spinner {
  display: block;
}
@keyframes reports-auth-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reports-auth-form .btn__spinner {
    animation: none;
  }
}
.reports-auth-form__forgot {
  align-self: center;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-pink);
  text-decoration: none;
}
.reports-auth-form__forgot:hover {
  color: var(--c-pink-d);
  text-decoration: underline;
}
.reports-password-field {
  width: 100%;
  text-align: left;
}
.reports-password-field__control {
  position: relative;
  width: 100%;
}
.reports-password-field__input {
  padding-right: 5.75rem !important;
}
.reports-password-field__meter {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1;
}
.reports-password-field__meter--empty {
  color: transparent;
}
.reports-password-field__meter--weak {
  color: #b42318;
}
.reports-password-field__meter--fair {
  color: #b54708;
}
.reports-password-field__meter--strong {
  color: #1a6b3c;
}
.reports-password-field__rules {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.reports-password-field__rule {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #5c4b52;
  padding-left: 1.35rem;
  position: relative;
}
.reports-password-field__rule::before {
  content: "○";
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #c8b8be;
}
.reports-password-field__rule.is-met {
  color: var(--c-ink);
}
.reports-password-field__rule.is-met::before {
  content: "✓";
  color: #1a6b3c;
  font-weight: 700;
}
.reports-password-field__rule.is-unmet::before {
  color: #b42318;
}
.affiliate-google-btn {
  margin-top: 0.75rem;
}
.affiliate-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--c-bone-2);
  border: 1px solid var(--c-line);
}
.affiliate-dash-user-email {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}
.affiliate-dash-user-email--with-role {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  word-break: normal;
}
.affiliate-dash-user-email__address {
  word-break: break-all;
}
.reports-role-pill {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.reports-role-pill--owner {
  color: #9b1a5c;
  background: rgba(230, 42, 136, 0.12);
  border: 1px solid rgba(230, 42, 136, 0.35);
}
.reports-role-pill--viewer {
  color: #5c4b52;
  background: #fff;
  border: 1px solid var(--c-line);
}
.affiliate-config-error:not([hidden]) {
  display: block;
  margin-top: 0.75rem;
}
.affiliate-dash-meta {
  color: #5c4b52;
  font-size: 0.94rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
.affiliate-summary {
  margin-bottom: 2.5rem;
}
.affiliate-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
}
.affiliate-kpi {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
}
.affiliate-kpi__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-pink-d);
  margin-bottom: 0.35rem;
}
.affiliate-kpi__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--c-ink);
}
.affiliate-summary-note {
  margin-top: 0.85rem !important;
  margin-bottom: 0 !important;
}
.affiliate-report-block {
  margin-bottom: 3rem;
}
.affiliate-report-block h2 {
  margin-bottom: 0.35rem;
}
.affiliate-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: #fff;
}
.affiliate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}
.affiliate-table th, .affiliate-table td {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #eee5e9;
  vertical-align: top;
}
.affiliate-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-pink-d);
  white-space: nowrap;
  background: var(--c-bone-2);
}
.affiliate-table tbody tr:last-child td {
  border-bottom: none;
}
.affiliate-table tbody tr:hover td {
  background: #fffafb;
}
.affiliate-table tbody tr.affiliate-table__row--unpaid td {
  text-decoration: line-through;
  color: var(--c-muted);
}
.affiliate-dash-empty {
  margin: 0;
  padding: 0.85rem 1.25rem;
}
.affiliate-dash-body .affiliate-dash-empty.subtle {
  margin-bottom: 0;
}
.affiliate-dash-list-error {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: #fff;
}
.reports-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.reports-btn--primary {
  background: var(--c-pink);
  color: #fff;
}
.reports-btn--primary:hover:not(:disabled) {
  background: var(--c-pink-d);
  color: #fff;
}
.reports-btn--secondary {
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-ink);
}
.reports-btn--secondary:hover:not(:disabled) {
  background: var(--c-bone-2);
  border-color: rgba(26, 15, 20, 0.18);
  color: var(--c-ink);
}
.reports-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.reports-btn--loading:disabled {
  opacity: 1;
}
.reports-btn--loading .reports-btn__label {
  visibility: hidden;
}
.reports-btn__spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: reports-btn-spin 0.65s linear infinite;
}
.reports-btn--loading .reports-btn__spinner {
  display: block;
}
.reports-btn:not(.reports-btn--primary) .reports-btn__spinner {
  border-color: rgba(26, 27, 31, 0.2);
  border-top-color: var(--c-ink);
}
@keyframes reports-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reports-btn__spinner {
    animation: none;
  }
}
.reports-btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.75rem;
}
.reports-btn--ghost {
  background: transparent;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
}
.reports-btn--ghost:hover:not(:disabled) {
  background: rgba(26, 27, 31, 0.06);
  color: var(--c-ink);
}
a.reports-btn--ghost {
  text-decoration: none;
}
.reports-auth-form .reports-btn--primary {
  width: 100%;
  align-self: stretch;
  margin-top: 0.15rem;
}
.reports-team-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.reports-team-section-head h2 {
  margin: 0;
}
.reports-team-form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}
.reports-team-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c4b52;
}
.reports-team-form label.reports-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: inherit;
}
.reports-team-form label > input[type="text"], .reports-team-form label > input[type="email"], .reports-team-form label > input[type="password"], .reports-team-form label .reports-password-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-ink);
  background: #fff;
  transition: border-color 0.15s ease;
  appearance: none;
}
.reports-team-form label > input[type="text"]:focus, .reports-team-form label > input[type="email"]:focus, .reports-team-form label > input[type="password"]:focus, .reports-team-form label .reports-password-field__input:focus {
  outline: none;
  border-color: var(--c-pink);
}
.reports-team-form input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--c-pink);
}
.reports-team-form .reports-btn--primary {
  margin-top: 0.25rem;
}
.reports-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reports-team-list__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}
.reports-team-list__item--disabled {
  opacity: 0.65;
}
.reports-team-list__meta {
  flex: 1;
  min-width: 0;
}
.reports-team-list__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.reports-team-list__name-row strong {
  font-size: 15px;
  font-weight: 600;
}
.reports-team-list__roles {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.reports-team-list__roles .reports-role-pill {
  margin-top: 0;
}
.reports-team-list__email {
  display: block;
  margin-top: 0.15rem;
  font-size: 13px;
  color: #5c4b52;
}
.reports-team-list__status {
  flex: none;
  margin-left: auto;
}
.reports-team-list__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: none;
}
.reports-status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(26, 27, 31, 0.08);
  color: var(--c-ink);
  white-space: nowrap;
}
.reports-status-pill--inactive {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}
.reports-row-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(26, 27, 31, 0.06);
  color: #5c4b52;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.reports-row-edit:hover {
  background: rgba(230, 42, 136, 0.12);
  color: var(--c-pink);
}
.reports-row-edit:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
}
.reports-row-edit svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.reports-row-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(26, 27, 31, 0.06);
  color: #5c4b52;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.reports-row-delete:hover {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}
.reports-row-delete:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
}
.reports-row-delete svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.reports-delete-popover {
  position: fixed;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}
.reports-delete-popover[hidden] {
  display: none;
}
.reports-delete-popover__panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: #000;
  padding: 10px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.reports-delete-popover__label {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.reports-delete-popover__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.reports-delete-popover__btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.reports-delete-popover__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 1px;
}
.reports-delete-popover__btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.reports-delete-popover__caret {
  display: flex;
  justify-content: center;
  margin-top: -6px;
  line-height: 0;
}
.reports-delete-popover__caret span {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #000;
}
.reports-import-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1rem;
  text-align: center;
}
.reports-import-status__hint {
  margin: 0;
  font-size: 0.88rem;
}
.reports-import-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--c-line);
  border-top-color: var(--c-pink);
  border-radius: 50%;
  animation: reports-import-spin 0.75s linear infinite;
}
@keyframes reports-import-spin {
  to {
    transform: rotate(360deg);
  }
}
.reports-import-success {
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--c-ink);
}
.reports-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: #fff;
}
.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 960px;
}
.reports-table th, .reports-table td {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #eee5e9;
  vertical-align: top;
}
.reports-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-pink-d);
  white-space: nowrap;
  background: var(--c-bone-2);
}
.reports-table tbody tr:last-child td {
  border-bottom: none;
}
.reports-table tbody tr:hover td {
  background: #fffafb;
}
.reports-table-empty, .reports-table-loading, .reports-table-error {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--c-muted);
}
.reports-table-error {
  color: var(--c-error, #b42318);
}
.reports-table th.reports-table__actions, .reports-table td.reports-table__actions {
  width: 48px;
  text-align: right;
  white-space: nowrap;
}
.reports-table__actions-head {
  width: 48px;
}
.reports-table__actions {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .reports-table-wrap:has(.reports-table) {
    overflow-x: visible;
    border: none;
    background: transparent;
  }
  .reports-table {
    min-width: 0;
  }
  .reports-table thead {
    display: none;
  }
  .reports-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .reports-table tbody tr {
    display: block;
    position: relative;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.85rem 1rem;
  }
  .reports-table tbody tr:has(.reports-table__actions) {
    padding-top: 2.85rem;
  }
  .reports-table--has-actions tbody tr {
    padding-right: 2.75rem;
  }
  .reports-table tbody tr:has(.reports-vat-shipping-table__actions) {
    padding-right: 5.5rem;
  }
  .reports-table tbody tr:hover td {
    background: transparent;
  }
  .reports-table td:not(.reports-table__actions) {
    display: grid;
    grid-template-columns: minmax(5.5rem, 42%) minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.45rem 0;
    border-bottom: 1px solid #eee5e9;
    text-align: left;
    word-break: break-word;
  }
  .reports-table tbody tr > td:not(.reports-table__actions):nth-last-child(2), .reports-table tbody tr > td:not(.reports-table__actions):last-child {
    border-bottom: none;
  }
  .reports-table td:not(.reports-table__actions)::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-pink-d);
    white-space: nowrap;
  }
  .reports-table td:not([data-label])::before, .reports-table td[data-label=""]::before {
    content: none;
  }
  .reports-table td[colspan] {
    display: block;
    padding: 1.25rem;
    text-align: center;
    border-bottom: none;
  }
  .reports-table td[colspan]::before {
    content: none;
  }
  .reports-table td.reports-table__actions {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .reports-table td.reports-table__actions::before {
    display: none;
  }
  .reports-table tbody tr:hover td.reports-table__actions {
    background: transparent;
  }
}
body.has-cookie-consent-prompt {
  padding-bottom: 7.5rem;
}
@media (min-width: 720px) {
  body.has-cookie-consent-prompt {
    padding-bottom: 5.5rem;
  }
}
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  background: var(--c-bone-2);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -10px 40px rgba(30, 18, 24, 0.09);
}
.cookie-consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-consent__copy {
  flex: 1 1 16rem;
  min-width: 0;
}
.cookie-consent__title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--c-ink);
}
.cookie-consent__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c4b52;
}
.cookie-consent__desc a {
  color: var(--c-pink-d);
  font-weight: 600;
}
.cookie-consent__desc a:hover {
  text-decoration: underline;
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.15s ease;
}
.modal-panel {
  position: relative;
  width: min(100% - 2rem, 540px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--c-bone);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: rise 0.25s cubic-bezier(.2,.8,.2,1);
}
.modal-content {
  padding: 2rem clamp(1.4rem, 3vw, 2.4rem) 2.4rem;
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  color: var(--c-ink);
}
.modal-close:hover {
  background: var(--c-bone-2);
}
#donateForm {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
#donateForm > .amount-grid {
  margin: 0;
}
.amount-grid {
  border: 0;
  padding: 0;
  margin: 1.2rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.amount-pill {
  position: relative;
  display: block;
  cursor: pointer;
}
.amount-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.amount-pill span {
  display: grid;
  place-items: center;
  padding: 0.85rem 0.4rem;
  border: 1.5px solid #e6d6d0;
  border-radius: 12px;
  font-weight: 700;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.amount-pill:hover span {
  border-color: var(--c-pink);
}
.amount-pill input:checked + span {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
  transform: translateY(-1px);
}
.donate-submit {
  margin-top: 0;
}
.donate-fineprint {
  text-align: center;
  margin-top: 0.6rem;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
  }
  .hero-book {
    order: -1;
  }
  .hero-book img {
    max-height: 60vh;
    max-width: min(100%, calc(60vh * 703 / 1319));
    transform: none;
  }
  .hero-copy-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    max-width: none;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    background: var(--c-blue);
    isolation: isolate;
    z-index: 1;
    padding: 1.1rem max(1.25rem, env(safe-area-inset-left)) 0 max(1.25rem, env(safe-area-inset-right));
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    margin-top: 0.35rem;
  }
  .hero-bg-pink {
    inset: 0 0 30% 0;
  }
  .hero-bg-blue {
    inset: 70% 0 0 0;
  }
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
  }
  .two-col.reverse .col-text {
    order: 1;
  }
  .two-col.reverse .col-aside {
    order: 2;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-nav-column {
    align-items: flex-start;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .footer-origin-credits {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    justify-items: end;
    text-align: right;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .other-books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 961px) {
  .mobile-nav {
    display: none !important;
  }
  .hamburger {
    display: none;
  }
}
@media (max-width: 960px) {
  .header-inner {
    display: flex;
  }
  .primary-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
    flex-shrink: 0;
  }
  .page-affiliate-reports .site-header > .container.header-inner {
    justify-content: space-between;
    gap: 0.75rem;
  }
}

/* Reports accent */
.page-affiliate-reports { --reports-accent: #4b1a0d; }

/* Site password gate */
html.is-site-gate-active {
  overflow: hidden;
}
html.is-site-gate-active body {
  overflow: hidden;
}
#siteGate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--c-white);
}
html.is-site-gate-active #siteGate {
  display: flex;
}
html.is-site-unlocked #siteGate {
  display: none !important;
}
.site-gate__inner {
  width: min(100%, 22rem);
  text-align: center;
}
.site-gate__brand {
  margin: 0 0 1.5rem;
  font-family: var(--ff-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-gate__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
}
.site-gate__lede {
  margin: 0 0 1.75rem;
  color: var(--c-muted);
  font-size: 0.95rem;
}
.site-gate__form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.site-gate__form label {
  font-size: 0.85rem;
  font-weight: 600;
}
.site-gate__form input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
}
.site-gate__form input[type="password"]:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--c-ink);
}
.site-gate__form input[type="password"]:disabled {
  opacity: 0.78;
  cursor: not-allowed;
}
.site-gate__error {
  margin: 0;
  font-size: 0.9rem;
  color: #b42318;
}
.site-gate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1.4rem;
  background: var(--c-ink);
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  color: var(--c-white);
  font-weight: 600;
}
.site-gate__submit:hover:not(:disabled) {
  background: var(--c-muted);
  border-color: var(--c-muted);
}
.site-gate__submit.is-loading:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
}
.site-gate__submit:disabled {
  cursor: not-allowed;
}
.site-gate__submit .btn-spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: newsletter-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.site-gate__submit.is-loading .btn-spinner {
  display: block;
}

/* ── Share page ─────────────────────────────────────────────── */

.share-page {
  min-height: calc(100vh - var(--header-h));
}

.share-page__intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  background: var(--c-gray-bg);
}

.share-page__lede {
  max-width: 38rem;
}

.share-steps {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 30rem;
  text-align: left;
}

.share-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.share-step__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #8a8a8a;
  color: var(--c-white);
  font-family: var(--ff-display);
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.2s, box-shadow 0.2s;
}

.share-step.is-active .share-step__num,
.share-step.is-done .share-step__num {
  background: var(--c-hero-brown);
}

.share-step.is-active .share-step__num {
  box-shadow: 0 0 0 4px rgba(75, 26, 13, 0.18);
}

.share-step__text {
  padding-top: 0.2rem;
  color: var(--c-muted);
  transition: color 0.2s;
}

.share-step.is-active .share-step__text,
.share-step.is-done .share-step__text {
  color: var(--c-ink);
}

.share-step__text p {
  margin: 0;
}

.share-step__example-btn {
  margin-top: 0.35rem;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-hero-brown);
  font-family: var(--ff-body);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.share-step__example-btn:hover,
.share-step__example-btn:focus-visible {
  color: var(--c-hero-pink-d);
}

.share-page__body {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
  background: var(--c-gray-bg);
}

.share-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 16rem;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--c-line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--c-white);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.share-upload__zone:hover,
.share-upload__zone.is-dragover {
  border-color: var(--c-hero-brown);
  background: #fffaf7;
}

.share-upload__icon {
  color: var(--c-hero-brown);
  opacity: 0.85;
}

.share-upload__title {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-upload__hint {
  color: var(--c-muted);
  font-size: 0.92rem;
}

.share-upload__error {
  margin: 1rem 0 0;
  color: #b42318;
  font-size: 0.92rem;
}

.share-upload[hidden],
.share-editor[hidden] {
  display: none !important;
}

.share-editor {
  display: grid;
  gap: 1.25rem;
  overflow: visible;
}

.share-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.share-stage__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.share-stage__aside .btn {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}

.share-stage__aside .btn:hover {
  background: var(--c-muted);
  border-color: var(--c-muted);
}

.share-stage__aside .btn--download {
  background: var(--c-hero-pink);
  border-color: var(--c-hero-pink);
  color: var(--c-white);
}

.share-stage__aside .btn--download:hover {
  background: var(--c-hero-pink-d);
  border-color: var(--c-hero-pink-d);
  color: var(--c-white);
}

/* Tablet and up: button column sits beside the (unchanged) image canvas. */
@media (min-width: 768px) {
  .share-page__body .container.narrow {
    width: min(100% - 4rem, 980px);
  }

  .share-stage {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
  }

  .share-stage .share-canvas-wrap {
    margin: 0;
    flex: 0 0 auto;
  }

  .share-stage__aside {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    flex: 0 0 auto;
    align-self: center;
  }

  .share-stage__aside .btn {
    width: 100%;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .share-stage__aside {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .share-stage__aside .btn {
    width: 100%;
  }
}

.share-canvas-wrap {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 14%, 5rem) clamp(2rem, 12%, 4.5rem);
  overflow: visible;
}

.share-canvas {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  overflow: visible;
  user-select: none;
  touch-action: none;
}

.share-canvas__bg {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 820px);
  width: auto;
  height: auto;
  pointer-events: none;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.share-overlay {
  position: absolute;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

/* Portions of the banners that extend past the image are shown half-opacity.
   The real (interactive) overlays are dimmed, and a clipped, full-opacity copy
   re-covers the part that sits inside the image canvas. */
.share-canvas > .share-overlay--banner,
.share-canvas > .share-overlay--censored {
  opacity: 0.5;
}

.share-clip {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  border-radius: calc(var(--radius) * 1.5);
}

.share-overlay--ghost {
  opacity: 1;
}

/* Corner handles live in their own layer above the clipped ghost copies so the
   dots are always visible and clickable, never hidden behind a bar. The layer
   itself is transparent and only the handles capture pointer events. */
.share-canvas > .share-overlay--handles {
  z-index: 5;
  opacity: 1;
  background: transparent;
  pointer-events: none;
  cursor: default;
}

.share-overlay--handles .share-overlay__label {
  visibility: hidden;
}

.share-overlay--handles .share-overlay__handle {
  pointer-events: auto;
}

.share-overlay:active {
  cursor: grabbing;
}

.share-canvas.is-animating .share-overlay {
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.share-overlay--banner,
.share-overlay--censored {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-hero-brown);
  white-space: nowrap;
}

.share-overlay--censored {
  z-index: 2;
  padding: calc(var(--share-w, 400px) * 0.022) calc(var(--share-w, 400px) * 0.045);
}

.share-overlay--banner {
  z-index: 3;
  padding: calc(var(--share-w, 400px) * 0.005) calc(var(--share-w, 400px) * 0.028);
}

.share-overlay--banner .share-overlay__label {
  font-family: var(--ff-display);
  font-size: calc(var(--share-w, 400px) * 0.040);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--c-hero-yellow);
  text-transform: uppercase;
}

.share-overlay--censored .share-overlay__label {
  font-family: var(--ff-display);
  font-size: calc(var(--share-w, 400px) * 0.205);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-hero-pink);
  text-transform: uppercase;
}

.share-overlay__handle {
  position: absolute;
  padding: 0;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.share-overlay__handle--corner {
  width: 0.78em;
  height: 0.78em;
  border: 2px solid var(--c-white);
  border-radius: 50%;
  background: var(--c-hero-yellow);
  cursor: grab;
}

.share-overlay__handle--tl {
  top: -0.45em;
  left: -0.45em;
}

.share-overlay__handle--tr {
  top: -0.45em;
  right: -0.45em;
}

.share-overlay__handle--bl {
  bottom: -0.45em;
  left: -0.45em;
}

.share-overlay__handle--br {
  bottom: -0.45em;
  right: -0.45em;
}

.share-overlay__handle--corner:active {
  cursor: grabbing;
}

.share-overlay--logo {
  left: auto !important;
  top: auto !important;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "eyebrow eyebrow"
    "icon text";
  align-items: start;
  column-gap: calc(var(--share-w, 400px) * 0.0175);
  row-gap: calc(var(--share-w, 400px) * 0.021);
  width: 35%;
  height: auto;
  padding: calc(var(--share-w, 400px) * 0.0301);
  border-top-left-radius: calc(var(--share-w, 400px) * 0.021);
  background: var(--c-white);
  box-sizing: border-box;
  transform: none !important;
  cursor: default;
  pointer-events: none;
}

.share-logo__eyebrow {
  grid-area: eyebrow;
  margin: 0;
  font-size: calc(var(--share-w, 400px) * 0.018);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  justify-self: start;
}

.share-logo__icon {
  grid-area: icon;
  flex: 0 0 auto;
  width: calc(var(--share-w, 400px) * 0.077);
  height: calc(var(--share-w, 400px) * 0.077);
}

.share-logo__text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  line-height: 1.02;
}

.share-logo__name {
  display: block;
  font-family: var(--ff-display);
  font-size: calc(var(--share-w, 400px) * 0.044);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.share-logo__domain {
  display: block;
  font-family: var(--ff-display);
  font-size: calc(var(--share-w, 400px) * 0.036);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.share-logo__org {
  color: var(--c-hero-pink);
}

.share-editor__hint {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  text-align: center;
}

.share-editor__error {
  margin: 0;
  color: #b42318;
  font-size: 0.92rem;
  text-align: center;
}

.share-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.share-controls .btn {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}

.share-controls .btn:hover {
  background: var(--c-muted);
  border-color: var(--c-muted);
}

.share-controls .btn--download {
  background: var(--c-hero-pink);
  border-color: var(--c-hero-pink);
  color: var(--c-white);
}

.share-controls .btn--download:hover {
  background: var(--c-hero-pink-d);
  border-color: var(--c-hero-pink-d);
  color: var(--c-white);
}

@media (max-width: 640px) {
  .share-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .share-controls .btn {
    width: 100%;
  }

  .share-controls .btn--download {
    margin-left: 0;
  }
}

/* ── Share example popup ────────────────────────────────────── */

.share-example-modal .modal-panel {
  background: var(--c-white);
}

.share-example-modal__title {
  margin: 0.45rem 0 0.55rem;
}

.share-example-modal__lede {
  margin: 0 0 0.25rem;
  color: var(--c-muted);
}

.share-example {
  --share-w: min(320px, 72vw);
  position: relative;
  width: var(--share-w);
  aspect-ratio: 778 / 779;
  margin: 1.25rem auto 0.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.share-example__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
