/*
Theme Name: DIY and Me (Master Editorial v5)
Theme URI: https://diyandme.com
Author: DIY & Me Editorial Team
Description: Bespoke senior-designer editorial publication for Home DIY Repairs, Renovation Pitfall Avoidance, and Surface Care.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: diyandme
*/

:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;           /* Slate 50 */
    --bg-subtle: #f1f5f9;        /* Slate 100 */
    --bg-dark: #0f172a;          /* Slate 900 */
    
    --text-primary: #0f172a;     /* Slate 900 */
    --text-body: #334155;        /* Slate 700 */
    --text-muted: #64748b;       /* Slate 500 */
    --text-light: #94a3b8;       /* Slate 400 */
    
    --border-color: #e2e8f0;     /* Slate 200 */
    --border-subtle: #f1f5f9;    /* Slate 100 */

    /* Curated Niche Accents */
    --accent-terracotta: #c2410c; /* Orange 700 - Warm Workshop Craft */
    --accent-terracotta-hover: #9a3412;
    --accent-terracotta-soft: #fff7ed;
    --accent-terracotta-border: #ffedd5;

    --accent-spruce: #0f766e;     /* Teal 700 - Practical Repairs */
    --accent-spruce-soft: #f0fdfa;
    --accent-spruce-border: #ccfbf1;

    --accent-alert: #b91c1c;      /* Red 700 - Pitfall Radar */
    --accent-alert-soft: #fef2f2;
    --accent-alert-border: #fee2e2;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Lora', Georgia, serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

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

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 1. TOP UTILITY STRIP ==================== */
.top-strip {
    background: #0f172a;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.top-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-strip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.top-strip-bullet {
    width: 6px;
    height: 6px;
    background: #f97316;
    border-radius: 50%;
    display: inline-block;
}

.top-strip-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-strip-links a {
    color: #cbd5e1;
    font-size: 11px;
}

.top-strip-links a:hover {
    color: #ffffff;
}

/* ==================== 2. MAIN HEADER & NAVIGATION ==================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.brand-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title-group {
    display: flex;
    flex-direction: column;
}

.brand-main-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-main-text span {
    color: var(--accent-terracotta);
}

.brand-sub-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Nav & Search Combo */
.header-right-zone {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    letter-spacing: -0.01em;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Perfect alignment for active line touching header border */
.nav-link.active {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-terracotta);
}

.nav-link.pitfall-link {
    color: var(--accent-alert);
    font-weight: 700;
}

.nav-link.pitfall-link .nav-alert-tag {
    background: var(--accent-alert-soft);
    color: var(--accent-alert);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    border: 1px solid var(--accent-alert-border);
}

/* Header Search */
.header-search-wrap {
    position: relative;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    width: 200px;
    transition: width 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search-form:focus-within {
    width: 250px;
    border-color: var(--text-primary);
    background: #ffffff;
}

.header-search-form svg {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-right: 8px;
}

.header-search-input {
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-family: inherit;
}

.header-search-input::placeholder {
    color: var(--text-light);
}

/* ==================== 3. HERO EDITORIAL GRID (BALANCED SPLIT) ==================== */
.hero-editorial-section {
    padding: 36px 0 48px;
    border-bottom: 1px solid var(--border-color);
}

.hero-layout-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 36px;
    align-items: stretch; /* Both columns stretch equally to prevent whitespace */
}

/* Left Hero Feature Card */
.hero-lead-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lead-media-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

.lead-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-lead-card:hover .lead-media-wrap img {
    transform: scale(1.03);
}

.lead-cat-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-terracotta);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lead-content-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lead-meta-row {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-terracotta);
    margin-bottom: 8px;
}

.lead-title-text {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.lead-title-text a:hover {
    color: var(--accent-terracotta);
}

.lead-excerpt-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.lead-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.btn-read-link {
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.btn-read-link:hover {
    color: var(--accent-terracotta);
    transform: translateX(2px);
}

.lead-badge-tested {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-spruce);
    background: var(--accent-spruce-soft);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-spruce-border);
}

/* Right Column: Curated Workshop Briefing (ZERO DEAD SPACE) */
.hero-sidebar-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 16px;
}

.sidebar-header-bar h3 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.sidebar-header-bar span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Top Spotlight Story in Right Column */
.sidebar-spotlight-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
    padding: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-spotlight-card:hover {
    background: #ffffff;
    border-color: var(--text-muted);
}

.spotlight-thumb {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-subtle);
}

.spotlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-terracotta);
    margin-bottom: 4px;
}

.spotlight-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.spotlight-title a:hover {
    color: var(--accent-terracotta);
}

.spotlight-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* 3 Compact Feed Items in Right Column */
.sidebar-compact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: space-between;
}

.sidebar-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sidebar-item-card:hover {
    border-color: var(--border-color);
    background: var(--bg-alt);
}

.sidebar-thumb-box {
    width: 72px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-subtle);
}

.sidebar-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info-box {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-cat-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-terracotta);
    margin-bottom: 2px;
    display: block;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-title a:hover {
    color: var(--accent-terracotta);
}

.sidebar-meta-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==================== 4. SECTION 1: PITFALL RADAR (DEDICATED CAUTION ZONE) ==================== */
.pitfall-radar-section {
    padding: 48px 0;
    background: #fafaf9;
    border-bottom: 1px solid var(--border-color);
}

.pitfall-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent-alert);
}

.pitfall-header-titles h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pitfall-header-tag {
    background: var(--accent-alert);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.pitfall-header-titles p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pitfall-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-alert);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pitfall-view-all:hover {
    color: #7f1d1d;
}

.pitfalls-2col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.pitfall-story-card {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-left: 5px solid var(--accent-alert);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pitfall-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.pitfall-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-risk {
    background: var(--accent-alert-soft);
    color: var(--accent-alert);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-alert-border);
}

.badge-cost-impact {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.pitfall-story-card h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.pitfall-story-card h3 a:hover {
    color: var(--accent-alert);
}

.pitfall-story-card p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.pitfall-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 12px;
}

.pitfall-meta-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.pitfall-read-link {
    font-weight: 700;
    color: var(--accent-alert);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pitfall-read-link:hover {
    color: #7f1d1d;
}

/* Homeowner Contract Defense Strip */
.contractor-rules-strip {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.rules-strip-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.rules-strip-items {
    display: flex;
    gap: 24px;
    flex-grow: 1;
}

.rule-pill {
    font-size: 12px;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rule-pill strong {
    color: var(--accent-alert);
}

/* ==================== 5. SECTION 2: THE REPAIR WORKBENCH ==================== */
.content-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-head-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-title-wrap h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-title-wrap p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.section-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-view-all:hover {
    color: var(--accent-terracotta-hover);
}

/* 2-Column Workshop Blueprint Grid */
.workbench-2col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.workbench-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.workbench-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-muted);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.workbench-thumb {
    width: 200px;
    min-height: 180px;
    background: var(--bg-alt);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.workbench-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.workbench-card:hover .workbench-thumb img {
    transform: scale(1.05);
}

.workbench-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.workbench-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-spruce {
    background: var(--accent-spruce-soft);
    color: var(--accent-spruce);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-spruce-border);
}

.workbench-info h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.workbench-info h3 a:hover {
    color: var(--accent-terracotta);
}

.workbench-excerpt {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}

.workbench-meta-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    font-size: 12px;
}

.workbench-meta-foot span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.workbench-link {
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.workbench-link:hover {
    color: var(--accent-terracotta);
}

/* ==================== 6. SECTION 3: RENOVATION & REMODELING BLUEPRINTS ==================== */
.reno-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.reno-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reno-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.reno-media-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-alt);
}

.reno-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.reno-card:hover .reno-media-box img {
    transform: scale(1.03);
}

.reno-cat-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.reno-body-box {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.reno-body-box h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.reno-body-box h3 a:hover {
    color: var(--accent-terracotta);
}

.reno-body-box p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.reno-foot-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    font-size: 12px;
}

.reno-read-btn {
    font-weight: 700;
    color: var(--accent-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reno-read-btn:hover {
    color: var(--accent-terracotta-hover);
}

/* ==================== 7. SECTION 4: SURFACE CARE & RESTORATION LAB ==================== */
.cleaning-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.clean-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.clean-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-muted);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.clean-thumb {
    width: 200px;
    min-height: 180px;
    background: var(--bg-alt);
    flex-shrink: 0;
    overflow: hidden;
}

.clean-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.clean-card:hover .clean-thumb img {
    transform: scale(1.05);
}

.clean-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.clean-info h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.clean-info h3 a:hover {
    color: var(--accent-terracotta);
}

.clean-excerpt {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}

.clean-foot-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    font-size: 12px;
}

/* ==================== 8. ROOM-BY-ROOM DIRECTORY MATRIX ==================== */
.room-matrix-section {
    padding: 48px 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
}

.room-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.room-matrix-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.room-matrix-panel:hover {
    transform: translateY(-2px);
    border-color: var(--accent-terracotta);
}

.matrix-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.matrix-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-terracotta);
}

.matrix-header h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.matrix-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matrix-list a {
    font-size: 12px;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.matrix-list a:hover {
    color: var(--accent-terracotta);
}

.matrix-list a span.arrow {
    color: var(--text-light);
    font-size: 11px;
}

/* ==================== 9. SINGLE POST TEMPLATE ==================== */
.single-post-container {
    max-width: 780px;
    margin: 36px auto 60px;
}

.post-breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-breadcrumbs a:hover {
    color: var(--text-primary);
}

.post-cat-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-terracotta);
    background: var(--accent-terracotta-soft);
    border: 1px solid var(--accent-terracotta-border);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 12px;
}

.post-hero-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

/* Dynamic Project Specs Box */
.project-summary-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.summary-col span.lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.summary-col span.val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

.post-featured-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.post-featured-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Article Body Typography */
.post-text-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-body);
}

.post-text-body p {
    margin-bottom: 24px;
}

.post-text-body h2 {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 38px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.post-text-body h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.post-text-body ul, .post-text-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-text-body li {
    margin-bottom: 8px;
}

/* Callout Boxes */
.takeaway-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-spruce);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 28px 0;
}

.takeaway-box h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tip-box {
    background: var(--accent-spruce-soft);
    border: 1px solid var(--accent-spruce-border);
    border-left: 4px solid var(--accent-spruce);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    color: #134e4a;
}

.warning-box {
    background: var(--accent-alert-soft);
    border: 1px solid var(--accent-alert-border);
    border-left: 4px solid var(--accent-alert);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    color: #991b1b;
}

/* Social Share Bar */
.social-share-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.share-btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease;
}

.share-btn-item:hover {
    opacity: 0.9;
}

.s-fb { background-color: #1877f2; }
.s-tw { background-color: #0f172a; }
.s-pin { background-color: #e60023; }
.s-li { background-color: #0a66c2; }
.s-wa { background-color: #25d366; }
.s-copy { background-color: #475569; }

/* ==================== 10. PAGE & ARCHIVES ==================== */
.page-article-container {
    max-width: 800px;
    margin: 36px auto 60px;
}

.page-head {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
    margin-bottom: 28px;
}

.page-head-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-body);
}

.page-article-body p {
    margin-bottom: 24px;
}

.page-article-body h2 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
}

.page-article-body h3 {
    font-size: 17px;
    font-weight: 800;
    margin-top: 26px;
    margin-bottom: 12px;
}

.page-article-body ul, .page-article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.page-article-body li {
    margin-bottom: 8px;
}

.archive-top-bar {
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 36px;
    background: var(--bg-alt);
}

.archive-badge-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-terracotta);
    margin-bottom: 6px;
    display: inline-block;
    letter-spacing: 0.05em;
}

.archive-main-heading {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.archive-desc-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 720px;
}

/* ==================== 11. SITE FOOTER ==================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 56px 0 24px;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

.footer-grid-4col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-block h4 {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-block p {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu-list a {
    font-size: 13px;
    color: #cbd5e1;
    transition: color 0.15s ease;
}

.footer-menu-list a:hover {
    color: #ffffff;
}

.footer-sub-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 12px;
    color: #64748b;
}

/* ==================== 12. RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 1024px) {
    .hero-layout-grid {
        grid-template-columns: 1fr;
    }
    .pitfalls-2col-grid, .workbench-2col-grid, .reno-showcase-grid, .cleaning-lab-grid {
        grid-template-columns: 1fr;
    }
    .room-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .top-strip {
        display: none;
    }
    .primary-nav {
        display: none;
    }
    .header-search-form {
        display: none;
    }
    .workbench-card, .clean-card {
        flex-direction: column;
    }
    .workbench-thumb, .clean-thumb {
        width: 100%;
        height: 160px;
    }
    .contractor-rules-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .rules-strip-items {
        flex-direction: column;
        gap: 10px;
    }
    .project-summary-box {
        grid-template-columns: 1fr;
    }
    .room-matrix-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid-4col {
        grid-template-columns: 1fr;
    }
    .footer-sub-strip {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
