/* Public blog only. Keep the existing white theme, SVG catalogue and article renderer. */
html[data-width="narrow"] { --rightbar: 280px; }
html[data-width="normal"] { --rightbar: 300px; }
html[data-width="wide"] { --rightbar: 320px; }
html[data-rightbar="hide"] { --rightbar: 0px; }
.ml-layout { --contentGap: 32px; }
.ml-rightbar {
  width: 100%; min-width: 0; gap: 28px; padding-left: 22px;
  top: calc(var(--header) + 24px);
}
.ml-rightbar .ml-widget-title { gap: 10px; margin: 0 0 16px; }
.ml-rightbar .ml-widget-title :is(h2, h3) {
  margin: 0; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.5;
  color: var(--text);
}
.ml-popular {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  margin: 0; padding: 0; list-style: none;
}
.ml-popular > li { min-width: 0; margin: 0; padding: 0; }
.ml-popular .ml-popular-item {
  display: block; margin: 0; padding: 14px 0;
  border-bottom: 1px solid var(--line); min-height: 44px;
}
.ml-popular > li:first-child .ml-popular-item { padding-top: 0; }
.ml-popular > li:last-child .ml-popular-item { border-bottom: 0; padding-bottom: 0; }
.ml-popular .ml-popular-text {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start;
}
.ml-popular-text > div { display: grid; min-width: 0; gap: 6px; }
.mh-popular-rank {
  font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ml-popular .ml-popular-text strong {
  display: block; margin: 0; font-family: inherit; font-size: 14px; font-weight: 600;
  line-height: 1.5; color: var(--text); overflow-wrap: anywhere;
}
.ml-popular .ml-popular-text small {
  display: block; font-size: 11px; line-height: 1.55; color: var(--muted);
  overflow-wrap: anywhere;
}
.ml-popular-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ml-rightbar .ml-labels { gap: 8px; }
.ml-rightbar .ml-labels a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  padding: 7px 10px; line-height: 1.5;
}
.ml-content .ml-grid.listing { gap: 28px 24px; }
.ml-content .ml-card-img { aspect-ratio: 16 / 9; }
.ml-content .ml-card-body { padding-top: 12px; }
.ml-content .ml-card-body h3 {
  font-family: inherit; font-size: 18px; line-height: 1.45; font-weight: 600;
  margin: 8px 0; overflow-wrap: anywhere;
}
.ml-content .ml-card-body p { font-size: 14px; line-height: 1.65; }
.ml-content .ml-card-body .ml-meta { margin: 10px 0 0; gap: 4px 12px; }
.ml-content .ml-card-body .ml-meta small { font-size: 11px; line-height: 1.6; }
.ml-layout :is(.ml-card-img, .ml-card-body a, .ml-section-title > a, .ml-popular-item, .ml-labels a):focus-visible {
  outline: 2px solid var(--text); outline-offset: 4px; border-radius: 3px;
}
@media (max-width: 1100px) {
  .ml-rightbar { position: static; width: 100%; padding: 24px 0 0; }
  .ml-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .ml-popular > li:first-child .ml-popular-item { padding-top: 14px; }
  .ml-popular > li:last-child .ml-popular-item { padding-bottom: 14px; }
  .ml-popular > li:nth-last-child(-n+2) .ml-popular-item { border-bottom: 0; }
}
/* Expanded navigation takes room from the reading area on smaller laptops. */
@media (min-width: 761px) and (max-width: 1280px) {
  html[data-side="expanded"] .ml-layout { grid-template-columns: minmax(0, 1fr); }
  html[data-side="expanded"] .ml-rightbar {
    position: static; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0;
  }
  html[data-side="expanded"] .ml-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  html[data-side="expanded"] .ml-popular > li:first-child .ml-popular-item { padding-top: 14px; }
  html[data-side="expanded"] .ml-popular > li:last-child .ml-popular-item { padding-bottom: 14px; }
  html[data-side="expanded"] .ml-popular > li:nth-last-child(-n+2) .ml-popular-item { border-bottom: 0; }
}
@media (max-width: 760px) {
  .ml-layout { padding-inline: 18px; gap: 28px; }
  .ml-rightbar { gap: 24px; }
  .ml-popular { grid-template-columns: minmax(0, 1fr); }
  .ml-popular > li:first-child .ml-popular-item { padding-top: 0; }
  .ml-popular > li:nth-last-child(2) .ml-popular-item { border-bottom: 1px solid var(--line); }
  .ml-popular > li:last-child .ml-popular-item { padding-bottom: 0; }
  .ml-content .ml-grid.listing { gap: 26px; }
  .ml-content .ml-card-body h3 { font-size: 18px; }
  .ml-rightbar .ml-labels a, .mh-home-v22 .ml-section-title > a { min-height: 44px; }
  .ml-header { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .ml-menu, .ml-circle, .mh-save-list-button { width: 44px; height: 44px; }
}
@media (pointer: coarse) {
  .ml-rightbar .ml-labels a, .mh-home-v22 .ml-section-title > a { min-height: 44px; }
}
