/* Article/page-specific styles extracted from style.css */

/* === Single Article === */
.single-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.single-article h1 {
  font-size: 2.4rem;  /* Fix #1: bump to be larger than lead H2 (2.2rem) */
  line-height: 1.35;  /* Fix #2: 1.25 too tight for Finnish compound words */
  margin-bottom: 0.75rem;
  hyphens: auto;      /* Fix #5: Finnish hyphenation (lang=fi on html element) */
  overflow-wrap: break-word;
}

.single-article > .article-ingress--hailuoto {
  max-width: 38em;
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
}

.single-article .article-meta {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  padding: 0.6rem 0 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  line-height: 1.45;
}

.single-article .article-meta > * {
  display: inline-flex;
  align-items: center;
}

.single-article .article-meta a { color: var(--accent); }
.article-updated { color: var(--accent); font-style: normal; font-weight: 700; }
.article-meta .author-inline { color: var(--text-primary); font-weight: 600; }
.article-meta .article-reading-time { white-space: nowrap; }
@media (max-width: 600px) {
  .single-article .article-meta {
    font-size: 0.78rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    gap: 0.25rem 0.4rem;
  }
}

.single-article .content {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 38em;    /* Fix #6: ~80 CPL → narrower for readability */
  hyphens: auto;      /* Fix #5: Finnish hyphenation on body copy too */
  overflow-wrap: break-word;
}

.single-article .content p { margin-bottom: 1.25rem; }

.single-article .content a,
.single-article .article-content a,
.single-article .post-content a {
  color: var(--accent);
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.single-article .content a:hover,
.single-article .article-content a:hover,
.single-article .post-content a:hover,
.single-article .content a:focus-visible,
.single-article .article-content a:focus-visible,
.single-article .post-content a:focus-visible {
  color: #a93226;
  text-decoration-thickness: 0.14em;
}

.single-article .source-attribution {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.single-article .source-attribution a {
  color: var(--accent);
  text-decoration: underline;
}
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f5f4f0;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.author-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.author-bio {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Author in article card meta */
.meta .author-inline {
  font-weight: 600;
}

/* === Toimitus (Editorial Team) Page === */
.toimitus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.writer-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.writer-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.writer-card .writer-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.writer-card .writer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.writer-card .writer-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
}

.writer-card .writer-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.writer-card .writer-bio {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.25rem;
}
/* legacy related-articles/card styles removed — see style.css broadsheet redesign */

.related-thumb {
  flex: 0 0 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.related-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Legacy selector kept for backward compat */
.related-link {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-left: 3px solid var(--border);
  transition: border-color 0.2s;
}

.related-link:hover {
  border-left-color: var(--accent);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* === Article Hero Figure === */
.article-hero-figure {
  margin: 0 0 1.5rem;
}

.article-header-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* figcaption: attribution + optional caption */
.image-caption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary, #888);
  text-align: right;
  margin-top: 0.35rem;
  font-style: italic;
  line-height: 1.4;
}

.image-caption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .single-article h1 { font-size: 1.85rem; }
}

.newsletter-cta {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8f4f4;
  border-left: 4px solid #c0392b;
  border-radius: 4px;
}
.newsletter-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.newsletter-cta-text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
}
.newsletter-cta-text strong {
  font-size: 1rem;
}
.newsletter-cta-text span {
  color: #666;
  font-size: 0.875rem;
}
.newsletter-cta-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.newsletter-cta-input {
  padding: 0.45rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.875rem;
  width: 210px;
  max-width: 100%;
}
.newsletter-cta-input:focus {
  outline: none;
  border-color: #c0392b;
}
.newsletter-cta-btn {
  padding: 0.45rem 1.1rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-cta-btn:hover {
  background: #a93226;
}
[data-theme="dark"] .newsletter-cta {
  background: #1e1e1e;
  border-left-color: #e74c3c;
}
[data-theme="dark"] .newsletter-cta-text span {
  color: #aaa;
}
[data-theme="dark"] .newsletter-cta-input {
  background: #2a2a2a;
  border-color: #444;
  color: #eee;
}
@media (max-width: 480px) {
  .newsletter-cta-form {
    width: 100%;
  }
  .newsletter-cta-input {
    width: 100%;
  }
  .newsletter-cta-btn {
    width: 100%;
  }
}

/* ── Article prev/next navigation ──────────────────────────────────────── */
/* ============================================================
   #19.2 — Share buttons at bottom of article
   ============================================================ */
.social-share--bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e5e5e5);
}
.social-share--bottom .share-buttons {
  margin-top: 0;
}

/* ============================================================
   #19.3 — Read next card (after article)
   ============================================================ */
.read-next {
  margin: 2rem 0;
}
.read-next__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted, #888);
  margin-bottom: 0.75rem;
}
.read-next__card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text, #222);
  background: var(--card-bg, var(--bg, #fff));
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.read-next__card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.read-next__img-wrap {
  flex: 0 0 240px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--border, #e5e5e5);
}
/* Shimmer on read-next image */
.read-next__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--border) 25%, color-mix(in srgb, var(--bg) 60%, var(--border) 40%) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.read-next__img-wrap:has(.img-loaded)::before {
  opacity: 0;
  animation: none;
}
.read-next__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.read-next__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border, #e5e5e5);
}
.read-next__img-placeholder--kotimaa    { background: #3498db; }
.read-next__img-placeholder--ulkomaat   { background: #e74c3c; }
.read-next__img-placeholder--talous     { background: #f39c12; }
.read-next__img-placeholder--teknologia { background: #8e44ad; }
.read-next__img-placeholder--urheilu    { background: #27ae60; }
.read-next__img-placeholder--kulttuuri  { background: #d35400; }
.read-next__img-placeholder--tiede      { background: #16a085; }
.read-next__body {
  flex: 1;
  padding: 1.25rem 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.read-next__cat {
  font-size: 0.7rem;
  align-self: flex-start;
}
.read-next__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.read-next__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted, #666);
  line-height: 1.5;
  margin: 0;
}
.read-next__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent, #c0392b);
  margin-top: auto;
}
@media (max-width: 600px) {
  .read-next__card {
    flex-direction: column;
    gap: 0;
  }
  .read-next__img-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  .read-next__body {
    padding: 1rem;
  }
}
:root:not([data-theme="light"]) .read-next__card {
  background: var(--card-bg, #1e1e1e);
  border-color: var(--border, #333);
}
:root:not([data-theme="light"]) .read-next__card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.40);
}

/* ============================================================ */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e5e5e5);
}
.article-nav-prev,
.article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 45%;
  text-decoration: none;
  color: var(--text, #222);
  transition: color 0.15s;
}
.article-nav-prev { align-items: flex-start; }
.article-nav-next { align-items: flex-end; text-align: right; }
.article-nav-prev:hover,
.article-nav-next:hover { color: #c0392b; }
.article-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}
.article-nav-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}
.article-nav-placeholder {
  max-width: 45%;
}
@media (max-width: 480px) {
  .article-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .article-nav-prev,
  .article-nav-next {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }
}
/* ── TOC ─────────────────────────────────────────────────────── */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
}

.toc-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.toc-title {
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toc-arrow {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  transition: transform 0.15s;
}

.toc-list {
  margin-top: 0.6rem;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

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

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

.toc-list li {
  margin: 0.2rem 0;
}

/* H3 indent */
.toc-list ul ul {
  padding-left: 1rem;
}

.toc-list a {
  color: var(--text-muted, #666);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding: 0.1rem 0;
  border-radius: 2px;
  transition: color 0.1s;
}

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

.toc-list a.toc-active {
  font-weight: 600;
}

@media (max-width: 600px) {
  .toc {
    font-size: 0.85rem;
  }
}

/* Hide TOC in print (already handled but explicit) */
/* .toc print rule consolidated into main @media print block above */
.sponsored-article {
  border-top: 3px solid #e8a000;
}

.sponsor-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fffbf0;
  border: 1px solid #f0d060;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sponsor-label {
  font-weight: 700;
  color: #9a6000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsor-divider {
  color: #ccc;
}

.sponsor-name,
.sponsor-name-link {
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.sponsor-name-link:hover {
  text-decoration: underline;
}

.sponsor-logo {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.sponsor-disclosure {
  font-size: 0.75rem;
  color: var(--text-muted, #666); /* #666 = 5.74:1 on white — WCAG AA */
  font-style: italic;
  width: 100%;
}

.sponsor-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fffbf0;
  border: 1px solid #f0d060;
  border-radius: 4px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.sponsor-cta-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #e8a000;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sponsor-cta-btn:hover {
  background: #c88800;
}

.sponsored-tag {
  font-size: 0.75em;
  font-weight: 600;
  color: #9a6000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsored-meta {
  color: #9a6000;
}


.continue-reading {
  margin: 2.5rem 0 1rem;
}
.continue-reading__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.continue-reading__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.cr-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.cr-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.cr-card:hover .cr-card__title { color: var(--accent); }
.cr-card__img {
  flex: 0 0 120px;
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.cr-card__img--placeholder {
  background: var(--border);
}
.cr-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cr-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-card__progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.cr-card__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.cr-card__pct {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
@media (max-width: 480px) {
  .continue-reading__grid { grid-template-columns: 1fr; }
  .cr-card__img { flex: 0 0 80px; width: 80px; height: 45px; }
}
/* ── Most Read widget ─────────────────────────────────────── */
.most-read-widget {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.most-read-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.most-read-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.most-read-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.most-read-rank {
  flex: 0 0 1.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}
.most-read-link {
  flex: 1;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.most-read-link:hover { color: var(--accent); }
.most-read-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.most-read-empty { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* ── Social share buttons ─────────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.social-share__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-right: 0.25rem;
}
.social-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  padding: 0;
}
.social-share__btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-share__btn:hover,
.social-share__btn:focus-visible {
  transform: translateY(-1px);
  border-color: transparent;
  color: #fff;
}
.social-share__btn--facebook:hover  { background: #1877f2; }
.social-share__btn--x:hover         { background: #000; }
.social-share__btn--linkedin:hover  { background: #0a66c2; }
.social-share__btn--whatsapp:hover  { background: #25d366; }
.social-share__btn--copy:hover      { background: var(--accent); }
.social-share__btn--copied          { background: #22c55e !important; border-color: transparent !important; color: #fff !important; }

/* "Kopioitu!" tooltip on copy button */
.social-share__btn--copy { position: relative; }
.social-share__copied-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #22c55e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.social-share__copied-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #22c55e;
}
.social-share__btn--copied .social-share__copied-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Sara's mobile reading experience fixes (2026-03-21) ────────────── */
@media (max-width: 600px) {
  /* H1 line-height: already 1.35 globally (Sara spec #14 fix #2), kept for mobile parity */

  /* Article meta margin collapse: reduce chrome gap */
  .single-article .article-meta {
    margin-bottom: 1rem;
  }

  /* Paragraph spacing: 1.25rem → 1.5rem (~24px at 16px base) */
  .single-article .content p {
    margin-bottom: 1.5rem;
  }
}

/* category-pill/label consolidated above — 48px touch target */

/* ── Related Articles — moved to style.css (broadsheet redesign) ── */


/* ── Markdown content images (render hook) ───────────────────────── */
.content-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1.5rem auto;
}
.content-figure {
  margin: 1.75rem auto;
  text-align: center;
}
.content-figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-style: italic;
  line-height: 1.5;   /* Fix #7: was 1.40 (browser default ~1.4) — bumped to 1.50 */
}
/* ── end content images ───────────────────────────────────────────── */
.source-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.6rem 1rem;
  background: var(--surface-alt, #f5f5f5);
  border-left: 3px solid var(--accent, #3498db);
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #555);
}
.source-attribution__label {
  font-weight: 600;
  color: var(--text, #222);
}
.source-attribution__link {
  margin-left: auto;
  color: var(--accent, #3498db);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.source-attribution__link:hover {
  text-decoration: underline;
}
[data-theme="dark"] .source-attribution {
  background: var(--surface-alt, #1e1e1e);
}
[data-theme="dark"] .single-article .source-attribution__link,
[data-theme="dark"] .single-article .source-attribution__link:hover,
[data-theme="dark"] .single-article .source-attribution__link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* ── end source attribution ───────────────────────────────────── */

/* ── Journalist note (Spec: journalist-note.html partial) ──────── */
.journalist-note {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent, #3498db);
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 0 6px 6px 0;
}
.journalist-note__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent, #3498db);
}
.journalist-note__title {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.journalist-note__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.2em 0.6em;
  background: #27ae60;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.journalist-note__body {
  font-size: 0.9375rem;
  color: var(--text-secondary, #555);
  line-height: 1.65;
}
.journalist-note__body p { margin: 0; }
.journalist-note__body p + p { margin-top: 0.5em; }
[data-theme="dark"] .journalist-note {
  background: var(--bg-secondary, #1e1e1e);
  border-left-color: var(--accent, #4fb3e8);
}
[data-theme="dark"] .journalist-note__header {
  color: var(--accent, #4fb3e8);
}
/* ── end journalist note ─────────────────────────────────────── */

/* ── Analysis / opinion content type ────────────────────────── */
/* Wider prose column for long-form content (600–1200w) */
.single-article--analysis .content {
  max-width: 68ch;
}
/* Content-type badge */
.content-type-badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  background: var(--accent, #3498db);
  color: #fff;
}
.content-type-badge--opinion  { background: #8e44ad; }
.content-type-badge--feature  { background: #d35400; }
.content-type-badge--analysis { background: #2980b9; }
/* ── end analysis / opinion ────────────────────────────────── */


/* ── Article readability pass ─────────────────────────────── */
.single-article .content,
.single-article .article-content,
.single-article .post-content {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

.single-article .content p,
.single-article .article-content p,
.single-article .post-content p {
  line-height: 1.75;
  margin: 0 0 1rem;
}

.single-article .content h2,
.single-article .content h3,
.single-article .article-content h2,
.single-article .article-content h3,
.single-article .post-content h2,
.single-article .post-content h3 {
  margin: 1.8rem 0 0.85rem;
  line-height: 1.25;
}

.single-article .content ul,
.single-article .content ol,
.single-article .article-content ul,
.single-article .article-content ol,
.single-article .post-content ul,
.single-article .post-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.single-article .content li,
.single-article .article-content li,
.single-article .post-content li {
  margin: 0.35rem 0;
}

.single-article .content blockquote,
.single-article .article-content blockquote,
.single-article .post-content blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--accent, #c0392b);
  background: color-mix(in srgb, var(--surface-alt, #f1eee8) 72%, transparent);
  border-radius: 0 6px 6px 0;
}

[data-theme="dark"] .single-article .content blockquote,
[data-theme="dark"] .single-article .article-content blockquote,
[data-theme="dark"] .single-article .post-content blockquote {
  background: color-mix(in srgb, var(--surface-alt, #202428) 78%, transparent);
}

@media (max-width: 680px) {
  .single-article .content table {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .single-article .content table > thead,
  .single-article .content table > tbody {
    display: table;
    width: 42rem;
    min-width: 42rem;
    max-width: none;
    table-layout: fixed;
  }
}

/* ── Summary Bullets (Kainalojuttu) ────────────────────────── */
.article-summary-bullets {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-alt, #f1eee8);
  border-left: 5px solid var(--accent, #c0392b);
  border-radius: 0 6px 6px 0;
}

.article-summary-bullets__title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #c0392b);
  margin-bottom: 0.75rem;
  display: block;
}

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

.article-summary-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.article-summary-bullets li:last-child {
  margin-bottom: 0;
}

.article-summary-bullets li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--accent);
  font-weight: 700;
}

[data-theme="dark"] .article-summary-bullets {
  background: var(--surface-alt, #202428);
}

/* ── Key Facts (Keskeiset tiedot) ────────────────────────── */
.article-key-facts {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-alt, #f1eee8);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.article-key-facts__title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #666);
  margin: 0 0 1rem;
}

.article-key-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}

.article-key-facts__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-key-facts__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.article-key-facts__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

[data-theme="dark"] .article-key-facts {
  background: var(--surface-alt, #202428);
}
