/* ==========================================================================
   Base styles
   ========================================================================== */

:root {
    --me-blue: #0e5fb2;
    --me-blue-dark: #084985;
    --me-red: #c62828;
    --me-red-light: #e53935;

    --me-text: #1f2933;
    --me-text-light: #5f6b7a;
    --me-heading: #111827;

    --me-bg: #f4f6f8;
    --me-surface: #ffffff;
    --me-surface-soft: #f8fafc;

    --me-border: #e2e8f0;
    --me-border-dark: #cbd5e1;

    --me-radius-sm: 8px;
    --me-radius-md: 12px;
    --me-radius-lg: 18px;

    --me-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --me-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);

    --me-container: 1440px;
    --me-gutter: 24px;

    --me-transition: 180ms ease;
}

html {
    font-size: 16px;
}

body {
    color: var(--me-text);
    background: var(--me-bg);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--me-heading);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(32px, 4vw, 52px);
}

h2 {
    font-size: clamp(26px, 3vw, 38px);
}

h3 {
    font-size: clamp(20px, 2vw, 26px);
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

p {
    color: var(--me-text-light);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
}

strong,
b {
    font-weight: 700;
    color: var(--me-heading);
}

/* Links */

a {
    color: var(--me-blue);
    transition:
        color var(--me-transition),
        opacity var(--me-transition),
        background-color var(--me-transition);
}

a:hover {
    color: var(--me-red);
}

/* Selection */

::selection {
    color: #ffffff;
    background: var(--me-blue);
}

/* Generic content */

hr {
    height: 1px;
    margin: 32px 0;
    background: var(--me-border);
}

blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    color: var(--me-text);
    background: var(--me-surface);
    border-left: 5px solid var(--me-blue);
    border-radius: 0 var(--me-radius-md) var(--me-radius-md) 0;
    box-shadow: var(--me-shadow-sm);
}

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

/* Tables */

.table-responsive {
    width: 100%;
    margin: 32px 0;
    overflow-x: auto;
    border-radius: var(--me-radius-md);
    box-shadow: var(--me-shadow-sm);
}

table {
    width: 100%;
    min-width: 640px;
    background: var(--me-surface);
    font-size: 14px;
}

table th,
table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--me-border);
    text-align: left;
    vertical-align: middle;
}

table th {
    color: var(--me-heading);
    background: var(--me-surface-soft);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

table tbody tr:hover td {
    background: #f8fbff;
}

/* Images */

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

/* Buttons / global clickable helpers */

.pdf-button,
.btn,
.button,
a.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 20px;
    color: #ffffff !important;
    background: var(--me-blue);
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition:
        background-color var(--me-transition),
        color var(--me-transition),
        border-color var(--me-transition),
        transform var(--me-transition),
        box-shadow var(--me-transition);
}

.pdf-button:hover,
.btn:hover,
.button:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    color: #ffffff !important;
    background: var(--me-red);
    transform: translateY(-1px);
    box-shadow: var(--me-shadow-md);
}

/* Forms base */

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--me-text);
    background: var(--me-surface);
    border: 1px solid var(--me-border-dark);
    border-radius: var(--me-radius-sm);
    box-shadow: none;
    transition:
        border-color var(--me-transition),
        box-shadow var(--me-transition),
        background-color var(--me-transition);
}

textarea {
    min-height: 130px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--me-blue);
    box-shadow: 0 0 0 4px rgba(14, 95, 178, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

/* Small utilities */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

.no-border {
    border: 0 !important;
}

.displayno {
    display: none !important;
}

/* WordPress alignment helpers */

.alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

.alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive typography */

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    p {
        font-size: 14px;
    }

    .pdf-button,
    .btn,
    .button,
    a.button,
    button,
    input[type="submit"],
    input[type="button"] {
        width: auto;
        min-height: 40px;
        padding: 9px 16px;
        font-size: 12px;
    }
}