/* AZ tutorial pages: preserve the site's #333 masthead and use the requested black/white reading surface. */
body.az-tutorial-page { min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; color: #fff; background: #000; font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.az-tutorial-page a { color: inherit; text-decoration: none; }
body.az-tutorial-page button, body.az-tutorial-page input { font: inherit; }
body.az-tutorial-page .page_header_line { height: 60px; }

.az-tutorial-layout { width: min(calc(100% - 40px), 1420px); flex: 1 0 auto; margin: 0 auto; display: grid; grid-template-columns: 285px minmax(0, 1fr); }
.az-tutorial-sidebar { position: sticky; top: 60px; max-height: calc(100vh - 60px); overflow: auto; border-right: 1px solid #292929; padding: 18px 14px 15px 0; scrollbar-color: #3a3a3a #050505; scrollbar-width: thin; }
.az-tutorial-search { margin: 0 12px 18px 0; }
.az-tutorial-search label { display: block; margin-bottom: 7px; color: #fff; font-size: 15px; font-weight: 600; }
.az-tutorial-search-row { display: flex; min-height: 42px; overflow: hidden; border: 1px solid #414141; border-radius: 5px; background: #0c0c0c; }
.az-tutorial-search-row:focus-within { border-color: #999; }
.az-tutorial-search-row input[type="search"] { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 10px; color: #fff; background: transparent; font-size: 14px; }
.az-tutorial-search-row input::placeholder { color: #aaa; }
.az-tutorial-search-row button { flex: 0 0 auto; border: 0; border-left: 1px solid #333; padding: 0 11px; color: #fff; background: #1b1b1b; cursor: pointer; font-size: 13px; }
.az-tutorial-search-row button:hover { background: #292929; }
.az-tutorial-directory-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 12px 8px 0; color: #fff; font-size: 14px; }
.az-tutorial-directory-heading span { color: #999; font-size: 11px; }
.az-tutorial-group { margin: 0 10px 7px 0; }
.az-tutorial-group > summary, .az-tutorial-section > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.az-tutorial-group > summary::-webkit-details-marker, .az-tutorial-section > summary::-webkit-details-marker { display: none; }
.az-tutorial-group > summary { min-height: 37px; border: 1px solid transparent; border-radius: 4px; padding: 0 9px; color: #f5f5f5; font-size: 14px; }
.az-tutorial-group > summary:hover, .az-tutorial-group[open] > summary { border-color: #333; background: #111; }
.az-tutorial-group-icon { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 4px; color: #fff; background: #272727; font-size: 11px; }
.az-tutorial-group > summary i, .az-tutorial-section > summary i { width: 7px; height: 7px; margin-left: auto; transform: rotate(45deg); border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; }
details[open] > summary i { transform: rotate(225deg); }
.az-tutorial-subtree { padding: 2px 0 8px 13px; }
.az-tutorial-section > summary { min-height: 30px; padding: 0 7px; color: #d4d4d4; font-size: 13px; font-weight: 600; }
.az-tutorial-section > summary:hover { color: #fff; }
.az-tutorial-section ul { margin: 0; padding: 0 0 5px 12px; list-style: none; }
.az-tutorial-section li { position: relative; margin: 0; }
.az-tutorial-section li::before { position: absolute; top: 13px; left: 1px; width: 3px; height: 3px; border-radius: 50%; content: ""; background: #888; }
.az-tutorial-section li a { display: block; overflow: hidden; padding: 5px 7px 5px 11px; color: #c4c4c4; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.az-tutorial-section li a:hover { color: #fff; }
.az-tutorial-sidebar-foot { display: flex; align-items: center; gap: 7px; margin: 18px 10px 0 0; border-top: 1px solid #292929; padding-top: 11px; color: #dedede; font-size: 11px; }
.az-tutorial-sidebar-foot > span { width: 6px; height: 6px; border-radius: 50%; background: #eee; }
.az-tutorial-sidebar-foot small { margin-left: auto; color: #888; }

.az-tutorial-main { width: 100%; max-width: 1120px; min-width: 0; justify-self: center; padding: 24px clamp(20px, 4vw, 54px) 35px; }
.az-tutorial-hero { position: relative; overflow: hidden; min-height: 185px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #303030; border-radius: 8px; padding: 24px 29px; background: #030303; }
.az-tutorial-hero::after { position: absolute; top: -103px; right: 8%; width: 245px; height: 245px; border: 1px solid #242424; border-radius: 50%; content: ""; box-shadow: 0 0 0 10px #080808, 0 0 0 21px #151515, 0 0 0 30px #080808; pointer-events: none; }
.az-tutorial-eyebrow { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #bbb; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.az-tutorial-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.az-tutorial-eyebrow i { color: #777; font-style: normal; }
.az-tutorial-hero h1, .az-tutorial-list-heading h1 { position: relative; z-index: 1; margin: 10px 0 0; color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; }
.az-tutorial-hero h2 { position: relative; z-index: 1; margin: 3px 0 0; color: #fff; font-size: 20px; line-height: 1.5; }
.az-tutorial-hero p { position: relative; z-index: 1; max-width: 680px; margin: 8px 0 0; color: #d0d0d0; font-size: 14px; }
.az-tutorial-source-card { min-height: 66px; display: flex; align-items: center; gap: 13px; margin-top: 12px; border: 1px solid #303030; border-radius: 6px; padding: 9px 13px; background: #0b0b0b; }
.az-tutorial-source-mark { display: flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border: 1px solid #444; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 700; }
.az-tutorial-source-card > div { min-width: 0; flex: 1; }
.az-tutorial-source-card small { display: block; color: #999; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.az-tutorial-source-card b { display: block; margin-top: 1px; color: #fff; font-size: 14px; }
.az-tutorial-source-card p { margin: 1px 0 0; color: #c5c5c5; font-size: 12px; }
.az-tutorial-source-card code { border: 1px solid #383838; border-radius: 4px; padding: 5px 8px; color: #eee; font-size: 11px; }
.az-tutorial-source-card > a { border: 1px solid #3b3b3b; border-radius: 4px; padding: 6px 9px; color: #f1f1f1; font-size: 11px; white-space: nowrap; }
.az-tutorial-source-card > a:hover { border-color: #777; }
.az-tutorial-section-block { margin-top: 27px; }
.az-tutorial-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.az-tutorial-section-heading small { display: block; color: #aaa; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.az-tutorial-section-heading h2 { margin: 2px 0 0; color: #fff; font-size: 20px; line-height: 1.4; }
.az-tutorial-section-heading > span { color: #bbb; font-size: 11px; }
.az-tutorial-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.az-tutorial-category-card { position: relative; display: flex; min-height: 143px; flex-direction: column; border: 1px solid #333; border-radius: 5px; padding: 13px 14px 11px; color: #fff !important; background: #101010; transition: border-color .18s ease, background .18s ease; }
.az-tutorial-category-card:hover { border-color: #666; background: #151515; }
.az-tutorial-category-icon { display: flex; width: 27px; height: 27px; align-items: center; justify-content: center; border: 1px solid #3c3c3c; border-radius: 5px; background: #202020; font-size: 12px; }
.az-tutorial-category-arrow { position: absolute; top: 14px; right: 14px; color: #aaa; font-size: 15px; }
.az-tutorial-category-card h3 { margin: 8px 0 2px; color: #fff; font-size: 16px; }
.az-tutorial-category-card p { display: -webkit-box; overflow: hidden; margin: 0 0 8px; color: #ccc; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.az-tutorial-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid #292929; padding-top: 7px; color: #ddd; font-size: 11px; }
.az-tutorial-card-action b { color: #fff; font-size: 14px; font-weight: 400; }
.az-tutorial-article-list { overflow: hidden; border: 1px solid #2b2b2b; border-radius: 5px; background: #0d0d0d; }
.az-tutorial-article-row { display: flex; min-height: 54px; align-items: center; gap: 12px; border-bottom: 1px solid #252525; padding: 8px 12px; color: #fff !important; transition: background .15s ease; }
.az-tutorial-article-row:last-child { border-bottom: 0; }
.az-tutorial-article-row:hover { background: #171717; }
.az-tutorial-article-row > span { width: 22px; flex: 0 0 22px; color: #aaa; font-size: 10px; }
.az-tutorial-article-row > div { min-width: 0; flex: 1; }
.az-tutorial-article-row b { display: block; overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.az-tutorial-article-row small { display: block; overflow: hidden; margin-top: 1px; color: #bbb; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.az-tutorial-article-row > i { color: #999; font-size: 13px; font-style: normal; }
.az-tutorial-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; border-top: 1px solid #252525; padding-top: 12px; color: #888; font-size: 11px; }
.az-tutorial-footer a { color: #bbb !important; }
.az-tutorial-footer a:hover { color: #fff !important; }

.az-tutorial-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 23px; color: #969696; font-size: 13px; }
.az-tutorial-breadcrumbs a { color: #ccc !important; }
.az-tutorial-breadcrumbs a:hover { color: #fff !important; }
.az-tutorial-list-heading { border: 1px solid #303030; border-radius: 7px; padding: 24px 27px; background: #050505; }
.az-tutorial-list-heading h1 { margin-top: 8px; }
.az-tutorial-list-heading p { margin: 7px 0 0; color: #c9c9c9; font-size: 15px; }
.az-tutorial-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 19px 0; }
.az-tutorial-pagination a, .az-tutorial-pagination span { display: inline-flex; align-items: center; border: 1px solid #373737; border-radius: 4px; padding: 5px 9px; color: #ddd !important; background: #111; font-size: 12px; }
.az-tutorial-pagination a:hover { color: #fff !important; background: #242424; }
.az-tutorial-empty { padding: 24px 10px; color: #bbb; text-align: center; }

.az-tutorial-article-heading { border-bottom: 1px solid #292929; padding-bottom: 20px; }
.az-tutorial-article-heading h1 { margin: 12px 0 4px; color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.25; }
.az-tutorial-article-heading > p { margin: 0; color: #d0d0d0; font-size: 16px; }
.az-tutorial-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 13px; color: #aaa; font-size: 12px; }
.az-tutorial-meta i { width: 3px; height: 3px; border-radius: 50%; background: #777; }
.az-tutorial-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 205px; align-items: start; gap: 34px; margin-top: 24px; }
.az-tutorial-rich-content { min-width: 0; overflow-wrap: anywhere; color: #e4e4e4; font-size: 16px; line-height: 1.9; }
.az-tutorial-rich-content > *:first-child { margin-top: 0; }
.az-tutorial-rich-content h2 { margin: 34px 0 12px; border-left: 3px solid #fff; padding-left: 12px; color: #fff; font-size: 23px; line-height: 1.45; }
.az-tutorial-rich-content h3 { margin: 24px 0 9px; color: #fff; font-size: 19px; line-height: 1.5; }
.az-tutorial-rich-content p { margin: 0 0 15px; color: #ddd; }
.az-tutorial-rich-content ul, .az-tutorial-rich-content ol { margin: 8px 0 19px; padding-left: 24px; list-style: initial; }
.az-tutorial-rich-content ol { list-style: decimal; }
.az-tutorial-rich-content li { margin: 5px 0; padding-left: 2px; color: #ddd; }
.az-tutorial-rich-content li::marker { color: #ccc; }
.az-tutorial-rich-content a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.az-tutorial-rich-content blockquote { margin: 18px 0; border-left: 3px solid #777; padding: 9px 14px; color: #d4d4d4; background: #101010; }
.az-tutorial-rich-content img { display: block; max-width: 100%; height: auto; margin: 17px auto; border: 1px solid #333; border-radius: 4px; background: #111; }
.az-tutorial-rich-content figure { margin: 20px 0; }
.az-tutorial-rich-content table { width: 100%; margin: 18px 0 22px; border-collapse: collapse; color: #e8e8e8; font-size: 14px; }
.az-tutorial-rich-content th, .az-tutorial-rich-content td { border: 1px solid #383838; padding: 9px 11px; text-align: left; vertical-align: top; }
.az-tutorial-rich-content th { color: #fff; background: #171717; }
.az-tutorial-rich-content tr:nth-child(even) td { background: #0b0b0b; }
.az-tutorial-rich-content pre, .az-tutorial-rich-content code { color: #f0f0f0; background: #141414; font-family: Consolas, monospace; }
.az-tutorial-rich-content pre { overflow: auto; margin: 15px 0 20px; border: 1px solid #333; border-radius: 5px; padding: 14px; font-size: 13px; line-height: 1.6; }
.az-tutorial-rich-content :not(pre) > code { border: 1px solid #333; border-radius: 3px; padding: 1px 4px; font-size: .92em; }
.az-tutorial-toc { position: sticky; top: 75px; border-left: 1px solid #333; padding: 2px 0 2px 14px; }
.az-tutorial-toc > b { display: block; margin-bottom: 9px; color: #fff; font-size: 13px; }
.az-tutorial-toc nav { display: grid; gap: 4px; }
.az-tutorial-toc a { display: block; border-left: 2px solid transparent; padding: 4px 0 4px 9px; color: #aaa !important; font-size: 12px; line-height: 1.45; }
.az-tutorial-toc a:hover, .az-tutorial-toc a.az-tutorial-toc-active { border-left-color: #fff; color: #fff !important; }
.az-tutorial-toc a[data-level="3"] { padding-left: 19px; color: #999 !important; }
.az-tutorial-notice { display: flex; gap: 12px; margin-top: 27px; border: 1px solid #333; border-radius: 5px; padding: 13px 15px; background: #0b0b0b; }
.az-tutorial-notice > b { display: flex; width: 22px; height: 22px; flex: 0 0 22px; align-items: center; justify-content: center; border: 1px solid #666; border-radius: 50%; color: #fff; font-size: 12px; }
.az-tutorial-notice p { margin: 0; color: #ccc; font-size: 13px; }
.az-tutorial-article-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 19px; }
.az-tutorial-article-pagination > div { min-width: 0; border: 1px solid #303030; border-radius: 4px; padding: 10px 12px; background: #0b0b0b; }
.az-tutorial-article-pagination > div:last-child { text-align: right; }
.az-tutorial-article-pagination small { display: block; margin-bottom: 2px; color: #999; font-size: 11px; }
.az-tutorial-article-pagination b { display: block; overflow: hidden; color: #e6e6e6; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.az-tutorial-article-pagination a { color: #eee !important; }
.az-tutorial-site-footer { flex: 0 0 auto; margin-top: 0; line-height: normal; }
body.az-tutorial-page .az-tutorial-site-footer a { color: rgba(169, 169, 169, 1); }

@media (max-width: 1020px) {
  body.az-tutorial-page .page_header_line { height: 60px; }
  .az-tutorial-layout { width: min(calc(100% - 32px), 950px); grid-template-columns: 240px minmax(0, 1fr); }
  .az-tutorial-main { padding-right: 22px; padding-left: 22px; }
  .az-tutorial-article-grid { grid-template-columns: minmax(0, 1fr) 175px; gap: 23px; }
}
@media (max-width: 720px) {
  body.az-tutorial-page .page_header_line { height: 55px; }
  .az-tutorial-layout { width: 100%; display: block; }
  .az-tutorial-sidebar { position: static; height: auto; max-height: none; overflow: visible; border-right: 0; border-bottom: 1px solid #292929; padding: 14px 17px 12px; }
  .az-tutorial-search { margin-right: 0; }
  .az-tutorial-directory-heading { margin-right: 0; }
  .az-tutorial-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .az-tutorial-sidebar-foot { margin-right: 0; }
  .az-tutorial-main { max-width: none; padding: 20px 17px 28px; }
  .az-tutorial-hero { min-height: 175px; padding: 22px 19px; }
  .az-tutorial-hero::after { right: -100px; }
  .az-tutorial-category-grid { grid-template-columns: 1fr; }
  .az-tutorial-category-card { min-height: 124px; }
  .az-tutorial-article-grid { display: flex; flex-direction: column; gap: 20px; }
  .az-tutorial-toc { position: static; order: -1; width: 100%; border: 1px solid #303030; border-radius: 4px; padding: 12px; }
  .az-tutorial-rich-content { width: 100%; font-size: 16px; }
  .az-tutorial-source-card { flex-wrap: wrap; }
  .az-tutorial-source-card > div { flex-basis: calc(100% - 50px); }
  .az-tutorial-source-card code { margin-left: 47px; }
}
@media (max-width: 480px) {
  body.az-tutorial-page .page_header_line { height: 53px; }
  .az-tutorial-tree { grid-template-columns: 1fr; }
  .az-tutorial-hero h1, .az-tutorial-article-heading h1, .az-tutorial-list-heading h1 { font-size: 30px; }
  .az-tutorial-hero h2 { font-size: 18px; }
  .az-tutorial-source-card > a { margin-left: auto; }
  .az-tutorial-list-heading { padding: 20px 17px; }
  .az-tutorial-article-grid { margin-top: 18px; }
  .az-tutorial-article-pagination { grid-template-columns: 1fr; }
}
