/* AldSocial Articles & Editorial Design System */

/* Layout Shells */
.articles-page {
  min-height: 100vh;
  background-color: var(--page);
  color: var(--ink);
}

.articles-shell {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.article-reading-wrap {
  width: min(740px, calc(100% - 40px));
  margin-inline: auto;
}

/* Hub Hero */
.hub-hero {
  padding: 130px 0 64px;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(150deg, #f0f7f2 0%, var(--page) 60%);
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .hub-hero,
body.dark-theme .hub-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(53, 207, 107, 0.1), transparent 32%),
    linear-gradient(150deg, #101913 0%, var(--page) 60%);
  border-bottom-color: var(--line);
}

.hub-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.hub-hero .hub-intro {
  max-width: 680px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Topic Filters */
.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 48px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .article-card:hover,
body.dark-theme .article-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.article-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.03);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px;
}

.article-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}

.article-card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Featured Article Banner */
.article-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-featured:hover {
  border-color: var(--green);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.article-featured-media {
  background: var(--surface-soft);
  position: relative;
  min-height: 280px;
  min-width: 0;
  overflow: hidden;
}

.article-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.article-featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-featured-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
  color: var(--ink);
}

.article-featured-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Single Article Header */
.article-header {
  padding: 125px 0 44px;
  background:
    radial-gradient(circle at 75% 25%, rgba(34, 197, 94, 0.08), transparent 30%),
    linear-gradient(150deg, #f4f8f5 0%, var(--page) 70%);
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .article-header,
body.dark-theme .article-header {
  background:
    radial-gradient(circle at 75% 25%, rgba(53, 207, 107, 0.08), transparent 30%),
    linear-gradient(150deg, #101712 0%, var(--page) 70%);
  border-bottom-color: var(--line);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--muted);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.article-back-link:hover {
  color: var(--green);
  transform: translateX(-3px);
}

.article-back-link .svg-icon {
  fill: currentColor;
}

.article-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-breadcrumbs a:hover {
  color: var(--green);
}

.article-breadcrumbs span[aria-hidden="true"] {
  opacity: 0.5;
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  color: var(--ink);
}

.article-deck {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
  font-weight: 400;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-meta-bar strong {
  color: var(--ink);
  font-weight: 600;
}

/* Article Hero Image */
.article-hero-media {
  margin: 36px 0 44px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.article-hero-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-hero-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Give the editorial opening more presence on wide screens while preserving
   the narrower, readable measure for long-form body copy. */
@media (min-width: 900px) {
  .article-header .article-reading-wrap {
    width: min(980px, calc(100% - 64px));
  }

  .article-header h1 {
    max-width: 900px;
  }

  .article-header .article-deck {
    max-width: 850px;
  }

  .article-hero-media {
    width: min(980px, calc(100vw - 64px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* Article Body Typography */
.article-body {
  padding: 50px 0 70px;
  font-size: 18px;
  line-height: 1.76;
  color: var(--ink);
}

.article-body p {
  margin: 0 0 26px;
}

.article-body .lead {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 30px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 54px 0 20px;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 36px 0 16px;
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  margin: 0 0 28px 24px;
  padding: 0;
}

.article-body li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.article-body strong {
  font-weight: 650;
  color: var(--ink);
}

.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.article-body a:hover {
  opacity: 0.85;
}

/* Pullquote & Reality Callouts */
.article-pullquote {
  margin: 40px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--green);
  background: var(--surface-soft);
  border-radius: 0 12px 12px 0;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
}

.article-pullquote p {
  margin: 0;
}

.article-reality {
  margin: 34px 0 38px;
  padding: 28px 30px;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
}

.reality-line {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 550;
  color: var(--ink);
}

.reality-line .sunday {
  font-size: 20px;
  font-weight: 750;
  margin-top: 8px;
  display: block;
  color: var(--green);
}

[data-theme="dark"] .reality-line .sunday,
body.dark-theme .reality-line .sunday {
  color: var(--green-bright);
}

.article-reality p {
  margin: 16px 0 0;
  font-size: 16.5px;
  color: var(--ink);
}

/* Activity Cloud */
.activity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 32px;
}

.activity-cloud span {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 550;
}

/* Practical Checklist & Examples */
.article-checklist {
  margin: 34px 0;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.article-checklist h3 {
  margin-top: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.article-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}

.article-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 750;
  color: var(--green);
}

.article-examples {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--surface-soft);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.article-examples p {
  font-size: 17px;
  font-style: italic;
  margin: 10px 0;
  color: var(--ink);
}

/* Sources & Further Reading */
.article-sources {
  margin: 48px 0 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.article-sources h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  color: var(--ink);
}

.article-sources ul {
  margin: 0 0 0 18px;
  padding: 0;
}

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

/* Share & Tags Section */
.article-footer-meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.article-tags-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 6px;
}

.topic-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.article-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.share-label {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  margin-right: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn:hover {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
}

.share-feedback {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-left: 8px;
}

.share-feedback.active {
  opacity: 1;
}

/* In-Article CTA */
.article-cta {
  margin: 54px 0 0;
  padding: 36px 38px;
  background: linear-gradient(145deg, #163628 0%, #0d2118 100%);
  border-radius: 18px;
  color: #fff;
  border: 1px solid rgba(98, 223, 137, 0.2);
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
}

.article-cta p {
  font-size: 16px;
  line-height: 1.65;
  color: #d2e4d9;
  margin: 0 0 24px;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--green-bright);
  color: #08110b;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.article-cta-btn:hover {
  background: #4be883;
  transform: translateY(-2px);
}

/* Related Articles Block */
.article-related-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.article-related-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

/* Responsive Rules */
@media (max-width: 860px) {
  .article-featured {
    grid-template-columns: 1fr;
  }
  .article-featured-media {
    aspect-ratio: 16 / 9;
  }
  .article-featured-content {
    padding: 28px 24px;
  }
}

/* Roadmap in Articles Hub */
.article-series-roadmap {
  margin: 48px 0 80px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.roadmap-head {
  margin-bottom: 24px;
}

.roadmap-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 12px;
}

.roadmap-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 750;
  margin: 0 0 10px;
  color: var(--ink);
}

.roadmap-head p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.roadmap-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  flex-shrink: 0;
}

.roadmap-item strong {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}

.roadmap-item p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .hub-hero {
    padding: 110px 0 44px;
  }
  .article-header {
    padding: 110px 0 36px;
  }
  .article-body {
    padding: 36px 0 50px;
    font-size: 17px;
  }
  .article-reality {
    padding: 22px;
  }
  .article-pullquote {
    padding: 18px 20px;
    font-size: 18px;
  }
  .article-cta {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card-media img,
  .article-featured,
  .article-cta-btn,
  .share-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Callout and share wrapper - the second article template's names, styled like the first's boxes. */
.article-callout {
  margin: 34px 0;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.article-callout-title {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.article-callout ul {
  margin: 0;
}

.share-actions {
  display: contents;
}

/* The release banner pushes the fixed header down (style.css: 42px, 54px on phones); the top of
   the article and hub headers moves with it so the breadcrumb is not hidden underneath. */
body.has-release-banner .article-header { padding-top: calc(125px + 42px); }
body.has-release-banner .hub-hero { padding-top: calc(130px + 42px); }

@media (max-width: 680px) {
  body.has-release-banner .article-header { padding-top: calc(110px + 54px); }
  body.has-release-banner .hub-hero { padding-top: calc(110px + 54px); }
}

.article-featured-media { width: 100%; }

/* The width/height attributes give the image a 16:9 ratio; with height: 100% that ratio set its
   width from the box's height and pushed it past the card on phones. */
.article-featured-media img {
  display: block;
  max-width: 100%;
  aspect-ratio: auto;
}
