/*
 * assets/css/profile.css · Out & Down theme
 *
 * templates/page-profile.html and templates/single-gd_place.html
 * (Phase 12.5 — blueprint Section 23, outanddown-blueprint-profile-
 * split). Enqueued on the UsersWP profile page and is_singular('gd_place'),
 * after split.css (the shared aside/list layout + event card) and
 * components.css (the price pill / actions-row / toast primitives this
 * file's dialog and buttons reuse).
 *
 * Breakpoint: 1024px only, per .stylelintrc.json's allow-list. No
 * `grid-template-columns: 96px 1fr` (the fact-row split is flexbox, same
 * trap as guide.css/home.css) and no `margin-top: auto` (the contact
 * foot is pinned by split.css's `.oad-split__aside`'s own
 * `justify-content: space-between`, not by this file).
 */

/* ------------------------------------------------------------------ */
/* Avatar                                                                */
/* ------------------------------------------------------------------ */

.oad-pf-avatar {
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	box-sizing: border-box;
	border: 2px solid var(--wp--preset--color--ink);
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	display: flex;
	align-items: center;
	justify-content: center;
}

.oad-pf-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.oad-pf-avatar__initials {
	font-family: var(--wp--preset--font-family--shout);
	font-weight: 800;
	font-size: 20px;
	color: var(--wp--preset--color--white);
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Intro typography                                                     */
/* ------------------------------------------------------------------ */

.oad-pf-kicker {
	display: block;
	margin-top: var(--wp--preset--spacing--16);
	font-family: var(--wp--preset--font-family--meter);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.oad-pf-title {
	font-size: var(--wp--preset--font-size--display-l);
	line-height: 0.96;
}

.oad-pf-bio {
	font-family: var(--wp--preset--font-family--speak);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	max-width: 42ch;
}

/* ------------------------------------------------------------------ */
/* Facts (same table shape as guide.css's .oad-guide-facts, duplicated  */
/* rather than shared -- the two auxiliary asides are structurally      */
/* similar but never render at the same time, so nothing here can       */
/* drift against a template it doesn't apply to)                        */
/* ------------------------------------------------------------------ */

.oad-pf-facts {
	border-top: 2px solid var(--wp--preset--color--ink);
}

.oad-pf-facts > div {
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--wp--preset--color--ink);
}

.oad-pf-facts dt,
.oad-pf-facts dd {
	padding: 8px 0;
	font-family: var(--wp--preset--font-family--meter);
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	margin: 0;
}

.oad-pf-facts dt {
	flex: 0 0 96px;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--muted);
}

.oad-pf-facts dd {
	flex: 1;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.oad-pf-facts dd a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: underline;
}

/* A row whose value is a link gets its height from the 44px link. */
.oad-pf-facts dd:has(> a) {
	padding-top: 0;
	padding-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Contact foot                                                         */
/* ------------------------------------------------------------------ */

.oad-pf-contact {
	padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.oad-pf-contact__badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--meter);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.oad-pf-contact__claim {
	display: block;
	margin-top: var(--wp--preset--spacing--8);
	height: 44px;
	line-height: 44px;
	padding: 0 var(--wp--preset--spacing--24);
	background: var(--wp--preset--color--ground);
	border: 2px solid var(--wp--preset--color--ink);
	text-align: center;
	font-family: var(--wp--preset--font-family--shout);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition-property: background-color, color;
	transition-duration: 100ms;
}

.oad-pf-contact__claim:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.oad-pf-contact__address {
	font-family: var(--wp--preset--font-family--speak);
	font-weight: 500;
	font-size: 16px;
	font-style: normal;
	line-height: 1.4;
}

.oad-pf-contact__directions {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--meter);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Owner links                                                          */
/* ------------------------------------------------------------------ */

.oad-pf-owner-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--16);
	margin-top: var(--wp--preset--spacing--16);
}

.oad-pf-owner-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	min-width: 44px;
	font-family: var(--wp--preset--font-family--meter);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Event list · count line, Past divider                                */
/* ------------------------------------------------------------------ */

.oad-pf-count {
	font-family: var(--wp--preset--font-family--meter);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.oad-pf-count .k {
	color: var(--wp--preset--color--ink);
}

.oad-pf-past-divider {
	display: flex;
	align-items: center;
	padding: var(--wp--preset--spacing--16) 0;
	border-top: 2px solid var(--wp--preset--color--ink);
	border-bottom: 2px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--meter);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* Past cards read as Ended, whatever the event's own post_status is --
   a card that's simply in the past reads the same as one the site
   marked event-ended, per blueprint Section 23. */
.oad-pf-past-card .oad-gcard__when,
.oad-pf-past-card .oad-gcard__title a {
	color: var(--wp--preset--color--muted);
}

.oad-pf-show-more {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: var(--wp--preset--spacing--16);
	background: transparent;
	border: 2px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--shout);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition-property: background-color, color;
	transition-duration: 100ms;
}

.oad-pf-show-more:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* ------------------------------------------------------------------ */
/* Mobile                                                                */
/* ------------------------------------------------------------------ */

@media (max-width: 1023px) {
	.oad-pf-title {
		font-size: var(--wp--preset--font-size--display-l);
	}

	.oad-pf-bio {
		font-size: 16px;
	}

	.oad-pf-contact {
		padding: var(--wp--preset--spacing--24);
	}
}

/* Saved tab · Phase 15.3 (B7). Events use the profile's own card; venues
   and guides are plain hairline rows. */
.oad-favs {
	display: grid;
	gap: var(--wp--preset--spacing--24);
}

.oad-favs .oad-pf-count {
	display: block;
	padding: var(--wp--preset--spacing--16) 0;
	border-bottom: 2px solid var(--wp--preset--color--ink);
}

.oad-fav-row {
	display: block;
	min-height: 44px;
	padding: var(--wp--preset--spacing--16) 0;
	border-bottom: 2px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--shout);
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.oad-fav-row:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.oad-fav-empty {
	padding: var(--wp--preset--spacing--40) 0;
}
