/* PARCEL manual: multi-page layout (loaded after parcel.css) */
html { background-color: #fdfdfd; }
body { max-width: none; margin: 0; padding: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .3em .9em;
  padding: .45em 1em; background: #f3f5f7; border-bottom: 1px solid #d0d7de; font-size: .95em; }
.topbar a { color: #0b4f8a; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .home { font-weight: bold; }
.topbar .doctitle { font-weight: bold; }
.topbar .sep { color: #888; }
.topbar .spacer { flex: 1; }
.topbar .lang { border: 1px solid #0b4f8a; border-radius: 3px; padding: 0 .4em; }
.layout { display: flex; align-items: flex-start; }
.sidebar { position: sticky; top: 2.6em; flex: 0 0 19em; max-height: calc(100vh - 2.6em); overflow-y: auto;
  padding: .8em .8em 2em 1em; border-right: 1px solid #e1e4e8; font-size: .88em; line-height: 1.35; box-sizing: border-box; }
.sidebar .sidebar-title { margin: 0 0 .5em; font-weight: bold; }
.sidebar ul { list-style: none; padding-left: 1.1em; margin: 0; }
.sidebar > ul { padding-left: 0; }
.sidebar li { margin: .2em 0; }
.sidebar li > ul { display: none; }
.sidebar li.current > ul { display: block; }
.sidebar li.current > a { font-weight: bold; }
.sidebar a { color: #1a1a1a; text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
main { flex: 1 1 auto; min-width: 0; max-width: 62em; padding: 1em 2.5em 3em 2.5em; box-sizing: border-box; }
main a { color: #0b4f8a; }
.pagenav { display: flex; gap: 1em; font-size: .9em; padding: .3em 0; border-bottom: 1px solid #e1e4e8; margin-bottom: 1em; }
.pagenav.bottom { border-bottom: none; border-top: 1px solid #e1e4e8; margin-top: 3em; }
.pagenav span { flex: 1; }
.pagenav .up { text-align: center; }
.pagenav .next { text-align: right; }
.pagenav a { text-decoration: none; }
header#title-block-header { margin-bottom: 1.5em; text-align: left; }
.doc-description { color: #444; }
div.placeholder { border: 2px dashed #d4a017; background: #fff8e1; padding: .5em 1em; margin: 1em 0; color: #7a5a00; font-weight: bold; }
.searchbox input { font-size: 1.1em; width: 100%; max-width: 32em; padding: .3em .5em; }
.search-results { list-style: none; padding-left: 0; }
.search-results li { margin: 1em 0; }
.search-results .where { color: #666; font-size: .85em; }
.search-results .snippet { font-size: .9em; color: #333; }
.search-results mark { background: #fff3a0; }
.toppage main { max-width: 60em; margin: 0 auto; }
.toppage table { display: table; }
.toppage td, .toppage th { vertical-align: top; padding: .5em .8em; }
@media (max-width: 800px) {
  .layout { display: block; }
  .sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid #e1e4e8; }
  main { padding: 1em; }
  /* 狭い画面: ページ送りの長い名前は折り返し, 縮みきらない表と 1 行の長い数式はその場で横にスクロールさせる (ページ全体は横に動かさない) */
  .pagenav { flex-wrap: wrap; }
  .pagenav span { min-width: 0; overflow-wrap: anywhere; }
  main table, .toppage table { display: block; max-width: 100%; overflow-x: auto; }
  main p, main li { overflow-x: auto; }
}
@media print { .topbar, .sidebar, .pagenav { display: none; } main { max-width: none; } }
/* 表の列の折り返し (原稿で ::: {.nowrap-c1} などで表を囲む) */
.nowrap-c1 td:nth-child(1), .nowrap-c1 th:nth-child(1), .nowrap-c1 td:nth-child(1) code { white-space: nowrap; overflow-wrap: normal; }
.nowrap-c2 td:nth-child(2), .nowrap-c2 th:nth-child(2), .nowrap-c2 td:nth-child(2) code { white-space: nowrap; overflow-wrap: normal; }
.nowrap-code code { white-space: nowrap; overflow-wrap: normal; }
.minw-c1 td:nth-child(1), .minw-c1 th:nth-child(1) { min-width: 9em; }
/* 表の中のコードは語の途中で折り返さない (空白では折り返す). 短い列は manual.py post が class="nowrap" を付ける */
main td code, main th code { overflow-wrap: normal; word-break: normal; }
main td.nowrap, main th.nowrap, main td.nowrap code { white-space: nowrap; }
main td code .tok { white-space: nowrap; }
main td, main th { min-width: 4.5em; }
.minw-c2 td:nth-child(2), .minw-c2 th:nth-child(2) { min-width: 8em; }
.minw-c3 td:nth-child(3), .minw-c3 th:nth-child(3) { min-width: 8em; }
main table.many-cols td, main table.many-cols th { min-width: 0; }
main table.many-cols td, main table.many-cols th { padding-left: 4px; padding-right: 4px; }
main table.many-cols td:first-child { white-space: nowrap; }
main th { hyphens: manual; }
/* 性能・試験結果の表 (原稿で ::: {.perf-table} で囲む): 数字の桁をそろえ, 詰めすぎない */
.perf-table { overflow-x: auto; }
main .perf-table table { width: auto; font-variant-numeric: tabular-nums; }
main .perf-table td, main .perf-table th { min-width: 0; padding: .25em .7em; }
main .perf-table td { white-space: nowrap; }
main .perf-table th { vertical-align: bottom; white-space: normal; }
/* 表のセルは上寄せ (複数行のセルで行の区切りが分かるように). 性能の表の見出しだけは下寄せのまま */
main td, main th { vertical-align: top; }
main .perf-table th { vertical-align: bottom; }
.toplogo img { max-width: 100%; height: auto; }
.top-section { margin-top: 2em; }
.top-section h2 { font-size: 1.3em; border-bottom: 1px solid #e1e4e8; padding-bottom: .2em; }
.topbar .toplink.lang { border: 1px solid #d0d7de; border-radius: 4px; padding: .1em .6em; }
.topchart { margin: 1em 0; }
.toppage table.doclist { width: 100%; }
.toppage table.doclist td:first-child, .toppage table.doclist th:first-child { white-space: nowrap; width: 11em; }
/* API リファレンスの言語タブ (manual.py の api_lang_tabs) */
.apilang { display: flex; flex-wrap: wrap; gap: .3em; border-bottom: 2px solid #0b4f8a; margin: .6em 0 1.2em; }
.apilang a { padding: .25em .9em; border: 1px solid #d0d7de; border-bottom: none; border-radius: 4px 4px 0 0;
  text-decoration: none; color: #0b4f8a; background: #f6f8fa; }
.apilang a:hover { background: #e7eef6; }
.apilang a[aria-selected="true"] { background: #0b4f8a; border-color: #0b4f8a; color: #fff; }
.sidebar li.otherlang, nav#TOC li.otherlang { display: none; }
/* トップページの動作確認環境の表 (manual.py の TOP_BODY) */
.envtable { font-size: .92em; }
.envtable td, .envtable th { vertical-align: top; }
.envtable td:nth-child(1), .envtable td:nth-child(3) { white-space: nowrap; }
.solvertable td, .solvertable th { vertical-align: top; }
.solvertable td[rowspan] { white-space: nowrap; }
/* 利用者ガイドの言語タブ (manual.py の usage_lang_tabs) */
.langtabs .langtabbar { display: none; }
.langtabs.js .langtabbar { display: flex; flex-wrap: wrap; gap: .3em; border-bottom: 2px solid #0b4f8a; margin: .6em 0 1em; }
.langtabbar button { font: inherit; padding: .25em .9em; border: 1px solid #d0d7de; border-bottom: none; border-radius: 4px 4px 0 0;
  color: #0b4f8a; background: #f6f8fa; cursor: pointer; }
.langtabbar button:hover { background: #e7eef6; }
.langtabbar button[aria-selected="true"] { background: #0b4f8a; border-color: #0b4f8a; color: #fff; }
/* 使用方法の章の言語の節 (manual.py の usage_toc_inject): 「自分の行列を渡す」の 2 段目も常に見せる */
.sidebar ul.usage-langs li > ul { display: block; }
/* CSP (default-src 'self') のサーバで style 属性の代わりに使う class (manual.py が付ける) */
.ta-left { text-align: left; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
svg.chart { max-width: 100%; height: auto; font-family: sans-serif; }
figure.diagram { margin: 1em 0; }
main.searchmain { margin: 0 auto; }
