@font-face {
  font-family: "Public Sans";
  src: url("../modern/fonts/PublicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../modern/fonts/PublicSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../modern/fonts/PublicSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font:
    400 16px/1.5 "Public Sans",
    sans-serif;
  color: #172c40;
  background: #fff;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
a {
  cursor: pointer;
}
a {
  color: #1458b8;
  text-underline-offset: 4px;
}
button,
select,
input {
  min-height: 44px;
  border: 1px solid #b5c1ce;
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
}
button:hover,
select:hover {
  background: #e8f0fc;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #366b9c;
  outline-offset: 3px;
}
::selection {
  background: #cdddff;
  color: #002147;
}
input {
  caret-color: #1458b8;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
h1 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
p {
  color: #5a6979;
}
.library-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  max-width: 1500px;
  margin: auto;
  padding: 30px 38px 26px;
}
.library-head a {
  font-size: 14px;
  text-decoration: none;
}
.library-head p {
  max-width: 430px;
  margin: 0;
  font-size: 14px;
}
.header-title {
  min-width: 0;
}
button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
#customize,
#variant-nav,
#variant-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
}
#customize {
  flex-shrink: 0;
}
#hide-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
#show-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(8 44 85 / 12%);
  border-color: transparent;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 600px) {
  #show-header {
    left: auto;
    right: 4px;
    transform: none;
    gap: 5px;
    padding: 8px;
    font-size: 12px;
    min-height: 36px;
  }
}
#variant-nav {
  margin-left: auto;
  flex-shrink: 0;
}
#position {
  min-width: 58px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #5a6979;
}
button:disabled {
  color: #737d89;
  background: #f3f5f7;
  border-color: #e4e9f0;
  cursor: default;
}
.shortcut-hint {
  margin-left: 4px;
  color: #5a6979;
  font-size: 13px;
}
kbd {
  font: inherit;
  font-weight: 600;
}
#customizer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(460px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  color: #172c40;
  background: #fff;
  box-shadow: -12px 0 40px rgb(0 33 71 / 14%);
}
#customizer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-enter 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
#customizer::backdrop {
  background: transparent;
}
.keyboard-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.keyboard-toggle input {
  width: 18px;
  min-height: 18px;
}
body.drawer-open {
  overflow: hidden;
}
.drawer-header,
.drawer-footer {
  flex-shrink: 0;
  padding: 18px 24px;
  background: #f1f5fb;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#close-drawer {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.drawer-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px;
}
#drawer-description {
  margin: 0 0 24px;
  font-size: 14px;
}
#preview-options {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
#customizer select {
  width: 100%;
  min-width: 0;
}
.appearance {
  display: grid;
  gap: 20px;
}
.appearance fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.appearance legend {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}
#palettes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#palettes button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
#palettes button::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--swatch, #e4e9f0);
}
#palettes button[aria-pressed="true"] {
  background: #002147;
  color: #fff;
  border-color: #002147;
}
#accent {
  width: 72px;
  padding: 5px;
}
#reset {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
.appearance-note {
  margin: 0;
  font-size: 13px;
}
#reset {
  justify-self: start;
  padding-left: 0;
}
#preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  font-size: 14px;
}
#drawer-status {
  margin-bottom: 0;
  font-size: 14px;
}
#drawer-status:empty {
  display: none;
}
.drawer-footer {
  margin-top: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.drawer-footer p {
  margin: 0;
  font-size: 13px;
  max-width: 28ch;
}
#done {
  background: #002147;
  color: #fff;
  border-color: #002147;
  padding-inline: 24px;
}
#done:hover {
  background: #123963;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes drawer-enter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #customizer[open] {
    animation: none;
  }
}
#catalogue {
  max-width: 1500px;
  margin: auto;
  padding: 28px 38px 48px;
}
.find-row {
  display: flex;
  gap: 22px;
  align-items: end;
}
.find-row label:first-child {
  flex: 1;
  max-width: 560px;
}
#count {
  margin-left: auto;
  padding: 12px 0;
  font-size: 14px;
  color: #5a6979;
}
.index-note {
  margin: 15px 0 30px;
  font-size: 14px;
}
.collection {
  margin: 32px 0 40px;
}
.collection-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.collection-heading span {
  font-size: 14px;
  color: #5a6979;
}
.variant-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(250px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #e4e9f0;
}
.variant-row h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.variant-row p {
  margin: 0;
  font-size: 13px;
}
.screen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.screen-links a {
  padding: 10px 0;
  min-height: 44px;
  font-size: 14px;
}
.original-file {
  color: #5a6979;
  font-size: 13px;
  padding: 10px 0;
}
footer {
  padding-top: 10px;
  color: #5a6979;
  font-size: 13px;
  max-width: 75ch;
}
body.is-preview {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.is-preview.chrome-hidden {
  padding-bottom: 0;
}
#viewer {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: auto;
  background: #f1f5fb;
}
.preview-loading {
  display: grid;
  place-items: center;
  height: 100%;
  color: #5a6979;
}
#preview {
  display: block;
  width: var(--preview-width, 100%);
  height: 100%;
  margin-inline: auto;
  border: 0;
  background: #fff;
}
body.is-preview .library-head {
  width: 100%;
  flex-shrink: 0;
  max-width: none;
  margin: 0;
  padding: 12px 24px;
  gap: 16px;
}
body.is-preview h1 {
  font-size: 17px;
  margin: 0;
}
body.is-preview #page-summary,
body.is-preview #home {
  display: none;
}
#screen-label {
  font-size: 13px;
  margin: 3px 0 0;
}
#back {
  white-space: nowrap;
  padding-block: 12px;
}
#frame-error {
  margin: 40px;
}
#frame-error a {
  margin-right: 20px;
}
@media (max-width: 1000px) {
  .shortcut-hint {
    display: none;
  }
  .variant-row {
    grid-template-columns: 1fr 1fr;
  }
  .original-file {
    grid-column: 2;
    padding: 0;
  }
  #count {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .library-head {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 20px;
  }
  #page-summary {
    flex-basis: 100%;
    order: 3;
  }
  #catalogue {
    padding: 24px 20px;
  }
  .find-row {
    flex-wrap: wrap;
  }
  .find-row label:first-child {
    flex-basis: 100%;
  }
  .variant-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .original-file {
    grid-column: auto;
  }
  body.is-preview .library-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    padding: 10px 16px;
    gap: 8px;
  }
  body.is-preview .header-title {
    grid-column: 1;
    grid-row: 1;
  }
  #variant-nav {
    grid-column: 2 / -1;
    grid-row: 2;
    margin: 0;
    justify-content: end;
    gap: 4px;
  }
  #variant-nav button {
    padding: 8px;
    font-size: 14px;
  }
  #variant-nav button svg {
    display: none;
  }
  #position {
    min-width: 44px;
    font-size: 13px;
  }
  body.is-preview #back {
    grid-column: 1;
    grid-row: 2;
  }
  body.is-preview #customize {
    grid-column: 2;
    grid-row: 1;
  }
  #hide-header {
    grid-column: 3;
    grid-row: 1;
    justify-content: center;
    padding: 0;
  }
  .hide-label {
    display: none;
  }
  .drawer-header,
  .drawer-body,
  .drawer-footer {
    padding-inline: 20px;
  }
}
