/* Embroidery file viewer: only what site.css and learn.css do not already provide. */
.viewer { padding-top: 8px; }
.viewer-drop { display: grid; gap: 12px; justify-items: start; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 24px; background: var(--bg-card); }
.viewer-drop.dragging { border-color: var(--gold); background: rgba(242, 179, 91, .07); }
.viewer-drop label { padding: 0; font: 600 20px/1.3 var(--serif); cursor: default; }
.viewer-drop input[type=file] { font: inherit; font-size: 16px; color: var(--text); max-width: 100%; }
.viewer-drop input[type=file]::file-selector-button { font: 600 16px/1.1 var(--sans); background: var(--gold); color: var(--gold-ink); border: 0; border-radius: 999px; padding: 12px 20px; margin-right: 14px; cursor: pointer; }
.viewer-drop input[type=file]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.viewer-drop p { margin: 0; color: var(--muted); font-size: 15px; }
.viewer-status { min-height: 1.5em; margin: 16px 0 0; }
.viewer-status.viewer-error { color: #f3a08e; }   /* coral lightened to 7.7:1 on --bg */
.viewer-results { margin-top: 20px; }
.viewer-results h2 { overflow-wrap: anywhere; }
.viewer-preview { margin: 18px 0 0; }
.viewer-preview canvas { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 14px; }
.viewer-preview figcaption { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 10px; color: var(--muted); font-size: 15px; }
.viewer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 22px; }
.viewer-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 18px; margin: 0; }
.viewer-stats dt { color: var(--muted); font-size: 14px; }
.viewer-stats dd { margin: 2px 0 0; font: 600 20px/1.25 var(--serif); overflow-wrap: anywhere; }
.viewer-colors { list-style: none; padding: 0; margin: 12px 0 0; max-height: 340px; overflow: auto; }
.viewer-colors li { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: 15px; overflow-wrap: anywhere; }
.swatch { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); }
.viewer table { min-width: 0; }
.viewer tbody th { color: var(--text); font-size: 14.5px; font-weight: 600; text-transform: none; letter-spacing: 0; background: var(--bg-card); }
.viewer .tablewrap { margin-top: 12px; }
.viewer td.y { color: var(--teal); } .viewer td.n { color: var(--muted); }
.learn .faq-list h3 { font-size: 21px; margin-top: 22px; }
