@font-face {
  font-family: "Boldonse";
  src: url("/assets/fonts/boldonse/Boldonse-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* The controls keep their own typography while the portfolio changes. */
#font-lab,
#font-lab * {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: normal;
}
#font-lab {
  position: relative;
  z-index: 4;
  color: #131519;
  background: #f7f8fa;
  border-bottom: 1px solid #dadddf;
  font-size: 14px;
  line-height: 1.45;
}
.font-lab-inner { padding-top: 18px; padding-bottom: 18px; }
.font-lab-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.font-lab-title { font-size: 17px; font-weight: 500; line-height: 1.35; }
#font-lab h2 { font-size: 19px; font-weight: 500; line-height: 1.35; }
#font-current { color: #131519; font-size: 14px; font-weight: 500; margin-top: 3px; }
#font-lab-body { padding-top: 18px; }
.font-lab-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(150px, .8fr);
  align-items: end;
  gap: 14px 20px;
}
.font-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #60646d; font-size: 14px; }
#font-lab :is(select, input, button) { font-size: 14px; }
#font-lab :is(select, input[type="file"]) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #bfc3ca;
  border-radius: 0;
  background: white;
  color: #131519;
  padding: 8px 10px;
}
#font-lab select { padding-right: 28px; text-overflow: ellipsis; cursor: pointer; appearance:none; background-image:linear-gradient(45deg,transparent 50%,#131519 50%),linear-gradient(135deg,#131519 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;background-size:4px 4px;background-repeat:no-repeat; }
#font-lab input[type="file"] { padding: 5px; font-size: 12px; overflow: hidden; }
#font-lab input[type="file"]::file-selector-button {
  border: 0;
  border-right: 1px solid #dadddf;
  background: white;
  color: #131519;
  padding: 7px 10px;
  margin-right: 8px;
  font: inherit;
  cursor: pointer;
}
#font-tracking { width: 100%; min-width: 0; height: 42px; margin: 0; accent-color: #1b3bd6; cursor: pointer; }
#font-tracking-value { color: #131519; font-variant-numeric: tabular-nums; }
#font-lab-toggle,
#font-reset { min-height: 42px; padding: 8px 13px; border: 1px solid #bfc3ca; white-space: nowrap; }
#font-lab-toggle { min-width: 112px; flex-shrink: 0; background: white; }
#font-reset { border-color: #131519; color: white; background: #131519; }
#font-lab :is(button, a):hover { color: #1b3bd6; border-color: #1b3bd6; }
#font-reset:hover { color: white !important; background: #1b3bd6; }
#font-lab :is(a, button, select, input):focus-visible { outline: 2px solid #1b3bd6; outline-offset: 3px; }
#font-lab :is(select, input):disabled { opacity: .45; cursor: default; }
#font-lab[data-font-availability="missing"] #font-choice { border-color: #1b3bd6; box-shadow: inset 3px 0 #1b3bd6; }
.font-access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; padding: 18px 20px; margin-top: 16px; border: 1px solid #dadddf; border-left: 4px solid #1b3bd6; background: #fff; }
.font-access-kicker { color: #1b3bd6; font-size: 12px; font-weight: 500; margin-bottom: 5px; }
#font-access-title { font-size: 19px; line-height: 1.3; font-weight: 500; margin: 0 0 9px; }
#font-access-copy { font-size: 14px; line-height: 1.5; }
.font-access-current { font-size: 14px; line-height: 1.5; margin-top: 12px; font-weight: 500; }
.font-access-actions { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.font-access-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #131519; font-size: 14px; line-height: 1.3; text-align: center; }
.font-access-primary { color: #fff; background: #131519; }
#font-lab .font-access-primary:hover { color: #fff; background: #1b3bd6; }
.font-access-secondary { color: #131519; background: #fff; }
.font-access-note { color: #60646d; font-size: 13px; line-height: 1.45; margin: 0; }
#font-trial-note { margin-bottom: 12px; }
.font-access .font-field { gap: 6px; }
.font-access[data-state="loaded"] { border-left-color: #60646d; }
.font-lab-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 24px; margin-top: 12px; }
#font-status { color: #60646d; font-size: 14px; flex: 1 1 420px; margin: 0; }
#font-status[data-state="missing"], #font-status[data-state="error"] { color: #824018; }
#font-source { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.font-lab-note { margin-top: 7px; color: #60646d; font-size: 13px; max-width: 105ch; }
.font-lab-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.font-lab-actions { margin-top: 12px; }
.font-lab-actions > a { padding: 8px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.font-file-button { display: none; }
.font-catalog { margin-top: 14px; border-top: 1px solid #dadddf; padding-top: 8px; }
.font-catalog > summary { width: fit-content; min-height: 44px; padding: 11px 0; cursor: pointer; font-size: 14px; }
.font-catalog-scroll { max-width: 100%; overflow-x: auto; margin-top: 8px; }
.font-catalog table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.font-catalog th, .font-catalog td { padding: 11px 18px 11px 0; border-bottom: 1px solid #dadddf; vertical-align: top; }
.font-catalog thead th { font-size: 14px; font-weight: 500; color: #60646d; }
.font-catalog tbody th { font-weight: 500; min-width: 120px; }
.font-catalog small { display: block; color: #60646d; font-size: 14px; line-height: 1.5; font-weight: 400; margin-top: 3px; }
.font-catalog a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
#font-lab.is-collapsed .font-lab-inner { padding-block: 10px; }
#font-lab.is-collapsed { position:sticky; top:81px; z-index:40; }

/* Fonts apply to the existing page, including content opened in the dialog. */
body[data-rv-font-scope] :is(.wordmark, .hero-wordmark, .footer-wordmark),
body[data-rv-font-scope] .wordmark span {
  font-family: var(--rv-preview-family);
  font-weight: var(--rv-preview-weight);
  font-synthesis: none;
  letter-spacing: var(--rv-preview-tracking);
}
body[data-rv-font-scope="headings"] :is(main, .site-footer, dialog) :is(h1, h2, h3),
body[data-rv-font-scope="headings"] :is(main, .site-footer, dialog) :is(h1, h2, h3) * {
  font-family: var(--rv-preview-family);
  font-weight: var(--rv-preview-weight);
  font-synthesis: none;
  letter-spacing: var(--rv-preview-tracking);
  overflow-wrap: anywhere;
}
body[data-rv-font-scope="all"] :is(.site-header, main, .site-footer, dialog),
body[data-rv-font-scope="all"] :is(.site-header, main, .site-footer, dialog) * {
  font-family: var(--rv-preview-family);
  font-weight: var(--rv-preview-weight);
  font-synthesis: none;
  letter-spacing: var(--rv-preview-tracking);
}
body[data-rv-font-scope="all"] :is(main, .site-footer, dialog) :is(h1, h2, h3, p, a, dd, dt, summary) { overflow-wrap: anywhere; }
body[data-rv-font-scope] :is(.wordmark, .hero-wordmark, .footer-wordmark) { white-space: nowrap; min-width: 0; }
body[data-rv-font-scope] .site-header .wordmark { max-width: 100%; }
body[data-rv-font-scope="all"] .header-partners a { min-width: 0; }
body[data-rv-font-scope="all"] :is(main, dialog) :is(button, input, select) { min-width: 0; max-width: 100%; }

@media (max-width: 1100px) {
  .font-lab-controls { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .font-access { gap: 18px 24px; }
  #font-reset { justify-self: end; }
}
@media (max-width: 700px) {
  .font-lab-inner { padding-block: 13px; }
  .font-lab-top { gap: 12px; align-items: center; }
  .font-lab-title, #font-lab h2 { font-size: 16px; }
  #font-lab-toggle { min-width: 0; font-size: 14px; padding-inline: 10px; }
  #font-current { display: block; font-size: 13px; }
  #font-lab.is-collapsed { top:93px; }
  .font-lab-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .font-field:has(#font-choice), .font-field:has(#font-file), .font-field:has(#font-tracking) { grid-column: 1 / -1; }
  .font-field:has(#font-scope) { grid-column:1 / -1; }
  .font-lab-controls > #font-reset { grid-column: 2; grid-row: 2; justify-self: stretch; }
  #font-lab-body { padding-top: 13px; }
  .font-lab-meta { gap: 0 18px; }
  #font-status { flex-basis: 100%; }
  .font-lab-note { font-size: 13px; }
  .font-catalog table { min-width: 600px; }
  .font-access { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; margin-top: 12px; }
  #font-access-title { font-size: 17px; margin-bottom: 6px; }
  .font-access-current { margin-top: 8px; }
  .font-access-actions { gap: 8px; margin-bottom: 10px; }
  .font-access-actions a { flex: 1 1 135px; padding-inline: 10px; }
}
@media print { #font-lab { display: none; } }
