/**
 * What the components share: the container inside a band, and the frame
 * Elementor puts around a component widget.
 *
 * Loaded before each component's own stylesheet. See docs/components.md.
 */

/* `container mx-auto px-4`: the 1400px content width with 16px of padding
   at every width, as the shared sections and the header use it. */
.sba-c-container {
	width: 100%;
	max-width: var(--sba-container-max);
	margin-right: auto;
	margin-left: auto;
	padding-right: 16px;
	padding-left: 16px;
	box-sizing: border-box;
}

/* Headings and paragraphs inside a component take the component's own
   rules: MyListing colors and spaces every h1-h6 and p, and the kit's Theme
   Style colors headings in Primary. The components' rules carry two classes
   to win over both. */
.sba-c :where(h1, h2, h3, p) {
	margin: 0;
}

/* ---- The Elementor frame ----------------------------------------------------
 * A component is a full-width band; the container an editor drops it into
 * would inset it with its default 10px padding, box it at the content width
 * and put the kit's 20px gap between two components. A container that holds
 * a component directly therefore loses all three, whatever its settings say:
 * the layout is the component's, editors fill in content. The :has() argument
 * brings the selector to four classes, above Elementor's per-element rules
 * (three).
 * ------------------------------------------------------------------------- */
.e-con.e-con:has(> .raskin-component-widget, > .e-con-inner > .raskin-component-widget) {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-bottom: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--content-width: 100%;
	--width: 100%;
}

.e-con.e-con:has(> .e-con-inner > .raskin-component-widget) > .e-con-inner {
	max-width: none;
	padding: 0;
}

.elementor-widget.raskin-component-widget {
	width: 100%;
	max-width: 100%;
	margin: 0;
	--kit-widget-spacing: 0px;
}

/* ---- The section frame ------------------------------------------------------
 * raskin_component_section_open(): the prototype's sections. Standard
 * spacing `py-20 lg:py-28`, medium `py-16 lg:py-24`, compact `py-12
 * lg:py-16`; the tinted surfaces between `border-y`; the narrow container
 * `max-w-6xl`, 72rem with the gutter.
 * ------------------------------------------------------------------------- */
.sba-c-section.sba-c-section {
	font-family: var(--sba-font-sans);
	color: var(--sba-charcoal);
}

.sba-c-section.sba-c-space-standard { padding: 80px 0; }
.sba-c-section.sba-c-space-medium { padding: 64px 0; }
.sba-c-section.sba-c-space-compact { padding: 48px 0; }
.sba-c-section.sba-c-space-band { padding: 64px 0; }

/* Another spacing at the bottom, or none: blocks chained into one surface
   (Home's review). */
.sba-c-section.sba-c-space-bottom-standard { padding-bottom: 80px; }
.sba-c-section.sba-c-space-bottom-medium { padding-bottom: 64px; }
.sba-c-section.sba-c-space-bottom-compact { padding-bottom: 48px; }
.sba-c-section.sba-c-space-bottom-band { padding-bottom: 64px; }
.sba-c-section.sba-c-space-bottom-none { padding-bottom: 0; }

@media (min-width: 1024px) {
	.sba-c-section.sba-c-space-standard { padding: 112px 0; }
	.sba-c-section.sba-c-space-medium { padding: 96px 0; }
	.sba-c-section.sba-c-space-compact { padding: 64px 0; }
	.sba-c-section.sba-c-space-band { padding: 80px 0; }
	.sba-c-section.sba-c-space-bottom-standard { padding-bottom: 112px; }
	.sba-c-section.sba-c-space-bottom-medium { padding-bottom: 96px; }
	.sba-c-section.sba-c-space-bottom-compact { padding-bottom: 64px; }
	.sba-c-section.sba-c-space-bottom-band { padding-bottom: 80px; }
	.sba-c-section.sba-c-space-bottom-none { padding-bottom: 0; }
}

.sba-c-section.sba-c-bg-white { background-color: var(--sba-surface); }

.sba-c-section.sba-c-bg-warm,
.sba-c-section.sba-c-bg-cool {
	border-top: 1px solid var(--sba-border);
	border-bottom: 1px solid var(--sba-border);
}

.sba-c-section.sba-c-bg-warm { background-color: var(--sba-surface-warm); }
.sba-c-section.sba-c-bg-cool { background-color: var(--sba-surface-cool); }

/* Two tinted bands in a row share one border. */
.sba-c-section:is(.sba-c-bg-warm, .sba-c-bg-cool) + .sba-c-section:is(.sba-c-bg-warm, .sba-c-bg-cool) {
	border-top: 0;
}

.sba-c-section.sba-c-bg-charcoal {
	background-color: var(--sba-charcoal);
	color: #fff;
}

.sba-c-section.sba-c-bg-muted { background-color: var(--sba-muted); }

.sba-c-section.sba-c-norules {
	border-top: 0;
	border-bottom: 0;
}

/* A block that runs on into the next one (no spacing at the bottom) has no
   rule under it either: the next block continues its surface, and the line
   would cut through it (the Industry page's cards above the technology
   transfer row, the Global Village's blocks above their photographs). */
.sba-c-section.sba-c-space-bottom-none {
	border-bottom: 0;
}

.sba-c-container.sba-c-container-narrow {
	max-width: 72rem;
}

/* The section header: Eyebrow, `text-3xl md:text-4xl font-bold
   tracking-tight` in max-w-3xl, the lead `mt-4 text-lg` in the muted
   foreground. What follows it starts 40px below (`mt-10`). */
.sba-c-section .sba-c-section-title {
	max-width: 48rem;
	margin: 0;
	color: var(--sba-charcoal);
	font-family: var(--sba-font-sans);
	font-size: 30px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 36px;
	text-wrap: balance;
}

.sba-c-section .sba-c-section-lead {
	max-width: 48rem;
	margin: 16px 0 0;
	color: var(--sba-slate);
	font-size: 18px;
	line-height: 28px;
}

/* The display title, `text-3xl md:text-5xl leading-tight`, its lead `mt-6
   max-w-2xl`; the small one, `text-2xl md:text-3xl leading-tight`, its
   lead `mt-6` (Home's review and its blocks). From 768px the larger size's
   own line height wins over leading-tight: 48px and 36px. */
.sba-c-section.sba-c-title-display .sba-c-section-title {
	line-height: 1.25;
}

.sba-c-section.sba-c-title-display .sba-c-section-lead {
	max-width: 42rem;
	margin-top: 24px;
}

.sba-c-section.sba-c-title-small .sba-c-section-title {
	font-size: 24px;
	line-height: 1.25;
}

.sba-c-section.sba-c-title-small .sba-c-section-lead {
	margin-top: 24px;
}

@media (min-width: 768px) {
	.sba-c-section.sba-c-title-display .sba-c-section-title {
		font-size: 48px;
		line-height: 48px;
	}

	.sba-c-section.sba-c-title-small .sba-c-section-title {
		font-size: 30px;
		line-height: 36px;
	}
}

.sba-c-bg-charcoal .sba-c-section-title { color: #fff; }
.sba-c-bg-charcoal .sba-c-section-lead { color: rgb(255 255 255 / 0.75); }

/* The lead as a note: `flex items-start gap-2` muted at body size, the info
   icon `mt-1 h-4 w-4`. */
.sba-c-section .sba-c-lead-info {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 16px;
	line-height: 24px;
}

.sba-c-section .sba-c-lead-info .sba-i {
	flex: 0 0 auto;
	margin-top: 4px;
	font-size: 16px;
}

.sba-c-section .sba-c-section-header + * {
	margin-top: 40px;
}

/* A heading that links (the front page's "Industry news") reads as the
   heading. */
.sba-c-section .sba-c-section-title a {
	color: inherit;
	text-decoration: none;
}

.sba-c-section .sba-c-section-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* A link beside the heading (the prototype's SectionHeader: "All events"),
   under it below 768px, `mt-5`; from there on the heading's baseline at
   the right. */
.sba-c-section .sba-c-section-header-more > .sba-c-link {
	margin-top: 20px;
}

@media (min-width: 768px) {
	.sba-c-section .sba-c-section-header-more {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 24px;
	}

	.sba-c-section .sba-c-section-header-more > .sba-c-link {
		flex: 0 0 auto;
		margin-top: 0;
		padding-bottom: 6px;
	}
}

@media (min-width: 768px) {
	.sba-c-section .sba-c-section-title {
		font-size: 36px;
		line-height: 40px;
	}
}

/* ---- Text in sections ---------------------------------------------------------
 * The intro, `text-xl md:text-2xl font-medium leading-relaxed`, and the
 * prose under it, `mt-8 space-y-5 text-lg` in the muted foreground. */
.sba-c .sba-c-intro {
	margin: 0;
	color: var(--sba-charcoal);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.625;
}

.sba-c .sba-c-prose {
	color: var(--sba-slate);
	font-size: 18px;
	line-height: 28px;
}

.sba-c .sba-c-intro + .sba-c-prose { margin-top: 32px; }

/* In the section header the intro keeps to `max-w-3xl`, and what follows
   the header starts `mt-12` under it. */
.sba-c-section-header .sba-c-intro { max-width: 48rem; }
.sba-c-section .sba-c-section-header:has(> .sba-c-intro) + * { margin-top: 48px; }

/* MyListing sets every p to 14px/22px; text in a component takes its
   container's size and color. */
.sba-c .sba-c-prose :is(p, li),
.sba-c .sba-c-notice-box p {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.sba-c .sba-c-prose > * { margin: 0; }
.sba-c .sba-c-prose > * + * { margin-top: 20px; }
.sba-c .sba-c-prose ul,
.sba-c .sba-c-prose ol { padding-left: 1.25em; }
/* MyListing takes the markers off every list; prose keeps them
   (`list-disc`, `list-decimal`). */
.sba-c .sba-c-prose ul { list-style: disc; }
.sba-c .sba-c-prose ol { list-style: decimal; }
.sba-c .sba-c-prose li + li { margin-top: 8px; }

/* `text-xl leading-relaxed`, then `md:text-2xl`, whose own 32px line
   height wins from 768px. */
@media (min-width: 768px) {
	.sba-c .sba-c-intro {
		font-size: 24px;
		line-height: 32px;
	}
}

/* The text link: `inline-flex items-center gap-1.5 text-sm font-medium
   text-swiss-red-dark`, its arrow moving on hover; the row of them `mt-8
   flex flex-wrap gap-x-6 gap-y-3`. */
.sba-c .sba-c-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sba-red-dark);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	text-underline-offset: 4px;
}

.sba-c .sba-c-link:hover {
	color: var(--sba-red-darker);
	text-decoration: underline;
}

.sba-c .sba-c-link .sba-i {
	font-size: 16px;
	transition: transform 0.2s ease;
}

.sba-c .sba-c-link:hover .sba-i-arrow-right {
	transform: translateX(2px);
}

.sba-c .sba-c-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 32px;
}

/* The button row, `mt-8 flex flex-wrap gap-3`. */
.sba-c .sba-c-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* Link rows: `border-t`, a row `border-b`, its link `grid
   grid-cols-[5.5rem_minmax(0,1fr)_auto] items-center gap-3 py-5
   hover:bg-muted/60`; the date `text-sm font-medium tabular-nums` in the
   dark red, the title `text-base font-bold leading-snug`, red on hover. */
.sba-c .sba-c-link-rows {
	margin: 32px 0 0;
	padding: 0;
	border-top: 1px solid var(--sba-border);
	list-style: none;
}

.sba-c .sba-c-link-rows li {
	margin: 0;
	border-bottom: 1px solid var(--sba-border);
}

.sba-c .sba-c-link-rows a {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 20px 0;
	color: var(--sba-charcoal);
	text-decoration: none;
	transition: background-color var(--sba-duration-hover) ease;
}

.sba-c .sba-c-link-rows a:hover {
	background-color: color-mix(in srgb, var(--sba-muted) 60%, transparent);
}

.sba-c .sba-c-link-rows-meta {
	color: var(--sba-red-dark);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	line-height: 20px;
}

.sba-c .sba-c-link-rows-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.375;
}

.sba-c .sba-c-link-rows a:hover .sba-c-link-rows-title {
	color: var(--sba-red-dark);
}

.sba-c .sba-c-link-rows .sba-i {
	color: var(--sba-red-dark);
	font-size: 16px;
}

.sba-c .sba-c-link-rows + .sba-c-buttons {
	margin-top: 24px;
}

/* A paragraph that only holds a text link is as tall as the link: MyListing
   gives every p a 22px line height. (A step's link keeps its line, see
   steps.css.) */
.sba-c :is(.sba-c-card-more, .sba-c-list-link) {
	display: flex;
}

/* A figure: the picture 4:3 with `rounded-xl`, the caption `mt-2 text-sm`. */
.sba-c .sba-c-figure {
	margin: 0;
}

.sba-c .sba-c-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	object-fit: cover;
}

.sba-c .sba-c-figure figcaption {
	margin-top: 8px;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 20px;
}

/* A picture slot (raskin_component_figure(): Picture, Text and aside's
   aside): the picture or diagram whole, the caption `mt-3 text-sm` under
   it. Padding, not margin, as Elementor zeroes a figure's margin. */
.sba-c .sba-c-figure-slot {
	margin: 0;
}

.sba-c .sba-c-figure-slot > img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.sba-c .sba-c-figure-slot > figcaption {
	padding-top: 12px;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 20px;
}

/* The icon tile: `h-10 w-10 rounded-lg`, the glyph 20px; the large one
   (`.value-card-icon`) 48px with a 24px glyph. */
.sba-c .sba-c-icon-tile {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--sba-radius);
	background-color: var(--sba-icon-tile-bg);
	color: var(--sba-icon-tile-color);
	font-size: 20px;
	line-height: 1;
}

.sba-c .sba-c-icon-tile-lg {
	width: 48px;
	height: 48px;
	font-size: 24px;
}

/* ---- The page card ------------------------------------------------------------
 * One link: a 4:3 picture (a warm-to-cool gradient without one), then `p-6`
 * with the label, the title `text-xl font-bold leading-snug`, the
 * description `mt-3 text-sm leading-relaxed` and "Learn more" at the
 * bottom. On hover it lifts 4px, the shadow deepens, the picture zooms to
 * 105% and the title turns dark red. */
.sba-c .sba-c-page-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--sba-border) 50%, transparent);
	border-radius: var(--sba-radius);
	background-color: var(--sba-surface);
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sba-c .sba-c-page-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.sba-c .sba-c-page-card:focus-visible {
	outline: 2px solid var(--sba-ring);
	outline-offset: 2px;
}

.sba-c .sba-c-page-card-media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(to bottom right, var(--sba-surface-warm), var(--sba-surface-cool));
}

.sba-c .sba-c-page-card-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.sba-c .sba-c-page-card:hover .sba-c-page-card-image {
	transform: scale(1.05);
}

.sba-c .sba-c-page-card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px;
}

.sba-c .sba-c-page-card-title {
	margin: 0;
	color: var(--sba-charcoal);
	font-family: var(--sba-font-sans);
	font-size: 20px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 1.375;
	transition: color var(--sba-duration-hover) ease;
}

.sba-c .sba-c-page-card:hover .sba-c-page-card-title {
	color: var(--sba-red-dark);
}

.sba-c .sba-c-page-card-description {
	margin: 12px 0 0;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 1.625;
}

.sba-c .sba-c-page-card-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	padding-top: 20px;
	color: var(--sba-red-dark);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.sba-c .sba-c-page-card-more .sba-i {
	font-size: 16px;
	transition: transform 0.3s ease;
}

.sba-c .sba-c-page-card:hover .sba-c-page-card-more .sba-i {
	transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
	.sba-c .sba-c-page-card:hover,
	.sba-c .sba-c-page-card:hover .sba-c-page-card-image,
	.sba-c .sba-c-page-card:hover .sba-c-page-card-more .sba-i {
		transform: none;
	}
}

/* ---- Form fields ----------------------------------------------------------------
 * The prototype's Input, `h-10 rounded-md border border-input px-3 py-2
 * text-base md:text-sm` with the ring on focus, and its Checkbox, `h-4 w-4
 * rounded-sm border border-primary`, here the native box in the dark red.
 * The style guide's Buttons page shows both, painted by these rules; the
 * focused field there is sba-c-input-focus, the focus held still. A select
 * takes the same class, with a 16px chevron-down in slate 12px from the
 * right; a search field sits in sba-c-search with its icon 12px in front. */
.sba-c :is(input, select).sba-c-input {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--sba-input);
	border-radius: var(--sba-radius-md);
	background: var(--sba-surface);
	box-shadow: none;
	color: var(--sba-charcoal);
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
}

.sba-c select.sba-c-input {
	padding-right: 36px;
	background: var(--sba-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7181' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px;
	cursor: pointer;
}

.sba-c .sba-c-search {
	position: relative;
}

.sba-c .sba-c-search > .sba-i {
	position: absolute;
	top: 50%;
	left: 12px;
	color: var(--sba-slate);
	font-size: 16px;
	line-height: 16px;
	transform: translateY(-50%);
	pointer-events: none;
}

.sba-c .sba-c-search > input.sba-c-input {
	padding-left: 36px;
}

.sba-c input.sba-c-input::placeholder {
	color: var(--sba-slate);
	opacity: 1;
}

.sba-c :is(input, select).sba-c-input:focus,
.sba-c :is(input, select).sba-c-input.sba-c-input-focus {
	border-color: var(--sba-input);
	outline: 2px solid var(--sba-ring);
	outline-offset: 2px;
}

.sba-c input.sba-c-checkbox {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--sba-red-dark);
	cursor: pointer;
}

@media (min-width: 768px) {
	.sba-c :is(input, select).sba-c-input {
		font-size: 14px;
		line-height: 20px;
	}
}

/* ---- The tagline --------------------------------------------------------------
 * A statement under a platform's value: `mt-12 border-l-2 border-swiss-red
 * pl-5 text-xl font-bold` in the foreground, `max-w-3xl`. */
.sba-c .sba-c-tagline {
	max-width: 48rem;
	margin: 48px 0 0;
	padding-left: 20px;
	border-left: 2px solid var(--sba-red);
	color: var(--sba-charcoal);
	font-size: 20px;
	font-weight: var(--sba-heading-weight);
	line-height: 28px;
}

/* ---- The checklist ------------------------------------------------------------
 * `mt-8 space-y-3`, each line `flex gap-3` muted, the check `mt-1 h-4 w-4`
 * in the dark red (Two columns, Path). */
.sba-c .sba-c-checklist {
	display: grid;
	gap: 12px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.sba-c .sba-c-checklist li {
	display: flex;
	gap: 12px;
	margin: 0;
	color: var(--sba-slate);
	font-size: 16px;
	line-height: 24px;
}

.sba-c .sba-c-checklist .sba-i {
	flex: 0 0 auto;
	margin-top: 4px;
	color: var(--sba-red-dark);
	font-size: 16px;
	line-height: 16px;
}
