/*
 * The site map for people (site-map.php, /site-map). On top of site.css and
 * only with its colour names, so both themes work.
 *
 *   .sm-jump     the links to the parts of the page, under the heading
 *   .sm-list     a plain list of links, in columns that fold to one on a phone
 *   .sm-wide     the same with wider columns, for links that have a line of words
 *   .sm-papers   the label papers: the size is the link, the product numbers sit under it
 *   .sm-note     the small words after a link
 *   .sm-kind     US Letter sheets, A4 sheets, Rolls;  .sm-part  the groups under them
 */

.sm-jump .chip-list { margin-bottom: 8px; }

.sm-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.sm-section h2 { margin-bottom: 12px; }
.sm-section .section-head h2 { margin: 0; }
.sm-blurb { max-width: 44em; color: var(--muted); }

.sm-kind { margin: 32px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.sm-kind:first-of-type { margin-top: 24px; }
.sm-count { margin-left: 6px; color: var(--muted); font: 500 .8rem/1 var(--mono); letter-spacing: 0; }
.sm-part { margin: 22px 0 6px; color: var(--muted); font: 600 .75rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h3.sm-part:first-of-type { margin-top: 8px; }

.sm-list { columns: 4 9rem; column-gap: 24px; margin: 0 0 8px; padding: 0; list-style: none; }
.sm-list.sm-wide { columns: 2 22rem; column-gap: 40px; }
.sm-list.sm-papers { columns: 3 17rem; column-gap: 32px; }
.sm-list li { break-inside: avoid; padding: 3px 0; overflow-wrap: anywhere; }
.sm-list a { display: inline-flex; align-items: center; min-height: 30px; }
.sm-note { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.sm-wide .sm-note { font-size: .9rem; }

.sm-brands { max-width: 46em; margin-top: 20px; }

/* Fingers need 44px: on touch screens, and on any narrow window (as the footer does). */
@media (pointer: coarse), (max-width: 760px) {
  .sm-list li { padding: 0 0 4px; }
  .sm-list a { min-height: 44px; padding: 4px 0; }
  .sm-jump a.chip { min-height: 44px; }
  .sm-section .section-head > a { display: inline-flex; align-items: center; min-height: 44px; }
}
