/* ================================
   MS Hobbies – Global Base
   ================================ */

:root {
    --mh-bg-grey: #F2F2F2;      /* Failsafe museum grey */
    --mh-text-main: #111111;    /* Primary text */
    --mh-text-body: #222222;    /* Body text */
    --mh-text-soft: #444444;    /* Secondary / metadata */
    --mh-line: #D0D0D0;         /* Dividers / borders */
    --mh-card-bg: #FFFFFF;      /* Cards / panels */
    --mh-font-stack: "Univers", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--mh-bg-grey);
    color: var(--mh-text-body);
    font-family: var(--mh-font-stack);
    line-height: 1.55;
}

/* ================================
   Layout
   ================================ */

.mh-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* Optional: if you wrap main content */
main {
    background: transparent;
}

/* ================================
   Typography
   ================================ */

h1, h2, h3, h4 {
    margin: 0 0 1.25rem;
    color: var(--mh-text-main);
    font-family: var(--mh-font-stack);
}

h1 {
    font-weight: 700;           /* Univers 65 Bold equivalent */
    font-size: 2.6rem;
    letter-spacing: 0.04em;
}

h2 {
    font-weight: 700;
    font-size: 2.0rem;
    letter-spacing: 0.03em;
    margin-top: 3.0rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mh-line);
}

h3 {
    font-weight: 400;           /* Univers 55 Roman equivalent */
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    margin-top: 2.0rem;
}

h4 {
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    margin-top: 1.5rem;
}

p {
    margin: 0 0 1.1rem;
    font-size: 1.1rem;
    color: var(--mh-text-body);
}

.mh-meta {
    font-size: 0.9rem;
    color: var(--mh-text-soft);
    font-weight: 300;           /* Univers 45 Light equivalent */
}

/* Links */

a {
    color: var(--mh-text-main);
    text-decoration: underline;
}

a:hover,
a:focus {
    text-decoration: none;
}

/* ================================
   Navigation
   ================================ */

.mh-nav {
    background-color: var(--mh-bg-grey);
    border-bottom: 1px solid var(--mh-line);
    padding: 0.75rem 1.5rem;
}

.mh-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.mh-nav a {
    font-family: var(--mh-font-stack);
    font-size: 1rem;
    color: var(--mh-text-main);
    text-decoration: none;
}

.mh-nav a:hover {
    text-decoration: underline;
}

.mh-nav a.mh-nav-active {
    font-weight: 700;           /* Univers 65 Bold */
}

/* ================================
   Sections & Blocks
   ================================ */

.mh-section {
    margin-bottom: 2.5rem;
}

.mh-section-header {
    margin-bottom: 1.5rem;
}

.mh-divider {
    border-top: 1px solid var(--mh-line);
    margin: 2.5rem 0;
}

/* Cards / panels (for downloads, notices, etc.) */

.mh-card {
    background-color: var(--mh-card-bg);
    border: 1px solid var(--mh-line);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.mh-card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--mh-text-main);
}

.mh-card-meta {
    font-size: 0.9rem;
    color: var(--mh-text-soft);
}

/* ================================
   Lists
   ================================ */

ul, ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
}

li {
    margin-bottom: 0.4rem;
}

/* ================================
   Tables (for technical data)
   ================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--mh-card-bg);
}

th, td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--mh-line);
    font-size: 0.95rem;
}

th {
    text-align: left;
    background-color: #F8F8F8;
    font-weight: 600;
}

/* ================================
   Forms (if used on handbook/ops)
   ================================ */

.mh-form {
    background-color: var(--mh-card-bg);
    border: 1px solid var(--mh-line);
    padding: 1.5rem;
    margin: 2rem 0;
}

.mh-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--mh-text-main);
}

.mh-form input[type="text"],
.mh-form input[type="email"],
.mh-form input[type="password"],
.mh-form textarea,
.mh-form select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--mh-line);
    background-color: #FFFFFF;
    font-family: var(--mh-font-stack);
    font-size: 1rem;
    color: var(--mh-text-body);
    box-sizing: border-box;
}

.mh-form textarea {
    min-height: 120px;
}

.mh-form input:focus,
.mh-form textarea:focus,
.mh-form select:focus {
    outline: none;
    border-color: #B0B0B0;
}

/* Buttons */

.mh-btn {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--mh-line);
    background-color: #FFFFFF;
    color: var(--mh-text-main);
    font-family: var(--mh-font-stack);
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.mh-btn:hover {
    background-color: #F8F8F8;
}

/* ================================
   Footer
   ================================ */

.mh-footer {
    border-top: 1px solid var(--mh-line);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--mh-text-soft);
}

/* ================================
   Utility Classes
   ================================ */

.mh-muted {
    color: var(--mh-text-soft);
}

.mh-small {
    font-size: 0.85rem;
}

.mh-center {
    text-align: center;
}
.mh-subnav {
    background: #e6e6e6;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #ccc;
}

.mh-subnav a {
    color: #333;
    text-decoration: none;
}

.mh-subnav a:hover {
    text-decoration: underline;
}


/* Subtle archival jitter for sub-navigation */
.mh-subnav a {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
}

/* Gentle alternating tones */
.mh-subnav a:nth-child(odd) {
    background-color: #e8e8e8; /* slightly lighter */
}

.mh-subnav a:nth-child(even) {
    background-color: #e3e3e3; /* slightly darker */
}

/* Hover stays clean and neutral */
.mh-subnav a:hover {
    background-color: #dcdcdc;
    text-decoration: underline;
}
