/* Name tags: a grid of cut-out tags that fills the page height on A4 and Letter, or one folding desk tent. */
.nt{--c:#1F3A5F;--g:#E9A23B;--t:#fff;flex:1;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);height:calc(var(--ph) - 58mm);box-sizing:border-box;color:#111}
.nt-c-red{--c:#B3261E;--g:#F2B8B5}.nt-c-green{--c:#1E6B4A;--g:#9BD4B5}.nt-c-purple{--c:#4B2E83;--g:#C9B6EC}.nt-c-teal{--c:#0F6670;--g:#9ED9DE}.nt-c-black{--c:#222;--g:#bbb}
.nt-tag{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-width:0;overflow:hidden;outline:.25mm dashed #888;outline-offset:-.12mm;padding:3mm;box-sizing:border-box;text-align:center}
.nt-main{flex:1;display:flex;align-items:center;justify-content:center;gap:3mm;min-height:0}
.nt-name{font-size:26pt;font-weight:800;line-height:1.1;overflow-wrap:anywhere;min-width:0}
.nt-mid .nt-name{font-size:21pt}.nt-long .nt-name{font-size:16pt}
.nt-name:empty{align-self:flex-end;width:80%;border-bottom:.35mm solid #999;margin-bottom:5mm}
.nt-role{font-size:12pt;color:#333;padding-bottom:1mm}
.nt-head{font-size:11pt;font-weight:700;color:var(--c);padding-bottom:1mm;border-bottom:.4mm solid var(--g)}
.nt-foot{font-size:10pt;font-weight:700;color:var(--c)}
.nt-ic{flex:none;width:11mm;height:11mm}.nt-ic path{fill:var(--g);stroke:var(--c);stroke-width:4;stroke-linejoin:round}
/* Styles */
.nt-s-hello .nt-tag{padding:0;outline-style:solid;outline-color:var(--c);outline-width:.6mm;outline-offset:-1.5mm;border-radius:4mm}
.nt-s-hello .nt-tag{box-shadow:inset 0 0 0 2.5mm #fff}
.nt-s-hello .nt-band{background:var(--c);color:#fff;padding:2.5mm 2mm 2mm;margin:2.5mm 2.5mm 0;border-radius:3mm 3mm 0 0;display:flex;flex-direction:column;line-height:1.05}
.nt-s-hello .nt-band b{font-size:22pt;letter-spacing:.6mm}
[dir=rtl] .nt-s-hello .nt-band b{letter-spacing:0}
.nt-s-hello .nt-band span{font-size:11pt}
.nt-s-hello .nt-foot{background:var(--c);color:#fff;margin:0 2.5mm 2.5mm;padding:1.2mm;border-radius:0 0 3mm 3mm}
.nt-s-hello .nt-role{padding-bottom:2mm}
/* No tag padding in this style: keep long names and roles inside the inset cut line. */
.nt-s-hello .nt-main,.nt-s-hello .nt-role{padding-inline:4.5mm}
.nt-s-classic .nt-tag{box-shadow:inset 0 0 0 2.5mm #fff,inset 0 0 0 3.1mm var(--c),inset 0 0 0 4.2mm #fff,inset 0 0 0 4.6mm var(--g);padding:6mm}
.nt-s-playful .nt-tag{padding:5mm;background:radial-gradient(circle at 10% 14%,var(--g) 0 3.2mm,transparent 3.4mm),radial-gradient(circle at 92% 86%,var(--g) 0 4.5mm,transparent 4.7mm),radial-gradient(circle at 88% 12%,var(--c) 0 1.6mm,transparent 1.8mm),radial-gradient(circle at 8% 88%,var(--c) 0 1.6mm,transparent 1.8mm)}
.nt-s-playful .nt-tag::after{content:"";position:absolute;inset:3mm;border:.6mm dashed var(--c);border-radius:6mm;pointer-events:none}
.nt-s-playful .nt-name{color:var(--c)}
.nt-s-minimal .nt-tag{padding:4mm}.nt-s-minimal .nt-head{color:#111;border-color:#111}
.nt-s-minimal .nt-ic path{fill:none;stroke:#111}
/* Small labels */
.nt-small .nt-tag{padding:2mm}.nt-small .nt-name{font-size:17pt}.nt-small .nt-mid .nt-name{font-size:14pt}.nt-small .nt-long .nt-name{font-size:11pt}
.nt-small .nt-ic{width:7mm;height:7mm}.nt-small .nt-role,.nt-small .nt-head{font-size:9pt}
.nt-small.nt-s-hello .nt-band{padding:1mm}.nt-small.nt-s-hello .nt-band b{font-size:12pt}.nt-small.nt-s-hello .nt-band span{font-size:8pt}
.nt-small.nt-s-classic .nt-tag{padding:4mm}.nt-small.nt-s-playful .nt-tag{padding:4mm}
.nt-large .nt-name{font-size:34pt}.nt-large .nt-mid .nt-name{font-size:27pt}.nt-large .nt-long .nt-name{font-size:20pt}
/* Folding tent: landscape page cut in two halves, the top half upside down so both faces read after folding */
.nt-tent{grid-template-columns:1fr;grid-template-rows:1fr auto 1fr;height:calc(var(--ph) - 52mm)}
.nt-tent .nt-tag{outline:0}
.nt-tent .nt-flip{transform:rotate(180deg)}
.nt-tent .nt-name{font-size:54pt}.nt-tent .nt-mid .nt-name{font-size:44pt}.nt-tent .nt-long .nt-name{font-size:32pt}
.nt-tent .nt-role,.nt-tent .nt-head,.nt-tent .nt-foot{font-size:16pt}
.nt-tent .nt-ic{width:18mm;height:18mm}
.nt-tent.nt-s-hello .nt-band b{font-size:30pt}.nt-tent.nt-s-hello .nt-band span{font-size:15pt}
.nt-fold{border-top:.3mm dashed #666;height:0;position:relative}
.nt-fold span{position:absolute;inset-inline-start:2mm;top:-2.4mm;background:#fff;padding:0 1.5mm;font-size:8pt;color:#666}
.nt-name:empty{min-height:12mm}
/* School labels */
.nt-lines{display:flex;flex-direction:column;gap:1.5mm;font-size:10pt;text-align:start;padding:1mm 2mm 0}
.nt-lines span{display:flex;gap:2mm;align-items:flex-end}
.nt-lines i{flex:1;font-style:normal;font-weight:700;border-bottom:.3mm solid #777;min-height:5mm}
.nt-notebook .nt-name{font-size:20pt}.nt-notebook .nt-mid .nt-name{font-size:16pt}.nt-notebook .nt-long .nt-name{font-size:12pt}
.nt-notebook.nt-s-hello .nt-band{padding:1mm}.nt-notebook.nt-s-hello .nt-band b{font-size:13pt}.nt-notebook.nt-s-hello .nt-band span{font-size:8pt}
.nt-notebook .nt-ic{width:8mm;height:8mm}
.nt-bottle .nt-tag,.nt-pencil .nt-tag{flex-direction:row;align-items:center;gap:3mm}
.nt-bottle .nt-name{font-size:24pt}.nt-bottle .nt-head,.nt-bottle .nt-role{border:0;font-size:11pt;padding:0}
.nt-bottle.nt-s-hello .nt-tag{outline-offset:-1mm;box-shadow:none;padding:0 5mm}
.nt-pencil .nt-tag{padding:1mm 2mm;border-radius:0}
.nt-pencil .nt-name{font-size:11pt}.nt-pencil .nt-mid .nt-name{font-size:9pt}.nt-pencil .nt-long .nt-name{font-size:7.5pt}
.nt-pencil .nt-head,.nt-pencil .nt-role,.nt-pencil .nt-foot{display:none}
.nt-pencil .nt-ic{width:4.5mm;height:4.5mm}
.nt-pencil.nt-s-hello .nt-tag,.nt-pencil.nt-s-classic .nt-tag,.nt-pencil.nt-s-playful .nt-tag{box-shadow:none;background:none;outline:.25mm dashed #888;outline-offset:0;padding:1mm 2mm}
.nt-pencil.nt-s-playful .nt-tag::after{inset:1mm;border-width:.3mm;border-radius:2mm}
.nt-pencil .nt-tag::before{content:"";flex:none;width:3mm;height:3mm;border-radius:50%;background:var(--g)}
.nt-bottle.nt-s-classic .nt-tag{padding:3mm 8mm}
.nt-art{object-fit:contain}
/* Decorated label frames: the 720x300 art keeps its ratio inside the cut cell; text sits in the design's safe zone. */
.nt-framed .nt-tag{padding:1.2mm;container-type:size}
.nt-fb{position:relative;margin:auto;width:min(100cqw,240cqh);height:min(100cqh,41.667cqw);flex:none}
.nt-frimg{position:absolute;inset:0;width:100%;height:100%;display:block}
.nt-z{position:absolute;left:var(--zx);top:var(--zy);width:var(--zw);height:var(--zh);container-type:size;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2cqh;min-width:0;overflow:hidden;text-align:center}
.nt-framed .nt-name{font-size:min(46cqh,16cqw);color:#111;line-height:1.1;max-width:100%}
.nt-framed .nt-mid .nt-name{font-size:min(40cqh,11cqw)}.nt-framed .nt-long .nt-name{font-size:min(30cqh,7.6cqw)}
.nt-framed .nt-head,.nt-framed .nt-role{font-size:min(16cqh,6cqw);border:0;padding:0;color:#222;line-height:1.15;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nt-framed .nt-head{font-weight:700;color:var(--c)}
.nt-framed .nt-name:empty{align-self:center;width:85%;min-height:0;height:40cqh;margin:0}
.nt-framed .nt-lines{width:100%;padding:0;font-size:min(14cqh,5cqw)}
.nt-framed .nt-lines i{min-height:0}
.nt-tent.nt-framed .nt-tag{padding:4mm}
.nt-notebook.nt-framed .nt-z{gap:1cqh}
.nt-notebook.nt-framed .nt-name{font-size:min(30cqh,12cqw)}.nt-notebook.nt-framed .nt-mid .nt-name{font-size:min(26cqh,8.5cqw)}.nt-notebook.nt-framed .nt-long .nt-name{font-size:min(20cqh,5.6cqw)}
.nt-notebook.nt-framed .nt-lines{gap:1cqh;font-size:min(12cqh,4.5cqw)}
