/*
 * Masclopedia — the legacy masclopedia.co.il look (css/stylesheet.css, page.css, menu.css, panels.css,
 * articles.css), rebuilt with CSS instead of fixed-width background images so it is responsive.
 *   ≥ 1000px  three columns: categories | content | contact (the legacy 927px frame)
 *   700–999   categories | content; the contact column moves under the content
 *   < 700     one column; menu and categories open from the toggles in the menu bar
 */

:root {
	--red: #b00000;
	--red-dark: #950000;
	--red-bright: #c70000;
	--ink: #000;
	--text: #404040;
	--grey-bg: #f0f0f0;
	--grey-line: #c9c9c9;
	--frame: #a4a4a4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font: normal 13px/1.45 Arial, Helvetica, sans-serif;
	direction: rtl;
	text-align: right;
}
img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
a { color: #0033cc; }
h1, h2, h3, h4, form { margin: 0; }
p { margin: 5px 0 10px; }
input, select, textarea, button { font: inherit; }
iframe { max-width: 100%; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link { position: absolute; top: -40px; right: 0; background: #fff; padding: 6px 10px; z-index: 100; }
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------ frame */
#MainBody {
	max-width: 927px;
	margin: 1px auto 0;
	border: 1px solid var(--frame);
	border-bottom: 0;
	background: #fff;
}

/* ------------------------------------------------------------------ header (header_inc.asp) */
#Header {
	position: relative;
	height: 92px;
	background: #f4f4f4 url(../images/header2.jpg) right top no-repeat;
}
#Logo {
	position: absolute;
	top: 0; right: 0;
	width: 300px; height: 92px;
	display: block;
}
#TopLogin {
	position: absolute;
	top: 8px;
	left: 20px;
	width: 440px;
	text-align: center;
	font-size: 18px;
	line-height: 1.35;
}
#LoginTitle { font-size: 14px; margin-bottom: 4px; text-align: center; }
#LoginTitle a { color: var(--red); }
.TopPhone { text-align: center; }
.TopPhone a { color: #0033cc; font-size: 19px; }

/* ------------------------------------------------------------------ top menu (menu.css) */
#TopMenu {
	background: #2b2b2b url(../images/menu_bg.gif) bottom left repeat-x;
	min-height: 31px;
	padding: 0 6px;
}
#TopMenu ul, #BottomMenu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
#TopMenu li, #BottomMenu li { display: flex; align-items: center; }
#TopMenu li + li::before, #BottomMenu li + li::before {
	content: "|";
	color: var(--red);
	font-weight: bold;
}
#TopMenu a, #BottomMenu a {
	display: block;
	padding: 0 10px;
	line-height: 31px;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
}
#TopMenu a:hover, #TopMenu a:focus, #TopMenu .current-menu-item > a,
#BottomMenu a:hover, #BottomMenu a:focus { color: #ffd2d2; text-decoration: underline; }
.nav-toggle, .cat-toggle { display: none; }

/* ------------------------------------------------------------------ columns (page.css) */
#Columns {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) 181px;
	grid-template-areas: "right mid left";
	gap: 0 10px;
	padding-bottom: 10px;
}
#Right { grid-area: right; }
#Mid { grid-area: mid; padding-top: 10px; min-width: 0; }
#Left { grid-area: left; padding: 5px 0 0 9px; }

/* ------------------------------------------------------------------ categories (right_side.asp) */
#Categories .cat-title {
	height: 31px;
	background: url(../images/cat_title.png) center no-repeat;
	text-align: center;
	font: bold 14px/30px Arial, sans-serif;
}
#Categories ul { margin: 0; padding: 0; list-style: none; }
#Categories li { background: var(--red) url(../images/cat_bg.gif) repeat-x; margin-bottom: 1px; }
#Categories li a {
	display: block;
	min-height: 28px;
	padding: 5px 24px 5px 6px;
	background: url(../images/cat_bullet.gif) 93% center no-repeat;
	text-align: center;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	line-height: 18px;
}
#Categories li a:hover, #Categories li.current a { background-color: var(--red-dark); text-decoration: underline; }

/* ------------------------------------------------------------------ A–Z + search (search_inc.asp) */
.search-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4px; }
.search-title { font: bold 14px Arial, sans-serif; }
#CharsNav { display: flex; flex-wrap: wrap; gap: 1px 1px; margin-bottom: 5px; }
#CharsNav a {
	display: block;
	width: 23px; height: 21px;
	background: #222 url(../images/char_bg.gif) center no-repeat;
	border-radius: 3px;
	text-align: center;
	color: #fff;
	text-decoration: none;
	font: bold 14px/21px Arial, sans-serif;
}
#CharsNav a:hover, #CharsNav a.on { background: var(--red); }

#SearchBar {
	background: linear-gradient(#d80000, #a30000);
	border-radius: 7px;
	padding: 4px 8px 7px;
	margin-bottom: 8px;
}
#SearchBar .sb-title { color: #fff; font: bold 14px Arial, sans-serif; margin-bottom: 3px; }
#SearchBar form { display: flex; gap: 5px; align-items: center; }
#SearchBar select, #SearchBar input[type=search] {
	height: 22px;
	border: 1px solid #7a0000;
	border-radius: 2px;
	padding: 0 4px;
	background: #fff;
	font-size: 12px;
	min-width: 0;
}
#SearchBar select#sb-ac { flex: 0 1 125px; }
#SearchBar select#sb-aw { flex: 1 1 200px; }
#SearchBar input[type=search] { flex: 1 1 130px; }
.sb-btn { border: 0; background: none; padding: 0; cursor: pointer; flex: none; }

/* ------------------------------------------------------------------ boxes (panels.css / stylesheet.css) */
#RoundBox, .Box, .ArticleBox, #RegForm {
	background: var(--grey-bg);
	border: 1px solid var(--grey-line);
	border-radius: 7px;
}
#RoundBox { background: #fff; padding: 8px 12px; margin-bottom: 8px; }
.Box { margin-bottom: 8px; overflow: hidden; }
.BoxIn { color: var(--text); padding: 0 0 12px; min-height: 300px; }
.PageBox .BoxIn { min-height: 550px; }
.page-title {
	background: linear-gradient(#fff 0, #fff 46%, #ececec 53%, #ececec 100%);
	border-bottom: 1px dotted #000;
	color: var(--red-dark);
	font: bold 16px/1.4 Arial, sans-serif;
	padding: 6px 20px;
}
.entry { padding: 10px 20px; overflow-wrap: anywhere; }
.entry img { height: auto; }
.entry table { max-width: 100%; }
.entry h1, .entry h2, .entry h3 { margin: 8px 0 4px; }
.mastip-title { text-align: center; padding-top: 6px; }

/* listing (articles_inc.asp) */
.Box .titleh1 {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 12px;
	background: linear-gradient(#fff 0, #fff 46%, #ececec 53%, #ececec 100%);
	border-bottom: 1px dotted #000;
	padding: 5px 18px;
	color: var(--red-dark);
}
.Box .titleh1 h1 { font: bold 15px Arial, sans-serif; }
.Box .titleh1 .count { font: bold 13px Arial, sans-serif; }
.list-intro { border-bottom: 1px dotted #000; }
.no-results { padding: 20px; }
.ResultBox { border-bottom: 1px dotted #000; padding: 10px; }
.ResultBox:last-child { border-bottom: 0; }
.ResultHead h2 { display: inline; font: bold 14px Arial, sans-serif; }
.ResultHead h2 a { color: var(--red-dark); text-decoration: none; }
.ResultHead h2 a:hover { text-decoration: underline; }
.ResultHead .date { font-weight: bold; }
.ResultHead .by { display: inline-block; margin-inline-start: 6px; }
.ResultHead .by a { font-weight: bold; color: #2c2c2c; }
.ResultDesc { margin: 4px 0; color: #222; }
.ResultNav {
	text-align: left;
	background: url(../images/det_btn.gif) left center no-repeat;
	padding: 3px 0 0 20px;
	font-weight: bold;
	color: var(--red-dark);
}
.ResultNav a { color: var(--red-dark); }
.searchword { background: #f0fb48; }

#Paging { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 8px auto; font: bold 14px Arial, sans-serif; }
#Paging a { color: #000; text-decoration: none; }
#Paging .current { color: #960000; }

/* article boxes (articles.css) */
.ArticleBox { margin-bottom: 7px; padding: 0 6px 6px; }
.ArticleBox a { color: #000; }
.ArticleBoxHead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 12px;
	min-height: 30px;
	padding: 4px 2px;
	margin-bottom: 5px;
	border-bottom: 1px dotted #000;
}
.ab-title, .ab-title h1 { color: var(--red-dark); font: bold 12px Arial, sans-serif; display: inline; }
.ab-title a { color: var(--red-dark); text-decoration: none; }
.ab-title a:hover { text-decoration: underline; }
.ab-title .date { color: var(--red-dark); font-weight: bold; white-space: nowrap; }
.ab-writer, .ab-writer a { font: bold 12px Arial, sans-serif; color: #2c2c2c; }
.ab-text { padding: 2px 4px; }
.ab-more { text-align: left; padding: 4px; }
.ArticleFull { padding-bottom: 10px; }
.ArticleFull .ab-title h1 { font-size: 15px; }
.ArticleFull .entry { padding: 10px; color: #000; font-size: 13px; }
.ArticleFull .entry a { color: #0033cc; }
.article-tags { padding: 10px; }
.article-tags a { margin-inline-start: 6px; }
.article-tools { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 0; margin: 10px 0; }
.article-tools a { padding-right: 22px; background: no-repeat right center; }
.t-back a { background-image: url(../images/back2.gif); }
.t-print a { background-image: url(../images/print_page.gif); }
.t-mail a { background-image: url(../images/send_mail.gif); }

.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px; font-size: 12px; }
.share a { color: #fff !important; text-decoration: none; padding: 2px 9px; border-radius: 3px; background: #555; }
.share .sh-fb { background: #1877f2; }
.share .sh-x { background: #111; }
.share .sh-li { background: #0a66c2; }
.share .sh-wa { background: #1f9e4f; }

/* home (default.asp) */
.home-text h1 { text-align: center; }
.home-banners { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 6px; }
.home-banners a { flex: 1 1 50%; }
.home-banners img { width: 100%; border: 1px solid var(--grey-line); border-radius: 4px; }
.all-btn { display: inline-block; margin-top: 8px; }

/* ------------------------------------------------------------------ forms (left_side.asp, contact, mastip) */
.leftcontact .titlon {
	background: linear-gradient(#fff 0, #fff 46%, #ececec 53%, #ececec 100%);
	border: 1px solid #d2d2d2;
	border-bottom: 1px dotted #000;
	border-radius: 6px 6px 0 0;
	padding: 0 5px;
	font: bold 14px/30px Arial, sans-serif;
	text-align: center;
}
.leftcontact .leftcontactbox {
	background: var(--grey-bg);
	border: 1px solid #d2d2d2;
	border-top: 0;
	border-radius: 0 0 6px 6px;
	padding: 5px 8px;
}
#SideBox { margin: 25px auto 20px; }
.mas-form p { margin: 0 0 6px; }
.mas-form label { display: block; font-size: 12px; }
.mas-form .req { color: #b00000; }
.mas-form input[type=text], .mas-form input[type=email], .mas-form input[type=tel], .mas-form textarea {
	display: block;
	width: 100%;
	border: 1px solid #7f9db9;
	padding: 3px 4px;
	font-size: 13px;
	background: #fff;
	resize: vertical;
}
.mas-form textarea { min-height: 90px; }
.mas-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mas-form-submit { text-align: center; }
.mas-send-btn, .btn {
	display: inline-block;
	background: linear-gradient(#e00000, #9a0000);
	color: #fff !important;
	border: 0;
	border-radius: 5px;
	padding: 3px 16px;
	font: bold 13px Arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
}
.btn-alt { background: linear-gradient(#555, #222); }
.mas-send-btn:hover, .btn:hover { filter: brightness(1.15); }
.mas-form-error { color: #b00000; font-weight: bold; }

#RegForm { max-width: 432px; margin: 10px auto; padding: 8px 14px 15px; }
#RegForm h2, #RegForm h3 { font: bold 14px/30px Arial, sans-serif; color: #000; }
#RegForm h2 span { color: #b00000; }
#RegForm .mas-form label { display: inline-block; }
.writer-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; }

.fb-box { margin: 10px 0; }
.side-banner { margin: 10px 0; text-align: center; }

#SiteMap h2 { font: bold 14px Arial, sans-serif; margin-top: 10px; }
#SiteMap ul { margin-top: 5px; }
#SiteMap li { margin-bottom: 3px; }
#SiteMap a { color: #000; }

/* ------------------------------------------------------------------ bottom (footer_inc.asp, bottom_inc.asp) */
#BottomMenu {
	clear: both;
	background: #2b2b2b url(../images/footer_bg.gif) top left repeat-x;
	min-height: 32px;
}
#BottomMenu ul { justify-content: center; }
#Footer {
	max-width: 930px;
	margin: 5px auto;
	padding: 0 4px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 20px;
	font-size: 12px;
}
#Footer a { color: #000; text-decoration: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 999px) {
	#Columns {
		grid-template-columns: 180px minmax(0, 1fr);
		grid-template-areas: "right mid" "right left";
		padding-left: 10px;
	}
	#Left { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: start; }
	#SideBox { margin: 10px 0; }
	#TopLogin { width: auto; left: 10px; right: 320px; }
}

@media (max-width: 699px) {
	body { font-size: 14px; }
	#MainBody { border: 0; }
	#Header { height: auto; min-height: 70px; background-size: auto 70px; padding-top: 72px; }
	#Logo { width: 230px; height: 70px; }
	#TopLogin { position: static; width: auto; padding: 4px 10px 8px; font-size: 15px; background: #f4f4f4; }
	#LoginTitle { font-size: 13px; }
	.TopPhone a { font-size: 18px; }

	#TopMenu { display: flex; flex-wrap: wrap; align-items: center; padding: 4px 8px; gap: 6px; }
	.nav-toggle, .cat-toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: transparent;
		color: #fff;
		border: 1px solid #777;
		border-radius: 4px;
		padding: 4px 12px;
		font-weight: bold;
		cursor: pointer;
	}
	.cat-toggle { background: var(--red); border-color: var(--red); }
	.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
		display: block; width: 16px; height: 2px; background: #fff; position: relative; content: "";
	}
	.nav-toggle .bars::before { position: absolute; top: -5px; }
	.nav-toggle .bars::after { position: absolute; top: 5px; }
	#TopMenu ul { display: none; flex-direction: column; width: 100%; }
	#TopMenu.open ul { display: flex; }
	#TopMenu li + li::before { content: none; }
	#TopMenu li { border-top: 1px solid #444; }
	#TopMenu a { line-height: 40px; font-size: 15px; width: 100%; }

	#Columns { display: block; padding: 0 10px; }
	#Right { display: none; margin-top: 8px; }
	#Right.open { display: block; }
	#Categories ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
	#Categories li { margin: 0; }
	#Categories li a { min-height: 36px; line-height: 26px; font-size: 13px; }
	#Left { display: block; }
	#SideBox { max-width: none; }

	#CharsNav a { width: calc((100% - 10px) / 11); height: 30px; line-height: 30px; font-size: 16px; background-size: cover; }
	#SearchBar form { flex-wrap: wrap; }
	#SearchBar select#sb-ac, #SearchBar select#sb-aw { flex: 1 1 45%; height: 34px; font-size: 14px; }
	#SearchBar input[type=search] { flex: 1 1 60%; height: 34px; font-size: 15px; }

	.entry { padding: 10px 12px; }
	.entry table, .entry img { max-width: 100% !important; height: auto !important; }
	.entry table { display: block; overflow-x: auto; }
	.page-title { padding: 6px 12px; }
	.home-banners { flex-direction: column; }
	.ArticleBoxHead { display: block; }
	.ab-writer { display: block; margin-top: 2px; }
	.ResultNav { text-align: right; background-position: right center; padding: 3px 20px 0 0; }
	#RegForm { padding: 8px 10px 12px; }
	#BottomMenu ul { padding: 4px 0; }
	#BottomMenu a { line-height: 28px; }
	#Footer { justify-content: center; text-align: center; padding: 0 10px; }
}

@media print {
	#Header, #TopMenu, #Right, #Left, #BottomMenu, #SearchBar, #CharsNav, .search-head, .share, .article-tools { display: none !important; }
	#Columns { display: block; }
	#MainBody { border: 0; }
}
