/* CAMH shared stylesheet — loaded by all pages */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Nunito+Sans:wght@400;500;600;700;800&display=optional');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

/* Body */
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; background: #F6F5F3; -webkit-font-smoothing: antialiased; color: #1a1a1a; }

/* Headings */
h1, h2, h3, h4 { font-family: 'Nunito Sans', system-ui, sans-serif; }

/* Focus */
:focus-visible { outline: 2px solid #2D4A4E; outline-offset: 2px; }

/* Nav */
.nav { background: linear-gradient(135deg, #2D4A4E, #3D6569); color: white; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (min-width: 640px) { .nav-inner { padding: 24px 32px; } }
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-logo { height: 40px; width: auto; border-radius: 8px; background: white; padding: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.nav h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
@media (min-width: 640px) { .nav h1 { font-size: 22px; } }
.nav-sub { font-size: 13px; opacity: 0.6; margin-top: 2px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-link { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; padding: 5px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-donate { background: rgba(255,255,255,0.15); color: white; }

/* Footer */
.site-footer { background: linear-gradient(135deg, #2D4A4E, #3D6569); color: rgba(255,255,255,0.4); font-size: 13px; letter-spacing: 0.01em; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; }
.footer-inner a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-inner a:hover { color: rgba(255,255,255,0.9); }
.footer-inner .nav-link { font-size: 16px; color: rgba(255,255,255,0.7); text-decoration: none; padding: 7px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.footer-inner .nav-link:hover { background: rgba(255,255,255,0.1); color: white; }

/* Article / page layout (blog posts + root article pages) */
.article-wrap { max-width: 700px; margin: 0 auto; padding: 40px 24px 72px; }
@media (min-width: 640px) { .article-wrap { padding: 56px 32px 88px; } }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #2D4A4E; text-decoration: none; margin-bottom: 32px; background: #fff; border: 1.5px solid #2D4A4E; border-radius: 6px; padding: 6px 12px; transition: background 0.15s, color 0.15s; }
.article-back:hover { background: #2D4A4E; color: #fff; }
.article-back svg { width: 14px; height: 14px; }
.article-date { font-size: 13px; font-weight: 600; color: #AAA; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.article-title { font-size: 28px; font-weight: 800; color: #1a1a1a; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 28px; }
@media (min-width: 640px) { .article-title { font-size: 36px; } }
.article-featured { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-bottom: 32px; display: block; }
.article-body { color: #333; line-height: 1.8; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 36px 0 12px; }
.article-body h3 { font-size: 17px; font-weight: 700; color: #2D4A4E; margin: 28px 0 10px; }
.article-body h4 { font-size: 15px; font-weight: 700; color: #2D4A4E; margin: 24px 0 8px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body a { color: #2D4A4E; font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote { border-left: 3px solid #C8D9DA; padding-left: 18px; margin: 24px 0; color: #555; font-style: italic; }
.article-body strong { color: #1a1a1a; font-weight: 600; }
.article-body figure { margin: 24px 0; }
.article-body figure img { max-width: 100%; border-radius: 8px; }
.article-body figcaption { font-size: 13px; color: #999; margin-top: 8px; text-align: center; }
.article-divider { border: none; border-top: 1px solid #E8E5E0; margin: 40px 0; }

/* WP page layout (wp/*.html pages) */
.page-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px 72px; }
@media (min-width: 640px) { .page-wrap { padding: 56px 32px 88px; } }
.page-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #2D4A4E; text-decoration: none; margin-bottom: 32px; opacity: 0.7; }
.page-back:hover { opacity: 1; }
.page-back svg { width: 14px; height: 14px; }
.page-date { font-size: 13px; font-weight: 600; color: #AAA; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.page-title { font-size: 28px; font-weight: 800; color: #1a1a1a; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 28px; }
@media (min-width: 640px) { .page-title { font-size: 36px; } }
.page-featured { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-bottom: 32px; display: block; }
.page-body { color: #333; line-height: 1.8; }
.page-body p { margin-bottom: 18px; }
.page-body h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 36px 0 12px; }
.page-body h3 { font-size: 18px; font-weight: 700; color: #2D4A4E; margin: 28px 0 10px; }
.page-body h4 { font-size: 15px; font-weight: 700; color: #2D4A4E; margin: 24px 0 8px; }
.page-body ul, .page-body ol { padding-left: 22px; margin-bottom: 18px; }
.page-body li { margin-bottom: 8px; line-height: 1.7; }
.page-body a { color: #2D4A4E; font-weight: 500; }
.page-body a:hover { text-decoration: underline; }
.page-body blockquote { border-left: 3px solid #C8D9DA; padding-left: 18px; margin: 24px 0; color: #555; font-style: italic; }
.page-body strong { color: #1a1a1a; font-weight: 600; }
.page-body figure { margin: 24px 0; }
.page-body figure img { max-width: 100%; border-radius: 8px; }
.page-body figcaption { font-size: 13px; color: #999; margin-top: 8px; text-align: center; }
.page-body table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.page-body th, .page-body td { padding: 10px 14px; border: 1px solid #E8E5E0; font-size: 14px; }
.page-body th { background: #F0EDEA; font-weight: 600; }
