/* TMC Brand Buttons v4 (Nov 25, 2026 — Terry's two-gold pairing).
   THE TWO GOLDS (Terry, Nov 25, 2026, codified): the brand carries TWO golds
   that are used TOGETHER, not interchangeably. Primary gold #D4AF37 is the
   main gold — fills, headings, accents. Companion gold #C9A84C is its partner
   shade, used ALONGSIDE the primary: as the BORDER on gold buttons and the
   DROP SHADOW under gold-outlined buttons and panels. Neither replaces the
   other; a gold element is finished when the companion gold frames it.
   Kit tokens: primary = --e-global-color-primary (#D4AF37);
   companion = --e-global-color-secondary (#C9A84C). One switch each.
   GOLD BUTTON RULE (Terry, Nov 25, 2026, unchanged from v3): gold buttons
   carry WHITE text, exclusively. The outline variant at rest (gold text on
   transparent) is not a gold-filled button and keeps its gold text.
   v4 changes vs v3: filled buttons take a companion-gold border and a soft
   companion-gold drop shadow; the outline variant takes a companion-gold
   border and the same shadow (the shadow under gold-outlined elements is
   the companion gold's named job). */
:root {
    --tmc-gold-dark: #A5882B;
    --tmc-emboss-1: -1px -1px 0 var(--tmc-gold-dark), 0 -1px 0 var(--tmc-gold-dark), 1px -1px 0 var(--tmc-gold-dark), -1px 0 0 var(--tmc-gold-dark), 1px 0 0 var(--tmc-gold-dark), -1px 1px 0 var(--tmc-gold-dark), 0 1px 0 var(--tmc-gold-dark), 1px 1px 0 var(--tmc-gold-dark);
    --tmc-gold-shadow: 0 3px 10px rgba(201, 168, 76, 0.45);
}

/* Standard Elementor buttons and form submit buttons (not the coloured Elementor types, not the outline variant) */
.elementor-widget-button:not(.tmc-btn-outline-inverse) a.elementor-button:not(.elementor-button-info):not(.elementor-button-success):not(.elementor-button-warning):not(.elementor-button-danger),
.elementor-widget-button:not(.tmc-btn-outline-inverse) a.elementor-button:not(.elementor-button-info):not(.elementor-button-success):not(.elementor-button-warning):not(.elementor-button-danger):visited,
.elementor-field-type-submit button.elementor-button {
    background-color: var(--e-global-color-primary, #D4AF37);
    border: 1px solid var(--e-global-color-secondary, #C9A84C);
    box-shadow: var(--tmc-gold-shadow);
    color: #FFFFFF;
}
.elementor-widget-button:not(.tmc-btn-outline-inverse) a.elementor-button:not(.elementor-button-info):not(.elementor-button-success):not(.elementor-button-warning):not(.elementor-button-danger) .elementor-button-text,
.elementor-field-type-submit button.elementor-button .elementor-button-text {
    color: #FFFFFF;
    text-shadow: none;
}
.elementor-field-type-submit button.elementor-button { text-shadow: none; }
.elementor-widget-button:not(.tmc-btn-outline-inverse) a.elementor-button:not(.elementor-button-info):not(.elementor-button-success):not(.elementor-button-warning):not(.elementor-button-danger):hover,
.elementor-widget-button:not(.tmc-btn-outline-inverse) a.elementor-button:not(.elementor-button-info):not(.elementor-button-success):not(.elementor-button-warning):not(.elementor-button-danger):focus,
.elementor-field-type-submit button.elementor-button:hover,
.elementor-field-type-submit button.elementor-button:focus {
    background-color: var(--e-global-color-secondary, #C9A84C);
    border-color: var(--e-global-color-secondary, #C9A84C);
    color: #FFFFFF;
}

/* Outline variant: companion-gold border + companion-gold shadow at rest; fills primary gold on hover — filled state is a gold button, so white text */
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button,
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button:visited {
    background-color: transparent;
    border: 1px solid var(--e-global-color-secondary, #C9A84C);
    box-shadow: var(--tmc-gold-shadow);
    color: var(--e-global-color-primary, #D4AF37);
}
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button .elementor-button-text { color: var(--e-global-color-primary, #D4AF37); text-shadow: none; }
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button:hover,
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button:focus {
    background-color: var(--e-global-color-primary, #D4AF37);
    border-color: var(--e-global-color-secondary, #C9A84C);
    color: #FFFFFF;
}
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button:hover .elementor-button-text,
.elementor-widget-button.tmc-btn-outline-inverse a.elementor-button:focus .elementor-button-text { color: #FFFFFF; text-shadow: none; }

/* The other gold buttons (shop, video grid): white text per the rule, no emboss */
body.woocommerce-checkout #place_order,
body.woocommerce-cart .woocommerce a.checkout-button,
body.single-product .single_add_to_cart_button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.add_to_cart_button, .button.product_type_variable,
.tmc-youtube-interface .tmc-load-more, .tmc-youtube-interface .tmc-search-btn { color: #FFFFFF; text-shadow: none; }

/* Resources article links are not buttons; v2's finish is preserved for them */
.article-container .link-group a.gov-link { text-shadow: var(--tmc-emboss-1); }

.elementor-widget-button a.elementor-button:focus-visible,
.elementor-field-type-submit button.elementor-button:focus-visible {
    outline: 3px solid var(--e-global-color-text, #E0E0E0);
    outline-offset: 2px;
}
