body {
  margin: 0;
  padding: 2rem;
  background-color: #fdf6e3;
  color: #333;
  font-family: "Lato", system-ui, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  text-align: center;
  color: #b45f06;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px #d4a373;
}

.content-wrapper {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.disclaimer {
  background-color: #fff4e1;
  border: 1px solid #b45f06;
  border-radius: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* wrapper dla sidebar + posty */
.content-inner {
  display: flex;
  gap: 2rem;
}

/* sidebar */
.side-menu {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 2rem;
}

.side-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background-color: #fff4e1;
  border: 1px solid #b45f06;
  border-radius: 0.3rem;
  padding: 0.5rem 0.75rem;
  color: #b45f06;
  font-weight: 500;
  transition: all 0.2s;
}

.side-menu a:hover {
  background-color: #b45f06;
  color: #fff8e1;
}

.side-menu .icon {
  font-size: 1.2rem;
}

/* kontener post贸w */
#posts-container {
  flex: 1;
}

/* post-card */
.post-card {
  background-color: #fff8e1;
  border: 2px solid #b45f06;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.post-card h2 {
  color: #b45f06;
  margin-top: 0;
  cursor: pointer;
}

/* Sekcje */
.post-section {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.post-section p {
  margin: 0;
  padding: 0;
}

.post-section h3 {
  margin-top: 0;
  color: #b45f06;
}

/* Meta */
.post-section.meta {
  font-size: 0.7rem;
  background-color: #fdf1d0;
  border-left: 4px solid #b45f06;
  padding: 0.3rem;
  margin-bottom: 0.8rem;
  border-radius: 0.5rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.12rem 0.5rem;
}

.meta-item {
  background-color: #fff8e1;
  padding: 0.12rem;
  border-radius: 0.2rem;
}

/* Przyk艂ady */
.example {
  background-color: #fff4e1;
  padding: 0.75rem 1rem;
  border-left: 4px solid #ff6f61;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Rules */
.post-section.rules h3 {
  text-decoration: underline wavy #ff6f61;
}

.post-section.rules p {
  font-style: italic;
  color: #5c4033;
}

/* Grafiki */
.post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.post-images img {
  max-width: 200px;
  border-radius: 0.3rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsywno艣膰 */
@media (max-width: 768px) {
  .content-wrapper {
    width: 95%;
  }

  .content-inner {
    flex-direction: column;
  }

  .side-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .side-menu a {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .post-images {
    flex-direction: column;
    align-items: center;
  }
}
.post-section.rules ul {
  list-style-type: disc;
  margin-left: 1.5em;
}

.post-section.rules ul ul {
  list-style-type: circle;
  margin-left: 1.5em;
}

.post-section.example ul {
  list-style-type: none;
  padding-left: 0;
}

.post-section.example li {
  margin-bottom: 0.5em;
}

.post-section.example .narration {
  font-weight: 500;
}
.post-section.example .narration {
  color: #222;
  font-style: none;
}
.post-section.example .step {
  color: #111;
  font-weight: bold;
}
.post-section.example .rule {
  color: #777;
  font-style: italic;
  padding-left: 0.2rem;
  background-color: rgba(240,240,255,0.2);
}


.post-sticky-header {
  position: fixed;
  top: 1rem; /* trochę odstępu od góry */
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  width: 100%;
  background-color: #fff8e1; /* jak post-card */
  border: 2px solid #b45f06; /* jak post-card */
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  font-family: "Lato", system-ui, sans-serif;
  color: #b45f06;
}

.post-sticky-header button {
  background-color: #b45f06;
  color: #fff8e1;
  border: none;
  border-radius: 0.3rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.post-sticky-header button:hover {
  background-color: #fff4e1;
  color: #b45f06;
  border: 1px solid #b45f06;
}

