/* Single blog article — premium editorial reading experience */

.article {
  background: #fff;
  color: #111;
}

.article__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

@media (min-width: 768px) {
  .article__shell {
    padding: 48px 40px 96px;
  }
}

/* Reading progress */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.article-progress__bar {
  width: 0;
  height: 100%;
  background: #000;
  transition: width 120ms linear;
}

/* Breadcrumbs */
.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 13px;
  color: #888;
}

.article-breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 200ms ease;
}

.article-breadcrumbs a:hover {
  color: #111;
}

.article-breadcrumbs__sep {
  color: #ccc;
}

/* Layout */
.article-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1200px) {
  .article-layout {
    grid-template-columns: 200px minmax(0, 1fr) 120px;
    align-items: start;
    gap: 48px;
  }
}

.article-main {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1200px) {
  .article-main {
    max-width: 760px;
    margin: 0;
    grid-column: 2;
  }
}

/* TOC */
.article-toc__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111;
}

.article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc__item--h3 {
  padding-left: 12px;
}

.article-toc__link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  text-decoration: none;
  transition: color 200ms ease;
}

.article-toc__link:hover,
.article-toc__link.is-active {
  color: #111;
}

.article-toc__link.is-active {
  font-weight: 600;
}

.article-toc--desktop {
  display: none;
}

@media (min-width: 1200px) {
  .article-toc--desktop {
    display: block;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .article-toc--mobile {
    display: none;
  }
}

.article-toc--mobile {
  margin-bottom: 28px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.article-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: none;
  cursor: pointer;
}

.article-toc__toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 200ms ease;
}

.article-toc__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.article-toc__panel {
  padding: 0 16px 16px;
}

.article-toc__panel[hidden] {
  display: none;
}

/* Header */
.article-header {
  margin-bottom: 40px;
  max-width: 900px;
}

.article-header__category {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111;
  text-decoration: none;
}

.article-header__category:hover {
  opacity: 0.65;
}

.article-header__meta {
  margin: 0 0 20px;
  font-size: 14px;
  color: #666;
}

.article-header__meta-sep {
  margin: 0 8px;
}

.article-header__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.article-header__intro {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  max-width: 720px;
}

/* Hero image */
.article-hero {
  margin: 0 0 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.article-hero .CroppedImage {
  aspect-ratio: 16 / 9;
}

.article-hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  animation: article-fade-in 400ms ease;
}

/* Match info */
.article-match {
  margin-bottom: 48px;
  padding: 28px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.article-match__title {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-match__scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.article-match__team-name {
  font-size: 18px;
  font-weight: 600;
}

.article-match__team--away {
  text-align: right;
}

.article-match__score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article-match__score-sep {
  color: #999;
}

.article-match__details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.article-match__details div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-size: 14px;
}

.article-match__details dt {
  color: #666;
  font-weight: 500;
}

.article-match__details dd {
  margin: 0;
  font-weight: 600;
}

/* Prose */
.article-prose {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

.article-prose > *:first-child {
  margin-top: 0;
}

.article-prose p {
  margin: 0 0 28px;
}

.article-prose h2 {
  margin: 56px 0 24px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 88px;
}

.article-prose h3 {
  margin: 40px 0 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: 88px;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 28px;
  padding-left: 1.4em;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose blockquote {
  margin: 40px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid #111;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: #111;
}

.article-prose blockquote::before {
  content: '"';
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  color: #ccc;
}

.article-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: 8px;
  animation: article-fade-in 400ms ease;
}

.article-prose figure {
  margin: 40px 0;
}

.article-prose figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.article-prose table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.article-prose th,
.article-prose td {
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.article-prose th {
  font-weight: 600;
  background: #f7f7f7;
}

.article-prose pre,
.article-prose code {
  font-family: ui-monospace, monospace;
  font-size: 14px;
}

.article-prose pre {
  margin: 32px 0;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 8px;
  overflow-x: auto;
}

.article-prose iframe,
.article-prose video {
  display: block;
  max-width: 100%;
  margin: 40px 0;
  border-radius: 8px;
}

@keyframes article-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Section titles */
.article-section-title {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Recommended gear */
.article-gear {
  margin: 56px 0;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.article-gear__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.article-gear__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: #111;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: border-color 200ms ease, background 200ms ease;
}

.article-gear__item:hover {
  border-color: #111;
  background: #fafafa;
}

.article-gear__emoji {
  font-size: 20px;
}

.article-gear__label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.article-gear__cta {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

/* Tags */
.article-tags {
  margin: 48px 0;
}

.article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tags__pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  transition: border-color 200ms ease, background 200ms ease;
}

.article-tags__pill:hover {
  border-color: #111;
  background: #f5f5f5;
}

/* Author */
.article-author {
  display: flex;
  gap: 20px;
  margin: 56px 0 32px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.article-author__avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f0f0;
  overflow: hidden;
}

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

.article-author__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.article-author__name a {
  color: inherit;
  text-decoration: none;
}

.article-author__name a:hover {
  opacity: 0.65;
}

.article-author__role {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

.article-author__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: #888;
}

.article-author__meta-sep {
  margin: 0 6px;
}

/* Share */
.article-share__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: inherit;
  color: #111;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.article-share__btn:hover {
  border-color: #111;
  background: #f5f5f5;
}

.article-share__btn:active {
  transform: scale(0.96);
}

.article-share__btn.is-copied {
  border-color: #111;
  background: #111;
  color: #fff;
}

.article-share__btn.is-copied .article-share__icon {
  fill: #fff;
}

.article-share__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.article-share--desktop .article-share__actions {
  flex-direction: column;
}

.article-share--desktop {
  display: none;
}

@media (min-width: 1200px) {
  .article-share--desktop {
    display: block;
    position: sticky;
    top: 96px;
  }

  .article-share--mobile {
    display: none;
  }
}

.article-share--mobile {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.article-share--mobile .article-share__actions {
  flex-direction: row;
}

/* Related + carousel wrap */
.article-product-carousel {
  margin-top: 64px;
}

.article-product-carousel .home-product-section {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Related articles */
.article-related {
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.article-related .journal-grid--latest {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .article-related .journal-grid--latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .article-related .journal-grid--latest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Prev / next */
.article-nav {
  display: grid;
  gap: 16px;
  margin-top: 64px;
}

@media (min-width: 768px) {
  .article-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.article-nav__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: #111;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  min-height: 120px;
  transition: border-color 200ms ease, background 200ms ease;
}

.article-nav__card:hover {
  border-color: #111;
  background: #fafafa;
}

.article-nav__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
}

.article-nav__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.article-nav__card--next {
  text-align: right;
}

/* Newsletter on article */
.article-newsletter {
  margin-top: 64px;
}
