.guides-section,
.clips-section {
  scroll-margin-top: 24px;
  padding: 58px 0 68px;
}

.guides-head,
.clips-head {
  align-items: end;
  margin-bottom: 22px;
}

.guides-head h2,
.clips-head h2 { color: #f5f2ff; }

.guides-head .section-deck,
.clips-head .section-deck {
  max-width: 660px;
  margin: 10px 0 0;
  color: #c1c0d4;
  font-size: 14px;
  line-height: 1.8;
}

.guides-head .text-link,
.clips-head .text-link { color: #39e5ff; }

.guide-grid,
.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-reading {
  margin: 0 0 24px;
  padding: 20px;
  background: linear-gradient(145deg, #17182d, #101321);
  border: 1px solid #4a3d60;
  box-shadow: 0 8px 28px #01020a66;
}

.guide-reading-label {
  margin: 0 0 6px;
  color: #ff9bd3;
  font: 12px var(--mono);
  letter-spacing: .12em;
}

.guide-reading-intro {
  margin: 0 0 14px;
  color: #c1c0d4;
  font-size: 14px;
  line-height: 1.8;
}

.guide-directory { margin: 0 0 20px; }
.guide-index {
  margin-bottom: 18px;
  border: 1px solid #45445f;
  background: #121426;
}
.guide-index[open] { border-color: #a54b90; }
.guide-index summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #f5f2ff;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}
.guide-index summary::-webkit-details-marker { display: none; }
.guide-index summary::after { content: "+"; color: #39e5ff; font-size: 22px; }
.guide-index[open] summary::after { content: "−"; }
.guide-index summary b { margin-right: 8px; color: #ff9bd3; }
.guide-index summary i { color: #a4a3b9; font-size: 12px; font-style: normal; font-weight: 500; }
.guide-index-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  border-top: 1px solid #303148;
}
.guide-index-chapter { min-width: 0; }
.guide-index-chapter h4 { margin: 0 0 8px; color: #ff9bd3; font-size: 15px; }
.guide-index-chapter ol { margin: 0; padding-left: 22px; color: #c1c0d4; font-size: 13px; line-height: 1.8; }
.guide-index-chapter li { padding-left: 3px; }
.guide-index-chapter a { color: #39e5ff; }
.guide-index-note { grid-column: 1 / -1; margin: 0; color: #a4a3b9; font-size: 12px; line-height: 1.75; }
.guide-index-note a { color: #39e5ff; }
.guide-source-hubs {
  margin: 16px 0 0;
  color: #a4a3b9;
  font-size: 13px;
  line-height: 1.9;
}
.guide-source-hubs a { color: #39e5ff; text-decoration: none; }
.guide-source-hubs a:hover { color: #ff79c9; text-decoration: underline; }
.guide-library-head {
  display: grid;
  grid-template-columns: 1fr minmax(190px, 310px);
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 8px;
}
.guide-library-head h3 { grid-row: span 2; margin: 0; color: #f5f2ff; font-size: 20px; }
.guide-library-head label { color: #a4a3b9; font-size: 12px; }
.guide-library-head input {
  width: 100%;
  padding: 10px 12px;
  color: #f5f2ff;
  background: #0c0e19;
  border: 1px solid #51516b;
  border-radius: 2px;
  font: inherit;
}
.guide-library-head input::placeholder { color: #8989a3; }
.guide-mission-library { display: grid; gap: 9px; }
.guide-library-group { grid-column: 1 / -1; margin: 28px 0 2px; padding-bottom: 8px; color: #ff9bd3; border-bottom: 1px solid #39364d; font-size: 19px; letter-spacing: .02em; }
.guide-library-group[hidden] { display: none; }
.guide-mission[hidden], .guide-article[hidden] { display: none; }

.guide-article {
  margin-top: 10px;
  border: 1px solid #3c3d56;
  background: #111422;
}

.guide-article[open] { border-color: #b24d9a; }

.guide-article summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  color: #f5f2ff;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}

.guide-article summary::-webkit-details-marker { display: none; }
.guide-article summary::after { content: "+"; color: #39e5ff; font-size: 22px; }
.guide-article[open] summary::after { content: "−"; }
.guide-article summary b { margin-right: 9px; color: #ff9bd3; }
.guide-article summary i { color: #a4a3b9; font-size: 12px; font-style: normal; font-weight: 500; }

.guide-article-body {
  padding: 4px 19px 20px;
  color: #d2d1e2;
  border-top: 1px solid #303148;
  font-size: 15px;
  line-height: 1.9;
}

.guide-article-body p { margin: 12px 0; }
.guide-article-body h4 { margin: 18px 0 4px; color: #fff0fa; font-size: 16px; }
.guide-article-body ol { margin: 12px 0; padding-left: 23px; }
.guide-article-body li { margin: 8px 0; padding-left: 3px; }
.guide-article-body strong { color: #fff; }
.guide-article-body a { color: #39e5ff; text-decoration: underline; text-underline-offset: 3px; }
.guide-source-line { color: #aaa9bd; font-size: 13px; }
.guide-walkthrough-figure { margin: 18px 0; padding: 10px; border: 1px solid #3c3d56; background: #0d101b; }
.guide-walkthrough-figure a { display: block; }
.guide-walkthrough-figure img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; cursor: zoom-in; }
.guide-walkthrough-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 9px 2px 1px; color: #c3c2d1; font-size: 14px; line-height: 1.6; }
.guide-walkthrough-figure figcaption a { display: inline; }

/* Section previews and chapter-based guide pages */
.home-preview { padding: 46px 0 52px; border-top: 1px solid #ffffff18; }
.home-preview .section-head { align-items: end; margin-bottom: 18px; }
.home-preview .section-deck { max-width: 620px; margin: 8px 0 0; color: #c1c0d4; line-height: 1.75; }
.home-story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-story-grid .story-feature { grid-column: auto; }
.home-story-grid .story:nth-child(n+4) { display: none; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 13px; }
.chapter-card, .topic-card, .preview-card {
  display: block; min-width: 0; padding: 19px; color: #f5f2ff; text-decoration: none;
  background: linear-gradient(145deg, #191a30, #101321); border: 1px solid #45445f;
  box-shadow: 0 8px 25px #01020a44; transition: transform .18s ease, border-color .18s ease;
}
.chapter-card:hover, .topic-card:hover, .preview-card:hover { transform: translateY(-2px); border-color: #e85ab3; }
.chapter-card-kicker, .preview-kicker { color: #ff9bd3; font: 12px var(--mono); letter-spacing: .08em; }
.chapter-card h3, .topic-card h3, .preview-card h3 { margin: 12px 0 7px; font-size: 20px; }
.chapter-card p, .topic-card p, .preview-card p { margin: 0; color: #c1c0d4; font-size: 14px; line-height: 1.7; }
.chapter-card-open { display: inline-block; margin-top: 16px; color: #39e5ff; font-size: 14px; }
.topic-card { margin-top: 14px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.preview-action { margin-top: 19px; }
.exploration-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin-top: 14px; }
.exploration-card { display: flex; gap: 1rem; align-items: center; padding: .7rem; border: 1px solid #52455e; background: #161624; color: #f5f2ff; text-decoration: none; }
.exploration-card:hover, .exploration-card:focus-visible { border-color: #ff85c2; }
.exploration-card img { width: clamp(80px,12vw,150px); height: 88px; object-fit: cover; }
.exploration-card h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.exploration-card p { margin: 0; color: #c6bfd0; line-height: 1.6; font-size: .9rem; }
.guide-shortcuts { display: flex; gap: .7rem 1.5rem; flex-wrap: wrap; }
@media (max-width: 720px) { .exploration-links { grid-template-columns: 1fr; } }
.source-preview-list { display: flex; flex-wrap: wrap; gap: 9px; }
.source-preview-list a { padding: 10px 14px; color: #d9faff; background: #111827; border: 1px solid #39465a; text-decoration: none; }
.page-hero { padding-top: 54px; padding-bottom: 30px; }
.page-hero h1 { margin: 10px 0 12px; color: #f5f2ff; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
.page-hero > p:not(.eyebrow) { max-width: 720px; color: #c1c0d4; font-size: 16px; line-height: 1.8; }
.page-hero .chapter-pagination { margin-top: 20px; }
.chapter-content { padding-top: 6px; }
.chapter-content .guide-library-head { margin: 12px 0 18px; }
.chapter-pagination { display: flex; justify-content: space-between; gap: 12px; }
.chapter-pagination a { color: #39e5ff; text-decoration: none; }
.chapter-pagination a:hover { text-decoration: underline; }
.chapter-pagination-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid #ffffff20; }
.chapter-special-guide { margin: 0 0 22px; }
.media-page > main > .page-hero { padding-bottom: 8px; }
.media-page .video-section, .media-page .clips-section { padding-top: 34px; }
.info-page .game-info, .sources-page .sources { padding-top: 26px; }

@media (max-width: 720px) {
  .home-preview { padding: 35px 0 40px; }
  .home-story-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .chapter-card, .topic-card, .preview-card { padding: 15px; }
  .chapter-card h3, .topic-card h3, .preview-card h3 { font-size: 17px; }
}
@media (max-width: 460px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-pagination a { font-size: 14px; }
}
.guide-tip { padding: 12px 14px; background: #211d31; border-left: 3px solid #ff69bf; }

.guide-card,
.clip-card {
  overflow: hidden;
  background: linear-gradient(150deg, #15172b, #101322);
  border: 1px solid #383651;
  box-shadow: 0 5px 22px #01020a66;
}

.guide-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
}

.guide-feature {
  grid-column: span 2;
  background: radial-gradient(ellipse at 90% 80%, #332044, #141529 62%);
  border-color: #70466e;
}

.guide-kicker,
.clip-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 1px solid #5d4769;
  border-radius: 2px;
  color: #ff9bd3;
  font: 10px var(--mono);
}

.guide-warning {
  color: #ffd088;
  border-color: #6d5435;
  background: #33291855;
}

.guide-card h3,
.clip-copy h3 {
  margin: 0 0 10px;
  color: #f5f2ff;
  font-size: 18px;
  line-height: 1.45;
}

.guide-card p,
.clip-copy p {
  margin: 0 0 16px;
  color: #c1c0d4;
  font-size: 14px;
  line-height: 1.8;
}

.guide-card > a,
.guide-links a,
.clip-copy a {
  color: #39e5ff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.8;
  text-decoration: none;
}

.guide-card > a { margin-top: auto; }
.guide-card > a + a { margin-top: 5px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.guide-card > a:hover,
.guide-links a:hover,
.clip-copy a:hover { color: #ff79c9; text-decoration: underline; }

.guide-credit,
.clip-credit {
  margin: 16px 0 0;
  color: #a4a3b9;
  font-size: 12px;
  line-height: 1.75;
}

.clip-card { transition: border-color .18s, transform .18s; }
.clip-card:hover { transform: translateY(-2px); border-color: #db5eae; }
.clip-frame { aspect-ratio: 16 / 9; background: #090b15; border-bottom: 1px solid #383651; }
.clip-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.clip-copy { padding: 17px 18px 18px; }
.clip-tag { margin-bottom: 9px; color: #92e9ff; border-color: #40546d; background: #111c2c; }
.clip-copy h3 { font-size: 17px; }
.clip-copy p { margin-bottom: 12px; font-size: 14px; }
.clip-copy small { display: block; margin-top: 10px; color: #a09fb5; font-size: 12px; line-height: 1.6; }
.clip-link-card { display: flex; min-height: 310px; align-items: end; background: radial-gradient(ellipse at 80% 0%, #322043, #111426 63%); }
.clip-link-card .clip-copy { width: 100%; }
.clip-link-card h3 { font-size: 21px; }
.clip-link-card .clip-copy a { display: inline-block; padding: 10px 13px; border: 1px solid #4f4970; border-radius: 3px; background: #111426; }

@media (max-width: 980px) {
  .guide-grid, .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-feature { grid-column: span 2; }
}

@media (max-width: 760px) {
  .guides-section, .clips-section { padding: 44px 0 48px; }
  .guides-head, .clips-head { align-items: flex-start; }
  .guide-grid, .clip-grid { grid-template-columns: 1fr; }
  .guide-feature { grid-column: auto; }
  .guide-card { min-height: 0; padding: 18px; }
  .guide-card h3 { font-size: 17px; }
  .guide-card p, .clip-copy p { font-size: 14px; }
  .clip-link-card { min-height: 220px; }
  .clip-copy { padding: 15px; }
  .guide-reading { padding: 14px; }
  .guide-index-body { grid-template-columns: 1fr; padding: 12px; }
  .guide-library-head { grid-template-columns: 1fr; }
  .guide-library-head h3 { grid-row: auto; }
  .guide-article summary { align-items: flex-start; padding: 12px; font-size: 15px; }
  .guide-article summary i { display: block; margin-top: 4px; }
  .guide-article-body { padding: 2px 13px 16px; font-size: 14px; }
}

.archive-item h2 .news-permalink{display:inline;color:inherit;font:inherit;text-decoration:none;letter-spacing:inherit}
.archive-item h2 .news-permalink:hover,.archive-item h2 .news-permalink:focus-visible{text-decoration:underline;text-underline-offset:.14em}
.archive-item[id],.guide-mission[id]{scroll-margin-top:1rem}
