/*
 * Company Brochure — reset layer
 *
 * Sits above Elementor's frontend + atomic base-style layers and below the (unlayered) design CSS.
 * 1. Atomic containers render as plain HTML elements again (Elementor's generic .e-con rules give
 *    every container width:100%, position:relative and 10px padding).
 * 2. Atomic widgets drop their placeholder looks (blue button, zero heading margins …).
 * 3. ".t-<tag>" classes carry browser defaults for tags an atomic element cannot output natively.
 *    The design CSS matches them through :is(tag, :where(.t-tag)), keeping original specificity.
 *    Doubled class selectors (.t-x.t-x) beat rule 1 inside this layer.
 */
@layer cb-reset {
	/*
	 * Elements used by the converted pages behave like the plain HTML they stand for: every property
	 * coming from Elementor's frontend/base layers is rolled back to the browser default. The
	 * design CSS and each element's own Elementor styles are unlayered, so they still apply.
	 * Flexbox, Grid, Tabs, Form … elements added later keep Elementor's own defaults.
	 */
	.e-div-block-base,
	.e-list-base,
	.e-list-item-base,
	.e-accordion-base,
	.e-accordion-item-base,
	.e-accordion-item-header-base,
	.e-accordion-item-content-base,
	.e-heading-base,
	.e-paragraph-base,
	.e-button-base,
	.e-image-base,
	.e-svg-base,
	.e-form-base,
	.e-form-input-base,
	.e-form-label-base,
	.e-form-textarea-base,
	.e-form-select-base,
	.e-form-submit-button-base {
		all: revert;
	}

	/* Converted inline SVG icons and grouped <details>: the wrapper takes no box. */
	.cb-icon.cb-icon,
	.cb-acc.cb-acc {
		display: contents;
	}

	/* Inline-level stand-ins (a Div Block renders a <div>) */
	.t-span.t-span, .t-i.t-i, .t-em.t-em, .t-b.t-b, .t-strong.t-strong, .t-small.t-small,
	.t-label.t-label, .t-time.t-time, .t-cite.t-cite, .t-abbr.t-abbr, .t-code.t-code,
	.t-mark.t-mark, .t-sup.t-sup, .t-sub.t-sub, .t-u.t-u, .t-s.t-s, .t-input.t-input, .t-select.t-select, .t-textarea.t-textarea {
		display: inline;
	}

	.t-small.t-small { font-size: smaller; }
	.t-i.t-i, .t-em.t-em, .t-cite.t-cite, .t-address.t-address { font-style: italic; }
	.t-b.t-b, .t-strong.t-strong, .t-th.t-th { font-weight: bolder; }
	.t-sup.t-sup { vertical-align: super; font-size: smaller; }
	.t-sub.t-sub { vertical-align: sub; font-size: smaller; }
	.t-u.t-u { text-decoration: underline; }
	.t-s.t-s { text-decoration: line-through; }
	.t-code.t-code { font-family: monospace; }
	.t-mark.t-mark { background-color: mark; color: marktext; }

	/* Block-level stand-ins (a paragraph widget renders a <span>) */
	.t-p.t-p { display: block; margin-block: 1em; }
	.t-h1.t-h1, .t-h2.t-h2, .t-h3.t-h3, .t-h4.t-h4, .t-h5.t-h5, .t-h6.t-h6 { display: block; font-weight: bold; }
	.t-h1.t-h1 { font-size: 2em; margin-block: .67em; }
	.t-h2.t-h2 { font-size: 1.5em; margin-block: .83em; }
	.t-h3.t-h3 { font-size: 1.17em; margin-block: 1em; }
	.t-h4.t-h4 { margin-block: 1.33em; }
	.t-figure.t-figure,
	.t-blockquote.t-blockquote { display: block; margin: 1em 40px; }
	.t-dl.t-dl { display: block; margin-block: 1em; }
	.t-dd.t-dd { display: block; margin-inline-start: 40px; }
	.t-dt.t-dt, .t-figcaption.t-figcaption, .t-address.t-address, .t-legend.t-legend,
	.t-form.t-form, .t-details.t-details, .t-li.t-li { display: block; }
	.t-summary.t-summary { display: list-item; cursor: pointer; }
	.t-fieldset.t-fieldset { display: block; margin-inline: 2px; padding: .35em .75em .625em; border: 2px groove ThreeDFace; min-inline-size: min-content; }
	.t-ul.t-ul, .t-ol.t-ol { display: block; margin-block: 1em; padding-inline-start: 40px; }
	.t-ol.t-ol { list-style-type: decimal; }

	/* Table stand-ins */
	.t-table.t-table { display: table; border-collapse: separate; border-spacing: 2px; text-indent: initial; box-sizing: border-box; }
	.t-thead.t-thead { display: table-header-group; vertical-align: middle; }
	.t-tbody.t-tbody { display: table-row-group; vertical-align: middle; }
	.t-tfoot.t-tfoot { display: table-footer-group; vertical-align: middle; }
	.t-tr.t-tr { display: table-row; vertical-align: inherit; }
	.t-td.t-td, .t-th.t-th { display: table-cell; vertical-align: inherit; padding: 1px; }
	.t-th.t-th { text-align: center; }
	.t-caption.t-caption { display: table-caption; text-align: center; }
}
