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

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-body);
    line-height: var(--line-height-base);
    letter-spacing: -0.03em;
    color: var(--color-text-body);
    background-color: var(--color-bg-page);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-primary);
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

/* ── Rich content — TinyMCE output ──────────────────────── */
/* Restores typographic spacing stripped by the CSS reset.
   Applied to page content, article body, and right column. */

.rich-content p,
.rich-content div {
    margin-bottom: 0.77em;
    line-height: 1.7;
}
.rich-content p:last-child,
.rich-content div:last-child {
    margin-bottom: 0;
}

.rich-content h2 {
    font-size: 27px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1.6em;
    margin-bottom: 0.5em;
    line-height: 0.875;
}
.rich-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1.4em;
    margin-bottom: 0.4em;
    line-height: 0.91;
}
.rich-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-top: 1.2em;
    margin-bottom: 0.35em;
}
.rich-content h2:first-child,
.rich-content h3:first-child,
.rich-content h4:first-child {
    margin-top: 0;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1.1em;
    padding-left: 1.5em;
}
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }

.rich-content li {
    margin-bottom: 0.35em;
    line-height: 1.6;
}
.rich-content li:last-child {
    margin-bottom: 0;
}

.rich-content blockquote {
    border-left: 3px solid var(--color-primary);
    margin: 1.2em 0;
    padding: 0.5em 0 0.5em 1.2em;
    color: var(--color-text-body);
    font-style: italic;
}

.rich-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rich-content a:hover {
    color: var(--color-primary-hover);
}

.rich-content img {
    border-radius: var(--radius-small);
    margin: 0.6em 0;
    max-width: 100%;
    height: auto;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.1em;
    font-size: 0.95em;
}
.rich-content table th,
.rich-content table td {
    padding: 8px 12px;
    border: 1px solid var(--color-border-card);
    text-align: left;
    vertical-align: top;
}
.rich-content table th {
    background: var(--color-bg-section-grey);
    font-weight: 700;
}

/* ── Inline content buttons (.btn) ──────────────────────────── */
/* Inserted by TinyMCE button plugin. Works inside .rich-content */
/* and standalone. !important on text-decoration overrides       */
/* .rich-content a { text-decoration: underline }.               */
.btn {
    display: inline-block;
    padding: 19px 46px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
    white-space: nowrap;
    vertical-align: middle;
    margin-right: 20px;
    margin-top: 20px;
}
/* Double-class selectors beat .rich-content a (0-1-1) specificity */
.btn.btn--blue       { background: var(--color-primary);           color: #fff; }
.btn.btn--orange     { background: var(--color-accent-yellow);     color: #fff; }
.btn.btn--light-blue { background: var(--color-accent-blue-light); color: var(--color-primary); }

.btn.btn--blue:hover       { border-color: var(--color-primary-hover); color: #fff; }
.btn.btn--orange:hover     { border-color: #c88500;                    color: #fff; }
.btn.btn--light-blue:hover { border-color: #8bbfdf;                    color: var(--color-primary); }

/* ── Maintenance notice ─────────────────────────────────────────────────────── */

.maintenance-notice {
    background: #e8f4fb;
    border: 1px solid #b8d9ec;
    border-radius: calc(var(--radius-default) / 2);
    padding: 18px 22px;
    color: var(--color-primary);
    font-size: calc(var(--font-size-body) - 2px);
    line-height: 1.5;
}

/* ── Utility spacing helpers (mobile only) ─────────────────────────────────── */
@media (max-width: 767px) {
  .mt-mob-m10 { margin-top: -10px; }
  .mt-mob-m20 { margin-top: -20px; }
  .mt-mob-m30 { margin-top: -30px; }
  .mt-mob-10  { margin-top:  10px; }
  .mt-mob-20  { margin-top:  20px; }

  .mb-mob-m10 { margin-bottom: -10px; }
  .mb-mob-m20 { margin-bottom: -20px; }
  .mb-mob-m30 { margin-bottom: -30px; }
  .mb-mob-10  { margin-bottom:  10px; }
  .mb-mob-20  { margin-bottom:  20px; }
}
