/* ---------- Occasions ---------- */
#tooba-home .occ { position: relative; width: calc(1735 * var(--u)); height: calc(789 * var(--u)); margin: calc(155 * var(--u)) auto 0; direction: ltr; }
#tooba-home .occ-panel {
	position: absolute; inset: calc(115 * var(--u)) 0 0 0; border-radius: calc(44 * var(--u));
	background: var(--sage); color: #fdfdfb;
}
#tooba-home .occ-info { position: absolute; left: calc(55 * var(--u)); top: calc(89 * var(--u)); width: calc(300 * var(--u)); text-align: center; direction: rtl; z-index: 2; }
#tooba-home .occ-year { font-size: calc(250 * var(--u)); font-weight: 100; line-height: .75; height: calc(170 * var(--u)); display: flex; align-items: center; justify-content: center; }
#tooba-home .occ-era { font-size: calc(44 * var(--u)); font-weight: 100; line-height: 1.2; margin-top: calc(30 * var(--u)); white-space: nowrap; }
#tooba-home .occ-day { font-size: calc(26 * var(--u)); font-weight: 300; opacity: .85; height: calc(34 * var(--u)); }
#tooba-home .occ-tabs { display: flex; gap: calc(9 * var(--u)); justify-content: center; margin-top: calc(50 * var(--u)); }
#tooba-home .occ-tabs button {
	min-width: calc(85 * var(--u)); height: calc(47 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(12 * var(--u));
	background: #747c5e; color: #fdfdfb; font-size: calc(26 * var(--u)); font-weight: 300; transition: background .2s;
}
#tooba-home .occ-tabs button.is-on { background: #fff; color: #454545; }
#tooba-home .occ-hadith { text-align: center; color: #fff; }
#tooba-home .occ-hadith[hidden] { display: none; }
#tooba-home .occ-hadith-text { font-size: calc(23 * var(--u)); font-weight: 300; line-height: 1.75; }
#tooba-home .occ-hadith[data-size="l"] .occ-hadith-text { font-size: calc(28 * var(--u)); }
#tooba-home .occ-hadith[data-size="s"] .occ-hadith-text { font-size: calc(20 * var(--u)); }
#tooba-home .occ-hadith-src { margin-top: calc(12 * var(--u)); font-size: calc(17 * var(--u)); font-weight: 300; opacity: .85; line-height: 1.5; }
#tooba-home .occ-hadith-next {
	margin-top: calc(18 * var(--u)); height: calc(40 * var(--u)); padding: 0 calc(20 * var(--u)); border-radius: calc(12 * var(--u));
	background: rgba(255, 255, 255, .22); color: #fff; font-size: calc(20 * var(--u)); font-weight: 300; transition: background .2s;
}
#tooba-home .occ-hadith-next:hover { background: rgba(255, 255, 255, .38); }
#tooba-home .occ-info.is-hadith .occ-date { display: none; }
#tooba-home .occ-next {
	z-index: 2; position: absolute; right: calc(24 * var(--u)); top: 50%; translate: 0 -50%;
	width: calc(36 * var(--u)); height: calc(60 * var(--u)); opacity: .8;
}
#tooba-home .occ-next::before {
	content: ""; display: block; width: calc(16 * var(--u)); height: calc(16 * var(--u)); margin: auto; rotate: -45deg;
	border: solid #fff; border-width: 0 calc(2.5 * var(--u)) calc(2.5 * var(--u)) 0;
}
#tooba-home .occ-cards {
	position: absolute; top: 0; left: calc(404 * var(--u)); right: 0; padding-right: calc(76 * var(--u)); height: calc(686 * var(--u));
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 50 * var(--u)), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 50 * var(--u)), transparent);
	display: flex; gap: calc(40 * var(--u)); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
}
#tooba-home .occ-cards::-webkit-scrollbar { display: none; }
#tooba-home .occ-card {
	position: relative; flex: 0 0 calc(187 * var(--u)); height: 100%; overflow: hidden; border-radius: calc(36 * var(--u));
	background: var(--art) center / cover, linear-gradient(165deg, #8a9770, var(--moss));
	transition: flex-basis .4s ease; scroll-snap-align: start;
}
#tooba-home .occ-card.is-on { flex-basis: calc(587 * var(--u)); }
#tooba-home .occ-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .35)); }
#tooba-home .occ-card a { position: absolute; inset: 0; z-index: 1; color: #fff; }
#tooba-home .occ-name {
	position: absolute; left: calc(27 * var(--u)); bottom: calc(38 * var(--u)); white-space: nowrap;
	writing-mode: vertical-rl; rotate: 180deg; font-size: calc(30 * var(--u)); font-weight: 400; line-height: 1;
}
#tooba-home .occ-sub { display: none; }
#tooba-home .occ-card.is-on .occ-name { writing-mode: horizontal-tb; rotate: none; left: calc(52 * var(--u)); bottom: calc(97 * var(--u)); font-size: calc(46 * var(--u)); font-weight: 200; }
#tooba-home .occ-card.is-on .occ-sub {
	display: block; position: absolute; left: calc(52 * var(--u)); bottom: calc(63 * var(--u));
	font-size: calc(22 * var(--u)); font-weight: 200;
}

@media (max-width: 1023px) {
	#tooba-home .occ { width: auto; height: auto; margin: calc(40 * var(--u)) calc(14 * var(--u)) 0; display: flex; flex-direction: column; }
	#tooba-home .occ-panel { position: static; padding: calc(24 * var(--u)) calc(14 * var(--u)) calc(230 * var(--u)); border-radius: calc(28 * var(--u)); }
	#tooba-home .occ-info { position: static; width: auto; }
	#tooba-home .occ-year { font-size: calc(86 * var(--u)); height: calc(72 * var(--u)); }
	#tooba-home .occ-era { font-size: calc(22 * var(--u)); margin-top: calc(10 * var(--u)); }
	#tooba-home .occ-day { font-size: calc(15 * var(--u)); height: calc(22 * var(--u)); }
	#tooba-home .occ-tabs { margin-top: calc(16 * var(--u)); gap: calc(6 * var(--u)); }
	#tooba-home .occ-tabs button { min-width: calc(70 * var(--u)); height: calc(36 * var(--u)); font-size: calc(15 * var(--u)); border-radius: calc(10 * var(--u)); }
	#tooba-home .occ-hadith-text { font-size: calc(14 * var(--u)); }
	#tooba-home .occ-hadith[data-size="l"] .occ-hadith-text { font-size: calc(17 * var(--u)); }
	#tooba-home .occ-hadith[data-size="s"] .occ-hadith-text { font-size: calc(12.5 * var(--u)); }
	#tooba-home .occ-hadith-src { margin-top: calc(6 * var(--u)); font-size: calc(11 * var(--u)); }
	#tooba-home .occ-hadith-next { margin-top: calc(10 * var(--u)); height: calc(30 * var(--u)); font-size: calc(13 * var(--u)); padding: 0 calc(14 * var(--u)); }
	#tooba-home .occ-next { display: none; }
	#tooba-home .occ-cards { -webkit-mask-image: none; mask-image: none; scroll-snap-type: none; padding: 0; position: relative; inset: auto; order: 2; margin: calc(-215 * var(--u)) calc(14 * var(--u)) 0; height: calc(300 * var(--u)); gap: calc(10 * var(--u)); }
	#tooba-home .occ-card { flex-basis: calc(70 * var(--u)); border-radius: calc(20 * var(--u)); }
	#tooba-home .occ-card.is-on { flex-basis: calc(200 * var(--u)); }
	#tooba-home .occ-name { left: calc(14 * var(--u)); bottom: calc(18 * var(--u)); font-size: calc(15 * var(--u)); }
	#tooba-home .occ-card.is-on .occ-name { left: calc(18 * var(--u)); bottom: calc(40 * var(--u)); font-size: calc(22 * var(--u)); }
	#tooba-home .occ-card.is-on .occ-sub { left: calc(18 * var(--u)); bottom: calc(20 * var(--u)); font-size: calc(12 * var(--u)); }
}
