@import url(buttons.css);
@import url(autocomplete.css);
@import url(stars.css);

/* ============= */
/* = Utilities = */
/* ============= */

.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix { display: inline-block; } /* for IE/Mac */

.cleared { clear: both; }
hr.cleared {
	height: 0 ! important;
	visibility: hidden;
}

hr.nomargin { margin: 0; }

/* ======================= */
/* = Fixes to KForge CSS = */
/* ======================= */

#top h1 a:hover {
	background: transparent;
}

#top {
	margin: 0.3em 0 0 0;
}

#top-bar img {
	margin: -5px 0 0 0;
	vertical-align: middle;
}

#subnav img {
	margin: -2px 0 0 0;
	padding: 0 3px 0 1px;
	vertical-align: middle;
}

#subnav li.intro {
	color: #777;
	padding-right: 5px;
}

#subnav:empty {
	background: transparent;
	height: 0;
}

#primary {
	margin-top: 32px;
}

#main hr {
	color: #ddd;
	background-color: #ddd;
	border: none;
	height: 3px;
}

table {
	border-collapse: collapse;
	border: none;
	border-radius: 1em;
	margin: 0 0 1.2em 0;
}

table th, table td {
	border: 1px solid #ccc;
	border-top-color: #eee;
	border-left-color: #eee;
	padding: 0.3em;
}

table td {
	background: #f0f0f0;
}

table th {
	background: #fff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Lucida Grande', 'Lucida Sans Unicode', Lucida, Arial, Helvetica, sans-serif;
	letter-spacing: -0.02em;
}

.box {
	padding-top: 0.2em;
	border: 1px solid #ebd897;
	border-left: none;
	border-top: none;
	border-radius: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}

/* ========================================= */
/* = Changes/additions to kforge forms.css = */
/* ========================================= */

input.openid {
	background: transparent url(../images/icons/openid.png) 2px 2px no-repeat;
	padding-left: 22px;
}

input.openid:focus {
	background-position: 1px 1px;
	padding-left: 21px;
}

/* ============== */
/* = Pagination = */
/* ============== */

.pager {
	width: 100%;
	text-align: center;
	margin: 0 0 1.2em 0;
	clear: both;
}

.pager span, .pager a {
	text-decoration: none;
	margin: 0em;
	border: none;
	padding: 0.3em 0.1em;
}

.pager a:hover, .pager a:active {
	color: #fff;
	background-color: #c22;
}

.pager span.pager_dotdot {
	color: #aaa;
}

.pager span.pager_curpage {
	font-weight: bold;
	border: 1px solid #ddd;
}

/* ======================= */
/* = Various iconography = */
/* ======================= */

img.icon {
	height: 25px;
}

a.icon {
	display: block;
	height: 0;
	overflow: hidden;
	padding-top: 20px;
	width: 20px;
}

table.no-margin { margin: 0; }

div.extras-new-field label {
	display: inline;
	line-height: 2.6em;
}

label.inline {
	display:inline;
	margin: 1em 0 0 1em;
}

dl.icons dt {
	float: left;
	clear: both;
	margin: 0.4em 0 0 0;
	height: 16px;
	width: 16px;
}

dl.icons dt img {
	vertical-align: middle;
}

dl.icons dd {
	float: left;
	margin: 0.4em 0 0 10px;
}

dl.icons dd.tiny {
	font-size: 75%;
	color: #888;
	line-height: 1.2em;
	margin: 0 0 0 26px;
}

/* =============== */
/* = Tag listing = */
/* =============== */

ul.tags {
	list-style: none;
	padding: 0;
	line-height: 2em;
}

ul.tags li {
	float: left;
}

.tags a {
	-webkit-border-radius: 0.3em;
	-moz-border-radius: 0.3em;
	border-radius: 0.3em;
	background: #AFC6E9;
	color: #400F16;
	text-decoration: none;
	padding: 0.2em;
	margin: 0 0.2em;
}

.tags a:hover {
	background: #2B69C6;
	color: #fff;
	text-decoration: none;
	padding: 0.2em;
	margin: 0 0.2em;
}

/* =================== */
/* = Package listing = */
/* =================== */

ul.packages {
	padding-left: 0;
}

.packages li {
	list-style: none;
	padding: 0.4em 0 0.4em 0.5em;
	border-left: 0.5em solid #fff;
	border-bottom: 1px solid #ececec;
	overflow: hidden;
	white-space: nowrap;
}

.packages li a {
	text-decoration: none;
}

.packages li img {
	margin-bottom: -2px;
}

.openness {
	display: inline;
	vertical-align: bottom;
}

.packages li.fullyopen {
	border-left: 0.5em solid #AFC6E9;
}

.packages li .tags {
	margin: 0 0 0 0.5em;
	font-size: 80%;
	opacity: 0.3;
}

.packages li:hover .tags {
	opacity: 1;
}

/* ==================== */
/* = Extra RHS styles = */
/* ==================== */

.sidebar dl {
	margin: 0 1em 0.8em 1em;
	padding: 0;
}

.sidebar hr {
	width: 90%;
	color: #EBDBA7;
	background-color: #EBDBA7;
	border: none;
	height: 1px;
}

.sidebar .buttons {
	margin-top: 0;
}

.sidebar .buttons a, .sidebar .buttons button {
	margin-bottom: 0.3em;
}

.okdstripe {
	/* Amusingly, this has to be a slightly different color to look the same
	   as the stripe on a white background */
	border-left: 0.5em solid #8FB0DE;
	padding-left: 0.4em ! important;
}

/* ===================== */
/* = Package read view = */
/* ===================== */

.package h4 {
	font-weight: bold;
	margin: 1em 0 0.6em 0;
}

.package .information {
	font-size: 85%;
	background: #efefef;
	width: 31%;
	float: right;
	border: 1px solid #ccc;
	border-top: none;
	border-left: none;
	border-radius: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}

.package .information dl.icons {
	margin: 0em 0.4em 0.4em 0.4em;
}

.package .head {
	margin-bottom: 0;
}

.package .name, .group .name {
	color: #888;
	font-family: monospace;
}

.package .url a {
	text-decoration: none;
}

.package .notes, .group .description {
	width: 65%;
	padding: 0.2em 0 0.2em 1%;
	margin: 0 3% 0.5 0 ! important;
	border-left: 1px solid #ccc;
}

.package .notes span.nonegiven {
	opacity: 0.5;
}
.package .notes span.nonegiven:hover {
	opacity: 1;
}

.twocol {
	margin: 1em 0 0 0;
}

.twocol > div {
	width: 49%;
	min-height: 10em;
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: top;
	margin: 0;
	zoom: 1;
	*display: inline;
}

.twocol h4 {
	margin-top: 0;
	padding-top: 0.5em;
}

.twocol hr {
	height: 1px ! important;
}

.package .grouplist, .package .rating {
	border-left: 1px solid #ddd;
	padding-left: 0.5em;
}
