/* =================================
    CSS VARIABLES (Light & Dark Mode)
    ================================= */

:root {
    /* Light Mode */
    --body-background: #f8f8f8;
    --main-text-color: #333;
    --heading-color: #303d4e;
    --subtle-text-color: #6e6e73;
    --border-color: #eee;
    --button-primary-background: white;
    --button-primary-text: black;
    --button-primary-border: #62707d;
    --button-primary-hover-background: #62707d;
    --button-primary-hover-text: white;
    --button-secondary-background: white;
    --button-secondary-text: black;
    --button-secondary-border: black;
    --button-secondary-hover-background: #62707d;
    --button-secondary-hover-text: white;
    --hero-background: #d3cac3;
    --hero-heading-color: black;
    --card-background: white;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
    --card-heading-color: #005655;
    --card-text-color: #555;
    --meta-dt-color: #333;
    --meta-dd-color: #555;
    --chart-background: #ffffff;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

/* Dark Mode - System Preference */
@media (prefers-color-scheme: dark) {
    :root {
        --body-background: #1a1a1a;
        --main-text-color: #e0e0e0;
        --heading-color: #d3cac3;
        --subtle-text-color: #999999;
        --border-color: #444;
        --button-primary-background: #1a1a1a;
        --button-primary-text: #e0e0e0;
        --button-primary-border: #62707d;
        --button-primary-hover-background: #62707d;
        --button-primary-hover-text: white;
        --button-secondary-background: #1a1a1a;
        --button-secondary-text: #e0e0e0;
        --button-secondary-border: #e0e0e0;
        --button-secondary-hover-background: #62707d;
        --button-secondary-hover-text: white;
        --hero-background: #303d4e;
        --hero-heading-color: #d3cac3;
        --card-background: #2a2a2a;
        --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        --card-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
        --card-heading-color: #79a1d1;
        --card-text-color: #b0b0b0;
        --spotlight-card-background: #3a3329;
        --spotlight-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        --spotlight-card-shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.4);
        --spotlight-heading-color: #d3cac3;
        --spotlight-text-color: #b0b0b0;
        --meta-dt-color: #e0e0e0;
        --meta-dd-color: #b0b0b0;
        --chart-background: #2a2a2a;
    }
}

/* Dark Mode - Manual Toggle */
body[data-theme='dark'] {
    --body-background: #1a1a1a;
    --main-text-color: #e0e0e0;
    --heading-color: #d3cac3;
    --subtle-text-color: #999999;
    --border-color: #444;
    --button-primary-background: #1a1a1a;
    --button-primary-text: #e0e0e0;
    --button-primary-border: #62707d;
    --button-primary-hover-background: #62707d;
    --button-primary-hover-text: white;
    --button-secondary-background: #1a1a1a;
    --button-secondary-text: #e0e0e0;
    --button-secondary-border: #e0e0e0;
    --button-secondary-hover-background: #62707d;
    --button-secondary-hover-text: white;
    --hero-background: #303d4e;
    --hero-heading-color: #d3cac3;
    --card-background: #2a2a2a;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
    --card-heading-color: #79a1d1;
    --card-text-color: #b0b0b0;
    --spotlight-card-background: #3a3329;
    --spotlight-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --spotlight-card-shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.4);
    --spotlight-heading-color: #d3cac3;
    --spotlight-text-color: #b0b0b0;
    --meta-dt-color: #e0e0e0;
    --meta-dd-color: #b0b0b0;
    --chart-background: #2a2a2a;
}

/* =================================
    GENERAL STYLES & LAYOUT
    ================================= */

body {
    font-family: Arial, sans-serif;
    color: var(--main-text-color);
    background-color: var(--body-background);
    transition: background-color 0.3s ease, color 0.3s ease;
    
    margin: 0;
    /* Change height to min-height */
    min-height: 100vh; 
    /* Change overflow to visible (or just remove hidden) */
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
}

main.scrolless-layout {
    margin: 80px auto 0 auto;
    width: 100%;
    min-height: 800px; /* Change this value to whatever height you want */
    height: auto;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Enable scrolling */
}

/* =================================
    TYPOGRAPHY
    ================================= */

h2 {
    /* ... existing styles ... */
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    
    /* CORRECTED: Flexbox to align content and push the number to the right */
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Ensures alignment with the bottom border */
}
h2 strong,
h2 b {
    color: var(--main-text-color);
}

.library-slogan,
.slogan-border {
    color: var(--subtle-text-color);
}
/* =================================
    TYPOGRAPHY (Header and Number Fixes)
   ================================= */

/* ADDED: Ensures the title/slogan block stays together and wraps cleanly */
.h2-content-wrapper {
    /* Allow the title/slogan to take most of the space */
    flex-grow: 1; 
    /* Keep title and slogan elements inline */
    display: inline; 
}

/* ADDED: Section Number Styling */
.section-number {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--subtle-text-color);
    margin-left: 15px; /* Space from the slogan */
    letter-spacing: 1px;
    opacity: 1;
    /* Ensures the number does not shrink and remains on the right */
    flex-shrink: 0; 
}

/* Ensure the number maintains its dark color in dark mode */
body[data-theme='dark'] .section-number {
    color: var(--subtle-text-color);
}
/* =================================
    BUTTONS
    ================================= */

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: left;
    margin-top: 20px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button-primary {
    background-color: var(--button-primary-background);
    color: var(--button-primary-text);
    border: 2px solid var(--button-primary-border);
}

.button-primary:hover {
    background-color: var(--button-primary-hover-background);
    border-color: var(--button-primary-hover-background);
    transform: translateY(-2px);
    color: var(--button-primary-hover-text);
}

.button-secondary {
    background-color: var(--button-secondary-background);
    color: var(--button-secondary-text);
    border: 2px solid var(--button-secondary-border);
}

.button-secondary:hover {
    background-color: var(--button-secondary-hover-background);
    transform: translateY(-2px);
    color: var(--button-secondary-hover-text);
}

/* =================================
    HERO SECTION - UNIFIED IMAGE WITH OVERLAYS
    ================================= */

.hero-section-scrolless {
    /* Takes ~40% of available vertical space */
    flex: 0 0 40%; 
    min-height: 0; /* CRITICAL: Allows shrinking below content size */
    margin-bottom: 10px; /* Small gap between hero and chart */
    padding-right: 0;
    overflow-y: auto;
}

.hero-section-unified {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 200px; /* Ensure minimum height for buttons */
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Gradient overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.15) 35%,
        rgba(0, 0, 0, 0.05) 60%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 2;
    pointer-events: none; /* CRITICAL: Allow clicks to pass through to buttons */
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

/* Hero text section */
.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3em;
    line-height: 1.1;
    color: white;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h1 strong {
    border-bottom: 4px solid rgba(255, 255, 255, 0.8);
    padding-bottom: 4px;
    font-weight: 700;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2em;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* Button container */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 10px; /* Extra space from bottom */
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #333;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.hero-button:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-button.primary {
    background: rgba(98, 112, 125, 1);
    border-color: rgba(98, 112, 125, 1);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-button.primary:hover {
    background: rgba(78, 92, 105, 1);
    border-color: rgba(78, 92, 105, 1);
}

/* Icon for buttons */
.hero-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Tooltip styling */
.hero-button {
    position: relative;
}

.hero-button[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

.hero-button[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    animation: tooltipArrowFadeIn 0.2s ease-in-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes tooltipArrowFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =================================
    DYNAMIC ROTATING SECTIONS (FLUID)
    ================================= */

/* Wrapper that holds both the dynamic container and nav controls */
.dynamic-wrapper {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dynamic-container {
    position: relative;
    flex: 1 1 0; /* Fill remaining space inside wrapper */
    min-height: 0; /* CRITICAL: Allow shrinking */
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.dynamic-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px; /* Reduced padding */
    box-sizing: border-box; 
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.dynamic-section.active {
    opacity: 1;
    position: relative; 
    pointer-events: auto;
    z-index: 2;
}

.dynamic-section .section-content {
    width: 100%;
    flex: 1; /* Take remaining height below h2 */
    min-height: 0; 
    overflow-y: auto; /* Scroll internally if content is too tall */
    padding-bottom: 20px;
}

/* =================================
    NAVIGATION CONTROLS
    ================================= */

/* Navigation Controls Container */
.navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 6px 0;
    margin-top: 0;
    flex-shrink: 0; /* Never grow or shrink — always exact height */
}

/* Indicators */
.indicators {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: var(--subtle-text-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    background-color: var(--heading-color);
    transform: scale(1.4);
}

.indicator:hover {
    background-color: var(--heading-color);
    transform: scale(1.4);
}

/* Progress ring for active indicator */
.indicator.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--heading-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--heading-color);
    border-right-color: var(--heading-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    animation: progressRing 7s linear infinite;
}

@keyframes progressRing {
    0% {
        transform: translate(-50%, -50%) rotate(-90deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(270deg);
    }
}

.control-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--button-primary-hover-background);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.control-button:hover {
    transform: scale(1.1);
    box-shadow: var(--card-shadow-hover);
}

/* =================================
    CHART STYLES (FLUID)
    ================================= */

.chart-container {
    width: 100%;
    height: 400px; /* Change from calc(100% - 60px) to a fixed height */
    margin: 0 auto;
    background-color: transparent; /* Removed background */
    padding: 0; /* Removed padding */
    border-radius: 0; /* Removed border radius */
    box-shadow: none; /* Removed shadow */
    position: relative;
    box-sizing: border-box;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ================================= 
    DATABASE STATS / CARDS 
   ================================= */ 

/* NEW: Consistent card wrapper for all dynamic sections */
.section-content-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* Ensure section-content fills the card properly */
.section-content-card .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow shrinking */
}

/* Chart container adjustments for card wrapper */
.section-content-card .chart-container {
    flex: 1;
    min-height: 0;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 20px;
    height: 100%; /* Fill space */
}

.stat-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 0px 0px 0px 10px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
}

/* --- FIX FOR OVERSIZED SVG ICONS --- */
.stat-header svg.stat-icon {
    width: 20px;  /* Explicitly set the width */
    height: 20px; /* Explicitly set the height for a square icon */
    /* Ensure the color adapts to the current theme */
    color: var(--heading-color); 
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-heading-color), var(--heading-color));
}

.stat-card.featured {
    background: linear-gradient(135deg, var(--card-heading-color), var(--primary-color, var(--heading-color)));
    color: white;
}
.stat-card.featured h3, .stat-card.featured p { color: white; }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--card-heading-color);
}

/* Multi-Stat adjustments */
.multi-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
	align-items: start;
}
.stat-card.multi-stat {
    height: auto !important;
}
.mini-stat-number { font-size: 1.5em; font-weight: bold; }

/* Random Game/Company Cards - now inside section-content-card */
.section-content-card .random-game-card {
    background: transparent; /* Remove background since parent card has it */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-content-card .random-game-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-title, .company-name {
    font-size: 1.8em;
    color: var(--heading-color);
    margin-bottom: 15px;
    text-align: left;
}

.game-meta-horizontal {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 20px;
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.95em;
}
/* =================================
    FOOTER STYLES (VISIBLE & SCROLL-SAFE)
    ================================= */

.site-footer {
    background-color: var(--card-background); 
    border-top: 1px solid var(--border-color);
    color: var(--subtle-text-color);
    padding: 10px 20px; 
    font-size: 0.85em;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); 
}

/* On the homepage, footer sits inline between hero and dynamic sections */
main.scrolless-layout .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 -20px;
    box-shadow: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 8px 20px;
    z-index: 1;
}

/* Inline footer used exclusively on the homepage between hero and dynamic sections */
.site-footer-inline {
    flex-shrink: 0;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--subtle-text-color);
    font-size: 0.85em;
    padding: 8px 0;
    margin: 0 -20px;
    width: calc(100% + 40px);
    box-sizing: border-box;
}

.site-footer-inline .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-footer-inline a {
    color: var(--subtle-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-inline a:hover {
    color: var(--heading-color);
}

/* Override for the plain <footer> tag when inside the homepage scrolless layout */
main.scrolless-layout footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto;
    flex-shrink: 0;
    margin: 0 -20px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--footer-border-color);
    box-shadow: none;
    z-index: 1;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%; 
    margin: 0 auto;
}

.site-footer a {
    color: var(--subtle-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--heading-color);
}

/* =================================
    RESPONSIVE DESIGN 
    ================================= */

/* Large Screens */
@media (min-width: 1400px) {
    .hero-text h1 {
        font-size: 3.5em;
    }

    .hero-text p {
        font-size: 1.3em;
    }
}

/* Tablets / Small Laptops */
@media (max-width: 992px) {
    body {
        overflow: auto; /* Enable scroll on smaller devices */
        height: auto;
    }
    
    main.scrolless-layout {
        height: auto; /* Allow growth */
        overflow: visible;
        display: block;
    }

    .hero-section-scrolless {
        height: auto;
        flex: none;
        min-height: 300px;
    }

    .dynamic-wrapper {
        flex: none;
        display: block;
    }

    .dynamic-container {
        height: 600px; /* Fixed height fallback */
        flex: none;
        min-height: 0;
    }
    
    .chart-container {
        height: 400px; /* Fixed height for chart */
    }

    .hero-content {
        padding: 30px;
    }

    .hero-text h1 {
        font-size: 2.2em;
    }

    .hero-text p {
        font-size: 1.1em;
    }
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns */
    gap: 20px;
}

/* Mobile */
@media (max-width: 600px) {
    .navigation-controls {
        gap: 15px;
    }
    
    .indicators {
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .control-button {
        width: 35px;
        height: 35px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }
}
/* --- Total Titles card: recent activity pills --- */
.stat-recent-activity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
	margin-bottom: 8px;
}

.stat-activity-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 1.4;
}

.stat-activity-pill:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.stat-activity-new {
    background: color-mix(in srgb, var(--success-color) 18%, transparent);
    color: var(--success-color);
    border: 1px solid color-mix(in srgb, var(--success-color) 35%, transparent);
}

.stat-activity-updated {
    background: color-mix(in srgb, var(--info-color) 18%, transparent);
    color: var(--info-color);
    border: 1px solid color-mix(in srgb, var(--info-color) 35%, transparent);
}

.stat-activity-label {
    font-size: 0.68rem;
    color: var(--subtle-text-color);
    margin-left: 2px;
}
.mini-stat .stat-recent-activity {
    margin-top: 5px;
    margin-bottom: 0;
    gap: 4px;
}

.mini-stat .stat-activity-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
}