.guide-site .site-header { border-bottom: 1px solid var(--divider); }
.guide-site .nav { height: 74px; }
.guide-site .site-footer { border-top: 1px solid var(--divider); }
.guide-site .nav a[aria-current] { color: var(--text); }
.guide-wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.guide-index { padding-block: clamp(46px, 7vw, 100px); }
.guide-index h1 { font-size: clamp(48px, 6.4vw, 86px); }
.index-intro { margin-top: 14px; font-size: clamp(17px, 2vw, 21px); color: #bfc2c7; }
.story-card { display: grid; grid-template-columns: 1.25fr 1fr; margin-top: clamp(32px, 5vw, 58px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.story-photo { width: 100%; height: 100%; object-fit: cover; }
.story-copy { align-self: center; padding: clamp(27px, 4.7vw, 64px); }
.story-type, .contents > p { color: var(--muted); font-size: 13px; font-weight: 550; }
.story-copy h2 { margin-block: 14px; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.09; text-wrap: balance; }
.story-copy > p:not(.story-type) { color: #c3c6ca; line-height: 1.55; }
.story-read, .back-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 550; font-size: 14px; }
.story-read { margin-top: 28px; }
.story-card:hover .story-read, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6.4vw, 88px); padding-block: clamp(38px, 5vw, 70px); border-bottom: 1px solid var(--divider); }
.back-link { color: var(--muted); min-height: 44px; }
.article-intro h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.035; margin: 11px 0 22px; text-wrap: balance; }
.article-intro > p { color: #c4c6c9; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 50ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; font-size: 13px; }
.byline time { color: var(--muted); padding-left: 12px; border-left: 1px solid var(--divider); }
.article-cover { width: 100%; aspect-ratio: 1.22; height: auto; object-fit: cover; object-position: 50% 45%; border-radius: 20px; }
.reading-layout { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 690px); gap: clamp(36px, 7.5vw, 100px); padding-block: clamp(44px, 6vw, 87px); padding-right: min(4vw, 42px); }
.contents { align-self: start; position: sticky; top: 28px; }
.contents > p { padding-bottom: 11px; }
.contents a { display: block; width: fit-content; padding: 7px 0; font-size: 15px; color: #c5c7ca; }
.contents a:hover, .contents a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.guide-body { color: #c5c7ca; font-size: 17px; line-height: 1.7; }
.guide-body h2 { color: var(--text); font-size: clamp(28px, 2.7vw, 37px); line-height: 1.13; margin: 0 0 18px; }
.guide-body section + section { margin-top: clamp(38px, 4vw, 58px); padding-top: clamp(30px, 3.2vw, 46px); border-top: 1px solid var(--divider); }
.guide-body p + p { margin-top: 14px; }
.guide-body ol { margin: 0; padding-left: 1.4em; }
.guide-body li { padding-left: .35em; }
.guide-body li + li { margin-top: 10px; }
.guide-body li::marker { color: #f4f4f5; font-weight: 550; }
.guide-body strong { color: #eeeef0; font-weight: 600; }
.guide-body a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.guide-body figure { margin-block: 24px 0; }
.guide-body figure img, .guide-body video { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.guide-body figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; }
.guide-body details { border-bottom: 1px solid var(--divider); }
.guide-body summary { padding-block: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 16px; line-height: 1.4; color: var(--text); }
.guide-body summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.guide-body details[open] summary::after { content: "−"; }
.guide-body details p { font-size: 16px; padding-bottom: 20px; }
@media (max-width: 800px) {
  .guide-wrap { width: calc(100% - 40px); }
  .story-card { grid-template-columns: 1fr; }
  .story-photo { aspect-ratio: 16 / 9; height: auto; }
  .article-hero { grid-template-columns: 1fr; gap: 26px; padding-block: 22px 28px; }
  .article-intro { max-width: 630px; }
  .article-cover { aspect-ratio: 16 / 9; object-position: 50% 41%; }
  .reading-layout { display: block; padding: 24px 0 60px; }
  .contents { position: static; margin-bottom: 38px; border-bottom: 1px solid var(--divider); padding-bottom: 18px; }
  .contents > p { padding-bottom: 5px; }
  .contents a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 17px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #707277; }
}
@media (max-width: 560px) {
  .guide-site .nav { height: 66px; }
  .article-intro h1 { font-size: clamp(36px, 9.8vw, 48px); }
  .article-cover { border-radius: 14px; }
  .byline { margin-top: 18px; }
  .guide-body { font-size: 16px; }
  .story-card { border-radius: 17px; }
  .story-copy { padding: 24px; }
}
.guide-body .pairing-figure { max-width: 460px; }

/* The chapter artwork is composed in a wide frame; keep the entire diagram visible. */
.article-cover.collection-cover { aspect-ratio: 800 / 440; background: #111518; }
.story-card .story-photo[src$=".svg"] { object-fit: contain; background: #101b1c; }
.library-section { margin-top: clamp(46px, 6vw, 80px); }
.library-section > h2 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; list-style: none; padding: 0; margin: 20px 0 0; }
.library-grid li { border-top: 1px solid var(--divider); }
.library-card { height: 100%; min-height: 116px; display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 20px; padding: 22px 0; }
.library-card img { width: 104px; height: 82px; border-radius: 10px; object-fit: cover; background: var(--surface); }
.library-card h3 { margin: 3px 0 5px; font-size: clamp(18px, 1.7vw, 23px); letter-spacing: -.035em; line-height: 1.18; }
.library-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.library-card div > p:last-child { font-size: 15px; line-height: 1.45; color: #bfc2c7; }
.related-guides { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--divider); }
.related-guides h2 { font-size: 22px; margin-bottom: 8px; }
.related-guides a { display: block; width: fit-content; padding-block: 8px; }
.guide-body p + ol, .guide-body ol + p, .guide-body ul + p { margin-top: 14px; }
.guide-body kbd { font-family: inherit; background: #26282c; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
@media (max-width: 800px) {
  .library-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .library-card { grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; }
  .library-card img { width: 76px; height: 74px; }
}
