/* Gear-review site layout (Auto Site Setup). Colours come from the Kadence palette:
   palette1 accent · palette3 brand deep red · palette7 gold · palette8 cream. */

:root {
	--sbs-head: 'Oswald', 'Arial Narrow', sans-serif;
	--sbs-body: Georgia, 'Times New Roman', Times, serif;
	--sbs-accent: var(--global-palette1, #B8322A);
	--sbs-accent-dark: var(--global-palette2, #8E241E);
	--sbs-brown: var(--global-palette3, #6E1A1A);
	--sbs-text: var(--global-palette4, #1C1C1C);
	--sbs-muted: var(--global-palette6, #6E6E6E);
	--sbs-tan: var(--global-palette7, #E9BC55);
	--sbs-grey: var(--global-palette8, #F6F1E7);
	--sbs-line: #D9D9D9;
}

.sbs-site h1, .sbs-site h2, .sbs-site h3, .sbs-site h4, .sbs-site h5, .sbs-site h6 { font-family: var(--sbs-head); }
body.sbs-site { font-family: var(--sbs-body); }
.sbs-site a { text-decoration: none; }

/* ---------- Header ---------- */
.sbs-site .site-branding .site-title { font-family: var(--sbs-head); letter-spacing: .02em; line-height: 1.05; }
.sbs-site .site-branding a.brand { gap: 10px; }
.sbs-site .main-navigation .primary-menu-container > ul > li.menu-item > a { font-family: var(--sbs-head); }
.sbs-site .header-navigation .header-menu-container ul ul.sub-menu { box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.sbs-site .header-navigation .header-menu-container ul ul li.menu-item > a {
	font-family: var(--sbs-head); text-transform: uppercase; letter-spacing: .03em; padding-top: .75em; padding-bottom: .75em;
}
.sbs-site .header-navigation .header-menu-container ul ul li.menu-item:last-child > a { color: var(--sbs-tan); font-weight: 700; }
.sbs-site .site-header button.search-toggle-open, .sbs-site .site-header button.menu-toggle-open,
.sbs-site .site-header button.drawer-toggle { background: transparent !important; box-shadow: none !important; padding: .4em; }
.sbs-site #mobile-drawer .drawer-inner,
.sbs-site #search-drawer .drawer-inner { background: var(--sbs-brown); }
.sbs-site .mobile-navigation ul li a { font-family: var(--sbs-head); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Shared bits ---------- */
.sbs-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sbs-btn, .sbs-site .wp-block-button__link, .sbs-site .entry-content .button {
	display: inline-block; background: var(--sbs-accent); color: #fff !important; font-family: var(--sbs-head);
	font-weight: 500; font-size: 16px; line-height: 1.2; padding: .6em 1.1em; border-radius: 3px; border: 0;
	text-decoration: none !important; transition: background .15s ease;
}
.sbs-btn:hover, .sbs-btn:focus, .sbs-site .wp-block-button__link:hover { background: var(--sbs-accent-dark); color: #fff !important; }
.sbs-btn-wrap { margin: 1.4em 0; }
.sbs-noimg { display: block; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--sbs-brown), var(--sbs-tan)); }

/* ---------- Homepage hero ---------- */
.sbs-hero { position: relative; height: 560px; overflow: hidden; background: #2b2216; }
.sbs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.sbs-slide.is-active { opacity: 1; visibility: visible; }
.sbs-slide__media, .sbs-slide__media img, .sbs-slide__media .sbs-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sbs-slide__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.38) 55%, rgba(0,0,0,.25) 100%); }
.sbs-slide__inner { position: relative; z-index: 2; height: 100%; max-width: 900px; margin: 0 auto; padding: 0 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.sbs-site .sbs-hero .sbs-slide__title { margin: 0 0 .25em; font-size: 64px; line-height: 1.1; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.sbs-slide__title, .sbs-slide__title a { color: #fff !important; }
.sbs-site .sbs-hero .sbs-slide__text { margin: 0 0 1.2em; color: #fff; font-family: var(--sbs-body); font-size: 18px; line-height: 1.55; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.sbs-hero--empty { height: 380px; background: linear-gradient(135deg, var(--sbs-brown) 0%, #3d0d0d 100%); }
.sbs-hero .sbs-dots { position: absolute; z-index: 3; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.sbs-site .sbs-hero .sbs-dots button { width: 10px; height: 10px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5) !important; cursor: pointer; box-shadow: none; }
.sbs-site .sbs-hero .sbs-dots button.is-active { background: #fff !important; }

/* Round grey arrows (hero + carousels) */
.sbs-site button.sbs-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.85) !important; cursor: pointer; color: transparent; min-height: 0; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: opacity .2s, background .2s; }
.sbs-arrow::before { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-top: 3px solid #8a8a8a; border-right: 3px solid #8a8a8a; }
.sbs-arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.sbs-arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.sbs-site button.sbs-arrow:hover { background: #fff !important; }
.sbs-hero .sbs-arrow--prev { left: 22px; }
.sbs-hero .sbs-arrow--next { right: 22px; }

/* ---------- Homepage sections + card carousels ---------- */
.sbs-section { padding: 56px 0 60px; }
.sbs-section--white { background: #fff; }
.sbs-section--grey { background: var(--sbs-grey); }
.sbs-section--tan { background: var(--sbs-tan); }
.sbs-site .sbs-section .sbs-section__title { text-align: center; margin: 0 0 30px; font-size: 36px; line-height: 1.2; color: var(--sbs-brown); }
.sbs-carousel { position: relative; padding: 0 44px; }
.sbs-site .sbs-carousel button.sbs-arrow { background: #c9c9c9 !important; box-shadow: none; width: 30px; height: 30px; top: 42%; }
.sbs-carousel .sbs-arrow::before { border-color: #fff; width: 8px; height: 8px; }
.sbs-site .sbs-carousel button.sbs-arrow:hover { background: #a9a9a9 !important; }
.sbs-carousel .sbs-arrow--prev { left: 0; }
.sbs-carousel .sbs-arrow--next { right: 0; }
.sbs-carousel.is-start .sbs-arrow--prev, .sbs-carousel.is-end .sbs-arrow--next { opacity: .35; pointer-events: none; }
.sbs-site .sbs-carousel.no-scroll button.sbs-arrow { display: none; }
.sbs-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 3); overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; border-left: 1px solid var(--sbs-line); }
.sbs-track::-webkit-scrollbar { display: none; }
.sbs-card { scroll-snap-align: start; padding: 0 16px 6px; border-right: 1px solid var(--sbs-line); min-width: 0; }
.sbs-section--tan .sbs-track, .sbs-section--tan .sbs-card { border-color: rgba(110,26,26,.25); }
.sbs-card__img { display: block; aspect-ratio: 340 / 225; overflow: hidden; background: #ddd; }
.sbs-card__img img, .sbs-card__img .sbs-noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.sbs-card:hover .sbs-card__img img { transform: scale(1.04); }
.sbs-site .sbs-card .sbs-card__title { margin: 16px 0 10px; font-size: 21px; line-height: 1.2; font-weight: 500; }
.sbs-card__title a { color: var(--sbs-brown) !important; }
.sbs-card__title a:hover { color: var(--sbs-accent) !important; }
.sbs-site .sbs-card .sbs-card__text { margin: 0; font-family: var(--sbs-body); font-size: 14px; line-height: 1.65; color: #333; }
.sbs-more { text-align: center; margin: 26px 0 0; }
.sbs-more a { font-family: var(--sbs-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; font-size: 15px; color: var(--sbs-accent); }
.sbs-section--tan .sbs-more a { color: var(--sbs-brown); }
.sbs-empty { text-align: center; color: var(--sbs-muted); font-style: italic; border: 2px dashed var(--sbs-line); padding: 24px; }

/* Full-width homepage: no gaps around the sections */
.sbs-site.home .content-container.site-container, .sbs-site.home .entry-content-wrap { padding: 0; }
.sbs-site.home .entry-content > .sbs-hero, .sbs-site.home .entry-content > .sbs-section { margin: 0; }
.sbs-site.home .entry-content { margin: 0; }
.sbs-site.home #primary, .sbs-site.home .site-main, .sbs-site.home .content-area { margin-top: 0; margin-bottom: 0; }

/* ---------- Single post (buyer's guide) ---------- */
.sbs-site.single-post .entry-header { text-align: center; margin-bottom: 1.4em; }
.sbs-site.single-post .entry-title,
.sbs-site.page:not(.home) .entry-title,
.sbs-site .archive-title {
	display: inline; background: var(--sbs-tan); color: var(--sbs-brown); padding: .02em .28em; line-height: 1.55;
	-webkit-box-decoration-break: clone; box-decoration-break: clone; font-size: 36px;
}
.sbs-site.single-post .entry-header .title-entry-excerpt,
.sbs-site.single-post .entry-header .entry-excerpt {
	margin-top: 1em; font-family: var(--sbs-body); font-size: 21px; line-height: 1.45; color: var(--sbs-brown);
}
.sbs-site.single-post .entry-header .title-entry-excerpt p { margin: 0; }
.sbs-postmeta { text-align: center; font-size: 13px; line-height: 1.7; margin: 0 0 2em; color: var(--sbs-text); }
.sbs-postmeta p { margin: 0 0 .9em; }
.sbs-crumbs { margin-bottom: 1em; }
.sbs-crumbs a { color: var(--sbs-accent); }
.sbs-disclosure { font-style: italic; max-width: 520px; margin-left: auto !important; margin-right: auto !important; }
.sbs-site.single-post .post-thumbnail, .sbs-site.single-post .article-post-thumbnail { margin-bottom: 1.2em; }

.sbs-site .single-content h2 { font-size: 30px; margin-top: 1.6em; }
.sbs-site .single-content h3 { font-size: 22px; }
.sbs-site .single-content h3 a { color: var(--sbs-accent); }
.sbs-site .single-content ul { list-style: none; padding-left: 1.4em; }
.sbs-site .single-content ul > li { position: relative; margin-bottom: .35em; }
.sbs-site .single-content ul > li::before { content: ''; position: absolute; left: -1.15em; top: .62em; width: 7px; height: 7px; background: var(--sbs-brown); }
.sbs-site .single-content > ul:first-of-type { border-top: 1px solid var(--sbs-line); border-bottom: 1px solid var(--sbs-line); padding-top: 1em; padding-bottom: 1em; }

/* Comparison tables */
.sbs-site .single-content .wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.sbs-site .single-content table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; min-width: 520px; }
.sbs-site .single-content table th { background: var(--sbs-brown); color: #fff; font-family: var(--sbs-head); font-weight: 500; text-align: left; padding: 10px 12px; border: 1px solid var(--sbs-brown); }
.sbs-site .single-content table td { padding: 9px 12px; border: 1px solid var(--sbs-line); }
.sbs-site .single-content table tbody tr:nth-child(odd) td { background: #FBF6EC; }
.sbs-site .single-content .wp-block-table.is-style-stripes { border-bottom: 0; }

/* Related posts: plain titles, no highlight */
.sbs-site.single-post .entry-related .entry-title { display: block; background: none; padding: 0; font-size: 20px; line-height: 1.25; }
.sbs-site .entry-related .entry-title a { color: var(--sbs-brown); }
.sbs-site .entry-related .loop-entry { border-right: 0; padding-right: 0; }
.sbs-site .entry-related { background: var(--sbs-grey); }
.sbs-site .entry-related-title { text-align: center; color: var(--sbs-brown); }

/* ---------- Category / archive pages ---------- */
.sbs-site .post-archive-hero-section .entry-header, .sbs-site .archive-hero-section .entry-header { text-align: center; }
.sbs-site .archive-description { max-width: 760px; margin: 1em auto 0; font-size: 17px; color: var(--sbs-text); }
.sbs-sublinks { margin-top: 1em; line-height: 1.8; }
.sbs-sublinks a { color: var(--sbs-accent); }
.sbs-sublinks span { color: var(--sbs-muted); padding: 0 .2em; }
.sbs-site .content-wrap.grid-cols { row-gap: 2.4em; }
.sbs-site .loop-entry { border-right: 1px solid var(--sbs-line); padding-right: 1.2em; box-shadow: none; }
.sbs-site .loop-entry .entry-title { font-size: 21px; line-height: 1.2; font-weight: 500; }
.sbs-site .loop-entry .entry-title a { color: var(--sbs-brown); }
.sbs-site .loop-entry .entry-title a:hover { color: var(--sbs-accent); }
.sbs-site .loop-entry .entry-summary p { font-size: 14px; line-height: 1.65; color: #333; }
.sbs-site .loop-entry .post-thumbnail-inner { aspect-ratio: 340 / 225; }

/* ---------- Footer ---------- */
.sbs-site .site-footer { text-align: center; }
.sbs-site .site-middle-footer-inner-wrap { padding-top: 36px; padding-bottom: 8px; }
.sbs-site .site-footer .footer-social-wrap .footer-social-inner-wrap { justify-content: center; }
.sbs-site .site-footer .footer-navigation .footer-menu-container > ul { justify-content: center; flex-wrap: wrap; }
.sbs-site .site-footer .footer-navigation .footer-menu-container > ul > li > a { font-family: var(--sbs-head); text-transform: uppercase; letter-spacing: .04em; padding: .3em .9em; }
.sbs-site .site-footer .footer-navigation .footer-menu-container > ul > li + li { border-left: 1px solid rgba(233,188,85,.6); }
.sbs-site .site-footer .site-bottom-footer-inner-wrap { padding-bottom: 34px; }
.sbs-site .site-footer .footer-html { margin-top: 1.2em; }
.sbs-site .site-footer .footer-html-inner { justify-content: center; text-align: center; }
.sbs-site .site-footer .footer-html-inner p { margin: 0; }
.sbs-site .site-footer .site-footer-section { justify-content: center; align-items: center; flex-direction: column; }
.sbs-site .site-footer .site-footer-section > * { margin-left: 0 !important; margin-right: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sbs-hero { height: 470px; }
	.sbs-site .sbs-hero .sbs-slide__title { font-size: 48px; }
	.sbs-track { grid-auto-columns: 50%; }
}
@media (max-width: 767px) {
	.sbs-wrap { padding: 0 16px; }
	.sbs-hero { height: 430px; }
	.sbs-slide__inner { padding: 0 52px; }
	.sbs-site .sbs-hero .sbs-slide__title { font-size: 34px; }
	.sbs-site .sbs-hero .sbs-slide__text { font-size: 16px; }
	.sbs-site .sbs-hero button.sbs-arrow { width: 32px; height: 32px; }
	.sbs-hero .sbs-arrow--prev { left: 10px; }
	.sbs-hero .sbs-arrow--next { right: 10px; }
	.sbs-section { padding: 40px 0 44px; }
	.sbs-site .sbs-section .sbs-section__title { font-size: 30px; margin-bottom: 22px; }
	.sbs-carousel { padding: 0; }
	.sbs-site .sbs-carousel button.sbs-arrow { display: none; }
	.sbs-track { grid-auto-columns: 82%; }
	.sbs-site.single-post .entry-title, .sbs-site.page:not(.home) .entry-title, .sbs-site .archive-title { font-size: 28px; }
	.sbs-site.single-post .entry-header .title-entry-excerpt, .sbs-site.single-post .entry-header .entry-excerpt { font-size: 18px; }
	.sbs-site .loop-entry { border-right: 0; padding-right: 0; }
	.sbs-site .single-content h2, .sbs-site .entry-content h2 { font-size: 26px; }
	.sbs-site .site-footer .footer-navigation .footer-menu-container > ul > li + li { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sbs-slide, .sbs-card__img img { transition: none; }
	.sbs-track { scroll-behavior: auto; }
}

/* Tighter category / page title area */
.sbs-site .entry-hero .entry-header { min-height: 0 !important; padding-top: 1.6em; padding-bottom: 1.2em; }
.sbs-site .entry-hero-container-inner { background: #fff; }
