/* Footprint Cleaner: the GDPR Toolkit card (gdpr.css) with a sticky progress bar and lists of
   tickable items. Loaded after gdpr.css on /footprint/ only. */

/* Progress: sticks just under the fixed header while the steps scroll past */
.fp-progress {
    position: sticky;
    top: 72px;
    z-index: 5;
    margin: 24px -4px 8px;
    padding: 14px 4px 12px;
    background: #120a2b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-progress-text {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--season-muted);
}

.fp-progress-text strong {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--lime);
    text-shadow: 0 0 10px rgba(198, 230, 65, 0.45);
}

.fp-bar {
    height: 6px;
    margin: 8px 0 10px;
    background: rgba(255, 255, 255, 0.08);
}

.fp-bar-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--lime);
    box-shadow: 0 0 12px rgba(198, 230, 65, 0.6);
    transition: width 0.3s ease;
}

.fp-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-jump a {
    display: inline-block;
    padding: 6px 0;
    color: var(--season-muted);
    text-decoration: none;
}

.fp-jump a:hover {
    color: var(--lime);
}

/* Steps: headings sit below the sticky bar when jumped to */
.fp-step {
    scroll-margin-top: 200px;
}

.fp-step h2 {
    margin: 0 0 12px;
}

.fp-count {
    margin-left: 8px;
    color: var(--season-muted);
    text-shadow: none;
}

/* Search and filter chips above a list */
.fp-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.fp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-filters .filter-btn {
    min-height: 36px;
    padding: 8px 12px;
    cursor: pointer;
}

.fp-filters .filter-btn[aria-pressed="true"] {
    background: var(--lime);
    border-color: var(--lime);
    color: #160c2e;
}

/* Items */
.fp-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.fp-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fp-main {
    flex: 1;
    min-width: 0;
}

.fp-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.fp-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.fp-badge {
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--season-muted);
}

.fp-badge.is-easy {
    border-color: rgba(198, 230, 65, 0.5);
    color: var(--lime);
}

.fp-badge.is-medium,
.fp-badge.is-unsure {
    border-color: rgba(242, 166, 90, 0.6);
    color: #f2a65a;
}

.fp-badge.is-hard {
    border-color: rgba(255, 110, 110, 0.6);
    color: #ff8f8f;
}

.fp-body {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.fp-steps {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.fp-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--season-muted);
}

.fp-link {
    color: var(--lime);
}

/* Done / Skip */
.fp-acts {
    display: flex;
    flex: none;
    gap: 6px;
}

.fp-acts .season-reset {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    cursor: pointer;
}

.fp-acts .fp-done[aria-pressed="true"] {
    background: var(--lime);
    border-color: var(--lime);
    color: #160c2e;
}

.fp-acts .fp-skip {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--season-muted);
}

.fp-acts .fp-skip[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.fp-item[data-state="done"] .fp-name {
    color: var(--lime);
}

.fp-item[data-state="done"] .fp-name::before {
    content: "✓ ";
}

.fp-item[data-state="skip"] .fp-main {
    opacity: 0.45;
}

/* 03 and 04 are long: they scroll inside their own box, so the steps after them stay close */
.fp-list[data-list] {
    max-height: min(560px, 65vh);
    padding: 0 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    scrollbar-color: rgba(198, 230, 65, 0.5) transparent;
}

.fp-list[data-list]:empty {
    display: none;
}

.fp-list[data-list] .fp-item:last-child {
    border-bottom: 0;
}

.fp-list[data-list]:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

.fp-empty {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--season-muted);
}

.fp-source {
    margin: 0;
}

/* 05: company picker and one letter per company */
.fp-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 220px;
    margin-bottom: 18px;
    overflow-y: auto;
}

.fp-pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.fp-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fp-pick:has(input:checked) {
    border-color: var(--lime);
    background: rgba(198, 230, 65, 0.12);
    color: var(--lime);
}

.fp-pick:has(input:checked) span::before {
    content: "✓ ";
}

.fp-pick:has(input:focus-visible) {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

.fp-letters {
    margin-top: 8px;
}

.fp-letter-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-letter-acts .season-reset {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    cursor: pointer;
}

.fp-letter-acts .gdpr-primary {
    background: var(--lime);
    border-color: var(--lime);
    color: #160c2e;
}

.fp-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--lime);
    text-decoration: underline;
    cursor: pointer;
}

/* Wide screens: items sit in two columns, so the page is half as long */
@media (min-width: 900px) {
    .fp-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 36px;
    }

    .fp-list[data-list] .fp-item:nth-last-child(2):nth-child(odd) {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .fp-item {
        flex-direction: column;
        gap: 10px;
    }

    /* The header is taller here; drop the step links to keep the bar short */
    .fp-progress {
        top: 86px;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 8px;
    }

    .fp-jump {
        display: none;
    }

    .fp-bar {
        margin-bottom: 0;
    }

    .fp-step {
        scroll-margin-top: 170px;
    }
}
