/* Guides (design pass, group C, October 31, 2026). Linked only by /guide/ pages.
   Shared fixes stay in /_astro/site-review.css. */

/* Article: a reading measure of about 70 characters, with the "On this page" list beside it. */
@media (min-width: 1024px) {
  .guide-layout { grid-template-columns: minmax(0, 43rem) 17rem; justify-content: space-between; column-gap: 4rem; }
}
.guide-layout .article-body h3 { margin-top: 1.75rem; }

/* Tables on phones: tighter type so most fit; a wide one scrolls inside itself, with a fade on
   the right edge while there is more to see (no fade when it fits, or once scrolled to the end). */
@property --tbl-fade { syntax: "<length>"; inherits: false; initial-value: 0px; }
@media (max-width: 767px) {
  .guide-layout .article-body table th, .guide-layout .article-body table td { font-size: 14px; line-height: 1.45; padding: .55rem .65rem; vertical-align: top; }
  .guide-layout .article-body table { overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--tbl-fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--tbl-fade)), transparent); }
  @supports (animation-timeline: scroll()) {
    .guide-layout .article-body table { animation: tbl-edge linear both; animation-timeline: scroll(self inline); }
  }
}
@keyframes tbl-edge { 0%, 90% { --tbl-fade: 3rem; } 100% { --tbl-fade: 0px; } }

/* Guide index: short topic chips that are easy to tap, and compact cards on phones. */
.gi-topics a { font-size: 14px; padding: .5rem .9rem; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 639px) {
  .gi-grid { gap: .75rem; }
  .gi-grid > a { flex-direction: row; align-items: stretch; }
  .gi-grid > a > img { width: 7.5rem; flex: 0 0 7.5rem; aspect-ratio: auto; height: auto; min-height: 100%; }
  .gi-grid > a > div { padding: .85rem 1rem; }
  .gi-grid > a h3 { font-size: 1rem; }
  .gi-grid > a p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8125rem; }
}
