/*
Theme Name: Ingdep
Theme URI: https://www.ingdep.lv/
Author: Aivars Lauzis
Description: Classic theme for ingdep.lv. Recreates the look of the original CodeIgniter site (Bootstrap 3, inverse navbar, newest/top article columns, article sidebar).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ingdep
*/

/*
 * The original site styles live in assets/css/main.css (copied unchanged).
 * This file only holds additions needed for WordPress output.
 */

/* WordPress core alignment / caption classes */
.alignleft { float: left; margin: 5px 20px 10px 0; }
.alignright { float: right; margin: 5px 0 10px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption { font-size: 12px; color: #777; text-align: center; }
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* Logo in the inverse navbar (original: 160px wide image) */
.navbar-brand.navbar-logo img { width: 160px; height: auto; }
.navbar-brand.navbar-logo { padding-top: 10px; padding-bottom: 10px; height: auto; }

/* Search addon is clickable */
#search_button { cursor: pointer; }

/* Article tags under the title */
.article-tags .label { display: inline-block; margin: 0 4px 4px 0; }

/* The useful/feedback boxes are floated Bootstrap columns; start the PDF block below them. */
#print_to_pdf_form { clear: both; padding-top: 10px; }

/* Pagination on archives */
.pager { margin-top: 0; }

/*
 * Lonsda Light Form markup styled as Bootstrap 3 (.form-group, .form-control,
 * .btn-primary, .has-error), so the forms look like the original site's.
 */
.llf-form .llf-field { margin: 0 0 15px; }
.llf-form .llf-field > label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; }
.llf-form .llf-required { color: #a94442; }
.llf-form .llf-input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.llf-form textarea.llf-input:not([type="checkbox"]) { height: auto; resize: vertical; }
.llf-form .llf-input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.llf-form .llf-input::placeholder { color: #999; }
.llf-form .llf-field--error > label,
.llf-form .llf-error { color: #a94442; }
.llf-form .llf-input--error { border-color: #a94442; }
.llf-form .llf-error { display: block; margin-top: 5px; }
.llf-form .llf-submit { margin: 0; }
.llf-form .llf-submit button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #fff;
    background-color: #428bca;
    border: 1px solid #357ebd;
    border-radius: 4px;
    cursor: pointer;
}
.llf-form .llf-submit button:hover,
.llf-form .llf-submit button:focus { background-color: #3071a9; border-color: #285e8e; }
.well .llf-form .llf-notice:last-child { margin-bottom: 0; }

@media print {
    .navbar,
    footer,
    .show-when-usefull,
    .show-when-not-usefull,
    .thank-you-for-your-answer {
        display: none !important;
    }
}
