/* Authors pages: /authors/ (templates/authors-index.php) and /authors/<slug>/ (templates/author-profile.php).
   Every rule was an inline style="..." in those templates. Selectors are `.au-page .x` (0,2,0): the body
   class is set through $bodyClass in both templates, and the specificity replaces what the inline style used
   to win against style.css / pepper-nav.css / readability.css.
   Part 1 = values copied from the old inline styles. Part 2 = legacy-forced type and the style.css mobile
   layer, restated because the `[style*="..."]` selectors there no longer match. */

/* ---------- Part 1: shared ---------- */
.au-page .au-flush { padding-bottom: 0; }

.au-page .au-btn {
  font-size: 14px; font-weight: 600; padding: 10px 20px; border: 1px solid var(--gray-border);
  border-radius: 10px; background: var(--white); color: var(--dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.au-page .au-btn--red { border: 1px solid #fecaca; background: #fef2f2; color: var(--red); }

.au-page .au-foot { text-align: center; padding: 28px 0 16px; border-top: 1px solid var(--gray-border); margin-top: 24px; }
.au-page .au-foot-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Part 1: /authors/ ---------- */
.au-page .au-hero {
  background: linear-gradient(145deg, #1a0505, #4a1010); border-radius: 20px; padding: 48px 32px;
  margin-bottom: 32px; text-align: center; position: relative; overflow: hidden;
}
.au-page .au-hero-stack { display: flex; justify-content: center; margin-bottom: 20px; }
.au-page .au-hero-av {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid #1a0505; margin-left: -12px;
  position: relative;
}
.au-page .au-hero-av:first-child { margin-left: 0; }
.au-page .au-hero-av:nth-child(1) { z-index: 5; }
.au-page .au-hero-av:nth-child(2) { z-index: 4; }
.au-page .au-hero-av:nth-child(3) { z-index: 3; }
.au-page .au-hero-av:nth-child(4) { z-index: 2; }
.au-page .au-hero-av:nth-child(5) { z-index: 1; }
.au-page .au-hero-av--fb {
  background: linear-gradient(135deg, #b91c1c, #dc2626); display: flex; align-items: center; justify-content: center;
}
.au-page .au-hero-img { border-radius: 50%; object-fit: cover; }
.au-page .au-hero-init { color: #fff; font-weight: 700; font-size: 14px; }
.au-page .au-hero-title {
  font-family: var(--font-heading); font-size: clamp(28px, 5vw, 42px); font-weight: 900; color: #fff;
  margin: 0 0 12px; line-height: 1.1;
}
.au-page .au-hero-text { font-size: 17px; color: #d4a0a0; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.au-page .au-hero-facts {
  display: flex; justify-content: center; gap: 16px; margin-top: 20px; font-size: 13px; color: #fca5a5;
}
.au-page .au-dot { opacity: .4; }

.au-page .au-entry { margin-bottom: 48px; }
.au-page .au-entry--sep { padding-top: 48px; border-top: 1px solid var(--gray-border); }
.au-page .au-row { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.au-page .au-pic-link { flex-shrink: 0; text-decoration: none; }
.au-page .au-pic { width: 120px; height: 120px; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: transform .2s; }
.au-page .au-pic--fb {
  background: linear-gradient(135deg, #b91c1c, #dc2626); display: flex; align-items: center; justify-content: center;
}
.au-page .au-pic--img { overflow: hidden; }
.au-page .au-pic-img { width: 100%; height: 100%; object-fit: cover; }
.au-page .au-pic-init { color: #fff; font-weight: 800; font-size: 36px; }
.au-page .au-info { flex: 1; min-width: 280px; }
.au-page .au-plain { text-decoration: none; }
.au-page .au-name {
  font-family: var(--font-heading); font-size: 26px; font-weight: 900; color: var(--dark); margin: 0 0 4px; line-height: 1.2;
}
.au-page .au-role { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 12px; }
.au-page .au-stats { display: flex; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--gray); }
.au-page .au-pill { padding: 3px 10px; border-radius: 20px; background: var(--warm-bg); border: 1px solid var(--gray-border); }
.au-page .au-bio { font-size: 15px; color: #374151; line-height: 1.75; margin-bottom: 16px; }
.au-page .au-more { margin-bottom: 16px; }
.au-page .au-more-body { display: none; margin-top: 12px; }
.au-page .au-more-p { font-size: 14px; color: #374151; line-height: 1.75; margin: 0 0 14px; }
.au-page .au-more-lead { color: var(--dark); }
.au-page .au-more-btn {
  font-size: 13px; font-weight: 600; color: var(--red); background: none; border: none; cursor: pointer; padding: 0;
}
.au-page .au-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.au-page .au-chip { font-size: 11px; padding: 4px 12px; border-radius: 20px; }
.au-page .au-chip--red { font-weight: 600; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.au-page .au-chip--warm { font-weight: 500; background: var(--warm-bg); color: #57534e; border: 1px solid var(--gray-border); }
.au-page .au-cta {
  font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; display: inline-flex; align-items: center;
  gap: 4px; padding: 8px 16px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; transition: all .2s;
}
.au-page .au-work { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--gray-border); }
.au-page .au-work-title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 20px; text-align: center;
}
.au-page .au-work-grid { gap: 14px; margin-bottom: 32px; }
.au-page .au-std {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: 14px; padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.au-page .au-std-icon {
  width: 40px; height: 40px; border-radius: 10px; background: #fef2f2; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.au-page .au-std-title {
  font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px;
}
.au-page .au-std-text { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ---------- Part 1: /authors/<slug>/ ---------- */
.au-page .au-hero-fb { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.au-page .au-x-link { color: var(--gray); text-decoration: none; }
.au-page .au-bio-lead { color: var(--dark); font-size: 15px; }
.au-page .au-note {
  background: rgba(14, 165, 233, 0.05); border: 1px solid #bae6fd; border-radius: 14px; padding: 18px 20px;
  margin-top: 20px; color: #0f172a;
}
.au-page .au-note-title {
  font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin-bottom: 6px; color: #0c4a6e;
}
.au-page .au-note-text { font-size: 14px; line-height: 1.7; margin: 0; }
.au-page .au-note-link { color: var(--red); font-weight: 600; text-decoration: none; }
.au-page .au-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.au-page .au-fact {
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; background: #fef2f2; color: #991b1b;
  border: 1px solid #fecaca;
}
.au-page .au-quals {
  background: rgba(239, 68, 68, 0.05); border: 1px solid #fecaca; border-radius: 14px; padding: 24px; margin-top: 24px;
}
.au-page .au-box-title {
  font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--dark); margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.au-page .au-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.au-page .au-item { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
.au-page .au-item-ico { flex-shrink: 0; }
.au-page .au-pubs {
  background: var(--warm-bg); border: 1px solid var(--gray-border); border-radius: 14px; padding: 24px; margin-top: 20px;
}
.au-page .au-block { margin-bottom: 20px; }
.au-page .au-sub {
  font-size: 13px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px;
}
.au-page .au-entry-li { font-size: 14px; line-height: 1.6; }
.au-page .au-entry-sub { color: var(--gray); font-size: 13px; margin-left: 20px; }
.au-page .au-pub-link { color: var(--red); text-decoration: none; }
.au-page .au-links { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.au-page .au-ext-btn {
  font-size: 13px; font-weight: 600; padding: 10px 16px; border: 1px solid var(--gray-border); border-radius: 10px;
  background: var(--white); color: var(--dark); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.au-page .au-sec-title {
  font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--dark); margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.au-page .au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.au-page .au-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.au-page .au-tile {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: 12px; padding: 20px;
  text-decoration: none; color: inherit; display: block; transition: all 0.2s;
}
.au-page .au-tile--sm { border-radius: 10px; padding: 14px 16px; }
.au-page .au-kind {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--red); margin-bottom: 6px;
}
.au-page .au-kind--blue { color: #3b82f6; }
.au-page .au-tile-title {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.3;
}
.au-page .au-tile-title--gap { margin-bottom: 6px; }
.au-page .au-tile-desc {
  font-size: 13px; color: var(--gray); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.au-page .au-tile-name { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--dark); }
.au-page .au-more-note {
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray); padding: 14px;
}

/* ---------- Part 2: legacy-forced type ----------
   readability.css forced these sizes through [style*="font-size: Npx"] selectors (size 19px, line-height 1.62 on
   div/span/p/li; 18px and 1.55 on a[style*="font-size"]; heading-font divs at 16px became 21px/800 body font).
   Those selectors no longer match, so the computed values are restated per class. */
.au-page .au-bio,
.au-page .au-hero-facts,
.au-page .au-role,
.au-page .au-stats,
.au-page .au-std-title,
.au-page .au-std-text,
.au-page .au-hero-init,
.au-page .au-chip,
.au-page .au-fact,
.au-page .au-note-title,
.au-page .au-entry-sub,
.au-page .au-kind,
.au-page .au-tile-desc,
.au-page .au-tile-name,
.au-page .au-more-note,
.au-page .au-sub { font-size: var(--ktp-text-ui); line-height: 1.62; }
.au-page .au-bio-lead { font-size: var(--ktp-text-ui); line-height: 1.72; }
.au-page .au-btn,
.au-page .au-cta,
.au-page .au-ext-btn { font-size: 18px; line-height: 1.55; }
/* button: main button forces 18px / 1.55 !important; the old attribute selectors forced 19px / 1.62 !important over it. */
.au-page button.au-more-btn { font-size: var(--ktp-text-ui) !important; line-height: 1.62 !important; }
/* p and li: main p / main li force line-height !important (1.65); the old attribute selectors beat it with 1.62 !important. */
.au-page p.au-hero-text,
.au-page p.au-more-p,
.au-page p.au-note-text,
.au-page li.au-item,
.au-page li.au-entry-li { font-size: var(--ktp-text-ui); line-height: 1.62 !important; }
.au-page .au-tile-title {
  font-family: var(--font-body) !important; font-size: 21px !important; line-height: 1.3 !important; font-weight: 800 !important;
}

/* ---------- Part 2: style.css mobile layer (was [style*="..."] selectors with !important) ---------- */
@media (max-width: 768px) {
  .au-page .au-row { gap: 16px; }
  .au-page .au-foot { padding: 18px; }
  .au-page .au-grid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 480px) {
  .au-page .au-grid-sm { grid-template-columns: 1fr; }
}
