/*
Theme Name: Temelj
Theme URI: https://temelj.hr/
Description: Lagana klasična tema za Temelj.hr – cijene, kalkulatori i vodiči za gradnju i obnovu.
Version: 0.4.6
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: temelj
*/

/* ---------- Font (Inter, OFL, self-hosted) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-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;
}

/* ---------- Tokeni ---------- */
:root {
	--t-ink: #16191d;
	--t-ink2: #3a4048;
	--t-muted: #6b7280;
	--t-bg: #f6f6f4;
	--t-surface: #ffffff;
	--t-line: #e2e2de;
	/* Rub polja za unos: kontrast barem 3:1 prema bijeloj i prema pozadini stranice (WCAG 1.4.11). */
	--t-field-line: #858b94;
	--t-field-bg: #f9f9f7;
	--t-accent: #e8590c;
	--t-accent-dark: #c2470a;
	--t-soft: #fff4ec;
	--t-ok: #2f9e44;
	--t-warn-bg: #fff8db;
	--t-warn-line: #f3d36b;
	--t-r: 10px;
	--t-r-lg: 14px;
	--t-max: 1200px;
	--t-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--t-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--t-ink);
	background: var(--t-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--t-accent-dark); }
a:hover { color: var(--t-accent); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; margin-top: 0; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--t-ink); color: #fff; padding: 10px 16px; border-radius: var(--t-r);
}
.t-wrap { max-width: var(--t-max); margin: 0 auto; padding: 0 24px; }
.t-ic { width: 20px; height: 20px; flex: none; }

/* ---------- Gumbi ---------- */
.t-btn, .wp-block-button__link, .temelj-kb__gumb {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--t-accent); color: #fff; font: inherit; font-weight: 700; font-size: 15px;
	border: 0; border-radius: var(--t-r); padding: 12px 20px; text-decoration: none; cursor: pointer;
}
.t-btn:hover, .wp-block-button__link:hover, .temelj-kb__gumb:hover,
.t-btn:focus, .temelj-kb__gumb:focus { background: var(--t-accent-dark); color: #fff; }

/* ---------- Zaglavlje ---------- */
.t-header { background: var(--t-surface); border-bottom: 1px solid var(--t-line); position: relative; z-index: 10; }
.t-header__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.t-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--t-ink); text-decoration: none; letter-spacing: -0.02em; }
.t-logo:hover { color: var(--t-ink); }
.t-logo__mark { width: 26px; height: 26px; background: var(--t-accent); border-radius: 6px; position: relative; flex: none; }
.t-logo__mark::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 6px; background: #fff; border-radius: 1px; }
.t-logo__tld { color: var(--t-muted); font-weight: 600; }
.t-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.t-nav a { color: var(--t-ink2); font-size: 14px; font-weight: 600; text-decoration: none; }
.t-nav a:hover, .t-nav .current-menu-item > a, .t-nav .current-menu-ancestor > a { color: var(--t-accent); }
.t-search { margin-left: auto; position: relative; width: 240px; }
.t-search input {
	width: 100%; font: inherit; font-size: 14px; border: 1.5px solid var(--t-field-line); border-radius: 999px;
	padding: 8px 14px 8px 38px; background: var(--t-field-bg); color: var(--t-ink);
}
.t-search input:focus { border-color: var(--t-accent); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.25); }
.t-search .t-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--t-muted); pointer-events: none; }
.t-menu { display: none; margin-left: auto; }
.t-menu summary { list-style: none; cursor: pointer; padding: 8px; display: flex; }
.t-menu summary::-webkit-details-marker { display: none; }
.t-menu summary .t-ic { width: 26px; height: 26px; }
.t-menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--t-surface); border-bottom: 1px solid var(--t-line); padding: 12px 16px 20px; box-shadow: 0 16px 30px rgba(20, 20, 20, 0.08); }
.t-menu__panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.t-menu__panel li a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--t-line); color: var(--t-ink); font-weight: 600; text-decoration: none; }
.t-menu__panel .t-search { display: block; width: 100%; margin: 0; }

/* ---------- Mrvice ---------- */
.t-crumbs { font-size: 13px; color: var(--t-muted); padding: 18px 0 10px; }
.t-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.t-crumbs li + li::before { content: "›"; margin-right: 4px; }
.t-crumbs a { color: var(--t-muted); text-decoration: none; }
.t-crumbs a:hover { color: var(--t-accent); }
.t-crumbs [aria-current] { color: var(--t-ink); font-weight: 600; }

/* ---------- Početna ---------- */
.t-hero { padding: 48px 0 28px; }
.t-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 2.9rem); max-width: 760px; }
.t-hero__lead { color: var(--t-ink2); font-size: 18px; max-width: 640px; margin: 12px 0 26px; }
.t-tool { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px rgba(20, 20, 20, 0.06); max-width: 900px; }
.t-tool__f { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; }
.t-tool label { display: block; border: 1.5px solid var(--t-field-line); border-radius: var(--t-r); padding: 8px 12px 6px; background: var(--t-field-bg); }
.t-tool label:hover { border-color: var(--t-ink2); }
.t-tool label:focus-within { border-color: var(--t-accent); background: #fff; box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.25); }
.t-tool select:focus-visible { outline: none; }
.t-tool label span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-muted); }
.t-tool select { width: 100%; border: 0; padding: 2px 0; font: inherit; font-weight: 700; background: transparent; color: var(--t-ink); }
.t-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--t-ink2); padding: 0; list-style: none; }
.t-trust li { display: flex; gap: 6px; align-items: center; }
.t-trust .t-ic { color: var(--t-ok); width: 18px; }
.t-sec { padding: 30px 0; }
.t-sec__h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.t-sec__h h2 { margin: 0; }
.t-sec__h a { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.t-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.t-card { display: block; height: 100%; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 12px; padding: 16px; color: var(--t-ink); text-decoration: none; }
a.t-card:hover { border-color: var(--t-accent); color: var(--t-ink); }
.t-card .t-ic { width: 30px; height: 30px; color: var(--t-accent); margin-bottom: 12px; }
.t-card b { display: block; }
.t-card span { font-size: 13px; color: var(--t-muted); }
.t-card--soon { opacity: 0.6; }
.t-card--soon .t-ic { color: var(--t-muted); }
.t-matrix { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-lg); overflow-x: auto; }
.t-matrix table { margin: 0; }
.t-matrix th { width: 180px; }
.t-matrix td a { font-weight: 600; font-size: 14px; text-decoration: none; }
.t-guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.t-gd { color: var(--t-ink); text-decoration: none; display: block; }
.t-gd:hover { color: var(--t-ink); }
.t-gd:hover b { color: var(--t-accent-dark); }
.t-gd__im { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #d9d4cc, #efe9e1); margin-bottom: 10px; overflow: hidden; }
.t-gd__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-gd small { color: var(--t-accent-dark); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.t-gd b { display: block; font-size: 17px; line-height: 1.3; margin: 4px 0; }
.t-gd span { font-size: 14px; color: var(--t-muted); }
.t-method { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: var(--t-ink); color: #fff; border-radius: 18px; padding: 32px; }
.t-method h2 { color: #fff; margin: 0 0 8px; }
.t-method p { color: #bbb; }
.t-method a { color: #ffb88a; }
.t-method ul { list-style: none; margin: 0; padding: 0; }
.t-method li { display: flex; gap: 10px; margin: 10px 0; color: #d6d6d6; }
.t-method .t-ic { color: var(--t-accent); }
.t-empty { background: var(--t-surface); border: 1px dashed var(--t-line); border-radius: var(--t-r); padding: 18px; color: var(--t-muted); }

/* ---------- Tablice ---------- */
table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--t-line); font-size: 15px; vertical-align: top; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-muted); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Sadržaj (vodiči, stranice) ---------- */
.t-main { padding-bottom: 24px; }
.t-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.t-article--wide { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.t-box { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-lg); padding: 20px; margin-bottom: 20px; }
.t-box > h2:first-child { margin-top: 0; }
.t-entry { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-lg); padding: clamp(20px, 4vw, 40px); }
.t-entry__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.t-entry h1 { margin: 6px 0 10px; }
.t-entry__img { margin: 18px 0; border-radius: 12px; overflow: hidden; }
.t-entry__img img { display: block; width: 100%; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--t-ink2); margin: 0 0 18px; padding: 0; list-style: none; }
.t-meta li { display: flex; gap: 6px; align-items: center; }
.t-meta .t-ic { width: 16px; height: 16px; color: var(--t-muted); }
.t-content { font-size: 18px; }
.t-content > * { max-width: 72ch; }
.t-content > .alignwide, .t-content > .alignfull, .t-content > table, .t-content > .wp-block-table { max-width: none; }
.t-content figure { margin: 1.5em 0; }
.t-content figcaption { font-size: 14px; color: var(--t-muted); }
.t-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--t-accent); color: var(--t-ink2); }
.t-content details { border-bottom: 1px solid var(--t-line); padding: 12px 0; }
.t-content summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.t-content summary::-webkit-details-marker { display: none; }
.t-content summary::after { content: "+"; color: var(--t-accent); font-size: 22px; line-height: 1; }
.t-content details[open] > summary { margin-bottom: 8px; }
.t-content details[open] > summary::after { content: "–"; }
.t-content .wp-block-table { overflow-x: auto; }
.t-content .wp-block-table th, .t-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--t-line); }
.t-content .wp-block-table thead { border-bottom: 2px solid var(--t-ink); }
.t-side { position: sticky; top: 16px; }
.t-side h2 { font-size: 16px; margin: 0 0 10px; }
.t-side ul { list-style: none; margin: 0; padding: 0; }
.t-side li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--t-line); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--t-ink); }
.t-side li a:hover { color: var(--t-accent-dark); }
.t-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.t-pager { margin: 28px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.t-pager .page-numbers { padding: 8px 14px; border-radius: var(--t-r); background: var(--t-surface); border: 1px solid var(--t-line); text-decoration: none; color: var(--t-ink); font-weight: 600; }
.t-pager .current { background: var(--t-ink); color: #fff; border-color: var(--t-ink); }

/* ---------- Stranica cijene ---------- */
.t-price { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.t-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.t-chips a { display: block; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--t-surface); border: 1.5px solid var(--t-line); color: var(--t-ink); text-decoration: none; }
.t-chips a:hover { border-color: var(--t-ink); }
.t-chips [aria-current] { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.t-flag { display: flex; gap: 10px; background: var(--t-warn-bg); border: 1px solid var(--t-warn-line); border-radius: var(--t-r); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.t-flag .t-ic { color: #a87a00; }
.t-ph { color: var(--t-muted); font-weight: 600; }
.t-unit { color: var(--t-muted); font-size: 13px; margin-left: 2px; }
.t-src { font-size: 13px; color: var(--t-ink2); margin-top: 12px; }
.t-src p { margin: 0 0 4px; }
.t-src ul { margin: 0 0 8px; padding-left: 18px; }
.t-sponsor { background: var(--t-surface); border: 1px dashed var(--t-line); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--t-muted); text-align: center; margin-bottom: 20px; }
.t-faq details { border-bottom: 1px solid var(--t-line); }
.t-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; cursor: pointer; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::after { content: "+"; color: var(--t-accent); font-size: 22px; line-height: 1; }
.t-faq details[open] summary::after { content: "–"; }
.t-faq details p { color: var(--t-ink2); margin: 0 0 14px; }

/* ---------- Kalkulator (stilovi za temelj-core) ---------- */
.temelj-kb fieldset { border: 0; border-top: 1px solid var(--t-line); margin: 0; padding: 14px 0 6px; }
.temelj-kb fieldset:first-of-type { border-top: 0; padding-top: 0; }
.temelj-kb legend { float: left; width: 100%; font-weight: 700; font-size: 15px; padding: 0 0 10px; }
.temelj-kb fieldset > .temelj-kb__polja { clear: both; }
.temelj-kb__polja { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px 12px; align-items: center; }
.temelj-kb__polja label { font-size: 14px; font-weight: 600; color: var(--t-ink2); }
.temelj-kb__grupa { border-top: 1px solid var(--t-line); padding: 12px 0; }
.temelj-kb__grupa summary { list-style: none; display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; cursor: pointer; }
.temelj-kb__grupa summary::-webkit-details-marker { display: none; }
.temelj-kb__grupa summary::after { content: "+"; color: var(--t-accent); font-size: 20px; line-height: 1; }
.temelj-kb__grupa[open] summary { margin-bottom: 10px; }
.temelj-kb__grupa[open] summary::after { content: "–"; }
.temelj-kb input, .temelj-kb select {
	width: 100%; font: inherit; font-size: 15px; border: 1.5px solid var(--t-field-line); border-radius: 8px;
	padding: 9px 11px; background: var(--t-field-bg); color: var(--t-ink);
}
.temelj-kb input:hover, .temelj-kb select:hover { border-color: var(--t-ink2); }
.temelj-kb input:focus, .temelj-kb select:focus { border-color: var(--t-accent); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.25); }
.temelj-kb__jed { color: var(--t-muted); font-weight: 500; }
.temelj-kb__forma > .temelj-kb__gumb { width: 100%; margin-top: 14px; }
.temelj-kb__rezultat { margin-top: 16px; padding: 16px; border-radius: var(--t-r); background: var(--t-soft); font-size: 15px; }
.temelj-kb__rezultat p { margin: 0 0 8px; }
.temelj-kb__glavno { font-size: 17px; font-weight: 600; }
.temelj-kb__glavno strong { font-size: 30px; line-height: 1.15; }
.temelj-kb__cijena { border-top: 1px solid rgba(0, 0, 0, 0.08); margin-top: 10px; padding-top: 10px; }
.temelj-kb__cijena .temelj-kb__gumb { width: 100%; margin-top: 6px; }
.temelj-kb__polje { margin: 0 0 10px; }
.temelj-kb__polje label { display: block; font-size: 14px; font-weight: 600; color: var(--t-ink2); margin-bottom: 4px; }
.temelj-kb fieldset > .temelj-kb__polja + .temelj-kb__polje { margin-top: 10px; }
.temelj-kb fieldset > .temelj-kb__polje + .temelj-kb__polja { margin-top: 4px; }
.temelj-kb__tablica { margin: 8px 0; }
.temelj-kb__tablica th, .temelj-kb__tablica td { padding: 7px 8px 7px 0; font-size: 14px; border-bottom-color: rgba(0, 0, 0, 0.08); }
.temelj-kb__tablica th { color: var(--t-ink2); font-weight: 600; width: 34%; }
.temelj-kb__napomena { font-size: 13px; color: var(--t-ink2); }
.temelj-kalk__uvod { font-size: 18px; color: var(--t-ink2); max-width: 72ch; }
.temelj-kalk__alat .temelj-kb__polja { grid-template-columns: minmax(0, 1fr) 180px; }
.temelj-kalk__kartice { margin-bottom: 24px; }
.temelj-kalk__popis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.temelj-kalk__popis .t-box { margin: 0; }
.temelj-kalk__popis h2 { font-size: 1.25rem; }
.temelj-kalk__popis h2 a { color: var(--t-ink); text-decoration: none; }
.temelj-kalk__popis h2 a:hover { color: var(--t-accent-dark); }
.temelj-kalk__popis p:last-child, .temelj-kalk__popis .t-chips { margin-bottom: 0; }
@media (max-width: 640px) {
	.temelj-kalk__alat .temelj-kb__polja { grid-template-columns: minmax(0, 1fr) 132px; }
	.temelj-kalk__popis { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Vodič: povjerenje i snalaženje ---------- */
.t-meta__rec { color: var(--t-ok); font-weight: 600; }
.t-meta__rec .t-ic { color: var(--t-ok); }
.t-meta a { color: inherit; }
.t-ukratko, .t-odgovor { background: var(--t-soft); border-left: 4px solid var(--t-accent); border-radius: 0 var(--t-r) var(--t-r) 0; padding: 14px 18px; margin: 0 0 22px; }
.t-ukratko b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-accent-dark); margin-bottom: 4px; }
.t-ukratko p, .t-odgovor p:last-child { margin: 0; }
.t-upozorenje { background: var(--t-warn-bg); border: 1px solid var(--t-warn-line); border-radius: var(--t-r); padding: 14px 18px; margin: 1.5em 0; }
.t-upozorenje p:last-child { margin: 0; }
.t-toc { border: 1px solid var(--t-line); border-radius: var(--t-r); padding: 14px 18px; margin: 0 0 24px; font-size: 15px; max-width: 72ch; }
.t-toc b { display: block; margin-bottom: 6px; }
.t-toc ol { margin: 0; padding-left: 20px; }
.t-toc li { margin: 3px 0; }
.t-toc a { text-decoration: none; }
.t-content h2[id] { scroll-margin-top: 16px; }
/* Stranica Cijene: kartice materijala iz [temelj_cijene_popis] (temelj-core). */
.t-content > .t-mcards, .t-content > .t-mfeat { max-width: none; }
.t-mfeat { display: flex; gap: 18px; align-items: flex-start; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-lg); padding: 20px; margin: 0 0 1.2em; }
.t-mfeat__ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--t-bg); color: var(--t-accent); }
.t-mfeat__ic .t-ic { width: 32px; height: 32px; }
.t-mfeat__txt { min-width: 0; }
.t-mfeat__h { display: block; font-size: 19px; font-weight: 800; color: var(--t-ink); text-decoration: none; }
.t-mfeat__h:hover { color: var(--t-accent); }
.t-mfeat__txt > span { display: block; font-size: 15px; color: var(--t-muted); margin: 2px 0 12px; }
.t-mfeat .t-chips { margin: 0; }
.t-content .t-mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; list-style: none; margin: 0 0 1.2em; padding: 0; }
.t-content .t-mcards li { margin: 0; }
.t-mcard { display: flex; flex-direction: column; height: 100%; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 12px; padding: 14px 16px; color: var(--t-ink); text-decoration: none; }
.t-mcard:hover { border-color: var(--t-accent); color: var(--t-ink); }
.t-mcard__img { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 8px; background: #fff; border: 1px solid var(--t-line); color: var(--t-accent); overflow: hidden; }
.t-mcard__img img { width: 56px; height: 56px; object-fit: contain; }
.t-mcard__img .t-ic { width: 28px; height: 28px; }
.t-mcard b { font-size: 17px; line-height: 1.3; }
.t-mcard span { font-size: 14px; color: var(--t-ink2); margin-top: 2px; }
.t-mcard small { font-size: 13px; color: var(--t-muted); margin-top: auto; padding-top: 6px; }
@media (max-width: 640px) { .t-content .t-mcards { grid-template-columns: 1fr 1fr; } .t-mfeat { flex-direction: column; gap: 12px; padding: 16px; } }
.t-content .t-check { list-style: none; padding-left: 0; }
.t-content .t-check li { position: relative; padding-left: 30px; margin: 6px 0; }
.t-content .t-check li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 16px; height: 16px; border: 2px solid var(--t-ok); border-radius: 4px; }
.t-content .t-koraci { list-style: none; counter-reset: korak; padding-left: 0; }
.t-content .t-koraci li { counter-increment: korak; position: relative; padding: 0 0 14px 46px; min-height: 32px; }
.t-content .t-koraci li::before { content: counter(korak); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--t-ink); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.t-content .t-cijene figcaption, .t-content .wp-block-table figcaption { font-size: 13px; color: var(--t-muted); }
.t-sources { border-top: 1px solid var(--t-line); margin-top: 28px; padding-top: 6px; font-size: 14px; color: var(--t-ink2); }
.t-sources h2 { font-size: 16px; margin: 12px 0 8px; }
.t-sources ol { padding-left: 20px; margin: 0; }
.t-sources a { word-break: break-word; }
.t-author { display: flex; gap: 16px; align-items: flex-start; background: var(--t-bg); border-radius: var(--t-r); padding: 16px; margin-top: 28px; }
.t-author img { border-radius: 50%; flex: none; }
.t-logo__mark--avatar { display: block; border-radius: 14px; }
.t-logo__mark--avatar::after { left: 18%; right: 18%; bottom: 18%; height: 22%; }
.t-author small, .t-profile small, .t-hub small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-muted); font-weight: 700; }
.t-author b a { color: var(--t-ink); text-decoration: none; }
.t-author p { margin: 4px 0 0; font-size: 15px; color: var(--t-ink2); }
.t-fix { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--t-ink2); margin: 20px 0 0; }
.t-price__main > .t-fix { margin: 0 0 16px; }
.t-fix .t-ic { color: var(--t-muted); width: 18px; margin-top: 2px; }
.t-links { list-style: none; margin: 0; padding: 0; }
.t-links a { display: block; padding: 7px 0; border-bottom: 1px solid var(--t-line); font-weight: 600; text-decoration: none; color: var(--t-ink); }
.t-chips--alati { margin-top: 4px; }
.t-related { margin-top: 28px; }
.t-related h2 { font-size: 18px; margin: 0 0 10px; }
.t-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.t-related a { display: block; height: 100%; border: 1.5px solid var(--t-line); border-radius: var(--t-r); padding: 12px 14px; text-decoration: none; color: var(--t-ink); }
.t-related a:hover { border-color: var(--t-accent); color: var(--t-ink); }
.t-related b { display: block; font-size: 15px; }
.t-related span { font-size: 13px; color: var(--t-muted); }

.t-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 18px 0; padding: 0; }
.t-facts li { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 12px; padding: 14px 16px; }
.t-facts small { display: block; font-size: 12px; color: var(--t-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.t-facts b { display: block; font-size: 24px; line-height: 1.25; margin: 2px 0; }
.t-facts a, .t-facts span { font-size: 14px; }
.t-hubtab { margin: 18px 0 8px; }
.t-hubtab + .t-price { margin-top: 20px; }
.t-ponude td small { display: block; }
.t-ponude .t-ponude__cij { white-space: nowrap; }
.t-ponude .t-ponude__st td { font-weight: 600; white-space: nowrap; }
.t-ponude__img { display: block; width: 56px; height: 56px; margin: 6px 0 2px; object-fit: contain; background: #fff; border: 1px solid var(--t-line); border-radius: 6px; }
.t-sortbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.t-sortbtn:hover, .t-sortbtn:focus-visible { color: var(--t-accent); }
.t-ponude .t-ponude__st th, .t-ponude .t-ponude__st td { background: var(--t-bg); padding-top: 8px; padding-bottom: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-muted); text-align: left; }
.t-ponude .t-ponude__dat { display: none; }
@media (max-width: 600px) { .t-ponude { font-size: 13px; } .t-ponude td, .t-ponude th { padding-left: 4px; padding-right: 4px; } .t-ponude .t-ponude__pre { display: none; } .t-ponude .t-ponude__dat { display: block; } }
.t-hubtab th a { text-decoration: none; font-weight: 700; }
.t-hubtab td { white-space: nowrap; }
.t-hubtab__reg th { background: var(--t-bg); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-muted); padding-top: 8px; padding-bottom: 8px; }
.t-note { font-size: 14px; color: var(--t-muted); margin-bottom: 24px; }
.t-matrix th a { color: var(--t-ink); text-decoration: none; }

/* ---------- Autor i kategorije (hub) ---------- */
.t-profile { display: flex; gap: 20px; align-items: center; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-lg); padding: 24px; margin-bottom: 28px; }
.t-profile img { border-radius: 50%; flex: none; }
.t-profile h1 { margin: 2px 0 6px; }
.t-profile p { margin: 0 0 6px; color: var(--t-ink2); max-width: 70ch; }
.t-hub { padding: 6px 0 4px; }
.t-hub h1 { margin: 2px 0 10px; }
.t-hub__lead { color: var(--t-ink2); font-size: 18px; max-width: 72ch; }

/* ---------- Podnožje ---------- */
.t-footer { background: var(--t-ink); color: #fff; padding: 40px 0 20px; margin-top: 56px; }
.t-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.t-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; color: #bbb; }
.t-footer ul { list-style: none; margin: 0; padding: 0; }
.t-footer a { display: block; font-size: 14px; padding: 3px 0; color: #eee; text-decoration: none; }
.t-footer a:hover { color: #ffb88a; }
.t-footer__bottom { font-size: 12px; color: #999; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* ---------- Gutenberg poravnanja ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Mobitel ---------- */
@media (max-width: 960px) {
	.t-nav, .t-header__in > .t-search { display: none; }
	.t-menu { display: block; }
	.t-cards { grid-template-columns: repeat(3, 1fr); }
	.t-guides, .t-list { grid-template-columns: 1fr 1fr; }
	.t-price, .t-article { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
	.t-side { position: static; }
	/* Kalkulator odmah ispod tablice cijena, prije FAQ-a. */
	.t-price__main { display: contents; }
	.t-price__main > * { order: 1; }
	.t-price__calc { order: 2; }
	.t-price__faq { order: 3; }
	.t-price__more { order: 4; }
}
@media (max-width: 640px) {
	.t-profile, .t-author { flex-direction: column; }
	.t-facts { grid-template-columns: 1fr; }
	.t-wrap { padding: 0 16px; }
	.t-header__in { min-height: 58px; }
	.t-tool__f { grid-template-columns: 1fr; }
	.t-cards { grid-template-columns: 1fr 1fr; }
	.t-guides, .t-list, .t-method, .t-footer__grid { grid-template-columns: 1fr; }
	.t-footer__grid { grid-template-columns: 1fr 1fr; }
	.t-method { padding: 22px; }
	.t-matrix th { width: auto; }
	th, td { padding: 10px; }
	.t-content { font-size: 17px; }
}

/* ---------- Ispis (kalkulator, tablice cijena, vodiči) ---------- */
@media print {
	.t-header, .t-footer, .t-crumbs, .t-side:not(.t-price__calc), .t-chips, .t-search, .t-fix, .t-btn, .temelj-kb__gumb { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.t-entry, .t-box { border: 0; padding: 0; }
	.t-article, .t-price { display: block; }
	a { color: inherit; text-decoration: none; }
	.t-sources a::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
