/* Swift Solutions – WordPress-specific additions (loaded after style.css). */

/* Fixed header below the admin bar when logged in */
.admin-bar header.site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar header.site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar header.site-header { top: 0; } }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Contact form */
.swift-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.swift-form-error { grid-column: 1 / -1; color: #c0392b; font-weight: 600; font-size: .92rem; margin-top: 4px; }

/* Learning Hub cards with featured images */
.swift-post-thumb { display: block; margin: -4px 0 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky); }
.swift-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .swift-post-thumb img { transform: scale(1.04); }
.swift-pager { margin-top: 40px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.swift-pager .page-numbers { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.swift-pager .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Generic pages: editor content full width, clear of the fixed header */
.swift-generic .swift-content { padding-top: calc(78px + clamp(24px, 4vw, 48px)); }
.swift-content .swift-prose > * + * { margin-top: 1.1em; }
.swift-prose { color: var(--text); }
.swift-prose a { color: var(--blue); }
.swift-prose ul, .swift-prose ol { padding-left: 1.3em; }
.swift-prose img { max-width: 100%; height: auto; }
.swift-prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

/* Blog posts */
.swift-article { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.swift-article h2, .swift-article h3 { margin-top: 1.8em; color: var(--ink); }
.swift-article ul { list-style: disc; }
.swift-article ol { list-style: decimal; }
.swift-article blockquote { border-left: 3px solid var(--blue); padding-left: 1.2em; font-style: italic; }
.swift-feature { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; }
.swift-feature img { width: 100%; height: auto; display: block; }

/* Mobile menu fix: the header's backdrop blur made the full-screen menu
   collapse into the 78px header bar. Drop the blur while the menu is open. */
@media (max-width: 860px) {
  header.site-header:has(nav.main-nav.open) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  nav.main-nav.open { height: 100vh; height: 100dvh; }
  .admin-bar nav.main-nav.open { top: 46px; height: calc(100dvh - 46px); }
}

/* Buttons inside editor/blog content keep their own text colour */
.swift-prose a.btn, .swift-prose a.btn:hover { color: #fff; }

/* Heading font: Manrope replaces Sora, whose heavy "Y" and tight kerning
   made letters collide (e.g. "SYSPRO", "Peripherals"). */
:root { --font-display: 'Manrope', sans-serif; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }

/* Blue highlight word in headings (matches "Every Purchase" on the home page) */
.swift-accent { color: var(--blue); }
