/* Drink With Us — Author byline

   Circular portrait with a cream ring, matching the avatar on the guide
   cards. Three-class selectors where needed: .fl-page p and
   .fl-builder-content * print after this file and will otherwise win. */

.dwu-author {
	--dwu-a-ink: var(--color-inky-green, #0f2e26);
	--dwu-a-soft: rgba(15, 46, 38, 0.66);
	--dwu-a-accent: var(--color-dusty-mauve, #ba7157);
	--dwu-a-rule: rgba(15, 46, 38, 0.12);
	--dwu-author-size: 96px;
}

/* Only the stacked block gets the rule and vertical margins. Inline is a
   line of text and must not carry either. */

.dwu-author--stacked {
	max-width: 42ch;
	margin: var(--space-10, 2.5rem) 0;
	padding: var(--space-6, 1.5rem) 0 0;
	border-top: 1px solid var(--dwu-a-rule);
}

.dwu-author--stacked.dwu-author--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.fl-page .dwu-author .dwu-author__label {
	margin: 0 0 var(--space-4, 1rem);
	max-width: none;
	color: var(--dwu-a-soft);
	font-family: var(--font-body, sans-serif);
	font-size: 0.8125rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase;
}

/* Portrait */

.dwu-author__portrait {
	display: block;
	width: var(--dwu-author-size);
	height: var(--dwu-author-size);
	border-radius: 50%;
	overflow: hidden;
	background: var(--color-soft-white, #f9f9f6);
	box-shadow: 0 0 0 3px var(--color-soft-white, #f9f9f6), 0 1px 8px rgba(15, 46, 38, 0.2);
	transition: box-shadow 0.2s ease;
}

.dwu-author--stacked.dwu-author--center .dwu-author__portrait {
	margin-inline: auto;
}

.dwu-author__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dwu-author__initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: rgba(186, 113, 87, 0.12);
	color: var(--dwu-a-accent);
	font-family: var(--font-heading, sans-serif);
	font-size: calc(var(--dwu-author-size) * 0.4);
	line-height: 1;
}

.dwu-author:hover .dwu-author__portrait {
	box-shadow: 0 0 0 3px var(--color-soft-white, #f9f9f6), 0 2px 12px rgba(15, 46, 38, 0.3);
}

/* Name */

.fl-page .dwu-author .dwu-author__name {
	margin: var(--space-4, 1rem) 0 0;
	max-width: none;
	font-family: var(--font-heading, sans-serif);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

.fl-page .dwu-author .dwu-author__name a {
	color: var(--dwu-a-ink);
	text-decoration: none;
}

.fl-page .dwu-author .dwu-author__name a:hover {
	color: var(--dwu-a-accent);
}

.fl-page .dwu-author .dwu-author__role {
	margin: 3px 0 0;
	max-width: none;
	color: var(--dwu-a-accent);
	font-family: var(--font-body, sans-serif);
	font-size: 0.8125rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase;
}

/* Guide count — only rendered when the author has more than one */

.fl-page .dwu-author .dwu-author__count {
	margin: 6px 0 0;
	max-width: none;
	color: var(--dwu-a-soft);
	font-family: var(--font-body, sans-serif);
	font-size: 0.8125rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em !important;
	font-style: italic;
}

.fl-page .dwu-author .dwu-author__bio {
	margin: var(--space-3, 0.75rem) 0 0;
	max-width: none;
	color: var(--dwu-a-soft);
	font-size: var(--text-xs, 0.875rem);
	line-height: 1.55;
}

/* Link */

.fl-page .dwu-author .dwu-author__more {
	margin: var(--space-4, 1rem) 0 0;
	max-width: none;
}

.fl-page .dwu-author .dwu-author__more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--dwu-a-ink);
	font-family: var(--font-body, sans-serif);
	font-size: 0.8125rem;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid rgba(15, 46, 38, 0.28);
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.fl-page .dwu-author .dwu-author__more a::after {
	content: "";
	width: 15px;
	height: 7px;
	flex: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 7' fill='none' stroke='%230f2e26' stroke-width='1.2'%3E%3Cpath d='M0 3.5h14M11 1l3 2.5-3 2.5'/%3E%3C/svg%3E");
}

.fl-page .dwu-author .dwu-author__more a:hover {
	color: var(--dwu-a-accent);
	border-bottom-color: var(--dwu-a-accent);
	gap: 12px;
}

/* On a dark background, add class dwu-author--on-dark to the wrapper */

.dwu-author--on-dark {
	--dwu-a-ink: var(--color-soft-white, #f9f9f6);
	--dwu-a-soft: rgba(249, 249, 246, 0.72);
	--dwu-a-rule: rgba(249, 249, 246, 0.22);
}

@media (max-width: 600px) {
	.dwu-author {
		--dwu-author-size: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwu-author__portrait,
	.fl-page .dwu-author .dwu-author__more a {
		transition: none;
	}
}

@media print {
	.dwu-author__more {
		display: none;
	}
}
