/*! HOMINVEST — αρχική v4 (sTaHuEce Industries): κείμενα δεξιά, μπάρα κεφαλαίων αριστερά, πιο έντονα γράμματα. */

/* ---------- πιο χοντρά, πιο ευανάγνωστα γράμματα (όλες οι οθόνες) ---------- */
:root {
  --fg-2: color-mix(in oklab, var(--fg) 90%, transparent);
  --fg-3: color-mix(in oklab, var(--fg) 74%, transparent);
  --halo: color-mix(in srgb, rgb(245 240 232 / .85) calc(var(--day) * 100%), rgb(16 24 29 / .75));
}
.title, .h2 { font-weight: 500; letter-spacing: -.012em; }
.title em, .h2 em { font-weight: 500; }
.chap { text-shadow: 0 1px 2px var(--halo), 0 0 22px var(--halo); }
.chap .btn, .chap .num span { text-shadow: none; }
.lead, .body { font-weight: 600; color: var(--fg); line-height: 1.6; }
.eyebrow, .num { font-weight: 750; font-size: 12.5px; letter-spacing: .22em; color: var(--fg); }
.num span { font-weight: 600; font-size: 12px; }
.block { font-size: 15px; }
.block dt { font-weight: 600; font-size: 11.5px; }
.block dd { color: var(--fg); font-weight: 600; }
.quote blockquote { font-weight: 500; color: var(--fg); }
.quote figcaption { color: var(--fg-2); font-weight: 600; }
.rating, .trust { color: var(--fg); font-weight: 600; }
.rating b { font-weight: 500; }
.end__info { font-weight: 600; }
.end__info dd { color: var(--fg); }
.end__info dd.end__soc { display: flex; flex-wrap: wrap; gap: 0 16px; }

/* ---------- υπολογιστής: κείμενα δεξιά, μπάρα αριστερά ---------- */
@media (min-aspect-ratio: 1/1) and (min-width: 761px) {
  .chap--hero, .chap--side { left: auto; right: calc(var(--pad) + 4px); }
  .chap--hero { width: min(640px, 48vw); }
  .chap--side { width: min(560px, 42vw); }
  .lead, .body { font-size: clamp(16px, 1.18vw, 19px); }
  /* το σκοτείνιασμα / φωτισμός πίσω από τα κείμενα έρχεται πλέον από δεξιά — και πιο δυνατό, για να μη χάνονται τα γράμματα στη «μέρα» */
  .shade::before {
    background:
      linear-gradient(270deg, rgb(23 34 40 / calc(.84 * var(--txt))) 0%, rgb(23 34 40 / calc(.6 * var(--txt))) 36%, rgb(23 34 40 / 0) 62%),
      linear-gradient(0deg, rgb(23 34 40 / calc(.78 * var(--end))) 0%, rgb(23 34 40 / 0) 46%),
      linear-gradient(180deg, rgb(23 34 40 / .5) 0%, rgb(23 34 40 / 0) 16%);
  }
  .shade::after {
    background:
      linear-gradient(270deg, rgb(245 240 232 / calc(.97 * var(--txt))) 0%, rgb(245 240 232 / calc(.86 * var(--txt))) 36%, rgb(245 240 232 / 0) 62%),
      linear-gradient(180deg, rgb(245 240 232 / .55) 0%, rgb(245 240 232 / 0) 16%);
  }

  /* μπάρα κεφαλαίων: αριστερά, έντονη, πάντα με τα ονόματα */
  .rail { right: auto; left: calc(var(--pad) - 10px); gap: 4px; padding: 8px; border-radius: 20px; background: rgb(18 27 32 / .66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgb(245 240 232 / .14), 0 20px 44px -22px rgb(0 0 0 / .7); }
  .rail__item { justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 18px 0 12px; border-radius: 14px; color: rgb(245 240 232 / .8); transition: background-color .3s, color .3s; }
  .rail__item::after { order: -1; width: 3px; height: 18px; border-radius: 2px; background: rgb(245 240 232 / .26); transition: background-color .3s, height .3s; }
  .rail__item span { font: 600 12px/1 var(--mono); letter-spacing: .08em; color: var(--copper-3); }
  .rail__item b, .rail__item.is-active b, .rail__item:hover b { max-width: none; opacity: 1; font: 750 12.5px/1 var(--sans); letter-spacing: .14em; color: inherit; }
  .rail__item:hover { background: rgb(245 240 232 / .09); color: #fff; }
  .rail__item.is-active, .rail__item.is-active:hover { background: var(--copper); color: #fff; }
  .rail__item.is-active span { color: #fff; }
  .rail__item.is-active::after { width: 3px; height: 22px; background: #fff; }
}
