/*
Theme Name: Burbro
Theme URI: https://burbro.com/
Author: Burbro
Description: Lightweight block theme for Burbro buying guides.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: burbro
*/

/* Small additions that theme.json can't express. */

.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 16px; background: #fff; color: #0F172A; border-radius: 8px; }

:where(a, button, input, summary):focus-visible { outline: 3px solid #3380FF; outline-offset: 2px; border-radius: 4px; }

/* Header */
.bb-header { position: relative; z-index: 20; }
.bb-header .wp-block-navigation a { text-decoration: none; }
.bb-header .wp-block-navigation a:hover { color: #1F66E0; }
.bb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0F172A; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.bb-logo:hover { color: #0F172A; }
.bb-logo svg { flex: none; }
.bb-header .wp-block-search__input { min-height: 44px; border-radius: 10px; border: 1px solid #CBD5E1; background: #F8FAFC; padding: 0 14px; min-width: 200px; }
.bb-header .wp-block-search__button { min-height: 44px; border-radius: 10px; }

/* Cards */
.bb-card { height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.bb-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.bb-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.bb-card .wp-block-post-title a { text-decoration: none; color: #0F172A; }
.bb-card .wp-block-post-title a:hover { color: #1F66E0; }
.bb-card .wp-block-post-terms a { text-decoration: none; }
.bb-topic { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; }
.bb-topic:hover { border-color: #3380FF !important; }
.bb-topic strong { font-family: var(--wp--preset--font-family--display); font-size: 22px; color: #0F172A; }
.bb-topic span { color: #475569; font-size: 15px; line-height: 1.5; }
.bb-topic em { margin-top: auto; font-style: normal; font-weight: 600; color: #1F66E0; font-size: 14px; }
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > * { width: 100%; }

/* Article body */
.bb-article .wp-block-post-content > * + * { margin-block-start: 1.25em; }
.bb-article .wp-block-post-content h2 { margin-block-start: 2em; padding-top: 1.25em; border-top: 1px solid #E2E8F0; }
.bb-article .wp-block-post-content h3 { margin-block-start: 1.6em; }
.bb-article .wp-block-post-content img { border-radius: 14px; height: auto; }
.bb-article .wp-block-post-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bb-article .wp-block-post-content th, .bb-article .wp-block-post-content td { border: 1px solid #E2E8F0; padding: 10px 12px; text-align: left; vertical-align: top; }
.bb-article .wp-block-post-content th { background: #F4F7FD; }
.bb-article .wp-block-post-content .wp-block-yoast-seo-table-of-contents { background: #F4F7FD; border-radius: 14px; padding: 18px 22px; }
.bb-article .wp-block-post-content .wp-block-yoast-seo-table-of-contents h2,
.bb-article .wp-block-post-content .wp-block-yoast-seo-table-of-contents h3 { border: 0; padding: 0; margin: 0 0 8px; font-size: 18px; }
.bb-article .wp-block-post-content .wp-block-yoast-seo-table-of-contents ul { margin: 0; padding-left: 1.1em; }
.bb-article .wp-block-post-content a[href*="amazon."] { font-weight: 600; }
.bb-article .wp-block-post-content .wp-block-button__link[href*="amazon."] { color: #fff; }
.bb-breadcrumbs { font-size: 14px; color: #475569; }
.bb-breadcrumbs a { color: #475569; text-decoration: none; }
.bb-breadcrumbs a:hover { color: #1F66E0; }

/* Lasso boxes: keep the plugin's layout, match our corners */
.lasso-container .lasso-display { border-radius: 16px !important; }

@media (max-width: 781px) {
  .bb-header .wp-block-search__input { min-width: 0; width: 100%; }
}

.bb-card { overflow: hidden; }
.bb-card .wp-block-post-featured-image { margin: 0; }
.bb-hero-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; }
.bb-updated { gap: 6px !important; }

/* Override leftover JNews plugin CSS (jeg_dynamic_css) until those plugins are off. */
html body, html body input, html body textarea, html body select, html body button { font-family: var(--wp--preset--font-family--body); }
html body .wp-block-search__input { font-size: 15px; }
