/* Mic Archive: the styles of the shared explanations (explain.js), on the home page and the mic pages: the card
   they open in, the drawings of the mic types and polar patterns, the glossary's popovers, and the instrument
   ranges on the piano keys. */
dialog#infoCard { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
dialog#infoCard::backdrop { background: rgba(0,0,0,0.35); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h3 { margin: 0; font-size: 1.15rem; flex: 1; }
.card-head .close { font-size: 1.1rem; }
.type-card { margin-top: 10px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.type-card ul { padding-left: 1.2em; } .type-card li { margin: 6px 0; }
.type-card .type-schematics svg { max-width: 190px; }
.type-schematics { display: flex; gap: 8px; margin: 16px 0 6px; }
.type-schematics figure { flex: 1 1 0; min-width: 0; margin: 0; text-align: center; font-size: 0.68rem; line-height: 1.25; }
.type-schematics figcaption span { font-size: 0.64rem; }
.type-schematics svg { width: 100%; max-width: 150px; height: auto; display: block; margin: 0 auto 2px; }
.type-schematics figcaption span { color: var(--muted); }
.ts-wave { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; }
.ts-dia { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.ts-thin { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.ts-coil { fill: none; stroke: var(--accent); stroke-width: 1.3; }
.ts-diaf { fill: var(--accent); }
.ts-sig { fill: none; stroke: #d95926; stroke-width: 1.3; stroke-linejoin: round; }
.ts-dot { fill: var(--ink-2); }
.ts-mag { fill: var(--muted); opacity: 0.55; }
.ts-plate { fill: var(--ink-2); opacity: 0.7; }
.ts-hole { fill: var(--surface); }
.ts-fold { stroke: var(--accent); stroke-width: 0.6; opacity: 0.6; }
.type-card h4.type-h { margin: 16px 0 4px; font-size: 1rem; color: var(--ink); }
.type-card p { margin: 4px 0; }
.type-card a { color: var(--accent); }
.type-card .type-src { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.type-card .type-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ts-t { font-size: 7px; fill: var(--muted); }
.ts-pm { font-size: 9px; font-weight: 600; fill: #d95926; }
.ts-q { font-size: 6px; font-weight: 600; fill: var(--accent); }
.ts-amp { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1; }
.type-card .ts-electret { float: right; width: 42%; max-width: 200px; margin: 4px 0 6px 12px; text-align: center; font-size: 0.68rem; line-height: 1.25; }
.ts-electret svg { width: 100%; height: auto; display: block; }
.ts-electret figcaption span { font-size: 0.64rem; color: var(--muted); }
.type-card h4.type-h { clear: both; }
.ts-pole { font-size: 9px; font-weight: 600; fill: var(--ink-2); }
.type-diagram { display: flex; gap: 10px; justify-content: center; margin: 8px 0 2px; }
.type-diagram figure { margin: 0; text-align: center; font-size: 0.72rem; line-height: 1.25; }
.type-diagram figcaption span { color: var(--muted); }
.pat-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px 8px; margin: 14px 0 6px; }
.pat-gallery figure, .pat-schematics figure, .pat-sum figure { margin: 0; text-align: center; font-size: 0.72rem; line-height: 1.25; }
.pat-gallery svg { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto 2px; }
.pat-gallery figcaption span, .pat-schematics figcaption span { font-size: 0.66rem; color: var(--muted); }
.pat-schematics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 10px; margin: 12px 0 8px; }
/* Each drawing in a thin frame, so side by side they read as separate drawings. */
.pat-schematics figure { border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px 8px; }
.pat-schematics svg { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto 2px; }
.pat-sum { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; }
.pat-sum svg { width: 84px; height: 84px; display: block; margin: 0 auto 2px; }
.pat-sum .op { font-size: 1.3rem; color: var(--muted); padding-bottom: 16px; }
.ts-damp { fill: var(--muted); opacity: 0.25; }
.pat-plot { margin: 8px auto 6px; max-width: 360px; text-align: center; font-size: 0.72rem; line-height: 1.25; }
.ui { display: inline-block; font-size: 0.86em; line-height: 1.3; padding: 0 0.4em; border: 1px solid var(--border); border-radius: 4px; background: var(--page); color: var(--ink); white-space: nowrap; }
.gl { text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); cursor: help; }
.gl:hover, .gl:focus-visible { text-decoration-color: currentColor; outline: none; }
.gl-pop { position: absolute; z-index: 5; padding: 8px 11px; font-size: 0.8rem; line-height: 1.45; color: var(--ink); background: var(--page); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.gl-pop b { margin-right: 2px; } .gl-pop.page { position: fixed; z-index: 60; }
.reach-list { margin: 4px 0 8px; padding-left: 20px; } .reach-list li { margin: 1px 0; }
.card-link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gl-wiki, .gl-pop .card-link { display: block; width: fit-content; margin-top: 4px; color: var(--muted); font-size: 0.9em; text-align: left; }
/* A link that leaves the site: a small box-and-arrow after it. */
.ext { --ext-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 9v4.5a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H7M10 1.5h4.5V6M14.5 1.5 7 9'/%3E%3C/svg%3E"); }
.ext::after { content: ''; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.25em; vertical-align: -0.05em; background: currentColor;
  -webkit-mask: var(--ext-icon) center / contain no-repeat; mask: var(--ext-icon) center / contain no-repeat; }
.ui[title] { cursor: help; }
.ts-lab { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.pat-plot svg { width: 100%; height: auto; display: block; }
.pat-plot figcaption span { font-size: 0.66rem; color: var(--muted); }
.type-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.type-legend i { display: inline-block; width: 12px; height: 2px; margin-right: 4px; vertical-align: 3px; }
svg.ranges { display: block; width: 100%; height: auto; overflow: visible; }
svg.ranges .rl { font-size: 11px; fill: var(--ink-2); }
svg.ranges a:hover .rl-name { text-decoration: underline; }
svg.ranges .rl-name { font-weight: 600; fill: var(--ink); }
svg.ranges .rl-range { fill: var(--muted); font-size: 10px; }
svg.ranges { touch-action: pan-y; }   /* a sideways drag reads out the notes; up and down still scrolls */
svg.ranges .rl-tap { cursor: pointer; }
svg.ranges .kb-lab { font-size: 10px; fill: var(--muted); }
.pat-gallery figure.mine { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
ul.practice { margin: 6px 0 0; padding-left: 1.2em; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
ul.practice li { margin: 4px 0; }
