/* ============================================================
   Editorial Design System — shared across nebula + public layouts
   Loaded alongside tailwind.css + modern-redesign.css.
   Contains: ad-slot wrapper, editorial article typography,
   shared tokens (mirrors of layouts/public.blade.php inline vars).
   ============================================================ */

:root {
    --ed-paper: #f7f2e8;
    --ed-paper-2: #fffdfa;
    --ed-ink: #111827;
    --ed-muted: #5b6474;
    --ed-line: rgba(17, 24, 39, 0.12);
    --ed-accent: #de6b1f;
    --ed-accent-2: #0f766e;
    --ed-shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
    --ed-panel: rgba(255, 251, 245, 0.82);
}

/* ---------- Body background (editorial paper) ---------- */
body.antialiased,
body.font-inter {
    font-family: "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(222, 107, 31, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 24%),
        linear-gradient(180deg, #fdf9f2 0%, #f4f0e8 48%, #edf3f1 100%);
    background-attachment: fixed;
    color: var(--ed-ink);
    min-height: 100vh;
}

/* ---------- Public shell (decorative blobs container) ---------- */
.public-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.public-shell::before,
.public-shell::after {
    content: "";
    position: fixed;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    filter: blur(84px);
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
}
.public-shell::before {
    top: -7rem;
    right: -6rem;
    background: rgba(222, 107, 31, 0.46);
}
.public-shell::after {
    bottom: 3rem;
    left: -5rem;
    background: rgba(15, 118, 110, 0.32);
}
@media (max-width: 1023px) {
    .public-shell::before,
    .public-shell::after {
        width: 16rem;
        height: 16rem;
    }
}

/* ---------- Public panel (card surface) ---------- */
.public-panel {
    background: var(--ed-panel);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ---------- Public chip ---------- */
.public-chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 24, 39, 0.1);
}

/* ---------- Public nav link ---------- */
.public-nav-link:hover,
.public-nav-link:focus-visible {
    color: var(--ed-accent);
}

/* ---------- Public grid (subtle background grid) ---------- */
.public-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
    pointer-events: none;
}

/* ---------- Public prose (long-form article body) ---------- */
.public-prose {
    color: var(--ed-muted);
    line-height: 1.8;
}
.public-prose h1,
.public-prose h2,
.public-prose h3,
.public-prose h4,
.public-prose h5,
.public-prose h6,
.public-prose ul,
.public-prose ol,
.public-prose li {
    all: revert;
}
.public-prose h2,
.public-prose h3 {
    color: var(--ed-ink);
}

/* ---------- Pause spinner (Livewire refresh indicator) ---------- */
.pause-spinner {
    animation-play-state: paused;
}

/* ---------- Ad slot wrapper (AdSense compliant) ---------- */
.ad-slot-wrapper {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
}
.ad-slot-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.ad-slot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    width: 100%;
}
.ad-slot-container .adsbygoogle {
    min-width: 250px;
}
.ad-slot-container .adsbygoogle[style*="height:600px"] {
    width: 160px;
    max-width: 100%;
    height: 600px;
    margin: 0 auto;
}

/* ---------- Editorial article typography (blog single post, SEO page body) ---------- */
.editorial-prose {
    color: var(--ed-muted);
    line-height: 1.85;
    font-size: 1.0625rem;
}
.editorial-prose > * + * { margin-top: 1.25rem; }
.editorial-prose h1,
.editorial-prose h2,
.editorial-prose h3,
.editorial-prose h4,
.editorial-prose h5,
.editorial-prose h6 {
    color: var(--ed-ink);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 2rem;
}
.editorial-prose h1 { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }
.editorial-prose h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.editorial-prose h3 { font-size: 1.375rem; }
.editorial-prose p { margin: 1.25rem 0; }
.editorial-prose a { color: var(--ed-accent); text-decoration: underline; text-underline-offset: 2px; }
.editorial-prose a:hover { color: var(--ed-accent-2); }
.editorial-prose ul,
.editorial-prose ol { padding-left: 1.5rem; margin: 1.25rem 0; }
.editorial-prose ul { list-style: disc; }
.editorial-prose ol { list-style: decimal; }
.editorial-prose li { margin: 0.5rem 0; }
.editorial-prose blockquote {
    border-left: 3px solid var(--ed-accent);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--ed-ink);
    font-style: italic;
}
.editorial-prose pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.875rem;
}
.editorial-prose code {
    background: rgba(17, 24, 39, 0.06);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}
.editorial-prose pre code { background: transparent; padding: 0; }
.editorial-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
}
.editorial-prose hr {
    border: none;
    border-top: 1px solid var(--ed-line);
    margin: 2rem 0;
}

/* ---------- Article meta row (blog post) ---------- */
.editorial-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--ed-muted);
    font-size: 0.875rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ed-line);
    margin-bottom: 2rem;
}
.editorial-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.5;
}
.editorial-meta .author { font-weight: 600; color: var(--ed-ink); }

/* ---------- Article hero image ---------- */
.editorial-hero-image {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid var(--ed-line);
    background: rgba(255, 255, 255, 0.6);
}
.editorial-hero-image img { width: 100%; height: auto; display: block; }

/* ---------- Card hover treatment (blog index, SEO cards) ---------- */
.editorial-card {
    display: block;
    border: 1px solid var(--ed-line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    padding: 1.25rem;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    color: inherit;
    text-decoration: none;
}
.editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.1);
    border-color: rgba(222, 107, 31, 0.4);
}
.editorial-card .card-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ed-accent);
}
.editorial-card .card-title {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.025em;
    color: var(--ed-ink);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-top: 0.75rem;
}
.editorial-card .card-excerpt {
    color: var(--ed-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}
.editorial-card .card-meta {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Pagination ---------- */
.editorial-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.editorial-pagination a,
.editorial-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--ed-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ed-ink);
    font-size: 0.875rem;
    font-weight: 600;
}
.editorial-pagination a:hover {
    border-color: var(--ed-accent);
    color: var(--ed-accent);
}
.editorial-pagination .active span,
.editorial-pagination .current {
    background: var(--ed-ink);
    color: #fff;
    border-color: var(--ed-ink);
}

/* ---------- Numbered ranking cards (SEO top ten) ---------- */
.editorial-rank {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid var(--ed-line);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    color: inherit;
    text-decoration: none;
}
.editorial-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.1);
    border-color: rgba(15, 118, 110, 0.4);
}
.editorial-rank .rank-number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--ed-accent);
    font-weight: 700;
    letter-spacing: -0.04em;
    min-width: 3rem;
}
.editorial-rank .rank-body { flex: 1; }
.editorial-rank .rank-title {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ed-ink);
    font-size: 1.5rem;
    line-height: 1.2;
}
.editorial-rank .rank-meta {
    margin-top: 0.5rem;
    color: var(--ed-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ---------- Search input (SEO directory + blog search) ---------- */
.editorial-search {
    position: relative;
    border: 1px solid var(--ed-line);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    box-shadow: var(--ed-shadow);
}
.editorial-search input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    color: var(--ed-ink);
    outline: none;
}
.editorial-search input::placeholder { color: #9ca3af; }
.editorial-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* ---------- Chip / tag ---------- */
.editorial-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #374151;
}
.editorial-chip--accent { color: var(--ed-accent); }
.editorial-chip--teal { color: var(--ed-accent-2); }
.editorial-chip--muted { color: #6b7280; }

/* ---------- FAQ details (SEO page + blog post) ---------- */
.editorial-faq {
    border: 1px solid var(--ed-line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}
.editorial-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--ed-ink);
    font-size: 1.0625rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.editorial-faq summary::-webkit-details-marker { display: none; }
.editorial-faq summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--ed-accent);
    font-weight: 300;
    transition: transform 200ms ease;
}
.editorial-faq[open] summary::after { content: "−"; }
.editorial-faq .editorial-faq-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-line);
    color: var(--ed-muted);
    line-height: 1.8;
}

/* ---------- Section eyebrow ---------- */
.editorial-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b7280;
}

/* ---------- Display heading ---------- */
.editorial-heading {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.045em;
    color: var(--ed-ink);
    line-height: 1.05;
}

/* ---------- CTA button ---------- */
.editorial-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--ed-ink);
    color: #fff;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 200ms ease, transform 200ms ease;
}
.editorial-cta:hover {
    background: var(--ed-accent);
    transform: translateY(-1px);
}
.editorial-cta--ghost {
    background: transparent;
    color: var(--ed-ink);
    border: 1px solid var(--ed-line);
}
.editorial-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--ed-accent);
    border-color: var(--ed-accent);
}