/* ==========================================================================
   Single Editorial Article — matches front-page design language
   ========================================================================== */

.single-article {
  padding: 34px 0 96px;
}

.single-article__inner {
  display: block;
}

.single-article__head-container {
  margin-bottom: 28px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb__link {
  color: var(--muted);
  transition: color .2s ease;
}

.breadcrumb__link:hover {
  color: var(--brand);
}

.breadcrumb__sep {
  color: rgba(17, 17, 17, 0.25);
}

.breadcrumb__current {
  color: var(--text);
  font-weight: 600;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.single-article__header {
  max-width: 820px;
}

.single-article__header .tag-row {
  align-items: center;
  margin-bottom: 18px;
}

.single-article__date {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.single-article__title {
  margin: 0;
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

.single-article__lead {
  margin: 20px 0 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.single-article__hero-wrap {
  margin-bottom: 40px;
}

.single-article__hero {
  overflow: hidden;
  border-radius: 22px;
  background: #f3f3f3;
  box-shadow: var(--shadow-soft);
}

.single-article__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* ---------- Body ---------- */
.single-article__body {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Meta strip ---------- */
.article-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 28px;
  margin: 0 0 40px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.article-meta-strip__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.article-meta-strip__label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-meta-strip__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  word-wrap: break-word;
}

/* ---------- Person quote (interview) ---------- */
.single-article__quote {
  margin: 0 0 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--brand);
  background: rgba(22, 94, 131, 0.04);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 500;
}

/* ---------- Prose / Content ---------- */
.prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.prose > * + * {
  margin-top: 1.4em;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.18;
}

.prose h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.prose h3 {
  font-size: clamp(20px, 1.8vw, 24px);
}

.prose h4 {
  font-size: 18px;
}

.prose p {
  margin: 0 0 1.4em;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

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

.prose img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 2em 0;
}

.prose figure {
  margin: 2em 0;
}

.prose figure img {
  margin: 0;
}

.prose figure.jdoc-ai-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}

.prose figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--text);
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 0.92em;
}

.prose pre {
  padding: 18px 20px;
  border-radius: 12px;
  background: #111;
  color: #f1f1f1;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.prose hr {
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--line);
  max-width: 120px;
}

/* ---------- Share ---------- */
.article-share {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-share__label {
  margin: 0 0 14px;
  font-family: var(--font-body-en), var(--font-body-ja);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-share__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-share__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.article-share__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.article-share__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.article-share__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.article-share__btn--copy.is-copied {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(22, 94, 131, 0.06);
}

.article-share__copy-status {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.article-share__btn--copy.is-copied .article-share__copy-status {
  opacity: 1;
}

/* ---------- Footer / back link ---------- */
.single-article__footer {
  margin-top: 40px;
}

/* Share section already provides the top divider; footer sits below it. */
.article-share + .single-article__footer {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Related ---------- */
.related-posts {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.related-posts__title {
  margin: 0 0 28px;
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.related-posts__grid .editorial-media {
  aspect-ratio: 4 / 3;
}

.related-posts__grid .editorial-copy {
  padding: 14px 16px 18px;
}

.related-posts__grid .editorial-title {
  font-size: 18px;
  line-height: 1.14;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-meta-strip {
    padding: 16px 18px;
  }
}

@media (max-width: 640px) {
  .single-article { padding: 22px 0 60px; }
  .single-article__hero { border-radius: 14px; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .breadcrumb__current { max-width: 200px; }
}
