/*
Theme Name: dds_vsemamuy.ru
Theme URI: https://vsemamuy.ru
Author: Елена Королёва
Author URI: https://vsemamuy.ru
Description: Семейный информационно-просветительский сайт для родителей с фокусом на здоровье, развитие ребенка, психологию семьи и практическую медицинскую и социальную грамотность.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dds_vsemamuy.ru
*/

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #FDF9F2;
    --color-text: #2B2A28;
    --color-accent: #7A9E7E;
    --color-accent-dark: #5F7E62;
    --color-sand: #D9C5A8;
    --color-terra: #B8655A;
    --color-link: #5D7A5C;
    --color-white: #FFFFFF;
    --color-bg-soft: #F7F0E6;
    --color-border-light: #EDE5D8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-soft: 0 2px 12px rgba(43,42,40,0.06);
    --shadow-card: 0 4px 20px rgba(43,42,40,0.07);
    --shadow-hover: 0 6px 24px rgba(43,42,40,0.12);
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
    --line-height-body: 1.7;
    --transition: 0.25s ease;
}

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

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

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
}

a:hover {
    text-decoration: underline;
    color: var(--color-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.15em; }

p {
    margin: 0 0 1em;
    line-height: var(--line-height-body);
}

ul, ol {
    margin: 0 0 1em 1.5em;
}

blockquote {
    border-left: 3px solid var(--color-sand);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--color-bg-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    border: 1px solid var(--color-sand);
    padding: 0.6em 1em;
    text-align: left;
}

th {
    background: var(--color-bg-soft);
    font-weight: 700;
}

/* === LAYOUT === */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5em;
}

.container-wide {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 1.5em;
}

.content-sidebar-wrap {
    display: flex;
    gap: 4%;
    padding: 2em 0;
}

.content-area {
    flex: 0 0 67%;
    min-width: 0;
}

.sidebar-area {
    flex: 0 0 27%;
    min-width: 0;
}

.content-area.full-width {
    flex: 0 0 85%;
    margin: 0 auto;
}

/* === HEADER === */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.8em 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(253,249,242,0.97);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.8em;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-block:hover {
    text-decoration: none;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.brand-logo-svg {
    height: 48px;
    width: 48px;
    display: block;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.15em;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
}

.brand-desc {
    font-size: 0.72em;
    color: #8C877D;
    line-height: 1.3;
    max-width: 320px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Header Nav */
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 0.3em;
    margin: 0;
    padding: 0;
}

.header-nav a {
    display: block;
    padding: 0.5em 1em;
    font-size: 0.95em;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    font-weight: 600;
}

.header-nav a:hover {
    background: var(--color-bg-soft);
    color: var(--color-accent);
    text-decoration: none;
}

.header-nav .current-menu-item a,
.header-nav .current_page_item a {
    color: var(--color-accent);
    background: rgba(122,158,126,0.08);
}

/* Calm Reading Toggle */
.calm-reading-toggle {
    display: flex;
    align-items: center;
    gap: 0.4em;
    cursor: pointer;
    font-size: 0.8em;
    color: #8C877D;
    padding: 0.4em 0.7em;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    background: transparent;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.calm-reading-toggle:hover {
    border-color: var(--color-sand);
    color: var(--color-text);
}

.calm-reading-toggle svg {
    width: 16px;
    height: 16px;
}

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

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* === CALM READING MODE === */
body.calm-reading .sidebar-area {
    display: none;
}

body.calm-reading .content-area {
    flex: 0 0 85%;
    margin: 0 auto;
    font-size: 1.1em;
}

body.calm-reading .site-main {
    background-image: radial-gradient(circle at 20% 30%, rgba(217,197,168,0.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(122,158,126,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 50% 50%, rgba(217,197,168,0.06) 0%, transparent 60%);
}

body.calm-reading .calm-reading-toggle {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 1em 0;
    font-size: 0.85em;
    color: #8C877D;
}

.breadcrumbs a {
    color: var(--color-link);
}

.breadcrumbs .sep {
    margin: 0 0.4em;
    color: var(--color-sand);
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8em;
    margin: 2em 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.04);
}

.card-category-badge {
    position: absolute;
    top: 0.8em;
    left: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    background: rgba(253,249,242,0.92);
    color: var(--color-text);
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.3em 0.7em;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.card-category-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2em 1.3em 1.4em;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.1em;
    line-height: 1.35;
    margin-bottom: 0.5em;
}

.card-title a {
    color: var(--color-text);
    text-decoration: none;
}

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

.card-excerpt {
    flex: 1;
    font-size: 0.9em;
    color: #5A5752;
    line-height: 1.6;
    margin-bottom: 0.8em;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.8em;
    border-top: 1px solid var(--color-border-light);
}

.card-reading-time {
    font-size: 0.8em;
    color: #8C877D;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.card-reading-time svg {
    width: 14px;
    height: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition);
}

.card-link:hover {
    gap: 0.5em;
    text-decoration: none;
}

.card-link svg {
    width: 16px;
    height: 16px;
}

/* No-thumbnail card */
.card-no-thumb .card-body {
    padding-top: 1.5em;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.7em 1.5em;
    border-radius: var(--radius-md);
    font-size: 0.95em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 16px rgba(95,126,98,0.25);
    color: var(--color-white);
    text-decoration: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: transparent;
    color: var(--color-text);
    padding: 0.6em 1.3em;
    border: 1.5px solid var(--color-sand);
    border-radius: var(--radius-md);
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(217,197,168,0.2);
    border-color: var(--color-accent);
    text-decoration: none;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.7em 1.5em;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: box-shadow var(--transition), background var(--transition);
    text-decoration: none;
}

.btn-download:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 16px rgba(95,126,98,0.25);
    text-decoration: none;
    color: var(--color-white);
}

/* === FRONT PAGE === */
.front-hero {
    text-align: center;
    padding: 3em 0 2em;
}

.front-hero h1 {
    font-size: 2em;
    margin-bottom: 0.4em;
    color: var(--color-text);
}

.front-hero p {
    font-size: 1.1em;
    color: #5A5752;
    max-width: 700px;
    margin: 0 auto 1.5em;
}

/* Calm Navigation Block */
.calm-nav-section {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: 2.5em 2em;
    margin: 2.5em 0;
    text-align: center;
}

.calm-nav-section h2 {
    margin-bottom: 0.3em;
}

.calm-nav-section > p {
    color: #8C877D;
    margin-bottom: 1.5em;
}

.calm-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.calm-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 1.8em;
    background: var(--color-white);
    border: 1.5px solid var(--color-sand);
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-size: 1em;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.calm-nav-btn:hover {
    border-color: var(--color-accent);
    background: rgba(122,158,126,0.06);
    color: var(--color-accent);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.calm-nav-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Front Sections */
.front-section {
    padding: 2.5em 0;
}

.front-section h2 {
    text-align: center;
    margin-bottom: 0.3em;
}

.front-section > .section-subtitle {
    text-align: center;
    color: #8C877D;
    margin-bottom: 2em;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2em;
    margin: 1.5em 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5em 1em;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.category-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transform: translateY(-2px);
}

.category-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0.7em;
    color: var(--color-accent);
}

.category-card span {
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.3;
}

/* Steps Block */
.steps-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

.step-item {
    text-align: center;
    padding: 1.5em;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 0.7em;
}

.step-item h3 {
    font-size: 1.05em;
    margin-bottom: 0.3em;
}

.step-item p {
    font-size: 0.9em;
    color: #5A5752;
}

/* Checklist Section */
.checklist-section {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: 2.5em 2em;
    margin: 2.5em 0;
    text-align: center;
}

.checklist-section h2 {
    margin-bottom: 0.3em;
}

.checklist-section > p {
    color: #5A5752;
    margin-bottom: 1.5em;
}

.checklist-items {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1.2em;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    border: 1px solid var(--color-border-light);
}

.checklist-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Wave Divider */
.wave-divider {
    height: 32px;
    overflow: hidden;
    margin: 0 -1.5em;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* === PAGINATION === */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    padding: 2em 0;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6em;
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-weight: 600;
    transition: all var(--transition);
}

.pagination-wrap a {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
}

.pagination-wrap a:hover {
    border-color: var(--color-accent);
    background: rgba(122,158,126,0.06);
    color: var(--color-accent);
    text-decoration: none;
}

.pagination-wrap .current {
    background: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.pagination-wrap .dots {
    color: #8C877D;
    border: none;
    background: transparent;
}

/* === SIDEBAR === */
.sidebar-area .widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5em;
    margin-bottom: 1.5em;
    box-shadow: var(--shadow-soft);
}

.sidebar-area .widget-title {
    font-family: var(--font-serif);
    font-size: 1.1em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-sand);
}

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

.sidebar-area .widget li {
    padding: 0.5em 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.sidebar-area .widget li a {
    font-size: 0.92em;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-text);
    color: rgba(253,249,242,0.8);
    padding: 3em 0 0;
    margin-top: 3em;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    padding-bottom: 2em;
}

.footer-widget-area .widget-title {
    font-family: var(--font-serif);
    font-size: 1.05em;
    color: var(--color-bg);
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(217,197,168,0.25);
}

.footer-widget-area .widget {
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-widget-area .widget p {
    margin-bottom: 0.7em;
}

.footer-widget-area a {
    color: rgba(253,249,242,0.7);
    transition: color var(--transition);
}

.footer-widget-area a:hover {
    color: var(--color-sand);
}

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

.footer-widget-area .widget li {
    padding: 0.35em 0;
}

.footer-disclaimer {
    font-size: 0.82em;
    color: rgba(253,249,242,0.5);
    padding: 1.5em 0;
    border-top: 1px solid rgba(253,249,242,0.08);
    text-align: center;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(253,249,242,0.08);
    padding: 1.2em 0;
    text-align: center;
    font-size: 0.85em;
    color: rgba(253,249,242,0.5);
}

/* === COMMENTS === */
.comments-section {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--color-border-light);
}

.comments-section h2 {
    font-size: 1.4em;
    margin-bottom: 1.5em;
}

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

.comment-list .comment {
    padding: 1.2em 0;
    border-bottom: 1px solid var(--color-border-light);
}

.comment-list .children {
    list-style: none;
    margin-left: 2em;
    padding: 0;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.95em;
}

.comment-date {
    font-size: 0.82em;
    color: #8C877D;
    margin-left: 0.5em;
}

.comment-text {
    margin-top: 0.5em;
    font-size: 0.95em;
}

.comment-reply-link {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--color-accent);
}

.comment-form label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
    font-size: 0.92em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 1em;
    border: 1.5px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95em;
    background: var(--color-white);
    transition: border-color var(--transition);
    margin-bottom: 1em;
}

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

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

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.7em 1.5em;
    border-radius: var(--radius-md);
    font-size: 0.95em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
}

.comment-form .submit:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 16px rgba(95,126,98,0.25);
}

/* === SEARCH FORM === */
.search-form {
    display: flex;
    gap: 0.5em;
    max-width: 480px;
}

.search-form .search-field {
    flex: 1;
    padding: 0.7em 1em;
    border: 1.5px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95em;
    background: var(--color-white);
    transition: border-color var(--transition);
}

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

.search-form .search-submit {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.7em 1.3em;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

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

/* === 404 PAGE === */
.page-404 {
    text-align: center;
    padding: 4em 0;
}

.page-404 h1 {
    font-size: 5em;
    color: var(--color-sand);
    margin-bottom: 0.1em;
}

.page-404 h2 {
    margin-bottom: 0.5em;
}

.page-404 p {
    color: #5A5752;
    margin-bottom: 2em;
}

.page-404 .search-form {
    margin: 0 auto 2em;
}

/* === SINGLE POST === */
.single-header {
    padding: 2em 0 1em;
}

.single-header h1 {
    font-size: 2em;
    margin-bottom: 0.4em;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 1.5em;
    color: #8C877D;
    font-size: 0.88em;
    margin-bottom: 1.5em;
}

.single-meta svg {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-right: 0.3em;
}

.single-content {
    padding-bottom: 2em;
}

.single-content img {
    border-radius: var(--radius-sm);
}

.single-content a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: rgba(93,122,92,0.3);
    text-underline-offset: 2px;
}

.single-content a:hover {
    text-decoration-color: var(--color-link);
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 2em 0;
}

.single-tags a {
    display: inline-block;
    padding: 0.3em 0.9em;
    border: 1.5px solid var(--color-sand);
    border-radius: var(--radius-md);
    font-size: 0.82em;
    color: var(--color-text);
    transition: all var(--transition);
}

.single-tags a:hover {
    background: rgba(217,197,168,0.2);
    border-color: var(--color-accent);
    text-decoration: none;
}

/* Post Navigation */
.post-nav {
    display: flex;
    gap: 1.5em;
    padding: 2em 0;
    border-top: 1px solid var(--color-border-light);
}

.post-nav-item {
    flex: 1;
    padding: 1em;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition);
}

.post-nav-item:hover {
    box-shadow: var(--shadow-soft);
}

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

.post-nav-label {
    font-size: 0.8em;
    color: #8C877D;
    margin-bottom: 0.3em;
    display: block;
}

.post-nav-item a {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.95em;
    color: var(--color-text);
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-text);
    color: rgba(253,249,242,0.85);
    padding: 1em 1.5em;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    font-size: 0.88em;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner p {
    margin: 0;
    max-width: 600px;
}

.cookie-banner a {
    color: var(--color-sand);
    text-decoration: underline;
}

.cookie-accept-btn {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.6em 1.5em;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.cookie-accept-btn:hover {
    background: var(--color-accent-dark);
}

.cookie-banner.hidden {
    display: none;
}

/* === PAGE HEADER === */
.page-header {
    padding: 2em 0 1em;
}

.page-header h1 {
    font-size: 1.9em;
}

.archive-description {
    color: #5A5752;
    font-size: 1em;
    margin-top: 0.3em;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border-light);
        box-shadow: var(--shadow-soft);
        padding: 1em;
        z-index: 999;
    }

    .header-nav.active ul {
        flex-direction: column;
        gap: 0;
    }

    .header-nav.active a {
        padding: 0.8em 1em;
        font-size: 1em;
        border-bottom: 1px solid var(--color-border-light);
    }

    .site-header .header-inner {
        position: relative;
    }

    .content-sidebar-wrap {
        flex-direction: column;
    }

    .content-area,
    .content-area.full-width,
    .sidebar-area {
        flex: none;
        width: 100%;
    }

    .container-wide {
        max-width: 100%;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .front-hero h1 {
        font-size: 1.6em;
    }

    .post-nav {
        flex-direction: column;
    }

    .brand-desc {
        display: none;
    }

    .calm-reading-toggle span {
        display: none;
    }
}

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

    .container {
        padding: 0 1em;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .calm-nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .calm-nav-btn {
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8em;
    }

    .btn-primary,
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 0.9em 1.5em;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 0.8em;
        text-align: center;
    }

    .steps-block {
        grid-template-columns: 1fr;
    }

    .single-header h1 {
        font-size: 1.5em;
    }

    .single-meta {
        flex-wrap: wrap;
        gap: 0.8em;
    }
}
