/* ==========================================================
   Studio: clean editorial magazine. White and soft grey bands,
   a dark topics band, lavender topic tags, pill purple buttons.
   Layered on top of the Classic theme styles.
   ========================================================== */

[data-bs-theme="light"] .theme-studio {
    --st-bg: #ffffff;
    --st-band: #f6f6f6;
    --st-text: #1d1d1d;
    --st-heading: #151c22;
    --st-muted: #6b6f76;
    --st-line: rgba(171, 171, 171, .4);
    --st-dark: #1d1d1d;
    --st-tag-bg: color-mix(in srgb, var(--fc-accent) 20%, transparent);
    --st-tag: color-mix(in srgb, var(--fc-accent) 60%, #000);   /* darker than the accent so tag text reads on the tint */
    --st-empty: #ecebf3;
}
[data-bs-theme="dark"] .theme-studio {
    --st-bg: #141517;
    --st-band: #1c1d20;
    --st-text: #ececee;
    --st-heading: #f6f6f7;
    --st-muted: #a2a5ad;
    --st-line: rgba(171, 171, 171, .22);
    --st-dark: #0b0b0c;
    --st-tag-bg: color-mix(in srgb, var(--fc-accent) 18%, transparent);
    --st-tag: color-mix(in srgb, var(--fc-accent) 70%, #fff);
    --st-empty: #25242c;
}
.theme-studio {
    --bs-body-bg: var(--st-bg);
    --bs-body-color: var(--st-text);
    --bs-emphasis-color: var(--st-heading);
    --bs-secondary-color: var(--st-muted);
    --bs-tertiary-bg: var(--st-band);
    --bs-border-color: var(--st-line);
    --fc-radius: 6px;
    background: var(--st-bg);
    color: var(--st-text);
    letter-spacing: .01em;
    line-height: 1.55;
}
:where(.theme-studio) a { color: var(--st-heading); }
.theme-studio .text-body-secondary { color: var(--st-muted) !important; }
.theme-studio h1, .theme-studio h2, .theme-studio h3, .theme-studio h4 { color: var(--st-heading); }
.st-display { font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }

/* ---- Header: plain white bar ------------------------------ */
.theme-studio .site-header { background: var(--st-bg); border-bottom: 0 !important; }
.theme-studio .site-header > .container { padding-top: .9rem !important; padding-bottom: .9rem !important; }
.theme-studio .site-header .navbar-brand { font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; font-size: 1.15rem !important; color: var(--st-heading) !important; }
.theme-studio .site-header .navbar-brand i { font-size: 1.35em; color: var(--st-heading); }
.theme-studio .site-header .navbar-brand .site-icon { height: 1.6em; }
.theme-studio .site-header .nav { --bs-nav-underline-border-width: 0; }
.theme-studio .site-header .nav-link { font-size: .95rem; font-weight: 400; color: var(--st-heading) !important; padding: .4rem .2rem; border-bottom: 0 !important; }
.theme-studio .site-header .nav-link:hover { opacity: .65; }
.theme-studio .site-header .nav-link.active { font-weight: 600; }
.theme-studio.header-split .site-header + .mb-4 { display: none; }
.theme-studio.sticky-header .site-header.is-scrolled { box-shadow: 0 1px 0 var(--st-line); }

/* ---- Bands --------------------------------------------- */
.st-band { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.st-band-grey { background: var(--st-band); padding-top: 2.4rem; }
.st-band-dark { background: var(--st-dark); color: #fff; margin-top: 1rem; }
.st-band-dark .st-section-title { color: #fff; }
.st-section-title { font-size: 1.5rem; font-weight: 400; margin-bottom: 1.75rem; letter-spacing: 0; }

/* ---- Featured story ------------------------------------ */
.st-lead-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; display: block; margin-bottom: 1.5rem; }
.st-lead-title { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: .9rem; }
.st-lead-title a, .st-list-title a, .st-card-title a { color: var(--st-heading); text-decoration: none; }
.st-lead:hover .st-lead-title a, .st-list-item:hover .st-list-title a, .st-card:hover .st-card-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.st-lead-summary { font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.1rem; max-width: 640px; }

/* Trending panel + list */
.st-trending {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    min-height: 196px;
    padding: 1.1rem 1rem;
    margin-bottom: 1rem;
    background: radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--fc-accent) 45%, #1d1830) 0%, #231d3b 55%, #1b1730 100%);
}
.st-trending p { color: #fff; font-size: 1.85rem; line-height: 1; margin: 0; position: relative; z-index: 1; }
.st-shape { position: absolute; display: block; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.st-shape-a { width: 120px; height: 110px; right: -14px; top: -10px; background: color-mix(in srgb, var(--fc-accent) 55%, #fff); transform: rotate(12deg); }
.st-shape-b { width: 110px; height: 100px; right: 60px; bottom: -30px; background: rgba(255, 255, 255, .1); transform: rotate(-8deg); }
.st-list-item { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--st-line); }
.st-list-item:last-child { border-bottom: 0; }
.st-list-img { width: 178px; height: 113px; object-fit: cover; border-radius: 4px; flex-shrink: 0; display: flex; }
.st-list-title { font-family: inherit; font-size: 1.12rem; font-weight: 400; line-height: 1.4; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.min-w-0 { min-width: 0; }

/* ---- Topic tags and meta line -------------------------- */
.st-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .9rem; font-size: .75rem; }
.st-tag {
    display: inline-block;
    background: var(--st-tag-bg);
    color: var(--st-tag);
    padding: 5px 9px;
    border-radius: 2px;
    font-size: .75rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
.st-date { color: var(--st-muted); font-size: .75rem; }

/* ---- Cards (no box) ------------------------------------ */
.st-card .st-thumb { width: 100%; height: auto; aspect-ratio: 374 / 237; object-fit: cover; border-radius: 5px; display: block; }
.st-thumb-empty, .st-card .st-thumb.st-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--st-empty); color: var(--fc-accent); font-size: 2.2rem; }
.st-list-img.st-thumb-empty { font-size: 1.6rem; }
.st-card-title { font-family: inherit; font-size: 1.45rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; margin-bottom: .6rem; }
.st-summary { line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Topics band ---------------------------------------- */
.st-topic { position: relative; display: block; height: 382px; overflow: hidden; border-radius: 4px; text-decoration: none; background: linear-gradient(160deg, color-mix(in srgb, var(--fc-accent) 40%, #2a2146), #1f1a33); }
.st-topic-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.st-topic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .78)); }
.st-topic:hover .st-topic-img { transform: scale(1.03); }
.st-topic-text { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.4rem; z-index: 1; color: #fff; }
.st-topic-title { display: block; font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); line-height: 1.1; margin-bottom: .5rem; color: #fff; }
.st-topic-desc { display: block; font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.st-chip { display: inline-flex; gap: .5rem; align-items: center; color: #fff !important; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 100px; padding: .45rem 1rem; font-size: .95rem; }
.st-chip span { color: rgba(255, 255, 255, .6); font-size: .8rem; }
.st-chip:hover { background: rgba(255, 255, 255, .1); }

/* ---- Buttons: pills --------------------------------------- */
.theme-studio .btn { border-radius: 100px; font-weight: 500; }
.theme-studio .btn-lg { padding: .95rem 2.4rem; font-size: 1rem; }
.theme-studio .btn-primary { --bs-btn-bg: var(--fc-accent); --bs-btn-border-color: var(--fc-accent); --bs-btn-hover-bg: var(--fc-accent-hover); --bs-btn-hover-border-color: var(--fc-accent-hover); --bs-btn-color: var(--fc-on-accent); --bs-btn-hover-color: var(--fc-on-accent); }
.theme-studio .btn-outline-primary,
.theme-studio .btn-outline-secondary { --bs-btn-color: var(--st-heading); --bs-btn-border-color: var(--st-heading); --bs-btn-hover-bg: var(--st-heading); --bs-btn-hover-border-color: var(--st-heading); --bs-btn-hover-color: var(--st-bg); font-weight: 700; }
.theme-studio .floating-btn.btn-primary { background: var(--fc-accent); border-color: var(--fc-accent); }
.theme-studio .floating-btn.btn-secondary { --bs-btn-bg: var(--st-heading); --bs-btn-border-color: var(--st-heading); --bs-btn-color: var(--st-bg); }

/* ---- Page headers (articles, categories, search, article) -- */
.theme-studio main > .container > header.card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    padding: 2.5rem 0 1rem !important;
}
.theme-studio main > .container > header.card .card-body { padding: 0; }
.theme-studio main > .container > header.card h1 { font-weight: 400 !important; letter-spacing: -.01em; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); }
.theme-studio main > .container > header.card .fs-4 { font-size: 1.15rem !important; color: var(--st-text); max-width: 760px; }
.theme-studio main > .container > header.card .lead { font-size: .95rem; color: var(--st-muted); }
.theme-studio main > .container > header.card .justify-content-center { justify-content: flex-start !important; }
.theme-studio main > .container > header.card .byline { justify-content: flex-start !important; }
.theme-studio .badge { border-radius: 2px; font-weight: 400; font-size: .8rem !important; padding: 6px 10px; }
.theme-studio .badge.bg-primary { background: var(--st-tag-bg) !important; color: var(--st-tag) !important; }
.theme-studio .badge.bg-secondary { background: transparent !important; color: var(--st-muted) !important; padding-left: 0; }
.theme-studio .badge .bi { display: none; }
.theme-studio .breadcrumb { font-size: .85rem; --bs-breadcrumb-divider-color: var(--st-muted); --bs-breadcrumb-item-active-color: var(--st-muted); }
.theme-studio .breadcrumb a { color: var(--st-muted); }

/* Category subcategory buttons and lists */
.theme-studio .btn-outline-primary.rounded-pill { font-weight: 400; font-size: .95rem; }

/* ---- Article text -------------------------------------- */
.theme-studio .article-hero { border-radius: 5px; }
.theme-studio .content-body { font-size: 1.06em; line-height: 1.75; }
.theme-studio .content-body h2 { font-weight: 400; font-size: 1.85rem; margin-top: 2.6rem; letter-spacing: -.01em; }
.theme-studio .content-body h3 { font-weight: 400; font-size: 1.4rem; margin-top: 2rem; }
.theme-studio .content-body a { color: var(--fc-accent); }
.theme-studio .content-body blockquote { border-left: 3px solid var(--fc-accent) !important; background: var(--st-band); padding: 1rem 1.25rem; border-radius: 0 4px 4px 0; }
.theme-studio .content-body th { background: var(--st-band); }
.theme-studio .content-body td, .theme-studio .content-body th { border-color: var(--st-line) !important; }
.theme-studio .content-body img { border-radius: 5px; }

/* Boxes (table of contents, sidebar, related) stay light and flat */
[data-bs-theme] .theme-studio .card { background: var(--st-bg) !important; border: 1px solid var(--st-line) !important; box-shadow: none !important; border-radius: 6px !important; }
[data-bs-theme] .theme-studio .bg-body-tertiary { background: var(--st-band) !important; }
.theme-studio .card-header { background: transparent; border-color: var(--st-line); }
.theme-studio .list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: var(--st-line); --bs-list-group-color: var(--st-text); --bs-list-group-action-hover-bg: var(--st-band); }
.theme-studio .badge.rounded-pill.text-bg-secondary { background: var(--st-band) !important; color: var(--st-muted) !important; }

/* ---- Forms, pagination ---------------------------------- */
.theme-studio .form-control, .theme-studio .form-select { border-radius: 4px; border-color: var(--st-line); background-color: var(--st-bg); color: var(--st-text); }
.theme-studio .pagination { --bs-pagination-color: var(--st-heading); --bs-pagination-bg: transparent; --bs-pagination-border-color: var(--st-line); --bs-pagination-hover-bg: var(--st-band); --bs-pagination-hover-color: var(--st-heading); --bs-pagination-active-bg: var(--st-heading); --bs-pagination-active-border-color: var(--st-heading); --bs-pagination-active-color: var(--st-bg); gap: .3rem; }
.theme-studio .page-link { border-radius: 100px !important; min-width: 2.4rem; text-align: center; }

/* ---- Footer: soft grey --------------------------------- */
.theme-studio .site-footer { background: var(--st-band); border-top: 0 !important; margin-top: 0 !important; padding-top: 3.5rem !important; }
.theme-studio main { padding-bottom: 4rem; }
.theme-studio main:has(> .st-band-dark:last-child) { padding-bottom: 0; }
.theme-studio .site-footer .nav-link { font-size: .95rem; color: var(--st-heading) !important; }
.theme-studio .site-footer .nav-link:hover { opacity: .65; }
.theme-studio .site-footer a.fs-4 { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1.1rem !important; }

.theme-studio .fc-ad-placeholder { border-radius: 4px; background: var(--st-band); }

@media (max-width: 575.98px) {
    .st-list-img { width: 120px; height: 80px; }
    .st-topic { height: 280px; }
    .st-band { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .st-topic-img { transition: none; } }
