/*
Theme Name: dds_swipeoutlets.com
Theme URI: https://swipeoutlets.com/
Author: Marcus Chen
Description: Steel Grid — a Swiss-style theme in cool steel tones for an informational blog about commercial real estate for retail and logistics: storefronts, online businesses, warehouses and distribution centers.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swpout
*/

/* JS-controlled visibility (must precede component styles) */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
    --sg-bg: #F4F6F8;
    --sg-alt: #E4E9EF;
    --sg-navy: #0F1B2D;
    --sg-navy-2: #1B2D45;
    --sg-white: #FFFFFF;
    --sg-text: #13202E;
    --sg-text-2: #33414F;
    --sg-red: #E63946;
    --sg-red-dark: #C1121F;
    --sg-steel: #2A6F97;
    --sg-graphite: #3D4A5C;
    --sg-green: #2D6A4F;
    --sg-muted: #6B7A8D;
    --sg-soft: #A8B8C8;
    --sg-line: #C5CFD9;
    --sg-grid: rgba(220, 227, 234, 0.4);
    --sg-grid-light: rgba(255, 255, 255, 0.08);
    --sg-head: "Inter", "Manrope", "Helvetica Neue", Arial, sans-serif;
    --sg-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sg-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--sg-text);
    background-color: var(--sg-bg);
    background-image:
        repeating-linear-gradient(45deg, var(--sg-grid) 0, var(--sg-grid) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(-45deg, var(--sg-grid) 0, var(--sg-grid) 1px, transparent 1px, transparent 24px);
    border-top: 4px solid var(--sg-red);
}

/* Warehouse silhouette, bottom-right of every page */
body::after {
    content: "";
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 420px;
    max-width: 45%;
    aspect-ratio: 420 / 240;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 240'%3E%3Cg fill='none' stroke='%230F1B2D' stroke-width='4'%3E%3Cpath d='M10 230V90L210 20L410 90V230Z'/%3E%3Cpath d='M10 110H410M60 72V230M110 55V230M160 37V230M260 37V230M310 55V230M360 72V230'/%3E%3Crect x='40' y='150' width='60' height='80'/%3E%3Crect x='130' y='150' width='60' height='80'/%3E%3Crect x='230' y='150' width='60' height='80'/%3E%3Crect x='320' y='150' width='60' height='80'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 40;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sg-head);
    color: var(--sg-text);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    font-weight: 700;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }
p, li, dd, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }

a {
    color: var(--sg-text);
    text-decoration-line: underline;
    text-decoration-color: var(--sg-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}
a:hover,
a:focus-visible {
    color: var(--sg-steel);
    text-decoration-color: var(--sg-steel);
    text-decoration-thickness: 3px;
}

:focus-visible { outline: 2px solid var(--sg-red); outline-offset: 2px; }

hr { border: 0; border-top: 1px solid var(--sg-line); margin: 2em 0; }

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--sg-red);
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    font-family: var(--sg-head);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.site-main:focus { outline: none; }

/* ---------- Container ---------- */
.sg-shell {
    width: min(92%, 1180px);
    margin-left: auto;
    margin-right: auto;
}
.sg-shell--front { width: min(85%, 1240px); }

/* ---------- Buttons ---------- */
.sg-btn,
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 2px;
    font-family: var(--sg-head);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sg-btn--primary,
.comment-form .submit {
    background: var(--sg-red);
    border-color: var(--sg-red);
    color: #fff;
}
.sg-btn--primary:hover,
.sg-btn--primary:focus-visible,
.comment-form .submit:hover,
.comment-form .submit:focus-visible {
    background: var(--sg-red-dark);
    border-color: var(--sg-red-dark);
    color: #fff;
}
.sg-btn--outline {
    background: transparent;
    border-color: var(--sg-steel);
    color: var(--sg-steel);
}
.sg-btn--outline:hover,
.sg-btn--outline:focus-visible {
    background: var(--sg-steel);
    border-color: var(--sg-steel);
    color: #fff;
}
.sg-btn--on-dark { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    background: var(--sg-navy);
    color: #fff;
    position: relative;
    z-index: 30;
}
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 18px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 360px;
    min-width: 0;
}
.brand-mark-link {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    text-decoration: none;
}
.brand-mark { display: block; width: 48px; height: 48px; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-text { min-width: 0; max-width: 62ch; }
.brand-name {
    display: block;
    font-family: var(--sg-head);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #fff;
    text-decoration: none;
}
.brand-name:hover,
.brand-name:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: var(--sg-red); }
.brand-desc {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--sg-soft);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    font-family: var(--sg-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: var(--sg-red); }

.primary-nav { display: none; flex: 1 1 100%; }
.primary-nav.is-open { display: block; }
.nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-list a {
    display: block;
    padding: 12px 2px;
    color: #fff;
    font-family: var(--sg-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a:focus-visible { color: #fff; border-bottom-color: var(--sg-red); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { border-bottom-color: var(--sg-red); }

/* ---------- Breadcrumbs & page head ---------- */
.breadcrumbs {
    padding: 28px 0 0;
    font-size: 0.85rem;
    color: var(--sg-muted);
}
.breadcrumbs a { color: var(--sg-muted); text-decoration-thickness: 1px; }
.breadcrumbs a:hover { color: var(--sg-steel); }
.breadcrumbs .sep { color: var(--sg-red); margin: 0 4px; }
.breadcrumbs span[aria-current] { color: var(--sg-text); }

.page-head { padding: 18px 0 32px; }
.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 14px;
}
.page-lead { color: var(--sg-text-2); max-width: 64ch; margin: 0; }

/* ---------- Layout ---------- */
.layout { padding: 8px 0 88px; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
.layout-single { display: block; }
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

/* ---------- Section headings & dividers ---------- */
.sg-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 32px;
}
.sg-title::before {
    content: "";
    flex: 0 0 48px;
    height: 2px;
    background: var(--sg-red);
}
.sg-title--light { color: #fff; }

.sg-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 56px;
}
.sg-divider::before,
.sg-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--sg-line);
}
.sg-divider span {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: var(--sg-red);
}

/* ---------- Front sections ---------- */
.fs { padding: 80px 0; }
.fs--plain { background: transparent; }
.fs--alt {
    background-color: var(--sg-alt);
    background-image:
        repeating-linear-gradient(45deg, var(--sg-grid) 0, var(--sg-grid) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(-45deg, var(--sg-grid) 0, var(--sg-grid) 1px, transparent 1px, transparent 24px);
}
.fs--dark {
    color: #fff;
    background-color: var(--sg-navy);
    background-image:
        repeating-linear-gradient(45deg, var(--sg-grid-light) 0, var(--sg-grid-light) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(-45deg, var(--sg-grid-light) 0, var(--sg-grid-light) 1px, transparent 1px, transparent 24px),
        linear-gradient(135deg, #0F1B2D 0%, #1B2D45 100%);
}
.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 32px;
}
.fs-head .sg-title { margin: 0; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.hero-text {
    min-width: 0;
    border-left: 3px solid var(--sg-red);
    padding-left: 28px;
}
.hero-kicker {
    font-family: var(--sg-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sg-soft);
    margin: 0 0 18px;
}
.hero h1 {
    color: #fff;
    font-size: 2.3rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 22px;
}
.hero-sub {
    color: var(--sg-soft);
    font-size: 1.1rem;
    max-width: 56ch;
    margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 560 / 420;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.steps-intro { min-width: 0; }
.steps-intro p { color: var(--sg-text-2); max-width: 52ch; margin-bottom: 28px; }
.steps-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    padding: 28px 0;
    border-top: 2px dashed var(--sg-line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step-num {
    font-family: var(--sg-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--sg-red);
}
.step-body { min-width: 0; }
.step-body h3 { font-size: 1.2rem; margin: 0 0 8px; color: var(--sg-text); }
.step-body p { margin: 0; color: var(--sg-text); }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
    background: #fff;
    border: 1px solid var(--sg-navy);
    padding: 36px 24px;
}
.stat {
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid var(--sg-line);
}
.stat:nth-child(odd) { border-left: 0; }
.stat-num {
    font-family: var(--sg-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--sg-navy);
    margin: 0 0 12px;
    white-space: nowrap;
}
.stat-label { color: var(--sg-muted); font-size: 0.94rem; line-height: 1.5; margin: 0; }

/* Topic map */
.topics-lead { color: var(--sg-soft); max-width: 60ch; margin: -12px 0 36px; }
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.topic {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 20px 18px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-steel);
    border-radius: 0;
    color: var(--sg-text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.topic svg { width: 40px; height: 40px; color: var(--sg-red); flex: 0 0 auto; }
.topic-name {
    font-family: var(--sg-head);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow-wrap: break-word;
    hyphens: auto;
}
.topic:hover,
.topic:focus-visible { background: var(--sg-steel); color: #fff; }
.topic:hover svg,
.topic:focus-visible svg { color: #fff; }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sg-line);
    border-radius: 0;
    box-shadow: 0 2px 0 0 var(--sg-navy);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 var(--sg-red);
}
.card.sticky { border-top: 3px solid var(--sg-red); }
.card-thumb { position: relative; background: var(--sg-navy); }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
.card-thumb .sg-tag { position: absolute; top: 12px; left: 12px; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 22px 22px;
}
.card-meta {
    font-size: 0.8rem;
    color: var(--sg-muted);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.card-title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 10px; }
.card-title a { color: var(--sg-text); text-decoration: none; }
.card-title a:hover,
.card-title a:focus-visible { color: var(--sg-red); }
.card-excerpt { color: var(--sg-text-2); font-size: 0.96rem; line-height: 1.6; margin-bottom: 16px; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--sg-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Category tags */
.sg-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-family: var(--sg-head);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: var(--sg-steel);
}
.sg-tag--0 { background: #2A6F97; }
.sg-tag--1 { background: #3D4A5C; }
.sg-tag--2 { background: #E63946; }
.sg-tag--3 { background: #2D6A4F; }
.sg-tag:hover,
.sg-tag:focus-visible { color: #fff; background: var(--sg-navy); }

.empty-state {
    background: #fff;
    border: 1px solid var(--sg-line);
    padding: 28px 28px 24px;
}
.empty-state p { color: var(--sg-text-2); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--sg-line);
    border-radius: 2px;
    color: var(--sg-text);
    font-family: var(--sg-head);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
    background: var(--sg-steel);
    border-color: var(--sg-steel);
    color: #fff;
}
.pagination .page-numbers.current {
    background: var(--sg-red);
    border-color: var(--sg-red);
    color: #fff;
}
.pagination .page-numbers.dots {
    background: none;
    border: 0;
    min-width: auto;
    padding: 0 4px;
}

/* ---------- Entry ---------- */
.entry {
    background: #fff;
    border: 1px solid var(--sg-line);
    box-shadow: 0 2px 0 0 var(--sg-navy);
    padding: 28px 22px;
}
.entry-header { margin-bottom: 24px; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--sg-muted);
}
.entry-title { font-size: 2.1rem; font-weight: 800; margin: 0; }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.entry-content { min-width: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 1.6em;
    padding-left: 16px;
    border-left: 3px solid var(--sg-red);
}
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--sg-red); }
.entry-content ol li::marker { color: var(--sg-steel); font-family: var(--sg-head); font-weight: 700; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    background: var(--sg-bg);
    border-left: 4px solid var(--sg-red);
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--sg-muted); margin-top: 8px; }
.entry-content img { display: block; height: auto; }
.entry-content pre {
    overflow-x: auto;
    background: var(--sg-navy);
    color: #E4E9EF;
    padding: 18px 20px;
    font-size: 0.9rem;
}
.entry-content code { font-size: 0.9em; background: var(--sg-alt); padding: 1px 5px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.6em 0; }

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--sg-line);
    margin: 0 0 1.4em;
    font-size: 0.95rem;
}
th, td { border: 1px solid var(--sg-line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--sg-alt); font-family: var(--sg-head); font-weight: 700; }

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--sg-muted); }
.sticky, .bypostauthor { position: relative; }

.page-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; font-family: var(--sg-head); }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--sg-line);
    font-size: 0.9rem;
}
.entry-tags__label { color: var(--sg-muted); }

.post-navigation { margin-top: 32px; }
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.post-navigation a {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--sg-line);
    padding: 18px 20px;
    text-decoration: none;
}
.post-navigation a:hover { border-color: var(--sg-steel); }
.post-navigation .nav-next { text-align: right; }
.nav-label {
    display: block;
    font-family: var(--sg-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sg-red);
    margin-bottom: 6px;
}
.nav-title { display: block; font-family: var(--sg-head); font-weight: 600; color: var(--sg-text); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 40px; }
.comments-title,
.comment-reply-title { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 24px; border-left: 2px solid var(--sg-line); margin-top: 16px; }
.comment-list > li,
.comment-list .children > li { margin-bottom: 16px; }
.comment-card {
    background: #fff;
    border: 1px solid var(--sg-line);
    padding: 20px 22px;
}
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-head img { display: block; border-radius: 0; }
.comment-who { display: flex; flex-direction: column; min-width: 0; }
.comment-author { font-family: var(--sg-head); font-weight: 700; }
.comment-who time { font-size: 0.8rem; color: var(--sg-muted); }
.comment-pending { font-size: 0.88rem; color: var(--sg-steel); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: 10px; }
.comment-reply a { font-family: var(--sg-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.comment-respond {
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--sg-line);
    padding: 26px 24px;
}
.comment-form label { display: block; font-family: var(--sg-head); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field,
.post-password-form input[type="password"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--sg-line);
    border-radius: 2px;
    background: #fff;
    color: var(--sg-text);
    font: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus { outline: 2px solid var(--sg-steel); outline-offset: 0; border-color: var(--sg-steel); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--sg-body); font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: 0.88rem; color: var(--sg-muted); }
.required { color: var(--sg-red); }
.no-comments { color: var(--sg-muted); }
.comments-area .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0; }

/* ---------- Search / 404 / password ---------- */
.search-form { display: flex; gap: 8px; margin: 16px 0; }
.search-field { flex: 1 1 auto; min-width: 0; }
.post-password-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-password-row label { flex: 1 1 100%; font-family: var(--sg-head); font-weight: 600; }
.post-password-row input { flex: 1 1 200px; }

.notfound {
    background: #fff;
    border: 1px solid var(--sg-line);
    box-shadow: 0 2px 0 0 var(--sg-navy);
    padding: 36px 24px;
}
.notfound-code {
    font-family: var(--sg-head);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--sg-red);
    margin: 0 0 12px;
}
.notfound-home { margin: 24px 0 0; }

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: #FFFFFF;
    color: var(--sg-text);
    border: 1px solid var(--sg-line);
    box-shadow: 0 2px 0 0 var(--sg-navy);
    padding: 22px 22px 20px;
    margin-bottom: 28px;
}
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sg-navy);
    margin: 0 0 16px;
}
.sidebar .widget-title::before { content: ""; flex: 0 0 20px; height: 2px; background: var(--sg-red); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 10px 0; border-top: 1px solid var(--sg-alt); color: var(--sg-text); }
.sidebar li:first-child { border-top: 0; padding-top: 0; }
.sidebar li:last-child { padding-bottom: 0; }
.sidebar a { color: var(--sg-text); text-decoration: none; font-weight: 500; }
.sidebar a:hover,
.sidebar a:focus-visible { color: var(--sg-red); }
.sidebar .post-date,
.sidebar .rss-date { display: block; font-size: 0.8rem; color: var(--sg-muted); }
.sidebar p { color: var(--sg-text-2); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--sg-navy);
    color: #C9D4E0;
    padding: 64px 0 0;
    position: relative;
    z-index: 30;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
.footer-col { min-width: 0; }
.site-footer .widget { color: #C9D4E0; margin-bottom: 24px; }
.site-footer .widget p,
.site-footer .textwidget { color: #C9D4E0; font-size: 0.95rem; }
.site-footer .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.site-footer .widget-title::before { content: ""; flex: 0 0 20px; height: 2px; background: var(--sg-red); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 6px 0; color: #C9D4E0; }
.site-footer a {
    color: #E4E9EF;
    text-decoration-color: var(--sg-red);
    text-decoration-thickness: 1px;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: #FFFFFF; text-decoration-color: #FFFFFF; text-decoration-thickness: 2px; }
.site-footer .post-date { color: var(--sg-soft); font-size: 0.8rem; }
.footer-bottom {
    margin-top: 32px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #8FA0B3; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 18px 22px;
    background: var(--sg-navy);
    color: #E4E9EF;
    border-top: 4px solid var(--sg-red);
    box-shadow: 0 2px 0 0 var(--sg-red);
}
.cookie-banner p { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 0.92rem; color: #E4E9EF; }
.cookie-banner a { color: #fff; }
.cookie-banner a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .card:hover { transform: none; }
}

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
    h1 { font-size: 2.75rem; }
    .page-title { font-size: 2.75rem; }
    .entry { padding: 36px 36px; }
    .entry-title { font-size: 2.6rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero h1 { font-size: 2.8rem; }
    .step { grid-template-columns: 96px minmax(0, 1fr); }
    .step-num { font-size: 3.4rem; }
    .stats { padding: 40px 32px; }
    .stat { padding: 0 24px; }
    .stat-num { font-size: 3rem; }
    .sg-title { font-size: 1.85rem; }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-navigation .nav-next { grid-column: 2; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notfound { padding: 48px 44px; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
    h1 { font-size: 3.25rem; }
    .page-title { font-size: 3.25rem; }
    .entry-title { font-size: 3.25rem; }
    .entry { padding: 44px 48px; }
    .hero h1 { font-size: 3.25rem; }
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
    .steps-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
    .sg-title { font-size: 2.1rem; }

    .nav-toggle { display: none; }
    .primary-nav { display: block; flex: 0 1 auto; }
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 22px;
        padding: 0;
        border-top: 0;
    }
    .nav-list a { padding: 8px 0; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        gap: 0;
    }
    .layout-single .card-grid,
    .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 48px 16px; }
    .stat:nth-child(odd) { border-left: 1px solid var(--sg-line); }
    .stat:first-child { border-left: 0; }
    .stat-num { font-size: 3.4rem; }

    .topic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .topic-name { font-size: 0.82rem; }

    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}

/* ---------- ≤ 600px ---------- */
@media (max-width: 600px) {
    .sg-shell--front { width: 92%; }
    .layout-single .content-area { width: 100%; }
    .fs { padding: 56px 0; }
    .hero { padding: 56px 0 64px; }
    .hero-text { padding-left: 18px; }
    .sg-divider { margin-bottom: 40px; }
    .entry { padding: 24px 18px; }
    .empty-state { padding: 22px 18px 18px; }
    .stats { padding: 28px 14px; }
    .stat { padding: 0 12px; }
    .stat-num { font-size: 2rem; }
    .sidebar .widget { padding: 20px 18px 18px; }
    .comment-respond { padding: 22px 18px; }
    .comment-card { padding: 18px 16px; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 16px; }
    .search-form { flex-wrap: wrap; }
    .search-form .search-submit { flex: 1 1 100%; }
    .notfound { padding: 28px 18px; }
    .alignleft, .alignright { float: none; margin: 0 0 1em; }
}
