/* ==========================================================================
   Widget — Media Intro
   The top of the "Follow Along / The Latest" social section: the heading
   block on the left, a short row of buttons on the right, level with its
   last line, and a hairline beneath both.

   Mobile-first: the buttons drop under the heading, then move beside it from
   768px.
   ========================================================================== */

/*
 * Built to sit inside an Elementor container, so no spacing of its own: the
 * container lines it up with its neighbours. The Section Spacing control is
 * more specific than this and still applies when set.
 */
.o-section--media-intro {
	padding-block: 0;
}

.o-media-intro {
	display: flex;
	flex-direction: column;
	gap: var(--o-space-lg);
}

/* The same generous space either side of the line, so it reads as a pause rather than an underline. */
.o-media-intro--rule {
	margin-bottom: var(--o-space-2xl);
	padding-bottom: var(--o-space-2xl);
	border-bottom: 1px solid var(--o-rule);
}

/* The gap above the rule owns the spacing, so the shared bottom margin goes. */
.o-section--media-intro .o-section-heading {
	margin-bottom: 0;
}

/* The top margin is there to clear an eyebrow. With none, it is dead space. */
.o-section--media-intro .o-section-heading__title:first-child {
	margin-top: 0;
}

.o-section--media-intro .o-section-heading__intro {
	margin-top: var(--o-space-xs);
}

@media (min-width: 768px) {
	.o-media-intro {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

/* --------------------------------------------------------------------------
   Buttons
   The site's buttons at the header CTA's compact size, an icon before the
   label. The outlined one takes a hairline rather than a full-strength
   border, so the solid one beside it leads.
   -------------------------------------------------------------------------- */
.o-media-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--o-space-sm);
}

.o-media-intro__btn {
	padding: 0.75rem 1.25rem;
	font-size: var(--o-fs-small);
	white-space: nowrap;
}

.o-media-intro__btn.o-btn--outline {
	border-color: var(--o-rule);
	color: var(--o-heading);
}

.o-media-intro__btn.o-btn--outline:hover,
.o-media-intro__btn.o-btn--outline:focus-visible {
	border-color: var(--o-orange);
	color: var(--o-white);
}

.o-media-intro__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
