:root {
  color-scheme: light dark;

  /* --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b667a;
  --brand: #1a73e8;
  --brand-ink: #0b3b91;
  --border: #e1e6f0;
  --card: #ffffff;
  --h1: #d66b5a;
  --h2: #b28b7d; */

  --brand-scopus: #E9711C;
  --brand-gscholar: #4285F4;
  --brand-orcid: #A6CE39;
  --brand-rgate: #00CCBB;
  --brand-wos: #4F2C1D;
  --brand-linkedin: #0A66C2;
  --brand-academia: #111111;
  --brand-omega: #0056A6;
  --brand-facebook: #1877F2;
}

@media (prefers-color-scheme: dark) {
  :root {
  --bg: #26251f;
  --text: #eef2f8;
  --muted: #a8b2c1;
  --brand: #7bb0ff;
  --brand-ink: #cfe0ff;
  --border: #4a4038;
  --card: #32312b;
  --h1: #da7767;
  --h2: #b28b7d;
  }
}
@media (prefers-color-scheme: light) {
  :root {
  --bg: #f4f2df;       
--text: #3a404b;     
--muted: #7a808d;    
--brand: #1a5bbf;    
--brand-ink: #e5efff;
--border: #d0d4d6;   
--card: #faf9f5;     
--h1: #c96254;       
--h2: #b28b7d;       
  }
  /* .icon-badge{
    background-color: var(--iconbg);
  } */
}


@font-face {
  font-family: DejaVuJW;
  src: url(DejaVuSansCondensedJW.ttf);
}

/* Manual theme override */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2df;        /* Ciepłe, kremowe tło - zostawiamy */
  --text: #3a404b;      /* Ciemny grafit - neutralny, czytelny */
  --muted: #7a808d;     /* Średni szary - spokojny */
  --brand: #1a5bbf;     /* Głęboki niebieski - pasuje do dark mode */
  --brand-ink: #e5efff; /* Jasny niebieski - tekst na przyciskach */
  --border: #d0d4d6;    /* Miękki szary - neutralny */
  --card: #faf9f5;      /* Czysta biel - kontrast z tłem */
  --h1: #c96254;        /* Ciepła, ceglasta czerwień - Twój charakter */
  --h2: #b28b7d;        /* Zgaszony róż/beż - ten sam co w dark mode */
  --iconbg: var(--card);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #26251f;
  --text: #eef2f8;
  --muted: #a8b2c1;
  --brand: #7bb0ff;
  --brand-ink: #cfe0ff;
  --border: #4a4038;
  --card: #32312b;
  --h1: #da7767;
  --h2: #b28b7d;
  --iconbg: var(--text);

  .icon-badge{
    
  }
}


* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: DejaVuJW, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline
}

em {
  font-family: sans-serif;
  font-style: normal;
}

h1 {
  color: var(--h1);
}

h2 {
  color: var(--h2);
}

.h2_title {
  margin: 0;
}

.container {
  width: 95%;
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 21;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 20px;
}

.brand__link {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-weight: 700;
  letter-spacing: .2px;
}

.brand__title {
  font-size: .9rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  margin-right: 1rem;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .2s;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: .25rem;
}

.menu__link {
  display: block;
  padding: .5rem .75rem;
  border-radius: 5px;
  color: var(--text);
}

.menu__link:hover {
  background: var(--card);
}

.menu__link.is-active {
  background: var(--brand);
  color: white;
}

.lang-switcher {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.lang-switcher__btn {
  font-size: .85rem;
  padding: .35rem .55rem;
  border-radius: 5px;
  color: var(--muted);
}

.lang-switcher__btn.is-active {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Main */

#main{
    padding-top: 150px;
}
main.container {
  padding: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.site-footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.site-footer .meta {
  color: var(--muted);
  font-size: .95rem;
}

/* Sticky Navigation */
.sub-nav {
  position: sticky;
  top: 124.04px;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--card, #fff) 85%, transparent);
  border-bottom: 1px solid var(--border, #ddd);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 5px;
}
.nav__inner {
  max-width: var(--content, 1100px);
  padding: .6rem 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Cookie bar */
.cookies {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 50;
}

.cookies__inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: .5rem .9rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.98);
}

/* ======= INFO SECTION (home) ======= */
#about {
  display: grid;
  gap: 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: center;
}

.hero__title {
  margin: 0 0 .25rem;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.2;
}

.hero__subtitle {
  margin: .25rem 0 0;
  color: var(--muted);
}

.hero__photo {
  justify-self: end;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.hero__photo img {
  display: block;
  width: min(340px, 36vw);
  height: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 0;
}

.chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: .35rem .6rem;
  border-radius: 5px;
  font-size: .92rem;
}

.sections {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2%;
}

.section__title {
  margin: 0 0 30px;
  font-size: 1.45rem;
}

.pub {
  display: grid;

  gap: .45rem;
}

.pub__meta {
  color: var(--muted);
  font-size: .95rem;
}

.pub__links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pub-export{
  margin: .6rem 0;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}


.list {
  margin: .3rem 0 0;
  padding-left: 1.1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.profile-card {
  display: grid;
  grid-template-rows: 60px 1fr;
  gap: .7rem;
  padding: 10% 5%;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  justify-items: center;
  text-align: center;
  height: 240px;
}

.profile-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.profile-card__head {
  font-weight: bold;
  margin: 5px;
}

.profile-card__desc {
  margin: 5px;
}

.icon-badge {
  background-color: var(--iconbg);
  width: 60px;
  height: 60px;
  border-radius: 5px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}

.icon-badge svg {
  width: 45px;
  height: 45px;
  display: block;
}

.icon-badge[data-brand="scopus"] svg {
  color: var(--brand-scopus);
}

.icon-badge[data-brand="gscholar"] svg {
  color: var(--brand-gscholar);
}

.icon-badge[data-brand="orcid"] svg {
  color: var(--brand-orcid);
}

.icon-badge[data-brand="rgate"] svg {
  color: var(--brand-rgate);
}

.icon-badge[data-brand="wos"] svg {
  color: var(--brand-wos);
}

.icon-badge[data-brand="linkedin"] svg {
  color: var(--brand-linkedin);
}

.icon-badge[data-brand="academia"] svg {
  color: var(--brand-academia);
}

.icon-badge[data-brand="omega"] svg {
  color: var(--brand-omega);
}

.icon-badge[data-brand="facebook"] svg {
  color: var(--brand-facebook);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr
  }

  .hero__photo {
    justify-self: start
  }
}


/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: 0 1rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    justify-self: center;
    align-self: center;
    display: flex;
  }

  .cv-nav {
  position: static;
  top: 0;
  }

  .sub-nav{
    top: 85px;
  }

  #main{
    padding-top: 85px;
  }
}

@media (max-width: 400px) {
  .hero__photo img {
    width: 100%;
  }
    main.container {
      padding: 0.5rem;
    }

  .btn{
        font-size: 12px;
  }
}



/* =====================
   PROMOTOR/SUPERVISOR PAGE STYLES
   ===================== */

/* Main Container */
.prom {
  display: block;
}



/* Navigation Buttons */
.prom-btn {
  text-decoration: none;
  border: 1px solid var(--border, #ccc);
  padding: .35rem .7rem;
  border-radius: 5px;
  color: inherit;
  transition: filter .15s ease;
}

.prom-btn:hover {
  filter: brightness(0.98);
}

.prom-nav__spacer {
  flex: 1 1 auto;
}

.prom-lang {
  font-size: .9rem;
  opacity: .8;
}

/* Content Wrapper */
.prom-wrap {
  margin: 0 auto;
}

/* Section Headers */
.prom h2 {
  font: 600 1.15rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 1rem 0 .5rem;
}

/* Content Cards */
.prom .wciecie,
.prom .wyroznienie,
.prom .card,
.prom .blok,
.prom .pozycja {
  border: 1px solid var(--border, #e6e6e6);
  background: var(--card, #fff);
  border-radius: 5px;
  padding: .7rem .9rem;
  margin: .6rem 0;
}

/* Paragraphs */
.prom p {
  margin: .4rem 0;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Year Headers */
.prom .rok,
.prom .year,
.prom .naglowek-roku {
  margin-top: 1.2rem;
  font-weight: 700;
  opacity: .9;
}

/* Responsive */
@media (max-width: 760px) {
  .prom-nav__inner {
    gap: .45rem;
  }
}

/* =====================
   CV PAGE STYLES
   ===================== */

/* CV Container */
.cv {
  display: block;
}

.cv-nav__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* Navigation Chips */
.cv-chip {
  display: inline-block;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  padding: .3rem .65rem;
  border-radius: 5px;
  border: 1px solid var(--border, #ccc);
  background: var(--card, #f8f8f8);
  color: inherit;
  font-size: .95rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.cv-chip:is(:hover, :focus-visible) {
  background: #ececec;
}

.cv-chip.is-active {
  background: #dcdcdc;
  border-color: #aaa;
  color: #111;
  filter: contrast(.9);
}

/* Section Headers */
.cv__h2 {
  margin: 20px 0;    
  width: 95%;
  justify-self: center;  
}

/* Timeline Rows */
.cv__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .75rem 1rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 5px;
  background: var(--card, #fff);
}

.cv__row:first-of-type>cv__col--when {
  display: none;
}

.cv__row+.cv__row {
  margin-top: .55rem;
}

/* Timeline Columns */
.cv__col--when {
  font-weight: 600;
  color: var(--text, #222);
  white-space: nowrap;
}

.cv__col--what a {
  text-decoration: underline;
}

.cv__col--what em {
  font-style: italic;
}

.cv__col--what strong {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 760px) {
  .cv__row {
    grid-template-columns: 1fr;
  }

  .cv__col--when {
    opacity: .8;
  }
}

.search {
  height: 18px;
  width: 18px;
}

/* =====================
   RUNS/BIEGI PAGE STYLES
   ===================== */

/* Biegi – tryb jasny/ciemny + KOLORY ZALEŻNE OD DYSTANSU */

/* Zmienne kolorów dystansów */
:root {
  --run-42: hsl(4 85% 54%);
  /* czerwony (maraton)   */
  --run-21: hsl(210 85% 56%);
  /* niebieski (półmar.)  */
  --run-15: hsl(75 55% 44%);
  /* oliwkowy              */
  --run-10: hsl(145 55% 42%);
  /* zielony               */
  --run-11: hsl(28 85% 56%);
  /* pomarańcz             */
  --run-x: hsl(0 0% 50%);
  /* neutral               */
}

/* Lista biegów */
.runs .run-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

/* Element biegu */
.runs .run-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.runs .run-main {
  min-width: 0;
}

.run-h2{
  margin: 20px 0;
    width: 95%;
    justify-self: center;
}

.runs .run-media {
  display: block;
  max-width: 40vw;
}

/* Miniatura */
.runs .run-thumb {
  display: block;
  width: auto;
  height: auto;
  /* oryginalny rozmiar */
  max-width: 480px;
  max-height: 360px;
  /* limity układu */
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card);
}

.runs .run-title {
  font-size: 1rem;
  color: var(--text);
}

.runs .run-meta {
  color: var(--muted);
}

/* Wspólna baza dla znacznika dystansu */
.runs .tag {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: .85em;
}

/* Tła i obrysy dystansów: mieszamy z powierzchnią i kolorem ramki */
.runs .dist-42 {
  background: color-mix(in srgb, var(--run-42) 18%, var(--card));
  border-color: color-mix(in srgb, var(--run-42) 42%, var(--border));
}

.runs .dist-21 {
  background: color-mix(in srgb, var(--run-21) 18%, var(--card));
  border-color: color-mix(in srgb, var(--run-21) 42%, var(--border));
}

.runs .dist-15 {
  background: color-mix(in srgb, var(--run-15) 18%, var(--card));
  border-color: color-mix(in srgb, var(--run-15) 42%, var(--border));
}

.runs .dist-10 {
  background: color-mix(in srgb, var(--run-10) 18%, var(--card));
  border-color: color-mix(in srgb, var(--run-10) 42%, var(--border));
}

.runs .dist-11 {
  background: color-mix(in srgb, var(--run-11) 18%, var(--card));
  border-color: color-mix(in srgb, var(--run-11) 42%, var(--border));
}

.runs .dist-x {
  background: color-mix(in srgb, var(--run-x) 14%, var(--card));
  border-color: color-mix(in srgb, var(--run-x) 38%, var(--border));
}

/* Nagłówki roczne */
.runs .run-year {
  list-style: none;
  margin: 1.2rem 0 .2rem;
  padding: 0;
  grid-column: 1 / -1;
}

.runs .run-year__title {
  font: 600 1.15rem/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  border-left: 4px solid var(--border);
  padding-left: .5rem;
  margin: 0;
  color: var(--text);
}

/* Chipy (filtry dystansu w nagłówku runs) */
.runs .chips .chip {
  text-decoration: none;
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  border-radius: 5px;
  color: var(--text);
  background: var(--card);
}

.runs .chips .chip:hover {
  filter: brightness(0.98);
}

/* Aktywny chip „Wszystkie" – użyj koloru głównego brandu */
.runs .chips .chip.is-active:not([class*="dist-"]) {
  background: color-mix(in srgb, var(--brand) 14%, var(--card));
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

/* Kolory aktywnych chipów wg dystansu */
.runs .chips .chip.dist-42.is-active {
  background: color-mix(in srgb, var(--run-42) 20%, var(--card));
  border-color: color-mix(in srgb, var(--run-42) 50%, var(--border));
}

.runs .chips .chip.dist-21.is-active {
  background: color-mix(in srgb, var(--run-21) 20%, var(--card));
  border-color: color-mix(in srgb, var(--run-21) 50%, var(--border));
}

.runs .chips .chip.dist-15.is-active {
  background: color-mix(in srgb, var(--run-15) 20%, var(--card));
  border-color: color-mix(in srgb, var(--run-15) 50%, var(--border));
}

.runs .chips .chip.dist-10.is-active {
  background: color-mix(in srgb, var(--run-10) 20%, var(--card));
  border-color: color-mix(in srgb, var(--run-10) 50%, var(--border));
}

.runs .chips .chip.dist-11.is-active {
  background: color-mix(in srgb, var(--run-11) 20%, var(--card));
  border-color: color-mix(in srgb, var(--run-11) 50%, var(--border));
}

.runs .chips .chip.dist-x.is-active {
  background: color-mix(in srgb, var(--run-x) 18%, var(--card));
  border-color: color-mix(in srgb, var(--run-x) 48%, var(--border));
}

/* Responsywność */
@media (max-width:800px) {
  .runs .run-item {
    grid-template-columns: 1fr;
  }

  .runs .run-media {
    max-width: 100%;
  }

  .runs .run-thumb {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
  }
}

/* High Contrast */
@media (forced-colors: active) {
  .runs .chips .chip.is-active {
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
}

/* =====================
   PROMOTOR26_CARDS PAGE STYLES
   Note: Styles already defined above in PROMOTOR/SUPERVISOR PAGE STYLES section
   are sufficient. This section is kept for reference and any future overrides.
   ===================== */

/* =====================
   PUBLICATIONS PAGE STYLES
   ===================== */

/* Publikacje – styl zgodny z tokenami kolorów (light/dark) */
.pub-search input#pub-q {
  flex: 1;
  min-width: 260px;
  padding: .45rem .6rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  color: var(--text);
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.pub-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .5rem .75rem;
  background: var(--card);
}

.pub-year {
  list-style: none;
  margin: 1.1rem 0 .2rem;
  padding: 0;
}

.pub-year__title {
  margin: 0;    
  width: 95%;
  justify-self: center;  
}

.pub-check {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.pub-check input[type="checkbox"] {
  margin-top: .25rem;
}

.pub-abs {
  margin-top: .25rem;
}