/*
Theme Name: Babylon
Theme URI: https://babylonchiropractor.com/
Author: BeOnTop
Author URI: https://beontop.ae/
Description: Custom news-portal theme for babylonchiropractor.com. DevDiscourse-style layout — clean white, single bright-orange accent, DM Sans throughout. Multi-section homepage with hero, perspectives, and top reads grids.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: babylon
Tags: news, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================================
 * Babylon theme — news-portal aesthetic.
 * Palette: white-dominant, single bright-orange accent. Grid-based.
 * Type: DM Sans throughout + DM Mono for technical labels.
 * Signature: small orange vertical bar (3px) before section titles.
 * ============================================================================ */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
    --bb-bg:         #ffffff;
    --bb-bg-soft:    #f3f3f3;
    --bb-bg-card:    #ffffff;
    --bb-text:       #222222;
    --bb-text-2:     #444444;
    --bb-text-muted: #8a8a8a;
    --bb-accent:     #f37020;
    --bb-accent-dk:  #d65a0e;
    --bb-navy:       #1a2540;
    --bb-footer:     #4a4a4a;
    --bb-footer-2:   #3d3d3d;
    --bb-rule:       #e8e8e8;
    --bb-rule-2:     #d0d0d0;

    --bb-font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    --bb-font-mono: 'Montserrat', system-ui, -apple-system, sans-serif;

    --bb-container: 1200px;
    --bb-shadow-card: 0 1px 2px rgba(0,0,0,.04);
}

/* ── Reset / foundation ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bb-bg); }
body {
    margin: 0;
    background: var(--bb-bg);
    color: var(--bb-text);
    font-family: var(--bb-font-sans);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
    color: var(--bb-text);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--bb-accent); }

p, li, dd { margin: 0 0 1em; }
.bb-topbar li, .bb-mainnav li, .bb-subnav li, .bb-footer li, .bb-footer-links * { margin: 0; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--bb-font-sans);
    color: var(--bb-text);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.005em;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.625rem); }
h3 { font-size: 1.15rem; }

/* ── Layout: container ──────────────────────────────────────────────────── */
.bb-container {
    max-width: var(--bb-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header: top bar + main bar with logo + nav ─────────────────────────── */
.bb-topbar {
    background: var(--bb-bg-soft);
    border-bottom: 1px solid var(--bb-rule);
    font-size: 13px;
    color: var(--bb-text-2);
}
.bb-topbar .bb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}
.bb-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.bb-topbar li { display: flex; align-items: center; }
.bb-topbar li a { color: var(--bb-text-2); font-weight: 400; display: inline-flex; align-items: center; line-height: 1; }
.bb-topbar li a:hover { color: var(--bb-accent); }
.bb-topbar .bb-account {
    color: var(--bb-text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.bb-topbar .bb-account svg { display: block; }

.bb-mainbar { background: var(--bb-bg); border-bottom: 1px solid var(--bb-rule); }
.bb-mainbar .bb-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    min-height: 72px;
    padding-top: 0;
    padding-bottom: 0;
}
.bb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    text-decoration: none;
}
.bb-brand-mark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.bb-brand-mark svg { display: block; }
.bb-brand-title {
    font-family: var(--bb-font-sans);
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--bb-text);
    line-height: 1;
}

.bb-mainnav { display: flex; align-items: stretch; }
.bb-mainnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 72px;
}
.bb-mainnav li {
    display: flex;
    align-items: stretch;
    min-height: 72px;
}
.bb-mainnav li a {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    min-height: 72px;
    font-family: var(--bb-font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bb-text);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}
.bb-mainnav li a:hover,
.bb-mainnav li.current-menu-item a { color: var(--bb-accent); border-bottom-color: var(--bb-accent); }
.bb-mainnav li.bb-home a {
    color: var(--bb-accent);
    border-bottom-color: var(--bb-accent);
}

.bb-search-btn {
    align-self: center;
    background: none;
    border: 0;
    color: var(--bb-text);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bb-search-btn:hover { background: var(--bb-bg-soft); color: var(--bb-accent); }

/* Header search form — pill input + inline submit icon, fills right side */
.bb-header-search {
    align-self: center;
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 420px;
    margin-left: auto;
}
.bb-header-search input[type="search"] {
    flex: 1;
    width: 100%;
    height: 42px;
    border: 1px solid var(--bb-rule-2);
    border-radius: 999px;
    padding: 0 46px 0 20px;
    font-family: var(--bb-font-sans);
    font-size: 0.92rem;
    background: var(--bb-bg);
    color: var(--bb-text);
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.bb-header-search input[type="search"]::placeholder {
    color: var(--bb-text-muted);
}
.bb-header-search input[type="search"]:focus {
    outline: 0;
    border-color: var(--bb-accent);
    box-shadow: 0 0 0 3px rgba(243,112,32,0.15);
}
.bb-header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 34px;
    background: none;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: var(--bb-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.bb-header-search button:hover {
    background: var(--bb-accent);
    color: #fff;
}
.bb-header-search button svg { display: block; }
@media (max-width: 720px) {
    .bb-header-search { max-width: 100%; flex: 1 1 100%; order: 3; margin-top: 8px; }
}

/* Sub-nav: dark gray band with category links */
.bb-subnav { background: var(--bb-footer); }
.bb-subnav .bb-container {
    display: flex;
    align-items: stretch;
    min-height: 54px;
    padding-top: 0;
    padding-bottom: 0;
}
.bb-subnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
}
.bb-subnav li {
    display: flex;
    align-items: stretch;
    min-height: 54px;
}
.bb-subnav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    min-height: 54px;
    color: #ffffff;
    font-family: var(--bb-font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
}
.bb-subnav li a:hover,
.bb-subnav li.current-menu-item a { color: var(--bb-accent); }

/* ── Section title: orange vertical bar + uppercase navy title + hairline ─ */
.bb-section { padding: 40px 0; }
.bb-section-soft { background: var(--bb-bg-soft); padding: 56px 0; }
.bb-section-title {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 28px;
    padding: 0;
}
.bb-section-title h2 {
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--bb-accent);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bb-navy);
    line-height: 1.25;
    flex-shrink: 0;
}
.bb-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bb-rule-2);
}
.bb-section-title.bb-center { justify-content: center; }
.bb-section-title.bb-center::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bb-rule-2);
    max-width: 360px;
}
.bb-section-title.bb-center::after { max-width: 360px; }
.bb-section-title.bb-center h2 { border: 0; padding: 0; color: var(--bb-navy); }

/* ── Hero block (Decoding the News): big card left + list right ─────────── */
.bb-hero-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
}
.bb-hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}
.bb-hero-main > a { display: block; color: inherit; }
.bb-hero-main img { width: 100%; height: 380px; object-fit: cover; display: block; }
.bb-hero-main .bb-card-cap {
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 18px 22px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.bb-hero-main .bb-card-cap h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.bb-hero-list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 0; }
.bb-hero-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bb-rule);
    align-items: center;
}
.bb-hero-item:first-child { padding-top: 0; }
.bb-hero-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bb-hero-item > a { display: block; overflow: hidden; border-radius: 8px; }
.bb-hero-item > a img { width: 100px; height: 70px; object-fit: cover; display: block; }
.bb-hero-item .bb-card-meta { margin-bottom: 4px; }
.bb-hero-item h4 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
    color: var(--bb-text);
}
.bb-hero-item h4 a { color: var(--bb-text); }
.bb-hero-item h4 a:hover { color: var(--bb-accent); }

/* ── Category pill: solid orange caps, devdiscourse-style ───────────────── */
.bb-tag {
    display: inline-block;
    background: var(--bb-accent);
    color: #ffffff !important;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: var(--bb-font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background .15s ease;
    line-height: 1.4;
}
.bb-tag:hover { background: var(--bb-accent-dk); color: #fff !important; }

/* ── Perspectives section: 4-column layout on light gray ────────────────── */
.bb-perspectives-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1.3fr 1.1fr;
    gap: 24px;
    align-items: start;
}
.bb-perspectives-col-text { display: flex; flex-direction: column; gap: 14px; }
.bb-perspectives-col-text article {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bb-rule);
}
.bb-perspectives-col-text article:last-child { border-bottom: 0; padding-bottom: 0; }
.bb-perspectives-col-text .bb-persp-thumb { display: block; overflow: hidden; border-radius: 8px; }
.bb-perspectives-col-text .bb-persp-thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    display: block;
}
.bb-perspectives-col-text h4 {
    font-size: 0.92rem;
    line-height: 1.3;
    margin: 0;
    color: var(--bb-navy);
}
.bb-perspectives-col-text h4 a { color: var(--bb-navy); }
.bb-perspectives-col-text h4 a:hover { color: var(--bb-accent); }
.bb-perspectives-col-image article { display: flex; flex-direction: column; gap: 12px; }
.bb-perspectives-col-image article > a { display: block; overflow: hidden; border-radius: 12px; }
.bb-perspectives-col-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.bb-perspectives-col-image h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--bb-text);
    margin: 0;
}
.bb-perspectives-cta { text-align: center; margin-top: 32px; }

/* ── Devshots: 3-card carousel preview ──────────────────────────────────── */
.bb-devshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bb-devshot {
    position: relative;
    overflow: hidden;
}
.bb-devshot img { width: 100%; height: 200px; object-fit: cover; }
.bb-devshot .bb-card-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}
.bb-devshot .bb-card-cap h4 {
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
}
.bb-devshot .bb-card-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* ── Top reads: 3 equal featured cards ──────────────────────────────────── */
.bb-toprreads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.bb-topread-card { display: flex; flex-direction: column; }
.bb-topread-card > a { display: block; margin-bottom: 14px; overflow: hidden; border-radius: 12px; }
.bb-topread-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.bb-topread-card .bb-topread-body .bb-tag { margin-bottom: 10px; }
.bb-topread-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 8px 0 0;
    color: var(--bb-text);
}
.bb-topread-card h3 a { color: var(--bb-text); }
.bb-topread-card h3 a:hover { color: var(--bb-accent); }
.bb-toprreads-cta { text-align: right; margin-top: 32px; }

/* ── IQOS Official Shops: wide hero-style card with photo + details + map ─ */
.bb-iqos-shops {
    padding: 48px 0 56px;
    background: var(--bb-bg);
    border-bottom: 1px solid var(--bb-rule);
}
.bb-iqos-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr;
    gap: 0;
    background: var(--bb-bg);
    border: 1px solid var(--bb-rule);
    border-radius: 14px;
    overflow: hidden;
    min-height: 360px;
}
.bb-iqos-image {
    background-size: cover;
    background-position: center;
    background-color: var(--bb-bg-soft);
    min-height: 360px;
}
.bb-iqos-body {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
}
.bb-iqos-type {
    font-family: var(--bb-font-mono);
    font-size: 0.7rem;
    color: var(--bb-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    margin-bottom: 8px;
}
.bb-iqos-name {
    font-family: var(--bb-font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--bb-text);
    line-height: 1.2;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.bb-iqos-contact { margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--bb-rule); border-bottom: 1px solid var(--bb-rule); }
.bb-iqos-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 7px 0;
}
.bb-iqos-row + .bb-iqos-row { border-top: 1px dashed var(--bb-rule); }
.bb-iqos-row dt {
    font-family: var(--bb-font-mono);
    font-size: 0.65rem;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin: 0;
    padding-top: 2px;
}
.bb-iqos-row dd {
    margin: 0;
    color: var(--bb-text);
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}
.bb-iqos-row dd a { color: var(--bb-accent); }
.bb-iqos-row dd a:hover { color: var(--bb-accent-dk); }
.bb-iqos-cta {
    align-self: flex-start;
    margin-top: auto;
}
.bb-iqos-map {
    background: var(--bb-bg-soft);
    min-height: 360px;
    border-left: 1px solid var(--bb-rule);
}
.bb-iqos-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

@media (max-width: 980px) {
    .bb-iqos-card { grid-template-columns: 1fr 1fr; }
    .bb-iqos-map { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--bb-rule); min-height: 280px; }
    .bb-iqos-map iframe { min-height: 280px; }
}
@media (max-width: 720px) {
    .bb-iqos-card { grid-template-columns: 1fr; }
    .bb-iqos-image { min-height: 220px; }
    .bb-iqos-row { grid-template-columns: 80px 1fr; }
}

/* ── UAE Smoking Laws quick reference ──────────────────────────────────── */
.bb-laws-section { background: var(--bb-bg); }
.bb-laws-card {
    background: var(--bb-bg-soft);
    border: 1px solid var(--bb-rule);
    border-left: 4px solid var(--bb-accent);
    border-radius: 12px;
    padding: 32px 36px;
}
.bb-laws-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 24px;
    color: var(--bb-text);
    max-width: 75ch;
}
.bb-laws-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.bb-laws-list li {
    padding: 14px 0 14px 30px;
    border-top: 1px solid var(--bb-rule);
    position: relative;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--bb-text);
}
.bb-laws-list li:first-child { border-top: 0; padding-top: 0; }
.bb-laws-list li:last-child { padding-bottom: 0; }
.bb-laws-list li::before {
    content: "›";
    position: absolute;
    left: 10px;
    top: 14px;
    color: var(--bb-accent);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}
.bb-laws-list li:first-child::before { top: 0; }
.bb-laws-list li strong {
    color: var(--bb-navy);
    font-weight: 700;
    margin-right: 4px;
}
.bb-laws-source {
    font-size: 0.85rem;
    color: var(--bb-text-muted);
    margin: 0 0 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--bb-rule);
    line-height: 1.5;
}
.bb-laws-source a {
    color: var(--bb-accent);
    border-bottom: 1px solid currentColor;
}
.bb-laws-source a:hover { color: var(--bb-accent-dk); }
.bb-laws-cta { margin-top: 0; }

@media (max-width: 720px) {
    .bb-laws-card { padding: 24px 22px; }
    .bb-laws-list li { padding-left: 24px; }
    .bb-laws-list li::before { left: 6px; }
}

/* ── FAQ accordion with FAQPage schema ─────────────────────────────────── */
.bb-faq-section { background: var(--bb-bg); }
.bb-faq-list {
    border-top: 1px solid var(--bb-rule);
}
.bb-faq-item {
    border-bottom: 1px solid var(--bb-rule);
}
.bb-faq-item summary {
    padding: 20px 44px 20px 0;
    cursor: pointer;
    font-family: var(--bb-font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bb-navy);
    list-style: none;
    position: relative;
    transition: color .15s ease;
    line-height: 1.4;
}
.bb-faq-item summary::-webkit-details-marker { display: none; }
.bb-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--bb-accent);
    font-weight: 300;
    line-height: 1;
    transition: transform .2s ease;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bb-faq-item[open] summary::after { content: "−"; }
.bb-faq-item summary:hover { color: var(--bb-accent); }
.bb-faq-answer {
    padding: 0 0 24px;
    color: var(--bb-text-2);
    font-size: 0.96rem;
    line-height: 1.65;
    max-width: 80ch;
}

@media (max-width: 720px) {
    .bb-faq-item summary { font-size: 1rem; padding-right: 36px; }
}

/* ── Shisha Lounges section ─────────────────────────────────────────────── */
.bb-lounges {
    padding: 48px 0 56px;
    background: var(--bb-bg);
    border-bottom: 1px solid var(--bb-rule);
}
.bb-lounges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.bb-lounge-card {
    background: var(--bb-bg);
    border: 1px solid var(--bb-rule);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bb-lounge-card:hover {
    border-color: var(--bb-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -8px rgba(0,0,0,.12);
}

.bb-lounge-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--bb-bg-soft);
    position: relative;
}

.bb-lounge-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bb-lounge-name {
    font-family: var(--bb-font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bb-text);
    line-height: 1.25;
}
.bb-lounge-desc {
    font-size: 0.88rem;
    color: var(--bb-text-2);
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.bb-lounge-contact {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--bb-rule);
}
.bb-lounge-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 6px 0;
}
.bb-lounge-row + .bb-lounge-row { border-top: 1px dashed var(--bb-rule); }
.bb-lounge-row dt {
    font-family: var(--bb-font-mono);
    font-size: 0.65rem;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin: 0;
    padding-top: 2px;
}
.bb-lounge-row dd {
    margin: 0;
    color: var(--bb-text);
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}
.bb-lounge-row dd a { color: var(--bb-accent); }
.bb-lounge-row dd a:hover { color: var(--bb-accent-dk); }

@media (max-width: 980px) {
    .bb-lounges-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bb-lounges-grid { grid-template-columns: 1fr; }
    .bb-lounge-row { grid-template-columns: 80px 1fr; }
}

/* ── Pill outline CTA (Explore / Browse) ────────────────────────────────── */
.bb-pill-outline {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--bb-accent);
    border-radius: 40px;
    color: var(--bb-accent) !important;
    background: transparent;
    font-family: var(--bb-font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background .15s ease, color .15s ease;
}
.bb-pill-outline:hover { background: var(--bb-accent); color: #fff !important; }

/* ── Meta line (date / time-to-read) ────────────────────────────────────── */
.bb-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bb-font-sans);
    font-size: 0.72rem;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin: 0;
}
.bb-card-meta .bb-meta-sep { color: var(--bb-rule-2); }

/* ── Archive / single content pages ─────────────────────────────────────── */
.bb-content { padding: 40px 0 60px; }
.bb-content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.bb-content-wrap.bb-no-sidebar { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }

article.bb-post {
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--bb-rule);
}
article.bb-post:last-child { border-bottom: 0; }
article.bb-post .bb-post-thumb { display: block; overflow: hidden; border-radius: 14px; margin-bottom: 16px; }
article.bb-post .bb-post-thumb img { width: 100%; height: 320px; object-fit: cover; display: block; }
article.bb-post h2 { margin: 8px 0 12px; font-size: 1.5rem; }
article.bb-post h2 a { color: var(--bb-text); }
article.bb-post h2 a:hover { color: var(--bb-accent); }
article.bb-post .bb-excerpt { color: var(--bb-text-2); font-size: 1rem; line-height: 1.65; margin: 12px 0; }
article.bb-post .bb-read-more {
    display: inline-block;
    color: var(--bb-accent);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
    transition: color .15s ease;
}
article.bb-post .bb-read-more::after { content: " →"; margin-left: 4px; transition: margin-left .15s ease; }
article.bb-post .bb-read-more:hover { color: var(--bb-accent-dk); }
article.bb-post .bb-read-more:hover::after { margin-left: 10px; }

/* Single post layout */
.bb-single-header { margin-bottom: 24px; }
.bb-single-header h1 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); line-height: 1.2; margin: 12px 0 14px; }
.bb-single-thumb { overflow: hidden; border-radius: 14px; margin: 0 0 24px; }
.bb-single-thumb img { width: 100%; height: auto; display: block; }
.bb-entry { font-size: 1.0625rem; line-height: 1.7; color: var(--bb-text); }
.bb-entry p { margin-bottom: 1.1em; }
.bb-entry img { margin: 24px 0; border-radius: 12px; }
.bb-entry blockquote {
    border-left: 3px solid var(--bb-accent);
    padding: 6px 0 6px 20px;
    margin: 24px 0;
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--bb-text);
}
.bb-entry h2 { font-size: 1.6rem; margin-top: 1.4em; }
.bb-entry h3 { font-size: 1.25rem; margin-top: 1.2em; }
.bb-entry a { color: var(--bb-accent); border-bottom: 1px solid currentColor; }
.bb-entry a:hover { color: var(--bb-accent-dk); }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.bb-sidebar .widget {
    background: var(--bb-bg);
    margin-bottom: 36px;
}
.bb-sidebar .widget-title,
.bb-sidebar h2.widget-title {
    font-family: var(--bb-font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bb-text);
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 3px solid var(--bb-accent);
    line-height: 1.2;
}
.bb-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.bb-sidebar .widget ul li {
    border-bottom: 1px solid var(--bb-rule);
    padding: 12px 0;
    font-size: 0.95rem;
}
.bb-sidebar .widget ul li:last-child { border-bottom: 0; }
.bb-sidebar .widget ul li a { color: var(--bb-text); font-weight: 500; }
.bb-sidebar .widget ul li a:hover { color: var(--bb-accent); }

/* Saboxplugin / About Author */
.bb-sidebar .saboxplugin-wrap {
    border: 1px solid var(--bb-rule) !important;
    background: var(--bb-bg) !important;
    box-shadow: none !important;
}
.bb-sidebar .saboxplugin-wrap .saboxplugin-gravatar img {
    border-radius: 50% !important;
    border: 0 !important;
    width: 80px !important;
    height: 80px !important;
}
.bb-sidebar .saboxplugin-wrap .saboxplugin-authorname {
    font-family: var(--bb-font-sans) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.bb-sidebar .saboxplugin-wrap .saboxplugin-authorname a { color: var(--bb-text) !important; }
.bb-sidebar .saboxplugin-wrap .saboxplugin-desc p {
    font-family: var(--bb-font-sans) !important;
    color: var(--bb-text-2) !important;
    font-size: 0.9rem !important;
}
.bb-sidebar .saboxplugin-wrap .saboxplugin-socials {
    background: var(--bb-bg-soft) !important;
    border-top: 1px solid var(--bb-rule) !important;
}

/* Search form */
.bb-sidebar .search-form,
.bb-search-form { display: flex; gap: 0; }
.bb-sidebar .search-form input[type="search"],
.bb-search-form input[type="search"] {
    flex: 1;
    border: 1px solid var(--bb-rule-2);
    border-right: 0;
    border-radius: 2px 0 0 2px;
    padding: 9px 12px;
    font-family: var(--bb-font-sans);
    background: var(--bb-bg);
    color: var(--bb-text);
    font-size: 0.92rem;
}
.bb-sidebar .search-form input[type="search"]:focus,
.bb-search-form input[type="search"]:focus { outline: 0; border-color: var(--bb-accent); }
.bb-sidebar .search-form input[type="submit"],
.bb-search-form input[type="submit"],
.bb-sidebar .search-form button,
.bb-search-form button {
    background: var(--bb-accent);
    color: #ffffff;
    border: 0;
    border-radius: 0 2px 2px 0;
    padding: 9px 18px;
    font-family: var(--bb-font-sans);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background .15s ease;
}
.bb-sidebar .search-form input[type="submit"]:hover,
.bb-search-form button:hover { background: var(--bb-accent-dk); }

/* ── Trending news bar (was refined-magazine widget, now native) ────────── */
.bb-trending {
    background: var(--bb-bg);
    border-top: 1px solid var(--bb-rule);
    border-bottom: 1px solid var(--bb-rule);
    overflow: hidden;
    position: relative;
}
.bb-trending .bb-container { display: flex; align-items: center; gap: 0; padding-top: 0; padding-bottom: 0; }
.bb-trending-label {
    flex-shrink: 0;
    padding: 12px 18px 12px 12px;
    border-left: 3px solid var(--bb-accent);
    font-family: var(--bb-font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bb-text);
    background: var(--bb-bg);
    z-index: 2;
    position: relative;
}
.bb-trending-items {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.bb-trending-items .bb-trending-track {
    display: inline-flex;
    gap: 36px;
    animation: bb-marquee 60s linear infinite;
    padding-left: 24px;
}
.bb-trending-items a {
    color: var(--bb-text);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}
.bb-trending-items a:hover { color: var(--bb-accent); }
@keyframes bb-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.bb-footer { background: var(--bb-footer); color: #d8d8d8; padding: 56px 0 0; margin-top: 64px; }
.bb-footer a { color: #d8d8d8; }
.bb-footer a:hover { color: var(--bb-accent); }

.bb-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}
.bb-footer-cols .widget { background: transparent; padding: 0; margin: 0; }
.bb-footer-cols .widget-title,
.bb-footer-cols h2 {
    color: var(--bb-accent);
    font-family: var(--bb-font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.bb-footer-cols .widget ul { list-style: none; margin: 0; padding: 0; }
.bb-footer-cols .widget ul li { padding: 6px 0; font-size: 0.92rem; border: 0; }

.bb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    text-align: center;
    background: var(--bb-footer);
}
.bb-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.bb-footer-bottom .bb-brand-title { color: #fff; font-size: 1.5rem; }
.bb-footer-bottom .bb-footer-links {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #b0b0b0;
}
.bb-footer-bottom .bb-footer-links a { color: #b0b0b0; }
.bb-footer-bottom .bb-footer-links .bb-sep { color: #6e6e6e; }
.bb-footer-bottom .bb-copy { font-size: 0.82rem; color: #b0b0b0; }

/* Newsletter strip in footer top */
.bb-footer-newsletter {
    background: var(--bb-footer-2);
    padding: 18px 0;
    margin-bottom: 0;
}
.bb-footer-newsletter .bb-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 0;
    padding-bottom: 0;
}
.bb-footer-newsletter label {
    color: #f0f0f0;
    font-size: 0.92rem;
    font-weight: 500;
    margin-right: 8px;
}
.bb-footer-newsletter input[type="email"] {
    border: 0;
    background: #fff;
    color: var(--bb-text);
    padding: 10px 14px;
    font-family: var(--bb-font-sans);
    width: 260px;
    border-radius: 2px;
    font-size: 0.92rem;
}
.bb-footer-newsletter input[type="submit"] {
    background: var(--bb-accent);
    color: #fff;
    border: 0;
    padding: 10px 24px;
    border-radius: 2px;
    font-family: var(--bb-font-sans);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background .15s ease;
}
.bb-footer-newsletter input[type="submit"]:hover { background: var(--bb-accent-dk); }

/* ── Buttons (generic) ──────────────────────────────────────────────────── */
.bb-btn {
    background: var(--bb-accent);
    color: #ffffff !important;
    border: 0;
    border-radius: 2px;
    padding: 10px 22px;
    font-family: var(--bb-font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .15s ease;
}
.bb-btn:hover { background: var(--bb-accent-dk); }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.bb-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 40px 0;
}
.bb-pagination a,
.bb-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bb-bg-soft);
    color: var(--bb-text);
    border: 1px solid var(--bb-rule);
    border-radius: 2px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}
.bb-pagination a:hover,
.bb-pagination .page-numbers.current {
    background: var(--bb-accent);
    color: #fff;
    border-color: var(--bb-accent);
}

/* ── Comments ───────────────────────────────────────────────────────────── */
.bb-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--bb-rule); }
.bb-comments h3 { font-size: 1.2rem; margin: 0 0 24px; padding-left: 12px; border-left: 3px solid var(--bb-accent); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; }
.bb-comments ol { list-style: none; padding: 0; margin: 0; }
.bb-comments li.comment { padding: 18px 0; border-bottom: 1px solid var(--bb-rule); }
.bb-comments .comment-author { font-weight: 700; color: var(--bb-text); }
.bb-comments .comment-meta { font-size: 0.78rem; color: var(--bb-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.bb-comments-form { margin-top: 24px; }
.bb-comments-form input[type="text"], .bb-comments-form input[type="email"], .bb-comments-form input[type="url"], .bb-comments-form textarea {
    width: 100%;
    border: 1px solid var(--bb-rule-2);
    background: var(--bb-bg);
    padding: 10px 12px;
    font-family: var(--bb-font-sans);
    font-size: 0.95rem;
    color: var(--bb-text);
    border-radius: 2px;
    margin-bottom: 12px;
}
.bb-comments-form input[type="text"]:focus, .bb-comments-form input[type="email"]:focus, .bb-comments-form input[type="url"]:focus, .bb-comments-form textarea:focus { outline: 0; border-color: var(--bb-accent); }
.bb-comments-form input[type="submit"] { background: var(--bb-accent); color: #fff; border: 0; padding: 10px 22px; border-radius: 2px; font-family: var(--bb-font-sans); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; cursor: pointer; }
.bb-comments-form input[type="submit"]:hover { background: var(--bb-accent-dk); }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.bb-404 { text-align: center; padding: 80px 24px; }
.bb-404 h1 { font-size: 5rem; margin: 0; color: var(--bb-accent); letter-spacing: -0.04em; }
.bb-404 p { font-size: 1.05rem; color: var(--bb-text-2); margin: 16px 0 24px; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.screen-reader-text { position: absolute; left: -9999px; }
.bb-hidden { display: none !important; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .bb-content-wrap { grid-template-columns: 1fr; gap: 32px; }
    .bb-hero-grid { grid-template-columns: 1fr; }
    .bb-perspectives-grid { grid-template-columns: repeat(2, 1fr); }
    .bb-devshots-grid, .bb-toprreads-grid { grid-template-columns: 1fr; }
    .bb-footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    body { font-size: 15px; }
    .bb-mainbar .bb-container { flex-wrap: wrap; gap: 12px; }
    .bb-mainnav { order: 3; width: 100%; overflow-x: auto; }
    .bb-mainnav ul { flex-wrap: nowrap; min-width: max-content; }
    .bb-subnav ul { overflow-x: auto; flex-wrap: nowrap; }
    .bb-subnav { overflow: hidden; }
    .bb-perspectives-grid { grid-template-columns: 1fr; }
    .bb-footer-cols { grid-template-columns: 1fr; }
    .bb-hero-main img { height: 240px; }
    .bb-footer-newsletter .bb-container { flex-wrap: wrap; justify-content: center; }
    .bb-footer-newsletter input[type="email"] { width: 100%; max-width: 320px; }
}
