/* ==========================================================================
   EDM Theme — Design System
   ========================================================================== */

:root {
    /* Colors — shades of #1E90FF */
    --edm-primary:        #1E90FF;
    --edm-primary-dark:   #0F6FD6;
    --edm-primary-light:  #5FAEFF;
    --edm-accent:         #1E90FF;
    --edm-accent-hover:   #1578D6;
    --edm-sky:            #F4FAFF;
    --edm-bg:             #F4FAFF;
    --edm-bg-alt:         #FFFFFF;
    --edm-border:         #C9E3FF;
    --edm-text:           #333333;
    --edm-text-muted:     #5A6478;
    --edm-text-light:     #8B94A8;
    --edm-success:        #22A06B;
    --edm-white:          #FFFFFF;

    /* Typography */
    --edm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --edm-container: 1240px;
    --edm-radius:    12px;
    --edm-radius-sm: 8px;
    --edm-radius-lg: 20px;

    /* Shadow */
    --edm-shadow-sm: 0 1px 3px rgba(30, 144, 255, 0.08);
    --edm-shadow:    0 4px 16px rgba(30, 144, 255, 0.10);
    --edm-shadow-lg: 0 12px 32px rgba(30, 144, 255, 0.16);

    /* Transitions */
    --edm-transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--edm-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--edm-text);
    background: var(--edm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--edm-accent); text-decoration: none; transition: color var(--edm-transition); }
a:hover { color: var(--edm-accent-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.25;
    color: var(--edm-text);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }

/* Container */
.edm-container {
    width: 100%;
    max-width: var(--edm-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections */
.edm-section {
    padding: 80px 0;
}
.edm-section--tight { padding: 56px 0; }
.edm-section--alt { background: var(--edm-bg); }
.edm-section__header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 48px;
}
.edm-section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--edm-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.edm-section__lead {
    font-size: 18px;
    color: var(--edm-text-muted);
}

/* Buttons */
.edm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--edm-radius-sm);
    transition: all var(--edm-transition);
    white-space: nowrap;
    line-height: 1.2;
}
.edm-btn--primary {
    background: var(--edm-accent);
    color: var(--edm-white);
}
.edm-btn--primary:hover {
    background: var(--edm-accent-hover);
    color: var(--edm-white);
    transform: translateY(-1px);
    box-shadow: var(--edm-shadow);
}
.edm-btn--outline {
    background: transparent;
    color: var(--edm-primary);
    border: 1.5px solid var(--edm-border);
}
.edm-btn--outline:hover {
    border-color: var(--edm-accent);
    color: var(--edm-accent);
}
.edm-btn--ghost {
    background: transparent;
    color: var(--edm-accent);
    padding: 10px 16px;
}
.edm-btn--ghost:hover { color: var(--edm-accent-hover); }
.edm-btn--lg { padding: 16px 36px; font-size: 16px; }
.edm-btn--block { width: 100%; }

/* Cards */
.edm-card {
    background: var(--edm-white);
    border: 1px solid var(--edm-border);
    border-radius: var(--edm-radius);
    padding: 28px;
    transition: all var(--edm-transition);
}
.edm-card:hover {
    border-color: var(--edm-accent);
    box-shadow: var(--edm-shadow);
    transform: translateY(-2px);
}
.edm-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--edm-sky);
    color: var(--edm-accent);
    border-radius: var(--edm-radius-sm);
    margin-bottom: 16px;
}
.edm-card__icon svg { width: 26px; height: 26px; }
.edm-card__icon img { width: 28px; height: 28px; object-fit: contain; }
.edm-card__icon-mask {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: currentColor;
    -webkit-mask: var(--edm-mask-url) center / contain no-repeat;
            mask: var(--edm-mask-url) center / contain no-repeat;
}
.edm-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--edm-text);
    margin-bottom: 8px;
}
.edm-card__text {
    color: var(--edm-text-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* Grid */
.edm-grid { display: grid; gap: 24px; }
.edm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.edm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.edm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* SEO text */
.edm-prose {
    max-width: 820px;
    margin: 0 auto;
    color: var(--edm-text);
    font-size: 16px;
    line-height: 1.75;
}
.edm-prose h2 { margin-top: 60px; margin-bottom: 20px; }
.edm-prose h2:first-child { margin-top: 0; }
.edm-prose h3 { margin-top: 42px; margin-bottom: 12px; }
.edm-prose p { margin-bottom: 16px; }
.edm-prose ul, .edm-prose ol { margin: 0 0 16px; padding-left: 22px; }
.edm-prose ul { list-style: disc; }
.edm-prose ol { list-style: decimal; }
.edm-prose li { margin-bottom: 6px; }
.edm-prose a { color: var(--edm-accent); border-bottom: 1px solid currentColor; }

/* Page (page.php) */
.edm-page-content { max-width: 820px; margin: 0 auto; }
.edm-page-content__title { margin-bottom: 40px; }

/* 404 */
.edm-404__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}
.edm-404__code {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 700;
    line-height: 1;
    color: var(--edm-accent);
    opacity: 0.15;
    margin-bottom: 16px;
}
.edm-404__title {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}
.edm-404__text {
    font-size: 17px;
    color: var(--edm-text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
}
.edm-404__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.edm-404__links p {
    font-size: 14px;
    color: var(--edm-text-muted);
    margin-bottom: 12px;
}
.edm-404__links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: center;
}
.edm-404__links li { font-size: 15px; }
.edm-404__links a { color: var(--edm-accent); border-bottom: 1px solid transparent; }
.edm-404__links a:hover { border-color: var(--edm-accent); }

/* Breadcrumbs */
.edm-crumbs {
    padding: 18px 0;
    font-size: 14px;
    background: var(--edm-bg);
    border-bottom: 1px solid var(--edm-border);
}
.edm-crumbs__link { color: var(--edm-text-muted); }
.edm-crumbs__link:hover { color: var(--edm-accent); }
.edm-crumbs__sep { color: var(--edm-text-light); margin: 0 8px; }
.edm-crumbs__current { color: var(--edm-text); }

/* Utilities */
.edm-text-center { text-align: center; }
.edm-mt-0 { margin-top: 0; }
.edm-mb-0 { margin-bottom: 0; }
.edm-hidden { display: none; }
.edm-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Badges / tags */
.edm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--edm-sky);
    color: var(--edm-primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
