:root {
  --authors-navy: #0f1b2d;
  --authors-navy-deep: #091321;
  --authors-navy-soft: #1a2a40;
  --authors-accent: #8a1a2b;
  --authors-accent-soft: #f6e9eb;
  --authors-paper: #f4f3ef;
  --authors-card: #ffffff;
  --authors-ink: #101827;
  --authors-muted: #5e6877;
  --authors-line: #dce1e8;
  --authors-max: 1180px;
}

body.author-site {
  background: var(--authors-paper);
  color: var(--authors-ink);
}

.author-site :where(a, button, summary):focus-visible {
  outline: 3px solid #f2b8c1;
  outline-offset: 3px;
  border-radius: 2px;
}

.author-site .utility-bar-inner {
  justify-content: space-between;
}

.author-site .utility-bar a {
  color: #d3dae5;
}

.author-site .header {
  background: var(--authors-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.author-site .header-left img {
  width: auto;
  height: 58px;
}

.author-site .institutional-ticker {
  min-height: 2.3rem;
  background: var(--authors-accent);
}

.author-site .institutional-ticker .urgente-label {
  animation: none;
}

.author-site .institutional-ticker .ticker-content {
  display: block;
  padding-left: 0;
  animation: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-site .nav {
  justify-content: center;
  background: var(--authors-navy);
  border-bottom: 3px solid var(--authors-accent);
  box-shadow: none;
}

.author-site .nav a:hover,
.author-site .nav a[aria-current="page"] {
  background: var(--authors-accent);
}

.authors-shell {
  width: min(100%, var(--authors-max));
  margin: 0 auto;
  padding: 0 1.15rem;
}

.authors-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  padding: 1.15rem 0;
  color: var(--authors-muted);
  font-size: 0.78rem;
}

.authors-breadcrumb a {
  color: var(--authors-accent);
  font-weight: 700;
}

.authors-breadcrumb a:hover {
  text-decoration: underline;
}

.authors-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(138, 26, 43, 0.3), transparent 31%),
    linear-gradient(122deg, var(--authors-navy-deep), var(--authors-navy-soft));
  color: #fff;
  border-bottom: 4px solid var(--authors-accent);
}

.authors-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 95px, rgba(255,255,255,0.13) 96px);
  pointer-events: none;
}

.authors-hero-inner {
  position: relative;
  z-index: 1;
}

.authors-eyebrow,
.profile-role,
.stories-kicker {
  color: #e9bcc3;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.authors-hero h1 {
  max-width: 850px;
  margin-top: 0.8rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 7vw, 4.9rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.authors-hero-lead {
  max-width: 720px;
  margin-top: 1.25rem;
  color: #d0d7e1;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.authors-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.directory-section,
.profile-stories {
  padding: clamp(2.4rem, 6vw, 5rem) 0;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--authors-line);
}

.section-heading-row h2 {
  margin-top: 0.45rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.section-heading-row > p {
  max-width: 460px;
  color: var(--authors-muted);
  font-size: 0.9rem;
}

.author-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.directory-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: var(--authors-card);
  border: 1px solid var(--authors-line);
  border-left: 4px solid transparent;
  box-shadow: 0 3px 14px rgba(15, 27, 45, 0.055);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.directory-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--authors-accent);
  box-shadow: 0 12px 28px rgba(15, 27, 45, 0.11);
}

.directory-card-photo {
  height: 100%;
  min-height: 168px;
  background: var(--authors-navy);
}

.directory-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.directory-card-body {
  min-width: 0;
  padding: 1.1rem;
}

.directory-card-role {
  color: var(--authors-accent);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.directory-card h2 {
  margin-top: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.2;
}

.directory-card-bio {
  display: -webkit-box;
  margin-top: 0.58rem;
  overflow: hidden;
  color: var(--authors-muted);
  font-size: 0.84rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.8rem;
  list-style: none;
}

.topic-list li {
  padding: 0.25rem 0.5rem;
  color: var(--authors-navy);
  background: #f8fafc;
  border: 1px solid var(--authors-line);
  font-size: 0.66rem;
  font-weight: 700;
}

.directory-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.9rem;
  color: var(--authors-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.directory-card-meta strong {
  color: var(--authors-accent);
}

.profile-hero {
  background: var(--authors-navy-deep);
  color: #fff;
  border-bottom: 4px solid var(--authors-accent);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: clamp(1.5rem, 5vw, 3.4rem) 0;
}

.profile-portrait {
  max-width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 8px 8px 0 var(--authors-accent);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-copy {
  align-self: center;
  min-width: 0;
}

.profile-copy h1 {
  margin-top: 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.profile-bio {
  max-width: 700px;
  margin-top: 1.25rem;
  color: #d6dce5;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.profile-topic-list li {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.19);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.profile-linkedin {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.76rem;
  font-weight: 700;
}

.profile-linkedin {
  background: #fff;
  color: var(--authors-navy);
}

.profile-linkedin:hover {
  background: var(--authors-accent-soft);
}

.author-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.author-story-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--authors-line);
}

.author-story-card > a:first-child {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--authors-navy);
}

.author-story-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--authors-navy);
}

.author-story-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--authors-navy), var(--authors-navy-soft));
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
}

.author-story-body {
  padding: 1.05rem;
}

.author-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: var(--authors-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.author-story-meta strong {
  color: var(--authors-accent);
}

.author-story-card h3 {
  margin-top: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.35;
}

.author-story-card h3 a:hover {
  color: var(--authors-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-story-card p {
  margin-top: 0.55rem;
  color: var(--authors-muted);
  font-size: 0.84rem;
}

.author-empty {
  margin-top: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--authors-line);
  border-left: 4px solid var(--authors-accent);
}

.author-empty h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.author-empty p {
  max-width: 680px;
  margin-top: 0.5rem;
  color: var(--authors-muted);
}

.author-more {
  margin-top: 1.2rem;
}

.author-more summary {
  width: fit-content;
  padding: 0.72rem 1rem;
  cursor: pointer;
  color: #fff;
  background: var(--authors-accent);
  font-weight: 700;
}

.author-more[open] summary {
  margin-bottom: 1rem;
}

.author-site .footer {
  margin-top: 0;
  border-top-color: var(--authors-accent);
}

.author-site .footer-brand {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 900;
}

.author-site .footer-brand span {
  color: #d998a2;
}

.author-site .back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background: var(--authors-accent);
  cursor: pointer;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.author-site .back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .author-directory-grid,
  .author-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-card {
    grid-template-columns: 142px minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .profile-hero-grid {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2.5rem, 6vw, 5.4rem);
  }

  .author-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .author-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .author-site .header {
    position: relative;
    padding-inline: 1rem;
  }

  .author-site .header-date {
    display: none;
  }

  .author-site .nav {
    justify-content: flex-start;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .author-site .utility-bar .ub-section:first-child {
    display: none;
  }

  .author-site .utility-bar-inner {
    justify-content: flex-end;
  }

  .directory-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .directory-card-photo {
    min-height: 150px;
  }

  .directory-card-bio,
  .directory-card .topic-list {
    display: none;
  }

  .profile-portrait {
    margin-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-card,
  .author-site .back-to-top {
    transition: none;
  }
}
