/**
 * Market Trends Reports — styles for template-market-trends.php.
 *
 * Loaded after rb26-core.css, which supplies the tokens and the button
 * component this file reuses rather than restyles.
 *
 * Every selector here is prefixed with `.rb26 `, and that is not stylistic.
 * rb26-core.css resets the elements this form is built from —
 * `.rb26 p, .rb26 h1..h3, .rb26 ul { margin: 0; padding: 0 }` — and one
 * class plus an element (0,1,1) outranks a single class (0,1,0) no matter
 * which file loads last. Unprefixed, every margin below silently computed
 * to 0 and the form rendered with no vertical rhythm at all. Verified in
 * Chromium via getComputedStyle, not by reading the cascade.
 */

/* Gate ------------------------------------------------------------------- */
.rb26 .rb26-reports-gate {
	max-width: 680px;
	margin: 0 auto;
}
.rb26 .rb26-reports-gate-intro {
	margin-bottom: 32px;
	text-align: center;
}
.rb26 .rb26-reports-gate-intro p {
	margin-top: 12px;
	color: var(--rb-body);
}

.rb26 .rb26-reports-form {
	background: var(--rb-tint);
	border: 1px solid var(--rb-hairline);
	border-radius: var(--rb-radius);
	padding: clamp(24px, 4vw, 40px);
}

/* Two fields side by side above 620px, stacked below. Deliberately not a
   media query on the form itself: the form is also narrow inside the page
   shell on a tablet, where viewport width alone would give the wrong
   answer. */
.rb26 .rb26-reports-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 20px;
}

.rb26 .rb26-reports-field {
	margin: 0 0 20px;
}
.rb26 .rb26-reports-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--rb-ink);
	margin-bottom: 6px;
}
.rb26 .rb26-reports-opt {
	font-weight: 400;
	color: var(--rb-body);
}
.rb26 .rb26-reports-field input {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	color: var(--rb-ink);
	background: var(--rb-white);
	border: 1px solid var(--rb-hairline);
	border-radius: 8px;
	transition: border-color 0.15s var(--rb-ease), box-shadow 0.15s var(--rb-ease);
}
.rb26 .rb26-reports-field input:focus {
	outline: none;
	border-color: var(--rb-medium-blue);
	box-shadow: 0 0 0 3px rgba(33, 184, 242, 0.18);
}
/* :user-invalid, not :invalid — :invalid styles a required field red the
   moment the page loads, before anyone has typed anything. */
.rb26 .rb26-reports-field input:user-invalid {
	border-color: var(--rb-red);
}

.rb26 .rb26-reports-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
}
.rb26 .rb26-reports-consent input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	/* No nudge: flex-start already lines the box up with the label text
	   beside it. The 2.5px optical offset that was here sat it visibly high
	   against the rendered 14px label. */
	margin: 0;
}
.rb26 .rb26-reports-consent label {
	color: var(--rb-body);
}

/* The submit sits between the consent line and the privacy note, so it needs
   room on both sides or it reads as attached to whichever is closer. */
.rb26 .rb26-reports-submit {
	margin: 15px 0;
}
.rb26 .rb26-reports-privacy {
	margin: 24px 0 0;
	font-size: 13px;
	color: var(--rb-body);
}
.rb26 .rb26-reports-privacy a {
	color: var(--rb-dark-blue);
	text-decoration: underline;
}

.rb26 .rb26-reports-error {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 8px;
	background: rgba(201, 1, 7, 0.08);
	border: 1px solid rgba(201, 1, 7, 0.25);
	color: var(--rb-red);
	font-size: 14px;
}

/* The honeypot must be unreachable for people but present for bots, so it is
   moved off-screen rather than display:none — some bots skip hidden inputs. */
.rb26 .rb26-reports-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Granted state ---------------------------------------------------------- */
.rb26 .rb26-reports-granted {
	max-width: 760px;
	margin: 0 auto;
}
.rb26 .rb26-reports-note {
	margin: 12px 0 32px;
	color: var(--rb-body);
}
.rb26 .rb26-reports-region {
	margin: 32px 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--rb-ink);
}
.rb26 .rb26-reports-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.rb26 .rb26-reports-dl {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var(--rb-white);
	border: 1px solid var(--rb-hairline);
	border-radius: 10px;
	color: var(--rb-ink);
	font-weight: 600;
	transition: border-color 0.15s var(--rb-ease), box-shadow 0.15s var(--rb-ease);
}
.rb26 .rb26-reports-dl:hover {
	border-color: var(--rb-medium-blue);
	box-shadow: var(--rb-shadow);
}
.rb26 .rb26-reports-dl:focus-visible {
	outline: 2px solid var(--rb-medium-blue);
	outline-offset: 2px;
}
.rb26 .rb26-reports-dl-meta {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--rb-body);
}
