/* base styles */
.wst-border {
	max-width:100%;
	display:block;
	box-sizing:border-box;
	border-style:solid;
	border-width:1px;
	border-color:currentcolor;
	margin:0.25em auto;
	padding:5px;
}
.wst-border.wst-border-left {
	margin-left:0;
}
.wst-border.wst-border-right {
	position:relative;
	margin-right:0;
}
.wst-border.wst-border-compact {
	display:table;
}
.wst-border.wst-border-fullwidth {
	width:100%;
}

/* ensure uniform spacing for nested borders */
.wst-border .wst-border {
	margin:0 auto;
}

/* Unset the default p margins next to the border.
   The border can then set these as needed. */
.wst-border > p:first-child {
	margin-top:0;
}
.wst-border > p:last-child {
	margin-bottom:0;
}

/* border2 */
.wst-border2 {
	padding:0.5em;
}

/* frame */
.wst-frame {
	border:2px solid #99B;
	padding:0.25em 1em;
}

/* centered box */
.wst-centered-box {
	text-align:center;
	padding:0.5em;
}

/* ruled box */
.wst-ruled-box {
	border-left:none;
	border-right:none;
	padding:0;
}