/*-------------------------------------------
Default styles
---------------------------------------------

These styles apply across most pages on the website and all media
types. Styles specific to particular layouts/pages and media
types are in additional style files.

Ben Sturmfels

------------------------------------------*/


/*------------------------------
Regular block level elements
------------------------------*/
body {
  color: black;
  font-size: 80%;
  font-family: sans-serif;
  background: white;
  min-width: 42em; /* around 500px for default of 16pt @ 100% */
  padding : 0;
  margin: 0;
}

p, h1, h2, h3, h4, li, dt, dd, pre {
  text-align: left; /* avoid IE6 bug */
}

h1 {
  font-size: 1.2em;
  clear: both;
  padding: 0.2em 0.5em 0 0;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.1em;
  margin: 1em 0 0.4em;
}

h3 {
  font-size: 1em;
  font-style: italic;
  margin: 0.6em 0.5em;
}

h4 {
  font-size: 1em;
  font-weight: normal;
  font-style: italic;
  margin: 0.8em 0.5em;
}

p {
  max-width: 50em; /* readable line width */
  margin: 0 0 1em 0;
}
dl { margin: 0 0 0.7em; }
blockquote { margin: 0; }


/*------------------------------
Page lagout blocks
------------------------------*/
#header {
  background: #ffffff;
  /*position: relative; /* children will be relative to this */
}

#content {
  color: #666;
  background: #fff url(../image/logo-barwon-coast.png) no-repeat bottom right;
  margin-bottom: 1.5em;

  padding-top: 1em; /* move to another style sheet */
}

#page-info {
  width: 15em;
  float: right;
  padding: 0;
  margin: 0.2em 0 0.2em 1em;
}

#panel {
  color: #225;
  background: #ccc;
  min-height: 450px; /* fit in background image - same as topic-menu */
  overflow: hidden;
  padding-top: 1em; /* move to another style sheet */
}

#footer {
  font-size: 0.9em;
  background-color: #666;
  min-height: 40px;
  clear: both;
  position: relative;
  padding: 0.5em 0;
}


/*------------------------------
Menus
------------------------------*/
#section-menu h2, #subsection-menu h2 { display: none; }

#overall-menu ul, #section-menu ul ,
#subsection-menu ul, #topic-menu ul {
  list-style: none;
  padding: 0; margin: 0;
}

#section-menu li a {
  white-space: nowrap;
  border-right: 1px solid #e6c57e;
  line-height: 0.9em;
  margin: 0.4em 0 0.4em 0;
}

#section-menu a:hover, #subsection-menu a:hover,
#topic-menu a:hover { text-decoration: underline; }

/*** Overall menu ***/
#overall-menu {
  background: #006eb9;
  height: 6em;
}
body.sec-1 #overall-menu {
 background: #006eb9;
}
body.sec-2 #overall-menu {
  background: #b24371;
}
body.sec-3 #overall-menu {
  background: #2aa159;
}
body.sec-4 #overall-menu {
  background: #45a6a5;
}

#overall-menu ul {
  float: right;
  margin: 0;
}

#overall-menu li {
  line-height: 2.2em;
  float: left;
  padding: 0;
  margin: 0 0.8em 0 0;
}

#overall-menu fieldset { float: left; }

#overall-menu li a {
  font-weight: bold;
  text-decoration: none;
}

#overall-menu li a:hover { text-decoration: underline; }


/*** Section menu ***/
#section-menu {
  font-family: trebuchet ms, sans-serif;
  clear: left;
  padding: 0;
  position: absolute; top: 0; right: 0;
}

#section-menu ul {
  background: #ffffff;
  background-position: left bottom;
  background-repeat: no-repeat;
  padding: 3em 0 0 0;
  margin: 0 0 0 280px;
  min-height: 2.5em;
}

* html #section-menu ul {
  height: 2em;
}

body.sec-1 #section-menu ul {
  background-image: url(../image/corner-section-menu-section-1.png);
}
body.sec-2 #section-menu ul {
  background-image: url(../image/corner-section-menu-section-2.png);
}
body.sec-3 #section-menu ul {
  background-image: url(../image/corner-section-menu-section-3.png);
}
body.sec-4 #section-menu ul {
  background-image: url(../image/corner-section-menu-section-4.png);
}

#section-menu li {
/*  line-height: 2em;*/
  /* if floating is done from <a>, then items will not wrap */
  float: left;
  padding: 0;
  margin: 0 4px 0 0;

}

#section-menu li.first { padding-left: 0; border: none; }

#section-menu li a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 0 1em;
}

body.sec-1 #section-menu li.current a {
  color: #197cc0;
  background-image: none;
}
body.sec-2 #section-menu li.current a {
  color: #b24371;
  background-image: none;
}
body.sec-3 #section-menu li.current a {
  color: #2aa159;
  background-image: none;
}
body.sec-4 #section-menu li.current a {
  color: #45a6a5;
  background-image: none;
}

#section-menu li a { padding: 6px 0.5em 6px 0.5em; }

/*** Sub-section menu ***/
#subsection-menu {
  font-family: trebuchet ms, sans-serif;
  background: #fff;
  clear: left;
  padding: 0;
}

#subsection-menu ul {
  width: 100%; /* same as for section-menu */
  padding: 0;
}

#subsection-menu li {
  line-height: 2.5em;
  /* if floating is done from <a>, then items will not wrap */
  float: left;
  min-height: 30px;
  padding: 0;
  margin: 0 0 0 1.7em; display: inline; /* dbl margin bug */
}

#subsection-menu li a {
  color: #333;
  text-decoration: none;
  font-weight: normal;
  display: block;
}

/* Sub-section menus for each section
Using subsection ul for background colour - strange IE 6
problem applying it to div */
body.sec-1 #subsection-menu ul {
  background-color: #fff;
  border-top: 1px solid #e6c57e;
  border-bottom: 1px solid #e6c57e;
  margin-top: 5px;
}
body.sec-2 #subsection-menu ul {
  background-color: #fff;
  border-top: 1px solid #e6c57e;
  border-bottom: 1px solid #e6c57e;
  margin-top: 5px;
}
body.sec-3 #subsection-menu ul {
  background-color: #fff;
  border-top: 1px solid #e6c57e;
  border-bottom: 1px solid #e6c57e;
  margin-top: 5px;
}
body.sec-4 #subsection-menu ul {
  background-color: #fff;
  border-top: 1px solid #e6c57e;
  border-bottom: 1px solid #e6c57e;
  margin-top: 5px;
}

/* All links in various subsection menus */
body.sec-1 #subsection-menu li a { color: #197cc0; }
body.sec-2 #subsection-menu li a { color: #b24371; }
body.sec-3 #subsection-menu li a { color: #2aa159; }
body.sec-4 #subsection-menu li a { color: #45a6a5; }

/* Current link in various subsection menus */
body.sec-1 #subsection-menu li.current a, body.sec-2 #subsection-menu li.current a, body.sec-3 #subsection-menu li.current a, body.sec-4 #subsection-menu li.current a
{
  font-weight: bold;
}

/*** Topic menu ***/
#topic-menu {
  background: #ccc;
  min-height: 305px; /* same as for panel */

  padding-top: 1em; /* move to another style sheet */
}

* html #topic-menu { height: 305px; } /* lame */

/* different topic menus for each section */
body.sec-1 #topic-menu { background: #cfe2fa; }
body.sec-2 #topic-menu { background: #cfe2fa; }
body.sec-3 #topic-menu { background: #cfe2fa; }
body.sec-4 #topic-menu { background: #cfe2fa; }

#topic-menu h2 { display: none; }

#topic-menu ul {
  padding: 0 0 0 1em;
  margin: 0;
}

#topic-menu li {
  text-align: left;
  padding: 0 0.5em 0 1em;
  border-bottom: 2px dotted #aaa;
  margin: 0 0 0.4em;
}

#topic-menu li a {
  color:  #34356B;
  background: url(../image/arrow-topic-menu.png) no-repeat right center;
  text-decoration: none;
  line-height: 1.8em;
  font-weight: bold;
  display: block;
  padding: 0 25px 0 0;
}

#topic-menu li.current a {
  color: #c23278;
  background: url(../image/arrow-topic-menu-current.png) no-repeat right center;
}

#topic-menu .decoration {
  background: url(../image/temp/topic-menu-pic.jpg) no-repeat bottom left;
  width: 100%; min-height: 130px;
  margin: 0 0 0 1em;
}


/*------------------------------
Content
------------------------------*/
/* bad because em sizes are slightly different */
#content h2, #content p { margin-left: 0.5em; margin-right: 0.5em; }

#content h1 { margin-left: 0.4em; }

#content h1#page-title {
  background: transparent;
  font-size: 2em;
  font-weight: normal;
  line-height: 1.0;
  border-bottom: 1px solid #027d74;
  margin-left: 0.3em;
  /*color: white;
  background: #999;
  padding-left: 0.5em;
  margin-left: 0;*/
}

#content h1#page-title {
  border-color: #e6c57e;
}

body.sec-1 #content h1, body.sec-1 #content h2, body.sec-1 #content h3, body.sec-1 #content h4 { color: #006eb9; }
body.sec-2 #content h1, body.sec-2 #content h2, body.sec-2 #content h3, body.sec-2 #content h4  { color: #b24371; }
body.sec-3 #content h1, body.sec-3 #content h2, body.sec-3 #content h3, body.sec-3 #content h4 { color: #2aa159; }
body.sec-4 #content h1, body.sec-4 #content h2, body.sec-4 #content h3, body.sec-4 #content h4 { color: #45a6a5; }

#content h4 { line-height: 1.5; }

#content #summary p {
  font-size: 1.1em;
  font-style: italic;
  font-weight: bold;
  clear: left;
}

body.sec-1 #content #summary p { color: #006eb9; }
body.sec-2 #content #summary p { color: #b24371; }
body.sec-3 #content #summary p { color: #2aa159; }
body.sec-4 #content #summary p { color: #45a6a5; }


/*------------------------------
Panel
------------------------------*/
* html #panel { height: 450px; } /* grumble, grumble */

#panel h1, #panel h2, #panel h3, #panel h4,
#panel p, #panel li {
  padding-left: 1em;
  margin-right: 1em;
}

h1#panel-title {
  color: white;
  background: #666;
  padding-left: 0.5em;
  margin-left: 0;
}

#panel h2 {
  padding-top: 0.3em;
  border-top: 1px dotted #bdd;
}

#panel p img {
  margin: 0 0 0.5em 0.3em;
}

#panel p {
  color: #666;
}

#panel .decoration {
  float: none;
  margin: 0.5em 1em;
}

#panel {
    background: #f3e3bA;
}

body.sec-1 h1#panel-title { background-color: #006eb9; }
body.sec-2 h1#panel-title { background-color: #b24371; }
body.sec-3 h1#panel-title { background-color: #2aa159; }
body.sec-4 h1#panel-title { background-color: #45a6a5; }

/*------------------------------
Forms
------------------------------*/
fieldset { border: none;}

/* Search form */
#search-form, #search-form fieldset {
  padding: 0; margin: 0;
}
#search-form label, #search-form legend { display: none; }

/* Would like to do sky bike icon with generated content, but not
widely enough supported. Have for the moment added it as a
right-aligned background that fits inside the right padding of
the form. */
#search-form {
  text-align: right;

  line-height: 34px;
  background-position: left bottom;
  background-repeat: no-repeat;
  display: block; /* double margin bug */
  width: 23em;
  float: right;
  min-height: 34px;
  padding: 0 0 0 2em;
  margin: 0;
  position: relative; z-index: 10;
}

/* extra top space as IE 6 messes up the line-height */
* html #search-form {
  padding: 0.3em 0 0.5em 2em;
}

body.sec-1 #search-form {
  background-color: #006eb9;
  background-image: url(../image/corner-search-section-1.png);
}
body.sec-2 #search-form {
  background-color: #b24371;
  background-image: url(../image/corner-search-section-2.png);
}
body.sec-3 #search-form {
  background-color: #2aa159;
  background-image: url(../image/corner-search-section-3.png);
}
body.sec-4 #search-form {
  background-color: #45a6a5;
  background-image: url(../image/corner-search-section-4.png);
}

#search-input {
  width: 12.5em;
  padding: 0;
  margin: 0 0.5em 0;
  position: relative; /* put seagull behind */
  z-index: 10;
}

#search-button {
  position: relative; /* put seagull behind */
  z-index: 10;
}

* html #search-button {
  top: 2px;
}

#search-form img { vertical-align: middle; }

/*------------------------------
Header
------------------------------*/
#header dl { margin: 0; }


/*------------------------------
Branding
------------------------------*/
#branding p { display: none; } /* hide slogan for browsers using this style sheet -- put this somewhere else! */

#branding {
  background-position: left top;
  background-repeat: no-repeat;
  height: 75px;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}

body.sec-1 #branding {
  background-color: #006eb9;
  background-image: url(../image/banner-1.jpg);
}
body.sec-2 #branding {
  background-color: #006eb9;
  background-image: url(../image/banner-2.jpg);
}
body.sec-3 #branding {
  background-color: #2aa159;
  background-image: url(../image/banner-3.jpg);
}
body.sec-4 #branding {
  background-color: #45a6a5;
  background-image: url(../image/banner-4.jpg);
}

#branding h1 {
  background-position: left bottom;
  background-repeat: no-repeat;
  float: left;
  width: 245px; height: 45px;
  padding: 0; margin: 0;

  position: absolute; left: 1em; top: 1em;
}

body.sec-1 #branding h1 {
  background-image: url(../image/logo-section-1.png)
}
body.sec-2 #branding h1 {
  background-image: url(../image/logo-section-2.png)
}
body.sec-3 #branding h1 {
  background-image: url(../image/logo-section-3.png)
}
body.sec-4 #branding h1 {
  background-image: url(../image/logo-section-4.png);
}

#branding h1 a {
  visibility: hidden;
  display: block;
}

#header h2 {
  padding: 10px 0 0 180px;
  margin: 0;
}

/*------------------------------
Breadcrumbs
------------------------------*/
#breadcrumbs {
  display: none;
  font-size: 0.9em;
  line-height: 1.2;
  color: #666;
  max-width: none;
  padding: 0.71em 0 0.71em 1.67em; /* 1.5/font-size */
  margin: 0;
}

#breadcrumbs a {
  color: #666;
  font-weight: bold;
  text-decoration: none;
}
#breadcrumbs a:hover { text-decoration: underline; }


/*------------------------------
Page info
------------------------------*/
#page-info {
  color: #999;
  font-size: 0.85em;
}

#page-info h2 { display: none; }

#page-info ul {
  list-style: none;
  padding: 0;
  border-top: 1px dotted #fff;
  margin: 0;
}

#page-info li {
  line-height: 2em;
  padding: 0 0 0 35px;
  border: 1px solid #ddd;
  margin: 0 0 0.2em 0;
}

#page-info a {
  color: #999;
  text-decoration: none;
  display: block;
  padding: 0;
}

#page-info a:hover {
  text-decoration: underline;
}

#page-info li.author {
  background: url(../image/icon-author.png) no-repeat 10px center;
}
#page-info li.e-update {
  background: url(../image/icon-mail.png) no-repeat 10px center;
}
#page-info li.discuss {
  background: url(../image/icon-discuss.png) no-repeat 10px center;
}
#page-info li.sendfriend {
  background: url(../image/icon-send-to-friend.png) no-repeat 10px center;
}
#page-info li.searchterm {
  background: url(../image/icon-searchwords.png) no-repeat 14px 50%;
}

/*------------------------------
Footer
------------------------------*/
* html #footer { height: 40px; }

#footer {
  background: #fff;
}

#footer p {
  line-height: 2em;
  margin: 0; padding: 0.8em 0 0;
}

#footer p, #footer p a, #footer #page-rating { color: #3f92ca; }

#footer #copyright {
  float: left;
  /* margin: 0 0 0 1em; */
  margin: 0 0 0 3em;
}

#footer #top-page {
  float: right;
}
#top-page a {
  background: url(../image/icon-top.png) no-repeat right center;
  float: right;
  min-height: 18px;
  padding-right: 25px;
  margin: 0 1em 0 0;
}
* html #top-page a { height: 18px; }

#page-rating {
  font-style: italic;
  text-align: right;
  float: right;
  clear: both;
  padding: 0 0 88px 0; /* room for logo - would be on content, but for Safari */

  margin: 1em 0 0;
 }
#page-rating span.question { }

/*------------------------------
Float clearing
------------------------------*/
/* Ensures that an element will expand to contain floating children */

#page-rating:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* Section menu */
#header:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
/* Hides from IE-mac \*/
/* Height for IE not needed - previously defined */
#header { display: block; }
/* End hide from IE-mac */

/* Section menu */
#section-menu ul:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;

}
/* Hides from IE-mac \*/
/* Height for IE not needed - previously defined */
#section-menu ul { display: block; }
/* End hide from IE-mac */

/* Section menu */
#subsection-menu ul:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
/* Hides from IE-mac \*/
/* Height for IE not needed - previously defined */
#subsection-menu ul { display: block; }
/* End hide from IE-mac */

/* Footer */
#footer:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
/*#footer { display: inline-table; } disabled for testing*/
/* Hides from IE-mac \*/
* html #footer { height: 1%; }
#footer { display: block; }
/* End hide from IE-mac */


/*------------------------------
Other
------------------------------*/
img {
  border: 0;
}

.skip { display: none; }

/* Spacer to fix for IEs incorrect treatment of floats */
/*.IE-space { line-height: 1px; clear: right;}*/

/*#content p img[align=left],*/
#content img.figleft {
  float: left;
  clear: left;
  margin: 0.2em 1em 0 0;
}
/*#content p img[align=right],*/
#content img.figright {
  float: right;
  clear: right; /* don't think this will work -- will still clear left if after a left align image */
  margin: 0.2em 0 0 1em;
}