/* "See it on your wall" app (wall.html, wall/wall.js). Colors and fonts come from styles.css. */
.wall-app { max-width: 1400px; margin: 0 auto; padding: 24px 20px 40px; }
.wall-app [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* start screen */
.wall-start { max-width: 640px; margin: 24px auto 40px; text-align: center; }
.wall-start h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.wall-start .btns { justify-content: center; margin: 22px 0; }
.wall-picked { font-weight: 600; color: var(--pink-text); }
.wall-file { position: relative; overflow: hidden; cursor: pointer; }
.wall-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.wall-tips { text-align: left; max-width: 520px; margin: 0 auto; padding-left: 1.2em; color: var(--ink-soft); font-size: .95rem; }
.wall-tips li { margin: 6px 0; }

/* editor: photo on the left, steps on the right (stacked on phones and tablets) */
.wall-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.wall-stage { min-width: 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; background: var(--sand); }
.wall-stage canvas { display: block; touch-action: none; cursor: grab; box-shadow: 0 4px 18px rgba(29, 59, 111, .15); }
.wall-stage canvas:active { cursor: grabbing; }
.wall-panel { display: flex; flex-direction: column; gap: 14px; }
.wall-block { border: 1px solid var(--line); padding: 16px; background: #fff; }
.wall-block h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.wall-block .num { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--ink); color: #fff; font-size: .8rem; }
.wall-block .small, .wall-panel .small { font-size: .85rem; color: var(--ink-soft); margin: 6px 0; line-height: 1.5; }
.wall-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.wall-row .btn { padding: 10px 18px; }
.small-btn { font-size: .85rem; }
.wall-panel select, .wall-inch input { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); padding: 8px 10px; background: #fff; border-radius: 0; }
.wall-panel select { flex: 1; min-width: 0; }
.wall-inch { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; }
.wall-inch input { width: 76px; }
.wall-status { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: var(--teal-dark); }
.wall-status:empty { display: none; }
.wall-status.warn { color: var(--pink-text); }

.wall-piece { display: flex; gap: 12px; align-items: center; }
.wall-piece img { width: 64px; height: 64px; object-fit: contain; background: var(--sand); flex: none; }
.wall-piece strong { display: block; line-height: 1.3; }
.wall-piece .small { margin: 2px 0 0; display: block; }
.wall-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wall-sizes button, .wall-tabs button { font: inherit; font-size: .85rem; padding: 6px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; border-radius: 0; }
.wall-sizes button[aria-pressed="true"], .wall-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wall-custom { font-size: .9rem; }
.wall-custom .wall-inch input { width: 64px; }

.wall-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.wall-swatches button { width: 36px; height: 36px; border: 1px solid var(--line); cursor: pointer; border-radius: 0; }
.wall-swatches button[aria-pressed="true"] { outline: 3px solid var(--pink); outline-offset: 2px; }

/* artwork picker */
.wall-picker { width: min(960px, calc(100vw - 24px)); height: min(760px, calc(100vh - 40px)); padding: 0; border: 0; box-shadow: 0 20px 60px rgba(29, 59, 111, .35); color: var(--ink); }
.wall-picker[open] { display: flex; flex-direction: column; }
.wall-picker::backdrop { background: rgba(29, 59, 111, .45); }
.wall-picker-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wall-picker-head input { flex: 1; min-width: 180px; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); }
.wall-tabs { display: flex; gap: 4px; }
.wall-x { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--ink); cursor: pointer; }
.wall-grid { flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; align-content: start; }
.wall-grid button { display: flex; flex-direction: column; gap: 4px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.wall-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--sand); padding: 8px; transition: outline-color .15s; outline: 2px solid transparent; }
.wall-grid button:hover img, .wall-grid button:focus-visible img { outline-color: var(--pink); }
.wall-grid span { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.wall-grid small { font-size: .75rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .wall-editor { grid-template-columns: 1fr; gap: 16px; }
  .wall-app { padding: 16px 16px 32px; }
}
@media (max-width: 600px) {
  .wall-start { margin-top: 8px; }
  .wall-start .btns .btn { width: 100%; text-align: center; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 10px; }
  .wall-picker { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; }
}
.wall-frame { margin-top: 12px; }
.wall-frame > .small:first-child { display: block; margin: 0; font-weight: 600; color: var(--ink); }
.wall-frame .wall-sizes { margin-top: 6px; }
.small-sw { margin-top: 8px; }
.small-sw button { width: 30px; height: 30px; }

/* computers only: "best on your phone" with a code to scan (wall.js) */
.wall-phone { display: flex; gap: 18px; align-items: center; text-align: left; max-width: 560px; margin: 0 auto 22px; padding: 16px; border: 1px solid var(--line); background: var(--sand); }
.wall-phone strong { display: block; font-size: 1.02rem; }
.wall-phone p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.wall-phone .small { font-size: .82rem; }
.wall-qr { flex: none; width: 116px; height: 116px; background: #fff; }
.wall-qr svg { display: block; width: 100%; height: 100%; }
.wall-tilt { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wall-tilt .wall-row { margin-top: 0; }
.wall-tilt p.small:first-child { margin-top: 0; }
