/* Hebrew blog — "התחקיר השבועי". Standalone: does not load styles.css (whose nav is LTR-specific).
   Colours follow the main site: near-black, off-white, lime accent. Logical properties only (RTL). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #E8FF47;
  --black: #0a0a0a;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #e4e4e4;
  --paper: #fafafa;
  --card: #ffffff;
  --link: #2554a8;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Heebo', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
/* numbers isolated as LTR by the build: a line break inside "2020–2025" would scramble it */
bdi { white-space: nowrap; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.wrap.narrow { max-width: 760px; }

/* header */
.top { background: var(--black); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 30px; height: 30px; }
.top-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.top-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.top-links a:hover { color: #fff; }
.top-links a.cta { color: var(--black); background: var(--accent); padding: 7px 16px; border-radius: 999px; font-weight: 700; }

/* page heading */
.hero { background: var(--black); color: #fff; padding-block: 56px 64px; }
.hero h1 { font-size: 2.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.kicker {
  display: inline-block; margin-block-end: 18px; color: var(--black); background: var(--accent);
  font-weight: 700; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; text-decoration: none;
}
.meta { margin-block-start: 18px; color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.lead { margin-block-start: 16px; color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 620px; }

/* article */
.prose { padding-block: 48px 8px; }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { font-size: 1.55rem; line-height: 1.3; margin-block-start: 1.8em; font-weight: 800; }
.prose h3 { font-size: 1.2rem; margin-block-start: 1.5em; font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-block-start: 0.4em; }
.prose blockquote { border-inline-start: 4px solid var(--accent); background: #f1f1ec; padding: 14px 20px; border-radius: 4px; }
.prose hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 2em; }
.prose figure { margin-block: 2em; }
.prose figure img, .prose img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); margin-inline: auto; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-block-start: 8px; text-align: center; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: start; padding: 8px 12px; border-block-end: 1px solid var(--line); }
.prose th { font-weight: 700; background: #f1f1f1; }
.prose small, .prose .note { color: var(--muted); font-size: 0.9rem; }

/* call to action */
.cta-box {
  margin-block-start: 48px; background: var(--black); color: rgba(255,255,255,0.85); border-radius: 12px;
  padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.cta-box strong { color: #fff; }
.btn { background: var(--accent); color: var(--black); font-weight: 700; padding: 10px 22px; border-radius: 999px; text-decoration: none; }
.back { margin-block: 28px 64px; }
.back a { text-decoration: none; }

/* index list */
.list { padding-block: 40px 40px; display: flex; flex-direction: column; gap: 18px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 28px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #b8c400; transform: translateY(-2px); }
.card time { color: var(--muted); font-size: 0.9rem; }
.card h2 { font-size: 1.35rem; line-height: 1.35; margin-block: 6px 8px; font-weight: 800; }
.card p { color: var(--muted); }

/* footer */
.foot { background: var(--black); color: rgba(255,255,255,0.6); font-size: 0.9rem; padding-block: 32px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot strong { color: #fff; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: rgba(255,255,255,0.75); text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .top-links { gap: 14px; font-size: 0.85rem; }
  .top-links a:not(.cta):first-child { display: none; }
  .hero { padding-block: 36px 40px; }
  .hero h1 { font-size: 1.85rem; }
  .cta-box { padding: 22px; }
  .card { padding: 20px; }
}

/* newsletter signup */
.signup {
  margin-block-start: 48px; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent);
  border-radius: 12px; padding: 28px 32px;
}
.signup h2 { font-size: 1.35rem; line-height: 1.35; font-weight: 800; }
.signup > p { color: var(--muted); margin-block-start: 4px; }
.signup-form { display: flex; gap: 10px; margin-block-start: 16px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 16px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff;
  text-align: start;
}
.signup-form input[type="email"]::placeholder { color: #9a9a9a; direction: rtl; text-align: right; }
.signup-form input[type="email"]:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.signup-form .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.signup-form .btn:disabled { opacity: 0.6; cursor: wait; }
.signup-msg:empty { display: none; }
.signup-msg { margin-block-start: 12px; font-weight: 500; }
.signup-msg.ok { color: #1d6b38; }
.signup-msg.err { color: #a12a2a; }
.signup-note { font-size: 0.85rem; margin-block-start: 12px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.index-signup { padding-block-end: 72px; }
.index-signup .signup { margin-block-start: 0; }

@media (max-width: 640px) {
  .signup { padding: 22px; }
  .signup-form { flex-direction: column; }
}
