/* ══════════════════════════════════════════════════════════════════════════
   theme.web.css  —  Public-facing website component styles
   Will migrate to the production website as it matures.
   Prefix: web- (Web Preview Detail)
   ══════════════════════════════════════════════════════════════════════════ */
:root.web, body.web, .web{

    --web-font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --web-font-family-heading: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Color Variables */
    --web-color-primary: #750808;
    --web-color-primary-hover: #dc1010;
    --web-color-secondary: #95a5a6;
    --web-color-secondary-hover: #7f8c8d;
    --web-color-success: #27ae60;
    --web-color-warning: #f39c12;
    --web-color-danger: #e74c3c;
    --web-color-danger-hover: #c82333;
    --web-color-required: #dc3545;
    --web-color-bold: #750808;

    /* Spacing */
    --web-spacing-xxs: 0.12rem;
    --web-spacing-xs: 0.25rem;
    --web-spacing-sm: 0.5rem;
    --web-spacing-md: 1rem;
    --web-spacing-lg: 1.25rem;
    --web-spacing-xl: 1.5rem;
    
    /* Typography */
    --web-font-family-base: Arial, sans-serif;
    --web-font-size-sm: 0.8em;
    --web-font-size-base: 1em;
    --web-font-size-lg: 1.1em;
    --web-font-size-xl: 1.25rem;
    --web-font-size-xxl: 1.5rem;
    
    /* Border Radius */
    --web-border-radius-sm: 0.125rem;
    --web-border-radius-base: 0.25rem;
    --web-border-radius-md: 0.5rem;
    --web-border-radius-lg: 0.75rem;
    --web-border-radius-xl: 1rem;

   
    /* Transitions */
    --web-transition-fast: 0.2s ease;
    --web-transition-base: 0.3s ease;
    --web-transition-slow: 0.4s ease;
    
    /* Sidebar Dimensions */
    --web-sidebar-width: 16rem;
    --web-sidebar-max-width: 16rem;
    
    --web-bg-primary: #262626;
    --web-bg-secondary: #1d1d22;
    --web-bg-card:#1d1d22;

   
    /* Transitions */
    --web-transition-fast: 0.2s ease;
    --web-transition-base: 0.3s ease;
    --web-transition-slow: 0.4s ease;
    
    /* Sidebar Dimensions */
    --web-sidebar-width: 16rem;
    --web-sidebar-max-width: 16rem;

    /* Corner Bracket Styling - Light Theme */
    --web-bracket-thickness: 4px;
    --web-bracket-length: 1.5rem;

    --web-text-primary: #b7babc;
    --web-text-secondary: #7d7f81;
    --web-text-muted: #6c757d;
    --web-text-light: #ced4da;
    --web-color-alternate: #333333;
    --web-text-link: var(--web-color-bold);
    --web-text-hover: color-mix(in srgb, var(--web-color-bold) 80%, white);
}

.web a, .web a:focus, .web a:hover, .web a:active, .web a:visited {
    color: var(--web-text-link);
    text-decoration: none;
}
.web a:focus, .web a:hover, .web a:active {
    color: var(--web-text-hover);
}

/* ── Web Preview Detail: outer container ────────────────────────────────── */
.web-container {
    background: var(--web-bg-primary, #262626);
    /*color: var(--web-text-primary, #e0e0e0);*/
    overflow: hidden;
    border-radius: var(--web-radius-md, 6px);
    margin:0.5rem;
    margin-top:1.25rem;
    display:flex;
    flex-direction: column;
    gap:4rem !important;    

}


/* ── Block layout: two-column flip sections ──────────────────────────────── */
.web-block {
    position: relative;
    display:flex;
    flex-direction: row;
    min-height: 0;
    padding-left: calc(38% + 2rem);
    margin: 2rem 0;
}
/* ── Image column ────────────────────────────────────────────────────────── */

.web-image-col {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 38%;
    overflow: hidden;
    /*background: #0a0a14;*/
    background: transparent;
    border-radius: var(--web-border-radius-xl);
    min-height: 0;
    max-height: none;
}

.web-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}
.web-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-style: italic;
}

.web-content-col {
    display: block;
    min-height: 0;
}

.web-assoc-links {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
}

hr.line {
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .web-block {
        display: block;
        padding-left: 0;
    }
    .web-block.flipped {
        padding-right: 0;
    }

    .web-image-col {
        position: relative;
        width: 100%;
        height: 340px;
        bottom: auto;
    }

    .web-content-col {
        padding: 1.25rem;
    }
}

.web-block:last-of-type {
    border-bottom: none;
}

/* web-block flipped: image pinned to right, content fills left */
.web-block.flipped {
    padding-left: 0;
    padding-right: calc(38% + 2rem);
}
.web-block.flipped .web-image-col {
    left: auto;
    right: 0;
}




/* ── Bullet overlay (absolute, anchored bottom-right of the image col) ──────── */
/* Always sits bottom-right regardless of flip state */
.web-bullets {
    position: absolute;
    bottom: 1.25rem;
    right: 0.75rem;
    left: auto;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    opacity: 0.85;
    max-width: 70%;
}

.web-bullets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.web-bullets ul li {
    font-size: 0.88rem;
    font-weight: 500;
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.4;
}

.web-bullets ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}


/* ── Content column ──────────────────────────────────────────────────────── */
.web-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-right:0px;
    padding-left:2.5rem;
}
.flipped .web-content-col {
    padding-left: 0px;
    padding-right:2.5rem;
}

/* Middle content area that grows to fill space between name (top) and links (bottom) */
.web-content-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0;
}


/* ── Content typography ──────────────────────────────────────────────────── */
.web-entity-name {
    margin: 0 0 0.15rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--web-text-link, #750808);
    line-height: 1.2;
}

.web-meta {
    margin: 0;
    font-size: 1rem;
    color: var(--web-text-secondary, #b0b0b0);
    line-height: 1.5;
}

.web-alignment {
    margin: 0;
    font-size: 1rem;
    color: var(--web-text-primary, #e0e0e0);
}

.web-action {
    font-size: 1.05rem;
    line-height: 1.75;
}

.web-action h4 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.web-action p {
    margin: 0;
}

.web-content-text {
    margin: 0;
    font-size: 1.0rem;
    line-height: 1.75;
    color: var(--web-text-secondary, #b0b0b0);
}


/* ── Association footer links ────────────────────────────────────────────── */
.web-assoc-links {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    text-align: center;
    line-height: 1.8;
}

.web-assoc-link {
    color: var(--web-text-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.web-assoc-link:hover {
    color: var(--web-text-hover);
    text-decoration: underline;
}

.web-assoc-sep {
    display: inline-block;
    padding: 0 0.4rem;
    color: var(--web-text-link);
    user-select: none;
}


/* ── Dot divider: plain <hr> renders as decorative dots ─────────────────── */
.web-container hr {
    border: none;
    margin: 1.5rem 0 0 0;
    text-align: center;
    overflow: visible;
    height: 1em;
    line-height: 1em;
    color: var(--web-color-bold, #750808);
}
.web-container hr .dots::after {
    content: '● ● ● ● ●';
    font-size: 0.7rem;
    letter-spacing: 4.0em;
 
}

hr.line {
    border: 0;
    height: 1px;
    width:100%;
    background: linear-gradient(to right, transparent, var(--web-color-bold), transparent);
    position: relative;
    overflow: visible;
}

hr.line::after {
    content: "◆";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    color: var(--web-color-bold);
    background: var(--web-bg);
    padding: 0 0.75rem;
}

/* ── Tagline (page footer) ───────────────────────────────────────────────── */
.web-tagline {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--web-text-primary, #e0e0e0);
}


/* ── highlight-text: emitted by format_action_text() for backtick markup ─── */
.highlight-text {
    color: var(--web-color-bold, #d4af37);
}

.highlight-text.heading {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0.5rem 0 0.2rem;
}


/* ── Responsive: stack columns on narrow screens ─────────────────────────── */
@media (max-width: 640px) {
    .web-block {
        flex-direction: column;
        min-height: 0;
    }

    .web-image-col {
        flex: 0 0 auto;
        min-height: 260px;
        max-height: 340px;
    }

    .web-content-col {
        padding: 1.25rem 1.25rem;
    }

    .web-entity-name {
        font-size: 1.5rem;
    }
}


.muted {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
    
}