/* DOJO Studio · podstrony (polityka prywatności i podobne). Ta sama paleta i kroje co strona główna. */
.dojo-podstrona {
  --paper: #F2EEEA; --stone: #CCC3BA; --ink: #1F1F1C; --night: #2A2824; --grey: #787979;
  --hair: rgba(242, 238, 234, 0.16); --hair-strong: rgba(242, 238, 234, 0.28);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--paper);
  font: 400 1.0625rem/1.7 var(--text); letter-spacing: 0.005em; -webkit-font-smoothing: antialiased;
}
body:has(.dojo-podstrona) { margin: 0; background: #1F1F1C; }
body *:has(> .dojo-podstrona) { display: block; width: 100%; max-width: none; padding: 0; margin: 0; }
.dojo-podstrona *, .dojo-podstrona *::before, .dojo-podstrona *::after { box-sizing: border-box; }
.dojo-podstrona ::selection { background: var(--paper); color: var(--ink); }
.dojo-podstrona :focus-visible { outline: 1px solid var(--stone); outline-offset: 5px; }

.dp-skip { position: absolute; left: 1rem; top: 1rem; z-index: 10; padding: 0.5rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-200%); transition: transform 160ms var(--ease); }
.dp-skip:focus-visible { transform: none; }

/* pasek górny */
.dp-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--hair); }
.dp-mark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 1.375rem; letter-spacing: 0.12em; }
.dp-mark span { font-family: var(--text); font-size: 0.5rem; letter-spacing: 0.7em; margin-right: -0.7em; margin-top: 0.55em; text-transform: uppercase; }
.dp-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* linki */
.dojo-podstrona a.dp-link, .dp-content a {
  color: inherit; text-decoration: none; padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 240ms var(--ease), opacity 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .dojo-podstrona a.dp-link:hover, .dp-content a:hover { background-size: 0% 1px; background-position: 100% 100%; }
}

/* treść */
.dp-main { flex: 1; width: 100%; max-width: calc(46rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.dp-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); padding-bottom: 2rem; border-bottom: 1px solid var(--hair-strong); }
.dp-kicker { margin: 0 0 1rem; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }
.dp-title { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; color: var(--paper); }

.dp-content { color: var(--stone); }
.dp-content > *:first-child { margin-top: 0; }
.dp-content p { margin: 0 0 1.1rem; text-wrap: pretty; }
.dp-content strong { color: var(--paper); font-weight: 600; }
.dp-content h2 { margin: 3.25rem 0 1rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--paper); text-wrap: balance; }
.dp-content h3 { margin: 2rem 0 0.75rem; font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--paper); }
.dp-content ul, .dp-content ol { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.dp-content li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; }
.dp-content ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.75rem; height: 1px; background: var(--stone); }
.dp-content ol { counter-reset: dp; }
.dp-content ol li { counter-increment: dp; }
.dp-content ol li::before { content: counter(dp) "."; position: absolute; left: 0; color: var(--paper); }

.dp-content figure { margin: 1.5rem 0 2rem; overflow-x: auto; }
.dp-content table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.dp-content th { text-align: left; vertical-align: bottom; padding: 0 1rem 0.75rem 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid var(--hair-strong); }
.dp-content td { vertical-align: top; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--hair); }
.dp-content td:first-child { color: var(--paper); }

/* stopka */
.dp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding: 2rem var(--gutter); border-top: 1px solid var(--hair); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--stone); }
.dp-foot p { margin: 0; }

@media (max-width: 640px) {
  .dp-bar { flex-direction: column; align-items: flex-start; }
  .dp-content table { min-width: 34rem; }
}
@media (prefers-reduced-motion: reduce) { .dojo-podstrona * { transition: none !important; } }
/* pasek administratora */
.admin-bar .dojo-podstrona { min-height: calc(100vh - 32px); }
