@font-face {
    font-family: "Eckmann";
    src: url("/assets/fonts/Eckmann.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "GothicPixels";
    src: url("/assets/fonts/GothicPixels.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Agincourt";
    src: url("/assets/fonts/Agincourt.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Amazon Ember";
    src: url("/assets/fonts/AmazonEmber_Rg.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("/assets/fonts/SF-Pro-Text-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Computer Modern";
    src: url("/assets/fonts/cmunrm.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Computer Modern";
    src: url("/assets/fonts/cmunbx.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Computer Modern";
    src: url("/assets/fonts/cmunti.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Computer Modern";
    src: url("/assets/fonts/cmunbi.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
}

body {
    font-family: "Eckmann", serif;
    font-kerning: none;
}

.text-content nav a {
    font-family: "Times New Roman", Times, serif;
}

.streaming-title {
    font-family: "Eckmann", serif;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    display: block;
    color: var(--text-color);
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 768px) {
    .streaming-title {
        max-width: 300px;
        margin: 0 auto 1.5rem;
    }
}

#markdown-content h1 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#markdown-content h2 {
    font-size: 1.5rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

#markdown-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

#markdown-content p,
.text-content p {
    font-family: Arial, sans-serif;
    text-align: justify;
    margin-bottom: 1rem;
}

#markdown-content ul,
#markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

#markdown-content li {
    margin-bottom: 0.5rem;
}

#markdown-content blockquote {
    border-left: 4px solid var(--link-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    opacity: 0.9;
}

#markdown-content pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #markdown-content pre {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#markdown-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

#markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

#markdown-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

[data-theme="dark"] #markdown-content hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#markdown-content table,
.text-content table {
    font-family: Arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
}

#markdown-content th,
#markdown-content td,
.text-content th,
.text-content td {
    font-family: Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    text-align: left;
}

[data-theme="dark"] #markdown-content th,
[data-theme="dark"] #markdown-content td,
[data-theme="dark"] .text-content th,
[data-theme="dark"] .text-content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#markdown-content th,
.text-content th {
    background: var(--code-bg);
    font-weight: 600;
}

.eckmann-header {
    font-family: "Eckmann", serif;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-kerning: none;
}

#markdown-content .eckmann-header {
    font-family: "Eckmann", serif;
    font-kerning: none;
}

.two-column-list {
    column-count: 2;
    column-gap: 2rem;
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    margin-left: -1.2rem;
}

.two-column-list li {
    break-inside: avoid;
    margin-bottom: 0.8rem;
    font-family: "Eckmann", serif;
    font-kerning: none;
    font-size: 1.5rem;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    position: relative;
    padding-left: 1.2rem;
    text-indent: 0;
    font-family: "Agincourt";
}

.two-column-list li::before {
    content: counter(list-counter) "\00a0\00b6\0020";
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    font-size: 0.85em;
    position: absolute;
    left: -0.9rem;
    top: 0.1rem;
    width: 1rem;
    text-align: left;
    white-space: nowrap;
}

.two-column-list {
    counter-reset: list-counter;
}

.two-column-list li {
    counter-increment: list-counter;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .two-column-list {
        column-count: 1;
        margin-left: 0;
    }

    .two-column-list li {
        padding-left: 1.2rem;
    }

    .two-column-list li::before {
        width: 1rem;
        left: -1.2rem;
    }
}

.hand-underline {
    position: relative;
    display: inline-block;
}

.hand-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2em;
    height: 0.45em;
    background-image: url("/assets/images/no_streaming/underline.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.nail-image {
    display: block;
    margin: 1.5rem auto 0.3rem;
    max-width: 30px;
    height: auto;
}

@media (max-width: 768px) {
    .nail-image {
        max-width: 60px;
    }
}

[data-theme="dark"] .nail-image {
    filter: invert(1);
}

.hand-note {
    position: relative;
    display: inline;
}

.hand-note::before {
    content: "";
    position: absolute;
    top: -1.1rem;
    left: 0.2rem;
    width: 6.2rem;
    height: 1.8rem;
    background-image: url("/assets/images/no_streaming/last_but_not_least.png");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.gothic-pixels-text {
    font-family: "GothicPixels", monospace;
    font-size: 1rem;
    position: relative;
    top: -0.13em;
}

.amazon-text {
    font-family: "Amazon Ember", sans-serif;
}

.apple-text {
    font-family: "SF Pro Display", sans-serif;
}

.computer-modern-text {
    font-family: "Computer Modern", serif;
}

.mp3-paragraph {
    position: relative;
}

.mp3-paragraph::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-image: url("/assets/images/no_streaming/mp3.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] .mp3-paragraph::before {
    opacity: 0.3;
    filter: invert(1);
}

@media (max-width: 768px) {
    .mp3-paragraph::before {
        width: 150px;
        height: 150px;
    }
}

.image-figure {
    text-align: center;
    margin: 2rem 0;
}

.image-figure img {
    max-width: 340px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #666;
    font-family: Arial, sans-serif;
    text-align: center;
}

[data-theme="dark"] .image-caption {
    color: #999;
}

.algorithm-box {
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    border-left: none;
    border-right: none;
    padding: 1.5rem 0;
    margin: 2rem 0;
    background: var(--bg-color);
    font-family: "Computer Modern", serif;
}

.algorithm-box h4 {
    font-family: "Computer Modern", serif;
    font-weight: bold;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--text-color);
    font-size: 1rem;
}

.algorithm-box ol {
    counter-reset: algorithm-counter;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.algorithm-box ol li {
    counter-increment: algorithm-counter;
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.algorithm-box ol li::before {
    content: counter(algorithm-counter) ":";
    position: absolute;
    left: 0;
    font-weight: bold;
    width: 1.5rem;
    text-align: left;
}

.algorithm-box .algorithm-label {
    font-weight: bold;
}

.collaborative-filtering-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.collaborative-filtering-container .image-figure {
    flex: 1;
    margin: 0;
}

.collaborative-filtering-container .algorithm-box {
    flex: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .collaborative-filtering-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.text-content h3:has(+ ol) {
    font-family: "Computer Modern", serif;
}

.text-content h3 + ol {
    font-family: "Computer Modern", serif;
}

.text-content h3 + ol li {
    font-family: "Computer Modern", serif;
}

.text-content h3 + ol a {
    font-family: "Computer Modern", serif;
}
