.hidden {
    display: none;
}

@media print {
    /* All your print styles go here */
    .panel,
    .mainfooter {
      display: none !important;
    }
    div, .list_item {
        border: none !important;
    }
}
  
.footnote {
    font-size: smaller;
}

.menu_title {
    font-weight: bold;
}

/* https://www.paritybit.ca/blog/styling-external-links.html */
a[href^="http"]:where(:not([href*="roytang.net"],[href*="localhost"]))::after, a[href^="https"]:where(:not([href*="roytang.net"],[href*="localhost"]))::after {
    display:inline-block;
    font:14px/1 ForkAwesome;
    font-size:inherit;
    text-rendering:auto;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    content:"︎↗";
    padding-left:.5em;
    font-size:.75em
}

.navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: smaller;
}

.navigation a {
    display: block;
}

.navigation .prev {
    text-align: left;
}

.navigation .next {
    text-align: right;
}

small {
    color: var(--deemphasized-text-color);
    font-size: smaller;
}

.title time, .comment time {
    color: var(--third-color);
    font-size: smaller;
    display: inline;
}


/* Tables */
article table {
    width: 100%;
}

article table tr:nth-child(even) {
    background: var(--alt-row-color);
}

article table tr:nth-child(odd) {
    background: var(--row-color);
}

article table td.numeric {
    text-align: right;
}


td {
    border-left: 1px var(--third-color);
    border-right: 1px var(--third-color);
    padding-left: 0.5em;
    padding-right: 0.5em;
}

@media (max-width: 480px) {

    .e-content table { 
        font-size: 2.5vw;
    }
 
}

/* https://stackoverflow.com/questions/248011/how-do-i-wrap-text-in-a-pre-tag */
pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}