/*========================================*/
/*alessio2122.github.io/includes/style.css*/
/*========================================*/

/*Documento de estilo para alessio2122.github.io*/
/*Autor: Alessio2122*/
/*Obra protegida bajo una licencia Creative Commons Attribution 4.0 Internacional (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/deed*/

/*========================================*/

/* Importaciones */

@charset "UTF-8";

@font-face {
    font-family: 'Red Hat Mono';
    src:
        url("fonts/RedHatMono-VariableFont_wght.woff2") format("woff2-variations"),
        url("fonts/RedHatMono-VariableFont_wght.woff") format("woff-variations"),
        url("fonts/RedHatMono-VariableFont_wght.ttf") format("true-type-variations");
    font-display: swap;
}

/* Variables y estilos globales */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --background-color: #0a0a0f;
    --foreground-color: #111116a4;
    --font-color: #e0e0e0;
    --font-color-dark: #666;
    --font-color-darker: #555;
    --primary-color: #3959d5;
    --primary-color-dark: #2c437a36;
    --border-color: #222;
    --font-family: 'Red Hat Mono', monospace, Courier;
}

/*================*/
/* Elementos HTML */
/*================*/

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--font-color);
    font-family: var(--font-family);
    margin: 0;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    display: block;
    margin-block-start: .5rem;
    margin-block-end: .5rem;
    font-weight: bold;
    margin-top: 1rem;
    scroll-margin-top: 5.5rem;
    position: relative;
    font-family: var(--font-family);
}

.heading-anchor {
    opacity: 0;
    text-decoration: none;
    color: var(--font-color-dark);
    box-shadow: none;
    position: absolute;
    left: -0.85em;
    padding-right: .5em;
    transition: opacity .15s ease;
}

h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
h5:hover .heading-anchor,
h6:hover .heading-anchor {
    opacity: 1;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-shadow: 0 0 5px var(--primary-color);
    transition: all .5s ease-out;
}

a h1:hover {
    text-shadow: 0 0 15px var(--primary-color);
}

h2 {
    text-shadow: 0 0 3px var(--primary-color);
}

p {
    color: var(--font-color);
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
    display: block;
    /*text-align: justify;
    text-indent: 2.5rem;*/
    line-height: 1.4rem;
}

p:first-child {
    margin-top: 1rem; 
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: unset;
    text-decoration: none;
    transition: all .2s ease-out;
    padding-bottom: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

ul, ol {
    margin: 0 0 0.75rem 0;
    padding: 0;
    list-style: none;
}

ul:only-child, ol:only-child {
    padding: 0;
}

ul ul, ol ol, ul ol, ol ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

ul li, ol li {
    line-height: 1.4rem;
    padding-left: 1.5rem;
    position: relative;
}

ul li::before {
    content: "■ ";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    text-shadow: 0 0 3px var(--primary-color);
}

ol {
    counter-reset: li;
}

ol li {
    counter-increment: li;
}

ol li::before {
    content: counter(li) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    text-shadow: 0 0 3px var(--primary-color);
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: .85rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    color: var(--primary-color);
    background: var(--foreground-color);
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

p a, ol a, ul a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: all .2s ease-out;
    padding-bottom: 0;
}

p a::after, ol a::after, ul a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary-color);
    opacity: 1;
    transition: all .2s ease-out;
}

p a:hover::after, ol a:hover::after, ul a:hover::after {
    opacity: 1;
    width: 100%
}

p a:hover, ol a:hover, ul a:hover {
    padding-bottom: 0;
    font-weight: bold;
}

.footer-content {
    text-align: center;
    background: var(--foreground-color);
    border-top: 2px solid var(--primary-color);
    padding: .75rem;
    margin-top: 1rem;
}

/*==========================*/
/* Componentes de la página */
/*==========================*/

/* Header y navegación */

.header-content {
    justify-content: space-between;
    align-items: center;
    margin: 0;
    display: flex;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem;
    position: sticky;
    z-index: 999;
    top: 0;
    background: var(--foreground-color);
    backdrop-filter: blur(5px);
    flex-wrap: wrap;
}

/* Header responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: .75rem;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }
    
    nav a {
        padding: .5rem .75rem;
        font-size: .9rem;
    }
    
    .logo-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: .5rem;
    }
    
    nav a {
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
    }
}

.logo-container {
    align-items: center;
    gap: 1rem;
    display: flex;
}

.logo-icon {
    background: transparent;
    border: 2px solid transparent;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    display: flex;
}

.logo-name {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 3px var(--primary-color);
}

nav {
    gap: 1rem;
    display: flex;
}

.nav-a-active {
    box-shadow: 0 0 10px var(--primary-color-dark);
    background-color: var(--primary-color-dark);
}

nav a {
    color: var(--font-color);
    border: 1px solid transparent;
    padding: .5rem 1rem;
    text-decoration: none;
}

nav a:hover {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-dark);
    background-color: var(--primary-color-dark);
}

/* Hero section */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-container {
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: radial-gradient(circle at center, var(--primary-color-dark) 0%,  transparent 100%);
    transition: all .2s ease-out;
    border: 1px solid var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats {
    flex: 1;
    gap: 1rem;
    display: flex;
    align-items: space-between;
    flex-wrap: wrap;
}

.stat-box {
    display: block;
    flex: 1 1 150px;
    text-align: center;
    background: var(--foreground-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-top: auto;
    transition: all .2s ease-out;
}

.stat-box:hover {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-dark);
    background-color: var(--primary-color-dark);
}

.stat-number {
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: clamp(2rem, 5vw, 2.5rem);
    display: block;
    text-justify: center;
    text-shadow: 0 0 3px var(--primary-color);
}

.stat-label {
    color: var(--font-color-dark);
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    font-size: .75rem;
}

.button {
    background: var(--foreground-color);
    border: var(--border-color) 1px solid;
    box-shadow: 0 0 10px var(--primary-color-dark);
    padding: .75rem 1.5rem;
    text-align: center;
    display: inline-block;
    transition: all .2s ease-out;
    margin-top: 1rem;
    margin-right: 1rem;
}

.button:hover {
    background: var(--primary-color-dark);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-dark);
    color: var(--primary-color);
}

.button-secondary {
    border: var(--border-color) 1px solid;
    box-shadow: none;
}

.hero-title {
    margin-bottom: 1rem;
    justify-content: center;
}

.splash-text {
    color: var(--font-color-dark);
    font-size: .75rem;
    margin-bottom: .75rem;
}


.main-content {
    width: 100%;
    padding: 1rem;
    display: flow-root;
    flex: 1;
}

.articles-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
    margin-top: 1rem;
    flex-wrap: wrap;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 200px;
    max-height: 238px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--foreground-color);
    border: 1px solid var(--border-color);
    transition: all .2s ease-out;
    justify-content: space-between;
    text-decoration: unset;
}

.article-card:hover {
    background: var(--primary-color-dark);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-dark);
}

.article-card p {
    color: var(--font-color-dark);
    flex-grow: 1;
}

.article-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.article-card time {
    color: var(--font-color-dark);
    font-size: .75rem;
}

.article-card h3 {
    margin: 0;
    margin-top: .5rem;
    font-size: 1rem;
    color: var(--font-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.special-article {
    box-shadow: 0 0 10px var(--primary-color-dark);
}

.article-blocked {
    position: relative;
    height: 238px;
    border: var(--border-color) 1px solid;
    cursor: not-allowed;
    justify-content: center;
    align-items: center;
}

.article-blocked-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--font-color-dark);
}

.dynamic-text-container {
    height: 4.25rem;
}

.dynamic-text {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category {
    color: var(--primary-color);
    text-transform: uppercase;
    background: var(--primary-color-dark);
    padding: .25rem .75rem;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .1em;
    border: 1px solid transparent;
}

.category:hover {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-dark);
    background-color: var(--primary-color-dark);
}

.article-author {
    border-top: 1px solid var(--border-color);
    color: var(--font-color-dark);
    padding-top: .5rem;
}

.images {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.images img {
    width: 100%;
    height: auto;
}

.article-banner {
    width: 100%;
    height: auto;
    mask-image: linear-gradient(to bottom, var(--background-color) 10%, transparent 100%);
}

.category-container {
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: max-content auto max-content;
}

.article-columns {
    display: flex; 
    flex-direction: row;
    gap: 1rem;
    grid-template-columns: max-content auto max-content;
}

.author {
    color: var(--font-color-dark);
    font-size: .875rem;
    display: block;
    text-align: center;
}

.author-logo {
    width: 5rem;
    height: 5rem;
    vertical-align: middle;
    margin-bottom: .5rem;
}

.author-column, .empty-column {
    width: 10%;
    flex: 1;
}

.content-column {
    width: 90%;
}

.author hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: .25rem 0;
}

.article-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--primary-color);
    text-align: center;
}

.article-subtitle {
    color: var(--font-color-dark);
    font-size: 1rem;
    margin-top: .5rem;
    display: block;
    font-style: italic;
    text-align: center;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    padding: .5rem 1rem;
    background: var(--foreground-color);
    border: 1px solid var(--border-color);
    color: var(--font-color);
    font-size: .85rem;
    font-family: var(--font-family);
    text-decoration: none;
    transition: all .2s ease-out;
    cursor: pointer;
}

.pdf-download-btn:hover {
    background: var(--primary-color-dark);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.pdf-download-btn svg {
    flex-shrink: 0;
}

.footer {
    color: var(--font-color-dark);
    margin: 0;
    font-size: .75rem;
}

.footer a {
    color: var(--font-color-dark);
    margin: 0;
    font-size: .75rem;
}

.footer a:hover {
    color: var(--font-color);
    border-bottom: 00px solid var(--primary-color);
}

.license {
    color: var(--font-color-darker);
    font-size: .65rem;
    margin-top: .5rem;
}

.license a {
    color: var(--font-color-darker);
    font-size: .65rem;
    margin-top: .5rem;
}

.license a:hover {
    color: var(--font-color);
    border-bottom: 0px solid var(--primary-color);
}

.big-container {
    align-content: center;
    justify-items: center;
    margin-top: 5rem;
}

.articles-nav {
    display: flex;
}

.article-nav {
    flex: 1 1 0;
    border: 1px solid var(--border-color);
    background-color: var(--foreground-color);
    padding: .5rem;
}

.article-nav:hover {
    background-color: var(--primary-color-dark);
    color: var(--font-color);
    border: 1px solid var(--primary-color);
}

.article-nav-previous {
    text-align: left;
    padding-right: 1rem;
}

.article-nav-previous::before {
    display: block;
    content: "« Anterior";
    text-transform: capitalize;
    font-size: .75rem;
    color: var(--primary-color);
}

.article-nav-next {
    text-align: right;
    padding-left: 1rem;
}

.article-nav-next::before {
    display: block;
    content: "Siguiente »";
    text-transform: capitalize;
    font-size: .75rem;
    color: var(--primary-color);
}

.toc {
    background: var(--foreground-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.toc summary {
    cursor: pointer;
    position: relative;
}

.toc summary::before {
    content: "Contenido del artículo";
    display: inline;
    font-weight: bold;
    color: var(--primary-color);
    padding-bottom: 1rem;
}

.toc summary::marker {
    display: flex;
    margin: 25rem;
    color: var(--font-color-dark);
    transition: all .2s ease-out;
}

::-webkit-scrollbar {
  width: .85rem;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--foreground-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color-dark);
}

::selection {
  background: var(--primary-color-dark);
  color: var(--primary-color);
}

::-moz-selection {
  background: var(--primary-color-dark);
  color: var(--primary-color);
}

.big-title {
    font-size: 8rem;
}

.social-media {
    transition: all .2s ease-out;
}

.social-media:hover {
    color: var(--primary-color);
}

.social-media svg,
.social-media svg * {
    transition: all .2s ease-out, stroke .2s ease-out;
}

.social-media:hover svg,
.social-media:hover svg * {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.article-source {
    display: none;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--foreground-color);
    padding-left: 1rem;
    padding: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: var(--font-color-dark);
    font-style: italic;
}

blockquote .author {
    text-align: end;
}

strong {
    color: var(--font-color);
    font-weight: bold;
}

legend {
    text-align: center;
    padding: 0 .5rem;
    margin: 0;
}

fieldset {
    padding: 1rem;
    margin: 1rem;
}

.align-left { 
    text-align: left; 
}
.align-center {
    text-align: center;
}
.align-right {
    text-align: right;
}

after-input {
    animation: blink 1s step-start infinite;
    font-weight: 900;
}

@keyframes blink { 50% { opacity: 0; } }

.callout {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    border-radius: .25rem;
    background: color-mix(in srgb, rgb(var(--callout-color)) 10%, var(--background-color));
    border-left: 4px solid rgb(var(--callout-color));
    padding: 0;
    overflow: hidden;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: color-mix(in srgb, rgb(var(--callout-color)) 15%, transparent);
    border-bottom: 1px solid color-mix(in srgb, rgb(var(--callout-color)) 20%, transparent);
}

.callout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.callout-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: rgb(var(--callout-color));
    fill: none;
}

.callout-title {
    font-weight: bold;
    color: rgb(var(--callout-color));
    font-size: .9rem;
}

.callout-content {
    padding: .75rem 1rem;
}

.callout-content > :first-child {
    margin-top: 0;
}

.callout-content > :last-child {
    margin-bottom: 0;
}

details.callout {
    display: block;
}

details.callout > summary.callout-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: color-mix(in srgb, rgb(var(--callout-color)) 15%, transparent);
    border-bottom: 1px solid color-mix(in srgb, rgb(var(--callout-color)) 20%, transparent);
    cursor: pointer;
}

details.callout > summary.callout-header::-webkit-details-marker {
    display: none;
}

details.callout > summary.callout-header::before {
    content: '▶';
    font-size: .7rem;
    transition: transform .15s ease;
    color: rgb(var(--callout-color));
}

details.callout[open] > summary.callout-header::before {
    transform: rotate(90deg);
}

/* Tabla de contenidos dinámica */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-h2 {
    margin: 0;
    padding: 0;
}

.toc-h2 > a {
    display: block;
    padding: .35rem 0;
    color: var(--font-color);
    text-decoration: none;
    font-weight: bold;
    transition: color .15s ease;
}

.toc-h2 > a:hover {
    color: var(--primary-color);
}

.toc-sublist {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0;
}

.toc-h3 {
    margin: 0;
    padding: 0;
}

.toc-h3 a {
    display: block;
    padding: .25rem 0;
    color: var(--font-color-dark);
    text-decoration: none;
    font-size: .9em;
    transition: color .15s ease;
}

.toc-h3 a:hover {
    color: var(--primary-color);
}

.toc-h4 {
    margin: 0;
    padding: 0;
}

.toc-h4 a {
    display: block;
    padding: .2rem 0;
    color: var(--font-color-dark);
    text-decoration: none;
    font-size: .85em;
    transition: color .15s ease;
}

.toc-h4 a:hover {
    color: var(--primary-color);
}

.toc-h5 {
    margin: 0;
    padding: 0;
}

.toc-h5 a {
    display: block;
    padding: .15rem 0;
    color: var(--font-color-dark);
    text-decoration: none;
    font-size: .8em;
    transition: color .15s ease;
}

.toc-h5 a:hover {
    color: var(--primary-color);
}

.toc-h6 {
    margin: 0;
    padding: 0;
}

.toc-h6 a {
    display: block;
    padding: .1rem 0;
    color: var(--font-color-dark);
    text-decoration: none;
    font-size: .75em;
    transition: color .15s ease;
}

.toc-h6 a:hover {
    color: var(--primary-color);
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}

.category-chip {
    color: var(--primary-color);
    text-transform: uppercase;
    background: var(--primary-color-dark);
    padding: .35rem .9rem;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .1em;
    text-decoration: none;
    transition: all .2s ease-out;
}

.category-chip:hover {
    background: var(--primary-color);
    color: var(--foreground-color);
    box-shadow: 0 0 10px var(--primary-color-dark);
}

.category-section {
    scroll-margin-top: 5.5rem;
    margin-bottom: 2.5rem;
}

.category-section h2 {
    margin-bottom: .5rem;
}

.image-caption-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-caption-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.image-caption {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: color-mix(in srgb, var(--background-color) 75%, transparent);
    border: 1px solid var(--border-color);
    padding: .5rem .75rem;
    color: var(--font-color-dark);
    font-style: italic;
    font-size: .85rem;
    max-width: 60%;
    backdrop-filter: blur(4px);
}

.image-caption p {
    margin: 0;
}

.article-navigation {
    margin-top: 1rem;
}

.article-nav-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--font-color-dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-nav-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
}

@media (max-width: 990px) {
    .article-columns {
        flex-direction: column;
        align-items: center;
    }

    .article-columns:first-child {
        flex: 1;
    }
}

/*=====================*/
/* Responsive Complete */
/*=====================*/

@media (max-width: 768px) {
    .main-content {
        padding: .75rem;
    }

    .article-card {
        height: auto;
        min-height: 180px;
    }

    .article-card h3 {
        font-size: .95rem;
    }

    .article-header {
        flex-direction: column;
        gap: .25rem;
    }

    .article-columns {
        flex-direction: column;
    }

    .author-column, .empty-column {
        width: 100%;
    }

    .content-column {
        width: 100%;
    }

    .author {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .author-logo {
        width: 3rem;
        height: 3rem;
    }

    .big-title {
        font-size: clamp(3rem, 10vw, 8rem);
    }

    .category-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .article-nav-grid {
        grid-template-columns: 1fr;
    }

    .articles-nav {
        flex-direction: column;
    }

    .toc summary::before {
        font-size: .85rem;
    }

    .image-caption {
        max-width: 80%;
        font-size: .75rem;
    }

    .callout-header {
        padding: .4rem .75rem;
    }

    .callout-content {
        padding: .5rem .75rem;
    }

    .big-container {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    h2 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-label {
        font-size: .65rem;
        padding: .2rem .5rem;
    }

    .button {
        padding: .6rem 1rem;
        font-size: .9rem;
        display: block;
        text-align: center;
    }

    .article-card {
        padding: 1rem;
        min-height: 160px;
    }

    .article-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .article-subtitle {
        font-size: .85rem;
    }

    .footer-content {
        padding: .5rem;
    }

    .toc {
        padding: .75rem;
    }

    .callout-header {
        font-size: .8rem;
    }

    .callout-title {
        font-size: .8rem;
    }

    .callout-content {
        font-size: .85rem;
    }
}