/* Vezetésszimulátor Design System & Stylesheet */

:root {
  --szim-primary: #24333f;
  --szim-secondary: #6c8090;
  --szim-accent: #3f8f6a;
  --szim-surface: #f6f7f8;
  --szim-ink: #141d25;

  --szim-font-display: "Old Standard TT", Georgia, serif;
  --szim-font-body: "Signika", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --szim-tint-1: #f6f7f8;
  --szim-tint-2: #edf2f5;
  --szim-tint-3: #e8f0eb;
  --szim-tint-4: #e5ecef;
  --szim-tint-5: #f0f4f2;
  
  --szim-rail-width: 270px;
}

/* Global Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--szim-surface);
  color: var(--szim-ink);
  font-family: var(--szim-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--szim-surface);
}

a {
  color: var(--szim-primary);
  text-decoration: underline;
  text-decoration-color: var(--szim-accent);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--szim-font-display);
  font-weight: 700;
  color: var(--szim-primary);
  line-height: 1.25;
}

p {
  margin-bottom: 1.25rem;
}

/* Layout Shell: Left Rail + Main Content Column */
.mu-vaz {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

@media (min-width: 860px) {
  .mu-vaz {
    flex-direction: row;
  }
}

/* Pinned Rail Component (Desktop: left pinned vertical rail, Mobile: top horizontal strip) */
.mu-oldalsav {
  background-color: var(--szim-primary);
  color: #ffffff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
}

@media (min-width: 860px) {
  .mu-oldalsav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--szim-rail-width);
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mu-tartalom-oszlop {
    margin-left: var(--szim-rail-width);
    width: calc(100% - var(--szim-rail-width));
    min-height: 100vh;
  }
}

@media (max-width: 859px) {
  .mu-oldalsav {
    width: 100%;
    position: relative;
    gap: 1rem;
  }

  .mu-tartalom-oszlop {
    width: 100%;
  }
}

/* Rail Header / Brand */
.mu-marka-keret {
  margin-bottom: 2rem;
}

.mu-marka-link {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--szim-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}

.mu-marka-link:hover {
  color: var(--szim-accent);
}

.mu-marka-alcim {
  font-size: 0.82rem;
  color: var(--szim-secondary);
  margin-top: 0.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Rail Navigation Menu */
.mu-navigacio {
  margin-bottom: 2rem;
}

.mu-nav-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 859px) {
  .mu-nav-lista {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.mu-nav-tétel a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.05rem;
  font-family: var(--szim-font-display);
  font-weight: 500;
  display: inline-block;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.mu-nav-tétel a:hover,
.mu-nav-tétel.aktiv a {
  color: #ffffff;
  border-bottom-color: var(--szim-accent);
}

/* Rail Footer Meta */
.mu-oldalsav-meta {
  font-size: 0.8rem;
  color: var(--szim-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  line-height: 1.5;
}

.mu-oldalsav-meta a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.mu-oldalsav-meta a:hover {
  color: #ffffff;
}

/* Homepage Opening Typographic Statement (Full-bleed opening block) */
.mu-nyito-nyilatkozat {
  width: 100%;
  padding: 4rem 2rem 3.5rem 2rem;
  background-color: var(--szim-primary);
  color: #ffffff;
  border-bottom: 3px solid var(--szim-accent);
}

@media (min-width: 1024px) {
  .mu-nyito-nyilatkozat {
    padding: 5.5rem 4rem 4.5rem 4rem;
  }
}

.mu-nyito-cim {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-family: var(--szim-font-display);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 1200px;
}

.mu-nyito-alcim {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--szim-font-display);
  font-style: italic;
  line-height: 1.4;
  max-width: 1000px;
  font-weight: 400;
}

/* Section Pitch Horizontal Band */
.mu-pitch-keret {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(36, 51, 63, 0.12);
  padding: 2.5rem 2rem;
}

@media (min-width: 1024px) {
  .mu-pitch-keret {
    padding: 3rem 4rem;
  }
}

.mu-pitch-háló {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
}

@media (min-width: 768px) {
  .mu-pitch-háló {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mu-pitch-elem {
  padding-left: 1rem;
  border-left: 3px solid var(--szim-accent);
}

.mu-pitch-cim {
  font-size: 1.25rem;
  color: var(--szim-primary);
  margin-bottom: 0.4rem;
  font-family: var(--szim-font-display);
}

.mu-pitch-leiras {
  font-size: 0.95rem;
  color: var(--szim-ink);
  margin: 0;
  line-height: 1.5;
}

/* Editorial Content Block on Homepage */
.mu-nyito-tartalom {
  width: 100%;
  padding: 3rem 2rem;
  max-width: 900px;
}

@media (min-width: 1024px) {
  .mu-nyito-tartalom {
    padding: 4rem 4rem 3rem 4rem;
  }
}

/* Stacked Full-Bleed Article Stripes System */
.mu-sav-csoport {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mu-sav-fejléc {
  width: 100%;
  padding: 2.5rem 2rem 1rem 2rem;
  background-color: var(--szim-surface);
  border-top: 1px solid rgba(36, 51, 63, 0.1);
}

@media (min-width: 1024px) {
  .mu-sav-fejléc {
    padding: 3.5rem 4rem 1.5rem 4rem;
  }
}

.mu-sav-fejléc-címsor {
  font-size: 2rem;
  color: var(--szim-primary);
  font-family: var(--szim-font-display);
}

.mu-cikk-sav {
  width: 100%;
  padding: 3rem 2rem;
  border-bottom: 1px solid rgba(36, 51, 63, 0.08);
  transition: background-color 0.2s ease;
}

@media (min-width: 1024px) {
  .mu-cikk-sav {
    padding: 3.5rem 4rem;
  }
}

/* Alternating Tint Palette */
.mu-cikk-sav:nth-child(5n+1) { background-color: var(--szim-tint-1); }
.mu-cikk-sav:nth-child(5n+2) { background-color: var(--szim-tint-2); }
.mu-cikk-sav:nth-child(5n+3) { background-color: var(--szim-tint-3); }
.mu-cikk-sav:nth-child(5n+4) { background-color: var(--szim-tint-4); }
.mu-cikk-sav:nth-child(5n+5) { background-color: var(--szim-tint-5); }

.mu-cikk-sav:hover {
  background-color: #ffffff;
}

.mu-cikk-sav-belso {
  max-width: 900px;
}

.mu-cikk-sav-datum {
  font-size: 0.85rem;
  color: var(--szim-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mu-cikk-sav-cim {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-family: var(--szim-font-display);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.mu-cikk-sav-cim a {
  color: var(--szim-primary);
  text-decoration: none;
}

.mu-cikk-sav-cim a:hover {
  color: var(--szim-accent);
}

.mu-cikk-sav-leiras {
  font-size: 1.1rem;
  color: var(--szim-ink);
  margin: 0;
  line-height: 1.6;
  max-width: 850px;
}

/* Single Article / Page View */
.mu-cikk-fejléc {
  padding: 3.5rem 2rem 2.5rem 2rem;
  background-color: var(--szim-primary);
  color: #ffffff;
  width: 100%;
}

@media (min-width: 1024px) {
  .mu-cikk-fejléc {
    padding: 5rem 4rem 3.5rem 4rem;
  }
}

.mu-cikk-fejléc-belso {
  max-width: 850px;
}

.mu-cikk-meta {
  font-size: 0.9rem;
  color: var(--szim-accent);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mu-cikk-focim {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: #ffffff;
  font-family: var(--szim-font-display);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.mu-cikk-bevezeto {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--szim-font-display);
  font-style: italic;
  line-height: 1.5;
}

/* Main Prose Container for Articles & Pages */
.mu-proza-keret {
  padding: 3rem 2rem 5rem 2rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .mu-proza-keret {
    padding: 4rem 4rem 6rem 4rem;
  }
}

.mu-proza {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--szim-ink);
}

.mu-proza h2 {
  font-size: 1.85rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(36, 51, 63, 0.1);
}

.mu-proza h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.mu-proza p {
  margin-bottom: 1.5rem;
}

.mu-proza blockquote {
  border-left: 4px solid var(--szim-accent);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  background-color: rgba(63, 143, 106, 0.06);
  font-style: italic;
  font-family: var(--szim-font-display);
  font-size: 1.15rem;
  color: var(--szim-primary);
}

/* MANDATORY LIST RULE: covers BOTH article prose container and homepage intro/opening container */
.mu-proza ul, .mu-proza ol,
.mu-nyito-tartalom ul, .mu-nyito-tartalom ol,
.mu-bevezeto-blokk ul, .mu-bevezeto-blokk ol {
  padding-left: 2rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.mu-proza li,
.mu-nyito-tartalom li,
.mu-bevezeto-blokk li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Responsive Footer inside Main Content Column */
.mu-cikk-lablec {
  padding: 3rem 2rem;
  background-color: #ffffff;
  border-top: 1px solid rgba(36, 51, 63, 0.1);
  font-size: 0.9rem;
  color: var(--szim-secondary);
}

@media (min-width: 1024px) {
  .mu-cikk-lablec {
    padding: 3rem 4rem;
  }
}

.mu-lablec-tartalom {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 600px) {
  .mu-lablec-tartalom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.mu-lablec-linkek {
  display: flex;
  gap: 1.25rem;
}

.mu-lablec-linkek a {
  color: var(--szim-secondary);
  text-decoration: none;
}

.mu-lablec-linkek a:hover {
  color: var(--szim-accent);
}
