/* The Emporium: the door on Home and the front (build 221). The design is work/emporium-door/HANDOFF.md, settled
   with Nikhil on November 19, 2026. A printed music catalog: paper, ink, large plain type, fine rules. Color comes
   from the six string colors, as one small disc beside an aisle's name, on the cat's stripes and on the sheet's edge.
   The sheet colors by type and ease and the three quiet moments come in later builds. */

/* ---------- The room ---------- */
.empty.in-emporium #fullList, .empty.in-emporium #startLogo, .empty.in-emporium #emptyHow, .empty.in-emporium .home-support,
.empty.in-emporium > h1, .empty.in-emporium .home-open, .empty.in-emporium > .fine, .empty.in-emporium #homeFind,
.empty.in-emporium .find-results, .empty.in-emporium .home-note, .empty.in-emporium .add-icon, .empty.in-emporium .empty-error,
.empty.in-emporium .song-shelves { display: none; }
.empty.in-emporium { display: block; width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; background: var(--tg-paper); text-align: left; }
.emporium-page { display: block; box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 12px 48px 24px; color: var(--ink); font-feature-settings: "tnum" 1; }
.emporium-page[hidden] { display: none; }
.emporium-page ::selection { background: var(--tg-selection); }
.emporium-page button, .e-door button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.emporium-page :focus-visible, .e-door :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.emporium-page h2, .emporium-page h3, .emporium-page p, .e-door h2, .e-door h3, .e-door p { margin: 0; }
.emporium-page input { caret-color: var(--accent); }

/* ---------- Shared small parts ---------- */
.disc { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--aisle); }
.icon.fwd { transform: scaleX(-1); } /* the back arrow, turned: an arrow opens a tab or a screen */
.emporium-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -4px; padding: 0 8px 0 4px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.emporium-page .emporium-back { color: var(--muted); }
.emporium-back .icon { width: 16px; height: 16px; }
.e-find { box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 380px; min-height: 48px; padding: 0 14px; border: 1px solid var(--tg-edge); border-radius: 8px; background: var(--tg-paper); color: var(--muted); cursor: text; }
.e-find .icon { flex: none; width: 16px; height: 16px; }
.e-find input { flex: 1 1 auto; min-width: 0; height: 42px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; }
.e-find input::placeholder { color: var(--muted); }
.e-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.e-find input::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; background: currentColor; opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.e-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.e-h span { color: var(--muted); font-weight: 500; }
.e-count { padding: 12px 0; color: var(--muted); font-size: 14px; }
.e-sign { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; } /* the app's own font (Nikhil, November 19) */

/* One tab as a line of type */
.e-line { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: baseline; gap: 12px; width: 100%; min-height: 48px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.e-line .disc { transform: translateY(-1px); }
.e-line .w { display: grid; gap: 2px; min-width: 0; }
.e-line strong { font-size: 16px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.e-line small { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* A row in Find's results */
.e-rows { display: grid; border-top: 1px solid var(--ink); }
.e-rowwrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; column-gap: 12px; border-bottom: 1px solid var(--line); }
.emporium-page .e-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 96px; align-items: baseline; column-gap: 14px; min-height: 60px; padding: 14px 0; }
.emporium-page .e-rowabout { align-self: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.e-row .ti { display: grid; gap: 3px; min-width: 0; }
.e-row strong { font-size: 17px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.e-row small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.35; }
.e-row small.mine { color: var(--ink); }
.e-row .lv { font-size: 14px; text-align: right; }
.e-results[hidden] { display: none; }
.emporium-page .e-row.no-dot { grid-template-columns: minmax(0, 1fr) 96px; }

/* ---------- One aisle ---------- */
.e-aisle { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 80px; align-items: start; }
.e-side { position: sticky; top: 0; display: grid; gap: 12px; justify-items: start; }
.e-name { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 52px; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.e-name .disc { width: 14px; height: 14px; }
.e-lede { color: var(--muted); font-size: 17px; line-height: 1.45; }
.e-nav { display: grid; width: 100%; margin-top: 24px; border-top: 1px solid var(--ink); }
.emporium-page .e-nav button { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.e-nav small { color: var(--muted); font-size: 13px; }
.emporium-page .e-nav [aria-current] { font-weight: 700; }
.e-nav [aria-current] small { color: var(--ink); }
.emporium-page .e-nav button:disabled { color: var(--muted); cursor: default; }
.e-main { min-width: 0; padding-top: 4px; }
.e-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 14px; }
.e-tools .e-find { width: 280px; }
.e-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.emporium-page .e-seg button { min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.e-seg small { font-size: 12px; font-weight: 500; }
.emporium-page .e-seg [aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
.emporium-page .e-seg button:disabled { opacity: 0.45; cursor: default; }
.e-group { margin: 36px 0 0; padding-bottom: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.e-list > .e-group:first-child { margin-top: 18px; }

/* ---------- A tab's About page ---------- */
.e-about { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); column-gap: 72px; row-gap: 36px; align-items: start; }
.e-words { display: grid; gap: 14px; justify-items: start; }
.e-title { margin-top: 8px; font-size: 42px; font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.e-facts { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.emporium-page .e-goal { max-width: 32em; margin: 6px 0; font-size: 18px; font-weight: 450; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.e-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.emporium-page .e-go { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 22px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.e-go .icon { width: 16px; height: 16px; }
.emporium-page .e-hear { display: inline-flex; align-items: center; gap: 8px; min-width: 148px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 600; }
.e-hear .icon { width: 16px; height: 16px; }
.emporium-page .e-hear[aria-pressed="true"] { background: var(--ink); color: var(--tg-paper); }
.e-hear[hidden], .e-strip[hidden], .e-neck[hidden] { display: none; }
.e-folds { justify-self: stretch; margin-top: 22px; border-top: 1px solid var(--ink); }
.e-fold { border-bottom: 1px solid var(--line); }
.e-fold summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.e-fold summary::-webkit-details-marker { display: none; }
.e-fold summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.e-fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.e-ledger { display: grid; grid-template-columns: 168px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.e-ledger dt, .e-ledger dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.e-ledger dt:last-of-type, .e-ledger dd:last-child { border-bottom: 0; }
.e-ledger dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.e-ledger dd { font-size: 15px; text-wrap: pretty; }
.e-plate { position: sticky; top: 0; display: grid; gap: 14px; min-width: 0; margin-top: 52px; padding-top: 12px; border-top: 1px solid var(--ink); }
.e-neck { overflow-x: auto; padding: 6px 0 2px; }
.neck { display: block; width: 100%; min-width: 330px; height: auto; }
.neck .str { stroke: var(--tg-edge); }
.neck .fret { stroke: var(--line); stroke-width: 1; }
.neck .nut { stroke: var(--ink); stroke-width: 3; }
.neck .fn { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.neck .hit { fill: transparent; }
.neck .dot { fill: var(--ink); transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1); transform-box: fill-box; transform-origin: center; }
.neck .dot.home { fill: var(--tg-home-note); }
.neck .dl { fill: var(--tg-paper); font-size: 10.5px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.neck .note { cursor: pointer; outline: 0; }
.neck .note:focus-visible .dot, .neck .note.sounding .dot { transform: scale(1.22); }
.neck .note:focus-visible .hit { stroke: var(--accent); stroke-width: 2; }
.neck .note.sounding .dot { fill: var(--tg-play); }
.tabstrip { display: block; width: 100%; height: auto; }
.tabstrip .str { stroke: var(--tg-score-staff); stroke-width: 1; }
.tabstrip rect { fill: var(--tg-paper); }
.tabstrip text { fill: var(--ink); font-size: 12px; font-weight: 600; text-anchor: middle; }
.tabstrip .sounding rect { fill: var(--tg-play); }
.tabstrip .sounding text { fill: var(--tg-paper); }
.e-last { min-height: 22px; font-size: 15px; font-weight: 600; }
.e-tip { display: grid; gap: 6px; max-width: 40em; color: var(--muted); font-size: 15px; line-height: 1.5; }
.e-tip p:first-child { color: var(--ink); }
.emporium-page .m-about { min-height: 44px; padding: 0 4px; color: var(--on); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--on-line); text-underline-offset: 4px; }

/* The logo's cat: the ears in ink, each stripe in one aisle's color. The stripes light low string to high, like one
   strum, when the front opens, and the stripe for the aisle under the pointer stays lit. */
.cat { flex: none; width: 60px; height: auto; }
.cat .ear { fill: var(--ink); }
.cat .st { fill: var(--aisle); transition: opacity 180ms ease-out; }
.cat .tail { fill: none; stroke: var(--aisle); stroke-width: 32; stroke-linecap: round; stroke-linejoin: round; }
@keyframes e-strum { from { opacity: 0.18; } to { opacity: 1; } }
.m-front .cat .st { animation: e-strum 380ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 60ms + 180ms); }
.m-front[data-hot="0"] .st:not([data-s="0"]), .m-front[data-hot="1"] .st:not([data-s="1"]), .m-front[data-hot="2"] .st:not([data-s="2"]),
.m-front[data-hot="3"] .st:not([data-s="3"]), .m-front[data-hot="4"] .st:not([data-s="4"]), .m-front[data-hot="5"] .st:not([data-s="5"]), .m-front[data-hot="6"] .st { opacity: 0.16; }

/* ---------- The sheet ---------- */
/* A colored block with a folded corner and the cat's six stripes as its printed edge. The words on a sheet stay light
   in both looks. Each aisle's hue and each level's shade come in a later build; until then every sheet is green. */
.m-sheet { --deep: #245c53; --on: #fdfcf8; --on-soft: rgba(253, 252, 248, 0.84); --on-line: rgba(253, 252, 248, 0.34);
  --sheet-ink: color-mix(in oklab, var(--deep), black 38%);
  position: relative; background: var(--deep); color: var(--on);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.m-sheet::before { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 28px; background: rgba(253, 252, 248, 0.3); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.m-sheet::after { content: ""; position: absolute; right: 0; bottom: 0; width: 96px; height: 6px;
  background: linear-gradient(90deg, var(--tg-string-6) 0 16.6%, var(--tg-string-5) 0 33.3%, var(--tg-string-4) 0 50%, var(--tg-string-3) 0 66.6%, var(--tg-string-2) 0 83.3%, var(--tg-string-1) 0); }
.m-sheet :focus-visible { outline-color: var(--on); }

/* ---------- The front ---------- */
.m-front { display: grid; }
.m-front > .emporium-back { justify-self: start; }
.m-signrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 14px; }
.m-signbox { display: flex; align-items: center; gap: 18px; min-width: 0; }
.m-signwords { display: flex; align-items: center; gap: 16px; min-width: 0; }
.m-front .e-sign { font-size: 40px; }

.m-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 56px; align-items: stretch; }
.m-top .m-sheet { display: grid; align-content: space-between; row-gap: 14px; padding: 14px 44px 28px; }
.m-sheettop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--on-line); font-size: 13px; }
.m-sheettop .m-speed { color: var(--on-soft); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.m-levels { display: flex; gap: 2px; margin-left: -12px; }
.emporium-page .m-levels button { min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--on-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.emporium-page .m-levels [aria-pressed="true"] { background: rgba(253, 252, 248, 0.18); color: var(--on); font-weight: 700; }
.emporium-page .m-levels button:disabled { opacity: 0.45; cursor: default; }
/* The name: a part before a colon sits small, and the rest sits large. A longer name steps down a size. */
.m-tune { display: grid; align-content: end; gap: 2px; min-height: 130px; margin: 0; font-weight: 700; }
.m-tune small { font-size: 25px; font-weight: 450; letter-spacing: -0.02em; line-height: 1.15; }
.m-tune span { font-size: 86px; line-height: 0.96; letter-spacing: -0.04em; margin-left: -4px; text-wrap: balance; }
.m-tune span[data-fit="b"] { font-size: 66px; }
.m-tune span[data-fit="c"] { font-size: 56px; }
.m-tune span[data-fit="d"] { font-size: 50px; line-height: 1; letter-spacing: -0.035em; margin-left: -2px; }
.emporium-page .m-sheetline { min-height: 1.4em; color: var(--on-soft); font-size: 17px; line-height: 1.4; }
.m-sheetacts { display: flex; align-items: center; gap: 22px; }
.emporium-page .m-open { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 22px; border-radius: 8px; background: var(--on); color: var(--sheet-ink); font-size: 15px; font-weight: 700; transition: transform 120ms ease-out; }
.m-open .icon { width: 16px; height: 16px; }

.m-side { display: grid; align-content: space-between; row-gap: 18px; min-width: 0; }
.emporium-page .m-go { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; width: 100%; padding: 14px 0 4px; }
.m-go .w { display: grid; gap: 4px; min-width: 0; }
.m-go strong { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.m-go small { color: var(--muted); font-size: 14px; }
.m-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform 120ms ease-out; }
.m-arrow .icon { width: 20px; height: 20px; }
.m-today .e-line:last-child { border-bottom: 0; }

.m-aisles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 20px; margin-top: 24px; }
.emporium-page .aisle-line { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 4px; padding: 12px 0 0; border-top: 1px solid var(--ink); }
.aisle-line .nm { display: flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; white-space: nowrap; }
.aisle-line .what { min-height: 2.7em; color: var(--muted); font-size: 13px; line-height: 1.35; }
.aisle-line .n { align-self: start; color: var(--muted); font-size: 32px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; transition: color 120ms ease-out; }
.aisle-line .n.soon { font-size: 15px; font-weight: 500; line-height: 32px; letter-spacing: 0; }
.emporium-page .aisle-line:disabled { cursor: default; }
.m-front.finding > :not(.emporium-back):not(.m-signrow):not(.e-results) { display: none; }

/* The instrument menu: guitar today, four instruments to come. */
.m-inst-pick { position: relative; }
.emporium-page .m-instrument { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--tg-edge); color: var(--ink); font-size: 14px; font-weight: 600; }
.m-instrument .icon { width: 14px; height: 14px; color: var(--muted); transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.m-instrument[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-instrument-menu { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: 232px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--tg-paper); box-shadow: 0 10px 28px -12px rgba(20, 30, 26, 0.38), 0 2px 6px -2px rgba(20, 30, 26, 0.16); }
.m-instrument-menu[hidden] { display: none; }
.m-instrument-menu ul { margin: 0; padding: 0; list-style: none; }
.m-instrument-menu li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.m-instrument-menu li.here { background: var(--off); color: var(--ink); font-weight: 600; }
.m-instrument-menu li.here .icon { width: 16px; height: 16px; color: var(--accent); }
.m-instrument-menu small { color: var(--muted); font-size: 13px; }

/* ---------- The door on Home ---------- */
/* A square sheet among Home's round cards (Nikhil, November 19), in TabbyGato's green for every student. */
.song-shelf.e-door { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 56px; padding: 22px 44px 24px 32px; border: 0; border-radius: 0; box-shadow: none; background: var(--deep); color: var(--on); text-align: left; }
.e-door .e-sign { font-size: 32px; line-height: 1.1; }
.e-door .d-offer { max-width: 420px; }
.e-door .e-h { padding-bottom: 4px; border-bottom-color: var(--on-line); }
.e-door .e-line { min-height: 44px; padding: 8px 0 0; border-bottom: 0; }
.e-door .e-line strong { color: var(--on); }
.e-door .e-line small { color: var(--on-soft); }
.e-door .e-line .disc { box-shadow: 0 0 0 1.5px var(--deep), 0 0 0 2.5px var(--on-line); }
.e-door .door-in { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 8px; background: var(--on); color: var(--sheet-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.e-door .door-in .icon { width: 16px; height: 16px; }

@media (pointer: coarse) {
  .emporium-page .m-levels button, .emporium-page .m-instrument, .emporium-page .e-seg button { min-height: 44px; }
  .emporium-page .m-instrument { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat .st, .m-instrument .icon, .emporium-page .m-open, .m-arrow, .aisle-line .n { transition: none; }
  .m-front .cat .st { animation: none; }
  .neck .dot { transition: none; }
  .neck .note:focus-visible .dot, .neck .note.sounding .dot, .neck .note:hover .dot { transform: none; }
}

/* ---------- Narrower windows ---------- */
@media (max-width: 1100px) {
  .m-top { column-gap: 32px; }
  .m-tune span { font-size: 72px; }
  .m-tune span[data-fit="b"] { font-size: 56px; } .m-tune span[data-fit="c"] { font-size: 48px; } .m-tune span[data-fit="d"] { font-size: 42px; }
  .m-aisles { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
  .e-aisle { column-gap: 48px; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .e-about { column-gap: 40px; }
  .song-shelf.e-door { column-gap: 28px; }
}
/* On a phone, Carry on sits above the sheet, and the aisles become seven full-width rows. */
@media (max-width: 760px) {
  .emporium-page { padding: 12px 20px 40px; }
  .m-front, .m-signrow { grid-template-columns: minmax(0, 1fr); }
  .m-signrow { display: grid; gap: 12px; }
  .m-signwords { display: grid; justify-items: start; gap: 8px; }
  .m-signbox .cat { order: 2; width: 50px; margin-left: auto; }
  .m-front .e-sign { font-size: 34px; }
  .e-find { width: 100%; }
  .m-top { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .m-side { display: contents; }
  .m-carry { order: -1; }
  .m-go strong { font-size: 21px; }
  .emporium-page .m-go { padding: 10px 0 0; }
  .m-arrow { width: 44px; height: 44px; }
  .m-top .m-sheet { padding: 16px 22px 26px; row-gap: 12px; }
  .m-sheettop { flex-wrap: wrap; gap: 0 8px; }
  .m-sheettop .m-speed { flex-basis: 100%; padding: 2px 0 4px; }
  .emporium-page .m-levels button { padding: 0 8px; }
  .m-tune { min-height: 96px; }
  .m-tune small { font-size: 19px; }
  .m-tune span { font-size: 50px; margin-left: -2px; }
  .m-tune span[data-fit="b"] { font-size: 40px; } .m-tune span[data-fit="c"] { font-size: 34px; } .m-tune span[data-fit="d"] { font-size: 34px; }
  .emporium-page .m-sheetline { min-height: 2.8em; font-size: 15px; }
  .m-aisles { grid-template-columns: minmax(0, 1fr); margin-top: 26px; border-bottom: 1px solid var(--ink); }
  .emporium-page .aisle-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-height: 64px; padding: 10px 0; }
  .aisle-line .nm { font-size: 22px; }
  .aisle-line .what { min-height: 0; }
  .aisle-line .n { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 28px; }
  .emporium-page .e-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .emporium-page .e-row.no-dot { grid-template-columns: minmax(0, 1fr) auto; }
  .e-aisle, .e-about { grid-template-columns: minmax(0, 1fr); }
  .e-about { row-gap: 14px; }
  .e-words { display: contents; }
  .e-words > * { order: 1; justify-self: start; }
  .e-plate { order: 2; position: static; margin-top: 0; }
  .e-words > .e-folds { order: 3; justify-self: stretch; margin-top: 0; }
  .e-title { font-size: 30px; }
  .emporium-page .e-goal { font-size: 16px; margin: 6px 0 4px; }
  .e-ledger { grid-template-columns: minmax(0, 1fr); }
  .e-ledger dt { padding: 12px 0 0; border-bottom: 0; font-size: 13px; }
  .e-ledger dd { padding: 2px 0 12px; font-size: 15px; }
  .emporium-page .e-rowabout { padding: 0 6px; }
  .e-side { position: static; }
  .e-name { font-size: 40px; }
  .e-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin-top: 12px; }
  .e-main { margin-top: 28px; }
  .e-tools .e-find { width: 100%; }
  .e-seg { gap: 0; flex-wrap: nowrap; margin-left: -7px; }
  .emporium-page .e-seg button { padding: 0 7px; font-size: 13px; }
  .e-seg small { font-size: 11px; }
  /* Two columns of aisles: each count sits under its aisle's name, so a long name never meets "Coming soon". */
  .emporium-page .e-nav button { grid-template-columns: 10px minmax(0, 1fr); row-gap: 0; min-height: 52px; padding: 6px 0; }
  .e-nav button small { grid-column: 2; }
  .song-shelf.e-door { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 20px 20px 24px; }
  .e-door .e-sign { font-size: 28px; }
  .e-door .door-in { justify-self: start; }
}

/* Hover looks belong to a mouse. A phone keeps a tapped control in its hover look, so a touch screen skips them. */
@media (hover: hover) {
  .emporium-page .emporium-back:hover { color: var(--ink); }
  .e-line:hover strong, .e-row:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  .e-nav button:hover:not(:disabled) span { text-decoration: underline; text-underline-offset: 3px; }
  .emporium-page .e-seg button:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
  .emporium-page .m-levels button:hover:not(:disabled) { background: rgba(253, 252, 248, 0.1); color: var(--on); }
  .m-go:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .aisle-line:hover:not(:disabled) .n { color: var(--ink); }
  .aisle-line:hover:not(:disabled) .nm { text-decoration: underline; text-decoration-color: var(--aisle); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .emporium-page .m-instrument:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink); }
  .e-door .door-in:hover { background: #fff; }
  .emporium-page .e-rowabout:hover, .emporium-page .e-hear:not([aria-pressed="true"]):hover { background: var(--hover); color: var(--ink); }
  .e-fold summary:hover { text-decoration: underline; text-underline-offset: 3px; }
  .emporium-page .m-about:hover { text-decoration-color: var(--on); }
}
.aisle-line:focus-visible .n { color: var(--ink); }
.emporium-page .m-instrument[aria-expanded="true"] { background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .m-open:hover { transform: translateY(-1px); }
  .m-go:hover .m-arrow { transform: scale(1.06); }
  .neck .note:hover .dot { transform: scale(1.22); }
}
