/* =====================================================
    PAGE HEADER
    Orange/accent gradient — same family as faq, translations.
===================================================== */
.page-header {
  padding-block: var(--sp-xl) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .page-header {
  background: linear-gradient(150deg, var(--accent-pale) 0%, var(--bg) 60%);
}
[data-theme="dark"] .page-header {
  background: linear-gradient(150deg, var(--accent-dim) 0%, var(--bg) 60%);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23E8621A' fill-opacity='.09'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6;
}

.page-header-inner { position: relative; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: var(--sp-md);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-soft); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border-strong); font-size: .75em; user-select: none; }
.breadcrumb [aria-current="page"] { color: var(--accent-dark); }
[data-theme="dark"] .breadcrumb [aria-current="page"] { color: var(--accent-mid); }

/* Kicker is teal on this page */
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  width: fit-content;
  margin-bottom: var(--sp-sm);
}
[data-theme="dark"] .page-kicker { color: var(--teal); }

.page-title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
  max-width: 20ch;
}

.page-title em { font-style: italic; color: var(--accent-hero); }

.page-subtitle {
  margin-top: var(--sp-sm);
  font-size: var(--t-md);
  color: var(--text-soft);
  max-width: 54ch;
  line-height: 1.65;
}

/* =====================================================
    PAGE BODY
===================================================== */
.page-body { padding-block: var(--sp-xl); }

/* =====================================================
    CONTRIBUTOR GROUP SECTIONS
===================================================== */
.contrib-group { margin-bottom: var(--sp-2xl); }
.contrib-group:last-of-type { margin-bottom: 0; }

.group-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
}

.group-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-eyebrow);
  flex-shrink: 0;
}

.group-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.group-title {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
  scroll-margin-top: calc(64px + 2rem);
}

.group-intro {
  font-size: var(--t-base);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: var(--prose);
  margin-bottom: var(--sp-lg);
}

/* =====================================================
    FEATURED CONTRIBUTOR CARDS
===================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.featured-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.featured-card--primary {
  background: var(--teal-dim);
  border-color: var(--teal-border);
}

.featured-name {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Default role colour — teal for the primary card */
.featured-role {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--teal-dark);
  font-style: italic;
}
[data-theme="dark"] .featured-role { color: var(--teal); }

/* The inline style="color: var(--orange-dark)" overrides on non-primary
   cards are updated in the HTML to use var(--accent-dark) instead */

.featured-desc {
  font-size: var(--t-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Dot list inside featured card */
.contrib-dot-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: var(--sp-xs);
}

.contrib-dot-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--t-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.contrib-dot-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: .52em;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--link-teal);
  text-decoration: none;
  text-underline-offset: 2px;
  margin-top: auto;
  padding-top: var(--sp-xs);
  transition: color .15s;
}

.featured-link:hover { color: var(--teal); text-decoration: underline; }

/* =====================================================
    TRANSLATOR LIST
===================================================== */
.translator-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

@media (min-width: 640px) { .translator-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .translator-list { grid-template-columns: 1fr 1fr 1fr; } }

.translator-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  transition: border-color .15s, box-shadow .15s;
}

.translator-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--sh-sm);
}

.translator-name {
  font-weight: 600;
  font-size: var(--t-base);
  color: var(--text-primary);
  line-height: 1.3;
}

.translator-contrib {
  font-size: var(--t-xs);
  color: var(--text-soft);
  line-height: 1.5;
}

/* =====================================================
    MOBILE CONTRIBUTOR CARDS
===================================================== */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-md);
}

/* =====================================================
    ACKNOWLEDGEMENTS PANELS
===================================================== */
.ack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-md);
}

.ack-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
}

.ack-heading {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.ack-body {
  font-size: var(--t-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-sm);
}

/* Links within ack panels */
.ack-body a, .link-teal {
  color: var(--link-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.ack-body a:hover, .link-teal:hover { color: var(--teal); text-decoration: none; }

.ack-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: var(--sp-sm);
}

.ack-source-tag {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
  transition: border-color .15s;
}

.ack-source-tag:hover { border-color: var(--border-strong); }

/* =====================================================
    THANK YOU PANEL
===================================================== */
.thankyou-panel {
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xl);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.thankyou-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--icon-teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--icon-teal-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
}

.thankyou-heading {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.thankyou-body {
  font-size: var(--t-base);
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--sp-lg);
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}
