/*********************************************************************
 * default.css                                                       *
 *                                                                   *
 * Default stylsheet (CSS2) for documents on this site:              *
 *                                                                   *
 *      http://www.avtokrator.org/cwynne/                            *
 *                                                                   *
 *********************************************************************
 * $Id: default.css,v 1.19 2008/06/30 22:16:22 cwynne Exp cwynne $
 *********************************************************************/

  /* Imported Stylesheets ********************************************/
   @import      "/cwynne/css/sitenav.css";                         /**/
   @import      "/cwynne/css/theme/default.css";                   /**/

  /* Debugging *******************************************************/
                                                             /* {{{ */
.debug * {
    border:             1pt dotted red;
}

.debug DIV {
    border:             1pt solid red;
}
                                                             /* }}} */

  /* Global Settigns *************************************************/
                                                             /* {{{ */
* {
    margin:             0pt;
    padding:            0pt;
    position:           relative;
}

HTML, BODY {
    height:             100%;
    min-height:         100%;
}
                                                             /* }}} */

  /* Page Structure **************************************************/
                                                             /* {{{ */
#page {
    min-height:         100%;
    padding:            1ex 1em;
}

#banner {
    margin:             0pt 0pt 1em;
    min-height:         6.25ex;
    padding:            1ex 1em;
}

BODY > * #nav, BODY > * #main {
    margin-bottom:      12ex;
}

#nav {
    float:              left;
    width:              26%;
}

#main {
    float:              right;
    width:              70%;
}

BODY > * #main {
    width:              72%;
}

.clear {
    clear:              both;
}

#footer {
    height:             6ex;
    padding:            2pt 1em;
    position:           relative;
    margin-bottom:      2ex;
}

BODY > * #footer {
    margin:             0pt;
    position:           absolute;
    top:                auto;
    bottom:             3ex;
    right:              1em;
    left:               1em;
}
                                                             /* }}} */

    /* Print Medium Specifications ***********************************/
                                                             /* {{{ */
.print-blk   {      display:       none;                    }
.print-line  {      display:       none;                    }

@media print {

    * {             color:          black;                  }
    .print-blk  {   display:        block;
                    float:          left;                   }
    .print-line {   display:        inline;                 }
    #banner {       border-bottom:  4pt double black;       }
    #sitenav {      display:        none;                   }
    #nav {          display:        none;                   }
    #main {         margin:         0 0 4em;
                    padding-bottom: 2em;
                    width:          100%    !important;     }
    #footer {       display:        none;                   }
}
                                                             /* }}} */

  /* Ubiquitous classes **********************************************/
                                                             /* {{{ */
.left {
    text-align:         left            !important;
}

.center {
    text-align:         center          !important;
}

.right {
    text-align:         right           !important;
}

.noindent {
    text-indent:        0pt             !important;
}
                                                             /* }}} */

  /* Page Navigation Bar *********************************************/
                                                             /* {{{ */
#nav H1 {
    margin-top:         1em;
    padding:            0.75ex 1ex 0.75ex 2em;
}

    /* See the description of the :first-child IE hack below. */
#nav H1 {
    margin-top:         0em;
}

#nav * + H1 {
    margin-top:         1em;
}

#nav UL, #nav DL {
    list-style:         none;
}

#nav LI, #nav DD {
    margin-bottom:      2pt;
}

#nav * UL, #nav * DL {
    margin-top:         2pt;
}

    /* :first-child hack. */
#nav LI, #nav DT {
    margin-top:         0pt;
}

#nav * + LI, #nav * + DT {
    margin-top:         2pt;
}

#nav A {
    display:            block;
    padding:            0.75ex 1ex;
}

#nav LI LI A {
    padding-left:       3ex;
}
                                                             /* }}} */

  /* Main ************************************************************/
                                                             /* {{{ */
    /* This should be margin-top for all H1, and no margin for
     * :first-child, but IE (of course) does not grok :first-child.
     * So, we reverse the selctor.  The * + H1 thing means 'any H1
     * that is a second (or later) sibling', i.e., not a
     * :first-child.
     *****************************************************************/
#main A.pdf {
    background:         url('/cwynne/images/misc/pdf.png') right center no-repeat;
    padding-right:      18px;
}

#main H1 {
    margin-bottom:      1ex;
}

#main * + H1 {
    margin-top:         2em;
}

#main H2 {
    margin:             1em 0pt 1ex 1.5em;
}

#main H3 {
    margin:             1.5ex 0pt 1ex 3ex;
}

#main H4 {
    margin:             1.5ex 0pt 1ex 5ex;
}

#main P {
    margin:             0pt 1em 1ex;
    text-indent:        0pt;
}

#main P + P {
    text-indent:        3ex;
}

#main BLOCKQUOTE {
    margin:             1em 2em;
}

#main UL {
    margin-left:        2em;
}

#main HR {
    margin:             3ex auto;
    text-align:         center;
}

#main .indent {
    text-indent:        3ex;
}

.quotation {
    text-indent:        -0.9ex                  !important;
}

.citation {
    margin-left:        3ex;
    text-indent:        -2ex;
}

.callout {
    float:              right;
    margin:             0pt 0pt 1em 1em;
    padding:            4pt 2pt 4pt 4pt;
    width:              30ex;
}
                                                             /* }}} */

  /* Footer **********************************************************/
                                                             /* {{{ */
#footer P {
    margin:             0pt;
    margin-left:        270px;
    padding-bottom:     4pt;
}

#footer #validation {
    float:              left;
    margin:             0pt;
    width:              270px;
    word-spacing:       -1ex;
}
                                                             /* }}} */

/*********************************************************************
 * vim:set fdm=marker:                                               *
 *********************************************************************/
