/* The Tech specs side sheet (specs.js). */

html.spec-open { overflow: hidden; }

.spec-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 9, 10, 0.72);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.spec-scrim.show { opacity: 1; pointer-events: auto; }

.spec-sheet {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 210;
  display: flex; flex-direction: column;
  width: min(624px, calc(100vw - 24px));
  border-radius: var(--radius-card);
  background: var(--color-carbon);
  box-shadow: var(--shadow-subtle), var(--shadow-xl);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}
.spec-sheet.show { transform: none; visibility: visible; }

.spec-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px 0 32px; border-bottom: 1px solid var(--color-graphite); }
.spec-bar span { color: var(--color-fog); font: 400 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.spec-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-button); background: none; color: var(--color-fog); cursor: pointer; }
.spec-close:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-paper); }
.spec-close .sym { width: 13px; height: 13px; }

.spec-body { flex: 1; overflow-y: auto; padding: 40px 32px 56px; outline: none; overscroll-behavior: contain; }
.spec-body h2 { margin: 0 0 20px; font-size: 48px; line-height: 1; letter-spacing: -0.022em; }
.spec-intro { margin: 0 0 40px; color: var(--color-mist); font-size: 15px; line-height: 1.6; letter-spacing: -0.011em; }
.spec-body section { margin-top: 48px; }
.spec-body h3 { margin: 0 0 12px; font-size: 20px; font-weight: 510; letter-spacing: -0.012em; }
.spec-body section p { margin: 0 0 20px; color: var(--color-mist); font-size: 15px; line-height: 1.6; letter-spacing: -0.011em; }

/* The figure: a slice of the app inside a hairline grid, like a spec drawing. */
.spec-figure { margin: 0; }
.spec-shot {
  position: relative;
  padding: 36px 0 0 36px;
  border: 1px solid var(--color-graphite);
  background:
    linear-gradient(var(--color-graphite), var(--color-graphite)) 0 35px / 100% 1px no-repeat,
    linear-gradient(var(--color-graphite), var(--color-graphite)) 35px 0 / 1px 100% no-repeat,
    var(--color-carbon);
  overflow: hidden;
}
.spec-shot > * { background-color: #212121; }
.spec-shot > :first-child { border-top-left-radius: 8px; box-shadow: -1px -1px 0 #3a3a3a; }
.spec-figure figcaption { margin-top: 16px; color: var(--color-fog); font: 400 12px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { padding: 0 12px 12px 0; border-bottom: 1px solid var(--color-graphite); color: var(--color-mist); font-weight: 400; text-align: left; }
.spec-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--color-graphite); color: var(--color-fog); vertical-align: top; }
.spec-table td.first { color: var(--color-paper); font-weight: 510; white-space: nowrap; }

/* App pieces used only by figures */
.ax .axcheck { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--txt); font-size: 12px; vertical-align: middle; }
.ax .axcheck > i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; background: #3a3a3a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ax .axcheck.on > i { background: #1f6fe0; box-shadow: none; }
.ax .axcheck .sym { width: 9px; height: 9px; color: #fff; }
.ax .form label { white-space: nowrap; }
.ax .form > span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; font-size: 12px; color: var(--txt); }
.ax .matrix-fig { display: grid; grid-template-columns: 90px repeat(4, 60px); gap: 6px; align-items: center; padding: 16px; font-size: 12px; }
.ax .matrix-fig b { text-align: center; }
.ax .matrix-fig label { text-align: right; color: var(--txt-2); }
.ax .wave-fig { position: relative; display: flex; align-items: center; gap: 2px; height: 150px; margin-top: 24px; padding: 0 8px; background: var(--wave-bg); }
.ax .wave-fig i { flex: 1; background: var(--wave); border-radius: 1px; }
.ax .wave-fig .mflag { top: -22px; }
.ax .curve-fig { display: block; width: calc(100% - 32px); height: 140px; margin: 0 16px 16px; background: var(--wave-bg); border-radius: 4px; }
.ax .warn-fig { display: grid; gap: 1px; background: #1a1a1a; }
.ax .warn-fig div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #262626; }
.ax .warn-fig b { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ax .warn-fig b .sym { width: 14px; height: 14px; color: #ffcc00; }
.ax .warn-fig span { color: var(--txt-2); font-size: 12px; }

@media (max-width: 640px) {
  .spec-sheet { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .spec-body { padding: 28px 20px 40px; }
  .spec-body h2 { font-size: 36px; }
  .spec-shot { padding: 20px 0 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .spec-sheet, .spec-scrim { transition: none; }
}

/* Figures drawn at the app's size and scaled to fit (fitFigures in specs.js) */
.figbox { position: relative; overflow: hidden; }
.fig { position: absolute; top: 0; left: 0; overflow: hidden; transform-origin: 0 0; background: #212121; }
.ax .axslider { position: relative; display: inline-block; height: 4px; border-radius: 2px; background: #4a4a4a; vertical-align: middle; }
.ax .axslider i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #e8e8e8; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.ax .axslider i[style*="left:0%"] { margin-left: 0; }
.ax .val { margin-left: 8px; font-size: 12px; }
.ax .lvl-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; font-size: 12px; }
.ax .lvl-top b { font-weight: 600; }
.ax .lvl-top .grow { flex: 1; }
.ax .matrix-fig { padding: 10px 16px 18px; }
.ax .popup.dis, .ax .fld.dis { opacity: 0.45; }
.ax .net-top { display: flex; align-items: center; gap: 6px; padding: 14px 16px 4px; font-size: 12px; white-space: nowrap; }
.ax .net-top label { width: 62px; text-align: right; }
.ax .net-body { display: grid; grid-template-columns: 1fr 250px 150px; gap: 14px; padding: 4px 16px 16px 0; }
.ax .net-body > div:first-child { display: flex; flex-direction: column; justify-content: space-between; }
.ax .net-sends { padding: 0 0 4px 30px; font-size: 11px; white-space: nowrap; }
.ax .fgraph { display: block; background: #161616; font: 9px -apple-system, system-ui, sans-serif; fill: #a8a8a8; }
.ax .fgraph .y { fill: #ffd60a; }
.ax .net-side { display: flex; flex-direction: column; justify-content: space-between; }
.ax .net-side .form { padding: 6px 0 0; }
.ax .net-curve { display: flex; gap: 6px; }
.ax .net-curve .popup { flex: 1; }
.ax .sw { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.ax .sw .side { display: flex; flex-direction: column; background: #2a2a2a; }
.ax .sw .side span { padding: 0 8px; line-height: 33px; color: var(--txt); font-size: 15px; }
.ax .sw .side span:nth-child(odd) { background: #262626; }
.ax .sw .side span.on { background: #0a64d6; color: #fff; }
.ax .sw .main { padding: 0 16px 18px; }
.ax .sw-tabs { display: flex; margin-bottom: 10px; }
.ax .sw-tabs span { min-width: 120px; padding: 0 16px; border: 1px solid #3a3a3a; border-top: 0; color: var(--txt); font-size: 12px; line-height: 26px; text-align: center; }
.ax .sw-tabs span.on { background: #2e2e2e; }
.ax .srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; color: var(--txt); font-size: 13px; }
.ax .srow > span:last-child { display: flex; align-items: center; gap: 8px; }
.ax .srow .axcheck { font-size: 13px; }
.ax .srow .popup:only-child { flex: 1; opacity: 0.6; }
.ax .ssep { height: 1px; margin: 8px 0; background: #3a3a3a; }
.ax .patches { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; font-size: 12px; }
.ax .patches > .btn-ax { align-self: flex-start; }
.ax .ptable { border: 1px solid #3a3a3a; background: #262626; min-height: 160px; }
.ax .phead, .ax .prow { display: grid; grid-template-columns: 16px 92px 116px 70px 92px 1fr 50px 16px; gap: 5px; align-items: center; padding: 0 6px; }
.ax .phead { height: 26px; border-bottom: 1px solid #3a3a3a; font-weight: 600; }
.ax .prow { height: 32px; }
.ax .prow.sel { background: #333; }
.ax .prow .popup { padding: 0 4px 0 7px; font-size: 12px; }
.ax .prow .fld { width: auto !important; }
.ax .prow .fld .sym { width: 9px; height: 9px; color: var(--txt-2); }
.ax .xcirc { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px #888; }
.ax .xcirc .sym { width: 6px; height: 6px; }
.ax .also { display: flex; align-items: center; gap: 8px; }
