/*
! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/

html {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font family by default.
2. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden] {
  display: none;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

.prose {
  color: var(--tw-prose-body);
  max-width: 80ch;
}

.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-lead);
  font-size: 1.25em;
  line-height: 1.6;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-links);
  text-decoration: underline;
  font-weight: 500;
}

.prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-bold);
  font-weight: 600;
}

.prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: decimal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-alpha;
}

.prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-alpha;
}

.prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-alpha;
}

.prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-alpha;
}

.prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-roman;
}

.prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-roman;
}

.prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-roman;
}

.prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-roman;
}

.prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: decimal;
}

.prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  font-weight: 400;
  color: var(--tw-prose-counters);
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  color: var(--tw-prose-bullets);
}

.prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  margin-top: 1.25em;
}

.prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-color: var(--tw-prose-hr);
  border-top-width: 1px;
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 500;
  font-style: italic;
  color: var(--tw-prose-quotes);
  border-left-width: 0.25rem;
  border-left-color: var(--tw-prose-quote-borders);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: none;
}

.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: none;
}

.prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 800;
  font-size: 1.875em; /* LLM: Zmniejszono z 2.25em dla lepszej czytelności na mobile */
  margin-top: 0;
  margin-bottom: 0.8888889em;
  line-height: 1.1111111;
}

/* LLM: Responsive H1 - większy na desktop */
@media (min-width: 768px) {
  .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 2.25em;
  }
}

.prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 900;
  color: inherit;
}

.prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  font-size: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3333333;
}

.prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 800;
  color: inherit;
}

.prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.3em;
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 700;
  color: inherit;
}

.prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  margin-top: 1.0em;
  margin-bottom: 0.3em;
  line-height: 1.5;
}

.prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 700;
  color: inherit;
}

.prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Dla obrazków pionowych (plakatów) - pozwól im przekraczać szerokość kontenera prose */
/* Obrazki mogą być szersze niż tekst, ale nie szersze niż kolumna artykułu */
.prose :where(img[height]):not(:where([class~="not-prose"],[class~="not-prose"] *)),
.prose :where(figure img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  max-width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
}

@media (max-width: 767px) {
  .prose :where(img[height]):not(:where([class~="not-prose"],[class~="not-prose"] *)),
  .prose :where(figure img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  display: block;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 500;
  font-family: inherit;
  color: var(--tw-prose-kbd);
  box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);
  font-size: 0.875em;
  border-radius: 0.3125rem;
  padding-top: 0.1875em;
  padding-right: 0.375em;
  padding-bottom: 0.1875em;
  padding-left: 0.375em;
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-code);
  font-weight: 600;
  font-size: 0.875em;
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: "`";
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: "`";
}

.prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
  font-size: 0.875em;
}

.prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
  font-size: 0.9em;
}

.prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-pre-code);
  background-color: var(--tw-prose-pre-bg);
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding-top: 0.8571429em;
  padding-right: 1.1428571em;
  padding-bottom: 0.8571429em;
  padding-left: 1.1428571em;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: none;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: none;
}

.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: var(--tw-prose-th-borders);
}

.prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  vertical-align: bottom;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

.prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: var(--tw-prose-td-borders);
}

.prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 0;
}

.prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  vertical-align: baseline;
}

.prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-top-width: 1px;
  border-top-color: var(--tw-prose-th-borders);
}

.prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  vertical-align: top;
}

.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-captions);
  font-size: 0.875em;
  line-height: 1.4285714;
  margin-top: 0.8571429em;
}

.prose {
  --tw-prose-body: #374151;
  --tw-prose-headings: #111827;
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #111827;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-kbd: #111827;
  --tw-prose-kbd-shadows: 17 24 39;
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
  --tw-prose-invert-body: #d1d5db;
  --tw-prose-invert-headings: #fff;
  --tw-prose-invert-lead: #9ca3af;
  --tw-prose-invert-links: #fff;
  --tw-prose-invert-bold: #fff;
  --tw-prose-invert-counters: #9ca3af;
  --tw-prose-invert-bullets: #4b5563;
  --tw-prose-invert-hr: #374151;
  --tw-prose-invert-quotes: #f3f4f6;
  --tw-prose-invert-quote-borders: #374151;
  --tw-prose-invert-captions: #9ca3af;
  --tw-prose-invert-kbd: #fff;
  --tw-prose-invert-kbd-shadows: 255 255 255;
  --tw-prose-invert-code: #fff;
  --tw-prose-invert-pre-code: #d1d5db;
  --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
  --tw-prose-invert-th-borders: #4b5563;
  --tw-prose-invert-td-borders: #374151;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-left: 0.375em;
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-left: 0.375em;
}

.prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5em;
  padding-left: 1.625em;
}

.prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-left: 0;
}

.prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-right: 0;
}

.prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-top: 0.5714286em;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

.prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-left: 0;
}

.prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-right: 0;
}

.prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 0;
}

.insert-link::before {
  pointer-events: auto;
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  z-index: 10;
  --tw-content: '';
  content: var(--tw-content);
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.relative {
  position: relative;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-14 {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.my-16 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-14 {
  margin-bottom: 3.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-auto {
  margin-right: auto;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 1.618 / 1;
}

.aspect-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-12 {
  height: 3rem;
}

.h-20 {
  height: 5rem;
}

.w-12 {
  width: 3rem;
}

.w-20 {
  width: 5rem;
}

.w-full {
  width: 100%;
}

.max-w-7xl {
  max-width: 80rem;
}

.basis-1\/2 {
  flex-basis: 50%;
}

.basis-1\/3 {
  flex-basis: 33.333333%;
}

.basis-2\/3 {
  flex-basis: 66.666667%;
}

.cursor-pointer {
  cursor: pointer;
}

.resize {
  resize: both;
}

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

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.items-center {
  align-items: center;
}

.items-stretch {
  align-items: stretch;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}

.gap-x-6 {
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
}

.gap-y-10 {
  row-gap: 2.5rem;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.self-center {
  align-self: center;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

/* Kontener z przewijaniem dla tabel */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

/* Style dla tabel w kontenerze */
.table-wrapper table {
  width: 100%;
  min-width: 800px; /* Zwiększona minimalna szerokość tabeli */
  table-layout: auto;
  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  white-space: normal; /* Zawijanie tekstu */
  border: 1px solid #e5e7eb;
}

/* Kolumna "Opcje" - nazwy w jednej linii */
.table-wrapper td:first-child,
.table-wrapper th:first-child {
  white-space: nowrap;
  min-width: 80px;
}

.table-wrapper th {
  background-color: #f9fafb;
  font-weight: 600;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-l-full {
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}

.rounded-r-full {
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-zinc-200 {
  --tw-border-opacity: 1;
  border-color: rgb(228 228 231 / var(--tw-border-opacity));
}

.border-zinc-400 {
  --tw-border-opacity: 1;
  border-color: rgb(161 161 170 / var(--tw-border-opacity));
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}

.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
}

.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity));
}

.bg-purple-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / var(--tw-bg-opacity));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-zinc-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 244 245 / var(--tw-bg-opacity));
}

.fill-white {
  fill: #fff;
}

.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

.p-1 {
  padding: 0.25rem;
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-7 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pl-3 {
  padding-left: 0.75rem;
}

.pr-\[5px\] {
  padding-right: 5px;
}

.pt-4 {
  padding-top: 1rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 1.5;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.leading-none {
  line-height: 1;
}

.leading-normal {
  line-height: 1.3;
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.text-zinc-500 {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity));
}

.decoration-auto {
  text-decoration-thickness: auto;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-linear {
  transition-timing-function: linear;
}

.before\:pointer-events-auto::before {
  content: var(--tw-content);
  pointer-events: auto;
}

.before\:absolute::before {
  content: var(--tw-content);
  position: absolute;
}

.before\:bottom-0::before {
  content: var(--tw-content);
  bottom: 0px;
}

.before\:left-0::before {
  content: var(--tw-content);
  left: 0px;
}

.before\:right-0::before {
  content: var(--tw-content);
  right: 0px;
}

.before\:top-0::before {
  content: var(--tw-content);
  top: 0px;
}

.before\:z-10::before {
  content: var(--tw-content);
  z-index: 10;
}

.before\:mr-2::before {
  content: var(--tw-content);
  margin-right: 0.5rem;
}

.before\:opacity-50::before {
  content: var(--tw-content);
  opacity: 0.5;
}

.before\:content-\[\'\'\]::before {
  --tw-content: '';
  content: var(--tw-content);
}

.before\:content-\[\'\2022\'\]::before {
  --tw-content: '•';
  content: var(--tw-content);
}

.after\:ml-4::after {
  content: var(--tw-content);
  margin-left: 1rem;
}

.after\:opacity-30::after {
  content: var(--tw-content);
  opacity: 0.3;
}

.after\:content-\[\'\276F\'\]::after {
  --tw-content: '❯';
  content: var(--tw-content);
}

.last\:after\:content-none:last-child::after {
  --tw-content: none;
  content: var(--tw-content);
}

.hover\:bg-blue-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity));
}

.hover\:bg-zinc-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(244 244 245 / var(--tw-bg-opacity));
}

.hover\:bg-zinc-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(228 228 231 / var(--tw-bg-opacity));
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.active\:bg-zinc-300:active {
  --tw-bg-opacity: 1;
  background-color: rgb(212 212 216 / var(--tw-bg-opacity));
}

.group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.group:hover .group-hover\:animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.group:hover .group-hover\:animate-spin {
  animation: spin 1s linear infinite;
}

.group:hover .group-hover\:underline {
  text-decoration-line: underline;
}

@media (min-width: 900px) {
  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:my-14 {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
  }

  .md\:mb-8 {
    margin-bottom: 2rem;
  }

  .md\:flex {
    display: flex;
  }

  .md\:w-2\/5 {
    width: 40%;
  }

  .md\:w-3\/5 {
    width: 60%;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .md\:pr-8 {
    padding-right: 2rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.7rem;
  }

  .lg\:sticky {
    position: sticky;
  }

  .lg\:top-8 {
    top: 2rem;
  }

  .lg\:flex {
    display: flex;
  }
  
  .lg\:hidden {
    display: none !important;
  }

  .lg\:w-2\/5 {
    width: 40%;
  }

  .lg\:w-3\/5 {
    width: 60%;
  }

  .lg\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .lg\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0px * var(--tw-space-y-reverse));
  }

  .lg\:p-10 {
    padding: 2.5rem;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:pr-10 {
    padding-right: 2.5rem;
  }

  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:prose-lg {
    font-size: 1.125rem;
    line-height: 1.7777778;
  }
}

/* LLM: Custom breakpoint 1030px dla menu - hamburger pojawia się wcześniej */
@media (max-width: 1029px) {
  /* Ukryj menu desktopowe */
  .hidden.lg\\:flex {
    display: none !important;
  }
  
  /* Pokaż kontrolki mobilne */
  .lg\\:hidden {
    display: flex !important;
  }
}

@media (min-width: 1030px) {
  /* Pokaż menu desktopowe */
  .hidden.lg\\:flex {
    display: flex !important;
  }
  
  /* Ukryj kontrolki mobilne */
  .lg\\:hidden {
    display: none !important;
  }
  
  /* Ukryj menu mobilne */
  #mobileMenu.lg\\:hidden {
    display: none !important;
  }
}

.menu-desktop {
  display: none;
}

@media (min-width: 900px) {
  .menu-desktop {
    display: flex;
  }
}

.menu-mobile {
  display: none;
}

.menu-mobile.open {
  display: block;
}

.menu-mobile.close {
  display: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mt-custom {
  margin-top: 3rem;
}

.z-999 {
  z-index: 999 !important;
}
.article-image {
  margin: 1.5rem 0;
  text-align: center;
}

.article-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Obrazki główne w artykułach - maksymalna wysokość ograniczona do szerokości kontenera */
.article-main-image {
  display: block;
}

.article-main-image img {
  max-width: 100%;
  height: auto;
  /* Maksymalna wysokość równa szerokości kontenera (kwadrat jako maksymalny wymiar) */
  /* Używamy object-fit: contain, aby zachować naturalne proporcje bez pustej przestrzeni */
  object-fit: contain;
}

/* Ograniczenie maksymalnej wysokości do szerokości kontenera prose (około 720px) */
/* Na większych ekranach maksymalna wysokość to szerokość kontenera prose */
@media (min-width: 768px) {
  .article-main-image img {
    max-height: 720px;
  }
}

/* Na mniejszych ekranach maksymalna wysokość to szerokość viewportu */
@media (max-width: 767px) {
  .article-main-image img {
    max-height: 100vw;
  }
}

.image-caption {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Coded links - niewidoczne dla Google, działające dla użytkowników */
.coded-link {
  color: #0070BD !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  transition: color 0.2s ease;
}

.coded-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* Tryb ciemny dla coded links */
@media (prefers-color-scheme: dark) {
  .coded-link {
    color: #60a5fa !important;
  }
  
  .coded-link:hover {
    color: #93c5fd !important;
  }
}

/* LLM: Skip link dla WCAG 2.1 AA compliance - accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  background: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
  /* Ukryj dla screen readerów gdy nie ma focus */
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.skip-link:focus {
  /* Pokaż gdy ma focus */
  left: 6px;
  top: 6px;
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
}

/* LLM: Screen reader only classes dla WCAG compliance */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.focus\:not-sr-only:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}


.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  vertical-align: top;
  line-height: 1.75;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  vertical-align: top;
  line-height: 1.75;
}

/* Dodatkowe style dla lepszego wyrównania w trybie ciemnym */
html[data-theme="dark"] .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  vertical-align: top;
  line-height: 1.75;
}

html[data-theme="dark"] .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  vertical-align: top;
  line-height: 1.75;
}

#consent-notice {
    padding: 2rem 1rem; 
    text-align: center; 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    background: linear-gradient(135deg, rgb(59 130 246), rgb(37 99 235));
    color: white;
    z-index: 999999;
    will-change: transform;
    transform: translateZ(0);
    box-shadow: 0px -4px 20px rgb(0 0 0 / 40%);
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    animation: slideUpGently 0.8s ease-out;
    /* LLM: Ukryj domyślnie, JavaScript pokaże gdy potrzeba */
    display: none;
}

@keyframes slideUpGently {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* LLM: Efekt pulsowania dla większej uwagi */
#consent-notice::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#consent-notice p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
}

#consent-notice button {
    cursor: pointer; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-height: 3rem;
    position: relative;
    overflow: hidden;
}

#consent-notice button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#consent-notice button:hover::before {
    left: 100%;
}

#consent-notice button.accept {
    cursor: pointer; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(59 130 246);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgb(255, 255, 255);
    border: 2px solid rgb(255, 255, 255);
    min-height: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1);
}

#consent-notice button.accept:hover {
    background: rgb(34 197 94);
    border: 2px solid rgb(34 197 94);
    color: rgb(255, 255, 255);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

#consent-notice button:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    color: rgb(59 130 246);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

#consent-notice .policy-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    margin-right: 1rem;
    transition: all 0.3s;
}

#consent-notice .policy-link:hover {
    text-decoration: underline;
    color: rgb(255, 255, 255);
}

#consent-notice .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* LLM: Dodaj space dla body żeby treść nie była zasłaniana */
body.has-consent-banner {
    padding-bottom: 160px;
}

@media (max-width: 767px) {
    #consent-notice {
        padding: 1.25rem 1rem;
    }

    #consent-notice p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        text-align: left;
    }

    #consent-notice a {
        font-size: 0.9rem;
        display: inline;
    }

    #consent-notice .buttons {
        margin-top: 1rem;
        gap: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #consent-notice button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        min-height: 3rem;
        width: 100%;
        justify-content: center;
    }

    #consent-notice button.accept {
        font-size: 1.1rem;
        padding: 1rem;
        min-height: 3.5rem;
        order: 2;
    }

    #consent-notice .policy-link {
        font-size: 0.85rem;
        margin: 0;
        text-align: center;
        width: 100%;
        padding: 0.5rem 0;
        order: 0;
    }

    /* Przycisk personalizacji */
    #cookie-notice-personalization {
        order: 1;
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 2.5rem !important;
    }

    body.has-consent-banner {
        padding-bottom: 180px;
    }

    #consent-overlay {
        padding: 1rem;
    }

    #consent-overlay > div {
        padding: 1rem;
    }

    #consent-overlay .cookie-option {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }

    #consent-overlay .cookie-option h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    #consent-overlay .cookie-option p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    #consent-overlay .buttons {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    #cookie-preferences-toggle {
        width: 35px;
        height: 35px;
        bottom: 15px;
        left: 15px;
    }

    #cookie-preferences-toggle svg {
        width: 20px;
        height: 20px;
    }
}

#consent-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    padding: 2rem;
    will-change: transform;
    transform: translateZ(0);
}

#consent-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#consent-overlay > div {
    background: white;
    color: black;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* LLM: Przycisk X do zamknięcia overlay */
#close-consent-overlay {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-consent-overlay:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

#consent-overlay .cookie-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
}

#consent-overlay .cookie-option label {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

#consent-overlay .cookie-option h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#consent-overlay .cookie-option p {
    color: rgb(107 114 128);
    font-size: 0.875rem;
}

#consent-overlay .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

#cookie-preferences-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgb(59 130 246);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 999;
}

#cookie-preferences-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#cookie-preferences-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

#consent-notice a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

#consent-notice a:hover {
    opacity: 1;
}/* Custom header styles */
.nav-link {
    position: relative;
    padding: 0.625rem 1.2rem;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s;
    color: rgb(55, 65, 81);
    pointer-events: auto;
    z-index: 10000;
}

/* Styl dla linków w nagłówku w trybie ciemnym */
html[data-theme="dark"] .nav-link {
    color: rgb(229, 231, 235);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(0 ,112, 189);
    transition: all 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: rgb(0 ,112, 189);
}

.nav-link.active::after {
    width: 100%;
}

/* Glassmorphism effect */
.glass-effect {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Styl dla glass-effect w trybie ciemnym */
html[data-theme="dark"] .glass-effect {
    background-color: rgba(17, 24, 39, 0.95); /* ciemny kolor tła */
    border-bottom-color: rgba(55, 65, 81, 0.5);
}

/* Animated hamburger */
.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s;
}

/* Search animation */
.search-input {
    transition: all 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Styl dla pola wyszukiwania w trybie ciemnym */
html[data-theme="dark"] .search-input {
    background-color: rgba(31, 41, 55, 0.8);
    color: rgb(229, 231, 235);
    border-color: rgb(75, 85, 99);
}

html[data-theme="dark"] .search-input::placeholder {
    color: rgb(156, 163, 175);
}

html[data-theme="dark"] .search-input:focus {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

/* Button hover effects */
.btn-primary {
    background-color: rgb(0 ,112, 189);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: rgb(37, 99, 235);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Styl dla przycisków w trybie ciemnym */
html[data-theme="dark"] .btn-primary {
    background-color: rgb(0 ,112, 189);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

html[data-theme="dark"] .btn-primary:hover {
    background-color: rgb(37, 99, 235);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.5);
}

/* Przycisk reklamy - fioletowy */
.btn-reklama {
    background-color: #6b21a8;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(107, 33, 168, 0.3);
    transition: all 0.3s;
}

.btn-reklama:hover {
    background-color: #581c87;
    box-shadow: 0 10px 15px -3px rgba(88, 28, 135, 0.4);
    transform: translateY(-2px);
}

/* Styl dla przycisku reklamy w trybie ciemnym */
html[data-theme="dark"] .btn-reklama {
    background-color: #6b21a8;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(107, 33, 168, 0.4);
}

html[data-theme="dark"] .btn-reklama:hover {
    background-color: #581c87;
    box-shadow: 0 10px 15px -3px rgba(88, 28, 135, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: rgb(0 ,112, 189);
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgb(239, 246, 255);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Styl dla przycisków secondary w trybie ciemnym */
html[data-theme="dark"] .btn-secondary {
    background-color: rgba(31, 41, 55, 0.9);
    color: rgb(96, 165, 250);
    border-color: rgba(96, 165, 250, 0.2);
}

html[data-theme="dark"] .btn-secondary:hover {
    background-color: rgba(55, 65, 81, 0.9);
    border-color: rgba(96, 165, 250, 0.3);
}

.header-logo {
    height: 64px;
    max-width: 320px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
    margin-right: 0.8rem;
}



/* Style dla logo w trybie ciemnym - zmienia logo na białe */
html[data-theme="dark"] .header-logo {
    filter: brightness(0) invert(1); /* Ta kombinacja filtrów zamienia każdy kolorowy obrazek na biały */
}

/* LLM: Płynne skalowanie logo od 1250px w dół */
@media (max-width: 1250px) {
    .header-logo {
        height: 65px;
        max-width: 300px;
    }
}

@media (max-width: 1150px) {
    .header-logo {
        height: 60px;
        max-width: 280px;
    }
}

@media (max-width: 1050px) {
    .header-logo {
        height: 55px;
        max-width: 260px;
    }
}

@media (max-width: 950px) {
    .header-logo {
        height: 50px;
        max-width: 240px;
    }
}

@media (max-width: 850px) {
    .header-logo {
        height: 45px;
        max-width: 220px;
    }
}

/* Dodajemy style dla menu rozwijanego */
.dropdown {
    position: relative;
    z-index: 9999;
}

.dropdown > a {
    cursor: pointer;
    position: relative;
    z-index: 10000;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    padding: 0.5rem;
    padding-top: 1rem;
    margin-top: -0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    pointer-events: auto;
}

/* Styl dla menu rozwijanego w trybie ciemnym */
html[data-theme="dark"] .dropdown-content {
    background-color: rgb(31, 41, 55);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown::before {
    display: none;
}

.dropdown-item {
    cursor: pointer;
    display: block;
    padding: 0.75rem 1rem;
    color: rgb(55, 65, 81);
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styl dla elementów rozwijanego menu w trybie ciemnym */
html[data-theme="dark"] .dropdown-item {
    color: rgb(229, 231, 235);
}

.dropdown-item:hover {
    background-color: rgb(239, 246, 255);
    color: rgb(0 ,112, 189);
}

html[data-theme="dark"] .dropdown-item:hover {
    background-color: rgb(55, 65, 81);
    color: rgb(96, 165, 250);
}

/* Dodajemy ikonkę strzałki */
.dropdown-arrow {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dodajemy style dla wersji mobilnej */
@media (max-width: 767px) {
    /* LLM: Responsywne logo na mobile - max 200px szerokości */
    .header-logo {
        max-width: 195px;
        height: auto;
        max-height: 60px;
        margin-right: 0; /* Zapobiega przesunięciu logo w lewo przy centrowaniu absolutnym */
    }

    .dropdown-content {
        position: static;
        display: none;
        min-width: auto;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-item {
        padding: 0.5rem 1rem 0.5rem 2rem;
    }

    /* Dodajemy style dla strzałki w wersji mobilnej */
    .dropdown-arrow {
        width: 16px !important;
        height: 16px !important;
    }

    /* Style dla strzałki w menu mobilnym */
    .dropdown-arrow-mobile {
        flex-shrink: 0;  /* Zapobiega kurczeniu się ikony */
        margin-left: auto; /* Przesuwa ikonę na prawą stronę */
        width: 12px !important;
        height: 12px !important;
    }
}

/* Modyfikujemy header */
header.glass-effect {
    position: sticky;
    top: 0;
    z-index: 9998;
    will-change: transform;
    transform: translateZ(0);
}

/* Mobile header grid to keep logo centered */
@media (max-width: 1024px) {
  .mobile-header {
    display: grid;
    grid-template-columns: 56px 1fr 56px; /* left / center / right */
    align-items: center;
    height: 80px;
  }
  .mobile-left { justify-content: flex-start; padding-left: 4px; }
  .mobile-center { justify-content: center; }
  .mobile-right { justify-content: flex-end; padding-right: 4px; }
}

/* Dodajemy do istniejących styli */
.glass-effect > div {
    position: relative;
    z-index: 9998;
}

nav.hidden.lg\:flex {
    position: relative;
    z-index: 9999;
}

/* Modyfikujemy style dla menu mobilnego */
#mobileMenu {
    position: relative;
    z-index: 9997;
}

/* Dostosowanie kolorów dla trybu ciemnego */
html[data-theme="dark"] .toggle-button {
    color: rgb(229, 231, 235);
}

html[data-theme="dark"] .toggle-button:hover {
    background-color: rgba(55, 65, 81, 0.5);
}.action-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #e4e4e7;
    background-color: white;
    color: #3f3f46;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.action-button svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.action-button:hover {
    background-color: #0070BD;
    border-color: #0070BD;
    color: white;
    transform: scale(1.05);
}

.action-button:hover svg {
    transform: scale(1.1);
}

.action-button.primary {
    background-color: #0070BD;
    border-color: #0070BD;
    color: white;
}

.action-button.primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.page404-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
    transition: all 0.3s ease;
    width: 120px;
    height: 120px;
    justify-content: center;
    text-decoration: none;
}

.page404-link:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

.page404-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: white;
    color: #4b5563;
}

.page404-link span {
    font-size: 0.875rem;
    font-weight: 500;
}

.error-animation {
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-number {
    font-size: 110px;
    font-weight: 900;
    color: #f3f4f6;
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

.error-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    color: #ef4444;
    z-index: 2;
    animation: shake 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
} .search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#search-input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.search-result {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.search-result:hover {
    background-color: #f5f5f5;
}

.search-result h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.search-result p {
    margin: 0;
    color: #666;
} /* Style dla strony głównej */

/* Style dla tytułu artykułu na single.html - TYLKO MOBILE */
@media (max-width: 767px) {
    /* Zmniejszenie fontu i interlinii tytułu artykułu na mobile */
    article.prose header h1.title-with-emphasis {
        font-size: 1.5rem !important; /* text-2xl zamiast text-4xl (2.25rem) */
        line-height: 1.25 !important; /* leading-tight zamiast leading-normal (1.5) */
    }
}

/* Sekcja z pełną szerokością */
.full-width-section {
    width: 100%;
}

/* Dodatkowe style dla sekcji komunikatów firm */
.company-announcements {
    background-color: #f5f5f5;
}

html[data-theme="dark"] .company-announcements {
    background-color: #1a2234; /* Ciemny granatowy */
}

/* Kontener dla zawartości sekcji pełnoszerokościowej */
.full-width-content {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsywne marginesy */
@media (min-width: 640px) {
    .full-width-content {
        padding: 0 1.5rem;
    }
}

/* LLM: Zmiana breakpointu z 768px na 900px */
@media (min-width: 900px) {
    .full-width-content {
        padding: 0 3rem; /* LLM: Połączenie stylów 768px i 1024px */
    }
}

/* Style dla nagłówków sekcji */
.section-heading {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: rgb(37, 37, 37);
}

html[data-theme="dark"] .section-heading {
    color: #e5e7eb; /* Jasny szary dla dark mode */
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 2rem;
    background-color: rgb(59 130 246);
    border-radius: 0.15rem;
}

html[data-theme="dark"] .section-heading::before {
    background-color: #0070BD; /* Jaśniejszy niebieski dla dark mode */
}

/* Zmiany dla mobile - mniejszy font i węższy ozdobnik na całą wysokość tekstu */
@media (max-width: 767px) {
    /* Zmniejszenie rozmiaru czcionki nagłówka sekcji na mobile - proporcjonalnie do zmian w liście */
    .section-heading {
        font-size: 1.375rem !important; /* zmniejszone z 1.5rem - proporcjonalnie do zmian w liście */
        line-height: 1.625rem;
    }
    
    /* H1 i H2 w sekcjach kategorii - proporcjonalnie zmniejszone */
    .section-heading,
    section h1.section-heading,
    section h2.section-heading {
        font-size: 1.375rem !important;
        line-height: 1.625rem;
    }
    
    /* Węższy ozdobnik na całą wysokość tekstu zamiast środka */
    .section-heading::before {
        width: 0.5rem !important; /* węższy - z 0.75rem (12px) na 0.5rem (8px) */
        top: 0 !important; /* od góry zamiast środka */
        transform: none !important; /* bez transformacji */
        height: 100% !important; /* na całą wysokość tekstu */
    }
    
    /* Nawigacja z kotwicami - TYLKO MOBILE */
    .mobile-section-nav {
        display: block;
        padding: 0.375rem 0; /* zmniejszone z 0.75rem o połowę */
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 0.75rem; /* zmniejszone z 1.5rem (24px) o połowę - odstęp między nawigacją a tytułem */
    }
    
    .mobile-nav-link {
        display: inline-block;
        padding: 0.375rem 0.75rem; /* zmniejszone z 0.5rem 1rem o połowę */
        color: #0070BD;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background-color: #eff6ff;
        color: #1d4ed8;
    }
    
    /* Smooth scroll dla kotwic */
    html {
        scroll-behavior: smooth;
    }
    
    /* Offset dla scroll - żeby nagłówek nie był ukryty pod headerem */
    section[id] {
        scroll-margin-top: 1rem;
    }
}

/* Ukrycie nawigacji na desktop */
@media (min-width: 768px) {
    .mobile-section-nav {
        display: none !important;
    }
}

/* Widget "Scroll to Top" - TYLKO MOBILE */
.scroll-to-top {
    display: none; /* domyślnie ukryty */
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: #0070BD;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.scroll-to-top:hover,
.scroll-to-top:active {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

.scroll-to-top.show {
    display: flex;
}

/* Tylko na mobile */
@media (max-width: 767px) {
    .scroll-to-top {
        display: none; /* będzie pokazywany przez JS gdy scroll > 300px */
    }
    
    .scroll-to-top.show {
        display: flex;
    }
}

/* Ukrycie na desktop */
@media (min-width: 768px) {
    .scroll-to-top {
        display: none !important;
    }
}

section {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* Style dla sekcji z tłem */
html[data-theme="dark"] .bg-green-100 {
    background-color: #0f172a; /* Ciemny odcień dla sekcji "Przydatne" */
}

html[data-theme="dark"] .bg-gray-100 {
    background-color: #0f172a; /* Ciemny odcień dla sekcji "Ciekawe artykuły" */
}

html[data-theme="dark"] .bg-zinc-100 {
    background-color: #1e293b; /* Ciemny odcień dla wyróżnionych artykułów */
}

html[data-theme="dark"] .bg-zinc-100:hover {
    background-color: #1e40af; /* Ciemniejszy niebieski przy hover */
}

html[data-theme="dark"] .bg-yellow-100 {
    background-color: #1e293b; /* Ciemny odcień dla reklam */
}

/* Style dla przycisków ze strzałką ">" */
.read-more-btn,
.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: white;
    color: rgb(55, 65, 81);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgb(229, 231, 235);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-right: 2.5rem;
}

html[data-theme="dark"] .read-more-btn,
html[data-theme="dark"] .view-all-btn {
    background-color: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.read-more-btn:hover,
.view-all-btn:hover {
    background-color: rgb(243, 244, 246);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

html[data-theme="dark"] .read-more-btn:hover,
html[data-theme="dark"] .view-all-btn:hover {
    background-color: #374151;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.read-more-btn .arrow,
.view-all-btn .arrow {
    display: none; /* Ukrywamy strzałkę tekstową */
}

.read-more-btn::after,
.view-all-btn::after {
    content: '›';
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-57%);
    color: rgb(59 130 246);
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

html[data-theme="dark"] .read-more-btn::after,
html[data-theme="dark"] .view-all-btn::after {
    color: #60a5fa; /* Jaśniejszy niebieski dla dark mode */
}

.read-more-btn:hover::after,
.view-all-btn:hover::after {
    transform: translateY(-55%) translateX(2px);
    color: rgb(37, 99, 235); /* Ciemniejszy niebieski przy hover */
}

html[data-theme="dark"] .read-more-btn:hover::after,
html[data-theme="dark"] .view-all-btn:hover::after {
    color: #93c5fd; /* Jeszcze jaśniejszy niebieski przy hover w dark mode */
}

/* Dedykowane style dla obrazków w kartach artykułów */
.card img,
.card-compact img,
.article-card img {
    border-radius: 1.5rem 1.5rem 0 0 !important; /* rounded-t-3xl */
    overflow: hidden !important;
}

.list-post img,
.sidebar-post img {
    border-radius: 1rem !important; /* rounded-2xl */
    overflow: hidden !important;
}

/* Style dla kontenerów obrazków w kartach */
.card .aspect-video,
.card .aspect-square,
.card-compact .aspect-video,
.card-compact .aspect-square,
.article-card .aspect-video,
.article-card .aspect-square {
    overflow: hidden !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
}

.list-post .aspect-video,
.list-post .aspect-square,
.sidebar-post .aspect-video,
.sidebar-post .aspect-square {
    overflow: hidden !important;
    border-radius: 1rem !important;
}

/* Dodatkowe styles dla głównych kart artykułów */
article img,
.prose img {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
}

/* Style dla miniatur w sidebarze */
.sidebar img,
.widget img {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
}

/* Wymuszenie zaokrąglenia także przy hover efektach */
.group:hover img:not(.header-logo),
.group-hover\:scale-105:hover:not(.header-logo) {
    border-radius: 1.5rem 1.5rem 0 0 !important;
    overflow: hidden !important;
}

/* Kontener figure musi mieć overflow hidden żeby przyciąć powiększony obrazek */
figure {
    overflow: hidden !important;
}

/* Konkretne style dla kart artykułów z hover efektem */
article.group figure,
.card figure,
.article-card figure {
    overflow: hidden !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
}

/* Wymuszenie overflow hidden na wszystkich kontenerach obrazków */
.aspect-video,
.aspect-square {
    overflow: hidden !important;
}

/* Zapobieganie CLS - upewnij się że aspect-ratio jest wymuszony */
.aspect-video {
    aspect-ratio: 1.618 / 1 !important;
    min-height: 0; /* Pozwól aspect-ratio działać */
}

/* Style dla kompaktowej listy newsów na mobile */
.news-list-item {
    transition: background-color 0.2s ease;
}

.news-list-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

html[data-theme="dark"] .news-list-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Line clamp dla tytułów w liście */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standardowa właściwość dla kompatybilności */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Optymalizacja obrazków w liście - mniejsze na mobile */
.news-list-item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zwiększone odstępy w liście na mobile - lepsza czytelność */
@media (max-width: 767px) {
    .news-list-item:first-child {
        padding-top: 0;
    }
    
    /* Zwiększone marginesy między elementami listy - więcej oddechu */
    .news-list-item {
        padding-bottom: 1rem; /* zwiększone z 0.5rem */
        margin-bottom: 1rem; /* zwiększone z 0.5rem */
    }
    
    /* Zwiększenie odstępów między pierwszym artykułem a listą */
    .news-mobile-view > div:first-child {
        margin-bottom: 1.5rem; /* zwiększone z 1rem */
    }
    
    /* Większy odstęp między datą a tytułem w liście - wyraźniejsze oddzielenie */
    .news-list-item time {
        margin-bottom: 0.5rem !important; /* zwiększone z mb-1 (0.25rem) */
    }
    
    /* Zmniejszenie rozmiaru fontu nagłówków na mobile */
    .news-mobile-view article h2 {
        font-size: 1.25rem; /* text-xl zamiast text-2xl */
        line-height: 1.5rem;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Zwiększenie rozmiaru fontu nagłówków w liście - lepsza czytelność */
    .news-list-item h3 {
        font-size: 1.125rem !important; /* text-lg - większy niż text-base (1rem) dla lepszej czytelności */
        line-height: 1.5rem !important;
        font-weight: 600 !important; /* semibold zamiast bold (700) */
    }
    
    /* Zwiększenie rozmiaru daty w liście - minimalnie większy */
    .news-list-item time {
        font-size: 0.875rem !important; /* text-sm zamiast text-xs (0.75rem) */
        line-height: 1.25rem !important;
    }
    
    /* Zwiększenie rozmiaru obrazków w liście - dopasowane do większego tekstu */
    .mobile-list-image {
        width: 100px; /* zwiększone z 80px */
        aspect-ratio: 1.618 / 1; /* Zachowaj aspect-ratio */
    }
}

/* Style dla kompaktowej listy newsów - już zdefiniowane wyżej */

/* Kontener dla sekcji newsów */
.news-section-container {
    width: 100%;
}

/* Desktop: grid 3 kolumny - WIDOCZNY TYLKO NA DESKTOP */
.news-desktop-view {
    display: none;
}

@media (min-width: 768px) {
    .news-desktop-view {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1.5rem;
    }
}

/* Mobile: flex column - WIDOCZNY TYLKO NA MOBILE */
.news-mobile-view {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .news-mobile-view {
        display: none !important;
    }
}

/* Zdjęcia dla mobile - z aspect-ratio aby zapobiec CLS */
.mobile-first-image {
    width: 100%;
    aspect-ratio: 1.618 / 1; /* Złoty podział - takie samo jak aspect-video */
    display: block;
    position: relative;
    overflow: hidden;
}

.mobile-first-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-list-image {
    width: 100px; /* Zmniejszone z 120px dla lepszego dopasowania */
    aspect-ratio: 1.618 / 1; /* Złoty podział - takie samo jak inne obrazy */
    flex-shrink: 0;
    display: block;
    position: relative;
    overflow: hidden;
}

.mobile-list-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Link w liście newsów - odstęp między zdjęciem a tekstem */
.mobile-list-link {
    display: flex;
    gap: 0.75rem; /* gap-3 = 0.75rem */
}

@media (max-width: 767px) {
    /* BEZ ZAOKRĄGLENIA na mobile - prostokątne zdjęcia - NADPISUJE WSZYSTKIE KLASY TAILWIND */
    /* Najbardziej specyficzne selektory dla pierwszego artykułu - nadpisują rounded-t-3xl */
    .news-mobile-view article figure.mobile-first-image,
    .news-mobile-view article figure.mobile-first-image img,
    .news-mobile-view article figure.rounded-t-3xl,
    .news-mobile-view article figure.rounded-t-3xl img,
    .news-mobile-view article .mobile-first-image.rounded-t-3xl,
    .news-mobile-view article .mobile-first-image.rounded-t-3xl img {
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    
    /* Nadpisanie dla obrazków w liście - wszystkie możliwe kombinacje */
    .news-mobile-view .mobile-list-image,
    .news-mobile-view .mobile-list-image img,
    .news-list-item figure.mobile-list-image,
    .news-list-item figure.mobile-list-image img,
    .news-list-item .mobile-list-image,
    .news-list-item .mobile-list-image img,
    .news-list-item figure,
    .news-list-item figure img {
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    
    /* Nadpisanie dla WSZYSTKICH obrazków w sekcji mobile - catch-all */
    .news-mobile-view img,
    .news-mobile-view figure img,
    .news-mobile-view article img,
    .news-mobile-view article figure img {
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
    }
    
    /* Mniejsze zdjęcia w liście - proporcjonalne do rozmiaru tekstu */
    .mobile-list-image {
        width: 80px;
        height: auto;
    }
    
    /* Odstęp między zdjęciem a tekstem w liście */
    .mobile-list-link {
        gap: 0.75rem; /* 12px odstępu */
    }
    
    /* Usunięcie przerwy między obrazkiem a tekstem w pierwszym artykule */
    .mobile-first-image {
        margin-bottom: 0;
        padding: 0;
    }
    
    /* Odstęp między obrazkiem a datą w pierwszym artykule */
    .news-mobile-view article .mobile-first-image {
        margin-bottom: 0.75rem; /* odstęp między obrazkiem a datą */
    }
    
    /* Usunięcie marginesu z figure */
    .mobile-first-image figure,
    .news-mobile-view article figure {
        margin: 0;
    }
    
    /* Zmniejszenie paddingu w tekście pierwszego artykułu na mobile */
    .news-mobile-view article .mobile-first-image + div {
        padding-top: 1rem !important; /* padding na górze dla lepszego odstępu */
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Data w pierwszym artykule - bliżej tekstu, dalej od obrazka */
    .news-mobile-view article .mobile-first-image + div time {
        margin-bottom: 0.5rem; /* odstęp między datą a tytułem - bliżej tekstu */
        margin-top: 0; /* bez marginesu na górze */
        display: block;
    }
    
    /* Zwiększenie rozmiaru tytułu h2 w pierwszym artykule na mobile - bardzo specyficzne selektory */
    .news-mobile-view > div:first-child article h2.title-with-emphasis,
    .news-mobile-view > div:first-child article h2,
    .news-mobile-view article h2.title-with-emphasis,
    .news-mobile-view article h2.text-2xl,
    .news-mobile-view article .title-with-emphasis {
        font-size: 1.625rem !important; /* większy niż text-2xl (1.5rem) - 26px */
        line-height: 1.875rem !important;
    }
    
    /* Nadpisanie dla wszystkich h2 w pierwszym artykule mobile */
    .news-mobile-view > div:first-child article div h2,
    .news-mobile-view > div:first-child article div h2.title-with-emphasis {
        font-size: 1.625rem !important;
        line-height: 1.875rem !important;
    }
    
    /* Usunięcie marginesu z figure w pierwszym artykule */
    .news-mobile-view article figure.mobile-first-image {
        margin: 0;
        display: block;
    }
    
    /* Obrazek w liście - naturalne proporcje */
    .mobile-list-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Link sponsorowany - dostępność i kontrast */
/* Używamy ciemniejszego niebieskiego (#1e40af) dla kontrastu 7.1:1 z białym tłem - WCAG AAA */
.sponsor-link {
    color: #1e40af !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.sponsor-link:hover {
    color: #1e3a8a !important;
    text-decoration-color: #1e3a8a;
}

html[data-theme="dark"] .sponsor-link {
    color: #60a5fa !important;
    text-decoration-color: #60a5fa;
}

html[data-theme="dark"] .sponsor-link:hover {
    color: #93c5fd !important;
    text-decoration-color: #93c5fd;
}

/* Banery - różne rozmiary, bez sztywnego aspect-ratio */
.banners-container {
    width: 100%;
}

.banner-item {
    width: 100%;
    overflow: hidden;
    display: block;
}

.banner-item a {
    display: block;
    width: 100%;
}

.banner-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* Atrybuty width/height w HTML zarezerwują miejsce i zapobiegną CLS */
}

/* Zapobieganie CLS - weather banner z min-height */
.weather-details {
    min-height: 3rem; /* Zarezerwuj miejsce dla danych pogody */
}

.weather-detail-value {
    min-width: 3ch; /* Zarezerwuj miejsce dla wartości (np. "--°C") */
    display: inline-block;
}

/* Usunięte zaokrąglenia i obramowania dla sekcji "Zobacz też" i sidebaru na desktopie */
@media (min-width: 768px) {
    #related-post .mobile-list-image,
    #related-post .mobile-list-image img,
    #post-footer .mobile-list-image,
    #post-footer .mobile-list-image img,
    aside .mobile-list-image,
    aside .mobile-list-image img,
    .news-list-item .mobile-list-image,
    .news-list-item .mobile-list-image img {
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
    }
    
    /* Usunięcie zaokrągleń przy hover - nadpisuje ogólne reguły hover */
    #related-post .group:hover .mobile-list-image img,
    #related-post .group:hover .mobile-list-image,
    #post-footer .group:hover .mobile-list-image img,
    #post-footer .group:hover .mobile-list-image,
    aside .group:hover .mobile-list-image img,
    aside .group:hover .mobile-list-image,
    .news-list-item.group:hover .mobile-list-image img,
    .news-list-item.group:hover .mobile-list-image {
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
    }
    
    /* Usunięcie dolnego obramowania na desktopie */
    #related-post .news-list-item,
    #post-footer .news-list-item,
    aside .news-list-item {
        border-bottom: none !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Usunięcie zaokrągleń przy hover również na mobile */
#related-post .group:hover .mobile-list-image img,
#related-post .group:hover .mobile-list-image,
#post-footer .group:hover .mobile-list-image img,
#post-footer .group:hover .mobile-list-image,
aside .group:hover .mobile-list-image img,
aside .group:hover .mobile-list-image,
.news-list-item.group:hover .mobile-list-image img,
.news-list-item.group:hover .mobile-list-image {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Odstępy dla artykułów w sidebarze - nieco zwiększone */
aside .sidebar-article {
    padding-bottom: 0.85rem !important; /* pb-3 = 0.75rem (12px) */
    margin-bottom: 0.85rem !important; /* mb-3 = 0.75rem (12px) */
}

/* Usunięcie max-width z prose w artykule - treść wypełnia całą dostępną przestrzeń */
.article-content.prose {
    max-width: 100% !important;
}

/* Layout dla strony single z ustalonymi proporcjami szerokości */
.single-page-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .single-page-layout {
        display: grid;
        grid-template-columns: 1fr 4rem 460px; /* Artykuł | Gap 64px | Sidebar 460px (1.5x większy niż 320px) */
        gap: 0;
    }
    
    .single-page-layout > article {
        grid-column: 1;
        min-width: 0; /* Zapobiega overflow */
    }
    
    .single-page-layout > aside {
        grid-column: 3;
        width: 460px;
        min-width: 460px;
    }
} .theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
  }
  
  .theme-switch-icon {
    margin: 0 6px;
    font-size: 1.2rem;
  }
  
  .theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
  }
  
  .theme-switch input {
    display: none;
  }
  
  .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
  }
  
  .slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
  }
  
  input:checked + .slider {
    background-color: #60a5fa;
  }
  
  input:checked + .slider:before {
    transform: translateX(24px);
  }
  
  .slider.round {
    border-radius: 24px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
  .light-icon {
    color: #f59e0b;
  }
  
  .dark-icon {
    color: #4b5563;
  }
  
  [data-theme="dark"] .light-icon {
    color: #d97706;
  }
  
  [data-theme="dark"] .dark-icon {
    color: #e5e7eb;
  }

  /* LLM: Zmiana breakpointów z 900px na 1030px - hamburger wcześniej */
  /* Ukryj przełącznik mobilny na dużych ekranach */
  @media (min-width: 1030px) {
    .mobile-theme-switch {
      display: none !important;
    }
  }

  /* Ukryj przełącznik desktopowy na małych ekranach */
  @media (max-width: 1029px) {
    .desktop-theme-switch {
      display: none !important;
    }
  }:root {
  /* Zmienne dla trybu jasnego - bazujące na Twoim obecnym schemacie kolorów */
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --text-primary: #374151;
  --text-secondary: #6b7280;
  --accent-color: #3182ce;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #f9fafb;
  --input-bg: #ffffff;
  
  /* Zmienne dla komponentów Tailwind - tryb jasny */
  --tw-prose-body: #374151;
  --tw-prose-headings: #111827;
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #3182ce;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
}

[data-theme="dark"] {
  /* Zmienne dla trybu ciemnego */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --accent-color: #60a5fa;
  --border-color: #374151;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-bg: #1e1e1e;
  --header-bg: #1a1a1a;
  --footer-bg: #171717;
  --input-bg: #2d2d2d;
  
  /* Zmienne dla komponentów Tailwind - tryb ciemny */
  --tw-prose-body: #d1d5db;
  --tw-prose-headings: #ffffff;
  --tw-prose-lead: #9ca3af;
  --tw-prose-links: #60a5fa;
  --tw-prose-bold: #ffffff;
  --tw-prose-counters: #9ca3af;
  --tw-prose-bullets: #4b5563;
  --tw-prose-hr: #374151;
  --tw-prose-quotes: #f3f4f6;
  --tw-prose-quote-borders: #374151;
  --tw-prose-captions: #9ca3af;
  --tw-prose-code: #ffffff;
  --tw-prose-pre-code: #d1d5db;
  --tw-prose-pre-bg: rgba(0, 0, 0, 0.5);
  --tw-prose-th-borders: #4b5563;
  --tw-prose-td-borders: #374151;
}

/* Dodanie płynnych przejść między trybami */
html {
  overflow-x: hidden; /* LLM: Zapobieganie pływaniu strony na desktop */
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden; /* LLM: Zapobieganie pływaniu strony na desktop */
}

/* Style dla przełącznika trybu */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch-icon {
  margin: 0 4px;
  font-size: 1rem;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
}

input:checked + .slider {
  background-color: #60a5fa;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Dostosowanie kolorów ikon dla trybów */
.light-icon {
  color: #f59e0b;
}

.dark-icon {
  color: #4b5563;
}

[data-theme="dark"] .light-icon {
  color: #d97706;
}

[data-theme="dark"] .dark-icon {
  color: #e5e7eb;
}

/* Modyfikacje dla istniejących klas Tailwind */
[data-theme="dark"] .bg-white {
  background-color: var(--bg-primary);
}

[data-theme="dark"] .text-zinc-800 {
  color: var(--text-primary);
}

[data-theme="dark"] .border-zinc-200,
[data-theme="dark"] .border-zinc-400 {
  border-color: var(--border-color);
}

[data-theme="dark"] .bg-zinc-100 {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .text-zinc-500 {
  color: var(--text-secondary);
}

[data-theme="dark"] .hover\:bg-zinc-100:hover,
[data-theme="dark"] .hover\:bg-zinc-200:hover {
  background-color: #2d2d2d;
}

[data-theme="dark"] .active\:bg-zinc-300:active {
  background-color: #3d3d3d;
}

/* Shadow w trybie ciemnym */
[data-theme="dark"] .shadow {
  box-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.05);
}

header, footer, .card, .sidebar, article, .pagination {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

input, textarea, select, button {
  transition: background-color 0.3s ease, border-color 0.3s ease;
} /* Style dla pogrubienia w tytułach - font-extrabold dla lepszej widoczności */
.title-with-emphasis strong {
  font-weight: 900; /* font-black w Tailwind */
}

/* Style dla komunikatów firm w trybie ciemnym */
html[data-theme="dark"] .komunikaty-firm {
  background-color: #1a2234;
  color: #e5e7eb;
}

html[data-theme="dark"] .komunikaty-firm h2 {
  color: #e5e7eb;
}

html[data-theme="dark"] .komunikaty-firm p {
  color: #9ca3af;
}

html[data-theme="dark"] .komunikat-item {
  background-color: #1f2937;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid #374151;
}

html[data-theme="dark"] .komunikat-item:hover {
  background-color: #2d3748;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .komunikat-title {
  color: #e5e7eb;
}

html[data-theme="dark"] .komunikat-desc {
  color: #9ca3af;
}

html[data-theme="dark"] .komunikat-link {
  color: #60a5fa;
}

html[data-theme="dark"] .komunikat-link:hover {
  color: #93c5fd;
}

/* Dodatkowe style dla innych elementów strony głównej w trybie ciemnym */
html[data-theme="dark"] .section-header {
  color: #e5e7eb;
}

html[data-theme="dark"] .section-subheader {
  color: #9ca3af;
}

html[data-theme="dark"] .card {
  background-color: #1f2937;
  border: 1px solid #374151;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .card:hover {
  background-color: #2d3748;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .card-title {
  color: #e5e7eb;
}

html[data-theme="dark"] .card-text {
  color: #9ca3af;
}

/* Style dla tła głównego kontenera strony w trybie ciemnym */
html[data-theme="dark"] body {
  background-color: #111827;
  color: #e5e7eb;
}

html[data-theme="dark"] main {
  background-color: #111827;
}

/* Style dla nagłówków i elementów sekcji */
html[data-theme="dark"] h1, 
html[data-theme="dark"] h2, 
html[data-theme="dark"] h3, 
html[data-theme="dark"] h4, 
html[data-theme="dark"] h5, 
html[data-theme="dark"] h6 {
  color: #e5e7eb;
}

/* Style dla linków w tekście */
html[data-theme="dark"] a {
  color: #60a5fa;
}

html[data-theme="dark"] a:hover {
  color: #93c5fd;
}

/* Style dla przycisków ogólnych */
html[data-theme="dark"] .btn-primary {
  background-color: #0070BD;
  border-color: #2563eb;
  color: white;
}

html[data-theme="dark"] .btn-primary:hover {
  background-color: #2563eb;
  border-color: #1d4ed8;
}

html[data-theme="dark"] .btn-secondary {
  background-color: #4b5563;
  border-color: #374151;
  color: white;
}

html[data-theme="dark"] .btn-secondary:hover {
  background-color: #374151;
  border-color: #1f2937;
}

/* Dodatkowe style dla elementów strony głównej */
html[data-theme="dark"] .text-zinc-500,
html[data-theme="dark"] .text-zinc-700,
html[data-theme="dark"] .text-zinc-800 {
    color: #9ca3af !important;
}

html[data-theme="dark"] .border {
    border-color: #374151 !important;
}

/* Style dla wizytówek/kart artykułów */
html[data-theme="dark"] .bg-white {
    background-color: #1f2937 !important;
}

/* Style dla hover efektów */
html[data-theme="dark"] .hover\:bg-blue-100:hover {
    background-color: #1e40af !important; /* Ciemniejszy niebieski */
}

/* Style dla nagłówka kalendarza wydarzeń */
html[data-theme="dark"] .calendar-section h2 {
    color: #e5e7eb;
}

html[data-theme="dark"] .calendar-section p {
    color: #9ca3af;
}

/* Style dla komunikatów firm */
html[data-theme="dark"] .company-announcements h2 {
    color: #e5e7eb;
}

html[data-theme="dark"] .company-announcements p {
    color: #9ca3af;
} /* Style dla trybu ciemnego - zoptymalizowane */

/* Podstawowe tło dla głównych elementów */
html[data-theme="dark"] body {
    background-color: #0f172a;
    color: #e5e7eb;
}

html[data-theme="dark"] main {
    background-color: #0f172a;
}

/* Style dla specyficznych kontenerów */
html[data-theme="dark"] .container,
html[data-theme="dark"] .content-container,
html[data-theme="dark"] .grid,
html[data-theme="dark"] .flex-col {
    background-color: #0f172a;
}

/* ===== STYLE DLA TEKSTU ===== */
/* Podstawowe style dla tekstu */
html[data-theme="dark"] p {
    color: #e5e7eb;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f3f4f6;
}

/* Style dla pogrubionego tekstu (strong) */
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: #f3f4f6 !important;
    font-weight: 600;
}

/* Style dla pomocniczych klas pogrubienia */
html[data-theme="dark"] .font-bold,
html[data-theme="dark"] .font-semibold,
html[data-theme="dark"] .font-medium {
    color: #f3f4f6 !important;
}

/* Style dla linków */
html[data-theme="dark"] a:not(.btn-primary):not(.btn-secondary):not(.nav-link) {
    color: #60a5fa;
}

html[data-theme="dark"] a:hover:not(.btn-primary):not(.btn-secondary):not(.nav-link) {
    color: #93c5fd;
}

/* Style dla elementów listy */
html[data-theme="dark"] li,
html[data-theme="dark"] ol,
html[data-theme="dark"] ul {
    color: #e5e7eb !important;
}

/* Style dla tekstów w różnych klasach kolorów */
html[data-theme="dark"] .text-black,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-zinc-900,
html[data-theme="dark"] .text-zinc-800 {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-zinc-700,
html[data-theme="dark"] .text-zinc-600 {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-zinc-500 {
    color: #d1d5db !important;
}

/* ===== STYLE DLA TŁA ===== */
/* Style dla tła elementów */
html[data-theme="dark"] .bg-white {
    background-color: #0f172a !important;
}

html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-zinc-50,
html[data-theme="dark"] .bg-zinc-100,
html[data-theme="dark"] .bg-yellow-100 {
    background-color: #1e293b !important;
}

/* ===== STYLE DLA KART I ARTYKUŁÓW ===== */
/* Połączone style dla kart artykułów - wszystkie selektory razem */
html[data-theme="dark"] div[class*="card"],
html[data-theme="dark"] .card,
html[data-theme="dark"] article,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .news-item > div,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] [id*="ostatnie"] .card,
html[data-theme="dark"] [class*="ostatnie"] .card,
html[data-theme="dark"] [class*="grid"] > div > div,
html[data-theme="dark"] .card-container > div,
html[data-theme="dark"] .grid-cols-1 .card,
html[data-theme="dark"] .md\\:grid-cols-3 .card {
    background-color: #1a2234 !important;
    color: #e5e7eb;
    border: 1px solid #2d3748 !important;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Style dla tekstów w kartach artykułów - wszystkie razem */
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4,
html[data-theme="dark"] article h2,
html[data-theme="dark"] article h3,
html[data-theme="dark"] article h4,
html[data-theme="dark"] .article-card h2,
html[data-theme="dark"] .article-card h3,
html[data-theme="dark"] .article-card h4,
html[data-theme="dark"] .recent-articles h2,
html[data-theme="dark"] .recent-articles h3,
html[data-theme="dark"] .recent-articles h4,
html[data-theme="dark"] .recent-articles a {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] article p,
html[data-theme="dark"] .article-card p,
html[data-theme="dark"] article li {
    color: #e5e7eb !important;
}

/* ===== STYLE DLA PRZYCISKÓW ===== */
/* Style dla przycisków "Czytaj więcej" - wszystkie razem */
html[data-theme="dark"] [class*="czytaj-wiecej"],
html[data-theme="dark"] .read-more,
html[data-theme="dark"] a[class*="czytaj-wiecej"],
html[data-theme="dark"] a[class*="read-more"] {
    background-color: #1e3a8a !important;
    color: #f3f4f6 !important;
    border-color: #2563eb !important;
}

html[data-theme="dark"] [class*="czytaj-wiecej"]:hover,
html[data-theme="dark"] .read-more:hover,
html[data-theme="dark"] a[class*="czytaj-wiecej"]:hover,
html[data-theme="dark"] a[class*="read-more"]:hover {
    background-color: #1d4ed8 !important;
}

/* ===== WYŁĄCZENIA DLA SPECYFICZNYCH KOMPONENTÓW ===== */
/* Wyłączenie dla weather-banner */
html[data-theme="dark"] .weather-banner {
    background: rgb(30 58 138) !important;
}

/* Style dla sekcji newslettera */
html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500,
html[data-theme="dark"] [class*="newsletter"] {
    background-color: #1e40af !important; /* Ciemniejszy niebieski dla newslettera */
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 h3,
html[data-theme="dark"] [class*="newsletter"] h3 {
    color: #ffffff !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 p,
html[data-theme="dark"] [class*="newsletter"] p {
    color: #e5e7eb !important;
}

/* Style dla formularza w newsletterze */
html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 form,
html[data-theme="dark"] [class*="newsletter"] form,
html[data-theme="dark"] .newsletter-container form {
    background-color: transparent !important;
    border: none !important;
}

/* Style dla kontenera formularza */
html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 .self-center,
html[data-theme="dark"] [class*="newsletter"] .self-center,
html[data-theme="dark"] .newsletter-container .self-center {
    background-color: transparent !important;
}

/* Poprawione style dla pola input */
html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 input,
html[data-theme="dark"] [class*="newsletter"] input {
    background-color: rgba(30, 64, 175, 0.6) !important; /* Półprzezroczysty niebieski */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Poprawione style dla przycisku */
html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 button,
html[data-theme="dark"] [class*="newsletter"] button {
    background-color: #60a5fa !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .max-w-7xl.mx-auto.my-16.rounded-3xl.bg-blue-500 button:hover,
html[data-theme="dark"] [class*="newsletter"] button:hover {
    background-color: #93c5fd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

/* ===== INNE ELEMENTY ===== */
/* Style dla dat i metadanych - wszystkie razem */
html[data-theme="dark"] time,
html[data-theme="dark"] .date,
html[data-theme="dark"] [class*="data"],
html[data-theme="dark"] [class*="date"] {
    color: #9ca3af !important;
}

/* Style dla cytatów, bloków kodu itp. */
html[data-theme="dark"] blockquote,
html[data-theme="dark"] pre {
    background-color: #111827 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

/* Style dla formularzy */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

/* Style dla bocznego panelu */
html[data-theme="dark"] aside {
    background-color: #1a2234 !important;
}

html[data-theme="dark"] aside h4,
html[data-theme="dark"] aside p,
html[data-theme="dark"] aside a,
html[data-theme="dark"] aside span {
    color: #e5e7eb !important;
}

/* Style dla obrazków */
html[data-theme="dark"] .card img,
html[data-theme="dark"] article img,
html[data-theme="dark"] .article-card img {
    border: 1px solid #2d3748 !important;
}

/* Style dla ikon i SVG */
html[data-theme="dark"] svg {
    fill: currentColor;
}

/* Style dla tabel */
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: #374151 !important;
}

html[data-theme="dark"] th {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

html[data-theme="dark"] td {
    color: #e5e7eb !important;
}

/* Style dla kontenera tabel w trybie ciemnym */
html[data-theme="dark"] .table-wrapper {
    background-color: transparent;
    border-color: #374151 !important;
}

html[data-theme="dark"] .table-wrapper table {
    border-color: #374151 !important;
}

html[data-theme="dark"] .table-wrapper th {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

html[data-theme="dark"] .table-wrapper td {
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

/* Style dla bloków kodu i tekstu preformatowanego */
html[data-theme="dark"] code,
html[data-theme="dark"] pre,
html[data-theme="dark"] .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

html[data-theme="dark"] code strong,
html[data-theme="dark"] pre strong,
html[data-theme="dark"] .prose :where(code strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: #f9fafb !important;
}

/* Style dla klasy .prose używanej w artykułach */
html[data-theme="dark"] .prose {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .prose h1,
html[data-theme="dark"] .prose h2,
html[data-theme="dark"] .prose h3,
html[data-theme="dark"] .prose h4,
html[data-theme="dark"] .prose h5,
html[data-theme="dark"] .prose h6 {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .prose p {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .prose a {
    color: #60a5fa !important;
}

html[data-theme="dark"] .prose blockquote {
    color: #d1d5db !important;
    border-left-color: #4b5563 !important;
}

html[data-theme="dark"] .prose strong {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .prose ol,
html[data-theme="dark"] .prose ul {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .prose img {
    border: 1px solid #374151 !important;
}

html[data-theme="dark"] .prose figure figcaption {
    color: #9ca3af !important;
}

html[data-theme="dark"] .prose code {
    color: #e5e7eb !important;
    background-color: #1f2937 !important;
}

html[data-theme="dark"] .prose hr {
    border-color: #374151 !important;
}

html[data-theme="dark"] .prose thead th {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .prose tbody td {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .newsletter-container {
    background-color: #1e40af !important;
}

/* Poprawka dla kontenera z linkiem "Zobacz jeszcze więcej interesujących treści" */
html[data-theme="dark"] .flex.items-center.justify-center,
html[data-theme="dark"] [class*="interesujacych"] {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Style dla samego linku "Zobacz jeszcze więcej interesujących treści" */
html[data-theme="dark"] a.flex.items-center.justify-center[href*="wiecej"] {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] a.flex.items-center.justify-center[href*="wiecej"]:hover {
    color: #93c5fd !important;
    text-decoration: underline !important;
}

/* Style dla ikon przełącznika motywu */
.sun-icon {
  stroke: #f59e0b;
  fill: #fef3c7;
}

.moon-icon {
  stroke: #6366f1;
  fill: #e0e7ff;
}

html[data-theme="dark"] .sun-icon,
html[data-theme="dark"] .moon-icon {
  stroke: #ffffff;
  fill: none;
}


html[data-theme="dark"] .banner-text-title,
html[data-theme="dark"] .from-indigo-50.to-rose-50 text[fill="#4B5563"] {
    fill: #ffffff !important;
}

html[data-theme="dark"] .banner-text-url, 
html[data-theme="dark"] .from-indigo-50.to-rose-50 text[fill="#4F46E5"] {
    fill: #93c5fd !important;
}

html[data-theme="dark"] .dark-banner-email,
html[data-theme="dark"] a[href^="mailto:reklama"] {
    color: #ffffff !important;
}

html[data-theme="dark"] a[href^="mailto:reklama"]:hover {
    color: #93c5fd !important;
}


html[data-theme="dark"] .from-indigo-50.to-rose-50 {
    --tw-gradient-from: #1e3a8a !important;
    --tw-gradient-to: #831843 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html[data-theme="dark"] .hover\:from-indigo-100.hover\:to-rose-100:hover {
    --tw-gradient-from: #1e40af !important;
    --tw-gradient-to: #9f1239 !important;
}

/* Style dla strony 404 w trybie ciemnym */
html[data-theme="dark"] .error-number {
    color: #60a5fa !important;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.5) !important;
}

html[data-theme="dark"] .error-icon svg {
    stroke: #60a5fa !important;
}

html[data-theme="dark"] .error-animation .error-icon {
    background-color: rgba(30, 64, 175, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

/* Zmiana kolorów tekstu */
html[data-theme="dark"] h2.text-zinc-800 {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] p.text-zinc-600 {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .page404-link {
    background-color: #1e293b !important;
    color: #e5e7eb !important;
    border: 1px solid #2d3748 !important;
}

html[data-theme="dark"] .page404-link:hover {
    background-color: #2d3748 !important;
    border-color: #4b5563 !important;
}

html[data-theme="dark"] .page404-icon {
    color: #60a5fa !important;
    background-color: rgba(30, 64, 175, 0.2) !important;
}

/* Style dla "Być może zaciekawi Cię..." sekcji */
html[data-theme="dark"] .bg-zinc-50.rounded-2xl {
    background-color: #1a2234 !important;
    border: 1px solid #2d3748 !important;
}

html[data-theme="dark"] .space-y-4.divide-y > div {
    border-color: #2d3748 !important;
}

html[data-theme="dark"] article.flex.flex-row {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] article.flex.flex-row .text-zinc-500 {
    color: #9ca3af !important;
}

html[data-theme="dark"] article.flex.flex-row h3 {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] figure.bg-zinc-100 {
    background-color: #1e293b !important;
    border: 1px solid #2d3748 !important;
}

html[data-theme="dark"] .upcoming-events-sidebar {
    background-color: #1a2234 !important;
    border: 1px solid #2d3748 !important;
    padding: 1rem;
    border-radius: 0.75rem;
}

html[data-theme="dark"] .event-item-sidebar {
    border-color: #2d3748 !important;
}

html[data-theme="dark"] .event-date-badge {
    background-color: #1e40af !important;
    color: #ffffff !important;
    border-color: #0070BD !important;
}

html[data-theme="dark"] .event-day {
    color: #ffffff !important;
}

html[data-theme="dark"] .event-month {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .event-title-sidebar {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .event-title-sidebar a:hover {
    color: #93c5fd !important;
}

html[data-theme="dark"] .event-time {
    color: #9ca3af !important;
}

html[data-theme="dark"] .event-time svg {
    stroke: #60a5fa !important;
}

html[data-theme="dark"] .event-excerpt {
    color: #d1d5db !important;
}

html[data-theme="dark"] .no-events-sidebar {
    color: #9ca3af !important;
    font-style: italic;
} /* LLM: Podstawowe style banneru pogody */
.weather-banner {
    background: #0070BD; /* Solidny kolor jak przycisk kontakt */
    color: white;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.5rem; /* Zmniejszone paddingi left/right z 1rem na 0.5rem */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 100%;
}

/* Ciemny motyw dla weather-banner */
html[data-theme="dark"] .weather-banner {
    background: #2563eb !important; /* Nieco ciemniejszy odcień dla dark mode */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Style dla widgetu pogody */
.weather-widget {
    display: flex;
    align-items: center;
    justify-content: center; /* Wyśrodkowanie */
    gap: 2rem;
    width: 100%;
    padding: 0.25rem 0.25rem; /* Jeszcze bardziej zmniejszone paddingi */
    color: white;
}

.weather-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Wyśrodkowanie */
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    min-height: 50px; /* Zmniejszone z 65px */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0.25rem; /* Zmniejszone z 1rem na 0.25rem */
    display: flex;
    align-items: center;
    justify-content: center; /* Wyśrodkowanie */
}

.banner-content {
    display: flex;
    opacity: 1;
    transition: all 1s ease-in-out;
    width: 100%;
    position: relative;
    justify-content: center; /* Wyśrodkowanie */
}

.banner-content.hidden {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.weather-widget-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Wyśrodkowanie */
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 0.25rem 0;
}

.weather-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Wyśrodkowanie */
    gap: 1.5rem; /* Zmniejszone gap z 2rem na 1.5rem */
}

.weather-detail-item {
    display: flex;
    align-items: center; /* Zmienione z baseline na center dla lepszego wyrównania */
    gap: 0.4rem; /* Zmniejszone z 0.5rem na 0.4rem */
    font-size: 1rem; /* Zmniejszone z 1.125rem na 1rem */
}

.weather-detail-item .weather-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* Style dla ikony pogody - osobna klasa */
.weather-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

html[data-theme="dark"] .weather-detail-item .weather-icon,
html[data-theme="dark"] .weather-icon {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.weather-detail-item .weather-icon svg,
.weather-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    display: block;
}

.weather-detail-item .weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    justify-content: center; /* Wyśrodkowanie pionowe */
}

.weather-detail-item .weather-value,
.weather-detail-value {
    font-weight: 600;
    font-size: 1.1rem; /* Zmniejszone z 1.25rem na 1.1rem */
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    color: #ffffff !important; /* Pełna biel dla lepszego kontrastu */
    display: flex;
    align-items: center; /* Wyrównanie do środka */
}

.weather-detail-item .weather-label,
.weather-detail-label {
    font-size: 0.9rem; /* Zmniejszone z 1rem na 0.9rem */
    line-height: 1.2;
    color: #ffffff !important; /* Pełna biel dla lepszego kontrastu - usunięto opacity */
    display: flex;
    align-items: center; /* Wyrównanie do środka */
    font-weight: 500; /* Dodatkowe wyróżnienie */
}

/* Style dla jednostek - poprawiony kontrast */
.weather-detail-unit {
    font-size: 0.875rem; /* Zwiększone z 0.75rem na 0.875rem */
    color: #ffffff !important; /* Pełna biel dla lepszego kontrastu - usunięto opacity */
    font-weight: 500; /* Dodatkowe wyróżnienie */
}

/* Specjalne style dla imienin */
.namedays-item {
    align-items: center; /* Wyśrodkowanie pionowe */
}

.namedays-item .weather-detail-value {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center; /* Wyrównanie tekstu do środka */
}

/* Style dla news items */
.news-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 0.5rem 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.news-thumbnail {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .news-thumbnail {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-size: 0.875rem;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: white;
}

.news-title a {
    color: white;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

/* Animacje */
@keyframes gentle-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.weather-detail-item .weather-icon {
    animation: gentle-pulse 2s infinite ease-in-out;
}

/* Hover efekty */
.weather-detail-item .weather-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* LLM: Ukrywanie banneru pogody na małych ekranach (≤600px) */
@media (max-width: 600px) {
    .weather-banner {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }
    
    /* LLM: Zmniejszenie paddingu main gdy banner jest ukryty */
    main.container {
        padding-top: 0.2rem !important; /* py-4 zamiast py-8 */
        padding-bottom: 1rem !important;
    }
    
    /* Ukrywanie wszystkich podkomponentów */
    .banner-slider,
    .banner-content,
    .weather-widget-container,
    .weather-details,
    .weather-detail-item,
    .news-container {
        display: none !important;
    }
}

/* LLM: Progresywne skalowanie banneru pogody dla średnich ekranów */
@media (min-width: 601px) and (max-width: 768px) {
    .weather-banner {
        padding: 0.5rem 0.25rem; /* Zmniejszone paddingi */
        margin-bottom: 1rem;
    }
    
    .weather-details {
        gap: 0.75rem; /* Jeszcze mniejszy gap na średnich ekranach */
    }
    
    .weather-detail-item {
        font-size: 0.9rem;
    }
    
    .weather-detail-item .weather-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .weather-detail-item .weather-value {
        font-size: 0.9rem;
    }
    
    .weather-detail-item .weather-label {
        font-size: 0.8rem;
    }
}

/* LLM: Style dla większych ekranów */
@media (min-width: 769px) {
    .weather-banner {
        padding: 0.75rem 0.5rem; /* Zmniejszone z 1rem 2rem */
        margin-bottom: 1.5rem;
    }
    
    .weather-details {
        gap: 1.25rem; /* Zmniejszone z 1.5rem na 1.25rem dla większych ekranów */
    }
    
    .weather-detail-item {
        font-size: 1rem;
    }
    
    .weather-detail-item .weather-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .weather-detail-item .weather-value {
        font-size: 1rem;
    }
    
    .weather-detail-item .weather-label {
        font-size: 0.875rem;
    }
} /* Kalendarz wydarzeń - czyste styles */

/* Nagłówki dni tygodnia */
.calendar-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0 !important;
  width: 100% !important;
}

.calendar-weekday {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  text-align: center !important;
  font-weight: 600 !important;
  color: #374151 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-right: 1px solid #e5e7eb !important;
  background-color: #f9fafb !important;
  min-height: 60px !important;
}

.calendar-weekday:last-child {
  border-right: none !important;
}

/* Dark mode - nagłówki */
html[data-theme="dark"] .calendar-weekday {
  color: #e5e7eb !important;
  background-color: #374151 !important;
  border-right: 1px solid #6b7280 !important;
}

/* Główny kontener kalendarza - dni w siatce 7x7 */
.calendar-grid,
#calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0 !important;
  width: 100% !important;
}

/* Style pojedynczego dnia kalendarza */
.calendar-day {
  min-height: 120px;
  padding: 0.75rem;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dark mode - dni kalendarza */
html[data-theme="dark"] .calendar-day {
  background: #1f2937;
  border-right: 1px solid #6b7280;
  border-bottom: 1px solid #6b7280;
  color: #e5e7eb;
}

/* Usuwamy prawą ramkę z ostatniego dnia w rzędzie */
.calendar-day:nth-child(7n) {
  border-right: none !important;
}

/* Hover efekt */
.calendar-day:hover {
  background-color: #f9fafb !important;
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .calendar-day:hover {
  background-color: #374151 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Puste dni (z innych miesięcy) */
.calendar-day.empty-day {
  background-color: #f9fafb !important;
  cursor: default;
  opacity: 0.5;
}

html[data-theme="dark"] .calendar-day.empty-day {
  background-color: #374151 !important;
}

.calendar-day.empty-day:hover {
  transform: none;
  box-shadow: none;
}

/* Dzisiejszy dzień */
.calendar-day.today {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  border: 2px solid #0070BD !important;
  position: relative;
}

html[data-theme="dark"] .calendar-day.today {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
  border: 2px solid #60a5fa !important;
}

.calendar-day.today::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0070BD, #1d4ed8);
}

html[data-theme="dark"] .calendar-day.today::before {
  background: linear-gradient(90deg, #60a5fa, #0070BD);
}

/* Numer dnia */
.calendar-day .day-number {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #111827;
  line-height: 1;
}

html[data-theme="dark"] .calendar-day .day-number {
  color: #e5e7eb;
}

.calendar-day.today .day-number {
  color: #1d4ed8 !important;
  font-size: 1.25rem;
}

html[data-theme="dark"] .calendar-day.today .day-number {
  color: #93c5fd !important;
}

.calendar-day.empty-day .day-number {
  color: #9ca3af;
}

html[data-theme="dark"] .calendar-day.empty-day .day-number {
  color: #6b7280;
}

/* Wydarzenia dnia */
.calendar-day .event-item {
  display: block;
  padding: 0.375rem 0.5rem;
  margin-bottom: 0.25rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: #0070BD !important;
  color: white !important;
  font-weight: 500;
}

/* Wydarzenia nadchodzące */
.calendar-day .event-item.upcoming {
  background-color: #0070BD !important;
  color: white !important;
  font-weight: 500;
}

html[data-theme="dark"] .calendar-day .event-item.upcoming {
  background-color: #0070BD !important;
  color: white !important;
}

.calendar-day .event-item.upcoming:hover {
  background-color: #2563eb !important;
}

html[data-theme="dark"] .calendar-day .event-item.upcoming:hover {
  background-color: #2563eb !important;
}

/* Wydarzenia przeszłe */
.calendar-day .event-item.past {
  background-color: #9ca3af !important;
  color: white !important;
}

html[data-theme="dark"] .calendar-day .event-item.past {
  background-color: #6b7280 !important;
  color: white !important;
}

.calendar-day .event-item.past:hover {
  background-color: #6b7280 !important;
}

html[data-theme="dark"] .calendar-day .event-item.past:hover {
  background-color: #4b5563 !important;
}

/* Wydarzenia dzisiejsze */
.calendar-day .event-item.today-event {
  background-color: #1d4ed8 !important;
  color: white !important;
  font-weight: 600;
}

html[data-theme="dark"] .calendar-day .event-item.today-event {
  background-color: #1d4ed8 !important;
  color: white !important;
}

.calendar-day .event-item.today-event:hover {
  background-color: #1e40af !important;
}

html[data-theme="dark"] .calendar-day .event-item.today-event:hover {
  background-color: #1e40af !important;
}

/* Informacja o dodatkowych wydarzeniach */
.calendar-day .more-events {
  font-weight: 600;
  color: white !important;
  background-color: #6b7280 !important;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-align: center;
  cursor: pointer;
}

html[data-theme="dark"] .calendar-day .more-events {
  color: white !important;
  background-color: #6b7280 !important;
}

.calendar-day .more-events:hover {
  background-color: #4b5563 !important;
}

html[data-theme="dark"] .calendar-day .more-events:hover {
  background-color: #4b5563 !important;
}

/* Loading indicator */
.calendar-day.loading {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%) !important;
  background-size: 200% 100% !important;
  animation: loading-shimmer 1.5s ease-in-out infinite !important;
}

html[data-theme="dark"] .calendar-day.loading {
  background: linear-gradient(90deg, #374151 0%, #4b5563 50%, #374151 100%) !important;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Nawigacja kalendarza */
.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

/* Okrągłe przyciski nawigacji */
.calendar-nav-round,
#prevMonth,
#nextMonth {
  width: 56px !important;
  height: 56px !important;
  background-color: #0070BD !important;
  border: none !important;
  border-radius: 50% !important;
  color: white !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
}

html[data-theme="dark"] .calendar-nav-round,
html[data-theme="dark"] #prevMonth,
html[data-theme="dark"] #nextMonth {
  background-color: #0070BD !important;
  color: white !important;
}

.calendar-nav-round:hover,
#prevMonth:hover,
#nextMonth:hover {
  background-color: #2563eb !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="dark"] .calendar-nav-round:hover,
html[data-theme="dark"] #prevMonth:hover,
html[data-theme="dark"] #nextMonth:hover {
  background-color: #2563eb !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
}

.calendar-nav-round:disabled,
#prevMonth:disabled,
#nextMonth:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background-color: #9ca3af !important;
}

.calendar-nav-round:active,
#prevMonth:active,
#nextMonth:active {
  transform: scale(0.95) !important;
}

/* SVG wewnątrz przycisków */
.calendar-nav-round svg,
#prevMonth svg,
#nextMonth svg {
  width: 22px !important;
  height: 22px !important;
  color: white !important;
}

/* Flex utilities dla lepszego layoutu */
.flex-2 {
  flex: 2 !important;
}

.calendar-month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  flex: 1;
}

html[data-theme="dark"] .calendar-month-title {
  color: #e5e7eb;
}

/* Loading spinner */
#loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#loading.show {
  display: block;
}

#loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fade in animation */
.calendar-day.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsywne styles */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 100px;
    padding: 0.5rem;
  }
  
  .calendar-weekday {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    min-height: 50px;
  }
  
  .calendar-day .day-number {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .calendar-day .event-item {
    font-size: 0.6875rem;
    padding: 0.25rem 0.375rem;
}

  .calendar-month-title {
    font-size: 1.25rem;
}

  .calendar-nav-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
}

@media (max-width: 640px) {
.calendar-day {
    min-height: 80px;
    padding: 0.375rem;
}

  .calendar-weekday {
    padding: 0.5rem 0.25rem;
    font-size: 0.6875rem;
    min-height: 40px;
}

  .calendar-day .day-number {
    font-size: 0.875rem;
  }
  
  .calendar-day .event-item {
  font-size: 0.625rem;
    padding: 0.1875rem 0.25rem;
    margin-bottom: 0.125rem;
}
}

/* Sidebar z wydarzeniami */
.upcoming-events-sidebar {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  max-height: 600px;
  overflow-y: auto;
}

html[data-theme="dark"] .upcoming-events-sidebar {
  background: #1f2937;
  border: 1px solid #6b7280;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.event-item-sidebar {
  display: block;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .event-item-sidebar {
  background: #374151;
  border: 1px solid #6b7280;
}

.event-item-sidebar:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .event-item-sidebar:hover {
  background: #4b5563;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0070BD 0%, #1d4ed8 100%);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

html[data-theme="dark"] .event-date-badge {
  background: linear-gradient(135deg, #60a5fa 0%, #0070BD 100%);
  color: #111827;
}

.event-title-sidebar {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

html[data-theme="dark"] .event-title-sidebar {
  color: #e5e7eb;
}

.event-excerpt {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
}

html[data-theme="dark"] .event-excerpt {
  color: #9ca3af;
}

.view-all-events {
  text-align: center;
  margin-top: 1rem;
}

.view-all-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0070BD 0%, #1d4ed8 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .view-all-link {
  background: linear-gradient(135deg, #60a5fa 0%, #0070BD 100%);
  color: #111827;
}

.view-all-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .view-all-link:hover {
  background: linear-gradient(135deg, #0070BD 0%, #1d4ed8 100%);
}

.no-events-sidebar {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 2rem;
}

html[data-theme="dark"] .no-events-sidebar {
  color: #9ca3af;
} /* Statyczny kalendarz wydarzeń - styles CSS */
.static-events-calendar-container {
  width: 100%;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

html[data-theme="dark"] .static-events-calendar-container {
  background-color: #1a2234;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  color: #e5e7eb;
}

.calendar-header-static {
  text-align: center;
  margin-bottom: 2rem;
}

.calendar-header-static h2 {
  margin-bottom: 0.5rem;
}

.calendar-header-static p {
  margin-bottom: 1rem;
}

/* Lista miesięcy */
.months-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* Sekcja miesiąca */
.month-section {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .month-section {
  background-color: #111827;
  border-color: #374151;
}

.month-section.current-month {
  border-color: #0070BD;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  background-color: #eff6ff;
}

html[data-theme="dark"] .month-section.current-month {
  background-color: #1e3a8a;
  border-color: #60a5fa;
}

.month-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

html[data-theme="dark"] .month-header {
  color: #e5e7eb;
  border-color: #374151;
}

.month-section.current-month .month-header {
  color: #0070BD;
  border-color: #0070BD;
}

/* Lista wydarzeń - grid kompaktowy */
.events-compact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .events-compact-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* LLM: Breakpoint dla tabletów - usunięty, bo lokalizacja jest ukryta w widoku kompaktowym */

.event-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .event-compact {
  background-color: #1f2937;
  border-color: #374151;
}

.event-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #0070BD;
}

.event-date-compact {
  flex-shrink: 0;
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #0070BD;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.event-date-badge .day {
  font-size: 1rem;
  line-height: 1;
}

.event-date-badge .time {
  font-size: 0.625rem;
  opacity: 0.9;
}

.event-details-compact {
  flex: 1;
  min-width: 0;
}

.event-title-compact {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-link-compact {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

html[data-theme="dark"] .event-link-compact {
  color: #e5e7eb;
}

.event-link-compact:hover {
  color: #0070BD;
}

.event-location-compact {
  display: none !important; /* LLM: Ukrycie lokalizacji w widoku kompaktowym - pokazuje się tylko na stronie wydarzenia */
}

html[data-theme="dark"] .event-location-compact {
  display: none !important; /* LLM: Ukrycie również w dark mode */
}

.event-description-compact {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

html[data-theme="dark"] .event-description-compact {
  color: #9ca3af;
}

.no-events-compact {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
  grid-column: 1 / -1;
}

html[data-theme="dark"] .no-events-compact {
  color: #9ca3af;
}

/* Responsywność */
@media (max-width: 640px) {
  .static-events-calendar-container {
    padding: 1rem;
  }
  
  .month-section {
    padding: 1rem;
  }
  
  .events-compact-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .event-compact {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .event-date-badge {
    width: 3rem;
    height: 2.5rem;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
  }
  
  .event-date-badge .day {
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 700;
  }
  
  .event-date-badge .time {
    font-size: 0.5rem;
    line-height: 1;
    margin-top: 1px;
  }
  
  .event-title-compact {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }
  
  /* LLM: .event-location-compact - usunięty, bo lokalizacja jest ukryta w widoku kompaktowym */
  
  .event-description-compact {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
    line-height: 1.2;
  }
} /* Events Archive Styles */
.events-archive {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* Month separators for upcoming events */
.month-separator {
  margin: 2rem 0 1rem 0 !important;
  padding: 0.5rem 0 !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.month-title {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Grid layout for upcoming events */
.events-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.event-card {
  background: white !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

.event-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  border-color: #93c5fd !important;
}

/* Event card header with optional thumbnail background */
.event-card-header {
  padding: 1.5rem !important;
  background: linear-gradient(to right, #eff6ff, #f3e8ff) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* If thumbnail exists, overlay it with very low opacity and make it grayscale */
.event-card-header[style*="--event-thumbnail"] {
  background: linear-gradient(to right, rgba(239, 246, 255, 0.85), rgba(243, 232, 255, 0.85)), var(--event-thumbnail) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Apply grayscale only to the background image, not to the content */
.event-card-header[style*="--event-thumbnail"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: var(--event-thumbnail) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: grayscale(100%) contrast(1.1) !important;
  opacity: 0.15 !important;
  z-index: 1 !important;
}

/* Text content above thumbnail */
.event-card-header .event-date-badge,
.event-card-header .event-location-badge {
  position: relative !important;
  z-index: 2 !important;
}

.event-card-content {
  padding: 1.5rem !important;
}

.event-location-badge {
  font-size: 0.75rem !important;
  color: #52525b !important;
  margin-top: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

/* Enlarged date badge with strong gradient - NO thumbnails here */
.event-card .event-date-badge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 4.5rem !important;
  height: 4.5rem !important;
  background: linear-gradient(to bottom right, #0070BD, #7c3aed) !important;
  color: white !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 0.5rem !important;
}

.event-card .event-date-badge .day {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.event-card .event-date-badge .month {
  font-size: 0.875rem !important;
  opacity: 0.9 !important;
  line-height: 1 !important;
  margin-top: 0.125rem !important;
}

.event-card .event-date-badge .time {
  font-size: 0.875rem !important;
  opacity: 0.9 !important;
  line-height: 1 !important;
  margin-top: 0.25rem !important;
}

/* Compact archive layout - NO thumbnails here */
.month-section {
  background: white !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden !important;
  margin-bottom: 1rem !important;
}

.month-header {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  background: linear-gradient(to right, #2563eb, #7c3aed) !important;
  color: white !important;
  padding: 0.75rem 1rem !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.events-list {
  border-top: 1px solid #f1f5f9 !important;
}

.event-item {
  display: flex !important;
  gap: 0.75rem !important;
  padding: 0.75rem !important;
  transition: background-color 0.2s ease !important;
}

.event-item:hover {
  background-color: #fafafa !important;
}

.event-date {
  flex-shrink: 0 !important;
}

/* Archive date badges - simple gradient, no thumbnails */
.event-item .event-date-badge {
  width: 3rem !important;
  height: 3rem !important;
  margin-bottom: 0 !important;
  background: linear-gradient(to bottom right, #0070BD, #7c3aed) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.event-item .event-date-badge .day {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.event-item .event-date-badge .month,
.event-item .event-date-badge .time {
  font-size: 0.75rem !important;
  opacity: 0.9 !important;
  line-height: 1 !important;
}

.event-details {
  flex: 1 !important;
  min-width: 0 !important;
}

.event-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
}

.event-link {
  color: #2563eb !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.event-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.event-location {
  color: #52525b !important;
  font-size: 0.75rem !important;
  margin-bottom: 0.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

.event-description {
  color: #374151 !important;
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .month-separator {
    margin: 1.5rem 0 0.75rem 0 !important;
  }
  
  .month-title {
    font-size: 1.25rem !important;
  }
  
  .events-grid {
    grid-template-columns: 1fr !important;
  }
  
  .event-card-header {
    padding: 1rem !important;
  }
  
  .event-card-content {
    padding: 1rem !important;
  }
  
  .event-card .event-date-badge {
    width: 4rem !important;
    height: 4rem !important;
  }
  
  .event-card .event-date-badge .day {
    font-size: 1.25rem !important;
  }
  
  .event-card .event-date-badge .month,
  .event-card .event-date-badge .time {
    font-size: 0.75rem !important;
  }
  
  .event-item {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }
  
  .event-item .event-date-badge {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  
  .event-item .event-date-badge .day {
    font-size: 1rem !important;
  }
  
  .month-header {
    font-size: 1.125rem !important;
    padding: 0.75rem !important;
  }
}

/* Legacy table styles - keeping for backward compatibility */
.ev-table { display: block; width: 100%; border: 1px solid #e5e7eb; border-radius: 0.75rem; overflow: hidden; background: #fff; }
.ev-row { display: grid; grid-template-columns: 180px 1fr 220px; }
.ev-row + .ev-row { border-top: 1px solid #f1f5f9; }
.ev-row.ev-header { background: #f8fafc; font-weight: 600; color: #1f2937; }
.ev-cell { padding: 0.75rem 1rem; }
.ev-link { color: #2563eb; text-decoration: none; }
.ev-link:hover { text-decoration: underline; color: #1d4ed8; }

@media (max-width: 1024px) {
  .ev-row { grid-template-columns: 160px 1fr 180px; }
}

@media (max-width: 768px) {
  .ev-row { grid-template-columns: 1fr; }
  .ev-cell { padding: 0.75rem 0.875rem; }
  .ev-row.ev-header { display: none; }
  .ev-cell[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: #64748b; display: inline-block; margin-right: 0.25rem; }
}

/* ===== DARK MODE STYLES ===== */
html[data-theme="dark"] .month-separator {
  border-bottom-color: #374151 !important;
}

html[data-theme="dark"] .month-title {
  color: #e5e7eb !important;
}

/* Event cards - dark theme */
html[data-theme="dark"] .event-card {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .event-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
  border-color: #60a5fa !important;
}

/* Event card header - dark theme */
html[data-theme="dark"] .event-card-header {
  background: linear-gradient(to right, #1e3a8a, #581c87) !important;
  border-bottom-color: #374151 !important;
}

/* If thumbnail exists in dark mode */
html[data-theme="dark"] .event-card-header[style*="--event-thumbnail"] {
  background: linear-gradient(to right, rgba(30, 58, 138, 0.85), rgba(88, 28, 135, 0.85)), var(--event-thumbnail) !important;
}

/* Event card content - dark theme */
html[data-theme="dark"] .event-card-content {
  background: #1f2937 !important;
}

/* Event title and description - dark theme */
html[data-theme="dark"] .event-title .event-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .event-title .event-link:hover {
  color: #93c5fd !important;
}

/* LLM: Style dla lokalizacji na stronie pojedynczego wydarzenia */
.event-location-display {
  color: #059669 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.event-location-display span[itemprop="name"] {
  color: #059669 !important;
}

.event-location-display svg {
  color: #059669 !important;
  flex-shrink: 0 !important;
}

html[data-theme="dark"] .event-location-display {
  color: #34d399 !important;
}

html[data-theme="dark"] .event-location-display span[itemprop="name"] {
  color: #34d399 !important;
}

html[data-theme="dark"] .event-location-display svg {
  color: #34d399 !important;
}

html[data-theme="dark"] .event-description {
  color: #d1d5db !important;
}

/* Location badge - dark theme */
html[data-theme="dark"] .event-location-badge {
  color: #9ca3af !important;
}

/* Month sections - dark theme */
html[data-theme="dark"] .month-section {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .month-header {
  background: linear-gradient(to right, #1e3a8a, #581c87) !important;
}

html[data-theme="dark"] .events-list {
  border-top-color: #374151 !important;
}

html[data-theme="dark"] .event-item {
  background: #1f2937 !important;
}

html[data-theme="dark"] .event-item:hover {
  background-color: #374151 !important;
}

/* Event details in archive - dark theme */
html[data-theme="dark"] .event-details .event-title .event-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .event-details .event-title .event-link:hover {
  color: #93c5fd !important;
}

html[data-theme="dark"] .event-details .event-location {
  color: #9ca3af !important;
}

html[data-theme="dark"] .event-details .event-description {
  color: #d1d5db !important;
}

/* Legacy table styles - dark theme */
html[data-theme="dark"] .ev-table {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .ev-row + .ev-row {
  border-top-color: #374151 !important;
}

html[data-theme="dark"] .ev-row.ev-header {
  background: #374151 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .ev-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .ev-link:hover {
  color: #93c5fd !important;
}

@media (max-width: 768px) {
  html[data-theme="dark"] .ev-cell[data-label]::before {
    color: #9ca3af !important;
  }
}
.share-buttons {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 0.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
  }
  
  .share-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-right: 0.75rem;
  }
  
  .share-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .facebook {
    background-color: #1877f2;
  }
  
  .twitter {
    background-color: #000000;
  }
  
  .linkedin {
    background-color: #0077b5;
  }
  
  .whatsapp {
    background-color: #25d366;
  }
  
  .copy-link {
    background-color: rgb(0 ,112, 189);
    border: none;
  }
  
  .email {
    background-color: #ea4335;
  }
  
  /* Style dla powiadomienia o skopiowaniu */
  .copy-notification {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgb(0 ,112, 189);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  
  .copy-notification::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgb(0 ,112, 189);
  }
  
  .copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  @media (max-width: 640px) {
    .share-buttons {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .share-label {
      margin-bottom: 0.5rem;
      margin-right: 0;
    }
    
    .share-icons {
      width: 100%;
      justify-content: space-between;
    }
    
    .copy-notification {
      width: 90%;
      text-align: center;
    }
  }/* Automatyczne linki TOC - style dla kotwic utworzonych z elementów listy */

.toc-link {
    color: #0070BD; /* niebieski */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline !important;
    position: relative;
}

.toc-link:hover {
    color: #1d4ed8; /* ciemniejszy niebieski */
    text-decoration: underline;
}

.toc-link:before {
    content: "";
    margin-right: 0.5rem;
    color: #6b7280; /* szary */
    transition: all 0.2s ease;
}

.toc-link:hover:before {
    color: #0070BD; /* niebieski przy hover */
    transform: translateX(2px);
}

/* Style dla listy zawierającej linki TOC */
article ul li:has(.toc-link) {
    padding: 0.25rem 0;
}

/* Smooth scroll dla całej strony */
html {
    scroll-behavior: smooth;
}

/* Offset dla nagłówków - zapewnia widoczność nagłówka po kliknięciu w kotwicę */
h2, h3 {
    scroll-margin-top: 80px;
}

/* Efekt podświetlenia nagłówka po kliknięciu w TOC */
h2:target,
h3:target {
    background-color: #fef3c7; /* żółte podświetlenie */
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% {
        background-color: #fbbf24; /* jaśniejszy żółty */
    }
    100% {
        background-color: #fef3c7; /* docelowy żółty */
    }
}

/* Tryb ciemny */
@media (prefers-color-scheme: dark) {
    .toc-link {
        color: #60a5fa; /* jaśniejszy niebieski dla dark mode */
    }
    
    .toc-link:hover {
        color: #93c5fd; /* jeszcze jaśniejszy przy hover */
    }
    
    h2:target,
    h3:target {
        background-color: #451a03; /* ciemne podświetlenie */
    }
    
    @keyframes highlight {
        0% {
            background-color: #92400e;
        }
        100% {
            background-color: #451a03;
        }
    }
} /* SEO Breadcrumb Styles */
.seo-breadcrumb {
    margin-bottom: 1rem;
}

.seo-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.70rem;
    line-height: 1rem;
    color: #71717a; /* zinc-500 */
}

.seo-breadcrumb li {
    display: flex;
    align-items: center;
}

.seo-breadcrumb-item::before {
    content: "›";
    margin: 0 0.20rem;
    color: #d4d4d8; /* zinc-300 */
    font-size: 0.875rem;
    font-weight: 300;
}

.seo-breadcrumb a {
    color: #71717a; /* zinc-500 */
    text-decoration: none;
    transition: color 0.2s ease;
}

.seo-breadcrumb a:hover {
    color: #0070BD; /* blue-500 */
}

.seo-breadcrumb-current {
    color: #3f3f46; /* zinc-700 */
    font-weight: 500;
}

/* Responsywność - na małych ekranach jeszcze mniejsze */
@media (max-width: 640px) {
    .seo-breadcrumb ol {
        font-size: 0.60rem; /* 11px */
        gap: 0;
    }
    
    .seo-breadcrumb-item::before {
        margin: 0 0.1rem;
        font-size: 0.75rem;
    }
}

/* Tryb ciemny */
@media (prefers-color-scheme: dark) {
    .seo-breadcrumb ol {
        color: #a1a1aa; /* zinc-400 */
    }
    
    .seo-breadcrumb-item::before {
        color: #52525b; /* zinc-600 */
    }
    
    .seo-breadcrumb a {
        color: #a1a1aa; /* zinc-400 */
    }
    
    .seo-breadcrumb a:hover {
        color: #60a5fa; /* blue-400 */
    }
    
    .seo-breadcrumb-current {
        color: #e4e4e7; /* zinc-200 */
    }
} /* Styl dla banerka reklamowego w sidebarze */
.aside-banner {
    margin-bottom: 1.5rem;
}

.aside-banner-container {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
    transition: all 0.5s ease;
    overflow: hidden;
}

.aside-banner-svg {
    width: 100%;
    height: 100%;
}

.aside-banner-button {
    display: inline-block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #7c3aed;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #a855f7;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.aside-banner-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #6b21a8;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
}

.aside-banner-promo-text {
    text-align: right;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    line-height: 1;
    color: #6b7280;
}

/* Tryb ciemny */
html[data-theme="dark"] .aside-banner-container {
    background: linear-gradient(135deg, #1e1b4b 0%, #581c87 100%);
}

html[data-theme="dark"] .aside-banner-button {
    background: rgba(255, 255, 255, 0.05);
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.5);
}

html[data-theme="dark"] .aside-banner-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.7);
}

html[data-theme="dark"] .aside-banner-promo-text {
    color: #9ca3af;
} .fb-side-tab{position:fixed;top:50%;right:-250px;left:auto;transform:translateY(-50%);width:260px;background:#1877F2;color:#ffffff !important;border-radius:12px 0 0 12px;box-shadow:0 10px 20px rgba(0,0,0,.15);transition:right .3s ease;z-index:60}
.fb-side-tab.open{right:0}
.fb-side-tab .fb-tab-handle{position:absolute;left:-64px;right:auto;top:50%;transform:translateY(-50%);width:64px;height:64px;background:#1877F2;color:#ffffff !important;border:0;border-radius:12px 0 0 12px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(0,0,0,.18)}
.fb-side-tab .fb-tab-handle:focus{outline:2px solid #ffffff;outline-offset:2px}
.fb-side-tab .fb-tab-inner{display:block;padding:12px 14px 12px 14px;text-decoration:none;color:#ffffff !important}
.fb-side-tab .fb-title{font-weight:700;margin-bottom:4px;font-size:.9rem;color:#ffffff !important}
.fb-side-tab .fb-cta{display:inline-flex;align-items:center;gap:6px;background:#ffffff !important;color:#1e40af !important;border-radius:9999px;padding:5px 10px;font-weight:600;font-size:.85rem}
.fb-side-tab .fb-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px}
.fb-side-tab .fb-icon svg{display:block;width:32px;height:32px;fill:#fff}

@media (max-width: 1024px){
  .fb-side-tab{display:none}
}

@media (prefers-reduced-motion: reduce){
  .fb-side-tab{transition:none}
}

/* Ikona Facebooka obok logo na mobile */
.fb-mobile-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px;aspect-ratio:1/1;padding:0;background:#0070BD;color:#fff;border-radius:8px;margin-left:4px;margin-right:2px;box-shadow:0 6px 14px rgba(0,0,0,.15)}
.fb-mobile-icon svg{display:block;width:20px;height:20px;fill:#fff}
@media (min-width:1025px){
  .fb-mobile-icon{display:none}
}


/* Follow banner used on subpages above prev/next navigation */
.social-follow-banner{display:flex;align-items:center;gap:14px}
.social-follow-banner .social-follow-link{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit}
.social-follow-banner img{width:48px;height:auto;border-radius:12px;box-shadow:0 6px 14px rgba(0,0,0,.08)}
.social-follow-banner .social-follow-title{font-weight:700;line-height:1.3;font-size:1.125rem;margin-left: 1.5rem}
/* Zastosowanie standardowego fontu systemowego dla tytułu bannera */
.social-follow-banner .social-follow-title{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}

/* Responsywny rozmiar fontu dla tytułu bannera */
@media (max-width: 768px){
  .social-follow-banner .social-follow-title{font-size:1rem}
}

/* ===== Zakładka WYDARZENIA (pomarańczowa) – pod Facebookiem ===== */
.events-side-tab{position:fixed;top:calc(50% + 85px);right:-250px;left:auto;transform:translateY(-50%);width:260px;background:#f97316;color:#ffffff !important;border-radius:12px 0 0 12px;box-shadow:0 10px 20px rgba(0,0,0,.15);transition:right .3s ease;z-index:59}
.events-side-tab.open{right:0}
.events-side-tab .events-tab-handle{position:absolute;left:-64px;right:auto;top:50%;transform:translateY(-50%);width:64px;height:64px;background:#f97316;color:#ffffff !important;border:0;border-radius:12px 0 0 12px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(0,0,0,.18)}
.events-side-tab .events-tab-handle:focus{outline:2px solid #ffffff;outline-offset:2px}
.events-side-tab .events-tab-inner{display:block;padding:12px 14px 12px 14px;text-decoration:none;color:#ffffff !important}
.events-side-tab .events-title{font-weight:700;margin-bottom:4px;font-size:.9rem;color:#ffffff !important}
.events-side-tab .events-cta{display:inline-flex;align-items:center;gap:6px;background:#ffffff !important;color:#c2410c !important;border-radius:9999px;padding:5px 10px;font-weight:600;font-size:.85rem}
.events-side-tab .events-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;color:#fff}
.events-side-tab .events-icon svg{display:block;width:32px;height:32px;fill:#fff}

@media (max-width: 1024px){
  .events-side-tab{display:none}
}

/* Ikona WYDARZEŃ obok ikony Facebooka na mobile */
.events-mobile-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px;aspect-ratio:1/1;padding:0;background:#f97316;color:#fff;border-radius:8px;margin-left:8px;box-shadow:0 6px 14px rgba(0,0,0,.15)}
.events-mobile-icon svg{display:block;width:20px;height:20px;fill:#fff}
@media (min-width:1025px){
  .events-mobile-icon{display:none}
}

/* Mniejsze logo na mobile */
@media (max-width: 1024px){
  .header-logo{max-height:40px;width:auto}
}

/* Stylizacja hamburger menu na mobile */
@media (max-width: 1024px){
  .toggle-button{transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0,0,0,0.1)}
  .toggle-button:hover{transform:translateY(-1px);box-shadow:0 4px 8px rgba(0,0,0,0.15)}
  .toggle-button:active{transform:translateY(0);box-shadow:0 1px 2px rgba(0,0,0,0.1)}
}

/* Style dla shortcode'a related - karta powiązanego artykułu na całą szerokość */
.related-shortcode {
  display: block;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin: 1.5rem 0;
  transition: box-shadow 0.2s ease;
}

.related-shortcode:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .related-shortcode:hover {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.related-shortcode a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.related-shortcode-thumbnail {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-primary);
}

.related-shortcode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-shortcode:hover .related-shortcode-thumbnail img {
  transform: scale(1.05);
}

.related-shortcode-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-shortcode-placeholder svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.related-shortcode-content {
  margin-left: 16px;
  flex: 1;
  min-width: 0;
}

.related-shortcode-title {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.2s ease;
}

.related-shortcode:hover .related-shortcode-title {
  color: var(--accent-color);
}

/* Responsywność */
@media (max-width: 768px) {
  .related-shortcode-thumbnail {
    width: 80px;
    height: 80px;
  }
  
  .related-shortcode-content {
    margin-left: 12px;
  }
  
  .related-shortcode-title {
    font-size: 0.9rem;
  }
}
