/* -----------------------------------------------------------------------------
   aasbdistillery.com - custom CSS

   THIS FILE IS THE CANONICAL PLACE FOR THIS SITE'S CUSTOM CSS.
   Do NOT use Appearance > Customize > Additional CSS. That box was emptied on
   2026-10-20 when its contents moved here; putting rules back into it would
   split the site's CSS across two places, and the Customizer copy loads later
   so it would silently win.

   Front end: enqueued as handle `aasb-custom` on wp_enqueue_scripts priority
   100, dependency `parent-style`. Editor: registered with add_editor_style on
   after_setup_theme priority 20. Both are versioned with filemtime(), so a save
   busts browser and CDN caches on its own. See functions.php.

   Moved from custom_css post 72 on 2026-10-20 by Greta. Backups:
   /home/webmaster/backups/ on the server and
   90 Archive/WP-Proposals/aasbdistillery/backups/ in the vault.

   One deliberate change was made during the move: the masked-heading texture
   URL below was stored as http:// in the Customizer and Really Simple Security
   rewrote it to https on output. A static file gets no such rewrite, so it is
   written as https here. The rendered result is identical.
----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   Block / layout cleanup - standard Iverson Creative Blocksy resets

   Ported 2026-10-20 from the LANL Foundation and Trout Challenge child themes,
   then FILTERED: each rule was injected on its own against the live pages at
   1440 and 390 and only the ones that moved NOTHING were kept. This site was
   built without these resets, so most of them do change its rendering.

   KEPT (measured: zero change to document height, cover boxes, h1, footer and
   the age-gate popup on /, /spirits/ and /events/ at both widths):
     - the guarded cover padding-inline reset
     - the guarded spacer own-margin reset
     - th, .sr-only

   SKIPPED, because they visibly move this site (measured deltas in the work
   record at 90 Archive/WP-Proposals/aasbdistillery/):
     - .wp-block-cover guarded padding-block  -> covers lose 32px, h1 and footer
       rise, home 6236 -> 6204px at 1440
     - *:has(+ .wp-block-spacer)              -> home 6236 -> 6080px, and it
       moves the age-gate popup
     - .wp-block-heading top-margin (Trout's) -> home 6236 -> 6002px, and it
       moves the age-gate popup
     - Trout's blanket .wp-block-cover { padding: 0 !important } - excluded by
       instruction, and superseded by the per-axis guarded version anyway
     - LANL's .alignfull / .wp-block-cover__inner-container / .wp-block-columns
       margin resets - not in scope for this pass

   If this site is ever restyled to the house rhythm, the skipped rules are the
   ones to add, deliberately and with the layout re-reviewed. Do not add them
   as a tidy-up.
----------------------------------------------------------------------------- */

/* Core gives EVERY cover `padding: 1em` in wp-includes/blocks/cover/
 * style.min.css, which these builds do not want. The guard is per-axis on
 * purpose: because the reset is !important, a blunt version beats the inline
 * style the block's own Dimensions panel writes, which is how vertical padding
 * set in the editor got silently zeroed on NMCC (2026-10-02). Matching the
 * longhands core actually emits keeps each axis independent.
 *
 * Only the inline axis is reset here. This site's covers hold a constrained
 * inner container, so removing core's horizontal 1em changes nothing visible;
 * the block axis is doing real work and was left alone - see SKIPPED above. */

.wp-block-cover:not([style*="padding-left"]):not([style*="padding-right"]):not([style*="padding-inline"]) {
	padding-inline: 0 !important;
}

/* The spacer's OWN bottom margin. Blocksy gives every non-heading flow child
 * `margin-block-end: var(--theme-content-spacing)`, a spacer included, so a
 * spacer sits on top of a gap it did not ask for. The front end already
 * computes 0 here, which is why this rule is safe to add - confirmed by
 * measurement on all three pages. The block editor canvas is where the gap
 * actually shows, and that is what this fixes.
 *
 * The :not() guard matches the longhands the Spacer block's own Dimensions
 * panel emits, so a margin set in the editor still wins over the !important. */

.wp-block-spacer:not([style*="margin-bottom"]):not([style*="margin-block"]) {
	margin-block-end: 0 !important;
}

/* -----------------------------------------------------------------------------
   Base elements
----------------------------------------------------------------------------- */

/* Browser default is center. No <th> appears on /, /spirits/ or /events/, so
   this was verified as a no-op there rather than site-wide; it carries no
   !important, so any deliberate alignment still wins. */

th {
	text-align: left;
}

/* Visually hidden but still read aloud. Nothing uses it yet; it is here so a
   text alternative has somewhere to go that is NOT visible page copy. */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -----------------------------------------------------------------------------
   Site-specific - moved verbatim from custom_css post 72
----------------------------------------------------------------------------- */

.mt-0 {
	margin-top: 0 !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}

iframe.google-map, #map {
	border-radius: 2px !important;
	border: 2px solid var(--form-field-border-initial-color) !important;
}

.ct-posts-shortcode .entry-card.spirits .entry-title, .entry-card.spirits .entry-title {
 margin-bottom: 0 !important;
}

.entry-card.spirits {
	margin-bottom: 30px
}

.ct-popup {
  pointer-events: none !important;
}
.ct-popup-inner {
  pointer-events: all !important;
}

.iframe-tours {
	margin-bottom: 50px;
}

.iframe-volunteer {
	padding: 50px;
	background: var(--theme-palette-color-8)
}

body.post-type-archive-location #main .ct-container {
}

.digital_signature-pad {
	max-width: 100% !important;
	border: 2px solid rgba(51, 51, 51, 0.15);
	border-radius: 3px;
}

.dscf7_signature input.clearButton {
	top: 10px;
	right: 10px;
}

.hero-section .entry-header .page-title, body.home .wp-block-cover h1 {
	
  /* Fallback: Set a background color. */
  background-color: #f9f8e9 !important;
  
  /* Create the gradient. */
  background-image: url(https://aasbdistillery.com/wp-content/uploads/2023/02/bg-noisier.jpg) !important;
	background-size: 150px 150px;
  
  /* Set the background size and repeat properties. */
  background-repeat: repeat !important;

  /* Use the text as a mask for the background. */
  /* This will show the gradient as a text color rather than element bg. */
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important; 
  -moz-background-clip: text !important;
  -moz-text-fill-color: transparent !important;

}

.tribe-events-c-top-bar__datepicker-button,
.tribe-events-calendar-month__day-date-daynum {
	font-family: ct_font_smithouse, Sans-Serif !important;
	line-height: 1.2 !important;
}

.tribe-events-calendar-month__calendar-event-title-link,
.tribe-events-calendar-month__calendar-event-tooltip-title, 
.tribe-events-calendar-month__calendar-event-tooltip-title-link,
.tribe-events-calendar-list__event-title, .tribe-events-calendar-list__event-title-link,
.tribe-events-calendar-month-mobile-events__mobile-event-title-link {
	font-family: ct_font_smithouse, Sans-Serif !important;
	line-height: 1.2 !important;
	color: var(--theme-palette-color-1) !important;
}

.tribe-events-calendar-month__calendar-event-datetime,
.tribe-events-calendar-month__calendar-event-tooltip-datetime,
.tribe-events-calendar-list__event-datetime,
.tribe-events-calendar-month-mobile-events__mobile-event-datetime {
	font-family: ct_font_smithouse, Sans-Serif !important;
	line-height: 1.5 !important;
	text-transform: uppercase;	
}

.tribe-events-calendar-list__event-datetime-wrapper {
	margin-bottom: 0 !important;
}

.tribe-events-calendar-month__calendar-event-description,
.tribe-events-calendar-month__calendar-event-tooltip-description,
.tribe-events-calendar-list__event-description {
	font-family: ct_font_smithouse, Sans-Serif !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
}

.tribe-events-calendar-list__event-description {
	margin-top: 0 !important;
}

.datepicker table tr td span.current,
.tribe-events-c-top-bar__datepicker-button {
	color: var(--theme-palette-color-1) !important;
	background: transparent !important;
}

.datepicker table tr td span.active.active {
	background: var(--theme-palette-color-1) !important;
}


.datepicker table tr td span.current.active {
	color: #fff !important;
}

.tribe-events-calendar-month__header-column-title-desktop,
.tribe-events-calendar-month__day-date-daynum,
.tribe-events-calendar-month__day-date-link,
.tribe-events-calendar-month__calendar-event-title-link,
.tribe-events-single-event-title,
.tribe-events-schedule__datetime,
.tribe-events-calendar-latest-past__event-datetime,
.tribe-events-calendar-latest-past__event-date-tag-year, .tribe-events-calendar-latest-past__event-date-tag-month {
	color: var(--theme-palette-color-5) !important;
}

.tribe-events-calendar-month__day-date-link:hover,
.tribe-events-calendar-month__calendar-event-description,
.tribe-events-calendar-month__calendar-event-title-link:hover,
.tribe-events-calendar-latest-past__event-title-link {
	color: var(--theme-palette-color-1) !important;
}

.tribe-common .tribe-common-b2,
.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-common .tribe-common-h5, .tribe-common .tribe-common-h6,
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday,
.tribe-common .tribe-common-h6, .tribe-common .tribe-common-h7, .tribe-common .tribe-common-h8 {
	color: var(--theme-palette-color-6) !important;
}

.tribe-common .tribe-common-c-svgicon__svg-fill {
	fill: var(--theme-palette-color-6) !important;
}

.location-address {
	color: var(--theme-palette-color-4) !important;
}

.tribe-events-header__events-bar {
	display: none !important;
}

.c-accordion__title {
	margin-bottom: 0 !important;
}

.c-accordion__title:after {
	color: var(--theme-palette-color-2);
}

.is-open .c-accordion__title, .c-accordion__title:hover, .is-open .c-accordion__title:after, .c-accordion__title:hover, .c-accordion__title:hover:after {
	color: var(--theme-palette-color-5) !important;
}

.wp-block-pb-accordion-item {
	padding-top: 1rem;
	padding-bottom: .75rem;
	margin-bottom: 0;
}

.wp-block-pb-accordion-item+.wp-block-pb-accordion-item {
	border-top: 1px solid rgba(245, 245, 245, 0.15);
}

.c-accordion__content {
	padding-top: 1rem;
}

.grecaptcha-badge { 
    visibility: hidden !important;
}
#ct-popup-157 .wp-block-button.ct-toggle-close {
	--toggle-button-size: auto;
	--toggle-button-position: static;
	--toggle-button-radius: 0;
	--toggle-button-margin-start: 0;
	--toggle-button-margin-end: 0;
	--toggle-button-inset-end: auto;
}
#ct-popup-157 .wp-block-button.ct-toggle-close .wp-block-button__link {
	white-space: nowrap;
}
