/* style_he.css — Hebrew pages (style_id=6)
 * Canonical source: templates/css/style_he.css — edit here, not in site/css/ (build overwrites it there).
 */
body
{
	color: #000021;
	color-scheme: light;
	font-family: Tahoma,Verdana;
	position: relative;
}

/* Default content-page background (only cv_he.html today) — scoped to
   :not(.mail-bg) so it can NEVER bleed onto mail pages (page/mail/, .mail-bg
   in grid.css), which have their own fully independent background rules.
   Editing one is guaranteed not to affect the other. */
body:not(.mail-bg)
{
	background-color: #FCF2E6;
	background-image:
		radial-gradient(ellipse 50% 40% at 15% 25%, rgba(190,160,130,0.30), transparent 70%),
		radial-gradient(ellipse 45% 50% at 80% 70%, rgba(160,125,95,0.25), transparent 70%),
		radial-gradient(ellipse 55% 35% at 55% 10%, rgba(130,95,70,0.20), transparent 70%);
	background-attachment: fixed;
}

/* soft cream/white brushstroke grain, slowly drifting in place of the old
   bg.jpg photo texture — two overlapping noise layers (different seeds)
   cross-fade/shift out of phase so the page background gently "breathes" */
body:not(.mail-bg)::before,
body:not(.mail-bg)::after
{
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -1;
	pointer-events: none;
	background-size: 400px 400px;
	background-repeat: repeat;
}
body:not(.mail-bg)::before
{
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='200' height='200'><filter id='n' x='0%25' y='0%25' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.08' numOctaves='3' seed='11' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.35'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
	animation: bg-noise-a 22s ease-in-out infinite alternate;
}
body:not(.mail-bg)::after
{
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='200' height='200'><filter id='n2' x='0%25' y='0%25' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.08' numOctaves='3' seed='29' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.35'/></filter><rect width='200' height='200' filter='url(%23n2)'/></svg>");
	animation: bg-noise-b 17s ease-in-out infinite alternate;
	animation-delay: -6s;
}
@keyframes bg-noise-a
{
	from { opacity: 0.35; transform: translate(0,0) scale(1); }
	to   { opacity: 0.85; transform: translate(-2%, 1.5%) scale(1.04); }
}
@keyframes bg-noise-b
{
	from { opacity: 0.30; transform: translate(0,0) scale(1); }
	to   { opacity: 0.70; transform: translate(2%, -1.5%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce)
{
	body:not(.mail-bg)::before, body:not(.mail-bg)::after { animation: none; opacity: 0.5; }
}

a:link
{
	color: #000039;
	text-decoration: none;
}
a:visited
{
	color: #6C006C;
	text-decoration: none;
}
a:active
{
	color: #FF0000;
	text-decoration: none;
}
a:hover
{
	color: #0000FF;
	text-decoration: none;
}

.cycle_name
{
	font-family: Comic Sans MS;
	font-size: 24px;
}

.txt_intro, .txt_body
{
	direction: rtl;
	text-align: right;
}

.date
{
	font-family: Comic Sans MS;
	font-size: 18px;
}

.txt_name
{
	color: #FF0000;
	font-family: Comic Sans MS;
	font-size: 22px;
}

.navigate
{
	font-size: 12px;
/*	font-style: italic;
*/
	font-weight: bold;
}

.bread_crumb
{
	font-size: 12px;
	font-style: italic;
	font-weight: bold;
	text-align: right;
}

.content
{
	font-size: 15px;
	font-style: italic;
	font-weight: bold;
}

.review
{
	font-family: Times New Roman;
	font-size: 16px;
	font-style: italic;
	font-weight: bold;
}

.txt_body
{
	font-size: 16px;
/*	font-style: italic;
	font-weight: bold;
*/
}

.txt_intro
{
	color: #000023;
	font-family: Times New Roman;
	font-size: 18px;
	font-style: italic;
}

.txt_author
{
	font-size: 16px;
/*	font-style: italic;
	font-weight: bold;
*/
}

.copyright
{
	color: #FF0000;
	font-size: 12px;
}

/* Force light palette for browsers that ignore color-scheme (e.g. Samsung Internet Smart Dark Mode) */
@media (prefers-color-scheme: dark) {
	body {
		color: #000021 !important;
		background-color: #FCF2E6 !important;
	}
	a:link    { color: #000039 !important; }
	a:visited { color: #6C006C !important; }
	a:active  { color: #FF0000 !important; }
	a:hover   { color: #0000FF !important; }
	.txt_name  { color: #FF0000 !important; }
	.txt_intro { color: #000023 !important; }
	.copyright { color: #FF0000 !important; }
}