/* ────────────────────────────────────────────────────────────────────────
   SoccerNews – Compact Author Card  (v1.2)
   Used on: /editorial-team/ and any future desk index sections.
   ──────────────────────────────────────────────────────────────────────── */

.sn-author-grid,
.sn-author-card {
  --sn-brand:      #149688;
  --sn-brand-dark: #0d7a70;
  --sn-brand-tint: #f3faf9;
  --sn-brand-light:#e8f5f3;
  --sn-brand-line: #c5e3df;
  --sn-ink:        #14181c;
  --sn-ink-soft:   #2c333a;
  --sn-text:       #1f242a;
  --sn-muted:      #5a6470;
  --sn-faint:      #8a939e;
  --sn-line:       #e6e8ec;
  --sn-line-soft:  #eef0f3;
  --sn-card:       #ffffff;
  --sn-shade:      #fafbfc;
  --sn-shadow-sm:  0 1px 2px rgba(20,24,28,.04);
  --sn-shadow-md:  0 4px 12px rgba(20,24,28,.06);
  --sn-radius-sm:  6px;
  --sn-font-heading: 'League Spartan','Inter',system-ui,-apple-system,sans-serif;
  --sn-font-body:    'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}

/* Grid */
.sn-author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: var(--sn-font-body);
}
.sn-author-grid *,
.sn-author-grid *::before,
.sn-author-grid *::after { box-sizing: border-box; }

/* Card root */
.sn-author-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--sn-card);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-sm);
  text-decoration: none;
  color: var(--sn-text);
  transition: border-color 180ms cubic-bezier(.4,0,.2,1),
              box-shadow   180ms cubic-bezier(.4,0,.2,1),
              transform    120ms cubic-bezier(.4,0,.2,1);
}
.sn-author-card:hover,
.sn-author-card:focus-visible {
  border-color: var(--sn-brand-line);
  box-shadow: var(--sn-shadow-md);
  transform: translateY(-1px);
}
.sn-author-card:focus-visible {
  outline: 2px solid var(--sn-brand);
  outline-offset: 2px;
}

/* Avatar */
.sn-author-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sn-brand);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 2px solid var(--sn-brand);
}
.sn-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sn-author-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sn-brand);
  color: #fff;
  font-family: var(--sn-font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Body */
.sn-author-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sn-author-card__role {
  font-family: var(--sn-font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--sn-brand);
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sn-author-card__name {
  font-family: var(--sn-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sn-ink);
  margin: 0;
  letter-spacing: -.005em;
}
.sn-author-card__tagline {
  font-family: var(--sn-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--sn-muted);
  line-height: 1.5;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sn-author-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-family: var(--sn-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--sn-brand);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: gap 180ms cubic-bezier(.4,0,.2,1);
}
.sn-author-card:hover .sn-author-card__cta,
.sn-author-card:focus-visible .sn-author-card__cta { gap: 8px; }
.sn-author-card__cta::after {
  content: "→";
  font-size: 13px;
  line-height: 1;
}

/* Variants */
.sn-author-card--desk { background: var(--sn-shade); }
.sn-author-card--desk .sn-author-card__avatar {
  background: var(--sn-brand-tint);
  border-color: var(--sn-brand-line);
}
.sn-author-card--desk .sn-author-card__avatar--initials {
  background: var(--sn-brand-tint);
  color: var(--sn-brand-dark);
  font-size: 18px;
}
.sn-author-card--leadership {
  border-left: 3px solid var(--sn-brand);
  padding-left: 14px;
}

/* Editorial team page layout */
.et-main-section {
  padding: 1.5rem 2rem 3rem;
}
.et-hero {
  margin-bottom: 2.5rem;
}
.et-hero h1 {
  font-family: var(--sn-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #14181c;
  margin: 0 0 .4rem;
}
.et-hero .et-subheading {
  font-family: var(--sn-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #149688;
  margin: 0 0 1rem;
}
.et-hero p {
  font-size: .9375rem;
  color: #5a6470;
  line-height: 1.65;
  margin: 0 0 .6rem;
}
.editorial-team-section {
  margin: 0 0 2.5rem;
  scroll-margin-top: 88px;
}
.editorial-team-section h2 {
  font-family: var(--sn-font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: #14181c;
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #149688;
}
.editorial-team-section .et-section-intro,
.editorial-team-section > p {
  font-size: .9375rem;
  color: #5a6470;
  line-height: 1.65;
  margin: 0 0 .75rem;
}

.editorial-team-section > p:last-of-type {
  margin-bottom: 1.5rem;
}
.et-standards-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
}
.et-standards-links a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--sn-font-heading);
  font-size: .875rem;
  font-weight: 600;
  color: #149688;
  text-decoration: none;
}
.et-standards-links a:hover { text-decoration: underline; }
.et-standards-links a::after { content: "→"; }

/* Responsive */
@media (max-width: 600px) {
  .sn-author-grid { grid-template-columns: 1fr; gap: 12px; }
  .sn-author-card { grid-template-columns: 60px minmax(0,1fr); gap: 12px; padding: 14px; }
  .sn-author-card__avatar { width: 60px; height: 60px; }
  .sn-author-card__avatar--initials { font-size: 18px; }
  .sn-author-card__name    { font-size: 15px; }
  .sn-author-card__role    { font-size: 11px; }
  .sn-author-card__tagline { font-size: 13px; }
  .sn-author-card__cta     { font-size: 11px; }
  .editorial-team-page .et-hero h1 { font-size: 1.75rem; }
  .editorial-team-section h2 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sn-author-card, .sn-author-card__cta { transition: none; }
  .sn-author-card:hover, .sn-author-card:focus-visible { transform: none; }
}
/* rg-strip styles for editorial team page */
body.page-template-page-editorial-team .rg-strip {
  background: #28292d;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.page-template-page-editorial-team .rg-strip p {
  font-size: 11px;
  color: #ccc;
  flex: 1;
  margin: 0;
}
body.page-template-page-editorial-team .rg-strip a {
  color: #149688;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
body.page-template-page-editorial-team .rg-strip a:hover { text-decoration: underline; }
body.page-template-page-editorial-team .rg-strip .rg-18 {
  background: #149688;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}
