/*
Theme Name: Indicator Magazine
Theme URI: https://indicator.co.il/
Author: אינדיקטור
Description: מגזין RTL לעסקים, אופנה, צרכנות ותרבות. גרסה 4: מערכת עיצוב אחת, גופנים עבריים בהתקנה עצמית (קרנטינה + רוביק), תמונות AVIF/WebP רספונסיביות, טיקר שוק הון בעיכוב, ניוזלטר ותוכן שלא נדרס בעדכונים.
Version: 4.0.4
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: indicator
Tags: rtl-language-support, news, blog, custom-menu, featured-images, accessibility-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --c-ink: #101820;
  --c-ink-2: #2c3640;
  --c-muted: #4f5a66;           /* 7.0:1 on white, 6.3:1 on paper */
  --c-paper: #f6f2ea;
  --c-paper-2: #efe9dd;
  --c-white: #fff;
  --c-line: #e2dccf;
  --c-navy: #0b2a4a;
  --c-navy-2: #07203a;
  --c-accent: #f5225b;          /* brand pink – backgrounds / large text */
  --c-accent-ink: #c0103f;      /* pink for small text on light bg (5.9:1) */
  --c-business: #ffb126;
  --c-fashion: #f5225b;
  --c-consumer: #1597e5;
  --c-culture: #19bfa5;
  --c-up: #2ee6c4;              /* on navy 8.4:1 */
  --c-down: #ff7a98;            /* on navy 5.6:1 */
  --c-focus: #1597e5;
  --grad-brand: linear-gradient(90deg, #19bfa5, #1597e5 30%, #ffb126 65%, #f5225b);

  --f-display: "Karantina", "Karantina Fallback", "Arial Narrow", sans-serif;
  --f-body: "Rubik", "Rubik Fallback", "Arial Hebrew", Arial, system-ui, sans-serif;

  --fs-xs: 0.8125rem;   /* 13px – minimum */
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-3xl: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --fs-4xl: clamp(2.3rem, 1.5rem + 3.4vw, 4.5rem);
  /* Display scale for Karantina (condensed): ~1.3× the text scale so headlines keep their presence */
  --fs-d-lg: clamp(1.5rem, 1.35rem + .5vw, 1.75rem);
  --fs-d-xl: clamp(1.65rem, 1.45rem + .8vw, 2rem);
  --fs-d-2xl: clamp(1.95rem, 1.55rem + 1.6vw, 2.6rem);
  --fs-d-3xl: clamp(2.45rem, 1.8rem + 2.6vw, 3.75rem);
  --fs-d-4xl: clamp(3rem, 1.9rem + 4.6vw, 5.9rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(16 24 32 / 6%), 0 8px 24px rgb(16 24 32 / 8%);
  --max: 1280px;
  --max-narrow: 760px;
  --max-wide: 1040px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--f-body); font-synthesis: style; font-size: var(--fs-md); line-height: 1.6; color: var(--c-ink); background: var(--c-white); text-align: start; }
img, svg, picture { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; font-synthesis: none; line-height: 1.05; margin: 0; color: var(--c-ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
bdi { unicode-bidi: isolate; }
.no-scroll { overflow: hidden; }

.wrap { inline-size: min(var(--max), 100% - 2 * var(--s-5)); margin-inline: auto; }
.wrap--narrow { inline-size: min(var(--max-narrow), 100% - 2 * var(--s-5)); }
.wrap--wide { inline-size: min(var(--max-wide), 100% - 2 * var(--s-5)); }
.block { padding-block: var(--s-7); }

.screen-reader-text { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--s-4); inset-block-start: -100px; z-index: 100; background: var(--c-navy); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { inset-block-start: var(--s-3); }

/* Buttons & form controls */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); min-block-size: 44px; padding: var(--s-2) var(--s-5); border: 0; border-radius: 999px; font-weight: 700; font-size: var(--fs-md); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--c-navy); color: #fff; }
.btn--accent:hover { background: var(--c-navy-2); }
.btn--light { background: #fff; color: var(--c-ink); }
.icon-btn { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--c-navy); cursor: pointer; }
.icon-btn:hover { background: rgb(11 42 74 / 8%); }
.icon-btn svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.search-form { display: flex; gap: var(--s-2); }
.search-form__input, .field input { flex: 1; min-inline-size: 0; min-block-size: 46px; padding: var(--s-2) var(--s-4); border: 1px solid #b9b2a4; border-radius: 999px; background: #fff; }
.search-form__input:focus, .field input:focus { border-color: var(--c-navy); outline: 3px solid rgb(21 151 229 / 35%); outline-offset: 0; }

/* Chips (section labels) – dark text on brand colours for ≥4.5:1 */
.chip { display: inline-block; padding: 0.2em 0.7em; border-radius: 999px; font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; color: var(--c-ink); background: var(--c-paper-2); text-decoration: none; }
.chip--business { background: var(--c-business); }
.chip--fashion { background: var(--c-fashion); color: #0b0f14; }
.chip--consumer { background: var(--c-consumer); }
.chip--culture { background: var(--c-culture); }
a.chip:hover { filter: brightness(1.05); text-decoration: underline; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block: var(--s-5); }
.chip-row .chip { font-size: var(--fs-md); padding: 0.35em 1em; }

.sec--business { --sec: var(--c-business); }
.sec--fashion { --sec: var(--c-fashion); }
.sec--consumer { --sec: var(--c-consumer); }
.sec--culture { --sec: var(--c-culture); }
.sec--default { --sec: var(--c-navy); }

/* ==========================================================================
   3. Header, nav, drawer
   ========================================================================== */
.site-header { position: sticky; inset-block-start: 0; z-index: 40; background: rgb(255 255 255 / 96%); backdrop-filter: saturate(1.4) blur(8px); border-block-end: 1px solid var(--c-line); }
.site-header::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 3px; background: var(--grad-brand); }
.admin-bar .site-header { inset-block-start: 32px; }
.site-header__row { display: flex; align-items: center; gap: var(--s-5); min-block-size: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { inline-size: 160px; block-size: auto; }
.main-nav { flex: 1; }
.main-nav__list { display: flex; gap: var(--s-1); list-style: none; }
.main-nav__list a { display: block; padding: var(--s-2) var(--s-3); border-radius: 999px; font-weight: 700; color: var(--c-navy); text-decoration: none; position: relative; }
.main-nav__list a::after { content: ""; position: absolute; inset-inline: var(--s-3); inset-block-end: 2px; block-size: 3px; border-radius: 3px; background: var(--sec, var(--c-accent)); transform: scaleX(0); transition: transform .2s var(--ease); }
.main-nav__list a:hover::after, .main-nav__list .current-menu-item a::after { transform: scaleX(1); }
.menu-item.cat-business { --sec: var(--c-business); } .menu-item.cat-fashion { --sec: var(--c-fashion); }
.menu-item.cat-consumer { --sec: var(--c-consumer); } .menu-item.cat-culture { --sec: var(--c-culture); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.menu-toggle { display: none; }
.search-panel { background: var(--c-navy); padding-block: var(--s-4); }
.search-panel .search-form__input { border-color: transparent; }
.search-panel .btn--accent { background: var(--c-accent); color: var(--c-ink); }
.cat-strip { display: none; }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(7 32 58 / 55%); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: min(86vw, 360px); overflow-y: auto; background: #fff; padding: var(--s-4) var(--s-5) var(--s-7); display: flex; flex-direction: column; gap: var(--s-5); transform: translateX(100%); transition: transform .22s var(--ease); z-index: 1; box-shadow: var(--shadow); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__list { list-style: none; display: grid; gap: var(--s-1); }
.drawer__list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-2); font-family: var(--f-display); font-size: var(--fs-d-2xl); font-weight: 700; line-height: 1.1; text-decoration: none; border-block-end: 1px solid var(--c-line); }
.drawer__list a::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--sec, var(--c-navy)); }
.drawer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__scrim { transition: none; } }

/* ==========================================================================
   4. Cover (homepage hero)
   ========================================================================== */
.cover { position: relative; isolation: isolate; min-block-size: min(78vh, 700px); display: grid; align-items: end; color: #fff; background: var(--c-navy-2); overflow: hidden; }
.cover__media, .cover__media .pic, .cover__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.cover__media img { object-fit: cover; object-position: var(--focus, 50% 30%); z-index: -2; }
.cover__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgb(7 22 40 / 92%) 0%, rgb(7 22 40 / 72%) 34%, rgb(7 22 40 / 10%) 64%, transparent 80%), linear-gradient(to top, rgb(7 22 40 / 55%), transparent 40%); }
.cover__inner { position: relative; z-index: 1; padding-block: var(--s-8) var(--s-8); }
.cover__copy { max-inline-size: 36rem; display: grid; gap: var(--s-4); justify-items: start; }
.cover__kicker { display: flex; align-items: center; gap: var(--s-3); }
.cover__label { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; padding-block-end: 2px; border-block-end: 3px solid var(--c-accent); }
.cover__title { font-size: var(--fs-d-4xl); line-height: .98; color: #fff; }
.cover__title a { text-decoration: none; }
.cover__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.cover__deck { font-size: var(--fs-lg); line-height: 1.55; color: rgb(255 255 255 / 92%); max-inline-size: 32rem; }
.cover__meta { font-size: var(--fs-sm); color: rgb(255 255 255 / 85%); }

/* ==========================================================================
   5. Ticker
   ========================================================================== */
.ticker { background: var(--c-navy); color: #fff; border-block-start: 1px solid #17486f; }
.ticker__inner { inline-size: min(1400px, 100% - 2 * var(--s-5)); display: flex; align-items: center; gap: var(--s-4); padding-block: var(--s-3); flex-wrap: wrap; }
.ticker__head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: none; }
.ticker__title { font-family: var(--f-body); font-size: var(--fs-md); font-weight: 700; color: #fff; }
.ticker__status { font-size: var(--fs-xs); color: rgb(255 255 255 / 85%); }
.ticker__badge { display: inline-block; padding: 0 0.6em; margin-inline-end: var(--s-1); border: 1px solid rgb(255 255 255 / 45%); border-radius: 999px; }
.ticker__list { position: relative; flex: 1; min-inline-size: 0; display: flex; gap: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; padding-block: var(--s-1); }
.tick { flex: none; display: grid; grid-template-columns: auto auto; grid-template-areas: "label closed" "price chg"; column-gap: var(--s-2); align-items: baseline; padding: var(--s-1) var(--s-3); border-inline-start: 1px solid rgb(255 255 255 / 16%); scroll-snap-align: start; }
.tick:first-child { border-inline-start: 0; }
.tick__label { grid-area: label; font-size: var(--fs-xs); font-weight: 700; color: rgb(255 255 255 / 85%); }
.tick__price { grid-area: price; font-variant-numeric: tabular-nums; font-weight: 700; }
.tick__chg { grid-area: chg; justify-self: end; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; font-weight: 700; }
.tick--up .tick__chg { color: var(--c-up); }
.tick--down .tick__chg { color: var(--c-down); }
.tick--flat .tick__chg { color: rgb(255 255 255 / 85%); }
.tick__chg span[aria-hidden] { font-size: 1em; margin-inline-end: 2px; }
.tick__closed { grid-area: closed; justify-self: end; font-size: var(--fs-xs); color: rgb(255 255 255 / 75%); }
.ticker__src { inline-size: 100%; font-size: var(--fs-xs); color: rgb(255 255 255 / 75%); }

/* ==========================================================================
   6. Section heads, cards, grids
   ========================================================================== */
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-block-end: var(--s-5); padding-block-end: var(--s-3); border-block-end: 2px solid var(--c-ink); }
.section-head__title { font-size: var(--fs-d-3xl); line-height: 1; display: flex; align-items: center; gap: var(--s-3); }
.section-head__dot { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--sec, var(--c-accent)); flex: none; }
.section-head__desc { color: var(--c-muted); flex: 1; min-inline-size: 14rem; }
.section-head__more { font-weight: 700; color: var(--c-accent-ink); text-decoration: none; white-space: nowrap; }
.section-head__more:hover { text-decoration: underline; }

.card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-paper-2); aspect-ratio: 16 / 10; }
.card__media .pic, .card__media img { inline-size: 100%; block-size: 100%; }
.card__media img { object-fit: cover; object-position: var(--focus, 50% 40%); transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: grid; gap: var(--s-2); justify-items: start; }
.card__title { font-size: var(--fs-d-xl); line-height: 1.05; }
.card__title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .25s var(--ease); }
.card__title a:hover, .card__title a:focus-visible { background-size: 100% 2px; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__body .chip { position: relative; z-index: 1; }
.card__excerpt { color: var(--c-ink-2); line-height: 1.6; }
.card__meta { display: flex; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-muted); }

.card--lead .card__title { font-size: var(--fs-d-3xl); line-height: 1; }
.card--lead .card__excerpt { font-size: var(--fs-lg); }
.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--secondary .card__title { font-size: var(--fs-d-2xl); }
.card--compact { flex-direction: row; align-items: flex-start; gap: var(--s-4); padding-block: var(--s-4); border-block-start: 1px solid var(--c-line); }
.card--compact .card__media { flex: 0 0 clamp(96px, 28%, 160px); aspect-ratio: 1; border-radius: var(--radius-sm); }
.card--compact .card__title { font-family: var(--f-body); font-size: var(--fs-md); font-weight: 700; line-height: 1.35; }
.card--noimg.card--standard, .card--noimg.card--secondary { padding: var(--s-5); background: var(--c-paper); border-radius: var(--radius); border-block-start: 4px solid var(--sec, var(--c-navy)); }

.grid { display: grid; gap: var(--s-6) var(--s-5); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Top stories: lead + 2 */
/* Feature rows (lead + side column): both columns always end at the same line.
   If the side column is taller, the lead photo grows (object-fit: cover); if the lead is taller, the side items spread out. */
.feature { display: grid; grid-template-columns: 1.7fr 1fr; align-items: stretch; gap: var(--s-6); }
.feature--section { grid-template-columns: 1.25fr 1fr; }
.feature--archive { grid-template-columns: 2fr 1fr; margin-block-end: var(--s-6); }
.feature > .card { display: flex; flex-direction: column; }
.feature > .card .card__media { position: relative; flex: 1 0 auto; aspect-ratio: 16 / 10; min-block-size: 0; }
.feature > .card .card__media .pic { position: absolute; inset: 0; }
.feature > .card .card__body { flex: none; }
.feature__side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); min-inline-size: 0; }
.feature__side > .card--secondary .card__media { aspect-ratio: 16 / 9; }
.feature--section .feature__side { gap: 0; }
.feature--section .feature__side > .card--compact:first-child { border-block-start: 0; padding-block-start: 0; }
/* Desktop: the two side stories stand image-over-text (2:1) so the side column is as tall as the lead; the lead photo stretches to match. */
@media (min-width: 901px) {
  .feature--section .feature__side > .card--compact { flex-direction: column; gap: var(--s-3); padding-block: 0; border-block-start: 0; }
  .feature--section .feature__side > .card--compact .card__media { flex: none; inline-size: 100%; aspect-ratio: 2 / 1; }
  .feature--section .feature__side > .card--compact .card__title { font-size: var(--fs-lg); }
}
.feature--solo { grid-template-columns: 1fr !important; }
/* A single side story (category with two posts) stretches its photo too, so both columns still end together. */
@media (min-width: 901px) {
  .feature__side > .card:only-child { flex: 1 0 auto; display: flex; flex-direction: column; }
  .feature__side > .card:only-child .card__media { position: relative; flex: 1 0 auto; }
  .feature__side > .card:only-child .card__media .pic { position: absolute; inset: 0; }
}

/* Stories strip */
.stories { padding-block: var(--s-6); background: var(--c-paper); }
.stories__title { font-size: var(--fs-d-2xl); margin-block-end: var(--s-4); display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.stories__title span { font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 400; color: var(--c-muted); }
.stories__list { list-style: none; display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: var(--s-2); scrollbar-width: thin; }
.story { flex: 0 0 112px; scroll-snap-align: start; }
.story a { display: grid; justify-items: center; gap: var(--s-1); text-align: center; text-decoration: none; }
.story__ring { display: grid; place-items: center; inline-size: 92px; block-size: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--sec, var(--c-accent)), var(--c-accent), var(--sec, var(--c-accent))); }
.story__ring .pic, .story__ring img, .story__initial { inline-size: 100%; block-size: 100%; border-radius: 50%; border: 3px solid var(--c-paper); object-fit: cover; object-position: var(--focus, 50% 40%); }
.story__initial { display: grid; place-items: center; background: var(--c-navy); color: #fff; font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.story__cat { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }
.story__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.story a:hover .story__title { text-decoration: underline; }

/* Most read + newsletter */
.most-read__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); align-items: start; }
.most-read__list { list-style: none; counter-reset: mr; display: grid; }
.most-read__list li { display: flex; gap: var(--s-4); align-items: flex-start; padding-block: var(--s-4); border-block-end: 1px solid var(--c-line); }
.most-read__n { flex: none; inline-size: 1.4ch; font-family: var(--f-display); font-size: 3.6rem; font-weight: 700; line-height: .85; text-align: center; color: var(--c-accent); }
.most-read__list div { display: grid; gap: var(--s-1); justify-items: start; }
.most-read__list a { font-family: var(--f-display); font-size: var(--fs-d-lg); font-weight: 700; line-height: 1.08; text-decoration: none; }
.most-read__list a:hover { text-decoration: underline; }

.newsletter { background: var(--c-navy); color: #fff; border-radius: var(--radius); padding: var(--s-6); position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 4px; background: var(--grad-brand); }
.newsletter__title { color: #fff; font-size: var(--fs-d-2xl); margin-block-end: var(--s-2); }
.newsletter__text { color: rgb(255 255 255 / 88%); margin-block-end: var(--s-4); }
.newsletter__form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: var(--s-1); }
.field__label { font-size: var(--fs-sm); font-weight: 700; }
.field input { border-color: transparent; color: var(--c-ink); text-align: start; }
.check { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.check input { inline-size: 20px; block-size: 20px; margin: 2px 0 0; accent-color: var(--c-accent); flex: none; }
.check a { color: #fff; }
.newsletter .btn--accent { background: var(--c-accent); color: var(--c-ink); justify-self: start; }
.newsletter .btn--accent:hover { background: #ff4a78; }
.newsletter__msg { min-block-size: 1.5em; font-weight: 700; font-size: var(--fs-sm); }
.newsletter__msg.is-success { color: var(--c-up); }
.newsletter__msg.is-error { color: #ffd0da; }
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Section blocks */
.section-block { border-block-start: 1px solid var(--c-line); }
.section-block .section-head { border-block-end-color: var(--sec); }

/* ==========================================================================
   7. Archive / category
   ========================================================================== */
.archive-head { background: var(--c-paper); padding-block: var(--s-6) var(--s-6); border-block-end: 4px solid var(--sec, var(--c-navy)); }
.archive-head__eyebrow { font-weight: 700; color: var(--c-muted); }
.archive-head__title { font-size: var(--fs-d-4xl); line-height: 1; display: flex; align-items: center; gap: var(--s-3); margin-block: var(--s-2) var(--s-3); }
.archive-head__title .section-head__dot { inline-size: 20px; block-size: 20px; }
.archive-head__desc { font-size: var(--fs-lg); color: var(--c-ink-2); max-inline-size: 44rem; }
.archive-head__count { margin-block-start: var(--s-3); font-size: var(--fs-sm); color: var(--c-muted); }
.archive-head .search-form { margin-block-start: var(--s-5); max-inline-size: 40rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); }
.empty { padding-block: var(--s-7); font-size: var(--fs-lg); color: var(--c-muted); }

.pagination { margin-block-start: var(--s-7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding-inline: var(--s-3); border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.pagination a.page-numbers:hover { border-color: var(--c-navy); }

/* ==========================================================================
   8. Article
   ========================================================================== */
.progress { position: fixed; inset-block-start: 0; inset-inline: 0; block-size: 4px; z-index: 50; pointer-events: none; }
.admin-bar .progress { inset-block-start: 32px; }
.progress__bar { display: block; block-size: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: right center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); margin-block-end: var(--s-4); }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--s-2); color: #9a9284; }
.crumbs a { color: var(--c-muted); }
.article__head { padding-block: var(--s-7) var(--s-5); display: grid; gap: var(--s-4); justify-items: start; }
.article__title { font-size: var(--fs-d-4xl); line-height: .98; }
.article__deck { font-size: var(--fs-xl); line-height: 1.55; color: var(--c-ink-2); }
.article__byline { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); padding-block-start: var(--s-3); border-block-start: 1px solid var(--c-line); inline-size: 100%; }
.article__author { font-weight: 700; color: var(--c-ink); }
.article__hero { margin-block: 0 var(--s-6); }
.article__hero img { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--focus, 50% 35%); border-radius: var(--radius); }
.article__hero figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-block-start: var(--s-2); }
.article__layout { display: grid; grid-template-columns: 1fr minmax(0, var(--max-narrow)) 1fr; gap: var(--s-6); }
.article__share { grid-column: 1; justify-self: end; }
.article__share .share { position: sticky; inset-block-start: calc(var(--header-h) + var(--s-6)); flex-direction: column; }
.article__body { grid-column: 2; }
.article__share-end { margin-block-start: var(--s-6); }

.prose { font-size: var(--fs-lg); line-height: 1.85; color: var(--c-ink); }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { font-size: var(--fs-d-2xl); line-height: 1.05; margin-block-start: 1.8em; }
.prose h3 { font-family: var(--f-body); font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; margin-block-start: 1.5em; }
.prose a { color: var(--c-accent-ink); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-block-start: .4em; }
.prose .article-lead { font-size: var(--fs-xl); line-height: 1.7; }
.prose > p:first-child::first-letter, .prose > .article-lead:first-child::first-letter {
  float: inline-start; font-family: var(--f-display); font-weight: 700; font-synthesis: none; font-size: 5.4em; line-height: .78; margin-inline-end: .08em; margin-block-start: .08em; color: var(--sec, var(--c-accent));
}
.pullquote { margin-block: 2em; margin-inline: 0; padding-block: var(--s-5); padding-inline: var(--s-5) 0; border-block: 2px solid var(--c-ink); position: relative; }
.pullquote::before { content: "״"; position: absolute; inset-block-start: -0.18em; inset-inline-start: 0; font-family: var(--f-display); font-size: 5rem; line-height: 1; color: var(--sec, var(--c-accent)); }
.pullquote p { font-family: var(--f-display); font-weight: 700; font-synthesis: none; font-size: var(--fs-d-2xl); line-height: 1.12; padding-inline-start: 2.2rem; }
.pullquote cite { display: block; margin-block-start: var(--s-3); padding-inline-start: 2.2rem; font-style: normal; font-size: var(--fs-sm); color: var(--c-muted); }
.inline-media { margin-block: 2em; margin-inline: 0; }
.inline-media img { inline-size: 100%; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--focus, 50% 40%); }
.inline-media figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-block-start: var(--s-2); line-height: 1.5; }
.article-sources { font-size: var(--fs-sm); line-height: 1.7; color: var(--c-muted); padding: var(--s-4); background: var(--c-paper); border-radius: var(--radius-sm); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags a { font-size: var(--fs-sm); color: var(--c-muted); }

.share { display: flex; align-items: center; gap: var(--s-2); }
.share__label { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }
.share__btn { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; color: var(--c-navy); cursor: pointer; transition: background-color .15s, color .15s; }
.share__btn svg { inline-size: 20px; block-size: 20px; fill: currentColor; }
.share__btn:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.share__btn--whatsapp { background: #e8f8ee; border-color: #bfe8cf; color: #0b6b35; }
.share__status { font-size: var(--fs-sm); font-weight: 700; color: #0b6b35; min-inline-size: 1px; }

.author-card { display: flex; gap: var(--s-4); align-items: flex-start; margin-block-start: var(--s-7); padding: var(--s-5); background: var(--c-paper); border-radius: var(--radius); font-size: var(--fs-md); line-height: 1.6; }
.author-card img { flex: none; inline-size: 56px; block-size: 56px; padding: 8px; background: #fff; border-radius: 50%; }
.author-card__name { font-weight: 700; }
.author-card__bio { color: var(--c-ink-2); }
.related { background: var(--c-paper); }

/* Pages / 404 */
.page-article__body { padding-block-end: var(--s-8); }
.a11y-contact { list-style: none; padding: 0; }
.notfound { padding-block: var(--s-8) var(--s-6); display: grid; gap: var(--s-4); }
.notfound__code { font-family: var(--f-display); font-weight: 700; font-size: clamp(6.5rem, 4rem + 12vw, 13rem); line-height: .9; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
mark { background: #fff1b8; padding: 0 .2em; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { background: var(--c-navy); color: rgb(255 255 255 / 88%); margin-block-start: var(--s-7); position: relative; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 4px; background: var(--grad-brand); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
.site-footer__brand img { inline-size: 180px; }
.site-footer__tag { margin-block-start: var(--s-4); font-family: var(--f-display); font-size: var(--fs-d-xl); font-weight: 700; font-synthesis: none; color: #fff; line-height: 1.1; }
.site-footer__h { font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; color: rgb(255 255 255 / 80%); margin-block-end: var(--s-3); }
.site-footer__list { list-style: none; display: grid; gap: var(--s-2); }
.site-footer__list a { color: #fff; text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__small { font-size: var(--fs-sm); line-height: 1.6; }
.site-footer__bottom { border-block-start: 1px solid rgb(255 255 255 / 14%); padding-block: var(--s-4); font-size: var(--fs-sm); }
.site-footer__bottom .wrap { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.to-top { color: #fff; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .article__layout { grid-template-columns: minmax(0, 1fr); }
  .article__share { display: none; }
  .article__body { grid-column: 1; max-inline-size: var(--max-narrow); margin-inline: auto; inline-size: 100%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header__row { gap: var(--s-2); }
  .brand { margin-inline: auto; }
  .brand img { inline-size: 132px; }
  .site-header__actions { margin-inline-start: 0; }
  .cat-strip { display: block; border-block-start: 1px solid var(--c-line); }
  .cat-strip__list { position: relative; display: flex; gap: var(--s-2); list-style: none; overflow-x: auto; padding-block: var(--s-2); scrollbar-width: none; }
  .cat-strip__list::-webkit-scrollbar { display: none; }
  .cat-strip__list a { display: inline-flex; align-items: center; gap: var(--s-2); min-block-size: 36px; padding-inline: var(--s-4); border: 1px solid var(--c-line); border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; text-decoration: none; color: var(--c-navy); }
  .cat-strip__list a::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--sec, var(--c-navy)); }
  .cat-strip__list .current-menu-item a { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
  .feature, .feature--section, .feature--archive, .most-read__grid { grid-template-columns: 1fr; }
  .feature > .card .card__media { flex: none; aspect-ratio: 16 / 9; }
  .feature--section > .card--standard { margin-block-end: var(--s-4); }
  .feature--section .feature__side > .card--compact:first-child { border-block-start: 1px solid var(--c-line); padding-block-start: var(--s-4); }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .block { padding-block: var(--s-6); }
  /* Cover: art-directed image on top, copy below – text never sits on faces */
  .cover { display: block; min-block-size: 0; }
  .cover__media { position: relative; aspect-ratio: 1 / 1; }
  .cover__media .pic, .cover__media img { position: absolute; }
  .cover__media img { object-position: var(--focus-m, 50% 25%); }
  .cover__shade { display: none; }
  .cover__media::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 35%; background: linear-gradient(to bottom, transparent, var(--c-navy-2)); }
  .cover__inner { padding-block: var(--s-4) var(--s-6); }
  .cover__copy { gap: var(--s-3); }
  .cover__deck { font-size: var(--fs-md); }
  .archive-grid { grid-template-columns: 1fr; }
  .card--lead .card__title { font-size: var(--fs-d-2xl); }
  .card--secondary .card__title { font-size: var(--fs-d-xl); }
  .ticker__inner { gap: var(--s-2); }
  .ticker__list { inline-size: 100%; flex-basis: 100%; }
  .article__head { padding-block-start: var(--s-5); }
  .prose { font-size: 1.125rem; }
  .pullquote p { font-size: var(--fs-d-xl); }
  .site-footer__grid { grid-template-columns: 1fr; padding-block-start: var(--s-7); }
  .share { flex-wrap: wrap; }
}
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { inset-block-start: 0; } }

/* 4.0.4: stacked card lists in category sections (home "עסקים" ↓) and category/archive grids –
   ~40px between cards with a centred hairline, and a tighter image→pill gap so text belongs to its own photo. */
:root { --c-divider: #e5e7eb; }
.feature--section .card { gap: 10px; }
@media (min-width: 901px) {
  .feature--section .feature__side { justify-content: flex-start; }
  .feature--section .feature__side > .card--compact { gap: 10px; padding-block-end: 20px; margin-block-end: 20px; border-block-end: 1px solid var(--c-divider); }
  .feature--section .feature__side > .card--compact:last-child { padding-block-end: 0; margin-block-end: 0; border-block-end: 0; }
}
@media (max-width: 900px) {
  .feature--section { gap: 0; }
  .feature--section > .card--standard { margin-block-end: 0; padding-block-end: 20px; border-block-end: 1px solid var(--c-divider); }
  .feature--section .feature__side > .card--compact,
  .feature--section .feature__side > .card--compact:first-child { padding-block: 20px; border-block-start: 0; border-block-end: 1px solid var(--c-divider); }
  .feature--section .feature__side > .card--compact:last-child { padding-block-end: 0; border-block-end: 0; }
}
@media (max-width: 760px) {
  .archive-grid { row-gap: 0; }
  .archive-grid > .card { gap: 10px; padding-block-end: 20px; margin-block-end: 20px; border-block-end: 1px solid var(--c-divider); }
  .archive-grid > .card:last-child { padding-block-end: 0; margin-block-end: 0; border-block-end: 0; }
  .archive-grid > .card--noimg { padding-block-end: var(--s-5); } /* keeps its own boxed padding */
}

@media print {
  .site-header, .site-footer, .share, .newsletter, .related, .progress, .ticker, .drawer { display: none; }
  .prose { font-size: 12pt; }
}

/* ==========================================================================
   Accessibility toolbar (inc/a11y.php + assets/js/a11y.js) – built in, no overlay
   ========================================================================== */
.a11y { position: fixed; inset-block-end: var(--s-4); z-index: 55; }
.a11y--left { left: 0; }
.a11y--right { right: 0; }
/* Edge tab: 34×48 flush to the screen edge, so it sits in the page gutter instead of over text (lines are ragged on that side in RTL). */
.a11y__btn { display: grid; place-items: center; inline-size: 34px; block-size: 48px; padding: 0; border: 2px solid #fff; background: var(--c-navy); color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgb(16 24 32 / 30%); }
.a11y--left .a11y__btn { border-inline-end: 0; border-radius: 0 24px 24px 0; }
.a11y--right .a11y__btn { border-inline-start: 0; border-radius: 24px 0 0 24px; }
.a11y__btn svg { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.a11y__btn svg circle { fill: currentColor; stroke: none; }
.a11y__btn:hover { background: var(--c-navy-2); }
.a11y__btn:focus-visible, .a11y__panel :focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.a11y__panel { position: absolute; inset-block-end: calc(100% + var(--s-3)); inline-size: min(340px, calc(100vw - 2rem)); max-block-size: calc(100vh - 6rem); overflow: auto; padding: var(--s-4); background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 1rem; line-height: 1.4; }
.a11y--left .a11y__panel { left: var(--s-2); }
.a11y--right .a11y__panel { right: var(--s-2); }
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-block-end: var(--s-3); }
.a11y__title { font-family: var(--f-body); font-size: 1.125rem; line-height: 1.2; }
.a11y__close { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border: 0; border-radius: 50%; background: var(--c-paper); cursor: pointer; }
.a11y__close svg { inline-size: 20px; block-size: 20px; stroke: currentColor; stroke-width: 2; }
.a11y__size { display: flex; align-items: center; gap: var(--s-2); padding-block: var(--s-2) var(--s-3); border-block-end: 1px solid var(--c-line); }
.a11y__size span { flex: 1; font-weight: 700; white-space: nowrap; }
.a11y__size output { min-inline-size: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y__panel button { font: inherit; color: var(--c-ink); }
.a11y__size button, .a11y__foot button { min-block-size: 40px; padding: 0 var(--s-3); border: 1px solid var(--c-ink-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 700; }
.a11y__opts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding-block: var(--s-3); }
.a11y__opts button { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); inline-size: 100%; min-block-size: 64px; padding: var(--s-2); border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-paper); cursor: pointer; font-size: .9375rem; line-height: 1.2; text-align: center; }
.a11y__opts button[aria-pressed="true"] { background: var(--c-navy); color: #fff; border-color: var(--c-navy); box-shadow: inset 0 0 0 2px #fff; }
.a11y__ico { inline-size: 20px; block-size: 20px; border-radius: 50%; border: 2px solid currentColor; }
.a11y__ico--contrast { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.a11y__ico--gray { background: linear-gradient(90deg, #555, #ccc); }
.a11y__ico--invert { background: linear-gradient(90deg, transparent 50%, currentColor 50%); transform: rotate(45deg); }
.a11y__ico--links { border-radius: 0; border-width: 0 0 3px; }
.a11y__ico--font::before { content: "א"; display: block; font: 700 14px/16px var(--f-body); text-align: center; }
.a11y__ico--font { border: 0; }
.a11y__ico--spacing { border-radius: 0; border-width: 2px 0; }
.a11y__ico--motion { border-radius: 2px; border-width: 0 5px; }
.a11y__ico--cursor { border-radius: 0 50% 50%; }
.a11y__ico--focus { border-style: dashed; }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block-start: var(--s-3); border-block-start: 1px solid var(--c-line); }
.a11y__foot a { font-weight: 700; color: var(--c-accent-ink); }
.has-a11y .site-footer { padding-block-end: 5rem; }
@media (max-width: 600px) {
  .a11y { inset-block-end: var(--s-3); }
  .a11y__panel { position: fixed; inset-inline: var(--s-2); left: var(--s-2) !important; right: var(--s-2) !important; inset-block-end: calc(48px + var(--s-5)); inline-size: auto; max-block-size: calc(100vh - 48px - 3rem); max-block-size: calc(100dvh - 48px - 3rem); }
}
@media print { .a11y { display: none; } }

/* Preferences (classes on <html>, set before paint by the inline head script) */
html.a11y-contrast { --c-ink: #fff; --c-ink-2: #fff; --c-muted: #fff; --c-paper: #000; --c-paper-2: #000; --c-white: #000; --c-line: #fff; --c-navy: #000; --c-navy-2: #000; --c-accent: #ff0; --c-accent-ink: #ff0; --c-focus: #ff0; --grad-brand: linear-gradient(#ff0, #ff0); color-scheme: dark; }
html.a11y-contrast body, html.a11y-contrast .site-header, html.a11y-contrast .drawer__panel, html.a11y-contrast .search-panel, html.a11y-contrast .a11y__panel { background: #000 !important; }
html.a11y-contrast body :where(*:not(picture, img, svg, svg *, .cover__shade, .cover__media)) { background-color: transparent !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast body :is(a, a *):not(svg *) { color: #ff0 !important; }
html.a11y-contrast :is(.brand img, .drawer__head img) { filter: brightness(0) invert(1); }
html.a11y-contrast :is(input, select, textarea, button) { border: 1px solid #fff !important; }
html.a11y-contrast .cover__shade { background: rgb(0 0 0 / 72%) !important; }
html.a11y-contrast :is(.btn, .chip, .pagination a, .pagination span) { border: 2px solid currentColor !important; }
html.a11y-contrast .a11y__opts button[aria-pressed="true"] { background: #ff0 !important; color: #000 !important; }
html.a11y-contrast .a11y__btn { background: #000 !important; border-color: #ff0 !important; color: #ff0 !important; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-invert :is(picture, img:not(picture img), video) { filter: invert(1) hue-rotate(180deg); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em; }
html.a11y-links a:not(:has(img, picture, svg)) { background: #fff3a0 !important; color: #000 !important; box-shadow: 0 0 0 2px #fff3a0 !important; }
html.a11y-font { --f-display: "Rubik", "Rubik Fallback", Arial, sans-serif; --fs-d-lg: var(--fs-lg); --fs-d-xl: var(--fs-xl); --fs-d-2xl: var(--fs-2xl); --fs-d-3xl: var(--fs-3xl); --fs-d-4xl: var(--fs-4xl); }
html.a11y-font :is(h1, h2, h3, h4, .cover__title, .article__title, .card__title, .pullquote p) { line-height: 1.25 !important; }
html.a11y-spacing body :is(p, li, dd, blockquote, figcaption, td, label, .card__excerpt) { line-height: 1.9 !important; letter-spacing: .04em !important; word-spacing: .16em !important; }
html.a11y-spacing body :is(h1, h2, h3, h4) { line-height: 1.3 !important; letter-spacing: .02em !important; }
html.a11y-spacing .prose p { margin-block-end: 2em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1 3.6 7-2.6 1.3-3.6-7L4 20z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 6 3, auto !important; }
html.a11y-focus :focus { outline: 4px solid #ffbf00 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #000 !important; }
