/* Ndovu SEO Glossary. Uses the Ndovu theme's tokens (which switch in dark mode), with fallbacks for any other theme. */
.ndg-main {
  --ndg-ink: var(--nd-ink, #111418);
  --ndg-muted: var(--nd-muted, #5d6470);
  --ndg-line: var(--nd-line, #e3e6eb);
  --ndg-paper: var(--nd-paper, #f6f7f9);
  --ndg-card: var(--nd-white, #fff);
  --ndg-link: var(--nd-blue, #1559db);
  --ndg-accent: var(--nd-accent, #f39c12);
  --ndg-good: #15803d;
  --ndg-bad: #b42318;
  --ndg-wide: min(1180px, calc(100% - 64px));
}
:root[data-theme="dark"] .ndg-main {
  --ndg-good: #4ade80;
  --ndg-bad: #f87171;
}
/* Card tints for the index: soft colours in light mode, deep tinted night tones in dark mode. */
.ndg-main,
.ndg-band,
.ndg-layout {
  --ndg-blue-50: #eaf1fd;
  --ndg-cyan-50: #e2f5fa;
  --ndg-green-50: #e7f6ec;
  --ndg-cream-50: var(--nd-orange-50, #fff6e8);
  --ndg-grey-50: #f5f6f8;
  --ndg-chip: #fff;
  --ndg-chip-line: rgba(12, 13, 16, 0.06);
  --ndg-blue-ink: #1d4fb8;
  --ndg-green-ink: #1c7a3d;
  --ndg-amber-ink: var(--nd-orange-700, #a85f05);
}
:root[data-theme="dark"] .ndg-main,
:root[data-theme="dark"] .ndg-band,
:root[data-theme="dark"] .ndg-layout {
  --ndg-blue-50: #121b2c;
  --ndg-cyan-50: #0f1f25;
  --ndg-green-50: #10211a;
  --ndg-cream-50: var(--nd-orange-950, #1f170b);
  --ndg-grey-50: var(--nd-night-card, #17191e);
  --ndg-chip: #0c0d10;
  --ndg-chip-line: var(--nd-night-line, #262a31);
  --ndg-blue-ink: #8db4ff;
  --ndg-green-ink: #6fd896;
  --ndg-amber-ink: var(--nd-orange-300, #fbbc5a);
}

/* Hero: the site's dark article header, a little tighter */
/* The search results drop below the hero, so it clips only sideways (where its glow overflows). */
.ndg-index-hero.nd-feature-hero {
  overflow-x: clip;
  overflow-y: visible;
  z-index: 2;
}

/* Search: a white field on the dark hero, results drop down beneath it */
.ndg-search {
  position: relative;
  max-width: 640px;
  margin-top: 28px;
}
.ndg-search input[type="search"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid var(--nd-night-line, #262a31);
  border-radius: 14px;
  background: #fff;
  color: #111418;
  font: inherit;
  font-size: 16px;
}
.ndg-search input[type="search"]:focus-visible {
  outline: 3px solid rgba(243, 156, 18, 0.55);
  outline-offset: 2px;
}
.ndg-search [role="listbox"] {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  color: #111418;
  border: 1px solid #e3e6eb;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(12, 13, 16, 0.3);
  max-height: min(420px, 60vh);
  overflow: auto;
}
.ndg-search [role="option"] a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
}
.ndg-search [role="option"] strong {
  font-size: 15px;
}
.ndg-search [role="option"] span {
  font-size: 13px;
  color: #5d6470;
  line-height: 1.45;
}
.ndg-search [role="option"][aria-selected="true"] a,
.ndg-search [role="option"] a:hover {
  background: #fff4e0;
}
.ndg-noresult {
  padding: 12px;
  font-size: 14px;
  color: #5d6470;
}

/* Index sections */
.ndg-band.nd-section {
  padding-block: 64px;
}
.ndg-band .nd-section-heading {
  margin-bottom: 26px;
}
.ndg-essentials,
.ndg-list ul,
.ndg-related,
.ndg-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ndg-essentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ndg-essentials li {
  display: flex;
}
.ndg-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ndg-chip);
  box-shadow: 0 0 0 1px var(--ndg-chip-line);
  color: var(--ndg-ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
}
.ndg-ess {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 248px;
  padding: 26px 26px 24px;
  border-radius: 24px;
  background: var(--ndg-blue-50);
  color: var(--ndg-ink);
  text-decoration: none;
}
.ndg-essentials li:nth-child(4n + 2) .ndg-ess {
  background: var(--ndg-cream-50);
}
.ndg-essentials li:nth-child(4n + 3) .ndg-ess {
  background: var(--ndg-green-50);
}
.ndg-essentials li:nth-child(4n + 4) .ndg-ess {
  background: var(--ndg-cyan-50);
}
/* A folded corner on some cards, as on the site's article lists. */
.ndg-essentials li:nth-child(5n + 1) .ndg-ess {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 40px),
    calc(100% - 40px) 100%,
    0 100%
  );
}
.ndg-essentials li:nth-child(5n + 3) .ndg-ess {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.ndg-ess strong {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ndg-ess-summary {
  color: var(--ndg-muted);
  font-size: 15px;
  line-height: 1.55;
}
.ndg-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--ndg-link);
  font-size: 15px;
  font-weight: 650;
}
.ndg-more::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
/* Hover and focus: the same lift, shadow and arrow nudge as the site's other cards. */
.ndg-ess,
.ndg-row,
.ndg-path-card {
  transition:
    transform 0.25s var(--nd-ease, ease),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}
.ndg-ess:hover,
.ndg-ess:focus-visible,
.ndg-row:hover,
.ndg-row:focus-within,
.ndg-path-card:hover,
.ndg-path-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(12, 13, 16, 0.08);
}
:root[data-theme="dark"] .ndg-ess:hover,
:root[data-theme="dark"] .ndg-ess:focus-visible,
:root[data-theme="dark"] .ndg-row:hover,
:root[data-theme="dark"] .ndg-row:focus-within,
:root[data-theme="dark"] .ndg-path-card:hover,
:root[data-theme="dark"] .ndg-path-card:focus-within {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}
.ndg-ess:hover .ndg-more::after,
.ndg-ess:focus-visible .ndg-more::after {
  transform: translateX(4px);
}
/* The folded-corner cards are clipped, which would cut off a box-shadow, so their shadow is a drop-shadow on the item. */
.ndg-essentials li {
  transition: filter 0.25s ease;
}
.ndg-essentials li:hover,
.ndg-essentials li:focus-within {
  filter: drop-shadow(0 18px 22px rgba(12, 13, 16, 0.09));
}
:root[data-theme="dark"] .ndg-essentials li:hover,
:root[data-theme="dark"] .ndg-essentials li:focus-within {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
}
.ndg-ess:hover,
.ndg-ess:focus-visible,
:root[data-theme="dark"] .ndg-ess:hover,
:root[data-theme="dark"] .ndg-ess:focus-visible {
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .ndg-ess,
  .ndg-row,
  .ndg-path-card,
  .ndg-more::after {
    transition: none;
  }
  .ndg-ess:hover,
  .ndg-ess:focus-visible,
  .ndg-row:hover,
  .ndg-row:focus-within,
  .ndg-path-card:hover,
  .ndg-path-card:focus-within,
  .ndg-ess:hover .ndg-more::after,
  .ndg-ess:focus-visible .ndg-more::after {
    transform: none;
  }
}
.ndg-ess:focus-visible {
  outline: 2px solid var(--ndg-link);
  outline-offset: 3px;
}
.ndg-row a {
  font-weight: 650;
  color: var(--ndg-ink);
  text-decoration: none;
}

.ndg-az ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.ndg-az a,
.ndg-az span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
}
.ndg-az a {
  border: 1px solid var(--ndg-line);
  color: var(--ndg-ink);
  background: var(--ndg-card);
}
.ndg-az a:hover {
  border-color: var(--ndg-accent);
  color: var(--ndg-ink);
}
.ndg-az span {
  color: var(--ndg-line);
}
.ndg-filters {
  margin: 0 0 22px;
}
.ndg-filters p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ndg-muted);
  margin: 0 0 8px;
}
.ndg-filters div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ndg-filters button {
  border: 1px solid var(--ndg-line);
  background: var(--ndg-card);
  color: var(--ndg-ink);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  min-height: 36px;
}
.ndg-filters button small {
  color: var(--ndg-muted);
}
.ndg-filters button[aria-pressed="true"] {
  background: var(--ndg-ink);
  border-color: var(--ndg-ink);
  color: var(--ndg-card);
}
.ndg-filters button[aria-pressed="true"] small {
  color: inherit;
  opacity: 0.75;
}
.ndg-letter {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding-top: 18px;
  scroll-margin-top: 110px;
}
.ndg-letter h3 {
  font-size: 30px;
  margin: 10px 0 0;
  color: var(--ndg-accent);
}
.ndg-letter ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ndg-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  border: 1px solid var(--ndg-line);
  border-radius: 18px;
  background: var(--ndg-card);
}
.ndg-row[hidden] {
  display: none;
}
.ndg-row a {
  font-size: 17px;
}
/* The whole card opens the entry. */
.ndg-row a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ndg-row:hover,
.ndg-row:focus-within {
  border-color: var(--ndg-accent);
}
.ndg-row:hover a {
  color: var(--ndg-link);
}
.ndg-row abbr {
  text-decoration: none;
  font-size: 12px;
  color: var(--ndg-muted);
  font-weight: 600;
  margin-left: 4px;
}
.ndg-row-summary {
  font-size: 14px;
  color: var(--ndg-muted);
  line-height: 1.55;
}
.ndg-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.ndg-row-meta .ndg-chip {
  padding: 5px 10px;
  background: var(--ndg-grey-50);
  box-shadow: none;
  color: var(--ndg-muted);
  font-size: 12px;
}
.ndg-level {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.ndg-level-beginner {
  background: var(--ndg-green-50);
  color: var(--ndg-green-ink);
}
.ndg-level-intermediate {
  background: var(--ndg-blue-50);
  color: var(--ndg-blue-ink);
}
.ndg-level-advanced {
  background: var(--ndg-cream-50);
  color: var(--ndg-amber-ink);
}
.ndg-empty {
  color: var(--ndg-muted);
}

.ndg-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ndg-path-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: 24px;
  background: var(--ndg-grey-50);
}
.ndg-paths .ndg-path-card:nth-child(4n + 2) {
  background: var(--ndg-cyan-50);
}
.ndg-paths .ndg-path-card:nth-child(4n + 3) {
  background: var(--ndg-green-50);
}
.ndg-paths .ndg-path-card:nth-child(4n + 4) {
  background: var(--ndg-cream-50);
}
.ndg-path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--ndg-chip);
  box-shadow: 0 0 0 1px var(--ndg-chip-line);
}
.ndg-path-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--ndg-ink);
  -webkit-mask: var(--nd-icon) center/contain no-repeat;
  mask: var(--nd-icon) center/contain no-repeat;
}
.ndg-path-card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.ndg-path-card p {
  font-size: 15px;
  color: var(--ndg-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.ndg-path-card ol {
  list-style: none;
  counter-reset: ndg-step;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ndg-path-card li {
  counter-increment: ndg-step;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.ndg-path-card li::before {
  content: counter(ndg-step);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--ndg-chip);
  box-shadow: 0 0 0 1px var(--ndg-chip-line);
  color: var(--ndg-muted);
  font-size: 12px;
  font-weight: 650;
}
.ndg-path-card li a {
  color: var(--ndg-ink);
  font-weight: 600;
  text-decoration: none;
}
.ndg-path-card li a:hover {
  color: var(--ndg-link);
  text-decoration: underline;
}

/* Entry: contents beside a readable article column */
.ndg-layout {
  width: var(--ndg-wide);
  margin: 48px auto 88px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
}
.ndg-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  font-size: 14px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
body.admin-bar .ndg-toc {
  top: 144px;
}
.ndg-toc-title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ndg-muted);
  margin: 0 0 10px;
}
.ndg-toc ol,
.ndg-toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--ndg-line);
}
.ndg-toc li a,
.ndg-toc-mobile li a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ndg-muted);
  text-decoration: none;
  line-height: 1.4;
}
.ndg-toc li a:hover {
  color: var(--ndg-ink);
  border-left-color: var(--ndg-accent);
}
.ndg-toc-back {
  margin-top: 18px;
}
.ndg-toc-back a {
  font-weight: 650;
  text-decoration: none;
}
.ndg-toc-mobile {
  display: none;
  border: 1px solid var(--ndg-line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 28px;
  background: var(--ndg-paper);
}
.ndg-toc-mobile summary {
  font-weight: 650;
  cursor: pointer;
}
.ndg-toc-mobile ol {
  margin-top: 10px;
}

.ndg-article {
  min-width: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ndg-ink);
}
.ndg-article section {
  scroll-margin-top: 110px;
}
.ndg-article h2 {
  font-size: 25px;
  margin: 46px 0 14px;
  letter-spacing: -0.02em;
}
.ndg-article p,
.ndg-article li {
  color: var(--ndg-ink);
}
.ndg-article p {
  margin: 0 0 16px;
}
.ndg-article ul,
.ndg-article ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.ndg-article li {
  margin-bottom: 8px;
}
.ndg-article a {
  color: var(--ndg-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ndg-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--ndg-paper);
  border: 1px solid var(--ndg-line);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.ndg-definition {
  background: var(--ndg-paper);
  border: 1px solid var(--ndg-line);
  border-left: 4px solid var(--ndg-accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
}
.ndg-article .ndg-definition h2 {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ndg-muted);
  margin: 0 0 8px;
}
.ndg-definition p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}
.ndg-note {
  border-left: 3px solid var(--ndg-link);
  background: var(--ndg-paper);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 18px;
}
.ndg-note p {
  margin: 0;
  font-size: 15px;
}
.ndg-steps {
  counter-reset: ndg-step;
  list-style: none;
  padding-left: 0 !important;
}
.ndg-steps li {
  counter-increment: ndg-step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
}
.ndg-steps li::before {
  content: counter(ndg-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--ndg-paper);
  border: 1px solid var(--ndg-line);
}
.ndg-table {
  overflow-x: auto;
  margin: 6px 0 22px;
  border: 1px solid var(--ndg-line);
  border-radius: 12px;
}
.ndg-table:focus-visible {
  outline: 3px solid var(--ndg-link);
  outline-offset: 2px;
}
/* Tables with three or more columns keep a readable width and scroll inside their frame on phones. */
.ndg-table table:has(th:nth-child(3)) {
  min-width: 560px;
}
.ndg-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}
.ndg-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ndg-muted);
  border-top: 1px solid var(--ndg-line);
}
.ndg-table th,
.ndg-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ndg-line);
}
.ndg-table thead th {
  background: var(--ndg-paper);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.ndg-table tbody th {
  font-weight: 650;
  min-width: 140px;
}
.ndg-table td {
  color: var(--ndg-muted);
}
.ndg-table tr:last-child th,
.ndg-table tr:last-child td {
  border-bottom: 0;
}
.ndg-code {
  margin: 6px 0 22px;
}
.ndg-code pre {
  margin: 0;
  background: #0c0d10;
  color: #e6e8eb;
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}
.ndg-code pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
  white-space: pre;
}
.ndg-code figcaption {
  font-size: 13px;
  color: var(--ndg-muted);
  margin-top: 8px;
}
.ndg-formula {
  border: 1px solid var(--ndg-line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 6px 0 20px;
}
.ndg-formula-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px !important;
}
.ndg-formula ul {
  margin: 0;
  font-size: 14px;
}
.ndg-calc {
  border: 1px dashed var(--ndg-line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 22px;
}
.ndg-calc-title {
  font-weight: 650;
  margin: 0 0 10px !important;
}
.ndg-calc-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ndg-calc label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--ndg-muted);
}
.ndg-calc input {
  width: 160px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ndg-line);
  border-radius: 10px;
  background: var(--ndg-card);
  color: var(--ndg-ink);
  font: inherit;
}
.ndg-calc-out {
  margin: 12px 0 0 !important;
  font-size: 15px;
}
.ndg-calc output {
  font-size: 22px;
  font-weight: 700;
  margin-right: 6px;
}
.ndg-myths {
  list-style: none;
  padding: 0 !important;
}
.ndg-myths li {
  border: 1px solid var(--ndg-line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.ndg-myths p {
  margin: 0;
  font-size: 15.5px;
}
.ndg-myth {
  color: var(--ndg-muted) !important;
  margin-bottom: 6px !important;
}
.ndg-myths span {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 6px;
}
.ndg-myth span {
  color: var(--ndg-bad);
}
.ndg-fact span {
  color: var(--ndg-good);
}
/* Entry cards: one family with the index (tints, white chips and tiles, the same hover). */
.ndg-related,
.ndg-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 !important;
  margin: 0 0 8px !important;
}
.ndg-related li,
.ndg-links li {
  display: flex;
  margin: 0 !important;
}
.ndg-article .ndg-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 20px 20px 18px;
  border-radius: 20px;
  color: var(--ndg-ink);
  text-decoration: none;
  transition:
    transform 0.25s var(--nd-ease, ease),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}
.ndg-card-link strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.ndg-card-text {
  color: var(--ndg-muted);
  font-size: 14px;
  line-height: 1.55;
}
.ndg-card-link .ndg-more {
  font-size: 14px;
}
.ndg-card-link:hover,
.ndg-card-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(12, 13, 16, 0.08);
}
:root[data-theme="dark"] .ndg-card-link:hover,
:root[data-theme="dark"] .ndg-card-link:focus-visible {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}
.ndg-card-link:hover .ndg-more::after,
.ndg-card-link:focus-visible .ndg-more::after {
  transform: translateX(4px);
}
.ndg-card-link:focus-visible {
  outline: 2px solid var(--ndg-link);
  outline-offset: 3px;
}
.ndg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ndg-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ndg-chip);
  box-shadow: 0 0 0 1px var(--ndg-chip-line);
}
.ndg-tile::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--ndg-ink);
  -webkit-mask: var(--nd-icon) center/contain no-repeat;
  mask: var(--nd-icon) center/contain no-repeat;
}

/* Related concepts: tinted cards. */
.ndg-related li .ndg-card-link {
  background: var(--ndg-blue-50);
}
.ndg-related li:nth-child(4n + 2) .ndg-card-link {
  background: var(--ndg-cream-50);
}
.ndg-related li:nth-child(4n + 3) .ndg-card-link {
  background: var(--ndg-green-50);
}
.ndg-related li:nth-child(4n + 4) .ndg-card-link {
  background: var(--ndg-cyan-50);
}
.ndg-related .ndg-chip {
  padding: 6px 11px;
  font-size: 12px;
}

.ndg-label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ndg-muted) !important;
  margin: 18px 0 10px !important;
}

/* Free tools: white cards with a wrench tile and a "Free" chip; the border turns amber on hover. */
.ndg-tools .ndg-card-link {
  border: 1px solid var(--ndg-line);
  background: var(--ndg-card);
}
.ndg-tools .ndg-card-link:hover,
.ndg-tools .ndg-card-link:focus-visible {
  border-color: var(--ndg-accent);
}
.ndg-chip-free {
  padding: 5px 10px;
  background: var(--ndg-green-50);
  box-shadow: none;
  color: var(--ndg-green-ink);
  font-size: 12px;
  font-weight: 650;
}

/* Platform pages: a dark panel of pill links, like the site's night sections. */
.ndg-platform {
  margin-top: 18px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: var(--nd-night, #0c0d10);
  border: 1px solid var(--nd-night-line, #262a31);
}
.ndg-platform .ndg-label {
  margin-top: 0 !important;
  color: var(--nd-orange-300, #fbbc5a) !important;
}
.ndg-article .ndg-platform-lead {
  margin: 6px 0 14px;
  color: var(--nd-night-text, #eef0f3);
  font-size: 15px;
}
.ndg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.ndg-pills li {
  margin: 0 !important;
}
.ndg-article .ndg-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--nd-night-line, #262a31);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nd-night-text, #eef0f3);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.ndg-pills a::after {
  content: "→";
  transition: transform 0.2s ease;
}
.ndg-article .ndg-pills a:hover,
.ndg-article .ndg-pills a:focus-visible {
  background: var(--ndg-accent);
  border-color: var(--ndg-accent);
  color: var(--nd-accent-ink, #1a1203);
}
.ndg-pills a:hover::after,
.ndg-pills a:focus-visible::after {
  transform: translateX(3px);
}

/* Keep learning: guides as cream cards, the learning path as a cyan card. */
.ndg-guides {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.ndg-guide.ndg-card-link {
  background: var(--ndg-cream-50);
}
.ndg-path {
  margin: 16px 0;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: var(--ndg-cyan-50);
  font-size: 15px;
  transition:
    transform 0.25s var(--nd-ease, ease),
    box-shadow 0.25s ease;
}
.ndg-path:hover,
.ndg-path:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(12, 13, 16, 0.08);
}
:root[data-theme="dark"] .ndg-path:hover,
:root[data-theme="dark"] .ndg-path:focus-within {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}
.ndg-path-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ndg-article .ndg-path-head p {
  display: grid;
  gap: 2px;
  margin: 0;
}
.ndg-path-kicker {
  color: var(--ndg-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ndg-path-head strong {
  font-size: 18px;
  letter-spacing: -0.01em;
}
/* Progress: one segment per step, filled up to the current one. */
.ndg-path-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.ndg-path-progress span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--ndg-chip);
  box-shadow: 0 0 0 1px var(--ndg-chip-line);
}
.ndg-path-progress .is-done {
  background: var(--ndg-accent);
  box-shadow: none;
}
/* Steps: a numbered list in a white panel, the current step marked. */
.ndg-path ol {
  counter-reset: ndg-step;
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0 0 14px;
  padding: 8px !important;
  border-radius: 16px;
  background: var(--ndg-chip);
  box-shadow: 0 0 0 1px var(--ndg-chip-line);
  font-size: 15px;
}
.ndg-path li {
  counter-increment: ndg-step;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 10px;
}
.ndg-path li::before {
  content: counter(ndg-step);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ndg-grey-50);
  color: var(--ndg-muted);
  font-size: 13px;
  font-weight: 700;
}
.ndg-path li a {
  color: var(--ndg-ink);
  font-weight: 600;
  text-decoration: none;
}
.ndg-path li:has(a):hover {
  background: var(--ndg-grey-50);
}
.ndg-path li a:hover {
  color: var(--ndg-link);
}
.ndg-path li[aria-current] {
  background: var(--ndg-cream-50);
  font-weight: 700;
}
.ndg-path li[aria-current]::before {
  background: var(--ndg-accent);
  color: var(--nd-accent-ink, #1a1203);
}
.ndg-path li[aria-current]::after {
  content: "You are here";
  margin-left: auto;
  color: var(--ndg-amber-ink);
  font-size: 12px;
  font-weight: 650;
}
/* Previous / next: one row of arrow links. */
.ndg-path-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 !important;
}
.ndg-article .ndg-path-nav a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
  color: var(--ndg-link);
  font-weight: 650;
  text-decoration: none;
}
.ndg-path-nav a span {
  color: var(--ndg-muted);
  font-weight: 600;
}
.ndg-path-nav a[rel="prev"]::before {
  content: "←";
  transition: transform 0.2s ease;
}
.ndg-path-nav a[rel="next"] {
  margin-left: auto;
}
.ndg-path-nav a[rel="next"]::after {
  content: "→";
  transition: transform 0.2s ease;
}
.ndg-article .ndg-path-nav a:hover {
  text-decoration: underline;
}
.ndg-path-nav a[rel="prev"]:hover::before {
  transform: translateX(-3px);
}
.ndg-path-nav a[rel="next"]:hover::after {
  transform: translateX(3px);
}
@media (max-width: 600px) {
  .ndg-related,
  .ndg-links {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ndg-article .ndg-card-link,
  .ndg-path,
  .ndg-pills a::after {
    transition: none;
  }
  .ndg-card-link:hover,
  .ndg-card-link:focus-visible,
  .ndg-path:hover,
  .ndg-path:focus-within,
  .ndg-card-link:hover .ndg-more::after,
  .ndg-pills a:hover::after {
    transform: none;
  }
}
.ndg-sources ul {
  font-size: 14.5px;
}
.ndg-sources li span {
  color: var(--ndg-muted);
  font-size: 13px;
}
.ndg-review {
  font-size: 14px;
  color: var(--ndg-muted) !important;
  border-top: 1px solid var(--ndg-line);
  padding-top: 14px;
}

@media (max-width: 1100px) {
  .ndg-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .ndg-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 28px;
  }
  .ndg-toc {
    display: none;
  }
  .ndg-toc-mobile {
    display: block;
  }
  .ndg-essentials,
  .ndg-letter ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ndg-main {
    --ndg-wide: calc(100% - 36px);
  }
  .ndg-essentials,
  .ndg-paths,
  .ndg-letter ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .ndg-ess {
    min-height: 0;
    gap: 10px;
    padding: 22px 20px 20px;
  }
  .ndg-ess strong {
    margin-top: 2px;
    font-size: 19px;
  }
  .ndg-letter ul {
    gap: 10px;
  }
  .ndg-row {
    gap: 6px;
    padding: 14px 16px;
  }
  .ndg-row-meta {
    padding-top: 2px;
  }
  .ndg-letter {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .ndg-letter h3 {
    font-size: 21px;
  }
  .ndg-article {
    font-size: 16px;
  }
  .ndg-article h2 {
    font-size: 22px;
    margin-top: 38px;
  }
  .ndg-definition {
    padding: 16px 18px;
  }
  .ndg-definition p {
    font-size: 16.5px;
  }
  .ndg-band.nd-section {
    padding-block: 44px;
  }
  .ndg-az a,
  .ndg-az span {
    min-width: 34px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ndg-search [role="option"] a,
  .ndg-az a {
    transition:
      background-color 0.12s,
      border-color 0.12s;
  }
}
