/* Content growth is handled by templates and pagination, not a longer homepage. */
section[id] {
  scroll-margin-top: var(--nav-height);
}
.nav-links a[aria-current='page'] {
  color: var(--accent-light);
}
.editorial-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.editorial-section-head .section-head {
  margin-bottom: 0;
  text-align: left;
}
.editorial-section-head .section-desc {
  margin-left: 0;
}
.editorial-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  border-bottom: 1px solid var(--primary-light);
  padding: 10px 0;
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 600;
}
.editorial-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.home-news-more {
  margin-top: 32px;
  text-align: center;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.case-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.content-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-section);
}
.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.content-card:hover .content-card-image img {
  transform: scale(1.035);
}
.media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(11, 21, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 0.75rem;
}
.content-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.content-card-meta > span:first-child {
  color: var(--primary-light);
  font-weight: 600;
}
.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.content-card h3 a {
  color: var(--primary);
}
.content-card h3 a:hover {
  color: var(--accent);
}
.content-card-body > p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
}
.content-card-link {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.content-card-link span {
  color: var(--accent);
  font-size: 1.2rem;
}
:is(.home-cases-grid, .case-archive-grid) > .content-card:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
:is(.home-cases-grid, .case-archive-grid) > .content-card:only-child .content-card-image {
  min-height: 310px;
  aspect-ratio: auto;
}
:is(.home-cases-grid, .case-archive-grid) > .content-card:only-child .content-card-body {
  padding: 42px;
  justify-content: center;
}
:is(.home-cases-grid, .case-archive-grid) > .content-card:only-child h3 {
  font-size: 1.6rem;
}
:is(.home-cases-grid, .case-archive-grid) > .content-card:only-child .content-card-link {
  margin-top: 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 44px;
}
.breadcrumb a {
  color: inherit;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.archive-content {
  padding-top: 38px;
  padding-bottom: 80px;
}
/* Case archives use cards; the original showcase remains on case details. */
.classic-archive {
  padding-top: 28px;
  padding-bottom: 80px;
}
.classic-archive .breadcrumb {
  margin-bottom: 0;
}
.classic-news-header {
  padding-top: 48px;
  margin-bottom: 36px;
}
.case-summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.case-summary-meta .entry-category {
  color: var(--primary);
  font-weight: 600;
}
.classic-case-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-showcase .cm-detail {
  align-items: center;
}
.case-showcase .cm-detail-text-only {
  grid-template-columns: minmax(0, 1fr);
}
.case-showcase .cm-detail-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.case-showcase .cm-detail-text h2 {
  font: 700 12px var(--font-display);
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}
.case-showcase .cm-detail-text p + p,
.case-showcase .cm-detail-text p + h2 {
  margin-top: 16px;
}
.case-showcase .cm-detail-text ul,
.case-showcase .cm-detail-text ol {
  padding-left: 1.5em;
  font-size: 13px;
}
.case-showcase .cm-detail-text img {
  max-width: 100%;
  height: auto;
}
.case-showcase .cm-detail-text a {
  color: var(--primary-light);
  text-decoration: underline;
}
.case-showcase .cm-carousel-item img {
  cursor: zoom-in;
}
.news-content {
  min-width: 0;
}
.news-content .meta time {
  color: var(--text-muted);
  font-size: 13px;
}
.news-content h3 a {
  color: inherit;
}
.news-content h3 a:hover {
  color: var(--accent);
}
.news-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.news-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-section);
  cursor: pointer;
  font: inherit;
}
.news-video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  text-shadow: 0 2px 8px #000;
  font-size: 30px;
  pointer-events: none;
}
.news-video-play > span {
  font-size: 13px;
  font-weight: 600;
}
.news-video-trigger:hover .news-video-play {
  background: rgba(0, 0, 0, 0.35);
}
.news-thumb .news-video-trigger {
  min-height: 160px;
}
.article-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin-bottom: 42px;
  background: #000;
  border-radius: var(--radius-lg);
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.category-filters a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  color: var(--text-secondary);
  background: var(--surface);
  font-size: 0.85rem;
}
.category-filters a span {
  opacity: 0.65;
  font: 0.75rem var(--font-mono);
}
.category-filters a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.archive-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 32px 0 24px;
}
.archive-status h2 {
  color: var(--primary);
  font: 700 1.2rem var(--font-display);
}
.archive-status p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.pagination a,
.pagination > span {
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary);
}
.pagination a {
  border: 1px solid var(--border);
  background: var(--surface);
}
.pagination a[aria-current='page'] {
  background: var(--primary);
  color: #fff;
}
.empty-state {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
  color: var(--text-secondary);
  line-height: 2;
}
.empty-state h1,
.empty-state h3 {
  color: var(--primary);
  margin-bottom: 12px;
}
.empty-state a {
  color: var(--primary-light);
}
.article-shell {
  padding-top: 36px;
  padding-bottom: 64px;
}
.article-header {
  max-width: 880px;
  margin: 0 auto 36px;
}
.article-header .content-card-meta {
  margin-bottom: 18px;
}
.article-header h1 {
  color: var(--primary);
  font: 700 clamp(1.7rem, 3.5vw, 2.5rem) / 1.55 var(--font-display);
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.article-summary {
  color: var(--text-secondary);
  line-height: 1.95;
  font-size: 1rem;
}
.article-cover {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  margin-bottom: 42px;
  cursor: zoom-in;
}
.article-body {
  max-width: 800px;
  margin: 40px auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 2.05;
  overflow-wrap: anywhere;
}
.article-body h2 {
  color: var(--primary);
  font: 700 1.5rem / 1.6 var(--font-display);
  margin: 36px 0 20px;
}
.article-body h3 {
  color: var(--primary);
  margin: 24px 0 12px;
  font-size: 1.1rem;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin-bottom: 20px;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
}
.article-body a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  background: var(--bg-section);
}
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.article-body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
}
.article-body td,
.article-body th {
  border: 1px solid var(--border);
  padding: 12px;
}
.article-panorama .cm-hero-img {
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-lg);
}
.article-source {
  max-width: 800px;
  margin: 36px auto;
  background: var(--bg-section);
  padding: 24px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 2;
}
.article-source strong {
  color: var(--primary);
}
.article-source a {
  color: var(--primary-light);
}
.article-actions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.related-content {
  padding: 56px 0 72px;
}
.related-content h2 {
  font: 700 1.4rem var(--font-display);
  color: var(--primary);
  margin-bottom: 28px;
}
.draft-preview-banner {
  padding: 12px 24px;
  background: #fff3cc;
  color: #705113;
  text-align: center;
  font-size: 0.85rem;
}
.draft-tag {
  color: #8a5f0d !important;
  background: #fff3cc;
  border-radius: 4px;
  padding: 1px 8px;
}
.pinned-tag {
  color: var(--accent);
  border: 1px solid var(--accent-light);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.7rem;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
}
@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(.home-cases-grid, .case-archive-grid) > .content-card:only-child .content-card-body {
    padding: 28px;
  }
}
@media (max-width: 600px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editorial-section-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  :is(.home-cases-grid, .case-archive-grid) > .content-card:only-child {
    display: flex;
  }
  :is(.home-cases-grid, .case-archive-grid) > .content-card:only-child .content-card-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  :is(.home-cases-grid, .case-archive-grid) > .content-card:only-child h3 {
    font-size: 1.2rem;
  }
  :is(.home-cases-grid, .case-archive-grid) > .content-card:only-child .content-card-body {
    padding: 24px;
  }
  .breadcrumb {
    margin-bottom: 28px;
  }
  .category-filters {
    gap: 8px;
  }
  .category-filters a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .article-header h1 {
    font-size: 1.6rem;
  }
  .article-summary,
  .article-body {
    font-size: 0.93rem;
  }
  .article-panorama .cm-hero-img {
    aspect-ratio: 4 / 3;
  }
  .article-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
