.article-shell {
  --article-bg: #f8faf7;
  --article-card: #ffffff;
  --article-text: #17211b;
  --article-muted: #6b756d;
  --article-border: rgba(23, 33, 27, 0.1);
  --article-accent: #157f8f;
  --article-accent-dark: #0f6673;
  --article-accent-soft: rgba(21, 127, 143, 0.1);
  --article-radius-lg: 28px;
  --article-radius-md: 18px;
  --article-radius-sm: 12px;
  --article-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);

  background: var(--article-bg);
  padding: 34px 0 48px;
  color: var(--article-text);
}

.article-container {
  max-width: 1180px;
}

.article-card,
.article-hero,
.article-section,
.article-toc,
.article-related-card,
.article-list-hero,
.article-list-card {
  background: var(--article-card);
  border: 1px solid var(--article-border);
  box-shadow: var(--article-shadow);
}

.article-hero {
  border-radius: var(--article-radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 28px;
}

.article-eyebrow,
.article-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--article-accent-soft);
  color: var(--article-accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-title {
  margin: 14px 0 12px;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
  color: var(--article-text);
}

.article-subtitle,
.article-list-desc {
  color: var(--article-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
  max-width: 780px;
  margin: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--article-muted);
  font-size: 14px;
  font-weight: 650;
}

.article-hero-image-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: #eef5f2;
}

.article-hero-image,
.article-card-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 98px;
  min-width: 0;
}

.article-section {
  border-radius: var(--article-radius-lg);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 22px;
}

.article-section--wide {
  margin-left: -12px;
  margin-right: -12px;
}

.article-section--highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
}

.article-section-header {
  margin-bottom: 18px;
}

.article-section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--article-text);
}

.article-section-subtitle,
.article-muted,
.article-card-summary {
  color: var(--article-muted);
}

.article-section-subtitle {
  margin: 8px 0 0;
  line-height: 1.7;
}

.article-block {
  margin-bottom: 18px;
}

.article-paragraph {
  color: var(--article-text);
  font-size: 17px;
  line-height: 1.86;
  margin-bottom: 18px;
}

.article-heading {
  color: var(--article-text);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.article-heading-h2 {
  font-size: 30px;
  margin: 28px 0 12px;
}

.article-heading-h3 {
  font-size: 24px;
  margin: 24px 0 10px;
}

.article-heading-h4 {
  font-size: 20px;
  margin: 20px 0 8px;
}

.article-quote {
  border-left: 4px solid var(--article-accent);
  background: var(--article-accent-soft);
  border-radius: 0 18px 18px 0;
  padding: 20px 22px;
  margin: 22px 0;
}

.article-quote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 650;
}

.article-quote footer {
  margin-top: 10px;
  color: var(--article-muted);
  font-size: 14px;
}

.article-toc {
  border-radius: 22px;
  padding: 18px;
}

.article-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-toc h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.article-toc-toggle {
  border: 0;
  background: transparent;
  color: var(--article-accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.article-toc-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.article-toc-list li {
  margin-bottom: 9px;
}

.article-toc-list a {
  color: var(--article-muted);
  text-decoration: none;
  font-weight: 650;
}

.article-toc-list a:hover,
.article-toc-list a.is-active {
  color: var(--article-accent-dark);
}

.article-toc.is-collapsed .article-toc-list {
  display: none;
}

.article-progression-card,
.article-roman-card,
.article-lyrics-excerpt,
.article-pattern-box,
.article-linked-card,
.article-video-card,
.article-cta {
  border: 1px solid var(--article-border);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
}

.article-progression-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-progression-key {
  margin-left: 8px;
  color: var(--article-muted);
  font-size: 13px;
  font-weight: 700;
}

.article-chord-strip,
.article-roman-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.article-chord-token,
.article-roman-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.article-chord-token {
  background: var(--article-accent);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(21, 127, 143, 0.18);
}

.article-roman-token {
  background: #f1f5f9;
  color: #334155;
}

.article-small-button {
  border: 1px solid rgba(21, 127, 143, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--article-accent-soft);
  color: var(--article-accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.is-hidden {
  display: none !important;
}

.article-roman-table-wrap {
  overflow-x: auto;
}

.article-roman-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-roman-table th,
.article-roman-table td {
  border-bottom: 1px solid var(--article-border);
  padding: 10px 8px;
  text-align: left;
}

.article-lyrics-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.article-lyrics-line {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.article-pattern-box {
  display: flex;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
}

.article-pattern-box-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--article-accent);
  color: #ffffff;
  font-weight: 900;
}

.article-pattern-name {
  margin-top: 6px;
  color: var(--article-accent-dark);
  font-weight: 900;
}

.article-linked-card {
  display: block;
  color: var(--article-text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.article-linked-card:hover {
  color: var(--article-text);
  transform: translateY(-1px);
}

.article-linked-card-label {
  display: block;
  color: var(--article-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.article-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.article-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video-card figcaption {
  margin-top: 10px;
  color: var(--article-muted);
  font-size: 14px;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #157f8f 0%, #0f6673 100%);
  color: #ffffff;
}

.article-cta h3,
.article-cta p {
  color: #ffffff;
}

.article-cta p {
  margin-bottom: 0;
  opacity: .88;
}

.article-cta-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .78;
}

.article-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  background: #ffffff;
  color: var(--article-accent-dark);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.article-related {
  margin-top: 28px;
}

.article-related-header h2 {
  font-size: 24px;
  font-weight: 900;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-related-card {
  border-radius: 20px;
  padding: 18px;
}

.article-related-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.article-related-card a {
  color: var(--article-text);
  text-decoration: none;
}

.article-list-hero {
  border-radius: var(--article-radius-lg);
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.article-list-title {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.article-search-form {
  display: flex;
  gap: 10px;
  min-width: min(460px, 100%);
}

.article-search-input {
  min-height: 44px;
  border: 1px solid var(--article-border);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  flex: 1;
}

.article-search-input:focus {
  border-color: rgba(21, 127, 143, 0.5);
  box-shadow: 0 0 0 4px rgba(21, 127, 143, 0.13);
}

.article-search-button,
.article-card-cta {
  border: 0;
  border-radius: 999px;
  background: var(--article-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
}

.article-search-button {
  min-height: 44px;
  padding: 0 18px;
}

.article-card-cta {
  padding: 8px 12px;
  font-size: 13px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-list-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
}

.article-card-image-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef5f2;
}

.article-card-image {
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.article-card-image-wrap:hover .article-card-image {
  transform: scale(1.03);
}

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

.article-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.article-badge-soft {
  background: #f1f5f9;
  color: #475569;
}

.article-card-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
  margin: 0 0 10px;
}

.article-card-title a {
  color: var(--article-text);
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--article-accent-dark);
}

.article-card-summary {
  line-height: 1.65;
  margin-bottom: 16px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.article-meta-text {
  color: var(--article-muted);
  font-size: 13px;
  font-weight: 700;
}

.article-empty-card {
  border-radius: var(--article-radius-lg);
  padding: 34px;
}

@media (max-width: 991.98px) {
  .article-hero,
  .article-layout,
  .article-list-hero {
    grid-template-columns: 1fr;
  }

  .article-layout {
    display: flex;
    flex-direction: column;
  }

  .article-sidebar {
    position: static;
    width: 100%;
    order: -1;
  }

  .article-list-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .article-search-form {
    width: 100%;
  }

  .article-grid,
  .article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .article-shell {
    padding-top: 22px;
  }

  .article-hero,
  .article-section,
  .article-list-hero,
  .article-empty-card {
    border-radius: 22px;
    padding: 22px;
  }

  .article-title {
    font-size: 34px;
  }

  .article-meta {
    font-size: 13px;
  }

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

  .article-search-form {
    flex-direction: column;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-cta-button {
    width: 100%;
  }
}

/* ================= ARTICLE TOC ACTIVE STATE ================= */

.article-toc {
  position: sticky;
  top: 96px;
}

.article-toc-inner {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.article-toc-title {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-toc-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.article-toc-nav a span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.article-toc-nav a:hover,
.article-toc-nav a:focus,
.article-toc-nav a.is-active {
  background: rgba(21, 127, 143, 0.10);
  color: #0f6673;
  transform: translateX(2px);
}

.article-toc-nav a.is-active span {
  color: #157f8f;
}

.article-section {
  scroll-margin-top: 104px;
}

.article-section-anchor {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 127, 143, 0.08);
  color: #157f8f;
  font-weight: 900;
  opacity: 0;
  transition: opacity .18s ease, background-color .18s ease, color .18s ease;
}

.article-section-header:hover .article-section-anchor {
  opacity: 1;
}

.article-section-anchor:hover,
.article-section-anchor:focus,
.article-section-anchor.is-copied {
  opacity: 1;
  background: #157f8f;
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .article-toc {
    position: static;
  }

  .article-toc-inner {
    border-radius: 18px;
  }

  .article-toc-nav {
    max-height: 280px;
    overflow: auto;
  }

  .article-section-anchor {
    opacity: 1;
  }
}


/* ================= ARTICLE RELATED ================= */

.article-related {
  margin-top: 42px;
}

.article-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.article-related-kicker {
  margin: 0 0 6px;
  color: #157f8f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-related-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-related-card {
  min-height: 220px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-related-card:hover,
.article-related-card:focus {
  transform: translateY(-2px);
  border-color: rgba(21, 127, 143, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  color: inherit;
}

.article-related-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.article-related-card-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(21, 127, 143, 0.09);
  color: #0f6673;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.article-related-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article-related-card p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.article-related-card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #157f8f;
  font-weight: 900;
}

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

  .article-related-card {
    min-height: auto;
  }
}

/* ================= ARTICLE LIST PAGE ================= */

.article-list-shell {
  padding: 42px 0 72px;
}

.article-list-hero {
  max-width: 840px;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(21, 127, 143, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.article-list-kicker {
  margin: 0 0 10px;
  color: #157f8f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-list-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.article-list-hero p:last-child {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.article-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-list-card {
  min-height: 280px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-list-card:hover,
.article-list-card:focus {
  transform: translateY(-3px);
  border-color: rgba(21, 127, 143, 0.25);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10);
  color: inherit;
}

.article-list-card.is-featured {
  border-color: rgba(21, 127, 143, 0.28);
  background:
    radial-gradient(circle at top right, rgba(21, 127, 143, 0.10), transparent 34%),
    #ffffff;
}

.article-list-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.article-list-card-top span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(21, 127, 143, 0.09);
  color: #0f6673;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.article-list-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 930;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.article-list-card p {
  margin: 13px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

.article-list-card-bottom {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #157f8f;
  font-weight: 900;
}

.article-list-card-bottom strong {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 127, 143, 0.10);
}

@media (max-width: 991.98px) {
  .article-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .article-list-shell {
    padding-top: 24px;
  }

  .article-list-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .article-list-grid {
    grid-template-columns: 1fr;
  }

  .article-list-card {
    min-height: auto;
  }
}
