/* Long-form layout shared by guides and free tools (includes/templates/guide.php, tool.php) */

/* Hero */
.ga-hero { position: relative; overflow: hidden; padding: 7.5rem 0 2.75rem; border-bottom: 1px solid #EAECF0; background: linear-gradient(180deg, #F3F9FE 0%, #FFFFFF 100%); }
@media (min-width: 768px) { .ga-hero { padding: 9rem 0 3.5rem; } }
.ga-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ga-wrap { padding: 0 1.5rem; } }
.ga-hero .page-crumbs { margin-bottom: 1.25rem; }
.ga-kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #0078BE; background: #E6F5FE; border-radius: 999px; padding: 0.35rem 0.8rem; margin-bottom: 1.1rem; }
.ga-title { font-family: Poppins, sans-serif; font-weight: 600; color: #101828; font-size: 2.1rem; line-height: 1.18; letter-spacing: -0.01em; max-width: 52rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .ga-title { font-size: 2.85rem; } }
.ga-lead { font-size: 1.125rem; line-height: 1.7; color: #475467; max-width: 46rem; }
@media (min-width: 768px) { .ga-lead { font-size: 1.2rem; } }
.ga-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.5rem; font-size: 0.9rem; color: #667085; }
.ga-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ga-meta svg { width: 1rem; height: 1rem; color: #98A2B3; }
.ga-author { display: inline-flex; align-items: center; gap: 0.55rem; color: #344054; font-weight: 500; }
.ga-author img { width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 1px solid #EAECF0; background: #fff; padding: 3px; }

/* Body: article plus a sticky side column on wide screens */
.ga-body { padding: 2.5rem 0 4rem; }
@media (min-width: 768px) { .ga-body { padding: 3.5rem 0 5rem; } }
.ga-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .ga-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 4rem; } }
.ga-main { min-width: 0; max-width: 46rem; }
.ga-aside { display: none; }
@media (min-width: 1024px) { .ga-aside { display: block; } }
.ga-sticky { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }

/* Table of contents */
.ga-toc { border-left: 2px solid #EAECF0; padding-left: 0.25rem; }
.ga-toc-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #667085; margin: 0 0 0.6rem 0.9rem; }
.ga-toc ol { display: grid; gap: 0.1rem; }
.ga-toc a { display: block; margin-left: -0.35rem; padding: 0.4rem 0.75rem 0.4rem 1rem; border-left: 2px solid transparent; border-radius: 0 0.4rem 0.4rem 0; font-size: 0.92rem; line-height: 1.4; color: #475467; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.ga-toc a:hover { color: #101828; background: #F6F9FC; }
.ga-toc a.is-active { color: #0078BE; font-weight: 600; border-left-color: #0096EE; background: #F0F8FE; }
.ga-progress { height: 3px; border-radius: 3px; background: #EAECF0; overflow: hidden; margin: 0.25rem 0 0 0.9rem; }
.ga-progress i { display: block; height: 100%; width: 0; background: #0096EE; transition: width 0.1s linear; }

/* Mobile table of contents */
.ga-toc-mobile { border: 1px solid #EAECF0; border-radius: 0.85rem; background: #F9FAFB; margin-bottom: 2rem; }
@media (min-width: 1024px) { .ga-toc-mobile { display: none; } }
.ga-toc-mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.1rem; font-weight: 600; color: #101828; }
.ga-toc-mobile summary::-webkit-details-marker { display: none; }
.ga-toc-mobile summary::after { content: '+'; font-size: 1.25rem; color: #667085; }
.ga-toc-mobile[open] summary::after { content: '\2212'; }
.ga-toc-mobile ol { list-style: decimal; padding: 0 1.25rem 1rem 2.4rem; display: grid; gap: 0.45rem; }
.ga-toc-mobile a { color: #0078BE; }

/* Side cards */
.ga-card { border: 1px solid #EAECF0; border-radius: 1rem; padding: 1.25rem; background: #fff; }
.ga-card--brand { background: linear-gradient(160deg, #0096EE 0%, #0068A8 100%); border: 0; color: #E6F5FE; }
.ga-card.ga-card--brand h3 { color: #fff; font-family: Poppins, sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.4rem; }
.ga-card.ga-card--brand p { font-size: 0.88rem; line-height: 1.55; margin-bottom: 1rem; color: #E6F5FE; }
.ga-card--brand a { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0.6rem 1rem; border-radius: 0.6rem; background: #fff; color: #0078BE; font-weight: 600; font-size: 0.92rem; }
.ga-card--brand a:hover { background: #E6F5FE; }
.ga-card-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #667085; margin-bottom: 0.6rem; }
.ga-links { display: grid; gap: 0.15rem; }
.ga-links a { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.5rem; margin: 0 -0.5rem; border-radius: 0.5rem; font-size: 0.9rem; color: #344054; }
.ga-links a:hover { background: #F6F9FC; color: #0078BE; }
.ga-links svg { width: 1rem; height: 1rem; color: #0096EE; flex: none; }

/* Article typography */
.guide-article { color: #475467; font-size: 1.0625rem; line-height: 1.8; }
.guide-article section { scroll-margin-top: 6.5rem; }
.guide-article section + section { margin-top: 2.75rem; padding-top: 2.75rem; border-top: 1px solid #F2F4F7; }
.guide-article h2 { font-family: Poppins, sans-serif; font-size: 1.6rem; line-height: 1.3; font-weight: 600; color: #101828; letter-spacing: -0.005em; margin-bottom: 1rem; }
@media (min-width: 768px) { .guide-article h2 { font-size: 1.75rem; } }
.guide-article h3 { font-family: Poppins, sans-serif; font-size: 1.15rem; font-weight: 600; color: #101828; margin: 1.75rem 0 0.5rem; }
.guide-article p { margin-bottom: 1rem; }
.guide-article strong { color: #101828; font-weight: 600; }
.guide-article ul, .guide-article ol { padding-left: 1.4rem; margin-bottom: 1.1rem; display: grid; gap: 0.5rem; }
.guide-article ul { list-style: none; padding-left: 0; }
.guide-article ul > li { position: relative; padding-left: 1.6rem; }
.guide-article ul > li::before { content: ''; position: absolute; left: 0.3rem; top: 0.72em; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #0096EE; }
.guide-article ol { list-style: none; counter-reset: ga; padding-left: 0; }
.guide-article ol > li { position: relative; counter-increment: ga; padding-left: 2.4rem; }
.guide-article ol > li::before { content: counter(ga); position: absolute; left: 0; top: 0.2em; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: #E6F5FE; color: #0078BE; font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.guide-article a { color: #0078BE; text-decoration: underline; text-decoration-color: #B3E3FC; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.guide-article a:hover { text-decoration-color: #0096EE; }

.guide-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid #EAECF0; border-radius: 0.85rem; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.guide-article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.guide-article th, .guide-article td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid #EAECF0; vertical-align: top; }
.guide-article th { background: #F9FAFB; color: #344054; font-weight: 600; font-size: 0.85rem; }
.guide-article tbody tr:hover td { background: #FCFCFD; }
.guide-article tr:last-child td { border-bottom: 0; }
.guide-article td.num, .guide-article th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guide-article tr.total td { font-weight: 600; color: #101828; background: #F6F9FC; }

.guide-callout { background: #F0F8FE; border: 1px solid #CDEBFC; border-left: 4px solid #0096EE; border-radius: 0.75rem; padding: 1rem 1.25rem; margin: 1.5rem 0; color: #003C5F; }
.guide-callout p:last-child { margin-bottom: 0; }

/* Related cards */
.ga-related { padding: 4rem 0; background: #F9FAFB; border-top: 1px solid #EAECF0; }
.ga-related h2 { font-family: Poppins, sans-serif; font-weight: 600; color: #101828; font-size: 1.5rem; margin-bottom: 1.5rem; }
.ga-related-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .ga-related-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.ga-related-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #EAECF0; border-radius: 1rem; padding: 1.25rem 1.35rem; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ga-related-card:hover { border-color: #B3E3FC; box-shadow: 0 12px 24px -16px rgba(0, 120, 190, 0.45); transform: translateY(-2px); }
.ga-related-card h3 { font-family: Poppins, sans-serif; font-weight: 600; color: #101828; font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.4rem; }
.ga-related-card p { font-size: 0.92rem; line-height: 1.55; color: #475467; margin-bottom: 0.9rem; }
.card-more { margin-top: auto; padding-top: 0.25rem; font-size: 0.9rem; font-weight: 600; color: #0078BE; }
