/* =====================================================================
   Modal Path Ethics - theme enhancements
   1. Alternating thick/thin tile-icon bullets on unordered lists
      (Cherish Ball override on the Pokemon VGC page)
   2. Live, session-based inline route playlist navigator
   These styles pair with assets/mpe/mpe-enhance.js.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tile-icon bullets
   JS tags each <li> of a content <ul> with .mpe-bullet-thick /
   .mpe-bullet-thin (alternating across every list down the page), or
   .mpe-bullet-cherish on the Cherish Ball page. We only restyle lists
   the JS has opted in by adding .mpe-tilelist to their <ul>.
   --------------------------------------------------------------------- */
ul.mpe-tilelist {
  list-style: none;
  padding-left: 1.6em;
}

ul.mpe-tilelist > li {
  position: relative;
}

ul.mpe-tilelist > li::before {
  content: "";
  position: absolute;
  left: -1.55em;
  top: 0.18em;
  width: 1em;
  height: 1em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  /* nudge optical alignment with the first text line */
  transform: translateY(0.05em);
}

li.mpe-bullet-thick::before {
  background-image: url("../images/icons/thick-tile.svg");
}

li.mpe-bullet-thin::before {
  background-image: url("../images/icons/thin-tile.svg");
}

li.mpe-bullet-cherish::before {
  background-image: url("../images/icons/cherishball.png");
  /* the ball reads better a touch larger and centred on the line */
  width: 1.05em;
  height: 1.05em;
  top: 0.12em;
}

/* ---------------------------------------------------------------------
   2. Inline route playlist navigator
   Injected at the bottom of an article while a reader is following an
   Argument Route. Visual language echoes the route symbol / gold accent.
   --------------------------------------------------------------------- */
.mpe-route-player {
  --mpe-rp-accent: #EEC643;
  margin: 3rem 0 1rem;
  padding: 2rem 2.2rem 2.2rem;
  border: 1px solid rgba(148, 148, 148, 0.28);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.06);
}

html[data-color-scheme="dark"] .mpe-route-player {
  border-color: rgba(238, 198, 67, 0.28);
  background: rgba(238, 198, 67, 0.05);
}

.mpe-route-player-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mpe-route-player-icon {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
}

.mpe-route-player-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-right: auto;
}

.mpe-route-player-eyebrow {
  font-size: 1.3rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.6;
}

.mpe-route-player-name {
  font-size: 2.2rem;
  font-weight: 700;
}

.mpe-route-player-name a {
  color: inherit;
  text-decoration: none;
}

.mpe-route-player-name a:hover {
  text-decoration: underline;
}

.mpe-route-player-pos {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  white-space: nowrap;
}

.mpe-route-player-leave {
  appearance: none;
  border: 1px solid rgba(148, 148, 148, 0.4);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.4em 0.7em;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.12s, border-color 0.12s;
}

.mpe-route-player-leave:hover {
  opacity: 1;
  border-color: var(--mpe-rp-accent);
}

.mpe-route-player-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.mpe-route-player-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 148, 148, 0.25);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}

a.mpe-route-player-card:hover {
  border-color: var(--mpe-rp-accent);
  background: rgba(238, 198, 67, 0.08);
  transform: translateY(-1px);
}

.mpe-route-player-next {
  text-align: right;
  align-items: flex-end;
}

.mpe-route-player-dir {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}

.mpe-route-player-card-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

.mpe-route-player-card.is-empty {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* Collapsible full list */
.mpe-route-player-list-toggle {
  margin-top: 0.9rem;
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  opacity: 0.7;
  cursor: pointer;
  padding: 0.2em 0;
}

.mpe-route-player-list-toggle:hover {
  opacity: 1;
  text-decoration: underline;
}

.mpe-route-player-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rp;
  display: none;
}

.mpe-route-player.is-open .mpe-route-player-list {
  display: block;
}

.mpe-route-player-list li {
  counter-increment: rp;
  margin: 0;
}

.mpe-route-player-list li a {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0.2rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  font-size: 1.7rem;
}

.mpe-route-player-list li a::before {
  content: counter(rp);
  flex: 0 0 1.6em;
  text-align: right;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.mpe-route-player-list li a:hover {
  background: rgba(238, 198, 67, 0.08);
}

.mpe-route-player-list li.is-current a {
  font-weight: 700;
}

.mpe-route-player-list li.is-current a::before {
  content: "\25C6"; /* diamond marker for current */
  color: var(--mpe-rp-accent);
  opacity: 1;
}

@media (max-width: 540px) {
  .mpe-route-player-nav {
    grid-template-columns: 1fr;
  }
  .mpe-route-player-next {
    text-align: left;
    align-items: flex-start;
  }
}


/* ---------------------------------------------------------------------
   3. Post-page route player + topic tag polish
   Keeps the live route navigator from stretching edge-to-edge and turns
   the post footer tags into the same pill language as Concepts & Topics.
   --------------------------------------------------------------------- */
.mpe-route-followbar {
  box-sizing: border-box;
  width: min(900px, calc(100% - var(--gap, 3.6rem) * 2));
  margin: 5.6rem auto 0;
}

.mpe-route-followbar .mpe-route-player {
  width: 100%;
  margin: 0;
}

.mpe-route-others {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 148, 148, 0.22);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.035);
}

html[data-color-scheme="dark"] .mpe-route-others {
  border-color: rgba(238, 198, 67, 0.18);
  background: rgba(238, 198, 67, 0.035);
}

.mpe-route-others-label {
  color: var(--color-secondary-text);
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mpe-route-others-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.mpe-route-other {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(148, 148, 148, 0.24);
  border-radius: 999px;
  color: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.mpe-route-other:hover {
  border-color: var(--mpe-rp-accent, #EEC643);
  background: rgba(238, 198, 67, 0.08);
  opacity: 1 !important;
  transform: translateY(-1px);
}

.mpe-route-other-icon {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.mpe-route-other-name {
  color: inherit;
}

.mpe-article-tags-panel {
  margin-top: 48px;
}

.mpe-article-tags-inner {
  grid-column: main;
  padding: 24px;
  border: 1px solid var(--mpe-card-border, var(--color-light-gray));
  border-radius: 16px;
  background: rgba(127, 127, 127, 0.035);
}

html[data-color-scheme="dark"] .mpe-article-tags-inner {
  border-color: rgba(238, 198, 67, 0.18);
  background: rgba(238, 198, 67, 0.035);
}

.mpe-article-tags-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--color-darker-gray);
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mpe-article-tags-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--color-light-gray);
}

html[data-color-scheme="dark"] .mpe-article-tags-title::after {
  background-color: #2b303a;
}

.mpe-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  line-height: 1;
}

.mpe-article-tag-link {
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--color-light-gray);
  border-radius: 999px;
  color: var(--color-darker-gray) !important;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 500;
  gap: 10px;
  letter-spacing: -0.006em;
  line-height: 1;
  padding: 14px 20px;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.mpe-article-tag-link:hover {
  background-color: var(--color-lighter-gray);
  border-color: var(--color-mid-gray);
  opacity: 1 !important;
  transform: translateY(-1px);
}

.mpe-article-tag-link[data-slug="modal-path-ethics"],
.mpe-article-tag-link[data-slug="mpe"] {
  background-color: var(--mpe-thick, #EEC643);
  border-color: var(--mpe-thick, #EEC643);
  color: #15171a !important;
  font-weight: 700;
}

.mpe-article-tag-link[data-slug="modal-path-ethics"]:hover,
.mpe-article-tag-link[data-slug="mpe"]:hover {
  background-color: #d9b232;
  border-color: #d9b232;
}

.mpe-article-tag-link[data-slug^="route-"],
.mpe-article-tag-link[data-slug^="hash-"] {
  display: none !important;
}

.mpe-article-tags-panel:not(:has(.mpe-article-tag-link:not([data-slug^="route-"]):not([data-slug^="hash-"]))) {
  display: none;
}

@media (max-width: 767px) {
  .mpe-route-followbar {
    width: min(100%, calc(100% - var(--gap, 2rem) * 2));
    margin-top: 4rem;
  }

  .mpe-route-player {
    padding: 1.6rem;
  }

  .mpe-route-others {
    align-items: flex-start;
    flex-direction: column;
  }

  .mpe-article-tags-panel {
    margin-top: 36px;
  }

  .mpe-article-tags-inner {
    padding: 20px;
  }

  .mpe-article-tag-link {
    font-size: 1.5rem;
    padding: 12px 16px;
  }
}


/* ---------------------------------------------------------------------
   4. Extance book purchase widget
   The iframe inherits the site's light/dark palette through theme-specific
   itch.io embed URLs selected by default.hbs.
   --------------------------------------------------------------------- */
.mpe-book-widget-panel {
  margin-top: 64px;
}

.mpe-book-widget-inner {
  grid-column: main;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid var(--color-light-gray);
}

.mpe-itch-widget {
  display: block;
  width: min(552px, 100%);
  height: 167px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-lighter-gray);
  box-shadow: 0 10px 30px rgba(21, 23, 26, 0.06);
}

html[data-color-scheme="dark"] .mpe-book-widget-inner {
  border-color: #2b303a;
}

html[data-color-scheme="dark"] .mpe-itch-widget {
  background: #171a21;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

@media (max-width: 600px) {
  .mpe-book-widget-panel {
    margin-top: 48px;
  }

  .mpe-book-widget-inner {
    padding-top: 24px;
  }

  .mpe-itch-widget {
    border-radius: 10px;
  }
}



/* =====================================================================
   5. Content tables

   Ghost table cards and ordinary HTML tables are presented as responsive
   MPE content cards. Two-column label/value tables receive a definition-
   card treatment; larger data tables retain their native columns inside a
   keyboard-accessible horizontal scroller instead of overflowing the page.
   ===================================================================== */
.gh-content > .kg-table-card,
.gh-content > .mpe-table-card {
  grid-column: wide;
  width: min(100%, calc(var(--content-width, 720px) + 10rem));
  justify-self: center;
}

.kg-table-card,
.mpe-table-card {
  --mpe-table-accent: #c99b12;
  --mpe-table-border: rgba(35, 39, 47, 0.16);
  --mpe-table-rule: rgba(35, 39, 47, 0.11);
  --mpe-table-fill: rgba(35, 39, 47, 0.025);
  --mpe-table-stripe: rgba(35, 39, 47, 0.035);
  --mpe-table-key: rgba(238, 198, 67, 0.11);
  position: relative;
  width: min(100%, calc(var(--content-width, 720px) + 10rem));
  max-width: 100%;
  margin: 3rem auto 3.8rem;
  border: 1px solid var(--mpe-table-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white, #fff);
  color: var(--color-primary-text, #333);
  box-shadow: 0 16px 42px rgba(21, 23, 26, 0.07);
}

.kg-table-card::before,
.mpe-table-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #eec643 0%, #c99b12 55%, #8d6910 100%);
  pointer-events: none;
}

html[data-color-scheme="dark"] .kg-table-card,
html[data-color-scheme="dark"] .mpe-table-card {
  --mpe-table-accent: #eec643;
  --mpe-table-border: rgba(238, 198, 67, 0.24);
  --mpe-table-rule: rgba(238, 198, 67, 0.14);
  --mpe-table-fill: rgba(238, 198, 67, 0.025);
  --mpe-table-stripe: rgba(238, 198, 67, 0.045);
  --mpe-table-key: rgba(238, 198, 67, 0.09);
  background: #12151b;
  color: #eef0f4;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.kg-table-wrapper,
.mpe-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--mpe-table-accent) transparent;
  background: transparent !important;
}

.kg-table-wrapper:focus-visible,
.mpe-table-scroll:focus-visible {
  outline: 2px solid var(--mpe-table-accent);
  outline-offset: -3px;
}

.kg-table-wrapper::-webkit-scrollbar,
.mpe-table-scroll::-webkit-scrollbar {
  height: 10px;
}

.kg-table-wrapper::-webkit-scrollbar-track,
.mpe-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.kg-table-wrapper::-webkit-scrollbar-thumb,
.mpe-table-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--mpe-table-accent);
  background-clip: padding-box;
}

.kg-table-card table,
.mpe-table-card table,
.gh-content > table,
.mpe-route-content > table,
.mpe-glossary-content > table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: transparent;
  color: inherit;
  font-family: var(--gh-font-body, var(--font-sans));
  font-size: 1.55rem;
  line-height: 1.45;
}

.kg-table-card caption,
.mpe-table-card caption {
  caption-side: top;
  padding: 1.35rem 1.45rem 1.15rem;
  border-bottom: 1px solid var(--mpe-table-rule);
  background: var(--mpe-table-fill);
  color: inherit;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-align: left;
}

.kg-table-card th,
.kg-table-card td,
.mpe-table-card th,
.mpe-table-card td {
  min-width: 0;
  padding: 1.15rem 1.4rem;
  border: 0;
  border-right: 1px solid var(--mpe-table-rule);
  border-bottom: 1px solid var(--mpe-table-rule);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.kg-table-card th:last-child,
.kg-table-card td:last-child,
.mpe-table-card th:last-child,
.mpe-table-card td:last-child {
  border-right: 0;
}

.kg-table-card tbody tr:last-child > *,
.mpe-table-card tbody tr:last-child > *,
.kg-table-card tfoot tr:last-child > *,
.mpe-table-card tfoot tr:last-child > * {
  border-bottom: 0;
}

.kg-table-card thead th,
.mpe-table-card thead th,
.kg-table-card tr:first-child > th,
.mpe-table-card tr:first-child > th {
  padding-top: 1.25rem;
  padding-bottom: 1.05rem;
  border-bottom-color: rgba(141, 105, 16, 0.34);
  background: rgba(238, 198, 67, 0.16);
  color: #3a2d08;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}

html[data-color-scheme="dark"] .kg-table-card thead th,
html[data-color-scheme="dark"] .mpe-table-card thead th,
html[data-color-scheme="dark"] .kg-table-card tr:first-child > th,
html[data-color-scheme="dark"] .mpe-table-card tr:first-child > th {
  border-bottom-color: rgba(238, 198, 67, 0.3);
  background: rgba(238, 198, 67, 0.12);
  color: #f6df8d;
}

.kg-table-card tbody tr:nth-child(even) > td,
.mpe-table-card tbody tr:nth-child(even) > td {
  background: var(--mpe-table-stripe);
}

@media (hover: hover) {
  .kg-table-card tbody tr:hover > td,
  .mpe-table-card tbody tr:hover > td {
    background: rgba(238, 198, 67, 0.085);
  }
}

.kg-table-card tfoot td,
.kg-table-card tfoot th,
.mpe-table-card tfoot td,
.mpe-table-card tfoot th {
  background: var(--mpe-table-fill);
  font-weight: 700;
}

/* Two-column label/value tables, such as audit fact cards. */
.mpe-table-key-value table,
table.mpe-table-key-value {
  table-layout: fixed;
}

.mpe-table-key-value td:first-child,
table.mpe-table-key-value td:first-child {
  width: 42%;
  border-right-color: rgba(141, 105, 16, 0.23);
  background: var(--mpe-table-key) !important;
  font-weight: 750;
}

.mpe-table-key-value td:last-child,
table.mpe-table-key-value td:last-child {
  width: 58%;
}

/* Data-heavy tables are allowed to remain genuinely tabular and scroll. */
.mpe-table-wide table,
table.mpe-table-wide {
  min-width: var(--mpe-table-min-width, 680px);
}

/* Most content tables should sit just wider than the prose column rather than
   stretching across the full wide track. Purpose-specific tables can override. */
.mpe-table-scorecard,
.kg-table-card.mpe-table-scorecard {
  width: min(100%, 54rem);
}

.mpe-table-key-value,
.kg-table-card.mpe-table-key-value {
  width: min(100%, calc(var(--content-width, 720px) + 8rem));
}

.mpe-table-wide,
.kg-table-card.mpe-table-wide,
.mpe-table-leaderboard,
.kg-table-card.mpe-table-leaderboard {
  width: 100%;
}

/* Scorecards and definition cards should not advertise horizontal scrolling or
   show browser edge glow. */
.mpe-table-scorecard .mpe-table-scroll,
.mpe-table-scorecard .kg-table-wrapper,
.mpe-table-key-value .mpe-table-scroll,
.mpe-table-key-value .kg-table-wrapper {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior-x: auto !important;
  -webkit-overflow-scrolling: auto;
}

.mpe-table-scorecard.is-scrollable::after,
.mpe-table-key-value.is-scrollable::after {
  content: none !important;
  display: none !important;
}

.kg-table-card figcaption,
.mpe-table-card figcaption {
  margin: 0;
  padding: 1rem 1.4rem 1.1rem;
  border-top: 1px solid var(--mpe-table-rule);
  background: var(--mpe-table-fill);
  color: var(--color-secondary-text, #777);
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: left;
}

.kg-table-card.is-scrollable::after,
.mpe-table-card.is-scrollable::after {
  content: "Scroll horizontally \2192";
  display: block;
  padding: 0.65rem 1.35rem 0.75rem;
  border-top: 1px solid var(--mpe-table-rule);
  background: var(--mpe-table-fill);
  color: var(--color-secondary-text, #777);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-align: right;
}

@media (max-width: 767px) {
  .gh-content > .kg-table-card,
  .gh-content > .mpe-table-card {
    grid-column: full;
    width: auto;
    max-width: none;
    margin-right: var(--gap, 2rem);
    margin-left: var(--gap, 2rem);
    justify-self: stretch;
  }

  .kg-table-card,
  .mpe-table-card {
    margin-top: 2.4rem;
    margin-bottom: 3rem;
    border-radius: 12px;
  }

  .kg-table-card table,
  .mpe-table-card table {
    font-size: 1.45rem;
  }

  .kg-table-card th,
  .kg-table-card td,
  .mpe-table-card th,
  .mpe-table-card td {
    padding: 1rem 1.1rem;
  }

  /* Definition-style tables become stacked cards rather than tiny columns. */
  .mpe-table-key-value table,
  table.mpe-table-key-value,
  .mpe-table-key-value tbody,
  table.mpe-table-key-value tbody,
  .mpe-table-key-value tr,
  table.mpe-table-key-value tr,
  .mpe-table-key-value td,
  table.mpe-table-key-value td {
    display: block;
    width: 100% !important;
  }

  .mpe-table-key-value tr,
  table.mpe-table-key-value tr {
    border-bottom: 1px solid var(--mpe-table-rule);
  }

  .mpe-table-key-value tr:last-child,
  table.mpe-table-key-value tr:last-child {
    border-bottom: 0;
  }

  .mpe-table-key-value td,
  table.mpe-table-key-value td {
    border-right: 0;
    border-bottom: 0;
  }

  .mpe-table-key-value td:first-child,
  table.mpe-table-key-value td:first-child {
    padding-bottom: 0.5rem;
    border-bottom: 0;
  }

  .mpe-table-key-value td:last-child,
  table.mpe-table-key-value td:last-child {
    padding-top: 0.65rem;
  }
}


/* ---------------------------------------------------------------------
   5b. Imported-table normalization and audit-specific table layouts

   Word/Outlook paste markup carries fixed widths, fixed row heights, and
   paragraph metrics that override ordinary responsive table CSS. The JS
   sanitizer removes those attributes; these !important resets are the
   defensive fallback and keep already-published Ghost HTML readable even
   when an individual Office property survives.
   --------------------------------------------------------------------- */
.mpe-table-card,
.mpe-table-card *,
.kg-table-card,
.kg-table-card * {
  box-sizing: border-box;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.mpe-table-card,
.kg-table-card,
.mpe-table-scroll,
.kg-table-wrapper,
.mpe-table-card table,
.kg-table-card table {
  background-image: none !important;
  filter: none !important;
}

.mpe-table-scroll::before,
.mpe-table-scroll::after,
.kg-table-wrapper::before,
.kg-table-wrapper::after {
  content: none !important;
  display: none !important;
}

.mpe-table-card table,
.kg-table-card table,
.gh-content table.MsoNormalTable {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
}

.mpe-table-card col,
.mpe-table-card colgroup,
.mpe-table-card thead,
.mpe-table-card tbody,
.mpe-table-card tfoot,
.mpe-table-card tr,
.kg-table-card col,
.kg-table-card colgroup,
.kg-table-card thead,
.kg-table-card tbody,
.kg-table-card tfoot,
.kg-table-card tr {
  height: auto !important;
  max-height: none !important;
}

.mpe-table-card th,
.mpe-table-card td,
.kg-table-card th,
.kg-table-card td {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 1.15rem 1.4rem !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.mpe-table-card th > :first-child,
.mpe-table-card td > :first-child,
.kg-table-card th > :first-child,
.kg-table-card td > :first-child {
  margin-top: 0 !important;
}

.mpe-table-card th > :last-child,
.mpe-table-card td > :last-child,
.kg-table-card th > :last-child,
.kg-table-card td > :last-child {
  margin-bottom: 0 !important;
}

.mpe-table-card td p,
.mpe-table-card th p,
.kg-table-card td p,
.kg-table-card th p,
.gh-content table.MsoNormalTable td p,
.gh-content table.MsoNormalTable th p {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-align: inherit !important;
  text-indent: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.mpe-table-card td span,
.mpe-table-card th span,
.kg-table-card td span,
.kg-table-card th span {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
}


.mpe-table-card tr,
.kg-table-card tr,
.mpe-table-card tbody,
.kg-table-card tbody,
.mpe-table-card thead,
.kg-table-card thead {
  background: transparent !important;
}

.mpe-table-card tbody tr > th,
.mpe-table-card tbody tr > td,
.kg-table-card tbody tr > th,
.kg-table-card tbody tr > td,
.mpe-table-card thead tr > th,
.mpe-table-card thead tr > td,
.kg-table-card thead tr > th,
.kg-table-card thead tr > td {
  background-clip: padding-box !important;
}

/* Compact two-column score sheets remain true tables at every width. */
.mpe-table-scorecard table,
table.mpe-table-scorecard {
  min-width: 0 !important;
  table-layout: fixed !important;
}

.mpe-table-scorecard th:first-child,
.mpe-table-scorecard td:first-child {
  width: 72% !important;
}

.mpe-table-scorecard th:last-child,
.mpe-table-scorecard td:last-child {
  width: 28% !important;
  border-right: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.mpe-table-scorecard tbody td:first-child {
  font-weight: 650;
}

.mpe-table-scorecard tbody td:last-child {
  color: var(--mpe-table-accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Fact cards use a narrower key column and a generous prose column. */
.mpe-table-key-value td:first-child,
table.mpe-table-key-value td:first-child {
  width: 34% !important;
}

.mpe-table-key-value td:last-child,
table.mpe-table-key-value td:last-child {
  width: 66% !important;
}

/* The audit leaderboard has a deliberate desktop column hierarchy. */
.mpe-leaderboard-mobile {
  display: none;
}

.mpe-table-leaderboard table,
table.mpe-table-leaderboard {
  min-width: 760px !important;
  table-layout: fixed !important;
}

.mpe-table-leaderboard th:nth-child(1),
.mpe-table-leaderboard td:nth-child(1) {
  width: 10% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.mpe-table-leaderboard th:nth-child(2),
.mpe-table-leaderboard td:nth-child(2) {
  width: 27% !important;
}

.mpe-table-leaderboard th:nth-child(3),
.mpe-table-leaderboard td:nth-child(3) {
  width: 15% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.mpe-table-leaderboard th:nth-child(4),
.mpe-table-leaderboard td:nth-child(4) {
  width: 48% !important;
}

.mpe-table-leaderboard tbody td:nth-child(1),
.mpe-table-leaderboard tbody td:nth-child(3) {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .mpe-table-card th,
  .mpe-table-card td,
  .kg-table-card th,
  .kg-table-card td {
    padding: 0.95rem 1.05rem !important;
  }

  .mpe-table-scorecard th:first-child,
  .mpe-table-scorecard td:first-child {
    width: 70% !important;
  }

  .mpe-table-scorecard th:last-child,
  .mpe-table-scorecard td:last-child {
    width: 30% !important;
  }

  .mpe-table-key-value td:first-child,
  .mpe-table-key-value td:last-child,
  table.mpe-table-key-value td:first-child,
  table.mpe-table-key-value td:last-child {
    width: 100% !important;
  }

  .mpe-table-key-value .mpe-table-scroll,
  .mpe-table-key-value .kg-table-wrapper {
    overflow: visible !important;
  }

  .mpe-table-key-value.is-scrollable::after {
    content: none !important;
    display: none !important;
  }

  .mpe-table-leaderboard > .mpe-table-scroll,
  .mpe-table-leaderboard > .kg-table-wrapper {
    display: none !important;
  }

  .mpe-table-leaderboard .mpe-leaderboard-mobile {
    display: block;
    width: 100%;
  }

  .mpe-leaderboard-result {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr) auto;
    grid-template-areas:
      "rank game score"
      "rank verdict verdict";
    column-gap: 0.9rem;
    row-gap: 0.45rem;
    width: 100%;
    padding: 1.2rem 1.05rem;
    border-bottom: 1px solid var(--mpe-table-rule);
    background: transparent;
  }

  .mpe-leaderboard-result:nth-child(even) {
    background: var(--mpe-table-stripe);
  }

  .mpe-leaderboard-result:last-child {
    border-bottom: 0;
  }

  .mpe-leaderboard-result p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
  }

  .mpe-leaderboard-rank {
    grid-area: rank;
    align-self: start;
    color: var(--mpe-table-accent);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
  }

  .mpe-leaderboard-game {
    grid-area: game;
    min-width: 0;
    font-weight: 750;
    overflow-wrap: anywhere;
  }

  .mpe-leaderboard-score {
    grid-area: score;
    align-self: start;
    color: var(--mpe-table-accent);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
  }

  .mpe-leaderboard-verdict {
    grid-area: verdict;
    min-width: 0;
    color: var(--color-secondary-text, #777);
    font-size: 0.92em;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .mpe-leaderboard-verdict-label {
    display: block;
    margin-bottom: 0.15rem;
    color: inherit;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* The hidden semantic table remains available to print and assistive
     technology; the visible mobile view is a clean record-card rendering. */
  /* A leaderboard row becomes one legible result card instead of a clipped
     four-column strip. No horizontal fade or swipe is required. */
  .mpe-table-leaderboard.mpe-table-card {
    overflow: hidden;
  }

  .mpe-table-leaderboard .mpe-table-scroll,
  .mpe-table-leaderboard .kg-table-wrapper {
    overflow: visible !important;
  }

  .mpe-table-leaderboard table,
  table.mpe-table-leaderboard,
  .mpe-table-leaderboard tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .mpe-table-leaderboard thead {
    display: none !important;
  }

  .mpe-table-leaderboard tbody tr {
    position: relative;
    display: grid !important;
    grid-template-columns: 4.2rem minmax(0, 1fr) 6rem;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.4rem;
    width: 100% !important;
    padding: 1.2rem 1.05rem !important;
    border-bottom: 1px solid var(--mpe-table-rule);
    background: transparent;
  }

  .mpe-table-leaderboard tbody tr:nth-child(even) {
    background: var(--mpe-table-stripe);
  }

  .mpe-table-leaderboard tbody tr:last-child {
    border-bottom: 0;
  }

  .mpe-table-leaderboard tbody td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }

  .mpe-table-leaderboard tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.1rem !important;
    color: var(--mpe-table-accent);
    font-size: 1em;
    text-align: center !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  .mpe-table-leaderboard tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-weight: 750;
  }

  .mpe-table-leaderboard tbody td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    justify-self: stretch !important;
    align-self: start;
    color: var(--mpe-table-accent);
    font-size: 0.95em;
    text-align: right !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  .mpe-table-leaderboard tbody td:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
    color: var(--color-secondary-text, #777);
    font-size: 0.92em;
    line-height: 1.4;
  }

  .mpe-table-leaderboard tbody td:nth-child(1) p,
  .mpe-table-leaderboard tbody td:nth-child(1) span,
  .mpe-table-leaderboard tbody td:nth-child(3) p,
  .mpe-table-leaderboard tbody td:nth-child(3) span {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .mpe-table-leaderboard tbody td:nth-child(4)::before {
    content: attr(data-label) ": ";
    color: inherit;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mpe-table-leaderboard.is-scrollable::after {
    content: none !important;
    display: none !important;
  }
}

/* =====================================================================
   6. The Great Ludic Audit — paired review cards

   Page-scoped by the body class added in mpe-enhance.js. The actual Ghost
   article remains ordinary portable content; presentation is upgraded only
   on the named audit page and its preview URL.
   ===================================================================== */
body.mpe-ludic-audit .gh-content > .mpe-audit-procon-grid {
  grid-column: wide-start / wide-end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  width: 100%;
  margin: 2.2rem 0 3.2rem;
}

body.mpe-ludic-audit .mpe-audit-procon-card {
  --mpe-audit-accent: #c99b12;
  --mpe-audit-accent-rgb: 201, 155, 18;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 47, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(var(--mpe-audit-accent-rgb), 0.07), transparent 7rem),
    rgba(35, 39, 47, 0.025);
  box-shadow: 0 12px 30px rgba(20, 22, 26, 0.07);
}

body.mpe-ludic-audit .mpe-audit-procon-card.is-good {
  --mpe-audit-accent: #2f9a62;
  --mpe-audit-accent-rgb: 47, 154, 98;
}

body.mpe-ludic-audit .mpe-audit-procon-card.is-bad {
  --mpe-audit-accent: #c94f52;
  --mpe-audit-accent-rgb: 201, 79, 82;
}

body.mpe-ludic-audit .mpe-audit-procon-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--mpe-audit-accent);
}

body.mpe-ludic-audit .mpe-audit-procon-head {
  display: flex;
  align-items: center;
  min-height: 6.2rem;
  padding: 1.5rem 1.7rem 1.25rem;
  border-bottom: 1px solid rgba(var(--mpe-audit-accent-rgb), 0.22);
}

body.mpe-ludic-audit .mpe-audit-procon-head::before {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-right: 0.9rem;
  border: 1px solid rgba(var(--mpe-audit-accent-rgb), 0.48);
  border-radius: 50%;
  color: var(--mpe-audit-accent);
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

body.mpe-ludic-audit .mpe-audit-procon-card.is-good .mpe-audit-procon-head::before {
  content: "+";
}

body.mpe-ludic-audit .mpe-audit-procon-card.is-bad .mpe-audit-procon-head::before {
  content: "−";
}

body.mpe-ludic-audit .gh-content .mpe-audit-procon-title {
  margin: 0;
  color: inherit;
  font-family: var(--gh-font-heading, var(--font-sans));
  font-size: 1.75rem;
  font-weight: 780;
  letter-spacing: 0.075em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.mpe-ludic-audit .mpe-audit-procon-list {
  display: block;
  margin: 0;
  padding: 0.55rem 1.7rem 0.75rem;
  list-style: none;
}

body.mpe-ludic-audit .mpe-audit-procon-item {
  position: relative;
  margin: 0;
  padding: 1.05rem 0 1.05rem 1.55rem;
  color: inherit;
  font-size: 1.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.mpe-ludic-audit .mpe-audit-procon-item + .mpe-audit-procon-item {
  border-top: 1px solid rgba(127, 127, 127, 0.14);
}

body.mpe-ludic-audit .mpe-audit-procon-item::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.82rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--mpe-audit-accent);
  box-shadow: 0 0 0 3px rgba(var(--mpe-audit-accent-rgb), 0.13);
}

body.mpe-ludic-audit .mpe-audit-procon-note {
  margin: 0 1.7rem 1.4rem;
  font-size: 1.6rem;
}

/* Literal ● characters remain semantically distinct from Penrose tile lists,
   but no longer dominate the line at full text size. */
body.mpe-ludic-audit .mpe-literal-bullet {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.52em;
  vertical-align: -0.08em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0.66em;
  line-height: 1;
  opacity: 0.96;
  transform: translateY(-0.04em);
}

body.mpe-ludic-audit .mpe-literal-bullet.is-thick {
  background-image: url("../images/icons/thick-tile.svg");
}

body.mpe-ludic-audit .mpe-literal-bullet.is-thin {
  background-image: url("../images/icons/thin-tile.svg");
}

html[data-color-scheme="dark"] body.mpe-ludic-audit .mpe-audit-procon-card {
  border-color: rgba(238, 198, 67, 0.16);
  background:
    linear-gradient(180deg, rgba(var(--mpe-audit-accent-rgb), 0.105), transparent 7rem),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.25);
}

html[data-color-scheme="dark"] body.mpe-ludic-audit .mpe-audit-procon-card.is-good {
  --mpe-audit-accent: #65c88d;
  --mpe-audit-accent-rgb: 101, 200, 141;
}

html[data-color-scheme="dark"] body.mpe-ludic-audit .mpe-audit-procon-card.is-bad {
  --mpe-audit-accent: #ed7779;
  --mpe-audit-accent-rgb: 237, 119, 121;
}

@media (max-width: 760px) {
  body.mpe-ludic-audit .gh-content > .mpe-audit-procon-grid {
    grid-column: main-start / main-end;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin: 1.7rem 0 2.7rem;
  }

  body.mpe-ludic-audit .mpe-audit-procon-head {
    min-height: 5.6rem;
    padding: 1.3rem 1.35rem 1.05rem;
  }

  body.mpe-ludic-audit .mpe-audit-procon-list {
    padding: 0.4rem 1.35rem 0.6rem;
  }

  body.mpe-ludic-audit .mpe-audit-procon-item {
    padding-block: 0.9rem;
    font-size: 1.62rem;
  }

  body.mpe-ludic-audit .mpe-audit-procon-item::before {
    top: 1.62rem;
  }
}

/* =====================================================================
   8. Print controls and print-safe article/page layout

   The controls are injected by mpe-enhance.js on Ghost posts and pages.
   Two modes are available: a faithful print with images, and a text-only
   print. The print stylesheet removes site chrome and normalizes Ghost's
   wide/full-width cards so content fits ordinary paper without clipping.
   ===================================================================== */
.mpe-print-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.48rem;
  width: fit-content;
  max-width: calc(100% - var(--gap, 2rem) * 2);
  margin-block: 0.65rem 2rem;
  margin-inline: auto !important;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.045);
  color: inherit;
  box-sizing: border-box;
  justify-self: center;
  place-self: center;
}

.mpe-print-tools-label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-right: 0.06rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mpe-print-tools-label svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.mpe-print-button {
  appearance: none;
  border: 1px solid rgba(127, 127, 127, 0.42);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.46em 0.78em;
  white-space: nowrap;
  transition: border-color 0.12s, background-color 0.12s, transform 0.12s;
}

.mpe-print-button:hover,
.mpe-print-button:focus-visible {
  border-color: #b38a09;
  background: rgba(238, 198, 67, 0.12);
  outline: none;
  transform: translateY(-1px);
}

html[data-color-scheme="dark"] .mpe-print-tools {
  border-color: rgba(238, 198, 67, 0.22);
  background: rgba(238, 198, 67, 0.045);
}

html[data-color-scheme="dark"] .mpe-print-button {
  border-color: rgba(238, 198, 67, 0.38);
}

.mpe-print-source,
.mpe-print-embed-note,
.mpe-print-canvas-snapshot {
  display: none;
}

html.mpe-print-text-prep .mpe-print-text-omitted {
  display: none !important;
}

@media (max-width: 600px) {
  .mpe-print-tools {
    gap: 0.38rem;
    max-width: calc(100% - 1.2rem);
    margin-block: 0.55rem 1.55rem;
    margin-inline: auto !important;
    padding: 0.38rem 0.42rem;
    border-radius: 14px;
  }

  .mpe-print-tools-label {
    flex: 0 0 auto;
    font-size: 1.02rem;
  }

  .mpe-print-tools-label svg {
    width: 1.18rem;
    height: 1.18rem;
  }

  .mpe-print-button {
    flex: 0 0 auto;
    font-size: 1.01rem;
    padding: 0.45em 0.68em;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .mpe-print-tools-label span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media print {
  .kg-table-card,
  .mpe-table-card,
  .gh-content > .kg-table-card,
  .gh-content > .mpe-table-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.18in 0 0.24in !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .kg-table-card::before,
  .kg-table-card::after,
  .mpe-table-card::before,
  .mpe-table-card::after {
    display: none !important;
  }

  .kg-table-wrapper,
  .mpe-table-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .mpe-table-wide table,
  table.mpe-table-wide {
    min-width: 0 !important;
  }

  .mpe-table-key-value table,
  table.mpe-table-key-value {
    display: table !important;
    table-layout: fixed !important;
  }

  .mpe-table-key-value tbody,
  table.mpe-table-key-value tbody {
    display: table-row-group !important;
  }

  .mpe-table-key-value tr,
  table.mpe-table-key-value tr {
    display: table-row !important;
    width: auto !important;
    border: 0 !important;
  }

  .mpe-table-key-value td,
  table.mpe-table-key-value td {
    display: table-cell !important;
    width: auto !important;
  }

  .mpe-table-key-value td:first-child,
  table.mpe-table-key-value td:first-child {
    width: 38% !important;
    background: #f1f1f1 !important;
    font-weight: 700 !important;
  }

  .mpe-table-key-value td:last-child,
  table.mpe-table-key-value td:last-child {
    width: 62% !important;
  }

  .kg-table-card figcaption,
  .mpe-table-card figcaption {
    display: block !important;
    padding: 0.05in 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 8.5pt !important;
  }

  @page {
    size: auto;
    margin: 0.62in 0.68in 0.72in;
  }

  html,
  body {
    min-width: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    line-height: 1.48 !important;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  #gh-head,
  .gh-foot,
  .gh-search,
  .mpe-theme-toggle,
  .mpe-profanity-toggle,
  .mpe-print-tools,
  .mpe-route-followbar,
  .mpe-route-player,
  .mpe-route-others,
  .mpe-post-routes,
  .mpe-article-tags-panel,
  .mpe-book-widget-panel,
  .gh-comments,
  .gh-read-next,
  .mpe-route-related,
  .mpe-route-footer,
  .gh-topic,
  .pswp,
  [data-ghost-search],
  button,
  nav[aria-label="Topics"] {
    display: none !important;
  }

  body.post-template .gh-main > :not(.gh-article) {
    display: none !important;
  }

  .gh-site,
  .gh-main,
  .gh-outer,
  .gh-inner,
  .gh-canvas,
  .gh-article,
  .gh-article-header,
  .gh-content,
  .mpe-route-page,
  .mpe-route-article,
  .mpe-route-header,
  .mpe-route-header-content,
  .mpe-route-content,
  .mpe-archive-page,
  .mpe-glossary-page,
  .mpe-glossary-content {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
    overflow: visible !important;
    background: transparent !important;
    color: #000 !important;
  }

  .gh-article-header,
  .mpe-route-header,
  .mpe-archive-header,
  .mpe-glossary-header {
    margin-bottom: 0.28in !important;
    padding-bottom: 0.16in !important;
    border-bottom: 0.8pt solid #777 !important;
  }

  .gh-article-title,
  .mpe-route-title,
  .mpe-archive-title,
  .mpe-glossary-title {
    margin: 0 0 0.09in !important;
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 25pt !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .gh-article-excerpt,
  .mpe-route-excerpt,
  .mpe-archive-excerpt,
  .mpe-glossary-excerpt {
    margin: 0.08in 0 0 !important;
    color: #222 !important;
    font-size: 12pt !important;
    line-height: 1.38 !important;
  }

  .gh-article-meta,
  .gh-article-meta a,
  .mpe-route-eyebrow,
  .mpe-route-eyebrow a {
    color: #333 !important;
    font-size: 9.5pt !important;
  }

  .gh-content,
  .mpe-route-content,
  .mpe-glossary-content,
  .mpe-archive-intro {
    color: #000 !important;
    font-size: 11pt !important;
    line-height: 1.48 !important;
  }

  .gh-content h1,
  .gh-content h2,
  .gh-content h3,
  .gh-content h4,
  .gh-content h5,
  .gh-content h6,
  .mpe-route-content h1,
  .mpe-route-content h2,
  .mpe-route-content h3,
  .mpe-route-content h4,
  .mpe-glossary-content h2,
  .mpe-glossary-content h3,
  .mpe-glossary-content h4 {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    line-height: 1.2 !important;
  }

  .gh-content h2,
  .mpe-route-content h2,
  .mpe-glossary-content h2 {
    margin: 0.34in 0 0.12in !important;
    font-size: 18pt !important;
  }

  .gh-content h3,
  .mpe-route-content h3,
  .mpe-glossary-content h3 {
    margin: 0.28in 0 0.1in !important;
    font-size: 14.5pt !important;
  }

  .gh-content h4,
  .mpe-route-content h4,
  .mpe-glossary-content h4 {
    margin: 0.22in 0 0.08in !important;
    font-size: 12.5pt !important;
  }

  p,
  li,
  blockquote {
    orphans: 3;
    widows: 3;
  }

  ul.mpe-tilelist {
    list-style: disc !important;
    padding-left: 1.25em !important;
  }

  ul.mpe-tilelist > li::before {
    display: none !important;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 0.6pt !important;
    text-underline-offset: 0.08em !important;
  }

  hr {
    border: 0 !important;
    border-top: 0.7pt solid #777 !important;
    margin: 0.25in 0 !important;
  }

  blockquote {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
    margin: 0.2in 0 0.2in 0.15in !important;
    padding: 0.03in 0 0.03in 0.16in !important;
    border-left: 2pt solid #666 !important;
    color: #111 !important;
  }

  pre,
  code,
  kbd,
  samp {
    font-family: "Courier New", Courier, monospace !important;
  }

  pre {
    max-width: 100% !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    border: 0.7pt solid #999 !important;
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    font-size: 9pt !important;
    line-height: 1.25 !important;
  }

  thead {
    display: table-header-group !important;
  }

  tr {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  th,
  td {
    min-width: 0 !important;
    padding: 0.05in 0.06in !important;
    border: 0.6pt solid #888 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  figure,
  picture,
  .kg-card,
  .kg-image-card,
  .kg-gallery-card,
  .kg-bookmark-card,
  .kg-callout-card,
  .kg-file-card,
  .mpe-glossary-term,
  .mpe-route-keystones {
    max-width: 100% !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  .kg-width-wide,
  .kg-width-full,
  .kg-card.kg-width-wide,
  .kg-card.kg-width-full {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  img,
  picture img,
  figure img,
  .kg-image,
  .mpe-route-hero-image,
  .mpe-print-canvas-snapshot {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  img.mpe-print-tall,
  .mpe-print-canvas-snapshot.mpe-print-tall {
    width: auto !important;
    max-height: 8.25in !important;
  }

  img.mpe-print-wide,
  .mpe-print-canvas-snapshot.mpe-print-wide {
    width: 100% !important;
    max-height: 6.8in !important;
  }

  img.mpe-print-standard,
  .mpe-print-canvas-snapshot.mpe-print-standard {
    width: auto !important;
    max-height: 7.8in !important;
  }

  .kg-gallery-container,
  .kg-gallery-row {
    display: block !important;
    width: 100% !important;
  }

  .kg-gallery-image {
    display: block !important;
    width: 100% !important;
    margin: 0 0 0.15in !important;
  }

  .kg-gallery-image img {
    max-height: 7.1in !important;
  }

  figcaption,
  .kg-card figcaption,
  .kg-image-card figcaption {
    margin-top: 0.06in !important;
    color: #333 !important;
    font-size: 8.5pt !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  iframe,
  video,
  audio,
  canvas,
  object,
  embed {
    display: none !important;
  }

  .mpe-print-embed-note {
    display: block !important;
    margin: 0.14in 0 !important;
    padding: 0.1in 0.12in !important;
    border: 0.7pt solid #999 !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  .mpe-print-canvas-snapshot {
    display: block !important;
  }

  .mpe-print-source {
    display: block !important;
    white-space: pre-line !important;
    margin-top: 0.38in !important;
    padding-top: 0.12in !important;
    border-top: 0.7pt solid #777 !important;
    color: #444 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  html[data-mpe-print-images="off"] .mpe-print-root img,
  html[data-mpe-print-images="off"] .mpe-print-root picture,
  html[data-mpe-print-images="off"] .mpe-print-root svg,
  html[data-mpe-print-images="off"] .mpe-print-root canvas,
  html[data-mpe-print-images="off"] .mpe-print-root video,
  html[data-mpe-print-images="off"] .mpe-print-root audio,
  html[data-mpe-print-images="off"] .mpe-print-root iframe,
  html[data-mpe-print-images="off"] .mpe-print-root object,
  html[data-mpe-print-images="off"] .mpe-print-root embed,
  html[data-mpe-print-images="off"] .mpe-print-root .mpe-print-canvas-snapshot,
  html[data-mpe-print-images="off"] .mpe-print-root .mpe-print-image-figure,
  html[data-mpe-print-images="off"] .mpe-print-root .kg-image-card,
  html[data-mpe-print-images="off"] .mpe-print-root .kg-gallery-card,
  html[data-mpe-print-images="off"] .mpe-print-root .kg-video-card,
  html[data-mpe-print-images="off"] .mpe-print-root .kg-audio-card {
    display: none !important;
  }
}


@media print {
  body.mpe-ludic-audit .gh-content > .mpe-audit-procon-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.12in !important;
    width: 100% !important;
    margin: 0.16in 0 0.22in !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-card {
    border: 0.75pt solid #777 !important;
    border-radius: 7pt !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-card::before {
    height: 2pt !important;
    background: #333 !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-head {
    min-height: 0 !important;
    padding: 0.09in 0.11in 0.07in !important;
    border-bottom: 0.5pt solid #aaa !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-head::before {
    width: 0.2in !important;
    height: 0.2in !important;
    margin-right: 0.06in !important;
    border-color: #777 !important;
    color: #111 !important;
    font-size: 10pt !important;
  }

  body.mpe-ludic-audit .gh-content .mpe-audit-procon-title {
    color: #111 !important;
    font-size: 10pt !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-list {
    padding: 0.03in 0.11in 0.06in !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-item {
    padding: 0.055in 0 0.055in 0.13in !important;
    color: #111 !important;
    font-size: 9pt !important;
    line-height: 1.25 !important;
  }

  body.mpe-ludic-audit .mpe-audit-procon-item::before {
    left: 0.015in !important;
    top: 0.115in !important;
    width: 3.25pt !important;
    height: 3.25pt !important;
    background: #333 !important;
    box-shadow: none !important;
  }

  body.mpe-ludic-audit .mpe-literal-bullet {
    background: #111 !important;
    background-image: none !important;
    color: transparent !important;
    font-size: 0.66em !important;
  }
}

@media print {
  .mpe-table-leaderboard > .mpe-table-scroll,
  .mpe-table-leaderboard > .kg-table-wrapper {
    display: block !important;
  }

  .mpe-table-leaderboard .mpe-leaderboard-mobile {
    display: none !important;
  }
}


/* =====================================================================
   5c. Authoritative table geometry and Ghost edge-mask removal

   This pass intentionally comes last. It owns the table-card wrapper after
   mpe-enhance.js removes Ghost's native kg-table-card class and flattens any
   kg-table-container / kg-table-wrapper layers.
   ===================================================================== */
.gh-content > .mpe-table-card,
.mpe-route-content > .mpe-table-card,
.mpe-glossary-content > .mpe-table-card,
.mpe-archive-intro > .mpe-table-card {
  width: min(100%, 82rem) !important;
  max-width: 100% !important;
  justify-self: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Remove every possible native table scroll fade / mask. The top gold rule is
   retained on the figure itself; no other pseudo-element is allowed. */
.mpe-table-card::after,
.mpe-table-card > div::before,
.mpe-table-card > div::after,
.mpe-table-card .kg-table-container::before,
.mpe-table-card .kg-table-container::after,
.mpe-table-card .kg-table-wrapper::before,
.mpe-table-card .kg-table-wrapper::after,
.mpe-table-card .mpe-table-scroll::before,
.mpe-table-card .mpe-table-scroll::after,
.mpe-table-card th::before,
.mpe-table-card th::after,
.mpe-table-card td::before,
.mpe-table-card td::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

.mpe-table-card,
.mpe-table-card > *,
.mpe-table-card .mpe-table-scroll,
.mpe-table-card table,
.mpe-table-card thead,
.mpe-table-card tbody,
.mpe-table-card tr,
.mpe-table-card th,
.mpe-table-card td {
  -webkit-mask: none !important;
  mask: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: none !important;
}

.mpe-table-card .mpe-table-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mpe-table-card table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Normalized desktop widths by semantic table type. */
.gh-content > .mpe-table-card.mpe-table-scorecard,
.mpe-route-content > .mpe-table-card.mpe-table-scorecard {
  width: min(100%, 52rem) !important;
}

.gh-content > .mpe-table-card.mpe-table-key-value,
.mpe-route-content > .mpe-table-card.mpe-table-key-value {
  width: min(100%, 84rem) !important;
}

.gh-content > .mpe-table-card.mpe-table-matrix,
.mpe-route-content > .mpe-table-card.mpe-table-matrix {
  width: min(100%, 72rem) !important;
}

.gh-content > .mpe-table-card.mpe-table-standard,
.mpe-route-content > .mpe-table-card.mpe-table-standard {
  width: min(100%, 76rem) !important;
}

.gh-content > .mpe-table-card.mpe-table-wide:not(.mpe-table-leaderboard),
.mpe-route-content > .mpe-table-card.mpe-table-wide:not(.mpe-table-leaderboard) {
  width: min(100%, 100rem) !important;
}

.gh-content > .mpe-table-card.mpe-table-leaderboard,
.mpe-route-content > .mpe-table-card.mpe-table-leaderboard {
  width: min(100%, 112rem) !important;
  border-right-color: rgba(238, 240, 244, 0.42);
  border-left-color: rgba(238, 240, 244, 0.42);
  box-shadow:
    inset 1px 0 rgba(238, 240, 244, 0.28),
    inset -1px 0 rgba(238, 240, 244, 0.28),
    0 18px 46px rgba(0, 0, 0, 0.28);
}

/* Compact types never scroll or display overflow affordances. */
.mpe-table-scorecard .mpe-table-scroll,
.mpe-table-key-value .mpe-table-scroll,
.mpe-table-matrix .mpe-table-scroll,
.mpe-table-standard .mpe-table-scroll {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
}

.mpe-table-scorecard.is-scrollable::after,
.mpe-table-key-value.is-scrollable::after,
.mpe-table-matrix.is-scrollable::after,
.mpe-table-standard.is-scrollable::after {
  content: none !important;
  display: none !important;
}

/* Score sheets are compact but never cramped. */
.mpe-table-scorecard th:first-child,
.mpe-table-scorecard td:first-child {
  width: 68% !important;
}

.mpe-table-scorecard th:last-child,
.mpe-table-scorecard td:last-child {
  width: 32% !important;
  min-width: 8rem !important;
}

/* Payoff matrices use even data columns and a slightly stronger row-label
   column, keeping the whole matrix legible without becoming a page-wide strip. */
.mpe-table-matrix table {
  table-layout: fixed !important;
}

.mpe-table-matrix th:first-child,
.mpe-table-matrix td:first-child {
  width: 32% !important;
  font-weight: 750;
}

.mpe-table-matrix th:not(:first-child),
.mpe-table-matrix td:not(:first-child) {
  width: 34% !important;
}

@media (max-width: 767px) {
  .gh-content > .mpe-table-card,
  .mpe-route-content > .mpe-table-card,
  .mpe-glossary-content > .mpe-table-card,
  .mpe-archive-intro > .mpe-table-card,
  .gh-content > .mpe-table-card.mpe-table-scorecard,
  .gh-content > .mpe-table-card.mpe-table-key-value,
  .gh-content > .mpe-table-card.mpe-table-matrix,
  .gh-content > .mpe-table-card.mpe-table-standard,
  .gh-content > .mpe-table-card.mpe-table-wide,
  .gh-content > .mpe-table-card.mpe-table-leaderboard {
    grid-column: full !important;
    width: auto !important;
    max-width: none !important;
    margin-right: var(--gap, 2rem) !important;
    margin-left: var(--gap, 2rem) !important;
    justify-self: stretch !important;
  }

  .mpe-table-scorecard th:first-child,
  .mpe-table-scorecard td:first-child {
    width: 66% !important;
  }

  .mpe-table-scorecard th:last-child,
  .mpe-table-scorecard td:last-child {
    width: 34% !important;
    min-width: 7.2rem !important;
  }

  .mpe-table-matrix .mpe-table-scroll {
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
  }

  .mpe-table-matrix table {
    min-width: 62rem !important;
  }
}

@media print {
  .mpe-table-card table {
    min-width: 0 !important;
  }
}


/* Final cell/table reset: Ghost's card assets apply white scroll-edge gradients
   directly to the first and last cells and set content tables to display:block.
   Those two rules caused both the white rails and the empty card backdrops. */
.mpe-table-card table {
  display: table !important;
  overflow: visible !important;
  background: transparent !important;
}

.mpe-table-card th,
.mpe-table-card td {
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: auto !important;
}

/* Restore our intended row colors after removing Ghost's background shorthand. */
.mpe-table-card thead th,
.mpe-table-card tr:first-child > th {
  background-color: rgba(238, 198, 67, 0.16) !important;
}

html[data-color-scheme="dark"] .mpe-table-card thead th,
html[data-color-scheme="dark"] .mpe-table-card tr:first-child > th {
  background-color: rgba(238, 198, 67, 0.12) !important;
}

.mpe-table-card tbody tr:nth-child(even) > td {
  background-color: var(--mpe-table-stripe) !important;
}

.mpe-table-key-value tbody td:first-child {
  background-color: var(--mpe-table-key) !important;
}

@media (max-width: 767px) {
  /* Definition tables retain their deliberate stacked mobile presentation. */
  .mpe-table-key-value table,
  .mpe-table-key-value tbody,
  .mpe-table-key-value tr,
  .mpe-table-key-value td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .mpe-table-key-value td:first-child,
  .mpe-table-key-value td:last-child {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  /* Use one mobile leaderboard renderer only. The generated result cards are
     clearer than the semantic four-column table at phone widths. */
  .mpe-table-leaderboard > .mpe-table-scroll {
    display: none !important;
  }

  .mpe-table-leaderboard > .mpe-leaderboard-mobile {
    display: block !important;
    width: 100% !important;
  }
}

/* MPE fix: Ghost bookmark/link cards on the dark site need explicit light-card text colors. */
.gh-content .kg-bookmark-card a.kg-bookmark-container,
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover,
.gh-content .kg-bookmark-card .kg-bookmark-container,
.kg-bookmark-card a.kg-bookmark-container,
.kg-bookmark-card a.kg-bookmark-container:hover,
.kg-bookmark-card .kg-bookmark-container {
  background: #ffffff !important;
  color: #111318 !important;
  opacity: 1 !important;
}

.gh-content .kg-bookmark-card .kg-bookmark-content,
.gh-content .kg-bookmark-card .kg-bookmark-title,
.gh-content .kg-bookmark-card .kg-bookmark-description,
.gh-content .kg-bookmark-card .kg-bookmark-metadata,
.gh-content .kg-bookmark-card .kg-bookmark-author,
.gh-content .kg-bookmark-card .kg-bookmark-publisher,
.kg-bookmark-card .kg-bookmark-content,
.kg-bookmark-card .kg-bookmark-title,
.kg-bookmark-card .kg-bookmark-description,
.kg-bookmark-card .kg-bookmark-metadata,
.kg-bookmark-card .kg-bookmark-author,
.kg-bookmark-card .kg-bookmark-publisher {
  color: #111318 !important;
}

.gh-content .kg-bookmark-card .kg-bookmark-description,
.kg-bookmark-card .kg-bookmark-description {
  color: #3a3f47 !important;
}

.gh-content .kg-bookmark-card .kg-bookmark-metadata,
.gh-content .kg-bookmark-card .kg-bookmark-metadata span,
.kg-bookmark-card .kg-bookmark-metadata,
.kg-bookmark-card .kg-bookmark-metadata span {
  color: #59606b !important;
}

.gh-content .kg-bookmark-card .kg-bookmark-title,
.kg-bookmark-card .kg-bookmark-title {
  font-weight: 700 !important;
}

/* ---------------------------------------------------------------------
   Global post-bottom frame normalization.
   Keeps Latest/related sections in the same centered content band as
   Concepts & Topics instead of stretching full viewport width.
   --------------------------------------------------------------------- */
.post-template .gh-read-next:not(.gh-comments) {
  width: min(100% - 32px, var(--content-width, 720px));
  max-width: var(--content-width, 720px);
  margin-left: auto;
  margin-right: auto;
}
.post-template .gh-read-next:not(.gh-comments) .gh-pagehead,
.post-template .gh-read-next:not(.gh-comments) .gh-topic {
  max-width: 100%;
}

/* Reinforced global related-posts normalization: keep Latest in the same
   centered content band as Concepts & Topics, not a viewport-wide frame. */
.post-template .gh-read-next:not(.gh-comments).gh-canvas {
  display: block;
}
.post-template .gh-read-next:not(.gh-comments) {
  width: min(100% - 32px, var(--content-width, 720px));
  max-width: var(--content-width, 720px);
  margin-left: auto;
  margin-right: auto;
}
.post-template .gh-read-next:not(.gh-comments) .gh-pagehead,
.post-template .gh-read-next:not(.gh-comments) .gh-topic,
.post-template .gh-read-next:not(.gh-comments) .gh-topic-content {
  max-width: 100%;
}

/* ---------------------------------------------------------------------
   Native post comments frame.
   Ghost's embedded comment UI can otherwise read as a plain white slab at
   the bottom of posts. Keep the section in the article band and give it the
   same quiet paper/card treatment as the rest of the site.
   --------------------------------------------------------------------- */
.post-template .gh-comments.gh-canvas {
  display: block;
}

.post-template .gh-comments {
  box-sizing: border-box;
  width: min(100% - 32px, var(--content-width, 720px));
  max-width: min(900px, calc(100vw - 32px));
  margin: clamp(5.2rem, 8vw, 7.6rem) auto 0;
  padding: clamp(2rem, 4vw, 3.2rem);
  color: #1d2127;
  border: 1px solid rgba(21, 23, 26, .10);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(243, 239, 228, .96)),
    repeating-linear-gradient(90deg, rgba(21,23,26,.025) 0 1px, transparent 1px 22px);
  box-shadow: 0 18px 40px rgba(21, 23, 26, .08);
  overflow: hidden;
}

.post-template .gh-comments .gh-pagehead {
  margin: 0 0 1.8rem;
  padding: 0;
}

.post-template .gh-comments iframe,
.post-template .gh-comments [data-ghost-comments] {
  max-width: 100%;
  border-radius: 8px;
  background: rgba(246, 244, 238, .72);
}

html[data-color-scheme="dark"] .post-template .gh-comments {
  color: rgb(242, 244, 248);
  border-color: rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(32, 36, 43, .94), rgba(20, 23, 28, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 22px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

html[data-color-scheme="dark"] .post-template .gh-comments iframe,
html[data-color-scheme="dark"] .post-template .gh-comments [data-ghost-comments] {
  background: rgba(23, 26, 33, .78);
}
