/**
 * Friedberg Moravian Church: site CSS.
 *
 * Base rules and component classes Elementor can't express (eyebrows, prose,
 * scrims, cards, form states, header scroll behavior). Use the tokens from
 * tokens.css; never hardcode a value a token covers.
 */

/* ==========================================================================
   Fluid heading tracking
   The handoff tokens set tracking in px (--tracking-tight/-snug/-subtle), which
   tightens as the clamp() sizes shrink. These em values equal the desktop
   design (px ÷ largest size) and scale with the type. Use them instead of the
   px tokens for display, H1, H2 and prose H2. Same values as the Elementor
   Global Fonts. Lives here, not in tokens.css, so a token re-sync keeps it.
   ========================================================================== */

:root {
  --tracking-display-xl: -0.0185em; /* -2px at 108px */
  --tracking-display-lg: -0.018em;  /* -1.5px at 84px */
  --tracking-display: -0.022em;     /* -1.5px at 68px */
  --tracking-h1: -0.027em;          /* -1.5px at 56px */
  --tracking-h2: -0.034em;          /* -1.5px at 44px */
  --tracking-prose-h2: -0.015em;    /* -0.5px at 34px */
}

/* ==========================================================================
   Elementor defaults
   The Kit (Site Settings) sets color, type, radius and padding; these add the
   control height and focus ring it can't express.
   ========================================================================== */

/* :is(a, button) outranks the plain .elementor-button { display: inline-block }
   in Elementor's editor-preview.css, which loads after this file in the editor
   and would drop the label to the top of the 44px box. */
:is(a, button).elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height-md);
}

.elementor-field-textual {
  min-height: var(--control-height-md);
}

.elementor-button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.elementor-field-textual:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

/* Icon widget: the icon is inline-block on a text line, so the wrapper took
   the body line height (about 30px at 18px) and left space under a 24px icon.
   line-height: 0 makes the wrapper the icon's own size; the wrapper's
   text-align still positions it (Alignment control). */
.elementor-widget-icon .elementor-icon-wrapper {
  line-height: 0;
}

/* The skip link's target (inc/landmarks.php) takes focus so the next Tab
   starts inside it; it isn't a control, so no ring. */
main#content:focus {
  outline: none;
}

/* ==========================================================================
   Icons
   Inline SVG from hello_friedberg_icon() / [fmc_icon]. Size comes from the
   width/height attributes; color is currentColor.
   ========================================================================== */

.fmc-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

/* ==========================================================================
   Component aliases
   Composed roles and motion from the handoff's bundle.css, which tokens.css
   doesn't carry. Heading tracking uses the em values above, not --tracking-*.
   ========================================================================== */

:root {
  --font-ui: var(--font-body);
  /* Eyebrows are small text, so terracotta-600 (5.91:1 on the canvas, 6.35:1
     on white): terracotta-500 is 4.27:1 on the canvas, below AA. */
  --color-eyebrow: var(--color-accent-hover);

  --radius-control: var(--radius-1);
  --radius-card: var(--radius-3);
  --radius-media: var(--radius-6);
  --radius-modal: var(--radius-4);

  --type-label-lg: var(--font-weight-semibold) var(--text-lg)/1.2 var(--font-ui);
  --type-label-md: var(--font-weight-semibold) var(--text-base)/1.2 var(--font-ui);
  --type-label-sm: var(--font-weight-semibold) var(--text-sm)/1.2 var(--font-ui);
  --type-label: var(--type-label-sm);
  --type-body: var(--font-weight-regular) var(--text-lg)/var(--leading-relaxed) var(--font-body);
  --type-caption: var(--font-weight-regular) var(--text-sm)/var(--leading-normal) var(--font-body);
  --type-body-sm: var(--font-weight-regular) var(--text-sm)/var(--leading-normal) var(--font-body);
  --type-body-sm-strong: var(--font-weight-semibold) var(--text-sm)/var(--leading-normal) var(--font-body);
  --type-eyebrow: var(--font-weight-semibold) var(--text-sm)/var(--leading-normal) var(--font-ui);

  --size-prose-h2: clamp(28px, 24.533px + 0.9245vw, 34px);
  --size-prose-h3: clamp(23px, 20.111px + 0.7704vw, 28px);
  --size-prose-h4: clamp(20px, 18.844px + 0.3082vw, 22px);
  --type-prose-h2: var(--font-weight-regular) var(--size-prose-h2)/1.25 var(--font-display);
  --type-prose-h3: var(--font-weight-regular) var(--size-prose-h3)/var(--leading-snug) var(--font-display);
  --type-prose-h4: var(--font-weight-regular) var(--size-prose-h4)/1.35 var(--font-display);

  --scrim-bottom: linear-gradient(180deg, rgba(16, 38, 60, 0) 0%, rgba(16, 38, 60, 0.86) 90%);
  --scrim-left: linear-gradient(270deg, rgba(16, 38, 60, 0) 0%, rgba(16, 38, 60, 0.86) 90%);

  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-slower: 520ms;
  --ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-control: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

/* ==========================================================================
   Buttons
   Primary (terracotta) is the Kit default. Pick another variant by adding a
   class to the Button widget's Advanced > CSS Classes (or to an <a>/<button>
   with .fmc-btn in a template): fmc-btn-secondary, fmc-btn-outline,
   fmc-btn-ghost, fmc-btn-inverse, fmc-btn-outline-inverse. Sizes: fmc-btn-sm,
   fmc-btn-lg. fmc-btn-full stretches it.
   Each rule targets the class's own element (an <a>/<button> in a template)
   or the .elementor-button inside a widget; :not(.elementor-element) keeps
   the widget wrapper, which carries the class in Elementor, from getting the
   padding, fill and border too. fmc-btn-full is the exception: its width has
   to stretch the wrapper as well.
   ========================================================================== */

.fmc-btn,
.elementor-button {
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: var(--type-label-md);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}

.fmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height-md);
  padding: 0 var(--space-6);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.fmc-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.fmc-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

:is(.fmc-btn-secondary:not(.elementor-element), .fmc-btn-secondary .elementor-button) {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
:is(.fmc-btn-secondary:not(.elementor-element), .fmc-btn-secondary .elementor-button):is(:hover, :focus) {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}

:is(.fmc-btn-outline:not(.elementor-element), .fmc-btn-outline .elementor-button) {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
:is(.fmc-btn-outline:not(.elementor-element), .fmc-btn-outline .elementor-button):is(:hover, :focus) {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

:is(.fmc-btn-ghost:not(.elementor-element), .fmc-btn-ghost .elementor-button) {
  background: transparent;
  color: var(--color-primary);
}
:is(.fmc-btn-ghost:not(.elementor-element), .fmc-btn-ghost .elementor-button):is(:hover, :focus) {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

:is(.fmc-btn-inverse:not(.elementor-element), .fmc-btn-inverse .elementor-button) {
  background: var(--white);
  color: var(--color-primary);
}
:is(.fmc-btn-inverse:not(.elementor-element), .fmc-btn-inverse .elementor-button):is(:hover, :focus) {
  background: var(--blue-50);
  color: var(--color-primary);
}

:is(.fmc-btn-outline-inverse:not(.elementor-element), .fmc-btn-outline-inverse .elementor-button) {
  background: transparent;
  border-color: var(--color-border-inverse-strong);
  color: var(--color-text-inverse);
}
:is(.fmc-btn-outline-inverse:not(.elementor-element), .fmc-btn-outline-inverse .elementor-button):is(:hover, :focus) {
  background: var(--color-surface-inverse-hover);
  color: var(--color-text-inverse);
}

:is(.fmc-btn-sm:not(.elementor-element), .fmc-btn-sm .elementor-button) {
  min-height: var(--control-height-sm);
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
}

:is(.fmc-btn-lg:not(.elementor-element), .fmc-btn-lg .elementor-button) {
  min-height: var(--control-height-lg);
  padding: 0 var(--space-8);
  font: var(--type-label-lg);
}

:is(.fmc-btn-full, .fmc-btn-full .elementor-button) {
  width: 100%;
}

/* [fmc_event_signup]: the widget's own spacing places it, not the <p>. */
.fmc-event-signup {
  margin: 0;
}

.fmc-btn:is(:disabled, [aria-disabled="true"]),
.elementor-button:is(:disabled, [aria-disabled="true"]) {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Icon buttons (IconButton.jsx)
   A square, icon-only button: the header's menu button, the hero's pause.
   Add fmc-icon-btn to a Button widget with an icon and no text (or use it on
   a <button>/<a> holding an icon in a template). Sizes: 40px (default),
   fmc-icon-btn-sm 32px, fmc-icon-btn-lg 48px. Tones: plain (default:
   transparent, muted icon), fmc-icon-btn-primary (blue), fmc-icon-btn-inverse
   (white tint, on dark or photo backgrounds).
   The widget's icon is 1em, so the icon size is the button's font size: 24px
   by default (16px small); the widget's Typography › Size overrides it.
   The custom properties live on the class's own element (the widget wrapper
   in Elementor), so the size and tone classes can change them.
   ========================================================================== */

.fmc-icon-btn {
  --fmc-icon-btn-size: var(--space-10);
  --fmc-icon-btn-icon: var(--space-6);
  --fmc-icon-btn-bg: transparent;
  --fmc-icon-btn-color: var(--color-text-muted);
  --fmc-icon-btn-bg-hover: var(--sand-200);
  --fmc-icon-btn-color-hover: var(--color-text);
  --fmc-icon-btn-focus: var(--shadow-focus);
}

.fmc-icon-btn-sm {
  --fmc-icon-btn-size: var(--space-8);
  --fmc-icon-btn-icon: var(--space-4);
}

.fmc-icon-btn-lg {
  --fmc-icon-btn-size: var(--space-12);
}

.fmc-icon-btn-primary {
  --fmc-icon-btn-bg: var(--color-primary);
  --fmc-icon-btn-color: var(--color-on-primary);
  --fmc-icon-btn-bg-hover: var(--color-primary-hover);
  --fmc-icon-btn-color-hover: var(--color-on-primary);
}

.fmc-icon-btn-inverse {
  --fmc-icon-btn-bg: rgb(255 255 255 / var(--opacity-inverse-control));
  --fmc-icon-btn-color: var(--white);
  --fmc-icon-btn-bg-hover: rgb(255 255 255 / var(--opacity-inverse-control-hover));
  --fmc-icon-btn-color-hover: var(--white);
  --fmc-icon-btn-focus: var(--shadow-focus-inverse);
}

/* .elementor-element is the widget wrapper: style the link inside it, not it.
   .fmc-icon-btn.elementor-element .elementor-button (0,3,0) outranks the Kit's
   .elementor-kit-5 .elementor-button (0,2,0), which Elementor re-injects after
   this file in the editor; the widget's own Style settings (0,4,0) still win. */
:is(.fmc-icon-btn:not(.elementor-element), .fmc-icon-btn.elementor-element .elementor-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--fmc-icon-btn-size);
  height: var(--fmc-icon-btn-size);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--fmc-icon-btn-bg);
  color: var(--fmc-icon-btn-color);
  font-size: var(--fmc-icon-btn-icon);
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-control);
}

/* :focus too: the Kit gives button:focus its terracotta hover fill. */
:is(.fmc-icon-btn:not(.elementor-element), .fmc-icon-btn.elementor-element .elementor-button):is(:hover, :focus) {
  background: var(--fmc-icon-btn-bg-hover);
  color: var(--fmc-icon-btn-color-hover);
}

:is(.fmc-icon-btn:not(.elementor-element), .fmc-icon-btn.elementor-element .elementor-button):focus-visible {
  outline: none;
  box-shadow: var(--fmc-icon-btn-focus);
}

.fmc-icon-btn:not(.elementor-element):is(:disabled, [aria-disabled="true"]) {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

/* Elementor keeps an empty label span next to the icon; drop it so the icon centers. */
.fmc-icon-btn .elementor-button-text:empty {
  display: none;
}

.fmc-icon-btn .elementor-button-icon svg {
  width: 1em;
  height: 1em;
}

/* ==========================================================================
   Action link
   Add fmc-action-link to a Button widget (or an <a>) for the standalone
   call-to-action: label type, link colors, underline under the label only.
   The underline sits 1px above the text box bottom and thickens upward on
   hover. Elementor strips the button chrome; template markup is
   <a class="fmc-action-link"><span class="fmc-action-link__label">…</span> icon</a>.
   ========================================================================== */

:is(.fmc-action-link:not(.elementor-element), .fmc-action-link .elementor-button) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-text-link);
  font: var(--type-label-md);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-standard);
}

:is(.fmc-action-link:not(.elementor-element), .fmc-action-link .elementor-button):is(:hover, :focus-visible) {
  background: transparent;
  color: var(--color-text-link-hover);
}

:is(.fmc-action-link__label, .fmc-action-link .elementor-button-text) {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

:is(.fmc-action-link__label, .fmc-action-link .elementor-button-text)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transition: height var(--duration-base) var(--ease-standard);
}

:is(.fmc-action-link:not(.elementor-element), .fmc-action-link .elementor-button):is(:hover, :focus-visible) :is(.fmc-action-link__label, .elementor-button-text)::after {
  height: 2px;
}

.fmc-action-link-inverse :is(.fmc-action-link, .elementor-button),
.fmc-action-link.fmc-action-link-inverse {
  color: var(--color-text-link-inverse, var(--white));
}
.fmc-action-link-inverse :is(.fmc-action-link, .elementor-button):is(:hover, :focus-visible),
.fmc-action-link.fmc-action-link-inverse:is(:hover, :focus-visible) {
  color: var(--color-text-link-inverse-hover, var(--terracotta-200));
}

/* ==========================================================================
   Forms
   Elementor Forms fields and the native controls in templates. Field box,
   label, hint and error match the handoff Input/Textarea/Select.
   ========================================================================== */

.elementor-field-group .elementor-field-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font: var(--type-label);
}

.elementor-field-textual,
.elementor-field-group select {
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-text);
  font: var(--type-body);
  transition: var(--transition-control);
}

textarea.elementor-field-textual {
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.elementor-field-textual::placeholder {
  color: var(--color-text-subtle);
}

.elementor-field-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

/* Select arrow: the Lucide chevron (assets/icons/chevron-down.svg) in place
   of Elementor's filled caret, drawn as a mask so it takes the token color.
   Elementor renders the caret as .select-caret-down-wrapper (an inline SVG)
   or, on older markup, as the wrapper's ::before icon-font glyph. */
.elementor-field-group .elementor-select-wrapper select {
  padding-inline-end: var(--space-10);
}

.elementor-field-group .elementor-select-wrapper .select-caret-down-wrapper svg {
  display: none;
}

.elementor-field-group .elementor-select-wrapper .select-caret-down-wrapper,
.elementor-field-group .elementor-select-wrapper:not(.remove-before)::before {
  content: "";
  inset-inline-end: var(--space-4);
  width: 20px;
  height: 20px;
  background-color: var(--color-text-muted);
  text-shadow: none;
  -webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  mask: url("../icons/chevron-down.svg") center / contain no-repeat;
}

.elementor-field-group .elementor-select-wrapper:has(select:disabled) .select-caret-down-wrapper {
  opacity: var(--opacity-disabled);
}

@media (forced-colors: active) {
  .elementor-field-group .elementor-select-wrapper .select-caret-down-wrapper,
  .elementor-field-group .elementor-select-wrapper:not(.remove-before)::before {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}

.elementor-field-textual:disabled,
.elementor-field-group select:disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

.elementor-field-group.elementor-error .elementor-field-textual,
.elementor-field-group.elementor-error select,
.elementor-field-textual[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.elementor-field-group .elementor-message,
.elementor-field-group .elementor-field-description {
  margin-top: var(--space-2);
  font: var(--type-caption);
  color: var(--color-text-muted);
}

/* A field's hint (the Help Text setting, inc/form-help-text.php) takes its
   own line under the control: the group is a wrapping flex row. */
.elementor-field-group .elementor-field-description {
  flex-basis: 100%;
}

/* Fields side by side stay top-aligned when one has a hint or an error
   message under it: Elementor's groups would spread their lines over the
   row's height and push the shorter field's label down. The submit group
   keeps its own alignment. */
.elementor-form .elementor-field-group:not(.elementor-field-type-submit) {
  align-content: flex-start;
}

.elementor-field-group .elementor-message.elementor-message-danger,
.elementor-message.elementor-message-danger {
  color: var(--color-danger);
}

/* Checkboxes and radios, as the design's Checkbox and Radio: the native
   control at 20px in the primary blue, 12px from a body-size label, centered
   on the label's first line, 12px between options (24px across in an inline
   list). font: inherit on the input makes 1lh the label's line height.
   The focus ring is --shadow-focus's 3px soft blue drawn as an outline, so
   it also shows in forced-colors (high contrast) mode. Chrome draws it
   square around native controls, radios too; a round one would mean
   redrawing the radio (appearance: none).
   Elementor's own rules are matched one for one; these load after them. */
.elementor-field-subgroup {
  gap: var(--space-3) var(--space-6);
}

.elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option {
  padding-inline-end: 0;
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text);
  font: var(--type-body);
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option label {
  display: block;
  font: inherit;
  cursor: pointer;
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option input:is([type="checkbox"], [type="radio"]),
.forminator-ui.forminator-custom-form.forminator-design--basic label:is(.forminator-checkbox, .forminator-radio) input {
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: calc((1lh - 20px) / 2) 0 0;
  padding: 0;
  font: inherit;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option input[type="checkbox"],
.forminator-ui.forminator-custom-form.forminator-design--basic label.forminator-checkbox input {
  border-radius: var(--radius-1);
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option input[type="radio"],
.forminator-ui.forminator-custom-form.forminator-design--basic label.forminator-radio input {
  border-radius: var(--radius-circle);
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option input:is([type="checkbox"], [type="radio"]):focus-visible,
.forminator-ui.forminator-custom-form.forminator-design--basic label:is(.forminator-checkbox, .forminator-radio) input:focus-visible {
  outline: 3px solid var(--color-focus-ring-soft);
  outline-offset: 0;
  box-shadow: none;
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option:has(input:disabled),
.forminator-ui.forminator-custom-form.forminator-design--basic label:is(.forminator-checkbox, .forminator-radio):has(input:disabled) {
  opacity: var(--opacity-disabled);
}

.elementor-field-group .elementor-field-subgroup .elementor-field-option:has(input:disabled) :is(input, label),
.forminator-ui.forminator-custom-form.forminator-design--basic label:is(.forminator-checkbox, .forminator-radio):has(input:disabled) :is(input, span) {
  cursor: not-allowed;
}

/* Inside the Form widget, Elementor's own CSS outranks the rules above: the
   Input Size classes (.elementor-field-textual.elementor-size-md, 0,2,0), the
   Kit's Form Fields (.elementor-kit-5 .elementor-field-textual, 0,2,0), the
   widget's default typography (.elementor-widget-form .elementor-field-group
   .elementor-field, 0,3,0; > label, 0,2,1), its placeholder (0,2,1) and its
   focus shadow (0,3,0). These repeat the design one step above them, still
   below the widget's Style panel (0,5,0 and up), which wins when set.
   Input Size and Button Size are ignored: fields are the design's 44px and
   the button takes fmc-btn-sm / fmc-btn-lg on the Form widget. */
.elementor-widget-form .elementor-field-group > label.elementor-field-label {
  color: var(--color-text);
  font: var(--type-label);
}

.elementor-widget-form .elementor-field-group .elementor-field-textual.elementor-field {
  min-height: var(--control-height-md);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-text);
  font: var(--type-body);
  transition: var(--transition-control);
}

.elementor-widget-form .elementor-field-group textarea.elementor-field-textual.elementor-field {
  padding: var(--space-3) var(--space-4);
}

.elementor-widget-form .elementor-field-group .elementor-field-textual.elementor-field::placeholder {
  color: var(--color-text-subtle);
  opacity: 1;
}

.elementor-widget-form .elementor-field-group .elementor-field-textual.elementor-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.elementor-widget-form .elementor-field-group.elementor-error .elementor-field-textual.elementor-field,
.elementor-widget-form .elementor-field-group .elementor-field-textual.elementor-field[aria-invalid="true"] {
  border-color: var(--color-danger);
}

/* Submit button: Elementor's Button Size sets min-height at (0,3,0)
   (.elementor-form .elementor-button.elementor-size-sm). */
.elementor-widget-form .elementor-form .elementor-button[class*="elementor-size-"] {
  min-height: var(--control-height-md);
}

.elementor-widget-form.fmc-btn-sm .elementor-form .elementor-button[class*="elementor-size-"] {
  min-height: var(--control-height-sm);
}

.elementor-widget-form.fmc-btn-lg .elementor-form .elementor-button[class*="elementor-size-"] {
  min-height: var(--control-height-lg);
}

/* A heading over a group of fields (the live stream form's "Address"),
   written in a form's HTML field: <p class="fmc-field-heading">Address
   <span class="fmc-optional">(optional)</span></p>. fmc-optional also works
   on its own, anywhere a "(optional)" note follows a label. */
.fmc-field-heading {
  margin: 0;
  color: var(--color-text);
  font: var(--type-label-md);
}

.fmc-optional {
  color: var(--color-text-muted);
  font: var(--type-body-sm);
}

/* A Form's HTML field: Elementor makes it a wrapping flex row (from
   .elementor-column), so two short paragraphs would sit side by side; as a
   block its tags stack as written. The field's first and last tag lose their
   outer margins, so the field lines up with the fields around it. Style the
   text inside with the type classes (fmc-type-h4, fmc-type-body-sm,
   fmc-text-muted…). */
.elementor-form .elementor-field-type-html {
  display: block;
}

.elementor-form .elementor-field-type-html > :first-child {
  margin-top: 0;
}

.elementor-form .elementor-field-type-html > :last-child {
  margin-bottom: 0;
}

/* A divider: an HTML field holding <hr> (Column Width 100%), the 1px
   hairline of long-form content. On its own in the field it has no margin,
   so the Form's Rows Gap spaces it like any field; between other tags in
   the field it takes 24px. fmc-hr-spaced adds 16px above and below even on
   its own, for a break between groups of fields. */
.elementor-form .elementor-field-type-html hr {
  height: 0;
  margin-block: var(--space-6);
  border: 0;
  border-top: 1px solid var(--color-border);
  opacity: 1;
}

.elementor-form .elementor-field-type-html > hr.fmc-hr-spaced {
  margin-block: var(--space-4);
}

/* ==========================================================================
   Forminator forms (Appearance › Basic)
   Basic leaves styling to the theme, so the fields and submit button take the
   same look as the Elementor Forms above. The Kit's button padding is
   0 24px (its height comes from min-height), and Hello Elementor's reset adds
   a pink border, so the button needs its own rules here.
   ========================================================================== */

.forminator-ui.forminator-design--basic .forminator-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font: var(--type-label);
}

.forminator-ui.forminator-design--basic :is(.forminator-input, .forminator-textarea, select) {
  width: 100%;
  min-height: var(--control-height-md);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-text);
  font: var(--type-body);
  transition: var(--transition-control);
}

.forminator-ui.forminator-design--basic .forminator-textarea {
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.forminator-ui.forminator-design--basic :is(.forminator-input, .forminator-textarea)::placeholder {
  color: var(--color-text-subtle);
}

.forminator-ui.forminator-design--basic :is(.forminator-input, .forminator-textarea, select):focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.forminator-ui.forminator-design--basic .forminator-has_error :is(.forminator-input, .forminator-textarea, select),
.forminator-ui.forminator-design--basic [aria-invalid="true"] {
  border-color: var(--color-danger);
}

.forminator-ui.forminator-design--basic :is(.forminator-description, .forminator-error-message) {
  display: block;
  margin-top: var(--space-2);
  font: var(--type-caption);
  color: var(--color-text-muted);
}

/* Errors as plain caption text in the danger color, as on the Elementor
   forms. Forminator's per-form stylesheet sets a pink bar at 12px by form
   ID; :not(#fmc-forminator) (see Select fields, below) outranks it. */
.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) .forminator-error-message {
  padding: 0;
  background-color: transparent;
  color: var(--color-danger);
  font: var(--type-caption);
}

/* Select fields: Forminator draws them with Select2 (a button-like box, and
   a list it appends to <body> when open), so the native select rules above
   don't reach them. The box matches the text fields with the Lucide chevron
   (as on the Elementor selects); the list is a raised panel at the field's
   width. Forminator's per-form stylesheet (uploads/forminator/) colors
   these by form ID, so the rules carry :not(#fmc-forminator), which matches
   everything and adds ID weight, to outrank it without !important. */
.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] {
  display: flex;
  align-items: center;
  min-height: var(--control-height-md);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-text);
  font: var(--type-body);
  cursor: pointer;
  transition: var(--transition-control);
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__rendered {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--color-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__placeholder {
  color: var(--color-text-subtle);
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-inline-start: var(--space-3);
  background-color: var(--color-text-muted);
  -webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__arrow > * {
  display: none;
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select.select2-container--open .selection .select2-selection--single[role="combobox"] .select2-selection__arrow {
  transform: rotate(180deg);
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select:is(.select2-container--focus, .select2-container--open) .selection .select2-selection--single[role="combobox"] {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) .forminator-has_error select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] {
  border-color: var(--color-danger);
}

@media (prefers-reduced-motion: reduce) {
  .forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__arrow {
    transition: none;
  }
}

@media (forced-colors: active) {
  .forminator-ui.forminator-custom-form.forminator-design--basic:not(#fmc-forminator) select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__arrow {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}

body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic {
  margin-top: var(--space-1);
  padding: var(--space-2) 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-2);
  color: var(--color-text);
  font: var(--type-body);
}

body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options {
  max-height: 320px;
}

body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option,
body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option span {
  padding: var(--space-2) var(--space-4);
  background-color: transparent;
  color: var(--color-text);
  font: var(--type-body);
}

body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option span {
  padding: 0;
}

body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option--highlighted,
body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option--highlighted span {
  background-color: var(--color-surface-sunken);
  color: var(--color-text);
}

body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option--selected,
body:not(#fmc-forminator) .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--basic .select2-results .select2-results__options .select2-results__option--selected span {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-on-soft);
}

/* Checkbox and radio options: the input is styled with Elementor's
   (Elementor defaults, above); this lays out the row like the design: label
   at body size 12px from the box, 12px between options, 24px across inline
   ones. Forminator's own margins reach (0,6,0) and load later, hence the
   longer selectors. Its drawn box stays hidden (Basic shows the native one). */
.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field label:is(.forminator-checkbox, .forminator-radio) {
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  color: var(--color-text);
  font: var(--type-body);
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field label:is(.forminator-checkbox-inline, .forminator-radio-inline) {
  margin-right: var(--space-6);
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field label:is(.forminator-checkbox, .forminator-radio) > span:not([aria-hidden="true"]) {
  margin: 0;
  font: inherit;
}

/* Calculation fields (an order Total) read as a summary line, not a field:
   label left, amount right in the display face, a hairline above. Forminator
   wraps the read-only input in a .forminator-input div (prefix, input,
   suffix), so the field rules above would draw a box inside a box; both are
   reset here. Forminator's stylesheet loads after this one, so these rules
   carry .forminator-custom-form to outrank its own. Disabled inputs dim
   their text in Safari, hence the fill color. */
.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-label {
  margin: 0;
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-input {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  min-height: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font: var(--font-weight-regular) max(24px, var(--step-2)) / var(--leading-snug) var(--font-display);
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-input :is(.forminator-prefix, .forminator-suffix) {
  font: inherit;
  margin: 0;
  color: var(--color-text);
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-input :is(.forminator-prefix, .forminator-suffix):empty {
  display: none;
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-calculation {
  flex: none;
  width: auto;
  min-width: 0;
  field-sizing: content;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--color-text);
  -webkit-text-fill-color: var(--color-text);
  opacity: 1;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  cursor: default;
}

.forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-calculation::placeholder {
  color: var(--color-text);
  -webkit-text-fill-color: var(--color-text);
  opacity: 1;
}

/* Without field-sizing (Firefox), the input keeps a fixed width; the amount
   sits left so it stays next to the $ prefix. */
@supports not (field-sizing: content) {
  .forminator-ui.forminator-custom-form.forminator-design--basic .forminator-field-calculation .forminator-calculation {
    width: 7ch;
    text-align: left;
  }
}

.forminator-ui.forminator-design--basic .forminator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height-md);
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font: var(--type-label-md);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}

.forminator-ui.forminator-design--basic .forminator-button:focus {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.forminator-ui.forminator-design--basic .forminator-button:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.forminator-ui.forminator-design--basic .forminator-button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.forminator-ui.forminator-design--basic .forminator-button:is(:disabled, [aria-disabled="true"]) {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

/* ==========================================================================
   Paragraphs
   Replaces Hello Elementor's reset (p: 0.9rem below) with 1em, the same
   spacing as long-form content. The last paragraph in any element has none
   below it: Elementor's container gap spaces widgets, so a one-paragraph
   Text Editor ends at its text. fmc-flush on a widget or container also
   drops the bottom margin of whatever block comes last (lists, headings,
   quotes). Kept at element specificity, so the prose rules, block styles
   and the Text Editor's Paragraph Spacing setting still win.
   ========================================================================== */

p {
  margin-block: 0 1em;
}

p:where(:last-child),
.fmc-flush :where(p, ul, ol, dl, blockquote, figure, pre, table, h1, h2, h3, h4, h5, h6):where(:last-child) {
  margin-block-end: 0;
}

/* ==========================================================================
   Type classes
   One class per Global Font, for text written as HTML, where the Typography
   panel isn't available: a Form's HTML field, an HTML widget, a Text
   Editor's code view, shortcode output. The tag stays what the outline
   needs; the class sets the look, e.g. <h3 class="fmc-type-h4">.
   fmc-text-muted is the secondary text color (captions, notes).

   Each rule is (0,2,0) through [class], so it outranks the Kit's tag styles
   (.elementor-kit-N h3, 0,1,1) and the prose headings (.entry-content h3).
   The classes set the font and tracking only, not the color or margins.
   The eyebrow is fmc-eyebrow (below).
   ========================================================================== */

.fmc-type-display-xl[class] {
  font: var(--font-weight-regular) var(--step-8)/1.1 var(--font-display);
  letter-spacing: var(--tracking-display-xl);
}

.fmc-type-display-lg[class] {
  font: var(--font-weight-regular) var(--step-7)/var(--leading-tight) var(--font-display);
  letter-spacing: var(--tracking-display-lg);
}

.fmc-type-display[class] {
  font: var(--font-weight-regular) var(--step-6)/var(--leading-tight) var(--font-display);
  letter-spacing: var(--tracking-display);
}

.fmc-type-h1[class] {
  font: var(--font-weight-regular) var(--step-5)/var(--leading-tight) var(--font-display);
  letter-spacing: var(--tracking-h1);
}

.fmc-type-h2[class] {
  font: var(--font-weight-regular) var(--step-4)/var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-h2);
}

.fmc-type-h3[class] {
  font: var(--font-weight-regular) var(--step-3)/var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-h4[class] {
  font: var(--font-weight-regular) var(--step-2)/var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-h5[class] {
  font: var(--font-weight-regular) var(--step-1)/var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-h6[class] {
  font: var(--font-weight-medium) var(--step-0)/var(--leading-normal) var(--font-display);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-prose-h2[class] {
  font: var(--type-prose-h2);
  letter-spacing: var(--tracking-prose-h2);
}

.fmc-type-prose-h3[class] {
  font: var(--type-prose-h3);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-prose-h4[class] {
  font: var(--type-prose-h4);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-lead[class] {
  font: var(--text-type-lead);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-body[class] {
  font: var(--type-body);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-body-sm[class] {
  font: var(--type-body-sm);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-body-sm-strong[class] {
  font: var(--type-body-sm-strong);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-label-lg[class] {
  font: var(--type-label-lg);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-label-md[class] {
  font: var(--type-label-md);
  letter-spacing: var(--tracking-normal);
}

.fmc-type-label-sm[class] {
  font: var(--type-label-sm);
  letter-spacing: var(--tracking-normal);
}

.fmc-text-muted[class] {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Eyebrow
   Add fmc-eyebrow to a Heading or Text Editor widget (or any element). Color
   comes from --color-eyebrow (terracotta-600, set under "Component aliases";
   sunken bands set it again through --color-accent-on-sunken, the same color).
   On a widget the title rule is (0,3,0): above Elementor's default Heading
   typography (.elementor-widget-heading .elementor-heading-title, 0,2,0),
   which the editor loads after the theme, and below the widget's own
   Typography settings (0,4,0).
   ========================================================================== */

.fmc-eyebrow,
.fmc-eyebrow :is(.elementor-heading-title, p),
.fmc-eyebrow.elementor-widget :is(.elementor-heading-title, p) {
  color: var(--color-eyebrow);
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* ==========================================================================
   Prose
   Long-form editor content uses the quieter heading scale. .entry-content is
   WordPress post content; .prose is for a Text Editor widget or other wrapper;
   .is-root-container is the block editor's content area.
   ========================================================================== */

:is(.prose, .entry-content, .is-root-container) h2 {
  margin: 1.75em 0 0.45em;
  font: var(--type-prose-h2);
  letter-spacing: var(--tracking-prose-h2);
  text-wrap: balance;
}

:is(.prose, .entry-content, .is-root-container) h3 {
  margin: 1.5em 0 0.4em;
  font: var(--type-prose-h3);
  letter-spacing: var(--tracking-normal);
  text-wrap: balance;
}

:is(.prose, .entry-content, .is-root-container) h4 {
  margin: 1.4em 0 0.35em;
  font: var(--type-prose-h4);
  letter-spacing: var(--tracking-normal);
  text-wrap: balance;
}

/* Rhythm: blocks sit 1em (18px) apart, the designs' paragraph spacing. The
   same rules run in the block editor, so neither WordPress's editor gap nor
   the theme's resets decide it. :where() keeps Lead and Location's own
   margins in charge. */
:is(.prose, .entry-content, .is-root-container) > :where(p, ul, ol, blockquote, figure, hr, .wp-block-file, .wp-block-buttons, .wp-block-embed, .wp-block-gallery) {
  margin-block: 0 1em;
}

:is(.prose, .entry-content, .is-root-container) :is(ul, ol) {
  padding-left: 1.5em;
}

:is(.prose, .entry-content, .is-root-container) li + li {
  margin-top: var(--space-2);
}

/* Quote: display serif at the prose H4 size, a blue rule at the left. */
:is(.prose, .entry-content, .is-root-container) blockquote {
  margin-inline: 0;
  padding: 0 0 0 var(--space-6);
  border-left: 2px solid var(--color-primary);
  font: var(--type-prose-h4);
  font-style: normal;
  color: var(--color-text);
}

:is(.prose, .entry-content, .is-root-container) blockquote p {
  margin: 0 0 var(--space-2);
  font: inherit;
  font-style: normal;
}

:is(.prose, .entry-content, .is-root-container) blockquote cite {
  display: block;
  font: var(--type-caption);
  font-style: normal;
  color: var(--color-text-muted);
}

/* Content images (Image and Gallery blocks) use the media radius, like the
   design system's Photo. */
:is(.prose, .entry-content, .is-root-container) :is(.wp-block-image, .wp-block-gallery) img {
  border-radius: var(--radius-media);
}

:is(.prose, .entry-content, .is-root-container) figcaption {
  margin: var(--space-2) 0 0;
  font: var(--type-caption);
  font-style: normal;
  color: var(--color-text-muted);
  text-align: left;
}

:is(.prose, .entry-content, .is-root-container) hr {
  margin-block: 2em;
  border: 0;
  border-top: 1px solid var(--color-border);
  opacity: 1;
}

/* File block: the ministry Resources row (see .fmc-resource). Icon tile with
   the file icon (both drawn here), the file name with its type
   (added on the site by inc/block-editor.php), and the Download button shown
   as a download icon; its text stays for screen readers. The editor wraps
   the parts in extra divs, flattened by display: contents. On the site the
   whole card is the link. */
:is(.prose, .entry-content, .is-root-container) .wp-block-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

:is(.prose, .entry-content, .is-root-container) :is(.wp-block-file__content-wrapper, .wp-block-file__button-richtext-wrapper) {
  display: contents;
}

:is(.prose, .entry-content, .is-root-container) .wp-block-file::before {
  content: "";
  flex: none;
  width: var(--control-height-md);
  height: var(--control-height-md);
  border-radius: var(--radius-2);
  background: var(--color-primary-soft);
}

/* The 20px file icon, centered on the 44px tile. */
:is(.prose, .entry-content, .is-root-container) .wp-block-file::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--space-6) + (var(--control-height-md) - 20px) / 2);
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: var(--color-primary);
  mask: url("../icons/file.svg") center / contain no-repeat;
  pointer-events: none;
}

:is(.prose, .entry-content, .is-root-container) .wp-block-file a:not(.wp-block-file__button) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  color: var(--color-text);
  font: var(--type-label-lg);
  text-decoration: none;
}

:is(.prose, .entry-content, .is-root-container) .wp-block-file__meta {
  color: var(--color-text-muted);
  font: var(--type-caption);
}

:is(.prose, .entry-content, .is-root-container) .wp-block-file .wp-block-file__button {
  position: relative;
  z-index: 1;
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--color-primary);
  color: transparent;
  font-size: 0;
  mask: url("../icons/download.svg") center / contain no-repeat;
}

:is(.prose, .entry-content) .wp-block-file a:not(.wp-block-file__button)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

:is(.prose, .entry-content) .wp-block-file:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

:is(.prose, .entry-content) .wp-block-file a:focus-visible {
  outline: none;
}

:is(.prose, .entry-content) .wp-block-file:has(a:focus-visible) {
  box-shadow: var(--shadow-focus);
}

/* The inline PDF preview doesn't fit the row. */
:is(.prose, .entry-content, .is-root-container) .wp-block-file__embed {
  display: none;
}

:is(.prose, .entry-content, .is-root-container) > :first-child {
  margin-top: 0;
}

:is(.prose, .entry-content, .is-root-container) > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Block editor content
   Named styles staff pick in the block editor (inc/block-editor.php): Lead
   and Location paragraphs, and buttons (default blue, Outline, Action link).
   They apply wherever post content shows, and in the editor.
   ========================================================================== */

.is-style-lead {
  font: var(--text-type-lead);
  margin-bottom: var(--space-6);
}

/* Location line: map-pin icon (18px, the design's small icon) drawn by CSS,
   so the content holds no SVG. The description after it sits close. */
.is-style-location {
  position: relative;
  box-sizing: border-box;
  margin: 0 0 var(--space-3);
  padding-left: calc(18px + var(--space-2));
  font: var(--type-body-sm);
  color: var(--color-text-muted);
}

.is-style-location::before {
  content: "";
  position: absolute;
  top: calc((1lh - 18px) / 2);
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  mask: url("../icons/map-pin.svg") center / contain no-repeat;
}

.is-style-location + p {
  margin-top: 0;
}

/* Buttons. Default (Fill) is the blue secondary button: the one terracotta
   primary per view belongs to the template. Doubled selectors outrank core's
   button CSS. */
.wp-block-buttons .wp-block-button > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height-md);
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font: var(--type-label-md);
  text-decoration: none;
  transition: var(--transition-control);
}

.wp-block-buttons .wp-block-button > .wp-block-button__link:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}

.wp-block-buttons .wp-block-button > .wp-block-button__link:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
  border-color: var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Action link: the ActionLink look (see Action link above) with an arrow.
   The underline is under the label only; the arrow has no text to underline. */
.wp-block-buttons .wp-block-button.is-style-action-link > .wp-block-button__link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-link);
  text-decoration: underline 1px;
  text-underline-offset: 5px;
  transition: color var(--duration-base) var(--ease-standard), text-decoration-thickness var(--duration-base) var(--ease-standard);
}

.wp-block-buttons .wp-block-button.is-style-action-link > .wp-block-button__link::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("../icons/arrow-right.svg") center / contain no-repeat;
}

.wp-block-buttons .wp-block-button.is-style-action-link > .wp-block-button__link:is(:hover, :focus-visible) {
  background: transparent;
  color: var(--color-text-link-hover);
  text-decoration-thickness: 2px;
}

/* Button icons: the Button block's Icon setting (inc/button-icons.php) adds
   has-fmc-icon, fmc-icon-<name> and fmc-icon-before/after to the wrapper.
   The icon is an 18px mask in the text color, var(--space-2) from the text
   (the button's gap). On an Action link the chosen icon takes the arrow's
   place. To offer another icon, add it to hello_friedberg_button_icons() and
   to the list below. */
.wp-block-buttons .wp-block-button.fmc-icon-before > .wp-block-button__link::before,
.wp-block-buttons .wp-block-button.fmc-icon-after > .wp-block-button__link::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.wp-block-buttons .wp-block-button.is-style-action-link.fmc-icon-before > .wp-block-button__link::after {
  content: none;
}

.wp-block-buttons .wp-block-button.fmc-icon-download > .wp-block-button__link::before,
.wp-block-buttons .wp-block-button.fmc-icon-download > .wp-block-button__link::after {
  mask-image: url("../icons/download.svg");
}

.wp-block-buttons .wp-block-button.fmc-icon-calendar > .wp-block-button__link::before,
.wp-block-buttons .wp-block-button.fmc-icon-calendar > .wp-block-button__link::after {
  mask-image: url("../icons/calendar.svg");
}

.wp-block-buttons .wp-block-button.fmc-icon-arrow-right > .wp-block-button__link::before,
.wp-block-buttons .wp-block-button.fmc-icon-arrow-right > .wp-block-button__link::after {
  mask-image: url("../icons/arrow-right.svg");
}

.wp-block-buttons .wp-block-button.fmc-icon-external-link > .wp-block-button__link::before,
.wp-block-buttons .wp-block-button.fmc-icon-external-link > .wp-block-button__link::after {
  mask-image: url("../icons/external-link.svg");
}

.wp-block-buttons .wp-block-button.fmc-icon-mail > .wp-block-button__link::before,
.wp-block-buttons .wp-block-button.fmc-icon-mail > .wp-block-button__link::after {
  mask-image: url("../icons/mail.svg");
}

/* ==========================================================================
   Sections and bands
   Canvas sections: 128px below, none above (96px under 1024px, 64px under
   768px). Add fmc-section-space-above after an image PageHeader or a sunken
   band. fmc-section-sunken is the full-width sand band (the same padding top
   and bottom). Apply to the Elementor container's CSS
   Classes. Both add the page gutter as side padding (below).
   ========================================================================== */

/* Section rhythm: 128px (--section-y-lg) from 1024px, 96px (--space-24)
   below 1024px, 64px (--space-16) below 768px. --section-y is usable
   anywhere, e.g. var(--section-y) in a container's padding. */
:root {
  --section-y: var(--section-y-lg);
}

@media (max-width: 1023.98px) {
  :root {
    --section-y: var(--space-24);
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-y: var(--space-16);
  }
}

/* On an Elementor container the rhythm sets Elementor's own padding
   variables, like the page gutter below, so a padding set in the panel
   (Layout › Padding) wins over it. Elementor writes it only when all four
   sides are filled (README, "Sections and bands"). The rules stay at
   (0,2,0), under the panel's (0,3,0): modifiers
   and neighbors go inside :where(). In a template (not a container) the
   classes pad the element directly. */
.e-con.fmc-section {
  --padding-bottom: var(--section-y);
}

.e-con.fmc-section:where(.fmc-section-space-above) {
  --padding-top: var(--section-y);
}

.e-con.fmc-section-sunken {
  --padding-top: var(--section-y);
  --padding-bottom: var(--section-y);
}

.fmc-section:not(.e-con) {
  padding-bottom: var(--section-y);
}

.fmc-section.fmc-section-space-above:not(.e-con) {
  padding-top: var(--section-y);
}

.fmc-section-sunken:not(.e-con) {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.fmc-section-sunken {
  background: var(--color-surface-sunken);
  --color-eyebrow: var(--color-accent-on-sunken);
}

/* Keep the rhythm when a display condition removes a section (Elementor
   leaves it out of the page, so the neighbors meet):
   - a canvas section right after a sunken band adds the space on top, with
     or without fmc-section-space-above;
   - fmc-section-space-above right after a canvas section adds nothing, since
     that section already has the space below.
   E.g. the single event: no Contact Email removes Questions, so More events
   follows the Getting Here band; no venue removes the band, so Questions
   follows a canvas section. */
.e-con.fmc-section:where(.fmc-section-sunken + .fmc-section:not(.fmc-section-sunken)) {
  --padding-top: var(--section-y);
}

.e-con.fmc-section:where(.fmc-section:not(.fmc-section-sunken) + .fmc-section-space-above:not(.fmc-section-sunken)) {
  --padding-top: 0px;
}

.fmc-section-sunken + .fmc-section:not(.fmc-section-sunken, .e-con) {
  padding-top: var(--section-y);
}

.fmc-section:not(.fmc-section-sunken) + .fmc-section.fmc-section-space-above:not(.fmc-section-sunken, .e-con) {
  padding-top: 0;
}

/* Page gutter: the side padding of every section, 32px (--layout-gutter),
   64px (--layout-gutter-lg) from breakpoint-2xl (1536px). --page-gutter is
   usable anywhere, e.g. as var(--page-gutter) in a container's padding.
   On a container the sections set Elementor's own padding variables, so a
   side padding set in the panel still wins; leave it empty. In a template,
   the classes pad the element directly. */
:root {
  --page-gutter: var(--layout-gutter);
}

@media (min-width: 1536px) {
  :root {
    --page-gutter: var(--layout-gutter-lg);
  }
}

.e-con:is(.fmc-section, .fmc-section-sunken) {
  --padding-left: var(--page-gutter);
  --padding-right: var(--page-gutter);
}

:is(.fmc-section, .fmc-section-sunken):not(.e-con) {
  padding-inline: var(--page-gutter);
}

/* ==========================================================================
   Content widths
   fmc-width-max / fmc-width-content / fmc-width-narrow on an Elementor
   container, following the design system's width table (README, Layout):
     max:     1440 at 1536px and up, 1160 at 1024-1535px, 720 below
     content: 1160 at 1024px and up, 720 below
     narrow:  720 always
   Boxed container: the background runs full width and the inner content
   caps at the width (sections, sunken bands). Full Width container: the
   container itself caps and centers (callout boxes, article columns).
   Leave the container's own Content Width / Width at the default.
   Media queries use pixels: var() doesn't work in a media condition.
   ========================================================================== */

.e-con.fmc-width-max {
  --fmc-width: var(--layout-max);
}

.e-con.fmc-width-content {
  --fmc-width: var(--layout-content);
}

.e-con.fmc-width-narrow {
  --fmc-width: var(--layout-narrow);
}

@media (max-width: 1535.98px) {
  .e-con.fmc-width-max {
    --fmc-width: var(--layout-content);
  }
}

@media (max-width: 1023.98px) {
  .e-con:is(.fmc-width-max, .fmc-width-content) {
    --fmc-width: var(--layout-narrow);
  }
}

.e-con.e-con-boxed:is(.fmc-width-max, .fmc-width-content, .fmc-width-narrow) {
  --content-width: min(100%, var(--fmc-width));
}

.e-con.e-con-full:is(.fmc-width-max, .fmc-width-content, .fmc-width-narrow) {
  max-width: var(--fmc-width);
  margin-inline: auto;
}

/* fmc-bleed-mobile: below 768px, no side padding (the section gutter) and
   no fmc-width-* cap, so a wide card inside, or the container itself, runs
   edge to edge. Use it on an fmc-section / fmc-section-sunken, or on a
   Full Width card container that has a width class. Same (0,2,0) as the
   gutter and width rules, placed after them; a side padding set in the
   panel for mobile still wins. */
@media (max-width: 767.98px) {
  .e-con.fmc-bleed-mobile {
    --padding-left: 0px;
    --padding-right: 0px;
    --fmc-width: 100%;
  }

  .fmc-bleed-mobile:not(.e-con) {
    padding-inline: 0;
  }
}

/* ==========================================================================
   Cards
   fmc-card on a container: surface with a hairline border. Tones:
   fmc-card-sunken, fmc-card-inverse, fmc-card-outline. fmc-card-elevated adds
   the shadow; fmc-card-interactive lifts on hover (use on linked cards).
   ========================================================================== */

.fmc-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-out);
}

/* On a container the padding and radius go through Elementor's own
   variables (as the section classes do), so Padding and Border Radius set
   in the panel replace them, at any breakpoint. In a template, the class
   pads and rounds the element directly. */
.e-con.fmc-card {
  --padding-top: var(--space-6);
  --padding-right: var(--space-6);
  --padding-bottom: var(--space-6);
  --padding-left: var(--space-6);
  --border-radius: var(--radius-card);
}

.fmc-card:not(.e-con) {
  padding: var(--space-6);
  border-radius: var(--radius-card);
}

.fmc-card-sunken {
  border-color: transparent;
  background: var(--color-surface-sunken);
}

.fmc-card-inverse {
  border-color: transparent;
  background: var(--color-surface-inverse);
  color: var(--color-text-inverse);
}

.fmc-card-outline {
  background: transparent;
}

/* ==========================================================================
   Inverse text
   fmc-text-inverse on a widget or a container (and built into
   fmc-card-inverse): text, headings and links switch to the inverse colors
   for dark backgrounds. Links white (--color-text-link-inverse), terracotta-200
   on hover and focus. Selectors sit at (0,2,x): above the Kit's
   .elementor-kit-5 a / h1-h6 in any load order, below colors set on a
   widget in the panel, which still win. Buttons, icon buttons, action links,
   nav menu items and social icons keep their own styles.
   ========================================================================== */

:is(.fmc-text-inverse, .fmc-card-inverse) {
  color: var(--color-text-inverse);
}

:is(.fmc-text-inverse, .fmc-card-inverse) :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) {
  color: var(--color-text-inverse);
}

:is(.fmc-text-inverse, .fmc-card-inverse) a:not(.elementor-button, .fmc-btn, .fmc-icon-btn, .fmc-action-link, .elementor-item, .elementor-sub-item, .elementor-social-icon, .fmc-social-links__link) {
  color: var(--color-text-link-inverse);
}

:is(.fmc-text-inverse, .fmc-card-inverse) a:not(.elementor-button, .fmc-btn, .fmc-icon-btn, .fmc-action-link, .elementor-item, .elementor-sub-item, .elementor-social-icon, .fmc-social-links__link):is(:hover, :focus-visible) {
  color: var(--color-text-link-inverse-hover);
}

:is(.fmc-text-inverse, .fmc-card-inverse) a:not(.elementor-button, .fmc-btn, .fmc-icon-btn, .fmc-action-link, .elementor-item, .elementor-sub-item, .elementor-social-icon, .fmc-social-links__link):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-inverse);
}

.fmc-card-elevated {
  box-shadow: var(--shadow-2);
}

.fmc-card-interactive {
  cursor: pointer;
}

.fmc-card-interactive:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

/* fmc-card-link: a click anywhere on the card follows its link (the action
   link, or the element classed fmc-card-link-target). The click is
   assets/js/card-link.js; the link stays the only link, so there's no nested
   <a>. Text inside keeps the text cursor only where it's selectable. */
.fmc-card-link {
  cursor: pointer;
}

/* fmc-card-zoom on a card container (e.g. the Loop Item's outer container):
   hovering anywhere on the card, or tabbing to a link in it, zooms its image
   to 105% (FeatureCard.jsx). The image is clipped to its own frame and to
   the card, so it never spills over the text or past the rounded corners
   (the image's own Border Radius included).
   Images only (Image widget or <img>), not container background images.
   No zoom for visitors who prefer reduced motion. */
.e-con.fmc-card-zoom {
  --overflow: hidden;
}

.fmc-card-zoom:not(.e-con),
.fmc-card-zoom .elementor-widget-image {
  overflow: hidden;
}

/* The frame takes the image's Border Radius (Elementor's control also sets
   --fmc-image-radius on the widget, inc/elementor.php), so the zoomed image
   keeps its rounded corners. isolation keeps Safari clipping during the
   transition. */
.fmc-card-zoom .elementor-widget-image {
  border-radius: var(--fmc-image-radius, 0);
  isolation: isolate;
}

@media (prefers-reduced-motion: no-preference) {
  .fmc-card-zoom img {
    transition: transform calc(var(--duration-slower) * 1.5) var(--ease-out);
  }

  .fmc-card-zoom:is(:hover, :focus-within) img {
    transform: scale(1.05);
  }
}

/* ==========================================================================
   Aspect ratios
   fmc-ratio-16-9, -1-1, -4-3, -3-4, -2-1, -3-2, -2-3, -10-8, -8-10.
   On an Image widget (or an <img> in a template) the image takes the ratio
   and fills it (object-fit: cover, cropping the overflow). On a container
   the box takes the ratio, so a background image fills it. A Height set in
   the panel overrides the ratio; the Image widget's Object Fit and Object
   Position still apply.
   ========================================================================== */

.fmc-ratio-16-9 {
  --fmc-ratio: 16 / 9;
}

.fmc-ratio-1-1 {
  --fmc-ratio: 1 / 1;
}

.fmc-ratio-4-3 {
  --fmc-ratio: 4 / 3;
}

.fmc-ratio-3-4 {
  --fmc-ratio: 3 / 4;
}

.fmc-ratio-2-1 {
  --fmc-ratio: 2 / 1;
}

.fmc-ratio-3-2 {
  --fmc-ratio: 3 / 2;
}

.fmc-ratio-2-3 {
  --fmc-ratio: 2 / 3;
}

.fmc-ratio-10-8 {
  --fmc-ratio: 10 / 8;
}

.fmc-ratio-8-10 {
  --fmc-ratio: 8 / 10;
}

.e-con:is(.fmc-ratio-16-9, .fmc-ratio-1-1, .fmc-ratio-4-3, .fmc-ratio-3-4, .fmc-ratio-2-1, .fmc-ratio-3-2, .fmc-ratio-2-3, .fmc-ratio-10-8, .fmc-ratio-8-10) {
  aspect-ratio: var(--fmc-ratio);
}

:is(.elementor-widget-image:is(.fmc-ratio-16-9, .fmc-ratio-1-1, .fmc-ratio-4-3, .fmc-ratio-3-4, .fmc-ratio-2-1, .fmc-ratio-3-2, .fmc-ratio-2-3, .fmc-ratio-10-8, .fmc-ratio-8-10) img, img:is(.fmc-ratio-16-9, .fmc-ratio-1-1, .fmc-ratio-4-3, .fmc-ratio-3-4, .fmc-ratio-2-1, .fmc-ratio-3-2, .fmc-ratio-2-3, .fmc-ratio-10-8, .fmc-ratio-8-10)) {
  width: 100%;
  height: auto;
  aspect-ratio: var(--fmc-ratio);
  object-fit: cover;
}

/* fmc-embed: a video embed (YouTube iframe) in an HTML widget, like the
   design's video frame: 16:9 unless a ratio class says otherwise, the media
   radius, a dark fill until the player loads, and the iframe filling it.
   <div class="fmc-embed"><iframe src="…" title="…" allowfullscreen></iframe></div> */
.fmc-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--fmc-ratio, 16 / 9);
  border-radius: var(--radius-media);
  background: var(--blue-900);
}

.fmc-embed > :is(iframe, video, object, embed) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Social Links widget (inc/elementor/class-social-links-widget.php)
   The Site Options Social Media list. Defaults follow the footer design:
   20px marks in 44px tap targets, 8px apart, in the text color, the link
   hover color on hover. Sizes and spacing are custom properties the widget
   sets on its wrapper (the fallbacks here apply until one is set); colors,
   border and radius are set on the elements by the widget's controls.
   ========================================================================== */

/* Scoped to the widget so it outranks the long-form list rules
   (.entry-content ul: indent, margins). */
.elementor-widget-fmc-social-links .fmc-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fmc-social-gap, var(--space-2));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Outranks the long-form list spacing (.entry-content li + li). */
.fmc-social-links > .fmc-social-links__item {
  margin: 0;
  padding: 0;
}

/* .fmc-social-links a outranks the Kit's link color (.elementor-kit-5 a). */
.fmc-social-links a.fmc-social-links__link {
  display: inline-flex;
  align-items: center;
  gap: var(--fmc-social-label-gap, var(--space-2));
  color: inherit;
  text-decoration: none;
  transition: var(--transition-control);
}

.fmc-social-links a.fmc-social-links__link:is(:hover, :focus-visible) {
  color: var(--color-text-link-hover);
}

.fmc-social-links__link:focus-visible {
  outline: none;
}

.fmc-social-links__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--fmc-social-box-size, 44px);
  height: var(--fmc-social-box-size, 44px);
  border-radius: var(--radius-circle);
  color: currentColor;
  transition: var(--transition-control);
}

.fmc-social-links__icon svg {
  display: block;
  width: var(--fmc-social-icon-size, 20px);
  height: var(--fmc-social-icon-size, 20px);
}

/* The focus ring goes on the icon box, so it follows the box's shape. */
.fmc-social-links__link:focus-visible .fmc-social-links__icon {
  box-shadow: var(--shadow-focus);
}

/* On dark: white text, the inverse link hover and focus ring. */
:is(.fmc-text-inverse, .fmc-card-inverse) .fmc-social-links a.fmc-social-links__link:is(:hover, :focus-visible) {
  color: var(--color-text-link-inverse-hover);
}

:is(.fmc-text-inverse, .fmc-card-inverse) .fmc-social-links__link:focus-visible .fmc-social-links__icon {
  box-shadow: var(--shadow-focus-inverse);
}

/* Official Color: each brand's color fills the box, the mark in white
   (an unknown site gets the primary blue). */
.fmc-social-links-color-official .fmc-social-links__icon {
  background-color: var(--fmc-social-brand, var(--color-primary));
  color: var(--white);
}

.fmc-social-links-color-official .fmc-social-links__link:is(:hover, :focus-visible) .fmc-social-links__icon {
  opacity: var(--opacity-86);
}

.fmc-social-links-empty {
  margin: 0;
  font: var(--type-body-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Badge (Badge.jsx)
   fmc-badge: a small pill label, neutral by default. Tones: fmc-badge-primary,
   fmc-badge-accent, fmc-badge-success, fmc-badge-warning, fmc-badge-inverse.

   fmc-badge-list: on an Elementor Post Info widget (Advanced › CSS Classes),
   every item becomes a badge in a wrapping row; a Terms item gives one badge
   per term (e.g. event categories), with Elementor's commas hidden. Tones on
   the widget: fmc-badge-list-primary, -accent, -success, -warning, -inverse.
   Leave the widget's icons off and its Text Color unset (a set color would
   outrank the badge's).

   The tones are custom properties, so a tone class works on a single badge
   or on a whole list.
   ========================================================================== */

.fmc-badge,
.fmc-badge-list {
  --fmc-badge-bg: var(--color-neutral-soft);
  --fmc-badge-fg: var(--color-text-muted);
}

.fmc-badge-primary,
.fmc-badge-list-primary {
  --fmc-badge-bg: var(--color-primary-soft);
  --fmc-badge-fg: var(--color-primary-on-soft);
}

.fmc-badge-accent,
.fmc-badge-list-accent {
  --fmc-badge-bg: var(--color-accent-soft);
  --fmc-badge-fg: var(--color-accent-on-soft);
}

.fmc-badge-success,
.fmc-badge-list-success {
  --fmc-badge-bg: var(--color-success-soft);
  --fmc-badge-fg: var(--color-success);
}

.fmc-badge-warning,
.fmc-badge-list-warning {
  --fmc-badge-bg: var(--color-warning-soft);
  --fmc-badge-fg: var(--color-warning-on-soft);
}

.fmc-badge-inverse,
.fmc-badge-list-inverse {
  --fmc-badge-bg: var(--color-surface-inverse-hover);
  --fmc-badge-fg: var(--color-text-inverse);
}

.fmc-badge,
.fmc-badge-list .elementor-post-info__item:not(.elementor-post-info__item--type-terms),
.fmc-badge-list .elementor-post-info__terms-list .elementor-post-info__terms-list-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--fmc-badge-bg);
  color: var(--fmc-badge-fg);
  font: var(--type-label-sm);
  text-decoration: none;
  white-space: nowrap;
}

/* fmc-badge on a Heading or Text Editor widget (e.g. the Sale Ends tag): the
   widget shrinks to the badge instead of filling its container, and the
   title takes the badge's font and color, (0,3,0) as for the eyebrow. */
.fmc-badge.elementor-widget {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

.fmc-badge.elementor-widget :is(.elementor-heading-title, p) {
  margin: 0;
  font: var(--type-label-sm);
  letter-spacing: var(--tracking-normal);
  color: inherit;
}

/* The row: items and terms wrap; Elementor's inline-list margins, dividers
   and icons are dropped. The space between badges is a margin on each badge,
   not a column gap: the hidden ", " between terms is still a (zero-width)
   flex item, and a gap would land on both sides of it. */
.fmc-badge-list .elementor-post-info,
.fmc-badge-list .elementor-post-info__terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 0;
}

.fmc-badge-list .elementor-post-info__item:not(.elementor-post-info__item--type-terms),
.fmc-badge-list .elementor-post-info__terms-list .elementor-post-info__terms-list-item {
  margin-inline-end: var(--space-2);
}

.fmc-badge-list .elementor-post-info {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.fmc-badge-list .elementor-post-info > .elementor-icon-list-item {
  margin: 0 !important;
  padding: 0;
}

.fmc-badge-list .elementor-post-info > .elementor-icon-list-item::after,
.fmc-badge-list .elementor-icon-list-icon {
  display: none;
}

/* A Terms item is just its row of badges. font-size 0 hides the ", " text
   between terms; each badge sets its own font. Terms items are found by
   --type-terms: Elementor Pro means to add elementor-terms-list too, but its
   check reads the wrong variable, so that class never appears. */
.fmc-badge-list .elementor-post-info__item--type-terms {
  display: contents;
}

.fmc-badge-list .elementor-post-info__terms-list {
  font-size: 0;
}

/* Linked terms (the Terms item's Link switch on). */
.fmc-badge-list a.elementor-post-info__terms-list-item:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.fmc-badge-list a.elementor-post-info__terms-list-item:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ==========================================================================
   Steps (the numbered "How to join" list, friedberg-friends.dc.html)
   fmc-steps: on a Text Editor widget (Advanced › CSS Classes) holding a
   numbered list. Each item's number sits in a circle beside its text, and the
   numbers come from the list itself (adding or reordering a step renumbers;
   the list's Start value is honored). It stays a real <ol>, so screen readers
   announce "list, 3 items".

   Tones (like the badges): fmc-steps-primary (the default), fmc-steps-neutral,
   fmc-steps-accent, fmc-steps-success, fmc-steps-warning, fmc-steps-inverse
   (on dark bands).
   Sizes, after the text steps: fmc-steps-sm (14px text, --text-sm),
   fmc-steps-md (16px, --text-base), fmc-steps-lg (18px body, --text-lg; the
   default) and fmc-steps-xl (22px lead, --text-xl). The circle, number and
   spacing scale with the text.

   Only the list's own items get circles; a list nested inside a step stays a
   plain list. The text color is the widget's (set it in the panel or use
   fmc-text-inverse on a dark band).
   ========================================================================== */

.fmc-steps {
  --fmc-steps-bg: var(--color-primary-soft);
  --fmc-steps-fg: var(--color-primary);
  --fmc-steps-font: var(--type-body);
  --fmc-steps-number: var(--type-label-md);
  --fmc-steps-dot: 40px;
  --fmc-steps-gap: var(--space-5);
}

.fmc-steps-primary {
  --fmc-steps-bg: var(--color-primary-soft);
  --fmc-steps-fg: var(--color-primary);
}

.fmc-steps-neutral {
  --fmc-steps-bg: var(--color-neutral-soft);
  --fmc-steps-fg: var(--color-text-muted);
}

.fmc-steps-accent {
  --fmc-steps-bg: var(--color-accent-soft);
  --fmc-steps-fg: var(--color-accent-on-soft);
}

.fmc-steps-success {
  --fmc-steps-bg: var(--color-success-soft);
  --fmc-steps-fg: var(--color-success);
}

.fmc-steps-warning {
  --fmc-steps-bg: var(--color-warning-soft);
  --fmc-steps-fg: var(--color-warning-on-soft);
}

.fmc-steps-inverse {
  --fmc-steps-bg: var(--color-surface-inverse-hover);
  --fmc-steps-fg: var(--color-text-inverse);
}

.fmc-steps-sm {
  --fmc-steps-font: var(--type-body-sm);
  --fmc-steps-number: var(--type-label-sm);
  --fmc-steps-dot: 32px;
  --fmc-steps-gap: var(--space-3);
}

.fmc-steps-md {
  --fmc-steps-font: var(--font-weight-regular) var(--text-base)/var(--leading-relaxed) var(--font-body);
  --fmc-steps-number: var(--type-label-sm);
  --fmc-steps-dot: 36px;
  --fmc-steps-gap: var(--space-4);
}

.fmc-steps-lg {
  --fmc-steps-font: var(--type-body);
  --fmc-steps-number: var(--type-label-md);
  --fmc-steps-dot: 40px;
  --fmc-steps-gap: var(--space-5);
}

.fmc-steps-xl {
  --fmc-steps-font: var(--text-type-lead);
  --fmc-steps-number: var(--type-label-lg);
  --fmc-steps-dot: 48px;
  --fmc-steps-gap: var(--space-6);
}

/* list-style-type "\200B" (an empty marker) rather than none: Safari drops
   the list role from a list styled list-style: none. */
.fmc-steps ol:not(li ol) {
  display: flex;
  flex-direction: column;
  gap: var(--fmc-steps-gap);
  margin: 0;
  padding: 0;
  list-style-type: "\200B";
}

.fmc-steps ol:not(li ol) > li {
  position: relative;
  min-height: var(--fmc-steps-dot);
  margin: 0;
  padding-inline-start: calc(var(--fmc-steps-dot) + var(--fmc-steps-gap));
  font: var(--fmc-steps-font);
  /* First line centered on the circle, so its baseline lines up with the
     number's (the design's 8px sat the text about 3px low). */
  padding-block-start: calc(var(--fmc-steps-dot) * 0.13);
  padding-block-start: max(0px, calc((var(--fmc-steps-dot) - 1lh) / 2));
}

.fmc-steps ol:not(li ol) > li::before {
  content: counter(list-item);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--fmc-steps-dot);
  height: var(--fmc-steps-dot);
  border-radius: var(--radius-pill);
  background: var(--fmc-steps-bg);
  color: var(--fmc-steps-fg);
  font: var(--fmc-steps-number);
  letter-spacing: var(--tracking-normal);
}

.fmc-steps ol:not(li ol) > li > :is(p, ul, ol):first-child {
  margin-block-start: 0;
}

.fmc-steps ol:not(li ol) > li > :is(p, ul, ol):last-child {
  margin-block-end: 0;
}

@media (forced-colors: active) {
  .fmc-steps ol:not(li ol) > li::before {
    border: 1px solid CanvasText;
  }
}

/* ==========================================================================
   Event series dates (EventSeriesDate.jsx)
   Rows of the "All dates in this series" list, written as the row format of
   [events_list recurrence_set="current"] in a Shortcode widget (README,
   Event series dates): fmc-series-date with __day, __time, then a "View"
   fmc-action-link or, on the date being viewed (is-current), a Viewing
   badge. Events Manager wraps the list in .em.pixelbones .em-list: its grid
   gap is dropped so the rows sit on their own borders, and its link color is
   !important, so the View link repeats its colors with !important here.
   ========================================================================== */

.em.em-list:has(> .fmc-series-date) {
  display: block;
}

/* A grid, not wrapping flex: the day and time columns are the same width in
   every row, whatever sits in the last column (the Viewing badge is wider
   than the View link), so the times line up. The last column is the
   design's 96px. Phones: day over time, badge or link on the right. */
.fmc-series-date {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 96px;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.fmc-series-date.is-current {
  background: var(--color-surface-sunken);
}

.fmc-series-date__day {
  font: var(--type-label-lg);
  color: var(--color-text);
}

.fmc-series-date__time {
  font: var(--type-body);
  color: var(--color-text-muted);
}

.fmc-series-date > :is(.fmc-badge, .fmc-action-link) {
  justify-self: end;
}

@media (max-width: 767.98px) {
  .fmc-series-date {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fmc-series-date__day {
    grid-column: 1;
    grid-row: 1;
  }

  .fmc-series-date__time {
    grid-column: 1;
    grid-row: 2;
  }

  .fmc-series-date > :is(.fmc-badge, .fmc-action-link) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.fmc-series-date .fmc-action-link {
  font: var(--type-label-sm);
  color: var(--color-text-link) !important;
}

.fmc-series-date .fmc-action-link:is(:hover, :focus-visible) {
  color: var(--color-text-link-hover) !important;
}

.fmc-series-date .fmc-action-link::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("../icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../icons/arrow-right.svg") center / contain no-repeat;
}

/* ==========================================================================
   Event map (#_LOCATIONMAP)
   Google's embed draws its own thin border inside the iframe. The iframe is
   made a little larger than Events Manager's container on every side and the
   container clips it, so the border falls outside. EM sets the container's
   size and the iframe's 100% width/height inline, hence !important.
   ========================================================================== */

.em-location-map-container {
  --fmc-map-bleed: 2px;
  overflow: hidden;
}

.em-location-map-container > .em-location-map {
  position: absolute;
  top: calc(var(--fmc-map-bleed) * -1);
  left: calc(var(--fmc-map-bleed) * -1);
  width: calc(100% + var(--fmc-map-bleed) * 2) !important;
  height: calc(100% + var(--fmc-map-bleed) * 2) !important;
  max-width: none;
}

/* ==========================================================================
   Scrims
   Protection gradients for text over photography. Put fmc-scrim-bottom or
   fmc-scrim-left on a container that holds a background image; the gradient
   layers on top of the image and the content stays above it.
   ========================================================================== */

/* A container keeps its own Position (Elementor's --position, relative by
   default), so a scrim works on an absolute overlay too (e.g. a feature
   card's text layer over its Image widget). */
:is(.fmc-scrim-bottom, .fmc-scrim-left) {
  isolation: isolate;
}

:is(.fmc-scrim-bottom, .fmc-scrim-left):not(.e-con) {
  position: relative;
}

:is(.fmc-scrim-bottom, .fmc-scrim-left)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.fmc-scrim-bottom::before {
  background: var(--scrim-bottom);
}

.fmc-scrim-left::before {
  background: var(--scrim-left);
}

/* ==========================================================================
   Image page header wash (PageHeader.jsx, image variant)
   fmc-page-header-image on the page header container whose Background is the
   photo (classic image). Under it a blue-900 base; over it blue-900 at 80%
   multiply (::before) and blue-900 at 50% color (::after). isolation keeps
   the blending inside the header; z-index -1 puts both layers above the
   photo and below the content, as with the scrims. ::before replaces
   Elementor's Background Overlay, so leave that empty; don't combine with
   fmc-scrim-*, which also uses ::before. A background slideshow or video
   isn't covered: their layers are child elements.
   ========================================================================== */

.e-con.fmc-page-header-image {
  position: relative;
  isolation: isolate;
  background-color: var(--blue-900);
  background-position: center top;
  background-size: cover;
}

.e-con.fmc-page-header-image::before,
.e-con.fmc-page-header-image::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 0;
  background: var(--blue-900);
  pointer-events: none;
  transition: none;
}

/* 0.8 and 0.5 are PageHeader.jsx's values; tokens.css has no opacity step for either. */
.e-con.fmc-page-header-image::before {
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.e-con.fmc-page-header-image::after {
  opacity: 0.5;
  mix-blend-mode: color;
}

/* ==========================================================================
   Nav menu dropdown
   fmc-nav on an Elementor Nav Menu widget (Advanced > CSS Classes): desktop
   submenus fade in and slide down 8px as they open. SmartMenus shows them by
   switching display, which restarts the keyframes on each open; closing stays
   instant. Only the desktop bar (--main), not the mobile dropdown. Off for
   people who ask for less motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .fmc-nav .elementor-nav-menu--main .sub-menu {
    animation: fmc-nav-dropdown-in var(--duration-slow) var(--ease-out);
  }
}

@keyframes fmc-nav-dropdown-in {
  from {
    opacity: 0;
    translate: 0 calc(-1 * var(--space-2));
  }
}

/* ==========================================================================
   Site header
   fmc-site-header on the header template's outer container (Position:
   Fixed). assets/js/site-header.js adds is-hidden to slide it up out of view
   while scrolling down past the page header (fmc-page-header). Shown is
   transform: none, not translateY(0), so the off-canvas inside stays fixed to
   the window. .e-con.fmc-site-header outranks Elementor's own 0.4s container
   transition. No slide for people who ask for less motion.
   ========================================================================== */

.e-con.fmc-site-header {
  transition: transform var(--duration-slow) var(--ease-standard);
}

.e-con.fmc-site-header.is-hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .e-con.fmc-site-header {
    transition: none;
  }
}

/* ==========================================================================
   Motion
   Cards, buttons and links drop their movement for people who ask for less.

   Entrance animation Fade In Up (Advanced › Motion Effects) is retuned to be
   subtle: it rises 32px (--space-8) instead of the element's full height, on
   the design's ease-out. Durations stay Elementor's (Fast 0.75s, Normal
   1.25s, Slow 2s, from .animated). Its own keyframes name, so the load order of Elementor's
   fadeInUp.css doesn't matter. Elementor already switches entrance
   animations off for reduced motion (.animated { animation: none !important }).
   ========================================================================== */

@keyframes fmc-fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, var(--space-8), 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.animated.fadeInUp {
  animation-name: fmc-fade-in-up;
  animation-timing-function: var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .fmc-btn,
  .elementor-button,
  .fmc-card,
  .fmc-resource,
  .fmc-action-link,
  .fmc-action-link__label::after,
  .wp-block-buttons .wp-block-button[class] > .wp-block-button__link,
  :is(.prose, .entry-content, .is-root-container) .wp-block-file {
    transition: none;
  }

  :is(.prose, .entry-content) .wp-block-file:hover {
    transform: none;
  }

  .fmc-card-interactive:hover,
  .fmc-resource:hover {
    transform: none;
  }
}

/* ==========================================================================
   Icon List links
   Elementor's Icon List hover colors use .elementor-icon-list-item:hover, so
   in a vertical list the whole row lights up, empty space included. With
   Apply Link On: Inline (the widget class elementor-list-item-link-inline),
   only the item's contents take the pointer: hovering the link still hovers
   its <li>, so the panel's hover colors work as set, at any alignment.
   Full Width links keep the whole row, as Elementor intends.
   ========================================================================== */

.elementor-list-item-link-inline .elementor-icon-list-item {
  pointer-events: none;
}

.elementor-list-item-link-inline .elementor-icon-list-item > * {
  pointer-events: auto;
}

/* ==========================================================================
   Breadcrumbs (Breadcrumbs.jsx)
   Elementor's Breadcrumbs widget prints Yoast's trail:
   #breadcrumbs > span > (span > a), separator text, span.breadcrumb_last.
   Small muted text, muted separators 8px either side, links without an
   underline, the current page in the text color. The design's sand-400
   separators are 1.58:1 on the canvas; as text they need AA, so they take
   the muted text color. The separator is a bare
   text node, so it takes the outer span's color and the items set their own.
   The separator character is Yoast's setting (Yoast SEO › Settings ›
   Advanced › Breadcrumbs): use "/".
   Selectors stay at (0,2,x): above Elementor's global defaults and the Kit's
   link colors, below the widget's Style panel (Typography, Link Color).
   ========================================================================== */

.elementor-widget-breadcrumbs.elementor-widget {
  font: var(--type-body-sm);
  color: var(--color-text-muted);
}

.elementor-widget-breadcrumbs.elementor-widget #breadcrumbs {
  margin: 0;
}

.elementor-widget-breadcrumbs.elementor-widget :where(#breadcrumbs > span) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-2);
  color: var(--color-text-muted);
}

/* Content › Alignment sets text-align, which a flex row ignores. */
.elementor-widget-breadcrumbs.elementor-align-center :where(#breadcrumbs > span) {
  justify-content: center;
}

.elementor-widget-breadcrumbs.elementor-align-right :where(#breadcrumbs > span) {
  justify-content: flex-end;
}

.elementor-widget-breadcrumbs.elementor-widget :where(#breadcrumbs > span > span) {
  color: var(--color-text-muted);
}

.elementor-widget-breadcrumbs.elementor-widget .breadcrumb_last {
  color: var(--color-text);
}

.elementor-widget-breadcrumbs.elementor-widget a {
  color: var(--color-text-link);
  text-decoration: none;
  border-bottom: none;
  border-radius: var(--radius-1);
  transition: var(--transition-control);
}

.elementor-widget-breadcrumbs.elementor-widget a:hover {
  color: var(--color-text-link-hover);
}

.elementor-widget-breadcrumbs.elementor-widget a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ==========================================================================
   Post navigation (worship service design: "Previous and next services")
   Elementor Pro's Post Navigation widget, laid out like the design: two
   columns, each link a grid of [image] arrow+label / title / date, the Next
   side mirrored. Below 768px the links stack.

   Elementor's own controls: Arrows gives the small arrow beside the label
   (icon, color, size; Arrow › Gap is the space beside it). Borders gives the
   top rule (Color, Size, Spacing above the links) instead of the vertical
   divider. The theme adds Image, Date and Order By (Content) and Layout,
   Image and Date sections (Style); see inc/post-navigation.php. The panel
   sets the --fmc-post-nav-* variables below on the widget.

   Specificity: the text span is span.elementor-post-navigation__link__prev
   in Elementor's CSS (0,2,1), so that rule is (0,3,1) here. Rules the Style
   panel also sets (label, title, arrow, date) stay below its (0,4,x).
   ========================================================================== */

.elementor-widget-post-navigation {
  --fmc-post-nav-gap: var(--space-6);
  --fmc-post-nav-text-gap: var(--space-1);
  --fmc-post-nav-arrow-gap: var(--space-1);
  --fmc-post-nav-image-width: 160px;
  --fmc-post-nav-image-gap: var(--space-5);
  --fmc-post-nav-image-radius: var(--radius-2);
  --fmc-post-nav-rule-color: var(--color-border);
  --fmc-post-nav-rule-width: 1px;
  --fmc-post-nav-rule-space: var(--space-8);
}

.elementor-widget-post-navigation .elementor-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fmc-post-nav-gap);
  overflow: visible;
}

.elementor-widget-post-navigation.elementor-post-navigation-borders-yes .elementor-post-navigation {
  padding-block: var(--fmc-post-nav-rule-space) 0;
  border-block: 0;
  border-block-start: var(--fmc-post-nav-rule-width) solid var(--fmc-post-nav-rule-color);
}

.elementor-widget-post-navigation .elementor-post-navigation .elementor-post-navigation__separator-wrapper {
  display: none;
}

.elementor-widget-post-navigation .elementor-post-navigation .elementor-post-navigation__link {
  width: auto;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

/* The link is a grid; the text span steps aside (display: contents) so its
   label and title join the link's grid next to the arrow. The 1fr rows at
   top and bottom center the text against a taller image. */
.elementor-widget-post-navigation .elementor-post-navigation .elementor-post-navigation__link a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    ". ."
    "arrow label"
    "title title"
    "date date"
    ". .";
  gap: 0;
  align-items: center;
  border-radius: var(--radius-1);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: none;
}

.elementor-widget-post-navigation .elementor-post-navigation .elementor-post-navigation__next a {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    ". ."
    "label arrow"
    "title title"
    "date date"
    ". .";
  justify-items: end;
  text-align: end;
}

.elementor-widget-post-navigation .elementor-post-navigation .elementor-post-navigation__link a:has(.fmc-post-nav__image) {
  grid-template-columns: var(--fmc-post-nav-image-width) auto minmax(0, 1fr);
  grid-template-areas:
    "image . ."
    "image arrow label"
    "image title title"
    "image date date"
    "image . .";
}

.elementor-widget-post-navigation .elementor-post-navigation .elementor-post-navigation__next a:has(.fmc-post-nav__image) {
  grid-template-columns: minmax(0, 1fr) auto var(--fmc-post-nav-image-width);
  grid-template-areas:
    ". . image"
    "label arrow image"
    "title title image"
    "date date image"
    ". . image";
}

.elementor-widget-post-navigation .elementor-post-navigation__link a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.elementor-widget-post-navigation .elementor-post-navigation span:is(.elementor-post-navigation__link__prev, .elementor-post-navigation__link__next) {
  display: contents;
}

.elementor-widget-post-navigation .fmc-post-nav__image {
  grid-area: image;
  display: block;
  aspect-ratio: 16 / 9;
  margin-inline-end: var(--fmc-post-nav-image-gap);
  overflow: hidden;
  border-radius: var(--fmc-post-nav-image-radius);
  background: var(--color-surface-sunken);
}

.elementor-widget-post-navigation .elementor-post-navigation__next .fmc-post-nav__image {
  margin-inline: var(--fmc-post-nav-image-gap) 0;
}

.elementor-widget-post-navigation .fmc-post-nav__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrow: small, beside the label (Elementor's default is a 30px gray arrow
   standing apart). */
.elementor-post-navigation .post-navigation__arrow-wrapper:is(.post-navigation__arrow-prev, .post-navigation__arrow-next) {
  grid-area: arrow;
  font-size: 16px; /* The design's xs icon (no token). */
  color: var(--color-text-muted);
  fill: var(--color-text-muted);
}

.elementor-post-navigation .post-navigation__arrow-prev {
  margin-inline-end: var(--fmc-post-nav-arrow-gap);
}

.elementor-post-navigation .post-navigation__arrow-next {
  margin-inline-start: var(--fmc-post-nav-arrow-gap);
}

.elementor-widget-post-navigation :is(.post-navigation__prev--label, .post-navigation__next--label) {
  grid-area: label;
  font: var(--type-label-sm);
  text-transform: none;
  color: var(--color-text-muted);
}

.elementor-widget-post-navigation :is(.post-navigation__prev--title, .post-navigation__next--title) {
  grid-area: title;
  margin-block-start: var(--fmc-post-nav-text-gap);
  font: var(--font-weight-regular) var(--step-1)/var(--leading-snug) var(--font-display); /* H5, fluid. */
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-standard);
}

.elementor-widget-post-navigation .elementor-post-navigation__link a:hover :is(.post-navigation__prev--title, .post-navigation__next--title) {
  color: var(--color-text-link-hover);
}

.elementor-widget-post-navigation .fmc-post-nav__date {
  grid-area: date;
  margin-block-start: var(--fmc-post-nav-text-gap);
  font: var(--type-body-sm);
  color: var(--color-text-muted);
}

@media (max-width: 767.98px) {
  .elementor-widget-post-navigation {
    --fmc-post-nav-image-width: 120px;
  }

  .elementor-widget-post-navigation .elementor-post-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

  /* No previous (or next) post: drop the empty half instead of a gap. */
  .elementor-widget-post-navigation .elementor-post-navigation__link:not(:has(a)) {
    display: none;
  }
}

/* ==========================================================================
   Scripture links
   Output of hello_friedberg_scripture_links() / [fmc_scripture]: one link per
   reading, each ending in the arrow-up-right icon, wrapping with a gap.
   ========================================================================== */

.fmc-scripture {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
}

.fmc-scripture__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

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

/* ==========================================================================
   Accordion
   The design system's Accordion (components/src/content/accordion): a stack
   of questions between hairlines, a terracotta plus that turns to a minus,
   the answer in muted body text. Two sources, one look:
   - [fmc_accordion] (inc/faq.php) on Elementor pages: .fmc-accordion, with
     the H4 question size.
   - The block editor's Details block in posts, ministries and staff bios:
     .wp-block-details, with the quieter prose H4 size. A run of Details
     blocks reads as one list.
   Both are <details>/<summary>: keyboard and screen-reader support from the
   browser, working without script. assets/js/accordion.js eases them open
   and closed (--duration-base, --ease-standard; none with reduced motion).
   ========================================================================== */

.fmc-accordion {
  border-top: 1px solid var(--color-border);
}

.fmc-accordion__item,
.wp-block-details {
  box-sizing: border-box; /* assets/js/accordion.js animates the height */
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.wp-block-details:where(:not(.wp-block-details + .wp-block-details)) {
  border-top: 1px solid var(--color-border);
}

/* Space after a run of Details blocks, as after any prose block. */
:is(.prose, .entry-content, .is-root-container) > .wp-block-details:where(:not(:has(+ .wp-block-details))) {
  margin-bottom: 1em;
}

:is(.fmc-accordion__item, .wp-block-details) > summary {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-radius: var(--radius-control);
  color: var(--color-text);
  font: var(--font-weight-regular) var(--step-2)/var(--leading-snug) var(--font-display); /* H4, as .fmc-type-h4 */
  letter-spacing: var(--tracking-normal);
  text-wrap: balance;
  list-style: none;
  cursor: pointer;
  transition: var(--transition-control);
}

.wp-block-details > summary {
  font: var(--type-prose-h4);
}

:is(.fmc-accordion__item, .wp-block-details) > summary::-webkit-details-marker {
  display: none;
}

/* Plus when closed, minus when open: 20px, centered on the first line. */
:is(.fmc-accordion__item, .wp-block-details) > summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: calc((1lh - 20px) / 2);
  margin-left: auto;
  background-color: var(--color-accent);
  -webkit-mask: url("../icons/plus.svg") center / contain no-repeat;
  mask: url("../icons/plus.svg") center / contain no-repeat;
}

:is(.fmc-accordion__item, .wp-block-details)[open] > summary::after {
  -webkit-mask-image: url("../icons/minus.svg");
  mask-image: url("../icons/minus.svg");
}

:is(.fmc-accordion__item, .wp-block-details) > summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.fmc-accordion__answer,
.wp-block-details > :not(summary) {
  max-width: 62ch;
  color: var(--color-text-muted);
}

.fmc-accordion__answer {
  padding-bottom: var(--space-5);
  font: var(--type-body);
}

.fmc-accordion__answer > *,
.wp-block-details > :not(summary) {
  margin: 0;
}

.fmc-accordion__answer > * + *,
.wp-block-details > :not(summary) + * {
  margin-top: var(--space-3);
}

.wp-block-details > :last-child:not(summary) {
  margin-bottom: var(--space-5);
}

/* Shown only in the Elementor editor, when a group has no FAQs. */
.fmc-accordion-empty {
  margin: 0;
  padding: var(--space-4);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-control);
  color: var(--color-text-muted);
  font: var(--type-body-sm);
}

/* ==========================================================================
   Home page carousels (Hero.jsx; home.dc.html gallery)
   Two Image Carousel widgets filled by the Pods Gallery Field tag;
   assets/js/carousel.js adds the pause/play buttons and reduced motion.

   - fmc-hero-carousel: the cover slideshow. Put the Image Carousel inside
     the hero container with the heading and buttons; the class stretches it
     behind them, crops each photo to fill, and lays the bottom scrim and a
     blue-900 wash at 40% over the photos. Leave the hero's Background
     Overlay empty. The pause button sits at the bottom right, or in an
     element classed fmc-carousel-toggle-slot.
   - fmc-marquee: the gallery. Every photo is the same height
     (--fmc-marquee-height), so widths follow each photo's shape, 24px apart
     (--fmc-marquee-gap), drifting left at --fmc-marquee-speed px per second
     (a plain number, default 30); set any of them on the widget with
     Custom CSS. Before the script runs the photos show as a still row.
   ========================================================================== */

/* Cover slideshow */

.e-con:has(> .fmc-hero-carousel, > .e-con-inner > .fmc-hero-carousel) {
  isolation: isolate;
  overflow: hidden;
}

.elementor-widget.fmc-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  max-width: none;
  margin: 0;
}

.fmc-hero-carousel :is(.elementor-widget-container, .elementor-image-carousel-wrapper, .swiper-wrapper, .swiper-slide, .swiper-slide-inner) {
  height: 100%;
  margin: 0;
}

.fmc-hero-carousel.elementor-widget .swiper-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Above Swiper's own z-index (1): the scrim, then the wash. */
.fmc-hero-carousel::before,
.fmc-hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.fmc-hero-carousel::before {
  background: var(--scrim-bottom);
}

.fmc-hero-carousel::after {
  background: var(--blue-900);
  opacity: var(--opacity-40);
}

/* The pause button when there's no slot: the bottom right of the content
   column (the hero's 64px bottom padding; the page gutter, or the edge of
   --layout-max on wide screens). */
.fmc-carousel-toggle--overlay {
  position: absolute;
  right: var(--fmc-carousel-toggle-right, max(var(--page-gutter), calc((100% - var(--layout-max)) / 2)));
  bottom: var(--fmc-carousel-toggle-bottom, var(--space-16));
  z-index: 1;
}

.fmc-carousel-toggle[hidden] {
  display: none;
}

/* Gallery */

.fmc-marquee {
  --fmc-marquee-height: clamp(15rem, 32vw, 28.75rem); /* 240px to the design's 460px */
  --fmc-marquee-gap: var(--space-6);
  --fmc-marquee-speed: 30; /* px per second, read by carousel.js */
}

/* Still row until the script takes over (Swiper's sizing overridden). */
.fmc-marquee:not(.is-marquee-ready) .swiper-wrapper {
  transform: none !important;
}

.fmc-marquee:not(.is-marquee-ready) .swiper-slide {
  width: auto !important;
  margin-right: var(--fmc-marquee-gap) !important;
}

.fmc-marquee:not(.is-marquee-ready) .swiper-slide-image {
  width: auto;
  max-width: none;
  height: var(--fmc-marquee-height);
  border-radius: var(--radius-card);
}

.fmc-marquee.is-marquee-ready :is(.swiper, .swiper-container) {
  display: none;
}

.fmc-marquee__viewport {
  overflow: hidden;
}

.fmc-marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: fmc-marquee var(--fmc-marquee-duration, 60s) linear infinite;
}

.fmc-marquee.is-paused .fmc-marquee__track {
  animation-play-state: paused;
}

.fmc-marquee__item {
  flex: none;
  height: var(--fmc-marquee-height);
  margin: 0 var(--fmc-marquee-gap) 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface-sunken);
}

.fmc-marquee .fmc-marquee__item img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  border-radius: 0;
}

.fmc-marquee__controls {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-4) var(--page-gutter) 0;
}

@keyframes fmc-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Reduced motion: a still row to scroll by hand, each photo once. */
@media (prefers-reduced-motion: reduce) {
  .fmc-marquee__viewport {
    overflow-x: auto;
  }

  .fmc-marquee__viewport:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
  }

  .fmc-marquee__track {
    animation: none;
  }

  .fmc-marquee__item[aria-hidden="true"] {
    display: none;
  }
}

/* ==========================================================================
   Alternating Loop Grid items (Our History)
   From 961px (above Elementor's Mobile Extra breakpoint, 960px, where the
   History Loop Item stacks), every second Loop item is the mirror image of
   the first. Loop items are counted, so it needs no setting per post. If
   the Mobile Extra breakpoint changes in Site Settings, change 961px here.

   - fmc-alternate: on the Loop Grid. Turns the rest on.
   - fmc-flip: on the container that lays out the columns (in the History
     Loop Item, the grid inside the outer flex container).
       Grid: the columns run right to left (direction: rtl), so the whole
       grid mirrors, column sizes and placements included (auto auto 208px
       208px 208px 1fr becomes 1fr 208px 208px 208px auto auto). Text
       inside still reads left to right.
       Flex row: the row runs right to left (row-reverse).
   - fmc-flip-align: on a container whose contents hug the side next to the
     photo (the date column). In flipped items, its items and text align to
     the start (left) instead of the end, and an absolutely positioned
     Divider moves to the other side: its left offset becomes
     --fmc-flip-offset (default -25%, the Divider's Offset in the History
     Loop Item; change both together).

   fmc-photo-after on the Photo After widget (or a container around it):
   hidden unless the era has a Photo After image (has-photo-after,
   inc/history.php).
   ========================================================================== */

@media (min-width: 961px) {
  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip.e-flex {
    --flex-direction: row-reverse;
    flex-direction: row-reverse;
  }

  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip.e-grid {
    direction: rtl;
  }

  /* The grid's children (inside .e-con-inner when the container is boxed). */
  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip.e-grid > :not(.e-con-inner),
  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip.e-grid > .e-con-inner > * {
    direction: ltr;
  }

  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip-align,
  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip-align .e-con {
    --align-items: flex-start;
    align-items: flex-start;
  }

  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip-align .elementor-widget:not(.elementor-widget-divider) {
    text-align: start;
  }

  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip-align .elementor-widget-divider.elementor-absolute {
    right: auto;
    left: var(--fmc-flip-offset, -25%);
  }

  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip-align .elementor-divider {
    text-align: left;
  }

  .fmc-alternate .e-loop-item:nth-child(even of .e-loop-item) .fmc-flip-align .elementor-divider-separator {
    margin-right: auto;
    margin-left: 0;
  }
}

.e-loop-item:not(.has-photo-after) .fmc-photo-after {
  display: none;
}

/* ==========================================================================
   Ministry resources and FAQs
   Output of [fmc_ministry_resources] / [fmc_ministry_faqs] on the single
   ministry template (ministry-single.dc.html, sections 3 and 4). Each list
   sits 32px below the section heading.
   ========================================================================== */

.fmc-resources {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.fmc-resource {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.fmc-resource:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-3);
  color: var(--color-text);
  transform: translateY(-2px);
}

.fmc-resource:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.fmc-resource__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--control-height-md); /* 44px tile */
  height: var(--control-height-md);
  border-radius: var(--radius-2);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.fmc-resource__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.fmc-resource__label {
  color: var(--color-text);
  font: var(--type-label-lg);
}

.fmc-resource__meta {
  color: var(--color-text-muted);
  font: var(--type-caption);
}

.fmc-resource__action {
  display: flex;
  flex: none;
  color: var(--color-primary);
}

.fmc-faqs {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-8);
}

.fmc-faq {
  padding: calc(var(--space-6) + var(--space-1)) 0; /* 28px */
  border-top: 1px solid var(--color-border-strong);
}

.fmc-faq:last-child {
  padding-bottom: 0;
}

.fmc-faq__question {
  margin: 0 0 var(--space-2);
  font: var(--type-prose-h4);
  letter-spacing: var(--tracking-normal);
  text-wrap: balance;
}

.fmc-faq__answer > * {
  margin: 0;
}

.fmc-faq__answer > * + * {
  margin-top: var(--space-3);
}

/* Sections with nothing to show. Matt's containers carry fmc-ministry-resources
   and fmc-ministry-faqs; inc/ministry.php adds the has-* body classes. Scoped to
   the live single page, so the Elementor editor always shows both. */
body.single-ministry:not(.has-ministry-resources) .fmc-ministry-resources,
body.single-ministry:not(.has-ministry-faqs) .fmc-ministry-faqs {
  display: none;
}

/* The section after the FAQ band adds 128px on top (fmc-section-space-above,
   or the automatic "after a sunken band" rule, which still sees the hidden
   band); without the band it follows a canvas section, which already has
   128px below. */
body.single-ministry:not(.has-ministry-faqs) .fmc-ministry-faqs + .fmc-section {
  --padding-top: 0px;
}

body.single-ministry:not(.has-ministry-faqs) .fmc-ministry-faqs + .fmc-section:not(.e-con) {
  padding-top: 0;
}

/* ==========================================================================
   Sales
   inc/sales.php: the [fmc_sale_options] cards and inline line. The Alert
   that [fmc_sale_form] prints is styled in the Alert section below.
   ========================================================================== */

/* Option cards (Sale page in Penpot): name and price on a line, description
   below. One option takes the row; two or more sit in two columns from
   768px (three: 2 + 1, four: 2 x 2). The name and price are H4 but never
   under 24px, the large-text size: terracotta on the canvas is 4.29:1,
   which needs large text for AA. */
.fmc-sale-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .fmc-sale-options--multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fmc-sale-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.fmc-sale-option__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.fmc-sale-option__name,
.fmc-sale-option__price {
  font: var(--font-weight-regular) max(24px, var(--step-2))/var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text);
}

.fmc-sale-option__price {
  flex: none;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.fmc-sale-option__description {
  margin: 0;
  font: var(--type-body-sm);
  color: var(--color-text-muted);
}

.fmc-sale-options-inline {
  font: var(--type-body-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Alert
   Alert.jsx: a soft panel with a 3px top bar in the tone's color, a title in
   the label role and text in body-sm. Add fmc-alert (Advanced › CSS Classes)
   to any of these:

   - Alert widget: its Type control picks the tone (Info, Success, Warning,
     Danger). The bar is on top, so its Side Border controls do nothing; its
     other Style controls still win over these rules. The dismiss button hides
     the alert until the next page load.
   - Icon Box widget: the icon (20px, in the tone's color) sits beside the
     title and description at every width, whatever Icon Position says. Pick
     the title's HTML tag to suit the page outline (div if it isn't a heading).
   - Container: the first Heading widget is the title, Text Editor widgets are
     the text. Padding, radius and gap go through Elementor's variables, so
     the panel can still change them.
   - Markup (hello_friedberg_sale_alert() in inc/sales.php): a div.fmc-alert
     with div.fmc-alert__title and div.fmc-alert__text.

   Info is the default tone. On an Icon Box, a container or markup, add
   fmc-alert-success, fmc-alert-warning or fmc-alert-danger beside fmc-alert
   (fmc-alert-info also works). The warning icon is terracotta, not amber:
   amber on its soft fill is 2.6:1, under the 3:1 an icon needs.
   ========================================================================== */

.fmc-alert,
.fmc-alert-info {
  --fmc-alert-bg: var(--color-primary-soft);
  --fmc-alert-bar: var(--color-primary);
  --fmc-alert-icon: var(--color-primary);
  --fmc-alert-fg: var(--blue-800);
}

.fmc-alert-success,
.fmc-alert.elementor-alert-success {
  --fmc-alert-bg: var(--color-success-soft);
  --fmc-alert-bar: var(--color-success);
  --fmc-alert-icon: var(--color-success);
  --fmc-alert-fg: var(--sand-800);
}

.fmc-alert-warning,
.fmc-alert.elementor-alert-warning {
  --fmc-alert-bg: var(--color-warning-soft);
  --fmc-alert-bar: var(--color-warning);
  --fmc-alert-icon: var(--color-warning-on-soft);
  --fmc-alert-fg: var(--sand-800);
}

.fmc-alert-danger,
.fmc-alert.elementor-alert-danger {
  --fmc-alert-bg: var(--color-danger-soft);
  --fmc-alert-bar: var(--color-danger);
  --fmc-alert-icon: var(--color-danger);
  --fmc-alert-fg: var(--sand-800);
}

/* The panel: the classed element itself, except on the Alert widget, whose
   panel is the .elementor-alert inside it (where Elementor's own colors and
   Style controls go). (0,3,0) there outranks Elementor's type colors. A
   container takes its padding and radius from the variables further down. */
.fmc-alert:not(.elementor-widget-alert),
.fmc-alert.elementor-widget-alert .elementor-alert {
  border: 0;
  border-top: 3px solid var(--fmc-alert-bar);
  background: var(--fmc-alert-bg);
  color: var(--fmc-alert-fg);
  text-align: start;
}

.fmc-alert:not(.e-con, .elementor-widget-alert),
.fmc-alert.elementor-widget-alert .elementor-alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-2);
}

.fmc-alert__title,
.fmc-alert.elementor-widget-alert .elementor-alert-title,
.fmc-alert.elementor-widget-icon-box .elementor-icon-box-title {
  margin: 0;
  font: var(--type-label);
  letter-spacing: var(--tracking-normal);
  color: inherit;
}

.fmc-alert__text,
.fmc-alert.elementor-widget-alert .elementor-alert-description,
.fmc-alert.elementor-widget-icon-box .elementor-icon-box-description {
  display: block;
  margin: 0;
  font: var(--type-body-sm);
  color: inherit;
}

.fmc-alert__title + .fmc-alert__text,
.fmc-alert.elementor-widget-alert .elementor-alert-title + .elementor-alert-description {
  margin-top: var(--space-1);
}

/* Alert widget: room on the right for the dismiss button, which Elementor
   places 10px from the corner. */
.fmc-alert.elementor-widget-alert .elementor-alert:has(.elementor-alert-dismiss) {
  padding-inline-end: var(--space-12);
}

.fmc-alert.elementor-widget-alert .elementor-alert-dismiss:focus-visible {
  outline: none;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-focus);
}

/* Icon Box widget: icon beside the text at every width. The attribute
   selector lifts the rule to (0,4,0), over Elementor's per-breakpoint
   position rules (0,3,0); a widget's own Icon Spacing still wins. */
.fmc-alert.elementor-widget-icon-box[class*="position-"] .elementor-icon-box-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: start;
}

.fmc-alert.elementor-widget-icon-box .elementor-icon-box-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* The icon is iconMd (20px) and drops 2px to sit on the title's first line,
   as in Alert.jsx. */
.fmc-alert.elementor-widget-icon-box.elementor-view-default .elementor-icon {
  margin-top: 2px;
  font-size: 20px;
  color: var(--fmc-alert-icon);
  fill: var(--fmc-alert-icon);
}

.fmc-alert.elementor-widget-icon-box.elementor-view-default .elementor-icon svg {
  fill: currentColor;
}

/* Container. The widget rules are (0,3,0), above Elementor's default
   Heading typography and below a widget's own Typography settings, as for
   the eyebrow. */
.e-con.fmc-alert {
  --padding-top: var(--space-4);
  --padding-right: var(--space-5);
  --padding-bottom: var(--space-4);
  --padding-left: var(--space-5);
  --border-radius: var(--radius-2);
  --gap: var(--space-1);
  --row-gap: var(--space-1);
}

.fmc-alert .elementor-widget-heading .elementor-heading-title {
  font: var(--type-label);
  letter-spacing: var(--tracking-normal);
  color: inherit;
}

.fmc-alert .elementor-widget-text-editor {
  font: var(--type-body-sm);
  color: inherit;
}

.fmc-alert .elementor-widget-text-editor :last-child {
  margin-bottom: 0;
}

/* Containers classed fmc-sale-open-only hide after sale_ends (inc/sales.php
   adds sale-ended to the body). The Sale Status display condition removes
   them from the page instead. */
body.single-sale.sale-ended .fmc-sale-open-only {
  display: none;
}

/* ==========================================================================
   Home page alert
   [fmc_home_alert] (inc/home-alert.php), matching the Homepage Alert
   component in Penpot: a full-width primary blue bar, 12px by 24px padding,
   the icon and message centered within the content width, 12px apart,
   white Albert Sans at 18px/1.5 (--text-lg) with a 20px icon, smaller than
   the component's 28px and 32px (Matt, 2026-11-17). The icon stays centered
   on the first line when the message wraps.
   Put it in a full-width container with the class fmc-home-alert-slot; the
   container hides itself when no alert is showing, so it leaves no gap.
   ========================================================================== */

.e-con.fmc-home-alert-slot {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
  --row-gap: 0;
}

.fmc-home-alert-slot:not(:has(.fmc-home-alert, .fmc-home-alert-note)) {
  display: none;
}

.fmc-home-alert {
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font: 400 var(--text-lg)/1.5 var(--font-body);
}

.fmc-home-alert__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-3);
  max-width: var(--layout-content);
  margin-inline: auto;
}

.fmc-home-alert__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-block-start: calc((1.5em - 20px) / 2);
}

.fmc-home-alert__message > * {
  margin: 0;
}

.fmc-home-alert__message > * + * {
  margin-block-start: var(--space-2);
}

.fmc-home-alert__message a {
  color: var(--color-text-link-inverse);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  border-radius: var(--radius-1);
}

/* No color change on hover: the inverse hover color is too faint on blue. */
.fmc-home-alert__message a:hover {
  color: var(--color-text-link-inverse);
  text-decoration-thickness: 2px;
}

.fmc-home-alert__message a:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--shadow-focus-inverse);
}

/* In the Elementor editor only, when no alert is showing. */
.fmc-home-alert-note {
  margin: 0;
  padding: var(--space-3) var(--space-6);
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font: var(--type-body-sm);
  text-align: center;
}

/* ==========================================================================
   Veterans Database
   [fmc_veterans_table] (inc/veterans-table.php), matching
   veterans-database.dc.html: search row, bordered table that scrolls
   sideways on narrow screens, count and page links. Rules that compete with
   Hello's table reset (zebra rows, borders, focus outline) and the Kit's link
   color are scoped under .fmc-vets to win.
   ========================================================================== */

.fmc-vets {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.fmc-vets__search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
}

.fmc-vets__field {
  flex: 0 1 480px;
  min-width: 0;
}

.fmc-vets__label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font: var(--type-label);
}

.fmc-vets__input {
  width: 100%;
}

.fmc-vets__scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
}

.fmc-vets .fmc-vets__scroll:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.fmc-vets__table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.fmc-vets .fmc-vets__table th,
.fmc-vets .fmc-vets__table td {
  border: 0;
  text-align: left;
  vertical-align: top;
}

.fmc-vets .fmc-vets__table th {
  padding: 14px var(--space-5);
  border-bottom: 1px solid var(--color-border-strong);
  background-color: var(--color-surface-sunken);
  color: var(--color-text-muted);
  font: var(--type-body-sm-strong);
  white-space: nowrap;
}

.fmc-vets .fmc-vets__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: normal;
}

.fmc-vets .fmc-vets__sort:hover,
.fmc-vets .fmc-vets__table th[aria-sort] .fmc-vets__sort {
  color: var(--color-text);
}

.fmc-vets .fmc-vets__sort:focus-visible {
  border-radius: var(--radius-control);
  outline: none;
  box-shadow: var(--shadow-focus);
}

.fmc-vets__sort svg {
  flex: none;
}

.fmc-vets .fmc-vets__table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font: var(--type-body);
  overflow-wrap: anywhere;
}

.fmc-vets__table td:first-child {
  font-weight: var(--font-weight-semibold);
}

.fmc-vets__table tbody tr:last-child td {
  border-bottom: 0;
}

.fmc-vets .fmc-vets__table tbody tr:not(.fmc-vets__empty):hover td {
  background-color: var(--color-primary-soft);
}

.fmc-vets__empty td {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
}

.fmc-vets__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.fmc-vets__count {
  margin: 0;
  color: var(--color-text-muted);
  font: var(--type-body-sm);
}

.fmc-vets__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.fmc-vets .fmc-vets__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-height-md);
  height: var(--control-height-md);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-text);
  font: var(--type-label-md);
  text-decoration: none;
  transition: var(--transition-control);
}

.fmc-vets .fmc-vets__page:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.fmc-vets .fmc-vets__page:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.fmc-vets .fmc-vets__page[aria-current="page"] {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.fmc-vets__gap {
  min-width: var(--space-6);
  color: var(--color-text-muted);
  text-align: center;
}

