/* ==========================================================================
   Pages built by the design converter (body class "og-auto-page", scope "og-auto").
   Elementor wrappers are made layout-transparent so the design's own CSS
   (assets/css/auto-*.css, generated) applies to the same element tree as the design.
   Specificity sits between Elementor's defaults and the generated design rules.
   ========================================================================== */

/* Widget wrappers and Elementor's inner wrapper spans/divs don't create boxes. */
body .og-auto .og-w,
body .og-auto.og-w,
body .og-auto .og-w .elementor-button-content-wrapper,
body .og-auto .og-w .elementor-button-text,
body .og-auto .og-w .elementor-button-icon,
body .og-auto .og-w .elementor-icon-wrapper,
body .og-auto .og-w .elementor-icon { display: contents; }

/* Containers behave like plain elements of the original tag. */
.e-con.og-auto,
.og-auto .e-con.e-con {
	display: block; flex-direction: initial; flex-wrap: initial; justify-content: normal; align-items: normal; align-content: normal;
	gap: normal; position: static; z-index: auto; min-width: auto; width: auto; height: auto; min-height: auto;
	text-align: inherit; border-radius: 0; overflow: visible;
}
.og-auto .e-con.og-t-a, .og-auto .e-con.og-t-span, .og-auto .e-con.og-t-label, .og-auto .e-con.og-t-b,
.og-auto .e-con.og-t-small, .og-auto .e-con.og-t-em, .og-auto .e-con.og-t-strong { display: inline; }
.og-auto .e-con.og-t-button { display: inline-block; align-content: center; text-align: center; cursor: pointer; }
.og-auto .e-con.og-t-li { display: list-item; }
.og-auto .e-con.og-t-a { color: inherit; text-decoration: none; }

/* Widget inner elements: plain HTML defaults (Elementor adds its own). */
.og-auto .og-w > .elementor-heading-title { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; }
.og-auto .og-w > .elementor-heading-title:is(h1, h2, h3, h4, h5, h6) { font-weight: 600; }
.og-auto .og-w > .elementor-button {
	all: unset; display: inline; cursor: pointer; box-sizing: border-box;
	color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none;
}
.og-auto .og-w > img { display: block; vertical-align: middle; max-width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.og-auto .og-w svg { display: block; vertical-align: middle; }
.og-auto .og-icon-end svg { order: 2; }
.og-auto .og-is-hidden { display: none !important; }

/* Icon widgets: no Elementor size/colour — the SVG keeps its own attributes, the design CSS sizes it. */
.og-auto .og-w .elementor-icon { color: inherit; font-size: inherit; line-height: inherit; fill: inherit; }
.og-auto .og-w .elementor-icon svg { width: auto; height: auto; }

/* Inline tags that became Heading widgets keep the browser's defaults for that tag. */
.og-auto .og-t-b.og-w > .elementor-heading-title, .og-auto .og-t-strong.og-w > .elementor-heading-title { font-weight: bolder; }
.og-auto .og-t-em.og-w > .elementor-heading-title, .og-auto .og-t-i.og-w > .elementor-heading-title, .og-auto .og-t-cite.og-w > .elementor-heading-title { font-style: italic; }
.og-auto .og-t-small.og-w > .elementor-heading-title { font-size: 80%; }   /* the design base CSS: small{font-size:80%} */
.og-auto .og-t-u.og-w > .elementor-heading-title { text-decoration: underline; }
.og-auto .og-t-s.og-w > .elementor-heading-title, .og-auto .og-t-del.og-w > .elementor-heading-title { text-decoration: line-through; }

/* <details>/<summary> are containers: closed items show only their summary (site.js toggles [open]). */
.og-auto .og-t-details:not([open]) > :not(.og-t-summary) { display: none !important; }
.og-auto .e-con.og-t-summary { display: list-item; cursor: pointer; }

/* Design forms: an Elementor Pro Form inside the design's form box (og-form-box).
   The form widget's wrappers don't create boxes, so each field group (= the design's <label>),
   the notes and the submit button are grid items of the box, in the design's order. */
.og-auto .og-form-box.og-form-box { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0 !important; align-content: start; }
.og-auto .og-form-box > .elementor-widget-form,
.og-auto .og-form-box .elementor-form,
.og-auto .og-form-box .elementor-form-fields-wrapper,
.og-auto .og-form-box .e-form__buttons,
.og-auto .og-form-box .elementor-field-label,
.og-auto .og-form-box .elementor-select-wrapper,
.og-auto .og-form-box .e-form__buttons .elementor-button-content-wrapper,
.og-auto .og-form-box .e-form__buttons .elementor-button-text,
.og-auto .og-form-box .e-form__buttons .elementor-button-icon { display: contents; }
.og-auto .og-form-box .elementor-field-group:not(.e-form__buttons) { width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; display: block; flex: none; }
.og-auto .og-form-box .elementor-field-group:not(.elementor-col-50),
.og-auto .og-form-box > *:not(.elementor-widget-form),
.og-auto .og-form-box > .og-w > *,
.og-auto .og-form-box .e-form__buttons > .elementor-button,
.og-auto .og-form-box .elementor-message { grid-column: 1 / -1; }
.og-auto .og-form-box .elementor-field-label { cursor: pointer; }
.og-auto .og-form-box .elementor-mark-required .elementor-field-label::after { content: "*"; padding: 0; color: #a83317; }
.og-auto .og-form-box .select-caret-down-wrapper { display: none; }
.og-auto .og-form-box .elementor-field-group :is(.elementor-field, .elementor-field-textual) { flex: none; vertical-align: baseline; box-shadow: none; outline-offset: 0; font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; padding: 0; margin: 0; border: 0 solid; min-height: 0; }   /* = the design base CSS for form controls */
.og-auto .og-form-box .elementor-field-group select.elementor-field-textual { appearance: auto; -webkit-appearance: auto; }
.og-auto .og-form-box .e-form__buttons > .elementor-button {
	all: unset; display: inline-block; box-sizing: border-box; cursor: pointer; text-align: center;
	grid-column: 1 / -1; justify-self: start;   /* an inline-block button in the design form; width:100% rules still stretch it */
	color: inherit; font: inherit; letter-spacing: inherit;
}
.og-auto .og-form-box .elementor-message { order: 99; margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.og-auto .og-form-box .og-t-small { display: inline; }
.og-auto .og-ord-1, .og-auto .og-ord-1.og-w > * { order: 1; }
.og-auto .og-ord-2, .og-auto .og-ord-2.og-w > * { order: 2; }
.og-auto .og-ord-3, .og-auto .og-ord-3.og-w > * { order: 3; }
.og-auto .og-ord-4, .og-auto .og-ord-4.og-w > * { order: 4; }
.og-auto .og-ord-5, .og-auto .og-ord-5.og-w > * { order: 5; }
.og-auto .og-ord-6, .og-auto .og-ord-6.og-w > * { order: 6; }
.og-auto .og-submit-at-1 .e-form__buttons > .elementor-button { order: 1; }
.og-auto .og-submit-at-2 .e-form__buttons > .elementor-button { order: 2; }
.og-auto .og-submit-at-3 .e-form__buttons > .elementor-button { order: 3; }
.og-auto .og-submit-at-4 .e-form__buttons > .elementor-button { order: 4; }
.og-auto .og-submit-at-5 .e-form__buttons > .elementor-button { order: 5; }

/* <summary> keeps the browser's disclosure marker (design rules with list-style:none still win). */
.og-auto .og-t-summary:not(.og-w), .og-auto .og-t-summary.og-w > * { list-style: disclosure-closed inside; }
.og-auto .og-t-details[open] > .og-t-summary:not(.og-w), .og-auto .og-t-details[open] > .og-t-summary.og-w > * { list-style-type: disclosure-open; }

/* Tables: containers with the table display types (ARIA table roles set by the build). */
.og-auto .e-con.og-t-table { display: table; }
.og-auto .e-con.og-t-caption { display: table-caption; text-align: center; }
.og-auto .e-con.og-t-thead { display: table-header-group; vertical-align: middle; }
.og-auto .e-con.og-t-tbody { display: table-row-group; vertical-align: middle; }
.og-auto .e-con.og-t-tfoot { display: table-footer-group; vertical-align: middle; }
.og-auto .e-con.og-t-tr { display: table-row; vertical-align: inherit; }
.og-auto .e-con.og-t-td, .og-auto .e-con.og-t-th { display: table-cell; vertical-align: inherit; padding: 1px; }
.og-auto .e-con.og-t-th { font-weight: bold; text-align: center; }
.og-auto .e-con.og-t-colgroup { display: table-column-group; }
.og-auto .e-con.og-t-col { display: table-column; }
.og-auto .og-form-box .elementor-field-group-og_hp { display: none !important; }   /* honeypot (anti-spam) */

/* Container ::before/::after belong to the design (Elementor uses ::before for its background
   overlay: position absolute at top/left 0). Plain-element defaults; design rules set the rest. */
.og-auto .e-con.e-con::before, .og-auto .e-con.e-con::after, .e-con.og-auto::before, .e-con.og-auto::after {
	content: none; position: static; top: auto; right: auto; bottom: auto; left: auto; width: auto; height: auto;
	mix-blend-mode: normal; opacity: 1; transition: initial; border: 0 solid; border-radius: 0;
}

/* Elementor's ".elementor-button span { text-decoration: inherit }" gives every span inside a converted
   button its own underline on hover; in the design the link's underline simply carries through
   (and skips inline-block icons). Design rules on spans are more specific and still win. */
.og-auto .og-w > .elementor-button span { text-decoration: none; }

/* Film: auto.js swaps the play button for the player iframe. The design's "._video > iframe" rule
   (absolute, inset 0, 100% x 100%) never reaches the translated CSS because the design page has no
   iframe until play, so the player fills the video box here. */
body.og [data-elementor-type^="wp-p"] .og-film-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
}
