/* Keep the reading pages close to the homepage, with a quieter measure for long text. */
.guide-page, .guide-feature {
  --guide-ink: #283831;
  --guide-soft: #506158;
  --guide-rule: #d5d9cf;
  --guide-paper: #fffef9;
  color: var(--guide-ink);
  font-family: Poppins, system-ui, sans-serif;
}
.guide-page { background: var(--guide-paper); }
.guide-page .container, .guide-frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.guide-page main { padding-bottom: clamp(54px, 7vw, 96px); }
.guide-page main :where(p, ul, ol, h1, h2) { margin: 0; }
.guide-page main :where(a), .guide-feature a { color: var(--guide-ink); }
.guide-page main a:focus-visible, .guide-feature a:focus-visible {
  outline: 3px solid #4c547d; outline-offset: 4px; border-radius: 3px;
}
.guide-page main [id], .guide-feature { scroll-margin-top: 145px; }
.guide-page .sl-nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 5px; }
.guide-skip {
  position: fixed; z-index: 100; top: 8px; left: 8px; background: white; color: #26362d;
  padding: 10px 16px; transform: translateY(-170%);
}
.guide-skip:focus { transform: none; }
.guide-art { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; padding: 7%; overflow: hidden; }
.guide-art--evening { background: #e9e4f3; }
.guide-art--blocking { background: #f8e8a6; }
.guide-art img { display: block; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.guide-feature { background: var(--guide-paper); padding-block: clamp(55px, 7vw, 100px); }
.guide-feature__header {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px; margin-bottom: clamp(23px, 4vw, 42px);
}
.guide-feature__header h2 { font-size: clamp(2.25rem, 6vw, 4.3rem); line-height: 1.04; letter-spacing: -.055em; }
.guide-feature__header a { font-size: .92rem; font-weight: 600; text-underline-offset: 4px; }
.guide-feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3.5vw, 45px); }
.guide-feature__item {
  display: grid; grid-template-columns: 38% minmax(0,1fr); align-items: center; gap: 7%;
  border-top: 1px solid var(--guide-rule); padding-top: 18px; text-decoration: none;
}
.guide-feature__item .guide-art { aspect-ratio: 5 / 4; border-radius: 12px; }
.guide-feature__item h3 { font-size: clamp(1.1rem, 2.1vw, 1.65rem); line-height: 1.18; letter-spacing: -.035em; }
.guide-meta, .guide-page .section-index {
  display: block; color: var(--guide-soft); font-size: .83rem; font-weight: 500; margin-bottom: .45rem;
}
.guide-feature__item:hover h3, .guide-page .library-entry:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.guide-page .editorial-heading, .guide-page .article-heading {
  padding-block: clamp(52px, 8vw, 108px) clamp(32px, 5vw, 68px);
}
.guide-page .editorial-heading h1 {
  font-size: clamp(2.8rem, 7vw, 6rem); max-width: 14ch; letter-spacing: -.065em; line-height: 1.04;
}
.guide-page .editorial-heading p, .guide-page .article-heading p {
  margin-top: 1rem; color: var(--guide-soft); font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6; max-width: 52ch;
}
.guide-page .library-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(22px, 5vw, 60px); }
.guide-page .library-entry { display: block; text-decoration: none; }
.guide-page .library-entry .guide-art {
  aspect-ratio: 2.18; padding: 14px; border-radius: 16px; margin-bottom: 22px;
}
.guide-page .library-entry h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.18; letter-spacing: -.045em; }
.guide-page .library-entry p { margin: .65rem 0; color: var(--guide-soft); line-height: 1.65; }
.guide-page .text-link { font-size: .95rem; font-weight: 600; color: var(--guide-ink); }
.guide-page .text-link svg, .guide-page .article-sources svg, .guide-page .related-content svg {
  display: inline-block; vertical-align: middle; margin-inline-start: 6px; flex: 0 0 auto;
}
.guide-page .editorial-support { border-top: 1px solid var(--guide-rule); margin-top: 44px; padding-top: 22px; }
.guide-page .editorial-support > span { margin-right: .8em; }
.guide-page .article-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .43fr); align-items: center; gap: clamp(24px, 6vw, 94px);
}
.guide-page .article-heading .guide-art { aspect-ratio: 1.25; border-radius: 20px; }
.guide-page .guide-intro > a { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; }
.guide-page .guide-intro > a svg { margin: 0; order: -1; }
.guide-page .article-heading h1 {
  max-width: 19ch; margin-top: 18px; font-size: clamp(2.1rem, 4.6vw, 4.15rem);
  letter-spacing: -.055em; line-height: 1.06; text-wrap: balance;
}
.guide-page .article-byline {
  display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: .875rem; font-weight: 600;
}
.guide-page .article-byline img { width: 36px; height: 36px; object-fit: contain; }
.guide-page .article-byline small { display: block; color: var(--guide-soft); font-size: .76rem; font-weight: 400; }
.guide-page .article-layout {
  border-top: 1px solid var(--guide-rule); padding-top: 38px;
  display: grid; align-items: start; grid-template-columns: minmax(170px, .34fr) minmax(0, 1fr); gap: clamp(34px, 7vw, 100px);
}
.guide-page .article-toc { position: sticky; top: 145px; }
.guide-page .article-toc h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.guide-page .article-toc nav { display: grid; padding-left: 16px; border-left: 2px solid #c5c6db; }
.guide-page .article-toc a { display: block; padding-block: 6px; font-size: .89rem; line-height: 1.45; text-underline-offset: .18em; }
.guide-page .article-body { max-width: 66ch; font-size: 1.02rem; line-height: 1.76; }
.guide-page .article-body section + section { margin-top: clamp(42px, 5vw, 64px); }
.guide-page .article-body h2 { max-width: 30ch; line-height: 1.16; letter-spacing: -.035em; font-size: clamp(1.42rem, 2.4vw, 2rem); }
.guide-page .article-body p, .guide-page .article-body :is(ol,ul) { margin-top: 1em; }
.guide-page .article-body :is(ol,ul) { padding-inline-start: 1.5em; }
.guide-page .article-body li { padding-inline-start: .25em; }
.guide-page .article-body li + li { margin-top: .55em; }
.guide-page .article-body ol li::marker { font-weight: 700; }
/* Keep the weekly example readable across phone and desktop widths. */
.guide-page .article-body table { width: 100%; margin-top: 1em; border-collapse: collapse; }
.guide-page .article-body :is(th,td) { padding: .5em; border-bottom: 1px solid var(--guide-rule); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.guide-page .article-sources, .guide-page .related-content { border-top: 1px solid var(--guide-rule); padding-top: 24px; }
.guide-page .article-body .related-content { margin-top: 28px; }
.guide-page .related-content a { display: block; margin-top: .7rem; }
.guide-page .article-body a { text-underline-offset: .18em; }
.guide-page .article-cta {
  display: flex; align-items: center; gap: 20px; margin-top: 65px; padding: 30px 0;
  border-block: 1px solid var(--guide-rule);
}
.guide-page .article-cta img { width: 72px; }
.guide-page .article-cta h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.guide-page .article-cta p { color: var(--guide-soft); margin-top: 5px; }
.guide-page .article-cta .button { margin-left: auto; color: #fff; background: #283831; }
@media (max-width: 720px) {
  .guide-page .container, .guide-frame { width: calc(100% - 36px); }
  .guide-feature__grid, .guide-page .library-index, .guide-page .article-layout { grid-template-columns: 1fr; }
  .guide-feature__item { grid-template-columns: minmax(78px, .32fr) 1fr; gap: 18px; }
  .guide-page .library-index { gap: 42px; }
  .guide-page .article-heading { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .guide-page .article-heading .guide-art { aspect-ratio: 3.5; padding: 6px; border-radius: 12px; }
  .guide-page .article-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--guide-rule); }
  .guide-page .article-cta { flex-wrap: wrap; gap: 14px; }
  .guide-page .article-cta img { width: 52px; }
  .guide-page .article-cta div { flex: 1; }
  .guide-page .article-cta .button { margin-left: 0; }
  .guide-page .editorial-support > * { display: block; }
}
