/* Guides: long-form reading on top of the case-study shell (portfolio.css). Logical properties, so RTL needs nothing extra. */
.guide-title { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 22ch; }
.guide-updated { margin-block-start: 1rem; opacity: .75; }
.guide-body, .guide-faq, .guide-related { max-width: 68ch; margin-inline: auto; }
.guide-body { font-size: 1.075rem; line-height: 1.7; }
.guide-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin-block: 2.6em .6em; }
.guide-body h3 { font-size: 1.2rem; margin-block: 1.8em .4em; }
.guide-body p, .guide-body ul, .guide-body ol, .guide-body table, .guide-body blockquote { margin-block: 0 1.1em; }
.guide-body ul, .guide-body ol { padding-inline-start: 1.3em; }
.guide-body li { margin-block-end: .4em; }
.guide-body a { text-decoration: underline; text-underline-offset: .2em; }
.guide-body strong { font-weight: 600; }
.guide-body blockquote { border-inline-start: 2px solid currentColor; padding-inline-start: 1em; opacity: .85; }
.guide-body table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.guide-body th, .guide-body td { text-align: start; padding: .6em .8em; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); vertical-align: top; }
.guide-body th { font-weight: 600; }
.guide-faq { margin-block-start: 3.5rem; }
.guide-faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-block-end: 1rem; }
.guide-faq details { border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding-block: 1rem; }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq details p { margin-block: .7rem 0; line-height: 1.65; }
.guide-related { margin-block-start: 3rem; }
.guide-related ul { list-style: none; padding: 0; margin-block-start: .8rem; display: grid; gap: .5rem; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 1px; max-width: 72rem; margin-block-start: 3rem; }
.guide-list a { display: grid; gap: .4rem; padding-block: 1.6rem; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); text-decoration: none; color: inherit; }
.guide-list strong { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; line-height: 1.25; }
.guide-list p { opacity: .75; max-width: 60ch; }
@media (hover: hover) { .guide-list a:hover strong { text-decoration: underline; text-underline-offset: .2em; } }
/* Phones: let long words and code in table cells break so a table never pushes the page sideways. */
@media (max-width: 480px) { .guide-body :is(th, td, code) { overflow-wrap: anywhere; } .guide-body :is(th, td) { padding-inline: .45em; } }
