/* 
 * The default style sheet used by khtml to render HTML pages
 * (C) Lars Knoll (knoll@kde.org) 2000
 *
 * Konqueror/khtml relies on the existance of this style sheet for
 * rendering. Do not remove or modify this file unless you know
 * what you are doing.
 */

html {
	display: block;
	color: text;        
} 

/*
 * head and it's children all have display=none
 */

head { 
	display: none;
}
     
meta {
	display: none;
}

title {
	display: none;
}

link {
	display: none;
}

style {
	display: none;
}

script {
	display: none;
}

/*
 * generic block level elements
 */

@media print {
	body {
		display: block;
		margin: 2cm;
	}
}

@media screen {
	body {
		display: block;
		margin: 8px;
	}
}

p {
	display: block;
	margin: 1.0_qem 0px;
}

div {
	display: block;
}

layer {
	display: block;
}

address {
	display: block;
}
      
blockquote {
	display: block;
	margin: 1_qem 40px 1em 40px;
}

Q        {
         display: inline;
}

Q:before {
         content: '"';
    /*   content: open-quote;   */
}

Q:after  {
         content: '"';
    /*   content: close-quote;  */
}

IFRAME {
	display: block;
}
      
OBJECT { 
	display: block;
} 

OBJECT[type^="image/"] {
	display: inline;
}

APPLET { 
	display: block;
} 
      
CENTER { 
	display: block;
	/* special centering to be able to emulate the html4/netscape behaviour */
	text-align: -konq-center;
}  
      
HR  { 
        display: block; 
        margin-top: 12px; 
        margin-bottom: 12px; 
        border-style: inset;
        border-width: 1px;
        margin-left: 1px; /* will be overwritten by ALIGN */ 
        margin-right: 1px; /* will be overwritten by ALIGN */
        -konq-flow-mode: -konq-around-floats
} 
 
MAP { 
	display: inline;
} 


/* 
 * heading elements 
 */
      
H1 { 
	display: block;
	font-size: 2em; 
	margin: .67_qem auto .67em auto;
	font-weight: bolder;
}
      
H2 { 
	display: block;
	font-size: 1.5em; 
	margin: .83_qem auto .83em auto;
	font-weight: bolder;
}
      
H3 { 
	display: block;
	font-size: 1.17em; 
	margin: 1_qem auto 1em auto;
	font-weight: bolder;
}
      
H4 {
	display: block;
	margin: 1.33_qem auto 1.33em auto;
	font-weight: bolder;
}

H5 { 
	display: block;
	font-size: .83em; 
	margin: 1.67_qem auto 1.67em auto;
	font-weight: bolder;
}

H6 { 
	display: block;
	font-size: .67em; 
	margin: 2.33_qem auto 2.33em auto;
	font-weight: bolder;
}

/* 
 * tables
 */

TABLE { 
	display: table;
	border-collapse: separate;
	text-align: -konq-auto;
	border-spacing: 2px;
	border-color: gray;
    -konq-flow-mode: -konq-around-floats;
}

TD[align=left] > TABLE {
    margin-right: auto;
}

TD[align=right] > TABLE {
    margin-left: auto;
}

TABLE[align="center"] { 
	margin-left: auto !important; 
	margin-right: auto !important;
}

THEAD { 
	display: table-header-group; 
    vertical-align: middle;
    border-color: inherit;
}
      
TBODY { 
	display: table-row-group;
    vertical-align: middle; 
    border-color: inherit;
}
      
TFOOT { 
	display: table-footer-group; 
    vertical-align: middle;
    border-color: inherit;
}

COL { 
	display: table-column; 
}
      
COLGROUP { 
	display: table-column-group; 
}

TR { 
	display: table-row;
	vertical-align: inherit; 
    border-color: inherit; 
}
      
      
TD, TH { 
	display: table-cell;
	vertical-align: inherit;
}
      
TH { 
	font-weight: bolder; 
	text-align: center;
}

CAPTION { 
	display: table-caption;  
	text-align: -konq-center; 
}

/* rules to deal with right-aligned divs. -dwh */
DIV[align="right"] > TABLE,
DIV[align="right"] > P,
DIV[align="right"] > DIV
 { margin-left: auto; margin-right: 0px; }

/*
 * Lists
 */

UL, MENU, DIR {
        display: block;
        list-style-type: disc;
        margin: 1_qem 0 1em 0;
        padding-left: 40px;
}

OL {
        display: block;
        list-style-type: decimal;
        margin: 1_qem 0 1em 0;
        padding-left: 40px;
}

LI {
        display: list-item;
}


UL UL { 
	list-style-type: circle;
}

OL UL { 
	list-style-type: circle;
}

UL UL UL { 
	list-style-type: square;
}
      

DD {
	display: block;
	margin-left: 40px;
}

DL {
	display: block;
	margin: 1_qem 0 1em 0;
} 

DT {
	display: block;
}
 
/* for right to left */
      
*[dir="rtl"] UL, 
*[dir="rtl"] OL,  
*[dir="rtl"] DIR, 
*[dir="rtl"] MENU, 
*[dir="rtl"] DD { 
	margin-right:40px; 
	margin-left: auto;
}
      
OL UL, 
UL OL,
UL UL, 
OL OL { 
	margin-top: auto; 
	margin-bottom: auto; 
}

/*
 * form elements
 */

FORM {
	display: block;
    margin: 0_qem 0 1em 0;
}

FIELDSET {
	display: block;
	margin: 1.0em auto;
} 

BUTTON {
        display: block;
        border: 2px outset ButtonFace;
        background-color: ButtonFace;
        color: ButtonText;
        padding: 2px 2px 2px 2px;
        cursor: default;
}

BUTTON:active {
        border-style: inset;
}

/* XXX Need to implement support for CSS2 system fonts, so that I don't have to hard code this.
   -dwh */
INPUT, TEXTAREA {
	font: 11px 'Lucida Grande';
	margin: 3px;
}

input[type="button"], input[type="submit"], input[type="reset"]
{
    margin: 2px;
}

input[type="image"] {
    margin: 0px;
}

INPUT[type="hidden"] {
	display: none; 
}

INPUT[type="radio"], INPUT[type="checkbox"] {
        margin: 3px 0.5ex;
}

OPTION, 
OPTGROUP, 
AREA,
PARAM  { 
	display: none; 
}

SELECT { display: block; margin: 2px; }

/*
 * inline elements
 */      
      
U, 
INS { 
	text-decoration: underline;
}
      
STRONG,
B { 
	font-weight: bolder; 
}
      
I, 
CITE, 
EM,
VAR, 
ADDRESS { 
	font-style: italic; 
}
      
TT, 
CODE,
KBD, 
SAMP { 
	font-family: monospace; 
}
      
PRE,
XMP, 
PLAINTEXT { 
	display: block;
	font-family: monospace; 
	white-space: pre; 
	margin: 1_qem 0;
}
      
BIG { 
	font-size: larger; 
}
      
SMALL { 
	font-size: smaller; 
}

S, 
STRIKE, 
DEL  { 
	text-decoration: line-through; 
}

SUB { 
	vertical-align: sub;
	font-size: smaller; 
}
SUP { 
	vertical-align: super;	
	font-size: smaller;
}

/* ### not supported at the moment
ABBR, ACRONYM { 
	font-variant: small-caps; 
	letter-spacing: 0.1em 
}
*/
abbr, 
acronym {
	font-style: italic;
}

:focus          { outline: 1px dotted invert }
a:link          { color: blue; text-decoration: underline; }
a:link:active          { color: black; outline: gray 1px dotted; }
a:visited              { color: navy; text-decoration: underline; }
a:visited:active       { color: black; outline: gray 1px dotted; }

/* ### :before is not supported at the moment
      BR:before       { content: "\n" }
*/


/* Bidirectionality settings (do not change) */

BDO[DIR="ltr"]  { 
	direction: ltr; 
	unicode-bidi: bidi-override; 
}

BDO[DIR="rtl"]  { 
	direction: rtl; 
	unicode-bidi: bidi-override;
}

/* ### this selector seems to be still broken ...
      *[DIR="ltr"]    { direction: ltr; unicode-bidi: embed }
      *[DIR="rtl"]    { direction: rtl; unicode-bidi: embed }
*/
      
/* Elements that are block-level in HTML4 */
/* ### don't support unicode-bidi at the moment
      ADDRESS, BLOCKQUOTE, BODY, DD, DIV, DL, DT, FIELDSET,
      FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, IFRAME,
      NOSCRIPT, NOFRAMES, OBJECT, OL, P, UL, APPLET, CENTER,
      DIR, HR, MENU, PRE, LI, TABLE, TR, THEAD, TBODY, TFOOT,
      COL, COLGROUP, TD, TH, CAPTION
                      { unicode-bidi: embed }
*/
      
/* End bidi settings */

/*
 * other elements
 */

noframes {
	display: none;
}

frameset {
	display: block;
}

frame { 
	display: block;
}

nobr {
        display: inline;
        white-space: nowrap; 
}

wbr {
        white-space: normal;
}

marquee {
        display: none;
}

@konq-quirks
{
    /* Give floated images margins of 3px */
    img[align="left"] {
        margin-right: 3px;
    }
    
    img[align="right"] {
        margin-left: 3px;
    }
    
    /* Make lists flow around floats. */
    UL, OL, MENU, DIR {
        -konq-flow-mode: -konq-around-floats;
    }
}

/* noscript is handled internally, as it depends on the html settings */

/* media rules are commented out for the moment. We'll have to add
 * them later. Lars, 23.12.99
 */

/*
      @media print {
        @page         { margin: 10% }
        H1, H2, H3,
        H4, H5, H6    { page-break-after: avoid; page-break-inside: avoid }
        BLOCKQUOTE,
        PRE           { page-break-inside: avoid }
        UL, OL, DL    { page-break-before: avoid }
      }

*/
