/* Detail-only styles: the landing page's navy, warm orange and quiet surfaces. */
.article-detail-page { --reading-size: 17px; background: #f5f7f8; }
.article-detail-page .journal-detail-hero { position: relative; overflow: hidden; padding: 26px 0 80px; background: radial-gradient(circle at 78% 15%, #244e72, transparent 48%), radial-gradient(circle at 5% 100%, #6d44382e, transparent 38%), #102e4d; }
.article-detail-page .journal-detail-hero::after { content: ''; position: absolute; width: 600px; height: 600px; border: 1px solid #ffffff0c; border-radius: 50%; left: -300px; bottom: -440px; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff03; pointer-events: none; }
.article-detail-page .detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.article-detail-page .article-header h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.6; margin-block: 22px 16px; }
.article-detail-page .article-header > p { font-size: 1rem; color: #c4d2e0; }
.article-detail-page .journal-start { background: #ffad68; color: #102e4d; border-radius: 12px; padding: 12px 23px; font-weight: 700; margin-top: 28px; }
.article-detail-page .journal-start:hover { background: #ffc18e; }
.detail-cover { min-width: 0; padding: 10px; border-radius: 24px; background: #ffffff0b; border: 1px solid #ffffff26; box-shadow: 0 24px 60px #03112040; }
.detail-cover > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f6f8; border-radius: 16px; }
.detail-cover-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 10px 6px; color: #d1deea; font-size: .75rem; }
.detail-cover-caption > span:first-child { color: #ffbc86; }
.detail-cover-empty { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; aspect-ratio: 4 / 3; padding: 32px; border-radius: 16px; background: radial-gradient(circle at 0 100%, #ffddbf, transparent 65%), #eef4f9; color: #163d60; }
.detail-cover-empty > i { font-size: 2rem; color: #b76328; margin-bottom: 20px; }
.detail-cover-empty > span { font-size: .85rem; margin-bottom: 12px; }
.detail-cover-empty > strong { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.65; }
.article-detail-page .detail-toolbar { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: -30px; padding: 16px 24px; border-radius: 16px; border: 1px solid #e1e7eb; background: #fff; box-shadow: 0 12px 32px #112b4608; }
.detail-toolbar > a { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; min-height: 44px; }
.detail-toolbar > a > i { color: #bc6426; }
.detail-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.detail-tools[hidden], .detail-toc-disclosure[hidden] { display: none; }
.detail-tool-label { font-size: .8rem; color: #58697c; margin-inline-end: 8px; }
.detail-tools button { min-width: 44px; min-height: 44px; border: 1px solid #e1e7eb; background: #f7f9fb; border-radius: 10px; color: #173f66; font: inherit; cursor: pointer; }
.detail-tools button:hover { background: #eef4f9; border-color: #b7cbdc; }
.detail-tools button:disabled { opacity: .4; cursor: default; }
.detail-tools .detail-copy { padding: 8px 14px; margin-inline-start: 8px; font-size: .85rem; }
.detail-tool-status { width: 100%; color: #315b7c; font-size: .8rem; }
.detail-tool-status:empty { display: none; }
.article-detail-page .journal-reading-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 32px; padding-top: 36px; }
.article-detail-page .article-reading { padding: clamp(24px, 4vw, 56px); border-radius: 20px; box-shadow: 0 8px 32px #112b4603; }
.article-detail-page .article-content { font-size: var(--reading-size); line-height: 2.25; }
.article-detail-page .article-content > :first-child { margin-top: 0; }
.article-detail-page .article-content h2 { font-size: 1.5em; padding-bottom: 12px; border-bottom: 1px solid #edf0f3; }
.article-detail-page .article-content h3 { font-size: 1.2em; }
.article-detail-page .article-content img { border-radius: 12px; }
.detail-toc-disclosure { border: 1px solid #dfe6ec; border-radius: 16px; background: #fff; overflow: hidden; }
.detail-toc-disclosure summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: .9rem; }
.article-detail-page .journal-toc { border: 0; border-top: 1px solid #edf0f3; border-radius: 0; padding: 18px; }
.article-detail-page .journal-toc h2 { font-size: .9rem; }
.article-detail-page .journal-toc ol { max-height: min(340px, calc(100svh - 420px)); }
.detail-side-note { margin-top: 20px; padding: 24px; background: radial-gradient(circle at 0 0, #315979, transparent 75%), #102e4d; border-radius: 16px; color: #fff; }
.detail-side-note > i { display: inline-grid; place-items: center; width: 42px; height: 42px; background: #ffffff12; color: #ffad68; border: 1px solid #ffffff1a; border-radius: 12px; }
.detail-side-note h2 { font-size: 1.25rem; line-height: 1.8; margin: 16px 0 8px; }
.detail-side-note p { font-size: .85rem; line-height: 1.95; color: #c4d2e0; margin-bottom: 12px; }
.detail-side-note a { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: #ffc18e; font-size: .85rem; }
.article-detail-page .journal-reading-end { background: #f5f8fa; padding: 24px; border: 1px solid #e4ebf0; border-radius: 14px; }
.reading-progress { position: fixed; z-index: 1100; top: 0; inset-inline: 0; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: #ed842f; transform: scaleX(0); transform-origin: right; }
@media (max-width: 900px) {
  .article-detail-page .detail-hero-grid { gap: 28px; }
  .article-detail-page .journal-reading-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .article-detail-page .article-reading { padding: 26px; }
}
@media (max-width: 760px) {
  .article-detail-page .detail-hero-grid { grid-template-columns: 1fr; }
  .article-detail-page .journal-detail-hero { padding-bottom: 60px; }
  .detail-cover > img, .detail-cover-empty { aspect-ratio: 16 / 9; max-height: 360px; }
  .article-detail-page .journal-reading-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .article-detail-page .journal-toc ol { max-height: 240px; }
  .detail-side-note, .article-detail-page .journal-back-link { display: none; }
  .article-detail-page .detail-toolbar { padding: 12px 16px; }
  .detail-tool-label { display: none; }
  .article-detail-page .article-reading { padding: 24px 20px; }
  .detail-tools .detail-copy { margin-inline-start: 0; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { html:has(.article-detail-page) { scroll-behavior: auto; } }
