/* Shared reading and small-screen fixes for the existing guide templates. */
h1, h2, h3, h4, p, li, a { overflow-wrap: anywhere; }
header { gap: 1rem; }
header nav, .container, .article-content, .guide-card, .content-grid > * { min-width: 0; }
header nav ul { flex-wrap: wrap; justify-content: center; }
.article-content { max-width: 100%; }
.article-content :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
.article-content a, .guide-card a { color: #075c98; }
.dark-mode .article-content a, .dark-mode .guide-card a { color: #71d9e9; }
.article-content pre { max-width: 100%; overflow-x: auto; }
.article-content figure { margin: 1.5rem 0; }
.article-content img { max-width: 100%; height: auto; }
.article-content figcaption, .article-content caption { font-size: 0.95rem; line-height: 1.6; text-align: left; margin: 0.75rem 0; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0; }
.article-content th, .article-content td { padding: 0.65rem; text-align: left; border-bottom: 1px solid var(--primary-color); }
.guides-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 768px) {
    header { position: static; flex-direction: column; align-items: flex-start; }
    header nav { display: block; width: 100%; }
    header nav ul { gap: 0.5rem 1rem; }
    header nav ul a { display: inline-block; padding: 0.6rem 0; }
    main { padding-top: 2rem; }
    .article-header h1, .page-hero h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); }
    .article-content, .article-card, .sidebar-card { padding: 1.25rem; }
    .author-box { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
