/* =========================================================
   LawyerAI Glossary Term Layout
   WordPress scope: body.vge-term-singular / .sdg-page
   Icons: Divi ETmodules. Do not load external icon libraries.
   ========================================================= */

@font-face {
  font-family: ETmodules;
  font-display: swap;
  src: url("../../../../themes/Divi/core/admin/fonts/modules/all/modules.woff") format("woff"),
    url("../../../../themes/Divi/core/admin/fonts/modules/all/modules.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body.vge-term-singular {
  background: #0a0845;
}

/* Sticky sidebar cannot stick if any ancestor is a scroll/clip containing block.
   Override Divi overflow-x:hidden/clip on the document wrappers for term pages. */
html:has(body.vge-term-singular),
body.vge-term-singular,
body.vge-term-singular #page-container,
body.vge-term-singular #et-boc,
body.vge-term-singular #et-main-area,
body.vge-term-singular #main-content,
body.vge-term-singular #content-area,
body.vge-term-singular article.sdg-page,
body.vge-term-singular .sdg-page,
body.vge-term-singular .sdg-container,
body.vge-term-singular .sdg-main {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

body.vge-term-singular #page-container,
body.vge-term-singular #et-main-area {
  background: #0a0845;
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
}

/* Term pages paint #page-container navy. The fixed-header offset lives on the
   white content instead, so that padding does not show as a navy band. */
body.vge-term-singular.et-tb-has-header #page-container,
body.vge-term-singular.et-tb #page-container,
body.vge-term-singular.admin-bar.et-tb-has-header #page-container,
body.vge-term-singular.admin-bar.et-tb #page-container {
  padding-top: 0 !important;
}

body.vge-term-singular #et-main-area {
  padding: 0;
}

body.vge-term-singular #main-content {
  background: #fff;
  width: 100%;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}

body.vge-term-singular.et-tb-has-header #main-content,
body.vge-term-singular.et-tb #main-content {
  padding-top: 79px;
}

body.vge-term-singular.et_right_sidebar #main-content,
body.vge-term-singular.et_left_sidebar #main-content {
  width: 100% !important;
  float: none;
}

body.vge-term-singular #sidebar,
body.vge-term-singular #main-footer {
  display: none !important;
}

body.vge-term-singular .sdg-global-footer .et_pb_section,
body.vge-term-singular .sdg-global-footer .et_pb_row,
body.vge-term-singular .sdg-global-footer .et_pb_column {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  top: 0 !important;
}

body.vge-term-singular .sdg-global-footer .et_pb_section {
  padding-top: 0 !important;
}

body.vge-term-singular #sd-sweet-footer {
  margin-bottom: 0;
}

body.vge-term-singular .sdg-page h1,
body.vge-term-singular .sdg-page h2,
body.vge-term-singular .sdg-page h3,
body.vge-term-singular .sdg-page h4,
body.vge-term-singular .sdg-page p,
body.vge-term-singular .sdg-page blockquote,
body.vge-term-singular .sdg-page ul,
body.vge-term-singular .sdg-page ol,
body.vge-term-singular .sdg-page li,
body.vge-term-singular .sdg-page figure {
  padding-bottom: 0;
}

.sdg-page {
  width: 100%;
  background: #fff;
  color: var(--sdg-text);

  font-family:
    "Mulish",
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.7;
}

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

.sdg-page a {
  color: inherit;
  text-decoration: none;
}

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

/* .sdg-container + breadcrumbs: glossary-shell.css */

.sdg-page .sd-glossary-hero,
.sdg-page .sd-glossary-hero * {
  box-sizing: border-box;
}

.sdg-page .sd-glossary-hero {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  font-family: "Mulish", Arial, sans-serif;
  color: #0a0845;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.sdg-page .sd-glossary-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 8px;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 169, 231, 0.22),
      transparent 32%
    ),
    #ffffff;
  border: 1px solid #eee5ec;
  border-radius: 30px;
  box-shadow: 0 20px 55px rgba(10, 8, 69, 0.065);
}

.sdg-page .sd-glossary-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 42px 48px 52px;
}

.sdg-page .sd-glossary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 13px;
  border: 1px solid rgba(255, 169, 231, 0.75);
  border-radius: 999px;
  background: rgba(255, 169, 231, 0.12);
  color: #0a0845;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.sdg-page .sd-glossary-title {
  position: relative;
  z-index: 3;
  margin: 22px 0 26px;
  padding-bottom: 0.14em;
  max-width: 100%;
  min-width: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a0845;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: clip;
  overflow-clip-margin: 0.2em;
}

.sdg-page .sd-glossary-title--short {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  padding-bottom: 0;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: 1.15;
}

.sdg-page .sd-definition-wrap {
  position: relative;
  z-index: 1;
  padding-top: 23px;
  border-top: 1px solid rgba(10, 8, 69, 0.10);
}

.sdg-page .sd-definition-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 11px;
  padding: 6px 12px;
  border: 1px solid rgba(108, 190, 237, 0.62);
  border-radius: 999px;
  background: rgba(108, 190, 237, 0.07);
  color: #0a0845;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sdg-page .sd-definition {
  max-width: 390px;
  margin: 0;
  color: #302d38;
  font-size: 16px;
  line-height: 1.72;
  font-weight: 500;
}

.sdg-page .sd-glossary-image-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 34px 36px 34px 18px;
  background:
    radial-gradient(
      circle at 100% 10%,
      rgba(108, 190, 237, 0.14),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10),
      rgba(108, 190, 237, 0.035)
    );
}

.sdg-page .sd-glossary-image-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11%;
  bottom: 11%;
  width: 1px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(10, 8, 69, 0.09) 18%,
      rgba(10, 8, 69, 0.09) 82%,
      transparent
    );
}

.sdg-page .sd-glossary-image-shell {
  position: relative;
  width: 100%;
  padding: 7px;
  border-radius: 25px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 169, 231, 0.34),
      rgba(108, 190, 237, 0.30)
    );
  box-shadow: 0 18px 42px rgba(10, 8, 69, 0.11);
}

.sdg-page .sd-glossary-image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 19px;
  background: #f5f5f5;
}

.sdg-page .sd-glossary-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
}

.sdg-page .sd-glossary-image-shell::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -26px;
  bottom: -26px;
  border-radius: 50%;
  background: rgba(255, 169, 231, 0.13);
  pointer-events: none;
}

.sdg-page .sd-glossary-card--no-image {
  grid-template-columns: 1fr;
}

.sdg-page .sd-glossary-card--no-image .sd-glossary-content {
  padding-right: 64px;
}

.sdg-page .sd-glossary-card--no-image .sd-definition {
  max-width: 650px;
}

.sdg-page .sd-example {
  display: grid;
  grid-template-columns:
    max-content
    minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  padding: 27px 38px;
  background:
    linear-gradient(
      100deg,
      rgba(255, 169, 231, 0.075),
      rgba(255, 255, 255, 0.95) 55%,
      rgba(108, 190, 237, 0.035)
    );
  border: 1px solid #eee5ec;
  border-radius: 20px;
}

.sdg-page .sd-example-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid rgba(255, 169, 231, 0.65);
  border-radius: 999px;
  background: rgba(255, 169, 231, 0.10);
  color: #0a0845;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sdg-page .sd-example-text {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #0a0845;
  font-size: 23px;
  line-height: 1.42;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.3px;
}

@media (min-width: 1200px) {
  .sdg-page .sd-glossary-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }

  .sdg-page .sd-glossary-image-column {
    padding: 36px 38px 36px 20px;
  }
}


/* =========================================================
   Main Layout
   ========================================================= */

.sdg-main {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    315px;
  gap: var(--vge-space-2xl, 56px);
  align-items: start;
  padding: var(--vge-space-2xl, 56px) 0 90px;
}


/* =========================================================
   Article Content
   ========================================================= */

.sdg-content {
  min-width: 0;
}

.sdg-prose {
  max-width: var(--vge-read-max, 42rem);
}

.sdg-prose > *:first-child {
  margin-top: 0 !important;
}

.sdg-prose > *:last-child {
  margin-bottom: 0 !important;
}

.sdg-prose p {
  margin: 0 0 var(--vge-space-md, 20px);
  color: #494550;
  font-size: 16.5px;
  line-height: 1.84;
}

.sdg-prose > p:first-child {
  color: #383440;
  font-size: 17.5px;
  line-height: 1.82;
}

.sdg-prose h2,
.sdg-prose h3,
.sdg-prose h4 {
  color: var(--sdg-navy);
  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 800;
  letter-spacing: -0.028em;
}

.sdg-prose h2 {
  position: relative;
  margin: 50px 0 16px;
  padding-bottom: 13px;
  font-size: 30px;
  line-height: 1.22;
}



.sdg-prose h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

.sdg-prose h4 {
  margin: 28px 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.sdg-prose strong,
.sdg-prose b {
  color: #302c36;
  font-weight: 750;
}

.sdg-prose em,
.sdg-prose i {
  font-style: italic;
}

/* Glossary autolinks + prose links: glossary-shell.css */

.sdg-prose ul,
.sdg-prose ol {
  margin: 18px 0 26px;
  padding-left: 1.35em;
}

.sdg-prose ul {
  list-style: disc;
}

.sdg-prose ol {
  list-style: decimal;
}

.sdg-prose li {
  margin-bottom: 10px;
  padding-left: 4px;
  color: #494550;
  font-size: 16px;
  line-height: 1.72;
}

.sdg-prose li::marker {
  color: var(--sdg-pink);
}

.sdg-prose li > ul,
.sdg-prose li > ol {
  margin: 10px 0 4px;
}

.sdg-prose blockquote {
  margin: 34px 0;
  padding: 25px 28px;
  border-left: 4px solid var(--sdg-pink);
  border-radius:
    0
    var(--sdg-radius-md)
    var(--sdg-radius-md)
    0;
  background: var(--sdg-pink-faint);
  color: var(--sdg-navy);
  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;
  font-size: 19px;
  line-height: 1.6;
  font-style: italic;
}

.sdg-prose hr {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--sdg-border);
}

.sdg-prose figure,
.sdg-prose .wp-block-image {
  margin: 29px 0 34px;
}

.sdg-prose figcaption {
  margin-top: 8px;
  color: var(--sdg-text-faint);
  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   Tables
   ========================================================= */

.sdg-prose .wp-block-table,
.sdg-prose table {
  width: 100%;
  margin: 30px 0;
}

.sdg-prose .wp-block-table {
  overflow-x: auto;
}

.sdg-prose table {
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--sdg-border);
  border-radius: var(--sdg-radius-md);
  background: #fff;
}

.sdg-prose th,
.sdg-prose td {
  padding: 14px 16px;
  border-right: 1px solid var(--sdg-border);
  border-bottom: 1px solid var(--sdg-border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.sdg-prose th {
  background: var(--sdg-bg-soft);
  color: var(--sdg-navy);
  font-weight: 750;
}

.sdg-prose th:last-child,
.sdg-prose td:last-child {
  border-right: 0;
}

.sdg-prose tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   Sidebar
   ========================================================= */

.sdg-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 6.5rem;
  align-self: start;
  z-index: 5;
}

.sdg-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.sdg-side-card {
  overflow: hidden;
  border: 1px solid var(--sdg-border);
  border-radius: var(--sdg-radius-md);
  background: #fff;
  box-shadow:
    0 2px 10px rgba(24, 18, 40, 0.025),
    0 10px 28px rgba(24, 18, 40, 0.04);
}

.sdg-side-inner {
  padding: 23px;
}

.sdg-side-title {
  margin: 0 0 6px;
  color: var(--sdg-navy);
  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.sdg-side-description {
  margin: 0 0 18px;
  color: var(--sdg-text-soft);
  font-size: 12.5px;
  line-height: 1.58;
}


/* =========================================================
   Search
   ========================================================= */

.sdg-search-form {
  margin-bottom: 21px;
}

.sdg-search-wrap {
  position: relative;
}

.sdg-search-input {
  width: 100%;
  height: 44px;
  padding: 0 43px 0 14px;
  border: 1px solid var(--sdg-border-dark);
  border-radius: 11px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: var(--sdg-bg-soft);
  color: var(--sdg-text);
  font-family: inherit;
  font-size: 13px;
}

.sdg-search-input:focus {
  border-color: color-mix(in srgb, var(--sdg-bonbon) 45%, transparent);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sdg-people) 14%, transparent);
}

.sdg-search-button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #817b87;
  cursor: pointer;
}

.sdg-search-button:hover {
  background: var(--sdg-pink-soft);
  color: var(--sdg-pink);
}

.sdg-search-button .et-pb-icon {
  font-family: "ETmodules" !important;
  font-size: 17px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
}


/* =========================================================
   A-Z
   ========================================================= */

.sdg-az-label {
  margin-bottom: 10px;
  color: var(--sdg-text-faint);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sdg-az-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.sdg-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 31px;
  border: 1px solid var(--sdg-border);
  border-radius: 8px;
  background: var(--sdg-bg-soft);
  color: var(--sdg-text-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  transition:
    transform 0.17s ease,
    border-color 0.17s ease,
    background 0.17s ease,
    color 0.17s ease;
}

.sdg-letter:hover {
  transform: translateY(-1px);
  border-color: #ebbed2;
  background: var(--sdg-pink-soft);
  color: var(--sdg-pink);
}

.sdg-letter.is-active,
.sdg-letter[aria-current="true"] {
  border-color: var(--sdg-pink);
  background: var(--sdg-pink);
  color: #fff;
  font-weight: 900;
}

.sdg-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--sdg-border);
  color: var(--sdg-pink) !important;
  font-size: 12px;
  font-weight: 750;
}

.sdg-all-link .et-pb-icon {
  font-family: "ETmodules" !important;
  font-size: 15px;
  line-height: 1;
}


/* =========================================================
   Related Terms
   ========================================================= */

.sdg-related-list {
  display: flex;
  flex-direction: column;
}

.sdg-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--sdg-border);
}

.sdg-related-item:first-child {
  padding-top: 3px;
}

.sdg-related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sdg-related-copy {
  min-width: 0;
}

.sdg-related-name {
  display: block;
  overflow: hidden;
  color: var(--sdg-text);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdg-related-category {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--sdg-text-faint);
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdg-related-arrow {
  color: #aba6af;
}

.sdg-related-arrow .et-pb-icon {
  font-family: "ETmodules" !important;
  font-size: 14px;
  line-height: 1;
}

.sdg-related-item:hover .sdg-related-name,
.sdg-related-item:hover .sdg-related-arrow {
  color: var(--sdg-pink);
}


/* =========================================================
   CTA
   ========================================================= */

.sdg-side-cta {
  border-color: #eadfe5;
  background:
    radial-gradient(
      circle at 100% 0%,
      color-mix(in srgb, var(--sdg-bonbon) 16%, transparent),
      transparent 41%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--sdg-bonbon) 10%, #fff) 0%,
      #fff 68%
    );
}

.sdg-side-label {
  margin-bottom: var(--vge-space-sm, 12px);
  color: var(--vge-navy, var(--sdg-navy));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.sdg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  margin-top: 3px;
  padding: 11px 18px;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      var(--sdg-navy),
      var(--sdg-navy-light)
    );
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 750;
  box-shadow: 0 9px 23px rgba(23, 19, 84, 0.15);
}

.sdg-button .et-pb-icon {
  font-family: "ETmodules" !important;
  font-size: 14px;
  line-height: 1;
}


/* =========================================================
   Bottom CTA
   ========================================================= */

.sdg-bottom-join .sd-intro-cta {
  margin: var(--vge-space-2xl, 56px) 0 0;
}


/* =========================================================
   Icons, locked, a11y
   ========================================================= */

.sdg-page .et-pb-icon {
  font-family: "ETmodules" !important;
  font-style: normal;
  font-weight: normal;
  speak: none;
  -webkit-font-smoothing: antialiased;
}

.sdg-page .et-pb-icon:empty::before {
  content: attr(data-icon);
}

.sdg-locked {
  margin-top: 24px;
  padding: 30px 34px;
  border: 1px solid var(--sdg-border);
  border-radius: var(--sdg-radius-lg);
  background: #fff;
}

.sdg-search-button:focus-visible,
.sdg-letter:focus-visible,
.sdg-related-item:focus-visible,
.sdg-all-link:focus-visible,
.sdg-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sdg-people) 28%, transparent);
  outline-offset: 3px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
  .sdg-page .sd-glossary-card {
    grid-template-columns: 1fr;
  }

  .sdg-page .sd-glossary-content {
    align-items: center;
    padding: 42px 36px 34px;
    text-align: center;
  }

  .sdg-page .sd-glossary-title {
    font-size: clamp(36px, 6vw, 52px);
    line-height: 1.2;
  }

  .sdg-page .sd-glossary-title--short {
    font-size: clamp(44px, 8vw, 64px);
  }

  .sdg-page .sd-definition-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sdg-page .sd-definition {
    max-width: 36em;
    margin: 0 auto;
    text-align: center;
  }

  .sdg-page .sd-glossary-image-column {
    padding: 0 38px 38px;
  }

  .sdg-page .sd-glossary-image-column::before {
    display: none;
  }

  .sdg-page .sd-glossary-image-shell {
    max-width: 760px;
    margin: 0 auto;
  }

  .sdg-page .sd-glossary-card--no-image .sd-glossary-content {
    padding-right: 42px;
  }

  .sdg-main {
    grid-template-columns: 1fr;
    gap: var(--vge-space-xl, 40px);
  }

  .sdg-sidebar {
    position: static;
  }

  .sdg-sidebar-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sdg-sidebar-stack > .sdg-side-card:first-child {
    grid-column: 1 / -1;
  }

  .sdg-az-grid {
    grid-template-columns: repeat(13, minmax(0, 1fr));
  }

  .sdg-letter {
    aspect-ratio: auto;
    min-height: 34px;
  }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {
  .sdg-page .sd-glossary-hero {
    padding: 0;
  }

  .sdg-page .sd-glossary-card {
    border-radius: 24px;
  }

  .sdg-page .sd-glossary-content {
    padding: 30px 22px 27px;
  }

  .sdg-page .sd-glossary-title {
    margin-top: 18px;
    margin-bottom: 22px;
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1.2;
  }

  .sdg-page .sd-glossary-title--short {
    font-size: clamp(40px, 10vw, 54px);
  }

  .sdg-page .sd-definition-wrap {
    padding-top: 20px;
  }

  .sdg-page .sd-definition {
    font-size: 16px;
    line-height: 1.68;
  }

  .sdg-page .sd-glossary-image-column {
    padding: 0 14px 14px;
  }

  .sdg-page .sd-glossary-image-shell {
    padding: 5px;
    border-radius: 21px;
  }

  .sdg-page .sd-glossary-image-wrap {
    border-radius: 16px;
  }

  .sdg-page .sd-glossary-image-shell::after {
    display: none;
  }

  .sdg-page .sd-glossary-card--no-image .sd-glossary-content {
    padding: 30px 22px 27px;
  }

  .sdg-page .sd-example {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    padding: 23px 22px;
    border-radius: 18px;
  }

  .sdg-page .sd-example-text {
    font-size: 21px;
    line-height: 1.48;
  }

  .sdg-main {
    gap: var(--vge-space-xl, 40px);
    padding: var(--vge-space-xl, 40px) 0 64px;
  }

  .sdg-prose p {
    font-size: 15.5px;
    line-height: 1.78;
  }

  .sdg-prose > p:first-child {
    font-size: 16.5px;
  }

  .sdg-prose h2 {
    margin-top: 42px;
    font-size: 25px;
  }

  .sdg-prose h3 {
    font-size: 21px;
  }

  .sdg-sidebar-stack {
    display: flex;
  }

  .sdg-az-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .sdg-letter {
    aspect-ratio: 1;
    font-size: 15px;
    font-weight: 600;
  }
}

@media (max-width: 980px) {
  body.vge-term-singular.et-tb-has-header #main-content,
  body.vge-term-singular.et-tb #main-content {
    padding-top: 69px;
  }

  body.vge-term-singular #sd-sweet-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
