/*
Theme Name: techscoop_daily
Theme URI: https://techscoopdaily.com
Author: techscoop_daily
Description: Classic theme for a technology news site: terminal-style identity, featured and latest stories, colored category panels, article, archive, search and 404 templates, and widget-based ad slots. Fonts are self-hosted.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techscoop-daily
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(assets/fonts/space-grotesk-latin-400-normal.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(assets/fonts/space-grotesk-latin-ext-400-normal.woff2)
        format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url(assets/fonts/space-grotesk-latin-600-normal.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url(assets/fonts/space-grotesk-latin-ext-600-normal.woff2)
        format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(assets/fonts/space-grotesk-latin-700-normal.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(assets/fonts/space-grotesk-latin-ext-700-normal.woff2)
        format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(assets/fonts/jetbrains-mono-latin-ext-500-normal.woff2)
        format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(assets/fonts/jetbrains-mono-cyrillic-500-normal.woff2)
        format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(assets/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(assets/fonts/jetbrains-mono-latin-ext-700-normal.woff2)
        format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(assets/fonts/jetbrains-mono-cyrillic-700-normal.woff2)
        format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Base ---------- */
:root {
    --ink: #0f1115;
    --ink-2: #1e222b;
    --paper: #f6f4ef;
    --white: #ffffff;
    --line: #e3dfd6;
    --muted: #5a5f6a;
    --accent: #e24a17;
    --soft: #b9bdc7;
    --ph: #ece9e1;
    --sans:
        "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto,
        sans-serif;
    --mono:
        "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
        monospace;
    --wrap: 1200px;
    --read: 760px;
    --wide: 1000px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
}
a:hover {
    text-decoration: underline;
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--ink);
    border-radius: 8px;
    clip: auto !important;
    clip-path: none;
    color: var(--paper);
    display: block;
    height: auto;
    left: 8px;
    padding: 12px 16px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

.tsd-container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.tsd-narrow {
    width: 100%;
    max-width: var(--read);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
.tsd-wide {
    width: 100%;
    max-width: var(--wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
.tsd-stack {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 56px;
}
.tsd-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tsd-empty {
    margin: 0;
    font-size: 18px;
    color: var(--muted);
}

/* ---------- Header and footer ---------- */
.site-header,
.site-footer {
    background: var(--ink);
    color: var(--paper);
}
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.tsd-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    text-decoration: none;
}
.tsd-logo:hover {
    text-decoration: none;
}
.tsd-logo__text {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
}
.tsd-logo__us {
    color: var(--accent);
}

.tsd-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tsd-nav a {
    display: inline-block;
    padding: 8px 0 6px;
    border-bottom: 2px solid transparent;
    color: var(--paper);
    font-size: 15px;
    text-decoration: none;
}
.tsd-nav a:hover {
    border-bottom-color: var(--soft);
}
.tsd-nav .current-menu-item > a,
.tsd-nav .current-menu-ancestor > a,
.tsd-nav .current-post-ancestor > a,
.tsd-nav .current-cat > a {
    border-bottom-color: var(--accent);
}

.tsd-search {
    position: relative;
}
.tsd-search__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    list-style: none;
    cursor: pointer;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    color: var(--paper);
}
.tsd-search__toggle::-webkit-details-marker {
    display: none;
}
.tsd-search[open] .tsd-search__toggle {
    background: var(--ink-2);
}
.tsd-search__panel {
    position: absolute;
    right: 0;
    top: 52px;
    z-index: 50;
    width: min(340px, 86vw);
    padding: 12px;
    background: var(--ink-2);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.tsd-searchform {
    display: flex;
    gap: 8px;
}
.tsd-searchform__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.tsd-searchform__button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.tsd-search__panel .tsd-searchform__button {
    background: var(--accent);
    color: var(--ink);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.tsd-footer-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tsd-footer-nav a {
    display: inline-block;
    padding: 10px 0;
    color: var(--soft);
    font-size: 14px;
    text-decoration: none;
}
.tsd-footer-nav a:hover {
    text-decoration: underline;
}
.tsd-footer__copy {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--soft);
}

/* ---------- Shared pieces ---------- */
.tsd-cat {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}
.tsd-cat::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    background: var(--accent);
}
.tsd-meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.tsd-labelrow {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tsd-labelrow__text {
    margin: 0;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
}
.tsd-labelrow__rule {
    flex-grow: 1;
    height: 1px;
    background: var(--line);
}

.tsd-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--line);
}
.tsd-thumb__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tsd-thumb__empty {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--line);
}
.tsd-thumb--hero,
.tsd-lead__thumb {
    border-radius: 16px;
}

.tsd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 40px 24px;
}
.tsd-grid__full {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}
.tsd-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.tsd-card__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.tsd-card__title a {
    text-decoration: none;
}
.tsd-card__title a:hover {
    text-decoration: underline;
}

.tsd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 10px;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.tsd-btn:hover {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}
.tsd-tag {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
}
.tsd-tag:hover {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}

.tsd-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.tsd-pagination .page-numbers,
.tsd-pagination .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.tsd-pagination a.page-numbers:hover,
.tsd-pagination a.post-page-numbers:hover {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}
.tsd-pagination .page-numbers.current,
.tsd-pagination .post-page-numbers.current {
    background: var(--ink);
    color: var(--paper);
}
.tsd-pagination .page-numbers.dots {
    border-color: transparent;
}

.tsd-breadcrumb {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}
.tsd-breadcrumb a {
    color: var(--muted);
}
.tsd-breadcrumb__current {
    color: var(--ink);
}

/* ---------- Ads ---------- */
.tsd-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.tsd-ad__label {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.tsd-ad__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.tsd-ad__box--leaderboard {
    max-width: 728px;
    min-height: 90px;
}
.tsd-ad__box--billboard {
    max-width: 970px;
    min-height: 250px;
}
.tsd-ad__box--rectangle {
    max-width: 300px;
    min-height: 250px;
}
.tsd-ad__box--placeholder {
    border: 1px dashed #8b8f98;
    background: var(--ph);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}
.tsd-ad__widget {
    max-width: 100%;
}
.tsd-prose .tsd-ad {
    margin-top: 8px;
    margin-bottom: 32px;
}

/* ---------- Home ---------- */
.tsd-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.tsd-hero__main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tsd-hero__title {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.tsd-hero__title a {
    text-decoration: none;
}
.tsd-hero__title a:hover {
    text-decoration: underline;
}
.tsd-hero__sub {
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    color: var(--muted);
}
.tsd-hero__side {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tsd-sidehead {
    margin: 0;
    padding-bottom: 16px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
}
.tsd-feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.tsd-feat__thumb {
    display: block;
    flex: none;
    width: 112px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--line);
}
.tsd-feat__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tsd-feat__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.tsd-feat__title a {
    text-decoration: none;
}
.tsd-feat__title a:hover {
    text-decoration: underline;
}

.tsd-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 24px;
}
.tsd-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
    background: var(--panel, #c9bdf2);
    border-radius: 16px;
    color: var(--ink);
}
.tsd-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
}
.tsd-panel__title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.tsd-panel__all {
    font-size: 14px;
    font-weight: 600;
}
.tsd-panel__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid rgba(15, 17, 21, 0.25);
    text-decoration: none;
}
.tsd-panel__item-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
.tsd-panel__item:hover .tsd-panel__item-title {
    text-decoration: underline;
}
.tsd-panel .tsd-meta {
    color: #2b2f38;
}

.tsd-about {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    background: var(--ink);
    border-radius: 16px;
    color: var(--paper);
}
.tsd-about__label {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.tsd-about__widget {
    max-width: 760px;
}
.tsd-about h1,
.tsd-about h2,
.tsd-about h3,
.tsd-about h4 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--paper);
}
.tsd-about p {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--soft);
}
.tsd-about a {
    color: var(--paper);
}

/* ---------- Article ---------- */
.tsd-article__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
}
.tsd-article__title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}
.tsd-article__sub {
    margin: 0;
    font-size: 21px;
    line-height: 1.5;
    color: var(--muted);
}
.tsd-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tsd-byline__who {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tsd-byline__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tsd-byline__name {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.tsd-byline__name:hover {
    text-decoration: underline;
}
.tsd-avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--line);
}
.tsd-avatar--lg {
    width: 72px;
    height: 72px;
}
.tsd-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tsd-article__figure {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 0;
}
.tsd-article__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}

.tsd-prose {
    padding-top: 40px;
    display: flow-root;
}
.tsd-prose > * {
    margin-top: 0;
    margin-bottom: 24px;
}
.tsd-prose p,
.tsd-prose li {
    font-size: 19px;
    line-height: 1.7;
}
.tsd-prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.tsd-prose a:hover {
    text-decoration-color: var(--ink);
}
.tsd-prose h2,
.tsd-prose h3,
.tsd-prose h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}
.tsd-prose h2 {
    margin-top: 40px;
    font-size: 30px;
    line-height: 1.2;
}
.tsd-prose h3 {
    margin-top: 32px;
    font-size: 24px;
    line-height: 1.25;
}
.tsd-prose ul,
.tsd-prose ol {
    padding-left: 1.4em;
}
.tsd-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.tsd-prose figure {
    margin-left: 0;
    margin-right: 0;
}
.tsd-prose figcaption {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}
.tsd-prose blockquote,
.tsd-prose .wp-block-pullquote {
    margin: 8px 0 32px;
    padding: 0;
    border: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.tsd-prose blockquote::before,
.tsd-prose .wp-block-pullquote::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin-bottom: 16px;
    background: var(--accent);
}
.tsd-prose blockquote p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
.tsd-prose blockquote cite,
.tsd-prose .wp-block-pullquote cite {
    display: block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    color: var(--muted);
}
.tsd-prose pre {
    padding: 20px;
    overflow: auto;
    background: var(--ink);
    border-radius: 12px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
}
.tsd-prose code {
    font-family: var(--mono);
    font-size: 0.9em;
}
.tsd-prose :not(pre) > code {
    padding: 2px 6px;
    background: var(--line);
    border-radius: 6px;
}
.tsd-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.tsd-prose th,
.tsd-prose td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}
.tsd-prose iframe,
.tsd-prose video,
.tsd-prose embed {
    max-width: 100%;
}
.tsd-prose .wp-block-table,
.tsd-prose .wp-block-embed {
    overflow-x: auto;
}
.alignleft {
    float: left;
    margin: 0 24px 16px 0;
}
.alignright {
    float: right;
    margin: 0 0 16px 24px;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tsd-article__foot {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
}
.tsd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tsd-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.tsd-author__body {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tsd-author__name {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
.tsd-author__name:hover {
    text-decoration: underline;
}
.tsd-author__bio {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}
.tsd-article__ad {
    margin-top: 56px;
}
.tsd-related {
    padding-top: 64px;
    padding-bottom: 56px;
}
.tsd-page {
    padding-bottom: 56px;
}

/* ---------- Archives and search ---------- */
.tsd-band {
    background: var(--band, #c9bdf2);
    color: var(--ink);
}
.tsd-band__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 56px;
}
.tsd-band__title {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}
.tsd-band__title--search {
    font-size: 48px;
}
.tsd-band__desc {
    margin: 0;
    max-width: 640px;
    font-size: 20px;
    line-height: 1.5;
    color: #2b2f38;
}
.tsd-band__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.tsd-band__sep {
    width: 1px;
    height: 16px;
    background: var(--ink);
}
.tsd-band__search {
    max-width: 520px;
}
.tsd-band .tsd-breadcrumb,
.tsd-band .tsd-breadcrumb a {
    color: #2b2f38;
}
.tsd-factlabel {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.tsd-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}
.tsd-lead__thumb {
    flex: 1 1 480px;
    min-width: 0;
    width: auto;
}
.tsd-lead__body {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tsd-lead__title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.tsd-lead__title a {
    text-decoration: none;
}
.tsd-lead__title a:hover {
    text-decoration: underline;
}
.tsd-lead__sub {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------- 404 ---------- */
.tsd-notfound {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 72px;
    padding-bottom: 24px;
}
.tsd-notfound__code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 96px;
    line-height: 1;
    letter-spacing: -0.04em;
}
.tsd-notfound__title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.tsd-notfound__text {
    margin: 0;
    max-width: 560px;
    font-size: 19px;
    line-height: 1.5;
    color: var(--muted);
}
.tsd-notfound__search {
    width: 100%;
    max-width: 520px;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
    .tsd-nav {
        order: 3;
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .tsd-stack {
        gap: 44px;
    }
    .tsd-hero__title {
        font-size: 30px;
    }
    .tsd-article__title {
        font-size: 32px;
    }
    .tsd-article__sub {
        font-size: 19px;
    }
    .tsd-band__title {
        font-size: 44px;
    }
    .tsd-band__title--search {
        font-size: 36px;
    }
    .tsd-lead__title {
        font-size: 28px;
    }
    .tsd-notfound__code {
        font-size: 72px;
    }
    .tsd-notfound__title {
        font-size: 32px;
    }
    .tsd-about {
        padding: 28px 24px;
    }
    .tsd-panel {
        padding: 24px;
    }
    .tsd-prose blockquote,
    .tsd-prose .wp-block-pullquote {
        font-size: 24px;
    }
}

.tsd-more {
    display: flex;
    justify-content: center;
    margin: 0;
}

.tsd-panels > .tsd-panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
