/* AccessoriesOrbit design. Mobile-first. No web fonts, no JS: fast by default. */
:root {
  --ao-ink: #14202b;
  --ao-ink-2: #3d4a56;      /* body secondary, 8.6:1 on paper */
  --ao-paper: #f6f3ec;
  --ao-card: #ffffff;
  --ao-line: #ddd6c6;
  --ao-car: #1b4f8a;        /* car accent */
  --ao-bike: #b3360a;       /* bike accent */
  --ao-focus: #0a58ca;
  --ao-radius: 14px;
  --ao-gap: clamp(14px, 3vw, 24px);
  --ao-wrap: 1160px;
  --ao-read: 720px;
  --ao-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --ao-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Page frame (our templates only) ---- */
.ao-templated { background: var(--ao-paper); color: var(--ao-ink); }
.ao-templated .site-content .ast-container { display: block; max-width: var(--ao-wrap); padding-left: 16px; padding-right: 16px; }
.ao-templated #primary { width: 100%; margin: 0; padding: 0; }
.ao-main { font-family: var(--ao-sans); line-height: 1.6; overflow-wrap: anywhere; }
.ao-main *, .ao-main *::before, .ao-main *::after { box-sizing: border-box; }
.ao-main img { max-width: 100%; height: auto; display: block; }
.ao-main a { color: var(--ao-car); text-underline-offset: 2px; }
.ao-main a:hover { color: var(--ao-ink); }
.ao-main :focus-visible, .ao-search :focus-visible { outline: 3px solid var(--ao-focus); outline-offset: 2px; }
.ao-main h1, .ao-main h2, .ao-main h3 { font-family: var(--ao-serif); line-height: 1.2; color: var(--ao-ink); margin: 0 0 .5em; }

/* Astra's "transparent header" would float the header over our hero; keep it a normal bar. */
.ao-templated #masthead { position: relative !important; background: var(--ao-paper) !important; }
.ao-templated #masthead .main-header-bar, .ao-templated #masthead .ast-mobile-header-wrap .ast-primary-header-bar { background: var(--ao-paper) !important; border-bottom: 1px solid var(--ao-line); }

/* ---- Hero ---- */
.ao-hero { position: relative; overflow: hidden; margin: 16px 0 32px; padding: 28px 20px; background: var(--ao-ink); color: #fff; border-radius: 22px; }
.ao-hero h1 { color: #fff; font-size: clamp(1.7rem, 6.5vw, 3rem); max-width: 18ch; }
.ao-hero__inner { position: relative; z-index: 1; max-width: 640px; }
.ao-hero__lead { color: #dfe6ec; font-size: 1.05rem; margin: 0 0 18px; }
.ao-eyebrow { margin: 0 0 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #ffd9a8; font-weight: 700; }
.ao-hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
/* the orbit motif: two offset rings */
.ao-orbit { position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); pointer-events: none; }
.ao-orbit::before { content: ""; position: absolute; inset: 44px; border-radius: 50%; border: 2px dashed rgba(255,217,168,.4); }
.ao-orbit::after { content: ""; position: absolute; left: 20px; top: 150px; width: 18px; height: 18px; border-radius: 50%; background: #ffb454; }

/* ---- Buttons ---- */
.ao-btn, .ao-main .wp-block-button__link { display: inline-block; padding: 12px 20px; min-height: 44px; border-radius: 999px; font-weight: 700; text-decoration: none; background: #fff; color: var(--ao-ink); border: 2px solid transparent; }
.ao-main a.ao-btn { color: var(--ao-ink); }
.ao-btn--car { background: #fff; color: var(--ao-car); }
.ao-btn--bike { background: #ffb454; color: #14202b; }
.ao-main a.ao-btn--car { color: var(--ao-car); }
.ao-main .ao-archive .ao-btn, .ao-main .ao-404 .ao-btn { border-color: var(--ao-ink); }
.ao-btn:hover { transform: translateY(-1px); }

/* ---- Search ---- */
.ao-search { display: flex; gap: 8px; max-width: 520px; margin: 16px 0 0; }
.ao-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ao-line); border-radius: 12px; font-size: 1rem; color: var(--ao-ink); background: #fff; }
.ao-search button { height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ao-bike); color: #fff; font-weight: 700; cursor: pointer; }

/* ---- Sections and grids ---- */
.ao-section { margin: 0 0 40px; }
.ao-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ao-section__title { font-size: 1.5rem; position: relative; padding-left: 26px; }
.ao-section__title::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--ao-ink); }
.ao-dept--car .ao-section__title::before { border-color: var(--ao-car); }
.ao-dept--bike .ao-section__title::before { border-color: var(--ao-bike); }
.ao-more { font-weight: 700; }
.ao-grid { display: grid; grid-template-columns: 1fr; gap: var(--ao-gap); }
.ao-grid__full { grid-column: 1 / -1; }
@media (min-width: 600px) { .ao-grid, .ao-grid--4 { grid-template-columns: repeat(2, 1fr); } .ao-grid--featured .ao-card--feature { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .ao-hero { padding: 56px 48px; }
  .ao-orbit { right: -40px; top: -60px; width: 460px; height: 460px; }
  .ao-orbit::before { inset: 70px; } .ao-orbit::after { left: 34px; top: 230px; }
  .ao-grid { grid-template-columns: repeat(3, 1fr); }
  .ao-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ao-grid--featured { grid-template-columns: 2fr 1fr; }
  .ao-grid--featured .ao-card--feature { grid-column: 1; grid-row: 1 / span 2; }
}

/* ---- Cards ---- */
.ao-card { display: flex; flex-direction: column; background: var(--ao-card); border: 1px solid var(--ao-line); border-radius: var(--ao-radius); overflow: hidden; box-shadow: 0 3px 0 var(--ao-line); min-width: 0; }
.ao-card.ao-dept-car { border-top: 4px solid var(--ao-car); }
.ao-card.ao-dept-bike { border-top: 4px solid var(--ao-bike); }
.ao-card__media { display: block; aspect-ratio: 16 / 10; background: #e9e3d4; overflow: hidden; }
.ao-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ao-card__ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #e9e3d4 0 12px, #efe9db 12px 24px); }
.ao-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ao-card__kicker { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ao-ink-2); }
.ao-chip { padding: 2px 8px; border-radius: 999px; color: #fff; }
.ao-chip--car { background: var(--ao-car); } .ao-chip--bike { background: var(--ao-bike); }
.ao-card__title { font-size: 1.15rem; margin: 0; }
.ao-card--feature .ao-card__title { font-size: clamp(1.3rem, 4vw, 1.8rem); }
.ao-card__title a { color: var(--ao-ink); text-decoration: none; }
.ao-card__title a:hover { text-decoration: underline; }
.ao-card__excerpt { margin: 0; color: var(--ao-ink-2); font-size: .95rem; }
.ao-card__meta { margin: auto 0 0; padding-top: 6px; font-size: .82rem; color: var(--ao-ink-2); }

/* ---- Archive / search / 404 ---- */
.ao-archive__head { margin: 20px 0 28px; }
.ao-archive__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.ao-archive__desc { color: var(--ao-ink-2); max-width: var(--ao-read); }
.ao-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.ao-pills a { display: inline-block; padding: 8px 14px; min-height: 40px; border: 2px solid var(--ao-ink); border-radius: 999px; text-decoration: none; color: var(--ao-ink); font-weight: 600; }
.ao-pills a:hover { background: var(--ao-ink); color: #fff; }
.ao-main .navigation.pagination { margin: 32px 0; }
.ao-main .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.ao-main .page-numbers { padding: 8px 14px; min-height: 40px; border: 2px solid var(--ao-ink); border-radius: 999px; text-decoration: none; color: var(--ao-ink); font-weight: 600; }
.ao-main .page-numbers.current { background: var(--ao-ink); color: #fff; }
.ao-404 { text-align: center; padding: 40px 0 56px; max-width: 640px; margin: 0 auto; }
.ao-404__code { font-family: var(--ao-serif); font-size: clamp(4rem, 20vw, 8rem); line-height: 1; margin: 0; color: var(--ao-bike); }
.ao-404 .ao-search { margin-left: auto; margin-right: auto; }
.ao-404 .ao-hero__links { justify-content: center; }
.ao-trust { background: #fff; border: 1px solid var(--ao-line); border-radius: var(--ao-radius); padding: 18px 20px; }

/* ---- Article ---- */
.ao-article { max-width: 860px; margin: 0 auto 40px; }
.ao-article__head { margin: 20px 0 18px; }
.ao-article__title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.ao-article__meta { color: var(--ao-ink-2); font-size: .9rem; margin: 0 0 12px; }
.ao-crumbs { font-size: .85rem; color: var(--ao-ink-2); margin-bottom: 10px; }
.ao-article__hero { margin: 0 0 24px; border-radius: var(--ao-radius); overflow: hidden; }
.ao-article__hero img { width: 100%; }
.ao-prose { max-width: var(--ao-read); margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.ao-prose h2 { font-size: 1.6rem; margin-top: 1.8em; scroll-margin-top: 80px; }
.ao-prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.ao-prose p, .ao-prose ul, .ao-prose ol { margin: 0 0 1.1em; }
.ao-prose img, .ao-prose video, .ao-prose iframe { max-width: 100%; height: auto; }
.ao-prose figure { margin: 1.4em 0; }
.ao-prose figcaption { font-size: .85rem; color: var(--ao-ink-2); }
.ao-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ao-prose th, .ao-prose td { border: 1px solid var(--ao-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ao-prose th { background: #ece6d6; }
.ao-prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.ao-prose .wp-block-table table { min-width: 480px; }
.ao-prose pre { overflow-x: auto; max-width: 100%; }
.ao-article__foot { max-width: var(--ao-read); margin: 28px auto 0; font-size: .9rem; color: var(--ao-ink-2); }
.ao-note { font-size: .88rem; color: var(--ao-ink-2); background: #fff; border-left: 4px solid var(--ao-line); padding: 8px 12px; border-radius: 6px; }
.ao-toc { background: #fff; border: 1px solid var(--ao-line); border-radius: var(--ao-radius); padding: 14px 18px; margin: 0 0 1.6em; }
.ao-toc__title { font-size: 1rem !important; margin: 0 0 6px !important; }
.ao-toc ol { margin: 0; padding-left: 1.2em; }
.ao-toc li { margin: 4px 0; }
/* Type accents */
.ao-type-how-to .ao-steps { counter-reset: s; list-style: none; padding: 0; }
.ao-steps li { counter-increment: s; position: relative; padding: 4px 0 12px 48px; }
.ao-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ao-ink); color: #fff; font-weight: 700; display: grid; place-items: center; }
.ao-callout { border-radius: var(--ao-radius); padding: 14px 18px; margin: 1.2em 0; border: 1px solid var(--ao-line); background: #fff; }
.ao-callout p { margin: 0; }
.ao-callout--info { border-left: 6px solid var(--ao-car); }
.ao-callout--warn { border-left: 6px solid var(--ao-bike); background: #fff4ec; }

/* ---- Product card (editable blocks) ---- */
.ao-product { background: #fff; border: 2px solid var(--ao-ink); border-radius: var(--ao-radius); padding: 16px; margin: 1.6em 0; box-shadow: 4px 4px 0 var(--ao-ink); }
.ao-product h3 { margin-top: 0; }
.ao-product__label { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ao-bike); }
.ao-product__cols, .ao-product__proscons { gap: 16px !important; margin-bottom: 12px; }
.ao-product__img img { width: 100%; border-radius: 8px; background: #efe9db; }
.ao-pros, .ao-cons { list-style: none; padding: 0; margin: 0; }
.ao-pros li, .ao-cons li { position: relative; padding-left: 24px; margin: 4px 0; }
.ao-pros li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: #0b6b3a; }
.ao-cons li::before { content: "\2212"; position: absolute; left: 0; font-weight: 800; color: var(--ao-bike); }
.ao-product h4 { font-size: 1rem; margin: 0 0 4px; }
.ao-check-price .wp-block-button__link { background: var(--ao-bike); color: #fff; }
.ao-check-price .wp-block-button__link:hover { background: var(--ao-ink); color: #fff; }
.ao-product__note { font-size: .82rem; color: var(--ao-ink-2); margin: 8px 0 0; }
@media (max-width: 781px) { .ao-product .wp-block-column { flex-basis: 100% !important; } .ao-check-price, .ao-check-price .wp-block-button__link { width: 100%; text-align: center; } }

/* ---- Ad slots: labelled, fixed min-height to prevent layout shift, never sticky/overlay ---- */
.ao-ad { display: block; clear: both; margin: 28px auto; max-width: 100%; min-height: 280px; text-align: center; overflow: hidden; }
.ao-ad__label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ao-ink-2); margin-bottom: 6px; }
.ao-ad--placeholder { border: 2px dashed #8f8a7a; border-radius: 10px; padding: 12px; background: repeating-linear-gradient(45deg, #f0ebde 0 10px, #f6f3ec 10px 20px); display: flex; flex-direction: column; justify-content: center; }
.ao-ad__note { font-size: .85rem; color: var(--ao-ink-2); }
@media (min-width: 900px) { .ao-ad { min-height: 120px; } }

/* ---- Utilities ---- */
.ao-templated .screen-reader-text:focus { background: #fff; color: var(--ao-ink); }
@media (prefers-reduced-motion: reduce) { .ao-btn { transition: none; } .ao-btn:hover { transform: none; } }

/* Footer social links and guides hub */
.ao-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 16px; font-size: .92rem; }
.ao-social p { margin: 0; }
.ao-social ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.ao-social a { display: inline-block; padding: 10px 4px; min-height: 44px; }
.ao-hub__sub { margin: 24px 0 12px; font-size: 1.1rem; }

/* v1.2: stop the parent theme's article padding squeezing our cards; show diagrams uncropped */
.ao-main .ao-card { padding: 0 !important; margin: 0 !important; }
.ao-card__media img { object-fit: contain !important; background: #fff; }
.ao-card--feature .ao-card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; display: flex; }
.ao-card--feature .ao-card__media img { height: 100%; width: 100%; }
/* social strip sits flush with the footer colour if it is ever shown */
.ao-social { background: #253993; color: #fff; }
.ao-social a { color: #fff; text-decoration: underline; }

/* v1.3: popular-topics shortcuts under the hero */
.ao-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 18px 0 6px; }
.ao-topics__label { font-weight: 700; font-size: .9rem; color: var(--ao-ink-2); }
.ao-topics .ao-pills { margin: 0; }
.ao-topics .ao-pills a { padding: 6px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: .92rem; }
.ao-topics { margin-bottom: 26px; }

/* v1.3.2: Astra 4.14 applies text-transform: capitalize to headings. Keep our sentence-case headings and the lowercase site name. */
body.ao-templated h1, body.ao-templated h2, body.ao-templated h3, body.ao-templated h4, body.ao-templated h5, body.ao-templated h6,
body.ao-templated .entry-content h1, body.ao-templated .entry-content h2, body.ao-templated .entry-content h3,
body.ao-templated .entry-content h4, body.ao-templated .entry-content h5, body.ao-templated .entry-content h6,
.ao-card__title, .ao-card__title a, .ao-section__title, .ao-archive__title { text-transform: none !important; }
.site-title, .site-title a, .ast-site-identity .site-title a { text-transform: none !important; }
