/* Scoped addition: the existing topic layout and the full catalogue retain their styles. */
html.te-topic-entry { scroll-behavior:auto; overflow-anchor:none; }
html.te-topic-entry .te-hero,
html.te-topic-entry #te-catalog,
body.te-compact-active .te-hero,
body.te-compact-active #te-catalog { display:none; }
body.te-compact-active .site-chrome-root .site-header { background:rgba(5,39,24,.96); backdrop-filter:blur(14px); box-shadow:0 10px 34px rgba(0,0,0,.18); }
html.te-topic-entry .te-main,
body.te-compact-active .te-main { padding-top:calc(var(--te-fixed-header-height,80px) + 24px); }
body.te-compact-active #te-selected { margin-top:0; border-top:0; padding-top:24px; }
body.te-compact-active #odabrana-tema { scroll-margin-top:calc(var(--te-fixed-header-height,80px) + 94px); }
.te-switcher { position:relative; z-index:25; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:64px; padding:10px 0; border-bottom:1px solid #dce8de; scroll-margin-top:calc(var(--te-fixed-header-height,80px) + 16px); }
.te-switcher-context { display:flex; align-items:center; gap:17px; min-width:0; font-size:14px; line-height:1.35; }
.te-main .te-switcher-home { display:inline-flex; align-items:center; gap:9px; color:#547069; flex-shrink:0; font-weight:500; }
.te-switcher-home svg { flex-shrink:0; }
.te-switcher-home:hover { color:#043b2a; text-decoration:underline; text-underline-offset:4px; }
.te-switcher-divider { color:#a9bcb3; }
.te-switcher-current { font-weight:700; color:#123f33; }
.te-main .te-switcher-toggle { display:inline-flex; justify-content:center; align-items:center; gap:14px; flex-shrink:0; min-height:42px; padding:9px 15px; color:#123f33; background:#fff; border:1px solid #bfd2c6; border-radius:9px; font-size:13px; font-weight:650; line-height:1.4; }
.te-switcher-toggle:hover,.te-switcher-toggle[aria-expanded="true"] { border-color:#6d9e70; background:#edf5e7; }
.te-switcher-toggle svg { transition:transform .16s ease; }
.te-switcher-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.te-switcher-panel { position:absolute; top:calc(100% + 8px); right:0; width:650px; max-width:100%; border:1px solid #d2e0d4; border-radius:16px; background:#fff; box-shadow:0 20px 50px #133d2524,0 3px 10px #133d2510; overflow:auto; max-height:min(600px,calc(100dvh - var(--te-fixed-header-height,80px) - 110px)); overscroll-behavior:contain; }
.te-switcher-panel-head { display:flex; justify-content:space-between; align-items:center; padding:18px 20px 14px; gap:14px; }
.te-switcher-panel-head strong { font-size:15px; color:#123f33; }
.te-switcher-panel-head>span { font-size:12px; color:#6d8076; }
.te-switcher-options { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:0 10px 10px; }
.te-main .te-switcher-option { display:flex; align-items:center; gap:11px; min-width:0; min-height:61px; padding:8px 10px; border:1px solid transparent; border-radius:10px; font-size:13px; font-weight:600; line-height:1.35; color:#1c3e33; }
.te-switcher-option img { width:38px; height:38px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.te-switcher-option>span { flex:1; }
.te-switcher-check { flex-shrink:0; visibility:hidden; color:#285a38; }
.te-switcher-option:hover { background:#f3f7f0; }
.te-switcher-option[aria-current="page"] { background:#edf5e5; border-color:#d7e8c6; }
.te-switcher-option[aria-current="page"] .te-switcher-check { visibility:visible; }
.te-main .te-switcher-all { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; background:#f7faf5; border-top:1px solid #e3ece0; font-size:13px; font-weight:650; color:#305b3b; }
.te-switcher-all:hover { background:#edf5e7; }
@media (max-width:780px) {
  .te-switcher { gap:12px; }
  .te-switcher-context { gap:10px; font-size:13px; }
  .te-switcher-home span { display:none; }
  .te-main .te-switcher-home { min-width:30px; min-height:42px; justify-content:center; }
  .te-switcher-home::after { content:""; }
  .te-main .te-switcher-toggle { font-size:12px; gap:8px; padding-inline:12px; }
}
@media (min-width:541px) and (max-width:1100px) {
  .te-switcher { padding-right:24px; }
  .te-switcher-panel { right:24px; max-width:calc(100% - 24px); }
}
@media (max-width:540px) {
  body.te-compact-active .te-main { padding-top:calc(var(--te-fixed-header-height,80px) + 12px); }
  body.te-compact-active #te-selected { padding-top:20px; }
  .te-switcher { flex-wrap:wrap; gap:8px; min-height:96px; padding:8px 0 12px; }
  .te-switcher-context { width:100%; font-size:13px; gap:9px; }
  .te-switcher-current { flex:1; }
  .te-main .te-switcher-home { min-width:22px; min-height:28px; }
  .te-main .te-switcher-toggle { margin-left:0; min-height:40px; padding:8px 13px; }
  .te-switcher-panel { width:100%; max-height:calc(100dvh - var(--te-fixed-header-height,80px) - 138px); }
  .te-switcher-options { grid-template-columns:1fr; gap:2px; padding-inline:8px; }
  .te-switcher-option { min-height:52px; }
  .te-switcher-panel-head { padding:15px 18px 10px; }
}
@media (prefers-reduced-motion:reduce) { .te-switcher-toggle svg { transition:none; } }
@media print { .te-switcher { display:none; } body.te-compact-active .te-main { padding-top:0; } }
