/* ═══════════════════════════════════════════════════════════════════
   Insurance – List page (.ip)
   ═══════════════════════════════════════════════════════════════════ */
.ip { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── List Hero ───────────────────────────── */
.ip-hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ip-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.ip-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.ip-site-logo-link { display: contents; }
.ip-hero h1 { margin: 0 0 0.35rem; font-size: 1.5rem; color: var(--text-bright); line-height: 1.3; }
.ip-hero-sub { font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.5rem; max-width: 32rem; padding: 0 5.5rem; }
@media (max-width: 640px) { .ip-hero-sub { padding: 0 1rem; } }
.ip-hero-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); margin-top: 0.75rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.ip-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Insurer grid ─────────────────────── */
.ig { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ic { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.15s; }
.ic:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ── Featured insurer card ─────────────── */
.ic--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--accent); background: linear-gradient(135deg, #1a2535 0%, #1f2937 100%); position: relative; }
.ic-recommend-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(167, 139, 250, 0.9); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 1rem; z-index: 1; }
.ic--featured .ic-logo-wrap { aspect-ratio: 16 / 12; min-height: 280px; }
.ic--featured .ic-body { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 2rem; }
.ic--featured .ic-name { font-size: 1.85rem; line-height: 1.4; }
.ic--featured .ic-desc { font-size: 1.1rem; -webkit-line-clamp: 4; line-height: 1.7; }
.ic-logo-wrap { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: #fff; padding: 0.75rem; overflow: hidden; }
.ic-logo-wrap--empty { background: var(--surface); }
.ic-logo { width: 100%; height: 100%; object-fit: contain; transform: translateY(60%) scale(2.5); transform-origin: center; opacity: 0; transition: opacity 0.4s ease; }
.ic-logo.loaded { opacity: 1; }
.ic-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.ic-name { font-size: 1.05rem; color: var(--text-bright); font-weight: 700; }
.ic-group { font-size: 0.78rem; color: #9ca3af; }
.ic-rating { display: flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; direction: ltr; }
.ic-rating-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; border-radius: 2px; }
.ic-rating-value { font-weight: 600; color: var(--text-bright); }
.ic-desc { font-size: 0.82rem; color: var(--text); line-height: 1.45; margin-top: 0.15rem; }
.ic-price { font-size: 0.95rem; color: var(--accent); font-weight: 700; margin-top: auto; padding-top: 0.5rem; }
.ic-badge { display: inline-block; background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 1.5rem; margin-top: 0.35rem; width: fit-content; }

/* ── CTA bottom (list) ───────────────────────── */
.ip-cta--bottom { display: block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin: 1.5rem auto 0; max-width: 22rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.ip-cta--bottom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Section heading (list) ───────────────────── */
.section-heading { font-size: 1.15rem; color: var(--text-bright); margin: 0 0 0.75rem; }

/* ── List footer ───────────────────────────── */
.ip-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ip-footer a { color: var(--link); font-size: 0.85rem; }

/* ── List mobile ───────────────────────────── */
@media (max-width: 600px) {
    .ip-hero { padding: 1.25rem 1rem; }
    .ip-site-logo-link { display: block; }
    .ip-site-logo { position: static; height: 6rem; }
    .ig { grid-template-columns: 1fr; }
    .ic--featured { grid-template-columns: 1fr; }
    .ic--featured .ic-body { padding: 1rem 1.25rem 1.25rem; }
    .ic--featured .ic-name { font-size: 1.2rem; }
    .ic--featured .ic-desc { font-size: 0.85rem; line-height: 1.55; }
}

/* ═══════════════════════════════════════════════════════════════════
   Insurance – Detail page (.inp)
   ═══════════════════════════════════════════════════════════════════ */
.inp { max-width: 48rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; overflow-x: hidden; }

/* ── Detail Hero ───────────────────────────── */
.hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.hero-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.hero-site-logo-link { display: contents; }
.hero-logo-badge { width: 4.5rem; height: 4.5rem; position: absolute; top: 1rem; right: 1rem; z-index: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.25); overflow: hidden; }
.hero-logo { width: 4rem; height: 4rem; object-fit: contain; border-radius: 50%; transform: translateY(20%) scale(1.6); transform-origin: center; }
.hero h1 { margin: 0 0 0.2rem; font-size: 1.5rem; color: var(--text-bright); line-height: 1.3; }
.hero-type { font-size: 0.82rem; color: #9ca3af; margin-bottom: 0.25rem; }
.hero-group { font-size: 0.82rem; color: #9ca3af; }
.hero-rating { display: flex; align-items: center; justify-content: center; gap: 0.3rem; font-size: 0.9rem; margin-top: 0.5rem; direction: ltr; position: relative; }
.hero-rating-icon { width: 1.4em; height: 1.4em; flex-shrink: 0; border-radius: 2px; }
.hero-rating-value { font-weight: 700; color: var(--text-bright); }
.hero-info-btn { background: none; border: none; color: #9ca3af; font-size: 0.85rem; cursor: pointer; padding: 0; line-height: 1; }
.hero-info-btn:hover { color: var(--accent); }
.hero-tooltip { display: none; position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); width: max-content; max-width: 16rem; font-size: 0.75rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; line-height: 1.45; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 10; }
.hero-tooltip::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--border); }
.hero-tooltip::after { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-bottom-color: var(--surface); }
.hero-tooltip.visible { display: block; }
.hero-price { font-size: 1.3rem; color: var(--accent); font-weight: 700; margin-top: 0.5rem; }
.hero-price small { font-size: 0.8rem; color: #9ca3af; font-weight: 400; }
.hero-source-links { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 0.3rem; flex-wrap: wrap; }
.hero-source-link { position: relative; display: flex; align-items: center; justify-content: center; width: 2.64rem; height: 2.64rem; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #d1d5db; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hero-source-link img,
.hero-source-link svg { height: 1.43rem; width: 1.43rem; object-fit: contain; border-radius: 0.3rem; }
.hero-source-link[aria-label="אינסטגרם"]::before {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px;
    background: linear-gradient(45deg, #ffdc80, #fcaf45, #f77737, #f56040, #e1306c, #c13584, #833ab4, #5851db);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.hero-source-link[aria-label="אימייל"] img { height: 1.69rem; width: 1.69rem; }
@media (hover: hover) {
    .hero-source-link:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
    .hero-source-link[aria-label="אתר"]:hover { color: var(--accent); border-color: var(--accent); }
    .hero-source-link[aria-label="פייסבוק"]:hover { color: #1877f2; border-color: #1877f2; }
    .hero-source-link[aria-label="אינסטגרם"]:hover { color: #e1306c; border-color: transparent; }
    .hero-source-link[aria-label="אינסטגרם"]:hover::before { opacity: 1; }
    .hero-source-link[aria-label="וואטסאפ"]:hover { color: #25d366; border-color: #25d366; }
    .hero-source-link[aria-label="טלפון"]:hover { color: var(--accent); border-color: var(--accent); }
}
.hero-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); margin-top: 1.5rem; }
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }
.hero-description { font-size: 0.9rem; color: var(--text); line-height: 1.65; margin-top: 1rem; margin-bottom: 0; text-align: center; max-width: 600px; }

/* ── Section titles ───────────────────── */
.section-title { font-size: 1.1rem; color: var(--text-bright); font-weight: 700; margin: 1.5rem 0 0.75rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* ── Description ─────────────────────── */

/* ── Collapsible lists ───────────────── */
.collapsible-list .cl-hidden { display: none; }
.collapsible-list.cl-expanded .cl-hidden { display: list-item; }
.cl-more { background: none; border: none; color: var(--accent); font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0.25rem 0; font-family: var(--font); margin-inline-start: auto; display: block; }
.cl-more:hover { text-decoration: underline; }

/* ── Plans ────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; }
.plan-name { font-size: 0.95rem; color: var(--text-bright); font-weight: 700; margin-bottom: 0.25rem; }
.plan-coverage { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.plan-price { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-top: 0.5rem; }

/* ── Spec grid ────────────────────────── */
.specs { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.spec-item { background: var(--surface); border: 1px solid var(--border); border-radius: 0.65rem; padding: 0.75rem 1rem; }
.spec-label { font-size: 0.72rem; color: #9ca3af; display: block; margin-bottom: 0.15rem; }
.spec-value { font-size: 0.85rem; color: var(--text-bright); line-height: 1.5; }

/* ── Detail rows ──────────────────────── */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.65rem; padding: 0.75rem 1rem; }
.detail-label { font-size: 0.72rem; color: #9ca3af; display: block; margin-bottom: 0.15rem; }
.detail-value { font-size: 0.85rem; color: var(--text-bright); font-weight: 600; line-height: 1.4; }

/* ── Lists ────────────────────────────── */
.coverage-list, .exclusion-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.coverage-list li, .exclusion-list li { font-size: 0.85rem; color: var(--text); padding: 0.35rem 0; border-bottom: 1px solid var(--border); line-height: 1.45; }
.coverage-list li:last-child, .exclusion-list li:last-child { border-bottom: none; }
.coverage-list li::before { content: "✓ "; color: #10b981; font-weight: 700; }
.exclusion-list li::before { content: "✗ "; color: #ef4444; font-weight: 700; }

/* ── Pros / Cons ──────────────────────── */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.pc-col { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; }
.pc-col-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.pc-col-title--pro { color: #10b981; }
.pc-col-title--con { color: #ef4444; }
.pc-col ul { list-style: none; padding: 0; margin: 0; }
.pro-item, .con-item { font-size: 0.82rem; color: var(--text); padding: 0.3rem 0; line-height: 1.45; display: flex; gap: 0.35rem; }
.pro-icon { color: #10b981; font-weight: 700; flex-shrink: 0; }
.con-icon { color: #ef4444; font-weight: 700; flex-shrink: 0; }

/* ── Badges ───────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.badge { background: rgba(249,166,29,0.12); color: var(--accent); border: 1px solid rgba(249,166,29,0.25); font-size: 0.78rem; padding: 0.25rem 0.65rem; border-radius: 2rem; }

/* ── Third party ──────────────────────── */
.tp-badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 2rem; font-size: 0.82rem; font-weight: 600; }
.tp-badge--yes { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.tp-badge--no { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }

/* ── CTA bottom (detail) ───────────────────────── */
.bottom-cta { display: block; background: var(--accent); color: #000; font-weight: 700; font-size: 1rem; padding: 0.75rem 2rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin: 1.5rem auto 0; max-width: 22rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.bottom-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Shared ──────────────────────── */
.back-to-top { display: block; text-align: center; color: #9ca3af; font-size: 0.8rem; margin-top: 1.25rem; text-decoration: none; }
.back-to-top:hover { color: var(--accent); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #9ca3af; margin-bottom: 1rem; }
.breadcrumb a, .breadcrumb span { unicode-bidi: isolate; }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-sep { color: #9ca3af; }

/* ── Detail footer ───────────────────────────── */
.inp-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.inp-footer a { color: var(--link); font-size: 0.85rem; }

/* ── Detail mobile ───────────────────────────── */
@media (max-width: 600px) {
    .hero { padding: 1.25rem 1rem; }
    .hero-site-logo-link { display: block; }
    .hero-site-logo { position: static; height: 6rem; }
    .hero h1 { font-size: 1.3rem; margin-top: 0.5rem; }
    .hero-cta { width: 100%; text-align: center; }
    .hero-rating { justify-content: center; }
    .hero-source-link { width: 2.42rem; height: 2.42rem; }
    .hero-source-link svg, .hero-source-link img { width: 1.27rem; height: 1.27rem; }
    .pc-grid { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ── FAQ ───────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; margin-bottom: 0.6rem; background: var(--surface); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; font-size: 1rem; color: var(--text-bright); display: flex; justify-content: space-between; align-items: center; gap: 1rem; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s; flex-shrink: 0; margin-right: 0.25rem; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-a { color: var(--text); margin: 0; padding: 0.75rem 1.25rem 1.1rem; border-top: 1px solid var(--border); line-height: 1.7; }

/* ── Lead form card ────────────────── */
.lf { background: linear-gradient(135deg, #1a2535 0%, #1f2937 100%); border: 1.5px solid var(--accent); border-radius: 1rem; padding: 2rem 2.25rem; margin: 2rem 0; }
.lf-header { text-align: center; margin-bottom: 1.5rem; }
.lf-title { font-size: 1.5rem; font-weight: 800; color: var(--text-bright); margin: 0 0 0.4rem; }
.lf-subtitle { font-size: 0.95rem; color: #9ca3af; margin: 0; }
.lf-form { display: flex; flex-direction: column; gap: 1rem; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lf-field { display: flex; flex-direction: column; gap: 0.3rem; }
.lf-label { font-size: 0.85rem; font-weight: 600; color: var(--text-bright); }
.lf-input { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.65rem 0.85rem; font-size: 1rem; color: var(--text-bright); outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; min-width: 0; width: 100%; box-sizing: border-box; }
.lf-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,166,29,0.15); }
.lf-input.lf-input--error { border-color: #ef4444; }
.lf-submit { background: var(--accent); color: #141415; border: none; border-radius: 0.6rem; padding: 0.75rem 1.5rem; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: background 0.2s, transform 0.15s; font-family: inherit; margin-top: 0.5rem; }
.lf-submit:hover { background: #fbbf24; transform: translateY(-1px); }
.lf-submit:active { transform: translateY(0); }
.lf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lf-msg { text-align: center; font-size: 0.9rem; font-weight: 600; }
.lf-msg:empty { display: none; }
.lf-msg--success { color: #10b981; }
.lf-msg--error { color: #ef4444; }
.lf-consent { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; margin-top: 0.25rem; }
.lf-checkbox { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; cursor: pointer; }
.lf-checkbox.lf-input--error { outline: 2px solid #ef4444; outline-offset: 1px; border-radius: 3px; }
.lf-consent-text { font-size: 0.78rem; color: #9ca3af; line-height: 1.5; }
.lf-consent-text a { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) {
    .lf { padding: 1.5rem 1.25rem; }
    .lf-row:not(.lf-row--name) { grid-template-columns: 1fr; }
    .lf-title { font-size: 1.25rem; }
}


/* ═══════════════════════════════════════════════════════════════════
   Shared component styles (imported)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Related articles ────────────── */
.bp-related-articles { margin-top: 1rem; }
.bp-related-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.5rem; }
.bp-related-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); margin: 0; }
.bp-related-see-all { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.bp-related-see-all:hover { opacity: 0.8; }
.bp-related-row { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; gap: 0.65rem; }
.bp-related-card { position: relative; border-radius: 0.75rem; overflow: hidden; cursor: pointer; text-decoration: none; border: 1px solid #374151; }
.bp-related-card:first-child { grid-row: span 2; }
.bp-related-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.bp-related-card:hover > img { transform: scale(1.09); }
.bp-related-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 0.75rem 0.6rem; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.15) 80%, transparent 100%); }
.bp-related-title { font-size: 0.82rem; font-weight: 700; color: #f9fafb; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-related-card:first-child .bp-related-title { font-size: 1rem; font-weight: 800; -webkit-line-clamp: 3; }
@media (max-width: 600px) {
    .bp-related-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8rem; }
    .bp-related-card:first-child { grid-column: span 2; grid-row: span 1; }
}
.bp-related-card .bc-reviewer { margin-bottom: 0; margin-top: 0.3rem; }
.bp-related-card .bc-reviewer-pic { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; min-width: 18px; min-height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; flex-shrink: 0; }
.bc-reviewer { display: flex; align-items: center; flex-wrap: wrap; row-gap: 0.15rem; column-gap: 0; margin-bottom: 0.4rem; margin-top: 0.5rem; font-size: 0.78rem; color: #9ca3af; line-height: 1.4; }
.bc-reviewer-pic { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; }
.bc-reviewer-label { color: var(--accent); font-weight: 700; margin-left: 0.25rem; }
.bc-reviewer-name { font-weight: 700; color: var(--text); }
.bc-reviewer-title { font-weight: bold; }

/* ── Menu toggle button (matches .menu-icon-btn from React) ── */
.menu-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3.5vw, 16px);
    width: 2.34em;
    height: 2.34em;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-toggle:hover { background: #222325; }
}
.menu-toggle:active { background: #292c31; }
.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}
.menu-toggle .bar {
    width: 1.25em;
    height: 0.125em;
    background-color: #f9fafb;
    border-radius: 1px;
}

/* ── Side menu panel ───────────────── */
/* em units used inside panel so sizes are relative to this
   element's font-size (matching React's rem-based layout). */
.side-menu {
    position: fixed;
    top: 0;
    right: -21em;
    width: 21em;
    height: 100dvh;
    background-color: #1f2937;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1em 1.25em 0;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: normal;
    direction: ltr;
}
.side-menu.open { right: 0; }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.375em;
}
.side-menu-title {
    margin: 0;
    text-align: right;
    font-weight: 800;
    color: #f9fafb;
    font-size: 1.25em;
}
.menu-close-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-close-btn:hover { background: #374151; }
}
.menu-close-btn:active { background: #292c31; }

.side-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5em;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.side-menu-body::-webkit-scrollbar { display: none; }

.side-menu-item {
    background: none;
    border: none;
    padding: 0.57em 0.715em;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    transition: background-color 0.2s ease;
    color: #f9a61d;
    text-decoration: none;
    display: block;
    font-family: inherit;
}
.side-menu-item:hover { background-color: #374151; }

.side-menu-divider {
    border-top: 1px solid #374151;
    margin: 0.667em 0.715em 0;
    width: 50%;
    align-self: flex-end;
}
.side-menu-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #d1d5db;
    padding: 0.475em 0.715em 0.285em;
    margin-top: 0.38em;
    text-align: right;
    letter-spacing: 0.03em;
}

.side-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    padding: 0.5em 0.75em;
    border-top: 1px solid #374151;
}
.side-menu-footer-row {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.side-menu-footer-item {
    background: none;
    border: none;
    padding: 0.2em 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 400;
    transition: color 0.2s ease;
    color: #9ca3af;
    text-decoration: none;
    font-family: inherit;
}
.side-menu-footer-item:hover { color: #f9fafb; }
.side-menu-footer-sep { color: #4b5563; }

.side-menu-promo {
    display: block;
    margin: 0.5em 0.715em;
    padding: 0.6em 0.715em;
    background: rgba(167,139,250,0.08);
    border: 1px dashed rgba(167,139,250,0.5);
    border-radius: 8px;
    font-size: 0.9em;
    color: #d1d5db;
    text-align: center;
    text-decoration: none;
}
.side-menu-promo span { color: #f9a61d; font-weight: 700; }
.side-menu-promo:hover { background: rgba(167,139,250,0.14); }

/* ── Overlay ───────────────────────── */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}
.side-menu-overlay.open { display: block; }

/* ── Toolbar ──────────────────────── */
.toolbar {
    margin-top: -1.2rem;
    margin-bottom: 0;
    margin-right: -0.1em;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}
.toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.toolbar .breadcrumb {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.toolbar .breadcrumb a, .toolbar .breadcrumb span { unicode-bidi: isolate; }
.toolbar .breadcrumb a { color: var(--link); text-decoration: none; }
.toolbar .breadcrumb a:hover { text-decoration: underline; }
.toolbar .breadcrumb .bc-sep { color: #9ca3af; margin: 0 0.2rem; }
.hero-updated {
    display: block;
    font-size: 0.75rem;
    color: #a1aabd;
    background: rgba(107,114,128,0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    text-align: end;
    margin-top: 0;
    width: fit-content;
    align-self: flex-end;
}

.star-rating { display: inline-flex; align-items: center; direction: ltr; }
.star-rating svg { width: 1em; height: 1em; }
.star-rating-lg svg { width: 1.1em; height: 1.1em; }
.star-rating-sm svg { width: 0.9em; height: 0.9em; }

