/*
Theme Name: Shtenfeld Media
Theme URI: https://tsm.co.il/
Author: שטיינפלד מדיה
Description: תבנית קלה לאתר שטיינפלד מדיה, בלי Elementor. ההדר, הפוטר והגדרות העיצוב (צבעים, פונט) נטענים מהבלוקים המסונכרנים "עיצוב חדש · …" ולכן נערכים במקום אחד מתוך וורדפרס. כולל עיצוב לפוסטים, ארכיון מאמרים, חיפוש ו-404. עברית, מימין לשמאל.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: shtenfeld-media
*/

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tsm-bg, #FAF9F7); color: var(--tsm-ink, #2C2E2E); font-family: var(--tsm-font, 'PingHL'), 'Assistant', 'Heebo', sans-serif; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tsm-skip:focus { position: fixed; top: 10px; right: 10px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; clip: auto; width: auto; height: auto; }

/* ----- article (single post) ----- */
html body .tsm-nd .tsm-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 15px; color: var(--tsm-muted); }
html body .tsm-nd .tsm-meta a { color: var(--tsm-muted); text-decoration: none; }
html body .tsm-nd .tsm-meta a:hover { color: var(--tsm-ink); }
html body .tsm-nd .tsm-cover { max-width: 1340px; margin: 0 auto clamp(22px, 3vw, 40px); }
html body .tsm-nd .tsm-cover img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: 28px; }
html body .tsm-nd .tsm-article .tsm-panel { display: flex; justify-content: center; }
html body .tsm-nd .tsm-prose a { color: var(--tsm-green-dark); text-decoration: underline; text-underline-offset: 3px; }
html body .tsm-nd .tsm-prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
html body .tsm-nd .tsm-prose h4 { font-weight: 700; font-size: 19px; color: var(--tsm-ink); margin: 1.2em 0 .4em; }
html body .tsm-nd .tsm-prose blockquote { margin: 1.4em 0; padding: 6px 22px; border-inline-start: 4px solid var(--tsm-accent); color: var(--tsm-ink); font-size: 1.1em; }
html body .tsm-nd .tsm-prose img { border-radius: 18px; }
html body .tsm-nd .tsm-prose figcaption, html body .tsm-nd .tsm-prose .wp-caption-text { font-size: 14px; color: var(--tsm-muted); margin-top: 8px; text-align: center; }
html body .tsm-nd .tsm-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95em; }
html body .tsm-nd .tsm-prose th, html body .tsm-nd .tsm-prose td { border: 1px solid color-mix(in srgb, var(--tsm-ink) 14%, transparent); padding: 10px 12px; text-align: start; }
html body .tsm-nd .tsm-prose th { background: var(--tsm-light); color: var(--tsm-ink); }
html body .tsm-nd .tsm-prose pre, html body .tsm-nd .tsm-prose code { direction: ltr; font-size: .9em; background: var(--tsm-light); border-radius: 8px; }
html body .tsm-nd .tsm-prose pre { padding: 14px; overflow-x: auto; }
html body .tsm-nd .tsm-prose iframe, html body .tsm-nd .tsm-prose video { max-width: 100%; border-radius: 18px; }
html body .tsm-nd .tsm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
html body .tsm-nd .tsm-tags a { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tsm-ink) 18%, transparent); color: var(--tsm-ink); text-decoration: none; }
html body .tsm-nd .tsm-tags a:hover { background: var(--tsm-ink); color: #fff; }

/* ----- call to action after an article ----- */
html body .tsm-nd .tsm-cta { max-width: 1340px; margin: 0 auto; background: var(--tsm-dark); color: #F3F2F0; border-radius: 28px; padding: clamp(28px, 4vw, 60px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px 40px; align-items: center; }
html body .tsm-nd .tsm-cta h2 { font-family: var(--tsm-font), sans-serif; font-weight: 900; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.03em; color: #fff; margin: 0 0 10px; }
html body .tsm-nd .tsm-cta p { margin: 0; font-size: 18px; line-height: 1.6; color: #CFCDC9; }
html body .tsm-nd .tsm-cta .tsm-btn { justify-self: start; margin: 0; }

/* ----- post cards (archive, search, related) ----- */
html body .tsm-nd .tsm-section-title { font-family: var(--tsm-font), sans-serif; font-weight: 900; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; color: var(--tsm-ink); margin: 0 0 22px; }
html body .tsm-nd .tsm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 28px); }
html body .tsm-nd .tsm-card { display: flex; flex-direction: column; background: var(--tsm-surface); border: 1px solid color-mix(in srgb, var(--tsm-ink) 8%, transparent); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--tsm-ink); transition: transform .2s, box-shadow .2s; }
html body .tsm-nd .tsm-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--tsm-ink) 40%, transparent); }
html body .tsm-nd .tsm-card-img { aspect-ratio: 16 / 10; background: var(--tsm-light); }
html body .tsm-nd .tsm-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body .tsm-nd .tsm-card-body { padding: 18px 20px 22px; }
html body .tsm-nd .tsm-card-date { font-size: 13px; color: var(--tsm-muted); }
html body .tsm-nd .tsm-card h3 { font-family: var(--tsm-font), sans-serif; font-size: 21px; font-weight: 700; line-height: 1.3; margin: 6px 0 8px; color: var(--tsm-ink); }
html body .tsm-nd .tsm-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tsm-muted); }
html body .tsm-nd .tsm-related { padding: 0 clamp(18px, 3vw, 40px) clamp(46px, 6vw, 86px); }
html body .tsm-nd .tsm-related > div { max-width: 1340px; margin: 0 auto; }

/* ----- pagination & search ----- */
html body .tsm-nd .tsm-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
html body .tsm-nd .tsm-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tsm-ink) 16%, transparent); color: var(--tsm-ink); text-decoration: none; font-weight: 600; }
html body .tsm-nd .tsm-pager .page-numbers.current, html body .tsm-nd .tsm-pager a.page-numbers:hover { background: var(--tsm-ink); color: #fff; border-color: var(--tsm-ink); }
html body .tsm-nd .tsm-search { display: flex; gap: 10px; max-width: 560px; margin-top: 22px; }
html body .tsm-nd .tsm-search input[type=search] { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tsm-ink) 18%, transparent); background: var(--tsm-surface); font: inherit; font-size: 17px; color: var(--tsm-ink); }
html body .tsm-nd .tsm-search button { height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--tsm-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
html body .tsm-nd .tsm-empty { font-size: 18px; color: var(--tsm-muted); }
