/* fix135 (owner): one page "Printed Carpet & Rugs" (?p=catalogprinted and ?p=catalogprintedgel, modul/rcdesign/rc_printed.php):
   the heading with two title cards (tabs) - Contract Designs / Printed Rugs - and under the open one its sub categories with
   the catalogue covers (Printed Carpet + Printed Tile; Chromojet Printed + Digital Printed with the chromoJET and COLARIS
   logos). The catalogue below is shown as before. Colours follow the Website Design palette when one is chosen. */
.rc-pr { --pr-ink: var(--rcd-ink, #12324a); --pr-acc: var(--rcd-accent, #1d6f78); --pr-soft: #5c6b7b; --pr-line: #e3e9ef;
	position: relative; box-sizing: border-box; width: auto; margin: 16px 10px 8px; padding: 0; color: var(--pr-ink); text-align: left; }
.rc-pr *, .rc-pr *::before, .rc-pr *::after { box-sizing: border-box; }
.rc-pr-top { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 18px 26px; align-items: stretch; }
.rc-pr-intro { align-self: center; padding: 4px 4px 4px 8px; }
.rc-pr-kicker { display: block; font: 700 11px/1 "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--pr-acc); }
.rc-pr .rc-pr-title { margin: 10px 0 8px; padding: 0; border: 0; background: none; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: .005em;
	text-transform: none; text-align: left; color: var(--pr-ink); text-shadow: none; }
.rc-pr-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pr-soft); }

/* the title cards (tabs) */
.rc-pr-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rc-pr .rc-pr-tab { position: relative; display: flex; align-items: center; gap: 20px; min-height: 132px; padding: 14px 22px 14px 16px; border-radius: 20px;
	background: #fff; color: inherit; text-decoration: none; border: 2px solid transparent; overflow: hidden;
	box-shadow: 0 12px 30px -20px rgba(0, 23, 69, .45), 0 1px 2px rgba(0, 23, 69, .07);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, border-color .3s ease, background-color .3s ease; }
.rc-pr .rc-pr-tab:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(0, 23, 69, .55), 0 2px 4px rgba(0, 23, 69, .08); text-decoration: none; }
.rc-pr .rc-pr-tab:focus-visible { outline: 3px solid var(--pr-acc); outline-offset: 3px; }
.rc-pr .rc-pr-tab.is-on { border-color: var(--pr-acc); background: linear-gradient(120deg, #fff 52%, color-mix(in srgb, var(--pr-acc) 9%, #fff)); }
.rc-pr-tab.is-on::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 5px 5px 0; background: var(--pr-acc); }
/* the covers of the tab, fanned like catalogues on a table; they open out under the mouse */
.rc-pr-fan { position: relative; flex: 0 0 auto; width: 128px; height: 104px; }
.rc-pr .rc-pr-fan img { position: absolute; bottom: 2px; left: 34px; width: 62px; height: 88px; max-width: none; margin: 0; padding: 0; object-fit: cover;
	border: 2px solid #fff; border-radius: 6px; background: #eef2f5; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55);
	transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.rc-pr-fan-2 img:nth-child(1), .rc-pr-fan-3 img:nth-child(1) { transform: translateX(-24px) rotate(-11deg); }
.rc-pr-fan-2 img:nth-child(2) { transform: translateX(16px) rotate(6deg); z-index: 2; }
.rc-pr-fan-3 img:nth-child(2) { transform: translateY(-4px); z-index: 2; }
.rc-pr-fan-3 img:nth-child(3) { transform: translateX(24px) rotate(11deg); z-index: 3; }
.rc-pr-tab:hover .rc-pr-fan-2 img:nth-child(1), .rc-pr-tab:hover .rc-pr-fan-3 img:nth-child(1) { transform: translateX(-32px) rotate(-17deg); }
.rc-pr-tab:hover .rc-pr-fan-2 img:nth-child(2) { transform: translateX(24px) rotate(10deg); }
.rc-pr-tab:hover .rc-pr-fan-3 img:nth-child(2) { transform: translateY(-9px) scale(1.04); }
.rc-pr-tab:hover .rc-pr-fan-3 img:nth-child(3) { transform: translateX(32px) rotate(17deg); }
.rc-pr-tabtxt { display: block; min-width: 0; }
.rc-pr-tabtxt b { display: block; font-size: 21px; line-height: 1.15; font-weight: 800; color: var(--pr-ink); }
.rc-pr-tabtxt small { display: block; margin-top: 5px; font-size: 13px; line-height: 1.4; color: var(--pr-soft); }
.rc-pr-tabtxt em { display: inline-block; margin-top: 9px; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.2 "Segoe UI", Helvetica, Arial, sans-serif; font-style: normal;
	letter-spacing: .08em; text-transform: uppercase; color: var(--pr-acc); background: color-mix(in srgb, var(--pr-acc) 11%, #fff); }
.rc-pr-tick { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--pr-line); background: #fff; transition: all .3s ease; }
.rc-pr-tab.is-on .rc-pr-tick { border-color: var(--pr-acc); background: var(--pr-acc)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* the open tab: its sub categories with their covers */
.rc-pr-panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 0; margin-top: 16px; padding: 18px 22px 20px; border-radius: 20px; background: #fff;
	box-shadow: 0 12px 30px -20px rgba(0, 23, 69, .4), 0 1px 2px rgba(0, 23, 69, .06); animation: rc-pr-in .5s ease-out both; }
@keyframes rc-pr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rc-pr-panel { flex-wrap: nowrap; }
.rc-pr-group { flex: 0 0 auto; min-width: 0; padding: 0 30px; }
.rc-pr-g-chromojet { flex: 1 1 360px; }	/* its covers wrap inside the group, Digital Printed stays beside it */
.rc-pr-group:first-child { padding-left: 0; }
.rc-pr-group + .rc-pr-group { border-left: 1px solid var(--pr-line); }
.rc-pr-ghead { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 14px; }
.rc-pr .rc-pr-logo { display: block; width: auto; max-width: none; height: 34px; margin: 0; border: 0; box-shadow: none; background: none; }
.rc-pr-g-chromojet .rc-pr-logo { height: 30px; }
.rc-pr-ico { flex: 0 0 auto; width: 30px; height: 30px; color: var(--pr-acc); }
.rc-pr-gtxt b { display: block; font: 800 13px/1.2 "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-ink); }
.rc-pr-gtxt small { display: block; margin-top: 3px; font-size: 12px; color: var(--pr-soft); }
.rc-pr .rc-pr-covers { display: flex; flex-wrap: wrap; gap: 16px 14px; margin: 0; padding: 0; list-style: none; }
.rc-pr .rc-pr-covers li { margin: 0; padding: 0; list-style: none; background: none; border: 0; }
.rc-pr .rc-pr-cover { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; color: inherit; text-decoration: none; }
.rc-pr .rc-pr-cover img, .rc-pr-nocover { display: block; width: 92px; height: 128px; max-width: none; margin: 0; padding: 0; object-fit: cover; border: 0; border-radius: 8px;
	background: #eef2f5; box-shadow: 0 10px 18px -12px rgba(0, 23, 69, .65), 0 1px 2px rgba(0, 23, 69, .12);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, outline-color .3s ease; outline: 3px solid transparent; outline-offset: 3px; }
.rc-pr .rc-pr-cover span { max-width: 100%; font-size: 12.5px; line-height: 1.25; font-weight: 600; text-align: center; color: #34465a; overflow-wrap: anywhere; }
.rc-pr .rc-pr-cover:hover img { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 18px 26px -14px rgba(0, 23, 69, .7), 0 2px 4px rgba(0, 23, 69, .14); }
.rc-pr .rc-pr-cover:hover span { color: var(--pr-acc); }
.rc-pr .rc-pr-cover:focus-visible { outline: none; }
.rc-pr .rc-pr-cover:focus-visible img { outline-color: var(--pr-acc); }
.rc-pr .rc-pr-cover.is-on img { outline-color: var(--pr-acc); }
.rc-pr .rc-pr-cover.is-on span { color: var(--pr-acc); font-weight: 800; }

/* above the catalogue's name: where it sits in the range (the covers jump here, clear of a menu bar that stays at the top) */
.rc-pr-now { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 22px 10px 2px; scroll-margin-top: 96px;
	font: 700 11px/1.2 "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--pr-acc, #1d6f78); }
.rc-pr-now i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
body .rc-pr-now { --pr-acc: var(--rcd-accent, #1d6f78); }
/* the catalogue's name: main.css pins it 33 px from the top of the page area (over the old flip-book); here it follows the line above */
.content-detail .rc-pr-now + h1.cat_name { position: static; top: auto; width: auto; margin: 6px 10px 16px; text-align: center; }
.rc-pr-title .rc-pr-amp { display: block; }

/* narrower windows */
@media (max-width: 1100px) {
	.rc-pr-top { grid-template-columns: 1fr; }
	.rc-pr-intro { padding-left: 4px; }
}
@media (max-width: 760px) {
	.rc-pr { margin: 12px 8px 6px; }
	.rc-pr .rc-pr-title { font-size: 25px; }
	.rc-pr-tabs { grid-template-columns: 1fr; gap: 12px; }
	.rc-pr .rc-pr-tab { min-height: 112px; gap: 14px; padding: 12px 16px 12px 10px; }
	.rc-pr-fan { width: 112px; height: 92px; }
	.rc-pr .rc-pr-fan img { width: 54px; height: 76px; left: 29px; }
	.rc-pr-panel { flex-wrap: wrap; }
	.rc-pr-group, .rc-pr-g-chromojet { padding: 0; flex: 1 1 100%; }
	.rc-pr-group + .rc-pr-group { border-left: 0; border-top: 1px solid var(--pr-line); padding-top: 16px; }
	.rc-pr-panel { padding: 16px; }
	.rc-pr .rc-pr-cover { width: 84px; }
	.rc-pr .rc-pr-cover img, .rc-pr-nocover { width: 84px; height: 117px; }
}
@media (prefers-reduced-motion: reduce) {
	.rc-pr .rc-pr-tab, .rc-pr .rc-pr-fan img, .rc-pr .rc-pr-cover img, .rc-pr-panel { transition: none; animation: none; }
}
