/* pxrem support site — 8px grid, radius 8, 1px periwinkle hairlines. No external assets. */
:root {
  --pxr-ice: #E8F9FF;
  --pxr-mist: #C4D9FF;
  --pxr-peri: #C5BAFF;
  --pxr-paper: #FBFBFB;
  --pxr-ink: #231A45;
  --pxr-deep: #4B337A;
  --pxr-radius: 8px;
  --pxr-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --pxr-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--pxr-sans);
  font-size: 0.9375rem; /* 15px body */
  line-height: 1.6;
  color: var(--pxr-ink);
  background-color: var(--pxr-paper);
  background-image:
    linear-gradient(var(--pxr-ice) 1px, transparent 1px),
    linear-gradient(90deg, var(--pxr-ice) 1px, transparent 1px);
  background-size: 8px 8px;
}
a { color: var(--pxr-deep); text-decoration-color: var(--pxr-peri); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--pxr-ink); }
:focus-visible { outline: 2px solid var(--pxr-deep); outline-offset: 2px; }
.pxr-skip { position: absolute; left: -999px; }
.pxr-skip:focus { left: 8px; top: 8px; background: var(--pxr-paper); padding: 8px; z-index: 5; }

/* Rulers: top and left edges, like the app's intro. */
.pxr-ruler-top {
  height: 24px;
  background-color: var(--pxr-ice);
  background-image: repeating-linear-gradient(90deg, var(--pxr-deep) 0 1px, transparent 1px 8px),
                    repeating-linear-gradient(90deg, var(--pxr-deep) 0 1px, transparent 1px 64px);
  background-size: 100% 6px, 100% 14px;
  background-repeat: no-repeat;
  background-position: 24px bottom, 24px bottom;
  border-bottom: 1px solid var(--pxr-peri);
}
.pxr-frame { display: block; }
@media (min-width: 720px) {
  .pxr-frame { display: grid; grid-template-columns: 24px 1fr; }
  .pxr-ruler-left {
    background-color: var(--pxr-ice);
    background-image: repeating-linear-gradient(180deg, var(--pxr-deep) 0 1px, transparent 1px 8px);
    background-size: 6px 100%;
    background-repeat: no-repeat;
    background-position: right top;
    border-right: 1px solid var(--pxr-peri);
  }
}

/* Breadcrumb path bar. */
.pxr-path {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--pxr-ice);
  border-bottom: 1px solid var(--pxr-peri);
}
.pxr-path ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 8px 8px; list-style: none;
  flex: 1; background: var(--pxr-paper); border: 1px solid var(--pxr-peri); border-radius: var(--pxr-radius); }
.pxr-path li { font-weight: 600; }
.pxr-path li + li::before { content: "\203A"; margin-right: 4px; color: var(--pxr-deep); font-weight: 900; }
.pxr-path [aria-current] { font-weight: 900; }
.pxr-mark { flex: none; width: 40px; height: 40px; }

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 2.125rem; font-weight: 900; line-height: 1.15; margin: 8px 0; letter-spacing: -0.01em; }
h2 { font-size: 1.375rem; font-weight: 900; margin: 0 0 8px; }
h3 { font-size: 0.9375rem; font-weight: 800; margin: 16px 0 4px; }
.pxr-lead { color: var(--pxr-deep); margin: 0 0 24px; }
.pxr-caption { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pxr-deep); margin: 0 0 8px; }
code, .pxr-code { font-family: var(--pxr-mono); font-size: 0.8125rem; }

/* Panels: radius 8, 1px periwinkle border. */
.pxr-panel { background: var(--pxr-paper); border: 1px solid var(--pxr-peri); border-radius: var(--pxr-radius); padding: 16px; margin: 0 0 16px; }
.pxr-panel--ice { background: var(--pxr-ice); }

/* Folder listing (support page table of contents). */
.pxr-listing { list-style: none; margin: 0 0 24px; padding: 0; background: var(--pxr-paper); border: 1px solid var(--pxr-peri); border-radius: var(--pxr-radius); }
.pxr-listing li + li { border-top: 1px solid var(--pxr-mist); }
.pxr-listing a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 56px; text-decoration: none; color: var(--pxr-ink); }
.pxr-listing a::after { content: "\203A"; margin-left: auto; font-weight: 900; color: var(--pxr-deep); }
.pxr-chip { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; background: var(--pxr-peri); font-family: var(--pxr-mono); font-size: 0.75rem; font-weight: 800; }
.pxr-chip--mist { background: var(--pxr-mist); }
.pxr-listing small { display: block; color: var(--pxr-deep); font-size: 0.75rem; }

/* Tool "files": each how-to entry. */
.pxr-file { border-left: 4px solid var(--pxr-peri); }
.pxr-file ol, .pxr-file ul { margin: 8px 0 0; padding-left: 24px; }
.pxr-sample { display: block; margin-top: 8px; padding: 8px 12px; background: var(--pxr-ice); border: 1px solid var(--pxr-peri); border-radius: 5px; overflow-x: auto; white-space: pre; }

/* FAQ */
details { border-top: 1px solid var(--pxr-mist); padding: 8px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 800; min-height: 32px; padding: 4px 0; }
summary::marker { color: var(--pxr-deep); }

/* Contact */
.pxr-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pxr-radius);
  background: var(--pxr-peri); border: 1px solid var(--pxr-peri); color: var(--pxr-ink); font-weight: 700; text-decoration: none; }
.pxr-button:hover { background: var(--pxr-mist); }

/* Privacy spec sheet: measurement rows. */
.pxr-spec { width: 100%; border-collapse: collapse; }
.pxr-spec th, .pxr-spec td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--pxr-mist); }
.pxr-spec tr:first-child th, .pxr-spec tr:first-child td { border-top: 0; }
.pxr-spec th { width: 42%; padding-right: 12px; font-weight: 700; color: var(--pxr-deep); }
.pxr-spec td strong { font-family: var(--pxr-mono); }
.pxr-clause { counter-increment: pxr-clause; }
.pxr-clause h2::before { content: counter(pxr-clause, decimal-leading-zero) " / "; font-family: var(--pxr-mono); color: var(--pxr-deep); font-size: 0.9375rem; }
body { counter-reset: pxr-clause; }

footer { max-width: 760px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--pxr-peri); font-size: 0.75rem; color: var(--pxr-deep); }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }

@media (min-width: 720px) {
  main { padding: 40px 32px 80px; }
  h1 { font-size: 2.5rem; }
  .pxr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
