/* ─── Tender SEO Page ─── */
/* Public, unauthenticated, Hebrew (RTL) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:   #2B3A67;
    --orange: #FD891B;
    --orange-dark: #e07010;
    --text:   #1a1a2e;
    --muted:  #6b7280;
    --border: #e5e7eb;
    --bg:     #f9fafb;
    --white:  #ffffff;
    --red:    #dc2626;
    --amber:  #d97706;
    --green:  #16a34a;
    --risk-bg: #fff7ed;
    --warn-bg: #fef2f2;
    --radius: 0.75rem;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
}

html { font-size: 16px; }

body {
    font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
    direction: rtl;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

/* ── Top Bar ─────────────────────────────────────────────── */

.topbar {
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.topbar-cta {
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.topbar-cta:hover { background: var(--orange-dark); }

/* ── Breadcrumb ──────────────────────────────────────────── */

.breadcrumb {
    max-width: 860px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb .sep { color: #cbd5e1; }

/* ── Main page ───────────────────────────────────────────── */

.page {
    max-width: 860px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.5rem;
}

/* ── Tender header + badges ──────────────────────────────── */

.tender-header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
}

.badge-active  { background: #dcfce7; color: #15803d; }
.badge-expired { background: #f3f4f6; color: #6b7280; }
.badge-type    { background: #eff6ff; color: #1d4ed8; }

/* ── H1 ──────────────────────────────────────────────────── */

.tender-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* ── Facts strip ─────────────────────────────────────────── */

.facts-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fact-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.fact-sub {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
}

.fact-deadline .fact-value { color: var(--green); }
.fact-expired  .fact-value { color: var(--muted); text-decoration: line-through; }

/* ── Sections ────────────────────────────────────────────── */

.section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.section-warning {
    border-color: #fca5a5;
    background: var(--warn-bg);
}

.section-risk {
    border-color: #fed7aa;
    background: var(--risk-bg);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}

.section-warning .section-title { border-color: #fca5a5; color: var(--red); }
.section-risk    .section-title { border-color: #fed7aa; color: var(--amber); }

.subsection-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1rem 0 0.5rem;
}

/* ── Lists ───────────────────────────────────────────────── */

.req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.req-list li {
    padding-right: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text);
}

.req-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--navy);
    font-weight: 700;
}

.req-list-warning li::before { color: var(--red); }
.req-list-risk    li::before { color: var(--amber); }

/* ── Field rows ──────────────────────────────────────────── */

.field-row {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.field-row:last-child { border-bottom: none; }

.field-label {
    flex: 0 0 140px;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
}

.field-value { flex: 1; color: var(--text); }
.flag-red    { color: var(--red); font-weight: 600; }

/* ── Prose ───────────────────────────────────────────────── */

.prose {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    white-space: pre-line;
}

.prose-sm { font-size: 0.875rem; margin-top: 0.75rem; }

/* ── Evaluation weights ──────────────────────────────────── */

.eval-weights {
    display: flex;
    gap: 1.5rem;
    margin: 0.75rem 0;
}

.eval-weight {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-width: 90px;
}

.eval-pct {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}

.eval-label {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── AI-generated article body ───────────────────────────── */

.article-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.article-section.article-intro {
    border-right: 4px solid var(--navy);
}

.article-section.article-warning {
    border-color: #fca5a5;
    background: var(--warn-bg);
}

.article-section.article-risk {
    border-color: #fed7aa;
    background: var(--risk-bg);
}

.article-section.article-noga-bridge {
    border-color: var(--orange);
    background: linear-gradient(135deg, #fff9f0 0%, var(--white) 100%);
}

.article-h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.article-warning .article-h2 { color: var(--red); border-color: #fca5a5; }
.article-risk    .article-h2 { color: var(--amber); border-color: #fed7aa; }
.article-noga-bridge .article-h2 { color: var(--navy); border-color: var(--orange); }

.article-section p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--text);
    white-space: pre-line;
}

.article-cta-btn {
    display: inline-block;
    margin-top: 1.25rem;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.article-cta-btn:hover { background: var(--orange-dark); }

/* ── CTA Section ─────────────────────────────────────────── */

.section-cta {
    border-color: var(--orange);
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
}

.cta-box {
    text-align: center;
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.cta-body {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.cta-bullets {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: right;
    margin: 0 auto 1.5rem;
    font-size: 0.9rem;
}

.cta-bullets li {
    padding-right: 1.5rem;
    position: relative;
}

.cta-bullets li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--green);
    font-weight: 700;
}

.cta-btn {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.15s;
}

.cta-btn:hover { background: var(--orange-dark); }

.cta-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── Content gate (active tenders) ──────────────────────── */

.content-gate {
    position: relative;
    max-height: 220px;
    overflow: hidden;
}

/* Fade gradient at the bottom of gated content */
.content-gate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 85%);
    pointer-events: none;
}

.content-gate-lock {
    text-align: center;
    background: var(--white);
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(253, 137, 27, 0.12);
}

.gate-lock-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Teaser pills showing what's locked */
.gate-lock-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gate-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid;
}

.gate-pill::before { content: "🔒"; font-size: 0.7rem; }

.gate-pill-warn  { background: #fef9ec; color: #92400e; border-color: #fde68a; }
.gate-pill-risk  { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.gate-pill-doc   { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.gate-pill-score { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

.gate-lock-body {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.65;
}

.gate-lock-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Gated source link */
.gate-source-msg {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.gate-source-link {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.gate-source-link:hover { text-decoration: underline; }

/* ── Source link ─────────────────────────────────────────── */

.source-section { background: var(--bg); }

.source-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
}

.source-link:hover { color: var(--orange); }

/* ── Footer ──────────────────────────────────────────────── */

.footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover { color: var(--white); }

.footer-legal {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.6;
}

/* ── H1 prefix ───────────────────────────────────────────── */

.tender-title-prefix {
    color: var(--muted);
    font-weight: 600;
}

/* ── Article details list (Section 1 — rendered from data) ── */

.article-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.article-details-list li {
    font-size: 0.93rem;
    color: var(--text);
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.detail-label {
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
}

.detail-expired {
    text-decoration: line-through;
    color: var(--muted);
}

/* ── Article CTA section ─────────────────────────────────── */

.article-cta-section {
    text-align: center;
    border-color: var(--orange);
    background: linear-gradient(135deg, #fff9f0 0%, var(--white) 100%);
}

.article-cta-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* ── Internal links bar ──────────────────────────────────── */

.internal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.internal-links-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
}

.internal-link {
    color: var(--navy);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    transition: background 0.12s;
}

.internal-link:hover {
    background: var(--bg);
    text-decoration: underline;
}

.internal-link-cta {
    color: var(--orange);
    font-weight: 700;
    margin-right: auto;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
    .page { padding: 0 1rem; }
    .topbar { padding: 0.65rem 1rem; }
    .facts-strip { grid-template-columns: 1fr 1fr; }
    .tender-title { font-size: 1.3rem; }
    .field-row { flex-direction: column; gap: 0.2rem; }
    .field-label { flex: none; }
}
