/* Purpose: Style the whitepaper library and its responsive document reader. */
:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  --ink: #22252a;
  --muted: #505864;
  --line: #dcdfe4;
  --red: #b30c31;
  --red-hover: #92102a;
  --canvas: #f7f7f9;
  background: var(--canvas);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #613582;
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner,
.library {
  width: min(1136px, calc(100% - 64px));
  margin-inline: auto;
}
.header-inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  width: 62px;
  height: 34px;
  object-fit: contain;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.languages {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f1f2f5;
}
.languages a,
.languages .unavailable {
  display: block;
  min-width: 37px;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.languages [aria-current] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px #20212a24;
}
.languages a:hover {
  text-decoration: underline;
}
.languages .unavailable {
  color: #66707e;
  cursor: default;
}
.library {
  padding-block: clamp(32px, 4vw, 56px) 64px;
}
.intro {
  margin-bottom: clamp(24px, 4vw, 40px);
}
.intro h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.intro p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.26rem);
  line-height: 1.55;
}
@media (max-width: 740px) {
  .header-inner,
  .library {
    width: calc(100% - 32px);
  }
}
@media (max-width: 440px) {
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 48px;
  }
  .brand span {
    padding-left: 10px;
  }
}
