html, body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

:root {
    --bg-dark: #102c3f;       /* warm navy background */
    --primary: #FFFFFF;       /* coral accent */
    --secondary: #4ecca3;     /* mint accent */
    --text-light: #FFFFFF;    /* pure white text */
    --blurb: #f5f5f7;
    --badge: #ededee;
    --tab-dark: oklch(0.256 0 0);
    --badge-foreground: oklch(0.656 0 0);
    --blurb-foreground: oklch(0.31 0.006 285.885);
    --text-sm: 0.8rem;
    --text-md: 0.92rem;
    --text-lg: 1.025rem;
    --text-xl: 1.225rem;
    --text-2xl: 1.50rem;
}

.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 2rem;
    padding-bottom: 0rem;
    z-index: 5;
    border-top-left-radius: unset;
    border-top-right-radius: unset;
    border-bottom: unset;
}
    .modal-header .close-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }
.detail-modal {
    position: fixed;
    top: 50%; left: 50%;
    width: 90%; max-width: 64rem;
    max-height: 90vh;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex; flex-direction: column;
    overflow: hidden;
    z-index: 1060;
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
}
    .detail-modal.show {
        animation: dropIn 0.35s ease-out forwards;
    }
    
    /* Exit animation */
    .detail-modal.hide {
        animation: dropOut 0.35s ease-in forwards;
    }

/* Keyframes for drop-in */
@keyframes dropIn {
    0% {
        transform: translate(-50%, -60%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -48%) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Keyframes for drop-out (reverse) */
@keyframes dropOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -48%) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -60%) scale(0.8);
        opacity: 0;
    }
}

.blurb-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;      /* preserves a 16:9 frame */
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 0.25rem;
    position: relative;
}

/* fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16/9) {
    .blurb-image-container {
        height: 500px;
        max-height: 80vh;        /* shrink if viewport is shorter */
    }
}

.blurb-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blurb-header {
    color: oklch(0.556 0 0);
    font-size: var(--text-sm);
    line-height: 1.42;
    gap: 0.25rem;
}

.blurb-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem;
    padding-top: 0rem;
}

.blurb-content {
    background-color: var(--blurb);
    border-radius: 1.5rem;
    width: 100%;
    height: 100%;
}

.blurb-list {
    list-style: disc inside;
    margin: 0 0 2rem;
    padding: 0 1rem;
    font-size: 1rem;          /* adjust as needed */
    line-height: 1.6;
}

.blurb-item {
    margin-bottom: 0.75rem;
}

/* two columns on larger screens */
@media (min-width: 768px) {
    .blurb-list {
        column-count: 2;
        column-gap: 2rem;
    }
}

.blurb-description {
    color: var(--blurb-foreground);
    font-size: var(--text-md);
    line-height: 1.42;
}

.blurb-text {
    color: var(--blurb-foreground);
    font-size: var(--text-lg);
    
}

.tech-badge {
    background: var(--badge);
    color: var(--badge-foreground);
    padding: 0.3rem 0.6rem;
    border-radius: 1.5rem;
    font-size: 0.70rem;
    line-height: 1.42rem;
}

.blurb-container {
    padding: 1.50rem;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.content-container {
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2.75rem;
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.9),
            0 2px 4px -2px rgba(0, 0, 0, 0.06),
            0 8px 10px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

    .content-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

.tooltip {
    position: relative;
    display: inline-block;    /* shrink-wrap to your button */
}

/* the tooltip label */
.tooltip-text {
    position: absolute;
    bottom: 100%;             /* sit just above the button */
    left: 50%;
    transform: translateX(-50%) translateY(-0.5rem);
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

/* little arrow under the bubble */
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;                /* at bottom of the tooltip box */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.75) transparent transparent transparent;
}

/* show on hover/focus */
.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
    
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDki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jEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
