table, tr:first-child td {
    border: none !important;
}

th:empty {
    display: none;
}

p {
    text-align: justify;
    text-justify: inter-word;
}

/* fix table overflow */
.md-typeset table:not([class]) th {
    min-width: 0 !important;
}

/* format columns (best for layout) */
.custom-grid-list {
    display: grid !important;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: row;
    /* 
        column:
        a - d - g
        b - e - h
        c - f - i
        row:
        a - b - c
        d - e - f
        g - h - i
    */
} 

@media only screen and (max-width: 768px) {
    .custom-grid-list {
        grid-template-columns: repeat(1, auto);
    }
}

/* format columns */
.column-2 {
    columns: 2;
}

.column-3 {
    columns: 3;
}

.column-2 li,
.column-3 li {
    break-inside: avoid-column;
}

@media only screen and (max-width: 768px) {
    .column-2,
    .column-3 {
        columns: 1;
    }
}

/* common */
h1:empty {
    display: none;
}

.main-logo {
    display: block;
    margin: 0 auto;
}

.main-title {
    display: block;
    margin: 0 auto;
    font-size: 20px;
    text-align: center;
}

.main-title span {
    display: inline-block;
}

.main-title span::first-letter {
    font-size: 30px;
}

.main-sub-title {
    display: block;
    margin: 0 auto;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.text-color-green {
    color: green;
}

.text-color-red {
    color: red;
}

.text-title {
    font-size: 16px;
}

.text-normal {
    font-weight: normal;
}

.text-center {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.text-right {
    clear: both;
    float: right;
    font-style: normal;
}

.margin-top-50 {
    margin-top: 50px;
}

.margin-bottom-50 {
    margin-bottom: 50px;
}

.image-width-300 {
    max-width: 300px !important;
}

/* custom link */
.md-typeset a {
    color: inherit !important;
}

/* custom grid */
.md-typeset .grid {
    grid-gap: 0.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(12rem,1fr));
    margin: 1em 0;
}

.md-typeset .grid.cards>:-webkit-any(ul,ol) {
    display: contents;
}

.md-typeset .grid.cards>:-webkit-any(ul,ol)>li:-webkit-any(:focus-within,:hover), .md-typeset .grid>.card:-webkit-any(:focus-within,:hover) {
    border-color: transparent;
    box-shadow: var(--md-shadow-z2);
}

.md-typeset .grid.cards>:-webkit-any(ul,ol)>li, .md-typeset .grid>.card {
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.1rem;
    display: block;
    margin: 0;
    padding: 0.8rem;
    -webkit-transition: border .25s,box-shadow .25s;
    transition: border .25s,box-shadow .25s;
}

.table-padding-none td {
    border-top: 0 !important;
    padding: 0 !important;
}

/* remove bullets */
.md-typeset ul {
    list-style-type: none;
}

[dir=ltr] .md-typeset ul li {
    margin-left: 0;
}

/* image (dark mode) */
[data-md-color-scheme="slate"] .admonition img {
    filter: invert(1);
    mix-blend-mode: screen;
}