/* ProIsraelMemes.com theme. Logical properties throughout so RTL needs no mirror sheet. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-hebrew-wght-normal.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/vazirmatn-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/vazirmatn-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --blue: #1747D1;
  --blue-deep: #0F35A3;
  --ink: #0E1B3D;
  --muted: #47536F;
  --line: #D8DEEC;
  --line-strong: #A9B4CF;
  --surface: #F6F8FD;
  --tint: #E8EEFF;
  --sun: #FFC53D;
  --sun-soft: #FFE6A3;
  --white: #FFFFFF;
  --ok: #0F6B3B;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}
:lang(ar), :lang(fa) { --font: "Vazirmatn", "Rubik", system-ui, Tahoma, Arial, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
:lang(ar) body, body:lang(ar), body:lang(fa) { line-height: 1.85; }
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
:lang(ar) :is(h1, h2, h3), :lang(fa) :is(h1, h2, h3), :lang(he) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
ul[role="list"], ol.plain { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main { display: block; min-height: 60vh; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
[dir="rtl"] .i.arrow { transform: scaleX(-1); }
.i.arrow.back { transform: scaleX(-1); }
[dir="rtl"] .i.arrow.back { transform: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 7px var(--sun-soft); border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--white); }
.preview-banner { background: var(--sun); color: var(--ink); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 6px var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; flex: none; padding-block: 8px; }
.logo img { display: block; height: 32px; width: auto; }

.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0 0 10px; list-style: none; overflow-x: auto; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface); color: var(--blue-deep); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--blue-deep); font-weight: 600; }
.site-nav .i { color: var(--blue); }

.menu-toggle {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--blue); }
.menu-toggle .i-close { display: none; }
.site-header[data-open] .menu-toggle .i-close { display: block; }
.site-header[data-open] .menu-toggle .i-open { display: none; }

/* With scripting, the mobile nav becomes a toggled panel. Without it, it stays a visible row. */
@media (scripting: enabled) and (max-width: 899px) {
  .site-nav { display: none; }
  .site-header[data-open] .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; padding: 4px 0 14px; overflow: visible; }
  .site-nav a { display: flex; padding: 12px 14px; font-size: 1.0625rem; }
}

.lang { position: relative; flex: none; }
.lang summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; list-style: none; font-weight: 500; font-size: 0.9375rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--blue); }
.lang .i { color: var(--blue); }
.lang:not([open]) ul { display: none; }
.lang .i-chev { width: 1em; height: 1em; color: var(--muted); }
.lang[open] .i-chev { transform: rotate(180deg); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px;
  margin: 0; padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(14, 27, 61, 0.14);
}
.lang li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; text-align: start; }
.lang li a:hover { background: var(--surface); }
.lang li a[aria-current="true"] { background: var(--tint); font-weight: 600; color: var(--blue-deep); }
.lang li a[dir="rtl"] { text-align: right; }
[dir="rtl"] .lang li a[dir="ltr"] { text-align: left; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 18px; font-size: 0.875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

@media (max-width: 699px) {
  .page-meme .crumbs li:last-child { display: none; }
  .page-meme .crumbs li:nth-last-child(2)::after { display: none; }
}

/* ---------- Buttons, chips, forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue-deep); border-color: var(--blue); }
.btn-outline:hover { background: var(--tint); color: var(--blue-deep); }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tint);
  color: var(--blue-deep); font-size: 0.8125rem; font-weight: 600; text-decoration: none; line-height: 1.6;
  border: 1px solid transparent;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip-lg { padding: 7px 16px; font-size: 0.9375rem; background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.chip-lg:hover { background: var(--tint); }

.search-form { display: flex; gap: 8px; width: 100%; }
.search-form input {
  flex: 1; min-width: 0; min-height: 50px; padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--white);
}
.search-form input:focus-visible { border-color: var(--blue); }
.search-form button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border: 0; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--blue-deep); }

/* ---------- Home ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: end; margin-top: 18px; padding-block: 22px;
}
.intro h1 { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 800; color: var(--ink); }
.intro h1::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--sun); }
.intro p { margin: 12px 0 0; color: var(--muted); font-size: 1.125rem; max-width: 60ch; }

.chips-row ul { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 10px; scroll-snap-type: x proximity; }
.chips-row li { flex: none; scroll-snap-align: start; }

.block { margin-top: 36px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 700;
  background: linear-gradient(transparent 62%, var(--sun-soft) 62%); padding-inline: 2px;
}
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.block-foot { margin: 24px 0 0; text-align: center; }

/* ---------- Gallery grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.card-link { display: block; width: 100%; color: var(--ink); text-decoration: none; }
.thumb {
  display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.thumb img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.card-link:hover .thumb { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
[dir="rtl"] .card-link:hover .thumb { transform: translate(3px, -3px); box-shadow: -4px 4px 0 var(--ink); }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 10px; font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
}
.card-link:hover .card-title { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile a {
  display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile a:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
[dir="rtl"] .tile a:hover { transform: translate(3px, -3px); box-shadow: -4px 4px 0 var(--ink); }
.tile-thumb { display: block; background: var(--surface); border-bottom: 1px solid var(--line); }
.tile-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.tile-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.tile-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.tile-count { color: var(--muted); font-size: 0.875rem; }

/* ---------- Archive pages ---------- */
.page-head { padding-block: 18px 26px; }
.page-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; }
.page-head h1::after { content: ""; display: block; width: 48px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--sun); }
.lede { margin: 14px 0 0; color: var(--muted); font-size: 1.125rem; max-width: 62ch; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; }
.pager ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager a, .pager span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px;
  padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pager a:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--tint); }
.pager span[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pager-status { flex-basis: 100%; text-align: center; margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; }

/* ---------- Meme page ---------- */
.meme { display: grid; gap: 18px; padding-top: 14px; }
.meme-title { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); font-weight: 800; }
.meme-figure { margin: 0; }
.meme-image { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.meme-image img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions .btn { flex: 1 1 auto; }
.copy-status { flex-basis: 100%; margin: 0; min-height: 1.5em; color: var(--ok); font-size: 0.9375rem; font-weight: 600; }
.copy-status.is-error { color: #A11A1A; }
.meme-body { margin-top: 6px; font-size: 1.0625rem; }
.meme-body p:last-child { margin-bottom: 0; }
.meme-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 0.9375rem; }
.transcript { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.transcript h2 { font-size: 0.9375rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.transcript blockquote { margin: 0; padding-inline-start: 14px; border-inline-start: 4px solid var(--blue); font-size: 1.0625rem; font-weight: 500; }
.transcript blockquote p { margin: 0 0 0.35em; }
.transcript blockquote p:last-child { margin-bottom: 0; }
.related { margin-top: 56px; }

/* ---------- Prose (static pages) ---------- */
.prose { max-width: 760px; padding-block: 18px 12px; }
.prose h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; margin-bottom: 22px; }
.prose h1::after { content: ""; display: block; width: 48px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--sun); }
.prose h2 { font-size: 1.375rem; font-weight: 700; margin: 1.6em 0 0.6em; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Search and empty states ---------- */
.search-page-form { max-width: 680px; margin-bottom: 26px; }
.search-status { color: var(--muted); margin-bottom: 18px; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--tint); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 28px 12px; }
.empty img { width: min(320px, 80vw); height: auto; }
.empty h1, .empty-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; margin: 12px 0 10px; }
.empty-title { font-size: 1.25rem; }
.empty-home { padding-block: 8px 24px; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- In the News card ---------- */
.news-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 22px 22px 16px; }
.news-box .block-head { margin-bottom: 8px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.news-list a:hover .news-title { color: var(--blue-deep); text-decoration: underline; }
.news-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.news-date { color: var(--muted); font-size: 0.875rem; }
.news-source { margin: 10px 0 0; font-size: 0.9375rem; font-weight: 600; }
@media (min-width: 900px) {
  .news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .news-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; padding-block: 36px 24px; }
.footer-brand img { height: 32px; width: auto; display: block; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); max-width: 40ch; font-size: 0.9375rem; }
.site-footer h2 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 10px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.site-footer nav a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line); padding-block: 16px 22px; }
.footer-base p { margin: 0; color: var(--muted); font-size: 0.875rem; }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .thumb img { aspect-ratio: 1 / 1; max-height: none; }
}
@media (min-width: 700px) {
  :root { --gutter: 24px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .intro { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .actions .btn { flex: 0 0 auto; }
}
@media (min-width: 800px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
}
@media (min-width: 900px) {
  .logo img { height: 40px; }
  .header-row { flex-wrap: nowrap; gap: 20px; }
  .site-nav { order: 0; flex: 1; flex-basis: auto; display: block; }
  .site-nav ul { padding: 0; overflow: visible; }
  .menu-toggle { display: none !important; }
  .meme {
    grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
    grid-template-areas: "figure title" "figure side";
    grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 18px; align-items: start;
  }
  .meme-title { grid-area: title; padding-top: 4px; }
  .meme-figure { grid-area: figure; }
  .meme-side { grid-area: side; position: sticky; top: calc(var(--header-h) + 18px); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-link:hover .thumb, .tile a:hover { transform: none !important; }
}
@media print {
  .site-header, .site-footer, .actions, .related, .crumbs, .preview-banner { display: none !important; }
}
