/* ============================================
   Templates4Make — Additional components v2
   Breadcrumbs, TOC, FAQ, Filters, 404, Newsletter
   ============================================ */

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--ink-500);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--ink-900);
}

.breadcrumb-separator {
  color: var(--ink-300);
}

.breadcrumb-current {
  color: var(--ink-900);
  font-weight: 500;
}

/* Table of Contents */
.toc {
  background: var(--ink-50);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list a {
  font-size: 0.9375rem;
  color: var(--ink-700);
  display: block;
  line-height: 1.5;
}

.toc-list a:hover {
  color: var(--brand-600);
}

.toc-list .toc-h3 {
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--ink-500);
}

/* FAQ accordion (sur comparaisons) */
.faq {
  margin: 3rem 0;
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.faq-item {
  border-bottom: 1px solid var(--ink-100);
}

.faq-item details {
  padding: 1.25rem 0;
}

.faq-item summary {
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-right: 0.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--ink-500);
  font-weight: 300;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item details[open] summary::after {
  transform: rotate(45deg);
}

.faq-item details > div {
  padding-top: 1rem;
  color: var(--ink-700);
  line-height: 1.7;
}

.faq-item details > div p {
  margin-bottom: 0.75rem;
}

.faq-item details > div p:last-child {
  margin-bottom: 0;
}

/* Filters bar (templates listing) */
.filters {
  background: var(--ink-50);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-right: 0.25rem;
}

.filter-chip {
  font-size: 0.8125rem;
  background: white;
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.filter-chip:hover {
  border-color: var(--ink-300);
  color: var(--ink-900);
}

.filter-chip.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}

.filter-count {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--ink-500);
}

/* Newsletter capture */
.newsletter {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--ink-50) 100%);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.newsletter h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.newsletter p {
  font-size: 0.9375rem;
  color: var(--ink-700);
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 24rem;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  background: white;
  color: var(--ink-900);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.newsletter-success {
  color: var(--green-600);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.75rem;
  display: none;
}

.newsletter-success.visible {
  display: block;
}

/* 404 page */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--ink-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.error-page p {
  color: var(--ink-500);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* About / Contact pages */
.content-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.content-page h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.content-page-lead {
  font-size: 1.25rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-card-value {
  font-size: 1.0625rem;
  color: var(--ink-900);
  font-weight: 500;
}

.contact-card-value a:hover {
  color: var(--brand-600);
}

/* Helpers */
.scroll-margin {
  scroll-margin-top: 5rem;
}

/* ============================================
   Pricing Calculator
   ============================================ */
.calculator {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.calculator-header {
  margin-bottom: 2rem;
}

.calculator-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.calculator-subtitle {
  font-size: 0.9375rem;
  color: var(--ink-500);
}

.calculator-input-group {
  margin-bottom: 1.5rem;
}

.calculator-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
}

.calculator-help {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 0.375rem;
  line-height: 1.5;
}

.calculator-slider-wrapper {
  position: relative;
  padding: 0.5rem 0;
}

.calculator-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--ink-200);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--brand-600);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
  transition: transform 0.1s ease;
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.calculator-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--brand-600);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

.calculator-value-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calculator-current-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.calculator-current-value-label {
  font-size: 0.875rem;
  color: var(--ink-500);
}

.calculator-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.calculator-preset {
  font-size: 0.8125rem;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.calculator-preset:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}

.calculator-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .calculator-results { grid-template-columns: repeat(2, 1fr); }
}

.calc-result-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink-100);
  transition: all 0.2s ease;
}

.calc-result-card.winner {
  border-color: var(--brand-600);
  background: linear-gradient(135deg, var(--brand-50) 0%, white 100%);
}

.calc-result-card.loser {
  opacity: 0.85;
}

.calc-result-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--brand-600);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.calc-result-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.calc-result-plan {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-bottom: 1rem;
}

.calc-result-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc-result-period {
  font-size: 0.875rem;
  color: var(--ink-500);
  font-weight: 400;
}

.calc-result-yearly {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 0.5rem;
}

.calc-result-feature {
  font-size: 0.8125rem;
  color: var(--ink-700);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink-100);
}

.calc-savings {
  background: var(--ink-900);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.calc-savings-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.calc-savings-amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.calc-savings-note {
  font-size: 0.875rem;
  color: var(--ink-300);
  margin-top: 0.5rem;
}

.calc-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ============================================
   Pillar Guide — Components SEO 2026
   ============================================ */

/* Author byline */
.author-byline {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-900);
}

.author-meta {
  font-size: 0.8125rem;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Key takeaways box */
.key-takeaways {
  background: var(--ink-50);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.key-takeaways-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 0.75rem;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 1.25rem;
}

.key-takeaways li {
  margin-bottom: 0.5rem;
  color: var(--ink-900);
  line-height: 1.55;
}

.key-takeaways li:last-child {
  margin-bottom: 0;
}

/* Quick answer (featured snippet bait) */
.quick-answer {
  background: linear-gradient(135deg, var(--brand-50) 0%, white 100%);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 2rem;
}

.quick-answer-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 0.375rem;
}

.quick-answer-content {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.55;
  margin: 0;
}

/* Callout boxes (note, warning, tip) */
.callout {
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.callout-content {
  flex: 1;
}

.callout-content > *:first-child { margin-top: 0; }
.callout-content > *:last-child { margin-bottom: 0; }

.callout-tip {
  background: var(--green-50);
  border: 1px solid #a7f3d0;
}
.callout-tip .callout-icon { color: var(--green-600); }

.callout-note {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.callout-note .callout-icon { color: var(--brand-700); }

.callout-warning {
  background: var(--amber-50);
  border: 1px solid #fde68a;
}
.callout-warning .callout-icon { color: var(--amber-700); }

/* Comparison table styling (better for snippets) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th {
  background: var(--ink-50);
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--ink-100);
}

.comparison-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-700);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check { color: var(--green-600); font-weight: 600; }
.comparison-table .cross { color: #dc2626; font-weight: 600; }
.comparison-table .partial { color: var(--amber-700); font-weight: 600; }

/* HowTo step */
.howto-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.howto-step {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--ink-100);
  position: relative;
}

.howto-step:last-child { border-bottom: none; }

.howto-step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--ink-900);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.howto-step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.howto-step-title {
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.375rem;
  font-size: 1.0625rem;
}

.howto-step-content p {
  margin-bottom: 0.5rem;
}

/* Updated date stamp */
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
  background: var(--ink-50);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.last-updated::before {
  content: '✓';
  color: var(--green-600);
  font-weight: 600;
}

/* Sticky TOC for desktop */
@media (min-width: 1280px) {
  .article.with-sticky-toc {
    max-width: 75rem;
    display: grid;
    grid-template-columns: 1fr 16rem;
    gap: 3rem;
  }

  .article.with-sticky-toc > .article-header,
  .article.with-sticky-toc > .article-back,
  .article.with-sticky-toc > div:not(.toc-sticky) {
    grid-column: 1;
  }

  .toc-sticky {
    grid-column: 2;
    grid-row: 2 / span 99;
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    border-left: 1px solid var(--ink-100);
    padding-left: 1.25rem;
    font-size: 0.875rem;
  }

  .toc-sticky-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--ink-500);
    margin-bottom: 0.875rem;
  }

  .toc-sticky ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .toc-sticky li {
    margin-bottom: 0.5rem;
  }

  .toc-sticky li.toc-h3 {
    padding-left: 0.875rem;
    font-size: 0.8125rem;
  }

  .toc-sticky a {
    color: var(--ink-500);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    padding: 0.125rem 0;
    transition: color 0.15s ease;
  }

  .toc-sticky a:hover,
  .toc-sticky a.active {
    color: var(--brand-600);
  }
}

/* Sources section */
.sources {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.sources-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 0.75rem;
}

.sources ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-700);
}

.sources li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.sources a {
  color: var(--brand-600);
  word-break: break-word;
}

.sources a:hover {
  color: var(--brand-700);
}

/* Related guides grid */
.related-guides {
  margin: 3rem 0;
}

.related-guides-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ink-900);
}

.related-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .related-guides-grid { grid-template-columns: repeat(2, 1fr); }
}

.related-guide-card {
  display: block;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  transition: all 0.15s ease;
}

.related-guide-card:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
}

.related-guide-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.375rem;
}

.related-guide-card:hover h4 {
  color: var(--brand-600);
}

.related-guide-card p {
  font-size: 0.875rem;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   Marketplace components (v7 — Lot A)
   ============================================ */

/* New hero — marketplace style */
.hero-marketplace {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--ink-50) 0%, white 100%);
}

.hero-marketplace-badge {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-marketplace h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-marketplace p {
  font-size: 1.125rem;
  color: var(--ink-600);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* Search bar in hero */
.hero-search {
  max-width: 36rem;
  margin: 0 auto 1rem;
  display: flex;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.08);
}

.hero-search:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  color: var(--ink-900);
  font-family: inherit;
}

.hero-search input::placeholder {
  color: var(--ink-400);
}

.hero-search button {
  background: var(--brand-600);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero-search button:hover {
  background: var(--brand-700);
}

.hero-popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 0.75rem;
}

.hero-popular-label {
  color: var(--ink-400);
}

.hero-popular a {
  color: var(--brand-600);
  text-decoration: none;
  padding: 0.125rem 0.625rem;
  background: var(--brand-50);
  border-radius: var(--radius-full);
  transition: background 0.15s ease;
}

.hero-popular a:hover {
  background: var(--brand-100);
}

/* Marketplace stats bar */
.marketplace-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

@media (max-width: 640px) {
  .marketplace-stats { grid-template-columns: repeat(2, 1fr); }
}

.marketplace-stat {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
}

.marketplace-stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.marketplace-stat-label {
  font-size: 0.75rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Section header with sort tabs */
.section-header-marketplace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header-marketplace h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink-900);
}

.sort-tabs {
  display: inline-flex;
  background: var(--ink-50);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.125rem;
}

.sort-tab {
  background: transparent;
  border: none;
  padding: 0.4375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.sort-tab:hover {
  color: var(--ink-900);
}

.sort-tab.active {
  background: white;
  color: var(--ink-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Enriched template cards (with rating + downloads) */
.tpl-card-marketplace {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}

.tpl-card-marketplace:hover {
  border-color: var(--ink-300);
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tpl-card-trending-badge {
  position: absolute;
  top: -8px;
  right: 1rem;
  background: var(--brand-600);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.tpl-card-new-badge {
  position: absolute;
  top: -8px;
  right: 1rem;
  background: var(--green-600);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.tpl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.tpl-card-apps-row {
  display: flex;
  gap: 0.375rem;
}

.tpl-card-app-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ink-100);
  color: var(--ink-700);
}

.tpl-card-author {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.tpl-card-marketplace h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  color: var(--ink-900);
  line-height: 1.3;
}

.tpl-card-marketplace:hover h3 {
  color: var(--brand-700);
}

.tpl-card-marketplace .tpl-desc {
  font-size: 0.875rem;
  color: var(--ink-600);
  margin: 0 0 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.tpl-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 1px solid var(--ink-100);
  font-size: 0.8125rem;
}

.tpl-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--ink-700);
}

.tpl-rating-stars {
  color: var(--amber-500);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.tpl-rating-count {
  color: var(--ink-500);
  font-size: 0.75rem;
}

.tpl-downloads {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink-500);
  font-weight: 500;
}

.tpl-downloads-icon {
  font-size: 0.875rem;
}

/* Submit CTA section */
.submit-cta {
  background: linear-gradient(135deg, var(--brand-50) 0%, white 100%);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.submit-cta-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  color: var(--ink-900);
}

.submit-cta-content p {
  font-size: 0.9375rem;
  color: var(--ink-600);
  margin: 0;
  max-width: 32rem;
}

.submit-cta-button {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Category cards enhanced */
.cat-card-marketplace {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.cat-card-marketplace:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.cat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  flex-shrink: 0;
}

.cat-card-marketplace:hover .cat-card-icon {
  background: var(--brand-600);
  color: white;
}

.cat-card-content {
  flex: 1;
  min-width: 0;
}

.cat-card-content .name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.125rem;
}

.cat-card-content .meta {
  font-size: 0.75rem;
  color: var(--ink-500);
}

/* ============================================
   Services pages (Lot S1 + S2)
   ============================================ */

/* Hero services */
.hero-services {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-50) 0%, white 100%);
}

.hero-services-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: white;
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-100);
  margin-bottom: 1.25rem;
}

.hero-services-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--brand-600);
  color: white;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
}

.hero-services h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-services-subtitle {
  font-size: 1.125rem;
  color: var(--ink-600);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero-services-cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-services-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 1.5rem;
}

.hero-services-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-services-trust span::before {
  content: '✓';
  color: var(--green-600);
  font-weight: 600;
}

/* Services grid (hub page) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 64rem;
}

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

.service-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink-900);
}

.service-card:hover h3 {
  color: var(--brand-700);
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.service-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-100);
}

.service-card-feature {
  font-size: 0.8125rem;
  color: var(--ink-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-feature::before {
  content: '→';
  color: var(--brand-600);
  font-weight: 600;
  flex-shrink: 0;
}

.service-card-pricing {
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-100);
}

.service-card-pricing strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* Trust signals row */
.trust-signals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 3rem auto;
  max-width: 56rem;
  padding: 1.5rem;
  background: var(--ink-50);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .trust-signals { grid-template-columns: repeat(4, 1fr); }
}

.trust-signal {
  text-align: center;
  padding: 0.75rem;
}

.trust-signal-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-700);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.trust-signal-label {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.3;
}

/* Service detail page — hero variant */
.service-detail-hero {
  padding: 3rem 0 2.5rem;
  text-align: left;
}

.service-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.service-detail-meta span {
  background: var(--ink-50);
  color: var(--ink-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.service-detail-meta .badge-certified {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.service-detail-cta-banner {
  background: var(--ink-900);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  text-align: center;
}

.service-detail-cta-banner h3 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
  color: white;
}

.service-detail-cta-banner p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.25rem;
}

.service-detail-cta-banner .btn {
  background: white;
  color: var(--ink-900);
}

.service-detail-cta-banner .btn:hover {
  background: var(--ink-50);
}

/* Qualification form */
.qualification-form {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.qualification-form-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink-900);
}

.qualification-form-subtitle {
  font-size: 0.9375rem;
  color: var(--ink-600);
  margin: 0 0 1.5rem;
}

.qualification-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .qualification-form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.qualification-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 0.375rem;
}

.qualification-form input,
.qualification-form select,
.qualification-form textarea {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink-900);
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qualification-form input:focus,
.qualification-form select:focus,
.qualification-form textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.qualification-form textarea {
  min-height: 100px;
  resize: vertical;
}

.qualification-form-submit {
  margin-top: 0.5rem;
}

.qualification-form-note {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 1rem;
  text-align: center;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.process-step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--brand-600);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  color: var(--ink-900);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--ink-600);
  margin: 0;
  line-height: 1.5;
}

/* Pricing card */
.pricing-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}

.pricing-card-name {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pricing-card-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.pricing-card-period {
  font-size: 0.875rem;
  color: var(--ink-500);
  margin-bottom: 1.25rem;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.pricing-card-features li {
  font-size: 0.875rem;
  color: var(--ink-700);
  padding: 0.375rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card-features li::before {
  content: '✓';
  color: var(--green-600);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card.featured {
  border-color: var(--brand-600);
  border-width: 2px;
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ============================================
   Industry-services pages (Lot S3)
   ============================================ */

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

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

.pain-card {
  background: var(--ink-50);
  border-left: 3px solid var(--brand-600);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
}

.pain-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink-900);
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.55;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.project-list > li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.9375rem;
  color: var(--ink-700);
  line-height: 1.55;
}

.project-list > li:last-child { border-bottom: none; }

.project-list strong {
  color: var(--ink-900);
  font-weight: 600;
}

.project-meta {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}

.case-example {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.case-example p {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.case-example p:last-child { margin-bottom: 0; }

.case-example strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* Industries grid on services hub */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}

.industry-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.industry-card:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.industry-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.industry-card:hover .industry-card-icon {
  background: white;
}

.industry-card-content {
  flex: 1;
}

.industry-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
}

.industry-card-desc {
  font-size: 0.8125rem;
  color: var(--ink-500);
  line-height: 1.3;
  margin-top: 0.125rem;
}

/* ============================================
   News module (Google News compatible)
   ============================================ */

/* News hub hero */
.news-hub-hero {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 2.5rem;
}

.news-hub-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.news-hub-hero p {
  font-size: 1.0625rem;
  color: var(--ink-600);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured article (hero of /news/) */
.news-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .news-featured { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
}

.news-featured-content .news-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.875rem;
}

.news-featured-content h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.news-featured-content h2 a {
  color: inherit;
  text-decoration: none;
}

.news-featured-content h2 a:hover { color: var(--brand-700); }

.news-featured-excerpt {
  font-size: 0.9375rem;
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
  align-items: center;
}

.news-meta a {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
}

.news-meta a:hover { text-decoration: underline; }

.news-meta-separator { color: var(--ink-300); }

.news-featured-image {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--ink-50) 100%);
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--brand-300);
  font-weight: 700;
}

/* News article cards grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 6px 18px -3px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.news-card-image {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--ink-50) 100%);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand-300);
  font-weight: 700;
}

.news-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 0.75rem;
  color: var(--ink-500);
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink-100);
}

/* Category filter bar */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.news-category-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  text-decoration: none;
  transition: all 0.15s ease;
}

.news-category-pill:hover,
.news-category-pill.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: white;
}

/* News article page */
.news-article-header {
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.news-article-header .news-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.news-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.news-article-header .news-meta {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.news-article-hero-image {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--ink-50) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--brand-300);
  font-weight: 700;
}

.news-article-body {
  max-width: 44rem;
  margin: 0 auto;
}

.news-article-body > p:first-of-type {
  font-size: 1.125rem;
  color: var(--ink-700);
  line-height: 1.6;
}

/* Author box */
.author-box {
  background: var(--ink-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-box-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-box-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.author-box-content h4 a { color: inherit; text-decoration: none; }
.author-box-content h4 a:hover { color: var(--brand-700); }

.author-box-content p {
  font-size: 0.875rem;
  color: var(--ink-600);
  margin: 0;
  line-height: 1.5;
}

/* Editorial standards box */
.editorial-box {
  border-left: 3px solid var(--brand-600);
  background: var(--ink-50);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.875rem;
  color: var(--ink-700);
}

.editorial-box strong { color: var(--ink-900); }

/* Author page */
.author-profile {
  max-width: 48rem;
  margin: 2rem auto;
  text-align: center;
}

.author-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.author-profile h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.author-profile .author-title {
  font-size: 1.0625rem;
  color: var(--ink-600);
  margin-bottom: 1.5rem;
}

.author-profile-bio {
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 500;
}

.author-social a:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

/* ============================================
   Social share buttons (news articles)
   ============================================ */

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  align-items: center;
}

.share-buttons-label {
  font-size: 0.8125rem;
  color: var(--ink-600);
  font-weight: 500;
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.share-btn:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
  background: var(--brand-50);
}

.share-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ============================================
   Footer social links
   ============================================ */

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--ink-100);
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.footer-social a:hover {
  background: var(--brand-600);
  color: white;
}
