/*
Theme Name: Krunika
Theme URI: https://krunika.ba
Author: Krunika
Description: Tema za informativni portal Krunika: vijesti iz Bosne i Hercegovine. Napravljena po dizajnu portala.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: krunika
*/

:root {
  --plava: #0A1F4A;
  --zlatna: #C8920B;
  --zlatna-tamna: #8A6408;
  --zlatna-jaka: #F2B430;
  --tekst: #12151A;
  --tekst-2: #4A505C;
  --siva: #5A6170;
  --linija: #E3E5EA;
  --pozadina-2: #F6F7F9;
  --ph: #DDE1E8;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sirina: 1180px;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --kicker: #0A1F4A;
  --okvir: #C9CDD5;
  --tekst-clanka: #22262E;
  --lead: #3A404C;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--tekst); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--tekst); text-decoration: none; }
a:hover { color: var(--zlatna-tamna); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.container { max-width: var(--sirina); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 12px; width: auto; height: auto; clip: auto; }

/* Fotografije i zamjenske kućice */
.foto { position: relative; overflow: hidden; background: var(--ph); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover .foto img { transform: scale(1.03); }
.foto .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--siva); font-size: 13px; }
.r-54 { aspect-ratio: 5 / 4; }
.r-32 { aspect-ratio: 3 / 2; }
.r-169 { aspect-ratio: 16 / 9; }

.kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--kicker); }
.kicker a { color: inherit; }
.meta { font-size: 13px; color: var(--siva); }
.meta strong { color: var(--tekst); font-weight: 600; }

/* Gornja traka */
.top-bar { background: var(--plava); color: #fff; font-size: 13px; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.ticker { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; overflow: hidden; }
.ticker-label { color: var(--zlatna-jaka); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.ticker-track { position: relative; overflow: hidden; flex: 1; height: 20px; }
.ticker-track ul { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; display: flex; gap: 40px; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-track:hover ul { animation-play-state: paused; }
.ticker-track a { color: #fff; }
.ticker-track a:hover { color: var(--zlatna-jaka); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track ul { animation: none; } }
.top-date { color: #D5DBE8; white-space: nowrap; }

/* Zaglavlje */
.site-header { background: var(--bg); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.header-side { flex: 1 1 0; display: flex; align-items: center; gap: 4px; }
.header-side.desno { justify-content: flex-end; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; color: var(--tekst); cursor: pointer; border-radius: 4px; }
.icon-btn:hover { border-color: var(--linija); }
.icon-btn.okvir { border-color: var(--linija); }
.site-logo img { height: 64px; width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; background: var(--plava); color: #fff; border: 0; border-radius: 4px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn:hover { background: #142c63; color: #fff; }
.btn.zlatno { background: var(--zlatna); color: var(--plava); }
.btn.zlatno:hover { background: #b38209; color: var(--plava); }

.search-panel { display: none; border-top: 1px solid var(--linija); padding: 16px 0; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; height: 44px; border: 1px solid var(--okvir); border-radius: 4px; padding: 0 14px; font: inherit; background: var(--bg); color: var(--tekst); }

.main-nav { border-top: 1px solid var(--linija); border-bottom: 1px solid var(--linija); background: var(--bg); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav li { position: relative; }
.main-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 500; border-top: 3px solid transparent; }
.main-nav .current-menu-item > a, .main-nav .current-cat > a, .main-nav .current-post-ancestor > a, .main-nav .current-menu-parent > a { border-top-color: var(--zlatna); font-weight: 600; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--bg); border: 1px solid var(--linija); z-index: 20; flex-direction: column; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { min-height: 40px; border-top: 0; }

.teme-bar { background: var(--plava); }
.teme-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.teme-bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #fff; }
.teme-bar a::before { content: '#'; color: var(--zlatna-jaka); font-weight: 800; }
.teme-bar a:hover { color: var(--zlatna-jaka); }

.menu-toggle { display: none; }

/* Naslovnica */
.home-main { padding: 22px 0 72px; display: flex; flex-direction: column; gap: 48px; }
.hero { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; }
.hero-left { padding-right: 20px; border-right: 1px solid var(--linija); display: flex; flex-direction: column; gap: 32px; }
.hero-center { padding: 0 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-center .foto { width: 100%; }
.hero-center h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.hero-center p { margin: 0; color: var(--tekst-2); font-size: 15px; max-width: 580px; }
.hero-right { padding-left: 20px; border-left: 1px solid var(--linija); }

.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card .kicker { margin-top: 6px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; color: var(--tekst-2); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--linija); margin-bottom: 20px; }
.section-head h2 { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.section-head h2 a { color: var(--tekst); }
.section-head .more { font-size: 14px; color: var(--kicker); font-weight: 500; }
.section-head .more:hover { color: var(--zlatna-tamna); }

.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { border-bottom: 1px solid var(--linija); }
.latest-list a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; }
.latest-list .t { font-size: 15px; font-weight: 700; line-height: 1.25; }
.latest-list .meta { display: block; margin-top: 6px; }
.latest-list .foto { flex: 0 0 76px; height: 76px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.grid-4 .card h3 { font-size: 19px; }

.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.feature-big { padding-right: 16px; border-right: 1px solid var(--linija); display: flex; flex-direction: column; gap: 10px; }
.feature-big h3 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.feature-big p { margin: 0; color: var(--tekst-2); }
.feature-small { padding-left: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; align-content: start; }
.feature-small .card h3 { font-size: 16px; }

/* Arhive rubrika i pretraga */
.archive-head { padding: 32px 0 8px; }
.archive-head .kicker { color: var(--zlatna-tamna); }
.archive-head h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; }
.archive-head p { color: var(--tekst-2); margin: 8px 0 0; }
.archive-main { padding: 24px 0 72px; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--linija); border-radius: 4px; font-weight: 600; }
.pagination .page-numbers.current { background: var(--plava); color: #fff; border-color: var(--plava); }

/* Članak */
.single-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 32px 0 72px; }
.breadcrumb { font-size: 14px; color: var(--siva); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--siva); }
.breadcrumb a.cat { color: var(--kicker); font-weight: 600; }
.article h1 { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin: 16px 0; }
.article .lead { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--lead); margin: 0 0 20px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linija); border-bottom: 1px solid var(--linija); margin-bottom: 24px; }
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .who img { border-radius: 50%; width: 44px; height: 44px; }
.byline .name { font-weight: 700; font-size: 15px; display: block; }
.share { display: flex; gap: 8px; }
.share a { width: 44px; height: 44px; border: 1px solid var(--okvir); color: var(--tekst); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.share a:hover { border-color: var(--zlatna); }
.article figure.naslovna { margin: 0 0 28px; }
.article figure.naslovna figcaption { font-size: 13px; color: var(--siva); margin-top: 8px; }
.entry { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--tekst-clanka); max-width: 720px; }
.entry p { margin: 0 0 20px; }
.entry h2, .entry h3 { font-family: var(--sans); font-weight: 800; margin: 32px 0 12px; }
.entry h2 { font-size: 26px; }
.entry h3 { font-size: 21px; }
.entry a { color: var(--kicker); text-decoration: underline; text-underline-offset: 3px; }
.entry blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--zlatna); font-family: var(--sans); font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--tekst); }
.entry img { margin: 24px 0; }
.entry figure { margin: 24px 0; }
.entry figcaption { font-family: var(--sans); font-size: 13px; color: var(--siva); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; background: var(--bg-2); border-radius: 4px; font-size: 14px; font-weight: 600; }

.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar .section-head { margin-bottom: 0; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid var(--linija); }
.side-list a { display: flex; gap: 14px; padding: 16px 0; }
.side-list .foto { flex: 0 0 96px; height: 64px; }
.side-list .t { font-size: 15px; font-weight: 600; line-height: 1.3; display: block; margin-top: 4px; }
.cta { background: var(--plava); color: #fff; padding: 24px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: 20px; font-weight: 800; }
.cta p { margin: 0; font-size: 15px; color: #D5DBE8; }

/* Stranice */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.page-wrap h1 { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; }

/* Komentari */
.comments { margin-top: 48px; max-width: 720px; }
.comments h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.comments ol { list-style: none; padding: 0; margin: 0 0 24px; }
.comments .comment-body { border-bottom: 1px solid var(--linija); padding: 16px 0; }
.comments textarea, .comments input[type=text], .comments input[type=email], .comments input[type=url] { width: 100%; border: 1px solid var(--okvir); border-radius: 4px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--tekst); }
.comments .submit { background: var(--plava); color: #fff; border: 0; border-radius: 4px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; }

/* Podnožje */
.site-footer { background: var(--plava); color: #fff; border-top: 4px solid var(--zlatna); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-cols img { height: 56px; width: auto; margin-bottom: 14px; }
.footer-cols p { color: #D5DBE8; font-size: 14px; margin: 0; }
.footer-cols h2 { font-size: 14px; font-weight: 700; color: var(--zlatna-jaka); margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-cols a { color: #fff; }
.footer-cols a:hover { color: var(--zlatna-jaka); }
.footer-bottom { border-top: 1px solid #22386A; }
.footer-bottom .container { padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #C3CBDD; }

/* Newsletter traka */
.newsletter { background: var(--bg-2); border-top: 1px solid var(--linija); }
.newsletter .container { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.newsletter h2 { font-size: 24px; font-weight: 800; }
.newsletter p { margin: 6px 0 0; color: var(--tekst-2); }

/* Logo: svijetla i tamna verzija */
.logo-tamni { display: none; }

/* Reklame (mjesta za banere) */
.reklama { display: flex; align-items: center; justify-content: center; }
.reklama:empty { display: none; }

/* Tamni način (kad je telefon ili računar u dark modu) */
@media (prefers-color-scheme: dark) {
  html:not([data-tema="svijetla"]) {
    --bg: #0E1117;
    --bg-2: #161B24;
    --tekst: #ECEEF2;
    --tekst-2: #B7BDC9;
    --siva: #9AA2B1;
    --linija: #262C38;
    --ph: #1E2430;
    --kicker: #F2B430;
    --zlatna-tamna: #F2B430;
    --okvir: #3A4252;
    --tekst-clanka: #DADDE3;
    --lead: #C3C8D2;
  }
  html:not([data-tema="svijetla"]) a:hover { color: #F2B430; }
  html:not([data-tema="svijetla"]) .logo-svijetli { display: none; }
  html:not([data-tema="svijetla"]) .logo-tamni { display: block; }
  html:not([data-tema="svijetla"]) .icon-btn { color: var(--tekst); }
  html:not([data-tema="svijetla"]) .btn { background: #F2B430; color: #0A1F4A; }
  html:not([data-tema="svijetla"]) .btn:hover { background: #FFC94D; color: #0A1F4A; }
  html:not([data-tema="svijetla"]) .pagination .page-numbers.current { background: var(--zlatna); color: #0A1F4A; border-color: var(--zlatna); }
  html:not([data-tema="svijetla"]) .teme-bar { border-top: 1px solid var(--linija); }
  html:not([data-tema="svijetla"]) .site-footer { background: #0A1F4A; }
  html:not([data-tema="svijetla"]) .entry blockquote { color: var(--tekst); }
  html:not([data-tema="svijetla"]) .main-nav .sub-menu { border-color: var(--linija); }
}
html[data-tema="tamna"] {
  --bg: #0E1117;
  --bg-2: #161B24;
  --tekst: #ECEEF2;
  --tekst-2: #B7BDC9;
  --siva: #9AA2B1;
  --linija: #262C38;
  --ph: #1E2430;
  --kicker: #F2B430;
  --zlatna-tamna: #F2B430;
  --okvir: #3A4252;
  --tekst-clanka: #DADDE3;
  --lead: #C3C8D2;
}
html[data-tema="tamna"] a:hover { color: #F2B430; }
html[data-tema="tamna"] .logo-svijetli { display: none; }
html[data-tema="tamna"] .logo-tamni { display: block; }
html[data-tema="tamna"] .icon-btn { color: var(--tekst); }
html[data-tema="tamna"] .btn { background: #F2B430; color: #0A1F4A; }
html[data-tema="tamna"] .btn:hover { background: #FFC94D; color: #0A1F4A; }
html[data-tema="tamna"] .pagination .page-numbers.current { background: var(--zlatna); color: #0A1F4A; border-color: var(--zlatna); }
html[data-tema="tamna"] .teme-bar { border-top: 1px solid var(--linija); }
html[data-tema="tamna"] .site-footer { background: #0A1F4A; }
html[data-tema="tamna"] .entry blockquote { color: var(--tekst); }
html[data-tema="tamna"] .main-nav .sub-menu { border-color: var(--linija); }


/* Tablet */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) 280px; }
  .hero-left { grid-column: 1 / -1; order: 3; flex-direction: row; border-right: 0; padding: 24px 0 0; border-top: 1px solid var(--linija); margin-top: 24px; }
  .hero-left .card { flex: 1; }
  .hero-center { padding-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .single-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Mobitel */
@media (max-width: 720px) {
  body { overflow-x: clip; }
  .container { padding: 0 16px; }

  /* Gornja traka i zaglavlje */
  .top-date { display: none; }
  .top-bar .container { min-height: 34px; }
  .header-main { padding: 10px 0; gap: 8px; }
  .site-logo img { height: 44px; }
  .header-side.desno .btn { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Meni rubrika: otvara se na dugme */
  .main-nav { display: none; border-bottom: 1px solid var(--linija); }
  .main-nav.open { display: block; }
  .main-nav .container { padding: 0; }
  .main-nav ul { flex-direction: column; }
  .main-nav li { border-top: 1px solid var(--linija); }
  .main-nav a { min-height: 48px; padding: 0 16px; border-top: 0; border-left: 3px solid transparent; font-size: 16px; }
  .main-nav .current-menu-item > a, .main-nav .current-cat > a { border-left-color: var(--zlatna); }
  .main-nav .sub-menu { position: static; display: flex; border: 0; padding-left: 16px; }
  .search-panel .container { padding: 0 16px; }

  /* Teme dana: vodoravno klizanje */
  .teme-bar .container { padding: 0; }
  .teme-bar ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .teme-bar ul::-webkit-scrollbar { display: none; }
  .teme-bar a { white-space: nowrap; }

  /* Naslovnica */
  .home-main { padding-top: 16px; gap: 36px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-center { order: 1; padding: 0; text-align: left; align-items: flex-start; }
  .hero-center h1 { font-size: 26px; }
  .hero-center p { font-size: 15px; }
  .hero-left { order: 2; flex-direction: column; gap: 0; border: 0; border-top: 1px solid var(--linija); margin-top: 20px; padding: 0; }
  .hero-right { order: 3; border-left: 0; padding: 24px 0 0; }

  /* Kompaktne kartice: sličica lijevo, naslov desno */
  .hero-left .card,
  .grid-4 .card:not(:first-child),
  .feature-small .card {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 4px;
    align-items: start; padding: 14px 0; border-bottom: 1px solid var(--linija);
  }
  .hero-left .card > a:first-child,
  .grid-4 .card:not(:first-child) > a:first-child,
  .feature-small .card > a:first-child { grid-column: 1; grid-row: 1 / span 3; }
  .hero-left .card .foto,
  .grid-4 .card:not(:first-child) .foto,
  .feature-small .card .foto { aspect-ratio: 4 / 3; }
  .hero-left .card .kicker,
  .grid-4 .card:not(:first-child) .kicker,
  .feature-small .card .kicker { margin-top: 0; font-size: 10px; }
  .hero-left .card h3,
  .grid-4 .card:not(:first-child) h3,
  .feature-small .card h3 { font-size: 16px; line-height: 1.25; }
  .grid-4 .card:not(:first-child) p { display: none; }

  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid-4 .card:first-child { padding-bottom: 14px; border-bottom: 1px solid var(--linija); }
  .grid-4 .card:first-child h3 { font-size: 21px; }
  .section-head { margin-bottom: 14px; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-big { border-right: 0; padding: 0 0 14px; border-bottom: 1px solid var(--linija); }
  .feature-big h3 { font-size: 24px; }
  .feature-small { padding: 0; display: block; }

  .latest-list .foto { flex-basis: 72px; height: 72px; }

  /* Arhive */
  .archive-head { padding-top: 24px; }
  .archive-head h1 { font-size: 30px; }
  .pagination .page-numbers { min-width: 44px; }

  /* Članak */
  .single-wrap { padding-top: 20px; gap: 40px; }
  .article h1 { font-size: 28px; letter-spacing: -.5px; }
  .article .lead { font-size: 18px; }
  .byline { padding: 12px 0; }
  .entry { font-size: 18px; line-height: 1.65; }
  .entry blockquote { font-size: 20px; padding-left: 16px; }
  .article figure.naslovna { margin-left: -16px; margin-right: -16px; }
  .article figure.naslovna figcaption { padding: 0 16px; }

  /* Stranice i podnožje */
  .page-wrap { padding: 28px 16px 56px; }
  .page-wrap h1 { font-size: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; padding-bottom: 36px; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .footer-cols img { height: 48px; }
  .search-form .btn { padding: 0 14px; }
}

/* Logo kao tekst: čitljiv i kad preglednik (npr. Samsung Internet) sam potamni stranicu */
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--plava); line-height: 1; }
.brand:hover { color: var(--plava); }
.site-logo .brand-kruna { height: 54px; width: auto; }
.brand-txt { display: flex; flex-direction: column; gap: 5px; }
.brand-ime { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 50px; letter-spacing: -.5px; line-height: .8; }
.brand-tacka { color: var(--zlatna); }
.brand-tag { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; opacity: .78; padding-left: 2px; }
@media (prefers-color-scheme: dark) {
  html:not([data-tema="svijetla"]) .brand, html:not([data-tema="svijetla"]) .brand:hover { color: #FFFFFF; }
  html:not([data-tema="svijetla"]) .brand-tacka { color: #F2B430; }
  html:not([data-tema="svijetla"]) .brand-tag { opacity: .9; }
}
html[data-tema="tamna"] .brand, html[data-tema="tamna"] .brand:hover { color: #FFFFFF; }
html[data-tema="tamna"] .brand-tacka { color: #F2B430; }
html[data-tema="tamna"] .brand-tag { opacity: .9; }

@media (max-width: 720px) {
  .brand { gap: 10px; }
  .site-logo .brand-kruna { height: 38px; }
  .brand-ime { font-size: 36px; }
  .brand-tag { font-size: 7px; letter-spacing: 1.6px; }
}

/* Dugme za svijetlu/tamnu verziju */
.tema-toggle .ik-mjesec { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-tema="svijetla"]) .tema-toggle .ik-sunce { display: none; } html:not([data-tema="svijetla"]) .tema-toggle .ik-mjesec { display: inline; } }
html[data-tema="tamna"] .tema-toggle .ik-sunce { display: none; }
html[data-tema="tamna"] .tema-toggle .ik-mjesec { display: inline; }
@media (max-width: 720px) {
  .header-side { flex: 0 0 auto; }
  .header-main .brand { margin: 0 auto; }
}


/* Podnaslovi u tekstu članka: zlatna linija lijevo, kao istaknuta izjava */
.entry h2, .entry h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.35; letter-spacing: 0; border-left: 4px solid var(--zlatna); padding: 2px 0 2px 20px; margin: 36px 0 12px; color: inherit; }
.entry h3 { font-size: 20px; }
.entry blockquote { border-left: 4px solid var(--zlatna); padding: 2px 0 2px 20px; margin: 28px 0; font-weight: 700; font-size: 22px; line-height: 1.4; }
@media (max-width: 720px) { .entry h2 { font-size: 21px; padding-left: 16px; } .entry h3 { font-size: 18px; } .entry blockquote { font-size: 19px; padding-left: 16px; } }
