.editorial { padding-block: 2rem 4rem; }
.editorial h1 { max-width: 22ch; }
.editorial h2 { margin-top: 2.4rem; scroll-margin-top: 6rem; }
.editorial p, .editorial li { line-height: 1.8; }
.editorial li { margin-block: .5rem; }
.editorial a { text-decoration: underline; text-underline-offset: .18em; overflow-wrap: anywhere; }
.editorial-meta, .editorial-citation { font-size: .88rem; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-grid .result-card { margin: 0; padding: 1.5rem; }
.guide-grid h3 { font-size: 1.3rem; line-height: 1.4; }
@media (max-width: 650px) { .guide-grid { grid-template-columns: 1fr; } }

/* Articles read as a single column; the guide directory retains its grid. */
.editorial:not(:has(.guide-grid)){max-width:70ch;margin-inline:auto}
.editorial>h1{margin-bottom:24px}
.editorial>section{padding-top:8px}
.editorial>section+section{border-top:1px solid var(--line);margin-top:32px}
.editorial-meta{font-size:12px;line-height:1.7}
.editorial-citation{padding-left:14px;border-left:2px solid var(--line);line-height:1.7}
.guide-grid .result-card{display:flex;flex-direction:column;gap:12px;border-radius:14px}
.guide-grid .result-card h3,.guide-grid .result-card p{margin:0}
.guide-grid .result-card h3 a{text-decoration:none}
.guide-grid .result-card h3 a:hover{text-decoration:underline}
.guide-grid .result-card .editorial-meta{margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}

/* Guide library: a clear masthead, topic directory, and consistent reading cards. */
body .guide-directory { padding-top: 16px; }
body .guide-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-bottom: 56px; }
body .guide-intro h1 { margin: 0 0 28px; }
body .guide-intro .guide-deck { font-size: 25px; color: var(--ink); line-height: 1.4; letter-spacing: -.025em; margin-bottom: 14px; max-width: 30ch; }
body .guide-intro p { color: var(--muted); max-width: 52ch; }
body .guide-standards { background: var(--paper); padding: 32px; border-radius: 16px; }
body .guide-standards h2 { font-size: 28px; margin: 0 0 18px; }
body .guide-standards p, body .guide-standards a { font-size: 14px; }
body .guide-intro .eyebrow, body .guide-next .eyebrow { color: var(--accent); }
body .guide-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px 0; border-block: 1px solid var(--line); }
body .guide-topics span { font-size: 13px; color: var(--muted); margin-right: 18px; }
body .guide-topics a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; text-decoration: none; }
body .guide-topics a:hover { background: var(--paper); border-color: var(--ink); }
body .guide-directory .guide-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; padding: 48px 0; margin: 0; border-bottom: 1px solid var(--line); border-top: 0; }
body .guide-section-heading .guide-number { color: var(--accent); font-size: 13px; margin: 0 0 20px; }
body .guide-section-heading h2 { margin: 0 0 16px; font-size: 30px; scroll-margin-top: 125px; }
body .guide-section-heading p { font-size: 14px; color: var(--muted); }
body .guide-directory .guide-grid { margin: 0; gap: 20px; align-items: stretch; }
body .guide-directory .guide-grid .result-card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 12px; gap: 16px; }
body .guide-directory .guide-grid .result-card:hover { border-color: #b9bac3; background: #fafafa; }
body .guide-directory .guide-grid .result-card:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
body .guide-directory .guide-grid .result-card h3 { font-size: 23px; line-height: 1.25; }
body .guide-directory .guide-grid .result-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
body .guide-directory .guide-grid .result-card>p { color: var(--muted); font-size: 14px; }
body .guide-directory .guide-grid .result-card .guide-category { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
body .guide-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; }
body .guide-directory .guide-grid .result-card .editorial-meta { border: 0; padding: 0; margin: 0; font-size: 12px; }
body .guide-arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
body .guide-next { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 48px; padding: 36px; background: var(--paper); border-radius: 16px; }
body .guide-next h2 { margin: 0 0 12px; }
body .guide-next p { margin-bottom: 0; }
body .guide-next .eyebrow { margin-bottom: 18px; }
body .guide-next>a { flex-shrink: 0; }
@media (max-width: 950px) {
  body .guide-intro { gap: 32px; }
  body .guide-directory .guide-section { grid-template-columns: 1fr; gap: 24px; }
  body .guide-section-heading p { max-width: 55ch; }
}
@media (max-width: 650px) {
  body .guide-intro { grid-template-columns: 1fr; padding-bottom: 32px; }
  body .guide-standards { padding: 24px; }
  body .guide-topics { gap: 8px; }
  body .guide-topics span { width: 100%; }
  body .guide-topics a { padding: 10px 12px; font-size: 13px; }
  body .guide-directory .guide-section { padding: 32px 0; }
  body .guide-next { flex-direction: column; align-items: flex-start; padding: 24px; }
}
