/* Styles for site(desktop version) */
/* This is referenced from 
   the main site: ctc-cambridge.org.uk/head.ssi
   
   # denotes a named div
   
*/

img {
  border: 0;
  display: block;
}

/* body: define appearance of whole screen */

body  {
    /* define general appearance of whole screen */
  margin: 0; 
  padding: 0;
  border: 0;
}

@media screen, aural, braille, embossed, handheld, projection, screen, tty, tv {
  body  {
    /* mid green (colour #692) background, with a 1000px white strip down the centre */
    background: #692 url(http://ctc-cambridge.org.uk/resources/whitebackground1000x50.gif) top center repeat-y;
    text-align: center;
  }
}

@media print {
}

/* Wrapper */

@media screen, aural, braille, embossed, handheld, projection, screen, tty, tv {
  #wrapper {
    margin: 0 auto;
    padding: 0;
    border: 0;
    width: 1000px; 
    text-align: left;
    /* not sure what this is */
    /* #fff is white */
    /* background: #fff url(http://www.blogblog.com/moto_son/innerwrap.gif) top right repeat-y; */
    background:#fff;
    font-size:100%;
    }
}
@media print {
  #wrapper {
  }
}
@media handheld {
  #wrapper {
    width: 90%;
    }    
}
    
  
  /* Inner layout */

#content  {
  font: small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucida Grande", lucida, helvetica, sans-serif;
  padding: 0 20px;
}
  
@media all {

  #sidebarLeft  {
    width:16%; 
    float: left;
    padding-right: 10px;
    }
    
  #main {
    width:46%; /* width and min-width are programatically changed in osmaps.js to display a larger map */
    min-width:500px; 
    float: left;
    padding-left: 10px;    
    padding-right: 10px;
    }
    
  #sidebar  {
    width:27%; min-width: 250px;
    float: right;
    padding-left: 10px;    
    }
  }
  
@media print {
 
  #main {
    width: 170mm;
    float: none;
    padding-left: 0px;    
    padding-right: 0px;
  }
  
  
  #main a:link, a:visited {
  font-weight : normal; 
  text-decoration : none;
  color: black; 
  }    
  
}

  /* Bottom layout */


#footer {
  clear: left;
  margin: 0;
  padding: 0 20px;
  border: 0;
  text-align: left;
  border-top: 1px solid #f9f9f9;
  /* background-color: #fdfdfd; */
  font: small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucida Grande", lucida, helvetica, sans-serif;  
}
  
#footer p {
  text-align: left;
  margin: 0;
  padding: 10px 0;
  font-size: x-small;
  /* background-color: transparent; */
  color: #999;
  }
  
  /* Typography */
  
#sidebarLeft p, #main p, #sidebar p{
  line-height: 140%;
  /* margin-top: 5px; */
  margin-bottom: 1em;
  }
  
#nextrides p {
    /* reduce line height slightly for nextrides list */
  line-height: 125%;
  margin-top: 5px;
  margin-bottom: 1em;
  }
  
.post-body {
  line-height: 140%;
  } 
  
.post-footer { 
  /* Nigel: reduce to 80%, add 25px margin after post footer */
  font-style: italic; 
  font-size: 80%;
  margin-bottom: 25px;
}

h2 {
  margin: 25px 0 12px 0;
  padding: 0;
  }
  
h2  {
  font-size: large;
  } 

h3 {
  margin-top: 5px;
  font-size: 110%;
  }

ul  {
  margin: 0 0 25px 0;
  }


li  {
  line-height: 160%;
  }

#sidebarLeft ul, #sidebar ul  {
  padding-left: 10px;
  padding-top: 3px;
  }

#main ul, #main li {
  vertical-align: top;
  margin: 0;
  }
  
#sidebarLeft ul, #sidebar ul li {
  vertical-align: top;
  padding: 0;
  margin: 0;
  }
    
  
/* lists of links, as used in the left sidebar.
   should be a series of <p> elements 
   inside a <div id="links"> */ 

#links p {
  margin-top: 1px;
  margin-bottom: 1px;
}
  
dl.profile-datablock  {
  margin: 3px 0 5px 0;
  }
dl.profile-datablock dd {
  line-height: 140%;
  }
  
.profile-img {display:inline;}

.profile-img img {
  float:left;
  margin:0 10px 5px 0;
  border:4px solid #8b2;
  }
    
#comments {
  border: 0;
  border-top: 1px dashed #eed;
  margin: 10px 0 0 0;
  padding: 0;
  }

#comments h3  {
  margin-top: 10px;
  margin-bottom: -10px;
  font-weight: normal;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  } 

#comments dl dt   {
  font-weight: bold;
  font-style: italic;
  margin-top: 35px;
  padding: 1px 0 0 18px;
  background: transparent url(http://www.blogblog.com/moto_son/commentbug.gif) top left no-repeat;
  color: #998;
  }

#comments dl dd {
  padding: 0;
  margin: 0;
  }
  
.deleted-comment {
  font-style:italic;
  color:gray;
  }
.paging-control-container {
  float: right;
  margin: 0px 6px 0px 0px;
  font-size: 80%;
}
.unneeded-paging-control {
  visibility: hidden;
}


/* Feeds
----------------------------------------------- */
#blogfeeds {
  }
#postfeeds {
  }
  
#buffer { position:absolute; visibility:hidden; left:0; top:0 }

div#display { 
    margin: 2em 1em 2em 0;
    border: dotted 2px #999;
    padding:6px 8px;
    display:none; /* until loaded */
}

/* New dynamically-generated monthly runslists */
/* Assumes the left and right sidebars have been disabled and the table can occupy the whole width of the page */
/* Note that the column widths are also hardcoded into the HTML as well */

table.runslist {
  border-width: 1px; 
  border-spacing: 0px;
  border-style: outset;
  border-color: black;
  border-collapse: collapse;
  background-color: white;
}
table.runslist th {
  border-width: 1px;
  padding: 3px;
  border-style: inset;
  border-color: black;
  background-color: white;
  -moz-border-radius: ;
}
table.runslist td {
  border-width: 1px;
  padding: 3px;
  border-style: inset;
  border-color: black;
  background-color: white;
  -moz-border-radius: ;
}
     
@media screen {
  table.runslist {
    width:900px;
  }    
}

@media print {
  table.runslist {
      font-size:80%;
    width:600px;
  }    
}

/**************************************************************************************/
/* Stop and ride description pages                                                    */ 
/**************************************************************************************/

iframe.emmap {
  /* iframe holding a map */
  width:100%; 
  border-style:solid; 
  border-width:1px;
}

#stopphoto img { 
    width:50%;
    max-width: 350px;    
    float: right;
    padding-left:12px;
    padding-bottom:6px;
} 

/* Embedded OS maps (for both stops and rides pages) */
#map { 
  clear:both;
  position:relative; /* Needed so we can superpose a legend on it */
  width: 100%; 
  height: 500px; 
  border:1px solid black;
}

/**************** Larger/smaller map control (overrides for desktop mode) *******************/

#largerMap {
  /* the "Show larger map" control, initially displayed */
  display:block;
}

#smallerMap {
  /* the "Show smaller map" control, initially not displayed */
  display:none;
}

#detailsButton {
  /* the ride/start/stop details button, only shown in raw mode which has a different stylesheet */
  display:none;
}

/**************** Printing maps - see print styles in styles.css *************/

