/*
Theme Name: CumparPractic Affiliate
Theme URI: https://cumparpractic.ro
Author: Bogdan Müller
Description: Temă WordPress rapidă și curată pentru site afiliat de ghiduri, comparații și produse recomandate pentru familie, bebeluși, casă și produse sezoniere.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: cumparpractic
*/

:root {
    --bg: #f7f8f5;
    --surface: #ffffff;
    --text: #1f2722;
    --muted: #667067;
    --primary: #28684d;
    --primary-dark: #1d4f3a;
    --accent: #f2b544;
    --soft: #e8f2ed;
    --border: #dde5de;
    --danger: #ffe9df;
    --radius: 20px;
    --shadow: 0 14px 36px rgba(31, 79, 58, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    position: relative;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-branding-wrap {
    flex: 0 0 auto;
}

.site-branding-wrap .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-branding-wrap img {
    width: auto;
    max-height: 54px;
}

.site-branding {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-branding span {
    color: var(--accent);
}

/* MENIU */

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    font-size: 0.96rem;
    font-weight: 750;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

/* CĂUTARE HEADER */

.header-search {
    position: relative;
}

.header-search summary {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.header-search summary::-webkit-details-marker {
    display: none;
}

.header-search summary::marker {
    display: none;
    content: "";
}

.header-search summary:hover,
.header-search[open] summary {
    border-color: var(--primary);
    color: var(--primary);
}

.header-search summary svg {
    width: 19px;
    height: 19px;
}

.header-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(380px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-field {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font-size: 16px;
}

.header-search-field::placeholder {
    color: var(--muted);
}

.header-search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(40, 104, 77, 0.12);
}

.header-search-submit {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
}

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

.header-search-submit svg {
    width: 18px;
    height: 18px;
}

/* HERO */

.hero {
    padding: 78px 0 54px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 850;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.14rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 850;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border-color: var(--border);
    background: #ffffff;
    color: var(--text);
}

.hero-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mini-card {
    padding: 18px;
    border-radius: 17px;
    background: #f4f7f3;
}

.mini-card strong {
    display: block;
    font-size: 1.1rem;
}

.mini-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

/* SECȚIUNI */

.section {
    padding: 54px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

/* CARDURI */

.category-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card,
.article-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

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

.category-card {
    padding: 24px;
}

.category-icon {
    font-size: 2rem;
}

.category-card h3 {
    margin: 14px 0 6px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.article-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #e9ede8;
}

.article-card-content {
    padding: 19px;
}

.article-meta {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 9px 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* BANDĂ VERDE */

.deal-strip {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: 26px;
    background: var(--primary);
    color: #ffffff;
}

.deal-strip p {
    margin: 7px 0 0;
    color: #dbe9e1;
}

.deal-strip .btn-secondary {
    border-color: #ffffff;
    background: #ffffff;
    color: #28684d !important;
}

.deal-strip .btn-secondary:hover {
    background: #f7f8f5;
    color: #1f513a !important;
}

/* LAYOUT */

.site-main {
    min-height: 60vh;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 305px;
    gap: 36px;
    padding: 48px 0;
}

.content-card {
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--border);
    border-radius: 23px;
    background: #ffffff;
}

.page-layout {
    max-width: 920px;
    padding: 48px 0;
}

/* ARTICOL */

.entry-header h1 {
    margin: 10px 0 16px;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.entry-meta {
    color: var(--muted);
    font-size: 0.93rem;
}

.entry-content h2 {
    margin-top: 2.15em;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.entry-content h3 {
    margin-top: 1.65em;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    margin: 24px 0;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 13px;
    border: 1px solid var(--border);
    text-align: left;
}

.entry-content th {
    background: #f2f5f1;
}

/* TABEL COMPARATIE RAPIDA (compact) */

.entry-content table.quick-compare {
    font-size: 0.95rem;
}

.entry-content table.quick-compare th,
.entry-content table.quick-compare td {
    padding: 10px 12px;
    vertical-align: middle;
}

.entry-content table.quick-compare th:first-child,
.entry-content table.quick-compare td:first-child {
    width: 46px;
    text-align: center;
    font-size: 1.15rem;
}

.entry-content table.quick-compare th:nth-child(4),
.entry-content table.quick-compare td:nth-child(4),
.entry-content table.quick-compare th:nth-child(5),
.entry-content table.quick-compare td:nth-child(5) {
    text-align: center;
    white-space: nowrap;
}

.table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.86rem;
    white-space: nowrap;
    text-decoration: none !important;
}

.table-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
}

.table-btn-primary:hover {
    background: var(--primary-dark);
}

.table-btn-secondary {
    background: var(--soft);
    color: var(--primary) !important;
}

.table-btn-secondary:hover {
    background: var(--border);
}

.table-thumb {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f5f5f3;
    object-fit: contain;
    vertical-align: middle;
}

/* ÎNAPOI LA TOP */

.back-to-table {
    display: inline-block;
    margin: 6px 0 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.back-to-table:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* AFILIERE */

.affiliate-disclosure {
    padding: 14px 16px;
    margin: 20px 0;
    border: 1px solid #f4d99b;
    border-radius: 13px;
    background: #fff7e5;
    font-size: 0.9rem;
}

.affiliate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    margin: 10px 0;
    border-radius: 13px;
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 900;
    text-decoration: none !important;
}

.affiliate-button:hover {
    background: var(--primary-dark);
}

.extra-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 20px;
}

.extra-offers .affiliate-button {
    margin: 0;
}

/* CARD PRODUS (compactat) */

.product-box {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 16px;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
}

.product-box img {
    width: 170px;
    aspect-ratio: 1;
    border-radius: 14px;
    background: #f5f5f3;
    object-fit: contain;
}

/* mută butonul "Verifică oferta" sub poză, chiar sub ea, fără să afecteze restul textului */

.product-box > div > .affiliate-button {
    position: absolute;
    top: 202px;
    left: 16px;
    width: 170px;
    margin: 0;
}

.product-box > div > .pros-cons {
    margin-bottom: 0;
}

.product-box h3 {
    margin: 0 0 8px;
}

.product-badge {
    display: inline-flex;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.product-meta {
    margin: 0.2rem 0 0.7rem;
    color: var(--muted);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.pros,
.cons {
    padding: 12px 14px;
    border-radius: 12px;
}

.pros {
    background: #edf7f0;
}

.cons {
    background: #fff1ef;
}

.pros ul,
.cons ul {
    margin: 6px 0 0;
    padding-left: 0;
    list-style: none;
}

.pros li,
.cons li {
    position: relative;
    margin: 5px 0;
    padding-left: 22px;
    font-size: 0.92rem;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.cons li::before {
    content: "–";
    position: absolute;
    left: 2px;
    color: #c0684f;
    font-weight: 800;
}

/* SIDEBAR */

.sidebar-box {
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
}

.sidebar-box h3 {
    margin-top: 0;
}

.sidebar-box ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.post-list {
    display: grid;
    gap: 12px;
}

.post-list a {
    font-weight: 700;
}

/* PAGINARE */

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.pagination .page-numbers {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
}

/* FOOTER */

.site-footer {
    padding: 48px 0 22px;
    margin-top: 60px;
    background: #1f2a23;
    color: #edf4ef;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.site-footer a {
    color: #dbe8df;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition:
        background 0.2s,
        border-color 0.2s;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-links a:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #1f2a23;
}

.footer-bottom {
    padding-top: 20px;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #b8c7bd;
    font-size: 0.88rem;
}

/* CĂUTARE SIDEBAR */

.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.search-submit {
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
}

/* WORDPRESS ȘI ACCESIBILITATE */

.wp-caption,
.gallery-caption,
.bypostauthor {
    display: block;
}

.alignwide {
    width: min(1100px, 100%);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    padding: 10px 14px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary);
}

.menu-toggle:focus-visible,
.header-search summary:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(242, 181, 68, 0.75);
    outline-offset: 3px;
}

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

/* TABLETĂ */

@media (max-width: 1100px) {
    .header-inner {
        gap: 16px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 920px) {
    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        width: min(280px, calc(100vw - 32px));
        display: none;
        padding: 6px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: var(--shadow);
        z-index: 60;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav li:last-child {
        border-bottom: 0;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 10px;
        font-size: 0.92rem;
    }

    .main-nav a::after {
        content: "›";
        margin-left: 8px;
        color: var(--muted);
        font-weight: 700;
    }

    .main-nav a:hover {
        background: var(--soft);
    }

    .main-nav li:first-child a {
        border-radius: 10px 10px 0 0;
    }

    .main-nav li:last-child a {
        border-radius: 0 0 10px 10px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

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

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

    .sidebar {
        order: 2;
    }

    .deal-strip {
        grid-template-columns: 1fr;
    }
}

/* MOBIL */

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .header-inner {
        gap: 8px;
    }

    .site-branding-wrap {
        min-width: 0;
        margin-right: auto;
    }

    .site-branding {
        font-size: 1.08rem;
    }

    .site-branding-wrap img {
        max-width: 145px;
        max-height: 46px;
    }

    .header-actions {
        gap: 7px;
    }

    .menu-toggle {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .header-search summary {
        width: 40px;
        height: 40px;
    }

    .header-search-panel {
        position: fixed;
        top: 82px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .main-nav {
        right: 12px;
        width: calc(100vw - 24px);
    }

    .hero {
        padding: 52px 0 40px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }

    .hero-card {
        padding: 16px;
        border-radius: 22px;
    }

    .hero-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mini-card {
        padding: 13px;
    }

    .mini-card strong {
        font-size: 1rem;
    }

    .mini-card span {
        font-size: 0.8rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .article-grid,
    .article-grid-two,
    .footer-grid,
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .button-row {
        align-items: stretch;
    }

    .button-row .btn {
        flex: 1 1 auto;
    }

    .product-box {
        grid-template-columns: 1fr;
    }

    .product-box img {
        width: 100%;
        max-height: 230px;
    }

    .product-box > div > .affiliate-button {
        position: static;
        width: 100%;
        margin: 10px 0 0;
    }

    .deal-strip {
        display: block;
        padding: 24px;
    }

    .deal-strip .btn,
    .deal-strip .btn-secondary {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 18px;
        border-color: #ffffff;
        background: #ffffff;
        color: #28684d !important;
        text-align: center;
    }

    .deal-strip .btn-secondary:hover {
        background: #f7f8f5;
        color: #1f513a !important;
    }
}

/* =========================================================
   SUBMENIU DESKTOP
   ========================================================= */

@media (min-width: 921px) {
    .main-nav .menu-item-has-children {
        position: relative;
    }

    .main-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;

        min-width: 240px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px;
        margin: 0;
        list-style: none;

        border: 1px solid var(--border);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .main-nav .menu-item-has-children:hover > .sub-menu,
    .main-nav .menu-item-has-children:focus-within > .sub-menu {
        display: flex;
    }

    .main-nav .sub-menu li {
        width: 100%;
        border: 0;
    }

    .main-nav .sub-menu a {
        width: 100%;
        display: block;
        padding: 10px 13px;

        border-radius: 9px;
        font-size: 0.9rem;
        font-weight: 650;
        white-space: nowrap;
    }

    .main-nav .sub-menu a::after {
        display: none;
        content: none;
    }

    .main-nav .sub-menu a:hover,
    .main-nav .sub-menu a:focus {
        color: var(--primary);
        background: var(--soft);
    }

    .submenu-toggle {
        display: none;
    }
}

/* =========================================================
   SUBMENIU MOBIL
   ========================================================= */

@media (max-width: 920px) {
    .main-nav .menu-item-has-children {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        align-items: center;
    }

    .main-nav .menu-item-has-children > a {
        min-width: 0;
        grid-column: 1;
        grid-row: 1;
    }

    .main-nav .menu-item-has-children > a::after {
        display: none;
        content: none;
    }

    .main-nav .submenu-toggle {
        width: 48px;
        min-height: 48px;
        height: 100%;

        grid-column: 2;
        grid-row: 1;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0;
        border: 0;
        border-left: 1px solid var(--border);
        background: transparent;
        color: var(--muted);

        cursor: pointer;
        font-size: 1.35rem;
        font-weight: 800;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .main-nav .submenu-toggle::before {
        content: "›";
        display: block;
        transition: transform 0.2s ease;
    }

    .main-nav .menu-item-has-children.submenu-open > .submenu-toggle::before {
        transform: rotate(90deg);
    }

    .main-nav .sub-menu {
        position: static;

        width: 100%;
        min-width: 0;
        display: none;

        grid-column: 1 / -1;

        padding: 5px 8px 10px 18px;
        margin: 0;
        list-style: none;

        border: 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
        background: #f7faf8;
        box-shadow: none;
    }

    .main-nav .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .main-nav .sub-menu li {
        width: 100%;
        border: 0;
    }

    .main-nav .sub-menu a {
        display: block;
        width: 100%;
        padding: 9px 12px;

        border-radius: 8px;
        color: var(--muted);

        font-size: 0.87rem;
        font-weight: 650;
        white-space: normal;
    }

    .main-nav .sub-menu a::before {
        content: "–";
        margin-right: 8px;
        color: var(--primary);
    }

    .main-nav .sub-menu a::after {
        display: none;
        content: none;
    }

    .main-nav .sub-menu a:hover,
    .main-nav .sub-menu a:focus {
        color: var(--primary);
        background: var(--soft);
    }
}