/* =========================================================================
   Shahad.studio blocks – shared styles (front end + editor)
   Colours and fonts come from the theme's theme.json; fallbacks keep the
   blocks usable with any theme. All layout uses logical properties so Arabic
   (RTL) pages mirror automatically.
   ========================================================================= */

:root {
	--sh-purple: var(--wp--preset--color--purple, #996DAD);
	--sh-deep: var(--wp--preset--color--deep-purple, #7A4F8F);
	--sh-light-purple: var(--wp--preset--color--light-purple, #D0B0D7);
	--sh-lilac: var(--wp--preset--color--lilac, #F6F0F8);
	--sh-mint: var(--wp--preset--color--mint, #82C5B0);
	--sh-light-mint: var(--wp--preset--color--light-mint, #ADE0D1);
	--sh-dark: var(--wp--preset--color--dark, #2B2433);
	--sh-paper: var(--wp--preset--color--paper, #FFFDF8);
	--sh-cream: var(--wp--preset--color--cream, #FFF4D9);
	--sh-gaming: var(--wp--preset--color--gaming-dark, #2B1D33);
	--sh-gaming-2: var(--wp--preset--color--gaming-dark-2, #3E2A4A);
	--sh-white: #ffffff;
	--sh-muted: #5c5363;
	--sh-line: rgba(122, 79, 143, 0.14);

	--sh-font-heading: var(--wp--preset--font-family--bricolage-grotesque, "Bricolage Grotesque", "Segoe UI", sans-serif);
	--sh-font-body: var(--wp--preset--font-family--inter, Inter, "Segoe UI", sans-serif);
	--sh-font-arabic: var(--wp--preset--font-family--ibm-plex-sans-arabic, "IBM Plex Sans Arabic", Tahoma, sans-serif);
	--sh-font-hand-ar: var(--wp--custom--arabic-handwriting, var(--sh-font-arabic));
	/* Caveat for Latin, IBM Plex Sans Arabic for Arabic letters mixed into English pages */
	--sh-font-hand: Caveat, var(--sh-font-hand-ar), "Segoe Script", cursive;
	/* "— Shahad" signature under posts: Sacramento (Latin only; Arabic letters fall back to the handwriting stack) */
	--sh-font-signature: var(--wp--preset--font-family--sacramento, Sacramento, "Segoe Script", cursive), var(--sh-font-hand);

	--sh-radius: 20px;
	--sh-radius-sm: 14px;
	--sh-shadow: 0 10px 30px rgba(122, 79, 143, 0.10);
	--sh-tap: 44px;
}

[dir="rtl"] {
	--sh-font-heading: var(--sh-font-arabic);
	--sh-font-body: var(--sh-font-arabic);
	--sh-font-hand: var(--sh-font-hand-ar), Caveat, cursive;
}
/* IBM Plex Sans Arabic is a real sans, not a script like Caveat: the "handwritten" bits sit a notch
   smaller and lighter on Arabic pages so they read as notes, not headings. */
[dir="rtl"] .sh-hand,
[dir="rtl"] .sh-handwritten,
[dir="rtl"] .sh-polaroid-caption,
[dir="rtl"] .sh-sticky h2, [dir="rtl"] .sh-sticky h3, [dir="rtl"] .sh-sticky h4, [dir="rtl"] .sh-sticky .sh-sticky-title {
	font-size: 0.85em;
	font-weight: 500;
	line-height: 1.45;
}
[dir="rtl"] .sh-handwritten { font-size: 1.2rem; }
[dir="rtl"] .sh-handwritten.is-size-small { font-size: 1rem; }
[dir="rtl"] .sh-handwritten.is-size-large { font-size: 1.5rem; }
[dir="rtl"] .sh-sticky h2, [dir="rtl"] .sh-sticky h3, [dir="rtl"] .sh-sticky h4, [dir="rtl"] .sh-sticky .sh-sticky-title { font-size: 1.25rem; font-weight: 600; }
[dir="rtl"] .sh-polaroid-caption { font-size: 1.1rem; }

/* Latin logo always keeps Bricolage, even on Arabic pages */
.sh-logo-text {
	font-family: var(--wp--preset--font-family--bricolage-grotesque, "Bricolage Grotesque", "Segoe UI", sans-serif) !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	unicode-bidi: isolate;
}

/* ---------- generic ---------- */
.sh-arrow { display: inline-block; }
[dir="rtl"] .sh-arrow-right,
[dir="rtl"] .sh-arrow-left,
[dir="rtl"] .sh-arrow-ne,
[dir="rtl"] .sh-arrow-sw { transform: scaleX(-1); }

.sh-hand {
	font-family: var(--sh-font-hand);
	color: var(--sh-deep);
	font-weight: 500;
	line-height: 1.25;
}
.sh-eyebrow {
	display: block;
	font-family: var(--sh-font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sh-deep);
	margin: 0 0 0.35em;
}
[dir="rtl"] .sh-eyebrow { letter-spacing: 0; font-size: 0.8rem; }

.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0 1rem; }
.sh-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--sh-lilac);
	color: var(--sh-dark);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.5;
	font-family: var(--sh-font-body);
}
.sh-chip-mint { background: var(--sh-light-mint); color: var(--sh-dark); }
.sh-free-badge { font-size: 0.72rem; padding: 3px 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.sh-free-inline { margin-inline-start: 6px; vertical-align: middle; }
.sh-chip-dark { background: var(--sh-dark); color: #fff; }

/* buttons: real <a>/<button>, 44px tap target, pill */
.sh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--sh-tap);
	padding: 10px 22px;
	border-radius: 999px;
	border: 0;
	font-family: var(--sh-font-body);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	box-sizing: border-box;
}
.sh-btn:hover { transform: translateY(-1px); }
.sh-btn:focus-visible { outline: 3px solid var(--sh-mint); outline-offset: 2px; }
.sh-btn .sh-icon { width: 18px; height: 18px; }
.sh-btn-purple { background: var(--sh-deep); color: #fff; }
.sh-btn-purple:hover { background: #6b437f; color: #fff; }
.sh-btn-mint { background: var(--sh-light-mint); color: var(--sh-dark); }
.sh-btn-mint:hover { background: var(--sh-mint); color: var(--sh-dark); }
.sh-btn-white { background: #fff; color: var(--sh-dark); box-shadow: 0 2px 10px rgba(122, 79, 143, 0.10); }
.sh-btn-white:hover { color: var(--sh-deep); }
.sh-btn-dark { background: var(--sh-dark); color: #fff; }
.sh-btn-dark:hover { background: #3a3044; color: #fff; }
.sh-btn-lilac { background: var(--sh-lilac); color: var(--sh-dark); }
.sh-btn-lilac:hover { background: #ece0f0; }
.sh-btn-ghost { background: transparent; color: var(--sh-muted); border: 1.5px dashed var(--sh-light-purple); cursor: default; }
.sh-btn-pill-outline { background: rgba(130, 197, 176, 0.18); color: var(--sh-dark); }
.sh-btn-pill-outline:hover { background: rgba(130, 197, 176, 0.35); }

/* placeholders for missing images */
.sh-placeholder { display: block; width: 100%; height: 100%; min-height: 120px; border-radius: inherit; }
.sh-ph-lilac { background: #EDE1F0; }
.sh-ph-mint { background: #D5EEE4; }
.sh-ph-purple { background: #E4D3E8; }

.sh-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -0.25em; }

/* ---------- journal card ---------- */
.sh-card { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.sh-card-white { background: #fff; border-radius: var(--sh-radius); padding: 10px; box-shadow: var(--sh-shadow); }
.sh-card-media {
	position: relative;
	display: block;
	border-radius: var(--sh-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3.2;
	background: #EDE1F0;
}
.sh-card-white .sh-card-media { border-radius: calc(var(--sh-radius) - 6px); }
.sh-card-media .sh-img, .sh-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-card-media .sh-chip { position: absolute; top: 12px; inset-inline-start: 12px; }
.sh-card-body { padding: 0 4px 4px; }
.sh-card-title { font-family: var(--sh-font-heading); font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.3; }
.sh-card-title a { color: var(--sh-dark); text-decoration: none; }
.sh-card-title a:hover { color: var(--sh-deep); }
.sh-card-excerpt { margin: 0.4rem 0 0; color: var(--sh-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- sticky note ---------- */
.sh-sticky {
	position: relative;
	padding: 26px 24px 30px;
	border-radius: 6px;
	box-shadow: 0 12px 28px rgba(43, 36, 51, 0.12);
	color: var(--sh-dark);
	font-family: var(--sh-font-body);
	line-height: 1.6;
	max-width: 100%;
}
.sh-sticky-mint { background: var(--sh-light-mint); --sh-sticky-fold: #8fd0ba; }
.sh-sticky-lilac { background: #E8D6EC; --sh-sticky-fold: #d0b0d7; }
.sh-sticky-cream { background: var(--sh-cream); --sh-sticky-fold: #f2dfae; }
.sh-sticky::after { /* folded corner */
	content: "";
	position: absolute;
	inset-inline-end: 0;
	bottom: 0;
	width: 26px;
	height: 26px;
	background: linear-gradient(to top left, rgba(255, 255, 255, 0.95) 50%, var(--sh-sticky-fold) 50%);
	border-start-start-radius: 6px;
}
[dir="rtl"] .sh-sticky::after { background: linear-gradient(to top right, rgba(255, 255, 255, 0.95) 50%, var(--sh-sticky-fold) 50%); }
.sh-sticky > :first-child { margin-top: 0; }
.sh-sticky > :last-child { margin-bottom: 0; }
.sh-sticky h2, .sh-sticky h3, .sh-sticky h4, .sh-sticky .sh-sticky-title {
	font-family: var(--sh-font-hand);
	color: var(--sh-dark);
	font-weight: 600;
	font-size: 1.6rem;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}
.sh-sticky p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.sh-sticky .wp-block-button__link, .sh-sticky .sh-btn { margin-top: 4px; }
.sh-pin {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #b98cc9, var(--sh-deep) 70%);
	box-shadow: 0 3px 6px rgba(43, 36, 51, 0.3);
	z-index: 1;
}
.sh-pin-mint { background: radial-gradient(circle at 35% 35%, #c4ebdc, var(--sh-mint) 70%); }
.sh-sticky.has-pin { margin-top: 12px; }
.sh-sticky-card { /* "card" variant: dashed inner border, slight shadow, used for Hirfa card */
	border-radius: 8px;
	padding: 22px 26px;
}
.sh-sticky-card::before {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1.5px dashed rgba(255, 255, 255, 0.85);
	border-radius: 6px;
	pointer-events: none;
}
.sh-sticky-card::after { display: none; }
.sh-sticky-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sh-sticky-list li { position: relative; padding-inline-start: 2.2rem; margin: 0 0 0.6rem; counter-increment: step; font-size: 0.95rem; line-height: 1.5; }
.sh-sticky-list li::before {
	content: counter(step);
	position: absolute;
	inset-inline-start: 0;
	top: 0.05em;
	width: 1.6rem;
	height: 1.6rem;
	border: 1.5px solid var(--sh-deep);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sh-font-hand);
	font-size: 1rem;
	color: var(--sh-deep);
}

/* ---------- handwritten note ---------- */
.sh-handwritten {
	font-family: var(--sh-font-hand);
	color: var(--sh-deep);
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0.25rem 0 0.75rem;
}
.sh-handwritten .sh-arrow { margin-inline-end: 0.2em; }
.sh-handwritten.is-size-small { font-size: 1.2rem; }
.sh-handwritten.is-size-large { font-size: 2rem; }
.sh-handwritten.has-text-align-center { text-align: center; }
.sh-handwritten.has-text-align-right { text-align: end; }

/* ---------- site header ---------- */
.sh-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--sh-line);
	font-family: var(--sh-font-body);
}
.sh-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 14px 20px;
	min-height: 68px;
}
.sh-logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--sh-dark); font-size: 1.3rem; line-height: 1; }
.sh-logo:hover { color: var(--sh-dark); }
.sh-logo-dot { color: var(--sh-mint); }
.sh-logo-big { font-size: clamp(1.9rem, 4vw, 2.6rem); justify-content: center; display: flex; }
.sh-header-spacer { flex: 1; }
.sh-nav { display: flex; align-items: center; gap: 4px 22px; }
.sh-nav a { color: var(--sh-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 2px; min-height: var(--sh-tap); display: inline-flex; align-items: center; }
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: var(--sh-deep); }
.sh-nav a[aria-current="page"] { font-weight: 700; }
.sh-nav .sh-btn { padding-block: 8px; min-height: 42px; }
/* "Hirfa Crafts ↗" pill: 44px tall, 0 20px padding, mint tint, green text */
.sh-nav .sh-header-cta, .sh-nav .sh-header-cta:hover {
	height: 44px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: #EAF6F2;
	color: #2F6B5A;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
}
.sh-nav .sh-header-cta:hover { background: #dcf0e8; color: #24584A; }
.sh-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.sh-lang a { color: var(--sh-deep); text-decoration: none; min-height: var(--sh-tap); display: inline-flex; align-items: center; padding: 0 2px; }
.sh-lang a:hover { text-decoration: underline; }
.sh-lang-current { color: var(--sh-dark); }
.sh-lang-missing { color: #a39aab; cursor: not-allowed; }
.sh-lang-sep { color: var(--sh-light-purple); }
.sh-lang-centered { justify-content: center; width: 100%; margin: 0.5rem 0 1rem; }
.sh-menu-toggle {
	display: none;
	width: var(--sh-tap);
	height: var(--sh-tap);
	border: 0;
	border-radius: 12px;
	background: var(--sh-lilac);
	color: var(--sh-dark);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.sh-menu-toggle .sh-icon { width: 24px; height: 24px; }
.sh-menu-toggle .sh-icon-close { display: none; }
.sh-header.is-open .sh-menu-toggle .sh-icon-close { display: block; }
.sh-header.is-open .sh-menu-toggle .sh-icon-menu { display: none; }
@media (max-width: 900px) {
	.sh-menu-toggle { display: inline-flex; }
	.sh-nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		background: #fff;
		padding: 10px 20px 20px;
		border-bottom: 1px solid var(--sh-line);
		box-shadow: var(--sh-shadow);
		z-index: 40;
	}
	.sh-header.is-open .sh-nav { display: flex; }
	.sh-nav a { font-size: 1.05rem; padding: 8px 4px; }
	.sh-nav .sh-btn { align-self: flex-start; margin-top: 8px; }
	.sh-nav .sh-lang { margin-top: 6px; }
}

/* ---------- site footer ---------- */
.sh-footer {
	background: var(--sh-deep);
	color: #fff;
	font-family: var(--sh-font-body);
	margin-top: 3rem;
}
.sh-footer-inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 34px 20px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px 28px;
}
.sh-footer .sh-logo { color: #fff; font-size: 1.25rem; }
.sh-footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.sh-footer-links a { color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; min-height: var(--sh-tap); display: inline-flex; align-items: center; }
.sh-footer-links a:hover, .sh-footer-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sh-footer-note { font-size: 0.8rem; opacity: 0.9; text-align: end; }
.sh-footer-note.sh-hand { font-size: 1.25rem; color: #fff; opacity: 1; }
@media (max-width: 720px) {
	.sh-footer-inner { grid-template-columns: 1fr; text-align: center; }
	.sh-footer .sh-logo { justify-content: center; }
	.sh-footer-note { text-align: center; }
}

/* ---------- lately (home) ---------- */
.sh-lately { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 40px; align-items: start; }
.sh-lately-main .sh-card-media { aspect-ratio: 16 / 10.5; }
.sh-lately-main .sh-card-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.sh-lately-main .sh-card-body { display: flex; flex-direction: column; gap: 6px; }
.sh-lately-main .sh-meta-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--sh-muted); }
.sh-lately-list { list-style: none; margin: 0; padding: 0; }
.sh-lately-list li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--sh-line); }
.sh-lately-list li:first-child { padding-top: 0; }
.sh-lately-list .sh-card-media { aspect-ratio: 1; border-radius: 14px; }
.sh-lately-list .sh-card-title { font-size: 1.05rem; }
@media (max-width: 820px) { .sh-lately { grid-template-columns: 1fr; } }

/* ---------- category tiles ---------- */
.sh-tiles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 1rem; }
.sh-tiles-head a { color: var(--sh-deep); font-weight: 600; }
/* Square tiles, 5 per row on desktop (fills the row), 3 on tablets, 2 on phones */
.sh-tiles { display: grid; grid-template-columns: repeat(var(--sh-tiles-cols, 5), minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.sh-tile { min-width: 0; }
.sh-tile a { display: block; text-decoration: none; color: var(--sh-dark); font-weight: 600; }
.sh-tile-media { display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #EDE1F0; }
.sh-tile-media img, .sh-tile-media .sh-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.sh-tile-name { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.35; }
.sh-tile a:hover img { transform: scale(1.03); }
.sh-tile a:hover { color: var(--sh-deep); }
@media (max-width: 900px) { .sh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 600px) { .sh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .sh-tile-media { border-radius: 16px; } }

/* ---------- latest videos (gaming corner) ---------- */
.sh-videos {
	display: grid;
	grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2fr);
	gap: 20px 32px;
	align-items: center;
	background: var(--sh-lilac);
	border-radius: var(--sh-radius);
	padding: 24px 28px;
}
.sh-videos-title { font-family: var(--sh-font-heading); font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.sh-videos-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9rem; }
.sh-videos-links a { color: var(--sh-deep); font-weight: 600; }
.sh-videos-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sh-videos-list a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #E4D3E8; position: relative; }
.sh-videos-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-videos-list .sh-video-title { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.3; background: linear-gradient(to top, rgba(43, 29, 51, 0.85), transparent); }
@media (max-width: 760px) { .sh-videos { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sh-videos-list { grid-template-columns: 1fr 1fr; } }

/* ---------- journal ---------- */
.sh-journal-filters { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; }
.sh-journal-filters a, .sh-games-filter {
	display: inline-flex;
	align-items: center;
	min-height: var(--sh-tap);
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--sh-lilac);
	color: var(--sh-dark);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font-family: var(--sh-font-body);
}
.sh-journal-filters a:hover, .sh-games-filter:hover { background: #ece0f0; }
.sh-journal-filters a[aria-current="page"], .sh-games-filter.is-active { background: var(--sh-deep); color: #fff; }
.sh-journal-empty { color: var(--sh-muted); padding: 2rem 0; }

/* Journal header: title 64px, handwritten line 30px, intro 18px */
.sh-journal-head { margin: 0 0 1.5rem; }
.sh-journal .sh-page-title { font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 0.4rem; }
.sh-journal-tagline { font-size: 30px; line-height: 1.2; margin: 0 0 0.75rem; color: var(--sh-deep); }
.sh-journal-intro { font-size: 18px; line-height: 1.6; max-width: 640px; color: #4A4152; margin: 0; }
[dir="rtl"] .sh-journal .sh-page-title { font-size: 54px; line-height: 1.2; letter-spacing: 0; }
[dir="rtl"] .sh-journal-tagline { font-size: 22px; font-weight: 500; }
@media (max-width: 600px) {
	.sh-journal .sh-page-title { font-size: 42px; }
	[dir="rtl"] .sh-journal .sh-page-title { font-size: 36px; }
	.sh-journal-tagline { font-size: 24px; }
	.sh-journal-intro { font-size: 16px; }
}

/* Notebook divider tabs on a 4px deep-purple line */
.sh-journal-tabs-wrap { margin: 1.75rem 0 2.25rem; border-bottom: 4px solid var(--sh-deep); }
.sh-journal-tabs { list-style: none; margin: 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.sh-journal-tabs li { display: flex; align-items: flex-end; }
.sh-tab {
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 18px;
	border-radius: 12px 12px 0 0;
	background: #E6D5EA;
	color: var(--sh-dark);
	font-family: var(--sh-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
	transition: height 0.15s ease, background-color 0.15s ease;
}
.sh-tab-lilac { background: #E6D5EA; }
.sh-tab-mint { background: #D7EFE7; }
.sh-tab-cream { background: #FFF4D9; }
.sh-tab-light-lilac { background: #F1E8F4; }
.sh-tab-light-mint { background: #EAF6F2; }
.sh-tab:hover { color: var(--sh-deep); height: 50px; }
.sh-tab.is-active, .sh-tab.is-active:hover { background: var(--sh-deep); color: #fff; height: 56px; }
@media (max-width: 700px) {
	.sh-journal-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-inline-end: 20px; }
	.sh-journal-tabs::-webkit-scrollbar { display: none; }
	.sh-tab { padding: 0 16px; font-size: 0.9rem; }
}

/* Recipe cards: cream card, photo inside with 12px margin, tape on top, notebook lines below */
.sh-recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; list-style: none; margin: 0; padding: 14px 0 0; }
.sh-recipes > li { min-width: 0; display: flex; }
.sh-recipe { position: relative; width: 100%; background: #FFFDF8; border-radius: 10px; box-shadow: 0 10px 28px rgba(122, 79, 143, 0.10); padding: 12px; display: flex; flex-direction: column; }
.sh-tape {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	min-width: 96px;
	height: 24px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	font-family: var(--sh-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sh-dark);
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(43, 36, 51, 0.08);
}
.sh-tape:hover { color: var(--sh-deep); }
.sh-tape-mint { background: rgba(173, 224, 209, 0.92); }
.sh-tape-lilac { background: rgba(208, 176, 215, 0.9); }
.sh-tape-cream { background: rgba(255, 236, 180, 0.95); }
[dir="rtl"] .sh-tape { letter-spacing: 0; font-size: 11px; }
.sh-recipe-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #EDE1F0; }
.sh-recipe-photo img, .sh-recipe-photo .sh-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-recipe-photo .sh-free-badge { position: absolute; top: 10px; inset-inline-start: 10px; }
.sh-recipe-body {
	--sh-rl: 28px;
	margin-top: 12px;
	padding: 0 4px 2px;
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--sh-rl) - 1px), rgba(122, 79, 143, 0.10) calc(var(--sh-rl) - 1px), rgba(122, 79, 143, 0.10) var(--sh-rl));
	background-position: 0 8px;
}
.sh-recipe-title { font-family: var(--sh-font-heading); font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0; padding: 6px 0 9px; border-bottom: 2px solid var(--sh-light-purple); }
.sh-recipe-title a { color: var(--sh-dark); text-decoration: none; }
.sh-recipe-title a:hover { color: var(--sh-deep); }
.sh-recipe-excerpt { margin: 0; font-size: 15px; line-height: var(--sh-rl); color: var(--sh-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-recipe-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; line-height: var(--sh-rl); font-size: 13px; color: #7d7386; }
.sh-recipe-read { font-size: 21px; text-decoration: none; }
.sh-recipe-read:hover { text-decoration: underline; }
[dir="rtl"] .sh-recipe-read { font-size: 15px; font-weight: 600; }
[dir="rtl"] .sh-recipe-title { font-size: 19px; }
@media (max-width: 900px) { .sh-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; } }
@media (max-width: 600px) { .sh-recipes { grid-template-columns: 1fr; gap: 32px; } }
.sh-load-more-wrap { display: flex; justify-content: center; margin: 2.75rem 0 1rem; }
.sh-load-more { min-width: 190px; }
.sh-load-more.is-loading { opacity: 0.7; pointer-events: none; }
.sh-load-more.is-loading .sh-load-more-dots::after { content: "…"; }
.sh-recipes > li.is-new { animation: sh-fade 0.35s ease; }
@keyframes sh-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sh-pagination { display: flex; justify-content: center; gap: 8px; margin: 2.5rem 0 1rem; flex-wrap: wrap; }
.sh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--sh-tap); min-height: var(--sh-tap); padding: 8px 16px; border-radius: 999px; background: var(--sh-lilac); color: var(--sh-dark); text-decoration: none; font-weight: 600; }
.sh-pagination .page-numbers.current { background: var(--sh-deep); color: #fff; }
.sh-pagination .page-numbers.dots { background: none; }

/* ---------- post meta / signature / more posts ---------- */
.sh-post-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sh-deep); margin: 0 0 0.5rem; font-family: var(--sh-font-body); }
[dir="rtl"] .sh-post-meta { letter-spacing: 0; font-size: 0.85rem; }
.sh-post-meta a { color: inherit; text-decoration: none; }
.sh-post-meta a:hover { text-decoration: underline; }
.sh-post-meta .sh-sep::before { content: "·"; }
.sh-signature { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 2.5rem; padding-top: 1.5rem; flex-wrap: wrap; }
.sh-signature-text { margin: 0; color: var(--sh-muted); font-size: 0.95rem; }
.sh-signature-text a { color: var(--sh-deep); font-weight: 600; }
.sh-signature-name { font-family: var(--sh-font-signature); font-size: 2.3rem; color: var(--sh-dark); line-height: 1; direction: ltr; unicode-bidi: isolate; }
.sh-more { margin-top: 2.5rem; }
.sh-more-title { font-family: var(--sh-font-heading); font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }
.sh-more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sh-more-grid .sh-card-media { aspect-ratio: 4 / 3; }
.sh-more-grid .sh-card-title { font-size: 1rem; }
@media (max-width: 700px) { .sh-more-grid { grid-template-columns: 1fr; } .sh-more-grid .sh-card { flex-direction: row; align-items: center; } .sh-more-grid .sh-card-media { width: 110px; flex: 0 0 110px; aspect-ratio: 1; } }

/* ---------- free pattern box ---------- */
.sh-free-pattern { margin: 1.5rem 0; }
.sh-free-pattern-title { font-family: var(--sh-font-heading); font-size: 1.6rem; font-weight: 700; margin: 0 0 0.5rem; }
.sh-free-pattern-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }

/* ---------- supplies note ---------- */
.sh-supplies-list { list-style: none; margin: 0; padding: 0; }
.sh-supplies-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.95rem; }
.sh-supplies-list .sh-box { width: 13px; height: 13px; border: 1.5px solid var(--sh-dark); border-radius: 3px; flex: 0 0 auto; }
.sh-supplies-list .sh-supply-text { flex: 1; }
.sh-supplies-list a { color: var(--sh-dark); font-weight: 700; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.sh-supplies-foot { margin: 0.9rem 0 0 !important; font-size: 0.8rem !important; }
.sh-supplies-foot a { color: var(--sh-deep); font-weight: 700; }

/* ---------- amazon products ---------- */
.sh-amazon-head { margin-bottom: 0.75rem; }
.sh-amazon-head .sh-handwritten { margin: 0 0 0.2rem; }
.sh-amazon-intro { margin: 0 0 1rem; color: var(--sh-muted); font-size: 0.95rem; }
.sh-amazon-grid { display: grid; grid-template-columns: repeat(var(--sh-amazon-cols, 4), minmax(0, 1fr)); gap: 16px; }
.sh-amazon-card { background: #fff; border-radius: var(--sh-radius-sm); padding: 10px 10px 14px; box-shadow: var(--sh-shadow); min-width: 0; }
.sh-amazon-card a { text-decoration: none; color: var(--sh-dark); display: block; }
.sh-amazon-media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #F4EEF6; margin-bottom: 10px; }
.sh-amazon-media img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.sh-amazon-name { font-size: 0.9rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-amazon-link { font-size: 0.8rem; font-weight: 700; color: var(--sh-deep) !important; white-space: nowrap; }
.sh-amazon-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; font-size: 0.8rem; color: var(--sh-muted); align-items: center; }
.sh-amazon-foot a { color: var(--sh-deep); font-weight: 700; }
.sh-amazon-disclosure { margin: 0; }
@media (max-width: 760px) { .sh-amazon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- games library ---------- */
.sh-games-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 1.25rem; }
.sh-games-title { font-family: var(--sh-font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0; }
.sh-games-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-games-filter { background: #fff; min-height: 40px; padding: 6px 16px; }
.sh-games-library:not(.is-enhanced) .sh-games-filters, .sh-games-library:not(.is-enhanced) .sh-games-pager { display: none; }
.sh-games-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sh-game-card { background: #fff; border-radius: var(--sh-radius); padding: 12px 12px 14px; box-shadow: var(--sh-shadow); display: flex; flex-direction: column; min-width: 0; }
.sh-game-media { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 3.15; background: #D5EEE4; }
.sh-game-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-game-count { position: absolute; inset-inline-end: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--sh-dark); font-size: 0.75rem; font-weight: 700; font-family: var(--sh-font-body); box-shadow: 0 2px 8px rgba(43, 36, 51, 0.15); }
.sh-game-count .sh-icon { width: 14px; height: 14px; }
.sh-game-name { font-family: var(--sh-font-heading); font-size: 1.1rem; font-weight: 700; margin: 12px 4px 2px; line-height: 1.3; }
.sh-game-name a { color: var(--sh-dark); text-decoration: none; }
.sh-game-name a:hover { color: var(--sh-deep); }
.sh-game-meta { margin: 0 4px 12px; font-size: 0.8rem; color: var(--sh-muted); }
.sh-game-card .sh-btn { margin-top: auto; width: 100%; }
.sh-games-empty { background: #fff; border-radius: var(--sh-radius); padding: 2rem; text-align: center; color: var(--sh-muted); }
.sh-games-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 2rem 0 1rem; flex-wrap: wrap; }
.sh-games-pager-label { font-size: 0.85rem; color: var(--sh-muted); }
.sh-games-pager-btn { background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--sh-deep); min-height: var(--sh-tap); padding: 4px 8px; font-family: var(--sh-font-hand); }
.sh-games-pager-btn:hover { text-decoration: underline; }
@media (max-width: 900px) { .sh-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px) { .sh-games-grid { grid-template-columns: 1fr; } }
/* "my gaming setup" strip inside the grid: phones only, after the second game (cards have order 2,4,6…) */
.sh-games-strip { grid-column: 1 / -1; order: 5; min-width: 0; }
.sh-games-after { margin: 2.25rem 0 0; max-width: 460px; }
.sh-games-after .sh-sticky { margin-top: 12px; }

/* Games page layout: desktop = games + sticky-note sidebar on the right (notes, setup, how it works);
   phones (< 768px) = notes under the banner, games (with the setup strip after the 2nd game), how it works last. */
.sh-games-page .sh-games-layout2, .sh-games-layout2 { margin-top: 2.75rem; margin-bottom: 3rem; }
.sh-games-page .sh-games-layout2 + .sh-ad { margin-top: 0; }
.sh-games-side2 > :last-child { margin-bottom: 8px; }
.sh-game-banner + .sh-games-layout2, .wp-block-shahad-newest-game + .sh-games-layout2 { margin-top: 2.75rem; }
.sh-games-notes2 > * + *, .sh-games-side2 > * + * { margin-top: 2.25rem; }
.sh-games-notes2 .sh-sticky, .sh-games-side2 .sh-sticky { margin-inline: 6px; }
/* the first note lines up with the "All my translations" heading (pin sticks up 11px above it) */
.sh-games-notes2 > .sh-sticky.has-pin:first-child { margin-top: 14px; }
.sh-games-side2 .sh-setup .sh-amazon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sh-games-side2 .sh-amazon-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
@media (min-width: 768px) {
	.sh-games-layout2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; grid-template-areas: "main notes" "main side"; gap: 2rem 36px; align-items: start; }
	.sh-games-notes2 { grid-area: notes; margin: 0; }
	.sh-games-main2 { grid-area: main; min-width: 0; }
	.sh-games-side2 { grid-area: side; }
	.sh-games-side2 > :first-child { margin-top: 0; }
	.sh-games-layout2 .sh-games-strip { display: none; }
	.sh-games-main2 .sh-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
	.sh-games-layout2 { grid-template-columns: minmax(0, 1fr) 260px; gap: 1.75rem 24px; }
	.sh-games-main2 .sh-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.sh-games-layout2 > * + * { margin-top: 2.25rem; }
	.sh-games-notes2 > .sh-sticky.has-pin:first-child { margin-top: 12px; }
	.sh-games-side2 .wp-block-shahad-gaming-setup { display: none; }
}

/* Newest translation banner */
.sh-game-banner { position: relative; display: flex; align-items: flex-end; min-height: 400px; border-radius: 24px; overflow: hidden; background: var(--sh-gaming); color: #fff; box-shadow: var(--sh-shadow); isolation: isolate; }
.sh-game-banner-bg { position: absolute; inset: 0; z-index: 0; }
.sh-game-banner-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-game-banner.is-cover-blur .sh-game-banner-bg img { filter: blur(16px) saturate(1.1); transform: scale(1.18); object-position: center 30%; }
.sh-game-banner-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(36, 24, 43, 0.92) 0%, rgba(36, 24, 43, 0.55) 45%, rgba(36, 24, 43, 0) 100%); }
.sh-game-banner-body { position: relative; z-index: 2; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 36px 36px 32px; }
.sh-game-banner-text { min-width: 0; }
.sh-game-banner-eyebrow { display: block; color: var(--sh-light-mint); font-family: var(--sh-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
[dir="rtl"] .sh-game-banner-eyebrow { letter-spacing: 0; font-size: 14px; }
.sh-game-banner-title { font-family: var(--sh-font-heading); font-size: 52px; line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 16px; color: #fff; }
.sh-game-banner-title a { color: #fff; text-decoration: none; }
.sh-game-banner-title a:hover { color: var(--sh-light-mint); }
[dir="rtl"] .sh-game-banner-title { letter-spacing: 0; line-height: 1.2; }
.sh-game-banner-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-game-tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; font-family: var(--sh-font-body); font-size: 13px; font-weight: 600; line-height: 1.3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sh-game-tag .sh-icon { width: 14px; height: 14px; }
.sh-game-banner-btn.sh-btn { height: 56px; min-height: 56px; padding: 0 30px; font-size: 1.05rem; background: var(--sh-light-mint); color: var(--sh-dark); box-shadow: 0 0 0 6px rgba(173, 224, 209, 0.22), 0 12px 32px rgba(173, 224, 209, 0.45); flex: 0 0 auto; }
.sh-game-banner-btn.sh-btn:hover { background: #c4ebdc; color: var(--sh-dark); }
.sh-game-banner-btn.sh-btn .sh-icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
	.sh-game-banner { min-height: 320px; border-radius: 20px; }
	.sh-game-banner-body { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 20px 20px; }
	.sh-game-banner-title { font-size: 34px; margin-bottom: 12px; }
	.sh-game-banner-btn.sh-btn { width: 100%; }
}

/* Gaming setup (random) */
.sh-setup .sh-amazon-grid { grid-template-columns: repeat(var(--sh-amazon-cols, 4), minmax(0, 1fr)); }
.sh-setup.is-strip { background: var(--sh-lilac); border-radius: 20px; padding: 22px 24px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px 28px; align-items: center; }
.sh-setup.is-strip .sh-amazon-head { margin: 0; }
.sh-setup.is-strip .sh-amazon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sh-setup.is-strip .sh-amazon-card { box-shadow: 0 4px 14px rgba(122, 79, 143, 0.08); }
.sh-setup.is-strip .sh-amazon-foot { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 900px) {
	.sh-setup.is-strip { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
	.sh-setup.is-strip .sh-amazon-grid, .sh-setup .sh-amazon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sh-game-featured { display: grid; grid-template-columns: 200px 1fr; gap: 24px 32px; background: #fff; border-radius: var(--sh-radius); padding: 20px; box-shadow: var(--sh-shadow); margin-bottom: 2.5rem; align-items: center; }
.sh-game-featured-cover { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: #EDE1F0; }
.sh-game-featured-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-game-featured-title { font-family: var(--sh-font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 0.25rem; }
.sh-game-featured-title a { color: var(--sh-dark); text-decoration: none; }
.sh-game-featured-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sh-game-featured-actions .sh-game-count { position: static; box-shadow: none; background: var(--sh-lilac); }
/* Phones: compact newest-translation card (small cover left, name + tags + small button beside it) */
@media (max-width: 640px) {
	.sh-game-featured { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: center; margin-bottom: 2rem; }
	.sh-game-featured-cover { border-radius: 10px; }
	.sh-game-featured .sh-eyebrow { font-size: 0.62rem; margin-bottom: 0.2rem; }
	.sh-game-featured-title { font-size: 1.15rem; margin: 0 0 0.15rem; line-height: 1.2; }
	.sh-game-featured .sh-chips { margin: 0.3rem 0 0.55rem; gap: 6px; }
	.sh-game-featured .sh-chip { font-size: 0.7rem; padding: 2px 9px; }
	.sh-game-featured-actions { gap: 10px; flex-wrap: nowrap; }
	.sh-game-featured-actions .sh-btn { min-height: 36px; padding: 6px 14px; font-size: 0.85rem; }
	.sh-game-featured-actions .sh-btn .sh-icon { width: 15px; height: 15px; }
	.sh-game-featured-actions .sh-game-count { font-size: 0.72rem; padding: 3px 9px; }
}

.sh-game-search { position: relative; margin: 0.25rem 0 0; }
.sh-game-search-input { width: 100%; border: 0; border-bottom: 2px solid var(--sh-deep); background: transparent; font: inherit; font-size: 1rem; padding: 8px 2px; min-height: var(--sh-tap); color: var(--sh-dark); }
.sh-game-search-input::placeholder { color: #7d7386; }
.sh-game-search-input:focus { outline: none; border-bottom-color: var(--sh-mint); }
.sh-game-search-btn { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; width: var(--sh-tap); height: var(--sh-tap); display: inline-flex; align-items: center; justify-content: center; color: var(--sh-deep); cursor: pointer; }

/* single game */
.sh-game-single { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.sh-game-single-cover { border-radius: var(--sh-radius); overflow: hidden; background: #EDE1F0; aspect-ratio: 3 / 4; }
.sh-game-single-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-game-download-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 1rem 0; }
@media (max-width: 640px) { .sh-game-single { grid-template-columns: 1fr; } .sh-game-single-cover { max-width: 240px; } }

/* ---------- polaroid ---------- */
.sh-polaroid { position: relative; display: inline-block; background: #fff; padding: 14px 14px 18px; box-shadow: 0 14px 34px rgba(43, 36, 51, 0.16); transform: rotate(var(--sh-tilt, -3deg)); max-width: 300px; width: 100%; text-decoration: none; color: var(--sh-dark); }
[dir="rtl"] .sh-polaroid { transform: rotate(calc(var(--sh-tilt, -3deg) * -1)); }
.sh-polaroid-tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-2deg); background: rgba(130, 197, 176, 0.85); border-radius: 2px; }
.sh-polaroid-media { display: block; aspect-ratio: 1; background: #E4D3E8; overflow: hidden; }
.sh-polaroid-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-polaroid-caption { display: block; margin-top: 12px; font-family: var(--sh-font-hand); font-size: 1.35rem; color: var(--sh-dark); text-align: center; line-height: 1.2; }
.sh-polaroid-wrap { display: flex; justify-content: center; padding: 14px 10px 10px; }

/* ---------- tag button (links page) ---------- */
.sh-tag-btn { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 18px; background: #fff; border-radius: 10px; box-shadow: 0 8px 22px rgba(43, 36, 51, 0.10); text-decoration: none; color: var(--sh-dark); font-weight: 700; font-size: 1.05rem; transform: rotate(var(--sh-tag-tilt, 0deg)); }
.sh-tag-btn::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--sh-tag-color, var(--sh-mint)); border-radius: 7px; pointer-events: none; }
.sh-tag-btn-lilac { --sh-tag-color: var(--sh-light-purple); }
.sh-tag-hole { width: 14px; height: 14px; border: 2.5px solid var(--sh-tag-color, var(--sh-mint)); border-radius: 5px; flex: 0 0 auto; }
.sh-tag-btn-lilac .sh-tag-hole { border-color: var(--sh-deep); }
.sh-tag-label { flex: 1; }
.sh-tag-btn .sh-arrow { color: var(--sh-deep); }
.sh-tag-btn:hover { color: var(--sh-deep); }

/* ---------- social links ---------- */
.sh-social { text-align: center; }
.sh-social-title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.sh-social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sh-social-list a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--sh-deep); box-shadow: 0 6px 16px rgba(43, 36, 51, 0.12); text-decoration: none; }
.sh-social-list a:hover { background: var(--sh-light-mint); color: var(--sh-dark); }
.sh-social-list .sh-icon { width: 22px; height: 22px; }
.sh-social.is-style-list .sh-social-list { flex-direction: column; align-items: stretch; }
.sh-social.is-style-list .sh-social-list a { width: auto; height: auto; border-radius: 12px; justify-content: flex-start; gap: 10px; padding: 12px 16px; font-weight: 600; }
.sh-social.is-style-list .screen-reader-text { position: static; width: auto; height: auto; clip: auto; margin: 0; overflow: visible; }

/* ---------- gaming console ---------- */
.sh-console { background: var(--sh-gaming); border-radius: 28px; padding: 16px 16px 20px; color: #fff; box-shadow: 0 18px 44px rgba(43, 29, 51, 0.35); font-family: var(--sh-font-body); }
.sh-console-screen { background: var(--sh-gaming-2); border-radius: 20px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.08); }
.sh-console-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sh-console-label { font-family: var(--sh-font-heading); font-weight: 800; letter-spacing: 0.14em; color: var(--sh-light-mint); font-size: 0.9rem; text-transform: uppercase; }
[dir="rtl"] .sh-console-label { letter-spacing: 0; font-size: 1rem; }
.sh-console-lights { display: flex; gap: 6px; }
.sh-console-lights span { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-mint); }
.sh-console-lights span:nth-child(2) { background: var(--sh-light-purple); }
.sh-console-lights span:nth-child(3) { background: var(--sh-purple); }
.sh-console-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 14px; }
.sh-console-games { display: flex; flex-direction: column; gap: 10px; background: var(--sh-light-mint); color: var(--sh-dark); border-radius: 16px; padding: 18px; text-decoration: none; box-shadow: 0 0 0 1px rgba(173, 224, 209, 0.5), 0 0 32px rgba(130, 197, 176, 0.45); position: relative; }
.sh-console-games:hover { box-shadow: 0 0 0 1px rgba(173, 224, 209, 0.5), 0 0 44px rgba(130, 197, 176, 0.7); color: var(--sh-dark); }
.sh-console-games-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sh-gaming); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sh-console-games-icon .sh-icon { width: 26px; height: 26px; }
.sh-console-badge { position: absolute; top: 14px; inset-inline-end: 14px; background: var(--sh-gaming); color: var(--sh-light-mint); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; }
.sh-console-games-title { font-family: var(--sh-font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin-top: auto; }
.sh-console-games-sub { font-size: 0.9rem; font-weight: 600; }
.sh-console-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.sh-console-links a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 14px; background: var(--sh-gaming); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; border: 1px solid rgba(255, 255, 255, 0.06); overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 420px) { .sh-console-links a { font-size: 0.85rem; gap: 8px; padding: 10px; } }
.sh-console-links a:hover { background: #22172a; color: var(--sh-light-mint); }
.sh-console-links a.is-wide { grid-column: 1 / -1; }
.sh-console-links .sh-icon-wrap { width: 30px; height: 30px; border-radius: 8px; background: var(--sh-gaming-2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sh-console-links .sh-icon { width: 18px; height: 18px; }
.sh-console-feet { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.sh-console-feet span { width: 30px; height: 6px; border-radius: 3px; background: var(--sh-gaming-2); }
@media (max-width: 640px) { .sh-console-body { grid-template-columns: 1fr; } .sh-console-games { flex-direction: row; flex-wrap: wrap; align-items: center; } .sh-console-games-title { margin-top: 0; width: 100%; } }

/* ---------- YouTube archive ---------- */
.sh-va { font-family: var(--sh-font-body); color: var(--sh-dark); margin-top: 0 !important; }
.sh-va [hidden] { display: none !important; }
.sh-va-inner { max-width: var(--wp--style--global--wide-size, 1140px); margin: 0 auto; padding-inline: 20px; box-sizing: content-box; }

/* hero band */
.sh-va-hero { background: var(--sh-lilac); padding-block: 3rem 3.25rem; }
.sh-va-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.sh-va-hero-text { min-width: 0; flex: 1 1 auto; }
.sh-va-kicker { font-size: 14px; font-weight: 600; color: var(--sh-deep); margin: 0 0 0.5rem; }
.sh-va-title { font-family: var(--sh-font-heading); font-size: 60px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 1rem; }
[dir="rtl"] .sh-va-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.sh-va-intro { font-size: 18px; line-height: 1.8; max-width: 560px; color: #4A4152; margin: 0 0 1.5rem; }
.sh-va-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.sh-va-stat, .sh-va-channel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; box-sizing: border-box; }
.sh-va-stat { background: #fff; box-shadow: 0 2px 10px rgba(122, 79, 143, 0.10); }
.sh-va-stat .sh-icon { color: var(--sh-deep); width: 18px; height: 18px; }
.sh-va-channel { background: var(--sh-deep); color: #fff; text-decoration: none; }
.sh-va-channel:hover { background: #6b437f; color: #fff; }
.sh-va-channel:focus-visible { outline: 3px solid var(--sh-mint); outline-offset: 2px; }
.sh-va-search.sh-sticky { flex: 0 0 320px; box-sizing: border-box; background: #E6D5EA; --sh-sticky-fold: #d0b0d7; transform: rotate(2deg); padding: 28px 26px 36px; }
[dir="rtl"] .sh-va-search.sh-sticky { transform: rotate(-2deg); }
.sh-va-search .sh-sticky-title { display: block; }
.sh-va-search-input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 2px solid var(--sh-deep); border-radius: 0; background: transparent; font: inherit; font-size: 1rem; padding: 8px 2px; min-height: var(--sh-tap); color: var(--sh-dark); }
.sh-va-search-input::placeholder { color: #7d7386; }
.sh-va-search-input:focus { outline: none; border-bottom-color: var(--sh-mint); }
.sh-va-search-result { margin: 8px 0 0 !important; font-size: 0.8rem !important; color: var(--sh-deep); font-weight: 600; }

/* sections */
.sh-va-body { padding-block: 3.5rem 1rem; }
.sh-va-section + .sh-va-section { margin-top: 4rem; }
.sh-va-heading { font-family: var(--sh-font-heading); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.4rem; }
[dir="rtl"] .sh-va-heading { letter-spacing: 0; line-height: 1.4; }
.sh-va-sub { color: var(--sh-muted); font-size: 15px; margin: 0 0 2rem; }
.sh-va-empty { text-align: center; color: var(--sh-muted); padding: 2.5rem 0; }

/* series cards: cream card with a second card peeking out behind, tape with the episode count */
.sh-series-grid { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.sh-series { position: relative; min-width: 0; scroll-margin-top: 110px; }
.sh-series::before { content: ""; position: absolute; top: -7px; inset-inline: 9px; height: 44px; border-radius: 12px; background: #E6D5EA; transition: background-color 0.15s ease; z-index: 0; }
.sh-series.is-open::before { background: var(--sh-light-mint); }
.sh-series-card { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; height: auto; text-align: start; background: #FFFDF8; border: 0; border-radius: 12px; padding: 10px 10px 12px; box-shadow: 0 8px 22px rgba(122, 79, 143, 0.10); cursor: pointer; font: inherit; color: inherit; outline: 3px solid transparent; transition: transform 0.15s ease, outline-color 0.15s ease; }
.sh-series-card:hover { transform: translateY(-2px); }
.sh-series.is-open .sh-series-card { outline-color: var(--sh-deep); }
.sh-series-card:focus-visible { outline: 3px solid var(--sh-mint); outline-offset: 2px; }
.sh-series-card .sh-tape { top: -12px; }
.sh-series-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #EDE1F0; }
.sh-series-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--sh-deep); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(43, 36, 51, 0.22); }
.sh-series-name, .sh-series-panel-title { font-family: "Bricolage Grotesque", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-weight: 700; }
.sh-series-name { display: block; font-size: 19px; line-height: 1.25; margin: 12px 4px 8px; overflow-wrap: anywhere; text-align: left; }
.sh-series-panel-title { text-align: left; }
[dir="rtl"] .sh-series-name, [dir="rtl"] .sh-series-panel-title { text-align: right; }
.sh-series-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: auto 4px 0; font-size: 13px; color: #7d7386; }
.sh-series-open { color: var(--sh-deep); font-weight: 600; white-space: nowrap; }
.sh-series-open-opened { display: none; }
.sh-series.is-open .sh-series-open-closed { display: none; }
.sh-series.is-open .sh-series-open-opened { display: inline; }
.sh-va:not(.is-enhanced) .sh-series-open { display: none; }

/* episode panel: lined notebook page */
.sh-series-panels { margin-top: 2.25rem; }
.sh-va:not(.is-enhanced) .sh-series-panel + .sh-series-panel { margin-top: 1.5rem; }
.sh-series-panel { background: #FFFDF8; border-top: 6px solid var(--sh-light-mint); border-radius: 14px; box-shadow: 0 10px 28px rgba(122, 79, 143, 0.10); padding: 22px 26px 24px; text-align: start; }
.sh-series-panel:focus { outline: none; }
.sh-series-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; padding-bottom: 16px; }
.sh-series-panel-meta { font-size: 13px; font-weight: 600; color: var(--sh-deep); margin: 0 0 4px; }
.sh-series-panel-title { font-size: 26px; line-height: 1.2; margin: 0; }
.sh-series-play { flex: 0 0 auto; }
.sh-episodes { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(122, 79, 143, 0.16); }
.sh-episode { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; min-height: 50px; padding: 8px 0; border-bottom: 1px solid rgba(122, 79, 143, 0.16); box-sizing: border-box; }
.sh-ep-num { width: 30px; height: 30px; border-radius: 50%; background: #EDE1F0; color: var(--sh-deep); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.sh-ep-title { color: var(--sh-dark); font-weight: 600; font-size: 15px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; text-align: left; }
[dir="rtl"] .sh-ep-title { text-align: right; }
.sh-ep-title:hover { color: var(--sh-deep); text-decoration: underline; text-underline-offset: 3px; }
.sh-ep-meta { display: inline-flex; gap: 14px; font-size: 13px; color: #7d7386; white-space: nowrap; }
.sh-ep-duration { direction: ltr; unicode-bidi: isolate; }

/* standalone videos */
.sh-va-tabs-wrap { margin: 1.25rem 0 2rem; }
.sh-va-tabs .sh-tab { border: 0; cursor: pointer; }
.sh-va-tabs .sh-tab:focus-visible { outline: 3px solid var(--sh-mint); outline-offset: -3px; }
.sh-video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.sh-video { min-width: 0; }
.sh-video a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.sh-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #EDE1F0; }
.sh-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.sh-video a:hover .sh-video-thumb img { transform: scale(1.03); }
.sh-video a:focus-visible { outline: 3px solid var(--sh-mint); outline-offset: 4px; border-radius: 14px; }
.sh-video-duration { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(43, 36, 51, 0.88); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 1px 7px; border-radius: 6px; direction: ltr; }
.sh-video-type { font-size: 12px; font-weight: 600; color: var(--sh-deep); margin: 10px 0 2px; }
.sh-video-title { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--sh-dark); overflow-wrap: anywhere; text-align: left; }
[dir="rtl"] .sh-video-title { text-align: right; }
.sh-video a:hover .sh-video-title { color: var(--sh-deep); }
.sh-video-date { font-size: 13px; color: #7d7386; margin-top: 6px; }
.sh-va:not(.is-enhanced) .sh-va-more-wrap { display: none; }
.sh-va-load-more { min-width: 170px; }

@media (max-width: 1000px) {
	.sh-series-grid, .sh-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sh-va-search.sh-sticky { flex-basis: 280px; }
	.sh-va-hero-inner { gap: 32px; }
}
@media (max-width: 767px) {
	.sh-va-hero { padding-block: 2rem 2.5rem; }
	.sh-va-hero-inner { flex-direction: column; align-items: stretch; gap: 30px; }
	.sh-va-title { font-size: 40px; }
	.sh-va-intro { font-size: 16px; }
	.sh-va-search.sh-sticky { flex: 0 0 auto; margin-inline: 4px; transform: rotate(1deg); }
	[dir="rtl"] .sh-va-search.sh-sticky { transform: rotate(-1deg); }
	.sh-va-body { padding-top: 2.5rem; }
	.sh-va-section + .sh-va-section { margin-top: 3rem; }
	.sh-va-heading { font-size: 28px; }
	/* the open panel sits right under its card, full width */
	.sh-series > .sh-series-panel { margin-top: 14px; padding: 18px 16px 18px; }
	.sh-series-panel-head { align-items: stretch; flex-direction: column; }
	.sh-series-play { width: 100%; }
}
@media (max-width: 600px) {
	.sh-series-grid, .sh-video-grid { grid-template-columns: 1fr; }
	.sh-series-grid { gap: 32px; }
	.sh-episode { grid-template-columns: 30px minmax(0, 1fr); }
	.sh-ep-meta { grid-column: 2; }
	.sh-va-stat, .sh-va-channel { padding: 0 15px; font-size: 14px; }
}

/* ---------- ad space ---------- */
.sh-ad { border-top: 1.5px dashed var(--sh-light-purple); border-bottom: 1.5px dashed var(--sh-light-purple); padding: 18px 0; margin: 2rem 0; text-align: center; }
.sh-ad-label { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a7f92; margin-bottom: 8px; }
.sh-ad:empty { display: none; }

/* ---------- old-domain banner ---------- */
.sh-domain-banner { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 999; display: flex; align-items: center; gap: 14px; max-width: 520px; margin-inline-start: auto; background: var(--sh-dark); color: #fff; padding: 12px 12px 12px 18px; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); font-family: var(--sh-font-body); font-size: 0.95rem; }
.sh-domain-banner-close { background: var(--sh-mint); color: var(--sh-dark); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; flex: 0 0 auto; margin-inline-start: auto; }

/* ---------- editor helpers ---------- */
.sh-editor-note { font-size: 12px; color: #757575; margin: 4px 0 0; }
.editor-styles-wrapper .sh-sticky, .editor-styles-wrapper .sh-tag-btn, .editor-styles-wrapper .sh-polaroid { transform: none; }
