/* Public parade planning guides (/guides). Standalone Blade section, so this
   file is self-contained rather than sharing the parade page stylesheets. */

:root {
    color-scheme: light;
    --guide-emerald: #047857;
    --guide-emerald-dark: #064e3b;
    --guide-emerald-deep: #022c22;
    --guide-amber: #f59e0b;
    --guide-ink: #1f2937;
    --guide-muted: #6b7280;
    --guide-border: #e5e7eb;
    --guide-bg: #f7f5f2;
    --guide-surface: #ffffff;
    --guide-max: 1120px;
    --guide-read: 720px;
}

* {
    box-sizing: border-box;
}

.guides-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--guide-ink);
    background: var(--guide-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.guides-body a {
    color: inherit;
}

/* ---------- Navigation ---------- */

.guides-nav {
    background: var(--guide-surface);
    border-bottom: 1px solid var(--guide-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.guides-nav-inner {
    max-width: var(--guide-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.guides-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.guides-nav-links {
    display: flex;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
    margin-right: auto;
}

.guides-nav-links a {
    color: var(--guide-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.guides-nav-links a:hover {
    color: var(--guide-emerald);
}

.guides-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.guides-btn-primary,
.guides-btn-outline,
.guides-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.guides-btn-primary {
    background: var(--guide-amber);
    color: #fff;
}

.guides-btn-primary:hover {
    background: #d97706;
}

.guides-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.guides-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.guides-btn-ghost {
    color: var(--guide-muted);
}

.guides-btn-ghost:hover {
    color: var(--guide-emerald);
}

.guides-btn-lg {
    padding: 13px 30px;
    font-size: 16px;
}

/* ---------- Index hero ---------- */

.guides-hero {
    background: linear-gradient(160deg, var(--guide-emerald-deep), var(--guide-emerald));
    color: #fff;
    padding: 72px 24px 64px;
}

.guides-hero-inner {
    max-width: var(--guide-read);
    margin: 0 auto;
    text-align: center;
}

.guides-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 12px;
    font-weight: 700;
    color: var(--guide-amber);
    margin: 0 0 12px;
}

.guides-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.guides-hero-lede {
    font-size: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Index listing ---------- */

.guides-index {
    max-width: var(--guide-max);
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.guides-section {
    margin-bottom: 52px;
}

.guides-section > h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--guide-border);
    letter-spacing: -0.01em;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--guide-surface);
    border: 1px solid var(--guide-border);
    border-radius: 12px;
    padding: 22px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
    border-color: var(--guide-emerald);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.1);
    transform: translateY(-2px);
}

.guide-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--guide-emerald-dark);
    line-height: 1.35;
}

.guide-card p {
    font-size: 14.5px;
    color: var(--guide-muted);
    margin: 0 0 14px;
    flex: 1;
    line-height: 1.55;
}

.guide-card-meta {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--guide-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Article ---------- */

.guide-article {
    max-width: var(--guide-read);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.guide-breadcrumbs {
    font-size: 13.5px;
    color: var(--guide-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.guide-breadcrumbs a {
    color: var(--guide-emerald);
    text-decoration: none;
}

.guide-breadcrumbs a:hover {
    text-decoration: underline;
}

.guide-header {
    border-bottom: 1px solid var(--guide-border);
    padding-bottom: 26px;
    margin-bottom: 32px;
}

.guide-header h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.6rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.guide-lede {
    font-size: 19px;
    color: #4b5563;
    margin: 0 0 16px;
    line-height: 1.55;
}

.guide-meta {
    font-size: 13.5px;
    color: var(--guide-muted);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Table of contents */

.guide-toc {
    background: var(--guide-surface);
    border: 1px solid var(--guide-border);
    border-left: 3px solid var(--guide-emerald);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.guide-toc h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--guide-muted);
    margin: 0 0 12px;
    font-weight: 700;
}

.guide-toc ol {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
}

.guide-toc li {
    margin-bottom: 7px;
}

.guide-toc a {
    color: var(--guide-emerald);
    text-decoration: none;
}

.guide-toc a:hover {
    text-decoration: underline;
}

/* Body content */

.guide-content {
    font-size: 17.5px;
    line-height: 1.75;
}

.guide-content h2 {
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.015em;
    margin: 48px 0 16px;
    padding-top: 8px;
    line-height: 1.25;
    scroll-margin-top: 80px;
}

.guide-content h3 {
    font-size: 20.5px;
    font-weight: 700;
    margin: 34px 0 12px;
    line-height: 1.3;
    scroll-margin-top: 80px;
}

/* Callout headings: Pro Tip, Warning, Checklist */
.guide-content h4 {
    font-size: 16.5px;
    font-weight: 700;
    margin: 28px 0 0;
    padding: 14px 18px 10px;
    background: #f0fdf4;
    border-left: 3px solid var(--guide-emerald);
    border-radius: 8px 8px 0 0;
}

.guide-content h4 + p,
.guide-content h4 + ul {
    margin-top: 0;
    padding: 0 18px 16px;
    background: #f0fdf4;
    border-left: 3px solid var(--guide-emerald);
    border-radius: 0 0 8px 8px;
    font-size: 16.5px;
}

.guide-content h4 + ul {
    padding-left: 42px;
    padding-bottom: 18px;
}

.guide-content p {
    margin: 0 0 20px;
}

.guide-content ul,
.guide-content ol {
    margin: 0 0 22px;
    padding-left: 26px;
}

.guide-content li {
    margin-bottom: 9px;
}

.guide-content strong {
    font-weight: 650;
    color: #111827;
}

.guide-content a {
    color: var(--guide-emerald);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-content blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--guide-amber);
    color: #4b5563;
}

.guide-content blockquote p:last-child {
    margin-bottom: 0;
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 15.5px;
}

.guide-content thead th {
    background: #f0fdf4;
    text-align: left;
    font-weight: 700;
    padding: 11px 14px;
    border-bottom: 2px solid var(--guide-emerald);
}

.guide-content tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--guide-border);
    vertical-align: top;
}

.guide-content tbody tr:nth-child(even) {
    background: #fafaf9;
}

/* Tables scroll on narrow screens instead of breaking the layout */
.guide-content table {
    display: block;
    overflow-x: auto;
    white-space: normal;
}

/* Diagrams. Rendered from a markdown image whose title becomes the caption. */
.guide-content figure {
    margin: 32px 0;
}

.guide-content figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--guide-border);
    border-radius: 10px;
    background: var(--guide-surface);
}

.guide-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--guide-muted);
    text-align: center;
}

.guide-content hr {
    border: 0;
    border-top: 1px solid var(--guide-border);
    margin: 40px 0;
}

.guide-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ---------- Related guides ---------- */

.guide-related {
    background: var(--guide-surface);
    border-top: 1px solid var(--guide-border);
    padding: 52px 24px;
}

.guide-related-inner {
    max-width: var(--guide-max);
    margin: 0 auto;
}

.guide-related h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 22px;
}

.guide-related .guide-card {
    background: var(--guide-bg);
}

/* ---------- CTA band ---------- */

.guides-cta-band {
    background: linear-gradient(160deg, var(--guide-emerald-dark), var(--guide-emerald-deep));
    color: #fff;
    padding: 64px 24px;
}

.guides-cta-inner {
    max-width: var(--guide-read);
    margin: 0 auto;
    text-align: center;
}

.guides-cta-inner h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.guides-cta-inner p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    margin: 0 0 26px;
}

.guides-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.guides-footer {
    background: var(--guide-emerald-deep);
    color: rgba(167, 243, 208, 0.6);
    padding: 40px 24px;
    font-size: 14px;
}

.guides-footer-inner {
    max-width: var(--guide-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.guides-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guides-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.guides-footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guides-footer-links a:hover {
    color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .guides-nav-links {
        display: none;
    }

    .guides-nav-inner {
        gap: 16px;
        justify-content: space-between;
    }

    .guides-hero {
        padding: 52px 20px 46px;
    }

    .guides-index {
        padding: 40px 20px 56px;
    }

    .guide-content {
        font-size: 17px;
    }

    .guide-content h2 {
        font-size: 24px;
        margin-top: 40px;
    }

    /* Diagrams carry small labels. Rather than scale them into illegibility,
       let them keep a readable width and scroll inside their own container. */
    .guide-content figure {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .guide-content figure img {
        min-width: 560px;
    }

    .guide-content figcaption {
        position: sticky;
        left: 0;
    }

    .guides-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guides-cta-actions .guides-btn-lg {
        width: 100%;
    }
}
