/* 
  -- Even more rounded corners with CSS: Base stylesheet --
*/

.rounded {
 position:relative;
 margin:0px auto;
 min-width:8em;
 max-width:940px; /* based on image dimensions - not quite consistent with drip styles yet */
 z-index:1;
 margin-left:12px; /* default, width of left corner */
 margin-bottom:0.5em; /* spacing under rounded */
}

.rounded .rcontent,
.rounded .top,
.rounded .bottom,
.rounded .bottom div {
 background:transparent url(/assets/images/rounded.png) no-repeat top right;
}

.rounded .rcontent {
 position:relative;
 zoom:1;
 _overflow-y:hidden;
 padding:0px 12px 0px 0px;
}

.rounded .top {
 /* top+left vertical slice */
 position:absolute;
 left:0px;
 top:0px;
 width:12px; /* top slice width */
 margin-left:-12px;
 height:100%;
 _height:1600px; /* arbitrary long height, IE 6 */
 background-position:top left;
}

.rounded .bottom {
 /* bottom */
 position:relative;
 width:100%;
}

.rounded .bottom,
.rounded .bottom div {
 height:30px; /* height of bottom cap/shade */
 font-size:1px;
}

.rounded .bottom {
 background-position:bottom right;
}

.rounded .bottom div {
 position:relative;
 width:12px; /* bottom corner width */
 margin-left:-12px;
 background-position:bottom left;
}

.rounded .hd,
.rounded .bd,
.rounded .ft {
 position:relative;
}

.rounded .wrapper {
 /* extra rcontent protector - preventing vertical overflow (past background) */
 position:static;
 max-height:1000px;
 overflow:auto; /* note that overflow:auto causes a rather annoying redraw "lag" in Firefox 2, and may degrade performance. Might be worth trying without if you aren't worried about height/overflow issues. */
}

div#roundedTop,
div#roundedBottom {
  position: relative;
  float: left;
  height: 10px;
  width: 200px;
  left: -18px;
}

div#roundedTop {
  background:transparent url(/assets/images/roundedTopLeft.png) no-repeat top right;
}
div#roundedBottom {
  background:transparent url(/assets/images/roundedBottomLeft.png) no-repeat top right;
}