.section-preview {
    position: absolute;
    z-index: 900000;
    width: 440px;
    padding: 8px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
    pointer-events: none;
}

/* Triangle pointing at the hovered layout */
.section-preview::after {
    content: '';
    position: absolute;
    top: var(--arrow, 50%);
    right: -7px;
    width: 12px;
    height: 12px;
    border: solid #dcdcde;
    border-width: 1px 1px 0 0;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.section-preview.is-right::after {
    right: auto;
    left: -7px;
    border-width: 0 0 1px 1px;
}

.section-preview[hidden] {
    display: none;
}

.section-preview__label {
    margin: 10px 4px 0;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
}

.section-preview__description {
    margin: 2px 4px 2px;
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

/* Skeleton frame: white surfaces, grey outlines, grey boxes for images */
.wire {
    --wire-line: #e2e4e7;
    --wire-heading: #c5c8cc;
    --wire-text: #e9ebed;
    --wire-fill: #f1f2f4;

    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
    border: 1px solid var(--wire-line);
    border-radius: 5px;
    background: #fff;
}

.wire-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.wire-row > * {
    flex: 1 1 0;
    min-width: 0;
}

.wire-column {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.is-centred {
    align-items: center;
}

.is-middle {
    justify-content: center;
}

.is-spread {
    justify-content: space-between;
    align-items: center;
}

.wire-heading,
.wire-line,
.wire-eyebrow {
    flex: none;
    border-radius: 3px;
}

.wire-heading {
    height: 11px;
    background: var(--wire-heading);
}

.wire-heading.is-small {
    height: 7px;
}

.wire-line {
    height: 5px;
    background: var(--wire-text);
}

.wire-eyebrow {
    width: 22%;
    height: 4px;
    background: var(--wire-heading);
}

.wire-button {
    flex: none !important;
    box-sizing: border-box;
    width: 62px;
    height: 17px;
    border: 1px solid var(--wire-heading);
    border-radius: 99px;
    background: var(--wire-heading);
}

.wire-button.is-outline {
    background: #fff;
}

.wire-image {
    position: relative;
    min-height: 74px;
    border-radius: 6px;
    background: var(--wire-fill);
}

.wire-image.is-tall {
    min-height: 132px;
}

.wire-image.is-portrait {
    min-height: 96px;
}

.wire-image.is-logo {
    min-height: 30px;
}

.wire-image.is-map {
    min-height: 150px;
    background:
        linear-gradient(90deg, transparent 31%, #fff 31% 33%, transparent 33% 68%, #fff 68% 70%, transparent 70%),
        linear-gradient(transparent 38%, #fff 38% 41%, transparent 41% 74%, #fff 74% 77%, transparent 77%),
        var(--wire-fill);
}

.wire-image.is-map::before {
    content: '';
    position: absolute;
    inset: 34% auto auto 47%;
    width: 18px;
    height: 24px;
    background: var(--wire-heading);
    clip-path: polygon(50% 100%, 8% 42%, 8% 22%, 28% 0, 72% 0, 92% 22%, 92% 42%);
}

/* Content laid over a background image, as in the hero */
.wire-backdrop {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 9px;
    background: var(--wire-fill);
}

.wire-backdrop .wire-line {
    background: #fff;
}

.wire-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px;
    border: 1px solid var(--wire-line);
    border-radius: 7px;
    background: #fff;
}

.wire-icon {
    flex: none !important;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 1px solid var(--wire-heading);
    border-radius: 5px;
    background: #fff;
}

.wire-icon.is-round {
    border-radius: 50%;
}

.wire-icon.is-solid {
    background: var(--wire-heading);
}

.wire-field {
    height: 20px;
    border-bottom: 1px solid var(--wire-line);
}

.wire-field.is-area {
    height: 44px;
}

.wire-field.is-boxed {
    border: 1px solid var(--wire-line);
    border-radius: 99px;
}

.wire-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 1px dashed var(--wire-line);
    border-radius: 7px;
    color: var(--wire-heading);
    font: 600 22px/1 ui-monospace, Menlo, monospace;
}

.wire-quote {
    color: var(--wire-heading);
    font: 700 34px/0.6 Georgia, serif;
}

.wire-button.is-wide {
    width: 100%;
    margin-top: auto;
}

/* Photo with its title and link laid over it */
.wire-image.is-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 78px;
    padding: 10px;
}

.wire-image.is-cover .wire-line {
    background: var(--wire-heading);
}

.is-ruled {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--wire-line);
}

.wire-plus {
    flex: none !important;
    color: var(--wire-heading);
    font: 400 15px/0.6 sans-serif;
}

.wire-dots {
    width: 26px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--wire-heading) 55%, transparent 55% 70%, var(--wire-text) 70%);
}

/* Coloured and dark panels read as a filled card */
.wire-card.is-filled {
    border-color: transparent;
    background: var(--wire-fill);
}

.wire-card.is-filled .wire-line {
    background: #fff;
}

.wire-card.is-filled .wire-card {
    border-color: transparent;
}

.is-topruled {
    padding-top: 10px;
    border-top: 1px solid var(--wire-heading);
}

.wire-gap {
    height: 18px;
}

.wire-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-content: center;
    justify-content: flex-end;
}

.wire-chip {
    height: 13px;
    border: 1px solid var(--wire-heading);
    border-radius: 4px;
    background: #fff;
}

.wire-field.is-input {
    height: 18px;
    border: 1px solid var(--wire-line);
    border-radius: 5px;
    background: #fff;
}

.wire-field.is-input.is-area {
    height: 40px;
}

.section-preview__or {
    margin: 5px 0;
    color: #8c8f94;
    font-size: 11px;
    line-height: 1;
    text-align: center;
}
