/* Shared by MdWeb home, article, category and tag pages. */
.site-main:has(.help-grid) { width: min(1500px, calc(100% - 48px)); }
.site-main .grid-layout.help-grid { grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.site-main .help-grid.help-has-toc { grid-template-columns: 248px minmax(0, 1fr) 230px; }
.help-grid > .post-list { min-width: 0; width: 100%; grid-column: auto; order: 0; }
.help-grid .post-card, .help-grid .post-content { min-width: 0; box-sizing: border-box; }
.help-grid > .sidebar:not(.help-recommendations) { min-width: 0; order: 0; }
.help-grid > .sidebar .sidebar-card { padding: 22px 18px; }
.help-grid > .sidebar .anchor-level { width: 100%; margin: 0; padding: 0; line-height: 1.65; }
.help-grid > .sidebar .anchor-level a { display: block; padding: 5px 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.help-grid .post-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote) { overflow: visible; }
.help-recommendations { position: sticky; top: 88px; align-self: start; max-height: calc(100dvh - 108px); overflow-y: auto; scrollbar-width: thin; }
.help-recommendations .help-card { padding: 20px 12px 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.help-eyebrow { margin: 0 10px 6px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.help-card h2 { margin: 0 10px 16px; font-size: 19px; color: var(--text); }
.help-card ol { list-style: none; margin: 0; padding: 0; }
.help-card li { margin: 0; padding: 0; }
.help-card .help-link { display: grid; grid-template-columns: 16px 36px minmax(0, 1fr) 12px; align-items: center; gap: 9px; padding: 13px 8px; color: var(--text); border-radius: 10px; text-decoration: none; transition: background .15s; }
.help-card .help-link:hover { background: var(--primary-soft); }
.help-card a:focus-visible { outline: 2px solid #d97706; outline-offset: 2px; }
.help-rank { font-size: 12px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.help-card li:first-child .help-rank { color: #b45309; font-weight: 700; }
.help-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 9px; background: #fff; padding: 3px; box-sizing: border-box; }
.help-name { font-weight: 600; font-size: 14px; min-width: 0; }
.help-name small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 11px; }
.help-arrow { color: var(--muted); font-size: 14px; }
.help-card .help-more { display: block; margin: 12px 8px 0; padding: 15px 2px 3px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 12px; }
@media (min-width: 981px) and (max-width: 1279px) {
  .site-main .help-grid.help-has-toc { grid-template-columns: 230px minmax(0, 1fr); }
  .site-main .grid-layout.help-grid { gap: 20px; }
  .help-grid > .sidebar:not(.help-recommendations) { display: none; }
}
@media (max-width: 980px) {
  .site-main:has(.help-grid) { width: min(100%, 900px); }
  .site-main .grid-layout.help-grid, .site-main .help-grid.help-has-toc { grid-template-columns: minmax(0, 1fr); }
  .help-recommendations, .help-grid > .sidebar { display: none; }
}
