/**
 * The Bench
 * ---------------------------------------------------------------------------
 * Vividly in Love is a light brand. This is the one approved exception, signed
 * off on 29 August 2026: the men's corner is the same house with the lights
 * lower. Every colour below comes from the brand palette in CLAUDE.md.
 *
 *   Ground        Prussian Blue #003049, deepened to #00212F
 *   Text          Papaya Whip   #FDF0D5
 *   Accent        Vivid Crimson #D6003D, lifted to #FF4A6E for contrast on dark
 *   Data          Air Blue      #669BBC
 *
 * Contrast on the deepened ground, computed 29 August 2026 (WCAG 2.1):
 *   #FDF0D5 on #00212F   14.78:1   body text
 *   #A8C2CE on #00212F    8.96:1   secondary text
 *   #669BBC on #00212F    5.55:1   data labels
 *   #FF4A6E on #00212F    5.13:1   accent text at normal size
 *   #6E8D9C on #00212F    4.73:1   small uppercase labels, passes AA
 *   #FFFFFF on #D6003D    5.35:1   the button
 *
 * Note: Vivid Crimson #D6003D reaches only 3.12:1 on this ground, so it is
 * never used for text here. It stays as the button fill, where white sits on
 * top of it at 5.35:1. Accent TEXT uses #FF4A6E, the same hue lifted.
 *
 * The section is full bleed so it reads as a different room, while the theme
 * header and footer stay light around it.
 * ---------------------------------------------------------------------------
 */

.vil-dw {
	--dw-ground: #00212F;
	--dw-surface: #052D3E;
	--dw-surface-2: #0A394D;
	--dw-ink: #FDF0D5;
	--dw-ink-soft: #A8C2CE;
	--dw-ink-faint: #6E8D9C;
	--dw-rule: #134156;
	--dw-accent: #FF4A6E;
	--dw-accent-deep: #D6003D;
	--dw-accent-soft: #3A0F1D;
	--dw-data: #669BBC;
	--dw-data-soft: #123B4F;

	/* Full bleed out of the theme's content column. */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;

	background: var(--dw-ground);
	color: var(--dw-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.vil-dw *,
.vil-dw *::before,
.vil-dw *::after {
	box-sizing: border-box;
}

.vil-dw-inner {
	max-width: 34rem;
	margin: 0 auto;
	padding: 40px 20px 72px;
}

/* --- masthead --- */

.vil-dw-mast {
	padding-bottom: 26px;
	border-bottom: 1px solid var(--dw-rule);
}

.vil-dw-kicker {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--dw-ink-faint);
}

.vil-dw .vil-dw-title {
	margin: 0;
	font-size: clamp(30px, 8vw, 44px);
	line-height: 1.04;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--dw-ink);
	text-wrap: balance;
}

.vil-dw-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 20px 0 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dw-ink-faint);
}

.vil-dw-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--dw-rule);
}

.vil-dw-streak {
	margin-left: auto;
	padding: 5px 11px;
	border: 1px solid var(--dw-rule);
	border-radius: 99px;
	letter-spacing: 0.06em;
	color: var(--dw-ink-soft);
}

.vil-dw-streak b {
	color: var(--dw-accent);
	font-variant-numeric: tabular-nums;
}

/* --- the rail of beats --- */

.vil-dw-beats {
	position: relative;
}

.vil-dw-beats::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 34px;
	bottom: 34px;
	width: 2px;
	background: var(--dw-rule);
	z-index: 0;
}

.vil-dw-beat {
	position: relative;
	z-index: 1;
	padding: 32px 0 32px 46px;
}

.vil-dw-num {
	position: absolute;
	left: 0;
	top: 34px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--dw-rule);
	border-radius: 50%;
	background: var(--dw-ground);
	color: var(--dw-ink-faint);
	font-size: 11px;
	font-weight: 700;
	transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.vil-dw-beat.is-on .vil-dw-num {
	border-color: var(--dw-accent);
	color: var(--dw-accent);
}

.vil-dw-beat.is-done .vil-dw-num {
	border-color: var(--dw-accent);
	background: var(--dw-accent);
	color: var(--dw-ground);
}

.vil-dw-eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dw-ink-faint);
}

.vil-dw-beat.is-on .vil-dw-eyebrow,
.vil-dw-beat.is-done .vil-dw-eyebrow {
	color: var(--dw-accent);
}

/*
 * Locked beats. Only ever applied by JavaScript, so a man without it reads the
 * whole rep rather than a page of greyed-out boxes.
 */
.vil-dw-beat.is-locked {
	opacity: 0.3;
	filter: saturate(0.2);
}

.vil-dw-beat.is-locked .vil-dw-card,
.vil-dw-beat.is-locked .vil-dw-rep {
	pointer-events: none;
}

/* --- Joshua's own words --- */

.vil-dw-voice {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.62;
	color: var(--dw-ink);
}

.vil-dw-voice p {
	margin: 0 0 1.05em;
}

.vil-dw-voice p:last-child {
	margin-bottom: 0;
}

.vil-dw-sig {
	margin: 20px 0 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dw-ink-faint);
}

/* --- cards and controls --- */

.vil-dw-card {
	padding: 20px;
	background: var(--dw-surface);
	border: 1px solid var(--dw-rule);
	border-radius: 4px;
}

.vil-dw-q {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: var(--dw-ink);
}

.vil-dw-q-sm {
	font-size: 19px;
}

.vil-dw-qsub {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--dw-ink-faint);
}

.vil-dw-rule {
	margin: 22px 0 18px;
	border: 0;
	border-top: 1px solid var(--dw-rule);
}

.vil-dw-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vil-dw-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 13px 15px;
	text-align: left;
	font: inherit;
	color: var(--dw-ink);
	background: transparent;
	border: 1px solid var(--dw-rule);
	border-radius: 3px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.08s;
}

.vil-dw-opt:hover {
	border-color: var(--dw-data);
	background: var(--dw-surface-2);
}

.vil-dw-opt:active {
	transform: translateY(1px);
}

.vil-dw-key {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--dw-rule);
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	color: var(--dw-ink-faint);
}

.vil-dw-opt[aria-pressed="true"] {
	border-color: var(--dw-accent);
	background: var(--dw-accent-soft);
}

.vil-dw-opt[aria-pressed="true"] .vil-dw-key {
	background: var(--dw-accent);
	border-color: var(--dw-accent);
	color: var(--dw-ground);
}

.vil-dw button:focus-visible,
.vil-dw input:focus-visible {
	outline: 2px solid var(--dw-accent);
	outline-offset: 2px;
}

/* --- guess the room --- */

.vil-dw-guessnum {
	margin: 6px 0 0;
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--dw-accent);
	font-variant-numeric: tabular-nums;
}

.vil-dw input[type="range"] {
	width: 100%;
	margin: 10px 0 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
}

.vil-dw input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 99px;
	background: var(--dw-data-soft);
}

.vil-dw input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 99px;
	background: var(--dw-data-soft);
}

.vil-dw input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	margin-top: -10px;
	border: 3px solid var(--dw-surface);
	border-radius: 50%;
	background: var(--dw-accent);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.vil-dw input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 3px solid var(--dw-surface);
	border-radius: 50%;
	background: var(--dw-accent);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.vil-dw-scale {
	display: flex;
	justify-content: space-between;
	margin: 2px 0 0;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--dw-ink-faint);
}

.vil-dw-btn {
	display: block;
	width: 100%;
	margin: 18px 0 0;
	padding: 14px 20px;
	font: inherit;
	font-weight: 600;
	color: #FFFFFF;
	background: var(--dw-accent-deep);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	transition: filter 0.15s, transform 0.08s;
}

.vil-dw-btn:hover {
	filter: brightness(1.15);
}

.vil-dw-btn:active {
	transform: translateY(1px);
}

.vil-dw-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.vil-dw-btn-inline {
	display: inline-block;
	width: auto;
	margin: 0;
}

/* --- the room --- */

.vil-dw-verdict {
	margin: 0 0 20px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	line-height: 1.45;
	text-wrap: balance;
	color: var(--dw-ink);
}

.vil-dw-verdict b {
	font-weight: 600;
	font-style: normal;
	color: var(--dw-accent);
}

.vil-dw-bars {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.vil-dw-lab {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 5px;
	font-size: 14px;
	color: var(--dw-ink-soft);
}

.vil-dw-lab b {
	font-weight: 600;
	color: var(--dw-ink);
	font-variant-numeric: tabular-nums;
}

.vil-dw-track {
	height: 9px;
	background: var(--dw-data-soft);
	border-radius: 99px;
	overflow: hidden;
}

.vil-dw-fill {
	height: 100%;
	width: 0;
	background: var(--dw-data);
	border-radius: 99px;
	transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.vil-dw-bar.is-mine .vil-dw-lab b,
.vil-dw-bar.is-mine .vil-dw-lab span {
	color: var(--dw-accent);
}

.vil-dw-bar.is-mine .vil-dw-fill {
	background: var(--dw-accent);
}

.vil-dw-youmark {
	margin-left: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dw-accent);
}

.vil-dw-privacy {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--dw-rule);
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--dw-ink-faint);
}

/* --- scripture --- */

.vil-dw .vil-dw-scripture {
	margin: 26px 0 0;
	padding: 2px 0 2px 18px;
	border-left: 2px solid var(--dw-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 18px;
	line-height: 1.5;
	color: var(--dw-ink-soft);
	background: none;
}

.vil-dw-scripture cite {
	display: block;
	margin-top: 10px;
	font-style: normal;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dw-ink-faint);
}

.vil-dw-landing {
	margin: 18px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	color: var(--dw-ink);
}

/* --- the rep --- */

.vil-dw-rep {
	padding: 22px;
	border: 2px solid var(--dw-accent);
	border-radius: 4px;
	background: var(--dw-surface);
}

.vil-dw .vil-dw-rep h3 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dw-accent);
}

.vil-dw-task {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.5;
}

.vil-dw-task p {
	margin: 0 0 0.5em;
}

.vil-dw-task p:last-child {
	margin-bottom: 0;
}

.vil-dw-small {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--dw-ink-soft);
}

.vil-dw-doneline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 20px 0 0;
}

.vil-dw-count {
	font-size: 13px;
	color: var(--dw-ink-faint);
}

.vil-dw-count b {
	color: var(--dw-ink);
	font-variant-numeric: tabular-nums;
}

.vil-dw-doneflag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dw-accent);
}

.vil-dw-error {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--dw-accent);
}

/* --- footer --- */

.vil-dw-foot {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--dw-rule);
	font-size: 13px;
	line-height: 1.6;
	color: var(--dw-ink-faint);
}

.vil-dw-foot p {
	margin: 0 0 10px;
}

.vil-dw-foot a {
	color: var(--dw-data);
}

/* --- small screens --- */

@media (max-width: 420px) {
	.vil-dw {
		font-size: 16px;
	}

	.vil-dw-voice {
		font-size: 18.5px;
	}

	.vil-dw-beat {
		padding-left: 38px;
	}

	.vil-dw-beats::before {
		left: 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vil-dw *,
	.vil-dw *::before,
	.vil-dw *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
 * THE DOORWAY: the /driveway/ archive
 *
 * Injected into the theme's own title band via get_the_archive_description, so
 * there is no template override and nothing here depends on Kadence. It reuses
 * the .vil-dw variables and full bleed, which is why the archive is a dark band
 * with the ordinary light index underneath: the site is light, this room is not,
 * and the archive is the threshold between them.
 * ---------------------------------------------------------------------- */

.vil-dw-doorway .vil-dw-inner {
	padding: 38px 20px 42px;
	text-align: left;
}

.vil-dw-door-tag {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: clamp(24px, 6vw, 34px);
	line-height: 1.2;
	color: var(--dw-ink);
	text-wrap: balance;
}

.vil-dw-door-lede {
	max-width: 34rem;
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--dw-ink-soft);
}

.vil-dw-door-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 26px 0 0;
}

.vil-dw-door-cta .vil-dw-btn {
	text-decoration: none;
	line-height: 1.2;
}

.vil-dw-door-sub {
	font-size: 14px;
	font-style: italic;
	font-family: Georgia, "Times New Roman", serif;
	color: var(--dw-ink-faint);
}

.vil-dw-doorway .vil-dw-door-scripture {
	max-width: 34rem;
	margin: 30px 0 0;
	font-size: 17px;
}

.vil-dw-door-note {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--dw-ink);
}

/* The index cards below the band stay in the theme's light styling. Only this
   one line is ours, so a card says which rep and which arc it belongs to. */

.vil-dw-card-meta {
	display: block;
	margin-bottom: 6px;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #7A8F99;
}

.vil-dw-card-meta a {
	color: #003049;
	text-decoration: none;
	border-bottom: 1px solid #D9C7A4;
}

.vil-dw-card-meta a:hover {
	border-bottom-color: #D6003D;
}

.vil-dw-card-meta em {
	font-style: normal;
	color: #D9C7A4;
}
