/* Rental Guide & Tips page – premium layout (scoped to body.crc-guide-page). */
body.crc-guide-page {
	--g-navy: #0B1B3F;
	--g-blue: #1D4ED8;
	--g-orange: #F97316;
	--g-line: #E6EAF2;
	--g-soft: #F5F7FB;
	--g-muted: #5B6578;
	--g-shadow: 0 1px 2px rgba(11, 27, 63, .04), 0 10px 28px rgba(11, 27, 63, .07);
}

/* ---------- Hero ---------- */
body.crc-guide-page .wp-block-post-content > h1.wp-block-heading {
	font-size: clamp(34px, 4.6vw, 56px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.05;
	max-width: 900px;
	margin-bottom: 10px;
	text-wrap: balance;
}
body.crc-guide-page .crc-guide-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--g-muted);
}
body.crc-guide-page .crc-guide-meta span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #E8F7EE;
	color: #166534;
}
body.crc-guide-page .crc-guide-meta span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }

/* Intro: readable measure, lead paragraph */
body.crc-guide-page .crc-guide-meta + .wp-block-group p {
	max-width: 78ch;
	font-size: 16.5px;
	line-height: 1.75;
	color: #374151;
}
body.crc-guide-page .crc-guide-meta + .wp-block-group p:first-child {
	font-size: 19px;
	line-height: 1.6;
	color: var(--g-navy);
}

/* ---------- At a glance ---------- */
.crc-glance {
	margin: 36px auto 8px;
	padding: 28px;
	border-radius: 24px;
	background: linear-gradient(135deg, #0B1B3F 0%, #13306E 100%);
	color: #fff;
	box-shadow: 0 20px 50px rgba(11, 27, 63, .22);
	max-width: var(--wp--style--global--wide-size, 1280px);
}
.crc-glance__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.crc-glance__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FDBA74; }
.crc-glance__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: #fff !important; }
.crc-glance__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crc-glance__item {
	display: grid;
	grid-template-columns: 44px 1fr;
	grid-template-rows: auto auto auto;
	column-gap: 12px;
	padding: 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
	transition: background-color .2s ease, transform .2s ease;
}
.crc-glance__item:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.crc-glance__icon { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 22px; }
.crc-glance__label { font-size: 13px; font-weight: 700; color: #C9D3E6; }
.crc-glance__value { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.crc-glance__note { font-size: 13px; color: #AFC0DE; line-height: 1.4; }
.crc-glance__src { margin: 16px 0 0; font-size: 12.5px; color: #AFC0DE; }
.crc-glance__src a { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Section rhythm ---------- */
body.crc-guide-page .wp-block-post-content > .wp-block-group { scroll-margin-top: 120px; }
body.crc-guide-page .wp-block-post-content h2.wp-block-heading { letter-spacing: -.02em; text-wrap: balance; }

/* Tips cards (numbered) */
body.crc-guide-page .booking-advice-grid > .wp-block-group {
	border-radius: 18px;
	box-shadow: var(--g-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}
body.crc-guide-page .booking-advice-grid > .wp-block-group:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(11, 27, 63, .06), 0 18px 40px rgba(11, 27, 63, .12); }

/* Important information: two-column cards */
body.crc-guide-page .list-with-icons {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px !important;
	background: transparent !important;
	padding: 0 !important;
}
body.crc-guide-page .list-with-icons > .wp-block-group {
	margin: 0 !important;
	padding: 22px !important;
	background: #fff;
	border: 1px solid var(--g-line) !important;
	border-radius: 18px;
	box-shadow: var(--g-shadow);
	align-content: start;
	justify-content: flex-start !important;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
body.crc-guide-page .list-with-icons > .wp-block-group:hover { transform: translateY(-2px); border-color: #C7D5FB !important; }
body.crc-guide-page .list-with-icons > .wp-block-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.crc-guide-page .list-with-icons h3 { font-size: 19px !important; font-weight: 800; margin: 0 0 8px !important; }
body.crc-guide-page .list-with-icons p { margin: 0; color: #374151; line-height: 1.7; }

/* Roads table + speed tiles */
body.crc-guide-page .wp-block-table { border-radius: 18px; overflow: hidden; box-shadow: var(--g-shadow); border: 1px solid var(--g-line); }
body.crc-guide-page .wp-block-table table { border-collapse: collapse; }
body.crc-guide-page .wp-block-table thead th,
body.crc-guide-page .wp-block-table tr:first-child th { background: var(--g-soft); font-size: 13px; letter-spacing: .03em; }
body.crc-guide-page .wp-block-table td,
body.crc-guide-page .wp-block-table th { padding: 13px 16px; }
body.crc-guide-page .wp-block-table tbody tr:hover { background: #F7F9FD; }

/* Driving rules: numbered checklist */
body.crc-guide-page .grid-bx { gap: 24px; }
body.crc-guide-page .grid-bx > .wp-block-group {
	background: #fff;
	border: 1px solid var(--g-line);
	border-radius: 20px;
	padding: 26px;
	box-shadow: var(--g-shadow);
}
body.crc-guide-page .grid-bx ol.wp-block-list { list-style: none; counter-reset: rule; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
body.crc-guide-page .grid-bx ol.wp-block-list > li {
	counter-increment: rule;
	position: relative;
	padding: 10px 12px 10px 50px;
	border-radius: 12px;
	background: var(--g-soft);
	line-height: 1.55;
}
body.crc-guide-page .grid-bx ol.wp-block-list > li::before {
	content: counter(rule);
	position: absolute;
	left: 12px;
	top: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--g-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	display: grid;
	place-items: center;
}
body.crc-guide-page .grid-bx ol.wp-block-list > li br { display: none; }

/* Emergency numbers: big, tappable */
body.crc-guide-page .grid-bx .wp-block-table { box-shadow: none; }
body.crc-guide-page .grid-bx .wp-block-table td:last-child { font-size: 18px; font-weight: 800; color: #B91C1C; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.crc-guide-page .grid-bx .wp-block-table tr:first-child td:last-child { color: #fff; }
body.crc-guide-page .grid-bx .wp-block-table tbody tr:first-child td { background: #B91C1C; color: #fff; }

/* Supplier grid */
body.crc-guide-page .company-link {
	border-radius: 16px !important;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
body.crc-guide-page .company-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(11, 27, 63, .06), 0 14px 30px rgba(11, 27, 63, .1);
	border-color: #C7D5FB !important;
}

/* Tools placed in the guide */
body.crc-guide-page .crc-guide-tool { padding: 40px 0 8px; }
body.crc-guide-page .crc-guide-tool > .crc-tool { max-width: var(--wp--style--global--wide-size, 1280px); margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.crc-glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	body.crc-guide-page .list-with-icons { grid-template-columns: 1fr; }
	.crc-glance { padding: 20px; border-radius: 20px; }
	.crc-glance__grid { grid-template-columns: 1fr; }
	.crc-glance__value { font-size: 19px; }
	body.crc-guide-page .crc-guide-meta + .wp-block-group p:first-child { font-size: 17px; }
	body.crc-guide-page .grid-bx > .wp-block-group { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	body.crc-guide-page *, .crc-glance * { transition: none !important; }
}
