/**
 * The desk under the hero on /after-sales-policy/.
 *
 * Three bands — the policy, the clocks, the cases — then one dialog that
 * files the ticket. Colours come from the theme's own variables so this page
 * cannot drift away from the rest of the shop.
 */

.vbas {
	/* The hero above dissolves into #f7f9fb. The desk starts on exactly that
	   colour and warms into the page canvas over the first screen, so the join
	   is invisible instead of a two-pixel tint change across the whole width. */
	background: linear-gradient(to bottom, #f7f9f4 0, var(--canvas, #f6f7f3) 220px);
	color: var(--ink, #222c29);
	font-family: inherit;
}

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

.vbas-wrap {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.vbas-sec { padding: clamp(56px, 7vw, 104px) 0; }

/* ---- headings ------------------------------------------------------------ */
.vbas-kicker {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--tip-muted, #64706a);
}

.vbas-h2 {
	margin: 0 0 14px;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: var(--brand, #153e35);
}

.vbas-h3 {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--brand, #153e35);
}

.vbas-lede {
	margin: 0;
	max-width: 620px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--tip-muted-ink, #64706a);
}

.vbas-head { max-width: 760px; }

/* ---- 01 · the policy ----------------------------------------------------- */
.vbas-read {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	margin-top: clamp(28px, 4vw, 48px);
	align-items: start;
}

.vbas-index {
	position: sticky;
	top: 108px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--hairline, #e4e9e3);
}

.vbas-index a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 12px 0 12px 18px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: 14px;
	font-weight: 600;
	color: var(--tip-muted-ink, #64706a);
	text-decoration: none;
	transition: color .18s, border-color .18s;
}

.vbas-index a span {
	font-size: 11px;
	letter-spacing: .12em;
	color: #9aa6a0;
}

.vbas-index a:hover,
.vbas-index a:focus-visible {
	color: var(--brand, #153e35);
	border-left-color: var(--brand, #153e35);
}

.vbas-articles { display: grid; gap: 16px; }

.vbas-art {
	position: relative;
	padding: clamp(22px, 3vw, 34px);
	background: var(--surface, #fff);
	border: 1px solid var(--hairline, #e4e9e3);
	border-radius: 20px;
	scroll-margin-top: 110px;
}

.vbas-art p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--tip-soft, #4f5b55);
}

.vbas-art p:last-child { margin-bottom: 0; }

.vbas-art__no {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--accent-ink, #8a5514);
}

.vbas-art__more a {
	font-size: 14px;
	font-weight: 600;
	color: var(--brand, #153e35);
	text-decoration: none;
	border-bottom: 1px solid rgba(21, 62, 53, .25);
}

/* ---- 02 · the clocks ----------------------------------------------------- */
.vbas-sec--band {
	background: var(--brand, #153e35);
	color: #e9f1ea;
}

.vbas-sec--band .vbas-h2 { color: #f4f9f4; }
.vbas-sec--band .vbas-kicker { color: #9dc0a6; }
.vbas-sec--band .vbas-lede { color: #c7dbcb; }

.vbas-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: clamp(28px, 4vw, 44px) 0 0;
	padding: 0;
	list-style: none;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 20px;
	overflow: hidden;
}

.vbas-step {
	padding: clamp(22px, 3vw, 32px);
	background: var(--brand, #153e35);
}

.vbas-step__tag {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brand-soft, #dce9cf);
}

.vbas-step__title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	color: #fff;
}

.vbas-step__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #bcd2c1;
}

.vbas-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 44px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.vbas-facts li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #9dc0a6;
}

.vbas-facts strong {
	font-size: 18px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 600;
	color: #fff;
}

/* ---- 03 · the cases ------------------------------------------------------ */
.vbas-cases {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: clamp(28px, 4vw, 44px) 0 0;
	padding: 0;
	list-style: none;
}

.vbas-case {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 24px 52px 24px 24px;
	text-align: left;
	background: var(--surface, #fff);
	border: 1px solid var(--hairline, #e4e9e3);
	border-radius: 18px;
	cursor: pointer;
	transition: border-color .18s, transform .18s, box-shadow .18s;
}

.vbas-case:hover,
.vbas-case:focus-visible {
	border-color: var(--brand, #153e35);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(21, 62, 53, .08);
}

.vbas-case__label {
	font-size: 17px;
	font-weight: 600;
	color: var(--brand, #153e35);
}

.vbas-case__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--tip-muted-ink, #64706a);
}

.vbas-case__go {
	position: absolute;
	right: 20px;
	top: 22px;
	font-size: 16px;
	color: var(--brand, #153e35);
	opacity: .45;
	transition: transform .18s, opacity .18s;
}

.vbas-case:hover .vbas-case__go,
.vbas-case:focus-visible .vbas-case__go {
	transform: translateX(3px);
	opacity: 1;
}

/* Five cases in a three-column grid leave one hole in the second row: the
   trailing card widens to close the row rather than sitting alone. */
.vbas-cases > li:last-child:nth-child(3n - 1) { grid-column: span 2; }

/* ---- the desk ------------------------------------------------------------ */
.vbas-cta {
	background: var(--brand-wash, #eef3e7);
	border-top: 1px solid var(--hairline, #e4e9e3);
	padding: clamp(40px, 5vw, 64px) 0;
}

.vbas-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.vbas-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.vbas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 13px 24px;
	border: 1px solid var(--brand, #153e35);
	border-radius: 999px;
	background: transparent;
	color: var(--brand, #153e35);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s, color .18s, border-color .18s;
}

.vbas-btn:hover { background: rgba(21, 62, 53, .07); }

.vbas-btn--solid {
	background: var(--brand, #153e35);
	color: #fff;
}

.vbas-btn--solid:hover { background: var(--brand-hover, #225647); }

.vbas-btn--quiet {
	border-color: transparent;
	color: var(--tip-muted-ink, #64706a);
}

.vbas-btn--wide { width: 100%; }
.vbas-btn[hidden] { display: none; }

/* ---- the dialog ---------------------------------------------------------- */
.vbas-modal {
	width: min(560px, calc(100% - 28px));
	max-height: calc(100vh - 40px);
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: var(--surface, #fff);
	color: var(--ink, #222c29);
	box-shadow: 0 30px 90px rgba(9, 30, 24, .28);
}

.vbas-modal::backdrop {
	background: rgba(12, 32, 26, .42);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.vbas-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tip-muted, #64706a);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.vbas-modal__close:hover { background: rgba(21, 62, 53, .08); }

.vbas-modal__panel { padding: clamp(24px, 4vw, 40px); }
.vbas-modal__panel[hidden] { display: none; }

.vbas-modal__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--brand, #153e35);
}

.vbas-modal__lede {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tip-muted-ink, #64706a);
}

.vbas-modal__lede strong { color: var(--brand, #153e35); }

.vbas-fields { display: grid; gap: 14px; margin-bottom: 16px; }

.vbas-field { display: block; }

.vbas-field > span {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tip-muted, #64706a);
}

.vbas-field input,
.vbas-field select,
.vbas-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfd8d1;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--ink, #222c29);
}

.vbas-field textarea { resize: vertical; min-height: 96px; }

.vbas-field input:focus,
.vbas-field select:focus,
.vbas-field textarea:focus {
	outline: 2px solid rgba(21, 62, 53, .35);
	outline-offset: 1px;
	border-color: var(--brand, #153e35);
}

.vbas-note {
	margin: 0 0 16px;
	font-size: 13px;
	color: #8a958f;
}

.vbas-err {
	margin: 0 0 14px;
	padding: 11px 14px;
	border-radius: 10px;
	background: #fdefec;
	color: #8a3a26;
	font-size: 14px;
	line-height: 1.5;
}

.vbas-err[hidden] { display: none; }

.vbas-order-items {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	border: 1px solid var(--hairline, #e4e9e3);
	border-radius: 12px;
	overflow: hidden;
}

.vbas-order-items li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 14px;
	font-size: 14px;
	border-bottom: 1px solid var(--hairline, #e4e9e3);
}

.vbas-order-items li:last-child { border-bottom: 0; }

/* The name may wrap, the quantity never does: "× 1" split over two lines reads
   like a stray bullet. */
.vbas-order-items li span:first-child { flex: 1 1 auto; min-width: 0; }

.vbas-order-items li span:last-child {
	flex: 0 0 auto;
	white-space: nowrap;
	color: var(--tip-muted-ink, #64706a);
}

.vbas-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.vbas-done {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--tip-muted-ink, #64706a);
}

.vbas .entry-content { padding: 0 0 clamp(40px, 6vw, 80px); }

body.vbas-open { overflow: hidden; }

/* ---- narrow -------------------------------------------------------------- */
@media (max-width: 900px) {
	.vbas-wrap { width: calc(100% - 32px); }
	.vbas-read { grid-template-columns: 1fr; }
	.vbas-index { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0; }
	.vbas-index a { padding: 6px 0; margin: 0; border: 0; }
	.vbas-steps { grid-template-columns: 1fr; }
	.vbas-cases { grid-template-columns: 1fr 1fr; }
	.vbas-cases > li:last-child:nth-child(2n - 1) { grid-column: span 2; }
}

@media (max-width: 620px) {
	.vbas-cases { grid-template-columns: 1fr; }
	.vbas-cases > li:last-child:nth-child(n) { grid-column: auto; }
	.vbas-cta__inner { display: block; }
	.vbas-cta__actions { margin-top: 20px; }
	.vbas-btn { width: 100%; }
	.vbas-facts { gap: 14px 28px; }
}
