/* novinar.ba – novi izgled */
:root {
	--nd-red: #e11d2e;
	--nd-ink: #14161a;
	--nd-ink-2: #3d434d;
	--nd-muted: #7a828e;
	--nd-line: #e6e8ec;
	--nd-bg: #f2f3f5;
	--nd-surface: #ffffff;
	--nd-card: var(--nd-surface);
	--nd-prose: #22262c;
	--nd-media: #dfe2e6;
	--nd-radius: 6px;
	--nd-gap: 14px;
	--nd-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--nd-header-h: 60px;
}

/* ---------- reset za naše stranice ---------- */
body.nd, body.nd.custom-background { margin: 0; background: var(--nd-bg) !important; color: var(--nd-ink); font-family: var(--nd-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.nd *, body.nd *::before, body.nd *::after { box-sizing: border-box; }
body.nd a { color: inherit; text-decoration: none; }
body.nd img { max-width: 100%; height: auto; display: block; }
body.nd h1, body.nd h2, body.nd h3, body.nd h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
body.nd p { margin: 0; }
body.nd ul, body.nd ol { margin: 0; padding: 0; list-style: none; }
body.nd button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.nd-i { flex: none; }
.nd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nd-skip { position: absolute; left: -9999px; top: 0; background: var(--nd-ink); color: #fff !important; padding: 8px 14px; z-index: 1000; }
.nd-skip:focus { left: 8px; top: 8px; }
body.nd :focus-visible { outline: 2px solid var(--nd-red); outline-offset: 2px; }

.nd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- zaglavlje ---------- */
.nd-header { position: sticky; top: 0; z-index: 100; background: var(--nd-surface); border-bottom: 1px solid var(--nd-line); }
body.admin-bar .nd-header { top: 32px; }
.nd-header-row { display: flex; align-items: center; gap: 18px; height: var(--nd-header-h); }
.nd-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--nd-ink-2); transition: background .15s; }
.nd-iconbtn:hover { background: var(--nd-bg); color: var(--nd-ink); }
.nd-iconbtn .nd-i { width: 20px; height: 20px; }

.nd-logo { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; line-height: 1; color: var(--nd-ink) !important; white-space: nowrap; }
.nd-logo-o { color: var(--nd-red); }
.nd-logo-ba { color: var(--nd-muted); font-weight: 700; font-size: .8em; margin-left: 1px; }

.nd-nav { flex: 1; min-width: 0; overflow: hidden; }
.nd-nav ul { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nd-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 4px; font-size: 15px; font-weight: 600; color: var(--nd-ink-2); }
.nd-nav a:hover, .nd-nav .is-active a { color: var(--nd-ink); background: var(--nd-bg); }
.nd-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--nd-red)); flex: none; }
.nd-header-tools { display: flex; gap: 2px; margin-left: auto; }

.nd-trend { border-top: 1px solid var(--nd-line); background: var(--nd-surface); }
.nd-trend-row { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.nd-trend-row::-webkit-scrollbar { display: none; }
.nd-trend a { flex: none; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--nd-ink-2); }
.nd-trend a span { color: var(--nd-red); margin-right: 3px; }
.nd-trend a:hover { color: var(--nd-red); }

.nd-search { border-top: 1px solid var(--nd-line); background: var(--nd-surface); }
.nd-search form { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; color: var(--nd-muted); }
.nd-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 8px 0; background: transparent; color: var(--nd-ink); }
.nd-search button { background: var(--nd-red); color: #fff; padding: 9px 18px; border-radius: 4px; font-weight: 600; font-size: 14px; }

/* ---------- fly meni ---------- */
.nd-fly { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 16, .45); }
.nd-fly-panel { width: min(340px, 88vw); height: 100%; background: var(--nd-surface); overflow-y: auto; padding: 14px 18px 30px; animation: ndSlide .2s ease-out; }
@keyframes ndSlide { from { transform: translateX(-100%); } to { transform: none; } }
.nd-fly-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nd-fly-search input { width: 100%; border: 1px solid var(--nd-line); border-radius: 4px; padding: 10px 12px; font: inherit; margin-bottom: 10px; }
.nd-fly-list a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--nd-line); font-weight: 600; }
body.nd-noscroll { overflow: hidden; }

/* ---------- raspored ---------- */
.nd-main { padding: 16px 0 40px; }
.nd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.nd-content { min-width: 0; }

/* ---------- kartice ---------- */
.nd-card { position: relative; background: var(--nd-card); border-radius: var(--nd-radius); overflow: hidden; display: flex; flex-direction: column; }
.nd-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--nd-media); overflow: hidden; }
.nd-card-media .nd-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nd-img--empty { display: block; width: 100%; height: 100%; background: var(--nd-media); }
.nd-card:hover .nd-card-media .nd-img { transform: scale(1.03); }
.nd-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 3px 7px; border-radius: 3px; }
.nd-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.nd-kicker { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c, var(--nd-red)) !important; margin-bottom: 4px; }
.nd-card-title { font-size: 16.5px; font-weight: 700; line-height: 1.28; }
.nd-card-title a:hover { color: var(--c, var(--nd-red)); }
.nd-card-excerpt { color: var(--nd-ink-2); font-size: 14.5px; margin-top: 6px; }
.nd-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--nd-muted); }
.nd-stats { display: inline-flex; gap: 10px; }
.nd-stats > * { display: inline-flex; align-items: center; gap: 3px; }
.nd-stats .nd-i { width: 14px; height: 14px; }

/* hero: naslov preko slike */
.nd-card--hero { color: #fff; }
.nd-card--hero .nd-card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.nd-card--hero .nd-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.9) 100%); }
.nd-card--hero { justify-content: flex-end; }
.nd-card--hero .nd-card-body { flex: 0 0 auto; position: relative; z-index: 1; margin-top: auto; padding: 18px 18px 14px; pointer-events: none; }
.nd-card--hero .nd-card-body a { pointer-events: auto; }
.nd-card--hero .nd-kicker { color: #fff !important; background: var(--c, var(--nd-red)); padding: 3px 7px; border-radius: 3px; align-self: flex-start; }
.nd-card--hero .nd-card-title { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.18; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.nd-card--hero .nd-card-title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.nd-card--hero .nd-meta { color: rgba(255,255,255,.85); }
.nd-card--hero { min-height: 340px; }

/* wide */
.nd-card--wide { flex-direction: row; }
.nd-card--wide .nd-card-media { width: 45%; flex: none; }

/* row: mala slika lijevo */
.nd-card--row { flex-direction: row; align-items: stretch; }
.nd-card--row .nd-card-media { width: 150px; flex: none; aspect-ratio: auto; min-height: 96px; }
.nd-card--row .nd-card-title { font-size: 15.5px; }

/* list: bez slike */
.nd-card--list { background: transparent; border-radius: 0; border-bottom: 1px solid var(--nd-line); }
.nd-card--list .nd-card-body { padding: 10px 0; }
.nd-card--list .nd-card-title { font-size: 14.5px; font-weight: 600; }
.nd-card--list .nd-meta { padding-top: 6px; }

/* ---------- naslovna ---------- */
.nd-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nd-gap); }
.nd-top .nd-card--hero { grid-column: span 2; }
.nd-block { margin-top: 28px; }
.nd-sec-head { display: flex; align-items: center; border-bottom: 2px solid var(--c, var(--nd-ink)); margin-bottom: 14px; }
.nd-sec-head h2 { font-size: 19px; font-weight: 800; padding: 0 0 8px; display: flex; }
.nd-sec-head h2 a { display: inline-flex; align-items: center; gap: 8px; }
.nd-sec-head h2 a:hover { color: var(--c, var(--nd-red)); }
.nd-sec-head h2::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--nd-red)); align-self: center; margin-right: 9px; }
.nd-sec-head .nd-i { width: 18px; height: 18px; color: var(--c, var(--nd-red)); }
.nd-block-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: var(--nd-gap); }
.nd-block-grid .nd-card--hero { grid-column: span 2; grid-row: span 2; min-height: 420px; }
.nd-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nd-gap); }
.nd-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nd-gap); }
.nd-ad { margin: 16px auto; text-align: center; max-width: 100%; overflow: hidden; }

/* ---------- sidebar ---------- */
.nd-side { min-width: 0; }
.nd-sticky { position: sticky; top: calc(var(--nd-header-h) + 52px); }
.nd-tabs { background: var(--nd-surface); border-radius: var(--nd-radius); padding: 0 14px 6px; }
.nd-tabs-head { display: flex; border-bottom: 1px solid var(--nd-line); margin: 0 -14px; }
.nd-tabs-head button { flex: 1; padding: 13px 6px 11px; font-size: 14px; font-weight: 600; color: var(--nd-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nd-tabs-head button[aria-selected=true] { color: var(--nd-ink); border-bottom-color: var(--nd-red); }
.nd-tab .nd-card--list:last-child { border-bottom: 0; }
.nd-rank { counter-reset: r; }
.nd-rank li { counter-increment: r; display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--nd-line); }
.nd-rank li:last-child { border-bottom: 0; }
.nd-rank li::before { content: counter(r); font-size: 26px; font-weight: 800; color: var(--nd-line); line-height: 1; padding-top: 12px; min-width: 22px; }
.nd-rank .nd-card--list { border-bottom: 0; flex: 1; }

/* ---------- članak ---------- */
.nd-article { background: var(--nd-surface); border-radius: var(--nd-radius); padding: 26px 30px 30px; }
.nd-article-head { max-width: 780px; }
.nd-article-head .nd-kicker { font-size: 13px; margin-bottom: 8px; }
.nd-article-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.nd-lead { font-size: 19px; line-height: 1.5; color: var(--nd-ink-2); margin-top: 14px; font-weight: 500; }
.nd-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--nd-line); font-size: 13.5px; color: var(--nd-muted); }
.nd-author a { font-weight: 700; color: var(--nd-ink); }
.nd-article-meta .nd-stats { margin-left: auto; }
.nd-article-media { margin: 20px -30px 0; }
.nd-article-media .nd-img { width: 100%; }
.nd-article-media figcaption { padding: 8px 30px 0; font-size: 13px; color: var(--nd-muted); }
.nd-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.nd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.nd-article-grid { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; margin-top: 24px; }
.nd-share { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--nd-header-h) + 60px); align-self: start; }
.nd-share a, .nd-share button { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nd-bg); color: var(--nd-ink-2); transition: background .15s, color .15s; }
.nd-share a:hover, .nd-share button:hover { background: var(--nd-red); color: #fff; }
.nd-share .nd-share-fb:hover { background: #1877f2; }
.nd-share .nd-share-wa:hover { background: #25d366; }
.nd-share button.is-done { background: #16a34a; color: #fff; }

.nd-prose { font-size: 18px; line-height: 1.7; color: var(--nd-prose); max-width: 720px; overflow-wrap: break-word; }
.nd-prose > * + * { margin-top: 1.05em; }
.nd-prose p { margin: 0; }
.nd-prose a { color: var(--c, var(--nd-red)); text-decoration: underline; text-underline-offset: 2px; }
.nd-prose h2 { font-size: 25px; margin-top: 1.6em; }
.nd-prose h3 { font-size: 21px; margin-top: 1.4em; }
.nd-prose ul, .nd-prose ol { padding-left: 1.3em; }
.nd-prose ul { list-style: disc; }
.nd-prose ol { list-style: decimal; }
.nd-prose li + li { margin-top: .35em; }
.nd-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c, var(--nd-red)); font-size: 20px; font-weight: 600; color: var(--nd-ink); }
.nd-prose img, .nd-prose figure { border-radius: 4px; }
.nd-prose figure { margin: 1.4em 0; max-width: 100%; }
.nd-prose figcaption, .nd-prose .wp-caption-text { font-size: 13px; color: var(--nd-muted); margin-top: 6px; }
.nd-prose .wp-caption { max-width: 100%; }
.nd-prose iframe, .nd-prose video, .nd-prose embed { max-width: 100%; }
.nd-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nd-prose td, .nd-prose th { border: 1px solid var(--nd-line); padding: 8px; }
.nd-prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.nd-prose .gallery br { display: none; }
.nd-prose .gallery-item { margin: 0 !important; width: auto !important; }
.nd-prose .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; }
.nd-prose--page { max-width: 780px; }
.nd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--nd-line); }
.nd-tags a { font-size: 13px; font-weight: 600; background: var(--nd-bg); padding: 6px 11px; border-radius: 999px; color: var(--nd-ink-2); }
.nd-tags a:hover { background: var(--nd-red); color: #fff; }
.nd-pages { margin-top: 1.5em; font-weight: 600; }
.nd-comments { background: var(--nd-surface); border-radius: var(--nd-radius); padding: 22px 30px; margin-top: 20px; font-size: 15px; }
.nd-comments textarea, .nd-comments input[type=text], .nd-comments input[type=email], .nd-comments input[type=url] { width: 100%; border: 1px solid var(--nd-line); border-radius: 4px; padding: 10px; font: inherit; }
.nd-comments input[type=submit] { background: var(--nd-red); color: #fff; border: 0; padding: 10px 20px; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
.nd-comments ol, .nd-comments ul { list-style: none; padding: 0; }

/* ---------- arhiva ---------- */
.nd-archive-head { background: var(--nd-surface); border-radius: var(--nd-radius); padding: 20px 22px; margin-bottom: var(--nd-gap); border-left: 6px solid var(--c, var(--nd-red)); }
.nd-archive-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.nd-archive-desc { color: var(--nd-muted); margin-top: 6px; font-size: 15px; }
.nd-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nd-gap); }
.nd-archive-grid .nd-card--hero { grid-column: span 3; min-height: 380px; }
.nd-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.nd-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--nd-surface); border-radius: 4px; font-weight: 600; font-size: 14px; }
.nd-pagination .page-numbers.current { background: var(--nd-red); color: #fff; }
.nd-pagination a.page-numbers:hover { background: var(--nd-red); color: #fff; }
.nd-empty { background: var(--nd-surface); padding: 30px; border-radius: var(--nd-radius); text-align: center; color: var(--nd-muted); }
.nd-404 { margin-top: 10px; }

/* ---------- podnožje ---------- */
.nd-footer { background: #101215; color: #aeb4bd; margin-top: 40px; border-top: 4px solid var(--nd-red); font-size: 14.5px; }
.nd-footer a { transition: color .15s, background .15s, border-color .15s; }
.nd-footer a:hover { color: #fff; }
.nd-footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.35fr; gap: 48px; padding: 44px 0 34px; }
.nd-footer .nd-logo { color: #fff !important; font-size: 32px; }
.nd-footer-slogan { margin-top: 10px; max-width: 300px; font-size: 15px; line-height: 1.5; color: #c9ced6; font-style: italic; }
.nd-social { display: flex; gap: 8px; margin-top: 20px; }
.nd-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.16); color: #e6e8ec; }
.nd-social a:hover { background: var(--nd-red); border-color: var(--nd-red); color: #fff; }
.nd-footer h4 { color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nd-footer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.nd-footer-cats a { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0; color: #d3d7dd; font-weight: 500; }
.nd-footer-cats .nd-dot { width: 8px; height: 8px; }
.nd-footer-info { line-height: 1.6; color: #aeb4bd; }
.nd-footer-info p + p { margin-top: 8px; }
.nd-footer-info a { color: #fff; font-weight: 600; }
.nd-tip { margin-top: 18px; padding: 16px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.nd-tip strong { color: #fff; font-size: 15px; }
.nd-tip span { font-size: 13.5px; }
.nd-tip-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nd-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--nd-red); color: #fff !important; font-weight: 600; font-size: 13.5px; }
.nd-btn .nd-i { width: 16px; height: 16px; }
.nd-btn:hover { filter: brightness(1.1); }
.nd-btn--wa { background: #1fa855; }
.nd-btn--viber { background: #7360f2; }
.nd-footer-topics { padding: 0 0 34px; }
.nd-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-topics a { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: #d3d7dd; font-size: 13px; font-weight: 500; }
.nd-topics a:hover { background: var(--nd-surface); color: var(--nd-ink); }
.nd-footer-bottom { background: #0a0b0d; font-size: 13px; color: #8a919c; }
.nd-footer-bottom-row { display: flex; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.nd-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nd-totop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #c9ced6 !important; font-size: 13px !important; font-weight: 600; }
.nd-totop:hover { color: #fff !important; }
.nd-totop .nd-i { width: 15px; height: 15px; }


/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.nd-layout { grid-template-columns: minmax(0, 1fr); }
	.nd-side .nd-sticky { position: static; }
	.nd-side { display: grid; }
	.nd-nav a { padding: 8px 7px; font-size: 14px; }
}
@media (max-width: 900px) {
	.nd-nav { display: none; }
	.nd-header-row { gap: 8px; }
	.nd-top, .nd-block-grid, .nd-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-top .nd-card--hero { grid-column: 1 / -1; order: -1; }
	.nd-block-grid .nd-card--hero { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
	.nd-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-archive-grid .nd-card--hero { grid-column: 1 / -1; }
	.nd-rows { grid-template-columns: minmax(0, 1fr); }
	.nd-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
	.nd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	:root { --nd-gap: 10px; --nd-header-h: 54px; }
	.nd-logo { font-size: 23px; }
	.nd-main { padding-top: 10px; }
	.nd-top, .nd-block-grid, .nd-grid4, .nd-archive-grid { grid-template-columns: minmax(0, 1fr); }
	.nd-card--hero, .nd-top .nd-card--hero { min-height: 280px; }
	/* na mobitelu obične kartice su "row" da stane više vijesti */
	.nd-top .nd-card--card, .nd-block-grid .nd-card--card, .nd-archive-grid .nd-card--card, .nd-grid4 .nd-card--card { flex-direction: row; }
	.nd-top .nd-card--card .nd-card-media, .nd-block-grid .nd-card--card .nd-card-media, .nd-archive-grid .nd-card--card .nd-card-media, .nd-grid4 .nd-card--card .nd-card-media { width: 120px; flex: none; aspect-ratio: auto; min-height: 90px; }
	.nd-card-title { font-size: 15.5px; }
	.nd-card--row .nd-card-media { width: 120px; }
	.nd-article { padding: 18px 16px 22px; border-radius: 0; margin: 0 -16px; }
	.nd-article-media { margin: 16px -16px 0; }
	.nd-article-media figcaption { padding: 8px 16px 0; }
	.nd-article-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.nd-share { flex-direction: row; position: static; order: 2; }
	.nd-prose { font-size: 17px; }
	.nd-lead { font-size: 17px; }
	.nd-article-meta .nd-stats { margin-left: 0; }
	.nd-comments { padding: 18px 16px; margin: 16px -16px 0; border-radius: 0; }
	.nd-footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
	.nd-footer-bottom-row { flex-wrap: wrap; gap: 10px 18px; }
	.nd-trend-row { gap: 16px; }
}

/* =====================================================================
   TAMNI NAČIN
   ===================================================================== */
:root[data-theme=dark] {
	--nd-ink: #eef0f3;
	--nd-ink-2: #c3c8cf;
	--nd-muted: #8d949e;
	--nd-line: #2b2f35;
	--nd-bg: #0e1012;
	--nd-surface: #181a1e;
	--nd-prose: #dde0e5;
	--nd-media: #23262b;
	color-scheme: dark;
}
:root[data-theme=dark] .nd-rank li::before { color: #3a3f46; }
:root[data-theme=dark] .nd-card--hero .nd-kicker { color: #fff !important; }
.nd-theme-toggle .nd-i + .nd-i, [data-nd-theme] .nd-i + .nd-i { display: none; }
:root[data-theme=dark] [data-nd-theme] .nd-i:first-child { display: none; }
:root[data-theme=dark] [data-nd-theme] .nd-i + .nd-i { display: inline-block; }
.nd-theme-toggle--m { display: none; }

/* progres čitanja */
.nd-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.nd-progress span { display: block; height: 100%; width: 0; background: var(--nd-red); transition: width .08s linear; }

/* chipovi rubrika (samo mobitel) */
.nd-chips { display: none; }

/* donja traka, paneli, akcije članka - skriveni na desktopu */
.nd-tabbar, .nd-actionbar { display: none; }
.nd-sheet { position: fixed; inset: 0; z-index: 400; background: rgba(8, 10, 12, .5); animation: ndFade .2s ease; }
.nd-sheet[hidden] { display: none; }
@keyframes ndFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ndUp { from { transform: translateY(100%); } to { transform: none; } }
.nd-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--nd-surface); color: var(--nd-ink); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: ndUp .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); max-width: 640px; margin: 0 auto; }
.nd-sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--nd-line); margin: 8px auto 0; flex: none; }
.nd-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 18px; flex: none; }
.nd-sheet-head h3 { font-size: 20px; font-weight: 800; }
.nd-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 18px 22px; }
.nd-sheet-body .nd-card--list:last-child { border-bottom: 0; }
.nd-sheet-sub { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--nd-muted); margin: 18px 0 10px; }
.nd-cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.nd-cat-tiles a { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 16px; border-radius: 10px; background: var(--nd-bg); font-weight: 700; font-size: 15px; overflow: hidden; }
.nd-cat-tiles a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.nd-cat-tiles .nd-i { width: 16px; height: 16px; color: var(--c); }
.nd-sheet-list { margin-top: 16px; border-top: 1px solid var(--nd-line); }
.nd-sheet-list > a, .nd-sheet-list > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 2px; border-bottom: 1px solid var(--nd-line); font-weight: 600; font-size: 15px; text-align: left; }
.nd-sheet-list > [hidden] { display: none; }
.nd-sheet-list .nd-theme-label { flex: 1; }
.nd-switch { width: 44px; height: 26px; border-radius: 13px; background: var(--nd-line); position: relative; transition: background .2s; flex: none; }
.nd-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
:root[data-theme=dark] .nd-switch { background: var(--nd-red); }
:root[data-theme=dark] .nd-switch::after { transform: translateX(18px); }
.nd-sheet-search { display: flex; align-items: center; gap: 10px; background: var(--nd-bg); border-radius: 12px; padding: 4px 14px; color: var(--nd-muted); }
.nd-sheet-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; padding: 12px 0; color: var(--nd-ink); }
.nd-topics--light a { background: var(--nd-bg); color: var(--nd-ink-2); }
.nd-topics--light a:hover { background: var(--nd-red); color: #fff; }

/* veličina slova u članku */
.nd-prose.nd-fs-1 { font-size: 20px; }
.nd-prose.nd-fs-2 { font-size: 22px; }

/* =====================================================================
   MOBILNA APLIKACIJA (do 900px)
   ===================================================================== */
@media (max-width: 900px) {
	html { -webkit-tap-highlight-color: transparent; }
	body.nd { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

	/* zaglavlje: tema | logo u sredini | pretraga, sakriva se pri skrolanju */
	.nd-header { transition: transform .25s ease; will-change: transform; }
	.nd-header.is-hidden { transform: translateY(-100%); }
	.nd-header-row { display: grid; grid-template-columns: 44px 1fr 44px; height: 52px; gap: 0; }
	.nd-burger, .nd-theme-toggle--d, .nd-hide-m { display: none !important; }
	.nd-theme-toggle--m { display: inline-flex; }
	.nd-logo { justify-self: center; font-size: 25px; }
	.nd-header-tools { margin: 0; justify-self: end; }
	.nd-trend { display: none; }

	.nd-chips { display: block; border-top: 1px solid var(--nd-line); background: var(--nd-surface); }
	.nd-chips-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px; scroll-snap-type: x proximity; }
	.nd-chips-row::-webkit-scrollbar { display: none; }
	.nd-chips a { flex: none; scroll-snap-align: start; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--nd-ink-2); background: var(--nd-bg); white-space: nowrap; }
	.nd-chips a.is-active { background: var(--c, var(--nd-red)); color: #fff; }
	.nd-chips a.nd-chip-tag { background: transparent; color: var(--nd-muted); padding-left: 6px; padding-right: 6px; }

	/* sidebar zamjenjuju paneli */
	.nd-side { display: none !important; }

	/* donja traka sa tabovima */
	.nd-tabbar, .nd-actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 350; background: var(--nd-surface); background: color-mix(in srgb, var(--nd-surface) 92%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--nd-line); padding-bottom: env(safe-area-inset-bottom); }
	body.nd .nd-tabbar > a, body.nd .nd-tabbar > button, body.nd .nd-actionbar > a, body.nd .nd-actionbar > button { flex: 1; min-width: 0; white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; font-size: 10.5px; font-weight: 600; color: var(--nd-muted); letter-spacing: .01em; transition: color .15s, transform .1s; }
	.nd-tabbar > *:active, .nd-actionbar > *:active { transform: scale(.92); }
	.nd-tabbar .nd-i, .nd-actionbar .nd-i { width: 23px; height: 23px; }
	.nd-tabbar .is-active { color: var(--nd-red); }
	.nd-tabbar .is-active .nd-i { stroke-width: 2.4; }
	.nd-tabbar--hidden { display: none; }
	.nd-actionbar-share { color: var(--nd-red) !important; }


	/* footer iznad trake */
	.nd-footer { margin-top: 0; }
}

@media (max-width: 640px) {
	/* sadržaj od ivice do ivice, kao lista u aplikaciji */
	body.nd, body.nd.custom-background { background: var(--nd-surface) !important; }
	.nd-main { padding: 0 0 10px; }
	.nd-main > .nd-wrap { padding: 0; }
	.nd-top, .nd-block-grid, .nd-grid4, .nd-archive-grid, .nd-rows { gap: 0; }

	.nd-card { border-radius: 0; background: var(--nd-surface); border-bottom: 1px solid var(--nd-line); }
	.nd-card:active { background: var(--nd-bg); }

	/* obična kartica = red sa sličicom lijevo */
	.nd-top .nd-card--card, .nd-block-grid .nd-card--card, .nd-archive-grid .nd-card--card, .nd-grid4 .nd-card--card, .nd-card--row { flex-direction: row; align-items: flex-start; padding: 14px 16px; gap: 12px; }
	.nd-top .nd-card--card .nd-card-media, .nd-block-grid .nd-card--card .nd-card-media, .nd-archive-grid .nd-card--card .nd-card-media, .nd-grid4 .nd-card--card .nd-card-media, .nd-card--row .nd-card-media { width: 118px; height: 88px; min-height: 0; aspect-ratio: auto; flex: none; border-radius: 8px; order: 0; }
	.nd-card--card .nd-card-body, .nd-card--row .nd-card-body { padding: 0; min-height: 88px; }
	.nd-card-title { font-size: 16px; line-height: 1.3; }
	.nd-meta { padding-top: 8px; }
	.nd-badge { left: 5px; bottom: 5px; font-size: 9.5px; padding: 2px 5px; }

	/* glavni članak: nadnaslov, slika preko cijele širine, naslov ispod */
	.nd-card--hero, .nd-top .nd-card--hero, .nd-block-grid .nd-card--hero, .nd-archive-grid .nd-card--hero { min-height: 0; color: var(--nd-ink); display: flex; flex-direction: column; padding-bottom: 14px; }
	.nd-card--hero .nd-card-media { position: relative; inset: auto; aspect-ratio: 16 / 10; order: 1; }
	.nd-card--hero .nd-card-media::after { display: none; }
	.nd-card--hero .nd-card-body { display: contents; }
	.nd-card--hero .nd-kicker { order: 0; background: none; color: var(--c, var(--nd-red)) !important; padding: 12px 16px 8px; margin: 0; font-size: 13px; border-radius: 0; }
	:root[data-theme=dark] .nd-card--hero .nd-kicker { color: var(--c, var(--nd-red)) !important; }
	.nd-card--hero .nd-card-title { order: 2; font-size: 23px; line-height: 1.22; padding: 12px 16px 0; text-shadow: none; }
	.nd-card--hero .nd-card-title a:hover { color: inherit; text-decoration: none; }
	.nd-card--hero .nd-meta { order: 3; color: var(--nd-muted); padding: 10px 16px 0; }

	/* blokovi rubrika odvojeni sivom trakom */
	.nd-block { margin-top: 0; border-top: 8px solid var(--nd-bg); }
	.nd-sec-head { margin: 0; padding: 14px 16px 0; border-bottom: 0; }
	.nd-sec-head h2 { font-size: 18px; padding-bottom: 0; }
	.nd-block-grid .nd-card--hero .nd-kicker { display: none; }
	.nd-block-grid .nd-card--hero .nd-card-media { margin: 12px 16px 0; border-radius: 10px; overflow: hidden; }
	.nd-ad { margin: 0; padding: 10px 0; border-top: 8px solid var(--nd-bg); }

	/* arhiva */
	.nd-archive-head { margin: 0; border-radius: 0; border-left: 0; border-top: 4px solid var(--c, var(--nd-red)); padding: 16px; }
	.nd-pagination { padding: 18px 16px 4px; margin: 0; }
	.nd-pagination .page-numbers { background: var(--nd-bg); }

	/* članak */
	.nd-article { margin: 0; padding: 16px 16px 20px; border-radius: 0; }
	.nd-article-title { font-size: 26px; line-height: 1.18; }
	.nd-article-meta { font-size: 13px; }
	.nd-article-media { margin: 16px -16px 0; }
	.nd-article-grid { display: block; margin-top: 18px; }
	.nd-share { display: none; }
	.nd-comments { margin: 0; border-radius: 0; border-top: 8px solid var(--nd-bg); padding: 18px 16px; }
	.nd-404 { border-radius: 0; margin: 0; }

	.nd-footer-grid { padding-left: 16px; padding-right: 16px; }
	.nd-footer-topics { padding-left: 16px; padding-right: 16px; }
}

/* instalirana aplikacija (standalone): bez trake pregleda, prostor za status bar */
@media (display-mode: standalone) {
	.nd-header { padding-top: env(safe-area-inset-top); }
}
