@keyframes detail-pop {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(.99)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

:root {
    color-scheme: light;

    /* Font Philosophy: Monospaced stack, but sized like Default */
    /* adopted to colors and fonts from https://github.com/madrilene/eleventy-excellent/ */
    /* --header-font: "JetBrains Mono", "Roboto Mono", "Fira Code", monospace; */
    /* --body-font: "JetBrains Mono", "Roboto Mono", "Fira Code", monospace; */
    --header-font: Verdana, Arial, sans-serif;
    --body-font: Verdana, Arial, sans-serif;

    --font-size: 1rem;

    /* Eleventy Exellent Pallete */
    --background: #ffffff; /* was #e4e4e7;, now gray-100 */
    --text: #18181b ; /* was #18181b;, now gray-800 */
    --card: #f6f6f7;/* was #ffffff;, now gray-300 */
    --border: #18181b;
    
    /*--accent-orange: #ff7a1a;
    --accent-ochre: #f2b261;
    --accent-grey: #71717a;
    --accent-ring: rgba(0, 0, 0, 0.08);
    --link: var(--accent-orange);
    --shadow: rgba(0, 0, 0, 0.1);*/
    --accent-steelblue: #4682b4; /*SteelBlue	#4682B4*/
    --accent-lightsteelblue: #b0c4de; /*LightSteelBlue	#B0C4DE*/
    --accent-grey: #71717a;
    --accent-ring: rgba(0, 0, 0, 0.08);
    --link: var(--accent-steelblue);
    --shadow: rgba(0, 0, 0, 0.1);

    /* Table Variables (Mapped to Industrial Colors) */
    --table-border: rgba(0, 0, 0, 0.1);
    --table-header: #f4f4f5;
    --table-row-even: #fafafa;
    --table-row-odd: #ffffff;
    /*--table-row-hover: rgba(255, 122, 26, 0.05) war orange: #ff7a1a*/
    --table-row-hover: rgba(70, 130, 180, 0.05); /* jetzt SteelBlue #4682B4 */
}

* {
    font-family: var(--body-font);
    box-sizing: border-box;
    font-size: var(--font-size);
    color: var(--text);
    word-break: break-word;
    /* Critical for mobile responsivity */
    padding: 0;

    /* Industrial's signature smooth transition applied globally */
    transition: color 140ms cubic-bezier(.2, 0, .3, 1),
        background-color 140ms cubic-bezier(.2, 0, .3, 1),
        border-color 140ms cubic-bezier(.2, 0, .3, 1),
        box-shadow 140ms cubic-bezier(.2, 0, .3, 1),
        transform 140ms cubic-bezier(.2, 0, .3, 1);
}

html {
    scroll-behavior: smooth;
}

body, html {
    background-color: var(--background);
    margin: auto;
}

body {
    -webkit-font-smoothing: antialiased;
    /* Default Theme Layout Logic: 95vw width constrained to 900px */
    max-width: 900px;
    width: 95vw;
    padding: .4rem;
    line-height: 1.5;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

hr {
    background-color: var(--border);
    border: 0;
    height: 2px;
    width: 100%;
    margin: 1rem 0;
}

/* Images & Preformatted text: Responsive constraints  */
img, pre {
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

pre {
    width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #adbac7;
}

.hljs {
    background: #18181b !important; /* was #f4f4f5 (gray-300), now #18181b (gray-1000)  */
    border-radius: .5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    
}

code {
    margin: 1em 0em;/* spacing on top amd bottom of code block was too small for my taste */
    padding: .2rem .4rem;
    border-radius: .2rem;
    /*background: #e4e4e7; /* was #f4f4f5 (gray-300), now #e4e4e7 (gray-800); */
    border: 1px solid rgba(0, 0, 0, .1);
    /*color: #adbac7; /* #0000cd var(--accent-orange); , now MediumBlue #18181b color:#adbac7;*/
    font-size: 0.9em;
}



/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem;
    color: var(--text);
}

nav a {
    display: block;
    font-size: calc(var(--font-size)*.7);
    padding: .4rem .8rem;
    text-decoration: none;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: .4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .1);
    transform: translateY(0);
    color: var(--text);
}

nav a:hover {
    background-color: var(--accent-steelblue);
    color: #fff;
    border-color: var(--accent-steelblue);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
    transform: translateY(1px);
}

nav a:active {
    transform: translateY(2px) scale(.98);
    box-shadow: 0 0 0 transparent;
}

/* Images */
img {
    align-self: center;
}

header img {
    height: 1.5rem;
    filter: grayscale(100%);
    margin-left: 0;
}

.actionicons {
    width: 1.8rem;
    height: 1.8rem;
    filter: grayscale(100%);
}

/* Detail Card (The "Module") */
.detail {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: center;
    gap: 1rem;

    background-color: var(--card);
    padding: 1.5rem;
    width: 100%;
    margin: 0 0 1.5rem;

    border: 1px solid var(--border);
    border-radius: .8rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .05);

    animation: detail-pop 220ms cubic-bezier(.2, 0, .3, 1) both;
    will-change: transform, opacity;
}

.detail:hover {
    border-color: var(--accent-grey);
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, .06);
}

.detail:last-child {
    margin-bottom: 0;
}

details summary {
    cursor: pointer;
    padding-bottom: 1rem;
}

/* Headlines and Links */
.articlelinks, .headline {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    align-items: center;
    width: 100%;
    margin: 0;
}

.articlelinks {
    justify-content: space-between;
    gap: 1rem;
}

.articlelinks h1{
    font-family: var(--header-font);
    font-size: calc(var(--font-size)*2)
}

.headline {
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, .2);
    padding-bottom: .8rem;
    margin-bottom: .5rem;
}

.headline h1, .headline h2 {
    margin: 0;
    padding: 0;
    text-align: left;
    font-family: var(--header-font);
    font-size: calc(var(--font-size)*1.2);
}

/* Layout Containers */
.content, .description, .sharebuttons {
    display: flex;
}

.description {
    flex-direction: column;
    align-self: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sharebuttons {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .6rem;
    margin-top: .75rem;
}

/* Buttons */
#buttons {
    display: flex;
    flex-flow: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    width: 100%;
}

button, .headline button {
    appearance: none;
    padding: .35rem .9rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: .75rem;
    font-family: var(--body-font);
    font-weight: 700;
    text-transform: uppercase;
    background-color: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
    color: var(--text);
}

button:hover { /* , .headline button:hover */
    background-color: var(--accent-lightsteelblue);
    color: #fff;
    border-color: var(--accent-lightsteelblue);
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.off, button.off {
    opacity: .6;
    background-color: transparent;
    color: var(--accent-grey);
    border-color: rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
    transform: translateY(2px);
}

.off:hover, button.off:hover {
    opacity: 1;
    border-color: var(--border);
    background-color: #fff;
    transform: translateY(0);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
}

/* Toggle Buttons */
#hide_all_btn, #show_all_btn {
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    margin-right: .5rem;
}

#show_all_btn::after {
    content: "";
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background-color: var(--accent-steelblue);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

#hide_all_btn::after {
    content: "";
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--accent-grey);
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    margin: 0;
}

header h1, header h2 {
    font-family: var(--header-font);
    text-align: left;
    margin: 0;
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

header h2 {
    font-size: .9rem;
    font-weight: 400;
    opacity: .7;
}

/* Typography & Links */
h1, h2, h3, h4, h5, p {
    margin: 0 auto 0 0;
    padding: 0;
    text-align: left;
}

h1, h2, h3, h4, h5 {
    font-family: var(--header-font);
    padding-top: 1rem;
    padding-bottom: .4rem
}

h1 {
    font-size: calc(var(--font-size)*1.2);
}

h2 {
    font-size: calc(var(--font-size)*.98);
}

h3 {
    font-size: calc(var(--font-size)*.97);
}

h4 {
    font-size: calc(var(--font-size)*.96);
}

h5 {
    font-size: calc(var(--font-size)*.95);
}

p {
    font-family: var(--body-font);
    margin-top: .5rem;
    line-height: 1.6;
}

a {
    text-decoration: none;
    font-weight: 700;
    color: var(--link);
    position: relative;
    border-bottom: 1px dotted transparent;
}

a:hover {
    color: var(--accent-lightsteelblue);
    border-bottom: 1px solid currentColor;
}

/* Blockquote & Sup */
blockquote {
    border-left: 4px solid var(--accent-steelblue);
    background: rgba(255, 122, 26, 0.06);
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text);
    border-radius: 0 .4rem .4rem 0;
    line-height: 1rem;
    width: fit-content;
}

blockquote p {
    margin: 0;
    padding: 0;
    line-height: 1rem;
}

blockquote p::before {
    content: "“";
    vertical-align: calc(var(--font-size)*(-0.9));
    font-size: calc(var(--font-size)*3);
    color: var(--accent-steelblue);
    /* font-family: "Georgia", "Times New Roman", serif; */
}

blockquote p::after {
    content: "„";
    font-size: calc(var(--font-size)*3);
    vertical-align: calc(var(--font-size)*(-0.1));
    color: var(--accent-steelblue);
    /* font-family: "Georgia", "Times New Roman", serif; */
}

sup {
    vertical-align: top;
    margin-left: .2rem;
    margin-right: .2rem;
    font-size: calc(var(--font-size)*0.6);
}

/* Info / Meta */
.info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    font-weight: 700;
    text-transform: uppercase;
    height: 100%;
}

.date {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: .55rem;
    color: var(--accent-grey);
}

/* Lists */
ul, ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

ul li::marker {
    content: "· ";
    color: var(--accent-steelblue);
}

ol li::marker {
    color: var(--accent-steelblue);
}

ul ul, ol ol {
    margin-left: 1rem;
}

/* Tables (Refactored to Default Theme Philosophy) */
.table-wrapper {
    background-color: var(--card);
    max-width: fit-content;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .05);
    border: 1px solid var(--border);
    border-radius: .4em;
    margin: .75rem 0;
    padding: .5rem .75rem;
    display: block;
    overflow-x: auto;
}

table {
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
    margin: 0 auto;
    width: auto;
}

td, th {
    text-align: left;
    border-bottom: 1px solid var(--table-border);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: .5rem .75rem;
}

thead th {
    background: var(--table-header);
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    color: var(--text);
}

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

tbody tr:nth-child(2n) {
    background-color: var(--table-row-even);
}

tbody tr:hover {
    background-color: var(--table-row-hover);
}

/* Search */
#search-input {
    width: 100%;
    padding: .6rem 1rem;
    margin-bottom: 1rem;
    outline: 0;
    border: 1px solid var(--border);
    border-radius: .4rem;
    font-size: .9rem;
    font-family: var(--body-font);
    color: var(--text);
    background-color: var(--card);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
}

#search-input:focus {
    border-color: var(--accent-steelblue);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05), 0 0 0 2px var(--accent-ring);
}

#search-results {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    border: 1px solid var(--border);
    border-radius: .4rem;
    background-color: var(--card);
    display: none;
}

#search-results li {
    padding: .8rem;
    border-bottom: 1px solid #eee;
}

#search-results li a {
    display: block;
    text-decoration: none;
    color: var(--link);
    margin-bottom: .3rem;
}

.search-result-snippet strong {
    background-color: rgba(255, 166, 92, .22);
    color: var(--text);
    padding: 0 2px;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
    font-size: .8rem;
    color: var(--accent-grey);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Share Buttons (Industrial Style, Flex Layout) */
.sharebuttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    line-height: 0;
    border: 1px solid rgba(0, 0, 0, .7);
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff 0, #f6f6f7 55%, #e5e5e7 100%);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 0 0 1px rgba(255, 255, 255, .6) inset;
    transition: transform 130ms cubic-bezier(.2, 0, .3, 1), box-shadow 130ms cubic-bezier(.2, 0, .3, 1), border-color 130ms cubic-bezier(.2, 0, .3, 1), background 130ms cubic-bezier(.2, 0, .3, 1);
}

.sharebuttons a:hover {
    transform: translateY(1px);
    border-color: var(--accent-steelblue);
    box-shadow: 0 0 0 transparent, 0 0 0 2px var(--accent-ring);
    /* background: radial-gradient(circle at 30% 30%, #fff6ee [orange-300] 0, #fff0e2 [orange-400] 55%, #fbd8b4 [orange-500]  100%); */
    /*changed to tints #BED0E4 [steelblue-300] 0, #AEC4DD [steelblue-400] 55%, #9EB9D6 [steelblue-500] 100% ,check https://htmlcolorcodes.com/colors/steel-blue/ */
    background: radial-gradient(circle at 30% 30%, #bed0e4 0, #aec4dd 55%, #9eb9d6 100%);
}

.sharebuttons img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .9;
}

.sharebuttons a:hover img {
    opacity: 1;
    transform: translateY(-.5px);
}

/* MathJax Reset (Crucial for Responsivity) */
mjx-container[display] {
    text-align: left !important;
}

mjx-container, .MathJax, .mjx-chtml {
    font-family: initial !important;
    font-size: initial !important;
}

mjx-container *, .MathJax *, .mjx-chtml * {
    font-family: unset;
    font-size: unset;
    transition: none !important;
}
