/* Desktop artwork stays at its original size inside a fluid three-column layout. */
.mobile-only { display: none; }
.keyword-alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 5px 12px; }
.keyword-alphabet a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 2px 4px; box-sizing: border-box; border: 1px solid #b9b58e; background: #e6e5b6; color: #455376; font-size: 12px; font-weight: bold; text-decoration: none; }
.keyword-alphabet a[aria-current="page"], .keyword-alphabet a:hover { background: #737b82; color: #ffffcb; }
.keyword-alphabet a:focus-visible { outline: 2px solid #455376; }
.desktop-home .mobile-all { display: block; text-align: right; margin: 6px 5px 10px; color: #455376; }

.desktop-tabs { display: flex; margin: 0 0 12px; border: 1px solid #737b82; }
.desktop-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 5px; color: #455376; background: #e6e5b6; border-right: 1px solid #737b82; font-size: 12px; font-weight: bold; text-decoration: none; }
.desktop-tabs a:last-child { border-right: 0; }
.desktop-tabs a[aria-selected="true"] { background: #737b82; color: #ffffcb; }
.mobile-ready .desktop-panel[hidden] { display: none; }
.desktop-tabs a:focus-visible { outline: 3px solid #455376; outline-offset: -3px; }
@media (min-width: 1000px) {
    #bg_banner_left #main { width: calc(100% - 20px); min-width: min(1000px, 100%); max-width: 1280px; }
    /* Split extra width 30% left / 70% middle; the middle track absorbs subpixel rounding. */
    #content { width: calc(100% - 8px); display: grid; grid-template-columns: calc(161px + (100% - 992px) * .3) minmax(0, 1fr) 129px; align-items: start; }
    #content #c_left { width: auto; padding-top: 44px; background-position: left top; background-size: 100% 1px; background-origin: content-box; background-clip: content-box; }
    #content #c_left #top { background-size: 100% 176px; }
    #c_left .left_start { background-size: 100% 8px; }
    #c_left .left_end { background-size: 100% 9px; }
    #c_left .LN { margin-right: 9px; background-size: 100% 26px; }
    #c_left .LN2 span, #c_left .LN3 span { background-position: right 3px; }
    #content #c_center { width: auto; }
    #content #c_center .content_list, #content #c_center .content_detail,
    #content #c_center .content_list p, #content #c_center .content_list a,
    #content #c_center .content_detail p, #content #c_center .content_detail a,
    #content #c_center .text { font-size: 13px; line-height: 1.6; }
    #content #c_banner { padding-top: 44px; }
    #header { position: relative; isolation: isolate; z-index: 2; }
    .desktop-banner-art { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
    .desktop-banner-prabhupada, .desktop-banner-krishna, .desktop-banner-centre { position: absolute; top: 0; height: 181px; pointer-events: auto; }
    #header #Menu1 { position: relative; z-index: 1; }
    .desktop-banner-art a:focus-visible { outline: 2px solid #ffffcb; outline-offset: -2px; }
    .desktop-banner-prabhupada { left: 5px; width: 162px; }
    .desktop-banner-prabhupada::before { content: ""; position: absolute; left: 0; top: 0; width: 162px; height: 137px;
        background: url(../images/template/banner_mdzsk.jpg) left top no-repeat;
        clip-path: polygon(0 0, 144px 0, 144px 96px, 152px 96px, 152px 113px, 162px 113px, 162px 137px, 0 137px); }
    /* One CSS pixel of overlap prevents a hairline at fractional browser zoom. */
    .desktop-banner-prabhupada::after { content: ""; position: absolute; left: 0; top: 136px; width: 161px; height: 45px;
        background: url(../images/template/content_left_sp.jpg) left top / 161px 45px no-repeat; }
    .desktop-banner-centre { left: calc(166px + (100% - 1000px) * .3 + (702px + (100% - 1000px) * .7) / 2); transform: translateX(-50%); width: 692px; height: 137px;
        background: url(../images/template/banner_mdzsk_center.png) -144px top no-repeat; }
    .desktop-banner-krishna { right: 3px; width: 156px; }
    .desktop-banner-krishna::before { content: ""; position: absolute; right: 0; top: 0; width: 156px; height: 137px;
        background: url(../images/template/banner_mdzsk.jpg) right top no-repeat; }
    .desktop-banner-krishna::after { content: ""; position: absolute; right: 0; top: 137px; width: 129px; height: 44px;
        background: url(../images/template/content_banner_krsna.jpg) right top no-repeat; }
}
.text-neighbors { display: flex; gap: 12px; clear: both; margin: 16px 5px; }
h2 + .text-neighbors { padding-bottom: 12px; border-bottom: 1px solid #b9b58e; }
.text-neighbor { flex: 1; min-width: 0; padding: 8px; color: #455376; text-decoration: none; }
.text-neighbor-next { text-align: right; margin-left: auto; }
.text-neighbor-label { display: flex; align-items: center; gap: 6px; font-weight: bold; margin-bottom: 5px; }
.text-neighbor-next .text-neighbor-label { flex-direction: row-reverse; }
.text-neighbor svg { flex: 0 0 20px; width: 20px; height: 20px; }
.text-neighbor-title { display: block; overflow-wrap: anywhere; text-decoration: underline; }
.text-neighbor:hover, .text-neighbor:focus-visible { background: #f4eaa5; color: #455376; }
/* Complement desktop exactly, including fractional widths caused by zoom. */
@media not all and (min-width: 1000px) {
    body { background: #f4eaa5; font-size: 15px; line-height: 1.55; }
    #bg_banner_left { background: none; }
    #bg_banner_left #main { width: auto; max-width: 100%; margin: 0; }
    #header, #content #c_left, .desktop-home { display: none; }
    .mobile-only { display: block; }
    #content { width: auto; margin: 0 10px; padding: 0; }
    #content #c_center { float: none; width: auto; min-width: 0; background: #ffffcb; box-shadow: none; border: 1px solid #b9b58e; border-radius: 0 0 6px 6px; }
    #content #c_center > #top { padding: 0; background: none; }
    #content #c_center > #top > .container { min-height: 0; padding: 10px; overflow-wrap: anywhere; }
    #content #c_center > #top > .end { display: none; }
    .mobile-header { border: 0; }
    .mobile-brand { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 86px; box-sizing: border-box; padding: 12px 16px 12px 128px;
        background: linear-gradient(to bottom, #455376 0 1px, #f1eee8 1px 2px, #455376 2px 4px, #f1eee8 4px 5px, #455376 5px 8px) left top / 100% 8px no-repeat,
            linear-gradient(#455376, #455376) left bottom / 100% 3px no-repeat, #f1eee8;
        color: #455376; text-decoration: none; }
    /* Crop the red rules out of Portal's artwork; retain the unmodified portrait. */
    .mobile-brand::before { content: ''; position: absolute; left: 0; top: 0; width: 128px; height: 86px; clip-path: inset(8px 0 3px 0);
        background: linear-gradient(90deg, transparent 90px, #f1eee8 128px), url(https://portal.iskcon.hr/images/template/banner_new.jpg) left top / auto 86px no-repeat; }
    .mobile-brand:hover { color: #455376; text-decoration: none; }
    .mobile-brand strong { position: relative; font: bold 24px/1.15 Georgia, 'Times New Roman', serif; }
    .mobile-brand span { position: relative; margin-top: 5px; color: #455376; font: 12px/1.4 Verdana, sans-serif; }
    .text-neighbors { margin: 18px 0; gap: 6px; font-size: 14px; }
    .mobile-navigation { display: flex; align-items: stretch; justify-content: flex-end; margin: 0 10px 10px; border: 1px solid #737b82; border-radius: 5px; background: #e6e5b6; overflow: hidden; }
    .mobile-navigation a, .mobile-navigation button { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 46px; padding: 0 8px; border: 0; border-right: 1px solid #b9b58e; background: transparent; color: #455376; font: bold 14px Verdana, sans-serif; text-decoration: none; cursor: pointer; }
    .mobile-navigation .mobile-home, .mobile-navigation button { flex: 0 0 44px; padding: 0; }
    .mobile-navigation button { flex: 0 0 48px; font-size: 23px; }
    .mobile-navigation button svg { display: block; }
    .mobile-navigation .mobile-home svg { width: 22px; height: 22px; }
    .mobile-navigation button:last-child { border-right: 0; }
    .mobile-navigation button[aria-expanded="true"] { background: #737b82; color: #ffffcb; }
    .mobile-menu { margin: 0 10px 12px; padding: 10px; background: #ffffcb; border: 1px solid #b9b58e; border-radius: 5px; }
    .mobile-ready .mobile-menu:not(.is-open) { display: none; }
    .mobile-menu a, .mobile-text-navigation a, .mobile-menu summary, .mobile-text-navigation summary { display: flex; align-items: center; gap: 9px; padding: 10px 8px; min-height: 24px; color: #455376; text-decoration: none; border-bottom: 1px solid #e6e5b6; }
    .mobile-menu-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #737b82; }
    .mobile-menu .mobile-search { margin: 14px 0 8px; padding: 12px 8px; border-top: 1px solid #b9b58e; border-bottom: 1px solid #b9b58e; }
    .mobile-menu .mobile-search > div { align-items: stretch; }
    .mobile-menu .mobile-search button { border-radius: 4px; cursor: pointer; }
    .mobile-menu summary, .mobile-text-navigation summary { display: list-item; list-style-position: inside; cursor: pointer; font-weight: bold; }
    .mobile-menu summary::marker, .mobile-text-navigation summary::marker { color: #455376; }
    .mobile-branches { padding-left: 14px; border-left: 2px solid #e6e5b6; margin-left: 8px; }
    .mobile-text-navigation { margin-top: 20px; }
    .mobile-menu .mobile-text-navigation { margin-top: 12px; }
    .mobile-letters { display: flex; flex-wrap: wrap; }
    .mobile-letters a { min-width: 26px; text-align: center; }
    .mobile-search label { display: block; font-weight: bold; margin-bottom: 5px; }
    .mobile-search > div { display: flex; gap: 6px; }
    .mobile-search input[type="search"] { min-width: 0; width: 100%; padding: 8px; font-size: 16px; border: 1px solid #92999f; background: #fffef0; }
    .mobile-search button { padding: 8px 12px; background: #737b82; color: #ffffcb; border: 0; font-size: 14px; }
    .mobile-tabs { display: flex; margin: -10px -10px 14px; border-bottom: 2px solid #737b82; }
    .mobile-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 3px; color: #455376; background: #e6e5b6; border-right: 1px solid #b9b58e; font-size: 13px; font-weight: bold; text-decoration: none; }
    .mobile-tabs a:last-child { border-right: 0; }
    .mobile-tabs a[aria-selected="true"] { background: #737b82; color: #ffffcb; }
    .mobile-ready .mobile-panel[hidden] { display: none; }
    .mobile-panel { margin-bottom: 15px; }
    .mobile-panel:last-child { margin-bottom: 0; }
    #c_center h2, .mobile-menu h2, #c_banner h2 { font-size: 15px; line-height: 1.4; padding: 7px 9px; margin-bottom: 8px; }
    #c_center h3, #c_center h3 a { font-size: 17px; line-height: 1.4; }
    #c_center .content_list, #c_center .content_detail { font-size: 15px; line-height: 1.6; padding: 12px 8px; }
    #c_center .content_list p, #c_center .content_list a, #c_center .text { font-size: inherit; }
    #c_center .content_date { font-size: 12px; line-height: 1.55; margin-bottom: 5px; }
    #c_center img, #c_center video { max-width: 100% !important; height: auto !important; }
    #c_center .content_list img { max-width: 36% !important; }
    #c_center iframe, #c_center embed, #c_center object { max-width: 100% !important; }
    #c_center table { max-width: 100% !important; }
    #c_center .content_detail { overflow-x: auto; }
    #c_center pre { white-space: pre-wrap; }
    #c_center input:not([type="radio"]):not([type="checkbox"]), #c_center select, #c_center textarea { max-width: 100%; box-sizing: border-box; font-size: 16px; }
    .mobile-all { display: block; padding: 10px 8px; color: #455376; }
    #content #c_banner { display: none; }
    .is-home #content #c_banner { display: block; float: none; width: auto; margin: 20px 0; text-align: center; }
    #content #c_banner #krsna { display: none; }
    #content #c_banner #top, #content #c_banner #other { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; width: auto; height: auto; padding: 8px 0; background: none; }
    /* The top banner slot contains hk.jpg (the decorative maha-mantra). */
    #content #c_banner #top { display: none; }
    #c_banner .banner .left, #c_banner .banner .right, #c_banner .banner .top, #c_banner .banner .bottom, #c_banner embed { display: none; }
    #c_banner .banner .bg, #c_banner .banner .center { background: none; }
    #page_footer { width: auto; margin: 20px 10px 0; text-align: center; line-height: 1.8; }
    #page_footer, #page_footer a { font-size: 11px; }
    .mobile-header :focus-visible, .mobile-home-content :focus-visible, .mobile-text-navigation :focus-visible { outline: 3px solid #455376; outline-offset: -3px; }
}
@media (max-width: 480px) {
    .mobile-brand { padding-left: 112px; }
    .mobile-brand::before { width: 112px; background-image: linear-gradient(90deg, transparent 75px, #f1eee8 112px), url(https://portal.iskcon.hr/images/template/banner_new.jpg); }
    .mobile-brand strong { font-size: 21px; }
    .mobile-brand span { font-size: 11px; }
}

.keyword-alphabet a { white-space: nowrap; }
.keyword-groups { display: grid; gap: 4px; margin: 5px; }
.keyword-groups a { display: block; padding: 9px 12px; background: #e6e5b6; color: #455376; border: 1px solid #b9b58e; text-decoration: none; }
.keyword-groups a[aria-current="page"] { background: #737b82; color: #ffffcb; }
@media not all and (min-width: 1000px) {
    .desktop-keywords { display: none; }
    .mobile-keywords .content_list { overflow-wrap: anywhere; }
}

/* Shared compact Pojmovnik navigation for the sidebar and category menu. */
.keyword-menu .keyword-alphabet { gap: 3px; margin: 6px 4px 10px; }
.keyword-menu .keyword-alphabet a { display: inline-flex; min-width: 25px; min-height: 26px; padding: 2px 3px; line-height: 20px; border: 1px solid #b9b58e; white-space: nowrap; }
.keyword-menu .keyword-groups { gap: 0; margin: 0 4px 6px; }
.keyword-menu .keyword-groups a { padding: 5px 4px; font-size: 11px; line-height: 1.4; border: 0; border-top: 1px solid #b9b58e; background: transparent; }
.keyword-menu .keyword-groups a[aria-current="page"], .keyword-menu .keyword-groups a:hover { background: #737b82; color: #ffffcb; }
@media not all and (min-width: 1000px) {
    .mobile-menu .keyword-menu .keyword-alphabet a { min-width: 32px; min-height: 32px; padding: 4px; }
    .mobile-menu .keyword-menu .keyword-groups a { padding: 10px 8px; font-size: 14px; }
}



/* Search uses the same compact, readable cards on desktop and mobile. */
.search-result-count { margin-bottom: 4px; }
.search-result-categories, .search-result-meta { color: #666; font-size: .92em; }
.search-result-group { color: #999; padding-bottom: 3px; }
.search-result-group:empty { display: none; }
.search-results h3 { margin-top: 2px; }
.search-results h3 a { text-decoration: none; font-weight: bold; }
.search-results p { margin: 8px 0 0; line-height: 1.6; }
.search-results mark { background: #fff0a8; color: inherit; padding: 0 1px; }
.search-notice { padding: 10px; border: 1px solid #8097aa; border-radius: 6px; }
.search-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0; }
.search-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 40px; padding: 0 9px; box-sizing: border-box; border: 1px solid #8097aa; border-radius: 6px; text-decoration: none; }
.search-pagination a[aria-current="page"] { background: #45617a; color: #fff; }
.search-pagination a:focus-visible { outline: 2px solid #45617a; outline-offset: 3px; }
