/* Long guides shown as a book (Guide.php + views/blog/guide.php, 2026-11-24; first: the UT handbook). The header band, the chapter
   cards, the contents column (a bottom sheet on narrow screens), chapter openers, sections, figure / formula / definition panels,
   tables, the FAQ cards and the related-reading line. Page-only: Guide::assets(). The two-column layout follows the width of the
   article column (container query), so it works beside the site's side panel at any window size. */
.ndti-guide{--g-navy:#122b46;--g-deep:#0b1620;--g-green:#3d9142;--g-green-d:#1f6f2d;--g-text:#26384a;--g-muted:#5f7183;--g-line:#e3e9ee;--g-panel:#f6f8fa;--g-top:92px;color:var(--g-text)}
.ndti-guide *{box-sizing:border-box}

/* ---------- header band ---------- */
.ndti-guide__hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;margin:0 0 18px;padding:30px 32px;border-radius:18px;
  background:radial-gradient(120% 140% at 100% 0%,#1d4a33 0%,rgba(29,74,51,0) 55%),linear-gradient(135deg,#0b1620 0%,#122b46 100%);color:#fff;overflow:hidden}
.ndti-guide__crumbs{font-size:13px;color:#a9b8c6;margin:0 0 14px}
.ndti-guide__crumbs a{color:#d6e2ec;text-decoration:none}
.ndti-guide__crumbs a:hover{color:#fff;text-decoration:underline}
.ndti-guide .ndti-guide__title{margin:0 0 12px;font-size:clamp(28px,3.4vw,40px);line-height:1.12;font-weight:800;letter-spacing:-.01em;color:#fff}
.ndti-guide__facts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:0}
.ndti-guide__facts span{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);font-size:13px;font-weight:700;color:#eaf2f8}
.ndti-guide__by{margin:0 0 20px;font-size:13.5px;color:#a9b8c6}
.ndti-guide__by a{color:#d6e2ec}
.ndti-guide__acts{display:flex;flex-wrap:wrap;gap:10px}
.ndti-guide__btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border-radius:999px;background:var(--g-green);color:#fff;font-weight:800;font-size:15px;text-decoration:none;border:1px solid var(--g-green);transition:background .15s ease}
.ndti-guide__btn:hover{background:#4aa64f;color:#fff}
.ndti-guide__btn--ghost{background:transparent;border-color:rgba(255,255,255,.35)}
.ndti-guide__btn--ghost:hover{background:rgba(255,255,255,.1)}
.ndti-guide__heroimg{margin:0;width:300px;max-width:100%;padding:10px;border-radius:14px;background:#fff;box-shadow:0 18px 40px -18px rgba(0,0,0,.55)}
.ndti-guide__heroimg img{display:block;width:100%;height:auto;border-radius:8px}

/* ---------- chapter cards ---------- */
.ndti-guide__map{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px;margin:0 0 30px}
.ndti-guide__mapcard{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--g-line);border-radius:12px;background:#fff;text-decoration:none;color:var(--g-navy);transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease}
.ndti-guide__mapcard:hover{border-color:#cfe3cf;box-shadow:0 10px 24px -14px rgba(18,43,70,.35);transform:translateY(-1px);color:var(--g-navy)}
.ndti-guide__mapn{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--g-green)}
.ndti-guide__mapcard strong{font-size:15px;line-height:1.3}
.ndti-guide__mapcard small{font-size:12.5px;color:var(--g-muted)}

/* ---------- two columns: contents + article ---------- */
.ndti-guide__layout{container-type:inline-size}
.ndti-guide__grid{display:block}
.ndti-guide__toc{display:none}
@container (min-width: 780px){
  .ndti-guide__grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px;align-items:start}
  .ndti-guide__toc{display:block;position:sticky;top:var(--g-top);max-height:calc(100vh - var(--g-top) - 16px);overflow:auto;overscroll-behavior:contain;padding:0 4px 12px 0;scrollbar-width:thin}
  .ndti-guide__tocx{display:none}
}
@container (min-width: 940px){
  .ndti-guide__grid{grid-template-columns:236px minmax(0,1fr);gap:40px}
}

/* contents */
.ndti-guide__tochead{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--g-navy)}
.ndti-guide__tochead strong{font-weight:800}
.ndti-guide__pct{margin-left:auto;font-size:12px;font-weight:700;color:var(--g-muted);letter-spacing:0;text-transform:none}
.ndti-guide__tocx{border:0;background:#eef2f5;color:var(--g-navy);width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer}
.ndti-guide__bar{height:4px;border-radius:4px;background:#e7ecf0;margin:0 0 14px;overflow:hidden}
.ndti-guide__bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--g-green),#7cc47f);border-radius:4px;transition:width .2s linear}
.ndti-guide__toclist,.ndti-guide__toclist ol{list-style:none;margin:0;padding:0}
.ndti-guide__tocch{margin:0 0 2px}
.ndti-guide__tocch>a{display:flex;gap:10px;align-items:flex-start;padding:7px 8px;border-radius:10px;font-size:14px;font-weight:700;line-height:1.3;color:var(--g-navy);text-decoration:none}
.ndti-guide__tocch>a:hover{background:#f1f5f8}
.ndti-guide__tocn{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#eef2f5;color:var(--g-navy);font-size:11.5px;font-weight:800}
.ndti-guide__tocch.is-current>a{background:#eef7ee}
.ndti-guide__tocch.is-current .ndti-guide__tocn{background:var(--g-green);color:#fff}
.ndti-guide__tocch ol{display:none;margin:2px 0 8px 19px;border-left:2px solid #e7ecf0}
.ndti-guide__tocch.is-current ol,.ndti-guide__toc.is-all .ndti-guide__tocch ol{display:block}
.ndti-guide__tocch ol a{display:block;margin-left:-2px;padding:5px 8px 5px 13px;border-left:2px solid transparent;font-size:13px;line-height:1.35;color:var(--g-muted);text-decoration:none}
.ndti-guide__tocch ol a:hover{color:var(--g-navy)}
.ndti-guide__tocch ol a.is-current{border-left-color:var(--g-green);color:var(--g-green-d);font-weight:700}

/* ---------- the article ---------- */
.ndti-guide .ndti-guide__main{min-width:0;font-size:17px;line-height:1.75;color:var(--g-text)}
.ndti-guide .ndti-guide__main p{margin:0 0 1.05em;font-size:inherit;line-height:inherit;color:inherit}
.ndti-guide .ndti-guide__main strong{color:var(--g-navy)}
.ndti-guide .ndti-guide__main a{color:var(--g-green-d);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
/* the site's html{scroll-padding-top} already keeps a jumped-to heading below the fixed header; a chapter title also shows its label */
.ndti-guide .ndti-guide__main .ndti-guide__chtitle{scroll-margin-top:52px}
.ndti-guide .ndti-guide__main ul,.ndti-guide .ndti-guide__main ol{margin:0 0 1.1em;padding-left:1.35em}
.ndti-guide .ndti-guide__main li{margin:0 0 .45em;padding-left:.2em}
.ndti-guide .ndti-guide__main ul li::marker{color:var(--g-green)}
.ndti-guide .ndti-guide__main sub,.ndti-guide .ndti-guide__main sup{font-size:.72em}

/* chapter opener */
.ndti-guide__ch{margin:0 0 20px}
.ndti-guide__ch+.ndti-guide__ch{margin-top:56px}
.ndti-guide__chhead{position:relative;margin:0 0 26px;padding:24px 26px 22px;border-radius:16px;background:linear-gradient(135deg,#0b1620 0%,#16385a 100%);color:#fff;overflow:hidden}
.ndti-guide__chhead::after{content:"";position:absolute;right:-30px;top:-30px;width:160px;height:160px;border-radius:50%;border:18px solid rgba(61,145,66,.22)}
.ndti-guide__chn{display:block;margin:0 0 6px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8fd391}
.ndti-guide .ndti-guide__main .ndti-guide__chtitle{position:relative;z-index:1;margin:0 0 8px;padding:0;border:0;font-size:clamp(24px,3vw,32px);line-height:1.15;font-weight:800;color:#fff}
.ndti-guide__chmeta{font-size:13.5px;color:#b4c3d1}

/* sections */
.ndti-guide .ndti-guide__main h2.ndti-guide__h{position:relative;margin:2.1em 0 .7em;padding-top:1.1em;border-top:1px solid var(--g-line);font-size:24px;line-height:1.25;font-weight:800;color:var(--g-navy)}
.ndti-guide__chhead+h2.ndti-guide__h,.ndti-guide .ndti-guide__main .ndti-guide__chhead+h2.ndti-guide__h{margin-top:0;padding-top:0;border-top:0}
.ndti-guide__a{display:inline-block;margin-left:8px;width:20px;height:20px;vertical-align:-2px;opacity:0;text-decoration:none!important;transition:opacity .15s ease}
.ndti-guide__a::before{content:"#";font-weight:700;color:#9aa8b5}
.ndti-guide__h:hover .ndti-guide__a,.ndti-guide__a:focus{opacity:1}
.ndti-guide .ndti-guide__main h3{margin:1.7em 0 .55em;font-size:19.5px;line-height:1.3;font-weight:800;color:var(--g-navy)}
.ndti-guide .ndti-guide__main h4{margin:1.4em 0 .5em;font-size:15px;line-height:1.35;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#40566a}

/* figures: one picture, pictures side by side, a chart stacked with its cut-off axis strips */
.ndti-guide .ndti-guide__main .ndti-guide__fig{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:18px;width:fit-content;max-width:100%;margin:26px auto 28px;padding:16px;border:1px solid var(--g-line);border-radius:14px;background:#fff;box-shadow:0 8px 22px -18px rgba(18,43,70,.45)}
.ndti-guide .ndti-guide__main .ndti-guide__fig img{display:block;max-width:100%;height:auto;margin:0;border-radius:4px}
.ndti-guide .ndti-guide__main .ndti-guide__fig--stack{flex-direction:column;align-items:center;gap:0}
.ndti-guide .ndti-guide__main .ndti-guide__fig--stack img{border-radius:0}
.ndti-guide .ndti-guide__main .ndti-guide__fig--row{width:100%}
.ndti-guide .ndti-guide__main .ndti-guide__fig--row img{flex:0 1 auto;max-width:min(100%,360px)}
/* formulas: picture formulas and one-line formulas */
.ndti-guide .ndti-guide__main .ndti-guide__eq{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 34px;margin:22px 0 24px;padding:18px 20px;border-radius:12px;background:var(--g-panel);border:1px solid #e7ecf0;border-left:4px solid var(--g-green)}
.ndti-guide .ndti-guide__main .ndti-guide__eq img{display:block;max-width:100%;height:auto;margin:0;mix-blend-mode:multiply}
.ndti-guide .ndti-guide__main .ndti-guide__formula{margin:18px 0 20px;padding:14px 20px;border-radius:12px;background:var(--g-panel);border:1px solid #e7ecf0;border-left:4px solid var(--g-green);text-align:center;font-family:"Cambria Math",Cambria,Georgia,"Times New Roman",serif;font-size:20px;font-style:italic;line-height:1.5;color:var(--g-navy)}
/* definitions (the original page's glossary notes) */
.ndti-guide .ndti-guide__main .ndti-guide__def{margin:6px 0 20px;padding:12px 16px 12px 14px;border-radius:12px;background:#f2f8f2;border:1px solid #d7ead7;font-size:15px;line-height:1.6;color:#2f4a36}
.ndti-guide .ndti-guide__main .ndti-guide__def strong{display:inline-block;margin-right:6px;padding:1px 9px;border-radius:999px;background:var(--g-green);color:#fff;font-size:12px;letter-spacing:.04em;text-transform:uppercase;vertical-align:1px}

/* tables */
.ndti-guide .ndti-guide__main figure.wp-block-table{margin:22px 0 26px;max-width:100%;overflow-x:auto;border:1px solid var(--g-line);border-radius:12px;background:#fff}
.ndti-guide .ndti-guide__main table{width:100%;margin:0;border-collapse:collapse;font-size:14.5px;line-height:1.45}
.ndti-guide .ndti-guide__main td,.ndti-guide .ndti-guide__main th{padding:9px 12px;border:0;border-bottom:1px solid #edf1f4;text-align:left;vertical-align:top}
.ndti-guide .ndti-guide__main tr:first-child td,.ndti-guide .ndti-guide__main th{background:#f2f5f8;font-weight:800;color:var(--g-navy)}
.ndti-guide .ndti-guide__main tr:last-child td{border-bottom:0}

/* the FAQ */
.ndti-guide .ndti-guide__main .rank-math-list-item,.ndti-guide .ndti-guide__main .rank-math-faq-item{margin:0 0 12px;padding:16px 18px 6px;border:1px solid var(--g-line);border-radius:14px;background:#fff}
.ndti-guide .ndti-guide__main .rank-math-question{margin:0 0 6px;font-size:17.5px}
.ndti-guide .ndti-guide__main .rank-math-answer{margin:0 0 10px}
.ndti-guide .ndti-guide__main .rank-math-answer{font-size:16px}

/* "Next chapter" and the related-reading line */
.ndti-guide__next{display:flex;flex-direction:column;gap:2px;margin:34px 0 0;padding:16px 20px;border:1px solid var(--g-line);border-radius:14px;background:linear-gradient(90deg,#f7faf7,#fff);text-decoration:none!important;color:var(--g-navy)!important;transition:border-color .15s ease,box-shadow .15s ease}
.ndti-guide__next small{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--g-green)}
.ndti-guide__next strong{font-size:18px}
.ndti-guide__next strong::after{content:" →"}
.ndti-guide__next:hover{border-color:#cfe3cf;box-shadow:0 10px 24px -16px rgba(18,43,70,.4)}
.ndti-guide .ndti-guide__main p.ndti-related{margin:30px 0 0;padding:16px 18px;border-radius:14px;background:var(--g-panel);border:1px solid #e7ecf0;font-size:15px;line-height:1.9}

/* ---------- narrow screens: "Contents" button, the list as a bottom sheet, back to top ---------- */
.ndti-guide__fab,.ndti-guide__top{position:fixed;z-index:990;border:0;cursor:pointer;box-shadow:0 10px 26px -10px rgba(11,22,32,.55)}
.ndti-guide__fab{left:16px;bottom:16px;display:none;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;background:var(--g-navy);color:#fff;font-size:14px;font-weight:800}
.ndti-guide__fab span[data-guide-pct]{font-weight:700;color:#9fd8a1}
.ndti-guide__fabi{width:16px;height:12px;background:linear-gradient(#fff,#fff) 0 0/100% 2px no-repeat,linear-gradient(#fff,#fff) 0 5px/70% 2px no-repeat,linear-gradient(#fff,#fff) 0 10px/85% 2px no-repeat}
.ndti-guide__top{right:16px;bottom:84px;width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid var(--g-line);display:grid;place-items:center;text-decoration:none}
.ndti-guide__top::before{content:"";width:10px;height:10px;margin-top:4px;border-left:2.5px solid var(--g-navy);border-top:2.5px solid var(--g-navy);transform:rotate(45deg)}
.ndti-guide__top[hidden],.ndti-guide__scrim[hidden]{display:none}
.ndti-guide.is-narrow.is-reading .ndti-guide__fab{display:inline-flex}
.ndti-guide.is-sheet .ndti-guide__toc{display:block;position:fixed;z-index:1002;left:0;right:0;bottom:0;max-height:72vh;overflow:auto;overscroll-behavior:contain;padding:16px 18px 24px;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -18px 40px -12px rgba(11,22,32,.4)}
.ndti-guide.is-sheet .ndti-guide__tochead{position:sticky;top:-16px;margin:-16px -18px 8px;padding:14px 18px 8px;background:#fff;z-index:1}
.ndti-guide__scrim{position:fixed;inset:0;z-index:1001;background:rgba(11,22,32,.45)}

@media (max-width: 700px){
  .ndti-guide__hero{grid-template-columns:1fr;padding:22px 20px;border-radius:14px;gap:18px}
  .ndti-guide__heroimg{width:100%;max-width:340px}
  .ndti-guide__map{grid-template-columns:1fr 1fr;gap:8px}
  .ndti-guide__mapcard{padding:10px 12px}
  .ndti-guide .ndti-guide__main{font-size:16.5px;line-height:1.7}
  .ndti-guide__chhead{padding:20px 18px 18px;border-radius:14px}
  .ndti-guide .ndti-guide__main h2.ndti-guide__h{font-size:21px}
  .ndti-guide .ndti-guide__main .ndti-guide__fig{padding:10px;gap:10px}
  .ndti-guide .ndti-guide__main .ndti-guide__fig--row img{max-width:100%}
  .ndti-guide .ndti-guide__main .ndti-guide__eq{padding:14px 12px;gap:10px 18px}
}
@media (prefers-reduced-motion: reduce){.ndti-guide *{transition:none!important}}
@media print{.ndti-guide__toc,.ndti-guide__fab,.ndti-guide__top,.ndti-guide__map,.ndti-guide__acts{display:none!important}.ndti-guide__grid{display:block!important}}
/* a figure or formula panel whose every picture failed to load (data-onerror="remove") takes no room */
.ndti-guide .ndti-guide__main .ndti-guide__fig:not(:has(img)),.ndti-guide .ndti-guide__main .ndti-guide__eq:not(:has(img)){display:none}
@media (hover: none){.ndti-guide__a{display:none}}
