.sop-me-embed {
    font-family: inherit;
    color: inherit;
}

.sop-me-embed-dashboard .sop-me-embed__counts {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sop-me-embed-procedures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.sop-me-procedure-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.sop-me-procedure-card__title a {
    text-decoration: none;
    color: inherit;
}

.sop-me-procedure-card__title a:hover {
    text-decoration: underline;
}

.sop-me-procedure-card__category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.sop-me-procedure__cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.sop-me-steps {
    margin: 0;
    padding: 0;
}

.sop-me-step__title {
    font-weight: 600;
}

.sop-me-step__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sop-me-step-number {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.sop-me-step__instructions {
    margin-top: 0.35rem;
}

.sop-me-step__image {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.sop-me-step__code {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin-top: 0.5rem;
}

/* Classic — plain ordered list, native numbering */
.sop-me-steps--classic {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1.5rem;
}

.sop-me-steps--classic > .sop-me-step {
    padding-left: 0.25rem;
}

/* Sidebar — meta/checklist pinned left, steps scroll on the right.
   Reuses .sop-me-steps--classic for the list itself; only the outer
   two-column shell differs. */
.sop-me-procedure--sidebar {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 2rem;
    align-items: start;
}

.sop-me-procedure__sidebar {
    position: sticky;
    top: 1rem;
}

@media (max-width: 720px) {
    .sop-me-procedure--sidebar {
        grid-template-columns: 1fr;
    }

    .sop-me-procedure__sidebar {
        position: static;
    }
}

/* Card Grid — steps as a grid of visual cards */
.sop-me-steps--cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.sop-me-step-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

/* Cards are visually separated tiles, so the number reads well bigger here */
.sop-me-steps--cards .sop-me-step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.15rem;
    background: rgba(0, 0, 0, 0.1);
}

.sop-me-step__image-link {
    display: block;
    cursor: zoom-in;
}

/* Foundation 6 Reveal modal content */
.sop-me-lightbox {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.sop-me-lightbox img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

/* Accordion — collapsed by default, native <details>/<summary> */
.sop-me-steps--accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sop-me-step--accordion {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.sop-me-step--accordion summary {
    cursor: pointer;
    list-style: none;
}

.sop-me-step--accordion summary::-webkit-details-marker {
    display: none;
}

.sop-me-step--accordion summary::before {
    content: '▸';
    display: inline-block;
    width: 1em;
    opacity: 0.6;
}

.sop-me-step--accordion[open] summary::before {
    content: '▾';
}

.sop-me-step__accordion-body {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

/* Timeline — one continuous through-line runs the full height of the list,
   outside/behind the step titles, with numbered dots sitting on top of it. */
.sop-me-steps--timeline {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-left: 0;
    position: relative;
}

.sop-me-steps--timeline::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    transform: translateX(-50%);
    width: 3px;
    background: currentColor;
    opacity: 0.35;
}

.sop-me-step--timeline {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.sop-me-timeline-dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.sop-me-timeline-content {
    flex: 1;
    padding-top: 0.15rem;
}

.sop-me-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.sop-me-checklist__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sop-me-checklist__notes {
    opacity: 0.6;
    font-size: 0.85rem;
}
