/* Page-owned styles for dla-czytelnikow-gier-paragrafowych */

.page-dla-czytelnikow-gier-paragrafowych {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Hero */
.hero-section {
  position: relative;
  padding-block: var(--space-9) var(--space-7);
  background-color: var(--color-ink);
  color: var(--color-white);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  max-width: 100%;
}

.hero-title {
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  color: var(--color-white);
  margin: 0;
  max-width: 100%;
}

.hero-lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  color: var(--color-white);
  margin: 0;
  max-width: var(--container-text);
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  min-width: 0;
  flex: 1 1 auto;
}

.hero-meta .label-caps {
  color: var(--color-smoke);
}

.hero-meta span:not(.label-caps) {
  color: var(--color-white);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
}

.hero-badge {
  flex: 0 0 auto;
  width: 180px;
  max-width: 100%;
}

.hero-bottom-line {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--color-brass);
  opacity: 0.6;
}

/* Editorial sections */
.editorial-section {
  padding-block: var(--section-gap-mobile);
}

.editorial-section.surface-ink {
  color: var(--color-white);
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--container-wide);
}

.section-number {
  flex: 0 0 40px;
  text-align: start;
}

.section-heading h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  color: inherit;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.section-copy {
  width: 100%;
  max-width: var(--container-text);
  margin-inline: auto;
}

.section-copy p {
  margin-block-end: var(--space-4);
}

.section-copy .lead-paragraph {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.section-copy .content-list {
  margin-block-start: var(--space-4);
}

.section-copy-ink {
  color: var(--color-white);
}

/* Branch diagram */
.branch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  padding: var(--space-5);
  border: var(--border-brass);
}

.branch-node {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-brass);
  border-radius: var(--radius-round);
  background-color: var(--color-paper);
}

.branch-root {
  background-color: var(--color-brass);
}

.branch-line {
  width: 1px;
  height: var(--space-5);
  background-color: var(--color-brass);
  opacity: 0.6;
}

.branch-left,
.branch-right {
  margin-inline: var(--space-4);
}

/* Comparison table */
.comparison-table-wrapper {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-paper-deep);
  margin: 0;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  border-block-end: var(--border-smoke);
  text-align: start;
  vertical-align: top;
}

.comparison-table thead th {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.comparison-table tbody th {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

/* Choice example */
.choice-example {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.choice-example p {
  margin: 0;
  font-style: normal;
}

.choice-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-brass);
}

.choice-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-brass);
  border-radius: var(--radius-4);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  background-color: var(--color-paper);
}

.choice-start {
  background-color: var(--color-brass-soft);
}

.choice-branch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.choice-path-a,
.choice-path-b {
  flex: 0 1 auto;
  min-width: 120px;
}

/* Editorial quote */
.editorial-quote {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

.editorial-quote p {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-style: italic;
}

/* Image sections */
.image-section {
  padding-block: var(--section-gap-mobile);
}

.image-container {
  width: 100%;
}

.editorial-figure {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.editorial-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-brass);
  border-radius: var(--radius-0);
  display: block;
}

.editorial-figure figcaption {
  max-width: var(--container-text);
  margin-inline: auto;
  margin-block-start: var(--space-3);
}

.figure-vertical {
  max-width: 600px;
  margin-inline: auto;
}

.figure-vertical img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Section 06 (dark summary) */
.section-06 {
  position: relative;
  padding-block: var(--section-gap-mobile);
}

.section-top-line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background-color: var(--color-brass);
  opacity: 0.6;
}

.section-heading-ink h2 {
  color: var(--color-white);
}

.section-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--container-text);
  margin-inline: auto;
}

.section-cta .badge-google-play {
  width: 180px;
  max-width: 100%;
}

/* Independence section */
.independence-section {
  position: relative;
  padding-block: var(--section-gap-mobile);
}

.independence-top-line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background-color: var(--color-brass);
  opacity: 0.6;
}

.independence-container {
  width: 100%;
  max-width: var(--container-text);
  margin-inline: auto;
}

.independence-container h2 {
  margin-block-end: var(--space-4);
}

.independence-container p {
  margin: 0;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-section {
    padding-block: var(--space-10) var(--space-8);
  }

  .hero-inner {
    gap: var(--space-7);
  }

  .hero-meta-row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .hero-meta {
    flex: 1 1 auto;
  }

  .hero-badge {
    flex: 0 0 180px;
  }

  .editorial-section,
  .image-section,
  .independence-section,
  .section-06 {
    padding-block: var(--section-gap-desktop);
  }

  .section-container {
    gap: var(--space-7);
  }

  .section-heading {
    gap: var(--space-5);
  }

  .section-number {
    flex-basis: 48px;
  }

  .branch-diagram {
    max-width: 300px;
  }

  .choice-diagram {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }

  .choice-branch {
    flex-direction: column;
    gap: var(--space-3);
  }

  .choice-path-a,
  .choice-path-b {
    min-width: 140px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: var(--text-hero-mobile);
    line-height: var(--leading-h1);
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .hero-badge {
    width: 100%;
    max-width: 280px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .section-number {
    flex-basis: auto;
  }

  .comparison-table-wrapper {
    overflow-x: visible;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    margin-block-end: var(--space-4);
    border: var(--border-smoke);
    padding: var(--space-3);
    background-color: var(--color-paper-deep);
  }

  .comparison-table tbody tr:last-child {
    margin-block-end: 0;
  }

  .comparison-table tbody th {
    display: block;
    padding: var(--space-2) 0;
    border-block-end: none;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-ink);
  }

  .comparison-table tbody td {
    display: block;
    padding: var(--space-1) 0;
    border-block-end: none;
  }

  .comparison-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--text-label);
    line-height: var(--leading-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-smoke);
    margin-block-end: var(--space-1);
  }

  .choice-diagram {
    flex-direction: column;
  }

  .choice-branch {
    flex-direction: column;
    width: 100%;
  }

  .choice-path-a,
  .choice-path-b {
    width: 100%;
    min-width: 0;
  }

  .section-cta .badge-google-play {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-block: var(--space-8) var(--space-6);
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .editorial-section,
  .image-section,
  .independence-section,
  .section-06 {
    padding-block: var(--space-7);
  }

  .section-copy,
  .choice-example,
  .editorial-quote,
  .comparison-table-wrapper {
    max-width: 100%;
  }
}
