/*
 * Genesis brand: buttons (1.21.0)
 *
 * The bevelled button from the login page (bottom-right corner cut at an angle),
 * used on every call-to-action button across the site: the plugin's own buttons
 * and Elementor / WordPress buttons on normal pages. Loaded on every page.
 *
 * Not bevelled on purpose: keypad keys, option toggles (301/501, Human/Bot, legs),
 * tabs and filters. They are pickers, not actions, and stay square like the
 * login page's inputs.
 *
 * Bevel size: --gd-bevel (default 12px, big full-width buttons 16px).
 * Outline buttons draw the cut edge with a hairline (::after) so the border
 * doesn't just stop at the corner. Set --gd-cut-line to that border's colour.
 */
:root { --gd-bevel: 12px; }

/* ── Solid buttons ── */
.start-btn,
.play-again-btn,
.main-menu-btn,
.match-save-btn,
.cd-confirm-btn,
.leg-banner-btn,
.darts-history-btn,
.darts-scorer-wrap .dc-btn,
.dl-start-btn,
.dl-league-modal-btn,
.dlm-btn,
.campaign-start-btn,
.campaign-action-btn,
.campaign-restart-btn,
.tr-result-btn,
.tr-end-session-btn,
.ol-bar-btn,
.cd-cancel-btn,
.dol-wrap .dol-btn,
.elementor-button,
a.e-button, button.e-button,
.wp-block-button__link,
.wp-element-button,
.ast-custom-button {
  border-radius: 2px !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--gd-bevel)), calc(100% - var(--gd-bevel)) 100%, 0 100%);
}

/* Big full-width buttons get the same 16px cut as the login button */
.start-btn,
.play-again-btn,
.main-menu-btn,
.match-save-btn,
.cd-confirm-btn,
.campaign-start-btn,
.dol-wrap .dol-btn--big { --gd-bevel: 16px; }

/* Small buttons: smaller cut so it stays in proportion */
.dlm-btn--xs,
.dlm-btn--sm,
.dl-start-btn-sm,
.ol-bar-btn,
.dol-wrap .dol-btn--sm { --gd-bevel: 9px; }

/* ── Outline buttons: draw the cut edge ── */
.darts-scorer-wrap .dc-btn--ghost,
.darts-scorer-wrap .dc-btn--danger,
.dl-league-modal-btn--secondary,
.dl-league-modal-btn--danger,
.dlm-btn--secondary,
.dlm-btn--danger,
.campaign-restart-btn,
.tr-result-btn--secondary,
.cd-cancel-btn,
.ol-bar-btn,
.dol-wrap .dol-btn--ghost,
.dol-wrap .dol-btn--danger {
  position: relative;
  --gd-cut-line: #c7cfde;
}
.darts-scorer-wrap .dc-btn--danger,
.dl-league-modal-btn--danger,
.dlm-btn--danger,
.dol-wrap .dol-btn--danger { --gd-cut-line: #c62f25; }
.dol-wrap .dol-btn--ghost { --gd-cut-line: var(--accent2, #1449c0); }

.darts-scorer-wrap .dc-btn--ghost::after,
.darts-scorer-wrap .dc-btn--danger::after,
.dl-league-modal-btn--secondary::after,
.dl-league-modal-btn--danger::after,
.dlm-btn--secondary::after,
.dlm-btn--danger::after,
.campaign-restart-btn::after,
.tr-result-btn--secondary::after,
.cd-cancel-btn::after,
.ol-bar-btn::after,
.dol-wrap .dol-btn--ghost::after,
.dol-wrap .dol-btn--danger::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--gd-bevel);
  height: var(--gd-bevel);
  pointer-events: none;
  background: linear-gradient(to top left,
    transparent calc(50% - 1px),
    var(--gd-cut-line) calc(50% - 0.5px),
    var(--gd-cut-line) calc(50% + 0.5px),
    transparent calc(50% + 1px));
}

/* Square-off rounded buttons from older screens (campaign used 10px corners) */
.campaign-start-btn,
.campaign-action-btn,
.campaign-restart-btn { border-radius: 2px !important; }

/* ============================================================
   Light mode: site chrome (1.23.0)
   The page, Astra header, menus and footer, so the whole site sits on one
   light surface: soft off-white page, white header/footer with a hairline,
   ink text, Genesis blue for links and the current page.
   ============================================================ */
body { background-color: #f4f6fb !important; color: #0f1424; }
.site, .site-content, #content, .ast-separate-container, .ast-plain-container { background-color: transparent !important; }

#masthead .ast-primary-header-bar,
#masthead .ast-above-header-bar,
#masthead .ast-below-header-bar,
#masthead .main-header-bar,
#ast-mobile-header .ast-primary-header-bar,
#ast-mobile-header .main-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e7f0 !important;
  box-shadow: none !important;
}
#masthead .main-header-menu .menu-link,
#masthead .ast-builder-menu .menu-link { color: #5b6480 !important; }
#masthead .main-header-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .menu-link:hover,
#masthead .main-header-menu .menu-link:focus { color: #1449c0 !important; }
#masthead .main-header-menu .current-menu-item > .menu-link,
#masthead .main-header-menu .current-menu-ancestor > .menu-link,
#masthead .main-header-menu .current_page_item > .menu-link { color: #0f1424 !important; font-weight: 600; }
#masthead .main-header-menu .sub-menu,
#masthead .sub-menu { background: #ffffff !important; border: 1px solid #e2e7f0 !important; box-shadow: 0 8px 24px rgba(15, 20, 36, 0.08) !important; }
#masthead .sub-menu .menu-link { color: #0f1424 !important; }
#masthead .sub-menu .menu-link:hover { background: #f1f4f9 !important; color: #1449c0 !important; }
#masthead .menu-toggle,
#masthead .ast-mobile-menu-trigger-minimal,
#masthead .ast-mobile-svg,
#ast-mobile-header .menu-toggle { color: #0f1424 !important; fill: #0f1424 !important; background: transparent !important; }
#ast-mobile-header .ast-mobile-header-content,
#ast-mobile-header .ast-builder-menu-mobile .main-navigation,
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: #ffffff !important; }
#ast-mobile-header .menu-link { color: #0f1424 !important; border-color: #e2e7f0 !important; }
.site-title a, .site-title a:visited { color: #0f1424 !important; }
.custom-logo { height: auto; }

.site-footer,
.site-footer .site-primary-footer-wrap,
.site-footer .site-above-footer-wrap,
.site-footer .site-below-footer-wrap,
.ast-small-footer { background: #ffffff !important; border-top: 1px solid #e2e7f0 !important; color: #5b6480 !important; }
.site-footer p, .site-footer .ast-footer-copyright { color: #5b6480 !important; }
.site-footer a { color: #1449c0 !important; }

/* ── Light mode: Home page sections below the hero (1.23.1) ──
   The hero (9469147) stays a dark photo banner on purpose. These sections
   are classic Elementor widgets with colours typed in, so they're overridden here. */
.elementor-36 .elementor-element-307771c,
.elementor-36 .elementor-element-29b64dd { background: #ffffff !important; background-image: none !important; }
.elementor-36 .elementor-element-e8f64df { background: #f4f6fb !important; background-image: none !important; }
.elementor-36 .elementor-element-27ac7c9 { background: #eaf1ff !important; background-image: none !important; border-top: 1px solid #e2e7f0; }
.elementor-36 .elementor-element-307771c::before, .elementor-36 .elementor-element-307771c > .elementor-background-overlay,
.elementor-36 .elementor-element-e8f64df::before, .elementor-36 .elementor-element-29b64dd::before,
.elementor-36 .elementor-element-27ac7c9::before { background: none !important; opacity: 0 !important; }

/* Feature cards */
.elementor-36 .elementor-element-7cf519d, .elementor-36 .elementor-element-64ca863,
.elementor-36 .elementor-element-d2f5a70, .elementor-36 .elementor-element-5b73b71 {
  background: #ffffff !important; border-color: #e2e7f0 !important; box-shadow: 0 1px 2px rgba(15,20,36,.04);
}
/* Screenshot frames */
.elementor-36 .elementor-element-83a370f, .elementor-36 .elementor-element-034bda8 { background: #f1f4f9 !important; border-color: #e2e7f0 !important; }

/* Text below the hero */
.elementor-36 .elementor-element-307771c .elementor-heading-title,
.elementor-36 .elementor-element-e8f64df .elementor-heading-title,
.elementor-36 .elementor-element-29b64dd .elementor-heading-title,
.elementor-36 .elementor-element-27ac7c9 .elementor-heading-title { color: #0f1424 !important; }
.elementor-36 .elementor-element-f447de8 .elementor-heading-title,
.elementor-36 .elementor-element-87e9c5c .elementor-heading-title,
.elementor-36 .elementor-element-c389151 .elementor-heading-title { color: #1b5ff4 !important; }
.elementor-36 .elementor-element-307771c .elementor-widget-text-editor,
.elementor-36 .elementor-element-307771c .elementor-widget-text-editor *,
.elementor-36 .elementor-element-e8f64df .elementor-widget-text-editor,
.elementor-36 .elementor-element-e8f64df .elementor-widget-text-editor *,
.elementor-36 .elementor-element-29b64dd .elementor-widget-text-editor,
.elementor-36 .elementor-element-29b64dd .elementor-widget-text-editor *,
.elementor-36 .elementor-element-27ac7c9 .elementor-widget-text-editor,
.elementor-36 .elementor-element-27ac7c9 .elementor-widget-text-editor * { color: #5b6480 !important; }

/* Buttons below the hero */
.elementor-36 .elementor-element-37cb3f1 .elementor-button,
.elementor-36 .elementor-element-d47e7e4 .elementor-button { border-color: #1b5ff4 !important; }
.elementor-36 .elementor-element-26fe585 .elementor-button,
.elementor-36 .elementor-element-7c71246 .elementor-button { color: #0f1424 !important; border-color: #c7cfde !important; background: #ffffff !important; }
.elementor-36 .elementor-element-26fe585 .elementor-button:hover,
.elementor-36 .elementor-element-7c71246 .elementor-button:hover { color: #1449c0 !important; border-color: #1b5ff4 !important; }
