/**
 * Only what the verdict needs.
 *
 * Everything else on this page — the hero, the cards, the gate, the inputs,
 * the buttons — is the site's own stylesheet doing its job. Adding a second
 * set of rules for those would be how the tools start to drift apart.
 *
 * The values below are not guesses at the site's variables: they are the
 * computed values read off the live inputs on this very page, so a select
 * sits beside a text field without announcing that someone else built it.
 */

/* ---- the hero's three facts ------------------------------------------
   The site's own facts row expects different markup, so it falls back to
   display:block and the label runs into its caption. Laid out here. */

.dwe-hero--tool .dwe-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 36px;
	margin-top: 26px;
}

.dwe-hero--tool .dwe-hero__facts > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dwe-hero--tool .dwe-hero__facts strong {
	font-family: Archivo, system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.2;
	color: #fff;
}

.dwe-hero--tool .dwe-hero__facts span {
	font-size: 13.5px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .62);
}

/* ---- a select that matches the text fields next to it ---------------- */

.dwe-tool__f select {
	width: 100%;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	padding: 11px 36px 11px 13px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 10px;
	background-color: rgba(255, 255, 255, .043);
	color: #fff;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	background-size: 11px;
}

.dwe-tool__f select:focus {
	outline: none;
	border-color: rgba(255, 255, 255, .4);
}

/* the dropdown list itself is drawn by the operating system, and on most
   of them it ignores the control's colours unless told twice */
.dwe-tool__f select option {
	background: #1a1c2e;
	color: #fff;
}

/* ---- the verdict ----------------------------------------------------- */

.dwe-audit__result {
	margin: 22px 0 0;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, .03);
}

.dwe-audit__head {
	padding: 12px 18px;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .04);
}

.dwe-audit__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 16px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	/* the verdict colour reads down the left edge, so the eye finds the
	   problem rows before it reads a single word */
	border-left: 3px solid transparent;
	align-items: baseline;
}

.dwe-audit__row:last-of-type { border-bottom: 0; }

.dwe-audit__label {
	font-weight: 600;
	color: #fff;
}

.dwe-audit__value {
	font-family: Archivo, system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(20px, 3vw, 26px);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: #fff;
}

.dwe-audit__note {
	grid-column: 1 / -1;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .62);
}

.dwe-audit__note b { color: #fff; font-weight: 600; }

.dwe-audit__row--good { border-left-color: #34d399; }
.dwe-audit__row--warn { border-left-color: #fbbf24; }
.dwe-audit__row--bad  { border-left-color: #f87171; }
.dwe-audit__row--flat { border-left-color: rgba(255, 255, 255, .15); }

.dwe-audit__row--good .dwe-audit__value { color: #34d399; }
.dwe-audit__row--bad  .dwe-audit__value { color: #f87171; }

/* the line the whole tool exists to produce */
.dwe-audit__advice {
	padding: 18px;
	font-size: 15.5px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .8);
	background: rgba(255, 255, 255, .05);
	border-top: 2px solid #f0b429;
}

.dwe-audit__advice b { color: #fff; font-weight: 700; }

@media (max-width: 560px) {
	.dwe-audit__row { grid-template-columns: 1fr; }
	.dwe-audit__value { text-align: left; }
}

/* ---- the YouTube link box -------------------------------------------- */

.dwe-yt {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px 14px;
	align-items: end;
	padding: 16px;
	margin: 0 0 22px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 14px;
	background: rgba(255, 255, 255, .03);
}

.dwe-yt__field { margin: 0; }

.dwe-yt #dwe_a_ytmsg,
.dwe-yt .dwe-yt__note { grid-column: 1 / -1; margin: 0; }

.dwe-yt #dwe_a_ytmsg:empty { display: none; }

.dwe-yt .dwe-yt__note { font-size: 13px; line-height: 1.6; }

.dwe-yt button[disabled] { opacity: .55; pointer-events: none; }

@media (max-width: 620px) {
	.dwe-yt { grid-template-columns: 1fr; }
}
