/* the manual (/navod/), over the pages' own styles (tools/seo/seo.css) */
body.navod { font-size: 16.5px; }
body.navod { --ft-w: 1440px; }
.navod main.wrap { max-width: 1440px; }
.nv { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: 44px; align-items: start; padding-bottom: 70px; }
.nv-left, .nv-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; }
.nv-left { overflow: visible; display: flex; flex-direction: column; gap: 14px; }
.nv-left > .nv-menu { overflow: auto; min-height: 0; max-height: calc(100vh - 160px); padding-right: 6px; }
.nv-menu { font-size: 15px; }
.nv-menu summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.nv-menu summary::-webkit-details-marker { display: none; }
.nv-menu summary::after { content: '›'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.nv-menu details[open] > summary::after { transform: rotate(90deg); }
.nv-menu summary:hover { background: #fff; }
.nv-menu ul { list-style: none; margin: 2px 0 10px 18px; padding: 0 0 0 10px; border-left: 1px solid var(--line); }
.nv-menu li a { display: block; padding: 4px 10px; border-radius: 7px; color: var(--text); text-decoration: none; line-height: 1.4; }
.nv-menu li a:hover { background: #fff; color: var(--green); }
.nv-menu li a[aria-current] { background: var(--leaf); color: var(--green); font-weight: 600; }
.nv-all { display: block; padding: 10px 8px; font-size: 14px; }
.nv-burger { display: none; }

.nv-search { position: relative; z-index: 4; }
.nv-search input { width: 100%; font: inherit; font-size: 15px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.nv-search input:focus { outline: none; border-color: var(--green2); box-shadow: 0 0 0 4px var(--leaf); }
.nv-search.big { max-width: 720px; margin: 0 0 34px; }
.nv-search.big input { font-size: 19px; padding: 16px 22px; border-radius: 16px; }
.nv-hits { position: absolute; left: 0; top: calc(100% + 6px); width: max(100%, min(560px, calc(100vw - 48px))); max-height: min(70vh, 560px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(29, 42, 34, .22); padding: 8px; }
.nv-hits[hidden] { display: none; }
.nv-hits a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--text); }
.nv-hits a:hover, .nv-hits a.on { background: var(--leaf); }
.nv-hits b { display: block; color: var(--ink); line-height: 1.35; }
.nv-hits small { display: block; color: var(--muted); font-size: 13px; }
.nv-hits span { display: block; font-size: 14px; line-height: 1.45; margin-top: 3px; }
.nv-hits mark, .nv-art mark { background: #fbe7a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.nv-hits p { margin: 0; padding: 12px; color: var(--muted); }

.nv-art { min-width: 0; max-width: 820px; }
.nv-chap { margin: 0 0 6px; color: var(--muted); font-size: 14.5px; }
.nv-art h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.nv-art h2 { font-size: clamp(23px, 2.4vw, 29px); margin: 46px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.nv-art h3 { font: 650 19px/1.3 Inter, system-ui, sans-serif; color: var(--ink); margin: 30px 0 8px; scroll-margin-top: 84px; }
.nv-art h4 { font: 650 16.5px/1.35 Inter, system-ui, sans-serif; color: var(--ink); margin: 22px 0 6px; scroll-margin-top: 84px; }
.nv-art > p:first-of-type { font-size: 18.5px; }
.nv-art ul, .nv-art ol { padding-left: 24px; }
.nv-art li { margin: 7px 0; }
.nv-art ol > li::marker { color: var(--green); font-weight: 700; }
.nv-art ul > li::marker { color: var(--green2); }
.nv-art b { color: var(--ink); }
.anchor { opacity: 0; margin-left: 8px; text-decoration: none; font-weight: 400; color: var(--green2); }
:is(h2, h3, h4):hover > .anchor, .anchor:focus { opacity: 1; }
.nv-art kbd, .nv-long kbd { background: #fff; border: 1px solid #cfcabd; border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font: 600 13.5px/1.4 Inter, system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.nv-art code { background: #efece3; border-radius: 5px; padding: 1px 6px; font-size: .9em; overflow-wrap: anywhere; }
.nv-art pre { background: #26322b; color: #eef3ee; padding: 16px 18px; border-radius: 12px; overflow: auto; font-size: 14px; line-height: 1.5; }
.nv-art pre code { background: none; padding: 0; overflow-wrap: normal; }
.nv-art figure { margin: 22px 0 28px; }
.nv-art figure video { display: block; border: 1px solid var(--line); border-radius: 12px; background: #eef1ec; box-shadow: 0 10px 34px rgba(29, 42, 34, .1); width: 100%; height: auto; max-width: 1280px; }
.nv-video figcaption::before { content: '▶ '; }
.nv-art figure img { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 34px rgba(29, 42, 34, .1); max-height: 900px; max-width: 100%; width: auto; height: auto; }
.nv-art figcaption { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 9px; }
.zoom { cursor: zoom-in; display: inline-block; }
.table { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.table th { text-align: left; background: #f2efe6; color: var(--ink); font-weight: 650; padding: 9px 14px; white-space: nowrap; }
.table td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table td:first-child { color: var(--ink); min-width: 120px; }
.note { border-left: 4px solid var(--c); background: var(--bg); border-radius: 0 12px 12px 0; padding: 12px 18px; margin: 18px 0; --c: #5b7fa6; --bg: #eef3f8; }
.note.tip { --c: #3f8a5a; --bg: #e9f3eb; }
.note.warn { --c: #c9701d; --bg: #fdf1e3; }
.note.example { --c: #7a6bb0; --bg: #f2eff9; }
.note.plan { --c: #b08a1c; --bg: #fbf5de; }
.note > :first-child { margin-top: 0; } .note > :last-child { margin-bottom: 0; }
.nv-toc { font-size: 14px; line-height: 1.4; }
.nv-toc b { display: block; margin-bottom: 8px; color: var(--ink); }
.nv-toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.nv-toc a.l3 { padding-left: 24px; }
.nv-toc a:hover { color: var(--green); }
.nv-toc a.on { color: var(--green); border-color: var(--green); font-weight: 600; }
.nv-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); }
.nv-next a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; text-decoration: none; font-weight: 600; }
.nv-next a:hover { border-color: var(--green2); }
.nv-next small { display: block; color: var(--muted); font-weight: 400; }
.nv-next .r { text-align: right; }

.nv-home { padding-bottom: 70px; }
.nv-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 40px; }
.nv-quick a { background: var(--green); color: #e5f0e8; border-radius: 14px; padding: 16px 20px; text-decoration: none; line-height: 1.45; font-size: 15px; }
.nv-quick a:hover { background: #255a39; }
.nv-quick b { display: block; color: #fff; font-size: 17px; }
.nv-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; align-items: start; }
.nv-chapters section { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.nv-cover { display: block; margin: -20px -24px 16px; border-radius: 15px 15px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.nv-cover img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.nv-chapters h2 { font-size: 22px; margin: 0 0 4px; }
.nv-chapters p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.nv-chapters ul { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.nv-chapters li a { display: block; padding: 3px 0; text-decoration: none; line-height: 1.45; }
.nv-chapters li a:hover { text-decoration: underline; }
.nv-print { margin-top: 30px; }

.nv-long { max-width: 900px; padding-bottom: 70px; }
/* the book's cover and last page: the cover only on paper, the last page also on the screen */
.nv-book { display: none; }
.nv-tochead { display: none; }
.nv-colophon { margin-top: 70px; padding: 40px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.nv-colophon .t { font: 700 26px/1.2 Fraunces, Georgia, serif; color: var(--ink); margin: 12px 0 18px; }
.nv-colophon b { color: var(--ink); }
.nv-colophon .d { font-size: 13px; margin-top: 18px; }
.nv-longtoc { columns: 3 220px; column-gap: 30px; font-size: 14.5px; line-height: 1.45; margin: 28px 0; }
.nv-longtoc div { break-inside: avoid; margin-bottom: 14px; }
.nv-longtoc ul { margin: 4px 0; padding-left: 18px; }
.nv-long .nv-art { max-width: none; scroll-margin-top: 84px; }
.nv-long .nv-art > h2 { font-size: 32px; }
.nv-long .nv-art > h3 { font: 650 24px/1.2 Fraunces, Georgia, serif; }
.nv-box { position: fixed; inset: 0; background: rgba(20, 28, 23, .88); display: grid; place-items: center; z-index: 50; cursor: zoom-out; padding: 20px; }
.nv-box img { max-width: 100%; max-height: calc(100vh - 40px); border-radius: 10px; }

@media (max-width: 1180px) { .nv { grid-template-columns: 250px minmax(0, 1fr); gap: 34px; } .nv-toc { display: none; } }
@media (max-width: 860px) {
  .nv { display: block; } .nv-left { position: static; max-height: none; margin-bottom: 22px; } .nv-left > .nv-menu { display: none; }
  .nv-burger { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
  .nv-burger > summary { padding: 11px 4px; font-weight: 600; cursor: pointer; } .nv-burger .nv-menu { padding-bottom: 10px; }
  .nv-next { grid-template-columns: 1fr; } .nv-next .r { text-align: left; } .nv-next span { display: none; }
}
@page { size: A4; margin: 18mm 17mm 20mm; }
@page :first { margin: 0; }
@media print {
  .hd, .crumbs, .nv-left, .nv-toc, .nv-next, .nv-printbtn, .anchor, .ft, .nv-long > h1, .nv-long > .lead { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* the cover: the whole first sheet, edge to edge */
  .nv-book { display: flex; flex-direction: column; width: 210mm; height: 297mm; box-sizing: border-box; padding: 22mm 20mm 18mm; break-after: page;
    background: linear-gradient(160deg, #23432f 0%, #2f5a3e 55%, #3f7550 100%); color: #f4f1e8; overflow: hidden; }
  .nv-book-top { display: flex; align-items: center; gap: 12px; font: 600 15pt/1 Inter, system-ui, sans-serif; letter-spacing: .02em; }
  .nv-book-top img { width: 13mm; height: 13mm; border-radius: 3.2mm; box-shadow: 0 0 0 .7mm rgba(255,255,255,.85); }
  .nv-book-title { margin: 30mm 0 14mm; }
  .nv-book-title p { margin: 0; font: 500 15pt/1.3 Inter, system-ui, sans-serif; opacity: .85; text-transform: uppercase; letter-spacing: .14em; }
  .nv-book-title h2 { margin: 6mm 0 7mm; font: 700 46pt/1.02 Fraunces, Georgia, serif; color: #fff; }
  .nv-book-title .sub { text-transform: none; letter-spacing: 0; font-size: 13pt; max-width: 135mm; opacity: .9; }
  .nv-book-img { width: 100%; height: 92mm; object-fit: cover; border-radius: 4mm; box-shadow: 0 3mm 9mm rgba(0,0,0,.35); }
  .nv-book-foot { margin-top: auto; display: flex; justify-content: space-between; font: 500 11pt/1 Inter, system-ui, sans-serif; opacity: .85; border-top: .3mm solid rgba(255,255,255,.35); padding-top: 5mm; }
  .nv-tochead { display: block; font: 700 26pt/1.2 Fraunces, Georgia, serif; margin: 0 0 6mm; }
  .nv-longtoc { margin-top: 0; }
  /* the last page */
  .nv-colophon { break-before: page; border: 0; margin: 0; padding-top: 95mm; }
  body.navod { background: #fff; font-size: 10.5pt; } .nv { display: block; } .nv-art, .nv-long, .navod main.wrap { max-width: none; padding: 0; }
  .nv-art figure, .note, .table tr { break-inside: avoid; } .nv-art figure img { max-height: 11cm; box-shadow: none; }
  h2, h3, h4 { break-after: avoid; } .nv-longchap { break-before: page; } .nv-art a { color: inherit; text-decoration: none; }
}
