/* /blog pages: rendered by the API, styled to match the institutional site. */
.sgb-page {
  --sgb-ink: #1c1c1c;
  --sgb-panel: #242424;
  --sgb-gold: #b99a63;
  --sgb-gold-soft: rgba(185, 154, 99, 0.28);
  --sgb-paper: #f4f2ee;
  --sgb-text: rgba(244, 242, 238, 0.86);
  --sgb-muted: #a29c92;
  --sgb-serif: 'Playfair Display', Georgia, serif;
  --sgb-sans: 'Open Sans', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  color: var(--sgb-paper);
  background: var(--sgb-ink);
  font-family: var(--sgb-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sgb-page *,
.sgb-page *::before,
.sgb-page *::after {
  box-sizing: border-box;
}

/*
 * With the website's shared header (/_sg/site-chrome.json) the builder stylesheet is loaded. It
 * fixes body to the window height, which would end the sticky header there; keep the page as
 * wide as the window with only vertical scrolling.
 */
html:has(body.sgb-page--site-header) {
  overflow-x: clip;
}

.sgb-page--site-header {
  height: auto;
  overflow-x: clip;
}

.sgb-page--site-header [data-sg-site-header] {
  background: var(--sgb-ink);
}

/* The website's shared footer (from the same include). */
[data-sg-site-footer] {
  display: block;
  overflow-x: clip;
}

@media (min-width: 921px) {
  .sgb-page--site-header
    [data-sg-site-header]
    .block-header-item__label:focus-within
    > .block-header-item__dropdown-area {
    display: block;
  }
}

.sgb-page a {
  color: inherit;
}

.sgb-page img {
  display: block;
  max-width: 100%;
}

.sgb-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--sgb-ink) !important;
  background: var(--sgb-gold);
  font-weight: 700;
}

.sgb-skip:focus {
  top: 16px;
}

/* Header */
.sgb-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(185, 154, 99, 0.16);
}

.sgb-header__bar,
.sgb-header__mobile {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
}

.sgb-header__mobile {
  display: none;
  padding: 12px 20px;
}

.sgb-logo img {
  width: auto;
  height: 58px;
}

.sgb-nav {
  margin-left: auto;
}

.sgb-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sgb-nav > ul > li {
  position: relative;
}

.sgb-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--sgb-paper);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.sgb-nav a:hover,
.sgb-nav a:focus-visible,
.sgb-nav a[aria-current='page'] {
  color: var(--sgb-gold);
}

.sgb-has-menu > a::after {
  display: inline-block;
  margin-left: 8px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: '';
  vertical-align: middle;
}

.sgb-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--sgb-panel);
  border: 1px solid var(--sgb-gold-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms;
}

.sgb-has-menu:hover > .sgb-submenu,
.sgb-has-menu:focus-within > .sgb-submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sgb-submenu a {
  padding: 10px 18px;
  font-weight: 600;
}

.sgb-menu {
  margin-left: auto;
}

/* selection-bag.js places the bag absolutely, just left of the menu button. */
.sgb-header__mobile > .sg-bag-link {
  right: 76px;
}

.sgb-menu summary {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 154, 99, 0.52);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.sgb-menu summary::-webkit-details-marker {
  display: none;
}

.sgb-menu summary span,
.sgb-menu summary span::before,
.sgb-menu summary span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sgb-paper);
  content: '';
}

.sgb-menu summary span {
  position: relative;
}

.sgb-menu summary span::before {
  position: absolute;
  top: -6px;
}

.sgb-menu summary span::after {
  position: absolute;
  top: 6px;
}

.sgb-menu nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 12px 20px 20px;
  background: var(--sgb-ink);
  border-bottom: 1px solid var(--sgb-gold-soft);
}

.sgb-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sgb-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.08);
  font-weight: 700;
  text-decoration: none;
}

.sgb-menu a[aria-current='page'] {
  color: var(--sgb-gold);
}

/* Shared */
.sgb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.sgb-kicker {
  margin: 0 0 16px;
  color: var(--sgb-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sgb-lead {
  margin: 0;
  color: var(--sgb-text);
  font-family: var(--sgb-serif);
  font-size: 20px;
  line-height: 1.55;
}

.sgb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--sgb-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sgb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  color: var(--sgb-ink) !important;
  background: var(--sgb-gold);
  border: 1px solid var(--sgb-gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.sgb-button:hover,
.sgb-button:focus-visible {
  color: var(--sgb-gold) !important;
  background: transparent;
}

/* Index */
.sgb-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 32px 64px;
  text-align: center;
}

.sgb-hero h1 {
  margin: 0 0 20px;
  color: var(--sgb-gold);
  font-family: var(--sgb-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.15;
}

.sgb-hero .sgb-button {
  margin-top: 32px;
}

.sgb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sgb-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--sgb-panel);
}

.sgb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.sgb-card:hover .sgb-card__media img {
  transform: scale(1.04);
}

.sgb-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
}

.sgb-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 0 0;
}

.sgb-card__title {
  margin: 0 0 12px;
  font-family: var(--sgb-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.sgb-card__title a {
  color: var(--sgb-paper);
  text-decoration: none;
}

.sgb-card__title a:hover,
.sgb-card__title a:focus-visible {
  color: var(--sgb-gold);
}

.sgb-card__excerpt {
  margin: 0 0 18px;
  color: var(--sgb-text);
}

.sgb-card__more {
  margin-top: auto;
  color: var(--sgb-gold) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.sgb-card__more span {
  display: inline-block;
  transition: transform 160ms ease;
}

.sgb-card__more:hover span {
  transform: translateX(4px);
}

.sgb-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--sgb-gold-soft);
}

.sgb-card--featured .sgb-card__body {
  padding: 0;
}

.sgb-card--featured .sgb-card__title {
  font-size: clamp(28px, 3vw, 40px);
}

.sgb-card--featured .sgb-card__excerpt {
  font-size: 18px;
}

.sgb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
}

.sgb-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--sgb-gold-soft);
  color: var(--sgb-muted);
  font-size: 14px;
}

.sgb-pager a {
  color: var(--sgb-gold);
  font-weight: 700;
  text-decoration: none;
}

.sgb-empty {
  padding: 48px 0;
  color: var(--sgb-muted);
  text-align: center;
}

/* Article */
.sgb-article {
  padding: 56px 32px 0;
}

.sgb-article__header,
.sgb-prose,
.sgb-cta,
.sgb-back {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.sgb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--sgb-muted);
  font-size: 14px;
}

.sgb-breadcrumb a {
  color: var(--sgb-gold);
  text-decoration: none;
}

.sgb-breadcrumb [aria-current] {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sgb-article__header h1 {
  margin: 0 0 20px;
  font-family: var(--sgb-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}

.sgb-article--imported {
  --sgb-source-body: 18px;
  --sgb-source-callout: 24px;
  --sgb-source-heading: 24px;
  --sgb-source-small-heading: 18px;
}

.sgb-article--imported .sgb-article__header h1,
.sgb-article--imported .sgb-article__header .sgb-lead {
  color: #fff;
  font-family: var(--sgb-serif);
  line-height: 1.3;
}

.sgb-article--imported .sgb-article__header h1 {
  font-size: 32px;
}

.sgb-article--imported .sgb-article__header .sgb-lead {
  font-size: 16px;
}

.sgb-article__cover {
  max-width: 1080px;
  margin: 48px auto 56px;
}

.sgb-article__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sgb-article--imported .sgb-article__cover img {
  aspect-ratio: auto;
}

.sgb-article__header + .sgb-prose {
  margin-top: 48px;
}

.sgb-prose {
  color: var(--sgb-text);
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.sgb-article--imported .sgb-prose {
  line-height: 1.3;
}

@media (max-width: 768px) {
  .sgb-article--imported {
    --sgb-source-body: 16px;
    --sgb-source-callout: 16px;
    --sgb-source-heading: 32px;
    --sgb-source-small-heading: 32px;
  }

  .sgb-article--imported .sgb-prose {
    line-height: 1.5;
  }
}

.sgb-prose > :first-child {
  margin-top: 0;
}

.sgb-prose p,
.sgb-prose ul,
.sgb-prose ol,
.sgb-prose blockquote {
  margin: 0 0 1.4em;
}

.sgb-prose h2,
.sgb-prose h3,
.sgb-prose h4 {
  color: var(--sgb-gold);
  font-family: var(--sgb-serif);
  font-weight: 400;
  line-height: 1.3;
}

.sgb-prose h2 {
  margin: 2em 0 0.7em;
  font-size: 34px;
}

.sgb-prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 28px;
}

.sgb-prose h4 {
  margin: 1.6em 0 0.5em;
  font-size: 22px;
}

.sgb-prose strong {
  color: var(--sgb-paper);
  font-weight: 700;
}

.sgb-prose h2 strong,
.sgb-prose h3 strong,
.sgb-prose h4 strong,
.sgb-prose span[style] strong {
  /* Bold text keeps the colour chosen for it in the editor. */
  color: inherit;
}

.sgb-prose a {
  color: var(--sgb-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sgb-prose ul,
.sgb-prose ol {
  padding-left: 1.4em;
}

.sgb-prose li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

.sgb-prose li::marker {
  color: var(--sgb-gold);
}

.sgb-prose li > p {
  margin: 0;
}

.sgb-prose blockquote {
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--sgb-gold);
  color: var(--sgb-paper);
  font-family: var(--sgb-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.6;
}

.sgb-prose blockquote p:last-child {
  margin-bottom: 0;
}

.sgb-prose hr {
  width: 96px;
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--sgb-gold);
}

.sgb-prose img {
  width: 100%;
  height: auto;
  margin: 2em 0;
}

.sgb-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 64px;
  padding: 36px 40px;
  background: var(--sgb-panel);
  border: 1px solid var(--sgb-gold-soft);
}

.sgb-cta h2 {
  margin: 0 0 8px;
  color: var(--sgb-gold);
  font-family: var(--sgb-serif);
  font-size: 28px;
  font-weight: 400;
}

.sgb-cta p {
  margin: 0;
  color: var(--sgb-text);
}

.sgb-back {
  margin-top: 40px;
  margin-bottom: 0;
}

.sgb-back a {
  color: var(--sgb-gold);
  font-weight: 700;
  text-decoration: none;
}

.sgb-related {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--sgb-gold-soft);
}

.sgb-related > h2 {
  margin: 0 0 40px;
  color: var(--sgb-gold);
  font-family: var(--sgb-serif);
  font-size: 36px;
  font-weight: 400;
  text-align: center;
}

/* Footer */
.sgb-footer {
  border-top: 1px solid rgba(185, 154, 99, 0.16);
}

.sgb-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 32px 40px;
}

.sgb-footer h2 {
  margin: 0 0 16px;
  color: var(--sgb-gold);
  font-family: var(--sgb-serif);
  font-size: 24px;
  font-weight: 400;
}

.sgb-footer p {
  margin: 0 0 8px;
  color: var(--sgb-paper);
  font-family: var(--sgb-serif);
}

.sgb-footer a {
  text-decoration: none;
}

.sgb-footer p a:hover {
  color: var(--sgb-gold);
}

.sgb-social {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sgb-social a {
  display: block;
  color: var(--sgb-gold);
  transition: opacity 160ms ease;
}

.sgb-social a:hover {
  opacity: 0.75;
}

.sgb-footer__legal {
  max-width: 1240px;
  margin: 0 auto !important;
  padding: 0 32px 40px;
  font-size: 14px;
}

.sgb-footer__legal a {
  color: var(--sgb-gold);
}

.sgb-page :focus-visible {
  outline: 2px solid var(--sgb-gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .sgb-nav a {
    padding: 10px 8px;
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .sgb-header__bar {
    display: none;
  }

  .sgb-header__mobile {
    display: flex;
  }

  .sgb-logo img {
    height: 48px;
  }

  .sgb-card--featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sgb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgb-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sgb-container {
    padding: 0 20px 72px;
  }

  .sgb-hero {
    padding: 56px 20px 40px;
  }

  .sgb-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sgb-article {
    padding: 36px 20px 0;
  }

  .sgb-article__cover {
    margin: 32px -20px 40px;
  }

  .sgb-prose {
    font-size: 17px;
  }

  .sgb-prose h2 {
    font-size: 28px;
  }

  .sgb-prose h3 {
    font-size: 24px;
  }

  .sgb-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .sgb-pager {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sgb-footer__grid {
    grid-template-columns: 1fr;
    padding: 56px 20px 32px;
  }

  .sgb-footer__legal {
    padding: 0 20px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgb-page *,
  .sgb-page *::before,
  .sgb-page *::after {
    transition: none !important;
  }
}
