/* Patient guides: restrained reading layouts using the existing clinic styles. */
.guide-index-head { padding-bottom: 2.5rem; }
.guide-index-head .lede { max-width: 44rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.guide-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.guide-card .eyebrow { margin-bottom: .8rem; }
.guide-card h2 { font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.2; }
.guide-card h2 a { color: var(--blue-900); text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; text-underline-offset: .16em; }
.guide-card > p { color: var(--body); }
.guide-card .guide-read { margin-top: auto; padding-top: 1rem; font-weight: 650; }
.guide-card a:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 5px; border-radius: 2px; }
.guide-head { padding-block: clamp(2rem, 4vw, 3.5rem); background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.guide-head h1 { max-width: 29ch; font-size: clamp(2rem, 3.3vw, 3.15rem); line-height: 1.1; }
.guide-head .lede { max-width: 45rem; font-size: 1.125rem; }
.guide-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; color: var(--body); font-size: .875rem; margin-top: 1.5rem; }
.guide-draft { padding: .7rem 1rem; border-left: 3px solid var(--aqua-700); background: var(--aqua-050); font-size: .875rem; margin-block: 1.5rem 0; max-width: 45rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 730px) minmax(200px, 270px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.guide-layout--no-toc { grid-template-columns: minmax(0, 730px); }
.guide-copy { min-width: 0; font-size: 1.0625rem; line-height: 1.8; }
.guide-copy > p:first-child { font-size: 1.1875rem; color: var(--ink); }
.guide-copy p, .guide-copy ul, .guide-copy ol { margin-block: 0 1.3rem; }
.guide-copy h2 { margin-block: 2.5rem 1rem; font-size: clamp(1.65rem, 2.4vw, 2.1rem); line-height: 1.18; scroll-margin-top: 7rem; }
.guide-copy h3 { margin-top: 2rem; }
.guide-copy li { padding-left: .2rem; margin-block: .5rem; }
.guide-copy a { overflow-wrap: anywhere; text-underline-offset: .15em; }
.guide-toc { position: sticky; top: 7rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-alt); }
.guide-toc h2 { font-family: var(--font-sans); font-size: .9375rem; letter-spacing: .01em; margin: 0 0 1rem; }
.guide-toc ol { margin: 0; padding-left: 1.1rem; }
.guide-toc li { margin-bottom: .9rem; font-size: .9375rem; line-height: 1.45; }
.guide-toc li:last-child { margin-bottom: 0; }
.guide-toc a { color: var(--body); text-decoration-thickness: 1px; text-underline-offset: .17em; }
.guide-related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.guide-related h2 { margin-top: 0; font-size: 1.5rem; }
.guide-related ul { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; list-style: none; padding: 0; }
.guide-editorial { font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.25rem; }
@media (max-width: 820px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; grid-row: 1; }
  .guide-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.4rem; }
  .guide-toc li { margin: 0; }
}
@media (max-width: 600px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-toc ol { grid-template-columns: minmax(0, 1fr); }
  .guide-copy { font-size: 1rem; line-height: 1.75; }
  .guide-copy > p:first-child { font-size: 1.125rem; }
  .guide-head h1 { max-width: none; }
}
@media print {
  .guide-toc, .guide-draft, .guide-related { display: none; }
  .guide-layout { display: block; }
  .guide-copy { max-width: none; }
  .guide-head { background: none; }
}
