/* A focused reading layout, using the site's existing cream and ink palette. */
.note-intro { max-width: 1100px; padding-bottom: 42px; }
.note-kind { color: #9b2d5a; }
.note-intro .article-title { max-width: 22ch; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.06; }
.note-intro .lede { max-width: 740px; margin-bottom: 26px; }
.note-meta { display: flex; flex-wrap: wrap; gap: 8px 23px; font: 11px/1.8 var(--mono); color: var(--muted); }
.note-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.note-layout { display: grid; grid-template-columns: 205px minmax(0, 740px); gap: 70px; justify-content: center; padding-block: 42px 95px; border-top: 1px solid var(--line); }
.note-layout.note-layout-single { grid-template-columns: minmax(0, 740px); }
.note-sidebar { position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; }
.note-outline summary { font: 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .07em; cursor: pointer; color: var(--ink); }
.note-outline summary::marker { color: #9b2d5a; }
.note-outline nav { margin-top: 20px; }
.note-outline ul { list-style: none; padding: 0; margin: 0; }
.note-outline li { margin: 0; }
.note-outline a { display: block; padding: 8px 0 8px 13px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.note-outline a:hover, .note-outline a[aria-current="location"] { color: #84234e; border-left-color: #9b2d5a; }
.note-outline .note-subheading a { padding-left: 25px; font-size: 12px; }
.note-sidebar-caption { margin-top: 30px; font: 10px/1.9 var(--mono); }
.note-body { min-width: 0; font-size: 18px; line-height: 1.85; }
.note-body h2, .note-body h3 { scroll-margin-top: 25px; }
.note-body h2 { font-size: 34px; line-height: 1.2; margin-top: 50px; }
.note-body p { margin-bottom: 24px; }
.note-body :not(pre) > code { font-size: .84em; padding: 2px 5px; background: #e8ecdf; border-radius: 3px; overflow-wrap: anywhere; }
.note-body pre { min-width: 0; max-width: 100%; margin: 25px 0 30px; padding: 21px; background: #24382e; color: #f7f0df; border: 1px solid #3d5445; border-radius: 5px; font: 13px/1.85 var(--mono); tab-size: 4; }
.note-body pre code { font: inherit; color: inherit; background: none; padding: 0; }
.note-code { min-width: 0; max-width: 100%; margin: 25px 0 30px; border: 1px solid #3d5445; border-radius: 5px; overflow: hidden; background: #24382e; }
.note-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; border-bottom: 1px solid #4a5e4d; color: #cedbc8; font: 10px/1.5 var(--mono); letter-spacing: .03em; }
.note-code pre { margin: 0; border: 0; border-radius: 0; }
.note-copy { border: 1px solid #789176; border-radius: 3px; background: transparent; color: #f7f0df; padding: 5px 10px; font: 11px/1.3 var(--mono); cursor: pointer; min-width: 66px; }
.note-copy:hover { background: #3d5445; }
.note-copy:focus-visible { outline: 2px solid #8dbb3f; outline-offset: 3px; }
.note-copy[data-state="copied"] { color: #d0e5a7; }
.note-platform-tabs { display: flex; gap: 3px; }
.note-platform-tab { border: 0; border-radius: 3px; background: transparent; color: #d1decb; padding: 6px 9px; font: 11px/1.4 var(--mono); cursor: pointer; }
.note-platform-tab[aria-selected="true"] { background: #49623d; color: #f7f0df; }
.note-platform-tab:hover { color: white; }
.note-platform-tab:focus-visible { outline: 2px solid #8dbb3f; outline-offset: 2px; }
.note-code [role="tabpanel"][hidden] { display: none; }
.note-platform-help { font-size: 14px; }
.note-body table { margin-block: 25px 32px; font-size: 15px; }
.note-body th { color: var(--ink); font: 11px/1.7 var(--mono); text-align: left; background: #e9ecdf; }
.note-body th, .note-body td { padding: 12px 15px; }
.note-body blockquote { font: 16px/1.9 var(--sans); padding: 15px 20px; border-left: 3px solid #08aecb; background: #ecf0e4; }
.note-body blockquote p { margin: 0; }
.note-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 25px; }
@media (max-width: 1000px) { .note-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 38px; } }
@media (max-width: 800px) {
  .note-intro { padding-bottom: 30px; }
  .note-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 25px 65px; }
  .note-sidebar { position: static; max-height: none; overflow: visible; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .note-outline summary { padding-block: 5px; }
  .note-outline nav { margin-top: 14px; }
  .note-sidebar-caption { display: none; }
  .note-body { font-size: 17px; }
  .note-body h2 { font-size: 30px; }
  .note-body pre { padding: 16px; font-size: 12px; }
  .note-meta { gap: 7px 17px; }
}
