/*
  Text pages: Jak grać, Do druku, Gdzie szukać pomocy, Prywatność, Kontakt and 404.
  One reading column (--nz-text-column) on laptops and phones; "is-wide" pages use the full container.
*/
.nz-text-page {
  padding-top: 72px;
  padding-bottom: 96px;
}

.nz-text-page > *,
.nz-text-head {
  max-width: var(--nz-text-column);
}

.nz-text-page.is-wide > * {
  max-width: none;
}

.nz-text-head .nz-h1 {
  margin: 18px 0 20px;
}

.nz-lead {
  margin: 0 0 var(--nz-space-6);
  max-width: var(--nz-text-column);
  font-size: var(--nz-text-lead);
}

.nz-text-items {
  display: flex;
  flex-direction: column;
  gap: var(--nz-space-5);
  margin: var(--nz-space-6) 0;
}

.nz-text-items.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nz-space-6) var(--nz-space-7);
}

.nz-text-item {
  padding-top: var(--nz-space-4);
  border-top: 1px solid var(--nz-color-rule);
}

.nz-text-item .nz-h3 {
  margin: 0 0 6px;
}

.nz-text-item p {
  margin: 0;
}

.nz-text-subhead {
  margin: var(--nz-space-6) 0 var(--nz-space-4);
}

.nz-text-note {
  margin: var(--nz-space-5) 0 0;
  font-size: var(--nz-text-small);
}

.nz-text-actions {
  display: flex;
  align-items: center;
  gap: var(--nz-space-5);
  flex-wrap: wrap;
  margin: var(--nz-space-6) 0;
}

.nz-text-actions p {
  margin: 0;
}

.nz-text-tip {
  padding: 20px 24px;
  border-radius: var(--nz-radius-card);
  background: var(--nz-color-surface-quiet);
}

.nz-text-tip .nz-h3 {
  margin: 0 0 6px;
}

.nz-text-tip p {
  margin: 0;
}

/* ---------- Help: phone numbers ---------- */
.nz-phones {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nz-phone {
  display: flex;
  align-items: baseline;
  gap: var(--nz-space-5);
  padding: 18px 24px;
  border-radius: var(--nz-radius-card);
  background: var(--nz-color-surface);
}

.nz-phone p {
  margin: 0;
}

.nz-phone-number {
  flex: none;
  min-width: 7.5em;
  font-family: var(--nz-font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nz-phone.is-emergency {
  background: var(--nz-color-accent);
  color: var(--nz-color-on-accent);
}

.nz-phone.is-emergency .nz-phone-number {
  color: var(--nz-color-on-accent);
}

/* ---------- How to play ---------- */
.nz-howto-list {
  margin: var(--nz-space-6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--nz-space-5);
}

.nz-howto-list .nz-step-number {
  display: block;
  font-size: 4rem;
}

.nz-howto-list .nz-h3 {
  margin: 12px 0 6px;
}

.nz-howto-list p {
  margin: 0;
  font-size: var(--nz-text-small);
}

.nz-howto-direction {
  margin: var(--nz-space-5) 0 0;
  font-family: var(--nz-font-display);
  font-style: italic;
  color: var(--nz-color-accent);
}

.nz-marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nz-space-6);
}

.nz-mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--nz-space-4);
}

.nz-mark figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--nz-text-small);
}

.nz-mark-field {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 34 / 24;
  border: 1.5px solid var(--nz-frame);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nz-mark-label {
  width: 80%;
  height: 40%;
  background: var(--nz-white);
  box-shadow: var(--nz-shadow-label);
  transform: rotate(-4deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nz-text-caption);
  font-weight: var(--nz-weight-bold);
}

.nz-mark-dot {
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--nz-peach);
}

.nz-mark-field svg {
  width: 36%;
  height: 50%;
}

/* ---------- Printables ---------- */
.nz-printables-grid {
  margin: var(--nz-space-6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nz-space-8) var(--nz-space-6);
}

.nz-printable {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nz-printable .nz-sheet-frame {
  margin-bottom: var(--nz-space-4);
}

.nz-printable .nz-h3 {
  margin: 0;
  font-family: var(--nz-font-display);
  font-weight: var(--nz-weight-display);
  font-size: 1.625rem;
}

.nz-printable p {
  margin: 0;
  font-size: var(--nz-text-small);
}

.nz-printable-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--nz-space-3);
}

.nz-month-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nz-space-6);
  flex-wrap: wrap;
  padding-top: 72px;
  padding-bottom: 72px;
}

.nz-month-band .nz-h2 {
  margin: 0 0 12px;
}

.nz-month-band .nz-h2 em {
  color: var(--nz-peach);
}

.nz-month-band p {
  margin: 0;
  max-width: 520px;
}

/* ---------- 404 ---------- */
.nz-not-found {
  position: relative;
  min-height: 60vh;
}

.nz-not-found-picture {
  display: block;
  width: 240px;
  height: auto;
  margin-top: var(--nz-space-7);
}

@media (max-width: 1100px) {
  .nz-howto-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nz-printables-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .nz-text-page {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .nz-howto-list,
  .nz-marks,
  .nz-text-items.is-grid,
  .nz-printables-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nz-howto-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: var(--nz-space-4);
  }

  .nz-howto-list .nz-step-number {
    grid-row: span 2;
    font-size: 2.75rem;
  }

  .nz-howto-list .nz-h3 {
    margin-top: 4px;
  }

  .nz-mark {
    flex-direction: row;
    align-items: center;
  }

  .nz-mark-field {
    width: 120px;
    flex: none;
  }

  .nz-phone {
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
  }

  .nz-printables-grid .nz-sheet-frame {
    max-width: 320px;
  }

  .nz-not-found-picture {
    width: 160px;
  }
}
