/*
Theme Name: Richard
Theme URI: https://richard-design.example.com
Author: Richard Design System
Author URI: https://richard-design.example.com
Description: A stark, typography-driven WordPress theme based on the Richard Design System.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: richard-theme
*/

/* Richard Theme Component Styles */

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.richard-skip-link {
    background: var(--surface-page, #0a0a0a);
    color: var(--color-white, #ffffff);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    left: var(--page-gutter);
    padding: 8px 12px;
    position: absolute;
    top: 0;
    transform: translateY(-120%);
    transition: transform 0.15s ease-out;
    z-index: 1000;
}

.richard-skip-link:focus,
.richard-skip-link:focus-visible {
    transform: translateY(8px);
}

.richard-btn {
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    border-radius: 999px;
    border: 1.5px solid var(--button-border, var(--color-white));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease-out, color 0.15s ease-out;
    white-space: normal;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 8px 20px;
    max-width: min(100%, 18rem);
    min-height: 38px;
    text-align: center;
    overflow-wrap: anywhere;
}

.richard-btn--filled {
    background: var(--button-filled-bg, var(--color-white));
    color: var(--button-filled-text, var(--color-black));
    border-color: var(--button-filled-bg, var(--color-white));
}

.richard-btn--filled:hover {
    background: var(--button-filled-hover-bg, var(--color-cream));
    border-color: var(--button-filled-hover-bg, var(--color-cream));
}

.richard-btn--outline {
    background: transparent;
    color: var(--button-text, var(--color-white));
    border-color: var(--button-border, var(--color-white));
}

.richard-btn--outline:hover {
    background: var(--button-hover-bg, var(--color-white));
    color: var(--button-hover-text, var(--color-black));
}

.richard-divider {
    border: none;
    border-top: 1px solid var(--border-divider);
    margin: var(--space-6) 0 var(--space-3);
}

.richard-divider.richard-hero-divider {
    margin: var(--space-2) 0 var(--space-3);
}

.richard-metadata-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: nowrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
    padding: 0 var(--page-gutter);
}

.richard-hero-stage .richard-metadata-bar {
    background: var(--surface-page, #0a0a0a);
    box-sizing: border-box;
    color: var(--color-white);
    flex: 0 0 auto;
    margin-top: calc(var(--space-4) * -1);
    padding-bottom: var(--space-6);
    position: relative;
    width: 100%;
    z-index: 3;
}

.richard-metadata-bar > * {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.richard-site-header,
.richard-primary-navigation,
.richard-brand-lockup {
    min-width: 0;
}

.richard-brand-lockup {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.richard-theme-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    min-height: 32px;
    min-width: 32px;
    padding: 0;
}

.richard-theme-icon-button svg {
    height: 1.1rem;
    width: 1.1rem;
}

.richard-header-clock {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.18em;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
}

/* Flip Clock Component Styles */
.richard-flip-group {
    display: flex;
    gap: 0.08em;
    align-items: center;
}

.richard-flip-digit {
    position: relative;
    width: 0.9em;
    height: 1.3em;
    background: var(--surface-page);
    border: 1px solid var(--border-divider);
    border-radius: 3px;
    perspective: 4em;
    font-size: 1.15em;
    font-weight: 500;
}

/* Horizontal split line across the middle */
.richard-flip-digit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 5;
    transform: translateY(-50%);
}

/* Base Part: Static Top (shows the NEXT value behind the flipping top) */
.richard-flip-digit::before {
    content: attr(data-next);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    line-height: 1.3em;
    background: var(--surface-page);
    color: var(--color-white);
    border-radius: 3px 3px 0 0;
    z-index: 1;
}

/* Base Part: Static Bottom (shows the CURRENT value) */
.richard-flip-digit-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    line-height: 1.3em;
    background: var(--surface-page);
    color: var(--color-white);
    border-radius: 0 0 3px 3px;
    z-index: 1;
}

.richard-flip-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Only the top half flips */
    transform-style: preserve-3d;
    transform-origin: bottom;
    z-index: 3;
}

.richard-flip-digit.is-flipping .richard-flip-card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateX(-180deg);
}

.richard-flip-card-top,
.richard-flip-card-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    backface-visibility: hidden;
    overflow: hidden;
    background: var(--surface-page);
    color: var(--color-white);
}

/* Flap Top Face: CURRENT Value (top half) */
.richard-flip-card-top {
    align-items: flex-start;
    line-height: 1.3em;
    border-radius: 3px 3px 0 0;
    z-index: 2;
}

/* Flap Bottom Face: NEXT Value (bottom half) */
.richard-flip-card-bottom {
    align-items: flex-end;
    line-height: 1.3em;
    transform: rotateX(180deg);
    border-radius: 3px 3px 0 0; /* Will be at bottom after flip */
}

.richard-flip-divider {
    font-size: 0.9em;
    opacity: 0.6;
    margin: 0 -0.02em;
}

.richard-flip-meridiem {
    font-size: 0.75em;
    margin-left: 0.35em;
    font-weight: 500;
}

.richard-hero-stage {
    display: inline-block;
    isolation: isolate;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

.richard-hero-wordmark {
    position: relative;
    z-index: 1;
}

.richard-header-nav-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: 0.8rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.richard-menu-toggle {
    display: none;
}

.richard-header-nav-list li {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
}

/* Pipe separator for desktop */
.richard-header-nav-list li:not(:last-child)::after {
    content: '|';
    margin-left: 8px;
    opacity: 0.5;
}

.richard-header-nav-list a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease-out;
}

.richard-header-nav-list a:hover {
    opacity: 0.7;
}

/**
 * Layout Grid System
 */
.richard-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 992px) {
    .richard-layout-grid--left {
        grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    }
    .richard-layout-grid--right {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    }
}

@media (min-width: 1200px) {
    .richard-layout-grid--both {
        grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) minmax(220px, 320px);
    }
}

@media (max-width: 991px) {
    .richard-layout-grid--left .richard-layout-primary,
    .richard-layout-grid--right .richard-layout-primary {
        order: 1;
    }
    .home .richard-layout-primary {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .richard-layout-grid--left .richard-sidebar,
    .richard-layout-grid--right .richard-sidebar {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .richard-layout-grid--left .richard-sidebar .widget,
    .richard-layout-grid--right .richard-sidebar .widget {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1199px) {
    .richard-layout-grid--both .richard-layout-primary {
        order: 1;
    }
    .home .richard-layout-grid--both .richard-layout-primary {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .richard-layout-grid--both .richard-sidebar--left {
        order: 2;
    }
    .richard-layout-grid--both .richard-sidebar--right {
        order: 3;
    }
    .richard-layout-grid--both .richard-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .richard-layout-grid--both .richard-sidebar .widget {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.richard-main-content,
.richard-content,
.richard-sidebar {
    min-width: 0;
}

.richard-sidebar .widget {
    margin-bottom: var(--space-8);
}

.richard-sidebar .widget:last-child {
    margin-bottom: 0;
}

.richard-sidebar .widget-title {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

/**
 * Global Footer
 */
.richard-global-footer {
    border-top: 1px solid var(--border-divider);
    padding: var(--space-12) var(--page-gutter);
    margin-top: var(--space-16);
}

.richard-global-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-12);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
}

.richard-global-footer .widget-title {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.richard-global-footer .widget {
    color: var(--text-primary);
}

/**
 * Content and block resilience
 */
.richard-content,
.richard-widget,
.richard-global-footer {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.richard-content > *:first-child {
    margin-top: 0;
}

.richard-content > *:last-child {
    margin-bottom: 0;
}

.richard-content a,
.richard-widget a,
.richard-global-footer a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.richard-content img,
.richard-content video,
.richard-content iframe,
.richard-content embed,
.richard-content object,
.richard-widget img,
.richard-widget iframe {
    max-width: 100%;
}

.richard-content img,
.richard-widget img {
    height: auto;
}

.richard-content figure {
    margin: 0 0 var(--space-6);
    max-width: 100%;
}

.richard-content figcaption,
.richard-content .wp-caption-text {
    color: var(--text-secondary);
    font-size: var(--text-mono-xs);
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-2);
}

.richard-content table,
.richard-widget table {
    border-collapse: collapse;
    width: 100%;
}

.richard-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.richard-content th,
.richard-content td,
.richard-widget th,
.richard-widget td {
    border: 1px solid var(--border-divider);
    padding: var(--space-2);
    text-align: left;
    vertical-align: top;
}

.richard-content pre,
.richard-content code {
    white-space: pre-wrap;
}

.richard-content .alignwide,
.richard-content .alignfull {
    max-width: 100%;
}

.richard-content .wp-block-quote,
.richard-content blockquote {
    border-left: 1px solid var(--color-white);
    margin-left: 0;
    padding-left: var(--space-4);
}

.richard-content .wp-block-separator {
    border: 0;
    border-top: 1px solid var(--border-divider);
}

.richard-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.richard-content .wp-block-button__link {
    border: 1.5px solid var(--button-filled-bg, var(--color-white));
    border-radius: var(--radius-pill);
    color: var(--button-filled-text, var(--color-black));
    background: var(--button-filled-bg, var(--color-white));
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: var(--text-mono-sm);
    letter-spacing: var(--tracking-wider);
    padding: 8px 20px;
    text-decoration: none;
}

@media (max-width: 700px) {
    .richard-site-header {
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: var(--space-2) !important;
        justify-content: space-between !important;
        padding: var(--space-4) var(--page-gutter) var(--space-5) !important;
    }

    .richard-brand-lockup {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 6px !important;
        justify-content: flex-start;
        min-width: 0;
        width: auto;
    }

    .richard-header-clock {
        flex: 0 1 auto;
        font-size: clamp(0.58rem, 2.4vw, 0.72rem);
        gap: 0.12em;
        min-width: 0;
    }

    .richard-theme-icon-button {
        flex: 0 0 auto;
        min-height: 26px;
        min-width: 26px;
    }

    .richard-theme-icon-button svg {
        height: 0.9rem;
        width: 0.9rem;
    }

    .richard-primary-navigation {
        align-items: center;
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        gap: var(--space-2);
        justify-content: flex-end;
        margin-left: auto;
        min-width: max-content;
        width: auto;
    }

    .richard-menu-toggle {
        align-self: center;
        display: inline-flex;
        font-size: 0.625rem;
        min-height: 22px;
        padding: 4px 10px;
    }

    .richard-header-nav-list {
        align-items: center;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        font-size: clamp(0.62rem, 2.6vw, 0.76rem);
        gap: 6px;
        justify-content: flex-end;
        min-width: max-content;
        width: auto;
    }

    .richard-primary-navigation.is-js-enabled:not(.is-open) .richard-header-nav-list {
        display: none;
    }

    .richard-header-nav-list li {
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    /* Hide pipes on mobile */
    .richard-header-nav-list li:not(:last-child)::after {
        display: none;
    }

    .richard-metadata-bar {
        gap: var(--space-3);
        font-size: 0.625rem;
        letter-spacing: 0.06em;
    }

    .richard-hero {
        padding-top: var(--space-2) !important;
    }

}


/* ─── Headings ───────────────────────────────────────────────────
   Hero wordmark in header.php uses inline styles (highest specificity)
   and is unaffected by these rules.
   ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-snug);
    color: var(--color-white);
    margin-top: 0;
}

h1 { font-size: var(--text-display-lg); }
h2 { font-size: var(--text-display-md); }
h3 { font-size: var(--text-mono-xl); }
h4 { font-size: var(--text-mono-lg); }
h5 { font-size: var(--text-mono-md); }
h6 { font-size: var(--text-mono-sm); }

/* ─── Pixel Text Effect ──────────────────────────────────────────
   Usage (HTML):      <span class="pixel-chars" data-charpx="TEXT">TEXT</span>
   Usage (shortcode): [pixel_text]TEXT[/pixel_text]
   The data-charpx attribute MUST exactly match the visible text.
   Override colours per-instance: style="--pixel-face:#fff; --pixel-rim:#888; --pixel-outline:#333"
   ─────────────────────────────────────────────────────────────── */
.pixel-chars {
    position: relative;
    isolation: isolate;
    font-family: var(--font-pixel, 'JerseyTen', monospace);
    font-weight: 700;
    font-size: clamp(60px, 12vw, 180px);
    color: var(--pixel-face, #ffff5d);
    line-height: 1.1;
}
.pixel-chars::after {
    content: attr(data-charpx);
    color: var(--pixel-rim, #ff4050);
    position: absolute;
    left: -0.015em;
    top: 0;
    z-index: -1;
}
.pixel-chars::before {
    content: attr(data-charpx);
    color: var(--pixel-outline, #602fd9);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;
    -webkit-text-stroke: 0.1em var(--pixel-outline, #602fd9);
}

/* Inverted variant — swaps rim and outline colours */
.pixel-chars--inverted::after {
    color: var(--pixel-outline, #602fd9);
}
.pixel-chars--inverted::before {
    color: var(--pixel-rim, #ff4050);
    -webkit-text-stroke-color: var(--pixel-rim, #ff4050);
}

/* Size variants — only override font-size; all other pixel styles inherit */
.pixel-chars--md {
    font-size: clamp(40px, 6vw, 60px);
}
.pixel-chars--sm {
    font-size: clamp(24px, 3.5vw, 36px);
}
.pixel-chars--sm::after {
    left: -0.02em;
    top: 0.08em;
}

.pixel-chars--xs {
    font-size: clamp(14px, 1.2vw, 18px);
}
.pixel-chars--xs::after {
    left: -0.01em; 
    top: 0.04em;
}
.pixel-chars--xs::before {
    -webkit-text-stroke-width: 0.04em;
}


/* Notepad Box Component */
.notepad-box {
    position: relative;
    background-color: #fcfbe3; /* Soft, warm cream/off-yellow */
    background-image: 
        linear-gradient(90deg, transparent 59px, #d08b8b 59px, #d08b8b 61px, transparent 61px), /* Red/Brown margin line */
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px); /* Horizontal lines */
    
    background-size: 100% 100%, 100% 2rem;
    background-repeat: no-repeat, repeat;
    background-position: 0 0, 0 6rem;
    
    /* Frame & Corners — Now fully rounded all around */
    border: 2px solid #ffffff;
    border-radius: 24px; 
    
    padding: 4rem 2rem 2rem 5rem; 
    
    font-family: var(--font-mono, monospace);
    line-height: 2rem;
    color: #111;
    box-shadow: none;
    margin-bottom: 2rem;
    /* Keep overflow visible so the tape can realistically bleed over the boundary */
    overflow: visible; 
}

/* Realistic Textured Masking Tape Effect */
.notepad-box::before {
    content: '';
    position: absolute;
    top: -14px;         /* Adjusted to bite perfectly into the rounded corner */
    left: 8px;          /* Slid over slightly to sit naturally over the curve */
    width: 115px;
    height: 36px;
    
    /* Semi-translucent classic tan/beige masking tape palette */
    background: linear-gradient(
        102deg, 
        rgba(222, 201, 160, 0.72) 0%, 
        rgba(235, 220, 185, 0.80) 40%, 
        rgba(228, 210, 172, 0.75) 85%,
        rgba(214, 192, 148, 0.70) 100%
    );
    
    transform: rotate(-13deg);
    z-index: 10;
    pointer-events: none;
    
    /* Layered drop shadow and inner depth for structural thickness */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 1px 1px rgba(0, 0, 0, 0.10),
        inset 0 0 4px rgba(255, 255, 255, 0.25);
    
    /* Micro-geometry to mimic a rough, hand-torn edge on both sides */
    clip-path: polygon(
        0% 12%, 3% 2%, 24% 5%, 48% 1%, 76% 4%, 96% 0%, 100% 14%, 
        99% 84%, 95% 98%, 72% 95%, 50% 99%, 22% 96%, 4% 100%, 0% 88%
    );
}

/* Mirrored Tape for Right Side */
.notepad-box::after {
    content: '';
    position: absolute;
    top: -14px;
    right: 8px;
    width: 115px;
    height: 36px;
    
    background: linear-gradient(
        102deg, 
        rgba(222, 201, 160, 0.72) 0%, 
        rgba(235, 220, 185, 0.80) 40%, 
        rgba(228, 210, 172, 0.75) 85%,
        rgba(214, 192, 148, 0.70) 100%
    );
    
    /* ScaleX(-1) mirrors everything: the gradient, shadows, and clip-path */
    transform: scaleX(-1) rotate(-13deg);
    z-index: 10;
    pointer-events: none;
    
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 1px 1px rgba(0, 0, 0, 0.10),
        inset 0 0 4px rgba(255, 255, 255, 0.25);
    
    clip-path: polygon(
        0% 12%, 3% 2%, 24% 5%, 48% 1%, 76% 4%, 96% 0%, 100% 14%, 
        99% 84%, 95% 98%, 72% 95%, 50% 99%, 22% 96%, 4% 100%, 0% 88%
    );
}

/* Title Area in Header Space */
.notepad-title {
    display: block;
    position: absolute;
    top: 2.2rem; /* Adjusted to sit on the 4rem line, clearing the body text below */
    left: 5rem;
    font-family: 'Shadows Into Light', cursive;
    font-weight: 700;
    font-size: 1.6rem; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #333;
    pointer-events: none;
    line-height: 1; 
}

.notepad-box .notepad-title.natural-marker {
    position: static;
    top: auto;
    left: auto;
    display: block;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 2rem;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #111;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.notepad-box .notepad-title.natural-marker + p,
.notepad-box .notepad-title.natural-marker + .wp-block-paragraph {
    margin-top: 0;
}

/* Handling nested paragraphs for multi-line blocks */
.notepad-box p {
    margin: 0 0 2rem 0;
    line-height: 2rem;
    padding: 0;
}

/* Remove bottom margin from the last paragraph so it doesn't break the bottom padding rhythm */
.notepad-box p:last-child {
    margin-bottom: 0;
}

/* ─── Retro XP Bar Widget ─────────────────────────────────────── */
.retro-xp-widget {
    max-width: 320px;
    margin: var(--space-4) 0;
    font-family: var(--font-pixel, 'JerseyTen', monospace);
}

.retro-xp-label {
    color: var(--text-secondary, #888);
    font-family: var(--font-mono, monospace);
    font-size: var(--text-mono-xs, 0.625rem);
    letter-spacing: var(--tracking-wide, 0.08em);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
}

.retro-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-1);
    color: var(--color-white, #fff);
    line-height: 1;
}

.retro-xp-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.retro-xp-percentage {
    font-size: 1.1rem;
}

.retro-xp-bar-container {
    border: 2px solid #888;
    background: #333;
    height: 16px;
    width: 100%;
    padding: 2px;
    box-sizing: border-box;
    position: relative;
}

.retro-xp-bar-fill {
    height: 100%;
    background-color: #ffcc00;
    /* Create the segmented look: 8px yellow, 2px dark gap */
    background-image: linear-gradient(to right, #ffcc00 80%, transparent 80%);
    background-size: 10px 100%;
    background-repeat: repeat-x;
    transition: width 0.3s ease-out;
}
