.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: var(--bg); padding: 1rem; }
.skip-link:focus { top: 1rem; }
.page-main { padding-top: 48px; }
.page-main h1 { font-size: clamp(24px, 5vw, 44px); margin: 24px 0; overflow-wrap: anywhere; }
.page-main .cards { margin-top: 36px; }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.product-hero figure { margin: 0; }
.product-hero img, .article-body img, .article-cover { width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: 20px; margin-top: 12px; }
.article { max-width: 800px; }
.article-body { line-height: 1.6; overflow-wrap: anywhere; }
.article-body h2 { margin-top: 40px; }
.article-body h3 { color: var(--cyan); line-height: 1.6; font-size: 16px; margin-top: 28px; }
.article-body pre { overflow-x: auto; padding: 20px; background: var(--bg); border: 2px solid var(--track); font-size: 18px; }
.article-body code { font-family: ui-monospace, monospace; font-size: 0.8em; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.article-body td, .article-body th { padding: 12px; border: 1px solid var(--track); }
.callout { border-left: 4px solid var(--cyan); padding: 8px 20px; background: var(--bg); margin: 24px 0; }
.callout-warning { border-color: var(--yellow); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.post-list { list-style: none; padding: 0; }
.post-list > li { border-bottom: 2px solid var(--track); padding: 24px 0; }
.post-list h2 { font-size: 18px; line-height: 1.6; }
.languages { position: relative; z-index: 1; display: flex; gap: 20px; justify-content: center; margin: 20px; }
.meta { color: var(--muted); }
@media (max-width: 650px) { .product-hero { grid-template-columns: 1fr; } .page-main { padding-top: 24px; } }

.post-list > li > img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }

/* Prism emits classes at build time, keeping syntax highlighting compatible with CSP. */
.token.comment, .token.prolog, .token.doctype { color: var(--muted); }
.token.keyword, .token.boolean, .token.tag { color: var(--magenta); }
.token.string, .token.attr-value { color: var(--yellow); }
.token.function, .token.class-name, .token.number { color: var(--cyan); }
.token.operator, .token.punctuation { color: var(--text); }
.article-body pre:has(code) { position: relative; padding-top: 52px; }
.code-copy { position: absolute; top: 6px; right: 8px; padding: 4px 10px; border: 1px solid var(--cyan); background: var(--bg); color: var(--cyan); font: 18px var(--mono); cursor: pointer; }

.product-hero + section, .page-main .panel > section { margin-top: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 24px; }
.feature-grid h3 { font-size: 14px; line-height: 1.6; color: var(--cyan); }

.gallery a, .gallery img { display: block; }
.gallery img { width: 100%; height: auto; }
.gallery .portrait-shot { width: 100%; max-width: 320px; justify-self: center; }
