/* Shared design language for company, reference and guide index pages. */
body.gm-redesign .gl-core {
  --gl-night: #111a35;
  --gl-deep: #1b2449;
  --gl-ink: #1a2342;
  --gl-text: #485570;
  --gl-violet: #403578;
  --gl-lavender: #dfd8ff;
  --gl-paper: #f5f3ff;
  --gl-line: #dedbea;
  --gl-space: clamp(52px, 7vw, 100px);
  background: #fff;
  color: var(--gl-ink);
  padding-top: 0;
}
.gl-core .gl-shell {
  width: min(1180px, calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
  min-width: 0;
}
.gl-core :is(h1, h2, h3) {
  margin: 0;
  color: var(--gl-ink);
  font-weight: 600;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.gl-core h2 {
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.14;
}
.gl-core h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.28;
}
.gl-core :is(p, li) {
  color: var(--gl-text);
  line-height: 1.75;
}
.gl-core p {
  margin: 0 0 .9rem;
}
.gl-core p:last-child {
  margin-bottom: 0;
}
.gl-core a {
  color: var(--gl-violet);
  text-underline-offset: .25em;
}
body.gm-redesign .gl-core :is(a, button, input, select, textarea, [role="tabpanel"]):focus-visible {
  outline: 3px solid #5b51a5;
  outline-offset: 4px;
}
body.gm-redesign .gl-core :is(.gl-hero, .sr-framework-section) :is(a, button, [role="tabpanel"]):focus-visible {
  outline-color: #efe3ff;
}
.gl-core .gl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.15rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gl-deep);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.gl-core .gl-button:hover {
  background: var(--gl-violet);
  text-decoration: none;
}
.gl-core .gl-button:disabled {
  opacity: .65;
  cursor: default;
}
.gl-core .gl-hero .gl-button {
  margin-top: 1.1rem;
  background: var(--gl-lavender);
  color: var(--gl-night);
}
.gl-core .gl-hero .gl-button:hover {
  background: #f1ecff;
}
.gl-core .gl-hero {
  background: var(--gl-night);
  padding: clamp(122px, 13vw, 186px) 0 clamp(48px, 7.5vw, 105px);
}
.gl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  gap: clamp(24px, 5.5vw, 78px);
  align-items: center;
}
.gl-core .gl-hero h1 {
  color: #fbfaff;
  font-size: clamp(2.25rem, 5.1vw, 5.4rem);
  line-height: .99;
  letter-spacing: -.055em;
  margin-bottom: 1.35rem;
  text-wrap: pretty;
}
.gl-core .gl-lead {
  color: #e1def4;
  font-size: clamp(.98rem, 1.55vw, 1.15rem);
  line-height: 1.7;
  max-width: 53ch;
}
.gl-core .gl-kicker {
  color: var(--gl-violet);
  font-size: .91rem;
  font-weight: 600;
  margin-bottom: .85rem;
}
.gl-core .gl-hero .gl-kicker {
  color: #e2d8ff;
}
.gl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  color: #e1def4;
  font-size: .82rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.gl-core .gl-breadcrumb a {
  color: #e1def4;
  text-decoration: underline;
}
.gl-illustration {
  display: block;
  width: 100%;
  height: auto;
}
.gl-editorial {
  position: relative;
  margin: 0;
  min-width: 0;
}
.gl-editorial img {
  display: block;
  width: 100%;
  height: auto;
}
.gl-editorial figcaption {
  color: #ddd9f1;
  padding-top: .65rem;
  font-size: .8rem;
  line-height: 1.5;
}
.gl-band {
  padding-block: var(--gl-space);
}
.gl-band-tint {
  background: var(--gl-paper);
}
.gl-band-head {
  max-width: 48rem;
  margin: 0 0 clamp(24px, 4vw, 48px);
}
.gl-band-head p {
  margin-top: .8rem;
}
.gl-callout,
.gl-update {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(18px, 7vw, 92px);
  align-items: start;
}
.gl-callout h2 + p,
.gl-update h2 + p {
  margin-top: .85rem;
}
.gl-callout ul,
.gl-work-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gl-line);
}
.gl-callout li,
.gl-work-links li {
  border-bottom: 1px solid var(--gl-line);
}
.gl-callout li a,
.gl-work-links li a {
  display: block;
  padding: .75rem 0;
  text-decoration: underline;
}
.gl-update {
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--gl-line);
  border-radius: 18px;
  background: var(--gl-paper);
  align-items: center;
}
.gl-update-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
}
.gl-update-form .gm-form-note,
.gl-update-form [role="status"] {
  grid-column: 1 / -1;
}
.gl-core .gl-update-form .gm-form-note {
  margin: .2rem 0 0;
  font-size: .8rem;
}
.gl-core :is(.gl-update-form, .gl-contact-form) :is(input, select, textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .7rem .85rem;
  border: 1px solid #9b96b6;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
  color: var(--gl-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.gl-core :is(.gl-update-form, .gl-contact-form) :is(input, textarea)::placeholder {
  color: #666178;
}
.gl-core :is(.gl-update-form, .gl-contact-form) :is(input, select, textarea):disabled {
  background: #f2f0f7;
}

/* About pairs the studio illustration with the introduction, then switches to a two-column review ledger. */
.gl-core .gl-about-hero {
  padding: 0;
  padding-top: 82px;
  background: var(--gl-night);
}
.gl-core .gl-about-hero .gl-shell {
  width: min(100%, 1600px);
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.gl-about-hero .gl-hero-copy {
  padding: clamp(38px, 7vw, 118px);
  align-self: center;
}
.gl-about-hero .gl-hero-visual {
  order: -1;
}
.gl-about-hero .gl-editorial {
  height: 100%;
}
.gl-about-hero .gl-editorial img {
  height: 100%;
  min-height: 490px;
  object-fit: cover;
}
.gl-about-hero .gl-editorial figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 6px;
  padding: .35rem .65rem;
  background: var(--gl-night);
  color: #fff;
}
.gl-about-principles {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 6vw, 80px);
  align-items: start;
}
.gl-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.gl-principles article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--gl-line);
  padding: 22px 0;
}
.gl-principles svg {
  width: 44px;
  height: 44px;
  padding: 7px;
  border-radius: 10px;
  color: var(--gl-violet);
  background: var(--gl-paper);
}
.gl-principles h3 {
  margin: .2rem 0 .55rem;
}
.gl-principles p {
  font-size: .91rem;
}
.gl-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: clamp(16px, 3.5vw, 48px);
  align-items: start;
}
.gl-stage-grid .nav-tabs {
  flex-direction: column;
  gap: 9px;
  padding: 0;
  border: 0;
}
.gl-stage-grid .nav-item {
  margin: 0;
}
.gl-core .gl-stage-grid .nav-link {
  display: block;
  min-height: 48px;
  padding: .9rem 1rem;
  border: 1px solid var(--gl-line);
  border-radius: 9px;
  background: #fff;
}
.gl-core .gl-stage-grid .nav-link:hover {
  background: var(--gl-paper);
}
.gl-core .gl-stage-grid .nav-link.active {
  background: var(--gl-deep);
  color: #fff;
  border-color: var(--gl-deep);
}
.gl-stage-grid .nav-link h5 {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  margin: 0;
}
.gl-stage-grid .nav-link p {
  font-size: .82rem;
  line-height: 1.5;
  color: inherit;
  margin: .32rem 0 0;
}
.gl-stage-view {
  padding: clamp(8px, 1.5vw, 18px);
  border: 1px solid var(--gl-line);
  border-radius: 13px;
  background: var(--gl-paper);
}
.gl-stage-view img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

/* Contact puts persistent field labels and office details side by side. */
.gl-core .gl-contact-hero {
  background: #212a54;
  padding-block: clamp(116px, 10vw, 148px) clamp(32px, 4vw, 60px);
}
.gl-core .gl-contact-hero h1 {
  max-width: 13ch;
}
.gl-contact-hero .gl-illustration {
  width: min(100%, 390px);
  margin-inline: auto;
}
.gl-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(20px, 6vw, 88px);
  align-items: start;
}
.gl-contact-details {
  display: grid;
  gap: 14px;
}
.gl-contact-details section {
  padding: clamp(17px, 2.4vw, 28px);
  border: 1px solid var(--gl-line);
  border-radius: 14px;
}
.gl-office {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--gl-paper);
}
.gl-office a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .88rem;
  font-weight: 600;
}
.gl-office p {
  margin-bottom: .3rem;
}
.gl-core .gl-contact-details h2 {
  font-size: 1.34rem;
  margin-bottom: .85rem;
}
.gl-contact-details img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: text-bottom;
}
.gl-contact-details p {
  overflow-wrap: anywhere;
}
.gl-contact-details a,
.gl-contact-form p a {
  text-decoration: underline;
}
.gl-core .gl-contact-form h2 {
  margin-bottom: 1.4rem;
}
.gl-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.gl-fields .gl-span {
  grid-column: 1 / -1;
}
.gl-fields .form-group {
  margin: 0;
}
.gl-fields label {
  display: block;
  margin-bottom: .35rem;
  font-size: .88rem;
  font-weight: 600;
}
.gl-core .gl-contact-form .gl-fields textarea {
  min-height: 150px;
  height: 180px;
  resize: vertical;
}
.gl-fields .help-block:empty {
  display: none;
}
.gl-contact-form .gm-form-note {
  margin: .85rem 0 0;
  font-size: .84rem;
}

/* The blog starts with a featured guide and gives the full article index a clear reading order. */
.gl-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gl-guide {
  min-width: 0;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  background: #fff;
}
.gl-guide:first-child {
  grid-column: span 2;
  background: var(--gl-paper);
}
.gl-core .gl-guide-link {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 100%;
  padding: clamp(19px, 3vw, 36px);
  text-decoration: none;
}
.gl-core .gl-guide-link:hover h3,
.gl-core .gl-guide-link:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.gl-guide:first-child h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.gl-core .gl-guide-link p {
  font-size: .92rem;
  margin: 0;
}
.gl-core .gl-guide-link :is(.gl-guide-category, .gl-guide-read) {
  color: var(--gl-violet);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.gl-core .gl-guide-link .gl-guide-read {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: .4rem;
}

/* Work and the historical references use chapter layouts to make dense material scannable. */
.gl-work,
.gl-reference {
  padding-block: var(--gl-space);
}
.gl-chapter {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(16px, 6vw, 78px);
  border-top: 1px solid var(--gl-line);
  padding-block: clamp(22px, 4vw, 46px);
}
.gl-core .gl-chapter h2,
.gl-core .gl-work-options h2 {
  font-size: clamp(1.45rem, 3vw, 2.45rem);
}
.gl-chapter h3:not(:first-child) {
  margin-top: 1.35rem;
}
.gl-chapter h3 + p {
  margin-top: .45rem;
}
.gl-chapter ul {
  margin: 0;
  padding-inline-start: 1.2em;
}
.gl-chapter li + li {
  margin-top: .45rem;
}
.gl-chapter :is(p, li) a,
.gl-download a {
  text-decoration: underline;
}
.gl-work .gl-work-questions {
  border: 0;
  background: var(--gl-paper);
  padding: clamp(18px, 4vw, 52px);
  border-radius: 14px;
}
.gl-work-questions ul {
  list-style: none;
  padding: 0;
}
.gl-work-questions li {
  display: flex;
  gap: .85rem;
  align-items: baseline;
  padding-bottom: .6rem;
  border-bottom: 1px solid #d8d1eb;
}
.gl-work-questions li::before {
  content: "";
  width: .68rem;
  height: .42rem;
  border: solid var(--gl-violet);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  flex: none;
}
.gl-work-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 36px);
  margin: clamp(20px, 5vw, 62px) 0;
}
.gl-work-options section {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.5vw, 42px);
  border: 1px solid var(--gl-line);
  border-radius: 12px;
}
.gl-work-options p {
  margin: .8rem 0 1rem;
}
.gl-work-options a {
  margin-top: auto;
  text-decoration: underline;
  font-weight: 600;
}
.gl-core .gl-reference-hero h1 {
  font-size: clamp(2rem, 4.5vw, 4.85rem);
}
.gl-reference .gl-chapter:first-child {
  border-top: 0;
  padding-top: 0;
}
.gl-reference .gl-reference-close {
  border: 0;
  border-radius: 13px;
  margin-top: 14px;
  padding: clamp(20px, 4vw, 48px);
  background: var(--gl-paper);
}
.gl-download {
  border: 1px solid var(--gl-line);
  border-radius: 9px;
  background: var(--gl-paper);
  padding: .85rem 1rem;
}

/* Framework interaction uses its existing script and aria states. */
.gl-technical-hero .gl-editorial img {
  border-radius: 15px;
}
.gl-core .sr-wrap {
  width: min(1180px, calc(100% - clamp(32px, 8vw, 112px)));
}
.gl-core .sr-architecture li {
  border-top-color: #a99dcb;
}
.gl-core .sr-architecture li > span {
  color: var(--gl-violet);
}
.gl-core .sr-framework-section {
  background: var(--gl-night);
  scroll-margin-top: 100px;
}
.gl-core .sr-framework-section :is(h2, h3) {
  color: #fbfaff;
}
.gl-core .sr-framework-section p {
  color: #e1def4;
}
.gl-core .sr-framework-panel {
  background: var(--gl-deep);
  border-color: #555379;
}
.gl-core .sr-framework-tabs button {
  background: var(--gl-deep);
  border-color: #747198;
  color: #f0ebff;
}
.gl-core .sr-framework-tabs button[aria-selected="true"] {
  background: var(--gl-lavender);
  border-color: var(--gl-lavender);
  color: var(--gl-night);
}
.gl-core .sr-connection-map {
  background: var(--gl-paper);
}
.gl-core .sr-map-hub {
  background: var(--gl-deep);
}

@media (max-width: 820px) {
  .gl-about-principles,
  .gl-contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .gl-contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gl-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .gl-update {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .gl-hero-grid,
  .gl-core .gl-about-hero .gl-shell,
  .gl-callout,
  .gl-stage-grid,
  .gl-chapter {
    grid-template-columns: minmax(0, 1fr);
  }
  .gl-hero-visual {
    max-width: 450px;
  }
  .gl-about-hero .gl-hero-visual {
    order: 0;
    max-width: none;
  }
  .gl-about-hero .gl-hero-copy {
    padding: 34px max(16px, 4vw);
  }
  .gl-about-hero .gl-editorial img {
    min-height: 0;
    max-height: 390px;
    aspect-ratio: 1.5;
  }
  .gl-contact-hero .gl-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .54fr);
    gap: 12px;
  }
  .gl-core .gl-contact-hero h1 {
    font-size: clamp(1.9rem, 6vw, 3.2rem);
  }
}
@media (max-width: 490px) {
  .gl-principles,
  .gl-fields,
  .gl-contact-details,
  .gl-guide-grid,
  .gl-work-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .gl-guide:first-child {
    grid-column: auto;
  }
  .gl-core .gl-contact-hero .gl-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gl-contact-hero .gl-illustration {
    width: min(72%, 250px);
    margin-inline: 0;
  }
  .gl-stage-grid .nav-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .gl-core .gl-stage-grid .nav-link {
    height: 100%;
    padding: .65rem .35rem;
  }
  .gl-stage-grid .nav-link h5 {
    font-size: .82rem;
  }
  .gl-stage-grid .nav-link p {
    font-size: .68rem;
  }
  .gl-update-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .gl-update-form button {
    justify-self: start;
  }
}
