html {
  font-family: Arial, Helvetica, sans-serif;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 10px;
  padding-top: 10px;
}

.no-dot {
  list-style-type: none;
}

header a,
header h1,
header h2,
header h3 {
  margin-block-end: 0px;
  margin-block-start: 0px;
}

.flex-right {
  display: flex;
  margin-left: auto;
  vertical-align: baseline;
}

.pagination li,
header nav li {
  list-style-type: none;
  display: inline-block;
  margin-left: 5px;
}

.subtitle {
  margin-left: 5px;
}

.main,
header,
footer {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
}

.card {
  border: 1px solid black;
  padding: 10px;
  margin: 5px;
  width: 300px;
  box-sizing: border-box;
}

.card h3,
.card p {
  margin-block-end: 5px;
  margin-block-start: 5px;
}

.card-box {
  width: 100%;
}

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

.pad-l-5px {
  padding-left: 5px;
}

.pad-r-5px {
  padding-right: 5px;
}

/* toc */

.toc-box {
  border: 1px solid black;
  padding: 5px;
}

toc {
  display: none;
}

toc li {
  list-style-type: none;
}

toc ul {
  margin-left: 0px;
  padding-left: 0;
}

toc ul ul {
  margin-left: 0px;
  padding-left: 15px;
}

ul li {
  line-height: 1.2;     /* Gives space for multiple lines within the SAME bullet */
  margin-bottom: 0.2em; /* Separates DIFFERENT bullets from each other */
}

/* Optional: remove the margin from the very last item so it doesn't mess up your layout */
ul li:last-child {
  margin-bottom: 0;
}

/* github style code highlight plus slack/claude color */
code:not(pre code) {
  padding: 0.2em 0.4em;
  margin: 0;
  color: rgb(141, 37, 37);
  background-color: rgba(27, 31, 35, 0.05); /* Light gray transparent background */
  border-radius: 6px; /* Softened edges */
}

code {
    word-wrap: break-word;
}

pre code {
    word-wrap: normal;
    white-space: pre;
}

table, th, td {
  border: 1px solid black;
  padding: 10px;
}

table {
  border-collapse: collapse;
}

/* Mobile and Responsive Improvements */
img, video {
  max-width: 100%;
  height: auto;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* Fix for Hugo code highlight tables */
.highlight {
  max-width: 100%;
  overflow-x: auto;
}

.highlight table {
  display: table;
  white-space: pre;
}

@media screen and (max-width: 600px) {
  .card {
    width: 100%;
    margin: 10px 0;
  }
  
  .main, header, footer {
    margin-left: 15px;
    margin-right: 15px;
  }

  header nav {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 5px;
  }

  header nav li {
    flex: 0 0 auto;
    display: inline-block;
  }
}

.giscus, .giscus-frame {
  min-height: 500px !important;
}
