/* コピーサイト追加スタイル(JSなし運用のための補助) */

/* 全体フォント拡大: Bootstrap3 既定(body 14px, h1 36/h2 30/h3 24/h4 18px)を一回り大きく */
body {
  font-size: 16px;
}
h1 { font-size: 41px; }
h2 { font-size: 34px; }
h3 { font-size: 27px; }
h4 { font-size: 20px; }
.lead {
  font-size: 16px !important;
}
@media (min-width: 768px) {
  .lead {
    font-size: 21px !important;
  }
}

/* ダミー広告: img を差し替えるだけで本番画像に変更可能 */
.ad-dummy {
  display: inline-block;
  line-height: 0;
}
.ad-dummy img {
  max-width: 100%;
  height: auto;
}

/* 旧バージョン折りたたみ(テーブルのファイル列内) */
details.old-versions {
  margin-top: 6px;
  font-size: 13px;
}
details.old-versions > summary {
  cursor: pointer;
  color: #337ab7;
  outline: none;
}
details.old-versions > summary:hover {
  text-decoration: underline;
}
details.old-versions ul {
  margin: 6px 0 0 0;
  padding-left: 1.2em;
  list-style: none;
}
details.old-versions li {
  padding: 2px 0;
  border-top: 1px dotted #ddd;
  white-space: nowrap;
}

/* 旧バージョン展開行(テーブル全幅) */
.table > tbody > tr.old-row > td {
  border-top: none;
  padding-top: 0;
}
details.old-versions .meta {
  color: #999;
  margin-left: .5em;
}

/* MD5 表示 */
.md5-line {
  color: #999;
  /* 行(tr)基準でテーブル右端から右揃えに配置。
     右端アンカーなのでテーブル外へのはみ出しが構造上発生しない */
  position: absolute;
  right: 8px;
  top: 31px; /* セル上 padding 8px + 1行分(約23px) = 容量などの数値の直下 */
  white-space: nowrap;
}
/* MD5 の絶対配置の基準となる行 */
.table > tbody > tr {
  position: relative;
}
/* コメントが1行だけでも MD5(2行目相当)が収まる行高を確保
   (td の height はテーブルでは最小高さとして働く) */
.table td.col-comment {
  height: 62px;
}
.md5-line,
details.old-versions .md5 {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 15px;
}
.md5-line code,
details.old-versions .md5 code {
  font-family: inherit;
  font-size: inherit;
  color: #777;
  background: transparent;
  padding: 0;
}
details.old-versions .md5,
details.old-versions .orig {
  color: #999;
  margin-left: .5em;
}

/* ナビバーなしページ(トップ): 固定ナビ分の余白を詰める */
body.no-nav {
  padding-top: 10px !important;
}

/* 詳細ページ: 同系列のバージョン一覧 */
.version-nav li.current {
  font-weight: bold;
}

/* JSなし navbar(常時展開・折りたたみボタンなし) */
.navbar-nav-static > li {
  float: left;
}
.navbar-nav-static > li > a {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* ステータスバッジ */
.badge-status {
  font-size: 12px;
  font-weight: normal;
}

/* 本文下広告2列と次セクション(統計)の間の余白 */
.ad-row-bottom {
  margin-top: 1em;
  margin-bottom: 2.5em;
}

/* グループセクション */
.group-section {
  margin-top: 2em;
}
h3.group-title {
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 10px;
}
h3.group-title small {
  font-size: 60%;
  margin-left: .75em;
}
.group-desc {
  margin-bottom: 14px;
}

/* ダウンロードテーブル最終行の下枠線 */
.group-section .table > tbody > tr:last-child > td {
  border-bottom: 1px solid #ddd;
}

/* 統計テーブル最終行の下枠線 */
tr.stats-last-row > th,
tr.stats-last-row > td {
  border-bottom: 1px solid #ddd;
}

/* テーブル内コメント列の折り返し */
.table td.col-comment {
  word-break: break-word;
  min-width: 14em;
}

/* テーブルヘッダーは常に1行表示(「DL数」などの折り返し防止) */
.table > thead > tr > th {
  white-space: nowrap;
}

/* DL数列: 最大4桁固定のため内容幅まで詰めて1行表示 */
.table th:last-child,
.table td.text-right {
  width: 1%;
  white-space: nowrap;
}
