/*
 * TWLO consolidated styles with a monochrome palette.
 */

:root {
    --color-black: #0d0d0d;
    --color-charcoal: #1f1f1f;
    --color-slate: #2c2c2c;
    --color-stone: #3e3e3e;
    --color-graphite: #515151;
    --color-silver: #6d6d6d;
    --color-smoke: #d9d9d9;
    --color-mist: #ededed;
    --color-white: #ffffff;
}

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

html,
body {
    height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--color-black);
    background-color: var(--color-mist);
}

a {
    color: var(--color-stone);
}

a:hover,
a:focus {
    color: var(--color-black);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.site-header {
    background-color: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-tagline {
    font-size: 0.95rem;
    color: var(--color-smoke);
}

.brand-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.brand-meta a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
}

.brand-meta a:hover {
    text-decoration: underline;
}

.site-nav {
    background-color: var(--color-charcoal);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.site-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus {
    background-color: var(--color-slate);
}

.site-main {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, var(--color-mist) 0%, var(--color-white) 100%);
}

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

.hero-message {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-message h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.hero-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Index / marketing site styles */
.header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.header.shiny-metal {
    background: linear-gradient(
        135deg,
        rgba(220, 220, 220, 0.2),
        rgba(240, 240, 240, 0.25),
        rgba(200, 200, 200, 0.65),
        rgba(160, 160, 160, 0.65)
    );
    background-size: 400% 400%;
    animation: shiny-metal-move 5s linear infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header a {
    text-decoration: none;
    color: inherit;
}

.header .logo {
    width: 120px;
    max-width: 20%;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-top: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.header h2 {
    font-size: 2em;
    margin-top: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.header h3 {
    font-size: 1.2em;
    margin-top: 5px;
    font-weight: normal;
}

.practice-areas {
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.practice-areas h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.practice-areas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.practice-area-card {
    width: 280px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--color-charcoal) 0%, var(--color-slate) 100%);
    color: var(--color-white);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.practice-area-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.practice-area-card h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 8px;
}

.practice-area-card ul {
    list-style: none;
}

.practice-area-card ul li {
    text-align: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.practice-area-card ul li:last-child {
    border-bottom: none;
}

.practice-area-card a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
}

.lawyer-section {
    text-align: center;
    margin: 20px 0;
}

.lawyer-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.lawyer-profile {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.lawyer-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.info-box {
    text-align: center;
}

.firm-info .info-box,
.contact-section .info-box {
    padding: 20px;
    background: var(--color-white);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.firm-info a {
    color: var(--color-stone);
    text-decoration: none;
    font-weight: 600;
}

.firm-info a:hover {
    text-decoration: underline;
    color: var(--color-black);
}

.video-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    justify-content: center;
}

.video-container {
    width: 320px;
    max-width: 100%;
    border: 1px solid var(--color-smoke);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    width: 100%;
    height: 180px;
}

.video-title {
    padding: 8px;
    font-size: 16px;
    text-align: center;
    background: var(--color-mist);
}

.custom-subscribe-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-white);
    background-color: var(--color-stone);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.custom-subscribe-button:hover {
    background-color: var(--color-charcoal);
}

@keyframes shiny-metal-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Subarea layout */
.bio-section,
.contact-section,
.firm-info,
.lawyer-section,
.video-section {
    margin-bottom: 2rem;
}

.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.contact-cta {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.contact-cta h2 {
    margin-bottom: 1rem;
    color: var(--color-black);
}

.contact-cta p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    margin-right: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover,
.button:focus {
    background-color: var(--color-slate);
    transform: translateY(-2px);
}

.button.secondary {
    background-color: var(--color-silver);
    color: var(--color-black);
}

.button.secondary:hover,
.button.secondary:focus {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.page-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem 0;
    text-align: center;
}

.page-footer a {
    color: var(--color-smoke);
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
    color: var(--color-white);
}

.subarea-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Admin & authentication */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.login-card .logo {
    width: 80px;
    margin-bottom: 20px;
}

.login-card h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.login-card input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--color-smoke);
    border-radius: 5px;
}

.login-card button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-card button:hover {
    background-color: var(--color-slate);
}

.login-footer {
    font-size: 0.9em;
    color: var(--color-silver);
    margin-top: 10px;
}

.admin-header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-button {
    background-color: var(--color-slate);
    color: var(--color-white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: var(--color-black);
}

.admin-container {
    display: flex;
}

.sidebar {
    width: 220px;
    background-color: var(--color-mist);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background-color: var(--color-smoke);
}

.content {
    flex: 1;
    padding: 40px;
}

/* Development & card layouts */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}

.card .logo,
.logo {
    width: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Error pages */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--color-black);
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-page p {
    margin-bottom: 1.5rem;
}

.error-page a {
    color: var(--color-stone);
    text-decoration: none;
    font-weight: bold;
}

.error-page a:hover {
    text-decoration: underline;
    color: var(--color-black);
}
/* ===============================
   Navbar
================================= */

.navbar {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-smoke);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand a {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-black);
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--color-charcoal);
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* ===============================
   Hero Section
================================= */

.hero {
    background-color: var(--color-white);
    padding: 80px 0;
    border-bottom: 1px solid var(--color-smoke);
}

.hero-container {
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-graphite);
}
/* ===============================
   Home Content
================================= */

.home-content {
    padding: 60px 0;
}

.home-content p {
    font-size: 1.05rem;
    color: var(--color-charcoal);
}


/* ================= TWLO HERO PATCH ================= */

.hero {
    background: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.navbar-inner a {
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    color: var(--color-white);
}

.navbar-inner a:hover {
    color: var(--color-smoke);
}

.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer a {
    color: var(--color-smoke);
}

/* ================= END PATCH ================= */
/* ================= NAVBAR ================= */

.site-header {
    background: #000;
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    height: 42px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #d9d9d9;
e

/* =======================================================
   PATCH2_LAYOUT
   ======================================================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #000;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.navbar a {
    color: #ccc;
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
}

.navbar a:hover {
    color: #fff;
}

.site-main {
    padding: 60px 0;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.site-footer {
    background: #111;
    color: #aaa;
    padding: 40px 0;
    font-size: 14px;
}

.site-footer a {
    color: #ccc;
}



/* ==========================================================
   PATCH 3 — NAVBAR VISIBILITY FIX
   ========================================================== */

.site-header {
    background: #000000;
    position: relative;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.navbar a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar a:hover {
    color: #d9d9d9 !important;
}

.brand a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================================== */



/* ==========================================================
   PATCH 4 — NAVBAR VISIBILITY FIX
   ========================================================== */

.site-header {
    background: #000;
    padding: 14px 0;
}

.site-header .brand a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar a:hover {
    opacity: 0.7;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ==========================================================
   PATCH 5 — FORCE NAVBAR VISIBILITY
   ========================================================== */

header.site-header {
    background-color: #000000;
}

header.site-header a,
header.site-header a:visited,
header.site-header a:active {
    color: #ffffff !important;
}

header.site-header a:hover {
    color: #cccccc !important;
}

footer.site-footer {
    background: #111;
    color: #ffffff;
    padding: 40px 0;
}

footer.site-footer a {
    color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================
   PATCH 10 — FINAL HEADER + LAYOUT STABILIZATION
   ========================================================== */

.site-header {
    background: #000;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.navbar {
    display: flex;
    gap: 24px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.navbar a:hover {
    opacity: 0.7;
}

.site-main {
    padding: 60px 0;
}

.hero {
    text-align: center;
    margin: 40px 0;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.home-content {
    text-align: center;
    font-size: 1.05rem;
}

/* ========================================================== */

/* ==========================================================
   PATCH 11 — REFINEMENT
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 42px;
    margin-right: 12px;
}

.brand-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.hero {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: #444;
    margin-bottom: 24px;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.button:hover {
    opacity: 0.8;
}

/* ========================================================== */

/* ==========================================================
   PATCH 12 — LAYOUT REFINEMENT
   ========================================================== */

/* Improve header spacing and contrast */

.site-header {
    background: #000;
    padding: 22px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand a {
    color: #ffffff !important;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.navbar {
    display: flex;
    gap: 28px;
}

.navbar a {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Improve hero containment */

.site-main {
    padding-top: 80px;
}

.hero {
    background: #ffffff;
    padding: 60px 0;
    margin: 0 auto 60px auto;
    max-width: 1000px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: #555;
}

/* Improve main body spacing */

.home-content {
    max-width: 900px;
    margin: 0 auto 80px auto;
    font-size: 1.05rem;
}

/* Improve footer containment */

.site-footer,
.page-footer {
    background: #111;
    padding: 60px 0;
}

.site-footer .container,
.page-footer .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ========================================================== */

/* ==========================================================
   PATCH 13 — LOGO STYLING
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
}

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

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 14px;
}

.brand-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Responsive tweak */

@media (max-width: 768px) {
    .brand-logo {
        height: 32px;
    }

    .brand-text {
        font-size: 0.9rem;
    }
}

/* ========================================================== */

/* ==========================================================
   PATCH 13 — LOGO STYLING
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
}

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

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 14px;
}

.brand-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Responsive tweak */

@media (max-width: 768px) {
    .brand-logo {
        height: 32px;
    }

    .brand-text {
        font-size: 0.9rem;
    }
}

/* ========================================================== */

/* ==========================================================
   PATCH 14 — LOGO STYLING (CLEAN)
   ========================================================== */

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

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.brand-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ========================================================== */

/* ==========================================================
   PATCH 15 — HEADER POLISH
   ========================================================== */

.site-header {
    padding: 24px 0;
}

.header-inner {
    align-items: center;
}

.brand-logo {
    height: 48px;        /* larger, balanced */
}

.brand-text {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 600;
}

.navbar {
    align-items: center;
}

.navbar a {
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    font-weight: 500;
}

/* subtle spacing balance */
.container.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================================== */

/* ==========================================================
   PATCH 16 — HERO REFINEMENT
   ========================================================== */

.site-main {
    padding-top: 60px;
}

.hero {
    background: #ffffff;
    padding: 80px 40px;
    margin: 40px auto 60px auto;
    max-width: 1100px;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.4px;
}

.home-content {
    max-width: 900px;
    margin: 0 auto 100px auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Subtle page background refinement */

body {
    background: linear-gradient(
        180deg,
        #f2f2f2 0%,
        #e9e9e9 100%
    );
}

/* ========================================================== */

/* ==========================================================
   PATCH 17 — FOOTER MODERNIZATION
   ========================================================== */

.site-footer {
    background: #111111;
    padding: 70px 0;
    margin-top: 80px;
}

.site-footer .container {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #cccccc;
    letter-spacing: 0.3px;
}

.site-footer p strong {
    font-size: 1.05rem;
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    opacity: 0.7;
}

/* Add subtle top border for separation */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================================== */

/* ==========================================================
   PATCH 18 — AUTHORITATIVE LAYOUT LAYER
   This block overrides all prior conflicting rules.
   ========================================================== */

/* Force clean background */

body {
    background: #f4f4f4 !important;
}

/* Header */

header.site-header {
    background: #000000 !important;
    padding: 28px 0 !important;
}

header.site-header .header-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

header.site-header .brand-logo {
    height: 52px !important;
}

header.site-header .brand-text {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

header.site-header .navbar a {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
}

/* Hero */

main.site-main {
    padding-top: 80px !important;
}

main.site-main .hero {
    background: #ffffff !important;
    max-width: 1100px !important;
    margin: 0 auto 80px auto !important;
    padding: 90px 60px !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06) !important;
}

main.site-main .hero h1 {
    font-size: 46px !important;
    font-weight: 600 !important;
    margin-bottom: 18px !important;
}

main.site-main .hero p {
    font-size: 18px !important;
    color: #666 !important;
}

/* Home content */

main.site-main .home-content {
    max-width: 900px !important;
    margin: 0 auto 120px auto !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

/* Footer */

footer.site-footer {
    background: #111 !important;
    padding: 80px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

footer.site-footer .container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

footer.site-footer p {
    color: #cccccc !important;
    margin-bottom: 12px !important;
}

footer.site-footer p strong {
    color: #ffffff !important;
    font-size: 1.1rem !important;
}

/* ========================================================== */

/* ==========================================================
   PATCH 19 — HIGH CONTRAST DRAMATIC HEADER
   ========================================================== */

body {
    background: #ffffff !important;
}

header.site-header {
    background: #000000 !important;
    padding-bottom: 0 !important;
}

/* Practice bar */

.practice-bar {
    background: #000000;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.practice-bar .container {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 16px 0;
}

.practice-bar span {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Remove softness from hero */

main.site-main .hero {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
}

/* Make footer pure black */

footer.site-footer {
    background: #000000 !important;
    border-top: 2px solid #000000 !important;
}

/* ========================================================== */

/* ==========================================================
   PATCH 20 — JUVENILE JUSTICE STYLING
   ========================================================== */

.subarea-hero {
    background: #000000;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.subarea-hero h1 {
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.subarea-hero p {
    font-size: 18px;
    color: #cccccc;
}

.subarea-section {
    background: #ffffff;
    padding: 100px 0;
}

.subarea-section.alt {
    background: #000000;
    color: #ffffff;
}

.subarea-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.subarea-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.subarea-section ul {
    list-style: none;
    padding: 0;
}

.subarea-section ul li {
    font-size: 18px;
    margin-bottom: 16px;
    border-left: 3px solid #000000;
    padding-left: 14px;
}

.subarea-section.alt ul li {
    border-left: 3px solid #ffffff;
}

/* ========================================================== */

/* ==========================================================
   PATCH 20 — JUVENILE JUSTICE STYLING
   ========================================================== */

.subarea-hero {
    background: #000000;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.subarea-hero h1 {
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.subarea-hero p {
    font-size: 18px;
    color: #cccccc;
}

.subarea-section {
    background: #ffffff;
    padding: 100px 0;
}

.subarea-section.alt {
    background: #000000;
    color: #ffffff;
}

.subarea-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.subarea-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.subarea-section ul {
    list-style: none;
    padding: 0;
}

.subarea-section ul li {
    font-size: 18px;
    margin-bottom: 16px;
    border-left: 3px solid #000000;
    padding-left: 14px;
}

.subarea-section.alt ul li {
    border-left: 3px solid #ffffff;
}

/* ========================================================== */

/* ==========================================================
   PATCH 21 — VIDEO LIBRARY STYLING
   ========================================================== */

.jj-video-player {
    margin-bottom: 40px;
    background: #000;
    border: 1px solid #333;
}

.jj-video-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.jj-video-list h3 {
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.jj-video-list ul {
    list-style: none;
    padding: 0;
}

.jj-video-list li {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}

.jj-video-list li:hover {
    color: #ffffff;
}

/* ========================================================== */

/* ==========================================================
   PATCH 21 — VIDEO LIBRARY STYLING
   ========================================================== */

.jj-video-player {
    margin-bottom: 40px;
    background: #000;
    border: 1px solid #333;
}

.jj-video-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.jj-video-list h3 {
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.jj-video-list ul {
    list-style: none;
    padding: 0;
}

.jj-video-list li {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}

.jj-video-list li:hover {
    color: #ffffff;
}

/* ========================================================== */

/* ==========================================================
   PATCH 21 — VIDEO LIBRARY STYLING
   ========================================================== */

.jj-video-player {
    margin-bottom: 40px;
    background: #000;
    border: 1px solid #333;
}

.jj-video-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.jj-video-list h3 {
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.jj-video-list ul {
    list-style: none;
    padding: 0;
}

.jj-video-list li {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}

.jj-video-list li:hover {
    color: #ffffff;
}

/* ========================================================== */

/* ==========================================================
   PATCH 22 — JJ HIGH CONTRAST / PLAYLIST (AUTHORITATIVE)
   ========================================================== */

main.site-main { background: #ffffff !important; }

.jj-top {
  background: #000000 !important;
  color: #ffffff !important;
  padding: 70px 0 80px 0 !important;
}

.jj-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 36px !important;
  display: grid !important;
  grid-template-columns: 1.7fr 1fr !important;
  gap: 36px !important;
  align-items: start !important;
}

.jj-title {
  font-size: 52px !important;
  letter-spacing: 1px !important;
  margin-bottom: 10px !important;
}

.jj-subtitle {
  color: #bdbdbd !important;
  margin-bottom: 28px !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
}

.jj-player-shell {
  position: relative !important;
  border: 1px solid #2a2a2a !important;
  background: #0b0b0b !important;
}

#jj-main-video {
  width: 100% !important;
  height: 430px !important;
  display: block !important;
  background: #000 !important;
}

.jj-player-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9b9b9b !important;
  font-size: 16px !important;
  letter-spacing: 0.6px !important;
  background: rgba(0,0,0,0.55) !important;
  text-align: center !important;
  padding: 20px !important;
}

.jj-playlist {
  border: 1px solid #2a2a2a !important;
  background: #0b0b0b !important;
}

.jj-playlist-header {
  padding: 18px 18px 8px 18px !important;
  border-bottom: 1px solid #1f1f1f !important;
}

.jj-playlist-header h2 {
  font-size: 18px !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: 1px !important;
}

.jj-playlist-header p {
  margin: 0 !important;
  color: #9b9b9b !important;
  font-size: 13px !important;
}

.jj-video-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: 430px !important;
  overflow: auto !important;
}

.jj-video-item {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #141414 !important;
  cursor: pointer !important;
}

.jj-video-item:hover {
  background: #121212 !important;
}

.jj-video-title {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.jj-video-date {
  color: #9b9b9b !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.jj-section {
  padding: 90px 0 !important;
}

.jj-section-white {
  background: #ffffff !important;
  color: #000000 !important;
}

.jj-section-black {
  background: #000000 !important;
  color: #ffffff !important;
}

.jj-narrow {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 36px !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
}

.jj-contact-line {
  font-weight: 700 !important;
  margin-top: 22px !important;
}

.jj-wrap2 {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 36px !important;
}

.jj-h2 {
  font-size: 30px !important;
  margin-bottom: 26px !important;
  letter-spacing: 1px !important;
}

.jj-script pre {
  white-space: pre-wrap !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  background: #0b0b0b !important;
  border: 1px solid #1f1f1f !important;
  padding: 22px !important;
  color: #e8e8e8 !important;
}

.jj-glossary p {
  margin: 0 0 14px 0 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

@media (max-width: 980px) {
  .jj-wrap { grid-template-columns: 1fr !important; }
  #jj-main-video { height: 320px !important; }
  .jj-video-list { max-height: 320px !important; }
}

/* ========================================================== */

/* ===========================
   PATCH 23 PLAYER FIX
   =========================== */

.jj-hero {
  background: #000 !important;
  color: #fff !important;
  padding: 60px 40px !important;
}

.jj-title {
  font-size: 48px !important;
  margin-bottom: 10px !important;
}

.jj-subtitle {
  color: #aaa !important;
  margin-bottom: 25px !important;
}

.jj-player-container {
  position: relative !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

#jj-main-video {
  width: 100% !important;
  height: 450px !important;
  background: #000 !important;
}

.jj-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 450px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.6) !important;
  color: #ccc !important;
  font-size: 18px !important;
}

.jj-playlist-section {
  padding: 60px 40px !important;
  background: #fff !important;
  color: #000 !important;
}

.jj-video-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 900px !important;
}

.jj-video-item {
  padding: 14px !important;
  border-bottom: 1px solid #eee !important;
  display: flex !important;
  justify-content: space-between !important;
  cursor: pointer !important;
}

.jj-video-item:hover {
  background: #f4f4f4 !important;
}

.jj-video-title {
  font-weight: 600 !important;
}

.jj-video-date {
  color: #777 !important;
  font-size: 13px !important;
}

/* =========================== */

/* ===========================
   PATCH 24 GLOSSARY TOOLTIP
   =========================== */

.gloss {
  text-decoration: underline dotted;
  cursor: pointer;
  font-weight: 600;
}

.tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 12px 14px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  display: none;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =========================== */

/* ===========================
   PATCH 24 GLOSSARY TOOLTIP
   =========================== */

.gloss {
  text-decoration: underline dotted;
  cursor: pointer;
  font-weight: 600;
}

.tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 12px 14px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  display: none;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =========================== */

/* ==========================================================
   PATCH 24 — COURT SCENE STYLING
   ========================================================== */

.court-scene-section {
    padding: 80px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.court-scene-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.court-line {
    margin-bottom: 16px;
    line-height: 1.6;
}

.court-speaker {
    font-weight: 700;
    color: #000;
}

.court-text {
    color: #222;
}

.author-note {
    margin-top: 40px;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* ========================================================== */


/* ==========================================================
   PATCH 26 — Tooltip Styling
   ========================================================== */

.tooltip {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 320px;
    display: none;
    z-index: 9999;
}

.gloss {
    border-bottom: 1px dotted #000;
    cursor: pointer;
    font-weight: 600;
}

/* ========================================================== */


/* ==========================================================
   PATCH 27 — Playlist Styling
   ========================================================== */

.jj-video-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.jj-video-item {
    padding: 14px 20px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.jj-video-item:hover {
    background: #f4f4f4;
}

.jj-video-item.active {
    background: #000;
    color: #fff;
}

/* ========================================================== */

