:root {
  --accent: #ffc20e;
  --accent-dark: #e0a800;
  --text: #2b2d31;
  --muted: #64676e;
  --bg: #f5f5f5;
  --card: #fff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
}

body, a { font-family: 'Open Sans', system-ui, -apple-system, Arial, sans-serif; font-size: 14px; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }
li { font-size: 14px; }

/* układ: elastyczna szerokość zamiast stałych 940px */
.inner { width: auto; max-width: 1100px; padding: 0 16px; }

/* przyciski */
.general_button {
  height: auto; line-height: 1.4; padding: 6px 14px;
  background: var(--accent); border: 0; border-radius: var(--radius);
  color: #222; font-weight: 600; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.general_button:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.general_button.type_2 { background: #4f85bb; color: #fff; height: auto; padding: 6px 14px; }
.general_button.type_2:hover { background: #3f72a6; }

/* tabele i karty */
table { border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th { background: var(--muted); color: #fff; font-weight: 600; padding: 10px; }
td { padding: 10px; border-bottom: 1px solid #ededed; }
tr:hover td { background: #fffbea; }

/* menu lig */
li.active > a { background: var(--accent); border-radius: var(--radius); color: #222; }


/* tabele na stronie głównej (.table_dark): bez białego tła i białych linii */
.table_dark table {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.table_dark table td {
  border-right: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.table_dark table td.blank {
  background: transparent;
  border: 0;
}
.table_dark table th.header {
  border-bottom: 3px solid var(--accent);   /* zamiast białej linii */
}
.table_dark table tr:hover td:not(.d1):not(.d10):not(.d20) {
  background: rgba(255,194,14,.12);        /* delikatny żółty zamiast bieli */
}



/* przycisk Details w tabelach (niebieski) */
.table_dark .general_button.type_2 {
  display: inline-block;
  height: auto;
  line-height: 1.2;
  padding: 6px 14px;
  background: #4f85bb;
  background-image: none;                  /* wyłącza stary gradient */
  border: 0;
  border-radius: 999px;                    /* kształt pigułki */
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.table_dark .general_button.type_2:hover {
  background: #3f72a6;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.table_dark .general_button.type_2:active {
  background: #356392;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.table_dark .general_button.type_2:focus-visible {
  outline: 2px solid #2b2d31;
  outline-offset: 2px;
}
.table_dark td.blank { text-align: center; padding: 4px 8px; }

/* responsywność: kontenery z treścią */
@media (max-width: 949px) {
  .main_content,
  .right_sidebar .main_content,
  .left_sidebar .main_content,
  .block_table_l,
  .block_table_l_2,
  .general_column_620,
  .general_column_700 {
    width: auto;
    max-width: 100%;
    float: none;
    margin-right: 0;
  }
}

/* tabele: nie wychodzą poza ekran */
.table_dark { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table_dark table { width: 100%; }

@media (max-width: 600px) {
  .table_dark table td,
  .table_dark table th { padding: 6px 4px; font-size: 12px; }
  .table_dark table td h4 { font-size: 12px; word-break: break-word; }
  .table_dark table td[width],
  .table_dark table th[width] { width: auto; }   /* ignoruje width="5%" z atrybutów */
}
