/* Maduro theme: tobacco browns, green leather and cognac. Overrides site.css's tokens; <html data-theme="maduro"> turns it on. */

:root[data-theme="maduro"] {
    --cream: #EEE7DA;
    --milk: #E6DFD0;
    --milk-deep: #D8CDB8;
    --pink: #B98A5E;
    --rose: #A0612B;
    --cherry: #2F5141;
    --cherry-dark: #233D31;
    --cocoa: #2B2420;
    --cocoa-soft: #6D6258;
    --line: #D6CBB8;
    --mint: #A9BBA3;
    --card: #FBF8F2;
    --shadow: 0 4px 14px rgba(43, 36, 32, .10);
    --shadow-hover: 0 10px 24px rgba(43, 36, 32, .18);

    --bs-link-color-rgb: 160, 97, 43;
    --bs-link-hover-color-rgb: 47, 81, 65;
    --bs-focus-ring-color: rgba(160, 97, 43, .3);

    --card-border: #DED4C2;
    --page-pattern: repeating-linear-gradient(90deg, rgba(47, 81, 65, .05) 0 1px, transparent 1px 14px);
    --page-pattern-size: auto;
    --nav-bg: #4A3326;
    --nav-link: #D9C6AE;
    --nav-hover-bg: #5C4131;
    --nav-hover-color: #FFFFFF;
    --brand: #F2E4CC;
    --panel-bg: rgba(251, 248, 242, .92);
    --price: #A0612B;
    --danger: #9B2C22;
    --danger-dark: #7A1F18;
    --danger-border: #E2BDB6;
    --btn-primary-bg: linear-gradient(135deg, #3F6A55, #233D31);
    --btn-primary-hover-bg: linear-gradient(135deg, #4A7862, #1C3128);
    --btn-primary-shadow: 0 4px 12px rgba(38, 66, 54, .25);
    --focus-glow: rgba(160, 97, 43, .25);
    --placeholder: #A99C8E;
    --notification-new: #F3ECDF;
    --handle-shadow: 0 2px 6px rgba(160, 97, 43, .35);
    --card-header-shadow: 0 3px 8px -2px rgba(43, 36, 32, .2);

    /* Category colors: LabelColors.Css(hex) draws var(--lc-<hex>, <hex>), so Cherry falls back to the stored pastel. */
    --lc-f7a8c4: #CFA095;
    --lc-ffc9d9: #D9BBB0;
    --lc-ff9aa2: #C98F86;
    --lc-ffb38a: #D2A57E;
    --lc-ffe29a: #DCC88F;
    --lc-b8e0c8: #A9BBA3;
    --lc-a7d8f0: #A4B5BA;
    --lc-cdb4f0: #B3A6B8;
    --lc-e4c1a1: #C9AD8C;
    --lc-e0e0e0: #CFCAC1;
}

/* The navbar is dark, so its menu icon is light. */
[data-theme="maduro"] .cp-nav .navbar-toggler i { color: var(--brand) !important; }
[data-theme="maduro"] .cp-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Bits drawn for both themes (login/join card): show Maduro's, hide Cherry's. */
[data-theme="maduro"] .theme-only-cherry { display: none !important; }
[data-theme="maduro"] .theme-only-maduro { display: revert !important; }
