/*
 * Logo Factory gallery.
 *
 * Art direction: a screening room. The frame is a warm-neutral dark with one grotesque set large and
 * tight, so it reads like a studio's pitch deck and never competes with the work. Each study is shown
 * full width in its own palette and typefaces; the gallery only supplies rhythm, labels, and states.
 * Study colors and fonts arrive as --s-* custom properties set per page (see skin.ts).
 */
:root {
  /* Chrome color. Neutrals lean slightly cool so warm and cool studies both sit well on them. */
  --c-void: #0c0d0f;
  --c-raise: #16181b;
  --c-line: #2a2d32;
  --c-ink: #eceae5;
  --c-ink-2: #a7aab0;
  --c-ink-3: #868a92;
  --c-warn: #e8b061;
  --c-gate: #a3b4ff;

  /* Chrome type: one grotesque. Display sizes run tight; labels stay small and in sentence case. */
  --f-ui: "Helvetica Neue", Helvetica, "Arial Nova", Arial, sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-label: 0.8125rem;
  --t-body: 1rem;
  --t-lead: 1.25rem;

  /* Space: a 4 px base. --gut is the page edge; everything aligns to it. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --gut: clamp(1.25rem, 4.5vw, 5rem);
  --band: clamp(4rem, 9vw, 8.5rem);
  --bar-h: 3.5rem;
  --toc-h: 3rem;

  /* Shape: image frames are square-cornered like film frames; controls get a 2 px radius. */
  --r-ctl: 2px;
}

/* Every skinned element derives its quiet tones from its own two colors. */
.skin,
.reel,
.cmp-cell {
  --s-muted: color-mix(in srgb, var(--s-fg) 66%, var(--s-bg));
  --s-rule: color-mix(in srgb, var(--s-fg) 16%, transparent);
  --s-raise: var(--s-surface);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: var(--t-body) / 1.5 var(--f-ui);
  color: var(--c-ink);
  background: var(--c-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  font-family: var(--f-code);
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: var(--r-ctl);
  background: color-mix(in srgb, currentColor 10%, transparent);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 50;
  padding: var(--sp-2) var(--sp-4);
  font: 500 var(--t-label) / 1.4 var(--f-ui);
  color: var(--c-void);
  background: var(--c-ink);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--bar-h);
  padding: 0 var(--gut);
  font-family: var(--f-ui);
  color: var(--c-ink);
  background: var(--c-void);
  border-bottom: 1px solid var(--c-line);
}

.book-page .bar {
  color: var(--s-fg);
  background: var(--s-bg);
  border-color: var(--s-rule);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  font-size: var(--t-label);
  white-space: nowrap;
}

.crumbs > a,
.crumbs > span[aria-current] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crumbs a {
  opacity: 0.7;
  text-decoration: none;
}

.crumbs a:hover {
  opacity: 1;
}

.crumbs .home {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 1;
}

.crumbs [aria-current] {
  font-weight: 500;
}

.crumbs .sep {
  flex-shrink: 0;
  opacity: 0.35;
}

.bar-actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--sp-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 var(--sp-4);
  font: 500 var(--t-label) / 1 var(--f-ui);
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: var(--r-ctl);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-color: color-mix(in srgb, currentColor 60%, transparent);
}

/* Shared labels and states */

.cap {
  font: var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-muted, var(--c-ink-2));
}

/* Marks the chosen study. Inverted ink so it holds on any ground. */
.flag {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.5rem;
  font: 700 0.6875rem / 1 var(--f-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-bg, var(--c-void));
  background: var(--s-fg, var(--c-ink));
  border-radius: var(--r-ctl);
  white-space: nowrap;
}

/* Document status. The leading marker changes shape by state as well as color. */
.state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 var(--t-label) / 1.3 var(--f-ui);
  color: var(--s-muted, var(--c-ink-2));
  white-space: nowrap;
}

.state::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
}

.state-open::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.state-draft {
  color: var(--s-warn, var(--c-warn));
}

.state-draft::before {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Waiting on the user, not on the agent. */
.state-gate {
  color: var(--s-gate, var(--c-gate));
}

.state-gate::before {
  transform: rotate(45deg) scale(0.85);
}

.alert {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font: 500 var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-warn, var(--c-warn));
}

.alert::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  transform: rotate(45deg) scale(0.85);
}

.notice {
  display: grid;
  gap: var(--sp-1);
  max-width: 48rem;
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  font: var(--t-body) / 1.5 var(--f-ui);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
}

.notice p:first-child {
  font-weight: 600;
}

.notice ul {
  padding-left: 1.25rem;
  font-size: var(--t-label);
}

.notice-warn {
  color: var(--s-warn, var(--c-warn));
  background: color-mix(in srgb, var(--s-warn, var(--c-warn)) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-warn, var(--c-warn)) 45%, transparent);
}

/* Anything not made yet: a hatched slate in the gallery's font, never mistaken for brand content. */
.empty {
  display: grid;
  place-content: center;
  gap: 0.25rem;
  min-height: 6rem;
  padding: var(--sp-4) var(--sp-5);
  font: 500 var(--t-label) / 1.35 var(--f-ui);
  text-align: center;
  color: inherit;
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, currentColor 10%, transparent) 0 1px,
    transparent 1px 10px
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent);
}

.empty small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
  overflow-wrap: anywhere;
}

/* Logo grounds */

.ground {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 12%;
  box-shadow: inset 0 0 0 1px var(--s-rule, var(--c-line));
}

.ground img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.ground.is-missing {
  padding: 0;
  box-shadow: none;
}

.ground.is-missing .empty {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Color fields: palette colors side by side, wider for the colors a layout uses most. */
.fields {
  display: flex;
  min-height: 9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 0 0 1px var(--s-rule, var(--c-line));
}

.reel-fields,
.book-fields {
  flex-wrap: wrap;
}

/* Fields keep room for their labels; when a row runs out, they wrap instead of truncating. */
.fields li {
  display: flex;
  flex: 1 1 5.5rem;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.125rem;
  min-width: 0;
  padding: var(--sp-3);
  font: 0.75rem / 1.3 var(--f-ui);
}

.f-name,
.f-hex {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.f-name {
  font-weight: 600;
}

.f-hex {
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

/* Index: the workspace cover */

.cover {
  padding: clamp(3.5rem, 10vw, 9rem) var(--gut) var(--band);
}

.cover-head h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 9.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.cover-head p {
  margin-top: var(--sp-5);
  color: var(--c-ink-2);
  font-variant-numeric: tabular-nums;
}

.brands {
  margin-top: clamp(3rem, 8vw, 7rem);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.brand {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--sp-6) var(--sp-8);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
}

.brand h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-decoration: underline 2px transparent;
  text-underline-offset: 0.12em;
  transition: text-decoration-color 0.2s;
}

.brand:hover h2 {
  text-decoration-color: currentColor;
}

.brand-id {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}

.brand-tagline {
  font-size: var(--t-lead);
  line-height: 1.35;
}

.brand-meta {
  font-size: var(--t-label);
  color: var(--c-ink-2);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: var(--sp-5) var(--sp-4);
  padding: 0;
  list-style: none;
}

.shelf-logo {
  padding: 14%;
  transition: box-shadow 0.2s;
}

.shelf p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--t-label);
  color: var(--c-ink-2);
}

.shelf .is-chosen .ground {
  box-shadow: 0 0 0 2px var(--c-ink);
}

.shelf .is-chosen p {
  color: var(--c-ink);
}

.brand > .empty {
  color: var(--c-ink-2);
}

/* Brand page: masthead */

.mast {
  padding: clamp(3.5rem, 10vw, 9rem) var(--gut) clamp(3rem, 6vw, 5.5rem);
}

.mast-name {
  margin-left: -0.05em;
  font-size: clamp(3.25rem, 11.5vw, 13rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.mast-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sp-5) var(--sp-8);
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}

.mast-facts {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  color: var(--c-ink-2);
}

.mast-tagline {
  font-size: var(--t-lead);
  color: var(--c-ink);
}

.mast-chosen {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  color: var(--c-ink);
}

.mast-chosen a {
  font-size: var(--t-lead);
  font-weight: 500;
  text-underline-offset: 0.2em;
}

/* Column count comes from the page (--cols) so six studies sit in two even rows, not five and one. */
.mast-index {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 0 var(--sp-6);
  padding: 0;
  list-style: none;
}

.mast-index a {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
  transition: border-color 0.2s;
}

.mast-index a:hover {
  border-color: var(--c-ink);
}

.mast-index span {
  min-width: 1.25rem;
  font-size: var(--t-label);
  font-weight: 400;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.mast-index .is-chosen a {
  border-color: var(--c-ink);
}

/* Brand page: one full-width panel per study, in the study's own palette and fonts */

.reel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 6rem) var(--gut) clamp(3rem, 7vw, 7rem);
  font-family: var(--s-body);
  font-weight: var(--s-bw);
  color: var(--s-fg);
  background: var(--s-bg);
  border-top: 1px solid var(--c-line);
  scroll-margin-top: var(--bar-h);
}

.reel.is-chosen {
  box-shadow: inset 0 4px 0 var(--s-fg);
}

.reel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sp-4) var(--sp-6);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.reel-num {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font: 500 var(--t-label) / 1.375rem var(--f-ui);
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}

.reel-title {
  font-family: var(--s-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: var(--s-dw);
  line-height: 0.95;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.reel-title a {
  text-decoration: none;
}

.reel-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.12em;
}

.reel-open {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 var(--sp-5);
  font: 500 0.875rem / 1 var(--f-ui);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--s-fg) 45%, transparent);
  border-radius: var(--r-ctl);
  transition: background-color 0.15s, color 0.15s;
}

.reel-open:hover {
  color: var(--s-bg);
  background: var(--s-fg);
}

.reel-stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
}

.reel-logo {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  min-height: clamp(14rem, 28vw, 28rem);
}

.reel-logo img {
  display: block;
  width: min(100%, 46rem);
  max-height: clamp(9rem, 20vw, 19rem);
  object-fit: contain;
}

.reel-logo .empty {
  width: 100%;
  height: 100%;
}

.reel-kv {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

.reel-kv img {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  object-position: top;
}

.reel-kv figcaption {
  margin-top: var(--sp-3);
  font: var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-muted);
}

.reel-kv > .empty {
  aspect-ratio: 2 / 3;
}

.reel-idea {
  display: grid;
  gap: var(--sp-4);
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.reel-idea p:not(.alert) {
  max-width: 36ch;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.reel-specs {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 24rem);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.reel-mark {
  aspect-ratio: 1;
  padding: 22%;
}

.reel-type {
  display: grid;
  gap: var(--sp-2);
  align-content: end;
  min-width: 0;
}

.type-display {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.type-body {
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Brand page: bands on the gallery ground */

.band {
  padding: var(--band) var(--gut);
  border-top: 1px solid var(--c-line);
}

.band-title {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* Side by side: one column per study, rows aligned for the final decision. */
.compare {
  overflow-x: auto;
  padding-bottom: var(--sp-2);
}

.cmp {
  display: grid;
  grid-template-columns: 7rem repeat(var(--n), minmax(13rem, 1fr));
  column-gap: clamp(0.5rem, 1vw, 1rem);
}

.cmp-label {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: var(--sp-4) var(--sp-3) var(--sp-4) 0;
  font-size: var(--t-label);
  color: var(--c-ink-3);
  background: var(--c-void);
  border-top: 1px solid var(--c-line);
}

.cmp-cell {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  min-width: 0;
  padding: var(--sp-4);
  font-family: var(--s-body);
  color: var(--c-ink);
  border-top: 1px solid var(--c-line);
}

.cmp-cell.is-chosen {
  background: var(--c-raise);
}

.cmp-cell.is-chosen.is-top {
  box-shadow: inset 0 3px 0 var(--c-ink);
}

.cmp-cell .flag {
  color: var(--c-void);
  background: var(--c-ink);
}

.cmp-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.375rem;
  font: 500 var(--t-label) / 1 var(--f-ui);
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.cmp-title {
  font-family: var(--s-display);
  font-size: 1.75rem;
  font-weight: var(--s-dw);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cmp-title a {
  text-decoration: none;
}

.cmp-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cmp-mark {
  width: 6.5rem;
  aspect-ratio: 1;
  padding: 1.25rem;
}

.cmp-fields {
  min-height: 3.5rem;
}

/* Unlabeled bars: one row, any width. Positioned so the visually hidden labels stay inside the
   scrolling table instead of widening the page. */
.cmp-fields li {
  position: relative;
  flex-basis: 0;
  padding: 0;
}

.cmp-fields li > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.cmp-type {
  color: var(--s-fg);
  font-size: 1.75rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
  padding: var(--sp-4);
  background: var(--s-bg);
  box-shadow: inset 0 0 0 1px var(--s-rule);
}

.cmp-cell .cap {
  color: var(--c-ink-2);
}

.cmp-open {
  font: 500 0.875rem / 1.4 var(--f-ui);
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

.cmp-open:hover {
  text-decoration-color: currentColor;
}

/* Documents: collapsed rows; opened, they read like a typeset page. */
.docs {
  border-top: 1px solid var(--c-line);
}

.doc {
  border-bottom: 1px solid var(--c-line);
}

.doc-sum {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) minmax(11rem, 17rem) minmax(0, 1fr) 1.5rem;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-6);
  padding: var(--sp-6) 0;
  list-style: none;
}

summary.doc-sum {
  cursor: pointer;
}

.doc-sum::-webkit-details-marker {
  display: none;
}

.doc-name {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.doc-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 68ch;
  color: var(--c-ink-2);
}

.doc.is-missing .doc-name {
  color: var(--c-ink-3);
}

/* A plus that turns into a minus when the row is open. */
.doc-toggle {
  position: relative;
  grid-row: 1;
  grid-column: -2 / -1;
  align-self: center;
  width: 1.5rem;
  height: 1.5rem;
}

.doc-toggle::before,
.doc-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s;
}

.doc-toggle::after {
  transform: rotate(90deg);
}

.doc[open] .doc-toggle::after {
  transform: rotate(0deg);
}

.doc-sum:hover .doc-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.doc[open] .doc-excerpt {
  display: none;
}

.doc-body {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) minmax(11rem, 17rem) minmax(0, 1fr) 1.5rem;
  column-gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

.doc-body > * {
  grid-column: 3 / 5;
}

/* Markdown, shared by the brand page documents and the brand book */

.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  --prose-rule: color-mix(in srgb, currentColor 16%, transparent);
  --prose-muted: color-mix(in srgb, currentColor 70%, transparent);
}

.prose > * + * {
  margin-top: 1em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose h1,
.prose h2 {
  margin-top: 2.5em;
  font-size: 1.5em;
}

.prose h3 {
  margin-top: 2em;
  font-size: 1.125em;
}

.prose h4 {
  margin-top: 1.75em;
  font-size: 1em;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  text-underline-offset: 0.2em;
  text-decoration-color: var(--prose-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--prose-muted);
}

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.25em;
  font-size: 1.125em;
  border-left: 1px solid currentColor;
}

.prose .table-wrap {
  margin-block: 1.75em;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
  min-width: 7em;
  padding: 0.75em 1.25em 0.75em 0;
  text-align: left;
  vertical-align: top;
}

.prose th:last-child,
.prose td:last-child {
  padding-right: 0;
}

.prose thead th {
  vertical-align: bottom;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.prose tbody td {
  border-bottom: 1px solid var(--prose-rule);
}

.prose td code {
  white-space: nowrap;
}

/* Images inside documents illustrate the text: reading size, not page size. */
.prose img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 26rem;
  margin-block: 0.5em;
}

/* A logo SVG has no size of its own; show it on a mat at a reading size, on the ground it was drawn for. */
.prose img[src$=".svg"] {
  width: min(100%, 28rem);
  padding: 1.5rem 2rem;
  background: var(--s-raise, var(--c-raise));
}

.prose img[src$="primary-alt.svg"] {
  background: var(--s-opposite, #ffffff);
}

.prose img[src$="mono-black.svg"] {
  background: #ffffff;
}

.prose img[src$="mono-white.svg"] {
  background: #000000;
}

.prose hr {
  margin-block: 2.5em;
  border: 0;
  border-top: 1px solid var(--prose-rule);
}

.prose code {
  overflow-wrap: anywhere;
}

.prose .unwritten {
  display: inline-block;
  padding: 0.25em 0.75em;
  font: 500 var(--t-label) / 1.5 var(--f-ui);
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, currentColor 10%, transparent) 0 1px,
    transparent 1px 8px
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent);
}

.prose .awaiting {
  color: var(--s-gate, var(--c-gate));
  background: none;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* Study page: the brand book, entirely in the study's skin */

.book-page {
  font-family: var(--s-body);
  font-weight: var(--s-bw);
  color: var(--s-fg);
  background: var(--s-bg);
}

.book {
  overflow-x: clip;
}

.hero {
  padding: clamp(2rem, 6vw, 5rem) var(--gut) clamp(2.5rem, 5vw, 4.5rem);
}

.hero-logo {
  display: grid;
  place-items: center;
  min-height: clamp(15rem, 46vh, 36rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-logo img {
  display: block;
  width: min(88%, 62rem);
  max-height: clamp(10rem, 40vh, 30rem);
  object-fit: contain;
}

.hero-logo .empty {
  width: min(100%, 40rem);
  aspect-ratio: 16 / 9;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  align-items: end;
  gap: var(--sp-5) var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--s-rule);
}

.hero-kicker {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font: 500 var(--t-label) / 1.375rem var(--f-ui);
  color: var(--s-muted);
}

.hero h1 {
  font-family: var(--s-display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: var(--s-dw);
  line-height: 0.9;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.hero-idea {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
}

.hero .notice {
  margin-top: var(--sp-6);
}

/* Section nav: sticks under the top bar so every chapter of a long book is one click away. */
.toc {
  position: sticky;
  top: var(--bar-h);
  z-index: 15;
  background: var(--s-bg);
  border-bottom: 1px solid var(--s-rule);
}

.toc ul {
  display: flex;
  gap: var(--sp-6);
  padding: 0 var(--gut);
  overflow-x: auto;
  list-style: none;
  white-space: nowrap;
  scrollbar-width: none;
}

.toc a {
  display: flex;
  align-items: center;
  height: var(--toc-h);
  font: 500 var(--t-label) / 1 var(--f-ui);
  color: var(--s-muted);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s, box-shadow 0.15s;
}

.toc a:hover {
  color: var(--s-fg);
  box-shadow: inset 0 -2px 0 var(--s-fg);
}

.toc a:focus-visible {
  outline-offset: -2px;
}

.ch {
  padding: var(--band) var(--gut) 0;
  scroll-margin-top: calc(var(--bar-h) + var(--toc-h));
}

.ch-head {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-4);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--s-rule);
}

.ch-num {
  font: 500 var(--t-label) / 1 var(--f-ui);
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}

.ch-head h2 {
  font-family: var(--s-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: var(--s-dw);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Long documents share the chapter title's left edge; the chapter number hangs in the margin. */
.ch > .prose,
.ch > .empty {
  margin-left: calc(4rem + var(--sp-4));
}

.book .prose {
  font-size: 1.125rem;
}

/* Tables run past the text measure toward the right edge, so columns of data are not squeezed. */
.book .prose .table-wrap {
  width: min(66rem, calc(100vw - 2 * var(--gut) - 5rem));
}

.book .prose h1,
.book .prose h2 {
  font-family: var(--s-display);
  font-weight: var(--s-dw);
  font-size: 1.625em;
  letter-spacing: 0;
}

.book dl {
  display: grid;
  gap: var(--sp-2);
}

.book dl div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--sp-3);
}

.book dt {
  font: var(--t-label) / 1.5rem var(--f-ui);
  color: var(--s-muted);
}

.book dd {
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.zoom {
  display: block;
  cursor: zoom-in;
}

.zoom img {
  transition: opacity 0.2s;
}

.zoom:hover img {
  opacity: 0.88;
}

/* Logo system: the primary at cinema width, then every variant on its real ground. */
.logo-system {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 1.5vw, 1.25rem);
}

.logo-tile {
  grid-column: span 2;
}

.logo-tile.is-primary {
  grid-column: 1 / -1;
}

.logo-tile.is-half {
  grid-column: span 3;
}

.logo-ground {
  aspect-ratio: 4 / 3;
  padding: 14%;
}

.is-primary .logo-ground {
  aspect-ratio: 2.39 / 1;
  padding: 6% 20%;
}

.is-half .logo-ground {
  aspect-ratio: 16 / 9;
  padding: 10% 14%;
}

.is-mark .logo-ground {
  padding: 18%;
}

.is-half.is-mark .logo-ground {
  padding: 12% 30%;
}

.logo-tile figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
}

.logo-tile figcaption strong {
  font-weight: 600;
}

.logo-tile figcaption span {
  font: var(--t-label) / 1.5 var(--f-ui);
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-7) clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: inset 0 0 0 1px var(--s-rule);
}

.size {
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
}

.size img {
  display: block;
  max-width: none;
}

.size figcaption {
  font: var(--t-label) / 1.3 var(--f-ui);
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}

.size .empty {
  min-height: 2rem;
}

/* Palette: the colors at their proportions, then each one as a large field with its data. */
.book-fields {
  min-height: clamp(9rem, 20vw, 18rem);
}

.book-fields li {
  padding: var(--sp-4);
  font-size: var(--t-label);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.swatch-field {
  display: flex;
  align-items: flex-start;
  aspect-ratio: 16 / 10;
  padding: var(--sp-4);
  font: 500 var(--t-label) / 1 var(--f-ui);
  text-transform: capitalize;
  box-shadow: inset 0 0 0 1px var(--s-rule);
}

.swatch h3 {
  margin-top: var(--sp-4);
  font-family: var(--s-display);
  font-size: 1.5rem;
  font-weight: var(--s-dw);
  line-height: 1.15;
}

.swatch-hex {
  margin-top: var(--sp-1);
  font: 500 0.9375rem / 1.4 var(--f-ui);
  font-variant-numeric: tabular-nums;
}

.swatch dl {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--s-rule);
}

.swatch dl div {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.swatch dd {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Typography: each face at display scale, its weights as full-width lines, then text. */
.face + .face {
  margin-top: clamp(4.5rem, 9vw, 8rem);
}

.face-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: var(--sp-5) clamp(2rem, 5vw, 5rem);
}

.face-aa {
  font-size: clamp(7rem, 18vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
}

.face-id {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}

.face-role {
  font: 500 var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-muted);
  text-transform: capitalize;
}

.face-id h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.face-id dl {
  max-width: 64ch;
  margin-top: var(--sp-4);
}

.weights {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--s-rule);
}

.weight {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--s-rule);
}

.weight span {
  font: var(--t-label) / 1 var(--f-ui);
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}

.weight p {
  min-width: 0;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.face-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6) clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.alphabet {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sample {
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.65;
}

.sample + .sample {
  margin-top: var(--sp-4);
}

/* Applications: the key visual full bleed on the study's surface, the rest in equal frames. */
.kv {
  margin-inline: calc(-1 * var(--gut));
  padding: clamp(1.5rem, 5vw, 5rem) var(--gut);
  background: var(--s-raise);
}

.kv .zoom img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(88vh, 72rem);
  margin: 0 auto;
}

.kv > .empty {
  aspect-ratio: 16 / 9;
}

.kv figcaption,
.app figcaption {
  display: grid;
  gap: var(--sp-1);
  max-width: 62ch;
  margin-top: var(--sp-4);
}

.kv figcaption {
  margin-inline: auto;
  text-align: center;
}

.kv figcaption strong,
.app figcaption strong {
  font-family: var(--s-display);
  font-size: 1.25rem;
  font-weight: var(--s-dw);
  line-height: 1.25;
}

.kv figcaption span,
.app figcaption span {
  color: var(--s-muted);
  line-height: 1.5;
}

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.app-image {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 7%;
  background: var(--s-raise);
}

.app-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app > .empty {
  aspect-ratio: 4 / 3;
}

.reference .zoom img {
  display: block;
  max-height: 34rem;
}

.reference figcaption {
  margin-top: var(--sp-3);
  font: var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-muted);
}

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11rem, 14rem);
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
}

/* Sketches come in dark and light ink, so they sit on a proof-sheet grey where both read (about 4:1). */
.strip .frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: var(--sp-4);
  background: #777777;
}

.strip .frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strip figcaption,
.board figcaption {
  margin-top: var(--sp-2);
  font: var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-muted);
  overflow-wrap: anywhere;
}

.board {
  columns: 3 16rem;
  column-gap: var(--sp-4);
}

.board figure {
  break-inside: avoid;
  margin-bottom: var(--sp-5);
}

.board img {
  display: block;
  width: 100%;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--band);
  border-top: 1px solid var(--s-rule);
}

.pager-link {
  display: grid;
  gap: var(--sp-3);
  padding: clamp(2rem, 5vw, 4rem) var(--gut);
  text-decoration: none;
  transition: background-color 0.2s;
}

.pager-link:hover {
  background: var(--s-raise);
}

.pager-link[rel="next"] {
  grid-column: 2;
  text-align: right;
  border-left: 1px solid var(--s-rule);
}

.pager-link span {
  font: 500 var(--t-label) / 1.4 var(--f-ui);
  color: var(--s-muted);
}

.pager-link strong {
  font-family: var(--s-display);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: var(--s-dw);
  line-height: 1;
  overflow-wrap: anywhere;
}

/* Full-size image viewer */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  color: #f2f2f2;
  background: rgb(8 8 9 / 0.96);
  border: 0;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
}

/* Medium screens */

@media (max-width: 1100px) {
  .reel-specs {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

  .reel-type {
    grid-column: 1 / -1;
  }

  .doc-sum {
    grid-template-columns: minmax(0, 1fr) auto 1.5rem;
  }

  .doc-sum .doc-excerpt {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .doc-body {
    display: block;
  }
}

@media (max-width: 900px) {
  .brand {
    grid-template-columns: minmax(0, 1fr);
  }

  .mast-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .reel-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .reel-open {
    justify-self: start;
  }

  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .ch-head {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .ch-aside {
    grid-column: 2;
  }

  .ch > .prose,
  .ch > .empty {
    margin-left: 0;
  }

  .book .prose .table-wrap {
    width: auto;
  }

  .logo-tile,
  .logo-tile.is-half {
    grid-column: span 3;
  }

  /* An odd tile out after the primary takes the whole row. */
  .logo-tile:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .logo-tile:last-child:nth-child(even) .logo-ground {
    aspect-ratio: 16 / 7;
  }

  .is-primary .logo-ground {
    aspect-ratio: 16 / 9;
    padding: 8% 14%;
  }

  .face-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .apps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The study panel keeps logo and key visual side by side down to small tablets. */
@media (max-width: 700px) {
  .reel-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .reel-logo,
  .reel-idea,
  .reel-kv {
    grid-column: 1;
    grid-row: auto;
  }

  .reel-logo {
    min-height: clamp(12rem, 50vw, 22rem);
  }

  .reel-logo img {
    max-height: clamp(8rem, 36vw, 16rem);
  }

  .reel-kv img {
    max-height: 62vh;
    object-position: left top;
  }

  .reel-kv {
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .bar {
    gap: var(--sp-3);
  }

  .bar-actions .btn-step {
    display: none;
  }

  .mast-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .reel-specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .reel-mark {
    width: 7rem;
    padding: 1.5rem;
  }

  .logo-system {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-tile,
  .logo-tile.is-half,
  .logo-tile:last-child:nth-child(even) {
    grid-column: 1;
  }

  .logo-tile:last-child:nth-child(even) .logo-ground {
    aspect-ratio: 4 / 3;
  }

  .face-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .weight {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
  }

  .book dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Row labels move into each cell so every study stays one continuous column; columns scroll sideways. */
  .cmp {
    grid-template-columns: repeat(var(--n), minmax(13rem, 72vw));
  }

  .cmp-label {
    display: none;
  }

  .cmp-cell[data-label]::before {
    content: attr(data-label);
    font: var(--t-label) / 1.4 var(--f-ui);
    color: var(--c-ink-3);
  }

  .doc-sum {
    padding: var(--sp-5) 0;
  }

  .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-link[rel="next"] {
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid var(--s-rule);
  }

  .pager-gap {
    display: none;
  }

  .sizes {
    gap: var(--sp-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Print: the brand book prints as a clean document in the study's own colors. */

@media print {
  @page {
    margin: 12mm;
  }

  :root {
    --gut: 0;
    --band: 10mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html {
    scroll-behavior: auto;
  }

  .bar,
  .toc,
  .pager,
  .skip,
  .lightbox,
  .doc-toggle {
    display: none;
  }

  .hero {
    padding: 0;
    break-after: page;
  }

  .hero-logo {
    min-height: 0;
    padding: 30mm 0;
  }

  .hero-logo img {
    max-height: 80mm;
  }

  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .ch {
    padding: var(--band) 0 0;
  }

  .ch-head {
    break-after: avoid;
  }

  .ch-head h2 {
    font-size: 2.25rem;
  }

  #logo,
  #color,
  #type,
  #applications,
  #concept,
  #guidelines {
    break-before: page;
    padding-top: 0;
  }

  .ch > .prose,
  .ch > .empty {
    margin-left: 0;
  }

  .book .prose .table-wrap {
    width: auto;
    overflow: visible;
  }

  .prose td code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  figure,
  .swatch,
  .weight,
  .face-head,
  .face-text,
  .sizes,
  .prose tr,
  .prose img {
    break-inside: avoid;
  }

  .prose h2,
  .prose h3 {
    break-after: avoid;
  }

  .kv {
    margin-inline: 0;
    padding: 6mm;
  }

  .kv .zoom img {
    max-height: 190mm;
  }

  .is-primary .logo-ground {
    aspect-ratio: 2.39 / 1;
  }

  .face-aa {
    font-size: 7rem;
  }

  .weight p {
    font-size: 2.5rem;
  }

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .compare {
    overflow: visible;
  }

  details.doc > :not(summary) {
    display: block;
  }
}
