/* ==========================================================================
   Venpo · public pages (legacy design)

   The page-body stylesheet for the public pages still on the pre-v2 design:
   /vendors/changes, the change-detail page, and the three /tools pages.
   Selected by `@section('design', 'legacy')` — the default — in
   public.layouts.public-page.

   Header and footer are NOT here; they are the shared chrome in
   pub/chrome.css. When the last page above moves to the v2 design, this
   file and the layout's design switch go away together.

   Lifted verbatim out of the layout's inline <style> block.
   ========================================================================== */

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

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 14px;
    color: rgb(10, 37, 64);
    background: #FAFBFD;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }


/* ---------- Vendor entity page ---------- */
.vendor-hero { margin-bottom: 40px; max-width: 720px; }
.vendor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgb(99, 91, 255);
    background: rgba(99, 91, 255, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    margin-bottom: 20px;
}
.vendor-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(99, 91, 255);
}
.vendor-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: rgb(10, 37, 64);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.vendor-hero p {
    font-size: 15px;
    color: rgb(84, 102, 129);
    line-height: 1.6;
    margin: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}
.timeline-group { position: relative; padding-left: 24px; }
.timeline-group::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: -32px;
    width: 1px;
    background: rgba(99, 91, 255, 0.15);
}
.timeline-group:last-child::before { display: none; }
.timeline-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgb(10, 37, 64);
    margin-bottom: 12px;
    position: relative;
}
.timeline-date::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(99, 91, 255);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12);
}
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(10, 37, 64, 0.06);
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.timeline-item:hover {
    border-color: rgba(99, 91, 255, 0.2);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04);
}
.timeline-favicon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    background: #fff;
}
.timeline-vendor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgb(10, 37, 64);
    flex-shrink: 0;
}
.timeline-doc {
    flex: 1;
    font-size: 14px;
    color: rgb(84, 102, 129);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s ease;
}
.timeline-item:hover .timeline-doc { color: rgb(99, 91, 255); }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px 0 48px;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(10, 37, 64, 0.10);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: rgb(10, 37, 64);
    transition: background .15s ease, border-color .15s ease;
}
.pagination-link:hover {
    background: rgba(99, 91, 255, 0.06);
    border-color: rgba(99, 91, 255, 0.2);
    color: rgb(99, 91, 255);
}
.pagination-status {
    font-size: 12px;
    color: rgb(148, 163, 184);
}

.cta-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(10, 37, 64, 0.06);
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.03);
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.cta-wide-title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(10, 37, 64);
    margin-bottom: 4px;
}
.cta-wide-sub {
    font-size: 13px;
    color: rgb(84, 102, 129);
}

.empty {
    padding: 48px 32px;
    border: 1px dashed rgba(10, 37, 64, 0.12);
    border-radius: 16px;
    text-align: center;
    color: rgb(84, 102, 129);
    font-size: 14px;
    margin-bottom: 40px;
}

/* ---------- Change-detail page ---------- */
.change-surface {
    background: #fff;
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 24px;
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.03), 0 18px 40px rgba(10, 37, 64, 0.05);
    padding: 40px 44px;
}
.change-surface .blur-wrap {
    margin-bottom: 0;
}
.breadcrumb {
    font-size: 13px;
    color: rgb(148, 163, 184);
    margin-bottom: 32px;
}
.breadcrumb a { color: rgb(148, 163, 184); transition: color .15s ease; }
.breadcrumb a:hover { color: rgb(99, 91, 255); }
.breadcrumb-sep { margin: 0 8px; color: rgb(203, 213, 225); }
.breadcrumb-current { color: rgb(84, 102, 129); }

.page-header { margin-bottom: 28px; }
.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: rgb(10, 37, 64);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.impact-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.impact-high {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.10);
}
.impact-medium {
    background: rgba(217, 119, 6, 0.06);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.10);
}
.impact-low {
    background: rgba(34, 197, 94, 0.06);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.10);
}
.page-meta {
    font-size: 14px;
    color: rgb(84, 102, 129);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.dot { color: rgb(203, 213, 225); }

.impact-chips {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.impact-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}
.impact-chip.is-zero { opacity: 0.3; }
.impact-chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.impact-chip-icon svg { width: 10px; height: 10px; display: block; }
.impact-chip.is-bad { color: #dc2626; }
.impact-chip.is-bad .impact-chip-icon { background: rgba(239, 68, 68, 0.12); }
.impact-chip.is-good { color: #16a34a; }
.impact-chip.is-good .impact-chip-icon { background: rgba(34, 197, 94, 0.12); }
.impact-chip.is-neutral { color: #64748b; }
.impact-chip.is-neutral .impact-chip-icon { background: rgba(100, 116, 139, 0.14); }

/* VxTooltip-matching tooltip (CSS-only, no JS) */
.tooltip-host {
    position: relative;
    display: inline-flex;
}
.tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    width: 260px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity .15s ease, transform .15s ease;
}
.tooltip-title {
    display: block;
    font-weight: 600;
    color: rgb(10, 37, 64);
    margin-bottom: 2px;
}
.tooltip-desc {
    display: block;
    font-weight: 400;
    color: #374151;
}
.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.06);
}
.tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(255, 255, 255, 0.95);
}
.tooltip-host:hover .tooltip,
.tooltip-host:focus-within .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.amber {
    background: rgba(245, 158, 11, 0.06);
    border-left: 4px solid rgb(217, 119, 6);
    border-radius: 0 12px 12px 0;
    padding: 14px 20px;
    font-size: 13.5px;
    color: rgb(71, 85, 105);
    line-height: 1.6;
    margin: 24px 0 32px;
}

.card {
    display: flex;
    flex-direction: column;
    margin-bottom: 56px;
}
.card-section-title {
    font-size: 20px;
    font-weight: 700;
    color: rgb(10, 37, 64);
    margin: 0 0 12px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.redline-box {
    font-size: 15px;
    color: rgb(51, 65, 85);
    line-height: 1.8;
    margin-bottom: 24px;
}
.redline-old {
    text-decoration: line-through;
    text-decoration-color: rgba(220, 38, 38, 0.55);
    text-decoration-thickness: 1.5px;
    color: #b91c1c;
}
.redline-new {
    color: #15803d;
    background: rgba(34, 197, 94, 0.10);
    padding: 0 3px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 500;
}
.impacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.impact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.impact-icon {
    cursor: help;
}
.impact-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.impact-badge svg {
    width: 13px;
    height: 13px;
    display: block;
}
.impact-good {
    background: rgba(34, 197, 94, 0.10);
    color: #16a34a;
}
.impact-bad {
    background: rgba(239, 68, 68, 0.10);
    color: #dc2626;
}
.impact-neutral {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}
.impact-text {
    font-size: 14px;
    color: rgb(51, 65, 85);
    line-height: 1.6;
}

.more-label {
    font-size: 11px;
    font-weight: 600;
    color: rgb(99, 91, 255);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.blur-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}
.blur-item {
    background: rgb(248, 249, 251);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(10, 37, 64, 0.04);
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
}
.blur-section {
    font-size: 15px;
    font-weight: 600;
    color: rgb(10, 37, 64);
    margin-bottom: 8px;
    text-decoration: line-through;
    text-decoration-color: rgba(10, 37, 64, 0.3);
}
.blur-summary {
    font-size: 13px;
    color: rgb(84, 102, 129);
    line-height: 1.6;
}
.blur-wrap {
    position: relative;
    margin-bottom: 40px;
}
.blur-wrap .blur-list {
    margin-bottom: 0;
}
.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.85) 100%);
}
.pill--cta {
    padding: 13px 24px;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.22);
}
.pill--cta:hover {
    box-shadow: 0 10px 28px rgba(10, 37, 64, 0.28);
}

.cta {
    background: rgba(99, 91, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(99, 91, 255, 0.10);
    padding: 36px 40px;
    margin-bottom: 48px;
}
.cta-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: rgb(99, 91, 255);
    background: rgba(99, 91, 255, 0.06);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: rgb(10, 37, 64);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.cta p {
    font-size: 14px;
    color: rgb(84, 102, 129);
    margin: 0 0 24px;
    line-height: 1.6;
    max-width: 560px;
}
.cta-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cta-input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid rgba(10, 37, 64, 0.10);
    background: #fff;
    padding: 0 16px;
    font-size: 14px;
    color: rgb(10, 37, 64);
    outline: none;
    font-family: inherit;
}
.cta-input::placeholder { color: rgb(148, 163, 184); }
.cta-subtext {
    font-size: 12px;
    color: rgb(148, 163, 184);
    line-height: 1.5;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(10, 37, 64, 0.06);
    flex-wrap: wrap;
}
.bottom-title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(10, 37, 64);
    margin-bottom: 4px;
}
.bottom-sub {
    font-size: 13px;
    color: rgb(84, 102, 129);
}

@media (max-width: 640px) {
    .card { padding: 0 24px; }
    .cta { padding: 28px 24px; }
    .page-title h1 { font-size: 26px; }
}
