/*
Theme Name: HTML5 laacz style
Theme URI: http://laacz.lv/
Author: Kaspars Foigts
Author URI: http://laacz.lv/
Description: Basically - provides HTML5 markup for Wordpress. Includes my own styling and responsive css.
Version: 1.0
License: MIT
License URI: http://en.wikipedia.org/wiki/MIT_License
*/

/* Ōkei. Savācamies. */
@import url(normalize.min.css);
@import url(forms.min.css);
@import url(font-awesome.min.css);
@import url(font-awesome-ie7.min.css);
@import url(//fonts.googleapis.com/css?family=Dosis:400,700&subset=latin,latin-ext);
/*@import url(font/cardo/stylesheet.css);*/


em, 
cite {
    /*font-family: 'CardoItalic';*/
}

body {
    font: 14px/1.6 Calibri, Candara, Segoe, "Segoe UI", Arial, sans-serif;
}

strong {
    /*font-family: 'CardoBold';*/
}
/*
 * Pag, tu lasi šito? Kāpēc? Nav ko darīt? Beigušās grāmatas? Internetā viss \
 * izlasīts? Anyway, tas man glaimo. 
 * Viss sākas ar mobilo versiju. Paņemam pārlūka logu, samazinām līdz minimumam, 
 * un provējam visu tur sabāzt.
 */

/* Protams, ka šim pie vainas ir Pōls Airišs. */
* {
    -webkit-box-sizing: border-box; /* Android Gingerbread grib prefiksētu sū. */
    -moz-box-sizing: border-box; /* Just in case. */
    box-sizing: border-box;
}

/* Tā vietā, lai visu samazinātu, samazinām pašu bodiju. */
body {
    width: 742px; /* 42, yes */
    max-width: 100%;
    margin: .5em auto 1.5em auto;
    color: #000;
    background: #E3E2D6; /* url(i/bg.jpg) 0 0 repeat; */

    /* Fix font rendering issues. */
    /*text-shadow: 0px 0px 1px rgba(128, 128, 128, 0.01); */
    text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
    -webkit-font-smoothing: antialiased;

}

/* Hederis, sekcija un fūteris havo līdzīgus propertijus, daļu no kuriem vēlāk
 * overraido individuālā definīcija. */
body>header, body>section, body>footer {
    /*background-color: #fff;*/
    /*background-color: rgba(255, 255, 255, .5);*/
    padding: .5em 0;
    /*border-width: 1px;*/
    /*border-style: solid;*/
    /*border-color: #ccc;*/
}

body>header:after {
    display: block;
    content: '';
    clear: both;
}

body>header hgroup {
    /*padding: 0 0 0 55px;*/
    padding: 0;
    /*min-height: 58px;*/
    line-height: 1;
    display: none; /* Slēpjam uz mazajiem */
    /*background: transparent url(i/superlaa.png) 0 50% no-repeat;*/
    text-align: center;
}

body>header hgroup h1 {
    font-size: 2em;
    line-height: 1.5;
    margin: 0;
    padding: 0 0 .5em 0;
}

body>header hgroup h2 {
    font-size: 1em;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-weight: normal;
    display: none; /* Cerams, ka temporāri. Kamēr izdomāt, ko ar to gimnastu darīt. */
}

/* Galvenā navigācija. */
body>header>nav form {
    display: none;
}

body>header>nav ul {
    padding: 0;
    margin: 0;
    text-align: center;
}

    body>header>nav ul li {
        /*margin: 0;*/
        padding: 0;
        display: inline;
        font-family: sans-serif;
    }

        body>header>nav ul li a {
            vertical-align: top;
            display: inline-block;
            width: 10%;
            text-decoration: none;
        }

        /* So, rādam visas features. */
        body>header nav ul li.featured a {
            color: #666;
        }

        /* Un nerādam tās features, kas domātas desktopiem :) Ieskaitot RSS. */
        body>header nav ul li.desktop,
        body>header nav ul li#rss {
            display: none;
        }

/* Saturs */
/*body>section {*/
    /*border-bottom-left-radius: 10px;*/
    /*border-bottom-right-radius: 10px;*/
    /*border-width: 0 1px 1px 1px;*/
/*}*/

    body>section>article {
        margin-bottom: 2em;
    }

    /* Beidzot ejam dziļāk. */
    /*body>section>article>header {*/
        /*border-bottom: 1px solid #ccc;*/
    /*}*/

        /* Un vēl dziļāk. ">" jālieto, jo HTML kods patiesībā ir tāds mērens inception. 
         * Sekcija ārtiklī, kuš ir ārtiklī, kuš ir sekcijā. 
         */
        body>section>article>header>h1 {
            /*border-bottom: 2px solid #ccc;*/
            padding-left: .25em;
            padding-right: .25em;
            margin: 0;
        }

            body>section>article>header>h1>a {
                text-decoration: none;
            }

        body>section>article>header>p,
        body>section>article>header>div>p {
            margin: 0;
            padding: 0 .6em;
            font-size: smaller;
        }

        /* Vecais labais floutu fikss. CSS style, protams. */
        body>section>article>header>p:after {
            content: '';
            display: block;
            clear: both;
        }

            body>section>article>header>p span {
                margin: 0;
                padding: 0;
                line-height: 2;
            }

            body>section>article>header .comments {
                float: right;
            }

                body>section>article>header .comments .count {
                    font-size: 200%;
                    line-height: .8;
                }

            body>section>article>p,
            body>section>article>blockquote,
            body>section>article form.contact-form {
                padding-left: .5em;
                padding-right: .5em;
            }

            body>section>article>h2,
            body>section>article>h3 {
                font-size: 100%;
                padding: 0 .5em;
                margin: 0;
            }

            body>section>article>ul,
            body>section>article>ol,
            body>section>article>dl {
                margin: 0;
                padding-left: 2em;
                padding-right: .5em;
            }

            #comments-manager p {
                margin: 0;
                padding: 0;
            }

    body>section>article.simple {
        margin-bottom: 0;
    }

        body>section>article.simple>header>h1 {
            font-size: 1.4em;
        }

        body>section>article.simple>p {
            margin-top: .2em;
            margin-bottom: .5em;
        }

    #comments {
        border-top: 1px solid #ccc;
        padding-top: 1.5em;
        font-size: 90%;
        line-height: 1.6;
        width: 80%;
        margin: 1.5em auto;
    }

        #comments>h2 {
            padding: 0 0 0 .5em;
        }

        #comments article {
            border: 1px solid #ccc;
            border-width: 0 0 1px 0;
            /*padding: .5em 1em;*/
            margin-bottom: 0;
            padding: 1em;
        }

        .gravatar img {
            padding: 2px;
            border: 1px solid #ccc;
            float: left;
            margin-right: 1em;
        }

        #comments article.odd {
            /*background-color: #fff;*/
            background-color: rgba(255, 255, 255, .3);
        }

        #comments article:hover {
            border-color: #CF4823;
        }

        #comments article header p {
            margin: 0;
            padding: 0;
        }        

        #comments article header time {
            font-size: .8em;
        }

        #comments article>header {
            padding: 1em 0 0 0;
            margin: 0;
        }

        #comments article>p {
            padding: 1em 0 0 4em;
            margin: 0;
        }

        .comment-reply-link {
            float: right;
            font-size: .7em;
            display: none;
            padding-left: .5em;
        }

        #comments article:hover .comment-reply-link {
            display: inline;
        }

        #respond {
            padding: .5em;
        }

        #respond h2 {
            font-size: 1em;
            border-top: 1px dashed #ccc;
            height: 0;
            overflow: hidden;
        }

        #respond form input[type=text],
        #respond form textarea,
        form.contact-form input[type=text],
        form.contact-form textarea {
            width: 100%;
        }

        #respond form button {
            float: right;
        }

        #detranslit-help p {
            margin: 0;
            padding: 0 1em;        
        }

        .help {
            color: #999;
            font-size: smaller;
        }

        #comments>article.lev-2 {
            padding-left: 2em;
        }

        #comments>article.lev-3 {
            padding-left: 4em;
        }

/* Fūteris ir tā lieta, ko neviens nekad mūžā nav lasījis. Taisām maziņu, smukiņu
 * un netraucējošu. Nevienam. 
 */
body>footer {
    /*border-bottom-left-radius: 10px;*/
    /*border-bottom-right-radius: 10px;*/
    /*border-width: 0 1px 1px 1px;*/
    font-family: sans-serif;
    font-size: 80%;
    color: #999;
    line-height: 1.28;
    /*background-color: #fff;*/
    /*background: rgba(255, 255, 255, .25) url(i/logo-large.png) 24px 50% no-repeat;*/
    background: transparent url(i/logo-large.png) 24px 50% no-repeat;
    padding: 0;
    width: 95%;
    margin: 0 auto;
}

    body>footer p {
        margin: 0 0 0 104px;
        padding: .5em 1.5em;
        border-left: 1px solid #ccc;
    }
/*
 snap_nopreview sharing robots-nocontent
*/

article div.sharing ul {
    list-style-type: none;
    text-align: right;
}

article div.sharing ul li {
    display: inline;
    /*margin: 0;*/
    padding: 0;
}

article div.sharing ul li>div {
    display: inline;
}

/* Šitādos paragrāfos ar klasi "c" es no laika gala lieku biužas un fiumiņas. "c"  nozīmē "centered". Eh, vecās labās HTML4 dienas :) */
p.c, figure {
    text-align: center;
}

    figure a,
    p.c a {
        border: 0;
        text-decoration: none;
    }

    figure img,
    p.c img {
        max-width: 100%;
    }

    figure img,
    p.c img,
    p.c iframe {
        background-color: #fff;
        border-radius: 5px;
        border: 1px solid #999;
        box-shadow: 0 0 10px #ccc;
        padding: 10px;
    }

    /* Responsive YouTube embeds (turpinājums) */
    .embed {
        display: block;
        position: relative;
        padding-bottom: 56.25%; /* 16/9 ratio */
        height: 0;
        overflow: hidden;
    }


    .embed iframe,
    .embed object,
    .embed embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Apostrofam specifisks */
    .download-link {
        /*border: 2px solid #060;*/
        /*background-color: #9d9;*/
        border: 2px solid #666;
        background-color: #cfc;
        text-align: center;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        border-radius: 4px;
        /*margin-left: .5em !important;*/
        padding: 0;
        width: 70%;
        margin: 0 14% !important;
    }

    .download-link a:link,
    .download-link a:visited,
    .download-link a:hover,
    .download-link a:active {
        color: navy;
        font-weight: bold;
        display: block;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: .5em 0;
    }

    .download-link small {
        font-size: 75%;
        color: #666;
        display: block;
        border-bottom: 1px dashed #060;
        padding-bottom: .67em;
    }

    .download-link .alternatives {
        font-size: 75%;
        border: 0;
        display: block;
        text-align: left;
        padding: .5em 1em;
        color: #333;
    }

        .download-link .alternatives a:link,
        .download-link .alternatives a:visited,
        .download-link .alternatives a:hover,
        .download-link .alternatives a:active {
            /*color: #CF4823;*/
            color: #333399;
            display: inline;
            border: 0;
            font-weight: normal;
            text-decoration: underline;
        }

        .download-link .alternatives a:hover {
            text-decoration: none;
        }


    form#paypal {
        text-align: center;
    }


/* Ģenerāls stafs */

code {
    font-family: consolas, "courier new", monospace;
    font-size: .9em;
    border: 1px dashed rgba(0, 0, 0, .3);
}

pre {
    border: 1px dashed rgba(0, 0, 0, .3);
    margin-left: .5em;
    padding: .25em .5em;
    background-color: rgba(255, 255, 255, .3);
    line-height: 1.4;
    font-size: 90%;
}

    pre code {
        border: 0;
        font-size: 89%;
        background-color: transparent;
    }

.screen-reader-text {
    /* Šitais ir navigācijas teksta paslēpšanai pie mazām izšķirtspējām. */
    display: none;
}

.icon-large {
    font-size: 200%;
}

blockquote {
    margin: .2em .52em .5em;
    padding: .2em 1em .2em 1em !important;
    border-left: 4px solid #d9d9d9;
    color: #666;
}

blockquote>p:nth-child(1) {
    margin: 0;
    padding: 0;
}

blockquote>p:last-child {
    margin: 0;
    padding: 0;
}

p.more-link a:link,
p.more-link a:visited {
    padding: .2em 1em .2em .5em;
}

p.more-link a:hover,
p.more-link a:active {
    background-color: #900;
    color: #fff;
    text-decoration: none;
    border-radius: 5px 20px 20px 5px;
}

p.more-link {
    padding-left: 0;
    text-indent: 0;
}

/* Pareizās pirmās Latvijas pēdiņas. Tipogrāfijas sīkumi. */
q:before {
    content: "„";
}
q:after {
    content: "“"; 
}

hr, .more {
    margin: .5em 0;
    display: block;
    border: 0;
    border-top: 1px dashed #999;
    color: transparent;
    background-color: transparent;
    width: 100%;
}


/* Lieliski atmiņā iesēdies ne tikai apjūnseno (gada īsie mēneši), bet arī daudz
 * saprotamākais "LoVe HAte" - Link, Visited, Hover, Active. Vēlamā linku 
 * pseidoklašu definīcijas secība. Lai visur strādā (ieskaitot Netscape, jā :)
 */
a:link,
a:visited {
    color: #CF4823;
    text-decoration: none;
}

a:hover,
a:active {
    color: #CF4823;
    text-decoration: underline;
}

/* Meklētāja forma */

#searchform {
    width: 100%;
    padding: .5em 1.5em;
    text-align: center;
}

#searchform input {
    width: 60%;
}

#searchform button {

}

table {
    /*border-collapse: collapse;*/
    border-spacing: 2px;
}

table thead tr th {
    text-align: center;
}

table tbody tr th {
    text-align: left;
}

table tfoot tr td {
    font-size: smaller;
    padding: .5em 1em;
}

table tr th,
table tr td {
    padding: .2em .5em;
}

table tr td {
    background-color: rgba(255, 255, 255, .2);
}

table tr th {
    background-color: rgba(255, 255, 255, .3);
}

/* Meklētāja rezultātu hailaits. */
.hl {
    font-weight: bold;
}

    .hl-1 { background-color: #ff6; }
    .hl-2 { background-color: #aff; }
    .hl-3 { background-color: #9f9; }
    .hl-4 { background-color: #f99; }
    .hl-5 { background-color: #f6f; }
    .hl-6 { background-color: #800; }
    .hl-7 { background-color: #0a0; }
    .hl-8 { background-color: #860; }
    .hl-9 { background-color: #049; }
    .hl-10 { background-color: #909; }


/* Jetpackam šito nevar atsevišķi atslēgt :/ */
.comment-subscription-form {
    display: none;
}

/* Prev/next linciņi */
.adjacent-entries {
    text-align: center;
    list-style-type: none;
    margin: 0;
    padding: .5em 0;
    clear: both;
}

.adjacent-entries:after {
    content: '';
    display: block;
    clear: both;
}

    .adjacent-entries ul,
    .adjacent-entries ul li {
        margin: 0;
        padding: 0;
    }

    .adjacent-entries a {
        margin: 1em 0;
        color: #b00;
        font-weight: bold;
    }

    .adjacent-entries a:hover {
        /* background-color: maroon; */
        background-color: #933;
        color: #f0f0f0;
    }

    .adjacent-entries .rew {
        text-align: left;
        float: left;
    }

    .adjacent-entries .ffwd {
        text-align: right;
    }

    .adjacent-entries .ffwd a {
        padding: .3em 2em .3em .5em;
        -webkit-border-top-left-radius: .3em;
        -webkit-border-bottom-left-radius: .3em;
        -webkit-border-top-right-radius: 1em;
        -webkit-border-bottom-right-radius: 1em;
        -moz-border-radius-topleft: .3em;
        -moz-border-radius-bottomleft: .3em;
        -moz-border-radius-topright: 1em;
        -moz-border-radius-bottomright: 1em;
        border-top-left-radius: .3em;
        border-bottom-left-radius: .3em;
        border-top-right-radius: 1em;
        border-bottom-right-radius: 1em;
    }

    .adjacent-entries .rew a {
        padding: .3em .5em .3em 2em;
        -webkit-border-top-right-radius: .3em;
        -webkit-border-bottom-right-radius: .3em;
        -webkit-border-top-left-radius: 1em;
        -webkit-border-bottom-left-radius: 1em;
        -moz-border-radius-topright: .3em;
        -moz-border-radius-bottomright: .3em;
        -moz-border-radius-topleft: 1em;
        -moz-border-radius-bottomleft: 1em;
        border-top-right-radius: .3em;
        border-bottom-right-radius: .3em;
        border-top-left-radius: 1em;
        border-bottom-left-radius: 1em;
    }


/* Introducing... */
header time {
    color: #666;
}

    header time .time {
        color: #999;
    }

article dl dd time {
    font-family: monospace;
}

/* Uz netelfoniem rādām mazliet lielākus burteļus. */
@media screen and (min-width: 480px) {
    body {
        font-size: 17px;
    }

    body>header, body>section, body>footer {
        padding: .5em .5em;
    }

    blockquote {
        padding-left: 1.5em;
    }

    body>header>hgroup {
        display: block;
    }

}

@media screen and (min-width: 640px) {

    body {
        font-size: 18px;
        line-height: 1.6;
    }

    body>header nav ul li.desktop {
        display: inline;
    }

    body>header>nav>ul li a span,
    body>header>nav>ul li a span.screen-reader-text {
        display: block;
        line-height: 1;
        font-size: .7em;
    }
}

@media screen and (min-width: 700px) {

    body>header>nav {
        margin-bottom: 1.5em;
    }

    #comments>article.lev-2 {
        padding-left: 4em
    }

    #comments>article.lev-3 {
        padding-left: 8em;
    }

}

/* Šito iespējojam tikai uz nē pārāk lielām iekārtām. Primāri haks ir tam, lai 
 * mainot portrait/landscape modi, nemainītos fonta izmērs uz aifouniem un aipadiem.
 * Protams, ka uzrodas blakus efekts - pārējos webkitos (Safari, Chrome) nevar 
 * palielināt un samazināt fontus. Tāpēc tā ;)
 */
@media screen and (max-width: 1024px) {
    html {
        -webkit-text-size-adjust: none;
    }

    #comments {
        width: 100%;
    }

    .comment-reply-link  {
        display: inline;
    }

}

/* 404 un draugi. */
#error hgroup {
    text-align: center;
}

#error h1 {
    font-size: 4em;
    margin: 0;
    padding: .25em;
}

#error h2 {
    font-size: 1em;
    margin: 0;
    padding: 1em 0 4em 0;
    font-weight: normal;
}

.news-bar {
    float: right; 
    width: 40%;
    padding: 0 0 0 1em;
    margin-left: 1em;
    margin-top: .5em;
    font-size: 90%;
    line-height: 1.4;
    border-left: 1px solid #ccc;
}

tt {
    font-size: 90%;
    color: #009;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 5px;
    padding: 0 .5em;
}

/* Fontu eksperimenti */

.icon-apostrofs:before { content: "'A"; font-weight: bold; }

body>header h1,
body>section>article h1 {
    font: 1.6em/1.6 'Dosis', sans-serif;
    font-weight: bold;
}

body>header h1 {
    font-size: 4em;
}


/* Reklāma */
#tla {
    text-align: right;
}
    #tla ul,
    #tla li {
        display: inline;
    }

/* Tas tad nu arī viss. */

.gemius-trolling {
    border: 1px dashed #999;
    margin: .6em .6em 0 .6em;
    padding: .3em .6em;
    border-radius: .3em;
    color: #666;
}

.gemius-trolling a {
    color: #CF6633;
}

/*blockquote .twitter-tweet {
    width: 100% !important;
    margin-left: 1em !important;
}*/

twitterwidget {
    margin-left: auto;
    margin-right: auto;
}

a.footnote-link,
a.footnote {
    font-size: 70%; 
    vertical-align: top;
}

p.footnote {
    border-top: 1px solid #ccc;
    padding: .5em 1em;
    font-size: 90%;
    color: #666;
}

figcaption p {
    margin-top: 0;
    padding-top: 0;
}

figcaption,
article .imgdesc {
    color: #666;
    text-decoration: none;
    font-size: 70%;
    line-height: 1.4;
    margin: 0;
    border: 0;
}

div.sharedaddy h3 {
    font-size: 1em;
    font-weight: normal;
    display: block;
    margin-left: 17.875%; /*width: 82.125%;*/
    width: 100%;
    padding: 0 0 .5em 0;
}



.sd-content {
    width: 100%;
    display: block;
}

.in-reply-to {
    float: right;
}

iframe.local-embed {
    border-width: 1px;
    border-style: solid;
    border-color: #d9d9d9;
}
