:root
{
    --lh-color-surface: #ffffff;
    --lh-color-border-soft: #d8e2d6;
    --lh-color-muted-text: #667066;
    --lh-color-page-bg: #f8faf7;
    --lh-color-page-bg-end: #f4f7f2;
    --lh-color-selected-menu-underline: #00a200;
    --lh-color-practice-card-bg: #f0fdf4;
    --lh-color-practice-card-border: #bbf7d0;
    --lh-color-practice-card-hover-bg: #dcfce7;
    --lh-color-practice-card-hover-border: #86efac;
    --lh-color-practice-badge-text: #3f6a46;
    --lh-color-practice-badge-text-hover: #254d2c;
    --lh-radius-card: 12px;
    --lh-radius-badge: 5px;
    --lh-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.035);

    --lh-color-admin-row-hover-bg: #f0fdf4;
    --lh-color-admin-row-hover-border: #86efac;
}

html
{
    font-size: 16px;
    height: 100%;
}

body
{
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: radial-gradient( circle at top right, rgba(187, 247, 208, 0.18), transparent 32rem ), 
                linear-gradient( 180deg, var(--lh-color-page-bg) 0%, var(--lh-color-page-bg-end) 100% );
}

.page-shell
{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content
{
    flex: 1 0 auto;
    padding-top: 32px;
    padding-bottom: 48px;
}

.footer
{
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #999;
    padding: 16px 0;
    margin-top: 32px;
    border-top: 3px solid red;
    background: linear-gradient(to bottom, #111111 0%, #2f2f2f 55%, #505050 100%);
}

.footer a
{
    color: #47dafa;
}

.footer a:hover
{
    color: #ffffff;
}

.footer-contact
{
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #fff;
}

.footer-contact a
{
    color: #47dafa;
    text-decoration: none;
}

.footer-contact a:hover
{
    text-decoration: underline;
}

.container
{
    max-width: 960px;
}

h1, h2, h3
{
    color: #111827;
    font-weight: 600;
    line-height: 1.25;
}

h1
{
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

h2
{
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e5e7eb;
}

h3
{
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

    h3 strong
    {
        font-weight: 700;
    }

p
{
    margin-bottom: 1rem;
}

ul
{
    margin-bottom: 1.25rem;
    padding-left: 1.4rem;
}

li
{
    margin-bottom: 0.45rem;
}

section
{
    margin-bottom: 2.5rem;
}

a
{
    color: #0f4c81;
    text-decoration: none;
}

    a:hover
    {
        text-decoration: underline;
    }

.navbar
{
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-brand
{
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link
{
    position: relative;
}

    .navbar-nav .nav-link.active::after
    {
        content: "";
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.2rem;
        height: 3px;
        border-radius: 999px;
        background-color: var(--lh-color-selected-menu-underline); /* softer/lighter */
    }

.nav-link
{
    font-weight: 500;
}

.border-bottom
{
    border-bottom: 1px solid #e5e7eb !important;
}

.border-top
{
    border-top: 1px solid #e5e7eb !important;
}

.box-shadow
{
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-link.active
{
    font-weight: 600;
    color: #000 !important;
}

.intro,
.card-section
{
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--lh-radius-card);
    padding: 24px;
}

.intro
{
    margin-bottom: 3rem;
}

.card-section + .card-section
{
    margin-top: 2rem;
}

    .intro p
    {
        font-size: 1.1rem;
    }

.lead
{
    font-size: 1.2rem;
    font-weight: 500;
    color: #111827;
}

.home-grid 
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/*Layout for large screens*/

.large-screen-layout
{
    width: 100%;
}

.large-screen-main
{
    min-width: 0;
}

.large-screen-aside
{
    display: none;
}

@media (min-width: 1200px)
{
    .large-screen-layout
    {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 3rem;
        align-items: start;
    }

    .large-screen-aside
    {
        display: block;
    }
}

@media (min-width: 1500px)
{
    .large-screen-layout
    {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 3.5rem;
    }
}

.large-screen-panel
{
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--lh-color-border-soft, #d8e2d6);
    border-radius: 12px;
    background: var(--lh-color-surface, #ffffff);
    box-shadow: var(--lh-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.035));
}

.large-screen-panel + .large-screen-panel
{
    margin-top: 1rem;
}

.large-screen-panel h2
{
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.large-screen-panel p
{
    margin-bottom: 0.75rem;
}

.large-screen-panel ul
{
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.large-screen-panel li
{
    margin-bottom: 0.4rem;
}

.large-screen-panel .small-muted
{
    color: var(--lh-color-muted-text, #667066);
    font-size: 0.9rem;
}


@media (min-width: 992px) 
{
    .home-grid 
	{
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.brand-link 
{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo 
{
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.brand-block 
{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name 
{
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
}

.brand-tagline 
{
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.form-control 
{
    max-width: 100%;
}

textarea.form-control 
{
    resize: vertical;
}

.honeypot-field 
{
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cv-link 
{
    margin-top: 1.5rem;
}

.cv-link a 
{
    font-weight: 500;
}

.update-preview + .update-preview
{
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.update-preview h3
{
    margin-top: 0;
}

.update-preview + .update-preview
{
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.update-preview h3,
.update-preview h4
{
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-image
{
    margin: 1.5rem 0;
    text-align: center;
}

    .project-image img
    {
        max-width: 100%;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.image-caption
{
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.center-cell
{
    text-align: center;
    vertical-align: middle;
}

.latest-update-highlight
{
    background-color: var(--lh-color-practice-card-bg);
    border: 2px solid var(--lh-color-practice-card-border);
    border-radius: var(--lh-radius-card);
    padding: 20px 24px;
    margin: 1.5rem 0 2rem 0;
}

    .latest-update-highlight h3
    {
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    .latest-update-highlight h4
    {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

/* Articles */

.article-list
{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.article-list-item
{
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

    .article-list-item:last-child
    {
        border-bottom: none;
    }

    .article-list-item h2
    {
        margin: 0 0 0.5rem 0;
        font-size: 1.6rem;
        line-height: 1.25;
    }

        .article-list-item h2 a
        {
            color: inherit;
            text-decoration: none;
        }

            .article-list-item h2 a:hover
            {
                text-decoration: underline;
            }

.text-muted
{
    margin: 0 0 0.75rem 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.article-detail
{
    max-width: 760px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

    .article-detail > header
    {
        margin-bottom: 2rem;
    }

        .article-detail > header h1
        {
            margin: 0 0 0.75rem 0;
            font-size: 2.5rem;
            line-height: 1.15;
        }

.article-summary
{
    margin-top: 1rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #374151;
}

.article-body
{
    font-size: 1.05rem;
    line-height: 1.8;
    color: #111827;
}

    .article-body > *:first-child
    {
        margin-top: 0;
    }

    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body h5,
    .article-body h6
    {
        margin-top: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.25;
        color: #111827;
    }

    .article-body h1
    {
        font-size: 2rem;
    }

    .article-body h2
    {
        font-size: 1.65rem;
    }

    .article-body h3
    {
        font-size: 1.35rem;
    }

    .article-body p,
    .article-body ul,
    .article-body ol,
    .article-body blockquote,
    .article-body pre,
    .article-body table
    {
        margin-top: 0;
        margin-bottom: 1.25rem;
    }

    .article-body ul,
    .article-body ol
    {
        padding-left: 1.5rem;
    }

    .article-body li + li
    {
        margin-top: 0.35rem;
    }

    .article-body a
    {
        text-decoration: underline;
    }

    .article-body blockquote
    {
        margin-left: 0;
        padding: 0.75rem 1rem;
        border-left: 4px solid #d1d5db;
        background: #f9fafb;
        color: #374151;
    }

    .article-body code
    {
        padding: 0.15rem 0.35rem;
        border-radius: 4px;
        background: #f3f4f6;
        font-family: Consolas, "Courier New", monospace;
        font-size: 0.95em;
    }

    .article-body pre
    {
        overflow-x: auto;
        padding: 1rem;
        border-radius: 8px;
        background: #111827;
        color: #f9fafb;
    }

        .article-body pre code
        {
            padding: 0;
            background: transparent;
            color: inherit;
            font-size: 0.95rem;
        }

    .article-body img
    {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

.article-body img.article-diagram
{
    cursor: zoom-in;
}

.article-diagram-link
{
    display: inline-block;
}

    .article-body hr
    {
        margin: 2rem 0;
        border: 0;
        border-top: 1px solid #e5e7eb;
    }

.article-links
{
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

    .article-links h2
    {
        margin-top: 0;
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }

    .article-links ul
    {
        margin: 0;
        padding-left: 1.25rem;
    }

    .article-links li + li
    {
        margin-top: 0.4rem;
    }

@media (max-width: 768px)
{
    .article-detail > header h1
    {
        font-size: 2rem;
    }

    .article-body
    {
        font-size: 1rem;
        line-height: 1.75;
    }

    .article-list-item h2
    {
        font-size: 1.35rem;
    }
}

.EasyMDEContainer .editor-toolbar
{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

    .EasyMDEContainer .editor-toolbar a
    {
        flex: 0 0 auto;
    }

    .EasyMDEContainer .editor-toolbar::-webkit-scrollbar
    {
        height: 8px;
    }

.EasyMDEContainer .editor-toolbar
{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

    .EasyMDEContainer .editor-toolbar a
    {
        flex: 0 0 auto;
    }

.article-cta
{
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1rem;
    color: #374151;
}

    .article-cta a
    {
        color: #2563eb;
        text-decoration: none;
    }

        .article-cta a:hover
        {
            text-decoration: underline;
        }

.admin-session
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    white-space: nowrap;
}

    .admin-logout-form .btn-link
    {
        color: #2563eb;
        text-decoration: none;
        font-size: 0.9rem;
    }

        .admin-logout-form .btn-link:hover
        {
            text-decoration: underline;
        }

.admin-label
{
    font-weight: 500;
}

.admin-session-badge
{
    display: flex;
    align-items: center;
    column-gap: 12px;
    width: max-content;
    min-width: 0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    white-space: nowrap;
}

.admin-badge-link,
.admin-logout-form,
.admin-logout-button
{
    flex: 0 0 auto;
}

.admin-badge-link
{
    display: inline-block;
    color: #3730a3;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none;
}

.admin-badge-link:hover
{
    text-decoration: underline;
}

.admin-logout-form
{
    margin: 0;
    padding: 0;
}

.admin-logout-button
{
    display: inline-block;
    background: none;
    border: 0;
    padding: 0;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.2;
}

    .admin-logout-button:hover
    {
        text-decoration: underline;
    }

.admin-login-link
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: 1rem;
    border-radius: 999px;
    color: #6b7280;
    text-decoration: none;
    font-size: 1rem;
}

.admin-badge-label
{
    font-weight: 600;
    color: #3730a3; /* deeper blue */
    text-decoration: none;
}

.admin-login-link:hover
{
    background-color: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.admin-btn-primary
{
    background-color: #0f4c81;
    border-color: #0f4c81;
    color: #ffffff;
}

.admin-btn-primary:hover
{
    background-color: #0b3a63;
    border-color: #0b3a63;
    color: #ffffff;
}

.admin-btn-secondary
{
    background-color: #5bab5b;
    border-color: #c7d2fe;
    color: #ffffff;
}

    .admin-btn-secondary:hover
    {
        background-color: #5bab5b;
        border-color: #a5b4fc;
        color: #ffffff;
    }

.admin-table-wide
{
    width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    margin-left: 50%;
    transform: translateX(-50%);
    overflow-x: auto;
}

.admin-table-wide table
{
    width: 100%;
}

.admin-table-wide th,
.admin-table-wide td
{
    white-space: nowrap;
}

.admin-table-wide td:nth-child(1),
.admin-table-wide td:nth-child(3)
{
    white-space: normal;
}

.practice-nav-disabled
{
    color: #777;
    opacity: 0.55;
    cursor: default;
    text-decoration: none;
}

.practice-nav a,
.practice-nav-disabled
{
    display: inline-block;
}

.practice-section-list
{
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.practice-section-card
{
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--lh-color-border-soft, #d8e2d6);
    border-radius: var(--lh-radius-card, 12px);
    background: var(--lh-color-surface, #ffffff);
    box-shadow: var(--lh-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.035));
}

.practice-section-card h2
{
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.practice-section-card h2 a
{
    color: inherit;
    text-decoration: none;
}

.practice-section-card h2 a:hover
{
    text-decoration: underline;
}

.practice-section-card p:last-child
{
    margin-bottom: 0;
}

.practice-section-card-disabled
{
    opacity: 0.65;
}

.practice-section-card-disabled h2
{
    color: var(--lh-color-muted-text, #667066);
}

.article-card-list
{
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.article-card
{
    position: relative;
    padding: 1.25rem 1.35rem;
    background-color: var(--lh-color-practice-card-bg);
    border: 2px solid var(--lh-color-practice-card-border);
    border-radius: var(--lh-radius-card);
    box-shadow: var(--lh-shadow-card);
}

.article-card-badge
{
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    padding: 0.2rem 0.7rem;
    background: #f6fbf6;
    border: 1px solid #b9c9ba;
    border-radius: var(--lh-radius-badge);
    color: var(--lh-color-practice-badge-text);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

    .article-card-badge:hover
    {
        color: var(--lh-color-practice-badge-text-hover);
        text-decoration: none;
        border-color: var(--lh-color-practice-card-hover-border);
        background: var(--lh-color-practice-card-hover-bg);
    }

.article-card-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    color: #667066;
}

.article-card-title
{
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.article-card-title a
{
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover
{
    text-decoration: underline;
}

.article-card-summary
{
    margin-bottom: 0.75rem;
    color: #444;
}

.article-card-link
{
    font-weight: 500;
    text-decoration: none;
}

.article-card-link:hover
{
    text-decoration: underline;
}

.update-card
{
    background: var(--lh-color-surface, #ffffff);
    border: 1px solid #cbd8c8;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.045);
}

.time-input
{
    max-width: 8rem;
}

.practice-nav
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.practice-nav-divider
{
    color: #999;
}

.article-pull-quote
{
    margin: 1rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #d8e2d6;
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
}

.article-editor-context-menu
{
    position: fixed;
    z-index: 2000;
    min-width: 12rem;
    padding: 0.25rem;
    background: #ffffff;
    border: 1px solid var(--lh-color-border-soft);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-editor-context-menu button
{
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 0;
    background: transparent;
    text-align: left;
    color: #111827;
    cursor: pointer;
}

.article-editor-context-menu button:hover
{
    background: #f3f4f6;
}

.admin-pull-quote-preview
{
    max-width: 22rem;
    white-space: normal;
    color: var(--lh-color-muted-text);
    font-style: italic;
}

.admin-pull-quote-cell
{
    max-width: 26rem;
}

.admin-pull-quote-row
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-pull-quote-preview
{
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--lh-color-muted-text);
    font-style: italic;
}

.admin-pull-quote-actions
{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-pull-quote-actions form
{
    margin: 0;
}

.admin-article-title--published
{
    font-weight: 700;
}

.admin-article-title--scheduled
{
    font-style: italic;
}

.admin-article-title--draft
{
    font-weight: 400;
    font-style: normal;
}

.admin-article-row--scheduled > td
{
    background-color: var(--lh-color-practice-card-hover-bg);
}

.admin-form-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-sticky-actions
{
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    background: var(--lh-color-page-bg, #f8faf7);
    border-bottom: 1px solid var(--lh-color-border-soft, #d8e2d6);
}

.admin-list-table
{
    border-collapse: separate;
    border-spacing: 0;
}

.admin-list-table tbody tr
{
    transition: background-color 0.12s ease-in-out;
}

.admin-list-table tbody tr:hover > td
{
    background-color: var(--lh-color-admin-row-hover-bg);
    border-top: 1px solid var(--lh-color-admin-row-hover-border);
    border-bottom: 1px solid var(--lh-color-admin-row-hover-border);
}

.admin-list-table tbody tr:hover > td:first-child
{
    border-left: 1px solid var(--lh-color-admin-row-hover-border);
}

.admin-list-table tbody tr:hover > td:last-child
{
    border-right: 1px solid var(--lh-color-admin-row-hover-border);
}