/* ==========================================================================
   MEOW: article pages
   ========================================================================== */

.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 4px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pink-strong), var(--lavender-strong), var(--peach-strong));
  pointer-events: none;
}

/* Header */
.article-header {
  padding-block: clamp(2rem, 4.5vw, 3.25rem) 0.5rem; text-align: center;
  background:
    radial-gradient(45% 80% at 85% 0%, var(--lavender) 0%, rgba(233, 226, 250, 0) 70%),
    radial-gradient(40% 80% at 10% 30%, var(--pink-soft) 0%, rgba(252, 238, 242, 0) 70%);
}
.article-header .breadcrumb ol { justify-content: center; }
.article-header__labels { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.article-title { font-size: clamp(2.25rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 19ch; margin-inline: auto; }
.article-dek { margin: 1.15rem auto 0; max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); }
.byline {
  display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 1.75rem; text-align: left;
  background: var(--white); padding: 0.5rem 1.25rem 0.5rem 0.5rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.byline__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); }
.byline__author { font-weight: 700; font-size: 0.95rem; }
.byline__author a { text-decoration: none; }
.byline__author a:hover { text-decoration: underline; text-decoration-color: var(--pink-strong); text-underline-offset: 3px; }

/* Featured image */
.article-hero { margin-top: 1.75rem; max-width: calc(1180px + var(--gutter) * 2); }
.article-hero img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); background: var(--lavender); }
.article-hero figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.8rem; color: var(--ink-3); }
.article-hero figcaption a { color: var(--ink-2); }

/* Layout */
.article-layout { display: grid; grid-template-columns: 270px minmax(0, 740px); justify-content: center; align-items: start; gap: clamp(2rem, 4.5vw, 4.5rem); margin-top: clamp(2rem, 4.5vw, 3.5rem); }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding: 4px; scrollbar-width: thin; }
.article-main { min-width: 0; }

/* Table of contents */
.toc { background: var(--white); border-radius: 24px; box-shadow: var(--shadow-sm); }
.toc__summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1.05rem 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; border-radius: 24px; }
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary .icon { transition: transform 0.25s; }
.toc__details[open] .toc__summary .icon { transform: rotate(180deg); }
.toc__list { display: grid; gap: 0.1rem; padding: 0 0.75rem 0.9rem; counter-reset: toc; }
.toc__list a {
  display: flex; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 12px;
  font-size: 0.9rem; line-height: 1.35; color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.toc__list a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-weight: 700; font-size: 0.75rem; color: var(--ink-3); padding-top: 0.12em; }
.toc__list a:hover { background: var(--cream); color: var(--ink); }
.toc__list a.is-active { background: var(--lavender); color: var(--ink); font-weight: 700; }

/* Share */
.aside-share { background: var(--white); border-radius: 24px; padding: 1.1rem 1.25rem 1.2rem; box-shadow: var(--shadow-sm); }
.aside-share__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.share__btn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--cream); color: var(--ink); text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.share__btn:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }
.share__btn.is-copied { background: var(--lavender-strong); color: var(--ink); }
.share__btn .icon { width: 1.1rem; height: 1.1rem; }
.share--row .share__btn { background: var(--white); }

/* Editorial review notice */
.editor-note {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 2rem;
  padding: 1rem 1.2rem; border-radius: 18px; border: 1.5px dashed #E3A37E;
  background: repeating-linear-gradient(-45deg, #FFF4EA 0 12px, #FFEEE2 12px 24px);
  font-size: 0.92rem; line-height: 1.55; color: var(--ink-2);
}
.editor-note .icon { color: #C87A4E; margin-top: 0.2rem; }
.editor-note strong { color: var(--ink); }

/* In-article blocks */
.prose .ad-slot { margin-block: 2rem; }
.picks { margin-top: 3rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 30px; background: linear-gradient(135deg, var(--peach-soft), var(--pink-soft)); }
.picks__title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.45rem; margin-bottom: 1rem; }
.picks__title .icon { color: #E08AA4; }
.picks .disclosure-note { background: rgba(255, 255, 255, 0.7); margin-bottom: 1.1rem; }
.picks__list { display: grid; gap: 0.85rem; }

.article-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.article-tags__label { font-weight: 700; }
.share-row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; border-radius: 26px; background: var(--lavender); }
.share-row__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; max-width: 22rem; }
.author-box { margin-top: 2rem; display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.5rem; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-sm); }
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; background: var(--cream); }
.author-box__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.3rem; }
.author-box__bio { color: var(--ink-2); font-size: 0.96rem; }
.author-box__bio a { color: var(--ink); font-weight: 700; }

/* Previous / next */
.post-nav { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav__link {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem; border-radius: 24px;
  background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.post-nav__link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-nav__link--next { flex-direction: row-reverse; text-align: right; }
.post-nav__thumb { width: 76px; height: 76px; flex: none; border-radius: 18px; overflow: hidden; background: var(--lavender); }
.post-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-nav__text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.post-nav__label { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.post-nav__link--next .post-nav__label { justify-content: flex-end; }
.post-nav__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.post-nav__spacer { display: block; }

.related { padding-top: clamp(3rem, 6vw, 4.5rem); }
