
        .page-content { display: block; }
        
        .sticky-header { position: sticky; top: 0; z-index: 100; }
        .nav-link.active { border-bottom: 2px solid #B19F68; color: #B19F68; font-weight: 600; }
        .lex-card { background: #FFFFFF; border: 1px solid rgba(8, 26, 153, 0.1); border-radius: 0.75rem; transition: all 0.2s; }
        .lex-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
        .brand-logo { width: 3rem; height: 3rem; object-fit: contain; border-radius: 9999px; }
        .brand-banner { width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22); }
        .research-card[hidden] { display: none !important; }

        /* Mobile layout */
        @media (max-width: 767px) {
            html, body {
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }

            body {
                font-size: 16px;
                line-height: 1.65;
            }

            .container {
                width: 100%;
                max-width: 100%;
            }

            .px-6 {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }

            .py-24,
            .py-20 {
                padding-top: 3.5rem !important;
                padding-bottom: 3.5rem !important;
            }

            .py-16 {
                padding-top: 3rem !important;
                padding-bottom: 3rem !important;
            }

            .p-10,
            .p-9,
            .p-8 {
                padding: 1.5rem !important;
            }

            .mt-20 {
                margin-top: 3rem !important;
            }

            .mb-16 {
                margin-bottom: 3rem !important;
            }

            .mb-12 {
                margin-bottom: 2.25rem !important;
            }

            .page-content h1 {
                font-size: clamp(2.35rem, 11vw, 3.25rem) !important;
                line-height: 1.05 !important;
                overflow-wrap: anywhere;
            }

            .page-content h2 {
                line-height: 1.12;
            }

            .page-content .text-4xl {
                font-size: 2rem !important;
                line-height: 1.15 !important;
            }

            .page-content .text-3xl {
                font-size: 1.65rem !important;
                line-height: 1.2 !important;
            }

            .page-content .text-2xl {
                font-size: 1.35rem !important;
                line-height: 1.3 !important;
            }

            .page-content .text-xl {
                font-size: 1.05rem !important;
                line-height: 1.6 !important;
            }

            header {
                padding-top: 0.7rem !important;
                padding-bottom: 0.7rem !important;
            }

            header .brand-logo {
                width: 2.4rem;
                height: 2.4rem;
            }

            header .tracking-widest {
                font-size: 1rem;
                letter-spacing: 0.08em;
            }

            #mobile-menu {
                max-height: calc(100vh - 64px);
                overflow-y: auto;
                padding: 1rem;
            }

            #mobile-menu a,
            #mobile-menu button {
                min-height: 44px;
                display: flex;
                align-items: center;
            }

            #mobile-menu button {
                justify-content: center;
            }

            #page-home > section:first-child .container {
                display: block;
            }

            #page-home > section:first-child h1 {
                margin-bottom: 1.25rem !important;
            }

            #page-home > section:first-child p {
                margin-bottom: 1.75rem !important;
            }

            #page-home > section:first-child button {
                width: 100%;
                padding: 0.9rem 1.25rem;
            }

            .brand-banner {
                border-radius: 0.75rem;
                box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
            }

            .lex-card:hover {
                transform: none;
            }

            article,
            .lex-card,
            .rounded-2xl {
                max-width: 100%;
            }

            input,
            select,
            textarea,
            button {
                font-size: 16px !important;
                max-width: 100%;
            }

            input,
            select,
            textarea {
                min-height: 48px;
            }

            textarea {
                min-height: 150px;
            }

            button,
            a {
                overflow-wrap: anywhere;
            }

            #page-about img[alt="Muhammad Waqas, founder of Lexplain"] {
                height: 320px;
                object-position: center 34%;
            }

            #page-about .space-y-12 > :not([hidden]) ~ :not([hidden]) {
                margin-top: 2.75rem;
            }

            footer {
                padding-top: 3.5rem !important;
                padding-bottom: 2rem !important;
            }

            footer .grid {
                gap: 2.25rem;
            }

            footer .flex.gap-6 {
                flex-wrap: wrap;
                gap: 0.9rem 1.25rem;
            }

            footer .border-t.flex {
                gap: 1rem;
            }
        }

        @media (max-width: 380px) {
            .page-content h1 {
                font-size: 2.15rem !important;
            }

            .px-6 {
                padding-left: 0.85rem !important;
                padding-right: 0.85rem !important;
            }

            .p-10,
            .p-9,
            .p-8 {
                padding: 1.25rem !important;
            }
        }
    

/* Multi-page website refinements */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

@media (max-width: 767px) {
  .mobile-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  footer .col-span-2 {
    grid-column: auto;
  }
}

/* Full research articles */
.research-hero {
  background: linear-gradient(135deg, #081A99 0%, #1028A8 62%, #071A57 100%);
  color: #fff;
  padding: 4.75rem 0 4.25rem;
  border-bottom: 6px solid #B19F68;
}

.research-back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: #dbe4ff;
  font-weight: 700;
}

.research-back:hover { color: #B19F68; }
.research-tags { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; }
.research-tags span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .38rem .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.research-hero h1 { max-width: 900px; font-family: "DM Serif Display", serif; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.02em; }
.research-subtitle { max-width: 760px; margin-top: 1rem; color: #dbe4ff; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.research-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; color: #b9c7fb; font-size: .8rem; font-weight: 600; }
.research-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; padding-top: 4rem; }
.research-aside { position: sticky; top: 100px; align-self: start; border-left: 3px solid #B19F68; padding-left: 1.1rem; font-size: .85rem; }
.research-aside strong { display: block; color: #081A99; margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.research-aside ol { display: grid; gap: .55rem; color: #596275; }
.research-aside a:hover { color: #081A99; }
.research-content { min-width: 0; font-size: 1.05rem; line-height: 1.78; }
.research-summary { background: #EEF2FF; border: 1px solid #c9d2fa; border-left: 5px solid #B19F68; border-radius: .75rem; padding: 1.5rem 1.65rem; margin-bottom: 2.5rem; }
.research-summary span { color: #081A99; font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.research-summary p { margin-top: .45rem; font-weight: 600; color: #071A57; }
.research-section, .research-takeaways { scroll-margin-top: 110px; margin: 0 0 3rem; }
.research-section h2, .research-takeaways h2, .research-disclaimer h2 { color: #071A57; font-family: "DM Serif Display", serif; font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
.research-section h3 { color: #081A99; font-weight: 800; margin: 1.4rem 0 .45rem; }
.research-section p + p { margin-top: 1rem; }
.research-content ul, .research-content ol { padding-left: 1.4rem; margin: 1rem 0; }
.research-content ul { list-style: disc; }
.research-content ol { list-style: decimal; }
.research-content li { padding-left: .35rem; margin: .5rem 0; }
.research-takeaways { background: #071A57; color: #fff; border-radius: 1rem; padding: 1.75rem 2rem; }
.research-takeaways h2 { color: #B19F68; }
.research-note { margin: 1.5rem 0; padding: 1.15rem 1.3rem; border-radius: .65rem; border-left: 4px solid #081A99; background: #EEF2FF; color: #071A57; }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.example-grid > div { border: 1px solid #dce2f4; border-radius: .75rem; padding: 1.15rem; background: #fff; box-shadow: 0 8px 24px rgba(7,26,87,.06); }
.example-grid h3 { margin-top: 0; }
.research-caveat { color: #596275; font-size: .86rem; font-style: italic; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.comparison-grid > div { background: #f7f8fc; border-top: 4px solid #081A99; border-radius: .65rem; padding: 1.25rem; }
.comparison-grid h3 { margin-top: 0; }
.research-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: .75rem; border: 1px solid #dce2f4; }
.research-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .92rem; }
.research-table th { background: #071A57; color: #fff; text-align: left; padding: .9rem 1rem; }
.research-table td { padding: .9rem 1rem; border-top: 1px solid #dce2f4; vertical-align: top; }
.research-table tr:nth-child(even) td { background: #f7f8fc; }
.research-sources { border-top: 1px solid #dce2f4; padding-top: 2.5rem; }
.research-sources p { color: #596275; font-size: .9rem; }
.research-sources a { color: #081A99; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.research-disclaimer { background: #fff8e5; border: 1px solid #d7c27d; border-radius: .8rem; padding: 1.4rem 1.6rem; }
.research-disclaimer h2 { color: #7a5a00; font-size: 1.4rem; }

@media (max-width: 900px) {
  .research-layout { grid-template-columns: 1fr; gap: 2rem; }
  .research-aside { position: static; border: 1px solid #dce2f4; border-left: 4px solid #B19F68; border-radius: .65rem; padding: 1rem 1.2rem; }
  .research-aside ol { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .45rem 1.5rem; }
  .example-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .research-hero { padding: 2.75rem 0 3rem; }
  .research-hero h1 { font-size: clamp(2.35rem, 11vw, 3.35rem) !important; overflow-wrap: normal; word-break: normal; }
  .research-back { margin-bottom: 1.5rem; }
  .research-meta { display: grid; gap: .35rem; }
  .research-layout { padding-top: 2.25rem; }
  .research-aside ol { grid-template-columns: 1fr; }
  .research-content { font-size: 1rem; line-height: 1.7; }
  .research-summary, .research-takeaways, .research-disclaimer { padding: 1.25rem; }
  .research-section h2, .research-takeaways h2 { font-size: 1.7rem !important; }
  .comparison-grid { grid-template-columns: 1fr; }
  .research-content ul, .research-content ol { padding-left: 1.2rem; }
}
