/* The Emporium's pages: tabbygato.com/emporium, its seven aisles and one page for each tab (November 20, 2026,
   chat + · 11-20-26 · Emporium pages on tabbygato.com). tools/website/build-emporium.mjs writes the pages.
   site.css and article.css load first; this file only adds. Each aisle wears its string's color as a small disc,
   the way the app's Emporium does, and the color never fills a control or a word. */

.site-nav a[aria-current="true"] { background: rgba(32, 38, 37, .07); }

/* The way back: The Emporium › Technique › Hammer-ons, small and quiet above the headline. */
.emp-crumbs { margin-bottom: 18px; }
.emp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--muted); }
.emp-crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--field); }
.emp-crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(74, 86, 79, .35); text-underline-offset: 4px; }
.emp-crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.emp-crumbs a, .emp-crumbs span { display: inline-block; padding-block: 4px; }

.emp-disc { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--aisle, var(--ink)); flex: none; }
.emp-hero h1 .emp-disc { width: .34em; height: .34em; margin-right: .3em; vertical-align: .14em; }
.emp-hero .hero-actions { margin-top: 28px; }
.emp-hero .button svg, .page-end .button svg, .article-body .button svg { width: 18px; height: 18px; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The facts sit first, as a short table a reader or an answer engine can quote. */
.emp-facts a { color: inherit; }

/* The neck, drawn as a still picture from the lesson file, the way the app's About page draws it. */
.emp-neck { margin-block: 32px 0; padding: 20px 20px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.emp-neck-scroll { overflow-x: auto; }
.emp-neck-svg { display: block; width: 100%; height: auto; margin-inline: auto; } /* each picture sets its own min-width, two thirds of its size (build-emporium.mjs) */
.emp-neck-svg .str { stroke: #8A998C; }
.emp-neck-svg .fret { stroke: var(--line); stroke-width: 1; }
.emp-neck-svg .nut { stroke: var(--ink); stroke-width: 3; }
.emp-neck-svg .fn { fill: var(--muted); font-size: 11px; text-anchor: middle; font-family: var(--text); }
.emp-neck-svg .dot { fill: var(--ink); }
.emp-neck-svg .dot.home { fill: #A2560A; }
.emp-neck-svg .dl { fill: var(--paper); font-size: 10.5px; font-weight: 700; text-anchor: middle; font-family: var(--text); }
.emp-neck figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.article-body .steps .emp-tip { display: block; margin-top: 6px; color: var(--muted); }

/* Chord grids: one small grid per chord, with the chord's name under it. */
.article-body .emp-chords { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 20px 28px; }
.article-body .emp-chords > li { list-style: none; display: grid; justify-items: center; gap: 6px; font-weight: 650; font-size: 16px; }
.emp-chord-svg { width: 112px; height: auto; overflow: visible; }
.emp-chord-svg line { stroke: var(--muted); stroke-width: 0.8; }
.emp-chord-svg line.nut { stroke: var(--ink); stroke-width: 2.4; }
.emp-chord-svg .dot, .emp-chord-svg .barre { fill: var(--ink); }
.emp-chord-svg .fg { fill: var(--paper); font-size: 6.6px; font-weight: 700; text-anchor: middle; font-family: var(--text); }
.emp-chord-svg .fr { fill: var(--muted); font-size: 6.5px; text-anchor: middle; font-family: var(--text); }
.emp-chord-svg .mark { fill: var(--muted); font-size: 8px; text-anchor: middle; font-family: var(--text); }
.emp-chord-svg .open { fill: none; stroke: var(--ink); stroke-width: 0.9; }

/* Short link lists: other tabs in the aisle, and the other aisles. */
/* Other tabs in the aisle sit one to a line, so a long name never pushes its level to the next line. The other
   aisles stay in one row, since their names are short. */
.article-body .emp-more { list-style: none; padding-left: 0; display: grid; gap: 4px; }
.article-body .emp-more > li { list-style: none; display: flex; align-items: baseline; gap: 10px; min-height: 32px; }
.article-body .emp-more.emp-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.article-body .emp-more.emp-row > li { align-items: center; }
.emp-level { font-size: 14px; color: var(--muted); }

/* The tab cards on an aisle page, and the aisle cards on the front. */
.article-body .emp-cards, .article-body .emp-aisles { list-style: none; padding-left: 0; display: grid; gap: 12px; }
.article-body ul.emp-cards > li, .article-body ul.emp-aisles > li, .article-body ul.emp-more > li, .article-body ul.emp-chords > li { list-style: none; }
.article-body .emp-aisles { max-width: none; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.emp-card > a, .emp-aisle > a {
  display: grid; align-content: start; gap: 6px; padding: 18px 20px; height: 100%; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.emp-card > a:hover, .emp-aisle > a:hover { border-color: #B9C4BA; box-shadow: var(--shadow-soft); }
.emp-card strong, .emp-aisle strong { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.emp-aisle strong { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.emp-card-line { line-height: 1.5; }
.emp-card-meta { font-size: 15px; color: var(--muted); }
.emp-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent); }
.emp-card-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-body h3 + .emp-cards { margin-top: 14px; }

@media (max-width: 700px) {
  /* A finger needs 44 pixels: the breadcrumb, the list of the aisle's other tabs and the fact table's aisle link
     each stand 44 tall on a phone, the same as the footer's links, with no change to how the words look. */
  .emp-crumbs { margin-top: -10px; margin-bottom: 8px; }
  .emp-crumbs a, .emp-crumbs span { padding-block: 10px; }
  .article-body .emp-more > li { min-height: 44px; align-items: center; }
  .emp-facts a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .emp-neck { padding: 14px 12px 12px; }
  .emp-neck-svg .fn, .emp-neck-svg .dl { font-size: 15px; } /* at least about 10 pixels on screen, with the svg's min-width (build-emporium.mjs) */
  .article-body .emp-aisles { grid-template-columns: 1fr; }
  .emp-card > a, .emp-aisle > a { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .emp-card > a, .emp-aisle > a { transition: none; }
}

/* ---------- Scale and song pages (November 23, 2026) ---------- */

/* The line under the hero's button: quiet, close to the button it explains. */
.sc-free { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* The neck and the shapes break out of the 680-pixel reading column, since a neck reads across. */
.article-body > .sc-wide { max-width: none; }

/* Every neck: each picture keeps its own size, so a note's dot draws 24 pixels across on every neck. */
.sc-board { display: block; width: 100%; height: auto; }
.sc-board .str { stroke: #8A998C; }
.sc-board .fret { stroke: var(--line); stroke-width: 1.2; }
.sc-board .nut { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.sc-board .inlay { fill: var(--line); }
.sc-board .fn { fill: var(--muted); font-size: 12px; font-weight: 600; text-anchor: middle; font-family: var(--text); }
.sc-board .dot { fill: var(--ink); }
.sc-board .dot.home { fill: #A2560A; }
.sc-board .dl { fill: var(--paper); font-size: 11px; font-weight: 700; text-anchor: middle; font-family: var(--text); }

/* The five brackets over the whole neck: each names a shape and links down to the shape's card. */
.sc-bracket path { fill: none; stroke: var(--field); stroke-width: 1.5; stroke-linejoin: round; }
.sc-bracket circle { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; transition: fill .18s var(--ease); }
.sc-bracket text { fill: var(--accent); font-size: 12px; font-weight: 700; text-anchor: middle; font-family: var(--text); transition: fill .18s var(--ease); }
.sc-bracket:hover circle { fill: var(--accent); }
.sc-bracket:hover text { fill: var(--paper); }

.sc-neck { margin-top: 24px; padding: 24px 24px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.sc-neck .sc-board { margin-inline: auto; }
.sc-up, .sc-up-words { display: none; }
.sc-neck figcaption { margin: 14px auto 0; max-width: 1014px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sc-neck + .fact-table { margin-top: 28px; }

/* The row of links to each shape: pills with room for a finger. */
.article-body .sc-jump { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-body ul.sc-jump > li { list-style: none; }
.sc-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.sc-jump a:hover { border-color: #B9C4BA; box-shadow: var(--shadow-soft); }

/* The five shapes: two cards to a row on a wide screen, one on a phone. */
.sc-shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; margin-top: 28px; }
.sc-shape {
  display: grid; align-content: start; gap: 20px; padding: 24px 24px 26px; scroll-margin-top: 96px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.sc-shape:target { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.sc-shape-head { display: flex; align-items: center; gap: 14px; }
.sc-num {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.article-body .sc-shape h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.article-body .sc-where { margin: 2px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.sc-shape-neck .sc-board { margin: 0; }
.sc-tab { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.sc-tab pre { margin: 0; padding: 0; background: none; border: 0; font: 14px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); overflow: visible; }

/* The rows of links to other scales wrap, with room for a finger. */
.article-body .sc-links { gap: 0 20px; }
.article-body .sc-links a { display: inline-block; padding-block: 10px; }

@media (max-width: 600px) {
  .sc-across, .sc-across-words { display: none; }
  .sc-up { display: block; }
  .sc-up-words { display: inline; }
  .sc-neck { padding: 16px 12px 14px; }
  .sc-shape { padding: 18px 16px 20px; gap: 16px; }
  .sc-tab pre { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-bracket circle, .sc-bracket text, .sc-jump a { transition: none; }
}

/* The Scales aisle's rows of scale pages: one row for each kind of scale, its home notes as links. */
.sc-kinds span { display: flex; flex-wrap: wrap; gap: 0 4px; margin-block: -8px; }
@media (min-width: 701px) { .sc-kinds li { grid-template-columns: 10em 1fr; } }
.sc-kinds a { display: inline-block; min-width: 1.8em; padding-block: 8px; }
