/*
 * The concept B objects: stamp, clip, polaroid, folders, tags, index card,
 * sticky note, label tape, redaction bars, cabinet, drawer, and the scene
 * props built from them (hero dossier, cork board, Form RA-1, step cards).
 * Objects tilt between -6deg and 6deg (stamps -8deg to -16deg); the story,
 * nav and buttons never tilt.
 */

/* ---------- Stamp ---------- */

.rab-stamp {
	display: block;
	overflow: visible;
	color: var(--rab-orange);
}

.rab-stamp__ring {
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
}

.rab-stamp__word {
	font-family: var(--rab-sans);
	font-size: 30px;
	font-weight: 900;
	font-stretch: 72%;
	text-anchor: middle;
}

.wp-block-ramboabe-stamp {
	width: 132px;
	max-width: 100%;
}

.wp-block-ramboabe-stamp .rab-stamp {
	width: 100%;
	height: auto;
	transform: rotate(-10deg);
	mix-blend-mode: multiply;
}

.rab-desk .wp-block-ramboabe-stamp .rab-stamp {
	mix-blend-mode: normal;
}

/* ---------- Paper clip ---------- */

.rab-clip {
	position: absolute;
	overflow: visible;
	pointer-events: none;
}

.rab-clip path {
	fill: none;
	stroke: var(--wp--custom--color--clip);
	stroke-width: 2.4;
	stroke-linecap: round;
}

/* ---------- Polaroid and clip ---------- */

.rab-polaroid {
	position: relative;
	margin: 0;
	width: min(100%, 320px);
	padding: 14px 14px 0;
	background: var(--wp--custom--color--polaroid);
	box-shadow: 0 1px 1px rgba(22, 24, 29, 0.2), 0 12px 22px -6px rgba(22, 24, 29, 0.45);
}

.rab-polaroid__photo {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--wp--custom--color--photo);
}

.rab-polaroid__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rab-polaroid__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 22px;
	text-align: center;
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: var(--rab-slate);
}

.rab-polaroid__caption {
	padding: 14px 0 18px;
	text-align: center;
	font-family: var(--rab-marker);
	font-size: 26px;
	line-height: 1.2;
	color: var(--rab-ink);
}

.rab-polaroid__clip {
	top: -28px;
	right: 44px;
	width: 22px;
	height: 59px;
}

.rab-polaroid__stamp {
	position: absolute;
	left: -30px;
	top: 50%;
	width: 112px;
	height: 112px;
	transform: rotate(-16deg);
	mix-blend-mode: multiply;
}

/* The core/image block style. */
.wp-block-image.is-style-rab-polaroid {
	position: relative;
	display: table;
	margin-inline: auto;
	padding: 14px 14px 0;
	background: var(--wp--custom--color--polaroid);
	box-shadow: 0 1px 1px rgba(22, 24, 29, 0.2), 0 12px 22px -6px rgba(22, 24, 29, 0.45);
	transform: rotate(-3deg);
}

.wp-block-image.is-style-rab-polaroid img {
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
}

.wp-block-image.is-style-rab-polaroid figcaption,
.wp-block-image.is-style-rab-polaroid .wp-element-caption {
	margin: 0;
	padding: 14px 0 18px;
	text-align: center;
	font-family: var(--rab-marker);
	font-size: 26px;
	color: var(--rab-ink);
}

.wp-block-image.is-style-rab-polaroid::before {
	content: "";
	position: absolute;
	top: -28px;
	right: 44px;
	width: 22px;
	height: 59px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64'%3E%3Cpath d='M7 18 V50 A5 5 0 0 0 17 50 V10 A7.5 7.5 0 0 0 2 10 V52 A9.5 9.5 0 0 0 21 52 V22' fill='none' stroke='%238A8F98' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Tags ---------- */

.rab-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rab-tag {
	padding: 4px 10px;
	border: 1.5px solid var(--rab-ink);
	border-radius: 4px;
	color: var(--rab-ink);
	font-family: var(--rab-mono);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.rab-tag--hot {
	background: var(--rab-orange);
	border-color: var(--rab-orange);
}

/* ---------- Manila folder ---------- */

.rab-folder {
	position: relative;
	color: var(--rab-ink);
}

/* Stacking: the peeking sheet sits under the tab so it never covers the
   report number, and the folder front sits over both. */
.rab-folder__tab {
	position: absolute;
	z-index: 1;
	left: 0;
	top: -36px;
	height: 38px;
	display: flex;
	align-items: center;
	padding: 0 18px;
	background: var(--rab-manila-tab);
	border: 1.5px solid var(--rab-manila-edge);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	white-space: nowrap;
}

.rab-folder__peek {
	position: absolute;
	right: 22px;
	top: -14px;
	width: 56%;
	height: 44px;
	background: var(--rab-sheet);
	transform: rotate(2.5deg);
	box-shadow: 0 2px 6px rgba(22, 24, 29, 0.18);
}

.rab-folder__body {
	position: relative;
	z-index: 2;
	height: 100%;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px;
	background: var(--rab-manila);
	border: 1.5px solid var(--rab-manila-edge);
	border-radius: 0 12px 12px 12px;
	box-shadow: var(--shadow-paper);
}

.rab-folder__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--card-title);
	line-height: 0.92;
	font-weight: 900;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.rab-folder__link {
	color: inherit;
	text-decoration: none;
}

/* The whole folder is the click target; the link stays the accessible name. */
.rab-folder__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.rab-folder__link:hover,
.rab-folder__link:focus {
	color: inherit;
}

.rab-folder:hover .rab-folder__title {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.rab-folder__link:focus-visible {
	outline: none;
}

.rab-folder__link:focus-visible::after {
	outline: 3px solid var(--rab-orange);
	outline-offset: 4px;
}

.rab-folder__excerpt {
	margin: 0;
	font-family: var(--rab-serif);
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.5;
	color: var(--rab-ink-soft);
}

.rab-folder__cta {
	margin-top: auto;
	font-size: 17px;
	font-weight: 800;
}

.rab-folder__tags {
	align-self: flex-start;
}

/* Unfiled: a dashed outline standing in for the next report. */
.rab-folder--unfiled .rab-folder__tab {
	background: transparent;
	border: 2px dashed var(--wp--custom--color--manila-dashed);
	border-bottom: 0;
	color: var(--rab-slate);
}

.rab-folder--unfiled .rab-folder__body {
	background: rgba(231, 207, 150, 0.22);
	border: 2px dashed var(--wp--custom--color--manila-dashed);
	box-shadow: none;
}

.rab-folder__status {
	align-self: flex-start;
	font-family: var(--rab-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rab-burnt);
}

.rab-folder--unfiled .rab-folder__cta {
	color: var(--rab-burnt);
}

/* The core/group block style. */
.wp-block-group.is-style-rab-folder {
	position: relative;
	margin-top: 38px;
	padding: 30px;
	background: var(--rab-manila);
	border: 1.5px solid var(--rab-manila-edge);
	border-radius: 0 12px 12px 12px;
	box-shadow: var(--shadow-paper);
	color: var(--rab-ink);
}

.wp-block-group.is-style-rab-folder::before {
	content: "";
	position: absolute;
	left: -1.5px;
	top: -38px;
	width: 140px;
	height: 38px;
	background: var(--rab-manila-tab);
	border: 1.5px solid var(--rab-manila-edge);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
}

/* ---------- Paper sheet ---------- */

.wp-block-group.is-style-rab-sheet {
	padding: clamp(24px, 3.4vw, 40px);
	background: var(--rab-sheet);
	color: var(--rab-ink);
	box-shadow: var(--shadow-paper);
}

/* ---------- Index card ---------- */

.rab-index-card,
.wp-block-group.is-style-rab-index-card {
	position: relative;
	padding: 22px 24px 26px;
	background-color: var(--rab-sheet);
	background-image:
		linear-gradient(to bottom, transparent 58px, var(--rab-index-red) 58px, var(--rab-index-red) 60px, transparent 60px),
		repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rab-index-blue) 31px, var(--rab-index-blue) 32px);
	color: var(--rab-ink);
	box-shadow: 0 1px 1px rgba(22, 24, 29, 0.12), 0 10px 20px -8px rgba(22, 24, 29, 0.38);
	transform: rotate(-1.2deg);
}

.rab-index-card .rab-clip {
	top: -26px;
	left: 32px;
	width: 20px;
	height: 54px;
}

.rab-index-card__head {
	margin: 0;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 2.5px;
	/* Typed in capitals so "No." keeps its small o. */
	text-transform: none;
	color: var(--rab-burnt);
}

.rab-index-card__rows {
	margin: 16px 0 0;
	display: flex;
	flex-direction: column;
}

.rab-index-card__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	line-height: 32px;
}

.rab-index-card__row dt {
	width: 104px;
	flex: none;
	font-family: var(--rab-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--rab-slate);
}

.rab-index-card__row dd {
	margin: 0;
	min-width: 0;
	font-family: var(--rab-marker);
	font-size: 21px;
}

.is-red-pen {
	color: var(--rab-red-pen);
}

/* ---------- Sticky note ---------- */

.rab-sticky,
.wp-block-group.is-style-rab-sticky {
	background: var(--rab-yellow);
	color: var(--rab-ink);
	box-shadow: var(--shadow-lift);
}

.wp-block-group.is-style-rab-sticky {
	width: min(100%, 240px);
	aspect-ratio: 1 / 1;
	padding: 22px;
	font-family: var(--rab-marker);
	font-size: 24px;
	line-height: 1.15;
	transform: rotate(3deg);
}

.rab-sticky--link {
	width: 220px;
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	text-decoration: none;
	transform: rotate(3deg);
}

.rab-sticky--link:hover {
	color: var(--rab-ink);
	box-shadow: 0 1px 1px rgba(22, 24, 29, 0.2), 0 20px 22px -10px rgba(22, 24, 29, 0.6);
}

.rab-sticky__text {
	font-family: var(--rab-marker);
	font-size: 26px;
	line-height: 1.15;
}

.rab-sticky__note {
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
}

/* ---------- Label tape (pull quotes) ---------- */

.rab-story blockquote,
.wp-block-quote.is-style-rab-label-tape {
	max-width: 560px;
	margin: 16px auto;
	padding: 0;
	border: 0;
	text-align: center;
	line-height: 2.25;
	transform: rotate(-1.4deg);
}

.rab-story blockquote p,
.wp-block-quote.is-style-rab-label-tape p {
	display: inline;
	margin: 0;
	padding: 6px 16px;
	background: var(--rab-ink);
	color: var(--rab-page);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 6px 10px -4px rgba(22, 24, 29, 0.55);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	font-family: var(--rab-mono);
	font-size: clamp(18px, 2.4vw, 26px);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.rab-story blockquote p + p::before,
.wp-block-quote.is-style-rab-label-tape p + p::before {
	content: "\A";
	white-space: pre;
}

.rab-story blockquote cite,
.wp-block-quote.is-style-rab-label-tape cite {
	display: block;
	margin-top: 4px;
	font-family: var(--rab-mono);
	font-size: 13px;
	font-style: normal;
	letter-spacing: 2px;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--rab-slate);
}

/* ---------- Redaction bars ---------- */

/* The word stays in the page for screen readers; the bar covers it. */
.rab-redact {
	position: relative;
	padding: 0 6px;
	white-space: nowrap;
}

.rab-redact::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--rab-ink);
	border-radius: 1px;
}

.rab-redaction-log {
	background: var(--rab-sheet);
	color: var(--rab-ink);
	box-shadow: 0 1px 1px rgba(22, 24, 29, 0.12), 0 10px 20px -8px rgba(22, 24, 29, 0.38);
	transform: rotate(0.8deg);
}

.rab-redaction-log__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 20px;
	background: var(--rab-ink);
	color: var(--rab-page);
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

.rab-redaction-log__head h2 {
	margin: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	font-stretch: 100%;
}

.rab-redaction-log__head span {
	color: var(--rab-on-desk-label);
}

.rab-redaction-log__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 20px 24px;
}

.rab-redaction-log__body p {
	margin: 0;
	font-family: var(--rab-serif);
	font-size: 16px;
	line-height: 1.5;
	color: var(--rab-ink-soft);
}

.rab-redaction-log__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.rab-redaction-log__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rab-redaction-log__bar {
	flex: none;
	width: 26px;
	height: 11px;
	margin-top: 4px;
	background: var(--rab-ink);
	transform: rotate(-2deg);
}

.rab-redaction-log__list li:nth-child(3n + 2) .rab-redaction-log__bar {
	transform: rotate(1.5deg);
}

.rab-redaction-log__list li:nth-child(3n) .rab-redaction-log__bar {
	transform: rotate(-1deg);
}

/* ---------- Filing cabinet ---------- */

.rab-cabinet {
	padding: 22px;
	background: var(--wp--custom--color--cabinet);
	border-radius: 18px;
	box-shadow: 0 2px 3px rgba(22, 24, 29, 0.2), 0 34px 50px -30px rgba(22, 24, 29, 0.7);
}

.rab-cabinet__well {
	padding: 32px 24px 0;
	background: var(--wp--custom--color--cabinet-well);
	border-radius: 10px 10px 0 0;
	box-shadow: inset 0 18px 26px -10px rgba(0, 0, 0, 0.85);
}

.rab-cabinet__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rab-cabinet__tabs li {
	display: flex;
}

.rab-cabinet__tab {
	--tab-h: 56px;
	--tab-bg: var(--rab-manila);
	--tab-shine: 0.5;
	min-height: var(--tab-h);
	display: inline-flex;
	align-items: flex-start;
	padding: 14px 20px 0;
	background: var(--tab-bg);
	border: 1.5px solid var(--rab-manila-edge);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, var(--tab-shine));
	color: var(--rab-ink);
	font-family: var(--rab-mono);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	transition: min-height 0.15s ease;
}

/* Ragged heights and three manila shades, like files that were never squared up. */
.rab-cabinet__tabs li:nth-child(3n + 2) .rab-cabinet__tab {
	--tab-bg: var(--rab-manila-tab);
	--tab-shine: 0.45;
}

.rab-cabinet__tabs li:nth-child(3n) .rab-cabinet__tab {
	--tab-bg: var(--wp--custom--color--manila-light);
	--tab-shine: 0.55;
}

.rab-cabinet__tabs li:nth-child(10n + 2) .rab-cabinet__tab { --tab-h: 70px; }
.rab-cabinet__tabs li:nth-child(10n + 3) .rab-cabinet__tab { --tab-h: 62px; }
.rab-cabinet__tabs li:nth-child(10n + 4) .rab-cabinet__tab { --tab-h: 76px; }
.rab-cabinet__tabs li:nth-child(10n + 5) .rab-cabinet__tab { --tab-h: 58px; }
.rab-cabinet__tabs li:nth-child(10n + 6) .rab-cabinet__tab { --tab-h: 72px; }
.rab-cabinet__tabs li:nth-child(10n + 7) .rab-cabinet__tab { --tab-h: 60px; }
.rab-cabinet__tabs li:nth-child(10n + 8) .rab-cabinet__tab { --tab-h: 74px; }
.rab-cabinet__tabs li:nth-child(10n + 9) .rab-cabinet__tab { --tab-h: 64px; }
.rab-cabinet__tabs li:nth-child(10n) .rab-cabinet__tab { --tab-h: 80px; }

.rab-cabinet__tabs li .rab-cabinet__tab.is-hot {
	--tab-bg: var(--rab-orange);
	--tab-shine: 0.35;
	border-color: var(--rab-burnt);
}

.rab-cabinet__tab:hover {
	min-height: calc(var(--tab-h) + 8px);
	color: var(--rab-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* The drawer you're in is pulled up and marked. */
.rab-cabinet__tabs li .rab-cabinet__tab.is-current {
	--tab-bg: var(--rab-sheet);
	min-height: calc(var(--tab-h) + 14px);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.rab-cabinet__tabs li .rab-cabinet__tab.is-hot.is-current {
	--tab-bg: var(--rab-orange);
}

.rab-cabinet__files {
	display: flex;
	flex-direction: column;
}

.rab-cabinet__files span {
	height: 8px;
	background: #D6BA7C;
	border-top: 1.5px solid var(--wp--custom--color--manila-dashed);
}

.rab-cabinet__files span:first-child {
	height: 10px;
	background: var(--rab-manila);
	border-top-color: var(--rab-manila-edge);
}

.rab-cabinet__files span:last-child {
	background: #C9AB6B;
	border-top-color: #9A7D44;
}

/* ---------- Cabinet drawer front ---------- */

.rab-drawer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	padding: 36px 24px 40px;
	background: linear-gradient(180deg, var(--rab-steel-light) 0%, var(--wp--custom--color--steel-mid) 12%, var(--rab-steel) 100%);
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 2px rgba(0, 0, 0, 0.4), 0 24px 34px -18px rgba(0, 0, 0, 0.7);
}

.rab-drawer--cabinet {
	position: relative;
	margin-top: -2px;
	border-radius: 0 0 14px 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 -12px 18px -12px rgba(0, 0, 0, 0.7);
}

.rab-drawer__label {
	max-width: 100%;
	padding: 10px 28px;
	background: var(--rab-sheet);
	border: 3px solid var(--wp--custom--color--clip-light);
	border-radius: 4px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.1);
	color: var(--rab-ink);
	font-family: var(--rab-mono);
	font-size: clamp(12px, 3.4vw, 15px);
	font-weight: 600;
	letter-spacing: clamp(1px, 0.6vw, 3px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}

.rab-drawer__handle {
	width: min(260px, 70%);
	height: 22px;
	border-radius: 11px;
	background: linear-gradient(180deg, var(--wp--custom--color--handle-top), var(--wp--custom--color--clip));
	box-shadow: 0 7px 10px -2px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---------- Hero dossier (scales with its own width) ---------- */

.rab-dossier {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.rab-dossier__stage {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 600 / 640;
	container-type: inline-size;
}

.rab-dossier__folder {
	position: absolute;
	border-radius: 1.4cqw;
	box-shadow: var(--shadow-desk);
}

.rab-dossier__folder--back {
	left: 20%;
	top: 5%;
	width: 74%;
	height: 80%;
	background: var(--wp--custom--color--manila-back);
	transform: rotate(6deg);
}

.rab-dossier__folder--front {
	left: 4%;
	top: 9%;
	width: 76%;
	height: 82%;
	background: var(--wp--custom--color--manila-mid);
	transform: rotate(-4deg);
}

.rab-dossier__tab {
	position: absolute;
	top: -5.2cqw;
	height: 5.6cqw;
	display: flex;
	align-items: center;
	padding: 0 2.6cqw;
	background: inherit;
	border-radius: 1.4cqw 1.4cqw 0 0;
	color: var(--rab-ink);
	font-family: var(--rab-mono);
	font-size: 2cqw;
	font-weight: 600;
	letter-spacing: 0.3cqw;
	white-space: nowrap;
}

.rab-dossier__folder--back .rab-dossier__tab {
	right: 30cqw;
}

.rab-dossier__folder--front .rab-dossier__tab {
	left: 5cqw;
}

.rab-dossier__sheet {
	position: absolute;
	left: 12%;
	top: 15%;
	width: 62%;
	height: 72%;
	display: flex;
	flex-direction: column;
	gap: 2cqw;
	padding: 4.4cqw 4.6cqw;
	overflow: hidden;
	background: var(--rab-sheet);
	border-radius: 0.6cqw;
	color: var(--rab-ink);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 8px 18px -6px rgba(0, 0, 0, 0.5);
	transform: rotate(1.5deg);
}

.rab-dossier__head {
	display: flex;
	justify-content: space-between;
	gap: 2cqw;
	padding-bottom: 1.4cqw;
	border-bottom: 0.3cqw solid var(--rab-ink);
	font-family: var(--rab-mono);
	font-size: 1.9cqw;
	font-weight: 600;
	letter-spacing: 0.3cqw;
}

.rab-dossier__fields {
	display: flex;
	flex-direction: column;
	gap: 0.8cqw;
	font-family: var(--rab-mono);
	font-size: 1.8cqw;
	font-weight: 500;
	letter-spacing: 0.15cqw;
	color: var(--rab-slate);
	text-transform: uppercase;
}

.rab-dossier__title {
	font-size: 7.2cqw;
	line-height: 0.9;
	font-weight: 900;
	font-stretch: 70%;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.rab-dossier__opening {
	font-family: var(--rab-serif);
	font-size: 2.3cqw;
	line-height: 1.5;
	color: var(--rab-ink-soft);
}

.rab-dossier__lines {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 1.3cqw;
}

.rab-dossier__line {
	display: block;
	width: 100%;
	height: 1.1cqw;
	background: var(--wp--custom--color--skeleton);
	border-radius: 0.3cqw;
}

.rab-dossier__line--92 { width: 92%; }
.rab-dossier__line--70 { width: 70%; }
.rab-dossier__line--30 { width: 30%; }
.rab-dossier__line--24 { width: 24%; }

.rab-dossier__redacted {
	display: flex;
	align-items: center;
	gap: 1cqw;
}

.rab-dossier__bar {
	height: 2.2cqw;
	width: 34%;
	background: var(--rab-ink);
	transform: rotate(-0.8deg);
}

.rab-dossier__sticky {
	position: absolute;
	left: 73%;
	top: 1%;
	width: 25%;
	aspect-ratio: 1 / 1;
	padding: 3cqw;
	background: var(--rab-yellow);
	box-shadow: var(--shadow-lift);
	color: var(--rab-ink);
	font-family: var(--rab-marker);
	font-size: 3.8cqw;
	line-height: 1.15;
	transform: rotate(5deg);
}

.rab-dossier__polaroid {
	position: absolute;
	left: 57%;
	top: 60%;
	width: 36%;
	padding: 2cqw 2cqw 0;
	border-radius: 0.4cqw;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 0 14px 24px -8px rgba(0, 0, 0, 0.55);
	transform: rotate(-6deg);
}

.rab-dossier__polaroid .rab-polaroid__placeholder {
	padding: 2cqw;
	font-size: 1.8cqw;
	letter-spacing: 0.2cqw;
}

.rab-dossier__polaroid .rab-polaroid__caption {
	padding: 2.2cqw 0 2.6cqw;
	font-size: 3.6cqw;
}

.rab-dossier__polaroid .rab-polaroid__clip {
	top: -4.6cqw;
	right: 5cqw;
	width: 4cqw;
	height: 10.7cqw;
}

.rab-dossier__polaroid .rab-clip path {
	stroke: var(--wp--custom--color--clip-light);
}

.rab-dossier__stamp {
	position: absolute;
	left: 1%;
	top: 66%;
	width: 26cqw;
	height: 26cqw;
	transform: rotate(-14deg);
}

/* ---------- Cork board ---------- */

.rab-cork {
	padding: 14px;
	background: var(--wp--custom--color--cork-frame);
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 3px rgba(22, 24, 29, 0.25), 0 30px 46px -24px rgba(22, 24, 29, 0.6);
}

.rab-cork__board {
	position: relative;
	aspect-ratio: 640 / 460;
	container-type: inline-size;
	overflow: hidden;
	background: var(--rab-cork);
	border-radius: 4px;
	box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4);
}

.rab-cork__board::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--rab-cork-grain);
	opacity: 0.55;
	mix-blend-mode: multiply;
}

.rab-cork__card {
	position: absolute;
	left: 6%;
	top: 9%;
	width: 54%;
	padding: 3.2cqw 3.6cqw 3.6cqw;
	background-color: var(--rab-sheet);
	background-image:
		linear-gradient(to bottom, transparent 9.6cqw, var(--rab-index-red) 9.6cqw, var(--rab-index-red) 9.9cqw, transparent 9.9cqw),
		repeating-linear-gradient(to bottom, transparent 0, transparent 4.1cqw, var(--rab-index-blue) 4.1cqw, var(--rab-index-blue) 4.4cqw);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 10px 16px -6px rgba(0, 0, 0, 0.5);
	color: var(--rab-ink);
	transform: rotate(-2.5deg);
}

.rab-cork__card-head {
	display: flex;
	justify-content: space-between;
	font-family: var(--rab-mono);
	font-size: 2.1cqw;
	font-weight: 600;
	letter-spacing: 0.3cqw;
	line-height: 4.4cqw;
	color: var(--rab-burnt);
}

.rab-cork__rows {
	display: flex;
	flex-direction: column;
	margin-top: 1.2cqw;
}

.rab-cork__row {
	display: flex;
	align-items: baseline;
	gap: 1.6cqw;
	line-height: 4.4cqw;
}

.rab-cork__key {
	flex: none;
	width: 15cqw;
	font-family: var(--rab-mono);
	font-size: 1.9cqw;
	font-weight: 600;
	letter-spacing: 0.2cqw;
	color: var(--rab-slate);
}

.rab-cork__value {
	font-family: var(--rab-marker);
	font-size: 3cqw;
}

.rab-cork__polaroid {
	position: absolute;
	left: 66%;
	top: 13%;
	width: 27%;
	padding: 1.6cqw 1.6cqw 0;
	background: var(--wp--custom--color--polaroid);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 10px 16px -6px rgba(0, 0, 0, 0.5);
	transform: rotate(5deg);
}

.rab-cork__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 1.6cqw;
	background: var(--wp--custom--color--photo-dim);
	text-align: center;
	font-family: var(--rab-mono);
	font-size: 1.7cqw;
	font-weight: 600;
	letter-spacing: 0.2cqw;
	color: var(--rab-slate);
}

.rab-cork__caption {
	display: block;
	padding: 1.6cqw 0 2cqw;
	text-align: center;
	font-family: var(--rab-marker);
	font-size: 2.6cqw;
	color: var(--rab-ink);
}

.rab-cork__sticky {
	position: absolute;
	left: 63%;
	top: 63%;
	width: 28%;
	aspect-ratio: 1 / 1;
	padding: 2.4cqw;
	background: var(--rab-yellow);
	box-shadow: var(--shadow-lift);
	color: var(--rab-ink);
	font-family: var(--rab-marker);
	font-size: 2.7cqw;
	line-height: 1.2;
	transform: rotate(-4deg);
}

.rab-cork__tape {
	position: absolute;
	left: 7%;
	top: 78%;
	padding: 1.2cqw 2.4cqw;
	background: var(--rab-ink);
	border-radius: 0.3cqw;
	box-shadow: inset 0 0.2cqw 0 rgba(255, 255, 255, 0.12), 0 6px 10px -4px rgba(0, 0, 0, 0.6);
	color: var(--rab-page);
	font-family: var(--rab-mono);
	font-size: 2cqw;
	font-weight: 600;
	letter-spacing: 0.25cqw;
	white-space: nowrap;
	transform: rotate(-1.5deg);
}

.rab-cork__string {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	color: var(--wp--custom--color--string);
}

.rab-cork__pin {
	fill: var(--rab-orange);
}

/* ---------- Form RA-1 ---------- */

.rab-form {
	position: relative;
	padding: 64px 8px 12px;
}

.rab-form__aside {
	position: absolute;
	top: 0;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	gap: 6px;
	color: var(--rab-burnt);
	font-family: var(--rab-marker);
	font-size: 32px;
	line-height: 1;
	transform: rotate(-6deg);
}

.rab-form__aside svg {
	flex: none;
	width: 44px;
	height: 54px;
	margin-bottom: -40px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rab-form__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: clamp(24px, 3.4vw, 40px);
	background: var(--rab-sheet);
	color: var(--rab-ink);
	box-shadow: 0 1px 1px rgba(22, 24, 29, 0.12), 0 8px 16px -4px rgba(22, 24, 29, 0.2), 0 30px 46px -22px rgba(22, 24, 29, 0.45);
	transform: rotate(1.2deg);
}

.rab-form__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 20px;
	padding-bottom: 14px;
	border-bottom: 3px solid var(--rab-ink);
}

.rab-form__title {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rab-form__code {
	font-family: var(--rab-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
}

.rab-form__name {
	font-size: 40px;
	line-height: 0.95;
	font-weight: 900;
	font-stretch: 70%;
	text-transform: uppercase;
}

.rab-form__page,
.rab-form__field span {
	font-family: var(--rab-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--rab-slate);
}

.rab-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rab-form__field i {
	display: block;
	height: 26px;
	border-bottom: 1.5px solid var(--rab-ink);
}

.rab-form__boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	font-family: var(--rab-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
}

.rab-form__boxes span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.rab-form__boxes i {
	width: 16px;
	height: 16px;
	border: 2px solid var(--rab-ink);
}

.rab-form__office {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	border: 2px dashed var(--wp--custom--color--clip);
	font-family: var(--rab-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--rab-slate);
}

.rab-form__pending {
	display: inline-block;
	padding: 6px 14px;
	border: 3px solid var(--rab-orange);
	border-radius: 4px;
	color: var(--rab-orange);
	font-family: var(--rab-sans);
	font-size: 22px;
	line-height: 1;
	font-weight: 900;
	font-stretch: 72%;
	letter-spacing: 1px;
	opacity: 0.9;
	transform: rotate(-6deg);
}

/* ---------- Step cards (How a case gets filed) ---------- */

.rab-how-card,
.rab-form {
	line-height: normal;
}

.rab-how-card {
	position: relative;
	width: 100%;
	background: var(--rab-sheet);
	color: var(--rab-ink);
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35), 0 12px 22px -6px rgba(0, 0, 0, 0.55);
}

.rab-how-card--tell {
	display: flex;
	gap: 12px;
	padding: 18px;
	border-radius: 10px;
	transform: rotate(-2deg);
}

.rab-how-card__avatar {
	flex: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--rab-orange);
	font-size: 20px;
	font-weight: 900;
	font-stretch: 70%;
}

.rab-how-card__msg {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rab-how-card__who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.rab-how-card__who b {
	font-size: 15px;
	font-weight: 800;
}

.rab-how-card__who span {
	font-family: var(--rab-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--rab-slate);
}

.rab-how-card__text {
	font-family: var(--rab-serif);
	font-size: 16px;
	line-height: 1.45;
}

.rab-how-card__chip {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1.5px solid var(--rab-ink);
	border-radius: 999px;
	font-family: var(--rab-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
}

.rab-how-card__chip svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: var(--rab-ink);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rab-how-card--scrub {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 24px;
	font-family: var(--rab-mono);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	transform: rotate(1.5deg);
}

.rab-how-card__field {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rab-how-card__field > span {
	flex: none;
	width: 92px;
	color: var(--rab-slate);
}

.rab-how-card__field i {
	height: 15px;
	background: var(--rab-ink);
}

.rab-how-card__field .rab-w62 { width: 62%; transform: rotate(-0.6deg); }
.rab-how-card__field .rab-w22 { width: 22%; transform: rotate(0.8deg); }
.rab-how-card__field .rab-w78 { width: 78%; transform: rotate(-0.4deg); }

.rab-how-card__field b {
	padding: 2px 8px;
	background: var(--rab-yellow);
	font-weight: 600;
}

.rab-how-card--filed {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 24px 26px;
	transform: rotate(-1deg);
}

.rab-how-card__sign {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 62%;
}

.rab-how-card__sign span {
	font-family: var(--rab-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: var(--rab-slate);
}

.rab-how-card__sign b {
	padding-bottom: 4px;
	border-bottom: 1.5px solid var(--rab-ink);
	font-family: var(--rab-marker);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.1;
}

.rab-how-card__stamp {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 116px;
	height: 116px;
	margin-top: -58px;
	transform: rotate(-12deg);
	mix-blend-mode: multiply;
}
