/* ═══════════════════════════════════════════════════════════════
   base.css — sofy-do-salonu.pl
   Core styles: reset, CSS variables, typography, layout,
   masonry grid, archive list, cards, sidebar, breadcrumbs,
   pagination, TOC, search form, forms, back-to-top, responsive.
   Mobile-first breakpoints (min-width).
   Jinko 1.1.6 replica — prefix stb-

   @author  Damian Zieba | https://semtak.pl | biuro@semtak.pl
   ═══════════════════════════════════════════════════════════════ */


/* ─── CSS Variables (Jinko 1.1.6 palette) ────────────────────── */

:root {
    /* Jinko theme colors */
    --color-1: #6c5b7b;
    --color-2: #f67280;
    --color-3: #f8b195;
    --color-4: #c06c84;
    --color-5: #355c7d;

    /* Semantic aliases */
    --color-primary: #1A002A;
    --color-accent: #1A002A;
    --color-accent-hover: #1A002A;
    --color-bg: #ffffff;
    --color-text: #131315;
    --color-title: #1A002A;
    --color-text-secondary: #94979e;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-surface: #f7f8fa;
    --color-light-grey: #cfd0d2;
    --color-very-light-grey: #f2f2f3;
    --color-header-text: #1A002A;
    --color-header-bg: #ffffff;
    --color-footer-dark: #321d2f;

    /* Typography */
    --font-body: "Jost", Arial, Helvetica, sans-serif;
    --font-heading: "Jost", Arial, Helvetica, sans-serif;

    /* Layout */
    --container-width: 1140px;
    --content-max-width: 46rem;
    --post-gap: 2.5rem;
    --border-radius: 5px;
    --radius: 5px;
    --header-min-height: 80px;
    --header-shadow: 0 0 15px rgba(0, 0, 0, 0.07);
    --card-padding: 1.875rem;
    --card-shadow: 0 0 20px rgba(0, 0, 0, 0.07);

    /* Card / surface */
    --color-card-bg: #ffffff;
    --color-off-white: #f7f8fa;
    --color-dark-grey: #555;

    /* Footer */
    --color-footer-bg: #321d2f;
    --color-footer-text: rgba(255, 255, 255, 0.65);

    /* Sidebar */
    --sidebar-width: 300px;
    --gap: 2.5rem;
}


/* ─── Modern Reset ───────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

figure {
    margin: 0;
}


/* ─── Accessibility ──────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ─── Typography ─────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-title);
}

/* Mobile-first sizes — desktop overrides below */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}


/* ─── Layout Containers ──────────────────────────────────────── */

.stb-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.stb-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.stb-section {
    padding: 48px 0;
}


/* ─── Content + Sidebar Grid ─────────────────────────────────── */

.stb-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
}

.stb-main {
    min-width: 0;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* 2-column: content + sidebar */
.stb-content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 32px 0;
}

.stb-sidebar {
    position: static;
    min-width: 0;
}

.stb-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stb-sidebar-categories li {
    border-bottom: 1px solid var(--color-border);
}

.stb-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.stb-sidebar-categories a:hover {
    color: var(--color-accent);
}

.stb-sidebar-categories span {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
}


/* ─── Section Headers ────────────────────────────────────────── */

.stb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.stb-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-title);
}

.stb-view-all {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.stb-view-all:hover {
    opacity: 0.8;
}


/* ─── Grid (Homepage — equal height cards) ───────────────────── */

.stb-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--post-gap);
}

.stb-masonry .stb-card {
    display: flex;
    flex-direction: column;
}

.stb-masonry .stb-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stb-masonry .stb-card-excerpt {
    flex: 1;
}


/* ─── Cards — Jinko 1.1.6 pixel-perfect ─────────────────────── */

.stb-card {
    background: var(--color-card-bg, #fff);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Card thumbnail */
.stb-card-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.stb-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.stb-card:hover .stb-card-thumb img {
    transform: scale(1.03);
}

/* Card body */
.stb-card-body {
    padding: 1rem var(--card-padding, 1.875rem) var(--card-padding, 1.875rem);
}

/* Card category badge */
.stb-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.stb-card-category:hover {
    color: var(--color-title);
}

/* Card title */
.stb-card-title {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.05rem;
    margin: 0 0 8px;
    color: var(--color-title);
}

.stb-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.stb-card-title a:hover {
    color: var(--color-accent);
}

/* Card meta — date + comments inline (single definition at line ~442) */

.stb-meta-sep {
    color: var(--color-light-grey);
}

.stb-card-comments {
    color: var(--color-text-secondary);
}

/* Excerpt */
.stb-card-excerpt {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More — OUTLINE button (border only, pill shape) */
.stb-read-more {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--color-accent-hover);
    color: var(--color-accent-hover);
    background: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.stb-read-more:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

/* Card meta row (used in archive/list layouts) */
.stb-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.stb-card-meta svg {
    vertical-align: middle;
}

.stb-card-meta-sep {
    color: var(--color-text-secondary);
    opacity: 0.5;
}


/* ─── Category Badge ─────────────────────────────────────────── */

.stb-badge,
a.stb-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff !important;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 3px;
    transition: background 0.2s ease;
    line-height: 1.5;
    text-decoration: none;
}

.stb-badge:hover,
a.stb-badge:hover {
    background: var(--color-accent-hover);
    color: #fff !important;
}


/* ─── Grid Systems ───────────────────────────────────────────── */

.stb-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stb-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stb-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}


/* ─── Archive List Layout ────────────────────────────────────── */

.stb-list-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.stb-list-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stb-list-card-thumb {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
}

.stb-list-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stb-list-card:hover .stb-list-card-thumb img {
    transform: scale(1.03);
}

.stb-list-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 4px 0;
}

.stb-list-card-body .stb-card-title {
    font-size: 1.125rem;
    margin: 4px 0 8px;
}

.stb-list-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}

.stb-list-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 8px;
    color: var(--color-title);
}

.stb-list-card-title a {
    color: inherit;
    text-decoration: none;
}

.stb-list-card-title a:hover {
    color: var(--color-accent);
}

.stb-list-card-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.stb-list-card-cat {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: auto;
    padding-top: 12px;
    border-top: 2px solid var(--color-text);
    align-self: flex-start;
}

.stb-list-card-cat a {
    color: var(--color-text);
}

.stb-list-card-cat a:hover {
    color: var(--color-accent);
}


/* ─── Sidebar Widgets ────────────────────────────────────────── */

.stb-widget {
    margin-bottom: 32px;
}

.stb-widget:last-child {
    margin-bottom: 0;
}

.stb-widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--color-text);
    color: var(--color-title);
}


/* ─── Sidebar Post List ──────────────────────────────────────── */

.stb-sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.stb-sidebar-post:first-child {
    padding-top: 0;
}

.stb-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stb-sidebar-post-img {
    width: 80px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.stb-sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-sidebar-post-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    transition: color 0.2s ease;
    display: block;
}

.stb-sidebar-post-title:hover {
    color: var(--color-accent);
}

.stb-sidebar-post-date {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
    display: block;
}


/* ─── Category List (Sidebar) ────────────────────────────────── */

.stb-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.stb-cat-list li:last-child {
    border-bottom: none;
}

.stb-cat-list a {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s ease;
}

.stb-cat-list a:hover {
    color: var(--color-accent);
}

.stb-cat-list .stb-cat-count {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
}


/* ─── Archive List (Sidebar — months) ────────────────────────── */

.stb-archive-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.stb-archive-list li:last-child {
    border-bottom: none;
}

.stb-archive-list a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.stb-archive-list a:hover {
    color: var(--color-accent);
}


/* ─── Breadcrumbs ────────────────────────────────────────────── */

.stb-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    padding: 5px 0;
    line-height: 1.5;
}

.stb-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.stb-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

.stb-breadcrumbs a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.stb-breadcrumbs a:hover {
    color: var(--color-accent);
}

.stb-breadcrumbs-sep {
    margin: 0 6px;
    opacity: 0.5;
}


/* ─── Archive Header (breadcrumbs bar — dark) ────────────────── */

.stb-archive-header {
    background: var(--color-text);
    color: #fff;
    width: 100%;
}

.stb-archive-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 50px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.stb-archive-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.stb-archive-header .stb-breadcrumbs {
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
}

.stb-archive-header .stb-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.stb-archive-header .stb-breadcrumbs a:hover {
    color: #fff;
}

.stb-archive-header .stb-breadcrumbs-sep {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.stb-archive-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .stb-archive-header-inner {
        flex-direction: column;
        align-items: flex-start;
        max-height: none;
        gap: 0.25rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    .stb-archive-header h1 {
        font-size: 1.2rem;
    }
}


/* ─── Pagination ─────────────────────────────────────────────── */

.stb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 48px 0 16px;
    flex-wrap: wrap;
}

.stb-pagination a,
.stb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    color: var(--color-text);
}

.stb-pagination a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.stb-pagination .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-weight: 700;
}

/* "Starsze wpisy" / "Nowsze" button */
.stb-pagination .prev,
.stb-pagination .next {
    font-weight: 600;
    padding: 0 16px;
    white-space: nowrap;
}

/* WordPress default pagination wrapper */
.stb-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.stb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    color: var(--color-text);
}

.stb-pagination a.page-numbers:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.stb-pagination span.page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-weight: 700;
}

.stb-pagination .dots {
    border: none;
    min-width: 32px;
    padding: 0;
}


/* ─── Table of Contents (TOC) ────────────────────────────────── */

.stb-toc {
    background: var(--color-off-white);
    border-left: 3px solid var(--color-accent);
    padding: 20px 24px;
    margin: 24px 0 32px;
    border-radius: var(--radius);
}

.stb-toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-title);
}

.stb-toc-title svg {
    transition: transform 0.2s ease;
}

.stb-toc-title.collapsed svg {
    transform: rotate(180deg);
}

.stb-toc-list {
    counter-reset: toc;
    padding-left: 0;
}

.stb-toc-list.stb-toc-collapsed {
    display: none;
}

.stb-toc-list li {
    counter-increment: toc;
    padding: 4px 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.stb-toc-list li::before {
    content: counter(toc) ". ";
    color: var(--color-accent);
    font-weight: 600;
}

.stb-toc-list a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.stb-toc-list a:hover {
    color: var(--color-accent);
}

.stb-toc-sub {
    padding-left: 20px;
}


/* ─── Search Form ────────────────────────────────────────────── */

.stb-search-form {
    display: flex;
    gap: 0;
}

.stb-search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.875rem;
    outline: none;
    background: var(--color-bg);
    min-height: 44px;
    transition: border-color 0.2s ease;
}

.stb-search-form input[type="search"]:focus {
    border-color: var(--color-accent);
}

.stb-search-form button {
    padding: 10px 20px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    min-height: 44px;
    min-width: 44px;
    transition: opacity 0.2s ease;
}

.stb-search-form button:hover {
    opacity: 0.85;
}


/* ─── Contact / Generic Forms ────────────────────────────────── */

.stb-form-group {
    margin-bottom: 24px;
}

.stb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.stb-form-group input,
.stb-form-group textarea,
.stb-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    background: var(--color-bg);
    transition: border-color 0.2s ease;
    min-height: 44px;
}

.stb-form-group input:focus,
.stb-form-group textarea:focus,
.stb-form-group select:focus {
    border-color: var(--color-accent);
}

.stb-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.stb-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--color-accent-hover);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    min-height: 48px;
    transition: background 0.2s ease;
}

.stb-form-submit:hover {
    background: var(--color-accent);
}

/* Form status — uses sds-* classes (defined in custom.css) */
.sds-form-status {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.sds-success {
    background: #d4edda;
    color: #155724;
}

.sds-error {
    background: #f8d7da;
    color: #721c24;
}


/* ─── Entry Content (the_content — single post) ─────────────── */

.stb-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.stb-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    padding-top: 8px;
}

.stb-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.stb-content h4 {
    font-size: 1.125rem;
    margin: 24px 0 12px;
}

.stb-content p {
    margin-bottom: 1.25rem;
}

.stb-content ul,
.stb-content ol {
    padding-left: 24px;
    margin-bottom: 1.25rem;
}

.stb-content ul {
    list-style: disc;
}

.stb-content ol {
    list-style: decimal;
}

.stb-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.stb-content li > ul,
.stb-content li > ol {
    margin-top: 6px;
    margin-bottom: 0;
}

.stb-content img {
    margin: 24px 0;
    border-radius: var(--radius);
}

.stb-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.stb-content a:hover {
    opacity: 0.8;
}

.stb-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--color-off-white);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text);
}

.stb-content blockquote p:last-child {
    margin-bottom: 0;
}

.stb-content figure {
    margin: 32px 0;
}

.stb-content figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.stb-content table {
    margin: 24px 0;
    font-size: 0.9375rem;
}

.stb-content table th,
.stb-content table td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.stb-content table th {
    background: var(--color-off-white);
    font-weight: 600;
}

.stb-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.stb-content code {
    background: var(--color-off-white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
}

.stb-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.stb-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

/* WordPress alignment classes */
.stb-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.stb-content .alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

.stb-content .alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.stb-content .wp-caption {
    max-width: 100%;
}

.stb-content .wp-caption-text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 8px;
}


/* ─── Single Post Meta ───────────────────────────────────────── */

.stb-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 12px 0 24px;
    flex-wrap: wrap;
}

.stb-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stb-single-featured-img {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.stb-single-featured-img img {
    width: 100%;
    height: auto;
}


/* ─── Share Buttons ──────────────────────────────────────────── */

.stb-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stb-share strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.stb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    transition: opacity 0.2s ease;
    color: #fff;
}

.stb-share-btn:hover {
    opacity: 0.8;
}

.stb-share-fb {
    background: #1877f2;
}

.stb-share-tw {
    background: #000;
}

.stb-share-wa {
    background: #25d366;
}


/* ─── Tags ───────────────────────────────────────────────────── */

.stb-single-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stb-single-tags strong {
    font-size: 0.875rem;
}


/* ─── Back to Top ────────────────────────────────────────────── */

.stb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stb-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.stb-back-to-top:hover {
    opacity: 0.85;
}


/* ─── WordPress Core Utility Classes ─────────────────────────── */

.wp-block-image img {
    border-radius: var(--radius);
}

.has-text-align-center {
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ═══════════════════════════════════════════════════════════════
   Responsive — Mobile-first (min-width)
   Base = mobile 360px+
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tablet: 768px+ ─────────────────────────────────────────── */

@media (min-width: 768px) {
    .stb-container {
        padding: 0 24px;
    }

    .stb-section {
        padding: 64px 0;
    }

    /* Typography scale up */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Content + Sidebar layout */
    .stb-layout {
        grid-template-columns: 1fr var(--sidebar-width);
    }

    .stb-content-area {
        grid-template-columns: 1fr 300px;
    }

    /* Grid 2 columns */
    .stb-masonry {
        grid-template-columns: 1fr 1fr;
    }

    /* Grid systems */
    .stb-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .stb-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stb-grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Section title */
    .stb-section-title {
        font-size: 1.75rem;
    }

    /* Archive header — horizontal layout */
    .stb-archive-header h1 {
        font-size: 1.5rem;
    }

    .stb-archive-header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Archive list cards — horizontal */
    .stb-list-card {
        grid-template-columns: 45% 1fr;
        gap: 24px;
    }

    .stb-list-card-body .stb-card-title {
        font-size: 1.25rem;
    }

    /* Entry content headings */
    .stb-content h2 { font-size: 1.75rem; }
    .stb-content h3 { font-size: 1.375rem; }
}


/* ─── Desktop: 1024px+ ───────────────────────────────────────── */

@media (min-width: 1024px) {
    /* Desktop typography */
    h1 { font-size: 3.7rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }

    /* Grid systems */
    .stb-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .stb-grid-4 { grid-template-columns: repeat(4, 1fr); }

    /* Content column — grid handles width */
    .stb-content {
        min-width: 0;
    }

    /* Entry content headings desktop */
    .stb-content h2 { font-size: 2.25rem; }
    .stb-content h3 { font-size: 1.75rem; }
    .stb-content h4 { font-size: 1.5rem; }
}
