/* YREC Membership Styles — v3.0 (Slate & Marigold)
 * Tokens mirror the yrec-hub theme. Prefer the theme's --yh-* custom
 * properties; fall back to v3 palette hex so the surface still renders
 * on-brand if the theme stylesheet is ever absent. */

:root {
	--yrec-card-bg:      #ffffff;
	--yrec-card-border:  var(--yh-border, #DDD6C8);
	--yrec-ink:          var(--yh-ink, #16202B);
	--yrec-ink-muted:    var(--yh-ink-muted, #4A5561);
	--yrec-ink-soft:     var(--yh-ink-soft, #7A828C);
	--yrec-orange:       var(--yh-orange, #FF8A3D);
	--yrec-navy:         var(--yh-navy, #1C3D5A);
	--yrec-cream:        var(--yh-cream, #F6F1E8);
	--yrec-cream-alt:    var(--yh-cream-alt, #EFE8DB);
	--yrec-radius:       var(--yh-radius-card, 14px);
	--yrec-shadow:       var(--yh-shadow-card, 0 2px 6px rgba(22, 32, 43, 0.04));
	--yrec-shadow-lift:  var(--yh-shadow-lift, 0 20px 40px -20px rgba(22, 32, 43, 0.25));
	--yrec-ease:         var(--yh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

/* Grids */
.yrec-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

/* Cards */
.yrec-card {
	background: var(--yrec-card-bg);
	border: 1px solid var(--yrec-card-border);
	border-radius: var(--yrec-radius);
	padding: 1.75rem;
	box-shadow: var(--yrec-shadow);
}

.yrec-card h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.125rem;
	color: var(--yrec-ink);
}

/* Card head — eyebrow + icon chip, matches dashboard action cards */
.yrec-card__head {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.25rem;
}

.yrec-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(255, 138, 61, 0.12);
	color: var(--yrec-orange);
	flex-shrink: 0;
}

.yrec-card__icon .yh-icon { stroke: currentColor; }

.yrec-card__eyebrow {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yrec-ink-muted);
}

.yrec-card__cta {
	margin-top: 1.5rem;
}

.yrec-card__note {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	color: var(--yrec-ink-soft);
}

.yrec-card__note a {
	color: var(--yrec-orange);
	font-weight: 500;
	text-decoration: none;
}

.yrec-card__note a:hover { text-decoration: underline; }

/* Status Badges */
.yrec-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.yrec-status-active {
	background: rgba(28, 61, 90, 0.10);
	color: var(--yrec-navy);
}

.yrec-status-warning {
	background: rgba(255, 138, 61, 0.16);
	color: #9a4b16;
}

.yrec-status-expired {
	background: rgba(214, 69, 69, 0.12);
	color: #a13030;
}

.yrec-status-none {
	background: var(--yrec-cream-alt);
	color: var(--yrec-ink-soft);
}

/* ===== My Account layout ===== */
.yrec-account {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.yrec-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.yrec-account-card {
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s var(--yrec-ease), transform 0.3s var(--yrec-ease);
}

.yrec-account-card:hover {
	box-shadow: var(--yrec-shadow-lift);
	transform: translateY(-2px);
}

.yrec-account-card--wide {
	grid-column: 1 / -1;
}

.yrec-account-card .yrec-card__cta {
	align-self: flex-start;
	margin-top: auto;
}

/* Definition-list detail rows */
.yrec-detail-list {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.yrec-detail-list__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--yrec-card-border);
}

.yrec-detail-list__row:first-child { padding-top: 0; }
.yrec-detail-list__row:last-child  { border-bottom: none; }

.yrec-detail-list dt {
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--yrec-ink-soft);
	margin: 0;
	flex-shrink: 0;
}

.yrec-detail-list dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
	color: var(--yrec-ink);
	word-break: break-word;
}

.yrec-account-back {
	margin: 0.5rem 0 0;
	text-align: center;
}

.yrec-account-back a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
	color: var(--yrec-ink-muted);
	text-decoration: none;
	transition: color 0.2s var(--yrec-ease);
}

.yrec-account-back a:hover { color: var(--yrec-orange); }
.yrec-account-back .yh-icon { stroke: currentColor; }

.yrec-empty {
	margin: 0;
	color: var(--yrec-ink-soft);
	font-size: 0.9rem;
}

/* Quick Links */
.yrec-quick-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.yrec-quick-links li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--yrec-card-border);
}

.yrec-quick-links li:last-child {
	border-bottom: none;
}

.yrec-quick-links a {
	text-decoration: none;
	color: var(--yrec-ink);
	font-weight: 500;
	transition: color 0.2s var(--yrec-ease);
}

.yrec-quick-links a:hover {
	color: var(--yrec-orange);
}

/* Meta text */
.yrec-meta {
	color: var(--yrec-ink-soft);
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* Tables */
.yrec-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0;
}

.yrec-table th,
.yrec-table td {
	padding: 0.7rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--yrec-card-border);
	font-size: 0.875rem;
}

.yrec-table thead th {
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yrec-ink-soft);
}

.yrec-table tbody tr:last-child td { border-bottom: none; }

.yrec-table td { color: var(--yrec-ink); }

/* Notices */
.yrec-notice {
	padding: 1rem 1.5rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
}

.yrec-notice-success {
	background: var(--yh-success-bg, rgba(28, 61, 90, 0.06));
	color: var(--yrec-navy);
	border: 1px solid rgba(28, 61, 90, 0.18);
}

/* Gate message */
.yrec-gate-message {
	max-width: 500px;
	margin: 2rem auto;
}

.yrec-gate-inline {
	background: var(--yrec-cream);
	padding: 1rem 1.5rem;
	border-radius: 12px;
	border-left: 4px solid var(--yrec-orange);
	margin: 1rem 0;
}

/* Directory Grid */
.yrec-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.yrec-directory-card h3 {
	margin-bottom: 0.25rem;
}

.yrec-industry-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--yrec-orange);
	margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 600px) {
	.yrec-dashboard-grid,
	.yrec-account-grid,
	.yrec-directory-grid {
		grid-template-columns: 1fr;
	}

	.yrec-card { padding: 1.5rem; }

	.yrec-detail-list__row {
		flex-direction: column;
		gap: 0.2rem;
		align-items: flex-start;
	}

	.yrec-detail-list dd { text-align: left; }
}

/* === Join / register surface (/yrec/join/ → /membership/?join=…) ===
 * Mirrors the checkout-success hero (cream band, orange glow, clamp display
 * title with italic accent) so the pre-payment and post-payment surfaces read
 * as one flow. Form fields inherit the shared .yh-field styling from the theme.
 */
.yh-join__hero {
	background: var(--yrec-cream);
	padding: 100px 40px 120px;
	position: relative;
	overflow: hidden;
}
.yh-join__glow {
	position: absolute;
	top: -120px;
	left: -120px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 70%);
	pointer-events: none;
}
.yh-join__wrap {
	max-width: 980px;
	margin: 0 auto;
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}
.yh-join__title {
	font-family: var(--yh-font-display, var(--wp--preset--font-family--geist));
	font-size: clamp(40px, 4.6vw, 64px);
	font-weight: 500;
	letter-spacing: -0.032em;
	line-height: 1.0;
	margin: 14px 0 0;
	color: var(--yrec-ink);
}
.yh-join__title em {
	font-style: italic;
	color: var(--yrec-orange);
}
.yh-join__lede {
	font-size: 18px;
	color: var(--yrec-ink-muted);
	max-width: 460px;
	line-height: 1.55;
	margin: 20px 0 0;
}

.yh-join__card {
	background: var(--yrec-card-bg);
	border: 1px solid var(--yrec-card-border);
	border-radius: var(--yrec-radius);
	box-shadow: var(--yrec-shadow-lift);
	padding: 36px;
}
.yh-join__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
/* Honeypot — visually removed, kept in the a11y/DOM flow for bots. */
.yh-join__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.yh-join__status {
	margin: 4px 0 0;
	font-size: 14.5px;
	line-height: 1.5;
	min-height: 1.2em;
}
.yh-join__status:empty { margin: 0; min-height: 0; }
.yh-join__status.is-error { color: #B4422A; }
.yh-join__status.is-success { color: var(--yrec-navy); }
.yh-join__status a { color: var(--yrec-navy); font-weight: 500; }
.yh-join__status a:hover { color: var(--yrec-orange); }

.yh-join__submit {
	width: 100%;
	margin-top: 8px;
}
.yh-join__login {
	margin: 18px 0 0;
	font-size: 14.5px;
	color: var(--yrec-ink-muted);
	text-align: center;
}
.yh-join__login a { color: var(--yrec-navy); font-weight: 500; text-decoration: none; }
.yh-join__login a:hover { color: var(--yrec-orange); }

@media (max-width: 860px) {
	.yh-join__hero { padding: 72px 24px 88px; }
	.yh-join__wrap {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.yh-join__card { padding: 28px; }
}
@media (max-width: 480px) {
	.yh-join__row { grid-template-columns: 1fr; }
}
