/* =====================================================================
   rubigordon.com - עיצוב 2026
   ===================================================================== */

:root {
	/* צבעים וגופנים כמו באתר המקורי */
	--bg: #FFFFFF;
	--ink: #000000;
	--ink-2: #222222;
	--muted: #666666;
	--line: #CCCCCC;
	--line-soft: #E6E6E6;
	--accent: #336699;   /* צבע הקישורים באתר המקורי */
	--rule: #000099;     /* הקו מעל כותרות h2 באתר המקורי */
	--bar-bg: rgba(255, 255, 255, .96);
	--serif: Assistant, Arial, sans-serif;   /* הכותרות - Assistant כמו באתר המקורי */
	--sans: Assistant, Arial, sans-serif;
	--hand: comix_no2_clm, var(--sans);
	--maxw: 1280px;
	--pad: 40px;
	--hdr-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 72px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.8;
	direction: rtl;
	text-align: right;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; right: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { right: 12px; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.display { font-family: var(--serif); font-weight: 200; line-height: 1.2; margin: 0; color: var(--ink); }
.lede { font-size: 20px; font-weight: 300; color: var(--ink-2); line-height: 1.55; margin: 14px 0 0; }
.kicker { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.link-u { border-bottom: 1px solid currentColor; padding-bottom: 2px; font-size: 15px; }
.notice { color: var(--muted); }

/* ---------- פס עליון קבוע ---------- */
.bar {
	position: sticky; top: 0; z-index: 50;
	background: var(--bar-bg);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 2px solid #333333;
}
.hdr {
	max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
	height: var(--hdr-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: flex-end; align-self: stretch; flex: none; }
.brand-logo { display: block; height: calc(var(--hdr-h) - 4px); width: auto; }
.nav { display: flex; gap: 22px; font-size: 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { padding: 2px 0; color: #000; border-bottom: 2px solid transparent; transition: border-color .3s; }
.nav a:hover { color: #000; border-bottom-color: #000; }
.nav a.is-active { font-weight: 700; border-bottom-color: #CCCCCC; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0; align-items: center; justify-content: center; }

/* ---------- פתיחה ---------- */
.hero { padding-top: 72px; padding-bottom: 40px; }
.hero .display { font-size: 64px; max-width: 900px; }
.hero-tight { padding-top: 56px; padding-bottom: 32px; }
.hero-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.greet { margin: 0 0 12px; font-size: 16px; color: var(--muted); }

/* ---------- סינון (נשאר גלוי בגלילה) ---------- */
.fbar {
	position: sticky; top: var(--hdr-h); z-index: 40;
	background: var(--bar-bg);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	margin-bottom: 24px;
}
.chips { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: none; display: inline-flex; align-items: center;
	min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--line); font-size: 14px; color: var(--ink); background: transparent;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- רשת העבודות ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 20px; padding-bottom: 96px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 2px; background: #FFFFFF; border: 1px solid var(--line-soft); }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-media { position: absolute; inset: 0; transition: transform .6s ease; }
.tile:hover .tile-media { transform: scale(1.03); }
/* ברירת מחדל: כל התמונה גלויה בתוך המשבצת */
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; opacity: 0; transition: opacity 1.4s ease; }
.layer.is-on { opacity: 1; }
.fit-cover .layer { object-fit: cover; padding: 0; }
.noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 120px; color: rgba(22,22,22,.15); }
.dots { position: absolute; top: 14px; right: 16px; display: flex; gap: 6px; z-index: 2; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .45; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: opacity .4s; }
.dots i.is-on { opacity: 1; }
.cap {
	position: absolute; inset: auto 0 0 0; z-index: 2;
	padding: 22px 22px 18px;
	background: linear-gradient(to top, rgba(16,16,16,.75), rgba(16,16,16,0));
	color: #fff; display: flex; flex-direction: column; gap: 2px;
	opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
.cap-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.3; }
.cap-tags { font-size: 13px; opacity: .85; }

/* ---------- רצועת איורים וקומיקס ---------- */
.band { background: #F2F2F2; color: var(--ink); border-top: 1px solid var(--line); }
.band .wrap { padding-top: 80px; padding-bottom: 80px; }
.band a { color: var(--accent); }
.band a:hover { color: #000; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.band-title { margin: 0; font-family: var(--serif); font-weight: 200; font-size: 42px; }
.band-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.band-links a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.strip-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: #fff; border: 1px solid var(--line-soft); }
.strip-item img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .5s; }
.strip-item:hover img { transform: scale(1.04); }

/* ---------- עמוד פרויקט ---------- */
.crumbs { padding-top: 28px; padding-bottom: 20px; font-size: 15px; }
.hero-media { position: relative; height: min(66vh, 640px); overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
.hero-frame { position: absolute; inset: 0; }
.hero-media .layer { object-fit: contain; }
.proj-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 28px; }
.proj-title { font-size: 46px; }
.meta { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 40px; flex-wrap: wrap; font-size: 14px; }
.meta div { display: flex; flex-direction: column; gap: 2px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.meta a { border-bottom: 1px solid var(--line); }

/* ---------- "הסיפור המלא" ---------- */
.story { margin: 8px 0 40px; }
.story > summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center;
	min-height: 44px; font-size: 15px; border-bottom: 1px solid currentColor; user-select: none;
}
.story > summary::-webkit-details-marker { display: none; }
.story .when-open { display: none; }
.story[open] .when-open { display: inline; }
.story[open] .when-closed { display: none; }
.story > .content { padding-top: 28px; }
.story-small > summary { font-size: 14px; min-height: 36px; color: var(--muted); }

/* ---------- ניווט קודם / הבא ---------- */
.pager { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 72px; border-top: 1px solid var(--line); margin-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 4px; }
.pager span { font-size: 13px; color: var(--muted); }
.pager strong { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.pager-next { text-align: left; }

/* ---------- תוכן קיים מה-XML (המחלקות של האתר הישן בעיצוב חדש) ---------- */
.content { font-size: 18px; line-height: 1.85; color: var(--ink-2); }
.content::after { content: ""; display: table; clear: both; }
.content h2 {
	font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.35; color: #000;
	margin: 52px 0 16px; padding-top: 14px; border-top: 1px solid var(--rule); display: block; clear: both;
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 19px; font-weight: 700; color: #444444; margin: 32px 0 12px; }
.content a { color: var(--accent); border-bottom: 1px solid transparent; }
.content a:hover { color: #000; border-bottom: 2px solid #000; }
.content a.cleanhover, .content a.cleanhover:hover { border: 0; }
.content br { margin: 0; }
.content img.itemdisplay { display: block; max-width: 100%; height: auto; margin: 24px 0 36px; }
.content img.itemdisplay_border { border: 1px solid var(--line); }
.content .itemimage { float: left; width: 40%; max-width: 400px; margin: 6px 28px 24px 0; }
.content .itemimageright { float: right; margin: 6px 0 24px 28px; }
.content .itemimagefull { float: none; width: 100%; max-width: none; margin: 24px 0; }
.content .itemimage img { width: 100%; display: block; }
.content .itemimagecaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.content .imageWrapper img { max-width: 100%; border: 1px solid var(--line); margin-bottom: 20px; }
.content .itemnote {
	font-family: var(--hand); font-size: 15px; line-height: 1.5; color: var(--ink-2);
	background: #fff; border-right: 3px solid var(--accent); padding: 12px 18px;
	max-width: 520px; margin: 20px 0; clear: both;
}
.content .itemnote_arrow_down::after { content: " ↓"; }
.content .itemnote_arrow_up::after { content: " ↑"; }
.content .blog_intro { font-size: 20px; font-weight: 600; color: #505050; line-height: 1.6; margin: 0 0 40px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 2px solid var(--line); }
.content .inQuote {
	font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.7; color: #333;
	border-right: 3px solid var(--line); padding: 4px 24px 4px 0; margin: 24px 0;
}
.content .motto { font-size: 14px; font-style: italic; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 40px; }
.content .emph, .content span.emph { font-weight: 600; }
.content .videoWrapper { position: relative; padding-bottom: 56.25%; height: 0; margin: 24px 0 36px; clear: both; background: #000; border-radius: 4px; overflow: hidden; }
.content .videoWrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content iframe { max-width: 100%; }
.content ul, .content ol { padding-right: 1.3em; margin: 16px 0 24px; }
.content li { margin-bottom: 10px; }
.content ol.tips > li { font-size: 26px; font-weight: 700; color: #444; }
.content ol.tips li ul li, .content ol.tips li ol li { font-family: var(--sans); font-size: 18px; color: var(--ink-2); }
.content .inlineTable { overflow-x: auto; }
.content .inlineTable table { width: 100%; border-collapse: collapse; }
.content .inlineTable td, .content .inlineTable th { text-align: right; vertical-align: top; padding: 14px; background: #fff; border: 1px solid var(--line-soft); font-size: 15px; }
.content .inlineTable th.wrong { color: #b3261e; }
.content .inlineTable th.right { color: #1e6b2e; }
.content .icon { width: 20px; margin-left: 10px; vertical-align: middle; }

/* ---------- מאמרים ועמודי מידע ---------- */
.article { padding-top: 48px; padding-bottom: 72px; }
.article-title { font-size: 48px; margin-bottom: 36px; }

/* ---------- ארגז כלים ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; padding-bottom: 96px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: #fff; border: 1px solid var(--line-soft); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.card:hover .card-title { color: var(--accent); }
.card-text { font-size: 15px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- איורים (עמוד כהה) ---------- */
.story-intro { margin-bottom: 24px; }
.story-intro .content { max-width: 760px; }
.series { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.series-head { max-width: 760px; margin-bottom: 24px; }
.series-title { margin: 0; font-family: almoni-tzar, Assistant, Arial, sans-serif; font-weight: 700; font-size: 32px; line-height: 1.3; color: #333377; }
.series-sub { margin: 4px 0 0; color: #666699; font-size: 17px; font-weight: 700; }
.series .story { margin: 10px 0 0; }
.series .story > .content { padding-top: 14px; font-size: 16px; }
.masonry { column-count: 3; column-gap: 18px; }
.ill { display: block; break-inside: avoid; margin-bottom: 18px; overflow: hidden; background: #fff; border: 1px solid #888888; cursor: zoom-in; }
.ill img { display: block; width: 100%; height: auto; transition: opacity .3s; }
.ill:hover img { opacity: .9; }

/* ---------- תצוגה מוגדלת (lightbox) ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,12,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.lb .lb-close { top: 18px; left: 18px; }
.lb .lb-prev { right: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- קומיקס ---------- */
.covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 28px; padding-bottom: 96px; }
.cover { display: flex; flex-direction: column; gap: 12px; }
.cover-page { display: block; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line-soft); padding: 8px; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.cover-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cover:hover .cover-page, .cover:focus-visible .cover-page { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 30px rgba(22,22,22,.16); }
.cover-cap { display: flex; gap: 10px; align-items: baseline; }
.cover-num { font-size: 12px; color: var(--muted); }
.cover-title { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.3; }

.reader { padding-top: 8px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.reader-title { font-size: 44px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #EFEFEF; }
.seg-btn { font-family: var(--sans); font-size: 14px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.seg-btn.is-on { background: var(--ink); color: #fff; }
.reader-page { width: 100%; max-width: 720px; background: #fff; border: 1px solid var(--line-soft); padding: 14px; box-shadow: 0 20px 40px rgba(22,22,22,.07); }
.reader-page img { display: block; width: 100%; height: auto; }
.reader-frames { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.reader-frames[hidden] { display: none; }
.frame-stage { position: relative; width: 100%; display: grid; touch-action: pan-y; }
.frame { grid-area: 1 / 1; width: 100%; height: auto; max-height: 72vh; object-fit: contain; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.frame.is-on { opacity: 1; pointer-events: auto; }
.frame-nav { display: flex; align-items: center; gap: 20px; }
.frame-count { font-size: 14px; color: var(--muted); min-width: 60px; text-align: center; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.round:hover { border-color: var(--ink); }
.reader-desc { max-width: 560px; color: var(--ink-2); font-size: 16px; }

/* ---------- ניוזלטר ופוטר ---------- */
.nl-strip { border-top: 1px solid var(--line); }
.nl-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.nl-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.nl-text { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.btn { font-family: var(--sans); font-size: 15px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ftr { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ftr-inner { display: flex; flex-direction: column; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.ftr a { color: var(--muted); }
.ftr a:hover { color: var(--accent); }
.ftr-contact { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.ftr-lead { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.ftr-legal { display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.6; }
.ftr-legal p { margin: 0; max-width: 760px; }
.ftr-legal img.rg_share_button { vertical-align: top; border: 0; box-shadow: none; margin-right: 5px; }

/* חלון הניוזלטר (modal.js) */
.modal { direction: rtl; text-align: right; font-family: var(--sans); color: #161616; }
.modal-content h1 { font-family: var(--serif); font-weight: 400; }
.nl-modal-head { text-align: center; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.4; border-top: 1px solid #161616; border-bottom: 1px solid #161616; padding: 10px; }
.nl-small { font-size: 13px; font-weight: 400; line-height: 1.5; border-top: 1px solid #CFCAC0; padding-top: 8px; }
.nl-note { padding-top: 10px; border-top: 1px solid #161616; font-family: var(--hand); font-size: 14px; line-height: 1.4; }
.modal .button { background: #161616; color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-family: var(--sans); font-size: 14px; cursor: pointer; }
.modal .button:hover { background: #336699; }
.modal input[type=email], .modal input[type=text] { font-family: var(--sans); font-size: 15px; padding: 8px 10px; border: 1px solid #CFCAC0; border-radius: 6px; }
.asterisk { font-family: var(--hand); font-size: 12px; color: #777; }

/* ---------- מסכים בינוניים ---------- */
@media (max-width: 1100px) {
	.nav { gap: 16px; font-size: 17px; }
	.covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.masonry { column-count: 2; }
	.covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.proj-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }

	/* תפריט מקופל */
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none; position: absolute; top: var(--hdr-h); right: 0; left: 0;
		flex-direction: column; gap: 0; padding: 8px var(--pad) 20px;
		background: var(--bg); border-bottom: 1px solid var(--line);
	}
	.nav.is-open { display: flex; }
	.nav a { font-family: var(--serif); font-size: 24px; padding: 8px 0; border: 0; }
	.nav a.is-active { color: var(--accent); }
}

/* ---------- טלפון ---------- */
@media (max-width: 640px) {
	:root { --pad: 20px; --hdr-h: 64px; }
	body { font-size: 16px; }
	.hero { padding-top: 32px; padding-bottom: 20px; }
	.hero .display { font-size: 38px; }
	.fbar { margin-bottom: 14px; }
	.chips { padding-top: 10px; padding-bottom: 10px; }
	.grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 28px; }
	.tile, .tile-wide, .tile-tall, .tile-big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; overflow: visible; background: transparent; border: 0; border-radius: 0; margin-bottom: 44px; }
	.tile-media { overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
	.tile:hover .tile-media { transform: none; }
	/* בטלפון אין ריחוף: השם מופיע מתחת לתמונה */
	.cap { position: absolute; top: 100%; bottom: auto; padding: 10px 0 0; background: none; color: var(--ink); opacity: 1; transform: none; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
	.cap-title { font-size: 20px; }
	.cap-tags { color: var(--muted); white-space: nowrap; opacity: 1; }
	.band .wrap { padding-top: 48px; padding-bottom: 48px; }
	.band-title { font-size: 32px; }
	.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.strip-item:nth-child(n+5) { display: none; }
	.hero-media { height: 56vh; }
	.proj-title, .article-title { font-size: 36px; }
	.lede { font-size: 18px; }
	.content { font-size: 17px; }
	.content h2 { font-size: 25px; }
	.content .itemimage, .content .itemimageright { float: none; width: 100%; max-width: none; margin: 20px 0; }
	.cards { grid-template-columns: minmax(0, 1fr); }
	.masonry { column-count: 2; column-gap: 10px; }
	.ill { margin-bottom: 10px; }
	.series-title { font-size: 28px; }
	.covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.reader-title { font-size: 32px; }
	.reader-page { padding: 6px; }
	.pager strong { font-size: 20px; }
	.lb .lb-prev, .lb .lb-next { top: auto; bottom: 14px; transform: none; }
}

@media (hover: none) {
	.cap { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.layer, .frame, .tile-media, .cover-page, .strip-item img, .card-img img { transition: none !important; }
}

@media print {
	.bar, .fbar, .nl-strip, .ftr, .pager, .band, #myModal { display: none !important; }
	.story > .content { display: block !important; }
}

/* =====================================================================
   פתיחת העמוד הראשי: משפט (קבוע / מתחלף) + תמונות מתחלפות
   ===================================================================== */
.hero-home.has-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-lines { display: grid; }
.hero-lines .line { grid-area: 1 / 1; opacity: 0; transition: opacity 1.2s ease; }
.hero-lines .line.is-on { opacity: 1; }
.hero-art { position: relative; }
/* מסגרת בגודל קבוע: הגובה נקבע ב-home.xml (<images height="380">), ברירת מחדל 380px */
.hero-art-frame { position: relative; width: 100%; height: var(--hero-h, 380px) !important; background: #fff; border: 1px solid var(--line-soft); overflow: hidden; }
.hero-art-frame .layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; pointer-events: none; }
.hero-art-frame .layer.is-on { pointer-events: auto; }
.hero-art-frame .layer img { width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 14px; display: block; }
.hero-art-frame.is-cover .layer img { object-fit: cover; padding: 0; }
.hero-art .dots { top: auto; bottom: 12px; right: 14px; }
.hero-art .dots i { background: #000; box-shadow: none; }

/* =====================================================================
   קומיקס: סדרות
   ===================================================================== */
.series-toc { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 28px; }
.series-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.series-toc a:hover { border-color: var(--ink); color: var(--ink); }
.comic-group { padding-top: 36px; border-top: 1px solid var(--rule); }
.comic-group + .comic-group { margin-top: 8px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.group-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.3; }
.group-count { font-size: 14px; color: var(--muted); }
.group-desc { max-width: 720px; color: var(--ink-2); margin: 6px 0 0; }
.comic-group .covers { padding-top: 28px; padding-bottom: 64px; }
.crumb-sep { color: var(--line); margin: 0 10px; }

.series-strip { padding-top: 8px; padding-bottom: 72px; }
.strip-head { margin: 0 0 18px; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.sstrip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.sstrip-item { flex: none; width: 150px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.sstrip-page { display: block; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line-soft); padding: 5px; overflow: hidden; }
.sstrip-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sstrip-title { font-size: 14px; line-height: 1.35; }
.sstrip-item.is-current .sstrip-page { border: 2px solid var(--accent); }
.sstrip-item.is-current .sstrip-title { font-weight: 700; color: var(--accent); }

@media (max-width: 960px) {
	.hero-home.has-art { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
	.hero-art-frame { height: calc(var(--hero-h, 380px) * .7) !important; }
	.group-title { font-size: 25px; }
	.sstrip-item { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-lines .line { transition: none !important; }
}

.back-to-list { padding-bottom: 72px; text-align: center; }
.page-comic .pager, .page-project .pager { padding-bottom: 32px; }

/* מילות פתיחה לקטגוריה */
.cat-intro { padding-bottom: 28px; }
.cat-intro-text { max-width: 760px; font-size: 20px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.cat-intro-text p { margin: 0 0 12px; }
.cat-intro-text a { color: var(--accent); }
@media (max-width: 640px) { .cat-intro-text { font-size: 18px; } .cat-intro { padding-bottom: 20px; } }

/* כותרת קטגוריה (במקום הפתיחה) */
.hero-cat { padding-top: 40px; padding-bottom: 20px; }
.hero-cat .display { font-size: 52px; }
.hero-cat .kicker a { color: var(--muted); }
.hero-cat .kicker a:hover { color: var(--accent); }
@media (max-width: 640px) { .hero-cat { padding-top: 24px; padding-bottom: 12px; } .hero-cat .display { font-size: 36px; } }
