.scc-single {
  background: var(--scc-background);
  color: var(--scc-foreground);
}

.scc-single-hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem clamp(2rem, 5vw, 3rem);
  padding-top: calc(80px + clamp(3rem, 8vw, 5rem));
  background-color: var(--scc-primary);
  color: white;
  overflow: hidden;
}

@media (min-width: 768px) {
  .scc-single-hero {
    min-height: 350px;
    padding-top: calc(120px + clamp(3rem, 8vw, 5rem));
  }
}

@media (min-width: 992px) {
  .scc-single-hero {
    min-height: 400px;
  }
}

.scc-single-hero__inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scc-single-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scc-single-hero__badge {
  display: inline-block;
  background: var(--scc-accent);
  color: white;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  font-weight: var(--scc-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.scc-single-hero__badge:hover,
.scc-single-hero__badge:focus {
  background: var(--scc-primary-dark);
  color: white;
}

.scc-single-hero__title {
  font-family: var(--scc-font-heading);
  font-weight: var(--scc-weight-bold);
  font-size: var(--scc-text-hero);
  line-height: var(--scc-leading-tight);
  color: white;
  margin: 0;
  max-width: 22ch;
}

.scc-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.scc-single-hero__meta-item {
  display: inline-flex;
  align-items: center;
}

.scc-single-hero__meta-author {
  font-weight: var(--scc-weight-semibold);
}

.scc-single-hero__meta-sep {
  opacity: 0.6;
}

.scc-single-body {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: var(--scc-background);
}

/* The news-page sidebar is reused on single posts. Hide it below desktop
   — single post articles read full-width on tablet/mobile. */
@media (max-width: 991px) {
  .scc-single-body > .scc-sidebar {
    display: none;
  }
}

/* Desktop: 2-col layout — sidebar in the LEFT gutter, prose on the right.
   The :has() guard keeps single-column behavior when sidebar.php returns
   early (no announcement / reports / financials configured). */
@media (min-width: 992px) {
  .scc-single-body:has(> .scc-sidebar) {
    display: grid;
    grid-template-columns: clamp(280px, 24vw, 340px) 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
  }
  .scc-single-body:has(> .scc-sidebar) .scc-single-prose {
    margin: 0;
    max-width: 720px;
  }
}

.scc-single-share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--scc-border-light);
}

.scc-single-share__label {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  font-weight: var(--scc-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--scc-muted-foreground);
  margin-bottom: 0.5rem;
}

.scc-single-share__buttons {
  display: flex;
  gap: 0.75rem;
}

.scc-single-share__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--scc-muted);
  color: var(--scc-primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scc-single-share__btn:hover,
.scc-single-share__btn:focus {
  background: var(--scc-primary);
  color: white;
  transform: translateY(-1px);
}

.scc-single-share__btn--linkedin:hover { background: #0a66c2; }
.scc-single-share__btn--facebook:hover { background: #1877f2; }
.scc-single-share__btn--x:hover        { background: #000000; }

.scc-single-prose {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  line-height: var(--scc-leading-relaxed);
  color: var(--scc-foreground);
}

.scc-single-prose > * + * {
  margin-top: 1.5rem;
}

.scc-single-prose p {
  margin: 0 0 1.5rem;
}

.scc-single-prose p:last-child {
  margin-bottom: 0;
}

.scc-single-prose h1,
.scc-single-prose h2,
.scc-single-prose h3,
.scc-single-prose h4,
.scc-single-prose h5,
.scc-single-prose h6 {
  font-family: var(--scc-font-heading);
  font-weight: var(--scc-weight-bold);
  line-height: var(--scc-leading-tight);
  color: var(--scc-primary);
  margin: 2rem 0 1rem;
}

.scc-single-prose h2 { font-size: var(--scc-text-3xl); }
.scc-single-prose h3 { font-size: var(--scc-text-2xl); }
.scc-single-prose h4 { font-size: var(--scc-text-xl); }
.scc-single-prose h5 { font-size: var(--scc-text-lg); }
.scc-single-prose h6 {
  font-size: var(--scc-text-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scc-single-prose > h2:first-child,
.scc-single-prose > h3:first-child {
  margin-top: 0;
}

.scc-single-prose a {
  color: var(--scc-success);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.scc-single-prose a:hover,
.scc-single-prose a:focus {
  color: var(--scc-success-dark);
  border-bottom-color: currentColor;
  text-decoration: none;
}

.scc-single-prose strong { font-weight: var(--scc-weight-bold); }
.scc-single-prose em     { font-style: italic; }

.scc-single-prose blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--scc-accent);
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-xl);
  font-style: italic;
  line-height: var(--scc-leading-snug);
  color: var(--scc-primary);
}

.scc-single-prose blockquote p { margin: 0 0 0.75rem; }
.scc-single-prose blockquote p:last-child { margin-bottom: 0; }
.scc-single-prose blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  font-style: normal;
  color: var(--scc-muted-foreground);
}

.scc-single-prose ul,
.scc-single-prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  font-size: var(--scc-text-lg);
  line-height: var(--scc-leading-relaxed);
}

.scc-single-prose li {
  margin-bottom: 0.5rem;
}

.scc-single-prose li > ul,
.scc-single-prose li > ol {
  margin: 0.5rem 0 0.5rem;
}

.scc-single-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.scc-single-prose figure {
  margin: 2rem 0;
}

.scc-single-prose figure img {
  margin: 0;
}

.scc-single-prose figcaption,
.scc-single-prose .wp-caption-text {
  margin-top: 0.5rem;
  font-size: var(--scc-text-sm);
  color: var(--scc-muted-foreground);
  text-align: center;
  font-style: italic;
}

.scc-single-prose .wp-caption {
  max-width: 100%;
  margin: 2rem 0;
}

.scc-single-prose code {
  font-family: var(--scc-font-mono);
  font-size: 0.9em;
  background: var(--scc-muted);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--scc-primary-dark);
}

.scc-single-prose pre {
  font-family: var(--scc-font-mono);
  background: var(--scc-muted);
  border: 1px solid var(--scc-border-light);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: var(--scc-text-sm);
  line-height: var(--scc-leading-normal);
  overflow-x: auto;
  margin: 2rem 0;
}

.scc-single-prose pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.scc-single-prose .scc-single-prose__table-wrap,
.scc-single-prose table {
  width: 100%;
  margin: 2rem 0;
}

.scc-single-prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--scc-text-base);
  border: 1px solid var(--scc-border-light);
  border-radius: 6px;
}

.scc-single-prose table th,
.scc-single-prose table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--scc-border-light);
  vertical-align: top;
}

.scc-single-prose table th {
  background: var(--scc-muted);
  font-family: var(--scc-font-heading);
  font-weight: var(--scc-weight-semibold);
  color: var(--scc-primary);
}

.scc-single-prose table tbody tr:nth-child(even) td {
  background: var(--scc-surface-subtle);
}

.scc-single-prose hr {
  border: 0;
  border-top: 1px solid var(--scc-border-light);
  margin: 3rem auto;
  width: 60%;
}

.scc-single-prose__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--scc-border-light);
  font-size: var(--scc-text-sm);
  color: var(--scc-muted-foreground);
}

.scc-single-prose__pagination a,
.scc-single-prose__pagination > span:not(:first-child) {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--scc-border-input);
  border-radius: 4px;
  color: var(--scc-foreground);
  text-decoration: none;
}

.scc-single-prose__pagination a:hover {
  background: var(--scc-muted);
  color: var(--scc-primary);
}

.scc-single-prose__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--scc-border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scc-single-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.scc-single-taxonomy__label {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  font-weight: var(--scc-weight-semibold);
  color: var(--scc-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

/* Scoped under .scc-single-prose so they out-rank the .scc-single-prose a
   link color — otherwise the cat pill renders green-on-blue. */
.scc-single-prose .scc-single-taxonomy__pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: var(--scc-text-sm);
  font-weight: var(--scc-weight-medium);
  text-decoration: none;
  border: 1px solid var(--scc-border-input);
  color: var(--scc-foreground);
  background: white;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.scc-single-prose .scc-single-taxonomy__pill:hover,
.scc-single-prose .scc-single-taxonomy__pill:focus {
  background: var(--scc-primary);
  color: white;
  border-color: var(--scc-primary);
}

.scc-single-prose .scc-single-taxonomy__pill--cat,
.scc-single-prose .scc-single-taxonomy__pill--cat:hover,
.scc-single-prose .scc-single-taxonomy__pill--cat:focus {
  background: var(--scc-primary);
  color: white;
  border-color: var(--scc-primary);
}

.scc-single-prose .scc-single-taxonomy__pill--cat:hover,
.scc-single-prose .scc-single-taxonomy__pill--cat:focus {
  background: var(--scc-primary-dark);
  border-color: var(--scc-primary-dark);
}

.scc-single-author {
  padding: 0 1.5rem clamp(2rem, 5vw, 3rem);
  background: var(--scc-background);
}

.scc-single-author__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--scc-muted);
  border-left: 4px solid var(--scc-primary);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .scc-single-author__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.scc-single-author__avatar-wrap {
  flex-shrink: 0;
}

.scc-single-author__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
}

.scc-single-author__body {
  flex: 1;
  min-width: 0;
}

.scc-single-author__eyebrow {
  display: block;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  font-weight: var(--scc-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--scc-muted-foreground);
  margin-bottom: 0.25rem;
}

.scc-single-author__name {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-xl);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin: 0 0 0.5rem;
  line-height: var(--scc-leading-tight);
}

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

.scc-single-author__name a:hover {
  color: var(--scc-success);
}

.scc-single-author__bio {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-base);
  line-height: var(--scc-leading-relaxed);
  color: var(--scc-foreground);
  margin: 0;
}

.scc-single-related {
  background: var(--scc-surface-warm);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.scc-single-related__container {
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .scc-single-related__container {
    padding: 0 1.5rem;
  }
}

.scc-single-related__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .scc-single-related__header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 0;
  }
}

.scc-single-related__title {
  font-family: var(--scc-font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin: 0;
}

.scc-single-related__all {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  font-weight: var(--scc-weight-semibold);
  color: var(--scc-success);
  text-decoration: none;
}

.scc-single-related__all:hover {
  text-decoration: underline;
}

.scc-single-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (max-width: 767px) {
  .scc-single-related__grid {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--scc-secondary) transparent;
    padding: 0 0 0.5rem;
    scroll-padding-left: 1.5rem;
  }
  .scc-single-related__card {
    scroll-snap-align: start;
  }
  .scc-single-related__card:first-child {
    margin-left: 1.5rem;
  }
  .scc-single-related__card:last-child {
    margin-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .scc-single-related__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.scc-single-related__card {
  background: white;
  border: 1px solid var(--scc-border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.scc-single-related__card:hover {
  border-color: var(--scc-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.scc-single-related__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--scc-border-light);
  overflow: hidden;
}

.scc-single-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.scc-single-related__card:hover .scc-single-related__media img {
  transform: scale(1.03);
}

.scc-single-related__media-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--scc-primary), var(--scc-primary-light));
}

.scc-single-related__badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: var(--scc-accent);
  color: white;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  font-weight: var(--scc-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.scc-single-related__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.scc-single-related__date {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--scc-muted-text);
}

.scc-single-related__card-title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-lg);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  line-height: var(--scc-leading-snug);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scc-single-related__card-title a {
  color: inherit;
  text-decoration: none;
}

.scc-single-related__card-title a:hover {
  color: var(--scc-success);
}

.scc-single-related__excerpt {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  line-height: var(--scc-leading-relaxed);
  color: var(--scc-foreground);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scc-single-related__read {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  font-weight: var(--scc-weight-semibold);
  color: var(--scc-success);
  text-decoration: none;
  margin-top: auto;
}

.scc-single-related__read:hover {
  text-decoration: underline;
}

.scc-single-cta {
  background: var(--scc-primary);
  color: white;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}

.scc-single-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.scc-single-cta__title {
  font-family: var(--scc-font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: var(--scc-weight-bold);
  color: white;
  margin: 0 0 1rem;
  line-height: var(--scc-leading-tight);
}

.scc-single-cta__text {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  line-height: var(--scc-leading-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
}

.scc-single-cta__btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .scc-single-cta__btns {
    flex-direction: row;
    max-width: none;
  }
}
