/* TenderNama 6.3: clean combined navigation, sticky procurement ticker,
   and original two-branch browse directory. All corners remain square. */
:root{--tn-ui-blue:#0b4f96;--tn-ui-deep:#103c68;--tn-ui-green:#70db26;--tn-ui-border:#dce7f0}
body .tn-news-ticker{position:sticky!important;top:0;z-index:99999!important;border-radius:0!important;box-shadow:0 2px 7px rgba(12,46,88,.12);min-height:40px}
body.admin-bar .tn-news-ticker{top:32px}
body .tn-news-ticker[hidden]{display:none!important}
.tn-news-ticker .tn-news-label{background:var(--tn-ui-green);letter-spacing:.12px}
.tn-news-ticker .tn-news-item,.tn-news-ticker .tn-news-all{font-weight:400!important}
/* One restrained white header row: logo left, original menus center,
   English and My Dashboard in the position formerly occupied by header search. */
.tn-site-header{display:block;position:relative;z-index:9901;background:#fff;border-bottom:1px solid #e5ecf3;color:#183554;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-weight:400;box-shadow:0 3px 12px rgba(17,52,86,.03)}
.tn-site-header *{box-sizing:border-box;border-radius:0!important}
.tn-site-header__inner{max-width:1380px;padding:0 27px;margin:auto;min-height:72px;display:flex;align-items:center;gap:24px}
.tn-site-brand{flex:0 0 auto;min-width:130px}
.tn-site-brand>a{display:inline-flex;align-items:center;text-decoration:none!important}
.tn-site-brand .custom-logo{max-width:180px;width:auto;max-height:51px;height:auto;object-fit:contain}
.tn-site-brand .custom-logo-link{display:inline-flex;align-items:center}
.tn-site-brand__text{display:inline-block;font-size:25px;font-weight:500;letter-spacing:-.9px;color:#0a4b92;line-height:1.1}
.tn-site-brand__text>span{color:#34b129}
.tn-site-nav{flex:1;min-width:0}
.tn-site-nav>ul{display:flex;align-items:center;justify-content:center;gap:clamp(13px,1.8vw,29px);list-style:none!important;padding:0!important;margin:0!important;min-height:72px}
.tn-site-nav li{list-style:none!important;margin:0!important;padding:0!important}
.tn-site-nav .tn-menu-parent{display:flex;align-items:center;position:relative;gap:2px}
.tn-site-nav .tn-submenu-toggle{border:0;background:transparent;color:#497091;cursor:pointer;padding:5px 4px;font-size:17px;min-width:20px;min-height:27px}
.tn-site-nav .tn-submenu{position:absolute;left:0;top:calc(100% - 9px);z-index:999;min-width:225px;max-width:290px;display:none;flex-direction:column;list-style:none!important;background:#fff;border:1px solid #dce6ef;box-shadow:0 9px 20px rgba(14,50,84,.12);padding:6px!important;margin:0!important;gap:0}
.tn-site-nav .tn-menu-parent:hover>.tn-submenu,.tn-site-nav .tn-menu-parent:focus-within>.tn-submenu,.tn-site-nav .tn-submenu-open>.tn-submenu{display:flex}
.tn-site-nav .tn-submenu li{width:100%}
.tn-site-nav .tn-submenu a{font-size:11px!important;display:flex;white-space:normal;min-height:37px!important;padding:9px 10px;border:0!important;width:100%}
.tn-site-nav .tn-submenu a:hover,.tn-site-nav .tn-submenu a:focus-visible{background:#f2f8fc;border:0!important}

.tn-site-nav a{display:inline-flex;align-items:center;min-height:52px;white-space:nowrap;color:#2e4359!important;text-decoration:none!important;font-size:13px!important;font-weight:500!important;line-height:1.3;border-bottom:2px solid transparent;transition:border-color .16s,color .16s}
.tn-site-nav a:hover,.tn-site-nav a:focus-visible{color:#0b539e!important;border-bottom-color:#74d72e}
.tn-site-actions{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.tn-site-actions svg{width:16px;height:16px;flex:0 0 auto}
.tn-site-language{display:inline-flex;gap:7px;align-items:center;padding:10px 9px;border:1px solid #e1e9f2;color:#47627d;font-size:12px;font-weight:400;white-space:nowrap}
.tn-site-account{display:inline-flex;align-items:center;gap:8px;padding:11px 13px;min-height:39px;background:var(--tn-ui-blue);color:#fff!important;text-decoration:none!important;font-size:12px!important;font-weight:500!important;white-space:nowrap;transition:background .2s}
.tn-site-account:hover{background:#073c72;color:#fff!important}
.tn-site-nav-toggle{display:none;background:#fff;border:1px solid #d6e4ee;padding:10px;width:41px;height:39px;align-items:center;flex-direction:column;justify-content:center;gap:4px;cursor:pointer;margin-left:auto}
.tn-site-nav-toggle>span{width:19px;height:2px;background:#0b4f96;display:block}
/* Fail closed: do not show an additional header before browser-side
   replacement is confirmed. Preserve the native header if JS cannot run. */
.tn-site-header[hidden]{display:none!important}
.tn-native-header-suppressed{display:none!important}
/* Keep unrelated Elementor sections, mastheads inside articles, and the
   sticky Tender Updates untouched. Do NOT hide theme headers by guessed
   selectors: only the exact native wrappers tagged by the safe JS audit. */
/* New tender finder: not a replica of the EPADS flat button row. */
.tn-search-page-v5 .tn-search-title-row{gap:16px}
.tn-search-page-v5 .tn-search-title-row h1{font-size:24px!important;font-weight:500!important;color:#123f6b!important;margin:3px 0!important}
.tn-search-page-v5 .tn-search-title-row p{font-size:12px;color:#5d7488;margin:2px 0 0;line-height:1.5}
.tn-search-page-v5 .tn-searchbar-v5{display:block!important;background:#f8fbff!important;border:1px solid #d8e5ef!important;box-shadow:none!important;padding:15px!important;border-radius:0!important}
.tn-searchbar-v5 .tn-searchbar-primary-v5{display:grid!important;grid-template-columns:minmax(180px,1.3fr) minmax(310px,2.2fr) minmax(145px,.85fr) minmax(110px,.8fr)!important;align-items:end;gap:9px!important}
.tn-searchbar-v5 label{margin:0;display:flex;flex-direction:column;min-width:0;gap:5px;font-size:11px;color:#244b70;font-weight:500!important;letter-spacing:0}
.tn-searchbar-v5 label>span,.tn-procurement-selects label>span{font-size:10.5px!important;color:#385d7a!important;white-space:nowrap;font-weight:500!important}
.tn-searchbar-v5 .tn-tender-keyword>input[type=search],
.tn-searchbar-v5 select,.tn-seo-smart-filter .tn-procurement-selects select{min-height:42px!important;max-width:100%;width:100%!important;border:1px solid #cddfe9!important;border-radius:0!important;padding:7px 10px!important;font-size:12px!important;font-weight:400!important;background:#fff!important;color:#24445f!important;box-shadow:none!important}
.tn-searchbar-v5 .tn-tender-keyword>input[type=search]{grid-column:auto!important;display:block}
.tn-procurement-selects{display:grid!important;grid-template-columns:1fr 1fr;gap:9px;min-width:0;align-items:end}
.tn-procurement-selects label{min-width:0}
.tn-procurement-selects select:disabled{background:#edf2f6!important;color:#8b9aaa!important}
.tn-searchbar-v5 .tn-searchbar-actions{display:flex;flex-direction:column;gap:5px;justify-content:flex-end}
.tn-searchbar-v5 .tn-search-submit{min-height:42px!important;font-size:12px!important;font-weight:500!important;color:#fff!important;background:#0a4f97!important;border:0!important;border-radius:0!important}
.tn-searchbar-v5 .tn-searchbar-actions .tn-filter-toggle{min-height:19px!important;max-height:19px!important;padding:0!important;justify-content:center!important;color:#0b4f96!important;background:transparent!important;font-size:10px!important;font-weight:500!important;border:0!important}
.tn-searchbar-v5 .tn-searchbar-advanced{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;border-top:1px solid #d9e5f0;padding:14px 0 0!important;margin-top:15px!important;background:transparent!important}
.tn-searchbar-v5 .tn-searchbar-advanced[hidden]{display:none!important}
.tn-searchbar-v5 .tn-best-toggle{display:flex;flex-direction:row;align-items:center;padding:0 8px;min-height:42px;font-size:11px!important}
.tn-searchbar-v5 .tn-best-toggle input{min-height:auto!important}
.tn-stream-disclaimer{margin:8px 0 0!important;font-size:10px;color:#6e7f8f;line-height:1.45}
.tn-search-page-v5 .tn-results-head{margin-top:18px!important}
/* SEO landing-page filters reuse exactly the same dependent controls. */
.tn-seo-smart-filter .tn-filter-main{display:grid!important;grid-template-columns:minmax(175px,1.2fr) minmax(300px,2fr) minmax(125px,.65fr) auto!important;gap:10px;align-items:end}
.tn-seo-smart-filter .tn-procurement-selects{display:grid!important;grid-template-columns:1fr 1fr;gap:7px}
.tn-seo-smart-filter .tn-procurement-selects label{display:flex;flex-direction:column;gap:5px;min-width:0}
.tn-seo-smart-filter .tn-procurement-selects label span{font-size:10px;white-space:nowrap}
.tn-seo-smart-filter .tn-filter-more .tn-official-filter{display:flex;flex-direction:column;gap:5px}
.tn-seo-smart-filter .tn-filter-more .tn-official-filter span{font-size:11px;color:#385d7a}
/* Category discovery directory */
.tn-category-explorer{max-width:1180px!important;margin:auto!important;padding:30px 20px 60px!important;color:#1c3955;font-size:12px!important}
.tn-category-explorer *{box-sizing:border-box;border-radius:0!important;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif}
.tn-category-explorer h1,.tn-category-explorer h2,.tn-category-explorer h3{font-weight:500!important}
.tn-category-intro{padding:18px 0 24px;border-bottom:1px solid #e4ecf4}
.tn-category-intro h1{font-size:24px!important;color:#103d70!important;margin:7px 0 8px!important}
.tn-category-intro p{color:#63798b;font-size:12px!important;max-width:760px;line-height:1.6;margin:0!important}
.tn-category-main-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:21px 0 29px}
.tn-category-main-card{display:flex;align-items:center;gap:15px;padding:20px!important;background:linear-gradient(112deg,#0a4c92,#0d649d);border-left:4px solid #65d228;color:#fff!important;text-decoration:none!important;min-height:132px;transition:transform .15s,background .15s}
.tn-category-main-card:nth-child(2){background:linear-gradient(112deg,#0a5e71,#0c477f)}
.tn-category-main-card:hover{transform:translateY(-2px)}
.tn-cat-main-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;background:rgba(255,255,255,.12);color:#a3f06e}
.tn-cat-main-icon svg{width:29px;height:29px}
.tn-category-main-card>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}
.tn-category-main-card small{font-size:9px!important;letter-spacing:.9px;color:#b6f598;font-weight:500}
.tn-category-main-card strong{font-size:18px!important;color:#fff;font-weight:500!important}
.tn-category-main-card em{font-size:11px;font-style:normal!important;color:#e1ebf5;line-height:1.4}
.tn-category-card-arrow{margin-left:auto;color:#fff;font-size:19px}
.tn-category-section{margin:32px 0 36px}
.tn-cat-section-title{display:flex;align-items:end;justify-content:space-between;gap:14px;border-bottom:1px solid #e2e9f0;padding-bottom:11px;margin-bottom:15px}
.tn-cat-section-title h2{font-size:20px!important;color:#123f6b!important;margin:0 0 4px!important}
.tn-cat-section-title p{font-size:11px!important;color:#668095;margin:0!important}
.tn-cat-section-title>a{font-size:11px;color:#0a4f96!important;text-decoration:none!important;white-space:nowrap}
.tn-category-subgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tn-category-subcard{display:flex;gap:12px;align-items:center;padding:15px 12px!important;min-height:76px;background:#fff;border:1px solid #dce6ef;color:#1d476b!important;font-size:12px!important;font-weight:500;text-decoration:none!important;transition:border-color .15s,background .15s}
.tn-category-subcard:hover,.tn-department-card:hover{border-color:#6acb32;background:#f7fbf6}
.tn-cat-icon{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;background:#edf5ff;color:#0a579d}
.tn-cat-icon svg{width:19px;height:19px}
.tn-cat-mini-arrow{font-size:15px;color:#6593b2;margin-left:auto}
.tn-category-official-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tn-category-official-grid a{border:1px solid #d9e6ef;background:#fbfdff;min-height:61px;padding:12px;display:flex;align-items:center;gap:9px;text-decoration:none!important;color:#244d75!important}
.tn-category-official-grid a svg{color:#0b559e;flex:0 0 20px}
.tn-category-official-grid a strong{font-size:11px;font-weight:500!important}
.tn-category-official-grid a>span{margin-left:auto}
.tn-department-group{margin:18px 0 27px}
.tn-department-group h3{display:flex;align-items:center;gap:8px;font-size:14px!important;color:#18446d!important;margin-bottom:11px!important}
.tn-department-group h3 svg{width:17px;height:17px;color:#0d5b9c}
.tn-department-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.tn-department-card{display:flex;gap:11px;align-items:center;border:1px solid #dae5ee;padding:13px!important;text-decoration:none!important;min-width:0;color:#19476a!important;background:#fff;min-height:78px}
.tn-department-mark{background:#f0f7fb;color:#0e5d97;flex:0 0 34px;width:34px;height:34px;display:flex;align-items:center;justify-content:center}
.tn-department-mark svg{width:19px;height:19px}
.tn-department-name{display:flex;flex-direction:column;min-width:0;gap:2px}
.tn-department-name strong{font-size:12px;font-weight:500!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
.tn-department-name small{font-size:10px;color:#728597;line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tn-department-meta{flex:0 0 auto;margin-left:auto;text-align:right;font-size:9px;color:#6a8091;white-space:nowrap}
.tn-department-meta span{display:block;font-size:13px;color:#1f6b98}
.tn-categories-note{font-size:10px!important;color:#6b7e8c;background:#f4f8fa;padding:13px;margin:25px 0 0}
.tn-site-header a:focus-visible,.tn-category-explorer a:focus-visible,.tn-search-page-v5 select:focus-visible,.tn-search-page-v5 input:focus-visible{outline:2px solid #0b65b6!important;outline-offset:2px}
@media(max-width:1200px){.tn-site-header__inner{gap:14px}.tn-site-nav>ul{gap:13px}.tn-site-nav a{font-size:11.5px!important}.tn-site-brand .custom-logo{max-width:150px}.tn-site-language{padding:9px 7px}}
@media(max-width:1100px){
 .tn-site-header__inner{flex-wrap:wrap;min-height:63px;padding:11px 18px;row-gap:0}
 .tn-site-nav-toggle{display:flex;order:2}
 .tn-site-actions{order:3}
 .tn-site-nav{order:4;flex:0 0 100%;display:none;border-top:1px solid #e6edf4;margin-top:10px;padding-top:8px}
 .tn-site-header.tn-menu-open .tn-site-nav{display:block}
 .tn-site-nav>ul{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:0}
 .tn-site-nav a{min-height:40px!important;font-size:13px!important;border-bottom:1px solid #edf2f6;width:100%}
 .tn-site-nav .tn-menu-parent{flex-wrap:wrap;justify-content:space-between}
 .tn-site-nav .tn-menu-parent>a{width:auto;flex:1}
 .tn-site-nav .tn-submenu{position:static;width:100%;max-width:none;box-shadow:none;border:0;border-left:2px solid #6bd322;padding:0 0 0 8px!important}
 .tn-site-nav .tn-submenu a{min-height:35px!important;font-size:12px!important}

 .tn-searchbar-v5 .tn-searchbar-primary-v5{grid-template-columns:1fr 1.5fr!important}
 .tn-searchbar-v5 .tn-searchbar-advanced{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .tn-seo-smart-filter .tn-filter-main{grid-template-columns:1fr 1.5fr!important}
 .tn-category-subgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tn-department-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 body.admin-bar .tn-news-ticker{top:46px}
 .tn-news-ticker .tn-news-label{font-size:9px!important;padding:0 9px!important}
 .tn-news-ticker .tn-news-all{padding:0 8px!important;font-size:9px!important}
 .tn-site-header__inner{padding:10px 12px;gap:8px}
 .tn-site-brand{min-width:0;margin-right:auto}
 .tn-site-brand .custom-logo{max-width:130px;max-height:42px}
 .tn-site-brand__text{font-size:21px}
 .tn-site-nav-toggle{order:3;width:37px;height:36px;padding:7px;margin-left:0}
 .tn-site-actions{order:2;gap:5px}
 .tn-site-language{padding:8px 4px;font-size:10px;gap:3px;border:0}
 .tn-site-language svg{width:14px;height:14px}
 .tn-site-account{padding:8px 7px;min-height:34px;gap:4px;font-size:10px!important}
 .tn-site-account svg{width:14px;height:14px}
 .tn-site-nav{order:4}
 .tn-search-page-v5 .tn-search-title-row h1{font-size:22px!important}
 .tn-searchbar-v5 .tn-searchbar-primary-v5,.tn-searchbar-v5 .tn-searchbar-advanced{grid-template-columns:1fr!important}
 .tn-procurement-selects{grid-template-columns:1fr!important}
 .tn-searchbar-v5 .tn-searchbar-actions{flex-direction:row;align-items:center}
 .tn-searchbar-v5 .tn-search-submit{flex:1}
 .tn-searchbar-v5 .tn-searchbar-actions .tn-filter-toggle{min-height:40px!important;max-height:none!important;flex:0 0 90px}
 .tn-seo-smart-filter .tn-filter-main{grid-template-columns:1fr!important}
 .tn-category-explorer{padding:17px 12px 40px!important}
 .tn-category-main-groups,.tn-category-official-grid{grid-template-columns:1fr}
 .tn-category-main-card{padding:15px!important;min-height:107px}
 .tn-category-main-card strong{font-size:16px!important}
 .tn-cat-section-title{align-items:flex-start;flex-direction:column}
 .tn-category-subgrid,.tn-department-grid{grid-template-columns:1fr}
 .tn-category-subcard{min-height:62px;padding:11px!important}
 .tn-department-card{min-height:66px}
}
@media(prefers-reduced-motion:reduce){.tn-category-main-card{transition:none}.tn-category-main-card:hover{transform:none}}
@media print{.tn-site-header,.tn-news-ticker{display:none!important}}
