/* ==========================================================================
   היום השביעי — The Seventh Day
   Weekend puzzle supplement on a game table: newsprint cream paper, felt green,
   coral accents, a faint graph-paper / sudoku grid, die pips and board squares.
   RTL-first, logical properties throughout. Prefix: hs-
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset per script) ---------- */
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-hebrew.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-hebrew.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik Maze";
  src: url("../fonts/rubik-maze-hebrew.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* ---------- Tokens ---------- */
:root {
  --felt: #1B4D3E;
  --felt-deep: #133A2E;
  --felt-mid: #2E6A57;
  --felt-soft: #DCE8E1;
  --coral: #F25C54;          /* fills and shapes only — never small text on cream */
  --coral-ink: #B3362F;      /* coral for text/lines on light surfaces (5.3:1 on paper) */
  --coral-tint: #FDE3DF;
  --peach: #FFD9C2;          /* accent text on felt (7.3:1) */
  --sand: #E6D6AE;
  --paper: #F7F1E3;
  --paper-2: #EFE6D0;
  --card: #FFFCF5;
  --ink: #1F2A26;
  --muted: #55625B;
  --line: rgba(27, 77, 62, .16);
  --line-strong: rgba(27, 77, 62, .32);
  --focus: var(--coral-ink);

  --font-body: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --font-title: "Rubik", "Assistant", Arial, sans-serif;
  --font-logo: "Rubik Maze", "Rubik", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(19, 58, 46, .06), 0 8px 22px -14px rgba(19, 58, 46, .45);
  --shadow-lift: 0 2px 0 rgba(19, 58, 46, .08), 0 18px 34px -18px rgba(19, 58, 46, .55);

  /* graph paper: fine cells + a heavier line every third cell (a sudoku box) */
  --grid-fine: rgba(27, 77, 62, .07);
  --grid-box: rgba(27, 77, 62, .12);
  --graph:
    linear-gradient(var(--grid-box) 1.5px, transparent 1.5px) 0 0 / 72px 72px,
    linear-gradient(90deg, var(--grid-box) 1.5px, transparent 1.5px) 0 0 / 72px 72px,
    linear-gradient(var(--grid-fine) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px) 0 0 / 24px 24px;
}
@media (min-width: 700px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--felt); text-decoration-color: color-mix(in srgb, var(--coral) 70%, transparent); text-underline-offset: .22em; }
a:hover { color: var(--coral-ink); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.25; color: var(--felt-deep); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.hs-main:focus { outline: none; }
.hs-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hs-skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -80px; z-index: 100;
  background: var(--felt); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none;
}
.hs-skip:focus { inset-block-start: 0; color: #fff; outline-color: var(--peach); }
.hs-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hs-wrap--mid { max-width: 1000px; }
.hs-wrap--narrow { max-width: 900px; }
.hs-icon { flex: none; }
.hs-center { text-align: center; margin-block-start: 32px; }
.page-template-default .hs-band .hs-wrap { max-width: 900px; }
.hs-mt { margin-block-start: 40px; }

/* Die faces */
.hs-die { flex: none; display: inline-block; vertical-align: middle; }
.hs-die__body { fill: var(--die-bg, var(--card)); stroke: var(--die-line, var(--felt)); stroke-width: 2; }
.hs-die__pips { fill: var(--die-pip, var(--felt)); }

/* ---------- Header ---------- */
.hs-header { position: relative; z-index: 20; background: var(--paper); }
.hs-header::after { /* the board track along the header edge */
  content: ""; display: block; height: 6px;
  background:
    repeating-linear-gradient(90deg, var(--felt) 0 26px, transparent 26px 30px, var(--coral) 30px 56px, transparent 56px 60px, var(--sand) 60px 86px, transparent 86px 90px);
  opacity: .9;
}
.hs-header__bar { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.hs-header__brand { display: inline-flex; text-decoration: none; color: inherit; flex: none; border-radius: 12px; }
.hs-logo { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.hs-logo .hs-mark { width: 44px; height: 44px; }
.hs-logo__word {
  font-family: var(--font-logo); font-weight: 400; font-size: 1.95rem; line-height: 1;
  color: var(--felt); -webkit-text-stroke: .8px var(--felt); letter-spacing: .01em;
  padding-block-start: .08em;
}
.hs-logo--inverse .hs-logo__word { color: var(--paper); -webkit-text-stroke-color: var(--paper); }

.hs-nav { margin-inline-start: auto; }
.hs-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.hs-nav__list a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-title); font-weight: 500; font-size: .98rem; color: var(--felt-deep); text-decoration: none;
}
.hs-nav__list a:hover { background: var(--felt-soft); color: var(--felt-deep); }
.hs-nav__list .current-menu-item > a,
.hs-nav__list .current-menu-ancestor > a,
.hs-nav__list a[aria-current] { box-shadow: inset 0 -3px 0 var(--coral); border-end-start-radius: 4px; border-end-end-radius: 4px; }
.hs-nav__search { display: none; }

.hs-header__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.hs-iconbtn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--felt-deep); cursor: pointer;
  text-decoration: none; padding: 0;
}
.hs-iconbtn:hover { background: var(--felt); color: var(--paper); border-color: var(--felt); }
.hs-iconbtn[aria-expanded="true"] { background: var(--felt); color: var(--paper); border-color: var(--felt); }
.hs-menu-toggle { display: none; }
.hs-menu-toggle__close { display: none; }
.is-menu-open .hs-menu-toggle__open { display: none; }
.is-menu-open .hs-menu-toggle__close { display: inline; }

.hs-search-panel { background: var(--paper-2); border-block-end: 1px solid var(--line); padding-block: 18px; }
.hs-search-panel .hs-search { max-width: 680px; }

@media (max-width: 1179.98px) {
  .hs-header__bar { min-height: 70px; }
  .hs-js .hs-menu-toggle { display: inline-grid; }
  .hs-js .hs-nav {
    display: none; position: absolute; inset-inline: 0; inset-block-start: 100%;
    background: var(--paper); border-block-end: 3px solid var(--felt);
    box-shadow: 0 24px 40px -24px rgba(19, 58, 46, .5);
    padding: 12px var(--gutter) 22px; margin: 0; max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .hs-js .is-menu-open .hs-nav { display: block; }
  .hs-js .hs-nav__list { flex-direction: column; gap: 0; max-width: 680px; margin-inline: auto; }
  .hs-js .hs-nav__list a { min-height: 50px; font-size: 1.08rem; border-block-end: 1px dashed var(--line); border-radius: 0; }
  .hs-js .hs-nav__search { display: block; max-width: 680px; margin: 16px auto 0; }
  .hs-no-js .hs-header__bar { flex-wrap: wrap; padding-block: 10px; }
  .hs-no-js .hs-nav { order: 3; width: 100%; }
}
@media (max-width: 520px) {
  .hs-logo .hs-mark { width: 38px; height: 38px; }
  .hs-logo__word { font-size: 1.55rem; -webkit-text-stroke-width: .7px; }
  .hs-header__bar { gap: 10px; }
  .hs-js .hs-search-toggle { display: none; } /* search lives in the menu drawer on phones */
}

/* ---------- Search form ---------- */
.hs-search { display: flex; gap: 8px; width: 100%; }
.hs-search__input {
  flex: 1; min-width: 0; min-height: 50px; padding: 10px 16px; border-radius: 12px;
  border: 2px solid var(--line-strong); background: var(--card); color: var(--ink);
  font: inherit; font-size: 1.05rem;
}
.hs-search__input::placeholder { color: var(--muted); opacity: 1; }
.hs-search__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--felt); }
.hs-search__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--felt); color: #fff; font-family: var(--font-title); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.hs-search__btn:hover { background: var(--felt-deep); }

/* ---------- Buttons, kickers, section heads ---------- */
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 12px; background: var(--felt); color: #fff; text-decoration: none;
  font-family: var(--font-title); font-weight: 600;
}
.hs-btn:hover { background: var(--felt-deep); color: #fff; }
.hs-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-block-end: 6px;
  font-family: var(--font-title); font-weight: 600; font-size: .9rem; color: var(--coral-ink); letter-spacing: .01em;
}
.hs-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--coral); }
.hs-section { padding-block: 56px; }
.hs-section--tint { background: var(--paper-2); }
.hs-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 26px; }
.hs-section__title { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; }
.hs-section__title--sm { font-size: 1.35rem; margin-block-end: 16px; }
.hs-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-family: var(--font-title); font-weight: 600; text-decoration: none; color: var(--felt);
  border-block-end: 2px solid var(--coral);
}
.hs-more:hover { color: var(--coral-ink); }

/* ---------- Homepage: the game table + board ---------- */
.hs-felt {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--felt);
  padding-block: 32px 40px;
  --focus: var(--peach);
}
.hs-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.hs-start {
  grid-column: 1 / -1;
  position: relative;
  background: var(--graph), var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 26px 22px 24px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), var(--shadow);
  --focus: var(--coral-ink);
}
.hs-start::before { /* inner dashed rule: the start square */
  content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--line-strong); border-radius: 14px; pointer-events: none;
}
.hs-start > * { position: relative; }
.hs-start__kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 14px; border-radius: 999px;
  background: var(--coral); color: var(--ink); font-family: var(--font-title); font-weight: 700; font-size: .88rem;
}
.hs-start__title { margin-block: 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.hs-start__brand {
  font-family: var(--font-logo); font-weight: 400; color: var(--felt);
  font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1; -webkit-text-stroke: 1px var(--felt); letter-spacing: .01em;
}
.hs-start__line { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--felt-deep); line-height: 1.35; }
.hs-start__text { font-size: 1.04rem; line-height: 1.75; }
.hs-start__text p + p { margin-block-start: .8em; }
.hs-start__text strong { color: var(--felt-deep); }
.hs-start__go {
  display: flex; align-items: center; gap: 8px; margin-block-start: 16px;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: var(--coral-ink);
}

/* Board squares */
.hs-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--card); color: var(--ink);
  border-radius: 14px; padding: 0 14px 14px; overflow: hidden;
  box-shadow: var(--shadow);
  border-block-start: 9px solid var(--band, var(--coral));
  --focus: var(--coral-ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hs-tile--1, .hs-tile--5, .hs-tile--9 { --band: var(--coral); }
.hs-tile--2, .hs-tile--6, .hs-tile--10 { --band: var(--sand); }
.hs-tile--3, .hs-tile--7 { --band: var(--felt-mid); }
.hs-tile--4, .hs-tile--8 { --band: #F6A99A; }
.hs-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hs-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-block-start: 12px; }
.hs-tile__num {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 6px; border-radius: 10px;
  background: var(--felt); color: var(--paper); font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; line-height: 1;
}
.hs-tile__inset { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-strong); }
.hs-tile__inset img { width: 100%; height: 100%; object-fit: cover; }
.hs-tile__name { font-size: 1.12rem; font-weight: 700; margin-block-start: 4px; }
.hs-tile__name a { color: var(--felt-deep); text-decoration: none; }
.hs-tile__name a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; } /* whole square is the link */
.hs-tile__name a:focus-visible { outline: none; }
.hs-tile:has(a:focus-visible) { outline: 3px solid var(--peach); outline-offset: 3px; }
.hs-tile__count { display: flex; align-items: center; gap: 7px; font-family: var(--font-title); font-weight: 500; font-size: .9rem; color: var(--muted); }
.hs-tile__newest {
  margin-block-start: auto; padding-block-start: 8px; border-block-start: 1px dashed var(--line);
  font-size: .93rem; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-tile__label { font-family: var(--font-title); font-weight: 600; font-size: .78rem; color: var(--coral-ink); margin-inline-end: 4px; }

/* Special squares: all guides / writers */
.hs-special {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 120px; padding: 16px; border-radius: 14px; text-decoration: none;
  background: var(--coral); color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hs-special--writers { background: var(--sand); }
.hs-special:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hs-special:focus-visible { outline-color: var(--peach); outline-offset: 3px; }
.hs-special__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 252, 245, .55); color: var(--felt-deep); }
.hs-special__title { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.hs-special__meta { font-weight: 600; font-size: .95rem; }

@media (max-width: 519.98px) {
  .hs-tile { padding-inline: 11px; }
  .hs-tile__inset { width: 50px; height: 50px; }
  .hs-tile__num { min-width: 32px; height: 32px; font-size: 1rem; }
  .hs-tile__name { font-size: 1rem; }
  .hs-tile__newest { display: none; }
  .hs-special { min-height: 104px; }
}
@media (min-width: 700px) {
  .hs-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hs-start { padding: 34px 34px 30px; }
}
/* Full board from 1000px: ten squares + two special squares around the start panel.
   Track (RTL): 1–4 across the top, 5–7 down the far side, 8–10 back along the bottom,
   then up the near side through the two special squares to the start. */
@media (min-width: 1000px) {
  .hs-felt { padding-block: 44px 52px; }
  .hs-board { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 16px; }
  .hs-start { grid-column: 2 / span 2; grid-row: 2 / span 2; padding: 38px 40px 32px; align-self: stretch; }
  .hs-tile--1 { grid-area: 1 / 1; }
  .hs-tile--2 { grid-area: 1 / 2; }
  .hs-tile--3 { grid-area: 1 / 3; }
  .hs-tile--4 { grid-area: 1 / 4; }
  .hs-tile--5 { grid-area: 2 / 4; }
  .hs-tile--6 { grid-area: 3 / 4; }
  .hs-tile--7 { grid-area: 4 / 4; }
  .hs-tile--8 { grid-area: 4 / 3; }
  .hs-tile--9 { grid-area: 4 / 2; }
  .hs-tile--10 { grid-area: 4 / 1; }
  .hs-special--writers { grid-area: 3 / 1; }
  .hs-special--all { grid-area: 2 / 1; }
  .hs-special { min-height: 0; }
}

/* Rest of the front page text: a sheet sliding out from under the board */
.hs-rules { padding-block: 0 8px; }
.hs-sheet {
  background: var(--card); border-radius: 0 0 22px 22px; box-shadow: var(--shadow);
  padding: 30px 20px 36px; border: 1px solid var(--line); border-block-start: 0;
}
.hs-rules .hs-sheet { margin-inline: auto; max-width: 1080px; position: relative; }
.hs-rules .hs-sheet::before { /* perforation where the sheet tears from the board */
  content: ""; position: absolute; inset-inline: 18px; inset-block-start: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
}
@media (min-width: 700px) { .hs-sheet { padding: 44px 56px 50px; } }
.hs-sheet--page { border-radius: 22px; border-block-start: 1px solid var(--line); }
.hs-prose--home > :not(.hs-tree) { max-width: 74ch; }
@media (max-width: 519.98px) { .hs-prose ul.hs-tree ul { margin-inline: 12px; } }

/* The decision tree */
.hs-prose ul.hs-tree { list-style: none; padding: 0; margin: 1.4em 0 1.8em; display: grid; gap: 18px; max-width: none; }
@media (min-width: 900px) { .hs-prose ul.hs-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.hs-prose ul.hs-tree > li {
  margin: 0; padding: 0 0 6px; background: var(--paper); border-radius: 18px; border: 1px solid var(--line);
  overflow: hidden;
}
.hs-prose ul.hs-tree > li::marker { content: none; }
.hs-prose ul.hs-tree > li > strong:first-child {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--felt); color: var(--paper); font-family: var(--font-title); font-size: 1.15rem; font-weight: 700;
}
.hs-prose ul.hs-tree > li > strong:first-child::before {
  content: "?"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--coral); color: var(--ink); font-size: 1.05rem; font-weight: 800; flex: none;
}
.hs-prose ul.hs-tree ul { list-style: none; margin: 14px 18px 10px; padding: 0 22px 0 0; padding-inline: 22px 0; position: relative; }
.hs-prose ul.hs-tree ul::before { /* the trunk */
  content: ""; position: absolute; inset-inline-start: 6px; inset-block: 0 22px; width: 2px; background: var(--line-strong);
}
.hs-prose ul.hs-tree ul li { position: relative; margin: 0 0 12px; padding: 10px 14px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); line-height: 1.65; }
.hs-prose ul.hs-tree ul li::marker { content: none; }
.hs-prose ul.hs-tree ul li::before { /* the branch */
  content: ""; position: absolute; inset-inline-start: -16px; inset-block-start: 22px; width: 16px; height: 2px; background: var(--line-strong);
}
.hs-prose ul.hs-tree ul li::after { /* the node */
  content: ""; position: absolute; inset-inline-start: -21px; inset-block-start: 18px; width: 10px; height: 10px; border-radius: 3px; background: var(--coral);
}
.hs-prose ul.hs-tree ul li > strong:first-child { color: var(--felt-deep); font-family: var(--font-title); font-weight: 700; }

/* ---------- Cards ---------- */
.hs-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
.hs-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hs-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.hs-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--graph), var(--paper-2); }
.hs-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-card__pip {
  position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex;
  filter: drop-shadow(0 3px 6px rgba(19, 58, 46, .35));
  --die-bg: var(--coral); --die-line: var(--card); --die-pip: var(--card);
}
.hs-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.hs-card__cat { font-family: var(--font-title); font-weight: 600; font-size: .86rem; color: var(--coral-ink); }
.hs-card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.hs-card__title a { color: var(--felt-deep); text-decoration: none; }
.hs-card__title a::after { content: ""; position: absolute; inset: 0; }
.hs-card__title a:focus-visible { outline: none; }
.hs-card__excerpt { color: var(--ink); font-size: .98rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hs-card__meta { margin-block-start: auto; padding-block-start: 10px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .86rem; color: var(--muted); }

/* Section marker (die + name) */
.hs-marker {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px 4px 12px; border-radius: 999px;
  background: var(--coral-tint); color: var(--felt-deep); font-family: var(--font-title); font-weight: 600; font-size: .92rem; text-decoration: none;
  --die-bg: var(--card); --die-line: var(--coral-ink); --die-pip: var(--coral-ink);
}
a.hs-marker:hover { background: var(--coral); color: var(--ink); --die-line: var(--ink); --die-pip: var(--ink); }

/* ---------- Writers ---------- */
.hs-section--writers { background: var(--graph), var(--paper-2); }
.hs-section--writers:focus { outline: none; }
.hs-writers { display: grid; gap: 20px; }
@media (min-width: 800px) { .hs-writers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
.hs-writer { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hs-writer__name { font-size: 1.3rem; font-weight: 700; }
.hs-writer__count { font-family: var(--font-title); font-weight: 500; font-size: .9rem; color: var(--coral-ink); margin-block: 2px 8px; }
.hs-writer__bio { font-size: 1rem; line-height: 1.65; }
.hs-avatar {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--felt); color: var(--paper); font-family: var(--font-title); font-weight: 700; font-size: 1.05rem;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .12);
}
.hs-avatar--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.55rem; position: relative; }
.hs-avatar--lg::after { /* a die pip in the corner of the token */
  content: ""; position: absolute; inset-block-end: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
}

/* ---------- Inner page band ---------- */
.hs-band {
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--felt);
  color: var(--paper); padding-block: 26px 36px;
  --focus: var(--peach);
}
.hs-band .hs-crumbs { color: rgba(247, 241, 227, .85); }
.hs-band .hs-crumbs a { color: var(--peach); }
.hs-band__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 14px 8px; font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: var(--peach); --die-bg: var(--felt-deep); --die-line: var(--peach); --die-pip: var(--peach); }
.hs-band__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.005em; }
.hs-band__lead { max-width: 72ch; margin-block-start: 14px; font-size: 1.1rem; line-height: 1.75; color: var(--paper); }
.hs-band__lead p + p { margin-block-start: .7em; }
.hs-band__lead a { color: var(--peach); text-decoration-color: rgba(255, 217, 194, .6); }
.hs-band__lead a:hover { color: #fff; }
.hs-band__search { max-width: 640px; margin-block-start: 20px; }
.hs-band .hs-search__input { border-color: transparent; }
.hs-band .hs-search__btn { background: var(--coral); color: var(--ink); }
.hs-band .hs-search__btn:hover { background: var(--peach); }

/* Breadcrumbs */
.hs-crumbs { font-size: .92rem; color: var(--muted); }
.hs-crumbs a { color: var(--felt); text-decoration: none; }
.hs-crumbs a:hover { text-decoration: underline; }
.hs-crumbs .breadcrumb_last { font-weight: 600; }

/* Section strip (all squares) */
.hs-strip { margin-block-start: 22px; }
.hs-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-strip a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 13px 4px 11px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--felt-deep);
  font-family: var(--font-title); font-weight: 500; font-size: .9rem; text-decoration: none;
}
.hs-strip a:hover { border-color: var(--felt); background: var(--felt-soft); color: var(--felt-deep); }
.hs-strip a[aria-current] { background: var(--coral); border-color: var(--coral); color: var(--ink); --die-line: var(--ink); --die-pip: var(--ink); }
.hs-band .hs-strip a { background: rgba(255, 255, 255, .06); border-color: rgba(247, 241, 227, .3); color: var(--paper); --die-bg: transparent; --die-line: var(--peach); --die-pip: var(--peach); }
.hs-band .hs-strip a:hover { background: rgba(255, 255, 255, .14); border-color: var(--peach); color: #fff; }
.hs-band .hs-strip a[aria-current] { background: var(--coral); border-color: var(--coral); color: var(--ink); --die-bg: var(--card); --die-line: var(--ink); --die-pip: var(--ink); }

/* ---------- Single article ---------- */
.hs-article__head { padding-block: 26px 22px; }
.hs-article__head .hs-crumbs { margin-block-end: 18px; }
.hs-article__title { font-size: clamp(2rem, 4.6vw, 3.05rem); font-weight: 800; margin-block: 14px 12px; letter-spacing: -.005em; line-height: 1.2; }
.hs-article__lead { font-size: 1.2rem; line-height: 1.65; color: var(--ink); max-width: 68ch; }
.hs-byline { display: flex; align-items: center; gap: 12px; margin-block-start: 20px; padding-block-start: 16px; border-block-start: 1.5px dashed var(--line-strong); }
.hs-byline__text { display: flex; flex-direction: column; gap: 2px; }
.hs-byline__name { font-family: var(--font-title); font-weight: 700; color: var(--felt-deep); }
.hs-byline__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; color: var(--muted); }
.hs-byline__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.hs-article__media { margin-block: 8px 0; }
.hs-article__frame {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--paper-2);
  aspect-ratio: 16 / 10; box-shadow: 0 0 0 8px var(--card), 0 0 0 9px var(--line), var(--shadow-lift);
}
.hs-article__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-article__layout { display: grid; gap: 28px; padding-block: 40px 56px; max-width: 1000px; }
.hs-article__layout.has-toc { max-width: 1000px; }
@media (min-width: 1100px) {
  .hs-article__layout.has-toc { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .hs-article__layout.has-toc .hs-toc { grid-column: 2; grid-row: 1; }
  .hs-article__layout.has-toc .hs-article__main { grid-column: 1; grid-row: 1; }
  .hs-toc { position: sticky; inset-block-start: 24px; align-self: start; }
}
.hs-article__main { min-width: 0; }
.hs-article__main .hs-prose, .hs-article__main .hs-authorbox { max-width: 70ch; }
.has-toc .hs-article__main .hs-prose, .has-toc .hs-article__main .hs-authorbox { max-width: none; }
.hs-article__layout:not(.has-toc) .hs-article__main { margin-inline: auto; width: 100%; max-width: 70ch; }

/* Table of contents — a score sheet */
.hs-toc__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hs-toc__box summary {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none;
  background: var(--graph), var(--paper-2); font-family: var(--font-title); font-weight: 700; color: var(--felt-deep);
  border-block-end: 1px solid var(--line);
}
.hs-toc__box summary::-webkit-details-marker { display: none; }
.hs-toc__box summary::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.hs-toc__box[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.hs-toc__n { font-weight: 500; font-size: .85rem; color: var(--muted); }
.hs-toc ol { list-style: none; margin: 0; padding: 8px 0; counter-reset: toc; }
.hs-toc li { counter-increment: toc; }
.hs-toc li a {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 16px;
  font-size: .95rem; line-height: 1.45; color: var(--ink); text-decoration: none; border-inline-start: 3px solid transparent;
}
.hs-toc li a::before {
  content: counter(toc); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  border: 1.5px solid var(--line-strong); font-family: var(--font-title); font-weight: 700; font-size: .8rem; color: var(--felt);
}
.hs-toc li + li a { border-block-start: 1px dashed var(--line); }
.hs-toc li a:hover { background: var(--felt-soft); }
.hs-toc li a[aria-current] { border-inline-start-color: var(--coral); background: var(--coral-tint); }
.hs-toc li a[aria-current]::before { background: var(--coral); border-color: var(--coral); color: var(--ink); }

/* ---------- Prose ---------- */
.hs-prose { font-size: 1.125rem; line-height: 1.85; }
.hs-prose > * + * { margin-block-start: 1.05em; }
.hs-prose h2 {
  position: relative; font-size: clamp(1.45rem, 2.6vw, 1.75rem); font-weight: 700; margin-block: 2em .7em;
  padding-inline-start: 26px; scroll-margin-block-start: 24px;
}
.hs-prose h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .42em; width: 14px; height: 14px; border-radius: 3px; background: var(--coral); box-shadow: 0 0 0 3px var(--coral-tint); }
.hs-prose > h2:first-child { margin-block-start: 0; }
.hs-prose h3 { font-size: 1.25rem; font-weight: 700; margin-block: 1.6em .5em; color: var(--felt); }
.hs-prose h2 + *, .hs-prose h3 + * { margin-block-start: 0; }
.hs-prose a { text-decoration-thickness: 2px; }
.hs-prose strong { font-weight: 700; color: var(--felt-deep); }
.hs-prose ul, .hs-prose ol { padding-inline-start: 1.5em; }
.hs-prose li + li { margin-block-start: .45em; }
.hs-prose ul > li::marker { color: var(--coral-ink); font-size: 1.1em; }
.hs-prose ol > li::marker { color: var(--felt); font-family: var(--font-title); font-weight: 700; }
.hs-prose blockquote { margin-inline: 0; padding: 14px 20px; border-inline-start: 4px solid var(--coral); background: var(--card); border-radius: 0 12px 12px 0; }
.hs-prose img { border-radius: 12px; }
.hs-prose figure { margin-inline: 0; }
.hs-prose figcaption { font-size: .9rem; color: var(--muted); margin-block-start: 6px; }
.hs-prose hr { border: 0; height: 10px; background: radial-gradient(circle, var(--line-strong) 2.5px, transparent 3px) center / 22px 10px repeat-x; margin-block: 2em; }
.hs-prose code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }

/* Tables: a score sheet */
.hs-tablewrap { overflow-x: auto; }
.hs-prose .hs-tablewrap { margin-block: 1.6em; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); box-shadow: var(--shadow); }
.hs-prose .hs-tablewrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hs-prose table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.55; min-width: 520px; }
.hs-prose th, .hs-prose td { padding: 11px 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.hs-prose td + td, .hs-prose th + th { border-inline-start: 1px solid var(--line); }
.hs-prose thead th { background: var(--felt); color: var(--paper); font-family: var(--font-title); font-weight: 600; font-size: .95rem; }
.hs-prose tbody tr:nth-child(even) td { background: rgba(239, 230, 208, .45); }
.hs-prose tbody tr:last-child td { border-block-end: 0; }

/* "לשבת הקרובה" — the next-free-day card */
.hs-prose .hs-nextday {
  position: relative; margin-block: 2.6em 1.6em; padding: 26px 22px 22px; border-radius: 20px;
  background: var(--coral-tint); border: 2px solid var(--coral);
  box-shadow: 6px 6px 0 rgba(242, 92, 84, .25);
}
@media (min-width: 700px) { .hs-prose .hs-nextday { padding: 30px 32px 26px; } }
.hs-nextday__tag {
  position: absolute; inset-block-start: -17px; inset-inline-start: 20px;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 12px; border-radius: 999px;
  background: var(--felt); color: var(--paper); font-family: var(--font-title); font-weight: 600; font-size: .85rem; line-height: 1.4;
}
.hs-prose .hs-nextday h2 { margin: 6px 0 10px; padding-inline-start: 0; font-size: 1.55rem; }
.hs-prose .hs-nextday h2::before { display: none; }
.hs-nextday__body > * + * { margin-block-start: .9em; }
.hs-nextday__body a { color: var(--felt-deep); }

/* "קראו גם" line */
.hs-prose .hs-readalso { padding: 14px 18px; border-radius: 12px; background: var(--felt-soft); border-inline-start: 4px solid var(--felt); }

/* Closing general-information note */
.hs-prose .hs-note {
  display: flex; gap: 10px; align-items: flex-start; margin-block-start: 1.8em; padding-block-start: 16px;
  border-block-start: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .92rem; line-height: 1.65;
}
.hs-prose .hs-note .hs-icon { margin-block-start: 3px; color: var(--felt-mid); }

/* Author box */
.hs-authorbox { display: flex; gap: 18px; align-items: flex-start; margin-block-start: 44px; padding: 22px; border-radius: var(--radius); background: var(--graph), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hs-authorbox__label { font-family: var(--font-title); font-weight: 600; font-size: .85rem; color: var(--coral-ink); }
.hs-authorbox__name { font-size: 1.3rem; font-weight: 700; margin-block: 2px 8px; }
.hs-authorbox p:last-child { font-size: 1rem; line-height: 1.65; }

/* ---------- Pagination, empty states ---------- */
.hs-pagination { margin-block-start: 40px; }
.hs-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hs-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--felt-deep); text-decoration: none;
  font-family: var(--font-title); font-weight: 600;
}
.hs-pagination .page-numbers.current { background: var(--felt); border-color: var(--felt); color: var(--paper); }
.hs-pagination a.page-numbers:hover { background: var(--felt-soft); }
.hs-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 40px 20px; border-radius: var(--radius); border: 2px dashed var(--line-strong); background: var(--card); }
.hs-empty--wide .hs-strip ul { justify-content: center; }
.hs-empty .hs-strip { margin: 0; }

/* Search-result card without an image */
.hs-card--page .hs-card__body { padding-block-start: 22px; }

/* ---------- Contact form (plugin markup, restyled to the theme) ---------- */
.hs-prose .adxc { --adxc-accent: var(--felt); --adxc-border: var(--line-strong); --adxc-radius: 16px; --adxc-input-bg: var(--card); max-width: none; margin: 0; }
.hs-prose > * + .adxc { margin-block-start: 1.4em; }
.hs-prose .adxc .adxc-form { background: var(--paper); padding: 24px; }
.hs-prose .adxc .adxc-field label { font-family: var(--font-title); font-size: .95rem; color: var(--felt-deep); }
.hs-prose .adxc .adxc-field input, .hs-prose .adxc .adxc-field textarea { min-height: 48px; border-width: 1.5px; border-radius: 10px; }
.hs-prose .adxc .adxc-field input:focus-visible, .hs-prose .adxc .adxc-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.hs-prose .adxc .adxc-submit { min-height: 48px; border-radius: 12px; font-family: var(--font-title); }
.hs-prose .adxc.adxc-state-ok .adxc-msg { color: var(--felt); }
.hs-prose .adxc.adxc-state-err .adxc-msg { color: var(--coral-ink); }

/* ---------- Footer ---------- */
.hs-footer {
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--felt-deep);
  color: var(--paper); padding-block: 48px 24px; margin-block-start: 0;
  --focus: var(--peach);
}
.hs-footer::before { content: none; }
.hs-footer__grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .hs-footer__grid { grid-template-columns: 1.2fr 1.5fr 1fr; gap: 48px; } }
.hs-footer__brand a { display: inline-flex; text-decoration: none; border-radius: 12px; }
.hs-footer__brand p { margin-block-start: 14px; max-width: 42ch; color: rgba(247, 241, 227, .9); line-height: 1.7; }
.hs-footer__title { color: var(--peach); font-size: 1rem; font-weight: 700; margin-block-end: 12px; }
.hs-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 520px) { .hs-footer__list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
.hs-footer__list a { display: inline-flex; align-items: center; min-height: 40px; color: var(--paper); text-decoration: none; }
.hs-footer__list a:hover { color: var(--peach); text-decoration: underline; }
.hs-footer__bottom { margin-block-start: 36px; padding-block-start: 18px; border-block-start: 1px solid rgba(247, 241, 227, .18); font-size: .9rem; color: rgba(247, 241, 227, .85); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hs-tile:hover, .hs-card:hover, .hs-special:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .hs-header, .hs-footer, .hs-toc, .hs-section--tint, .hs-skip { display: none !important; }
  body { background: #fff; }
  .hs-band { background: none; color: #000; }
  .hs-band__title { color: #000; }
}
