* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    color: black;
    font-family: monospace;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 10px 0 10px;
}

.content {
    flex: 1;
    padding-bottom: 100px;
}

.logo-line {
    display: flex;
    font-size: 1.4em;
    white-space: pre;
}

.author {
    font-size: 0.9em;
    color: gray;
    margin-bottom: 3px;
    margin-right: 15px;
}

.date {
    font-size: 0.8em;
    color: gray;
    margin-bottom: 3px;
    font-style: italic;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.meta-info {
    font-size: 0.85em;
    margin-top: 10px;
}

.meta-info--compact {
    margin-top: 5px;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

h3 {
    font-size: 1em;
    margin-bottom: 6.6px;
    font-weight: bold;
}

p {
    line-height: 1.2;
    margin-bottom: 5px;
}

button {
    padding: 5px;
    margin-bottom: 5px;
    background-color: -webkit-link;
    color: white;
    font-family: monospace;
    border-width: 0;
}

img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.image-container {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.image-caption {
    font-size: 0.8em;
    color: gray;
    margin-top: 5px;
    text-align: left;
}

.video-container {
    position: relative;
    /* 16:9 aspect ratio (9 / 16 * 100) */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer {
    text-align: left;
    padding: 10px 0;
}

.footer .socials {
    margin-bottom: 10px;
}

.footer .social-link {
    margin: 0 10px;
}

summary::-webkit-details-marker {
    display: none;
}

summary {
    list-style: none;
}

details.collapsible {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ddd;
}

details.collapsible > summary {
    cursor: pointer;
    outline: none;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
}

details.benchmark-set {
    border-color: #eee;
}

details.benchmark-set .benchmark-title {
    font-weight: 700;
    font-size: 1.2em;
}

.benchmark-performance {
    font-size: 0.7em;
    color: gray;
    font-style: italic;
}

details.benchmark-graph-details {
    border-color: #bbb;
}

.benchmark-graph-title {
    font-weight: 300;
    font-size: 0.8em;
}

.benchmark-chart {
    display: block;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
}

details.benchmark-module {
    border-color: #ddd;
}

details.benchmark-module summary.module-title {
    font-size: 1em;
    font-weight: 500;
}

details.benchmark-function {
    border-color: #ccc;
}

summary.function-title {
    font-size: 0.9em;
    font-weight: 400;
}

.benchmark-title,
.benchmark-graph-title,
.module-title,
.function-title,
.podcast-episode-title,
.podcast-links a {
    color: -webkit-link;
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

pre {
    background-color: #f5f5f5;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    font-family: monospace;
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

ol {
    margin: 10px 0;
    padding-left: 30px;
}

ul {
    margin: 10px 0;
    padding-left: 30px;
}

ol ol,
ul ul,
ol ul,
ul ol {
    margin: 5px 0;
}

/* Podcast-specific styles */
details.podcast-episode {
    margin: 0 0 20px;
}

details.podcast-episode summary.podcast-title {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 8px;
}

.podcast-episode-title:hover {
    color: blue;
}

.podcast-meta {
    font-size: 0.8em;
    color: gray;
    font-style: italic;
    font-weight: normal;
}

.podcast-content {
    margin-top: 15px;
}

.podcast-content .video-container {
    margin: 15px 0 10px 0;
}

.podcast-content p {
    margin-bottom: 10px;
    line-height: 1.3;
}

.podcast-content .meta {
    margin-bottom: 15px;
}

.podcast-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}


.podcast-links a {
    font-size: 0.9em;
}

.podcast-links a:hover {
    color: blue;
}

/* Mobile-specific podcast improvements */
@media (max-width: 600px) {
    .podcast-episode {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .podcast-links {
        gap: 10px;
    }

    .podcast-links a {
        font-size: 0.85em;
    }
}
