/* Tweaks for the static copy of cdcdi.ro (loaded after site.css) */

/* --- layout: side columns are floats; make the page (and footer) wait for the tallest one --- */
div:has(> #categs_frightc) { display: flow-root; }
#footer { clear: both; padding-top: 24px; }

/* --- sidebars: left-aligned text instead of justified (justify made big gaps in narrow boxes) --- */
.white_page_small,
.publication_title_homepage,
.publication_text_homepage,
.media_title_homepage,
.media_text_homepage { text-align: left; }

#categs_leftc .white_page_small,
#categs_frightc .white_page_small { height: auto !important; }
.latest_news { padding-top: 2px; }
.latest_news .publication_title_homepage {
	margin: 0 !important;
	padding: 12px 0 4px;
	font-size: 13px;
	line-height: 1.35;
	border-top: 1px solid #ecebe5;
}
.latest_news .publication_title_homepage:first-child { border-top: 0; padding-top: 8px; }
.latest_news .publication_title_homepage a { color: #003872 !important; text-decoration: none; }
.latest_news .publication_title_homepage a:hover { text-decoration: underline; }
.latest_news .publication_text_homepage {
	font-size: 12px; line-height: 1.5; color: #55575a;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.latest_news .all_news { text-align: center; padding: 12px 0 2px; border-top: 1px solid #ecebe5; margin-top: 10px; }
.latest_news .all_news a { color: #4fac40; font-weight: bold; font-size: 13px; text-decoration: none; }
.latest_news .all_news a:hover { text-decoration: underline; }

/* --- menus --- */
.menu { background-image: url(../images/skin/menu_bar_clean.png); }  /* same bar without the search box */
.menu a { white-space: nowrap; }
.submenu li a { display: block; }
.submenu li a:hover { color: #9ede93; }

/* --- news archive (one page, grouped by year) --- */
.news_archive { padding: 18px 28px 28px; text-align: left; }
.news_archive .year_nav {
	margin: 0 0 6px;
	padding-bottom: 14px;
	border-bottom: 1px solid #d6d4cb;
	font: bold 15px Arial, sans-serif;
	color: #9a9a9a;
}
.news_archive .year_nav a { color: #003872; text-decoration: none; padding: 0 4px; }
.news_archive .year_nav a:hover { text-decoration: underline; }
.news_archive h2 {
	margin: 26px 0 6px;
	padding-bottom: 4px;
	font: bold 20px Arial, sans-serif;
	color: #003872;
	border-bottom: 2px solid #4fac40;
}
.news_archive h2 span { font-size: 13px; font-weight: normal; color: #8a8a8a; }
.news_list { list-style: none; margin: 0; padding: 0; }
.news_list li {
	display: flex;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px solid #f0efe9;
	font: 14px/1.4 Arial, sans-serif;
}
.news_list .d { flex: 0 0 56px; color: #4fac40; font-size: 12px; font-weight: bold; text-transform: uppercase; padding-top: 2px; }
.news_list a { color: #3f4042; text-decoration: none; }
.news_list a:hover { color: #003872; text-decoration: underline; }

/* English pages: the left column had only untranslated Media items, so let the content use its space */
div:has(> #categs_leftc.gone) #box_main { padding-left: 0; }
#categs_leftc.gone { display: none; }

/* --- boxes: contain floated children (e.g. the "Alte servicii" list used to spill out of its box) --- */
.white_page { display: flow-root; }
.other_services ~ .fleft { float: none; clear: both; padding: 4px 10px !important; text-align: left; }
.other_services ~ .fleft a { line-height: 1.4; }

/* --- year bar on the news pages --- */
.news_archive .year_nav .current { color: #4fac40; padding: 0 4px; }
.news_archive h2 { margin-top: 18px; }

/* documents that no longer exist anywhere: hide the dead download entry */
.missing_doc, li:has(> .missing_doc) { display: none; }
