/* ==========================================================================
   Theme 4 – "Pregledna": easy reading on phones, Google-like. Roboto for
   everything, 18 px body text, roomy line height, 48 px touch targets, flat
   white surfaces with hairline borders, Google blue as the accent.
   ========================================================================== */
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../../fonts/roboto-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../../fonts/roboto-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[data-theme="pregledna"] {
    --paper: #FFFFFF;
    --sheet: #FFFFFF;
    --ink: #202124;
    --ink-soft: #5F6368;
    --ink-faint: #70757A;
    --rule: #DADCE0;
    --input-border: #80868B;

    --primary: #1A73E8;
    --primary-rgb: 26, 115, 232;
    --primary-deep: #1765CC;
    --primary-deep-rgb: 23, 101, 204;
    --primary-active: #185ABC;
    --primary-disabled: #9AA0A6;
    --primary-tint: #E8F0FE;
    --on-primary: #FFFFFF;

    --del: #C5221F;
    --del-tint: #FCE8E6;
    --ins: #137333;
    --ins-tint: #E6F4EA;
    --warn: #F9AB00;
    --warn-tint: #FEF7E0;
    --warn-ink: #8C4A00;

    --header-bg: #FFFFFF;
    --margin-note: #F8F9FA;
    --note-border: #DADCE0;
    --dropzone-border: #AECBFA;
    --dropzone-bg: #F8FAFF;
    --window-bar: #F1F3F4;
    --band-bg: #F1F3F4;
    --band-ink: #3C4043;
    --band-soft: #5F6368;
    --band-strong: #202124;
    --band-accent: #1A73E8;
    --footer-bg: #F8F9FA;
    --footer-ink: #5F6368;
    --footer-link: #3C4043;
    --footer-strong: #202124;
    --admin-bg: #F8F9FA;
    --admin-nav-bg: #FFFFFF;
    --admin-nav-soft: #5F6368;
    --admin-nav-strong: #202124;
    --admin-nav-hover: #F1F3F4;
    --admin-nav-active: #E8F0FE;
    --shadow-sheet: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    --radius-card: .75rem;

    --font-serif: "Roboto", Arial, sans-serif;
    --font-sans: "Roboto", Arial, sans-serif;
    --font-doc: "Roboto", Arial, sans-serif;
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.65;
}

html[data-theme="pregledna"] h1,
html[data-theme="pregledna"] h2,
html[data-theme="pregledna"] h3,
html[data-theme="pregledna"] h4 { font-weight: 400; letter-spacing: 0; }
html[data-theme="pregledna"] h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); line-height: 1.15; }
html[data-theme="pregledna"] h3, html[data-theme="pregledna"] h4 { font-weight: 500; }
html[data-theme="pregledna"] .lead { font-family: var(--font-sans); color: var(--ink-soft); }
html[data-theme="pregledna"] .prose { font-size: 1.125rem; line-height: 1.75; max-width: 66ch; }
html[data-theme="pregledna"] .brand { font-weight: 500; letter-spacing: 0; }
html[data-theme="pregledna"] .site-header { border-bottom: 1px solid var(--rule); box-shadow: none; backdrop-filter: none; }

/* Material-style controls with 48 px touch targets */
html[data-theme="pregledna"] .btn { min-height: 48px; border-radius: 99px; padding-inline: 1.5rem; font-weight: 500; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; }
html[data-theme="pregledna"] .btn-sm { min-height: 40px; padding-inline: 1rem; }
html[data-theme="pregledna"] .btn-link { min-height: 0; }
html[data-theme="pregledna"] .form-control,
html[data-theme="pregledna"] .form-select { min-height: 52px; border-radius: .3rem; font-size: 1.05rem; }
html[data-theme="pregledna"] .form-check-input { width: 1.4em; height: 1.4em; margin-top: .15em; }
html[data-theme="pregledna"] .form-check-label { padding-left: .35rem; }
html[data-theme="pregledna"] .site-header .nav-link { padding-block: .75rem !important; }
html[data-theme="pregledna"] .filter-chip { min-height: 40px; padding-inline: 1rem; }

/* Flat surfaces */
html[data-theme="pregledna"] .upload-card,
html[data-theme="pregledna"] .panel,
html[data-theme="pregledna"] .contact-card,
html[data-theme="pregledna"] .window { box-shadow: none; }
html[data-theme="pregledna"] .manuscript-sheet { box-shadow: none; border-radius: .75rem; }
html[data-theme="pregledna"] .manuscript-text { line-height: 1.9; }
html[data-theme="pregledna"] .manuscript-notes li { border-left-color: var(--primary); font-size: .9rem; }
html[data-theme="pregledna"] .steps li::before { font-family: var(--font-sans); font-weight: 400; }
html[data-theme="pregledna"] .key-figures dd { font-weight: 400; }
html[data-theme="pregledna"] .admin-nav { border-right: 1px solid var(--rule); }
html[data-theme="pregledna"] .admin-nav .brand { color: var(--ink); }

/* Phones: bigger text, full-width actions, one column */
@media (max-width: 575.98px) {
    html[data-theme="pregledna"] { --bs-body-font-size: 1.1875rem; }
    html[data-theme="pregledna"] .hero h1 { font-size: 2rem; }
    html[data-theme="pregledna"] .upload-card .btn,
    html[data-theme="pregledna"] .panel .btn-lg,
    html[data-theme="pregledna"] .contact-card .btn-primary,
    html[data-theme="pregledna"] .downloads .btn { width: 100%; }
    html[data-theme="pregledna"] .downloads { flex-direction: column; align-items: stretch; }
    html[data-theme="pregledna"] .manuscript-text { font-size: 1.1rem; }
    html[data-theme="pregledna"] .steps li { padding-top: 3rem; }
    html[data-theme="pregledna"] .table { font-size: 1rem; }
}
