/* rdo record: /object/obj-N/.
   ≥900: image | info side by side; below: everything stacks. */

.rdo-record {
	--line: rgba(42, 59, 40, 0.14);
	--muted: rgba(42, 59, 40, 0.68);
	--ink: rgba(42, 59, 40, 0.55); /* swatch lines and dots */
	padding-top: 28px;
	padding-bottom: 96px;
}

/* ---------- top: image | info ---------- */

.rdo-record__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	margin-top: 28px;
}
@media (min-width: 900px) {
	.rdo-record__top {
		grid-template-columns: minmax(0, 52fr) minmax(0, 40fr);
		gap: 48px;
		align-items: start;
	}
	.rdo-record__media { position: sticky; top: 24px; }
}

.rdo-record__img { width: 100%; }
.rdo-record__img .rdo-panel__label { font-size: 13px; right: 16px; bottom: 14px; }

.rdo-record__meta {
	display: flex;
	gap: 14px;
	margin: 0;
	font-size: 14px;
}
.rdo-record__obj { color: var(--seokchung); }
.rdo-record__maker:hover { color: var(--straw-link); }

.rdo-record__title {
	margin: 8px 0 0;
	font-family: var(--font-title);
	font-weight: var(--font-title-weight);
	font-style: var(--font-title-style);
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.12;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.rdo-record__desc {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.65;
	max-width: 36em;
}
.rdo-record__desc p { margin: 0 0 0.8em; }

/* ---------- specimen card ---------- */

.rdo-specimen {
	margin-top: 28px;
	padding: 18px 20px 8px;
	border: 1px solid rgba(42, 59, 40, 0.28);
}
.rdo-specimen__title {
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 1px dashed rgba(42, 59, 40, 0.35);
	font-size: 13px;
	font-weight: inherit;
	color: var(--muted);
}
.rdo-specimen dl { margin: 0; font-size: 15px; }
.rdo-specimen dl div {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}
.rdo-specimen dl div:last-child { border-bottom: 0; }
.rdo-specimen dt { color: var(--muted); }
.rdo-specimen dd { margin: 0; }

/* ---------- catalogue block (instead of a buy row) ---------- */

/* ---------- variant picker (R13, Mode A groups) ----------
   JS: radios (.rdo-picker). No JS: a plain list (.rdo-picker-list). */

html:not(.rdo-js) .rdo-picker,
html.rdo-js .rdo-picker-list { display: none; }

.rdo-picker { margin-top: 28px; }
.rdo-picker__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.rdo-picker__legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 14px;
	color: var(--muted);
}
.rdo-picker__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.rdo-picker__opt {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 22px;
	font-size: 15px;
	cursor: pointer;
}
.rdo-picker__opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.rdo-picker__opt:hover { border-color: var(--seokchung); }
.rdo-picker__opt:has(input:checked) {
	border-color: var(--wakatake);
	background: var(--wakatake);
	color: var(--mist);
}
.rdo-picker__opt:has(input:focus-visible) {
	outline: 2px solid var(--seokchung);
	outline-offset: 2px;
}
.rdo-picker__price { color: var(--muted); font-size: 13px; }
.rdo-picker__opt:has(input:checked) .rdo-picker__price { color: inherit; }
.rdo-picker__desc {
	min-height: 1.5em;
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.5;
}

.rdo-picker-list { margin-top: 28px; }
.rdo-picker-list__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: inherit;
	color: var(--muted);
}
.rdo-picker-list ul { margin: 0; padding: 0; list-style: none; }
.rdo-picker-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
	font-size: 15px;
}
.rdo-picker-list__desc {
	flex-basis: 100%;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.rdo-where { margin-top: 28px; }
.rdo-where p { margin: 0; }
.rdo-where__price { font-size: 28px; line-height: 1.2; }
.rdo-where .rdo-where__note { margin-top: 8px; font-size: 15px; }
.rdo-where .rdo-where__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin-top: 12px;
}
.rdo-where__links a {
	display: inline-block;
	padding: 6px 0;
	color: var(--straw-link);
	font-size: 15px;
}
.rdo-where__links a:hover { color: var(--wakatake); }

/* ---------- full-width sections ---------- */

.rdo-actual,
.rdo-variants,
.rdo-more { margin-top: 72px; }

/* ---------- the page, at actual size ----------
   CSS mm is 96/25.4 px, so 5mm = 18.9 px: true to size at 100% zoom on
   screens whose devices report a standard CSS pixel. */

.rdo-swatch {
	--pitch: 5mm;
	width: 60mm;
	height: 40mm;
	max-width: 100%;
	margin-top: 20px;
	background-color: #FBFAF7;
	border: 1px solid rgba(42, 59, 40, 0.22);
	background-origin: border-box;
}
.rdo-swatch--grid {
	background-image:
		linear-gradient(to right, var(--ink) 1px, transparent 1px),
		linear-gradient(to bottom, var(--ink) 1px, transparent 1px);
	background-size: var(--pitch) var(--pitch);
}
.rdo-swatch--dot {
	background-image: radial-gradient(circle at center, var(--ink) 0.3mm, transparent 0.38mm);
	background-size: var(--pitch) var(--pitch);
}
.rdo-swatch--ruled {
	background-image: linear-gradient(to bottom, transparent calc(var(--pitch) - 1px), var(--ink) calc(var(--pitch) - 1px));
	background-size: 100% var(--pitch);
}
.rdo-actual__caption {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--muted);
}

/* ---------- variants ---------- */

.rdo-variants__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.rdo-variants__table th,
.rdo-variants__table td {
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-weight: inherit;
	vertical-align: baseline;
}
.rdo-variants__table thead th {
	padding-top: 10px;
	padding-bottom: 8px;
	font-size: 13px;
	color: var(--muted);
}
.rdo-variants__table .rdo-num { text-align: right; padding-right: 0; }
.rdo-variants__name {
	font-family: var(--font-title);
	font-style: var(--font-title-style);
	font-size: 18px;
	letter-spacing: 0;
}
a.rdo-variants__name:hover { color: var(--straw-link); }
.rdo-variants__table tr.is-current { background: rgba(42, 59, 40, 0.05); }
.rdo-variants__this { margin-left: 8px; font-size: 12px; color: var(--seokchung); }

/* ---------- more from {maker}: contact-sheet cards (as in the register) ---------- */

.rdo-cards {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 28px 20px;
	margin: 24px 0 0;
	padding: 0;
}
.rdo-card__link {
	display: grid;
	gap: 2px;
	font-size: 13px;
}
.rdo-card__img { margin-bottom: 10px; }
.rdo-card__link:hover .rdo-card__img { outline: 1px solid var(--wakatake); }
.rdo-card__obj { color: var(--seokchung); }
.rdo-card__title {
	font-family: var(--font-title);
	font-weight: var(--font-title-weight);
	font-style: var(--font-title-style);
	font-size: 17px;
	line-height: 1.3;
	letter-spacing: 0;
}
.rdo-card__link:hover .rdo-card__title { color: var(--straw-link); }
.rdo-card__spec { color: var(--muted); }
.rdo-card__spec:empty { display: none; }
.rdo-card__price { margin-top: 4px; }

/* ---------- small screens ---------- */

@media (max-width: 699.98px) {
	.rdo-record { padding-top: 20px; }
	.rdo-record__top { margin-top: 18px; gap: 24px; }
	.rdo-actual,
	.rdo-variants,
	.rdo-more { margin-top: 56px; }
	.rdo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	.rdo-variants__table th,
	.rdo-variants__table td { padding-right: 8px; }
}

.rdo-record__img [hidden] { display: none; }
.rdo-record__pictured {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--muted);
}
.rdo-specimen[hidden],
.rdo-actual[hidden] { display: none; } /* a variant without a card or a drawable ruling (R13) */

/* R15: photo thumbnails under the main image (record.js swaps it). */
.rdo-record__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.rdo-record__thumb {
	display: block;
	width: 64px;
	height: 80px;
	padding: 4px;
	box-sizing: border-box;
	background: var(--panel);
	border: 1px solid transparent;
}
.rdo-record__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.rdo-record__thumb:hover { border-color: rgba(42, 59, 40, .25); }
.rdo-record__thumb[aria-current="true"] { border-color: var(--seokchung); }
.rdo-record__thumb:focus-visible { outline: 2px solid var(--seokchung); outline-offset: 2px; }
@media (max-width: 399px) {
	.rdo-record__thumb { width: 56px; height: 70px; } /* five fit one row at 375 px */
}

/* R16: the main image links to the full upload; record.js opens the lightbox. */
.rdo-record__zoom {
	position: absolute;
	inset: 0;
	display: block;
	cursor: zoom-in;
}
.rdo-record__zoom:focus-visible { outline: 2px solid var(--seokchung); outline-offset: 2px; }
.rdo-record__hint {
	position: absolute;
	left: 12px;
	bottom: 10px;
	padding: 2px 8px;
	font-size: 12px;
	color: var(--muted);
	background: rgba(242, 240, 245, .85);
	pointer-events: none;
}
@media (hover: none) {
	.rdo-record__hint { display: none; } /* touch-only devices */
}

/* R16: photo lightbox (record.js). */
html.rdo-lb-open { overflow: hidden; }
.rdo-lb {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	background: rgba(242, 240, 245, .97);
	color: var(--wakatake);
}
.rdo-lb[hidden] { display: none; }
.rdo-lb button {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.rdo-lb button:focus-visible { outline: 2px solid var(--seokchung); outline-offset: 2px; }
.rdo-lb button[hidden] { display: none; }
.rdo-lb__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px 6px 20px;
}
.rdo-lb__count { margin: 0; font-size: 14px; }
.rdo-lb__close { font-size: 22px; color: var(--straw-link); }
.rdo-lb__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.rdo-lb .rdo-lb__shot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
	touch-action: manipulation;
}
.rdo-lb__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 92vw;
	max-height: 86vh;
	filter: drop-shadow(8px 14px 14px rgba(42, 59, 40, .2));
	transition: transform .25s ease;
}
.rdo-lb.is-zoomed .rdo-lb__shot { cursor: zoom-out; touch-action: none; }
.rdo-lb.is-zoomed .rdo-lb__img { transform: scale(2.4); }
.rdo-lb .rdo-lb__nav {
	position: absolute;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	background: rgba(242, 240, 245, .9);
	font-size: 20px;
}
.rdo-lb__nav--prev { left: 12px; }
.rdo-lb__nav--next { right: 12px; }
@media (prefers-reduced-motion: reduce) {
	.rdo-lb__img { transition: none; }
}
