/* =====================================================================
   Lawyer profile pages (advocate / judge / notary)
   Standalone styles — independent from the easyart theme.
   ===================================================================== */

:root {
    --lp-bg:            #f4f6f9;
    --lp-surface:       #ffffff;
    --lp-border:        #e3e8ef;
    --lp-text:          #1f2937;
    --lp-text-muted:    #6b7280;
    --lp-primary:       #1e5eff;
    --lp-primary-dark:  #1746c8;
    --lp-primary-soft:  #eef3ff;
    --lp-accent:        #0f172a;
    --lp-success:       #16a34a;
    --lp-radius:        14px;
    --lp-shadow:        0 10px 30px rgba(15, 23, 42, .06);
    --lp-shadow-sm:     0 4px 14px rgba(15, 23, 42, .05);
    --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lp-page {
    --lp-bg: #f4f6f9;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font);
    line-height: 1.6;
    padding: 32px 0 56px;
    min-height: 60vh;
}

.lp-page *,
.lp-page *::before,
.lp-page *::after {
    box-sizing: border-box;
}

.lp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Breadcrumbs (layout _breadcrumbsBlock) ---------- */

.breadcrumb.font-small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--lp-text-muted);
    padding: 0;
}

.breadcrumb.font-small a {
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.breadcrumb.font-small a:hover {
    color: var(--lp-primary);
    text-decoration: underline;
}

.breadcrumb.font-small span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c6ccd6;
    flex-shrink: 0;
}

/* ---------- Breadcrumbs ---------- */

.lp-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 28px;
    font-size: 13px;
    color: var(--lp-text-muted);
}

.lp-breadcrumbs a {
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.lp-breadcrumbs a:hover {
    color: var(--lp-primary);
    text-decoration: underline;
}

.lp-breadcrumbs .lp-sep {
    color: #c6ccd6;
    user-select: none;
}

.lp-breadcrumbs .lp-current {
    color: var(--lp-text);
    font-weight: 600;
}

/* ---------- Hero card ---------- */

.lp-hero {
    position: relative;
    background: linear-gradient(135deg, #020617 0%, #0f172a 55%, #1e3a8a 100%);
    border-radius: var(--lp-radius);
    padding: 44px 32px 36px;
    margin-bottom: 28px;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--lp-shadow);
}

.lp-hero::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.lp-hero::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.lp-hero > * {
    position: relative;
    z-index: 1;
}

.lp-hero .lp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 18px;
}

.lp-page .lp-hero h1 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
    color: #fff;
}

.lp-hero .lp-subtitle {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .82);
    max-width: 560px;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: 0;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}

.lp-btn:active {
    transform: translateY(1px);
}

.lp-btn-primary {
    background: #fff;
    color: var(--lp-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.lp-btn-primary:hover {
    background: #f1f5ff;
    color: var(--lp-primary-dark);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.lp-btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
}

.lp-btn-ghost:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ---------- Share ---------- */

.lp-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.lp-share-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.lp-share .lp-share-widget {
    display: inline-flex;
    align-items: center;
}

/* ---------- Source note ---------- */

.lp-source {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.55;
}

.lp-source a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lp-source a:hover {
    color: #cfe0ff;
}

/* ---------- Section nav (anchors) ---------- */

.lp-section-nav {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.lp-section-nav-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--lp-text-muted);
    text-align: center;
}

.lp-section-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.lp-section-nav a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.lp-section-nav a:hover {
    background: var(--lp-primary);
    color: #fff;
}

/* ---------- Sections ---------- */

.lp-section {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.lp-section:last-of-type {
    margin-bottom: 0;
}

.lp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--lp-bg);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--lp-accent);
    scroll-margin-top: 16px;
}

.lp-section-title::before {
    content: "";
    display: block;
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: var(--lp-primary);
    flex-shrink: 0;
}

/* ---------- Intro callout ---------- */

.lp-callout {
    background: var(--lp-primary-soft);
    border: 1px solid #dbe6ff;
    border-left: 4px solid var(--lp-primary);
    border-radius: 10px;
    padding: 18px 22px;
    color: #334155;
    font-size: 14.5px;
    line-height: 1.65;
}

.lp-callout p {
    margin: 0 0 8px;
}

.lp-callout p:last-child {
    margin-bottom: 0;
}

/* ---------- Definition table ---------- */

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lp-table th,
.lp-table td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--lp-border);
    vertical-align: top;
}

.lp-table tr:last-child th,
.lp-table tr:last-child td {
    border-bottom: 0;
}

.lp-table th {
    width: 38%;
    min-width: 170px;
    font-weight: 600;
    color: var(--lp-text-muted);
    background: #fafbfd;
}

.lp-table td {
    color: var(--lp-text);
}

.lp-table a {
    color: var(--lp-primary);
    text-decoration: none;
}

.lp-table a:hover {
    text-decoration: underline;
}

.lp-table-wrap {
    overflow-x: auto;
}

/* ---------- Code / link snippets ---------- */

.lp-code {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lp-code:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(30, 94, 255, .12);
}

/* ---------- Pagination (Bootstrap LinkPager) ---------- */

.lp-pagination {
    margin: 32px 0 0;
    display: flex;
    justify-content: center;
}

.lp-pagination .pagination {
    gap: 6px;
    margin: 0;
    flex-wrap: wrap;
}

.lp-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--lp-border);
    border-radius: 10px !important;
    background: var(--lp-surface);
    color: var(--lp-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.lp-pagination .page-link:hover {
    background: var(--lp-primary-soft);
    border-color: var(--lp-primary);
    color: var(--lp-primary);
}

.lp-pagination .page-item.active .page-link,
.lp-pagination .page-item.active .page-link:hover {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
}

.lp-pagination .page-item.disabled .page-link {
    background: #f4f6f9;
    color: #b6bdc8;
    border-color: var(--lp-border);
}

/* ---------- Link grid (regions / judges lists) ---------- */

.lp-region-grid,
.lp-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-region-grid a,
.lp-link-grid a {
    display: block;
    padding: 13px 16px;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: var(--lp-surface);
    color: var(--lp-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease;
}

.lp-region-grid a:hover,
.lp-link-grid a:hover {
    background: var(--lp-primary-soft);
    border-color: var(--lp-primary);
    color: var(--lp-primary);
    transform: translateY(-1px);
    box-shadow: var(--lp-shadow-sm);
}

/* ---------- Footer note ---------- */

.lp-footer-note {
    margin: 28px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--lp-text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .lp-hero {
        padding: 32px 20px 28px;
    }

    .lp-hero h1 {
        font-size: 23px;
    }

    .lp-section {
        padding: 22px 18px;
    }

    .lp-table th {
        width: 42%;
        min-width: 130px;
    }
}