/* Controls: what a button looks like everywhere: the ink primary, the outlined ghost, their size, hover, press and
   transitions. Loads before site.css and the concept modules, which set a button's size or placement where it
   differs. Kinds: .ncc-button (primary, or --ghost), .ncc-pager a (case pager),
   .wpcf7-submit (tip form), .lglf-reset (empty results), .ncc-share-buttons (case share row). */

.ncc-button { display: inline-flex; align-items: center; justify-content: center; border: 0; font: inherit; text-decoration: none !important; cursor: pointer; touch-action: manipulation; }
@media (prefers-reduced-motion: no-preference) {
  .wpcf7 .wpcf7-submit:active, .ncc-share-buttons :is(a, button):active, .ncc-pager a:active { scale: 0.97; transition: scale var(--ncc-dur-press) var(--ncc-ease-out); }
}

/* Submit a tip, wherever it appears (header, menu sheet, tip ask, tip form, About): the ink primary */
html[data-theme] :is(.ncc-tip-card .ncc-tip-buttons .ncc-button:not(.ncc-button--ghost), .elementor-12252 .wpcf7 .wpcf7-submit, .elementor-location-header [data-id="c625026"] .elementor-nav-menu--main .ncc-nav-tip > .elementor-item, .elementor-location-header .elementor-nav-menu--dropdown li.ncc-nav-tip > a.elementor-item) { color: var(--ncc-primary-fg) !important; background: var(--ncc-primary) !important; box-shadow:none; transition: background-color var(--ncc-dur-fade) ease-out, scale var(--ncc-dur-release) var(--ncc-ease-out); }
html[data-theme] :is(.ncc-tip-card .ncc-tip-buttons .ncc-button:not(.ncc-button--ghost), .elementor-12252 .wpcf7 .wpcf7-submit, .elementor-location-header [data-id="c625026"] .elementor-nav-menu--main .ncc-nav-tip > .elementor-item, .elementor-location-header .elementor-nav-menu--dropdown li.ncc-nav-tip > a.elementor-item):active { transition-duration: var(--ncc-dur-fade), var(--ncc-dur-press); } /* the press takes 140ms; the 100ms above is the release */
@media (hover: hover) {
  html[data-theme] :is(.ncc-tip-card .ncc-tip-buttons .ncc-button:not(.ncc-button--ghost), .elementor-12252 .wpcf7 .wpcf7-submit, .elementor-location-header .ncc-nav-tip > .elementor-item):hover { background: var(--ncc-primary-hover) !important; }
}

.ncc-button, .wpcf7 .wpcf7-submit, .ncc-pager a, .lglf-reset, .elementor-12252 .wpcf7 .wpcf7-submit { min-height: 0; }
.ncc-share-buttons :is(a, button) { color: var(--ncc-ink) !important; background: var(--ncc-muted-bg) !important; box-shadow:none !important; filter: none !important; }
@media (hover: hover) {
  .ncc-share-buttons :is(a, button):hover { background: var(--ncc-hover-btn) !important; box-shadow:none !important; filter: none !important; }
}

/* size: 32px, 12px corners (Cal App controls) */
html[data-theme] :is(.ncc-button, .wpcf7 .wpcf7-submit, .lglf-reset, .ncc-pager a) { height: 32px !important; padding: 0 16px !important; border-radius: var(--ncc-radius-control) !important; font-size: var(--ncc-step-small) !important; font-weight: 500; line-height: 1.45; }

/* primary: ink; ghost: surface with the hairline */
html[data-theme] .ncc-button:not(.ncc-button--ghost) { color: var(--ncc-primary-fg) !important; background: var(--ncc-primary) !important; box-shadow:none !important; }
html[data-theme] :is(.ncc-button.ncc-button--ghost, .ncc-pager a, .ncc-tip-card .ncc-tip-buttons .ncc-button--ghost) { color: var(--ncc-ink) !important; background: var(--ncc-muted-bg) !important; box-shadow:none !important; filter: none !important; }
@media (hover: hover) {
  html[data-theme] .ncc-button:not(.ncc-button--ghost):hover { background: var(--ncc-primary-hover) !important; }
  html[data-theme] :is(.ncc-button.ncc-button--ghost, .ncc-pager a, .ncc-tip-card .ncc-tip-buttons .ncc-button--ghost):hover { background: var(--ncc-hover-btn) !important; box-shadow:none !important; }
}

/* motion: colour fades, a 0.97 press (140ms in, 100ms back) */
:is(.ncc-button, .ncc-pager a, .wpcf7 .wpcf7-submit, .ncc-share-buttons :is(a, button)) { transition: background-color var(--ncc-dur-fade) ease-out, color var(--ncc-dur-fade) ease-out, scale var(--ncc-dur-release) var(--ncc-ease-out); }
@media (prefers-reduced-motion: no-preference) {
  :is(.ncc-button, .ncc-pager a, .wpcf7 .wpcf7-submit, .ncc-share-buttons :is(a, button)):active { scale: 0.97; transition: background-color var(--ncc-dur-fade) ease-out, color var(--ncc-dur-fade) ease-out, scale var(--ncc-dur-press) var(--ncc-ease-out); } /* press 140ms; the resting rule's 100ms is the release */
}

/* touch: no double-tap zoom wait on anything tappable */
:where(a[href], button, summary, label, select, input, textarea, [role="button"], [role="option"], [role="tab"]) { touch-action: manipulation; }
