/* =========================
   BASE / GLOBAL SYSTEM
========================= */

/* Variables */

:root {
    --ms-font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --ms-primary: #0d4ea6;
    --ms-primary-dark: #0b458f;
    --ms-primary-light: #eaf3ff;

    --ms-accent: #2f80ed;

    --ms-text-primary: #1f3556;
    --ms-text-secondary: #4a607d;
    --ms-text-muted: #7a8ca5;

    --ms-bg-main: #ffffff;
    --ms-bg-soft: #f4f8ff;
    --ms-bg-alt: #eef3f9;

    --ms-border-light: rgba(31, 53, 86, 0.08);
    --ms-border-medium: rgba(31, 53, 86, 0.16);

    --ms-success: #2e7d32;
    --ms-warning: #f9a825;
    --ms-danger: #c62828;
}

/* =========================
   RESET / NORMALISATION
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--ms-font-primary);
    color: var(--ms-text-primary);
    background: var(--ms-bg-main);
    line-height: 1.5;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 600;
    color: var(--ms-text-primary);
}

p {
    margin: 0 0 1em;
    color: var(--ms-text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--ms-accent);
}

/* Ensure consistency across elements */

button,
input,
select,
textarea {
    font-family: var(--ms-font-primary);
    font-size: 100%;
}

/* =========================
   MEDIA
========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   LISTS
========================= */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================
   UTILITIES (MINIMAL)
========================= */

.ms-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ms-text-muted {
    color: var(--ms-text-muted);
}

.ms-bg-soft {
    background: var(--ms-bg-soft);
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ms-page-content {
    flex: 1 0 auto;
}

.ms-footer {
    flex-shrink: 0;
}