/* RRT-teema — tyylit. Värit ja fontti :root-muuttujissa. */

@font-face {
	font-family: "Archivo RRT";
	src: url("../fonts/archivo-wdth.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--rrt-ink: #142230;      /* syvä liuskeensininen: header, palvelut, footer */
	--rrt-steel: #22384a;    /* pinnat tummalla */
	--rrt-tape: #f4b400;     /* mittanauhan keltainen: toiminnot */
	--rrt-tape-dk: #d99f00;
	--rrt-concrete: #eceeef; /* vaaleat osiot */
	--rrt-paper: #ffffff;
	--rrt-text: #1f2b36;
	--rrt-muted: #5b6874;
	--rrt-line: #d5dade;
	--rrt-font: "Archivo RRT", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rrt-wrap: 1200px;
	--rrt-r: 6px;
}

/* Perusta */
body.rrt-body { margin: 0; background: var(--rrt-paper); }
.rrt, .rrt *, .rrt *::before, .rrt *::after { box-sizing: border-box; }
.rrt {
	font-family: var(--rrt-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--rrt-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.rrt img { max-width: 100%; height: auto; display: block; }
.rrt a { color: inherit; }
.rrt p { margin: 0 0 1em; }
.rrt h1, .rrt h2, .rrt h3 { margin: 0; font-family: var(--rrt-font); color: inherit; }
.rrt ul { margin: 0; padding: 0; list-style: none; }
.rrt figure { margin: 0; }
.rrt-wrap { width: 100%; max-width: var(--rrt-wrap); margin: 0 auto; padding: 0 24px; }
.rrt-i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rrt-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--rrt-tape); color: var(--rrt-ink); padding: 10px 16px; font-weight: 700; }
.rrt-skip:focus { left: 8px; }
.rrt :focus-visible { outline: 3px solid var(--rrt-tape); outline-offset: 2px; }

.rrt-h2 {
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 800;
	font-stretch: 78%;
	line-height: 1.02;
	letter-spacing: -0.01em;
	margin-bottom: 0.6em !important;
	text-wrap: balance;
}
.rrt-section { padding: clamp(64px, 9vw, 120px) 0; }

/* Painikkeet */
.rrt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 52px; padding: 0 26px;
	font: 700 1rem/1 var(--rrt-font); font-stretch: 90%;
	text-decoration: none; border: 2px solid transparent; border-radius: var(--rrt-r);
	cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.rrt-btn--tape { background: var(--rrt-tape); color: var(--rrt-ink) !important; }
.rrt-btn--tape:hover { background: var(--rrt-tape-dk); }
.rrt-btn--ink { background: var(--rrt-ink); color: #fff !important; }
.rrt-btn--ink:hover { background: var(--rrt-steel); }
.rrt-btn--ghost { border-color: rgba(255,255,255,.7); color: #fff !important; }
.rrt-btn--ghost:hover { background: #fff; color: var(--rrt-ink) !important; }
.rrt-btn--sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.rrt-btn--block { width: 100%; }
.rrt-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--rrt-tape); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.rrt-link:hover { text-decoration-color: currentColor; }
.rrt-link--light { color: #fff !important; }

/* Yläpalkki */
.rrt-topbar { background: var(--rrt-ink); color: #c9d3dc; font-size: .875rem; }
.rrt-topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.rrt-topbar__info { display: flex; gap: 28px; }
.rrt-topbar__info li, .rrt-topbar__info a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.rrt-topbar__info a:hover { color: #fff; }
.rrt-topbar__info .rrt-i { color: var(--rrt-tape); }
.rrt-topbar__some { display: flex; gap: 6px; }
.rrt-topbar__some a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none; }
.rrt-topbar__some a:hover { background: var(--rrt-steel); color: #fff; }

/* Header */
.rrt-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rrt-line); }
.admin-bar .rrt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rrt-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rrt-header { top: 0; } }
.rrt-header__in { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.rrt-logo img { height: 52px; width: auto; }
.rrt-nav { margin-left: auto; }
.rrt-nav__list { display: flex; gap: 4px; align-items: center; }
.rrt-nav__list > li { position: relative; }
.rrt-nav__list a { display: block; padding: 10px 14px; font-weight: 600; font-stretch: 92%; text-decoration: none; color: var(--rrt-ink); border-radius: var(--rrt-r); }
.rrt-nav__list a:hover, .rrt-nav__list .current-menu-item > a { background: var(--rrt-concrete); }
.rrt-nav__list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--rrt-line); border-radius: var(--rrt-r); box-shadow: 0 12px 30px rgba(20,34,48,.12); }
.rrt-nav__list li:hover > .sub-menu, .rrt-nav__list li:focus-within > .sub-menu { display: block; }
.rrt-nav__list .sub-menu a { font-weight: 500; }
.rrt-header__actions { display: flex; align-items: center; gap: 10px; }
.rrt-cart { display: grid; place-items: center; width: 42px; height: 42px; color: var(--rrt-ink); border-radius: var(--rrt-r); }
.rrt-cart:hover { background: var(--rrt-concrete); }
.rrt-nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 2px solid var(--rrt-ink); border-radius: var(--rrt-r); padding: 8px 14px; font: 700 .95rem var(--rrt-font); color: var(--rrt-ink); cursor: pointer; }

/* Hero */
.rrt-hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		linear-gradient(90deg, rgba(20,34,48,.94) 0%, rgba(20,34,48,.82) 42%, rgba(20,34,48,.45) 100%),
		var(--rrt-hero-img, none) center / cover no-repeat,
		var(--rrt-ink);
}
.rrt-hero__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr); gap: 56px; align-items: center; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(72px, 9vw, 120px); }
.rrt-hero__company { font-weight: 600; font-stretch: 95%; color: var(--rrt-tape); margin-bottom: 18px !important; }
.rrt-hero__title {
	font-size: clamp(2.7rem, 6.2vw, 5.4rem);
	font-weight: 800;
	font-stretch: 72%;
	line-height: .96;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin-bottom: 26px !important;
}
.rrt-hero__lead { font-size: 1.15rem; max-width: 36em; color: #dde4ea; }
.rrt-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.rrt-callback { background: #fff; color: var(--rrt-text); border-radius: var(--rrt-r); padding: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.28); border-top: 6px solid var(--rrt-tape); }
.rrt-callback__title { font-size: 1.6rem; font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.rrt-callback__sub { color: var(--rrt-muted); font-size: .95rem; margin: 6px 0 18px !important; }

/* Mittanauha — sivun ainoa koriste */
.rrt-ruler {
	position: absolute; left: 0; right: 0; bottom: 0; height: 46px; overflow: hidden;
	background:
		linear-gradient(to right, var(--rrt-ink) 2px, transparent 2px) 0 0 / 100px 22px repeat-x,
		linear-gradient(to right, var(--rrt-ink) 1.5px, transparent 1.5px) 50px 0 / 100px 15px repeat-x,
		linear-gradient(to right, var(--rrt-ink) 1px, transparent 1px) 0 0 / 10px 9px repeat-x,
		var(--rrt-tape);
	border-top: 1px solid rgba(0,0,0,.15);
}
.rrt-ruler__scale { position: relative; height: 100%; }
.rrt-ruler__scale span { position: absolute; top: 22px; left: calc(var(--n) * 100px + 5px); font: 700 12px/1 var(--rrt-font); font-stretch: 80%; color: var(--rrt-ink); }

/* Faktat */
.rrt-facts { background: var(--rrt-concrete); border-bottom: 1px solid var(--rrt-line); }
.rrt-facts__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.rrt-fact { padding: 36px 32px 34px; border-left: 1px solid var(--rrt-line); }
.rrt-fact:first-child { border-left: 0; padding-left: 0; }
.rrt-fact h3, .rrt-fact__h { font-size: 1.2rem; font-weight: 800; font-stretch: 85%; margin-bottom: 6px !important; color: var(--rrt-ink); }
.rrt-fact p { margin: 0; color: var(--rrt-muted); font-size: .97rem; }

/* Meistä */
.rrt-about__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.rrt-about__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--rrt-r); background: var(--rrt-concrete); }
.rrt-about__text p { max-width: 34em; }
.rrt-checks { margin: 22px 0 30px !important; display: grid; gap: 10px; }
.rrt-checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.rrt-checks .rrt-i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--rrt-tape); color: var(--rrt-ink); stroke-width: 3; }

/* Palvelut */
.rrt-services { background: var(--rrt-ink); color: #fff; }
.rrt-services__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.rrt-services__head .rrt-h2 { margin-bottom: 0 !important; }
.rrt-services .rrt-link { color: #fff; }
.rrt-tabs { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.rrt-tabs__list { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.18); }
.rrt-tab {
	text-align: left; background: none; border: 0; border-left: 4px solid transparent; margin-left: -1px;
	padding: 14px 18px; font: 600 1.05rem/1.3 var(--rrt-font); font-stretch: 92%; color: #aebbc6; cursor: pointer;
}
.rrt-tab:hover { color: #fff; }
.rrt-tab[aria-selected="true"] { color: #fff; border-left-color: var(--rrt-tape); background: var(--rrt-steel); }
.rrt-panel { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--rrt-steel); border-radius: var(--rrt-r); overflow: hidden; }
.rrt-panel[hidden] { display: none; }
.rrt-panel__img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; background: #2c4558; }
.rrt-panel__text { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.rrt-panel__text h3 { font-size: 1.75rem; font-weight: 800; font-stretch: 80%; line-height: 1.1; margin-bottom: 14px !important; }
.rrt-panel__text p { color: #d3dbe2; }
.rrt-panel__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 10px; }
.rrt-alllist { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.rrt-alllist h3 { font-size: 1rem; font-weight: 700; color: var(--rrt-tape); margin-bottom: 14px !important; }
.rrt-alllist ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rrt-alllist li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .92rem; color: #dbe3ea; }

/* Kyrorent */
.rrt-kyro { background: var(--rrt-tape); color: var(--rrt-ink); }
.rrt-kyro__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.rrt-kyro__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; font-stretch: 78%; line-height: 1.05; margin-bottom: 8px !important; }
.rrt-kyro p { margin: 0; max-width: 46em; }
.rrt-kyro .rrt-btn { flex: none; }

/* Galleria */
.rrt-gallery__nav { display: flex; gap: 10px; }
.rrt-round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rrt-ink); background: #fff; color: var(--rrt-ink); cursor: pointer; }
.rrt-round:hover { background: var(--rrt-ink); color: #fff; }
.rrt-gallery__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 560px); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - var(--rrt-wrap)) / 2 + 24px));
	padding: 0 max(24px, calc((100vw - var(--rrt-wrap)) / 2 + 24px)) 18px !important; margin-bottom: 26px !important;
	scrollbar-width: thin;
}
.rrt-gallery__track li { scroll-snap-align: start; }
.rrt-gallery__track figure { position: relative; }
.rrt-gallery__track img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--rrt-r); background: var(--rrt-concrete); }
.rrt-gallery__track figcaption { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--rrt-ink); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 4px; }

/* Palautteet */
.rrt-reviews { background: var(--rrt-concrete); }
.rrt-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rrt-review { margin: 0; background: #fff; padding: 32px; border-radius: var(--rrt-r); border-left: 4px solid var(--rrt-tape); }
.rrt-review p { font-size: 1.15rem; line-height: 1.5; }
.rrt-review footer { display: flex; flex-direction: column; font-size: .92rem; }
.rrt-review footer span { color: var(--rrt-muted); }

/* Yhteys */
.rrt-contact { background: var(--rrt-concrete); }
.rrt-contact__in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rrt-contact__info p { max-width: 30em; color: var(--rrt-muted); }
.rrt-contact__list { display: grid; gap: 14px; margin-top: 26px !important; }
.rrt-contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; font-weight: 700; }
.rrt-contact__list a { text-decoration: none; }
.rrt-contact__list a:hover { text-decoration: underline; }
.rrt-contact__list .rrt-i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--rrt-ink); color: var(--rrt-tape); }
.rrt-contact__card { background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--rrt-r); border-top: 6px solid var(--rrt-tape); }

/* Lomakkeet */
.rrt-form { display: grid; gap: 14px; }
.rrt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rrt-field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--rrt-ink); }
.rrt-field input, .rrt-field select, .rrt-field textarea {
	width: 100%; font: 400 1rem/1.4 var(--rrt-font); color: var(--rrt-text);
	padding: 12px 14px; min-height: 48px; background: #f7f8f9; border: 1.5px solid var(--rrt-line); border-radius: var(--rrt-r);
	box-shadow: none; margin: 0;
}
.rrt-field textarea { resize: vertical; min-height: 120px; }
.rrt-field input:focus, .rrt-field select:focus, .rrt-field textarea:focus { outline: none; border-color: var(--rrt-ink); background: #fff; box-shadow: 0 0 0 3px rgba(244,180,0,.45); }
.rrt-form__note { font-size: .85rem; color: var(--rrt-muted); margin: 0 !important; }
.rrt-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rrt-notice { padding: 14px 16px; border-radius: var(--rrt-r); margin-bottom: 18px; font-weight: 600; }
.rrt-notice--ok { background: #e3f4e6; color: #1d5a2a; }
.rrt-notice--err { background: #fbe6e3; color: #8a2116; }

/* Footer */
.rrt-footer { background: #0e1924; color: #b9c5cf; font-size: .95rem; padding-top: 72px; }
.rrt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.rrt-footer h3, .rrt-footer__h { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px !important; }
.rrt-footer ul { display: grid; gap: 8px; }
.rrt-footer a { text-decoration: none; }
.rrt-footer a:hover { color: #fff; text-decoration: underline; }
.rrt-footer__name { color: #fff; font-size: 1.35rem; font-weight: 800; font-stretch: 80%; line-height: 1.15; margin-bottom: 8px !important; }
.rrt-footer .rrt-topbar__some { display: flex; margin-top: 18px; }
.rrt-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

.rrt-callbar { display: none; }

/* Tablet */
@media (max-width: 1080px) {
	.rrt-header__actions .rrt-btn { display: none; }
	.rrt-nav-toggle { display: inline-flex; }
	.rrt-header__in { gap: 16px; }
	.rrt-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rrt-line); padding: 12px 24px 20px; margin: 0; }
	.rrt-nav.is-open { display: block; }
	.rrt-nav__list { flex-direction: column; align-items: stretch; }
	.rrt-nav__list .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.rrt-hero__in { grid-template-columns: 1fr; }
	.rrt-callback { max-width: 520px; }
	.rrt-tabs { grid-template-columns: 1fr; gap: 20px; }
	.rrt-tabs__list { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
	.rrt-tab { flex: none; border-left: 0; border-bottom: 4px solid transparent; margin: 0 0 -1px; white-space: nowrap; }
	.rrt-tab[aria-selected="true"] { border-bottom-color: var(--rrt-tape); background: none; }
	.rrt-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobiili */
@media (max-width: 720px) {
	.rrt { font-size: 16px; }
	.rrt-topbar__info li:first-child, .rrt-topbar__info li:last-child { display: none; }
	.rrt-header__in { min-height: 68px; }
	.rrt-logo img { height: 42px; }
	.rrt-hero__lead { font-size: 1.05rem; }
	.rrt-hero__cta .rrt-btn { flex: 1 1 auto; }
	.rrt-callback { padding: 22px; }
	.rrt-facts__in { grid-template-columns: 1fr; }
	.rrt-fact, .rrt-fact:first-child { border-left: 0; padding: 22px 0; border-top: 1px solid var(--rrt-line); }
	.rrt-fact:first-child { border-top: 0; }
	.rrt-about__in, .rrt-contact__in, .rrt-panel, .rrt-form__row { grid-template-columns: 1fr; }
	.rrt-panel__img img { min-height: 220px; aspect-ratio: 16 / 10; }
	.rrt-panel__text { padding: 24px; }
	.rrt-kyro__in { flex-direction: column; align-items: flex-start; gap: 22px; }
	.rrt-kyro .rrt-btn { width: 100%; }
	.rrt-footer__grid { grid-template-columns: 1fr; }
	.rrt-footer { padding-bottom: 72px; }
	.rrt-callbar {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
		min-height: 54px; border-radius: var(--rrt-r); background: var(--rrt-tape); color: var(--rrt-ink) !important;
		font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25);
	}
}

/* ===== Teeman lisäosat: alasivut ===== */
.rrt-pagehero { background: var(--rrt-ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); border-bottom: 6px solid var(--rrt-tape); }
.rrt-pagehero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; font-stretch: 74%; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; max-width: 20em; }
.rrt-pagehero__lead { margin: 16px 0 0 !important; max-width: 40em; color: #d3dbe2; font-size: 1.1rem; }
.rrt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: #aebbc6; margin-bottom: 14px; }
.rrt-crumbs a { color: #fff; text-decoration: none; }
.rrt-crumbs a:hover { text-decoration: underline; }
.rrt-section--page { padding: clamp(40px, 6vw, 80px) 0; }

/* Leipäteksti (Gutenberg-sisältö) */
.rrt-prose { max-width: 760px; margin: 0 auto; font-size: 1.06rem; }
.rrt-prose--wide { max-width: none; }
.rrt-prose--flush { margin: 0; }
.rrt .rrt-prose > * + * { margin-top: 1.1em; }
.rrt-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 80%; line-height: 1.1; margin-top: 1.8em !important; }
.rrt-prose h3 { font-size: 1.35rem; font-weight: 800; font-stretch: 85%; line-height: 1.2; margin-top: 1.6em !important; }
.rrt-prose h4 { font-size: 1.1rem; font-weight: 700; margin: 1.4em 0 0; }
.rrt-prose h2:first-child, .rrt-prose h3:first-child { margin-top: 0 !important; }
.rrt-prose a { color: var(--rrt-ink); text-decoration: underline; text-decoration-color: var(--rrt-tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rrt-prose a:hover { text-decoration-color: currentColor; }
.rrt-prose ul, .rrt-prose ol { padding-left: 1.3em; }
.rrt-prose ul { list-style: none; padding-left: 0; }
.rrt-prose ul > li { position: relative; padding-left: 1.4em; }
.rrt-prose ul > li + li, .rrt-prose ol > li + li { margin-top: .35em; }
.rrt-prose ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; background: var(--rrt-tape); border-radius: 2px; }
.rrt-prose ol { list-style: decimal; }
.rrt-prose img { border-radius: var(--rrt-r); }
.rrt-prose figure { margin: 1.6em 0; }
.rrt-prose figcaption { font-size: .9rem; color: var(--rrt-muted); margin-top: 8px; }
.rrt-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--rrt-tape); font-size: 1.15rem; }
.rrt-prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.rrt-prose th, .rrt-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rrt-line); }
.rrt-prose th { background: var(--rrt-concrete); }
.rrt-prose .wp-block-table { overflow-x: auto; }
.rrt-prose .alignwide { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 48px); }
.rrt-prose .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.rrt-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.rrt-prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.rrt-prose .aligncenter { margin-left: auto; margin-right: auto; }
.rrt-prose::after { content: ""; display: table; clear: both; }
.rrt-prose .wp-block-button__link, .rrt-prose .wp-element-button {
	display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: var(--rrt-r);
	background: var(--rrt-tape); color: var(--rrt-ink); font-weight: 700; text-decoration: none;
}
.rrt-prose .wp-block-button__link:hover { background: var(--rrt-tape-dk); }
.rrt-prose .is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--rrt-ink); }
.rrt-prose .wp-block-gallery { gap: 12px; }
.rrt-prose .wp-block-columns { gap: 32px; }
.rrt-prose hr, .rrt-prose .wp-block-separator { border: 0; border-top: 1px solid var(--rrt-line); margin: 2.2em 0; }
.rrt-prose__hero { margin-top: 0 !important; }
.rrt-prose__hero img { width: 100%; }
.rrt-prose .rrt-shortcode-form { background: var(--rrt-concrete); padding: clamp(20px, 4vw, 36px); border-radius: var(--rrt-r); border-top: 6px solid var(--rrt-tape); }
.has-rrt-ink-color { color: var(--rrt-ink); } .has-rrt-ink-background-color { background-color: var(--rrt-ink); }
.has-rrt-steel-color { color: var(--rrt-steel); } .has-rrt-steel-background-color { background-color: var(--rrt-steel); }
.has-rrt-tape-color { color: var(--rrt-tape); } .has-rrt-tape-background-color { background-color: var(--rrt-tape); }
.has-rrt-concrete-background-color { background-color: var(--rrt-concrete); }
.has-rrt-paper-color { color: #fff; } .has-rrt-paper-background-color { background-color: #fff; }

.rrt-fullwidth { min-height: 40vh; }

/* Kortit (blogi, projektit, haku) */
.rrt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.rrt-card { background: #fff; border: 1px solid var(--rrt-line); border-radius: var(--rrt-r); overflow: hidden; }
.rrt-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.rrt-card__img { aspect-ratio: 4 / 3; background: var(--rrt-concrete); }
.rrt-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rrt-card__body { padding: 20px 22px 24px; }
.rrt-card__meta { font-size: .85rem; color: var(--rrt-muted); margin: 0 0 6px !important; }
.rrt-card__title { font-size: 1.25rem; font-weight: 800; font-stretch: 85%; line-height: 1.2; color: var(--rrt-ink); }
.rrt-card__text { margin: 8px 0 0 !important; color: var(--rrt-muted); font-size: .97rem; }
.rrt-card:hover .rrt-card__title { text-decoration: underline; text-decoration-color: var(--rrt-tape); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.rrt-pagination { margin-top: 40px; }
.rrt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rrt-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1.5px solid var(--rrt-line); border-radius: var(--rrt-r); text-decoration: none; font-weight: 700; }
.rrt-pagination .current { background: var(--rrt-ink); color: #fff; border-color: var(--rrt-ink); }

/* Tarjouskaista */
.rrt-cta { background: var(--rrt-steel); color: #fff; }
.rrt-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.rrt-cta__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; font-stretch: 78%; line-height: 1.05; margin-bottom: 8px !important; }
.rrt-cta p { margin: 0; color: #d3dbe2; }
.rrt-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Haku, 404 */
.rrt-search { margin-top: 24px; }
.rrt-search__row { display: flex; gap: 10px; }
.rrt-search__row input { flex: 1; }
.rrt-404__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* WooCommerce: värit teemaan */
.rrt-woo .button, .rrt-woo button.button, .rrt-woo a.button, .rrt-woo input.button, .rrt-woo #respond input#submit,
.woocommerce .rrt-woo .button.alt, .rrt-woo .wc-block-components-button {
	background: var(--rrt-tape) !important; color: var(--rrt-ink) !important; border-radius: var(--rrt-r) !important;
	font-family: var(--rrt-font) !important; font-weight: 700 !important; padding: 14px 22px !important; border: 0 !important;
}
.rrt-woo .button:hover { background: var(--rrt-tape-dk) !important; }
.rrt-woo .price, .rrt-woo .amount { color: var(--rrt-ink) !important; font-weight: 700; }
.rrt-woo ul.products li.product .woocommerce-loop-product__title { font-family: var(--rrt-font); font-weight: 800; font-stretch: 85%; font-size: 1.15rem; color: var(--rrt-ink); }
.rrt-woo ul.products li.product img { border-radius: var(--rrt-r); }
.rrt-woo .onsale { background: var(--rrt-tape) !important; color: var(--rrt-ink) !important; }
.rrt-woo .woocommerce-message, .rrt-woo .woocommerce-info { border-top-color: var(--rrt-tape) !important; }
.rrt-woo .woocommerce-message::before, .rrt-woo .woocommerce-info::before { color: var(--rrt-ink) !important; }
.rrt-woo input.input-text, .rrt-woo select, .rrt-woo textarea { padding: 10px 12px; border: 1.5px solid var(--rrt-line); border-radius: var(--rrt-r); font: inherit; }

@media (max-width: 720px) {
	.rrt-cta__in { flex-direction: column; align-items: flex-start; }
	.rrt-cta__actions, .rrt-cta__actions .rrt-btn { width: 100%; }
	.rrt-prose .alignleft, .rrt-prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
	.rrt-prose .alignwide { width: 100%; margin-left: 0; transform: none; }
	.rrt-search__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.rrt *, .rrt *::before, .rrt *::after { transition: none !important; scroll-behavior: auto !important; }
}
html:has(body.rrt-body) { scroll-behavior: smooth; scroll-padding-top: 100px; }
/* Piilota mobiilin soittopalkki, kun lomaketta täytetään (näppäimistö auki). */
.rrt:has(.rrt-form :focus) .rrt-callbar { display: none; }
