/* BSW single post layout (2026-10-19). Logo palette: navy #0B2E5E, blue #1565C0, cyan #29B6F6. */

.bsws { --navy: #0B2E5E; --blue: #1565C0; --cyan: #29B6F6; --tint: #EAF6FD; --radius: 16px; background: var(--color-bg, #FDFBF7); }
.bsws a { text-decoration: none; }

/* Reading progress */
.bsws-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 4px; pointer-events: none; }
.bsws-progress span { display: block; height: 100%; background: linear-gradient(90deg, #0B2E5E, #29B6F6); transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }

/* Header band */
.bsws-hero { position: relative; overflow: hidden; padding: 2.4rem 0 5.5rem; color: #fff; background: radial-gradient(900px 400px at 90% -20%, rgba(41, 182, 246, .5), transparent 60%), linear-gradient(120deg, #0B2E5E 0%, #12407F 50%, #1565C0 100%); }
.bsws--review .bsws-hero { padding-bottom: 3rem; }
.bsws-hero__glow { position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(41, 182, 246, .35), transparent 65%); pointer-events: none; }
.bsws-hero__inner { position: relative; max-width: 1180px; }
.bsws-crumbs { margin: 0 0 1rem; font-size: .85rem; }
.bsws-crumbs, .bsws-crumbs a, .bsws-crumbs span, .bsws-crumbs li { color: #BFDBFE !important; }
.bsws-crumbs a:hover { color: #fff !important; }
.bsws-kicker { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .9rem; padding: .32rem .8rem; border-radius: 999px; background: rgba(41, 182, 246, .22); border: 1px solid rgba(125, 211, 252, .5); color: #E0F2FE; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bsws-kicker span { font-weight: 600; text-transform: none; letter-spacing: 0; color: #BAE6FD; }
.bsws-kicker:hover { background: rgba(41, 182, 246, .35); color: #fff; }
.bsws-hero__title { max-width: 900px; margin: 0 0 .9rem; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.14; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.bsws-hero__lead { max-width: 760px; margin: 0 0 1.4rem; font-size: 1.1rem; line-height: 1.55; color: #D6E6F7; }
.bsws-byline { display: flex; align-items: center; gap: .8rem; }
.bsws-byline__avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(41, 182, 246, .6); object-fit: cover; }
.bsws-byline__text { display: flex; flex-direction: column; gap: .15rem; }
.bsws-byline__by { font-weight: 700; color: #fff; }
.bsws-byline__by a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.bsws-byline__meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .86rem; color: #BFDBFE; }
.bsws-byline__meta .bi { margin-right: .2rem; }

/* Two-column layout */
.bsws-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; max-width: 1180px; align-items: start; }
.bsws-article { min-width: 0; }
.bsws-side { min-width: 0; padding-top: 1.5rem; }
.bsws-side__sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1rem; }

/* Featured image overlaps the header band (info posts) */
.bsws-content > .bsw-featured:first-child { margin: -4rem 0 2rem; }
.bsws-content .bsw-featured img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(11, 46, 94, .25); }
.bsws-content .bsw-featured__caption { margin-top: .6rem; font-size: .82rem; color: var(--color-text-muted); text-align: left; }
.bsws-content { padding-top: 1.5rem; }
.bsws-content > .bsw-featured:first-child { position: relative; z-index: 2; }

/* Article typography in logo colours */
.bsws-content { font-size: 1.06rem; line-height: 1.75; color: var(--color-text); }
.bsws-content h2 { position: relative; margin: 2.4rem 0 1rem; padding: 0 0 .5rem; border: 0 !important; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; color: #0B2E5E; letter-spacing: -.01em; scroll-margin-top: 100px; }
.bsws-content h2::before { display: none !important; }
.bsws-content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #0B2E5E, #29B6F6); }
.bsws-content h3 { margin: 1.8rem 0 .6rem; font-size: 1.22rem; font-weight: 800; color: #12407F; scroll-margin-top: 100px; }
.bsws-content a:not(.acms-btn):not([class*="acms-"]) { color: #1565C0; text-decoration: underline; text-decoration-color: rgba(41, 182, 246, .55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bsws-content a:not(.acms-btn):not([class*="acms-"]):hover { color: #0B2E5E; text-decoration-color: #29B6F6; }
.bsws-content > ul:not([class]) { list-style: none; padding-left: 0; }
.bsws-content > ul:not([class]) > li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.bsws-content > ul:not([class]) > li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #E0F2FE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231565C0' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5.3-5.3L12.8 4.8z'/%3E%3C/svg%3E") center / 80% no-repeat; }
.bsws-content ol:not([class]) { padding-left: 1.4rem; }
.bsws-content ol:not([class]) > li::marker { color: #1565C0; font-weight: 800; }
.bsws-content blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 0; border-left: 4px solid #29B6F6; border-radius: 0 12px 12px 0; background: var(--tint); color: #0B2E5E; }

/* Tables: navy-to-cyan header */
.bsws-content .wp-block-table table, .bsws-content table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 6px 18px rgba(11, 46, 94, .08); }
.bsws-content table thead th, .bsws-content table th { background: linear-gradient(90deg, #0B2E5E, #1565C0) !important; color: #fff !important; border-color: rgba(255, 255, 255, .15) !important; }
.bsws-content table tbody tr:nth-child(even) td { background: #F3F9FE; }
.bsws-content table td:first-child { color: #0B2E5E; font-weight: 700; background: #EAF6FD !important; }

/* In-content contents box: logo colours; hidden on desktop when the sidebar list exists */
.bsws-content .toc-expandable__icon { background: linear-gradient(135deg, #0B2E5E, #29B6F6) !important; color: #fff !important; }
.bsws-content .toc-expandable__card { border-color: #CFE8F8 !important; }
@media (min-width: 1101px) {
    .bsws-has-toc .bsws-content .toc-expandable { display: none; }
}

/* Sidebar: contents list */
.bsws-toc { padding: 1.1rem 1.1rem .9rem; border-radius: var(--radius); background: var(--color-surface, #fff); box-shadow: 0 8px 22px rgba(11, 46, 94, .08); border-top: 4px solid #29B6F6; }
.bsws-toc[hidden] { display: none; }
.bsws-toc__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0B2E5E; }
.bsws-toc__list { counter-reset: t; list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.bsws-toc__list li { counter-increment: t; }
.bsws-toc__list a { position: relative; display: block; padding: .45rem .5rem .45rem 2rem; border-radius: 8px; font-size: .9rem; line-height: 1.35; color: var(--color-text-secondary, #475569); transition: background .15s, color .15s; }
.bsws-toc__list a::before { content: counter(t); position: absolute; left: .45rem; top: .45rem; display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #E0F2FE; color: #1565C0; font-size: .7rem; font-weight: 800; }
.bsws-toc__list a:hover { background: #F3F9FE; color: #0B2E5E; }
.bsws-toc__list a.is-active { background: #E6F4FD; color: #0B2E5E; font-weight: 700; }
.bsws-toc__list a.is-active::before { background: linear-gradient(135deg, #0B2E5E, #29B6F6); color: #fff; }

/* Sidebar: product card on single reviews (no price shown) */
.bsws-buy { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem; border-radius: var(--radius); background: var(--color-surface, #fff); box-shadow: 0 8px 22px rgba(11, 46, 94, .1); text-align: center; }
.bsws-buy__img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fff 0%, #EAF5FD 80%); }
.bsws-buy__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bsws-buy__name { margin: 0; font-weight: 800; color: #0B2E5E; line-height: 1.3; }
.bsws-buy__btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; padding: .75rem 1rem; border-radius: 999px; background: linear-gradient(135deg, #FFB800, #FF9900); color: #111 !important; font-weight: 800; box-shadow: 0 8px 18px rgba(255, 153, 0, .3); transition: transform .15s, filter .15s; }
.bsws-buy__btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.bsws-buy__note { margin: 0; font-size: .72rem; color: var(--color-text-muted); }

/* Share row */
.bsws-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.5rem 0 1.5rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--tint); }
.bsws-share__label { margin-right: .4rem; font-weight: 800; color: #0B2E5E; }
.bsws-share__btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border: 1.5px solid #BFDDF5; border-radius: 999px; background: #fff; color: #0B2E5E; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bsws-share__btn:hover { background: #0B2E5E; border-color: #0B2E5E; color: #fff; }

/* Author card */
.bsws-author { position: relative; display: flex; gap: 1.3rem; align-items: flex-start; margin: 0 0 2rem; padding: 1.5rem 1.5rem 1.5rem 1.8rem; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #EAF6FD 0%, #EEF1FA 100%); }
.bsws-author::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #0B2E5E, #29B6F6); }
.bsws-author__avatar { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px #29B6F6; }
.bsws-author__kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #1565C0; }
.bsws-author__name { display: flex; align-items: center; gap: .4rem; margin: .15rem 0 .5rem; font-size: 1.35rem; font-weight: 800; }
.bsws-author__name a { color: #0B2E5E; }
.bsws-author__name .bi { color: #29B6F6; font-size: 1.05rem; }
.bsws-author__bio { margin: 0 0 .7rem; color: var(--color-text-secondary); font-size: .97rem; }
.bsws-author__how { display: flex; gap: .5rem; margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .7); font-size: .88rem; color: #334155; }
.bsws-author__how .bi { color: #1565C0; }
.bsws-author__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #1565C0; }

/* Related cards (homepage style) */
.bsws-related { margin-top: 1rem; padding: 3rem 0; background: linear-gradient(180deg, #EAF6FD 0%, #F5FAFF 100%); }
.bsws-related__title { position: relative; display: flex; align-items: center; gap: .65rem; margin: 0 0 1.5rem; padding-bottom: .45rem; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 800; color: #0B2E5E; }
.bsws-related__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 80px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, #0B2E5E, #29B6F6); }
.bsws-related__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: linear-gradient(135deg, #0B2E5E, #29B6F6); color: #fff; font-size: 1.05rem; }
.bsws-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.bsws-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--color-surface, #fff); box-shadow: 0 6px 18px rgba(11, 46, 94, .10); transition: transform .18s, box-shadow .18s; }
.bsws-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 46, 94, .16); }
.bsws-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.bsws-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bsws-card:hover .bsws-card__img img { transform: scale(1.05); }
.bsws-card--product .bsws-card__img { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 45%, #fff 0%, #EAF5FD 78%); }
.bsws-card--product .bsws-card__img img { object-fit: contain; padding: .7rem; mix-blend-mode: multiply; }
.bsws-card__body { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: .95rem 1.05rem 1.1rem; border-top: 3px solid #29B6F6; }
.bsws-card__cat { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1565C0; }
.bsws-card__title { font-weight: 700; line-height: 1.35; color: var(--color-text); }
.bsws-card:hover .bsws-card__title { color: #1565C0; }
.bsws-card__go { margin-top: auto; font-size: .85rem; font-weight: 700; color: #1565C0; }

/* Comments box in logo colours */
.bsws .comments-section, .bsws #comments { margin-top: 0; }

/* Dark mode */
[data-theme="dark"] .bsws-content h2, [data-theme="dark"] .bsws-content h3, [data-theme="dark"] .bsws-related__title, [data-theme="dark"] .bsws-author__name a, [data-theme="dark"] .bsws-share__label, [data-theme="dark"] .bsws-buy__name, [data-theme="dark"] .bsws-toc__title { color: var(--color-text); }
[data-theme="dark"] .bsws-content a:not(.acms-btn):not([class*="acms-"]) { color: #7DD3FC; }
[data-theme="dark"] .bsws-content table td:first-child { background: rgba(41, 182, 246, .1) !important; color: var(--color-text); }
[data-theme="dark"] .bsws-content table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .bsws-share, [data-theme="dark"] .bsws-author, [data-theme="dark"] .bsws-related { background: var(--color-surface); }
[data-theme="dark"] .bsws-related { background: var(--color-bg-alt, #111827); }
[data-theme="dark"] .bsws-share__btn { background: transparent; color: var(--color-text); border-color: var(--color-border); }
[data-theme="dark"] .bsws-author__how { background: rgba(0, 0, 0, .2); color: var(--color-text-secondary); }
[data-theme="dark"] .bsws-toc__list a.is-active, [data-theme="dark"] .bsws-toc__list a:hover { background: rgba(41, 182, 246, .12); color: var(--color-text); }
[data-theme="dark"] .bsws-content blockquote { background: rgba(41, 182, 246, .1); color: var(--color-text); }

/* Tablet and phone */
@media (max-width: 1100px) {
    .bsws-layout { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
    .bsws-side { order: -1; padding-top: 0; }
    .bsws-side__sticky { position: static; }
    .bsws-toc { display: none; }
    .bsws-buy { flex-direction: row; text-align: left; margin-top: 1.2rem; }
    .bsws-buy__img { width: 110px; flex-shrink: 0; }
    .bsws-buy__note { display: none; }
    .bsws-buy__btn { width: auto; }
    .bsws-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bsws-hero { padding: 1.6rem 0 4.5rem; }
    .bsws--review .bsws-hero { padding-bottom: 2rem; }
    .bsws-hero__lead { font-size: 1rem; }
    .bsws-content { font-size: 1.02rem; }
    .bsws-content > .bsw-featured:first-child { margin-top: -3.4rem; }
    .bsws-buy { flex-wrap: wrap; }
    .bsws-buy__img { width: 90px; }
    .bsws-buy__name { flex: 1; }
    .bsws-buy__btn { width: 100%; }
    .bsws-author { flex-direction: column; padding: 1.3rem 1.2rem 1.3rem 1.5rem; }
    .bsws-related__grid { grid-template-columns: 1fr; }
    .bsws-share__label { width: 100%; }
}

/* ---- Fixes after first preview ---- */
.bsws-crumbs, .bsws-crumbs ol, .bsws-crumbs ul { justify-content: flex-start !important; text-align: left !important; }
.bsws-content h2 { padding-left: 0 !important; margin-left: 0 !important; }
.bsws-content h2 > span:empty, .bsws-content h2 .heading-bar { display: none !important; }
.bsws-content > .bsw-featured { margin: -4.5rem 0 2rem !important; position: relative; z-index: 2; }
/* No empty "be the first" state (owner rule: no young-site signals) */
.bsws .comment-list--empty { display: none !important; }
.bsws .comment-form__compact-btn { background: linear-gradient(135deg, #0B2E5E, #1565C0) !important; border-color: transparent !important; color: #fff !important; }
.bsws .comment-form__compact-icon, .bsws .comment-form__compact .bi-chat-dots { color: #1565C0 !important; }
@media (max-width: 640px) {
    .bsws-content > .bsw-featured { margin-top: -3.6rem !important; }
}
/* Review headings: same underline style as other posts */
.bsws .post-content h2.bsw-h2 { padding: 0 0 .5rem !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #0B2E5E; }
/* Specs table keeps a lighter cyan header (owner 2026-09-30), now in the logo cyan */
.bsws .post-content .wp-block-table.bsw-specs thead th { background: linear-gradient(90deg, #1565C0, #29B6F6) !important; }
.bsws .post-content .wp-block-table.bsw-specs tbody td:first-child { background: #EAF6FD !important; color: #0B2E5E !important; }
[data-theme="dark"] .bsws .post-content h2.bsw-h2 { color: var(--color-text); }
/* Theme contents box links: no article underline */
.bsws-content .toc-expandable a { text-decoration: none !important; color: inherit; }
/* Comparison rows inside the specs table: logo colours */
.bsws .post-content .wp-block-table.bsw-specs td ul li { border-color: #CFE8F8 !important; border-top-color: #29B6F6 !important; }
.bsws .post-content .wp-block-table.bsw-specs td ul li strong:first-child { background: #0B2E5E !important; }
/* Phone and tablet: the product box in the article is enough, skip the duplicate card */
@media (max-width: 1100px) { .bsws-side { display: none; } }

/* Posts without a top photo: shorter header band */
.bsws--nophoto .bsws-hero { padding-bottom: 2.6rem; }
@media (max-width: 640px) { .bsws--nophoto .bsws-hero { padding-bottom: 1.8rem; } }

/* Calculators (owner 2026-10-19: same layout for calculator posts). The
   calculator widget keeps its own look: undo article heading styles inside it. */
.bsws-content .bsw-calc-header h3 { margin: 0; padding: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; scroll-margin-top: 0; }
.bsws-content .bsw-calc-header h3::after, .bsws-content .bsw-calc-header h3::before { display: none; }
.bsws-content table { width: 100%; }
