#heading
{
  display: table;
  table-layout: fixed;
  width: 100%;
  border: none;
}

/* Since it is a link to itself, it will always be visited. */
#heading a:visited {color: #006fbf;}
#heading a:hover, h1 a:active {color: #0087e7; text-decoration: none;}

h1
{
  font-family: monospace;
  font-weight: normal;
  font-size: 2.074em;
  line-height: 1.4em;

  margin: .6em 0 .6em 0;

  display: table-cell;
  text-align: left;
}

#heading > a
{
  font-size: 1.32em;
  line-height: 1.4em;

  display: table-cell;
  text-align: right;
  width: 3.2em;
  vertical-align: middle;
}

h2
{
  font-style: italic;
  font-weight: normal;
  font-size: 1.32em;
  line-height: 1.4em;

  margin: .4em 0 .4em 0;
}

h1, h2
{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Re-styling for full page variant. */

.full h2
{
  white-space: normal;
}

/*
 * Description (plain text).
 *
 * This is a <pre> block that fits lines up to 80 characters long and
 * wraps longer ones.
 */
#description.plain pre
{
  font-size: 0.85em;
}

/*
 * Description (Markdown).
 *
 * These are descendants of the <div> block containing the result of
 * Markdown-to-HTML translation.
 *
 * Note that the Markdown code blocks are translated into the
 * <pre><code>...<code/></pre> element construct.
 */
#description.markdown h1,
#description.markdown h2
{
  white-space: normal;
}

/* code-box.css */
#description.markdown :not(pre) > code
{
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.2em;
  padding: .2em .32em .18em .32em;
}

/* pre-box.css */
#description.markdown pre
{
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.2em;
  padding: .8em .4em .8em .4em;
  margin: 2em -.4em 2em -.4em; /* Use paddings of #content. */
}

#description.markdown pre > code
{
  font-size: inherit;
}

#description.markdown .error {color: #ff0000;}

/*
 * Package details table.
 */
#package
{
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
#package th {width: 7.6em;}

#package tr.topics td a,
#package tr.project td a
{
  display: inline-block;

  background-color: #f1f8ff;
  border-radius: 0.2em;
  padding: 0 .5em .06em .5em;
  margin: 0 0.35em 0.1em 0;
}

#package tr.topics td a:visited,
#package tr.project td a:visited
{
  color: #3870c0;
}

#package tr.topics td a:hover,
#package tr.project td a:hover
{
  text-decoration: none;
  background-color: #def;
}

#package tr.topics td,
#package tr.project td
{
  padding: 0;
  margin: 0 0 0 -0.5em;
}

/*
 * Search form (based on form-table)
 */
#search-txt, #search-txt input {width: 100%;}
#search-btn {padding-left: .4em;}

/*
 * Version count.
 */
#count
{
  font-size: 1.32em;
  line-height: 1.4em;
  color: #555;

  margin: 1.2em 0 0 0;
}

/*
 * Version table.
 */
table.version
{
  margin-top: .8em;
  margin-bottom: .8em;

  padding-top: .4em;
  padding-bottom: .4em;
}
table.version:nth-child(even) {background-color: rgba(0, 0, 0, 0.07);}

table.version th {width: 7.6em;}

table.version tr.version td .value,
table.version tr.priority td .value,
table.version tr.repository td .value,
table.version tr.depends td .value,
table.version tr.requires td .value
{
  /* <code> style. */
  font-family: monospace;
  font-size: 0.94em;
}

table.version tr.priority td .security {color: #ff0000; font-weight: bold;}
table.version tr.priority td .high     {color: #ff0000;}
table.version tr.priority td .medium   {color: #fe7c04;}