/* Name tag maker (/gifts/name-tags/): on top of the shared maker look (/gifts/globes/maker.css). */

.nt .nt-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.nt .wm-sec h2 + .nt-label { margin-top: 0; }
.nt .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.nt .wm-stagebar .wm-btn.active { background: var(--accent); color: #fff; }
.nt [hidden] { display: none !important; }
.nt textarea {
    width: 100%; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid transparent; border-radius: 8px;
    padding: 8px 10px; font: inherit; font-size: 0.88rem; resize: vertical;
}
.nt textarea:focus { outline: none; border-color: var(--accent); }
.nt .wm-field > span { line-height: 1.35; }
.nt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.nt-checks-row { flex-direction: row; gap: 18px; margin-top: 12px; }

/* uses */
.nt-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nt-use {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left;
    background: var(--field); border: 0; border-radius: 10px; color: var(--ink); font: inherit; padding: 9px 10px 8px; cursor: pointer;
}
.nt-use .bx { font-size: 1.25rem; color: var(--accent); }
.nt-use b { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.nt-use small { font-size: 0.7rem; color: var(--muted); line-height: 1.25; }
.nt-use:hover { background: #262b29; }
.nt-use[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgba(47, 165, 150, 0.12); }

/* fonts */
.nt-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nt-font {
    background: var(--field); border: 0; border-radius: 9px; color: var(--ink); cursor: pointer; padding: 7px 8px 6px; text-align: left; min-width: 0;
}
.nt-font b { display: block; font-size: 1.05rem; font-weight: inherit; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-font small { display: block; font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 0.68rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.nt-font:hover { background: #262b29; }
.nt-font[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* shapes */
.nt-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nt-shape {
    display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--field); border: 0; border-radius: 9px;
    color: var(--muted); font: inherit; font-size: 0.68rem; padding: 7px 4px 6px; cursor: pointer; min-width: 0; line-height: 1.15; text-align: center;
}
.nt-shape svg { width: 44px; height: 30px; }
.nt-shape svg path { fill: rgba(236, 238, 233, 0.16); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.nt-shape:hover { background: #262b29; color: var(--ink); }
.nt-shape[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.nt-shape[aria-pressed="true"] svg path { fill: rgba(47, 165, 150, 0.35); }

/* icons */
.nt-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.nt-icon {
    aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; background: var(--field); border: 0; border-radius: 8px;
    color: var(--ink); font-size: 1.25rem; cursor: pointer; padding: 0;
}
.nt-icon svg { width: 20px; height: 20px; fill: currentColor; }
.nt-icon:hover { background: #262b29; }
.nt-icon[aria-pressed="true"] { background: var(--accent); color: #fff; }
.nt-icon.none { font-size: 0.7rem; color: var(--muted); }

/* attachments */
.nt-attach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nt-att {
    display: flex; align-items: center; gap: 8px; background: var(--field); border: 0; border-radius: 9px; color: var(--ink);
    font: inherit; font-size: 0.8rem; padding: 7px 9px; cursor: pointer; text-align: left; line-height: 1.2; min-width: 0;
}
.nt-att svg { width: 30px; height: 22px; flex: none; }
.nt-att svg path { fill: rgba(236, 238, 233, 0.16); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.nt-att svg .h { fill: var(--panel); }
.nt-att:hover { background: #262b29; }
.nt-att[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* collapsible sections */
.nt-more > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.nt-more > summary::-webkit-details-marker { display: none; }
.nt-more > summary h2 { margin: 0; }
.nt-more > summary::after { content: "\203A"; margin-left: auto; color: var(--muted); font-size: 1.3rem; line-height: 1; transform: rotate(90deg); transition: transform 0.15s; }
.nt-more:not([open]) > summary::after { transform: rotate(0deg); }
.nt-more[open] > summary { margin-bottom: 12px; }
.nt-sum { font-size: 0.78rem; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* warnings */
.nt-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nt-warn:empty { display: none; }
.nt-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }

/* colours */
.nt-palettes .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.nt-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-lh { margin-top: 12px; }

/* many names */
.nt-batch { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.nt-batch:empty { display: none; }
.nt-batch li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--field); border-radius: 8px; padding: 5px 8px; font-size: 0.8rem; }
.nt-batch li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-batch li em { font-style: normal; color: var(--muted); font-size: 0.74rem; }
.nt-batch li.bad em { color: #ff9b8a; }
.nt-num { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 650; font-size: 0.7rem; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 560px) {
    .nt .wm-stagebar .wm-btn span { display: none; }
    .nt-uses, .nt-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nt-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nt-attach { grid-template-columns: minmax(0, 1fr); }
    .nt-colors { grid-template-columns: minmax(0, 1fr); }
}
