/* Spire Print Connect theme */
:root {
    --spc-orange: #f26a21;
    --spc-ink: #111;
    --spc-muted: #5c5c5c;
    --spc-surface: #f2f2f0;
    --spc-line: #e3e3e0;
    --spc-radius: 16px;
    --spc-radius-sm: 10px;
    --spc-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --spc-mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --bs-body-font-family: var(--spc-font);
    --bs-link-color-rgb: 17, 17, 17;
    --bs-link-hover-color-rgb: 242, 106, 33;
}

body {
    font-family: var(--spc-font);
    color: var(--spc-ink);
    background: #fff;
}

a { text-underline-offset: 3px; }

/* Top band + hero */
.spc-top {
    background: var(--spc-ink);
    color: #fff;
    padding-bottom: 5rem;
}

.spc-top .navbar { padding: 1.25rem .75rem; } /* .navbar zeroes the container gutter; restore it to line up with the hero */

.spc-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.spc-brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: var(--spc-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spc-brand-mark img { width: 72%; height: auto; }

.spc-hero { padding-top: 1.5rem; }

.spc-hero-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -.02em;
    margin: .75rem 0 1rem;
}

.spc-hero-lead {
    color: rgba(255, 255, 255, .78);
    font-size: 1.15rem;
    max-width: 40rem;
    margin: 0;
}

.spc-badge {
    display: inline-block;
    padding: .3rem .9rem;
    border-radius: 999px;
    background: var(--spc-orange);
    color: var(--spc-ink);
    font-weight: 500;
    font-size: .9rem;
}

.spc-badge--muted { background: #d9d9d6; }
.spc-badge--error { background: #e5484d; color: #fff; }

.spc-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spc-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9.5rem;
    height: 6.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--spc-radius-sm);
    font-weight: 500;
    font-size: 1.1rem;
}

.spc-logo-tile img { max-width: 100%; max-height: 100%; }

/* Black-on-white source logo shown on the dark band */
.spc-logo-invert { filter: invert(1); mix-blend-mode: screen; }

.spc-connector {
    position: relative;
    width: 6rem;
    height: 2px;
    background: var(--spc-orange);
}

.spc-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--spc-orange);
    transform: translate(-50%, -50%);
}

/* Main area overlaps the dark band */
.spc-main {
    position: relative;
    margin-top: -3.5rem;
    padding-bottom: 3rem;
}

/* Cards */
.spc-card {
    background: #fff;
    border: 1px solid var(--spc-line);
    border-radius: var(--spc-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.spc-card--muted {
    background: var(--spc-surface);
    border-color: var(--spc-surface);
}

.spc-card h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.spc-label {
    display: block;
    margin: 1.5rem 0 .6rem;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--spc-muted);
}

.spc-field {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    border: 0;
    border-radius: var(--spc-radius-sm);
    background: var(--spc-surface);
    color: var(--spc-ink);
    font-family: var(--spc-mono);
    font-size: .95rem;
    word-break: break-all;
}

.spc-field:focus { outline: 2px solid var(--spc-orange); }

.spc-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: .75rem;
    margin-top: .75rem;
}

/* Buttons */
.spc-btn,
.spc-btn-outline,
.btn-primary {
    display: inline-block;
    padding: .75rem 1.25rem;
    border-radius: var(--spc-radius-sm);
    border: 1px solid var(--spc-ink);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.spc-btn,
.btn-primary {
    background: var(--spc-ink);
    color: #fff;
}

.spc-btn:hover,
.btn-primary:hover,
.btn-primary:focus {
    background: #333;
    border-color: #333;
    color: #fff;
}

.spc-btn-outline {
    background: #fff;
    color: var(--spc-ink);
}

.spc-btn-outline:hover { background: var(--spc-surface); }

.spc-btn-danger {
    border-color: #c62828;
    color: #c62828;
}

.spc-btn-danger:hover { background: #fdecec; }

.spc-btn-sm {
    padding: .3rem .75rem;
    margin-left: .5rem;
    font-size: .85rem;
}

/* Campaigns table */
.spc-campaigns th {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--spc-muted);
}

.spc-campaigns td { padding-top: 1rem; padding-bottom: 1rem; }

.spc-campaigns img {
    display: block;
    width: 96px;
    height: auto;
    border: 1px solid var(--spc-line);
    border-radius: 8px;
}

.spc-campaigns code {
    font-family: var(--spc-mono);
    color: var(--spc-ink);
    white-space: nowrap;
}

/* Copyable code block */
.spc-code {
    max-height: 28rem;
    overflow: auto;
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: var(--spc-radius-sm);
    background: var(--spc-surface);
    font-family: var(--spc-mono);
    font-size: .875rem;
    line-height: 1.55;
}

.spc-code code { color: var(--spc-ink); }

/* Numbered steps */
.spc-steps {
    list-style: none;
    counter-reset: spc-step;
    padding: 0;
    margin: 0;
}

.spc-steps > li {
    counter-increment: spc-step;
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.spc-steps > li:last-child { margin-bottom: 0; }

.spc-steps > li::before {
    content: counter(spc-step);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--spc-orange);
    color: var(--spc-ink);
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spc-hint {
    margin: .6rem 0 0;
    font-size: .875rem;
    color: var(--spc-muted);
}

.spc-hint code {
    font-family: var(--spc-mono);
    color: var(--spc-ink);
}

/* Screenshot frame */
.spc-shot {
    margin: 1.5rem 0 0;
}

.spc-shot img {
    display: block;
    max-width: 100%;
    height: auto;
    padding: .75rem;
    border: 1px dashed #b5b5b0;
    border-radius: 12px;
    background: var(--spc-surface);
}

.spc-shot figcaption {
    margin-top: .6rem;
    font-size: .9rem;
    color: var(--spc-muted);
}

/* Alerts (replace old errorDiv/thankYouDiv) */
.spc-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--spc-radius-sm);
    border-left: 4px solid var(--spc-orange);
    background: #fff4ec;
    margin-bottom: 1.25rem;
}

.spc-alert p:last-child { margin-bottom: 0; }

.spc-alert--error {
    border-left-color: #c62828;
    background: #fdecec;
}

/* OrchardCore.Users pages (Layout-Login): page heading sits above the form, so don't overlap the dark band */
.spc-top:has(+ .spc-auth) { padding-bottom: 2.5rem; }

.spc-auth {
    margin-top: 0;
    padding-top: 2.5rem;
}

/* Login/Register/Forgot pages each use different grid classes; normalise to one centred column */
.spc-auth > .row { max-width: 34rem; margin-inline: auto; }
.spc-auth > .row > [class*="col-"] { width: 100%; margin-left: 0; }

.spc-auth h1,
.spc-auth h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.spc-auth hr { display: none; }

.spc-auth form {
    background: #fff;
    border: 1px solid var(--spc-line);
    border-radius: var(--spc-radius);
    padding: 2rem;
}


.form-control,
.form-select {
    border-radius: var(--spc-radius-sm);
    border-color: var(--spc-line);
    background: var(--spc-surface);
    padding: .75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--spc-orange);
    box-shadow: 0 0 0 .2rem rgba(242, 106, 33, .2);
    background: #fff;
}

.form-check-input:checked {
    background-color: var(--spc-orange);
    border-color: var(--spc-orange);
}

/* Footer */
.spc-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid var(--spc-line);
    color: var(--spc-muted);
    font-size: .9rem;
}

.spc-footer a { color: var(--spc-muted); }

@media (max-width: 991.98px) {
    .spc-logos { display: none; }
    .spc-card { padding: 1.5rem; }
}
