/* /css/news-single.css
   Rybnik Młodych — single artykułu
   Wzorowane na startmlodych.pl :contentReference[oaicite:1]{index=1}
*/

/* layout */
.article-page{
  padding-top: calc(var(--h) + 1.25rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.article__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* shell */
.article{
  border: 0.0625rem solid var(--border);
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0.75rem 2rem rgba(2, 6, 23, .06);
}

/* head */
.article__head{
  padding: 1.35rem 1.35rem 0.95rem;
}

.article-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.article-meta__date,
.article-meta__readtime{
  margin: 0;
  font-size: 0.92rem;
  font-weight: var(--fw-medium, 500);
  color: var(--text-soft, rgba(30,41,59,.62));
}

/* back button (←) */
.article-back{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2.25rem;
  height: 2.25rem;

  border-radius: 999px;
  border: 0.0625rem solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);

  color: var(--text, #1E293B);
  text-decoration: none;
  font-weight: var(--fw-semibold, 600);
  line-height: 1;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.article-back:hover{
  transform: translateY(-0.04rem);
  box-shadow: 0 0.75rem 1.75rem rgba(2, 6, 23, .06);
  border-color: rgba(15,23,42,.14);
}

.article-back:active{
  transform: translateY(0);
  box-shadow: none;
}

.article-back:focus-visible{
  outline: 0.1875rem solid rgba(22,64,255,.25);
  outline-offset: 0.1875rem;
}

/* title + subtitle */
.article__title{
  margin: 0;
  font-size: clamp(2.05rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold, 750);
  color: var(--text, #1E293B);
}

.article__subtitle{
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: var(--fw-regular, 450);
  color: var(--text-muted, rgba(30,41,59,.78));
  max-width: 58rem;
}

/* hero image */
.article-hero{
  margin: 0;
  background: #fff;
  border-top: 0.0625rem solid var(--border);
  border-bottom: 0.0625rem solid var(--border);
}

.article-hero img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* content */
.article__content{
  padding: 1.2rem 1.35rem 1.35rem;
}

/* typografia treści */
.prose{
  color: var(--text-strong, rgba(30,41,59,.92));
  font-size: 1.02rem;
  line-height: 1.85;
}

.prose h2{
  margin: 1.6rem 0 0.65rem;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold, 750);
  color: var(--text, #1E293B);
}

.prose h3{
  margin: 1.35rem 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: var(--fw-bold, 750);
  color: var(--text, #1E293B);
}

.prose p{
  margin: 0.85rem 0;
}

.prose a{
  color: var(--primary, #1640FF);
  text-decoration: none;
  font-weight: var(--fw-semibold, 650);
}

.prose a:hover{
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose ul,
.prose ol{
  margin: 0.85rem 0;
  padding-left: 1.25rem;
}

.prose li{
  margin: 0.35rem 0;
}

.prose blockquote{
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-left: 0.3rem solid rgba(22,64,255,.25);
  background: rgba(22,64,255,.04);
  border-radius: 1rem;
  color: var(--text-strong, rgba(30,41,59,.92));
}

.prose img{
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 0.0625rem solid var(--border);
}

/* tables (często wyskakują w content) */
.prose table{
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.98rem;
}

.prose th,
.prose td{
  border: 0.0625rem solid var(--border);
  padding: 0.6rem 0.7rem;
  vertical-align: top;
}

.prose th{
  background: rgba(15,23,42,.03);
  text-align: left;
  font-weight: var(--fw-semibold, 650);
}

/* mobile tweaks */
@media (max-width: 53.75rem){
  .article__head{ padding: 1.1rem 1.05rem 0.85rem; }
  .article__content{ padding: 1.05rem; }
  .article-meta{ flex-wrap: wrap; justify-content: flex-start; }
  .article-hero img{ aspect-ratio: 16 / 9; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .article-back{
    transition: none;
  }
  .article-back:hover{
    transform: none;
    box-shadow: none;
  }
}
