/**
 * DeerTexas — Member Experience
 * Built on the --dt-acct-* tokens already defined on production (the same set
 * that styles the MemberPress account UI), so HOME reads as part of the account
 * system rather than a bolted-on page. Fallbacks on every var().
 */

.dtx-welcome,
.dtx-ty {
	--m-surface:  var(--dt-acct-surface, #fffefb);
	--m-ink:      var(--dt-acct-ink, #1b1b1b);
	--m-body:     var(--dt-acct-body, #575757);
	--m-muted:    var(--dt-acct-muted, #8d8d8d);
	--m-line:     var(--dt-acct-line, #d7d7d2);
	--m-soft:     var(--dt-acct-line-soft, #ecebe6);
	--m-gold:     var(--dt-acct-gold, #e8c33c);
	--m-gold-dp:  var(--dt-acct-gold-deep, #cfa724);
	--m-gold-ink: var(--dt-acct-gold-ink, #8a6a0c);
	--m-radius:   var(--dt-acct-radius, 12px);
	--m-field-h:  var(--dt-acct-field-h, 48px);
}

/* ---------- header ---------- */
.dtx-welcome__header {
	padding: 0 0 22px;
	border-bottom: 1px solid var(--m-soft);
	margin-bottom: 26px;
}

.dtx-welcome__title {
	font-size: 27px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--m-ink);
	margin: 0 0 10px;
	text-transform: none;
}

.dtx-welcome__lead {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--m-body);
	margin: 0;
	max-width: 62ch;
}

.dtx-welcome__section { margin: 0 0 30px; }

.dtx-welcome__h2 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--m-muted);
	margin: 0 0 14px;
}

/* ---------- action cards ---------- */
.dtx-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
	gap: 14px;
}

.dtx-card {
	position: relative;
	display: block;
	padding: 20px 46px 20px 20px;
	background: var(--m-surface);
	border: 1px solid var(--m-soft);
	border-radius: var(--m-radius);
	text-decoration: none;
	box-shadow: var(--dt-shadow, 0 1px 2px rgba(0,0,0,.03), 0 10px 30px -18px rgba(0,0,0,.35));
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dtx-card:hover,
.dtx-card:focus-visible {
	border-color: var(--m-gold-dp);
	box-shadow: var(--dt-shadow-hover, 0 2px 4px rgba(0,0,0,.05), 0 18px 40px -20px rgba(0,0,0,.45));
	transform: translateY(-1px);
}

.dtx-card:focus-visible {
	outline: 2px solid var(--m-gold-dp);
	outline-offset: 2px;
}

/**
 * Restore the card's own typography.
 *
 * Salient Theme Options > Custom CSS carries an AWPCP browse-page rule keyed on
 * the link's href rather than on a class:
 *
 *     body .main-content a[href*="search-ads"] {
 *         font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
 *     }
 *
 * "Search Listings" is the only one of the four cards whose href contains
 * `search-ads`, so that rule matched it alone — which is why just that title
 * rendered as SEARCH LISTINGS with extra tracking. text-transform and
 * letter-spacing are the only two of the three that reach the card's spans
 * (both child spans already declare their own font-size).
 *
 * That selector's specificity is (0,2,2), so this one is (0,3,1) — it wins on
 * specificity rather than on source order, and without !important. It applies
 * to all four cards equally; it is not a patch on the one card.
 *
 * The rule's SOURCE should also be scoped so it stops leaking off the AWPCP
 * browse pages. That lives in Salient Custom CSS, not in this plugin — see the
 * deploy notes for the exact edit.
 */
.dtx-welcome .dtx-cards a.dtx-card {
	text-transform: none;
	letter-spacing: normal;
}

.dtx-card__title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--m-ink) !important;
	margin-bottom: 5px;
}

.dtx-card__desc {
	display: block;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--m-body) !important;
}

.dtx-card__go {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: var(--m-gold-dp);
	transition: transform .15s ease;
}

.dtx-card:hover .dtx-card__go { transform: translateY(-50%) translateX(3px); }

/* ---------- Scott's tips ---------- */
.dtx-tips {
	background: var(--m-surface);
	border: 1px solid var(--m-soft);
	border-left: 3px solid var(--m-gold);
	border-radius: var(--m-radius);
	padding: 20px 24px;
}

.dtx-tips .dtx-welcome__h2 { margin-bottom: 10px; }

/**
 * `list-style: none` on the UL alone does not remove the marker here: Salient's
 * style.css sets `ul li { list-style: disc; list-style-position: outside }`,
 * and a declaration matching the LI itself beats an inherited one from the UL.
 * That produced two markers per tip — Salient's disc plus our gold ::before.
 * The reset therefore has to name the LI. Scoped to this list only; no other
 * list on the site is touched.
 */
.dtx-tips__list { margin: 0; padding: 0; list-style: none; }

.dtx-tips__list li {
	list-style: none;
	position: relative;
	padding-left: 17px;
	margin: 0 0 10px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--m-body);
	max-width: 68ch;
}

.dtx-tips__list li:last-child { margin-bottom: 0; }

.dtx-tips__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--m-gold-dp);
}

/* ---------- manage membership ---------- */
.dtx-manage { margin: 0; padding: 0; list-style: none; }

.dtx-manage__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--m-soft);
}

.dtx-manage__item:last-child { border-bottom: 0; }

.dtx-manage__link {
	flex: 0 0 132px;
	font-size: 14.5px;
	font-weight: 650;
	color: var(--m-ink) !important;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.dtx-manage__link:hover { border-bottom-color: var(--m-gold-dp); }

.dtx-manage__desc {
	flex: 1 1 260px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--m-body);
}

/* ---------- closing ---------- */
.dtx-welcome__closing {
	border-top: 1px solid var(--m-soft);
	padding-top: 20px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--m-body);
	max-width: 68ch;
}

.dtx-welcome__closing p { margin: 0 0 10px; }

.dtx-welcome__sig {
	font-weight: 700;
	color: var(--m-ink);
	margin-top: 4px !important;
}

/* ---------- thank you ---------- */
.dtx-ty {
	background: var(--m-surface);
	border: 1px solid var(--m-soft);
	border-radius: var(--m-radius);
	padding: 26px 28px;
	margin: 0 0 24px;
	max-width: 68ch;
}

.dtx-ty__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--m-ink);
	margin: 0 0 10px;
	text-transform: none;
}

.dtx-ty__lead,
.dtx-ty__body {
	font-size: 15px;
	line-height: 1.6;
	color: var(--m-body);
	margin: 0 0 12px;
}

.dtx-ty__cta-wrap { margin: 18px 0; }

.dtx-ty__cta {
	display: inline-block;
	min-height: var(--m-field-h);
	line-height: var(--m-field-h);
	padding: 0 28px;
	font-size: 15px;
	font-weight: 700;
	color: var(--m-gold-ink) !important;
	background: var(--m-gold);
	border: 1px solid var(--m-gold-dp);
	border-radius: 7px;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}

.dtx-ty__cta:hover { background: var(--m-gold-dp); transform: translateY(-1px); }

.dtx-ty__cta:focus-visible { outline: 2px solid var(--m-gold-dp); outline-offset: 3px; }

.dtx-ty__sig { font-weight: 700; color: var(--m-ink); margin: 0; }

/* ---------- account nav (override template) ---------- */
.dtx-account-nav .mepr-nav-item a { text-transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 690px) {
	.dtx-welcome__title { font-size: 22px; }
	.dtx-cards { grid-template-columns: 1fr; }
	.dtx-card { padding: 17px 42px 17px 17px; }
	.dtx-tips { padding: 17px 18px; }
	.dtx-manage__link { flex: 1 1 100%; }
	.dtx-manage__desc { flex: 1 1 100%; }
	.dtx-ty { padding: 20px 18px; }
	.dtx-ty__cta { display: block; text-align: center; padding: 0 16px; }
}
