/* 18Cat Insights Article Editorial Polish (Strict CSP safe, Monochrome + Apple/Stripe Typography) */

/* 1. Top reading progress hairline */
.cat-art-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9998;
  pointer-events: none;
  background: transparent;
}

.cat-art-progress-fill {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #18181b;
  transition: transform 0.08s linear;
}

html[data-theme="dark"] .cat-art-progress-fill {
  background: #f4f4f5;
}

/* 2. Page container & clean hairline framing */
body[data-article-page] .article-main {
  --art-ink: #18181b;
  --art-body: #3f3f46;
  --art-muted: #71717a;
  --art-subtle: #fafafa;
  --art-hover: #f4f4f5;
  --art-line: #e4e4e7;
  --art-line-strong: #d4d4d8;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 32px;
  padding-bottom: 96px;
  border-inline: 0;
  background: transparent;
}

html[data-theme="dark"] body[data-article-page] .article-main {
  --art-ink: #f4f4f5;
  --art-body: #d4d4d8;
  --art-muted: #a1a1aa;
  --art-subtle: rgba(255, 255, 255, 0.03);
  --art-hover: rgba(255, 255, 255, 0.06);
  --art-line: rgba(255, 255, 255, 0.1);
  --art-line-strong: rgba(255, 255, 255, 0.18);
  background: transparent;
}

html[data-theme="light"] [data-article-page] .article-main {
  background: transparent;
  border-color: transparent;
}

body[data-article-page][data-inner-page-header] .article-main {
  padding-top: 104px;
}

/* 2b. Inherit 18Cat homepage twin vertical architectural anchor rails on article & insights index pages */
body[data-article-page],
body[data-insights-index] {
  overflow-x: clip;
}

html[data-theme] body:is([data-article-page], [data-insights-index]) #main {
  position: relative;
}

html[data-theme] body:is([data-article-page], [data-insights-index]) #main::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 48px;
  left: 50%;
  width: min(1292px, calc(100vw - 40px));
  transform: translate3d(-50%, 0, 0);
  border-inline: 1px solid #e9eaf2;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 32px), transparent);
  pointer-events: none;
}

html[data-theme="dark"] body:is([data-article-page], [data-insights-index]) #main::before {
  border-inline-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  html[data-theme] body:is([data-article-page], [data-insights-index]) #main::before {
    width: calc(100vw - 24px);
  }
}

@media (max-width: 600px) {
  html[data-theme] body:is([data-article-page], [data-insights-index]) #main::before {
    width: calc(100vw - 16px);
    bottom: 28px;
  }
}

@media (max-width: 360px) {
  html[data-theme] body:is([data-article-page], [data-insights-index]) #main::before {
    width: calc(100vw - 12px);
  }
}

/* 3. Refined Apple/Linear monochrome back button + hairline category tag */
body[data-article-page] .article-topline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 6px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1;
  color: var(--art-muted);
}

body[data-article-page] .article-topline a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--art-line-strong);
  background: var(--art-subtle);
  color: var(--art-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme="light"] body[data-article-page] .article-topline a {
  background: #ffffff;
  border-color: #e4e4e7;
  color: #27272a;
}

html[data-theme="dark"] body[data-article-page] .article-topline a {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
  color: #e4e4e7;
  box-shadow: none;
}

body[data-article-page] .article-topline a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  background-color: currentColor;
  opacity: 0.72;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.75 3.75 5.5 8l4.25 4.25' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.75 3.75 5.5 8l4.25 4.25' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

html[data-theme="light"] body[data-article-page] .article-topline a:hover {
  background: #fafafa;
  border-color: #d4d4d8;
  color: #09090b;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.06);
}

html[data-theme="dark"] body[data-article-page] .article-topline a:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

body[data-article-page] .article-topline a:hover::before {
  transform: translate3d(-2px, 0, 0);
  opacity: 1;
}

body[data-article-page] .article-topline a:focus-visible {
  outline: 2px solid #533afd;
  outline-offset: 2px;
}

body[data-article-page] .article-topline > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--art-muted);
}

body[data-article-page] .article-topline > span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--art-line-strong);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  body[data-article-page] .article-topline a,
  body[data-article-page] .article-topline a::before {
    transition: none;
  }
}

/* 4. Editorial H1 header */
body[data-article-page] .article-heading {
  margin: 20px 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--art-line);
}

body[data-article-page] .article-heading h1 {
  max-width: 820px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--art-ink);
  text-wrap: balance;
}

/* 5. Two-column editorial layout */
body[data-article-page] .article-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* 6. Sticky sidebar: crisp metadata + monochrome TOC */
body[data-article-page] .article-aside {
  --article-ink: var(--art-ink);
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 0;
  color: var(--art-muted);
  font-size: 13px;
  max-height: calc(100svh - 132px);
  overflow-y: auto;
}

body[data-article-page] .article-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin: 0 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--art-line);
}

body[data-article-page] .article-meta > div {
  min-width: 0;
}

body[data-article-page] .article-meta dt {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--art-muted);
  letter-spacing: 0.01em;
}

body[data-article-page] .article-meta dt svg {
  width: 13px;
  height: 13px;
  opacity: 0.72;
  flex-shrink: 0;
}

body[data-article-page] .article-meta dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--art-ink);
  font-variant-numeric: tabular-nums;
}

body[data-article-page] .article-read-metric {
  grid-column: 1 / -1;
  padding-top: 2px;
}

body[data-article-page] .article-read-metric.is-cat-empty {
  display: none;
}

body[data-article-page] .article-read-metric dd {
  font-size: 13.5px;
  font-weight: 600;
}

/* TOC Outline */
body[data-article-page] .article-outline {
  margin: 0;
}

body[data-article-page] .article-outline summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--art-ink);
  letter-spacing: 0.01em;
}

body[data-article-page] .article-outline-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--art-muted);
}

body[data-article-page] .article-outline summary svg {
  width: 14px;
  height: 14px;
  color: var(--art-muted);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-article-page] .article-toc {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  border-left: 1px solid var(--art-line);
}

body[data-article-page] .article-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  margin-left: -1px;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--art-muted);
  text-decoration: none;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

body[data-article-page] .article-toc a:hover {
  color: var(--art-ink);
  background: var(--art-hover);
}

body[data-article-page] .article-toc-number {
  padding-top: 1px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--art-muted);
  opacity: 0.7;
}

/* Monochrome restraint active TOC state (no purple wash) */
body[data-article-page] .article-toc a[aria-current],
html[data-theme="light"] body[data-article-page] .article-toc a[aria-current] {
  border-left-color: #18181b;
  background: #f4f4f5;
  color: #18181b;
  font-weight: 600;
}

html[data-theme="dark"] body[data-article-page] .article-toc a[aria-current] {
  border-left-color: #f4f4f5;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f4f5;
  font-weight: 600;
}

body[data-article-page] .article-toc a[aria-current] .article-toc-number {
  color: inherit;
  opacity: 0.85;
}

/* Monochrome outline Copy Link button */
body[data-article-page] .article-copy-link,
html[data-theme="light"] body[data-article-page] .article-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  margin-top: 20px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--art-line);
  background: var(--art-subtle);
  color: var(--art-ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

body[data-article-page] .article-copy-link:hover,
html[data-theme="light"] body[data-article-page] .article-copy-link:hover {
  background: var(--art-hover);
  border-color: var(--art-line-strong);
  color: var(--art-ink);
}

body[data-article-page] .article-copy-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.78;
}

/* 7. Main editorial body: optimal CJK measure & section rhythm */
body[data-article-page] .article-body {
  min-width: 0;
  max-width: 720px;
  counter-reset: art-sec;
}

body[data-article-page] .article-cover {
  margin: 0 0 32px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--art-line);
  background: var(--art-subtle);
}

body[data-article-page] .article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: 360px;
  object-fit: cover;
}

body[data-article-page] .article-body .article-lead {
  max-width: 660px;
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--art-line);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 450;
  color: var(--art-ink);
}

body[data-article-page] .article-body section {
  max-width: 660px;
  margin: 0;
  padding: 34px 0 0;
  counter-increment: art-sec;
}

body[data-article-page] .article-body section:first-of-type {
  padding-top: 4px;
}

body[data-article-page] .article-body section + section {
  margin-top: 34px;
  border-top: 1px solid var(--art-line);
}

body[data-article-page] .article-body h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--art-ink);
  scroll-margin-top: 108px;
}

body[data-article-page] .article-body h2::before {
  content: "0" counter(art-sec);
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--art-muted);
  letter-spacing: 0.02em;
}

body[data-article-page] .article-body p,
body[data-article-page] .article-body li {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--art-body);
}

body[data-article-page] .article-body p {
  margin: 0 0 16px;
}

body[data-article-page] .article-body p:last-child {
  margin-bottom: 0;
}

body[data-article-page] .article-body ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--art-line);
}

body[data-article-page] .article-body li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--art-line);
  color: var(--art-ink);
  font-size: 15px;
  line-height: 1.7;
}

body[data-article-page] .article-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--art-ink);
  opacity: 0.55;
}

/* 8. Interactive Launch Checklist (flat hairline, monochrome restraint) */
.cat-checklist-panel {
  max-width: 660px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--art-line);
}

.cat-checklist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cat-checklist-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--art-ink);
  letter-spacing: -0.015em;
}

.cat-checklist-head p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--art-muted);
}

.cat-checklist-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cat-checklist-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--art-line);
  background: var(--art-subtle);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--art-ink);
}

.cat-checklist-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a1a1aa;
  transition: background-color 0.16s ease;
}

.cat-checklist-count.is-done .cat-checklist-dot {
  background: #10b981;
}

.cat-checklist-reset {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--art-muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.14s ease;
}

.cat-checklist-reset:hover {
  color: var(--art-ink);
}

.cat-checklist-bar {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: var(--art-line);
  overflow: hidden;
  margin-bottom: 14px;
}

.cat-checklist-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #18181b;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] .cat-checklist-bar-fill {
  background: #f4f4f5;
}

.cat-checklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--art-line);
}

.cat-checklist-item {
  border-bottom: 1px solid var(--art-line);
}

.cat-checklist-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.cat-checklist-label:hover {
  background: var(--art-subtle);
}

.cat-checklist-input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  border-radius: 5px;
  border: 1.5px solid var(--art-line-strong);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.cat-checklist-input:checked {
  background: #18181b;
  border-color: #18181b;
}

html[data-theme="dark"] .cat-checklist-input:checked {
  background: #f4f4f5;
  border-color: #f4f4f5;
}

.cat-checklist-input:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4.5px;
  height: 8.5px;
  border: solid #ffffff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
}

html[data-theme="dark"] .cat-checklist-input:checked::after {
  border-color: #18181b;
}

.cat-checklist-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-checklist-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--art-ink);
  transition: color 0.14s ease, opacity 0.14s ease;
}

.cat-checklist-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--art-muted);
}

.cat-checklist-input:checked + .cat-checklist-text .cat-checklist-title {
  text-decoration: line-through;
  color: var(--art-muted);
  opacity: 0.8;
}

/* 9. Flat Open Editorial CTA (zero card box, pure hairline rhythm) */
body[data-article-page] .article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 56px 0 0;
  padding: 40px 0;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--art-line);
  border-radius: 0;
  background: transparent;
}

body[data-article-page] .article-cta-copy {
  min-width: 0;
}

body[data-article-page] .article-cta h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--art-ink);
}

body[data-article-page] .article-cta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--art-muted);
}

body[data-article-page] .article-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body[data-article-page] .article-cta .cat-art-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--art-line-strong);
  background: transparent;
  color: var(--art-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

body[data-article-page] .article-cta .cat-art-secondary-btn:hover {
  background: var(--art-hover);
}

/* 10. Related Reading Cards */
body[data-article-page] .article-related {
  padding-top: 40px;
  border-top: 1px solid var(--art-line);
}

body[data-article-page] .article-related > h2 {
  margin: 0 0 22px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--art-ink);
}

body[data-article-page] .article-related > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body[data-article-page] .article-related a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  group: related;
}

body[data-article-page] .article-related .cat-rel-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--art-line);
  background: var(--art-subtle);
}

body[data-article-page] .article-related img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-article-page] .article-related a:hover img {
  transform: scale(1.025);
}

body[data-article-page] .article-related h3 {
  margin: 14px 0 6px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--art-ink);
  transition: opacity 0.14s ease;
}

body[data-article-page] .article-related a:hover h3 {
  opacity: 0.78;
}

.cat-rel-more {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--art-muted);
}

/* 11. Tablet & Mobile Responsive */
@media (max-width: 900px) {
  body[data-article-page] .article-main {
    padding-inline: 22px;
  }

  body[data-article-page] .article-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 720px) {
  body[data-article-page] .article-main {
    padding-inline: 18px;
    padding-bottom: 64px;
  }

  body[data-article-page][data-inner-page-header] .article-main {
    padding-top: 84px;
  }

  body[data-article-page] .article-heading {
    margin: 16px 0 22px;
    padding-bottom: 18px;
  }

  body[data-article-page] .article-heading h1 {
    font-size: 27px;
    line-height: 1.3;
  }

  body[data-article-page] .article-layout {
    display: block;
  }

  body[data-article-page] .article-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--art-line);
    max-height: none;
    overflow: visible;
  }

  body[data-article-page] .article-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--art-line);
  }

  body[data-article-page] .article-meta > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  body[data-article-page] .article-meta dt {
    margin: 0;
  }

  body[data-article-page] .article-outline {
    grid-column: 1;
    min-width: 0;
  }

  body[data-article-page] .article-outline[open] {
    grid-column: 1 / -1;
  }

  body[data-article-page] .article-outline summary {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--art-line);
    background: var(--art-subtle);
  }

  body[data-article-page] .article-copy-link,
  html[data-theme="light"] body[data-article-page] .article-copy-link {
    grid-column: 2;
    width: auto;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  body[data-article-page] .article-outline[open] + .article-copy-link {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  body[data-article-page] .article-cover {
    margin-bottom: 22px;
    border-radius: 12px;
  }

  body[data-article-page] .article-cover img {
    aspect-ratio: 16 / 9;
  }

  body[data-article-page] .article-body .article-lead {
    font-size: 16px;
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  body[data-article-page] .article-body section {
    padding-top: 26px;
  }

  body[data-article-page] .article-body section + section {
    margin-top: 26px;
  }

  body[data-article-page] .article-body h2 {
    font-size: 19px;
    gap: 9px;
  }

  body[data-article-page] .article-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
    margin: 40px 0 0;
    gap: 18px;
  }

  body[data-article-page] .article-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  body[data-article-page] .article-related > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cat-checklist-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 12. Key Takeaways strip & Draft Preview banner (flat hairline, zero card box) */
.cat-art-takeaways {
  max-width: 660px;
  margin-top: 40px;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--art-line);
  border-radius: 0;
  background: transparent;
}

.cat-art-takeaways h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--art-ink);
  letter-spacing: -0.01em;
}

.cat-art-takeaways ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-top: 1px solid var(--art-line) !important;
}

.cat-art-takeaways li {
  padding: 10px 0 10px 20px !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

.cat-art-takeaways li:last-child {
  border-bottom: 0 !important;
  padding-bottom: 2px !important;
}

.cat-draft-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--art-line-strong);
  background: var(--art-subtle);
  color: var(--art-ink);
  font-size: 12.5px;
  font-weight: 500;
}

.cat-draft-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
  flex-shrink: 0;
}

/* 13. /insights/ Blog Library Index Enhancements */
.cat-journal-enhanced {
  --j-ink: #18181b;
  --j-muted: #71717a;
  --j-line: #e4e4e7;
  --j-subtle: #fafafa;
  --j-hover: #f4f4f5;
}

html[data-theme="dark"] .cat-journal-enhanced {
  --j-ink: #f4f4f5;
  --j-muted: #a1a1aa;
  --j-line: rgba(255, 255, 255, 0.1);
  --j-subtle: rgba(255, 255, 255, 0.03);
  --j-hover: rgba(255, 255, 255, 0.06);
}

.cat-journal-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--j-line);
}

.cat-journal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--j-line);
  background: var(--j-subtle);
  color: var(--j-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.cat-journal-chip small {
  font-size: 11px;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.cat-journal-chip:hover {
  color: var(--j-ink);
  background: var(--j-hover);
}

.cat-journal-chip.is-active {
  background: #18181b;
  border-color: #18181b;
  color: #ffffff;
}

html[data-theme="dark"] .cat-journal-chip.is-active {
  background: #f4f4f5;
  border-color: #f4f4f5;
  color: #18181b;
}

.cat-journal-enhanced .journal-feature-art,
.cat-journal-enhanced .journal-card-art {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--j-line);
  background: var(--j-subtle);
}

.cat-journal-enhanced .journal-feature-art {
  align-self: center;
}

.cat-journal-enhanced .journal-card-art img,
.cat-journal-enhanced .journal-feature-art img {
  display: block;
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-journal-enhanced .journal-card a:hover .journal-card-art img,
.cat-journal-enhanced .journal-feature-link:hover .journal-feature-art img {
  transform: scale(1.025);
}

.cat-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

@media (max-width: 980px) {
  .cat-journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cat-journal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-art-progress-fill,
  .cat-checklist-bar-fill,
  body[data-article-page] .article-related img,
  .cat-journal-enhanced .journal-card-art img,
  .cat-journal-enhanced .journal-feature-art img {
    transition: none;
  }
}
