/*
Theme Name: Volvo Hinnastot
Theme URI: https://hinnastot.volvocars.fi
Description: Hinnasto-sivusto Volvo-automalleille.
Author: VML Finland
Version: 0.7.58
Text Domain: volvo-hinnastot
Requires PHP: 8.1
*/

/* Fonts. The primary "Volvo Centum" is loaded from the design system's
   font-face.css on the volvocars.com CDN (see inc/volvo-design-system.php).
   The self-hosted files below are a fallback, declared under the family name
   "Volvo Centum Local", which --font-primary lists second. The DS font has
   regular and emphasis weights (declared 380/570) but no Light, so the local
   Light (300) is currently unused.

   Local files: the "Desktop" static cuts of Volvo Centum (V1.200) in the
   three weights the design uses: Regular (400), SemiBold (600) and Light
   (300). */
@font-face {
	font-family: "Volvo Centum Local";
	src: url("assets/fonts/VolvoCentum_Lt.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Volvo Centum Local";
	src: url("assets/fonts/VolvoCentum_Rg.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Volvo Centum Local";
	src: url("assets/fonts/VolvoCentum_SBd.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* Theme variables alias the Volvo Car Web Design System tokens
   (inc/volvo-design-system.php). The literal after each comma is a fallback
   in case the CDN CSS fails to load. #969696 has no light-mode DS token, so
   it stays a literal. */
:root {
	--font-primary: "Volvo Centum", "Volvo Centum Local", "Helvetica Neue", Helvetica, "Noto Sans", "Segoe UI", Arial, sans-serif;
	--color-black: var(--v-color-always-black, #000);
	--color-white: var(--v-color-always-white, #fff);
	--color-text-muted: var(--v-color-foreground-secondary, #5e5e5e);
	--color-statement-muted: #969696;
	--color-border: var(--v-color-ornament-primary, rgba(0, 0, 0, 0.12));
	--color-card-bg: var(--v-color-background-secondary, #fafafa);
	/* Page side margins and page width from the design system: the page
	   margin is fluid (16px on phones up to 64px on wide screens) and content
	   is capped at the DS page maximum (2560px), so all content lines up with
	   the DS hero, header, footer and page titles. */
	--page-inline-padding: var(--v-space-pagemargin, 56px);
	--header-footer-max-width: 2560px;
	/* Contained content width like volvocars.com (DS .container-xl = 81rem / 1296px),
	   plus the page margins on both sides. Hero, DS header and footer stay full-bleed. */
	--content-max-width: calc(81rem + 2 * var(--page-inline-padding));
}


* {
	box-sizing: border-box;
}

/* Smooth scrolling for the catalog sub-nav's anchor links. Gated on
   prefers-reduced-motion: visitors who ask for reduced motion still get the
   jump, just without the animation. */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--font-primary);
	color: var(--color-black);
	background: var(--color-white);
}

/* Inside the design system's base layer: an unlayered `a { color: inherit }`
   would beat every DS component class (e.g. turn .button-filled's white label
   black). The DS base stylesheet sets the same; this is the fallback if the
   CDN CSS fails to load. */
@layer volvo.global {
	a {
		color: inherit;
	}
}

/* Accessibility utilities (WCAG 2.1 AA): a skip link for 2.4.1 Bypass Blocks,
   and visually hidden text for assistive technology (table headers,
   live-region announcements). */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Links that open in a new tab or window (target="_blank") get the Volvo
   Design System "external-link" icon after the text, automatically, so the
   cue also covers links editors add in page content or menus. The DS icon
   files are sprites (four 16px variants stacked), so only the top 16px is
   shown, as a mask that takes the link's text colour. Screen readers get
   the matching text from the script in functions.php
   (volvo_hinnastot_new_tab_script()). Add .no-external-icon to a link to
   opt out. */
a[target="_blank"]:not(.no-external-icon)::after {
	content: '';
	display: inline-block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-inline-start: 4px;
	vertical-align: -2px;
	background-color: currentColor;
	-webkit-mask: url('https://www.volvocars.com/static/shared/icons/v5/external-link-16.svg') 0 0 / 16px 64px no-repeat;
	mask: url('https://www.volvocars.com/static/shared/icons/v5/external-link-16.svg') 0 0 / 16px 64px no-repeat;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 16px;
	z-index: 1000;
	padding: 12px 24px;
	background: var(--color-white);
	color: var(--color-black);
	text-decoration: none;
	font-size: 16px;
}

.skip-link:focus {
	top: 16px;
}

/* Inside the design system's base layer, for the same reason as the `a` rule
   above: unlayered, this max-width would beat DS components that need an
   image wider than its box (e.g. the DS media hero's full-bleed photo). */
@layer volvo.global {
	img {
		max-width: 100%;
		display: block;
	}
}

/* Design system header (inc/site-header.php). Everything is DS classes in
   header.php; only the bar position is set here. Not sticky, so the catalog
   page's own sticky section nav keeps the top of the screen. */
.site-header-ds .navigation-bar {
	--navigation-bar-position: static;
}

.site-menu-sheet ul {
	margin: 0;
	padding: 0;
}

/* Header */

.site-header {
	position: relative;
	z-index: 10;
	height: 64px;
	background: var(--color-white);
	max-width: var(--header-footer-max-width);
	margin-inline: auto;
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 100%;
	max-width: var(--content-max-width);
	margin-inline: auto;
}

.page-container {
	max-width: var(--content-max-width);
	margin-inline: auto;
	/* Space at the end of the page belongs to the shared page wrapper
	   (front-page.php, single-hinnasto_katalogi.php) rather than to whichever
	   section renders last, so it stays correct regardless of section order. */
	padding-bottom: 64px;
}

.site-header__menu {
	display: flex;
	gap: 32px;
	align-items: center;
	padding-left: var(--page-inline-padding);
	font-size: 16px;
}

.site-header__menu a {
	text-decoration: none;
}

.site-header__logo {
	justify-self: center;
	display: flex;
}

/* Mobile menu ("Valikko") — hidden on desktop, shown in its media query below */

.mobile-menu {
	display: none;
	position: relative;
	justify-self: start;
	padding-left: var(--page-inline-padding);
}

.mobile-menu__trigger {
	font-size: 16px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	padding: 0;
}

.mobile-menu__panel {
	display: none;
	position: absolute;
	top: calc(100% + 15px);
	left: var(--page-inline-padding);
	margin: 0;
	padding: 20px 24px;
	list-style: none;
	background: var(--color-white);
	border: 0.5px solid var(--color-border);
	min-width: 119px;
}

.mobile-menu.is-open .mobile-menu__panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mobile-menu__panel a {
	font-size: 16px;
	text-decoration: none;
}

/* Language switcher */

.language-switcher {
	position: relative;
	justify-self: end;
	padding-right: var(--page-inline-padding);
}

.language-switcher__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	padding: 0;
}

.language-switcher__panel {
	display: none;
	position: absolute;
	top: calc(100% + 15px);
	right: var(--page-inline-padding);
	margin: 0;
	padding: 20px 24px;
	list-style: none;
	background: var(--color-white);
	border: 0.5px solid var(--color-border);
	min-width: 119px;
	text-align: right;
}

.language-switcher.is-open .language-switcher__panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.language-switcher__panel a {
	font-size: 16px;
	text-decoration: none;
}

.language-switcher__panel a.is-current {
	/* The design has no 700 weight; the emphasis style is 600 (SemiBold). */
	font-weight: 600;
}

/* Mobile header: the "Valikko" trigger replaces the nav links, the logo stays
   centred and the language switcher becomes icon-only. */
@media (max-width: 767px) {
	.site-header__menu {
		display: none;
	}

	/* Aligned with the DS page margin, like every other edge on the page. */
	.mobile-menu {
		display: block;
		padding-left: var(--page-inline-padding);
	}

	.mobile-menu__panel {
		left: var(--page-inline-padding);
	}

	.language-switcher {
		padding-right: var(--page-inline-padding);
	}

	.language-switcher__label {
		display: none;
	}

	.language-switcher__panel {
		right: var(--page-inline-padding);
	}
}

/* Page content (page.php, ordinary Pages). Layout, title and text column are
   DS classes in the markup (.pagelayout, .title-page, .stack-text,
   .max-w-prose). The DS styles plain HTML elements (h2:not([class]),
   ul:not([class]) ...), but the block editor adds classes to them
   (wp-block-heading, wp-block-list, wp-block-table), so the same DS token
   values are applied to the block markup here. */
.page-default .title-page {
	margin-bottom: var(--v-space-l);
}

.page-content h2 {
	font-size: clamp(var(--v-font-heading-2-size-min), var(--v-font-heading-2-size), var(--v-font-heading-2-size-max));
	line-height: var(--v-font-heading-2-lineheight);
	font-weight: var(--v-font-heading-2-weight);
	text-wrap: balance;
}

.page-content h3 {
	font-size: var(--v-font-20-size);
	line-height: var(--v-font-20-lineheight);
	font-weight: var(--v-font-emphasis-weight);
}

.page-content h4 {
	font-weight: var(--v-font-emphasis-weight);
}

/* DS .stack-text spacing: more room above a heading than between
   paragraphs (DS: 8px + 1em before a heading). */
.page-content > :is(h2, h3, h4) {
	--stack-gap: calc(var(--v-space-8) + 1em);
}

.page-content > :is(h2, h3, h4) + * {
	--stack-gap: var(--v-space-16);
}

.page-content :is(ul, ol) {
	list-style-type: revert;
	padding-inline-start: 2rem;
}

.page-content li + li {
	margin-top: var(--v-space-8);
}

/* Links inside block paragraphs have no class, so the DS link style
   (a[href]:not([class])) already applies. */

.page-content table {
	width: 100%;
	border-collapse: collapse;
}

.page-content th,
.page-content td {
	padding: var(--v-space-12) var(--v-space-8);
	border-top: 1px solid var(--color-border);
	text-align: start;
	vertical-align: top;
}

.page-content th {
	font-weight: var(--v-font-emphasis-weight);
}

.page-content .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

/* Accessibility feedback pop-up (inc/accessibility-feedback.php,
   assets/js/feedback-dialog.js). Opened by an editor-added link to
   #saavutettavuuspalaute; the form is in a DS .dialog-large. Inputs, textareas, the invalid state
   (aria-invalid), messages (.inline-message) and buttons are DS classes;
   this only lays the fields out. Labels sit above the fields (no floating
   labels: they hide the label text while typing). */
.feedback-form {
	display: flex;
	flex-direction: column;
	gap: var(--v-space-16);
	max-width: 40rem;
}

.feedback-form__done {
	align-self: flex-start;
}

/* No JavaScript (or no <dialog> support): following the button's
   #saavutettavuuspalaute link makes the closed dialog the :target, and it
   is shown in the page flow instead of as a pop-up, so the form still
   works. The close button has nothing to do there. */
dialog.feedback-dialog:target:not([open]) {
	display: flex;
	position: static;
	opacity: 1;
	translate: none;
	scale: none;
	width: auto;
	min-width: 0;
	height: auto;
	max-height: none;
	min-height: 0;
	margin: var(--v-space-32, 32px) 0 0;
	padding: 0;
	border: 1px solid var(--color-border, #ebebeb);
}

dialog.feedback-dialog:not([open]) [slot="close"] {
	display: none;
}

.feedback-form__status:empty {
	display: none;
}

.feedback-form__status:focus {
	outline: none;
}

.feedback-form__status:focus-visible > .inline-message {
	outline: 2px solid var(--v-color-foreground-primary, #141414);
	outline-offset: 2px;
}

.feedback-form__error-list {
	margin: 0;
	padding-inline-start: 1.25rem;
	list-style: disc;
}

.feedback-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--v-space-24, 24px);
	position: relative; /* containing block for the honeypot */
}

.feedback-form__field {
	display: flex;
	flex-direction: column;
	gap: var(--v-space-4, 4px);
}

.feedback-form__field .input {
	margin-top: var(--v-space-4, 4px);
}

.feedback-form__field textarea.input {
	min-height: 9rem;
	resize: vertical;
}

.feedback-form__hint {
	margin: 0;
	color: var(--v-color-foreground-secondary, #5e5e5e);
}

.feedback-form__error {
	margin: 0;
	color: var(--v-color-foreground-feedback-red, #bf2012);
	font-weight: var(--v-font-emphasis-weight);
}

.feedback-form__form .button-filled {
	align-self: flex-start;
}

/* Honeypot: off-screen for everyone, aria-hidden for screen readers,
   tabindex="-1" on the input. Not display:none, which some bots detect. */
.feedback-form__hp {
	position: absolute;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Hero */

.hero {
	position: relative;
	height: 550px;
	background-size: cover;
	/* --hero-focal is the image's focal point, set in wp-admin. */
	background-position: var(--hero-focal, center);
	overflow: hidden;
}

.hero__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 55%);
}

.hero__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--color-white);
	padding: 193px 10px 10px 80px;
	max-width: 500px;
}

.hero__eyebrow {
	margin: 0;
	font-size: 16px;
	width: 180px;
}

.hero__title {
	/* Typography comes from the DS .heading-1 class in the markup (56/64
	   desktop, fluid down to 32/40); see inc/volvo-design-system.php. */
	width: 400px;
	max-width: 100%;
}

.hero__subtitle {
	margin: 0;
	font-size: 16px;
	width: 460px;
	max-width: 100%;
}

/* Homepage section anchors (#tayssahko etc.) and car-card anchors
   (#volvo-ex30 etc.) land below the pinned sub-nav instead of under it. */
.car-section,
.car-card {
	scroll-margin-top: 64px;
}


/* Text-link hover comes from the DS .link-plain / .link-underlined classes:
   the underline thickens to .125em with a .125em offset. */

/* Car sections */

.car-section {
	display: flex;
	flex-direction: column;
	gap: 64px;
	padding: 64px var(--page-inline-padding) 24px;
}

.car-section__heading h2 {
	/* Typography comes from the DS .font-24 class in the markup (24/32); see
	   inc/volvo-design-system.php. */
}

.car-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 64px 32px;
}

.car-card {
	/* DS media card (.media-card + slots in front-page.php). The text keeps a
	   grey card box behind it; see "Media cards with a grey text box" below. */
	min-width: 0;
}

/* Media cards with a grey text box. The DS .media-card has no card background
   (only the image gets the DS #fafafa); these three card types keep the whole
   card on --color-card-bg (the same DS token), with the text inset from the
   card edge: 24px on desktop, smaller insets on mobile. Everything else (slot
   order, typography, gaps, image ratio) is DS. */
.car-card,
.katalogi-price-card,
.katalogi-wheel-card {
	background-color: var(--color-card-bg);
	padding-bottom: 24px;
	--card-text-inset: 24px;
}

.car-card > [slot]:not([slot=media]),
.katalogi-price-card > [slot]:not([slot=media]),
.katalogi-wheel-card > figcaption {
	margin-inline: var(--card-text-inset);
}

.katalogi-wheel-card > figcaption [slot] {
	margin-inline-end: 0;
}

@media (max-width: 767px) {
	.car-card,
	.katalogi-price-card {
		--card-text-inset: 8px;
	}

	.katalogi-wheel-card {
		--card-text-inset: 16px;
		padding-bottom: 16px;
	}
}

/* Homepage car cards on mobile: one card per row, 24px apart and 24px from
   the section heading, 186px image, text inset 8px (24px top/bottom), 14/20
   subtitle and links, 24px before and between the links. */
@media (max-width: 767px) {
	.car-section {
		gap: 24px;
		padding: 24px var(--page-inline-padding) 0;
	}

	.car-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

}

/* Divider */

/* 64px of space above the line: the element before the divider (.car-section
   or .katalogi-section) already has 24px bottom padding, so the divider adds
   the remaining 40px. */
.divider {
	margin: 40px var(--page-inline-padding) 0;
	border: none;
	border-top: 1px solid var(--color-border);
}

/* Info / CTA */

.info-cta {
	/* DS "Title" component, section variant (.title-section in the markup):
	   heading left, description + button right from the DS md breakpoint,
	   stacked below it. Only the section's own spacing and the gaps are set
	   here. */
	padding: 64px var(--page-inline-padding) 24px;
	row-gap: 24px;
}

/* Anchor-scroll offset for the catalog sub-nav's "Tekniset tiedot" target, so
   it clears the sticky sub-nav. Scoped to the id because .info-cta is shared
   with the homepage. */
#tekniset-tiedot {
	scroll-margin-top: 64px;
}

/* 64px between the divider and the "Tietoa auton tekniikasta ja
   ominaisuuksista" heading below it. The divider has no bottom margin, so
   this section supplies the full gap instead of the ordinary 24px
   .katalogi-section top padding. */
#tekniikka-ja-ominaisuudet {
	padding-top: 64px;
}


.info-cta [slot=description] {
	/* Body copy in the primary colour, not the DS title's grey
	   description: this is the section's actual content text. */
	color: var(--color-black);
}

/* Buttons */


/* Hinnasto catalog page (single-hinnasto_katalogi.php): a curated price
   catalog release.

   Hero: title, eyebrow and date/model-year line in white, 16px apart,
   vertically centred over the image. Title weight is 400 (Regular). A
   gradient keeps the text readable, since an editor-uploaded photo can't be
   guaranteed to be dark where the text lands. */

.katalogi-hero {
	position: relative;
	height: 550px;
	max-width: var(--content-max-width);
	margin: 0 auto;
	background-size: cover;
	/* --hero-focal is the image's focal point, set in wp-admin. */
	background-position: var(--hero-focal, center);
	overflow: hidden;
	display: flex;
	align-items: center;
	color: var(--color-white);
}

.katalogi-hero__gradient {
	position: absolute;
	inset: 0;
	/* WCAG 1.4.3: a dark start plus a mid stop keeps the whole text block (up
	   to ~650px from the left) on a dark base while the car on the right
	   stays visible. Editors get photo upload guidance in wp-admin
	   (class-catalog-post-type.php). */
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0) 65%);
}

.katalogi-hero__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-left: 100px;
	max-width: 550px;
}

.katalogi-hero__eyebrow {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
}

.katalogi-hero__title {
	/* Typography comes from the DS .heading-1 class in the markup (56/64
	   desktop, fluid down to 32/40); see inc/volvo-design-system.php. */
}

.katalogi-hero__meta {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
}

@media (max-width: 767px) {
	/* Mobile hero: text pinned to the top (32px top / 24px side padding), a
	   top-to-bottom black gradient, and the photo scaled to 112% of the frame
	   height, anchored to the top and shifted right (~68%) so the car fills
	   the frame. Assumes a landscape photo, as the upload guidance tells
	   editors. */
	.katalogi-hero {
		height: 450px;
		align-items: flex-start;
		background-size: auto 112%;
		/* Focal point when set, else the default crop. */
		background-position: var(--hero-focal, 68% top);
		background-color: var(--color-black);
	}

	.katalogi-hero__gradient {
		background: linear-gradient(to top, rgba(0, 0, 0, 0) 27.444%, var(--color-black) 122.22%);
	}

	.katalogi-hero__text {
		padding: 32px 24px;
		max-width: none;
		width: 100%;
		box-sizing: border-box;
	}

	/* The mobile title size (32/40) comes from the DS .heading-1 fluid size. */
}

/* Catalog sub-navigation: a 64px white bar with 0.5px borders top and bottom,
   16/24 links and a 32px gap. Desktop only (768px and up); the mobile trigger
   + panel below takes over under that. The homepage reuses this bar (.katalogi-subnav--home), wrapping its links on mobile.

   Sticky: the site header scrolls away normally and this bar sticks to the
   viewport top; its z-index matches .site-header (10).

   The items are built from the <h2> sections that actually rendered (see
   single-hinnasto_katalogi.php), so they can overflow the bar.
   .katalogi-subnav is the sticky bar and .katalogi-subnav__track the part
   that scrolls, so the overlay nav buttons below stay fixed at the bar's
   edges. */

.katalogi-subnav {
	position: relative;
	display: flex;
	align-items: center;
	height: 64px;
	padding: 0 var(--page-inline-padding);
	background: var(--color-white);
	border-top: 0.5px solid var(--color-border);
	border-bottom: 0.5px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 10;
	color: var(--color-black);
}

.katalogi-subnav__track {
	display: flex;
	align-items: center;
	gap: 32px;
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.katalogi-subnav__track::-webkit-scrollbar {
	display: none;
}

.katalogi-subnav a {
	/* No underline until hover: DS .link-plain class in the markup. */
	font-size: 16px;
	white-space: nowrap;
	flex-shrink: 0;
}


/* Sub-nav overflow scroll buttons, for desktops too narrow to show every
   section link. They overlay the bar's edges (positioned against
   .katalogi-subnav, not the scrolling track) and stay `hidden` (toggled by
   setUpSubnavScroll() in assets/js/carousel.js) unless there is somewhere
   left to scroll in that direction. */
.katalogi-subnav__nav {
	/* DS .icon-button-filled data-color="neutral" in dark colour mode (40px
	   white circle, black DS chevron), as in the volvocars.com photo
	   galleries. Only the placement is set here. */
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	box-shadow: 0 0 0 1px var(--color-border), 0 2px 8px rgb(0 0 0 / 0.12);
}

.katalogi-subnav__nav[hidden] {
	/* The browser's own [hidden] { display: none } is a UA-stylesheet rule,
	   which loses to an author rule such as the `display: flex` above, so the
	   override is made explicit here (same as the .color-carousel__card print
	   rule). */
	display: none;
}

.katalogi-subnav__nav--prev {
	left: 8px;
}

.katalogi-subnav__nav--next {
	right: 8px;
}

/* Catalog page "Avaa kaikki / Sulje kaikki" button (assets/js/toggle-all.js).
   The wrapper is the last child of .page-container and position: sticky, so
   the button stays pinned to the bottom-right of the screen while the
   catalog scrolls and comes to rest after the last section (never over the
   footer). The full-width wrapper lets clicks through; only the button
   takes them. Colours, size and focus ring come from the DS button-filled. */

.katalogi-toggle-all {
	position: sticky;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 9;
	display: flex;
	justify-content: flex-end;
	margin-top: 32px;
	padding-inline: var(--page-inline-padding);
	pointer-events: none;
}

.katalogi-toggle-all[hidden] {
	display: none;
}

/* Hidden (faded out) until toggle-all.js sees it fits below the sticky
   section nav (.is-visible). visibility keeps a hidden button out of the
   tab order; its transition is delayed on hide so the fade-out still plays. */
.katalogi-toggle-all__button {
	opacity: 0;
	visibility: hidden;
	/* Lifts the floating button off whatever content scrolls under it. */
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.24);
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.katalogi-toggle-all.is-visible .katalogi-toggle-all__button {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.3s ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
	.katalogi-toggle-all__button,
	.katalogi-toggle-all.is-visible .katalogi-toggle-all__button {
		transition: none;
	}
}

/* Mobile sub-navigation: a native <details> with the DS chevron
   (disclosure.js closes it on link click, outside click and Escape). Hidden
   on desktop; .katalogi-subnav above is hidden on mobile in the same media
   query further down. */

.katalogi-subnav-mobile {
	display: none;
	/* Sticky as a whole (trigger + panel), not just the trigger. No effect
	   while display: none on desktop; applies once the media query below
	   shows it on mobile. */
	position: sticky;
	top: 0;
	z-index: 10;
}

.katalogi-subnav-mobile__trigger {
	/* A <summary> (native <details>, DS chevron). */
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 64px;
	padding: 0 var(--page-inline-padding);
	background-color: var(--color-white);
	border-top: 0.5px solid var(--color-border);
	border-bottom: 0.5px solid var(--color-border);
	cursor: pointer;
	font-size: 16px;
	color: var(--color-black);
}

.katalogi-subnav-mobile__panel {
	display: flex;
	margin: 0;
	padding: 16px var(--page-inline-padding);
	list-style: none;
	flex-direction: column;
	gap: 20px;
	background: var(--color-white);
	border-bottom: 0.5px solid var(--color-border);
}

.katalogi-subnav-mobile__panel a {
	font-size: 16px;
	/* No underline until hover: DS .link-plain class in the markup. */
	color: var(--color-black);
}


@media (max-width: 767px) {
	.katalogi-subnav {
		display: none;
	}

	.katalogi-subnav-mobile {
		display: block;
	}

	/* Homepage variant of the bar: stays visible on mobile and wraps its
	   links onto further rows, so every link is shown without scrolling. */
	.katalogi-subnav.katalogi-subnav--home {
		display: flex;
		height: auto;
		min-height: 64px;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.katalogi-subnav--home .katalogi-subnav__track {
		flex-wrap: wrap;
		gap: 12px 24px;
		overflow: visible;
	}

	/* Anchor targets clear the taller (wrapping) bar. */
	.car-section,
	.car-card {
		scroll-margin-top: 120px;
	}
}

/* Section headings (H2 + per-tier H3): Volvo Centum Regular, H2 32/40, H3
   24/32, black, with a 64px rhythm between the title, each tier heading and
   its price cards. */

.katalogi-section {
	padding: 24px var(--page-inline-padding);
	/* Anchor-scroll offset so a section heading doesn't land under the sticky
	   64px sub-nav. #tekniset-tiedot gets the same offset in its own rule,
	   since it uses .info-cta instead of this class. */
	scroll-margin-top: 64px;
}

/* The first section (id="hinnat", the only element directly after
   .katalogi-subnav) gets 64px between the sub-nav and its H2 instead of the
   general 24px. */
.katalogi-subnav + .katalogi-section {
	padding-top: 64px;
}

.katalogi-section__title {
	margin: 0 0 64px;
	/* Typography comes from the DS .heading-2 class in the markup (32/40
	   desktop, fluid down to 24/32); see inc/volvo-design-system.php. */
	color: var(--color-black);
}

.katalogi-section__subtitle {
	/* No margin here: the 64px rhythm lives on .carousel-heading below, since
	   this h3 is a flex item inside it. */
	margin: 0;
	/* Typography comes from the DS .font-24 class in the markup (24/32); see
	   inc/volvo-design-system.php. */
	color: var(--color-black);
}

.katalogi-section .carousel-heading {
	margin: 64px 0;
}

.katalogi-section__title + .carousel-heading {
	/* The H2 above already carries the 64px gap down to the first tier
	   heading — this would otherwise stack a second 64px on top of it. */
	margin-top: 0;
}

/* Price card grid */

/* A DS .reel at every width (classes in the markup). Mobile: one card per
   view (.w-full). From 768px: three cards per row, never narrower than 320px;
   once three no longer fit, the row scrolls sideways and its buttons appear. */
@media (min-width: 768px) {
	.price-card-grid {
		column-gap: 24px;
	}

	.price-card-grid > .katalogi-price-card {
		width: max(320px, calc((100% - 48px) / 3));
	}
}

/* Catalog price cards (single-hinnasto_katalogi.php): static cards, not
   links. Two-column, left-aligned spec rows without dividers and 16/24
   typography; title and total use weight 600. Uses .price-card-grid as its
   grid container. */

.katalogi-price-card {
	/* DS media card: image first (media slot), then title, subtitle and the
	   spec list (body slot). */
	min-width: 0;
}

/* Two subtitle variants, one shown at a time: desktop shows the engine + body
   label, mobile a shorter label (see
   volvo_hinnastot_get_price_card_mobile_subtitle() in
   inc/hinnasto-helpers.php). --mobile is hidden here and switched on in the
   mobile breakpoint below, at 14/20. */
.katalogi-price-card__subtitle--mobile {
	display: none;
}

.katalogi-price-card__specs {
	/* Full card width (the DS media card aligns its children to the start),
	   and a DS 16px step below the subtitle so the grey spec labels don't
	   read as a continuation of the grey subtitle. */
	align-self: stretch;
	margin: var(--v-space-16) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.katalogi-price-card__specs > div {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* DS 16px gap between label and value at every width, so they never touch
	   on a narrow card. */
	column-gap: var(--v-space-16, 16px);
	font-size: 16px;
	line-height: 24px;
}

.katalogi-price-card__specs dt {
	color: var(--color-text-muted);
}

.katalogi-price-card__specs dd {
	margin: 0;
	font-weight: 500;
}

.katalogi-price-card__total {
	font-weight: 600;
}

.katalogi-price-card__total dd {
	font-weight: 600;
}

/* Table for the Hinnat section, built alongside .price-card-grid in
   single-hinnasto_katalogi.php (see $tier_print_rows /
   $katalogi_hinnat_print_field_order there). On screen it is visually hidden
   but still in the accessibility tree (NOT display:none), so screen reader
   users get the price data as a real table while the cards (aria-hidden)
   serve sighted users; shown in place of the card grid by the @media print
   rules at the end of this file. */
/* The wrapper (not the table itself) is clipped: a wide table inside it can
   then never cause horizontal page scroll. */
.katalogi-sronly-table {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Print-only engine + body label, shown once per tier after the H3 in the
   Hinnat print table instead of repeating it on every row. Hidden on screen;
   shown by the @media print rules at the end of this file. The on-screen
   cards keep their own .katalogi-price-card__subtitle. Visually hidden on
   screen like the table it introduces (see above). */

/* Verhoilut table, built alongside .katalogi-verhoilu-table in
   single-hinnasto_katalogi.php: visually hidden on screen but read by screen
   readers, swapped in by the @media print rules at the end of this file, like
   .katalogi-price-table above (shared rule above). */

/* The tables' captions name them for assistive tech; on paper the headings
   above already do (see the print rules). */

/* Footer column headings (real <h2>s, footer.php): look like the former
   paragraphs. */
.site-footer__column-heading {
	font-size: inherit;
	line-height: inherit;
}

/* Section disclaimers: rich text from a restricted wp_editor() on the catalog
   edit screen (Volvo_Hinnastot_Catalog_Post_Type::DISCLAIMER_META_KEY and the
   other disclaimer fields), shown at the end of a section. Only
   bold/italic/subscript/superscript/links plus paragraphs and line breaks are
   allowed (server-side wp_kses() allow-list). */
.katalogi-price-card-disclaimer {
	/* DS "Disclaimer" pattern: .micro (12px) and .text-secondary in the
	   markup; width capped like the DS container-md (808px), but left-aligned
	   with the section rather than centred. */
	margin-top: 24px;
	max-width: 50.5rem;
}

.katalogi-price-card-disclaimer p {
	margin: 0 0 var(--v-space-12);
}

.katalogi-price-card-disclaimer p:last-child {
	margin-bottom: 0;
}

.katalogi-price-card-disclaimer a {
	color: inherit;
	text-decoration: underline;
}

/* .katalogi-price-card-disclaimer a:hover uses the DS default link hover. */

/* Body text of the "Tietoa auton tekniikasta ja ominaisuuksista" panels:
   regular 16/24 body copy rather than 14px disclaimer text. These panels
   reuse .katalogi-price-card-disclaimer for paragraph and link styling, so
   this modifier overrides only font size, line height and colour. */
.katalogi-price-card-disclaimer--body-text {
	font-size: 16px;
	line-height: 24px;
	color: var(--color-black);
}


/* Vakiovarusteet: 3-level accordion (single-hinnasto_katalogi.php), also used
   by Varustetasot, Tehdasasenteiset varustepaketit/lisävarusteet and Tietoa
   auton tekniikasta ja ominaisuuksista. Level 1 (category) 24/32 black, level
   2 (item) 16/24 black, level 3 (sub-item) 16/24 grey (--color-text-muted). */

.vakiovarusteet-accordion {
	display: flex;
	flex-direction: column;
}

.vakiovarusteet-category {
	/* 1px divider, like the DS accordion. */
	border-bottom: 1px solid var(--color-border);
}

.vakiovarusteet-category:first-child {
	border-top: 1px solid var(--color-border);
}

/* Accordions on the Volvo Car Web Design System, laid out like the
   volvocars.com specifications page accordions: native <details>/<summary>;
   the summary carries the DS classes (py-16 flex-row justify-between gap-x-8,
   level 1 also font-24); level 1 shows the DS plus/minus icons, deeper levels
   the DS chevron. No JS. Only what the DS classes don't cover is set here. */
.vakiovarusteet-category__trigger,
.vakiovarusteet-item__trigger {
	cursor: pointer;
}

/* Level 1 plus/minus: two DS sprites, the one for the current state shown. */
.vakiovarusteet-icon__open,
details[open] > summary > .vakiovarusteet-icon > .vakiovarusteet-icon__closed {
	display: none;
}

details[open] > summary > .vakiovarusteet-icon > .vakiovarusteet-icon__open {
	display: block;
}

/* Varustepaketit: title with its price lines under it, inside the summary
   so the prices stay visible while the package is closed. */
.vakiovarusteet-category__heading {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vakiovarusteet-category__label {
	/* Size comes from the DS .font-24 class on the <summary>. */
	color: var(--color-black);
}

/* Autoveroton hinta / Kokonaishinta price rows of a package, always visible
   (not part of the collapsible content). Desktop: label and value side by
   side, 48px apart; mobile: label above value. Labels are grey, values black. */
.vakiovarusteet-category__prices {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vakiovarusteet-price-row {
	display: flex;
	align-items: baseline;
	gap: 48px;
}

.vakiovarusteet-price-row__label {
	width: 230px;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--color-text-muted);
}

.vakiovarusteet-price-row__value {
	font-size: 16px;
	line-height: 24px;
	color: var(--color-black);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.vakiovarusteet-price-row {
		flex-direction: column;
		gap: 0;
	}

	.vakiovarusteet-price-row__label {
		width: auto;
	}
}

.vakiovarusteet-category__panel {
	display: flex;
	flex-direction: column;
	/* 24px left indent for level-2 items under their category, the same step
	   as .vakiovarusteet-item__panel below, so the indent grows by an equal
	   amount at each level. */
	padding: 0 0 20px 24px;
}

/* Divider between level-2 items only: no line between a category heading and
   its first item, and no trailing line after the last item. */
.vakiovarusteet-item + .vakiovarusteet-item {
	border-top: 0.5px solid var(--color-border);
}

/* Varustetasot model-specific sub-heading ("[model]-mallissa lisäksi:",
   "[model1]- ja [model2]-malleissa lisäksi:"; see
   volvo_hinnastot_get_varustetasot_sections()), printed inside the tier panel
   before the items that are standard only on those models. It is not a
   .vakiovarusteet-item, so the divider rule above never draws a line next to
   it. Style: SemiBold 16/24. The 24px top margin is its only spacing; the
   next item has its own 16px top padding. */
.vakiovarusteet-exception-heading {
	margin: 24px 0 0;
	padding: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--color-black);
}

/* Tehdasasenteiset lisävarusteet desktop price table: the "Autoveroton hinta"
   / "Kokonaishinta (CO₂ …)" labels are shown once, in a shared header row per
   open category, and each item row shows only its two right-aligned values in
   the same fixed-width columns. Mobile keeps stacked label-above-value rows
   (see the `@media (max-width: 767px)` block below).

   .lisavaruste-item is a template modifier (single-hinnasto_katalogi.php)
   that scopes these rules to Lisävarusteet rows; the other accordions share
   .vakiovarusteet-item--static/--expandable but never get this class. */
.lisavaruste-item.vakiovarusteet-item--static,
.lisavaruste-item > .vakiovarusteet-item__trigger {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 24px;
}

/* Expandable rows (<details>): label, prices and the DS chevron all sit in
   the <summary>, chevron last. Static rows reserve the chevron's width (16px
   + 24px gap) so both kinds of row line up their prices in one column. */
.lisavaruste-item.vakiovarusteet-item--static {
	padding-inline-end: 40px;
}

.lisavaruste-item .vakiovarusteet-item__label {
	flex: 1 1 auto;
	min-width: 0;
}

/* Shared header row (.lisavaruste-price-header), rendered once per open
   category above its item rows. Column widths (150px / 210px) match
   .lisavaruste-price-row--autoveroton/--kokonaishinta below, so the header
   labels and every row's values line up. */
/* 80px of trailing space after the Kokonaishinta column, fluid: the full 80px
   from ~1087px viewport width, tapering linearly to 0 at 767px, where the
   mobile layout takes over. */
.lisavaruste-price-header {
	display: flex;
	justify-content: flex-end;
	gap: 24px;
	/* + 40px: the item rows' chevron column. */
	padding: 16px calc(clamp(0px, calc((100vw - 767px) / 4), 80px) + 40px) 16px 0;
	border-bottom: 0.5px solid var(--color-border);
	color: var(--color-text-muted);
}

.lisavaruste-price-header__autoveroton,
.lisavaruste-price-header__kokonaishinta {
	flex-shrink: 0;
	text-align: right;
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
}

.lisavaruste-price-header__autoveroton {
	width: 150px;
}

.lisavaruste-price-header__kokonaishinta {
	width: 210px;
}

.lisavaruste-item__prices {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 24px;
	flex: 0 0 auto;
	/* Same fluid trailing space as .lisavaruste-price-header above, so row
	   values line up with the header labels at every desktop width. */
	padding-right: clamp(0px, calc((100vw - 767px) / 4), 80px);
}

.lisavaruste-price-row {
	/* A <span> since 2026-11-05 (no <div> allowed inside <summary>), so it
	   needs block display for its fixed column width to apply. */
	display: block;
	flex-shrink: 0;
}

.lisavaruste-price-row--autoveroton {
	width: 150px;
}

.lisavaruste-price-row--kokonaishinta {
	width: 210px;
}

/* The label is only ever shown on mobile (see the media query below) --
   on desktop the shared header above carries it instead. */
.lisavaruste-price-row__label {
	display: none;
}

.lisavaruste-price-row__value {
	display: block;
	width: 100%;
	text-align: right;
	font-size: 16px;
	line-height: 24px;
	/* Row values are black; only the shared header labels are grey. */
	color: var(--color-black);
	white-space: nowrap;
}

@media (max-width: 767px) {
	/* Mobile: the stacked label-above-value layout, restated in full rather
	   than relying on the desktop rules above. */
	.lisavaruste-item.vakiovarusteet-item--static {
		display: block;
		padding-inline-end: 0;
	}

	/* Label + chevron on the first line, prices on their own line below. */
	.lisavaruste-item > .vakiovarusteet-item__trigger {
		column-gap: 8px;
	}

	.lisavaruste-item > .vakiovarusteet-item__trigger .vakiovarusteet-item__label {
		flex: 1 1 0;
	}

	.lisavaruste-item > .vakiovarusteet-item__trigger .lisavaruste-item__prices {
		order: 3;
		flex-basis: 100%;
	}

	/* The shared header is the one place that names the price columns for
	   screen readers (the per-row labels are aria-hidden), so it is visually
	   hidden here, not display:none. */
	.lisavaruste-price-header {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}

	.lisavaruste-item__prices {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-top: 4px;
	}

	.lisavaruste-price-row,
	.lisavaruste-price-row--autoveroton,
	.lisavaruste-price-row--kokonaishinta {
		display: flex;
		flex-direction: column;
		gap: 0;
		width: auto;
	}

	.lisavaruste-price-row__label {
		display: block;
		width: auto;
		font-size: var(--v-font-14-size);
		line-height: var(--v-font-14-lineheight);
		color: var(--color-text-muted);
	}

	.lisavaruste-price-row__value {
		width: auto;
		text-align: left;
		font-size: var(--v-font-14-size);
		line-height: var(--v-font-14-lineheight);
		color: var(--color-black);
		white-space: nowrap;
	}
}

.vakiovarusteet-item--static {
	margin: 0;
	padding: 16px 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--color-black);
}

.vakiovarusteet-item__label {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: var(--color-black);
}

.vakiovarusteet-item__panel {
	display: flex;
	flex-direction: column;
	padding: 0 0 16px 24px;
}

.vakiovarusteet-subitem {
	margin: 0;
	padding: 4px 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--color-text-muted);
}


/* Varustetasot: each tier is a top-level row in the same
   .vakiovarusteet-accordion as Vakiovarusteet, so only the empty-tier
   fallback needs styles here. No top margin: the trigger's padding provides
   the gap above. */

.varustetasot-tier__empty {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 24px;
	color: var(--color-text-muted);
}

/* Varustetasot intro: manually entered text shown once between the H2 and the
   accordion. The accordion has no top margin of its own. */

.varustetasot-intro {
	margin: 0 0 64px;
	font-size: 16px;
	line-height: 24px;
	color: var(--color-text-muted);
}

/* Heading row for a carousel section. */

.carousel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Carousel buttons below the reel, right-aligned, as on volvocars.com. */
.carousel-nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: var(--v-space-16, 16px);
}

/* Mobile-only carousel nav: hidden until the mobile breakpoint below. */
.carousel-nav--mobile-only {
	display: none;
}

/* Buttons only while the reel actually overflows: assets/js/carousel.js sets
   data-no-overflow on the nav otherwise. */
.carousel-nav--auto[data-no-overflow] {
	display: none;
}

/* Mobile: the price-card grid is a one-card-at-a-time reel. Must come after
   the .carousel-nav--mobile-only base rule above (same specificity, so source
   order decides). */
@media (max-width: 767px) {
	/* Swipe, snap and hidden scrollbar come from the DS .reel .scrollbar-none
	   classes; one card per view from .w-full. */

	/* Mobile price card: text inset 8px from the card edge, 186px image,
	   label/value columns 16px apart. */
	.katalogi-price-card__specs > div {
		column-gap: 16px;
	}

	.carousel-nav--mobile-only {
		display: flex;
	}

	/* Mobile-only subtitle switched on here; see
	   .katalogi-price-card__subtitle--mobile above. */
	.katalogi-price-card__subtitle--desktop {
		display: none;
	}

	.katalogi-price-card__subtitle--mobile {
		display: block;
	}
}

/* Carousel buttons: DS .icon-button-filled data-color="subtle" (40px, light
   grey, 0.32 opacity when disabled) with the DS chevron-back/forward-16
   icons, as on volvocars.com. Only the cursor details are set here. */
.carousel-nav__btn {
	cursor: pointer;
}

.carousel-nav__btn:disabled {
	cursor: default;
}

/* One swipe = one card on touch devices. The DS .reel uses
   scroll-snap-type: x mandatory, but a snap point may be passed over: a
   normal flick on iOS/Android carries momentum past the next card and lands
   on the one after it (Värit skipped every second colour). scroll-snap-stop:
   always makes every frame a mandatory stop. The buttons and arrow keys move
   one card at a time anyway, so they are unaffected. */
.reel > .snap-start {
	scroll-snap-stop: always;
}


/* Värit: the colour section (single-hinnasto_katalogi.php); see
   volvo_hinnastot_get_katalogi_color_rows() in inc/hinnasto-helpers.php for
   the data rule. Free and paid colour cards share .katalogi-color-photo. */
.katalogi-color-photo {
	margin: 24px 0 0;
}

.katalogi-color-photo > [slot=media] {
	/* DS media card; the photo keeps its own proportions instead of the media
	   card's default 1:1 crop. */
	aspect-ratio: auto;
	height: auto;
}

.katalogi-color-carousel {
	margin-top: 24px;
}

@media (max-width: 767px) {
		}

/* Vanteet: the rims section (single-hinnasto_katalogi.php); see
   volvo_hinnastot_get_katalogi_wheel_rows() in inc/hinnasto-helpers.php for
   the data rule. Desktop: a 3-column grid with a 24px column gap and a 64px
   row gap. The rim name and its availability line share one text style. No
   prices are shown in this section. */
@media (min-width: 768px) {
	.katalogi-wheel-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 64px;
		/* Mobile: a DS .reel (classes in the markup). From 768px up it is a
		   plain grid, so the reel's scroll, snap and containment are switched
		   off here. */
		overflow: visible;
		contain: none;
		scroll-snap-type: none;
	}
}

.katalogi-wheel-card {
	/* DS media card (image in the media slot, 16:9; name = title,
	   availability = subtitle). */
	margin: 0;
}

/* The Vanteet H2 sits inside a .carousel-heading row:
   .katalogi-section__title's standalone 64px bottom margin is zeroed there,
   and the .katalogi-section .carousel-heading rule supplies the rhythm around
   the row. */
.carousel-heading > .katalogi-section__title {
	margin: 0;
}

/* Mobile: a horizontally scrollable row, one card per view, like
   .price-card-grid. */
@media (max-width: 767px) {
	/* Swipe, snap and hidden scrollbar from the DS .reel classes; one card
	   per view from .w-full. */
	.katalogi-wheel-grid .katalogi-wheel-card {
		min-width: 0;
	}
}

/* Mitat: an optional gallery of measurement drawings
   (single-hinnasto_katalogi.php), hidden when no images are uploaded (see
   volvo_hinnastot_get_katalogi_mitat_image_ids() in
   inc/hinnasto-helpers.php).

   Desktop: a --color-card-bg backdrop; mobile: a bordered card. Images keep
   their original proportions (width: 100%, height: auto, no crop), and images
   of different heights align at the top. */
.katalogi-mitat-photo {
	margin: 24px 0 0;
}

/* Never upscale: show at most the image's natural width, left-aligned, so a small
   upload is not stretched blurry across the whole column. */
.katalogi-mitat-photo__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-inline: 0;
}

.katalogi-mitat-carousel {
	margin-top: 24px;
}

/* Mitat's disclaimer uses the same DS disclaimer style as the other sections. */

/* Verhoilut (single-hinnasto_katalogi.php; data model in
   volvo_hinnastot_get_katalogi_verhoilu_rows(), inc/hinnasto-helpers.php).

   Layout: a static row-label column on the left next to a horizontally
   scrolling track of option cards (DS .reel, assets/js/carousel.js). Card
   width is fixed on desktop, so the number of visible cards depends on the
   viewport; on mobile one card fills the track.

   Label rows and card rows share .katalogi-verhoilu-table__label-row (same
   font size and line height), which keeps each label level with its values;
   values are single-line in practice. Rows are separated by a 16px flex gap
   with no dividers, and cards sit flush with no gap, forming one continuous
   #fafafa band. The label column and the cards share 24px top/bottom padding
   so their first rows line up. */

.katalogi-verhoilu-table {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.katalogi-verhoilu-table__labels {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 0 0 200px;
	min-width: 0;
	padding: 24px 0;
}

.katalogi-verhoilu-table__label-row {
	display: flex;
	align-items: center;
	min-height: 24px;
	font-size: 16px;
	line-height: 24px;
	color: var(--color-black);
	/* Single-line by design, which keeps each label level with its value
	   across every card; see the section comment above. */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.katalogi-verhoilu-table__track {
	/* DS .reel .scrollbar-none in the markup provide the horizontal
	   scrolling, snap and hidden scrollbar. */
	gap: 0;
	flex: 1;
	min-width: 0;
}

.katalogi-verhoilu-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 0 0 240px;
	background: var(--color-card-bg);
	padding: 24px;
}

.katalogi-verhoilu-table__note {
	/* DS disclaimer (.micro .text-secondary in the markup). */
	margin: 16px 0 0;
}

/* Verhoilut CTA: a sentence + "[Model] sisätilat" button below the options.
   It has a 960px max width and a 48px text-to-button gap, so it uses its own
   class instead of .info-cta (which also carries an <h2>). See
   single-hinnasto_katalogi.php. */
.katalogi-verhoilu-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 48px;
	max-width: 960px;
	margin-top: 64px;
}

.katalogi-verhoilu-cta p {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
}

@media (max-width: 767px) {
	.katalogi-verhoilu-table {
		gap: 16px;
	}

	.katalogi-verhoilu-table__labels {
		flex: 0 0 148px;
	}

	.katalogi-verhoilu-table__track {
		gap: 0;
	}

	.katalogi-verhoilu-card {
		/* Exactly one card visible on mobile. */
		flex: 0 0 100%;
		min-width: 0;
	}
}

/* Footer on the Volvo Car Web Design System, laid out like the volvocars.com
   footer (see footer.php's docblock). Everything except the wordmark size
   comes from DS classes in the markup. */
.site-footer__wordmark {
	/* Same values as volvocars.com's own "For Life." (inline there). */
	font-size: min(26dvw, 320px);
	line-height: normal;
	white-space: nowrap;
}

/* Language selector, 'dialog' version (inc/language-selector.php). */
.language-switcher--dialog {
	/* The DS button is 48px tall; keep the header row height unchanged. */
	margin-block: -12px;
}

@media (max-width: 767px) {
	/* Header: globe icon only on mobile. The text stays in the accessibility
	   tree (an icon button's only label must never be display: none). */
	.language-dialog-trigger--header .language-dialog-trigger__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
	.language-dialog-trigger--header img.icon-sprite:last-child {
		margin-inline-start: 0;
	}
}

/* ============================================================
   PRINT STYLESHEET — Hinnasto catalog page, plain A4.
   Scoped to body.single-hinnasto_katalogi (WordPress body_class()) because
   several classes here (.carousel-nav, .info-cta, .divider …) are shared with
   front-page.php; printing the homepage is unaffected.

   No custom @page header/footer. Site chrome (header, footer, language
   switcher, skip link) is hidden; only the catalog content prints: hero,
   price/spec data, disclaimers, equipment accordions, colours, wheels and the
   Tekniset tiedot link. */

@media print {
	@page {
		size: A4;
		margin: 15mm 12mm;
	}

	body.single-hinnasto_katalogi {
		/* Backgrounds (hero photo, the total-row highlight) print only when
		   the browser's "background graphics" option is on; CSS can't force
		   that, but the print-color-adjust properties keep colours that do
		   print from being flattened toward black. */
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	/* Site chrome isn't part of the catalog; hidden entirely. */
	body.single-hinnasto_katalogi .site-header,
	body.single-hinnasto_katalogi .site-footer,
	body.single-hinnasto_katalogi .skip-link,
	body.single-hinnasto_katalogi .katalogi-toggle-all {
		display: none !important;
	}

	/* Sub-navigation hidden in print: both the desktop bar and the mobile
	   trigger/panel. */
	body.single-hinnasto_katalogi .katalogi-subnav,
	body.single-hinnasto_katalogi .katalogi-subnav-mobile {
		display: none !important;
	}

	/* Carousel/scroll-nav controls (Hinnat, Verhoilut, Värit, Vanteet) have
	   nothing to click on paper; hidden everywhere. */
	body.single-hinnasto_katalogi .carousel-nav {
		display: none !important;
	}

	/* Hero: unchanged layout, kept from splitting across a page break. */
	body.single-hinnasto_katalogi .katalogi-hero {
		page-break-inside: avoid;
		break-inside: avoid;
	}

	/* Section content aligns with the hero's left edge on paper: the
	   sections' left padding is zeroed, the right side keeps its padding. The
	   hero box itself has no side padding; only its text is inset. */
	body.single-hinnasto_katalogi .katalogi-section {
		padding-left: 0 !important;
	}

	body.single-hinnasto_katalogi .divider {
		margin-left: 0 !important;
	}

	body.single-hinnasto_katalogi .info-cta {
		padding-left: 0 !important;
		/* One column on paper (the DS title-section puts the text beside
		   the heading from 480px up, and A4 is wider than that). */
		grid-template-columns: 1fr !important;
		grid-template-areas: "heading" "description" "action" !important;
	}

	/* Keep a heading glued to the content that follows it, rather than
	   stranded alone at the bottom of a page. */
	body.single-hinnasto_katalogi h2,
	body.single-hinnasto_katalogi h3,
	body.single-hinnasto_katalogi h4 {
		page-break-after: avoid;
		break-after: avoid;
	}

	/* Tighter print rhythm than the screen's 24px/64px spacing: 16px section
	   padding top and bottom, and 16px around standalone H2 headings and
	   carousel heading rows. */
	body.single-hinnasto_katalogi .katalogi-section {
		padding-top: 16px !important;
		padding-bottom: 16px !important;
	}

	body.single-hinnasto_katalogi .katalogi-section__title {
		margin: 16px 0 16px !important;
	}

	body.single-hinnasto_katalogi .katalogi-section .carousel-heading {
		margin: 16px 0 !important;
	}

	/* Hinnat: the on-screen price-card grid is replaced by the <table> built
	   alongside it in single-hinnasto_katalogi.php (one row per car, one
	   header row per tier; see $tier_print_rows /
	   $katalogi_hinnat_print_field_order there). */
	body.single-hinnasto_katalogi .price-card-grid {
		display: none !important;
	}

	body.single-hinnasto_katalogi .katalogi-price-table {
		display: table !important;
		position: static !important;
		height: auto !important;
		clip: auto !important;
		clip-path: none !important;
		overflow: visible !important;
		white-space: normal;
		width: 100%;
		border-collapse: collapse;
		margin: 16px 0 32px;
		font-size: 12px;
		line-height: 16px;
	}

	/* The visually hidden wrapper around the tables: back to normal flow. */
	body.single-hinnasto_katalogi .katalogi-sronly-table {
		position: static !important;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		overflow: visible !important;
		clip: auto !important;
		clip-path: none !important;
		white-space: normal !important;
	}

	/* The sr-only captions (the tier headings already print above). */
	body.single-hinnasto_katalogi .katalogi-price-table caption,
	body.single-hinnasto_katalogi .katalogi-verhoilu-print-table caption {
		display: none;
	}

	body.single-hinnasto_katalogi .katalogi-price-table th,
	body.single-hinnasto_katalogi .katalogi-price-table td {
		text-align: left;
		vertical-align: top;
		padding: 6px 8px;
		/* Very light bottom border on each row. */
		border-bottom: 0.5px solid var(--color-border);
		font-weight: 400;
	}

	body.single-hinnasto_katalogi .katalogi-price-table thead th {
		font-weight: 600;
		border-bottom: 1px solid var(--color-border);
		/* Column headers may hyphenate (using the page's <html lang>, set per
		   language in inc/i18n.php) so long Finnish headers such as
		   "Autoveroton hinta (Sis. alv 25,5%)" fit narrow columns;
		   overflow-wrap/word-break are the fallback where hyphenation isn't
		   available. */
		hyphens: auto;
		-webkit-hyphens: auto;
		-ms-hyphens: auto;
		overflow-wrap: break-word;
		word-break: break-word;
		/* Header text a notch smaller than the 12px body text, so long
		   headers need fewer line breaks. */
		font-size: 10px;
		line-height: 14px;
	}

	/* A value and its unit ("84,7 kWh", "1 234 €/kk" …) never break apart.
	   The row header (model name + description) is left out so long names can
	   still wrap. */
	body.single-hinnasto_katalogi .katalogi-price-table td {
		white-space: nowrap;
	}

	/* Suurin teho holds two values ("374 kW / 508 hv"), so this column may
	   wrap after the "/" to leave room for the other columns.
	   .katalogi-price-table__teho is set on both th and td because the
	   column's position varies by tier (it is dropped when a tier has no kW
	   data), so nth-child can't target it. */
	body.single-hinnasto_katalogi .katalogi-price-table td.katalogi-price-table__teho {
		white-space: normal;
	}

	/* Engine + body label, shown once per tier instead of on every row. */
	body.single-hinnasto_katalogi .katalogi-price-table__engine-body-label {
		display: block !important;
		position: static !important;
		height: auto !important;
		clip: auto !important;
		clip-path: none !important;
		overflow: visible !important;
		white-space: normal;
		width: auto !important;
		margin: 0 0 8px;
		font-size: 12px;
		line-height: 16px;
		color: var(--color-text-muted);
	}

	body.single-hinnasto_katalogi .katalogi-price-table__total {
		font-weight: 600;
	}

	/* Disclaimers are plain, always-visible blocks at the end of each
	   section, so they need no print rule. */

	/* Accordions (Vakiovarusteet, Varustetasot, Tehdasasenteiset
	   varustepaketit/lisävarusteet, Tietoa auton tekniikasta ja
	   ominaisuuksista) share one .vakiovarusteet-accordion component and
	   print fully expanded at both levels, regardless of their state on
	   screen. */
	body.single-hinnasto_katalogi .vakiovarusteet-category__panel,
	body.single-hinnasto_katalogi .vakiovarusteet-item__panel {
		display: flex !important;
	}

	body.single-hinnasto_katalogi .vakiovarusteet-icon {
		display: none !important;
	}

	/* Level-1 accordion headings print at 16/24 instead of the DS .font-24
	   size. */
	body.single-hinnasto_katalogi .vakiovarusteet-category__trigger {
		font-size: 16px !important;
		line-height: 24px !important;
	}

	/* Level-2 and level-3 items print as simple lists without divider lines;
	   the existing 24px-per-level indent separates the levels. Level-1
	   headings keep their dividers. */
	body.single-hinnasto_katalogi .vakiovarusteet-item + .vakiovarusteet-item {
		border-top: none !important;
	}

	/* Print list rhythm: 6px top and bottom on category headings, items and
	   sub-items, the same as the print table cells (padding: 6px 8px), so
	   text never touches the category divider lines. Horizontal padding is
	   unchanged. */
	body.single-hinnasto_katalogi .vakiovarusteet-category__trigger,
	body.single-hinnasto_katalogi .vakiovarusteet-item__trigger,
	body.single-hinnasto_katalogi .vakiovarusteet-item--static,
	body.single-hinnasto_katalogi .vakiovarusteet-subitem {
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}

	/* The model-specific sub-heading follows the same 6px rhythm instead of
	   its screen-only 24px top margin. */
	body.single-hinnasto_katalogi .vakiovarusteet-exception-heading {
		margin-top: 0 !important;
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}

	/* No padding between an item heading and its own sub-item text; line
	   height gives enough separation. __trigger is only used by expandable
	   items, which always have sub-items (.vakiovarusteet-item--static is the
	   leaf variant). */
	body.single-hinnasto_katalogi .vakiovarusteet-item__trigger {
		padding-bottom: 0 !important;
	}

	/* No padding between sibling sub-items either; only the last sub-item in
	   a panel keeps its bottom padding before the next item. */
	body.single-hinnasto_katalogi .vakiovarusteet-subitem {
		padding-top: 0 !important;
	}

	body.single-hinnasto_katalogi .vakiovarusteet-item__panel .vakiovarusteet-subitem:not(:last-child) {
		padding-bottom: 0 !important;
	}

	/* The panels' trailing bottom padding is removed for the same tight list;
	   the 24px left indent stays. */
	body.single-hinnasto_katalogi .vakiovarusteet-category__panel,
	body.single-hinnasto_katalogi .vakiovarusteet-item__panel {
		padding-bottom: 0 !important;
	}

	/* Item and sub-item text at 12/16, matching the print table rows.
	   Category headings keep their size. */
	body.single-hinnasto_katalogi .vakiovarusteet-item__label,
	body.single-hinnasto_katalogi .vakiovarusteet-item--static,
	body.single-hinnasto_katalogi .vakiovarusteet-subitem {
		font-size: 12px !important;
		line-height: 16px !important;
	}

	/* Tietoa auton tekniikasta ja ominaisuuksista body text at 12/16 in
	   print, matching the print lists and tables. Scoped to the section id;
	   the other disclaimers are unaffected. */
	body.single-hinnasto_katalogi #tekniikka-ja-ominaisuudet .katalogi-price-card-disclaimer--body-text {
		font-size: 12px !important;
		line-height: 16px !important;
	}

	/* This section's content is a disclaimer-style block, not a
	   .vakiovarusteet-item, so it gets the same 6px rhythm explicitly: a 6px
	   top margin below the heading (replacing the 24px screen margin) and 6px
	   bottom padding before the divider. */
	body.single-hinnasto_katalogi #tekniikka-ja-ominaisuudet .katalogi-price-card-disclaimer--body-text {
		margin-top: 6px !important;
		padding-bottom: 6px !important;
	}

	/* Vakiovarusteet and Varustetasot item lists print in two columns (only
	   panels that contain items, via :has()); other accordion lists stay in
	   one column. break-inside keeps an item and its sub-items from splitting
	   across a column or page break. */
	body.single-hinnasto_katalogi #vakiovarusteet .vakiovarusteet-category__panel:has(.vakiovarusteet-item),
	body.single-hinnasto_katalogi #varustetasot .vakiovarusteet-category__panel:has(.vakiovarusteet-item) {
		display: block !important;
		column-count: 2;
		column-gap: 32px;
	}

	body.single-hinnasto_katalogi .vakiovarusteet-item {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	/* Tehdasasenteiset varustepaketit: the two price rows (Autoveroton hinta
	   / Kokonaishinta) print side by side on one row, each as label + value.

	   The printed page (~703px content box) is narrow enough to trigger the
	   `@media (max-width: 767px)` rule that stacks each label above its
	   value, so the row layout is forced with !important. Label width is auto
	   and the label-to-value gap 8px so both pairs fit on one line; flex-wrap
	   stays on so a long CO₂ label wraps instead of overflowing. 12/16 text,
	   like the other print rows. */
	body.single-hinnasto_katalogi #varustepaketit .vakiovarusteet-category__prices {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		column-gap: 32px !important;
		row-gap: 4px !important;
		padding: 6px 0 !important;
	}

	body.single-hinnasto_katalogi #varustepaketit .vakiovarusteet-price-row {
		flex-direction: row !important;
		align-items: baseline !important;
		gap: 8px !important;
	}

	body.single-hinnasto_katalogi #varustepaketit .vakiovarusteet-price-row__label {
		width: auto !important;
		font-size: 12px !important;
		line-height: 16px !important;
	}

	body.single-hinnasto_katalogi #varustepaketit .vakiovarusteet-price-row__value {
		font-size: 12px !important;
		line-height: 16px !important;
	}

	/* Tehdasasenteiset lisävarusteet print as a table: the shared header row
	   plus right-aligned values in two columns, as on desktop.

	   An A4 page with 12mm side margins is a ~703px content box at 96dpi,
	   under the 767px mobile breakpoint, so the desktop layout is restated
	   here with !important. Column widths (150px/210px) and the fluid
	   trailing padding are unchanged; the padding resolves to 0 at print
	   width. 12/16 text.

	   flex-wrap: nowrap keeps the prices in their column while a long label
	   wraps onto several lines (the label has flex: 1 1 auto; min-width: 0,
	   the prices flex: 0 0 auto); align-items: flex-start aligns the price
	   with the label's first line. */
	body.single-hinnasto_katalogi .lisavaruste-item.vakiovarusteet-item--static,
	body.single-hinnasto_katalogi .lisavaruste-item > .vakiovarusteet-item__trigger {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		justify-content: space-between !important;
		column-gap: 24px !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-item.vakiovarusteet-item--static {
		padding-inline-end: 0 !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-item > .vakiovarusteet-item__trigger .lisavaruste-item__prices {
		order: 0 !important;
		flex-basis: auto !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-price-header {
		display: flex !important;
		justify-content: flex-end !important;
		gap: 24px !important;
		padding: 6px 0 !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-price-header__autoveroton,
	body.single-hinnasto_katalogi .lisavaruste-price-header__kokonaishinta {
		font-size: 12px !important;
		line-height: 16px !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-item__prices {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 24px !important;
		margin-top: 0 !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-price-row {
		display: block !important;
	}

	/* The `@media (max-width: 767px)` block has no "screen" restriction and
	   comes after the 150px/210px base widths, so its width: auto would win
	   in print; the widths are restated with !important. */
	body.single-hinnasto_katalogi .lisavaruste-price-row--autoveroton {
		display: block !important;
		width: 150px !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-price-row--kokonaishinta {
		display: block !important;
		width: 210px !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-price-row__label {
		display: none !important;
	}

	body.single-hinnasto_katalogi .lisavaruste-price-row__value {
		display: block !important;
		width: 100% !important;
		text-align: right !important;
		font-size: 12px !important;
		line-height: 16px !important;
		white-space: nowrap !important;
	}

	/* Colours and rims: every card is shown, not only the current carousel
	   slide, and both sections print as small image + caption grids. [hidden]
	   beats the plain .color-carousel__card selector on specificity, so
	   !important is needed to override the browser's own [hidden] { display:
	   none }. */
	body.single-hinnasto_katalogi .reel {
		overflow: visible !important;
		contain: none !important;
	}

	body.single-hinnasto_katalogi .katalogi-color-carousel {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		column-gap: 16px !important;
		row-gap: 24px !important;
	}

	body.single-hinnasto_katalogi .katalogi-color-carousel .color-carousel__card {
		margin: 0 !important;
	}

	/* The single free-colour figure isn't part of the 3-column grid above, so
	   it is capped to one column's width (same 3-column / 16px-gap math)
	   instead of spanning the page. */
	body.single-hinnasto_katalogi .katalogi-color-photo:not(.color-carousel__card) {
		max-width: calc((100% - 2 * 16px) / 3);
	}

	body.single-hinnasto_katalogi .katalogi-wheel-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		column-gap: 16px !important;
		row-gap: 24px !important;
	}

	/* Whole image, no crop: natural height at the column width. */
	body.single-hinnasto_katalogi .katalogi-color-photo img,
	body.single-hinnasto_katalogi .katalogi-wheel-card img {
		height: auto !important;
		width: 100% !important;
		aspect-ratio: auto !important;
		object-fit: contain !important;
	}

	body.single-hinnasto_katalogi .katalogi-color-photo figcaption,
	body.single-hinnasto_katalogi .katalogi-wheel-card figcaption,
	body.single-hinnasto_katalogi .katalogi-wheel-card__name,
	body.single-hinnasto_katalogi .katalogi-wheel-card__availability {
		font-size: 12px;
		line-height: 16px;
	}

	/* Verhoilut: the on-screen label column + scrolling cards are replaced by
	   the <table> built alongside them in single-hinnasto_katalogi.php, like
	   the Hinnat price table above. */
	body.single-hinnasto_katalogi .katalogi-verhoilu-table {
		display: none !important;
	}

	body.single-hinnasto_katalogi .katalogi-verhoilu-print-table {
		display: table !important;
		position: static !important;
		height: auto !important;
		clip: auto !important;
		clip-path: none !important;
		overflow: visible !important;
		white-space: normal;
		width: 100%;
		border-collapse: collapse;
		margin: 16px 0 32px;
		font-size: 12px;
		line-height: 16px;
	}

	body.single-hinnasto_katalogi .katalogi-verhoilu-print-table th,
	body.single-hinnasto_katalogi .katalogi-verhoilu-print-table td {
		text-align: left;
		vertical-align: top;
		padding: 6px 8px;
		border-bottom: 0.5px solid var(--color-border);
		font-weight: 400;
	}

	body.single-hinnasto_katalogi .katalogi-verhoilu-print-table thead th {
		font-weight: 600;
		border-bottom: 1px solid var(--color-border);
	}

	/* Tekniset tiedot: the button prints as a plain sentence ending in its
	   raw URL, so a reader of the paper copy can type it in. Scoped to
	   #tekniset-tiedot because .info-cta is shared with the homepage. */
	body.single-hinnasto_katalogi #tekniset-tiedot .button-filled {
		display: inline;
		background: none !important;
		color: var(--color-black) !important;
		padding: 0;
		border-radius: 0;
		/* No underline, matching the Verhoilut "[Model] sisätilat" link
		   below; a printed page isn't clickable. */
		text-decoration: none;
	}

	body.single-hinnasto_katalogi #tekniset-tiedot .button-filled::after {
		content: " (" attr(href) ")";
		text-decoration: none;
		word-break: break-all;
		/* Undo the screen-only external-link icon (a[target="_blank"]::after
		   near the top of this file), which otherwise turns this ::after into
		   a 16px masked box and hides the URL text. */
		display: inline;
		width: auto;
		height: auto;
		margin: 0;
		vertical-align: baseline;
		background: none;
		-webkit-mask: none;
		mask: none;
	}

	/* Verhoilut "[Model] sisätilat" button (.katalogi-verhoilu-cta,
	   single-hinnasto_katalogi.php): the same print treatment as Tekniset
	   tiedot above, with the URL written out via ::after { content:
	   attr(href) } and no underline. Scoped to .katalogi-verhoilu-cta so the
	   section's carousel buttons are unaffected. */
	body.single-hinnasto_katalogi #verhoilut .katalogi-verhoilu-cta .button-filled {
		display: inline;
		background: none !important;
		color: var(--color-black) !important;
		padding: 0;
		border-radius: 0;
		text-decoration: none;
	}

	body.single-hinnasto_katalogi #verhoilut .katalogi-verhoilu-cta .button-filled::after {
		content: " (" attr(href) ")";
		text-decoration: none;
		word-break: break-all;
		/* Undo the screen-only external-link icon (a[target="_blank"]::after
		   near the top of this file), which otherwise turns this ::after into
		   a 16px masked box and hides the URL text. */
		display: inline;
		width: auto;
		height: auto;
		margin: 0;
		vertical-align: baseline;
		background: none;
		-webkit-mask: none;
		mask: none;
	}
}
