/* one corner radius for every photo on the site (user, 2026-09-28: the banner's corners differed from the cards').
   Small thumbnails (plant gallery strip, upload previews) keep 12px / 10px. */
:root { --sc-r-photo: 16px; }
/* Succalent Catalog — the catalog, plant pages and cards; colours from the theme (colors.css).
   Colours and fonts come from the theme's presets, with fallbacks for other themes. */
.sc-catalog, .sc-plant {
	--sc-gray: var(--sc-c-panel);
	--sc-accent: var(--sc-c-btn);
	--sc-accent-soft: var(--sc-c-soft);
	--sc-text: var(--sc-c-text);
	--sc-shadow: 0 20px 40px 0 rgba(193, 199, 212, .25);
	--sc-shadow-hover: 0 24px 48px 0 rgba(150, 160, 185, .35);
	--sc-line: color-mix(in srgb, currentColor 14%, transparent);
}
.sc-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- scroll-in animation (only after catalog.js has run: html.sc-anim) ---------- */
/* soft and short (2026-09-27, user: scrolling "feels like jumps"): small distance, ease-out, no long slide */
/* 2026-09-29 (user: "really fast", a bit more noticeable but not by much): 18px and ~.8s instead of 12px / .6s */
.sc-anim .sc-reveal { opacity: 0; transition: opacity .7s ease-out, transform .85s cubic-bezier(.2, .8, .2, 1); }
.sc-anim .sc-reveal.sc-from-start { transform: translateX(-18px); }
.sc-anim .sc-reveal.sc-from-mid   { transform: translateY(18px); }
.sc-anim .sc-reveal.sc-from-end   { transform: translateX(18px); }
.sc-anim .sc-reveal.animated { opacity: 1; transform: none; }
/* "reduce motion": fade only, no sliding */
.sc-reduce .sc-reveal.sc-from-start, .sc-reduce .sc-reveal.sc-from-mid, .sc-reduce .sc-reveal.sc-from-end { transform: none; }

/* ---------- catalog: search, filter buttons, chosen filters, count + sort (approved 2026-09-29) ---------- */
.sc-cat-tools { margin: 0 0 8px; }
.sc-cat-search { position: relative; max-width: 640px; margin: 0 0 18px; }
.sc-cat-search > .sc-suggest-icon { inset-inline-start: 20px; width: 20px; height: 20px; } /* the shared icon (plant-suggest.css), a bit bigger in the round field */
.sc-catalog .sc-search { width: 100%; height: 56px; padding: 0 54px 0 22px; padding-inline-start: 54px; border: 1px solid var(--sc-c-line); border-radius: 999px; background: var(--sc-c-card); color: var(--sc-c-text); font: inherit; font-size: 1.05rem; box-shadow: 0 8px 26px var(--sc-c-shadow); }
.sc-catalog .sc-search:focus { outline: none; border-color: var(--sc-c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc-c-accent) 18%, transparent); }
.sc-filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
/* no jumping while the catalog builds itself (catalog.js, ~1-2 s on a phone): until then the filter row and the grid
   keep their space, so the count, the "חסר צמח?" box and the footer don't jump down when the cards arrive
   (PageSpeed 2026-09-30: layout shift 0.30 phone / 1.0 computer, Google wants < 0.1) */
.sc-filterbar:empty { min-height: 42px; }
.sc-catalog > .sc-grid:empty { min-height: 110vh; }
.sc-drop { position: relative; }
.sc-drop-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--sc-c-line); border-radius: 999px; background: var(--sc-c-card); color: var(--sc-c-ink); font: 500 .95rem var(--sc-font-body, inherit); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.sc-drop-btn:hover { border-color: color-mix(in srgb, var(--sc-c-ink) 35%, transparent); }
.sc-drop-btn .sc-ico { color: var(--sc-c-primary); }
.sc-drop.is-on > .sc-drop-btn { border-color: var(--sc-c-ink); }
.sc-drop-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sc-c-ink); color: var(--sc-c-bg); font-size: .75rem; }
.sc-drop-n[hidden] { display: none; }
.sc-drop-arrow { transition: transform .2s ease; }
.sc-drop.open .sc-drop-arrow { transform: rotate(180deg); }
.sc-drop-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: none; min-width: 230px; padding: 8px; border-radius: 14px; background: var(--sc-c-card); box-shadow: 0 18px 44px var(--sc-c-shadow); }
.sc-drop.open .sc-drop-panel { display: grid; }
.sc-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 400; cursor: pointer; }
.sc-opt:hover { background: var(--sc-c-panel); }
.sc-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--sc-c-btn); }
.sc-sheet-head { display: none; }
/* the favourites switch: a button like the others, with a small red heart */
label.sc-pill-fav { position: relative; }
label.sc-pill-fav input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.sc-pill-fav span { display: inline-flex; align-items: center; gap: 6px; }
label.sc-pill-fav:has(input:checked) { background: var(--sc-c-btn); border-color: var(--sc-c-btn); color: var(--sc-c-btntext); }
label.sc-pill-fav:has(input:focus-visible) { outline: 2px solid var(--sc-c-accent); outline-offset: 2px; }
/* the chosen filters */
.sc-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.sc-active[hidden] { display: none; }
.sc-chosen { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--sc-c-soft); color: var(--sc-c-ink); font-size: .9rem; }
.sc-chosen button { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--sc-c-card) 60%, transparent); color: var(--sc-c-ink); cursor: pointer; }
.sc-clear { border: 0; background: none; padding: 2px 4px; color: var(--sc-c-muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.sc-clear:hover { color: var(--sc-c-primary); }
/* "נמצאו X צמחים" (only while filtering) + sort */
.sc-count-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid var(--sc-c-line); color: var(--sc-c-muted); font-size: .95rem; }
.sc-found b { color: var(--sc-c-ink); }
.sc-sort { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; font-weight: 400; }
.sc-sort select { width: auto; min-height: 42px; height: 42px; padding-block: 0; padding-inline: 16px 38px; border-radius: 999px; background-position: left 14px center; color: var(--sc-c-ink); font: 500 .95rem var(--sc-font-body, inherit); cursor: pointer; } /* the filter buttons' look (.sc-drop-btn) */
.sc-sort select:hover { border-color: color-mix(in srgb, var(--sc-c-ink) 35%, transparent); }
/* the sort list (catalog.js): the filter buttons' button + list; it opens toward the page's middle */
.sc-sort-drop .sc-drop-panel { right: auto; left: 0; min-width: 170px; }
.sc-sort-opt { width: 100%; border: 0; background: none; color: var(--sc-c-text); font: inherit; text-align: start; justify-content: space-between; }
.sc-sort-check { visibility: hidden; color: var(--sc-c-primary); }
.sc-sort-opt[aria-checked="true"] { color: var(--sc-c-ink); font-weight: 600; }
.sc-sort-opt[aria-checked="true"] .sc-sort-check { visibility: visible; }
/* phones: the list opens as a sheet from the bottom (✕ closes it) */
@media (max-width: 700px) {
	.sc-drop-panel { position: fixed; inset: auto 0 0 0; top: auto; z-index: 1001; min-width: 0; max-height: 75vh; overflow: auto; padding: 8px 16px 24px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px var(--sc-c-shadow); }
	.sc-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 12px; color: var(--sc-c-ink); font-weight: 700; font-size: 1.1rem; }
	.sc-sheet-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sc-c-panel); color: var(--sc-c-ink); cursor: pointer; }
	.sc-opt { padding: 14px 10px; font-size: 1.05rem; }
	body.sc-sheet-open::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(20, 28, 23, .35); }
	.sc-count-row { flex-wrap: wrap; }
	/* the sort list is short: a small list under its button, not a sheet from the bottom */
	.sc-sort-drop .sc-drop-panel { position: absolute; inset: calc(100% + 8px) auto auto 0; max-height: none; padding: 8px; border-radius: 14px; box-shadow: 0 18px 44px var(--sc-c-shadow); }
	.sc-sort-drop .sc-opt { padding: 10px; font-size: 1rem; }
}
/* pills (the articles list's topic buttons, includes/favorites.js) */
.sc-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-pill { position: relative; cursor: pointer; }
.sc-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-pill span {
	display: inline-block; padding: 3px 11px; background: var(--sc-c-card); border: 1px solid var(--sc-line); border-radius: 999px;
	font-size: .82em; line-height: 1.4; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.sc-pill:hover span { border-color: var(--sc-accent); }
.sc-pill input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-c-btntext); }
.sc-pill input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* ---------- catalog: cards — borderless (trial 2026-09-27): rounded photo, text straight on the page ---------- */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 32px 22px; }
.sc-card {
	display: flex; flex-direction: column; text-decoration: none !important; color: var(--sc-text) !important; background: none;
	transition: opacity .6s ease, transform .6s ease-in-out;
}
.sc-card-media {
	position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sc-accent-soft); border-radius: 16px;
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}
.sc-anim .sc-card.animated:hover, .sc-card:hover { transform: none; }
.sc-card:hover .sc-card-media { transform: translateY(-4px); box-shadow: var(--sc-shadow-hover); }
.sc-card:focus-visible { outline: none; }
.sc-card:focus-visible .sc-card-media { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.sc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s ease; }
.sc-card:hover .sc-card-media img { transform: scale(1.04); filter: saturate(1.08) brightness(1.03); }
.sc-noimg { height: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--sc-accent); font-size: .9em; }
.sc-noimg .sc-ico { width: 44px; height: 44px; opacity: .7; }
.sc-noimg span { color: var(--sc-text); opacity: .7; }
.sc-badge {
	position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; gap: 5px; align-items: center;
	background: rgba(255, 255, 255, .92); color: var(--sc-text); font-size: .8em; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.sc-card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sc-card h3 { margin: 0; font-size: 1em; line-height: 1.35; transition: color .25s ease; }
.sc-card:hover h3 { color: var(--sc-accent); }
.sc-en { margin: 0; color: var(--sc-c-muted); font-size: .78em; text-align: right; } /* faint = the muted colour, never opacity (contrast, 2026-09-30) */
/* cards: English name on one line (full name in the tooltip), darker than before */
.sc-card .sc-en { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-card-summary { margin: 4px 0 0; font-size: .85em; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: auto; padding-top: 8px; font-size: .75em; opacity: .9; }
.sc-card-meta span { display: inline-flex; gap: 4px; align-items: center; }
.sc-card-meta .sc-ico { color: var(--sc-accent); }

/* Pinterest-style masonry (2026-09-27): columns of cards, each photo at its natural shape (portrait photos are
   taller, capped at 4:5.6 so one plant never fills the screen); cards flow down each column, right to left */
/* bigger photos (user, 2026-09-27): 3 columns of ~300px on desktop */
.sc-grid { display: block; columns: 3 260px; column-gap: 24px; }
@media (min-width: 1500px) { .sc-grid { columns: 4 260px; } } /* wide screens: 4 columns of ~320px */
@media (min-width: 1800px) { .sc-grid { columns: 5 260px; } } /* very wide: 5 (catalog.js colCount matches) */
.sc-grid .sc-card { display: flex; break-inside: avoid; margin: 0 0 28px; width: 100%; }
/* catalog: catalog.js deals the cards into real columns (.sc-col) so the order runs along the rows */
.sc-grid.sc-masonry { columns: auto; display: flex; gap: 24px; align-items: flex-start; }
.sc-masonry .sc-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.sc-grid .sc-card-media { aspect-ratio: auto; max-height: 520px; }
.sc-grid .sc-card-media img { height: auto; max-height: 520px; }
.sc-grid .sc-noimg { aspect-ratio: 4 / 3; }
.sc-grid > .sc-empty { column-span: all; }
/* the Hebrew name sits over the bottom of the photo, always visible (user, 2026-09-27 — first hover-only,
   then "always show the names"); hover keeps the lift + zoom */
/* delicate (user, 2026-09-27: "too heavy"): small regular-weight text on a short, faint fade */
.sc-card .sc-card-name, .sc-card:hover .sc-card-name {
	position: absolute; inset: auto 0 0 0; margin: 0; padding: 26px 12px 9px; pointer-events: none;
	color: #F6F3E9; /* the palette's stone #EFEAD8, lifted halfway to white — "a bit lighter, but not white" (user, 2026-09-27) */
	font-size: .82em; font-weight: 400; line-height: 1.35; letter-spacing: .01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
	background: linear-gradient(to top, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0));
	opacity: 1; transform: none;
}
.sc-card:hover .sc-card-name, .sc-card:focus-visible .sc-card-name, .sc-card-noimg .sc-card-name { opacity: 1; transform: none; }
/* hover: a short pause before the lift/zoom/name start (so passing the mouse over cards doesn't set them all off);
   leaving is immediate */
.sc-card:hover .sc-card-media, .sc-card:hover .sc-card-media img, .sc-card:hover .sc-card-name { transition-delay: .18s; }
.sc-card-noimg .sc-noimg { padding-bottom: 40px; }
/* Pinterest hover (user, 2026-09-27): the whole photo darkens a little, instantly — no lift, no zoom, no delay */
.sc-grid .sc-card-media::after {
	content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; pointer-events: none;
	transition: opacity .15s ease;
}
.sc-grid .sc-card:hover .sc-card-media::after, .sc-grid .sc-card:focus-visible .sc-card-media::after { opacity: 1; }
.sc-grid .sc-card:hover .sc-card-media { transform: none; box-shadow: none; transition-delay: 0s; }
.sc-grid .sc-card:hover .sc-card-media img { transform: none; filter: none; transition-delay: 0s; }
.sc-grid .sc-card-name { z-index: 1; }
@media (hover: none) { .sc-card .sc-card-name { opacity: 1; transform: none; padding: 22px 9px 7px; font-size: .78em; } }
@media (max-width: 600px) {
	.sc-grid { columns: 2; column-gap: 12px; }
	.sc-grid.sc-masonry { gap: 12px; }
	.sc-grid .sc-card { margin-bottom: 20px; }
	.sc-grid .sc-card-media, .sc-grid .sc-card-media img { max-height: 300px; }
	.sc-card-body { padding: 8px 1px 0; }
	.sc-card-media { border-radius: var(--sc-r-photo, 16px); }
	.sc-card h3 { font-size: .9em; }
	.sc-card-summary { display: none; }
	.sc-card-meta { font-size: .7em; }
}
.sc-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 0; opacity: .7; }

/* ---------- plant page: "pin" layout (2026-09-27, user: the boxed page felt old and heavy) ----------
   Photos on one side (sticky), text on the other; no boxes — hairlines and whitespace only. */
/* the photo big and on the right, where Hebrew reading starts; the text on the left (approved 2026-09-29) */
.sc-pin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; margin: 0 0 3.5rem; }
.sc-pin-media { scroll-margin-top: 90px; } /* not sticky any more: photos and text scroll together (user, 2026-09-28) */

/* plant page gallery (succalent_plant_gallery): big photo + its caption, thumbnails with an "add photo" tile */
.sc-gallery.sc-pg { display: block; } /* .sc-gallery (kept for the viewer) is a 4-column grid elsewhere */
.sc-pg-main { position: relative; margin: 0; scroll-margin-top: 90px; } /* relative: the ⭐ sits on the photo's corner */
/* fixed 4:3 frame (user, 2026-09-28: the page jumped when a photo of another height was shown); every photo fills it,
   the full photo opens in the viewer. The thumbnails sit right under the frame, the caption after them. */
.sc-pg-frame { display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--sc-gray); box-shadow: 0 18px 44px var(--sc-c-shadow); cursor: zoom-in; } /* a tall "pin" (approved 2026-09-29) */
.sc-pg-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sc-pg-main > .sc-pg-cap { margin-top: 10px; }
.sc-pg-frame:hover img { transform: scale(1.02); }
.sc-pg-cap { margin: 8px 4px 0; font-size: .8em; line-height: 1.5; unicode-bidi: plaintext; }
.sc-pg-cap a { color: inherit; }
.sc-pg-cap .sc-cphoto-text { display: block; font-size: 1.2em; margin-bottom: 2px; opacity: 1; }
.sc-pg-cap .sc-pg-credit, .sc-pg-cap > a, .sc-pg-cap .sc-lic { color: var(--sc-c-muted); }
.sc-pg-cap:not(:has(.sc-cphoto-text)) { color: var(--sc-c-muted); }
.sc-pg-tools { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-inline-start: 10px; vertical-align: middle; }
.sc-pg-tools a, .sc-pg-tools button, .sc-pg-wait { padding: 3px 10px; border: 0; border-radius: 999px; font: inherit; font-size: .95em; background: var(--sc-c-panel, #eef0ec); color: inherit; text-decoration: none; cursor: pointer; }
.sc-pg-tools [data-act="approve"] { background: var(--sc-c-btn, #3d7a66); color: var(--sc-c-btntext, #fff); }
/* ⭐ (the site owner): a round button on the big photo's top-right corner, the photo cards' look (gallery.css) */
.sc-pg-tools .sc-pg-feat { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border-radius: 50%; background: color-mix(in srgb, var(--sc-c-card, #fff) 92%, transparent); color: var(--sc-c-ink, #2c3b33); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.sc-pg-tools .sc-pg-feat.is-on { color: #c8921a; }
.sc-pg-tools .sc-pg-feat.is-on svg { fill: currentColor; }
.sc-pg-wait { background: #fff6d8; color: #6d5a12; cursor: default; }
.sc-pg-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sc-pg-thumb { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--sc-gray); }
.sc-pg-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s ease; }
.sc-pg-thumb .sc-zoom { display: block; cursor: pointer; }
.sc-pg-thumb:not(.is-active) img { opacity: .78; }
.sc-pg-thumb:hover img { opacity: 1; }
.sc-pg-thumb.is-active { box-shadow: 0 0 0 2px var(--sc-c-btn, #3d7a66); }
.sc-pg-thumb.is-pending { outline: 2px dashed #c9a227; outline-offset: -2px; }
.sc-pg-thumb figcaption { display: none; } /* read by the enlarged view */
.sc-pg-thumb .sc-photo-member { bottom: 4px; inset-inline-start: 4px; width: 20px; height: 20px; }
.sc-pg-thumb .sc-photo-member .sc-ico { width: 12px; height: 12px; }
/* ⭐ a starred member photo: top-right of its thumbnail, the catalog card star's look, smaller (user, 2026-09-30) */
.sc-pg-thumb { position: relative; }
.sc-pg-thumb-star { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
	background: color-mix(in srgb, var(--sc-c-card, #fff) 92%, transparent); color: #c8921a; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); pointer-events: none; }
.sc-pg-thumb-star svg { fill: currentColor; }
.sc-pg-add {
	display: grid; place-content: center; justify-items: center; gap: 3px; aspect-ratio: 1; padding: 4px; border-radius: 12px; cursor: pointer;
	border: 2px dashed color-mix(in srgb, var(--sc-c-btn, #3d7a66) 45%, transparent); background: color-mix(in srgb, var(--sc-c-btn, #3d7a66) 6%, transparent);
	color: var(--sc-c-btn, #3d7a66); font: inherit; font-size: .72rem; font-weight: 600; line-height: 1.2; text-align: center; transition: background .2s ease;
}
.sc-pg-add:hover { background: color-mix(in srgb, var(--sc-c-btn, #3d7a66) 13%, transparent); }
.sc-pg-add .sc-ico { width: 22px; height: 22px; }
.sc-pg-hint { margin: 8px 4px 0; font-size: .82em; opacity: .7; }
@media (max-width: 600px) { .sc-pg-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sc-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sc-photo { margin: 0; border-radius: var(--sc-r-photo, 16px); overflow: hidden; background: var(--sc-gray); }
.sc-photo-main { grid-column: 1 / -1; }
.sc-photo .sc-zoom { display: block; position: relative; cursor: zoom-in; }
.sc-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.sc-photo-main img { aspect-ratio: auto; max-height: min(78vh, 760px); }
/* same hover as the catalog cards: the photo darkens a little */
.sc-photo .sc-zoom::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .22); opacity: 0; transition: opacity .15s ease; }
.sc-photo .sc-zoom:hover::after, .sc-photo .sc-zoom:focus-visible::after { opacity: 1; }
.sc-photo figcaption { display: none; } /* shown together in .sc-credits; the viewer still reads each one */
.sc-credits { font-size: .72em; line-height: 1.6; opacity: .6; margin: 10px 2px 0; unicode-bidi: plaintext; }
.sc-credits a { color: inherit; }
.sc-credits b { font-weight: 600; }
.sc-pin-noimg {
	aspect-ratio: 4 / 3; border-radius: var(--sc-r-photo, 16px); background: var(--sc-accent-soft); color: var(--sc-accent);
	display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
}
.sc-pin-noimg .sc-ico { width: 56px; height: 56px; opacity: .6; }
.sc-pin-noimg span { color: var(--sc-text); opacity: .6; }

.sc-pin-title { margin: 0; font-size: var(--sc-title, clamp(2.6rem, 4.6vw, 4.2rem)); line-height: 1.05; font-weight: 700; } /* the theme's page-title size */
.sc-pin .sc-en { margin: 6px 0 18px; font-size: .92rem; text-align: right; font-style: italic; } /* small, under the Hebrew name */
.sc-pin .sc-summary { margin: 0 0 1.2em; font-size: 1.2rem; line-height: 1.7; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 2.2rem; }
.sc-chip { display: inline-flex; gap: 5px; align-items: center; background: var(--sc-gray); padding: 4px 12px; border-radius: 999px; font-size: .85em; }
.sc-chip .sc-ico { color: var(--sc-accent); }

.sc-pin-section { margin: 0 0 2.4rem; }
.sc-pin-section h2 { margin: 0 0 .6em; font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.sc-pin-text p { margin: 0 0 .8em; font-size: 1.08rem; line-height: 1.85; }
/* care guide: a clean list — icon, heading, text; thin lines between rows */
.sc-care-row { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--sc-line); }
.sc-care-row:last-child { border-bottom: 1px solid var(--sc-line); }
.sc-care-icon { color: var(--sc-accent); padding-top: 2px; }
.sc-care-icon .sc-ico { width: 24px; height: 24px; }
.sc-care-body h3 { margin: 0 0 .25em; font-size: 1.12rem; font-weight: 700; }
.sc-care-text p, .sc-care .sc-plant-articles-list { margin: 0; font-size: 1.05rem; line-height: 1.8; }
.sc-back-link { display: inline-block; font-weight: 600; color: var(--sc-accent) !important; text-decoration: none !important; }
.sc-back-link:hover { text-decoration: underline !important; }

/* more plants: one even row of cards */
.sc-more { margin: 0 0 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--sc-line); }
.sc-more h2 { margin: 0 0 1.2rem; font-size: 1.4em; }
.sc-more .sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; columns: auto; }
.sc-more .sc-grid .sc-card { margin: 0; }
.sc-more .sc-grid .sc-card-media { aspect-ratio: 4 / 5; max-height: none; }
.sc-more .sc-grid .sc-card-media img { height: 100%; max-height: none; }
/* home "מאמרים נבחרים": 6 article cards, always full rows (3 / 2 / 1 per row) */
.sc-featured-articles .sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; columns: auto; }
.sc-featured-articles .sc-grid .sc-card { margin: 0; }
.sc-featured-articles .sc-grid .sc-card-media { aspect-ratio: 4 / 3; max-height: none; }
.sc-featured-articles .sc-grid .sc-card-media img { height: 100%; max-height: none; }
@media (max-width: 900px) { .sc-featured-articles .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 600px) { .sc-featured-articles .sc-grid { grid-template-columns: 1fr; } }
/* articles' "מאמרים נוספים": three landscape cards */
.sc-related .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-article-plants.sc-cols-3 .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* "צמחים שמוזכרים במאמר" (includes/plant-links.php) */
.sc-more.sc-article-plants { margin: 2.2rem 0 0; padding-top: 0; border-top: 0; } /* right under the article's text, no line (user) */
.sc-related .sc-grid .sc-card-media { aspect-ratio: 4 / 3; }
/* phones: one column (3 cards in 2 columns left one alone); .sc-more.sc-related beats the plants' 2-column phone rule below */
@media (max-width: 600px) { .sc-more.sc-related .sc-grid { grid-template-columns: 1fr; } .sc-more.sc-related .sc-grid .sc-card-media { aspect-ratio: 16 / 9; } }

@media (max-width: 900px) {
	.sc-pin { grid-template-columns: 1fr; gap: 24px; margin-top: 1.2rem; }
	.sc-pin-media { order: 0; } /* phone: photo first */
	.sc-more .sc-grid, .sc-article-plants.sc-cols-3 .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* dark mode (the theme's moon button adds body.dark-mode) */
.dark-mode .sc-catalog, .dark-mode .sc-plant { --sc-gray: rgba(255, 255, 255, .05); --sc-text: inherit; --sc-shadow: none; --sc-accent-soft: rgba(255, 255, 255, .08); }
.dark-mode .sc-search, .dark-mode .sc-pill span { background: rgba(255, 255, 255, .06); color: inherit; }
.dark-mode .sc-card { color: inherit !important; }
.dark-mode .sc-badge { background: rgba(0, 0, 0, .6); color: #fff; }


/* gallery viewer */
.sc-lb-lock, .sc-lb-lock body { overflow: hidden; }
.sc-lightbox {
	position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 16px 20px;
	background: rgba(20, 32, 26, .78); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
	opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s;
}
.sc-lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.sc-lb-stage { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; transform: scale(.94); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.sc-lightbox.open .sc-lb-stage { transform: none; }
.sc-lb-stage img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: #fff; transition: opacity .3s ease; }
.sc-lightbox.loading .sc-lb-stage img { opacity: .25; }
.sc-lb-stage figcaption { color: #eef3ee; font-size: .8em; margin-top: 12px; text-align: center; unicode-bidi: plaintext; opacity: .85; }
.sc-lb-stage figcaption a { color: inherit; }
/* controls: bare line icons, no bubbles */
.sc-lb-close, .sc-lb-nav {
	border: 0; background: none; padding: 0; margin: 0; cursor: pointer; color: rgba(255, 255, 255, .8);
	display: grid; place-items: center; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
	transition: color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.sc-lb-close:hover, .sc-lb-nav:hover, .sc-lb-close:focus-visible, .sc-lb-nav:focus-visible { color: #fff; outline: none; }
/* close button top right (user, 2026-09-27); it sits over the full-height "previous" hit area — z-index keeps it on top */
.sc-lb-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; z-index: 3; }
.sc-lb-close:hover { transform: rotate(90deg); }
.sc-lb-close svg { width: 26px; height: 26px; }
/* tall invisible hit areas at the screen edges; the chevron nudges outward on hover */
.sc-lb-nav { position: absolute; top: 0; bottom: 0; width: clamp(56px, 9vw, 120px); }
.sc-lb-nav svg { width: 38px; height: 38px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sc-lb-prev { right: 0; }
.sc-lb-next { left: 0; }
.sc-lb-prev:hover svg { transform: translateX(4px); }
.sc-lb-next:hover svg { transform: translateX(-4px); }
.sc-lightbox.single .sc-lb-nav { display: none; }
.sc-lb-count {
	position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .75em; letter-spacing: .08em;
	background: rgba(0, 0, 0, .35); padding: 3px 12px; border-radius: 999px;
}
.sc-lb-count:empty { display: none; }
.sc-lb-stage { padding-inline: clamp(40px, 8vw, 110px); box-sizing: border-box; }
@media (max-width: 600px) {
	.sc-lb-stage { padding-inline: 0; }
	.sc-lb-nav { top: auto; bottom: 6px; height: 56px; width: 64px; }
	.sc-lb-nav svg { width: 30px; height: 30px; }
	.sc-lb-stage img { max-height: calc(100vh - 170px); }
}

/* gallery thumbnails: gentle lift + magnifier instead of a big zoom */
.sc-photo { transition: transform .45s ease, box-shadow .45s ease; }
.sc-photo:hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-hover); }
.sc-photo:hover img { transform: scale(1.025); }
.sc-photo .sc-zoom { position: relative; }
.sc-photo .sc-zoom::after {
	content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
	background: rgba(15, 46, 29, .28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 44px no-repeat;
}
.sc-photo:hover .sc-zoom::after, .sc-photo .sc-zoom:focus-visible::after { opacity: 1; }

/* ---------- articles (posts): tools/wp_articles.php (2026-09-27) ---------- */
/* sources + photo credit at the end: small and quiet */
.sc-article-foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: .8em; opacity: .75; }
.sc-article-foot p { margin: .3em 0; line-height: 1.6; unicode-bidi: plaintext; }
.sc-article-foot a { color: inherit; }


/* catalog bottom: "found a succulent or cactus we don't have?" (user, 2026-09-28) → contact form, topic preselected */
.sc-missing {
	display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 3rem auto 1rem; padding: 18px 22px;
	border-radius: 18px; background: color-mix(in srgb, var(--sc-c-btn, #3d7a66) 7%, #fff); line-height: 1.65;
}
.sc-missing .sc-ico { flex: none; width: 26px; height: 26px; margin-top: 2px; color: var(--sc-c-btn, #3d7a66); }
.sc-missing p { margin: 0; }
.sc-missing a { color: var(--sc-c-btn, #3d7a66); font-weight: 600; }
body.dark-mode .sc-missing { background: rgba(255, 255, 255, .05); }
/* topic chips under an article: styled by the theme (templates.css, same as the category chip) */
/* plant page: "מאמרים על הצמח" = the last care-guide row (after "עמידות לקור"), text links, one per line */
.sc-care .sc-plant-articles-list { margin: 0; padding: 0; list-style: none; }
.sc-care .sc-plant-articles-list li { margin: 0 0 .35em; padding: 0; }
.sc-care .sc-plant-articles-list li:last-child { margin-bottom: 0; }
.sc-care .sc-plant-articles-list a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sc-c-btn, #3d7a66) 45%, transparent); text-underline-offset: 3px; }
.sc-care .sc-plant-articles-list a:hover { color: var(--sc-c-btn, #3d7a66); text-decoration-color: currentColor; }
/* "מצאתם טעות? ספרו לנו" under articles and plant pages (includes/contact.php) */
.sc-mistake { margin: 1.4rem 0 0; font-size: .88rem; }
.sc-mistake a { color: var(--sc-c-muted); text-decoration: underline; text-underline-offset: 3px; }
.sc-mistake a:hover { color: var(--sc-c-btn, #3d7a66); }

/* articles: hover card over a plant link — its photo + name (assets/plant-preview.js, 2026-09-28) */
.sc-plant-preview {
	position: absolute; z-index: 1000; width: 200px; padding: 6px; border-radius: 16px; background: #fff; pointer-events: none;
	box-shadow: 0 18px 44px rgba(20, 30, 25, .22), 0 0 0 1px rgba(20, 30, 25, .06);
	opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease;
}
.sc-plant-preview.on { opacity: 1; transform: none; }
.sc-plant-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; background: var(--sc-gray, #eef0ec); }
.sc-plant-preview span { display: block; padding: 7px 6px 3px; font-size: .88rem; font-weight: 600; line-height: 1.35; text-align: center; direction: rtl; color: var(--sc-c-ink, #2c3b33); }
body.dark-mode .sc-plant-preview { background: var(--sc-c-card); }
body.dark-mode .sc-plant-preview span { color: var(--sc-c-text); }
@media (prefers-reduced-motion: reduce) { .sc-plant-preview { transition: none; } }

/* ---------- "החודש בגינה" on the home page (includes/garden-month.php) ---------- */
.sc-month { text-align: center; }
.sc-month-title { margin: 0 0 .3em; }
.sc-month-intro { max-width: 40em; margin: 0 auto 1.6rem; font-size: 1.08em; opacity: .8; }
.sc-month-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 2.4rem; padding: 0; list-style: none; text-align: start; }
.sc-month-tip {
	display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 18px 18px 16px; border-radius: var(--sc-r-photo, 16px);
	background: var(--sc-gray, #f3f4f1); line-height: 1.6;
}
.sc-month-tip .sc-ico { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--sc-c-btn, #3d7a66); }
.sc-month-tip p { margin: 0; font-size: .96rem; }
.sc-month-tip a { display: inline-block; margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--sc-c-btn, #3d7a66); }
.sc-month-bloom-title { margin: 0 0 1.6rem; font-size: 1.6em; }
.sc-month-row { position: relative; }
/* under the row: a thin full-width progress line (where we are in the season's list), an arrow at each end (user, 2026-09-29) */
.sc-month-arrows { display: flex; align-items: center; gap: 16px; margin-top: 1.3rem; }
.sc-month-arrows[hidden] { display: none; }
.sc-month-count { flex: 1; position: relative; height: 3px; min-width: 0; border-radius: 3px; background: rgba(0, 0, 0, .1); font-size: 0; overflow: hidden; } /* the text "2 / 6" stays for screen readers */
.sc-month-count::after { content: ""; position: absolute; top: 0; bottom: 0; right: var(--x, 0%); width: var(--w, 20%); border-radius: 3px; background: var(--sc-c-btn, #3d7a66); transition: right .45s ease; }
body.dark-mode .sc-month-count { background: rgba(255, 255, 255, .15); }
/* one row of plants in bloom (5 / 4 / 3 / 2 across, the extra cards hidden), full width; two round arrows on the heading line; catalog.js
   brings the next / previous row in, each card from its own direction (user, 2026-09-29) */
.sc-month-arrow[hidden]:not(#sc-btn) { display: none; } /* look: round site button (assets/buttons.css .sc-btn--round), nudges when first seen */
.sc-month-bloom .sc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; columns: auto; }
.sc-month-bloom .sc-card { margin: 0; }
.sc-month-bloom .sc-card.is-out { opacity: 0 !important; transform: scale(.97) !important; transition: opacity .25s ease, transform .25s ease !important; transition-delay: 0s !important; }
.sc-month-bloom .sc-card:nth-child(n+6) { display: none; }.sc-month-bloom .sc-card-media { aspect-ratio: 4 / 5; }
.sc-month-bloom .sc-card-media img { height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .sc-month-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 5 in the row on any wide screen, the cards just get smaller (user, 2026-09-29); tablets 3, phones 2 */
@media (max-width: 900px) { .sc-month-bloom .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .sc-month-bloom .sc-card:nth-child(n+4) { display: none; } }
@media (max-width: 600px) {
	.sc-month-tips { grid-template-columns: 1fr; gap: 10px; }
	.sc-month-bloom .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sc-month-arrow:not(#sc-btn) { width: 38px; height: 38px; }
	.sc-month-bloom .sc-card:nth-child(n+3) { display: none; }
}
body.dark-mode .sc-month-tip { background: rgba(255, 255, 255, .06); }
/* ⭐ on a catalog card whose photo is a member's photo the site owner starred (user, 2026-09-30): the top-right
   corner (the heart has the other one), the same gold as the star on the photo cards (gallery.css) */
.sc-card-star {
	position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px;
	border-radius: 50%; background: color-mix(in srgb, var(--sc-c-card, #fff) 92%, transparent); color: #c8921a;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .14); pointer-events: none;
}
.sc-card-star svg { fill: currentColor; }
