/* ── המדריך המלא לנשירת שיער ── */

/* RTL — בסיס עמוד המדריך */
html:has(body.hair-guide-page),
body.hair-guide-page {
  direction: rtl;
  text-align: right;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

.hair-guide-page {
  --guide-ivory: #fbf5ea;
  --guide-cream: #fffaf2;
  --guide-lavender: #eee4f3;
  --guide-purple: #4b255f;
  --guide-purple-dark: #332040;
  --guide-gold: #b8944d;
  --guide-gold-soft: #d5bd83;
  --guide-text: #2a1f2f;
  --guide-muted: #7c6d83;
  --guide-line: rgba(184, 148, 77, 0.32);
  --guide-shadow: 0 22px 60px rgba(47, 21, 61, 0.11);
  background: linear-gradient(180deg, var(--guide-ivory), #fffaf4);
}

/* פריסת תוכן מרכזי — עוקף .guide-section מ-main.css (ltr/center/grid) */
.hair-guide-page .guide-content,
.hair-guide-page .lesson-content,
.hair-guide-page .article-content,
.hair-guide-page .main-content,
.hair-guide-page .guide-section,
.hair-guide-page .guide-section p,
.hair-guide-page .guide-section li {
  text-align: right !important;
  direction: rtl !important;
}

.hair-guide-page .guide-content,
.hair-guide-page .lesson-content,
.hair-guide-page .article-content {
  max-width: 860px;
  margin-right: 0;
  margin-left: auto;
  width: 100%;
}

.hair-guide-page .guide-content ul,
.hair-guide-page .guide-content ol,
.hair-guide-page .lesson-content ul,
.hair-guide-page .lesson-content ol,
.hair-guide-page .article-content ul,
.hair-guide-page .article-content ol {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 1.6rem !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  list-style-position: outside;
}

.hair-guide-page .guide-content li,
.hair-guide-page .lesson-content li,
.hair-guide-page .article-content li {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 0.4rem;
  padding-left: 0;
}

.hair-guide-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 1.5rem;
  justify-content: flex-start;
  opacity: 1 !important;
  filter: none !important;
}

.hair-guide-page .check label {
  text-align: right;
}

.hair-guide-page main {
  padding-block: calc(var(--header-height) + 1rem) 3.5rem;
}

.hair-guide-loading,
.hair-guide-locked {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 3rem 1rem;
  text-align: center;
}

.hair-guide-loading {
  color: var(--guide-purple);
  font-weight: 600;
}

.hair-guide-locked__card {
  max-width: 420px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1.5px solid rgba(184, 148, 77, 0.45);
  border-radius: 18px;
  background: rgba(247, 241, 234, 0.96);
  box-shadow: var(--guide-shadow);
}

.hair-guide-locked__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-block-end: 1rem;
  border-radius: 50%;
  background: rgba(184, 148, 77, 0.14);
  color: var(--guide-purple-dark);
}

.hair-guide-locked__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.hair-guide-locked__text {
  margin: 0 0 1.25rem;
  color: var(--guide-purple-dark);
  font-weight: 700;
  line-height: 1.7;
}

.hair-guide-shell {
  width: min(1120px, calc(100% - 1.25rem));
  margin-inline: auto;
}

.hair-guide-breadcrumb {
  margin-block-end: 1.25rem;
  font-size: 0.88rem;
  color: var(--guide-muted);
}

.hair-guide-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hair-guide-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hair-guide-breadcrumb li:not(:last-child)::after {
  content: "›";
  color: rgba(74, 52, 94, 0.45);
}

.hair-guide-breadcrumb a {
  color: var(--guide-purple);
  font-weight: 600;
  text-decoration: none;
}

.hair-guide-breadcrumb a:hover,
.hair-guide-breadcrumb a:focus-visible {
  color: var(--guide-gold);
}

.hair-guide-breadcrumb [aria-current="page"] {
  color: var(--guide-purple-dark);
  font-weight: 700;
}

.hair-guide-page .page {
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
}

.hair-guide-page .hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202, 164, 90, 0.25);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(202, 164, 90, 0.22), transparent 34%),
    linear-gradient(135deg, var(--guide-cream), var(--guide-lavender));
  box-shadow: var(--guide-shadow);
  padding: clamp(1.75rem, 4vw, 2.85rem) clamp(1.25rem, 3vw, 2.1rem);
  margin-block-end: 1.5rem;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* ביטול overlay לבן מ-main.css (.hero::after) שדהה את כל האזור */
.hair-guide-page .hero::after {
  display: none !important;
  content: none !important;
}

.hair-guide-page .hero > *:not(h1.brand-heading) {
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  filter: none !important;
}

.hair-guide-page .hero > h1.brand-heading {
  position: relative;
  z-index: 2;
  opacity: 1 !important;
}

.hair-guide-page .hero::before {
  content: "✦";
  position: absolute;
  inset-inline-start: 32px;
  top: 22px;
  color: var(--guide-gold);
  font-size: 42px;
  opacity: 0.45;
}

.hair-guide-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--guide-gold);
  font-weight: 800;
  margin-block-end: 8px;
}

.hair-guide-page .guide-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  color: var(--guide-purple-dark);
  line-height: 1.2;
  text-align: right;
}

.hair-guide-page .guide-hero__title.brand-heading {
  background-image: var(--gradient-brand-heading);
  background-size: 200% auto;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  -webkit-filter:
    drop-shadow(0.5px 0 0 rgba(58, 32, 82, 0.22))
    drop-shadow(-0.5px 0 0 rgba(58, 32, 82, 0.22))
    drop-shadow(0 0.5px 0 rgba(58, 32, 82, 0.22))
    drop-shadow(0 -0.5px 0 rgba(58, 32, 82, 0.22))
    drop-shadow(0 2px 5px rgba(74, 52, 94, 0.1))
    saturate(0.75) !important;
  filter:
    drop-shadow(0.5px 0 0 rgba(58, 32, 82, 0.22))
    drop-shadow(-0.5px 0 0 rgba(58, 32, 82, 0.22))
    drop-shadow(0 0.5px 0 rgba(58, 32, 82, 0.22))
    drop-shadow(0 -0.5px 0 rgba(58, 32, 82, 0.22))
    drop-shadow(0 2px 5px rgba(74, 52, 94, 0.1))
    saturate(0.75) !important;
}

.hair-guide-page .guide-hero__title-line {
  display: inline;
}

.hair-guide-page .guide-hero__title-line + .guide-hero__title-line::before {
  content: "\00a0";
}

.hair-guide-page .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 760px;
  color: #4a345e !important;
  margin: 1rem 0 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  opacity: 1 !important;
  filter: none !important;
}

.hair-guide-page .hero .eyebrow {
  opacity: 1 !important;
  filter: none !important;
}

.hair-guide-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.hair-guide-page .btn.primary {
  border: 1px solid rgba(255, 252, 247, 0.52);
  background: linear-gradient(180deg, #d1ad66, #b38c43) !important;
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(184, 148, 77, 0.204);
  opacity: 1 !important;
  filter: none !important;
}

.hair-guide-page .btn.secondary {
  border: 1.5px solid var(--guide-purple) !important;
  background: #fff !important;
  color: var(--guide-purple-dark) !important;
  opacity: 1 !important;
  filter: none !important;
}

.hair-guide-page .btn:hover,
.hair-guide-page .btn:focus-visible {
  transform: translateY(-2px);
}

.hair-guide-page .notice {
  border-inline-end: 4px solid var(--guide-gold);
  background: #fff;
  padding: 16px 18px;
  border-radius: 20px;
  margin-block: 1.25rem;
  color: #50345c;
}

.hair-guide-page .grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.hair-guide-page .toc {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  border: 1px solid var(--guide-line);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(47, 21, 61, 0.07);
}

.hair-guide-page .toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--guide-purple);
}

.hair-guide-page .toc a {
  display: block;
  text-decoration: none;
  color: #5d4869;
  padding: 8px 0;
  border-block-end: 1px solid rgba(75, 37, 95, 0.08);
  font-size: 0.94rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.hair-guide-page .toc a:hover,
.hair-guide-page .toc a:focus-visible {
  color: var(--guide-purple);
}

.hair-guide-page .toc a.is-active,
.hair-guide-page .toc a[aria-current="true"] {
  color: var(--guide-gold);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(184, 148, 77, 0.12), transparent);
  border-inline-end: 2px solid var(--guide-gold);
  padding-inline-end: 10px;
}

.hair-guide-page .guide-section {
  position: relative;
  isolation: isolate;
  display: block !important;
  grid-template-columns: unset;
  align-items: stretch !important;
  justify-items: stretch !important;
  min-height: 0 !important;
  scroll-margin-top: calc(var(--header-height) + 20px);
  border: 1px solid var(--guide-line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  padding: clamp(1.15rem, 3vw, 1.75rem) !important;
  margin-block-end: 1.25rem;
  box-shadow: 0 14px 42px rgba(47, 21, 61, 0.06);
  overflow: visible;
}

.hair-guide-page .guide-section h2 {
  margin: 0 0 18px;
  color: var(--guide-purple-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.22;
}

.hair-guide-page .guide-section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(270deg, var(--guide-gold), transparent);
  border-radius: 999px;
  margin-block-start: 10px;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.hair-guide-page .guide-content p,
.hair-guide-page .guide-section p {
  margin: 0 0 12px;
  line-height: 1.85;
  text-align: right !important;
}

.hair-guide-page .guide-content h3,
.hair-guide-page .guide-section h3 {
  color: var(--guide-purple);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin: 1.5rem 0 10px;
  text-align: right !important;
}

.hair-guide-page .guide-content ul,
.hair-guide-page .guide-content ol,
.hair-guide-page .guide-section ul,
.hair-guide-page .guide-section ol {
  margin: 10px 0 18px;
}

.hair-guide-page .guide-content li,
.hair-guide-page .guide-section li {
  margin: 8px 0;
}

.hair-guide-page .important-note,
.hair-guide-page .note-item {
  background: linear-gradient(135deg, rgba(243, 223, 173, 0.45), rgba(238, 228, 243, 0.35));
  border: 1px solid rgba(202, 164, 90, 0.25);
  border-radius: 18px;
  padding: 12px 14px;
}

.hair-guide-page .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

@media (max-width: 880px) {
  .hair-guide-page .cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 881px) {
  .hair-guide-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hair-guide-page .card {
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(47, 21, 61, 0.05);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hair-guide-page .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 21, 61, 0.08);
}

.hair-guide-page .card strong {
  display: block;
  color: var(--guide-purple);
  font-size: 1.05rem;
  margin-block-end: 6px;
}

.hair-guide-page .card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-color: rgba(184, 148, 77, 0.45);
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.98), rgba(238, 228, 243, 0.45));
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.hair-guide-page .card--link span {
  display: block;
  color: #5a5160;
  line-height: 1.65;
  font-size: 0.94rem;
}

.hair-guide-page .card--link:hover,
.hair-guide-page .card--link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--guide-gold);
  box-shadow: 0 14px 32px rgba(47, 21, 61, 0.1);
}

.hair-guide-page .checklist {
  background: linear-gradient(135deg, #fff, var(--guide-lavender));
  border: 1px solid rgba(202, 164, 90, 0.25);
  border-radius: 30px;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  margin-block: 1.5rem;
}

.hair-guide-page .checklist h2 {
  color: var(--guide-purple-dark);
  margin-block-start: 0;
}

.hair-guide-page .check {
  display: grid;
  gap: 10px;
}

.hair-guide-page .check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  padding: 12px;
}

.hair-guide-page input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--guide-gold);
  margin-block-start: 6px;
}

.hair-guide-page .guide-footer {
  text-align: right;
  color: var(--guide-muted);
  padding-block-start: 2rem;
  font-size: 0.92rem;
}

.hair-guide-page .guide-section--accordion {
  padding: 0;
  overflow: hidden;
}

.hair-guide-page .guide-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.hair-guide-page .guide-section__summary::-webkit-details-marker {
  display: none;
}

.hair-guide-page .guide-section__summary h2 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.hair-guide-page .guide-section__summary h2::after {
  display: none;
}

.hair-guide-page .guide-section__summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: rgba(184, 148, 77, 0.14);
  color: var(--guide-purple-dark);
  font-weight: 800;
}

.hair-guide-page .guide-section--accordion[open] .guide-section__summary::after {
  content: "−";
}

.hair-guide-page .guide-section__inner {
  padding: 0 1.15rem 1.15rem;
}

@media (max-width: 768px) {
  .hair-guide-page .hero::before {
    display: none !important;
    content: none !important;
  }

  .hair-guide-page .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 28px 20px;
    gap: 1rem;
    overflow: visible;
  }

  .hair-guide-page .hero .eyebrow {
    width: 100%;
    max-width: 100%;
    margin-block-end: 0;
    text-align: right;
  }

  .hair-guide-page .guide-hero__title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    line-height: 1.22;
    text-align: right;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
  }

  .hair-guide-page .guide-hero__title-line {
    display: block;
  }

  .hair-guide-page .guide-hero__title-line + .guide-hero__title-line::before {
    content: none;
  }

  .hair-guide-page .subtitle {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: right;
    line-height: 1.72;
  }

  .hair-guide-page .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin-block-start: 0.35rem;
    gap: 0.75rem;
  }

  .hair-guide-page .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 880px) {
  .hair-guide-shell {
    width: min(1120px, calc(100% - 1rem));
  }

  .hair-guide-page .grid {
    grid-template-columns: 1fr;
  }

  .hair-guide-page .toc {
    position: relative;
    top: auto;
  }

  .hair-guide-page .cards {
    grid-template-columns: 1fr;
  }

  .hair-guide-page .hero {
    border-radius: 26px;
  }

  .hair-guide-page .hero::before {
    inset-inline-start: 18px;
    font-size: 32px;
  }
}

@media (min-width: 881px) {
  .hair-guide-page .guide-section--accordion .guide-section__summary {
    pointer-events: none;
    padding: clamp(1.15rem, 3vw, 1.75rem);
    padding-block-end: 0;
  }

  .hair-guide-page .guide-section--accordion .guide-section__summary::after {
    display: none;
  }

  .hair-guide-page .guide-section--accordion .guide-section__inner {
    padding: 0 clamp(1.15rem, 3vw, 1.75rem) clamp(1.15rem, 3vw, 1.75rem);
  }
}

@media print {
  .hair-guide-page .hero-actions,
  .hair-guide-page .toc,
  .hair-guide-breadcrumb {
    display: none;
  }

  .hair-guide-page .guide-section,
  .hair-guide-page .hero,
  .hair-guide-page .checklist {
    box-shadow: none;
    break-inside: avoid;
  }
}
