/* 0.99.6 · pkt 5: Premiery — kalendarz miesięcy, filtry, kafelki jednego rozmiaru (projekt z 24.11.2026).
   Kolory z istniejących zmiennych motywu (studfolio.css): jasny/ciemny przełącza data-ui-theme. */
.sf-prem2 {
  --p2-ann: #B9A2F5; --p2-pre: #F5B25C; --p2-shop: #6FD39B; --p2-mark: #F7C61A; --p2-link: #8DBBFF; --p2-primary: #2A6FD6;
  --p2-badge-new: #1E7A47; --p2-badge-pre: #A85200; --p2-badge-ann: #6E40D4;
  max-width: 1232px; margin: 0 auto; padding: 8px 0 64px; display: flex; flex-direction: column; gap: 40px;
  color: var(--ui-ink); font-variant-numeric: tabular-nums;
}
html[data-ui-theme="light"] .sf-prem2 { --p2-ann: #5B33B8; --p2-pre: #9A5200; --p2-shop: #1E7A47; --p2-mark: #E0A800; --p2-link: #0057A8; --p2-primary: #0057A8; }
.sf-prem2 a:focus-visible, .sf-prem2 button:focus-visible, .sf-prem2 select:focus-visible, .sf-prem2 summary:focus-visible { outline: 3px solid var(--p2-link); outline-offset: 2px; }
.sf-prem2 h1, .sf-prem2 h2, .sf-prem2 h3 { color: var(--ui-ink); }

/* nagłówek i najbliższa premiera */
.sf-p2-hero { display: flex; gap: 28px; flex-wrap: wrap; align-items: stretch; }
.sf-p2-intro { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.sf-p2-crumbs { font-size: 13px; color: var(--ui-muted); } .sf-p2-crumbs a { color: var(--ui-muted); }
.sf-p2-intro h1 { margin: 0; font: 800 clamp(34px, 5vw, 54px)/1 var(--b-font-display); letter-spacing: -.02em; }
.sf-p2-dot { color: var(--p2-mark); }
.sf-p2-intro p { margin: 0; max-width: 600px; font-size: 17px; line-height: 1.55; color: var(--ui-muted); }
.sf-p2-next { flex: 2 1 340px; min-width: 0; display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 20px; text-decoration: none; color: var(--ui-ink); }
.sf-p2-next:hover { background: var(--ui-card-hover); }
.sf-p2-next-img { width: 120px; height: 120px; flex: none; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; overflow: hidden; }
.sf-p2-next-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sf-p2-next-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-p2-next-kicker { font-size: 13px; font-weight: 700; color: var(--p2-ann); }
.sf-p2-next-name { font: 800 24px/1.1 var(--b-font-display); }
.sf-p2-next-meta { font-size: 14px; color: var(--ui-muted); }

/* kalendarz */
.sf-p2-cal { display: flex; flex-direction: column; gap: 14px; }
.sf-p2-cal-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sf-p2-cal-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.sf-p2-sub { margin: 0; font-size: 14px; color: var(--ui-muted); }
.sf-p2-legend { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ui-muted); }
.sf-p2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sf-p2-legend i, .sf-p2-bar i { display: block; }
.sf-p2-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sf-p2-legend .is-new, .sf-p2-bar .is-new { background: var(--p2-badge-new); }
.sf-p2-legend .is-preorder, .sf-p2-bar .is-preorder { background: #E8730C; }
.sf-p2-legend .is-announced, .sf-p2-bar .is-announced { background: var(--p2-badge-ann); }
.sf-p2-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.sf-p2-month { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-radius: 14px; text-decoration: none; color: var(--ui-ink); background: var(--ui-card); border: 1px solid var(--ui-line); min-height: 44px; }
a.sf-p2-month:hover { background: var(--ui-card-hover); }
.sf-p2-month.is-empty { background: transparent; border-style: dashed; }
.sf-p2-month.is-current { border: 2px solid var(--p2-mark); }
.sf-p2-m { font-size: 13px; font-weight: 700; color: var(--ui-muted); }
.sf-p2-n { font: 800 34px/1 var(--b-font-display); }
.sf-p2-month.is-empty .sf-p2-n { font-size: 20px; font-weight: 600; color: var(--ui-muted); }
.sf-p2-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--ui-line); gap: 2px; }
.sf-p2-today { position: absolute; top: -9px; right: 10px; padding: 1px 7px; border-radius: 999px; background: var(--p2-mark); color: #141A24; font-size: 11px; font-weight: 800; }

/* filtry */
.sf-p2-filters { display: flex; flex-direction: column; gap: 14px; }
.sf-p2-filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sf-p2-status { display: inline-flex; gap: 2px; padding: 4px; background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 12px; flex-wrap: wrap; }
.sf-p2-seg { min-height: 40px; padding: 0 14px; border-radius: 9px; color: var(--ui-muted); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.sf-p2-seg span { font-size: 12px; }
.sf-p2-seg:hover { color: var(--ui-ink); }
.sf-p2-seg[aria-current="page"] { background: var(--ui-ink); color: var(--ui-bg); font-weight: 700; }
.sf-p2-seg.is-disabled { opacity: .5; cursor: default; }
.sf-p2-sort { margin-left: auto; }
.sf-p2-sort label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ui-muted); }
.sf-p2-sort select { min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ui-line); background: var(--ui-field); color: var(--ui-ink); font: 600 14px var(--b-font); }
.sf-p2-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-p2-tchip { flex: none; min-height: 56px; padding: 0 12px; border-radius: 12px; border: 2px solid transparent; background: #fff; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; box-shadow: 0 0 0 1px var(--ui-line); }
.sf-p2-tchip img { max-height: 28px; max-width: 104px; display: block; }
.sf-p2-tchip b { font: 700 12px var(--b-font); color: #141A24; background: #EEF1F5; padding: 3px 7px; border-radius: 999px; }
.sf-p2-tname { font: 800 13px var(--b-font); color: #141A24; }
.sf-p2-tchip.is-all { background: var(--ui-card); color: var(--ui-ink); font: 700 14px var(--b-font); }
.sf-p2-tchip[aria-current="page"] { border-color: var(--p2-mark); }
.sf-p2-tchip.is-all[aria-current="page"] { background: var(--ui-ink); color: var(--ui-bg); box-shadow: none; }

/* sekcje i grupy motywów */
.sf-p2-sec { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }
.sf-p2-sec-head { display: flex; flex-direction: column; gap: 4px; }
.sf-p2-sec h2, .sf-p2-about h2 { margin: 0; font: 800 30px/1.1 var(--b-font-display); }
.sf-p2-group { display: flex; flex-direction: column; gap: 14px; }
.sf-p2-group + .sf-p2-group { margin-top: 10px; }
.sf-p2-ghead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-p2-ghead h3 { margin: 0; font-size: 18px; }
.sf-p2-glogo { height: 40px; padding: 0 10px; background: #fff; border-radius: 10px; display: flex; align-items: center; box-shadow: 0 0 0 1px var(--ui-line); }
.sf-p2-glogo img { max-height: 26px; max-width: 130px; display: block; }
.sf-p2-glogo b { color: #141A24; font-size: 13px; }
.sf-p2-gall { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--p2-link); min-height: 44px; display: inline-flex; align-items: center; }

/* kafelek zestawu: jeden wzór, ta sama wysokość w rzędzie, zdjęcie 4:3 na białym tle bez przycinania */
.sf-p2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.sf-pc { background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.sf-pc-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%; background: #fff; padding: 14px; box-sizing: border-box; overflow: hidden; flex: none; }
.sf-pc-img > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sf-pc-noimg { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #5B6678; font-size: 13px; text-align: center; }
.sf-pc-logo { position: absolute; left: 10px; top: 10px; height: 30px; padding: 0 8px; background: #fff; border: 1px solid #E1E5EB; border-radius: 8px; display: flex; align-items: center; }
.sf-pc-logo img { max-height: 20px; max-width: 96px; display: block; }
.sf-pc-logo b { color: #141A24; font-size: 12px; }
.sf-pc-badge { position: absolute; left: 10px; bottom: 10px; font: 700 12px var(--b-font); color: #fff; padding: 5px 9px; border-radius: 7px; background: var(--p2-badge-ann); }
.sf-pc-badge.is-new { background: var(--p2-badge-new); } .sf-pc-badge.is-preorder { background: var(--p2-badge-pre); }
.sf-pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sf-pc-meta { margin: 0; font-size: 12px; color: var(--ui-muted); }
.sf-pc-owned { color: var(--p2-shop); font-weight: 700; }
.sf-pc-name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.sf-pc-name a { color: var(--ui-ink); text-decoration: none; } .sf-pc-name a:hover { text-decoration: underline; }
.sf-pc-note { margin: 0; font-size: 12px; color: var(--p2-pre); font-weight: 700; }
.sf-pc-price { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.sf-pc-big { font-size: 20px; font-weight: 800; }
.sf-pc-off { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 800; color: #fff; background: #1E7A47; padding: 2px 6px; border-radius: 6px; vertical-align: 3px; }
.sf-pc-off.is-up { background: #9A5200; }
.sf-pc-small { font-size: 13px; color: var(--ui-muted); }
.sf-pc-unknown { font-size: 14px; font-weight: 600; color: var(--ui-muted); }
.sf-pc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.sf-pc-btn { flex: 1; min-height: 44px; padding: 0 14px; border-radius: 10px; font: 700 14px var(--b-font); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sf-pc-btn.is-primary { background: var(--p2-primary); color: #fff; }
.sf-pc-btn.is-outline { background: transparent; color: var(--ui-ink); border: 1px solid var(--ui-line); }
.sf-pc-follow { width: 44px; height: 44px; flex: none; border: 1px solid var(--ui-line); border-radius: 10px; background: transparent; color: var(--ui-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sf-pc-follow:hover { color: var(--ui-ink); }
.sf-pc-follow.is-saved { background: var(--p2-mark); border-color: var(--p2-mark); color: #141A24; }

/* o kalendarzu i FAQ */
.sf-p2-about { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--ui-line); padding-top: 40px; }
.sf-p2-about-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sf-p2-about-text p, .sf-p2-faq p { margin: 0; color: var(--ui-muted); line-height: 1.6; }
.sf-p2-faq { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; }
.sf-p2-faq h2 { margin-bottom: 8px; }
.sf-p2-faq details { border-bottom: 1px solid var(--ui-line); }
.sf-p2-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; font-weight: 700; font-size: 16px; }
.sf-p2-faq summary::-webkit-details-marker { display: none; }
.sf-p2-faq summary::after { content: "+"; font-size: 20px; color: var(--ui-muted); }
.sf-p2-faq details[open] summary::after { content: "−"; }
.sf-p2-faq details p { padding-bottom: 16px; }

/* telefon: od 375 px — paski przewijane w poziomie, kafelki 2 w rzędzie */
@media (max-width: 720px) {
  .sf-prem2 { gap: 28px; }
  .sf-p2-next-img { width: 76px; height: 76px; }
  .sf-p2-next-name { font-size: 18px; }
  .sf-p2-months, .sf-p2-themes, .sf-p2-status { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .sf-p2-months > * { flex: none; width: 92px; }
  .sf-p2-legend { margin-left: 0; }
  .sf-p2-sort { margin-left: 0; width: 100%; }
  .sf-p2-sec h2, .sf-p2-about h2 { font-size: 22px; }
  .sf-p2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sf-pc { border-radius: 14px; }
  .sf-pc-img { padding: 8px; }
  .sf-pc-badge { font-size: 11px; padding: 3px 7px; left: 6px; bottom: 6px; }
  .sf-pc-logo { display: none; }
  .sf-pc-body { padding: 8px 10px 10px; }
  .sf-pc-name { font-size: 13px; }
  .sf-pc-big { font-size: 15px; }
  .sf-pc-small { font-size: 11px; }
  .sf-pc-btn { font-size: 12px; padding: 0 8px; }
  .sf-p2-gall { margin-left: 0; }
}

/* 0.99.7: przycisk „Śledź” (zalogowany) nie przejmuje ogólnego żółtego stylu przycisków treści */
html[data-ui-theme] body .main-content button.sf-pc-follow { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--ui-line); border-radius: 10px; background: transparent; color: var(--ui-muted); box-shadow: none; }
html[data-ui-theme] body .main-content button.sf-pc-follow:hover { color: var(--ui-ink); }
html[data-ui-theme] body .main-content button.sf-pc-follow.is-saved { background: var(--p2-mark); border-color: var(--p2-mark); color: #141A24; }
/* 0.99.9: ® przy LEGO w nagłówku i nota o znaku towarowym */
.sf-p2-hero h1 sup { font-size: .35em; vertical-align: super; font-weight: 700; }
.sf-p2-tm { font-size: 12px !important; }

/* 0.99.21: wyszukiwanie w Premierach */
.sf-p2-sort{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.sf-p2-search input{min-width:220px;padding:7px 10px;border-radius:9px;border:1.5px solid var(--ui-line);background:var(--ui-card);color:var(--ui-ink);font:inherit}
@media(max-width:620px){.sf-p2-search,.sf-p2-search input{width:100%;min-width:0}}
