/*
Theme Name: Законоправило 1.0
Author: Законоправило
Description: Једностранична тема по одобреном мокапу. Свети Сава, манастир и рачунар у заглављу; текст на ћирилици у три колоне на пергаментној позадини. Без навигације и додатних додатака.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zakonopravilo
Tags: one-column, three-columns, custom-background
*/

/* System fonts only: no font files, CDN dependencies, or remote requests. */
:root {
    --zp-navy: #10283d;
    --zp-gold: #a57b3d;
    --zp-paper: #f7f1e6;
    --zp-line: rgba(164, 125, 66, .30);
    --zp-body-font: "Times New Roman", Georgia, "Liberation Serif", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; }
body.zakonopravilo-page {
    margin: 0;
    padding: 0;
    min-width: 0;
    color: var(--zp-navy);
    background: #102837;
    font-family: var(--zp-body-font);
    font-weight: 400;
}
.zp-site {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    background: var(--zp-paper);
    isolation: isolate;
}
.zp-hero, .zp-footer, .zp-artwork { display: block; margin: 0; padding: 0; }
.zp-artwork img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
}
.zp-hero { background: #112a3a; }
.zp-footer { background: #112a3a; }

/* At the source width of 1024 px, one em equals 16 px. The artwork is never cropped. */
.zp-paper {
    font-size: clamp(16px, 1.5625vw, 25px);
    min-height: 45.25em;
    background-color: var(--zp-paper);
    background-image: linear-gradient(rgba(250, 247, 239, .34), rgba(248, 244, 235, .34)), url("assets/images/pergament.webp");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 62px 1024px;
    outline: none;
}
.zp-content { padding: .875em 3.0625em 1.5em; }
.zp-intro { text-align: center; }
.zp-intro h1 {
    margin: 0;
    color: var(--zp-navy);
    font-family: var(--zp-body-font);
    font-size: 3em;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.zp-separator {
    display: block;
    width: 15.125em;
    height: auto;
    max-width: 65%;
    margin: .375em auto .5em;
}
.zp-intro-text {
    margin-inline: auto;
    max-width: 49em;
    color: var(--zp-navy);
    font-size: 1.1875em;
    line-height: 1.3;
}
.zp-intro-text p { margin: 0; }
.zp-intro-text p + p { margin-top: .65em; }

.zp-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 1.5em;
}
.zp-column {
    min-width: 0;
    padding-inline: 1.3125em;
}
.zp-column:first-child { padding-left: 0; }
.zp-column:last-child { padding-right: 0; }
.zp-column + .zp-column { border-left: 1px solid var(--zp-line); }
.zp-column-heading {
    display: flex;
    align-items: center;
    gap: 1.0625em;
    min-height: 6.25em;
    margin-bottom: .875em;
}
.zp-icon {
    display: block;
    width: 6.25em;
    height: 6.25em;
    flex: 0 0 6.25em;
    border: none;
}
.zp-column-heading h2 {
    min-width: 0;
    margin: 0;
    color: var(--zp-navy);
    font-family: var(--zp-body-font);
    font-size: 1.3125em;
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -.025em;
    overflow-wrap: normal;
}
.zp-column-text {
    font-family: var(--zp-body-font);
    font-size: .9375em;
    font-style: normal;
    font-weight: 400;
    line-height: 1.35;
    color: #222329;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.zp-column-text p { margin: 0 0 .625em; }
.zp-column-text p:last-child { margin-bottom: 0; }
.zp-column-text strong { font-weight: 700; }
.zp-column-text a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: rgba(139, 105, 55, .43);
    text-decoration-thickness: 1px;
    text-underline-offset: .13em;
}
.zp-column-text a:hover { color: #79541d; text-decoration-color: currentColor; }
.zp-column-text a:focus-visible {
    outline: 2px solid #7c5a2a;
    outline-offset: 3px;
    border-radius: 2px;
}
.zp-motto { margin-top: 2.35em; text-align: center; }
.zp-motto .zp-separator-small { width: 5.625em; max-width: 50%; margin-bottom: .875em; }
.zp-motto-text { margin: 0; font-size: 1.1875em; line-height: 1.3; font-style: italic; }
.zp-motto-signature { margin: .875em 0 0; font-size: 1em; font-style: normal; }

/* Keyboard navigation without adding a visible menu to the approved layout. */
.zp-skip-link {
    position: absolute;
    left: 16px;
    top: -150px;
    z-index: 100000;
    padding: 12px 18px;
    color: #10283d;
    background: #fffaf0;
    border: 2px solid #a57b3d;
    font: 18px/1.4 Georgia, serif;
}
.zp-skip-link:focus { top: 16px; }
.admin-bar .zp-skip-link:focus { top: 50px; }
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 900px) {
    .zp-column:nth-child(3) .zp-column-heading h2 { font-size: 1.25em; letter-spacing: -.035em; }
}

/* Keep normal-sized selectable text on tablets and phones, rather than shrinking three columns. */
@media (max-width: 899px) {
    .zp-paper { font-size: 18px; }
    .zp-content { padding: 24px 28px 32px; max-width: 780px; margin-inline: auto; }
    .zp-intro h1 { font-size: clamp(29px, 5.6vw, 43px); letter-spacing: -.02em; }
    .zp-intro-text { font-size: 19px; line-height: 1.5; }
    .zp-desktop-break { display: none; }
    .zp-separator { width: 210px; margin-top: 8px; margin-bottom: 14px; }
    .zp-columns { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
    .zp-column, .zp-column:first-child, .zp-column:last-child { padding: 0; }
    .zp-column + .zp-column {
        border-left: 0;
        border-top: 1px solid var(--zp-line);
        padding-top: 26px;
        margin-top: 28px;
    }
    .zp-column-heading { gap: 18px; min-height: 78px; margin-bottom: 16px; }
    .zp-icon { width: 78px; height: 78px; flex-basis: 78px; }
    .zp-column-heading h2 { font-size: 25px; line-height: 1.15; }
    .zp-column-heading h2 br { display: none; }
    .zp-column-heading h2 br::after { content: ' '; }
    .zp-column-text { font-size: 18px; line-height: 1.55; }
    .zp-column-text p { margin-bottom: 14px; }
    .zp-motto { max-width: 380px; margin: 28px auto 4px; }
    .zp-motto-text { font-size: 21px; line-height: 1.45; }
    .zp-motto .zp-separator-small { width: 90px; }
    .zp-motto-signature { margin-top: 12px; }
}

@media (max-width: 479px) {
    .zp-content { padding: 22px 22px 30px; }
    .zp-intro h1 { font-size: clamp(26px, 7.4vw, 35px); }
    .zp-intro-text { font-size: 18px; }
    .zp-column-heading { gap: 15px; }
    .zp-icon { width: 70px; height: 70px; flex-basis: 70px; }
    .zp-column-heading h2 { font-size: 23px; }
}

@media print {
    body.zakonopravilo-page, .zp-site { background: #fff; }
    .zp-skip-link, #wpadminbar { display: none !important; }
    .zp-site { max-width: none; }
    .zp-paper { background: none; font-size: 11pt; }
    .zp-content { padding: 1cm 0; }
    .zp-columns { display: block; }
    .zp-column, .zp-column:first-child, .zp-column:last-child { padding: 0; margin: 0 0 1cm; border: 0; }
    .zp-column-heading h2 { font-size: 17pt; }
    .zp-column-text { font-size: 11pt; line-height: 1.4; }
    .zp-column-heading { break-after: avoid; }
    .zp-hero, .zp-footer { break-inside: avoid; }
    .zp-column-text a { text-decoration: none; }
}
