/*
 * Styles for the CMS content blocks.
 *
 * Loaded both by the public page layout and by the Filament panel, so a block
 * preview in the admin looks exactly like the published page.
 */
.cms-block {
    --cms-ink: #18181b;
    --cms-muted: #52525b;
    --cms-line: #e4e4e7;
    --cms-soft: #fafafa;
    --cms-accent: #f59e0b;

    box-sizing: border-box;
    width: 100%;
    padding: 48px 32px;
    background: #fff;
    color: var(--cms-ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
}

.cms-block *,
.cms-block *::before,
.cms-block *::after {
    box-sizing: border-box;
}

.cms-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* --- Under construction ----------------------------------------------- */

.cms-construction {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 12vw, 140px) 32px;
    text-align: center;
}

.cms-construction--dark {
    background: #0b0b0f;
    color: #fafafa;
}

.cms-construction--light {
    background: var(--cms-soft);
    color: var(--cms-ink);
}

/* A soft light behind the text, so the panel is not a flat rectangle. */
.cms-construction__glow {
    position: absolute;
    left: 50%;
    top: -30%;
    width: min(900px, 120%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--cms-accent) 0%, transparent 62%);
    opacity: .18;
}

.cms-construction--light .cms-construction__glow { opacity: .3; }

.cms-construction__inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.cms-construction__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .75;
}

.cms-construction__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cms-accent);
    box-shadow: 0 0 0 0 var(--cms-accent);
    animation: cms-pulse 2.2s ease-out infinite;
}

@keyframes cms-pulse {
    0% { box-shadow: 0 0 0 0 rgb(245 158 11 / .55); }
    70% { box-shadow: 0 0 0 9px rgb(245 158 11 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(245 158 11 / 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cms-construction__pulse { animation: none; }
}

.cms-construction__heading {
    margin: 26px 0 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 700;
}

.cms-construction__message {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.6;
    opacity: .72;
}

.cms-construction__date {
    margin: 22px 0 0;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .55;
}

.cms-construction__link {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--cms-accent);
    color: #1c1917;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

/* --- Post header ------------------------------------------------------ */

.cms-post-header { padding-bottom: 8px; }

.cms-post-header__meta {
    color: var(--cms-muted);
    font-size: 14px;
}

.cms-post-header__title {
    margin: 10px 0 0;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
}

/* --- Empty placeholder shown in the admin preview --------------------- */

.cms-placeholder {
    padding: 28px;
    border: 1px dashed #d4d4d8;
    border-radius: 12px;
    color: #a1a1aa;
    font-size: 14px;
    text-align: center;
}
