@font-face { font-family: 'Guideline Nyght'; src: url('/assets/guidelines/nyght-serif.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Guideline Geist'; src: url('/assets/guidelines/geist.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Figma 461:292: five equal columns, 20px gutters. The guide occupies
   columns three and four; its rail starts at column two. */
.guideline-shell { --gl-rail-left: max(30px, calc(20vw + 4px)); --gl-main-left: max(388px, calc(40vw + 8px)); --gl-s1: 120px; --gl-s2: 60px; --gl-s3: 35px; min-height: 100svh; font-size: 14px; line-height: 1.3; letter-spacing: -.42px; color: #0a0a0a; }
html[data-guideline-view] #site-logo { left: max(30px, calc(20vw + 4px)); }
.guideline-shell h1, .guideline-shell h2, .guideline-shell h3, .guideline-shell h4, .guideline-shell p, .guideline-shell figure, .guideline-shell dl, .guideline-shell dd { margin: 0; font-size: inherit; line-height: inherit; }
.guideline-shell h1, .guideline-shell h2, .guideline-shell h3, .guideline-shell h4 { font-weight: 500; }
.guideline-shell :is(h1,h2,h3,h4,p) { text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.guideline-shell button, .guideline-shell a { font: inherit; letter-spacing: inherit; }
.guideline-shell button { cursor: pointer; }
.guideline-shell button:disabled { cursor: wait; opacity: .55; }
.guideline-shell a { color: inherit; text-decoration: none; }
.guideline-shell :is(button,a,input):focus-visible { outline: 2px solid #0a0a0a; outline-offset: 4px; }
.guideline-shell .gl-description { color: #707070; white-space: pre-wrap; overflow-wrap: anywhere; }
.guideline-icon { display: block; flex: 0 0 auto; }
.gl-content.project-page-content { width: min(756px, calc(100vw - var(--gl-main-left) - 30px)); margin-left: var(--gl-main-left); padding: 121px 0 120px; }
.gl-sections { display: grid; gap: var(--gl-s1); }
.gl-section { min-width: 0; scroll-margin-top: 40px; }
.gl-stack, .gl-section-content { display: grid; gap: var(--gl-s3); min-width: 0; }
.gl-section-content > .gl-subsection-slot { margin-top: calc(var(--gl-s2) - var(--gl-s3)); min-width: 0; }
.gl-section:first-child[data-gl-section="overview"] .gl-subsection-slot:first-of-type { margin-top: 0; }
.gl-caption { min-width: 0; }
.gl-media { position: relative; width: 100%; background: #f2f2f2; min-width: 0; }
.gl-media > img, .gl-logo-size-art > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gl-media > img:not([src]), .gl-logo-size-art > img:not([src]) { visibility: hidden; }
.gl-logo-sizes { display: grid; gap: var(--gl-s3); }
.gl-logo-size { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
.gl-logo-size-art { flex: 0 1 auto; max-width: calc(100% - 60px); background: #f2f2f2; }
.gl-logo-size-art.has-art { background: none; }
.gl-logo-size-art.has-art > img { object-position: left center; }
.gl-logo-size > span { flex: 0 0 auto; color: #707070; }
.gl-asset-grid { display: grid; grid-template-columns: repeat(var(--gl-columns), minmax(0, 1fr)); gap: var(--gl-s3) 20px; align-items: start; }
.gl-asset-card { display: grid; gap: var(--gl-s3); min-width: 0; }
.gl-asset-card > h4 { overflow-wrap: anywhere; }
.gl-file-tools { position: absolute; top: 5px; right: 5px; display: flex; gap: 5px; }
.gl-file-tools > div { display: flex; height: 30px; background: #fff; border: 1px solid rgb(112 112 112 / .1); }
.gl-file-tools > div button { padding: 0 10px; color: #707070; background: transparent; font-size: 12px; line-height: 1.3; letter-spacing: -.36px; }
.gl-copy { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; background: #fff; border: 1px solid rgb(112 112 112 / .1); }
.gl-copy .guideline-icon { width: 14px; height: 14px; }
.gl-file-tools button:hover, .gl-copy:hover { color: #0a0a0a; background: #fafafa; }
.gl-palette { display: grid; grid-template-columns: repeat(var(--gl-colors), minmax(0, 1fr)); gap: 20px; }
.gl-swatch { height: 424px; padding: 30px 20px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.gl-swatch h4 { overflow-wrap: anywhere; }
.gl-swatch dl { display: grid; gap: 0; font-size: 12px; line-height: 1.7; letter-spacing: -.36px; }
.gl-swatch dl > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 20px; }
.gl-swatch dt { font-weight: 500; }
.gl-swatch dd { min-width: 0; overflow-wrap: anywhere; }
.gl-swatch button { color: inherit; padding: 0; background: transparent; text-align: left; font: inherit; }
.gl-swatch button:hover { text-decoration: underline; }
.gl-balance { display: grid; gap: var(--gl-s3); }
.gl-balance-chart { display: flex; height: 424px; overflow: hidden; background: #f2f2f2; }
.gl-balance-chart > div { min-width: 0; }
.gl-balance-key { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #707070; }
.gl-contrast { display: grid; gap: 20px; }
.gl-contrast-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 57px; align-items: center; gap: 20px; min-height: 30px; }
.gl-contrast-sample { min-height: 30px; display: grid; place-items: center; }
.gl-contrast-ratio { color: #707070; white-space: nowrap; }
.gl-contrast-grade { display: grid; place-items: center; align-self: stretch; min-height: 30px; background: #0a0a0a; color: #fff; }
.gl-contrast-grade.is-fail { background: #f2f2f2; color: #707070; }
.gl-fonts { display: grid; gap: var(--gl-s2); }
.gl-font { display: grid; gap: var(--gl-s3); min-width: 0; }
.gl-font-preview { display: flex; align-items: center; gap: 20px; justify-content: space-between; min-width: 0; }
.gl-font-preview > p { min-width: 0; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gl-font-preview a { flex: 0 0 30px; height: 30px; display: grid; place-items: center; background: #fff; border: 1px solid rgb(112 112 112 / .1); }
.gl-font-preview a:hover { background: #fafafa; }
.gl-font-preview .guideline-icon { width: 14px; height: 14px; }
.gl-type-scale { display: grid; gap: var(--gl-s2); }
.gl-scale-controls { display: grid; gap: var(--gl-s3); }
.gl-scale-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 164px; align-items: center; gap: 20px; }
.gl-scale-range { position: relative; display: flex; align-items: center; min-width: 0; height: 18px; }
.gl-range-track { position: absolute; left: 1px; right: 1px; top: 50%; height: 1px; background: #f2f2f2; pointer-events: none; }
.gl-range-fill { display: block; height: 100%; background: #707070; }
.gl-range-ticks { position: absolute; inset: -2px 0; display: flex; align-items: center; justify-content: space-between; }
.gl-range-ticks i { width: 1px; height: 4px; background: #e6e6e6; }
.gl-range-ticks i.is-passed { background: #707070; }
.gl-scale-range input[type="range"] { position: relative; z-index: 1; width: 100%; height: 18px; margin: 0; padding: 0; appearance: none; background: transparent; cursor: pointer; }
.gl-scale-range input::-webkit-slider-runnable-track { height: 1px; background: transparent; }
.gl-scale-range input::-webkit-slider-thumb { appearance: none; height: 8px; width: 2px; margin-top: -3.5px; background: #0a0a0a; }
.gl-scale-range input::-moz-range-track { height: 1px; background: transparent; }
.gl-scale-range input::-moz-range-thumb { height: 8px; width: 2px; border: 0; border-radius: 0; background: #0a0a0a; }
.gl-base-output, .gl-ratio-output { display: flex; align-items: center; justify-content: flex-end; gap: 20px; white-space: nowrap; min-width: 0; }
.gl-base-output { gap: 4px; }
.gl-base-output > span, .gl-ratio-output > span { color: #707070; }
.gl-scale-number { width: 6ch; min-width: 0; padding: 0; border: 0; border-bottom: 1px solid #707070; border-radius: 0; appearance: textfield; background: transparent; color: #0a0a0a; text-align: right; font: inherit; letter-spacing: inherit; }
.gl-base-number { width: 4.2ch; }
.gl-scale-number::-webkit-inner-spin-button, .gl-scale-number::-webkit-outer-spin-button { appearance: none; margin: 0; }
.gl-scale-roles { display: grid; gap: var(--gl-s2); }
.gl-scale-role { display: grid; gap: var(--gl-s3); min-width: 0; }
.gl-scale-role header { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #707070; }
.gl-scale-role header > span { display: flex; align-items: center; gap: 20px; text-align: right; }
.gl-scale-role p { line-height: 1.1; letter-spacing: -.02em; color: #0a0a0a; overflow-wrap: anywhere; }
.gl-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gl-comparison > div { display: grid; align-content: start; gap: var(--gl-s3); }
.gl-messaging { display: grid; gap: var(--gl-s3); }
.gl-messaging article { display: grid; gap: var(--gl-s3); }
.gl-messaging header { position: relative; display: flex; align-items: center; justify-content: space-between; }
.gl-messaging header .gl-copy { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
.gl-messaging header h4 { padding-right: 45px; }
.gl-download-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gl-download-actions button, .gl-action-links a, .gl-unavailable-link { min-height: 35px; border-radius: 5px; background: #f2f2f2; display: flex; align-items: center; justify-content: space-between; padding: 9px 20px; gap: 20px; text-align: left; color: #0a0a0a; }
.gl-download-actions .guideline-icon, .gl-action-links .guideline-icon { width: 17px; height: 17px; }
.gl-action-links { display: grid; gap: 20px; }
.gl-action-links a { justify-content: flex-start; font-size: 12px; }
.gl-action-links a > span:first-child { font-family: 'Guideline Nyght', serif; font-size: 14px; }
.gl-action-links a .guideline-icon { margin-left: auto; }
.gl-footer { margin-top: var(--gl-s1); text-align: center; }
.gl-sidebar { position: fixed; z-index: 10; top: 121px; bottom: 42px; left: var(--gl-rail-left); width: min(288px, calc(var(--gl-main-left) - var(--gl-rail-left) - 40px)); display: flex; flex-direction: column; justify-content: space-between; gap: 60px; overflow-y: auto; scrollbar-width: thin; }
.gl-sidebar-intro { display: grid; gap: var(--gl-s2); }
.gl-sidebar-intro > div > span { display: block; font-size: 12px; color: #707070; line-height: 1.3; letter-spacing: -.36px; margin-bottom: 3px; }
.gl-sidebar-intro p { overflow-wrap: anywhere; }
.gl-sidebar nav { display: grid; align-content: start; gap: 0; }
.gl-sidebar nav button { padding: 0; min-height: 35px; background: none; color: #707070; text-align: left; transition: color 220ms ease; }
.gl-sidebar nav button > span { display: inline-block; transform: translateX(0); transition: transform 220ms ease; }
.gl-sidebar nav button:hover, .gl-sidebar nav button[aria-current] { color: #0a0a0a; }
.gl-sidebar nav button[aria-current] > span { transform: translateX(8px); }
.gl-sidebar-bottom { display: grid; gap: 60px; flex: 0 0 auto; }
.gl-sidebar-bottom > span { color: #707070; }
.gl-sidebar-actions { display: grid; gap: 18px; }
.gl-sidebar-actions button { display: flex; align-items: center; gap: 20px; width: fit-content; padding: 0; min-height: 17px; background: none; color: #707070; text-align: left; }
.gl-sidebar-actions button:hover { color: #0a0a0a; }
.gl-sidebar-actions .guideline-icon { width: 17px; height: 17px; }
.gl-return { position: absolute; left: var(--gl-main-left); top: 48px; width: min(756px, calc(100vw - var(--gl-main-left) - 30px)); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #707070; }
.gl-empty { display: grid; justify-content: center; gap: 35px; padding: 180px 24px; }
.gl-empty h1 { font-size: 14px; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .gl-sidebar nav button, .gl-sidebar nav button > span { transition: none; }
}

@media (max-width: 1350px) and (min-width: 821px) {
  .guideline-shell { --gl-rail-left: 30px; --gl-main-left: 350px; }
  html[data-guideline-view] #site-logo { left: 30px; }
  .gl-swatch { padding: 30px 12px; }
  .gl-swatch dl > div { grid-template-columns: 32px minmax(0,1fr); gap: 8px; }
}
@media (max-width: 820px) {
  .guideline-shell { --gl-rail-left: 24px; --gl-main-left: 24px; padding: 0 24px; }
  html[data-guideline-view] #site-logo { left: 24px; }
  .gl-sidebar { position: static; width: 100%; padding-top: 112px; overflow: visible; gap: 35px; }
  .gl-sidebar-intro { gap: 35px; }
  .gl-sidebar-intro > div { display: none; }
  .gl-sidebar nav { display: flex; gap: 20px; overflow: auto; padding: 4px 0; }
  .gl-sidebar nav button { flex: 0 0 auto; white-space: nowrap; }
  .gl-sidebar-bottom { display: none; }
  .gl-return { top: 36px; left: auto; right: 24px; width: auto; gap: 20px; }
  .gl-content.project-page-content { width: 100%; margin-left: 0; padding: 60px 0 120px; }
  .gl-palette { grid-template-columns: repeat(min(var(--gl-colors), 2), minmax(0, 1fr)); }
  .gl-swatch { min-height: 300px; height: auto; gap: 150px; padding: 25px 14px; }
  .gl-swatch dl > div { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .gl-asset-grid { grid-template-columns: repeat(min(var(--gl-columns), 2), minmax(0, 1fr)); }
  .gl-file-tools { flex-wrap: wrap; justify-content: end; left: 5px; }
  .gl-file-tools > div button { padding: 0 7px; }
  .gl-contrast-row { grid-template-columns: 36px minmax(0, 1fr) auto 40px; gap: 10px; font-size: 12px; }
  .gl-font-preview p { font-size: clamp(18px, 6vw, 46px) !important; }
  .gl-scale-row { grid-template-columns: 35px minmax(0, 1fr) 55px; gap: 15px; }
  .gl-ratio-output > span { display: none; }
  .gl-scale-role header { font-size: 12px; gap: 10px; }
  .gl-scale-role header > span { gap: 10px; }
  .gl-download-actions { grid-template-columns: 1fr; }
}
@media print {
  #site-logo, .gl-sidebar, .gl-return, .gl-file-tools, .gl-copy, .gl-scale-controls, .client-toast { display: none !important; }
  .gl-content.project-page-content { width: 100%; margin: 0; padding: 0; }
  .gl-section { break-inside: auto; }
  .gl-subsection { break-inside: avoid; }
}
