/*
Theme Name: Whisk
Theme URI: #
Author: Theme Developer
Author URI: #
Description: Warm storytelling blog theme with cozy atmosphere and focus on readability. Perfect for personal blogs, travel journals, and lifestyle content.
Version: 1.2.1*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Warm Earth Palette */
    --whisk-color-primary: #a85d32;
    --whisk-color-primary-dark: #8b4a28;
    --whisk-color-primary-light: #c97a4f;
    --whisk-color-secondary: #5d7a5d;
    --whisk-color-accent: #d4a574;

    /* Backgrounds */
    --whisk-bg-cream: #faf6f1;
    --whisk-bg-warm: #f5efe8;
    --whisk-bg-card: #ffffff;
    --whisk-bg-footer: #3d3229;

    /* Text */
    --whisk-text-dark: #2d2418;
    --whisk-text-body: #4a3f35;
    --whisk-text-muted: #7a6f64;
    --whisk-text-light: #a89b8f;
    --whisk-text-white: #faf6f1;

    /* Borders */
    --whisk-border-light: #e8e0d6;
    --whisk-border-warm: #d9cfc3;

    /* Typography */
    --whisk-font-heading: 'Playfair Display', Georgia, serif;
    --whisk-font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --whisk-font-accent: 'Cormorant Garamond', Georgia, serif;

    /* Sizing */
    --whisk-container-width: 1200px;
    --whisk-content-width: 720px;
    --whisk-sidebar-width: 320px;
    --whisk-gap: 2rem;
    --whisk-radius: 8px;
    --whisk-radius-lg: 16px;

    /* Transitions */
    --whisk-transition: 0.3s ease;
    --whisk-shadow: 0 4px 20px rgba(45, 36, 24, 0.08);
    --whisk-shadow-hover: 0 8px 30px rgba(45, 36, 24, 0.12);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
    margin: 0;
    font-family: var(--whisk-font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--whisk-text-body);
    background-color: var(--whisk-bg-cream);
    overflow-x: hidden;
}

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

a {
    color: var(--whisk-color-primary);
    text-decoration: none;
    transition: color var(--whisk-transition);
}

a:hover,
a:focus {
    color: var(--whisk-color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--whisk-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--whisk-text-dark);
    margin: 0 0 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.5rem;
}

ul, ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.whisk-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    border-radius: var(--whisk-radius);
    font-weight: 600;
}

.whisk-skip-link:focus {
    top: 10px;
    color: var(--whisk-text-white);
}

.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;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.whisk-container {
    max-width: var(--whisk-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.whisk-main-wrapper {
    display: grid;
    grid-template-columns: 1fr var(--whisk-sidebar-width);
    gap: var(--whisk-gap);
    padding: 3rem 0;
}

.whisk-main-wrapper.whisk-no-sidebar {
    grid-template-columns: 1fr;
    max-width: var(--whisk-content-width);
    margin: 0 auto;
}

.whisk-main-wrapper.whisk-sidebar-left {
    grid-template-columns: var(--whisk-sidebar-width) 1fr;
}

.whisk-main-wrapper.whisk-sidebar-left .whisk-sidebar {
    order: -1;
}

.whisk-content-area {
    min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.whisk-site-header {
    background: var(--whisk-bg-card);
    border-bottom: 1px solid var(--whisk-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.whisk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.whisk-site-branding {
    flex-shrink: 0;
}

.whisk-site-branding .custom-logo,
.whisk-site-branding img {
    max-height: 40px;
    width: auto;
    display: block;
}

.whisk-site-title {
    font-family: var(--whisk-font-accent);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.whisk-site-title a {
    color: var(--whisk-text-dark);
}

.whisk-site-title a:hover {
    color: var(--whisk-color-primary);
}

.whisk-site-description {
    font-size: 0.875rem;
    color: var(--whisk-text-muted);
    margin: 0.25rem 0 0;
    font-style: italic;
}

/* Navigation */
.whisk-main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.whisk-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.whisk-nav-menu li {
    position: relative;
}

.whisk-nav-menu > li > a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--whisk-text-body);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--whisk-radius);
    transition: all var(--whisk-transition);
}

.whisk-nav-menu > li > a:hover,
.whisk-nav-menu > li.current-menu-item > a {
    background: var(--whisk-bg-warm);
    color: var(--whisk-color-primary);
}

/* Submenu */
.whisk-nav-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.pbn-submenu-toggle { display: none; background: transparent; border: none; color: inherit; cursor: pointer; padding: 4px; }
@media (min-width: 769px) {
    .whisk-nav-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--whisk-bg-card); border-radius: var(--whisk-radius); box-shadow: var(--whisk-shadow-hover); padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s; z-index: 1000; }
    .whisk-nav-menu > li:hover > .sub-menu, .whisk-nav-menu > li:focus-within > .sub-menu, .whisk-nav-menu > li.is-open > .sub-menu,
    .whisk-nav-menu .sub-menu li:hover > .sub-menu, .whisk-nav-menu .sub-menu li:focus-within > .sub-menu, .whisk-nav-menu .sub-menu li.is-open > .sub-menu {
        opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0s;
    }
    .whisk-nav-menu .sub-menu a { display: block; padding: 0.5rem 1rem; color: var(--whisk-text-body); font-size: 0.9rem; white-space: nowrap; }
    .whisk-nav-menu .sub-menu a:hover { background: var(--whisk-bg-warm); color: var(--whisk-color-primary); }
    .whisk-nav-menu .sub-menu .sub-menu { top: 0; left: 100%; }
    .whisk-nav-menu li.menu-item-has-children > a::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; }
    .whisk-nav-menu .sub-menu li.menu-item-has-children > a::after { border-left: 4px solid currentColor; border-right: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; float: right; margin-top: 6px; }
}

/* Mobile Menu Toggle */
.whisk-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--whisk-text-dark);
}

.whisk-menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.whisk-menu-close {
    display: none;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.whisk-hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--whisk-bg-warm) 0%, var(--whisk-bg-cream) 100%);
}

.whisk-featured-section {
    padding: 2rem 0;
}
.whisk-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .whisk-featured-grid {
        grid-template-columns: 1fr;
    }
}

.whisk-hero-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.whisk-hero-image {
    border-radius: var(--whisk-radius-lg);
    overflow: hidden;
    box-shadow: var(--whisk-shadow);
}

.whisk-hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform var(--whisk-transition);
}

.whisk-hero-post:hover .whisk-hero-image img {
    transform: scale(1.03);
}

.whisk-hero-content {
    padding: 1rem 0;
}

.whisk-hero-category {
    display: inline-block;
    font-family: var(--whisk-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--whisk-color-primary);
    background: rgba(168, 93, 50, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.whisk-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.whisk-hero-title a {
    color: var(--whisk-text-dark);
}

.whisk-hero-title a:hover {
    color: var(--whisk-color-primary);
}

.whisk-hero-excerpt {
    font-size: 1.1rem;
    color: var(--whisk-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.whisk-hero-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--whisk-color-primary);
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--whisk-color-primary);
    border-radius: var(--whisk-radius);
    margin-bottom: 1.5rem;
    transition: all var(--whisk-transition);
}

.whisk-hero-read-more:hover {
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
}

.whisk-hero-read-more svg {
    width: 18px;
    height: 18px;
    transition: transform var(--whisk-transition);
}

.whisk-hero-read-more:hover svg {
    transform: translateX(3px);
}

.whisk-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--whisk-text-light);
}

.whisk-hero-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whisk-hero-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ==========================================================================
   Post Grid
   ========================================================================== */

.whisk-section-title {
    font-family: var(--whisk-font-accent);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--whisk-text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--whisk-border-warm);
    position: relative;
}

.whisk-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--whisk-color-primary);
}

.whisk-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.whisk-post-grid.grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.whisk-post-grid.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.whisk-post-grid.grid-list {
    grid-template-columns: 1fr;
}

.whisk-post-grid.grid-list .whisk-post-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.whisk-post-grid.grid-list .whisk-post-card .whisk-card-thumbnail {
    flex: 0 0 280px;
}

.whisk-post-grid.grid-list .whisk-post-card .whisk-card-content {
    flex: 1;
}

/* Post Card */
.whisk-post-card {
    background: var(--whisk-bg-card);
    border-radius: var(--whisk-radius-lg);
    overflow: hidden;
    box-shadow: var(--whisk-shadow);
    transition: all var(--whisk-transition);
    display: flex;
    flex-direction: column;
}

.whisk-post-card:hover {
    box-shadow: var(--whisk-shadow-hover);
    transform: translateY(-4px);
}

.whisk-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.whisk-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--whisk-transition);
}

.whisk-post-card:hover .whisk-card-image img {
    transform: scale(1.05);
}

.whisk-card-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--whisk-text-white);
    background: var(--whisk-color-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.whisk-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.whisk-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.whisk-card-title a {
    color: var(--whisk-text-dark);
}

.whisk-card-title a:hover {
    color: var(--whisk-color-primary);
}

.whisk-card-excerpt {
    font-size: 0.95rem;
    color: var(--whisk-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Sticky Post */
.whisk-sticky-badge {
    display: inline-block;
    background: var(--whisk-color-primary);
    color: #fff;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.whisk-sticky-post {
    border-left: none;
}
.whisk-hero-post {
    position: relative;
}
.whisk-hero-post .whisk-hero-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    border-radius: 3px;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* Read More Link */
.whisk-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--whisk-color-primary);
    margin-bottom: 1rem;
    transition: all var(--whisk-transition);
}

.whisk-read-more:hover {
    color: var(--whisk-color-primary-dark);
    gap: 0.6rem;
}

.whisk-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--whisk-transition);
}

.whisk-read-more:hover svg {
    transform: translateX(3px);
}

.whisk-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--whisk-text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--whisk-border-light);
    margin-top: auto;
}

.whisk-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.whisk-card-date svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.whisk-single-header {
    padding: 3rem 0;
    background: var(--whisk-bg-warm);
    text-align: center;
}

.whisk-single-header .whisk-container {
    max-width: 800px;
}

.whisk-single-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--whisk-color-primary);
    margin-bottom: 1rem;
}

.whisk-single-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.whisk-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--whisk-text-muted);
    font-size: 0.95rem;
}

.whisk-single-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whisk-single-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.whisk-single-featured {
    margin: -2rem auto 2rem;
    max-width: 900px;
    padding: 0 1.5rem;
}

.whisk-single-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--whisk-radius-lg);
    box-shadow: var(--whisk-shadow-hover);
}

/* Post Content */
.whisk-post-content {
    font-size: 1.1rem;
    line-height: 1.85;
}

.whisk-post-content p {
    margin-bottom: 1.75rem;
}

.whisk-post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.whisk-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.whisk-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--whisk-bg-warm);
    border-left: 4px solid var(--whisk-color-primary);
    border-radius: 0 var(--whisk-radius) var(--whisk-radius) 0;
    font-family: var(--whisk-font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--whisk-text-dark);
}

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

.whisk-post-content img {
    border-radius: var(--whisk-radius);
    margin: 2rem 0;
}

.whisk-post-content a {
    text-decoration: underline;
    text-decoration-color: var(--whisk-color-accent);
    text-underline-offset: 3px;
}

.whisk-post-content ul,
.whisk-post-content ol {
    margin-bottom: 1.75rem;
}

.whisk-post-content li {
    margin-bottom: 0.5rem;
}
.whisk-post-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; overflow-x: auto; display: block; }
.whisk-post-content thead { background: var(--whisk-bg-warm, #f4f4f4); }
.whisk-post-content th, .whisk-post-content td { padding: 0.75rem 1rem; border: 1px solid var(--whisk-border-light, #ddd); text-align: left; vertical-align: top; }
.whisk-post-content th { font-weight: 700; white-space: nowrap; }
.whisk-post-content tr:nth-child(even) { background: var(--whisk-bg-warm, #f8f8f8); }

/* Post Tags */
.whisk-post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--whisk-border-light);
}

.whisk-post-tags span {
    font-weight: 600;
    color: var(--whisk-text-dark);
    margin-right: 0.5rem;
}

.whisk-post-tags a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    background: var(--whisk-bg-warm);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--whisk-text-muted);
}

.whisk-post-tags a:hover {
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
}

/* Post Navigation */
.whisk-post-navigation {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.whisk-post-nav-link {
    padding: 1.5rem;
    background: var(--whisk-bg-warm);
    border-radius: var(--whisk-radius);
    transition: all var(--whisk-transition);
}

.whisk-post-nav-link:hover {
    background: var(--whisk-bg-card);
    box-shadow: var(--whisk-shadow);
}

.whisk-post-nav-link.whisk-nav-next {
    text-align: right;
}

.whisk-post-nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--whisk-text-light);
    margin-bottom: 0.5rem;
}

.whisk-post-nav-title {
    font-family: var(--whisk-font-heading);
    font-size: 1.1rem;
    color: var(--whisk-text-dark);
    line-height: 1.4;
}

/* Related Posts */
.whisk-related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--whisk-border-light);
}

.whisk-related-title {
    font-family: var(--whisk-font-accent);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.whisk-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Author Box */
.whisk-author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--whisk-bg-warm);
    border-radius: var(--whisk-radius-lg);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.whisk-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.whisk-author-info {
    flex: 1;
}

.whisk-author-name {
    font-family: var(--whisk-font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.whisk-author-bio {
    font-size: 0.95rem;
    color: var(--whisk-text-muted);
    margin: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.whisk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.whisk-widget {
    background: var(--whisk-bg-card);
    padding: 1.5rem;
    border-radius: var(--whisk-radius-lg);
    box-shadow: var(--whisk-shadow);
}

.whisk-widget-title {
    font-family: var(--whisk-font-accent);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--whisk-text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--whisk-border-warm);
    position: relative;
}

.whisk-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--whisk-color-primary);
}

.whisk-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whisk-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--whisk-border-light);
}

.whisk-widget li:last-child {
    border-bottom: none;
}

.whisk-widget a {
    color: var(--whisk-text-body);
    font-size: 0.95rem;
}

.whisk-widget a:hover {
    color: var(--whisk-color-primary);
}

/* Search Widget */
.whisk-search-form {
    display: flex;
    gap: 0.5rem;
}

.whisk-search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--whisk-border-warm);
    border-radius: var(--whisk-radius);
    font-size: 0.95rem;
    background: var(--whisk-bg-cream);
    transition: border-color var(--whisk-transition);
}

.whisk-search-field:focus {
    outline: none;
    border-color: var(--whisk-color-primary);
}

.whisk-search-submit {
    padding: 0.75rem 1rem;
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
    border: none;
    border-radius: var(--whisk-radius);
    cursor: pointer;
    transition: background var(--whisk-transition);
}

.whisk-search-submit:hover {
    background: var(--whisk-color-primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.whisk-site-footer {
    background: var(--whisk-bg-footer);
    color: var(--whisk-text-white);
    padding: 2rem 0 0;
    margin-top: 2rem;
}

.whisk-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.whisk-footer-widget .whisk-widget-title {
    color: var(--whisk-text-white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.whisk-footer-widget .whisk-widget-title::after {
    background: var(--whisk-color-accent);
}

.whisk-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whisk-footer-widget li {
    padding: 0.4rem 0;
}

.whisk-footer-widget a {
    color: rgba(250, 246, 241, 0.7);
    font-size: 0.95rem;
}

.whisk-footer-widget a:hover {
    color: var(--whisk-color-accent);
}

.whisk-footer-bottom {
    padding: 1.5rem 5rem 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: rgba(250, 246, 241, 0.6);
}

.whisk-footer-info {
    flex: 1;
    min-width: 200px;
}

.whisk-footer-info .whisk-copyright {
    margin: 0;
}

.whisk-footer-description {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.whisk-footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.whisk-footer-menu a {
    color: rgba(250, 246, 241, 0.6);
}

.whisk-footer-menu a:hover {
    color: var(--whisk-color-accent);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.whisk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--whisk-border-light);
}

.whisk-pagination a,
.whisk-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--whisk-bg-card);
    border: 1px solid var(--whisk-border-warm);
    border-radius: var(--whisk-radius);
    font-size: 0.95rem;
    color: var(--whisk-text-body);
    transition: all var(--whisk-transition);
}

.whisk-pagination a:hover {
    background: var(--whisk-color-primary);
    border-color: var(--whisk-color-primary);
    color: var(--whisk-text-white);
}

.whisk-pagination .current {
    background: var(--whisk-color-primary);
    border-color: var(--whisk-color-primary);
    color: var(--whisk-text-white);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.whisk-breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--whisk-text-muted);
}

.whisk-breadcrumbs a {
    color: var(--whisk-text-muted);
}

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

.whisk-breadcrumbs .whisk-breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.whisk-comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--whisk-border-light);
}

.whisk-comments-title {
    font-family: var(--whisk-font-accent);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.whisk-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whisk-comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--whisk-border-light);
}

.whisk-comment-body {
    display: flex;
    gap: 1rem;
}

.whisk-comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.whisk-comment-content {
    flex: 1;
}

.whisk-comment-author {
    font-weight: 600;
    color: var(--whisk-text-dark);
    margin-bottom: 0.25rem;
}

.whisk-comment-date {
    font-size: 0.85rem;
    color: var(--whisk-text-light);
    margin-bottom: 0.75rem;
}

.whisk-comment-text p {
    margin: 0;
}

.whisk-comment-reply a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comment Form */
.whisk-comment-form {
    margin-top: 2rem;
}

.whisk-comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--whisk-text-dark);
}

.whisk-comment-form input[type="text"],
.whisk-comment-form input[type="email"],
.whisk-comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--whisk-border-warm);
    border-radius: var(--whisk-radius);
    font-size: 1rem;
    font-family: var(--whisk-font-body);
    margin-bottom: 1rem;
    transition: border-color var(--whisk-transition);
}

.whisk-comment-form input:focus,
.whisk-comment-form textarea:focus {
    outline: none;
    border-color: var(--whisk-color-primary);
}

.whisk-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.whisk-comment-form input[type="submit"] {
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--whisk-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--whisk-transition);
}

.whisk-comment-form input[type="submit"]:hover {
    background: var(--whisk-color-primary-dark);
}

/* ==========================================================================
   Archive & Search
   ========================================================================== */

.whisk-archive-header {
    padding: 3rem 0;
    background: var(--whisk-bg-warm);
    margin-bottom: 2rem;
}

.whisk-archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.whisk-archive-description {
    color: var(--whisk-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.whisk-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.whisk-subcats-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--whisk-bg-card); border: 1px solid var(--whisk-border-light); border-radius: 999px; font-size: 0.82rem; color: var(--whisk-text-body); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.whisk-subcats-item:hover, .whisk-subcats-item:focus { background: var(--whisk-color-primary); color: #fff; border-color: var(--whisk-color-primary); }
.whisk-subcats-count { font-size: 0.75rem; opacity: 0.7; }

/* Search Results */
.whisk-search-header {
    padding: 3rem 0;
    background: var(--whisk-bg-warm);
    margin-bottom: 2rem;
    text-align: center;
}

.whisk-search-title {
    font-size: 2rem;
}

.whisk-search-title span {
    color: var(--whisk-color-primary);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.whisk-error-page {
    text-align: center;
    padding: 5rem 0;
}

.whisk-error-code {
    font-family: var(--whisk-font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--whisk-border-warm);
    line-height: 1;
    margin-bottom: 1rem;
}

.whisk-error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.whisk-error-message {
    font-size: 1.1rem;
    color: var(--whisk-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.whisk-error-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
    border-radius: var(--whisk-radius);
    font-weight: 600;
    transition: background var(--whisk-transition);
}

.whisk-error-button:hover {
    background: var(--whisk-color-primary-dark);
    color: var(--whisk-text-white);
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

#whisk-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--whisk-color-primary);
    color: var(--whisk-text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--whisk-shadow);
    transition: all var(--whisk-transition);
    z-index: 99;
}

#whisk-scroll-top:hover {
    background: var(--whisk-color-primary-dark);
    transform: translateY(-3px);
}

#whisk-scroll-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --whisk-sidebar-width: 280px;
    }

    .whisk-hero-post {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .whisk-hero-title {
        font-size: 2rem;
    }

    .whisk-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .whisk-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .whisk-main-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .whisk-sidebar {
        display: none;
    }

    /* Mobile Navigation */
    .whisk-menu-toggle {
        display: block;
        position: relative;
        z-index: 1000;
    }

    .whisk-main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--whisk-bg-card);
        box-shadow: var(--whisk-shadow-hover);
        padding: 4rem 1.5rem 2rem;
        transition: right var(--whisk-transition);
        z-index: 999;
    }

    .whisk-menu-toggle.whisk-toggle-active {
        pointer-events: none;
        opacity: 0;
    }

    .whisk-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--whisk-text-dark);
    }

    .whisk-menu-close svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    .whisk-main-navigation.whisk-nav-open {
        right: 0;
    }

    .whisk-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .whisk-nav-menu > li > a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--whisk-border-light);
    }

    .whisk-nav-menu li { position: relative; }
    .whisk-nav-menu .sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0; background: var(--whisk-bg-warm); }
    .whisk-nav-menu li.is-open > .sub-menu { max-height: 3000px; }
    .whisk-nav-menu .sub-menu > li > a { padding-left: 1.5rem; font-size: 0.9rem; }
    .whisk-nav-menu .sub-menu .sub-menu > li > a { padding-left: 2.5rem; }
    .whisk-nav-menu li.menu-item-has-children > a { padding-right: 48px; }
    .pbn-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; position: absolute; right: 0; top: 4px; transition: transform 0.2s ease; color: var(--whisk-color-primary); }
    .whisk-nav-menu li.is-open > .pbn-submenu-toggle { transform: rotate(180deg); }

    /* Grid Adjustments */
    .whisk-post-grid,
    .whisk-post-grid.grid-3col,
    .whisk-post-grid.grid-2col,
    .whisk-post-grid.grid-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .whisk-post-grid.grid-list .whisk-post-card {
        flex-direction: column;
    }

    .whisk-footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .whisk-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-right: 0;
    }

    .whisk-footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .whisk-single-title {
        font-size: 2rem;
    }

    .whisk-single-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .whisk-post-navigation {
        grid-template-columns: 1fr;
    }

    .whisk-related-grid {
        grid-template-columns: 1fr;
    }

    .whisk-author-box {
        flex-direction: column;
        text-align: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .whisk-error-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .whisk-container {
        padding: 0 1rem;
    }

    .whisk-hero-section {
        padding: 2rem 0;
    }

    .whisk-hero-title {
        font-size: 1.75rem;
    }

    .whisk-card-body {
        padding: 1rem;
    }

    .whisk-card-title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .whisk-site-header,
    .whisk-sidebar,
    .whisk-site-footer,
    .whisk-post-navigation,
    .whisk-related-posts,
    .whisk-comments-area,
    #whisk-scroll-top {
        display: none;
    }

    .whisk-main-wrapper {
        display: block;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   Structural Diversification — card_style
   ========================================================================== */

/* card_style: horizontal */
body.whisk-card-horizontal .whisk-post-grid {
    grid-template-columns: 1fr;
}
body.whisk-card-horizontal .whisk-post-card {
    display: flex;
    flex-direction: row;
}
body.whisk-card-horizontal .whisk-card-image {
    width: 40%;
    flex-shrink: 0;
    aspect-ratio: auto;
}
body.whisk-card-horizontal .whisk-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.whisk-card-horizontal .whisk-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    body.whisk-card-horizontal .whisk-post-card {
        flex-direction: column;
    }
    body.whisk-card-horizontal .whisk-card-image {
        width: 100%;
    }
}

/* card_style: overlay */
body.whisk-card-overlay .whisk-post-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}
body.whisk-card-overlay .whisk-card-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    aspect-ratio: auto;
}
body.whisk-card-overlay .whisk-card-image img {
    width: 100%; height: 100%; object-fit: cover;
}
body.whisk-card-overlay .whisk-card-body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 280px; padding: 1.25rem;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.85) 100%);
}
body.whisk-card-overlay .whisk-card-title a,
body.whisk-card-overlay .whisk-card-meta,
body.whisk-card-overlay .whisk-card-excerpt { color: #fff; }
body.whisk-card-overlay .whisk-card-category {
    position: static; align-self: flex-start; margin-bottom: 8px;
}

/* card_style: text */
body.whisk-card-text .whisk-card-image { display: none; }
body.whisk-card-text .whisk-post-card {
    border-left: 3px solid var(--whisk-color-primary, #c9a96e);
    padding-left: 1rem;
}

/* ==========================================================================
   Structural Diversification — header_layout
   ========================================================================== */

/* header_layout: centered */
body.whisk-header-centered .whisk-header-inner {
    flex-direction: column; align-items: center; gap: 0.75rem;
}
body.whisk-header-centered .whisk-main-navigation { order: 2; }
body.whisk-header-centered .whisk-search-toggle,
body.whisk-header-centered .whisk-header-actions {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
}
@media (max-width: 768px) {
    body.whisk-header-centered .whisk-header-inner {
        flex-direction: row; align-items: center;
    }
    body.whisk-header-centered .whisk-search-toggle,
    body.whisk-header-centered .whisk-header-actions {
        position: static; transform: none;
    }
}

/* header_layout: stacked */
body.whisk-header-stacked .whisk-header-inner {
    flex-wrap: wrap; gap: 0;
}
body.whisk-header-stacked .whisk-site-branding {
    width: 100%; text-align: center; padding: 0.75rem 0 0.5rem;
}
body.whisk-header-stacked .whisk-main-navigation { flex: 1; justify-content: center; }
@media (max-width: 768px) {
    body.whisk-header-stacked .whisk-site-branding {
        width: auto; text-align: left; padding: 0;
    }
}

/* ==========================================================================
   Structural Diversification — featured_style
   ========================================================================== */

/* featured_style: hero */
body.whisk-featured-hero .whisk-hero-section { display: block; }
body.whisk-featured-hero .whisk-hero-section > *:not(:first-child) { display: none; }
body.whisk-featured-hero .whisk-hero-section > *:first-child {
    position: relative; min-height: 400px; overflow: hidden;
    border-radius: var(--whisk-radius-lg, 12px);
}
body.whisk-featured-hero .whisk-hero-section > *:first-child .whisk-hero-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
body.whisk-featured-hero .whisk-hero-section > *:first-child .whisk-hero-content {
    position: relative; z-index: 1; min-height: 400px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; background: linear-gradient(transparent 40%, rgba(0,0,0,0.8) 100%);
}
body.whisk-featured-hero .whisk-hero-section > *:first-child .whisk-hero-title a {
    color: #fff; font-size: 2rem;
}

/* featured_style: none */
body.whisk-featured-none .whisk-hero-section { display: none; }

/* ==========================================================================
   Structural Diversification — effect_card_hover
   ========================================================================== */

/* hover: glow */
body.whisk-hover-glow .whisk-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}
/* hover: shadow */
body.whisk-hover-shadow .whisk-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
/* hover: border */
body.whisk-hover-border .whisk-post-card:hover {
    border-color: var(--whisk-color-primary, #c9a96e);
    transform: none;
    box-shadow: none;
}
/* hover: none */
body.whisk-hover-none .whisk-post-card:hover {
    transform: none;
    box-shadow: none;
}
