/*
Theme Name: dds_jakubbujny.com
Theme URI: https://jakubbujny.com
Author: Якуб Буйны
Author URI: https://jakubbujny.com
Description: Информационно-справочный сайт о правилах дорожного движения в России с акцентом на понятные разборы, официальные формулировки, типовые дорожные ситуации, знаки, разметку, обязанности водителя и связанные цифровые сервисы.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: dds_jakubbujny_com
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1F2A3E;
    background: #F8F9FA;
    overflow-x: hidden;
}

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

a {
    color: #1E5F8E;
    text-decoration: none;
    transition: color 0.18s ease;
}
a:hover { color: #0F4468; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #1F2A3E;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.05rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

code, pre, .official-quote {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 0.92em;
}

blockquote {
    margin: 1.4em 0;
    padding: 0.9em 1.2em;
    border-left: 4px solid #1E5F8E;
    background: #F1F3F5;
    color: #1F2A3E;
    border-radius: 0 6px 6px 0;
}

hr { border: none; border-top: 1px solid #E2E6EA; margin: 2em 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid #E2E6EA;
}
th, td {
    border: 1px solid #E2E6EA;
    padding: 0.7em 0.95em;
    text-align: left;
    vertical-align: top;
}
th { background: #F1F3F5; font-weight: 600; }

/* ============================================================
   2. LAYOUT — SHELL
   ============================================================ */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ============================================================
   3. HEADER
   ============================================================ */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E6EA;
    padding: 18px 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.brand-logo-svg {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #1E5F8E;
    display: block;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1F2A3E;
    line-height: 1.2;
    margin: 0;
    display: block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-tagline {
    font-size: 0.78rem;
    color: #5C6A7A;
    line-height: 1.3;
    margin-top: 3px;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Primary nav */
.primary-nav { min-width: 0; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.primary-nav li { display: block; }
.primary-nav a {
    display: block;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1F2A3E;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}
.primary-nav a:hover {
    background: #EEF2F6;
    color: #1E5F8E;
    text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #1E5F8E;
    background: #EEF2F6;
}

/* Mobile menu toggle */
.menu-toggle[hidden] { display: none !important; }
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #E2E6EA;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: #1F2A3E;
    line-height: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   4. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding: 16px 0 0;
    font-size: 0.88rem;
    color: #5C6A7A;
}
.breadcrumbs a { color: #1E5F8E; }
.breadcrumbs .sep { margin: 0 6px; color: #B5BCC4; }

/* ============================================================
   5. MAIN
   ============================================================ */
.site-main { padding: 28px 0 56px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 36px;
    align-items: start;
}

.layout-no-sidebar {
    display: block;
}
.layout-no-sidebar .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   6. POST / PAGE CONTENT
   ============================================================ */
.entry-header { margin-bottom: 22px; }
.entry-title { margin-bottom: 10px; }
.entry-meta {
    font-size: 0.88rem;
    color: #5C6A7A;
}
.entry-meta a { color: #5C6A7A; }
.entry-meta a:hover { color: #1E5F8E; }

.entry-thumb {
    margin: 0 0 22px;
    border-radius: 10px;
    overflow: hidden;
}
.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }

/* Special blocks inside articles */
.entry-content .official-quote {
    background: #F1F3F5;
    padding: 1em 1.2em;
    border-radius: 6px;
    margin: 1.4em 0;
    border-left: 3px solid #5C6A7A;
}

.entry-content .note-mistake {
    background: #FEF2F0;
    border-left: 4px solid #C7412A;
    padding: 0.9em 1.2em;
    margin: 1.4em 0;
    border-radius: 0 6px 6px 0;
}

.entry-content .note-tip {
    background: #F0F4F1;
    border-left: 4px solid #2F6B47;
    padding: 0.9em 1.2em;
    margin: 1.4em 0;
    border-radius: 0 6px 6px 0;
}

/* ============================================================
   7. CARDS (post grid)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 0 0 28px;
}

.card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #1E5F8E;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.card:hover::before { opacity: 1; }

.card-thumb {
    display: block;
    width: 100%;
    background: #EEF2F6;
}
.card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.card-title a { color: #1F2A3E; }
.card-title a:hover { color: #1E5F8E; text-decoration: none; }

.card-meta {
    font-size: 0.82rem;
    color: #5C6A7A;
    margin-bottom: 10px;
}

.card-excerpt {
    color: #1F2A3E;
    font-size: 0.95rem;
    margin-bottom: 14px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-actions { margin-top: auto; }

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 9px 18px;
    background: #1E5F8E;
    color: #FFFFFF;
    border: 1px solid #1E5F8E;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
    background: #0F4468;
    border-color: #0F4468;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.btn-secondary {
    background: transparent;
    color: #1E5F8E;
    border: 1px solid #1E5F8E;
}
.btn-secondary:hover {
    background: rgba(30, 95, 142, 0.1);
    color: #1E5F8E;
    border-color: #1E5F8E;
}

.btn-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #EEF2F6;
    color: #1E5F8E;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin: 2px;
    transition: background 0.18s ease;
}
.btn-chip:hover {
    background: #DCE6EE;
    text-decoration: none;
    color: #1E5F8E;
}

/* ============================================================
   9. SIDEBAR
   ============================================================ */
.sidebar {
    min-width: 0;
}

.widget-area-sidebar .widget {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    padding: 20px 22px;
    margin-bottom: 22px;
    color: #1F2A3E;
}
.widget-area-sidebar .widget-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1F2A3E;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E6EA;
}
.widget-area-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget-area-sidebar .widget li {
    padding: 7px 0;
    border-bottom: 1px dashed #E2E6EA;
    color: #1F2A3E;
}
.widget-area-sidebar .widget li:last-child { border-bottom: none; }
.widget-area-sidebar .widget a {
    color: #1E5F8E;
}
.widget-area-sidebar .widget a:hover { color: #0F4468; }
.widget-area-sidebar .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #5C6A7A;
    margin-top: 3px;
}

/* ============================================================
   10. FRONT PAGE — THEMATIC BLOCKS
   ============================================================ */
.front-section {
    margin: 36px 0;
}

.front-hero {
    background: linear-gradient(135deg, #1E5F8E 0%, #0F4468 100%);
    color: #FFFFFF;
    padding: 48px 36px;
    border-radius: 14px;
    margin: 28px 0 36px;
}
.front-hero h1 {
    color: #FFFFFF;
    font-size: 2.1rem;
    margin-bottom: 14px;
    max-width: 720px;
}
.front-hero p {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 22px;
}
.front-hero .btn {
    background: #FFFFFF;
    color: #1E5F8E;
    border-color: #FFFFFF;
}
.front-hero .btn:hover {
    background: #EEF2F6;
    color: #0F4468;
    border-color: #EEF2F6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.category-tile {
    display: block;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 22px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-decoration: none;
    color: #1F2A3E;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border-top: 3px solid #1E5F8E;
    min-width: 0;
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #1F2A3E;
}
.category-tile .tile-icon {
    width: 38px;
    height: 38px;
    color: #1E5F8E;
    margin-bottom: 12px;
    display: block;
}
.category-tile .tile-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: #1F2A3E;
}
.category-tile .tile-desc {
    font-size: 0.88rem;
    color: #5C6A7A;
    margin: 0;
    line-height: 1.5;
}

.timeline-block {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 28px 26px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin: 22px 0;
}
.timeline-block h2 {
    margin-top: 0;
}
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 18px;
    position: relative;
}
.timeline-step {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 16px 14px;
    position: relative;
    border-left: 3px solid #1E5F8E;
    min-width: 0;
}
.timeline-step .step-num {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    color: #1E5F8E;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.timeline-step .step-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1F2A3E;
    margin: 0 0 4px;
}
.timeline-step .step-desc {
    font-size: 0.85rem;
    color: #5C6A7A;
    margin: 0;
    line-height: 1.5;
}

.section-heading {
    margin: 0 0 22px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.section-heading h2 { margin: 0; }
.section-heading .heading-extra {
    font-size: 0.9rem;
    color: #5C6A7A;
}

/* Related service widget */
.related-service {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 22px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #E2E6EA;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.related-service .compass-icon {
    width: 36px;
    height: 36px;
    color: #1E5F8E;
    flex: 0 0 36px;
}
.related-service .rs-text { flex: 1; min-width: 0; }
.related-service .rs-text strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #1F2A3E;
    margin-bottom: 2px;
}
.related-service .rs-text span {
    font-size: 0.88rem;
    color: #5C6A7A;
}

/* ============================================================
   11. PAGINATION
   ============================================================ */
.pagination {
    margin: 28px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #E2E6EA;
    border-radius: 8px;
    color: #1F2A3E;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.pagination .page-numbers:hover {
    background: #EEF2F6;
    border-color: #1E5F8E;
    color: #1E5F8E;
    text-decoration: none;
}
.pagination .page-numbers.current {
    background: #1E5F8E;
    border-color: #1E5F8E;
    color: #FFFFFF;
}
.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
    background: #1F2A3E;
    color: #C8D0DA;
    padding: 44px 0 20px;
    margin-top: 56px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col { min-width: 0; }

.site-footer .widget {
    color: #C8D0DA;
}
.site-footer .widget-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2F3B52;
}
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget {
    color: #C8D0DA;
    font-size: 0.92rem;
}
.site-footer .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .widget li {
    padding: 5px 0;
}
.site-footer .widget a {
    color: #C8D0DA;
    text-decoration: none;
}
.site-footer .widget a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}
.site-footer .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: #8A95A4;
    margin-top: 2px;
}

.site-copyright {
    padding-top: 18px;
    border-top: 1px solid #2F3B52;
    font-size: 0.85rem;
    color: #8A95A4;
    text-align: center;
}

/* ============================================================
   13. COMMENTS
   ============================================================ */
.comments-area {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #E2E6EA;
}
.comments-title {
    font-family: 'Manrope', sans-serif;
    margin-bottom: 22px;
}
.comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.comment-list li { margin-bottom: 16px; }
.comment-list .comment-body {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.comment-list .comment-author {
    font-weight: 600;
    color: #1F2A3E;
    margin-bottom: 4px;
}
.comment-list .comment-meta {
    font-size: 0.82rem;
    color: #5C6A7A;
    margin-bottom: 10px;
}
.comment-list ol.children { list-style: none; padding-left: 28px; margin-top: 16px; }

.comment-respond {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.comment-respond label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1F2A3E;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #E2E6EA;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #1F2A3E;
    margin-bottom: 14px;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: #1E5F8E;
}
.comment-respond .submit {
    display: inline-block;
    padding: 9px 18px;
    background: #1E5F8E;
    color: #FFFFFF;
    border: 1px solid #1E5F8E;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
}
.comment-respond .submit:hover {
    background: #0F4468;
    border-color: #0F4468;
}

/* ============================================================
   14. SEARCH FORM
   ============================================================ */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 9px 14px;
    border: 1px solid #E2E6EA;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #1F2A3E;
}
.search-form .search-field:focus {
    outline: none;
    border-color: #1E5F8E;
}
.search-form .search-submit {
    padding: 9px 16px;
    background: #1E5F8E;
    color: #FFFFFF;
    border: 1px solid #1E5F8E;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
}
.search-form .search-submit:hover {
    background: #0F4468;
    border-color: #0F4468;
}

/* ============================================================
   15. 404
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 48px 0;
}
.error-404 .err-code {
    font-family: 'Manrope', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: #1E5F8E;
    line-height: 1;
    margin-bottom: 16px;
}
.error-404 h1 { margin-bottom: 14px; }
.error-404 p { color: #5C6A7A; margin-bottom: 22px; }
.error-404 .search-form { margin: 22px auto; }
.error-404 .home-link { margin-top: 18px; }

/* ============================================================
   16. COOKIE BANNER
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #FFFFFF;
    color: #1F2A3E;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    padding: 16px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border: 1px solid #E2E6EA;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: #1F2A3E;
    flex: 1;
    min-width: 220px;
}
.cookie-banner .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* ============================================================
   17. MOBILE PDD QUICK SEARCH (mobile only)
   ============================================================ */
.pdd-quick-search {
    display: none;
}
@media (max-width: 600px) {
    .pdd-quick-search {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        background: #1E5F8E;
        color: #FFFFFF;
        border-radius: 40px;
        padding: 10px 16px;
        align-items: center;
        gap: 8px;
        z-index: 900;
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        font-family: 'Manrope', sans-serif;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
    }
    .pdd-quick-search:hover {
        color: #FFFFFF;
        background: #0F4468;
        text-decoration: none;
    }
    .pdd-quick-search svg { width: 18px; height: 18px; flex: 0 0 18px; }
    /* When cookie banner is visible, push the PDD button up */
    body.has-cookie-banner .pdd-quick-search { bottom: 92px; }
}

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .primary-nav {
        order: 3;
        flex: 0 0 100%;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 2px;
        display: none;
    }
    .primary-nav.is-open ul {
        display: flex;
    }
    .primary-nav a {
        padding: 10px 12px;
        border-bottom: 1px solid #E2E6EA;
        border-radius: 0;
    }
    .menu-toggle { display: inline-flex; align-items: center; }
}

@media (max-width: 600px) {
    .layout-no-sidebar .content-area {
        width: 100%;
    }
    .front-hero {
        padding: 32px 22px;
    }
    .front-hero h1 { font-size: 1.55rem; }
    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.25rem; }
    .brand-name { max-width: 220px; font-size: 0.95rem; }
    .brand-tagline { max-width: 220px; }
    .site-main { padding-bottom: 96px; }
    .cookie-banner { padding: 14px 16px; }
}
