/* ==========================================================================
   tg-theme — assets/css/preferred-source.css
   Seasonal "preferred source on Google" footer badge (inc/preferred-source.php)
   and the footer actions row it shares with the LinkedIn ring.

   Row (owner revision 2026-10-13): [LinkedIn ring][badge] on one line under the
   footer nav, same height (46px, the ring's rendered size, which is shared with
   the header ring and so is not changed here), vertically centred, spanning
   exactly the nav's width: the row is excluded from the column's intrinsic width
   (width:0; min-width:100%), so the column stays as wide as the nav and the badge
   flexes to fill. Horizontal gap 24px = the nav's item gap.

   One element, same look and same text in every season (owner's final 2026-10-13:
   eyebrow "Trust in Birch", action "Add Birch as a preferred source on Google");
   seasonality = the monogram plus the eyebrow's accent colour. Accent follows the LinkedIn ring (.tg-social-li): --brand-primary for
   spring, --brand-gold for summer/winter, and a badge-only lighter terracotta
   (#E8735A) for autumn, because --brand-primary #DB5537 fails AA on the hover fill.
   Measured on the composited card fill, rest (.03 white on #0C1219 = #131920) /
   hover+focus (.06 = #1B2027): autumn #E8735A 5.92/5.48, spring #7EBB41 7.64/7.07,
   summer #7FA05A 5.96/5.52, winter #8FA6BC 7.03/6.51; action line #fff 17.68/16.37.
   No Google logo or trade dress; "Google" appears as plain text only.

   Config version: 0.1.1
   ========================================================================== */

/* ── Footer actions row ─────────────────────────────────────────────────── */
.site-footer__actions {
	--tg-actions-h: 46px;
	display: flex;
	align-items: center;
	gap: 24px; /* = footer nav column gap */
	width: 0;
	min-width: 100%;
	margin: 0;
}
.site-footer__actions > * {
	margin: 0 !important; /* core flow-layout block gap would offset the badge */
}
.site-footer__actions .site-footer__li {
	align-self: center;
	flex: 0 0 auto;
}

/* ── Badge ──────────────────────────────────────────────────────────────── */
.tg-pref-source {
	--tg-ps-accent: var(--brand-primary, #DB5537);
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	min-height: var(--tg-actions-h, 46px); /* = ring; grows only if text wraps */
	padding: 4px 12px 4px 4px; /* 36px mark + 8 + 2px border = 46px */
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
[data-season="summer"] .tg-pref-source,
[data-season="winter"] .tg-pref-source {
	--tg-ps-accent: var(--brand-gold, #8FA6BC);
}
/* Autumn: lighter terracotta for the badge only (site --brand-primary unchanged).
   #DB5537 measured 4.18:1 on the hover fill #1B2027, below AA for 12px text. */
[data-season="autumn"] .tg-pref-source {
	--tg-ps-accent: #E8735A;
}

/* Seasonal monogram tile (decorative, alt=""). The tile is ink on an ink footer, so a
   drop-shadow that follows the PNG's alpha draws a hairline, season-tinted edge. */
.tg-pref-source__mark {
	display: block;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	filter:
		drop-shadow(0 0 0.75px color-mix(in srgb, var(--tg-ps-accent) 85%, transparent))
		drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.tg-pref-source__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

/* Eyebrow: echoes .tg-eyebrow (Inter, uppercase, tracked, leading rule), scaled
   for the badge. */
.tg-pref-source__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--inter, inherit);
	font-size: var(--wp--preset--font-size--xs, 12px);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tg-ps-accent);
}
.tg-pref-source__eyebrow::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 14px;
	height: 1px;
	background: currentColor;
}

.tg-pref-source__action {
	font-family: var(--wp--preset--font-family--montserrat, inherit);
	font-size: 13px; /* = footer nav size; keeps the line on one row in the 46px card at desktop */
	font-weight: 600;
	color: #fff;
}

/* External-link arrow, inline at the end of the eyebrow: never collides with the
   action line, and wraps with the text on narrow screens. */
.tg-pref-source__ext {
	flex: none;
	width: 12px;
	height: 12px;
	color: var(--tg-ps-accent);
	transition: transform 0.18s ease;
}

.tg-pref-source:hover,
.tg-pref-source:focus-visible {
	border-color: color-mix(in srgb, var(--tg-ps-accent) 55%, transparent);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}
.tg-pref-source:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Hover lift + accent-tinted shadow: the .tg-btn--primary device. */
@media (prefers-reduced-motion: no-preference) {
	.tg-pref-source:hover,
	.tg-pref-source:focus-visible {
		transform: translateY(-2px);
		box-shadow: 0 10px 26px color-mix(in srgb, var(--tg-ps-accent) 22%, transparent);
	}
	.tg-pref-source:hover .tg-pref-source__ext,
	.tg-pref-source:focus-visible .tg-pref-source__ext {
		transform: translate(2px, -2px);
	}
}

/* Phones: keep one row (variant A, chosen 2026-10-13 over a centred stack: it keeps
   the stacked footer's shared left edge). The action line wraps inside the card, the
   card grows, and the ring stays vertically centred beside it. */
@media (max-width: 760px) {
	.site-footer__actions { gap: 16px; }
}

/* Smallest phones (<=360px, WCAG 1.4.10): beside the ring the action line would run to
   three lines. Per the owner ("keep one row if it fits cleanly, otherwise stack
   centred"), stack: ring centred above a full-width card, action line on two lines. */
@media (max-width: 360px) {
	.site-footer__actions {
		flex-direction: column;
		align-items: center;
	}
	.site-footer__actions .tg-pref-source {
		align-self: stretch;
	}
}
