mark.dm-editor-highlight {
  background: #ffeb8a;
  color: #172033;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[data-dm-theme="dark"] mark.dm-editor-highlight { background: #746020; color: #fff9df; }
html[data-dm-article-highlights="off"]:not(.dm-blog-editing) mark.dm-editor-highlight { background: transparent; color: inherit; }

.dm-article-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #e7ebf0;
  color: #394454;
}

.dm-actions-group { display: flex; align-items: center; gap: 14px; }
.dm-actions-group:last-of-type { gap: 18px; }
.dm-action-wrap { position: relative; }
.dm-highlight-wrap { display: inline-flex; align-items: center; }
.dm-action.dm-highlight-toggle { gap: 4px; font-size: 13px; white-space: nowrap; }
.dm-action.dm-highlight-copy, .dm-action.dm-markdown-download { gap: 2px; padding-inline: 3px; color: #315c9d; font-size: 12px; white-space: nowrap; }
.dm-action.dm-highlight-copy svg { width: 16px; height: 16px; }
.dm-action.dm-highlight-copy[hidden], .dm-action.dm-markdown-download[hidden] { display: none; }
html[data-dm-theme="dark"] :is(.dm-action.dm-highlight-copy, .dm-action.dm-markdown-download) { color: #a9cbff; }
.dm-highlight-help-wrap { position: relative; display: inline-flex; }
.dm-highlight-help { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 36px; padding: 0; border: 0; background: transparent; color: #78879b; cursor: pointer; }
.dm-highlight-help span { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; font: 700 11px/1 sans-serif; }
.dm-highlight-help:hover { color: #2563eb; }
.dm-highlight-help:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; border-radius: 5px; }
.dm-highlight-tooltip { position: absolute; z-index: 30; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); box-sizing: border-box; width: 220px; max-width: calc(100vw - 32px); padding: 11px 14px; border: 1px solid #dce5f0; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(25, 48, 78, .12); color: #273b58; font-size: 13px; font-weight: 600; line-height: 1.55; text-align: left; word-break: keep-all; }
.dm-highlight-tooltip::before { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 7px; }
.dm-highlight-tooltip::after { content: ""; position: absolute; top: calc(100% - 4px); left: 50%; width: 8px; height: 8px; border-right: 1px solid #dce5f0; border-bottom: 1px solid #dce5f0; background: inherit; transform: translateX(-50%) rotate(45deg); }
.dm-highlight-tooltip[hidden] { display: none; }
html[data-dm-theme="dark"] .dm-highlight-tooltip { border-color: #526b8a; background: #213047; color: #e6efff; }
html[data-dm-theme="dark"] .dm-highlight-tooltip::after { border-color: #526b8a; }
.dm-highlight-state { padding: 3px 4px; border-radius: 4px; background: #e7ecf3; color: #64748b; font-size: 10px; font-weight: 800; line-height: 1; }
.dm-highlight-toggle[aria-checked="true"] .dm-highlight-state { background: #fff0b7; color: #74520a; }
html[data-dm-theme="dark"] .dm-highlight-state { background: #344963; color: #c7d4e4; }
html[data-dm-theme="dark"] .dm-highlight-toggle[aria-checked="true"] .dm-highlight-state { background: #6d5720; color: #fff2b3; }
.dm-speech-wrap { position: static; display: flex; align-items: center; gap: 4px; }
.dm-speech-start { color: #1d4ed8; font-weight: 700; white-space: nowrap; }
.dm-speech-info { color: #64748b; font-size: 12px; font-weight: 400; }
.dm-speech-settings { color: #64748b; font-size: 17px; }
.dm-speech-settings[hidden] { display: none; }
.dm-speech-player {
  position: fixed; z-index: 150; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; width: min(540px, calc(100% - 28px));
  padding: 10px 12px; box-sizing: border-box; background: #fff; border: 1px solid #d9e4f3;
  border-radius: 14px; box-shadow: 0 8px 30px rgba(15, 23, 42, .18); color: #14243b;
}
.dm-speech-player[hidden] { display: none; }
.dm-speech-player button { flex: none; width: 38px; height: 38px; border: 0; border-radius: 9px; background: #edf4ff; color: #1d4ed8; font: inherit; font-weight: 700; cursor: pointer; }
.dm-speech-player button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dm-end-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #e7ebf0; }
.dm-related-posts { position: static; display: block; width: auto; max-width: none; margin: 36px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid #e7ebf0; background: transparent; box-shadow: none; }
/* The article's sources stay available to direct links and remain readable without JavaScript. */
.dm-references-disclosure > summary { cursor: pointer; list-style: none; }
.dm-references-disclosure > summary::-webkit-details-marker { display: none; }
:is(article, main) .dm-references-disclosure > summary > :is(h2, h3) { display: flex; align-items: center; gap: .35em; margin: 0 !important; padding: 0 !important; color: inherit; font-size: 17px !important; line-height: 1.5 !important; }
.dm-references-count { color: #64748b; font-size: 14px; font-weight: 500; }
.dm-references-action { margin-left: auto; color: #315fb8; font-size: 14px; font-weight: 600; }
.dm-references-disclosure > summary > :is(h2, h3)::after { content: '▾'; color: #315fb8; font-size: 14px; }
.dm-references-disclosure[open] > summary > :is(h2, h3)::after { content: '▴'; }
.dm-references-disclosure > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; border-radius: 3px; }
.dm-references-disclosure[open] > summary { margin-bottom: 14px; }
.dm-references-disclosure .sources-box > strong:first-child { display: none; }
.dm-references-disclosure [id] { scroll-margin-top: 90px; }
html[data-dm-theme="dark"] .dm-references-count { color: #b6c4d7; }
html[data-dm-theme="dark"] .dm-references-action,
html[data-dm-theme="dark"] .dm-references-disclosure > summary > :is(h2, h3)::after { color: #a8c8ff; }
:is(article, main, .article) .dm-related-posts h2 { margin: 0 0 16px; padding: 0; border: 0; color: #172b4d; font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: -.02em; }
.dm-related-posts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.dm-related-posts li { min-width: 0; margin: 0; padding: 0; border: 0; }
:is(article, main, .article) .dm-related-posts a { display: block; min-width: 0; padding: 0; color: #243651; font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.dm-related-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #f4f7fb; }
.dm-related-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-width: 0; margin-top: 9px; }
.dm-related-copy { display: block; min-width: 0; }
.dm-related-date { display: block; margin-top: 4px; color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.4; }
.dm-related-posts a:hover { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }
.dm-related-posts a:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 3px; }
html[data-dm-theme="dark"] .dm-related-posts { border-color: #40516a; }
html[data-dm-theme="dark"] .dm-related-posts h2 { color: #f0f5fd; }
html[data-dm-theme="dark"] .dm-related-posts a { color: #c8dcff; }
html[data-dm-theme="dark"] .dm-related-posts .dm-related-date { color: #b6c4d7; }

/* Series navigation uses the same editable thumbnail as the article and list. */
.dm-series-episodes { margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid #e7ebf0; }
:is(article, main, .article) .dm-series-episodes > .dm-series-heading { margin: 0 0 17px; padding: 0; border: 0; color: #102548; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.04em; }
.dm-series-related-tabs { margin: 36px 0 0; }
.dm-reading-tabs { display: flex; gap: 26px; border-bottom: 1px solid #e4eaf3; }
.dm-reading-tab { position: relative; min-height: 48px; margin: 0; padding: 0 0 13px; border: 0; background: transparent; color: #75859a; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.04em; text-align: left; white-space: nowrap; cursor: pointer; }
.dm-reading-tab[aria-selected="true"] { color: #1d4ed8; }
.dm-reading-tab[aria-selected="true"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: #2563eb; }
.dm-reading-tab:hover { color: #2457bf; }
.dm-reading-tab:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 3px; }
.dm-series-related-tabs > :is(.dm-series-episodes, .dm-related-posts) { margin: 0; padding: 18px 0 0; border: 0; }
.dm-series-related-tabs > :is(.dm-series-episodes, .dm-related-posts)[hidden] { display: none; }
.dm-series-related-tabs > .dm-series-episodes > .dm-series-heading,
.dm-series-related-tabs > .dm-related-posts > h2 { display: none; }
.dm-series-related-tabs > .dm-related-posts::before { display: none; }
.dm-series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 14px; margin: 0; padding: 0; list-style: none; }
.dm-series-item { min-width: 0; margin: 0; padding: 0; }
:is(article, main, .article) .dm-series-card { display: block; min-width: 0; padding: 5px; margin: -5px; border: 1.5px solid transparent; border-radius: 11px; color: #142b4b; text-decoration: none; }
:is(article, main, .article) .dm-series-card:hover { background: #f7faff; text-decoration: none; }
:is(article, main, .article) .dm-series-card:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
:is(article, main, .article) .dm-series-card.dm-series-current { border-color: #2861e9; background: #f4f8ff; }
.dm-series-meta { display: flex; align-items: center; gap: 6px; margin: 9px 0 5px; color: #697c96; font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; }
.dm-series-current-badge { padding: 3px 5px; border-radius: 4px; background: #e2ecff; color: #245bd0; font-size: 10px; letter-spacing: 0; }
.dm-series-title { display: block; color: #142b4b; font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
html[data-dm-theme="dark"] .dm-series-episodes { border-color: #40516a; }
html[data-dm-theme="dark"] :is(article, main, .article) .dm-series-episodes > .dm-series-heading { color: #f0f5fd; }
html[data-dm-theme="dark"] .dm-reading-tabs { border-color: #40516a; }
html[data-dm-theme="dark"] .dm-reading-tab { color: #b6c4d7; }
html[data-dm-theme="dark"] .dm-reading-tab[aria-selected="true"] { color: #a8c7ff; }
html[data-dm-theme="dark"] .dm-reading-tab[aria-selected="true"]::after { background: #8fb8ff; }
html[data-dm-theme="dark"] .dm-reading-tab:hover { color: #d9e8ff; }
html[data-dm-theme="dark"] .dm-series-meta { color: #b6c4d7; }
html[data-dm-theme="dark"] .dm-series-title { color: #e6efff; }
html[data-dm-theme="dark"] :is(article, main, .article) .dm-series-card:hover { background: #263952; }
html[data-dm-theme="dark"] :is(article, main, .article) .dm-series-card.dm-series-current { border-color: #7aa7ed; background: #203653; }
html[data-dm-theme="dark"] .dm-series-current-badge { background: #365889; color: #edf4ff; }
@media (max-width: 800px) {
  .dm-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  :is(article, main, .article) .dm-series-episodes > .dm-series-heading { font-size: 18px; }
  .dm-reading-tabs { gap: 20px; }
  .dm-reading-tab { font-size: 14px; }
}
@media (max-width: 350px) {
  .dm-reading-tabs { gap: 14px; }
  .dm-reading-tab { font-size: 13px; }
}
/* The salary calculator lives inside an article with its own heading and link styles. */
#dm-income-2026 .dm-related-posts { margin-bottom: 44px; }
#dm-income-2026 .dm-related-posts h2 { margin: 0 0 16px; color: #172b4d; font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: -.02em; }
#dm-income-2026 .dm-related-posts a { color: #243651; font-size: 15px; }
html[data-dm-theme="dark"] #dm-income-2026 .dm-related-posts h2 { color: #f0f5fd; }
html[data-dm-theme="dark"] body article.dm-post #dm-income-2026 .dm-related-posts a { color: #c8dcff; }
@media (max-width: 560px) {
  .dm-related-posts ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  :is(article, main, .article) .dm-related-posts a { display: grid; grid-template-columns: minmax(88px, 34%) minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14px; }
  #dm-income-2026 .dm-related-posts a { font-size: 14px; }
  .dm-related-title { margin-top: 0; }
}
.dm-end-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 17px; border: 1px solid #d8e2ef; border-radius: 9px; background: #fff; color: #334a6c; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.dm-end-action svg { width: 20px; height: 20px; }
.dm-end-action:hover, .dm-end-action[aria-pressed="true"] { border-color: #9bbcf3; background: #f0f6ff; color: #1d4ed8; }
.dm-end-action:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dm-end-action:disabled { opacity: .55; cursor: wait; }
.dm-end-status { flex-basis: 100%; color: #52647c; font-size: 13px; text-align: center; }
.dm-end-status:empty { display: none; }
body .dm-end-actions a.dm-end-inquiry { flex: 0 0 100%; display: block; padding: 10px 0; color: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.dm-end-inquiry:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.dm-feedback { margin: 24px auto 0; padding: 20px 22px; max-width: 540px; box-sizing: border-box; border: 1px solid #e2e9f2; border-radius: 12px; background: #f8fafc; color: #263c5b; }
.dm-feedback #dm-feedback-title { margin: 0 0 12px; color: #172f50; font-size: 16px; line-height: 1.4; }
.dm-feedback-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-feedback-choices button, .dm-feedback-form button { min-height: 40px; padding: 0 13px; border: 1px solid #d8e2ef; border-radius: 8px; background: #fff; color: #334a6c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dm-feedback-choices button[aria-pressed="true"] { border-color: #7aa7ed; background: #eaf2ff; color: #1d4ed8; }
.dm-feedback button:focus-visible, .dm-feedback textarea:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dm-feedback button:disabled { opacity: .55; cursor: wait; }
.dm-feedback .dm-feedback-status { margin: 10px 0 0; color: #2563a7; font-size: 13px !important; line-height: 1.5; text-align: left; }
.dm-feedback-status:empty { display: none; }
.dm-feedback-form { display: grid; gap: 8px; margin-top: 16px; }
.dm-feedback-form[hidden] { display: none; }
.dm-feedback-form label { color: #334a6c; font-size: 13px; font-weight: 700; }
.dm-feedback-form label span, .dm-feedback-form-footer span { color: #64748b; font-size: 12px; font-weight: 400; }
.dm-feedback-form textarea { width: 100%; box-sizing: border-box; min-height: 76px; padding: 10px 12px; border: 1px solid #cbd8e8; border-radius: 8px; background: #fff; color: #263c5b; font: inherit; font-size: 14px; resize: vertical; }
.dm-feedback-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dm-feedback-form button { border-color: #2563eb; background: #2563eb; color: #fff; }
.dm-player-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.dm-player-text strong { font-size: 13px; }
.dm-player-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #64748b; font-size: 12px; }
.dm-player-time { flex: none; color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.dm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 28px;
  min-height: 36px;
  padding: 4px 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.dm-action svg { display: block; flex: none; width: 22px; height: 22px; }
.dm-action:hover, .dm-action[aria-pressed="true"] { color: #2563eb; }
.dm-action:focus-visible, .dm-font-menu button:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.dm-action:disabled { color: #a4aab2; cursor: not-allowed; }
.dm-action-count:empty { display: none; }
.dm-font-icon { font-size: 16px; font-weight: 500; letter-spacing: -.12em; white-space: nowrap; }
.dm-font-icon strong { font-size: 20px; font-weight: 600; }
.dm-font-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: -48px;
  min-width: 160px;
  padding: 10px;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
.dm-font-menu[hidden] { display: none; }
.dm-font-menu p { margin: 2px 4px 8px; color: #475569; font-size: 13px; }
.dm-font-options { display: flex; gap: 4px; }
.dm-font-options button { flex: 1; min-height: 34px; border: 1px solid #e1e7ef; border-radius: 7px; background: #fff; color: #334155; cursor: pointer; }
.dm-font-options button[aria-pressed="true"] { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.dm-speech-menu {
  position: absolute;
  z-index: 21;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  box-sizing: border-box;
  color: #182338;
}
.dm-speech-menu[hidden] { display: none; }
.dm-speech-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-speech-heading strong { font-size: 16px; }
.dm-speech-heading button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #667386; font: inherit; font-size: 23px; cursor: pointer; }
.dm-speech-speeds { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; padding: 0; border: 0; }
.dm-speech-speeds legend { margin-bottom: 8px; color: #667386; font-size: 13px; font-weight: 600; }
.dm-speech-speeds label { display: inline-flex; align-items: center; gap: 5px; color: #27374e; font-size: 14px; cursor: pointer; }
.dm-speech-speeds input { accent-color: #2563eb; }
.dm-speech-follow { display: flex; align-items: center; gap: 7px; margin: 0 0 15px; color: #27374e; font-size: 14px; cursor: pointer; }
.dm-speech-follow input { accent-color: #2563eb; }
.dm-speech-play { width: 100%; min-height: 42px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dm-speech-play:disabled { opacity: .55; cursor: wait; }
.dm-speech-menu :is(button, input):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dm-article-actions .dm-speech-feedback { margin: 9px 0 0; color: #667386; font-size: 12px; line-height: 1.45; }
.dm-speech-feedback:empty { display: none; }
::highlight(dm-speech-reading) { background-color: #fff0a6; }
mark.dm-speech-reading { background-color: #fff0a6; color: inherit; }
.dm-actions-status { position: absolute; z-index: 25; top: calc(100% + 5px); right: 0; padding: 7px 10px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; color: #334155; font-size: 13px; font-weight: 400; line-height: 1.4; box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.dm-actions-status:empty { display: none; }
.dm-comments { margin-top: 48px; padding-top: 26px; border-top: 1px solid #e7ebf0; font-size: 14px; line-height: 1.5; scroll-margin-top: 120px; }
.dm-comments h2 { margin: 0 0 16px; color: #101319; font-size: 21px; line-height: 1.4; }
.dm-comments-count { color: #2563eb; }
.dm-comments .dm-comment-list, .dm-comments .dm-comment-replies { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dm-comments .dm-comment-item { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; margin: 0; padding: 20px 0; border-bottom: 1px solid #edf0f4; }
.dm-comment-avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #eaf1ff; color: #2563eb; font-size: 15px; font-weight: 700; }
.dm-comment-content { min-width: 0; }
.dm-comment-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #7a8491; font-size: 12px; }
.dm-comment-meta strong { color: #1d4ed8; font-size: 14px; }
.dm-comments .dm-comment-text { margin: 8px 0 10px; color: #283547; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-comment-controls { display: flex; align-items: center; gap: 7px; }
.dm-comment-controls button, .dm-comment-delete, .dm-comment-cancel { padding: 3px 4px; border: 0; background: transparent; color: #667386; font: inherit; font-size: 13px; cursor: pointer; }
.dm-comment-controls button[aria-pressed="true"] { color: #2563eb; }
.dm-comment-controls .dm-comment-vote { font-size: 21px; line-height: 1; }
.dm-comment-score { min-width: 15px; text-align: center; color: #2563eb; font-size: 13px; }
.dm-comment-delete { margin-left: auto; }
.dm-comments .dm-comment-replies .dm-comment-item { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 16px 0 0; border: 0; }
.dm-comment-replies .dm-comment-avatar { width: 32px; height: 32px; font-size: 13px; }
.dm-comments .dm-comment-empty { margin: 0; padding: 4px 0; color: #7a8491; font-size: 14px; line-height: 1.5; }
.dm-comment-form { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border: 1px solid #e0e6ef; border-radius: 14px; background: #f8fafc; }
.dm-comment-form label { color: #4b5563; font-size: 13px; font-weight: 600; }
.dm-comment-form input, .dm-comment-form textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; color: #182338; font: inherit; font-size: 14px; }
.dm-comment-form .dm-comment-private { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 42px; line-height: 1.4; cursor: pointer; }
.dm-comment-form .dm-comment-private input { flex: none; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #2563eb; }
.dm-comment-form textarea { min-height: 110px; resize: vertical; }
.dm-comment-input-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.dm-comment-name-field { display: grid; gap: 6px; min-width: 0; }
.dm-comment-name-field input { min-height: 42px; }
.dm-comment-guidance { display: grid; gap: 4px; padding-top: 2px; }
.dm-comment-form input:focus-visible, .dm-comment-form textarea:focus-visible, .dm-comment-controls button:focus-visible, .dm-comment-form button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dm-comment-submit, .dm-comment-more, .dm-comment-retry { padding: 10px 15px; border: 0; border-radius: 9px; background: #2563eb; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dm-comment-submit { min-height: 42px; }
.dm-comment-submit:disabled { opacity: .5; cursor: wait; }
.dm-comment-more, .dm-comment-retry { margin-top: 14px; border: 1px solid #dce3ec; background: #fff; color: #475569; }
.dm-comment-more[hidden], .dm-comment-retry[hidden], .dm-comment-reply-context[hidden] { display: none; }
.dm-comment-reply-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #2563eb; font-size: 13px; }
.dm-comments .dm-comment-policy, .dm-comments .dm-comment-notice, .dm-comments .dm-comment-verification-notice { margin: 0; color: #667386; font-size: 13px; line-height: 1.5; }
.dm-comments :is(.dm-comment-notice, .dm-comment-verification-notice):empty { display: none; }
.dm-comment-verification[hidden] { display: none; }
@media (max-width: 560px) {
  .dm-article-actions { gap: 8px; margin-top: 14px; padding-top: 10px; }
  .dm-actions-group, .dm-actions-group:last-of-type { gap: 4px; }
  .dm-speech-wrap { gap: 0; }
  .dm-speech-info { display: none; }
  .dm-action.dm-highlight-toggle { font-size: 12px; gap: 3px; }
  .dm-speech-start { font-size: 13px; gap: 3px; }
  .dm-speech-player { bottom: max(10px, env(safe-area-inset-bottom)); }
  .dm-action { min-width: 26px; min-height: 36px; font-size: 14px; }
  .dm-action svg { width: 21px; height: 21px; }
  .dm-font-menu { right: -72px; }
  .dm-comment-form { padding: 14px; }
  .dm-comment-input-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .dm-comment-name-field { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .dm-article-actions { flex-wrap: wrap; gap: 4px; }
  .dm-actions-group, .dm-actions-group:last-of-type { gap: 0; }
  .dm-actions-group:last-of-type { margin-left: auto; }
}
@media (max-width: 360px) {
  .dm-actions-admin .dm-action { min-width: 23px; }
  .dm-actions-admin .dm-action svg { width: 19px; height: 19px; }
  .dm-actions-admin .dm-highlight-help { width: 20px; }
  .dm-actions-admin .dm-action.dm-highlight-copy, .dm-actions-admin .dm-action.dm-markdown-download { min-width: 0; padding-inline: 1px; font-size: 11px; }
  .dm-actions-admin .dm-speech-start { gap: 1px; font-size: 12px; }
  .dm-feedback { padding: 16px 13px; }
  .dm-feedback-choices { gap: 4px; }
  .dm-feedback-choices button { padding: 0 7px; font-size: 12px; }
  .dm-highlight-state { padding: 3px; font-size: 9px; }
  .dm-comment-input-row { grid-template-columns: minmax(0, 1fr); }
  .dm-comment-name-field { grid-column: auto; }
  .dm-comment-form .dm-comment-private { min-height: 0; }
  .dm-comment-submit { width: 100%; }
}
@page { margin: 15mm; }

@media print {
  .dm-speech-player { display: none !important; }
  /* Only the title and article body belong on paper, including on pages whose
     title and body use different wrappers. This also excludes floating overlays. */
  [data-dm-print-path] > :not([data-dm-print-path]):not([data-dm-print-content]) {
    display: none !important;
  }
  [data-dm-print-path], [data-dm-print-content] {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .dm-article-heading[data-dm-print-content] { margin-bottom: 24px !important; }
  .dm-article-actions, .dm-end-actions, .dm-related-posts, .dm-series-episodes, .dm-series-related-tabs, .dm-feedback, .dm-comments, .dm-article-thumbnail,
  [data-dm-print-content] .toc,
  [data-dm-print-content] .yt-embed,
  [data-dm-print-content] .video,
  [data-dm-print-content] .video-wrap,
  [data-dm-print-content] .video-box,
  [data-dm-print-content] .video-embed,
  [data-dm-print-content] iframe { display: none !important; }
  [data-dm-print-content] :is(h1, h2, h3, h4) {
    break-after: avoid-page;
    page-break-after: avoid;
  }
  [data-dm-print-content] .source-citation {
    break-after: avoid-page;
    page-break-after: avoid;
  }
  [data-dm-print-content] :is(table, tr, figure, blockquote) {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
  [data-dm-print-content] :is(p, li) { orphans: 3; widows: 3; }
  [data-dm-print-content] img { max-width: 100% !important; height: auto !important; }
  .source-figure.source-excerpt .source-view,
  .source-figure.source-excerpt .source-scroll { overflow: visible !important; }
  .source-figure.source-excerpt .source-view img,
  .source-figure.source-excerpt .source-scroll img {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Show the original site introduction above each article's comments. */
.dm-author-note { box-sizing: border-box; margin: 42px 0 28px; padding: 24px; border: 1px solid #dfeaf8; border-radius: 14px; background: #f3f7fc; color: inherit; }
.dm-author-note h2 { margin: 0 0 12px !important; padding: 0 !important; font-size: 20px !important; font-weight: 700; line-height: 1.4; }
:is(article, main, .article) .dm-author-note p { margin: 0; color: inherit; font-size: 17px !important; line-height: 27px !important; text-align: justify; word-break: normal !important; }
:is(article, main, .article) .dm-author-note .dm-about-signature { margin-top: 12px; color: #526b8b; font-size: 14px !important; font-weight: 700; text-align: right; }
html[data-dm-theme="dark"] .dm-author-note { background: #24364b; border-color: #405b7b; color: #e7edf7; }
html[data-dm-theme="dark"] .dm-author-note { background: #272727; border-color: #505050; color: #f0f0f0; }
@media (max-width: 600px) { .dm-author-note { margin-top: 32px; } }

@media screen and (max-width: 560px) {
  :root { --dm-mobile-section-divider: #edf0f4; }
  :root[data-dm-theme="dark"] { --dm-mobile-section-divider: #2a394d; }
  :is(.dm-related-posts, .dm-end-actions, .dm-author-note, .dm-comments) { position: relative; }
  :is(.dm-related-posts, .dm-end-actions, .dm-comments) { border-top: 0; }
  :is(.dm-related-posts, .dm-end-actions, .dm-author-note, .dm-comments)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 8px;
    transform: translateX(-50%);
    background: var(--dm-mobile-section-divider);
    pointer-events: none;
  }
  .dm-author-note::before { top: -20px; }
}
.dm-lab-invite{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:32px 0 20px;padding:20px 22px;background:#f1f6ff;border:1px solid #d5e4fa;border-radius:12px}.dm-lab-invite strong{display:block;color:#173867;font-size:16px}.dm-lab-invite p{margin:6px 0 0;color:#617995;font-size:13px;line-height:1.6}.dm-lab-invite a{flex:none;color:#245dce;font-size:13px;font-weight:700;text-decoration:none}html[data-dm-theme="dark"] .dm-lab-invite{background:#22364f;border-color:#40516a}html[data-dm-theme="dark"] .dm-lab-invite strong{color:#e7edf7}html[data-dm-theme="dark"] .dm-lab-invite p{color:#b6c4d7}html[data-dm-theme="dark"] .dm-lab-invite a{color:#a5c2ff}@media(max-width:560px){.dm-lab-invite{display:block;padding:17px}.dm-lab-invite a{display:inline-block;margin-top:10px}}

/* A quiet in-article link, generated only when the topics genuinely overlap. */
:is(article,main,.article) p.dm-context-link{margin:0 0 1.3em;color:#526b8b;font-size:14px;line-height:1.6;text-align:left;word-break:normal}
.dm-context-link span{font-weight:700;margin-right:.35em}
.dm-context-link a{color:#245dce;text-decoration:underline;text-underline-offset:3px}
html[data-dm-theme="dark"] .dm-context-link{color:#bdcbe0}
html[data-dm-theme="dark"] .dm-context-link a{color:#a5c2ff}
