/**
 * Custom CSS for American Veterans Rebuilding (AVR)
 * Following Pico CSS philosophy: semantic-first, minimal classes
 * Army-themed color scheme
 */

/* =============================================================================
   PICO CSS VARIABLE OVERRIDES
   https://picocss.com/docs/css-variables
   =============================================================================
 */

[data-theme="light"],
:root:not([data-theme="dark"]),
:host:not([data-theme="dark"]) {
    --pico-primary: #ffb627;
    --pico-primary-background: #ffb627;
    --pico-primary-border: #ffb627;
    --pico-primary-underline: rgba(255, 182, 39, 0.5);
    --pico-primary-hover: #e5a324;
    --pico-primary-hover-background: #e5a324;
    --pico-primary-hover-border: #e5a324;
    --pico-primary-hover-underline: #e5a324;
    --pico-primary-focus: rgba(255, 182, 39, 0.5);
    --pico-primary-inverse: #ffffff;

    --pico-contrast: #d2691e;
    --pico-contrast-background: #d2691e;
    --pico-contrast-border: #d2691e;
    --pico-contrast-underline: rgba(210, 105, 30, 0.5);
    --pico-contrast-hover: #b8571a;
    --pico-contrast-hover-background: #b8571a;
    --pico-contrast-hover-border: #b8571a;
    --pico-contrast-hover-underline: #b8571a;
    --pico-contrast-focus: rgba(210, 105, 30, 0.5);
    --pico-contrast-inverse: #ffffff;

    --pico-secondary: #4a5d23;
    --pico-secondary-background: #4a5d23;
    --pico-secondary-border: #4a5d23;
    --pico-secondary-underline: rgba(74, 93, 35, 0.5);
    --pico-secondary-hover: #3a4a1c;
    --pico-secondary-hover-background: #3a4a1c;
    --pico-secondary-hover-border: #3a4a1c;
    --pico-secondary-hover-underline: #3a4a1c;
    --pico-secondary-focus: rgba(74, 93, 35, 0.25);
    --pico-secondary-inverse: #ffffff;

    --pico-background-color: #b8bcc2;
    --pico-card-background-color: #ffffff;
    --pico-card-sectional-background-color: #f8f9fa;
    --pico-card-border-color: rgba(74, 93, 35, 0.4);
    --pico-card-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
    --pico-form-element-background-color: #f8f9fa;
    --pico-form-element-border-color: rgba(74, 93, 35, 0.35);
    --pico-border-width: 2px;
    
    --separator-color: #d0d4d9;

    --pico-spacing: 1rem;
    --pico-typography-spacing-vertical: 1.5rem;
    --pico-form-element-spacing-vertical: 0.75rem;
    --pico-form-element-spacing-horizontal: 1rem;
    --pico-border-radius: 0.375rem;
    --pico-outline-width: 2px;
    --pico-font-weight: 400;
    --pico-line-height: 1.6;
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme]),
    :host:not([data-theme]) {
        --pico-primary: #ffb627;
        --pico-primary-background: #ffb627;
        --pico-primary-border: #ffb627;
        --pico-primary-underline: rgba(255, 182, 39, 0.5);
        --pico-primary-hover: #ffc952;
        --pico-primary-hover-background: #e5a324;
        --pico-primary-hover-border: #e5a324;
        --pico-primary-hover-underline: #ffc952;
        --pico-primary-focus: rgba(255, 182, 39, 0.375);
        --pico-primary-inverse: #ffffff;

        --pico-contrast: #ff8c42;
        --pico-contrast-background: #d2691e;
        --pico-contrast-border: #d2691e;
        --pico-contrast-underline: rgba(255, 140, 66, 0.5);
        --pico-contrast-hover: #ffa366;
        --pico-contrast-hover-background: #e67429;
        --pico-contrast-hover-border: #e67429;
        --pico-contrast-hover-underline: #ffa366;
        --pico-contrast-focus: rgba(255, 140, 66, 0.375);
        --pico-contrast-inverse: #ffffff;

        --pico-secondary: #6b7c32;
        --pico-secondary-background: #4a5d23;
        --pico-secondary-border: #4a5d23;
        --pico-secondary-underline: rgba(107, 124, 50, 0.5);
        --pico-secondary-hover: #7a8d3b;
        --pico-secondary-hover-background: #5a6629;
        --pico-secondary-hover-border: #5a6629;
        --pico-secondary-hover-underline: #7a8d3b;
        --pico-secondary-focus: rgba(107, 124, 50, 0.25);
        --pico-secondary-inverse: #ffffff;

        --pico-background-color: #050810;
        --pico-card-background-color: #1f2933;
        --pico-card-sectional-background-color: #161b22;
        --pico-card-border-color: rgba(74, 93, 35, 0.5);
        --pico-card-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
        --pico-form-element-background-color: #0d1117;
        --pico-form-element-border-color: rgba(74, 93, 35, 0.5);
        --pico-border-width: 2px;
        
        --separator-color: #3a4452;
    }
}

[data-theme="dark"] {
    --pico-primary: #ffb627;
    --pico-primary-background: #ffb627;
    --pico-primary-border: #ffb627;
    --pico-primary-underline: rgba(255, 182, 39, 0.5);
    --pico-primary-hover: #ffc952;
    --pico-primary-hover-background: #e5a324;
    --pico-primary-hover-border: #e5a324;
    --pico-primary-hover-underline: #ffc952;
    --pico-primary-focus: rgba(255, 182, 39, 0.375);
    --pico-primary-inverse: #ffffff;

    --pico-contrast: #ff8c42;
    --pico-contrast-background: #d2691e;
    --pico-contrast-border: #d2691e;
    --pico-contrast-underline: rgba(255, 140, 66, 0.5);
    --pico-contrast-hover: #ffa366;
    --pico-contrast-hover-background: #e67429;
    --pico-contrast-hover-border: #e67429;
    --pico-contrast-hover-underline: #ffa366;
    --pico-contrast-focus: rgba(255, 140, 66, 0.375);
    --pico-contrast-inverse: #ffffff;

    --pico-secondary: #6b7c32;
    --pico-secondary-background: #4a5d23;
    --pico-secondary-border: #4a5d23;
    --pico-secondary-underline: rgba(107, 124, 50, 0.5);
    --pico-secondary-hover: #7a8d3b;
    --pico-secondary-hover-background: #5a6629;
    --pico-secondary-hover-border: #5a6629;
    --pico-secondary-hover-underline: #7a8d3b;
    --pico-secondary-focus: rgba(107, 124, 50, 0.25);
    --pico-secondary-inverse: #ffffff;

    --pico-background-color: #0c1419;
    --pico-card-background-color: #2a3744;
    --pico-card-sectional-background-color: #1f2933;
    --pico-card-border-color: rgba(74, 93, 35, 0.5);
    --pico-card-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
    --pico-form-element-background-color: #1f2933;
    --pico-form-element-border-color: rgba(74, 93, 35, 0.5);
    --pico-border-width: 2px;
    
    --separator-color: #3a4452;
}

/* =============================================================================
   TYPOGRAPHY - Semantic elements, no utility classes
   =============================================================================
 */

h2, h3, h4 {
    color: var(--pico-primary);
}

h3 a, h4 a {
    color: var(--pico-primary);
    text-decoration: none;
}

h3 a:hover, h4 a:hover {
    color: var(--pico-primary-hover);
    text-decoration: underline;
}

/* =============================================================================
   BUTTON STYLES - Consistent borders across all button types
   =============================================================================
 */

button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border-width: 2px;
}

button.outline,
[role="button"].outline,
a[role="button"].outline {
    border-width: 2px;
}

button.secondary,
[role="button"].secondary,
a[role="button"].secondary {
    border-width: 2px;
}

button.contrast,
[role="button"].contrast,
a[role="button"].contrast {
    border-width: 2px;
}

/* =============================================================================
   HTMX LOADING INDICATORS
   =============================================================================
 */

.htmx-indicator {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

#donation-loading,
#bulk-loading {
    display: inline-block;
    margin-left: 0.5rem;
    font-style: italic;
    color: var(--pico-muted-color);
}

/* =============================================================================
   AVR HEADER & NAVIGATION - Brand-specific styling
   =============================================================================
 */

.avr-header {
    background-color: var(--pico-card-background-color);
    border-bottom: 3px solid var(--separator-color);
    padding: calc(var(--pico-spacing) * 1.5);
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: calc(var(--pico-spacing) * 1.5);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 8rem;
}

.header-left,
.header-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.armed-services-logo {
    max-height: 6rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.main-logo {
    height: 7.5rem;
    width: auto;
    margin-bottom: calc(var(--pico-spacing) * 0.75);
}

.tagline {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--pico-muted-color);
    margin: 0;
    max-width: 300px;
    line-height: 1.4;
}

.header-right {
    gap: calc(var(--pico-spacing) * 0.75);
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon img {
    height: 2.5rem;
    width: 2.5rem;
    object-fit: contain;
}

.avr-navigation {
    background-color: var(--pico-background-color);
    border-bottom: 3px solid var(--separator-color);
    padding: calc(var(--pico-spacing) * 1.25) 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: calc(var(--pico-spacing) * 2);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pico-spacing);
    flex-wrap: wrap;
}

nav.avr-navigation .nav-links a[role="button"] {
    font-size: 0.875rem;
    padding: calc(var(--pico-spacing) * 0.625) calc(var(--pico-spacing) * 1.25);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--pico-spacing) * 0.75);
    }
    
    .armed-services-logo {
        max-height: 4rem;
    }
    
    .main-logo {
        height: 5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: var(--pico-spacing);
    }
    
    .nav-links a[role="button"] {
        font-size: 0.75rem;
        padding: calc(var(--pico-spacing) * 0.375) calc(var(--pico-spacing) * 0.75);
    }
}

/* =============================================================================
   SEMANTIC PAGE SECTIONS - Use IDs instead of classes
   =============================================================================
 */

#mission {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background-color: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
}

#mission p {
    font-size: 1.1rem;
    line-height: 1.6;
}

#blog,
#team,
#projects,
#donate,
#contact {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--separator-color);
}

#blog .text-muted:first-of-type {
    margin-bottom: 2.5rem;
}

#blog > div:last-child {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pico-card-border-color);
}

#team .grid:first-of-type {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

#projects h3 {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pico-card-border-color);
}

.grid-responsive-2 {
    margin-top: 3rem;
    gap: 2rem;
}

.grid-responsive-2 article {
    border: 2px solid var(--pico-card-border-color);
    padding: 1.5rem;
}

.donate-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.donation-impact {
    margin-bottom: 2rem;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.donation-subtitle {
    margin-bottom: 1.5rem;
}

.donation-amounts,
.donation-frequency,
.donor-info,
.address-info {
    margin-bottom: 1.5rem;
}

.donation-submit {
    width: 100%;
}

.donation-submit + small {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.impact-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pico-card-border-color);
}

.impact-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

#error-message {
    display: none;
    color: var(--pico-del-color);
    padding: 10px;
    margin-bottom: 20px;
    background-color: var(--pico-form-element-invalid-focus-color);
    border-radius: var(--pico-border-radius);
}

#contact .grid {
    margin-top: 2rem;
}

#contact section:not(:last-child) {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--pico-card-border-color);
}

.social-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.social-links img {
    width: 48px;
    height: 48px;
}

@media (max-width: 768px) {
    .donation-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   DONATION AMOUNT BUTTONS - Simplified from 100+ lines
   =============================================================================
 */

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-btn {
    background-color: transparent;
    border: 2px solid var(--pico-primary);
    color: var(--pico-primary);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background-color: var(--pico-primary);
    color: var(--pico-primary-inverse);
}

.donation-disclaimer {
    display: block;
    text-align: center;
    color: var(--pico-muted-color);
    margin-top: 1rem;
}

.tax-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
    box-shadow: var(--pico-card-box-shadow);
}

.donation-result {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background-color: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
    box-shadow: var(--pico-card-box-shadow);
}

.result-icon {
    font-size: 72px;
    color: var(--pico-primary);
    margin-bottom: 1.5rem;
}

.result-icon.error {
    color: var(--pico-del-color);
}

.result-message {
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.result-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.social-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.social-links img {
    width: 48px;
    height: 48px;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-section:last-child {
    margin-bottom: 0;
}

.contact-result {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background-color: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
    box-shadow: var(--pico-card-box-shadow);
}

/* =============================================================================
   BLOG CONTENT
   =============================================================================
 */

.blog-header {
    margin-top: 2rem;
}

.blog-empty {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
    box-shadow: var(--pico-card-box-shadow);
}

.blog-empty a {
    margin-top: 1rem;
}

.blog-posts {
    margin-top: 2rem;
}

.blog-post-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
    box-shadow: var(--pico-card-box-shadow);
}

.blog-post-detail {
    margin-top: 2rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-content {
    line-height: 1.8;
}

.post-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: var(--pico-border-radius);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--separator-color);
}

.content {
    margin: var(--pico-typography-spacing-vertical) 0;
    line-height: 1.6;
}

.content h1,
.content h2,
.content h3 {
    margin-top: calc(var(--pico-typography-spacing-vertical) * 1.5);
    margin-bottom: var(--pico-typography-spacing-vertical);
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pico-border-radius);
}

/* =============================================================================
   ADMIN PANEL - Minimal structural classes only
   =============================================================================
 */

.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 var(--pico-spacing);
}

.admin-container.narrow {
    max-width: 600px;
}

.admin-card {
    background-color: var(--pico-card-sectional-background-color);
    border-radius: var(--pico-border-radius);
    border: 2px solid var(--pico-card-border-color);
    box-shadow: var(--pico-card-box-shadow);
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-nav a {
    color: var(--pico-primary);
    text-decoration: none;
}

.admin-nav a:hover {
    text-decoration: underline;
}

button.small,
a[role="button"].small {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.admin-empty {
    color: var(--pico-muted-color);
    text-align: center;
    padding: 2rem;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead tr {
    border-bottom: 2px solid var(--separator-color);
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.admin-table th.admin-table-actions {
    text-align: right;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--pico-card-border-color);
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: var(--pico-card-sectional-background-color);
}

.admin-table td {
    padding: 0.75rem 1rem;
}

.post-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-excerpt {
    font-size: 0.875rem;
    color: var(--pico-muted-color);
}

.post-date {
    color: var(--pico-muted-color);
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--pico-border-radius);
}

.status-badge.published {
    background-color: rgba(74, 93, 35, 0.2);
    color: var(--pico-secondary);
}

.status-badge.draft {
    background-color: rgba(255, 182, 39, 0.2);
    color: var(--pico-primary);
}

.post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.post-actions a {
    color: var(--pico-primary);
    text-decoration: none;
}

.post-actions a:hover {
    text-decoration: underline;
}

.delete-action {
    background: none;
    border: none;
    color: var(--pico-del-color);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.delete-action:hover {
    text-decoration: underline;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.error-message {
    background-color: rgba(255, 82, 82, 0.1);
    border: 2px solid var(--pico-del-color);
    color: var(--pico-del-color);
    padding: 1rem;
    border-radius: var(--pico-border-radius);
    margin-bottom: 1.5rem;
}

.full-width {
    width: 100%;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .admin-actions {
        width: 100%;
    }
    
    .admin-actions a,
    .admin-actions button {
        flex: 1;
        text-align: center;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions a,
    .form-actions button {
        width: 100%;
    }
}

/* =============================================================================
   FORM VALIDATION
   =============================================================================
 */

input:valid:not(:user-valid),
textarea:valid:not(:user-valid),
input:invalid:not(:user-invalid),
textarea:invalid:not(:user-invalid) {
    box-shadow: none;
}

/* =============================================================================
   QUILL EDITOR OVERRIDES - Reset Pico interference
   =============================================================================
 */

.ql-toolbar button {
    all: revert;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    height: 24px;
    padding: 3px 5px;
    width: 28px;
}

.ql-toolbar .ql-picker,
.ql-toolbar .ql-picker-label,
.ql-toolbar .ql-picker-options {
    all: revert;
}

.ql-toolbar .ql-picker-options {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    padding: 3px 5px;
    z-index: 1000;
}

.ql-toolbar .ql-picker.ql-expanded .ql-picker-options {
    display: block;
}

.ql-toolbar .ql-picker-item {
    cursor: pointer;
    display: block;
    padding: 5px;
    color: #000;
}

.ql-container.ql-snow,
.ql-editor {
    background-color: var(--pico-background-color);
    font-size: 1.125rem;
    line-height: 1.7;
}

.ql-toolbar.ql-snow {
    background-color: var(--pico-card-background-color);
    border-color: var(--pico-card-border-color);
    border-width: 2px;
}

/* =============================================================================
   TEAM PAGE COMPONENTS
   =============================================================================
*/

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--pico-typography-spacing-vertical);
}

.team-members .grid {
    margin-bottom: 2rem;
}

.team-card {
    margin-bottom: 0;
    overflow: hidden;
}

.team-card-image {
    position: relative;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(to right, 
        var(--pico-card-background-color), 
        #e8e8e8 20%, 
        #e8e8e8 80%, 
        var(--pico-card-background-color));
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    padding: 2rem 1.5rem 1rem;
    color: #ffffff;
}

.team-card-overlay small {
    display: block;
    color: var(--pico-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.team-card-overlay h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-card-content {
    padding: 1.5rem;
}

.team-card-content p {
	margin-bottom: 0;
	line-height: var(--pico-line-height);
}

/* =============================================================================
   MARKDOWN CONTENT RENDERING
   =============================================================================
*/

.post-content pre {
	background-color: var(--pico-form-element-background-color);
	padding: 1rem;
	overflow-x: auto;
	border-radius: var(--pico-border-radius);
	border: 1px solid var(--pico-card-border-color);
}

.post-content code {
	background-color: var(--pico-form-element-background-color);
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	font-size: 0.875em;
}

.post-content pre code {
	background-color: transparent;
	padding: 0;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.post-content table th,
.post-content table td {
	padding: 0.75rem;
	border: 1px solid var(--pico-card-border-color);
}

.post-content table th {
	background-color: var(--pico-card-sectional-background-color);
	font-weight: 600;
}

.post-content blockquote {
	border-left: 4px solid var(--pico-primary);
	padding-left: 1rem;
	margin: 1.5rem 0;
	color: var(--pico-muted-color);
	font-style: italic;
}

.post-content hr {
	margin: 2rem 0;
	border-color: var(--separator-color);
}

.post-content ul,
.post-content ol {
	margin: 1rem 0;
	padding-left: 2rem;
}

.post-content li {
	margin: 0.5rem 0;
}

