/* ===== RankBiz — Service page layout (SEO / GEO / AEO) ===== */
/* Reuses existing design tokens from style.css and hero.css — no overrides of shared classes. */

.page-hero { padding: 154px 0 60px; background: var(--surface); }
.page-kicker { display:flex; align-items:center; gap:10px; font-size:11px; font-weight:600; letter-spacing:.14em; margin-bottom:22px; color: var(--muted); }
.page-kicker > span { width:7px; height:7px; border-radius:50%; background: var(--green); }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 54px); letter-spacing: -0.04em; line-height: 1.08; max-width: 820px; }
.page-hero h1 em { font-style: normal; color: var(--accent-text); }
.page-lede { color: var(--muted); font-size: 18px; line-height: 1.75; max-width: 720px; margin-top: 24px; }

.page-section { padding: 64px 0; border-top: 1px solid var(--line); }
.page-section h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin-bottom: 18px; max-width: 760px; }
.page-section p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 760px; margin-bottom: 16px; }
.page-section p:last-child { margin-bottom: 0; }

.page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
@media (max-width: 720px) { .page-grid { grid-template-columns: 1fr; } }

.page-card { background: var(--surface-card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.page-card h3 { font-family: var(--font-h); font-weight: 700; font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.page-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

.page-list { list-style: none; margin-top: 20px; display: grid; gap: 14px; max-width: 760px; }
.page-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; line-height: 1.6; }
.page-list li::before { content: "→"; color: var(--accent-text); font-weight: 700; flex-shrink: 0; }

.page-note { border-left: 3px solid var(--accent-text); background: var(--surface-card); border-radius: 0 12px 12px 0; padding: 18px 22px; margin-top: 32px; max-width: 760px; }
.page-note p { color: var(--muted); font-size: 14px; margin: 0; }

.page-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.page-links a { font-size: 14px; font-weight: 600; color: var(--accent-text); border: 1px solid var(--line); border-radius: 100px; padding: 10px 20px; display: inline-flex; align-items: center; gap: 8px; }

.page-cta { background: #47e38b; color: #0a0c0a; padding: 56px 0; text-align: left; }
.page-cta h2 { color: #0a0c0a; }
.page-cta p { color: #0a0c0a; opacity: .8; max-width: 600px; }
.page-cta .btn { margin-top: 20px; }
/* 25 Oct 2026: the default focus ring is var(--accent-text), the same #47e38b as this band in the dark theme (1:1),
   so the ring was invisible here. Ink keeps it visible in both themes (about 11:1 on the band). */
.page-cta :focus-visible { outline-color: #0a0c0a; }

.faq-list { display: grid; gap: 14px; margin-top: 28px; max-width: 820px; }
.faq-item { background: var(--surface-card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--font-h); font-weight: 600; font-size: 17px; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-text); font-size: 22px; font-weight: 400; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15px; line-height: 1.75; padding: 0 0 22px; margin: 0; max-width: 720px; }

/* ===== Blog articles and index (functions/_lib/blog-render.js: same markup for public pages and the admin preview) ===== */
.page-kicker a { color: inherit; text-decoration: none; }
.page-kicker a:hover, .page-kicker a:focus-visible { text-decoration: underline; }
.post-date { color: var(--muted); font-size: 14px; letter-spacing: .02em; margin-top: 14px; }
.post-body .container > * { max-width: 760px; }
.post-body h2 { margin-top: 40px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-family: var(--font-h); font-size: 21px; letter-spacing: -0.01em; margin: 30px 0 12px; }
.post-body ul, .post-body ol { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 16px; padding-left: 1.4em; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { border-left: 3px solid var(--line); padding-left: 18px; margin: 0 0 16px; color: var(--muted); overflow-wrap: anywhere; }
.post-body blockquote p { margin-bottom: 0; }
.post-body .post-table { overflow-x: auto; margin: 0 0 16px; }
.post-body .post-table:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.post-body table { border-collapse: collapse; min-width: 100%; color: var(--muted); font-size: 15px; line-height: 1.6; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.post-body th { color: var(--text); font-weight: 600; }
.post-body .post-image { margin: 0 0 16px; }
.post-body .post-image img { display: block; max-width: 100%; height: auto; }
.post-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.post-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-body .post-related h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 12px; }
.post-body .post-related ul + h2 { margin-top: 28px; }
.post-toc { margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-body .post-toc h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 12px; }
.post-body .post-toc ol { margin: 0; }
.post-body .post-toc ol ol { margin-top: 6px; }
.post-body h2[id], .post-body h3[id] { scroll-margin-top: 100px; }
.post-share { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-body .post-share h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 12px; }
.post-body .post-share ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.post-share-note { color: var(--muted); font-size: 15px; margin: 0; }
.blog-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.blog-list li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.blog-list li:first-child { padding-top: 0; }
.blog-list h2 { font-size: clamp(21px, 2vw, 26px); margin-bottom: 6px; }
.blog-list h2 a { color: inherit; text-decoration: none; }
.blog-list h2 a:hover, .blog-list h2 a:focus-visible { color: var(--accent-text); text-decoration: underline; }
.blog-list .post-date { margin: 0 0 8px; }
.blog-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 760px; margin-top: 32px; }
.blog-pagination p { margin: 0; color: var(--muted); font-size: 14px; }
.blog-pagination a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 600; }
.blog-pagination a[rel="next"] { margin-left: auto; }
.blog-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; max-width: 960px; margin: 0 0 32px; }
.blog-filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.blog-filter label { font-size: 14px; font-weight: 600; }
.blog-filter input, .blog-filter select { min-height: 48px; width: 100%; padding: 0 14px; font: inherit; font-size: 16px; color: inherit; background: transparent; border: 1px solid var(--muted); border-radius: 0; }
.blog-filter .btn { min-height: 48px; }
.blog-filter-clear { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 600; }
.blog-filter-status, .blog-filter-error { max-width: 960px; margin: 0 0 24px; color: var(--muted); }
.blog-filter-error { font-weight: 600; }

