/* Article page: centered column, cover, share, neighbors. */

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.article-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: #00adb6;
  transform: scaleX(0);
  transform-origin: left center;
}

.article-wrap {
  width: min(760px, 100%);
  margin-inline: auto;
}

.article-hero,
.article-lead,
.article-meta,
.article-byline,
.article-share,
.article-back {
  text-align: center;
}

.article-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 1.1rem 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-meta__tag {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 173, 182, 0.14);
}

.article-title {
  margin: 0.85rem 0 0;
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.article-lead {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.article-byline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.article-byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  box-sizing: border-box;
}

.article-byline strong,
.article-byline span span {
  display: block;
}

.article-byline strong {
  color: var(--text);
  font-size: 0.95rem;
}

.article-byline span span {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-share {
  margin-top: 1.25rem;
}

.article-share__label {
  margin: 0 0 0.55rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-share__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.article-share__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 16, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.45s cubic-bezier(0.2, 0, 0, 1), border-color 0.45s cubic-bezier(0.2, 0, 0, 1);
}

.article-share__btn:hover,
.article-share__btn:focus-visible {
  border-color: #00adb6;
  background: rgba(0, 173, 182, 0.2);
}

.article-share__status {
  min-height: 1.2rem;
  margin: 0.45rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.article-cover {
  margin: 1.75rem 0 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.05rem;
  padding: 1.6rem 1.5rem 1.45rem;
  border-radius: 22px;
  background: rgba(8, 14, 16, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.article-body p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-body p:first-child::first-letter {
  float: left;
  margin: 0.12rem 0.45rem 0 0;
  color: #00adb6;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 0.8;
}

.article-back {
  margin: 1.25rem 0 0;
}

.article-back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.article-nav__card {
  display: grid;
  gap: 0.3rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(8, 14, 16, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.45s cubic-bezier(0.2, 0, 0, 1), transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}

.article-nav__card:only-of-type {
  grid-column: 1 / -1;
  text-align: left;
}

.article-nav__card:last-child:not(:only-of-type) {
  text-align: right;
}

.article-nav__card:hover,
.article-nav__card:focus-visible {
  border-color: rgba(0, 173, 182, 0.7);
  transform: translateY(-2px);
}

.article-nav__kicker,
.article-nav__tag {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-nav__title {
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

body.theme-light .article-share__btn,
body.theme-light .article-body,
body.theme-light .article-nav__card {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(16, 18, 17, 0.08);
  color: var(--text);
}

body.theme-light .article-body p,
body.theme-light .article-nav__title {
  color: var(--text);
}

@media (max-width: 700px) {
  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__card:last-child {
    text-align: left;
  }

  .article-body {
    padding: 1.2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-share__btn,
  .article-nav__card {
    transition: none;
  }

  .article-nav__card:hover,
  .article-nav__card:focus-visible {
    transform: none;
  }
}
