/* System font stack - no external dependencies */
/* v4.0.13 — hash bump: card.css changed (main_image aspect ratio fix) */

:root {
    --nmt-primary: #2563eb;
    --nmt-primary-light: #3b82f6;
    --nmt-primary-dark: #1d4ed8;

    --nmt-bg: #f8fafc;
    --nmt-bg-card: #ffffff;
    --nmt-bg-hover: #f1f5f9;

    --nmt-text: #1e293b;
    --nmt-text-secondary: #64748b;
    --nmt-text-muted: #94a3b8;

    --nmt-border: #e2e8f0;
    --nmt-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --nmt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --nmt-radius: 12px;
    --nmt-radius-sm: 8px;
    --nmt-transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--nmt-text);
    background-color: var(--nmt-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--nmt-transition);
}

img {
    max-width: 100%;
    height: auto;
}

.nmt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: var(--nmt-radius-sm);
    background-color: var(--nmt-bg-hover);
}

.thumbnail img {
    /* contain (rather than cover) so every picture is shown in full inside
       the square thumbnail, regardless of orientation. Letterboxing on the
       short axis is preferred over silent cropping. */
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: transform var(--nmt-transition);
}

/* Opt-in per-project: crop images to fill the square thumbnail
   (driven by mImageFitCover in ProjectPublicationSettings). */
body.img-fit-cover .thumbnail img {
    object-fit: cover;
}

/* Animations */
@keyframes nmt-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nmt-slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nmt-animate-fade {
    animation: nmt-fadeIn 0.3s ease forwards;
}

.nmt-animate-slide {
    animation: nmt-slideIn 0.3s ease forwards;
}

/* License limitation notice */
.nmt_license_notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--nmt-radius);
    padding: 20px 24px;
    margin: 16px;
    text-align: center;
    color: #92400e;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: var(--nmt-shadow);
}
