/* ============================================
   KMODigitaal - Editorial Theme
   Medium/Substack-inspired clean design
   ============================================ */

/* === BASE === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

[id] {
    scroll-margin-top: 90px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    background: #F8F4EE; /* cream-100 - refresh april 2026 */
}

::selection {
    background: rgba(255, 70, 70, 0.15);
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', serif;
}

/* === NAV (sticky top bar with border) === */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    height: 65px;
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Active navigation state */
nav a.active,
.mobile-menu a.active {
    color: #242424 !important;
    font-weight: 500;
}

/* === MOBILE MENU === */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* === BUTTONS === */
.btn-accent {
    background: #FF4646;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: opacity 0.2s ease;
}

.btn-accent:hover {
    opacity: 0.9;
}

/* Legacy gradient-btn → now solid accent */
.gradient-btn {
    background: #FF4646;
    color: #fff;
    border-radius: 9999px;
    transition: opacity 0.2s ease;
}

.gradient-btn:hover {
    opacity: 0.9;
}

/* === SECTION LABELS (editorial) === */
.section-label {
    font-size: 12px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: #FF4646;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

/* === ARTICLE BODY (editie pages) === */
.article-body p {
    font-size: 18px;
    line-height: 1.8;
    color: #242424;
    margin-bottom: 1.25rem;
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* === BLOCKQUOTE === */
blockquote {
    border-left: 2px solid #d1d5db;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

/* === CODE BLOCKS === */
.code-block {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    line-height: 1.7;
    background: #FAFAFA;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    padding: 1.25rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === FAQ ACCORDION === */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* === PROGRESS BAR (editie pages) === */
.progress-bar {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 40;
    height: 3px;
    background: #f3f4f6;
}

.progress-fill {
    height: 100%;
    background: #FF4646;
    transition: width 0.15s ease;
}

/* === SIDEBAR (editie pages) === */
.sidebar-link {
    color: #6B6B6B;
    text-decoration: none;
    transition: color 0.15s ease;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
}

.sidebar-link:hover {
    color: #242424;
}

.sidebar-link.active {
    color: #242424;
    font-weight: 500;
    border-left-color: #FF4646;
}

/* === TOC (table of contents) === */
.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-content.open {
    max-height: 500px;
}

.toc-chevron {
    transition: transform 0.2s ease;
}

.toc-chevron.rotated {
    transform: rotate(180deg);
}

.toc-link {
    color: #242424;
    text-decoration: none;
    transition: color 0.15s ease;
}

.toc-link:hover {
    color: #FF4646;
}

/* === SECTION INDICATOR (editie pages) === */
.section-indicator {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.section-indicator.visible {
    transform: translateY(0);
}

/* === FILTER BUTTONS === */
.filter-btn {
    background: #fff;
    color: #6B6B6B;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #242424;
    color: #242424;
}

.filter-btn.active {
    background: #242424;
    color: #fff;
    border-color: #242424;
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HORIZONTAL RULE (editorial) === */
hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 3rem 0;
}

/* === ACCESSIBILITY === */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #FF4646;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #FF4646;
    color: white;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   MailerLite Form Overrides
   ============================================ */

.ml-embedded,
.ml-form-embedWrapper {
    font-family: 'Inter', sans-serif !important;
    max-width: 100% !important;
}

.ml-form-embedWrapper.embedForm {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ml-form-embedBody.ml-form-embedBodyHorizontal {
    padding: 0 !important;
}

.ml-form-horizontalRow {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

.ml-input-horizontal {
    flex: 1 !important;
    min-width: 200px !important;
}

.ml-input-horizontal .horizontal-fields {
    width: 100% !important;
}

.ml-button-horizontal {
    flex-shrink: 0 !important;
}

.ml-mobileButton-horizontal {
    display: none !important;
}

.ml-embedded .form-control,
.ml-embedded input[type="email"],
.ml-form-embedWrapper input[type="email"] {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    color: #242424 !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.ml-embedded .form-control:focus,
.ml-embedded input[type="email"]:focus,
.ml-form-embedWrapper input[type="email"]:focus {
    border-color: #FF4646 !important;
    box-shadow: 0 0 0 3px rgba(255, 70, 70, 0.15) !important;
    outline: none !important;
}

.ml-embedded .form-control::placeholder,
.ml-embedded input[type="email"]::placeholder,
.ml-form-embedWrapper input[type="email"]::placeholder {
    color: #9ca3af !important;
}

.ml-embedded button[type="submit"],
.ml-embedded .primary,
.ml-form-embedWrapper button.primary,
.ml-button-horizontal.primary button,
.ml-button-horizontal button.primary {
    height: 48px !important;
    padding: 12px 28px !important;
    background: #FF4646 !important;
    border: none !important;
    border-radius: 9999px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    white-space: nowrap !important;
}

.ml-embedded button[type="submit"]:hover,
.ml-embedded .primary:hover,
.ml-form-embedWrapper button.primary:hover,
.ml-button-horizontal.primary button:hover,
.ml-button-horizontal button.primary:hover {
    opacity: 0.9 !important;
}

.ml-button-horizontal {
    border-radius: 9999px !important;
    overflow: visible !important;
}

.ml-button-horizontal.primary,
.ml-button-horizontal .primary {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ml-embedded button.loading,
.ml-form-embedWrapper button.loading {
    background: #ccc !important;
}

.ml-form-successBody {
    text-align: center !important;
    padding: 20px !important;
}

.ml-form-successBody h4 {
    color: #242424 !important;
    font-family: Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-bottom: 8px !important;
}

.ml-form-successBody p {
    color: #6B6B6B !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

.ml-form-formContent {
    padding: 0 !important;
}

.ml-form-fieldRow {
    margin-bottom: 0 !important;
}

.ml-form-embedContent:empty {
    display: none !important;
}

@media (max-width: 480px) {
    .ml-form-horizontalRow {
        flex-direction: column !important;
    }

    .ml-input-horizontal,
    .ml-button-horizontal {
        width: 100% !important;
    }

    .ml-embedded button[type="submit"],
    .ml-button-horizontal.primary button {
        width: 100% !important;
    }
}


/* ====================================================================
   REFRESH COMPONENTS (april 2026)
   First Round Review-geinspireerde editorial componenten
   ==================================================================== */

/* === Type-scale (responsive editorial) === */
.display-xl { font-family: Georgia, serif; font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
.display-lg { font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
.display-md { font-family: Georgia, serif; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; font-weight: 600; }
.display-sm { font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.25; font-weight: 600; }

/* === Lede (Georgia hook-paragraph) === */
.lede {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #3F3F3F;
}

/* === Meta-label (uppercase tracking) === */
.meta-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6B6B6B;
}
.meta-label--accent { color: #FF4646; }

/* === Read-more link (with arrow) === */
.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #FF4646;
    font-weight: 600;
    text-decoration: none;
}
.read-link::after { content: '\2192'; transition: transform .15s ease; }
.read-link:hover::after { transform: translateX(3px); }

/* === Star-divider (decoratief, FRR) === */
.star-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #A8A39A;
}
.star-divider::before, .star-divider::after {
    content: '';
    height: 1px;
    flex: 0 0 60px;
    background: #E8E1D5;
}

/* === Drop-cap (eerste alinea van long-form) === */
.first-letter::first-letter,
.has-drop-cap p:first-of-type::first-letter {
    font-family: Georgia, serif;
    font-weight: 600;
    font-size: 4.5rem;
    float: left;
    line-height: 0.9;
    padding: 0.5rem 0.75rem 0 0;
    color: #FF4646;
}

/* === Rubric-box (per-rubriek omkadering in editie) === */
.rubric-box {
    background: #fff;
    padding: 2rem 1.75rem;
    margin: 2.5rem 0;
    border-left: 3px solid #012C3D;
}
.rubric-box--accent { border-left-color: #FF4646; }
.rubric-box h2 { margin-top: 0; }
.rubric-label {
    display: inline-block;
    background: #012C3D;
    color: #F8F4EE;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}
.rubric-label--accent { background: #FF4646; }

/* === Stat-row (cijfers visueel) === */
.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (min-width: 640px) {
    .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-item { text-align: center; }
.stat-num {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #012C3D;
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B6B6B;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* === Step-num (collection-pagina nummering) === */
.step-num {
    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    color: #FF4646;
}

/* === Persona-tag (filter button) === */
.persona-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid #E8E1D5;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.persona-tag:hover { border-color: #1a1a1a; }
.persona-tag--active {
    background: #1a1a1a;
    color: #F8F4EE;
    border-color: #1a1a1a;
}

/* === Glossary letter-buttons (A-Z navigation) === */
.glossary-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #E8E1D5;
    background: #fff;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.glossary-letter:hover { border-color: #1a1a1a; }
.glossary-letter--active {
    background: #012C3D;
    color: #F8F4EE;
    border-color: #012C3D;
}
.glossary-letter--disabled {
    color: #A8A39A;
    cursor: not-allowed;
    opacity: 0.5;
}

/* === Refresh: image-frame (geen rounded corners, editorial) === */
.frame-editorial {
    overflow: hidden;
    display: block;
}
.frame-editorial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.frame-editorial:hover img { transform: scale(1.02); }

/* === Refresh body-prose (long-form leesopmaak) === */
.prose-refresh {
    font-size: 1.1875rem;
    line-height: 1.75;
    color: #1a1a1a;
}
.prose-refresh p { margin-bottom: 1.5rem; }
.prose-refresh p strong { color: #1a1a1a; font-weight: 600; }
.prose-refresh a { color: #FF4646; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose-refresh ul { margin: 1.5rem 0; padding-left: 1.5rem; list-style: none; }
.prose-refresh ul li { position: relative; padding-left: 0.5rem; margin-bottom: 0.5rem; }
.prose-refresh ul li::before { content: '\2192'; position: absolute; left: -1.5rem; color: #FF4646; font-weight: 600; }
.prose-refresh blockquote {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.5;
    padding: 1rem 0 1rem 2rem;
    margin: 2.5rem 0;
    border-left: 3px solid #FF4646;
    color: #3F3F3F;
}
