/* Class label generator. Shares the ID generator's form, type, and print isolation
   (page-labels.css) and only adds the 185 × 60 mm nameplate. */

.form-card,
.roster-card { background: #fff; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { font-family: var(--sans); font-weight: 500; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.seg button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg button:hover { border-color: var(--ink); }

.clabel { container-type: inline-size; aspect-ratio: 185 / 60; width: 100%; max-width: 560px; margin: 0 auto; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 2.8% 7%; box-shadow: 0 18px 40px -28px rgba(20, 24, 29, .5); }
.clabel-fit { width: 100%; min-width: 0; text-align: center; }
.clabel-main { font-weight: 700; letter-spacing: -0.035em; line-height: 0.92; color: var(--ink); white-space: nowrap; font-size: 20cqw; }
.clabel-sub { margin-top: 0.35em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink-2); white-space: nowrap; font-size: 6cqw; }
.clabel-sub:empty { display: none; }
.clabel .clabel-logo { display: block; height: 11cqw; width: auto; max-width: 70%; margin: 0.28em auto 0; object-fit: contain; object-position: center; }
.clabel .clabel-logo[hidden] { display: none; }

.logo-drop .thumb { width: 88px; height: 48px; background: var(--paper) center / contain no-repeat; }
.logo-clear { align-self: flex-start; margin-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.logo-clear:hover { color: var(--red); border-color: var(--red); }
.under-panel[hidden] { display: none; }

.for-list { display: flex; flex-direction: column; gap: 8px; }
.for-list label { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 10px; margin: 0; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.35; }
.for-list label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.for-list input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; accent-color: var(--ink); }
.for-list input:focus { outline: none; border: 0; box-shadow: none; background: transparent; }
.for-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.where { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.where:hover { color: var(--ink); }
.where-panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; align-items: end; }
.where-panel[hidden] { display: none; }
.where-panel figure { margin: 0; min-width: 0; }
.where-panel img { width: 100%; height: 210px; object-fit: contain; object-position: center bottom; background: #e9e5e2; border-radius: 10px; }
.where-panel figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.where-panel figcaption strong { display: block; font-weight: 600; color: var(--ink); }

.codeplate { width: 92px; height: 40px; flex-shrink: 0; border: 1px solid var(--ink); border-radius: 4px; background: #fff; display: grid; place-items: center; padding: 0 6px; overflow: hidden; }
.codeplate span { font-weight: 700; letter-spacing: -0.03em; font-size: 11px; white-space: nowrap; }

@media print {
	@page { size: A4 portrait; margin: 0; }
	.csheet { width: 210mm; height: 297mm; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12mm; padding-top: 14mm; page-break-after: always; }
	.csheet:last-child { page-break-after: auto; }
	.csheet .clabel { width: 185mm; height: 60mm; max-width: none; aspect-ratio: auto; margin: 0; box-shadow: none; border-radius: 0; padding: 3mm 8mm; }
}
