:root {
    --primary-color: #0d3b66;
    --secondary-color: #00b8d4;
    --accent-color: #009fb8;
    --text-color: #1f3d57;
    --heading-color: #0d3b66;
    --light-text: #4f6f8b;
    --background: #f5f5f5;
    --surface: #ffffff;
    --surface-muted: #eef4f7;
    --border: #c5d4e2;
    --success-bg: #e9f7fb;
    --success-border: #b7e9f3;
    --shadow-sm: 0 1px 3px rgb(13 59 102 / 0.08);
    --shadow: 0 8px 24px rgb(13 59 102 / 0.09);
    --shadow-lg: 0 18px 36px rgb(13 59 102 / 0.15);
    --max-width: 1120px;
    --content-width: 760px;
    --border-radius: 14px;
    --transition: all 0.24s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background: linear-gradient(180deg, #f7f8fa 0%, var(--background) 100%);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-logo {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.content-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(245 245 245 / 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(197 212 226 / 0.7);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a,
.mobile-nav-panel a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light-text);
    transition: var(--transition);
}

.main-nav a:hover,
.mobile-nav-panel a:hover {
    color: var(--primary-color);
}

.mobile-nav {
    display: none;
}

.mobile-nav summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.mobile-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.mobile-nav-panel a {
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
}

.mobile-nav-panel a:hover {
    background: var(--surface-muted);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 15% 15%, rgb(0 184 212 / 0.12), transparent 36%),
        radial-gradient(circle at 85% 0%, rgb(13 59 102 / 0.14), transparent 35%),
        linear-gradient(180deg, #f3f9fc 0%, #f5f5f5 100%);
}

.hero .container {
    padding-top: 5.5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    color: var(--light-text);
    max-width: 760px;
    margin: 0 auto 2rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #bfe8ef;
    background: rgb(255 255 255 / 0.75);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #114f87 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:focus-visible,
a:focus-visible {
    outline: 3px solid rgb(0 184 212 / 0.45);
    outline-offset: 2px;
}

.btn-sm {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.35rem;
    margin-bottom: 4rem;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgb(0 184 212 / 0.7);
    box-shadow: var(--shadow);
}

.post-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.post-card h2 a {
    text-decoration: none;
}

.post-card .meta {
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.post-card .excerpt {
    color: var(--text-color);
    margin-bottom: 1.35rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.read-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.read-more-spaced {
    margin-top: 1rem;
}

.post-card:hover .read-more::after {
    transform: translateX(4px);
}

/* Sector pages */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 3rem;
}

.sector-card {
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sector-card:hover {
    box-shadow: var(--shadow);
    border-color: rgb(0 184 212 / 0.5);
}

.sector-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.sector-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.95rem;
}

.chip {
    display: inline-block;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    color: #0d3b66;
    background: #def5fa;
    border: 1px solid #adeaf2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.section-block {
    margin: 2rem 0;
    padding: 1.25rem 1.4rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.section-block h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.cluster-intro {
    max-width: 860px;
    margin: 0 auto 2rem;
}

.list-description {
    color: var(--light-text);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.list-description-sector {
    font-size: 1.15rem;
    max-width: 760px;
    margin-top: 1rem;
}

.chip-wrap {
    margin-top: 1rem;
}

/* Articles */
.article-header {
    margin: 2.2rem 0 1.4rem;
    text-align: center;
}

.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 1.5rem 0 1rem;
    color: var(--light-text);
    font-size: 0.92rem;
}

.breadcrumb-nav a {
    color: var(--light-text);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav-centered {
    justify-content: center;
    margin-bottom: 0.75rem;
}

.article-meta-top {
    margin-bottom: 0.8rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.tag-link {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background: #def5fa;
    border: 1px solid #adeaf2;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    text-decoration: none;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4.4vw, 2.65rem);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.dot {
    color: #9ab0c3;
}

.article-top-cta {
    margin-bottom: 1.5rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
}

.article-toc {
    position: relative;
    margin: 0 0 1.8rem;
    padding: 1.3rem;
    border-radius: 22px;
    border: 1px solid rgb(173 234 242 / 0.9);
    background:
        radial-gradient(circle at top right, rgb(0 184 212 / 0.14), transparent 28%),
        linear-gradient(145deg, #fdfefe 0%, #eef8fb 52%, #f7fbfd 100%);
    box-shadow: 0 18px 36px rgb(13 59 102 / 0.08);
    overflow: hidden;
}

.article-toc::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.article-toc-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    padding-left: 0.35rem;
}

.article-toc-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.8);
    border: 1px solid rgb(173 234 242 / 0.95);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-toc-header h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin-bottom: 0.35rem;
}

.article-toc-header p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.96rem;
}

.article-toc-panel {
    position: relative;
    z-index: 1;
    padding: 0.35rem;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.62);
    backdrop-filter: blur(8px);
    border: 1px solid rgb(197 212 226 / 0.75);
}

.article-toc nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.article-toc nav li {
    margin: 0;
}

.article-toc nav li + li {
    margin-top: 0.3rem;
}

.article-toc nav ul ul {
    margin-top: 0.35rem;
    margin-left: 0.9rem;
    padding-left: 0.85rem;
    border-left: 1px solid rgb(173 234 242 / 0.95);
}

.article-toc nav a {
    display: block;
    padding: 0.68rem 0.82rem;
    border-radius: 12px;
    color: var(--heading-color);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: var(--transition);
}

.article-toc nav a:hover {
    transform: translateX(4px);
    background: linear-gradient(90deg, rgb(222 245 250 / 0.95) 0%, rgb(255 255 255 / 0.9) 100%);
    color: var(--primary-color);
}

.article-toc nav ul ul a {
    padding: 0.5rem 0.72rem;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.cta-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.cta-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
}

.article-content {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.78;
    color: var(--text-color);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content table,
.article-content pre,
.article-content blockquote {
    margin-bottom: 1.7rem;
}

.article-content h2 {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    margin: 2rem 0 0.8rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.2rem;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 12px 12px 0;
    background: #edf9fc;
    color: #0f4d70;
    padding: 1.1rem 1rem;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-content code {
    background: #edf4f9;
    color: #0f4d70;
    border-radius: 5px;
    padding: 0.12rem 0.34rem;
    font-size: 0.9em;
}

.article-content pre {
    background: #0d3b66;
    color: #fff;
    border-radius: 12px;
    overflow-x: auto;
    padding: 1rem;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.content-disclaimer {
    margin-top: 1.8rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--success-border);
    background: var(--success-bg);
    color: #0f4d70;
    font-size: 0.92rem;
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.96rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.article-content th:last-child,
.article-content td:last-child {
    border-right: none;
}

.article-content th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background: var(--surface-muted);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:nth-child(even) td {
    background: #f9fcfd;
}

.article-footer {
    margin-top: 1.1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.related-articles {
    margin: 1rem 0 1.5rem;
}

.related-articles h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.related-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.related-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}

.related-card h3 a {
    text-decoration: none;
}

.related-card p {
    color: var(--light-text);
    font-size: 0.94rem;
}

.call-to-action {
    text-align: center;
    padding: 1rem 0 1.2rem;
}

.call-to-action h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #edf3f7 0%, #f5f5f5 100%);
    color: var(--text-color);
}

.site-footer .container {
    padding-top: 2.4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.footer-subtitle {
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    color: var(--light-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-desc,
.footer-link,
.footer-bottom p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.footer-nav,
.footer-social {
    list-style: none;
    padding: 0;
}

.footer-nav li,
.footer-social li {
    margin-bottom: 0.45rem;
}

.footer-link {
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 1rem;
    }

    .header-inner {
        min-height: 64px;
    }

    .main-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hero .container {
        padding-top: 3.25rem;
        padding-bottom: 3rem;
    }

    .hero p {
        margin-bottom: 1.35rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .post-card {
        padding: 1.15rem;
    }

    .article-header {
        margin-top: 1.4rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 0.3rem 0.6rem;
    }

    .cta-text {
        font-size: 0.95rem;
    }

    .article-content {
        line-height: 1.7;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-toc {
        padding: 1rem;
        border-radius: 18px;
    }

    .article-toc-panel {
        padding: 0.2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-top: 3.5rem;
    }

    .site-footer .container {
        padding-top: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 1.45rem;
    }

    .article-content h2 {
        margin-top: 2rem;
    }

    .call-to-action h3 {
        font-size: 1.35rem;
    }
}

/* Jurisprudence list */
.jp-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2.4rem;
    border-bottom: 1px solid #d5e0ea;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0.72) 0 24%, transparent 24% 100%),
        radial-gradient(circle at 88% 18%, rgb(0 184 212 / 0.14), transparent 30%),
        linear-gradient(180deg, #eef6f8 0%, #f7f8fa 100%);
}

.jp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgb(13 59 102 / 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgb(13 59 102 / 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.65), transparent 86%);
}

.jp-hero-inner {
    position: relative;
    padding-top: 3.2rem;
    padding-bottom: 2.5rem;
}

.jp-hero .breadcrumb-nav {
    justify-content: flex-start;
    margin-bottom: 2.2rem;
}

.jp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 2rem;
    align-items: end;
}

.jp-hero-copy h1 {
    max-width: 820px;
    font-size: clamp(2.35rem, 6vw, 4.7rem);
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.jp-kicker,
.jp-section-kicker,
.jp-brief-label {
    color: #0b6a7a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jp-kicker {
    margin-bottom: 0.8rem;
}

.jp-hero .list-description {
    max-width: 760px;
    color: #355a75;
    font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.jp-brief {
    border: 1px solid rgb(13 59 102 / 0.18);
    border-radius: 10px;
    padding: 1.1rem;
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 18px 42px rgb(13 59 102 / 0.11);
    backdrop-filter: blur(12px);
}

.jp-brief strong {
    display: block;
    color: var(--heading-color);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.1;
    margin: 0.35rem 0 0.55rem;
}

.jp-brief a,
.jp-brief span {
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.45;
    text-decoration: none;
}

.jp-brief a:hover {
    color: var(--accent-color);
}

.jp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid rgb(13 59 102 / 0.15);
    border-radius: 10px;
    background: rgb(13 59 102 / 0.13);
}

.jp-stats div {
    min-height: 92px;
    padding: 1rem 1.1rem;
    background: rgb(255 255 255 / 0.68);
}

.jp-stats span,
.jp-stats strong {
    display: block;
}

.jp-stats span {
    color: var(--primary-color);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.jp-stats strong {
    margin-top: 0.32rem;
    color: #4d687f;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jp-content-shell {
    margin-bottom: 4rem;
}

.jp-intro {
    max-width: 820px;
    margin: 0 auto 2.4rem;
    color: #274d68;
    font-size: 1.03rem;
}

.jp-intro h1 {
    display: none;
}

.jp-intro p + p {
    margin-top: 0.9rem;
}

.jp-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.jp-toolbar h2 {
    margin-top: 0.2rem;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.jp-toolbar > p {
    color: var(--light-text);
    font-size: 0.97rem;
}

.jp-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 4rem;
}

.jp-card {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) minmax(112px, auto);
    gap: 1.25rem;
    align-items: start;
    background: rgb(255 255 255 / 0.92);
    border: 1px solid #d3dfeb;
    border-radius: 10px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.jp-card::before {
    content: "";
    position: absolute;
    inset: 1rem auto 1rem 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #00b8d4;
    opacity: 0.55;
}

.jp-card:hover {
    transform: translateY(-2px);
    border-color: #99c9d4;
    box-shadow: 0 12px 28px rgb(13 59 102 / 0.1);
}

.jp-date-block {
    color: var(--primary-color);
}

.jp-date-block time {
    display: grid;
    place-items: center;
    min-height: 92px;
    border: 1px solid #d9e6ef;
    border-radius: 8px;
    background: #f7fafc;
}

.jp-date-block span,
.jp-date-block strong,
.jp-date-block em {
    display: block;
    line-height: 1;
}

.jp-date-block span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
}

.jp-date-block strong {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jp-date-block em {
    margin-top: 0.25rem;
    color: var(--light-text);
    font-size: 0.78rem;
    font-style: normal;
}

.jp-card-body {
    min-width: 0;
}

.jp-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.jp-chambre {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: #e8f4f7;
    border: 1px solid #c4e2e8;
    border-radius: 6px;
    padding: 0.24rem 0.58rem;
}

.jp-impact {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 6px;
    padding: 0.24rem 0.58rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.jp-impact-faible {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.jp-impact-moyen {
    color: #92560b;
    background: #fef3c7;
    border-color: #fde68a;
}

.jp-impact-fort,
.jp-impact-élevé,
.jp-impact-eleve {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.jp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.75rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.jp-meta span,
.jp-meta time {
    display: inline-flex;
    align-items: center;
}

.jp-meta span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #9fb3c8;
}

.jp-card h2 {
    font-size: 1.18rem;
    line-height: 1.3;
    max-width: 780px;
    margin-bottom: 0.5rem;
}

.jp-card h2 a {
    text-decoration: none;
}

.jp-card h2 a:hover {
    color: var(--accent-color);
}

.jp-excerpt {
    color: #2f526c;
    max-width: 820px;
    margin-bottom: 0.85rem;
    font-size: 0.93rem;
    line-height: 1.5;
}

.jp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.jp-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0;
}

.jp-theme {
    font-size: 0.72rem;
    color: var(--light-text);
    background: #f4f7f9;
    border: 1px solid #d8e4ee;
    border-radius: 6px;
    padding: 0.18rem 0.55rem;
}

.jp-card .read-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.jp-card-action {
    align-self: center;
    justify-self: end;
    white-space: nowrap;
}

.jp-card:hover .read-more::after {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .jp-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .jp-card-action {
        grid-column: 2;
        justify-self: start;
        align-self: start;
    }
}

@media (max-width: 768px) {
    .jp-hero-inner {
        padding-top: 2rem;
    }

    .jp-hero-grid,
    .jp-toolbar {
        grid-template-columns: 1fr;
    }

    .jp-stats {
        grid-template-columns: 1fr;
    }

    .jp-stats div {
        min-height: auto;
    }

    .jp-card {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .jp-date-block time {
        display: flex;
        justify-content: flex-start;
        gap: 0.4rem;
        min-height: auto;
        padding: 0.65rem 0.75rem;
    }

    .jp-date-block span {
        font-size: 1.2rem;
    }

    .jp-date-block strong,
    .jp-date-block em {
        margin-top: 0;
    }

    .jp-card-action {
        justify-self: start;
        align-self: start;
    }
}

@media (max-width: 420px) {
    .jp-card-top,
    .jp-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .jp-meta span::before {
        display: none;
    }
}

/* Jurisprudence article — decision reference card */
.decision-card {
    margin: 1.6rem 0 0.5rem;
    padding: 1.1rem 1.3rem 1.2rem;
    background:
        radial-gradient(circle at top right, rgb(0 184 212 / 0.08), transparent 40%),
        linear-gradient(145deg, #ffffff 0%, #f4fafd 100%);
    border: 1px solid rgb(173 234 242 / 0.9);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.decision-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.decision-card-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.decision-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.7rem 1.2rem;
    margin: 0;
}

.decision-card-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.decision-card-grid dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--light-text);
}

.decision-card-grid dd {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-color);
    font-weight: 600;
}

.decision-card-source {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed rgb(13 59 102 / 0.35);
    padding-bottom: 1px;
}

.decision-card-source:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
