/*
 * MessyCRM — The RevOps Buyer's Guide
 * Modern, clean, tech-analyst publication
 * Blue/indigo + white + slate
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;
    --green-600: #16A34A;
    --red-500: #EF4444;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate-800);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */

.topnav {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-icon {
    color: var(--blue-600);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links li a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--slate-500);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s;
}

.nav-links li a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.nav-links li.active a {
    color: var(--blue-700);
    background: var(--blue-50);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 1.5rem;
    height: 1.25rem;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--slate-700);
    position: absolute;
    left: 0;
    transition: 0.2s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* === HERO === */

.hero {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === CONTENT === */

.content-wrap {
    max-width: 52rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.content {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid var(--slate-200);
}

/* === TYPOGRAPHY === */

.content h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blue-100);
}

.content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1.25rem;
    color: var(--slate-700);
}

.content strong {
    color: var(--slate-800);
    font-weight: 600;
}

.content a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
}

.content a:hover {
    text-decoration: underline;
}

.content hr {
    border: none;
    height: 1px;
    background: var(--slate-200);
    margin: 2.5rem 0;
}

/* === LISTS === */

.content ul, .content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.4rem;
    color: var(--slate-700);
}

.content li strong {
    color: var(--slate-800);
}

/* === TABLES === */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
    display: block;
}

.content thead th {
    background: var(--slate-900);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.content thead th:first-child {
    border-radius: 0.5rem 0 0 0;
}

.content thead th:last-child {
    border-radius: 0 0.5rem 0 0;
}

.content tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: top;
}

.content tbody tr:hover {
    background: var(--blue-50);
}

.content tbody tr:last-child td {
    border-bottom: none;
}

.content tbody tr:last-child td:first-child {
    border-radius: 0 0 0 0.5rem;
}

.content tbody tr:last-child td:last-child {
    border-radius: 0 0 0.5rem 0;
}

.content tbody td:first-child {
    font-weight: 600;
    color: var(--slate-800);
}

/* Harvey ball alignment */
.content td:not(:first-child),
.content th:not(:first-child) {
    text-align: center;
}

/* === HARVEY BALL SPRITE === */
/* SVG sprite strip: 5 balls at 24px cells = 120x24 */
/* Slate stroke (#1E293B), blue fill (#2563EB) */

.hb {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAxMjAgMjQiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRkZGRkZGIi8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFFMjkzQiIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMzYiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiNGRkZGRkYiLz48cGF0aCBkPSJNMzYsMTIgTDM2LDIgQTEwLDEwIDAgMCwxIDQ2LDEyIFoiIGZpbGw9IiMyNTYzRUIiLz48Y2lyY2xlIGN4PSIzNiIgY3k9IjEyIiByPSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMUUyOTNCIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSI2MCIgY3k9IjEyIiByPSIxMCIgZmlsbD0iI0ZGRkZGRiIvPjxwYXRoIGQ9Ik02MCwxMiBMNjAsMiBBMTAsMTAgMCAwLDEgNjAsMjIgWiIgZmlsbD0iIzI1NjNFQiIvPjxjaXJjbGUgY3g9IjYwIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IiMxRTI5M0IiIHN0cm9rZS13aWR0aD0iMiIvPjxjaXJjbGUgY3g9Ijg0IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRkZGRkZGIi8+PHBhdGggZD0iTTg0LDEyIEw4NCwyIEExMCwxMCAwIDEsMSA3NCwxMiBaIiBmaWxsPSIjMjU2M0VCIi8+PGNpcmNsZSBjeD0iODQiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFFMjkzQiIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMTA4IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjMjU2M0VCIi8+PGNpcmNsZSBjeD0iMTA4IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IiMxRTI5M0IiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPgo=");
    background-repeat: no-repeat;
    background-size: 110px 22px;
    vertical-align: middle;
    position: relative;
}

.hb-1 { background-position: 0 0; }
.hb-2 { background-position: -22px 0; }
.hb-3 { background-position: -44px 0; }
.hb-4 { background-position: -66px 0; }
.hb-5 { background-position: -88px 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* === BLOCKQUOTES === */

.content blockquote {
    border-left: 3px solid var(--blue-600);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--blue-50);
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--slate-700);
    font-style: normal;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

/* === CODE === */

.content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: var(--slate-100);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    color: var(--slate-800);
}

.content pre {
    background: var(--slate-900);
    color: var(--slate-200);
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* === SECTION HERO (shared base for all section heroes) === */

.section-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1D4ED8 100%);
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.section-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600), #818CF8, var(--blue-600));
}

.section-hero-inner {
    max-width: 52rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hero-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.hero-breadcrumb a:hover {
    color: rgba(255,255,255,0.8);
}

.bc-sep {
    color: rgba(255,255,255,0.25);
    margin: 0 0.4rem;
}

.bc-current {
    color: rgba(255,255,255,0.7);
}

.hero-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #93C5FD;
    background: rgba(147,197,253,0.1);
    border: 1px solid rgba(147,197,253,0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.hero-title {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.hero-lead {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 38rem;
}

/* --- Index heroes: centered, pattern overlay, larger title --- */

.glossary-index-hero,
.categories-hero,
.compare-hero,
.about-hero {
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 100%);
}

.glossary-index-hero::before,
.categories-hero::before,
.compare-hero::before,
.about-hero::before {
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    left: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.glossary-index-hero .section-hero-inner,
.categories-hero .section-hero-inner,
.compare-hero .section-hero-inner,
.about-hero .section-hero-inner {
    max-width: 36rem;
}

.glossary-index-hero .hero-title,
.categories-hero .hero-title,
.compare-hero .hero-title,
.about-hero .hero-title {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}

.glossary-index-hero .hero-lead,
.categories-hero .hero-lead,
.compare-hero .hero-lead,
.about-hero .hero-lead {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: none;
}

/* --- Per-section gradient accents --- */

.categories-hero { background: linear-gradient(135deg, #0F172A 0%, #0E4429 50%, #1D4ED8 100%); }
.categories-hero::after { background: linear-gradient(90deg, #16A34A, #3B82F6, #16A34A); }
.category-page-hero { background: linear-gradient(135deg, #0F172A 0%, #14532D 40%, #1D4ED8 100%); }
.category-page-hero::after { background: linear-gradient(90deg, #16A34A, #3B82F6, #16A34A); }

.compare-hero { background: linear-gradient(135deg, #0F172A 0%, #4C1D95 50%, #1D4ED8 100%); }
.compare-hero::after { background: linear-gradient(90deg, #7C3AED, #3B82F6, #7C3AED); }
.comparison-page-hero { background: linear-gradient(135deg, #0F172A 0%, #3B0764 40%, #1D4ED8 100%); }
.comparison-page-hero::after { background: linear-gradient(90deg, #7C3AED, #3B82F6, #7C3AED); }

.about-hero { background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%); }
.about-hero::after { background: linear-gradient(90deg, var(--slate-500), var(--blue-600), var(--slate-500)); }

/* === GLOSSARY ENTRY STYLES === */

.glossary-entry h1 {
    display: none; /* title handled by hero */
}

.glossary-entry h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 2.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glossary-entry h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3rem;
    background: linear-gradient(180deg, var(--blue-600), #818CF8);
    border-radius: 2px;
    flex-shrink: 0;
}

/* First paragraph after h1 (the main definition) — highlighted */
.glossary-entry h1 + p,
.glossary-entry > p:first-of-type {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--slate-700);
    border-left: 3px solid var(--blue-600);
    padding-left: 1.25rem;
    margin-bottom: 1.75rem;
}

/* Formula styling — paragraphs containing the = sign that look like formulas */
.glossary-entry h2 + p {
    position: relative;
}

/* Related Terms section — last h2 + ul combo */
.glossary-entry h2:last-of-type {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

.glossary-entry h2:last-of-type::before {
    background: linear-gradient(180deg, #16A34A, #22D3EE);
}

.glossary-entry h2:last-of-type + ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
}

.glossary-entry h2:last-of-type + ul li {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.85rem 1.15rem;
    transition: all 0.15s;
    margin-bottom: 0;
}

.glossary-entry h2:last-of-type + ul li:hover {
    border-color: var(--blue-600);
    background: var(--blue-50);
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transform: translateY(-1px);
}

.glossary-entry h2:last-of-type + ul li a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Table enhancements for glossary */
.glossary-entry table {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Lists with strong lead items — visual enhancement */
.glossary-entry ul li {
    margin-bottom: 0.6rem;
    line-height: 1.65;
}

/* === GLOSSARY INDEX STYLES === */

.glossary-index h1 {
    display: none; /* handled by hero */
}

.glossary-index > p:first-of-type,
.glossary-index > p:nth-of-type(2) {
    display: none; /* intro text handled by hero */
}

.glossary-index hr {
    display: none;
}

.glossary-index h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-600);
    border-bottom: none;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.glossary-index h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--slate-200), transparent);
}

.glossary-index ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.glossary-index ul li {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    transition: all 0.2s;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.glossary-index ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--blue-600), #818CF8);
    opacity: 0;
    transition: opacity 0.2s;
}

.glossary-index ul li:hover {
    border-color: var(--blue-600);
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}

.glossary-index ul li:hover::before {
    opacity: 1;
}

.glossary-index ul li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate-900);
}

.glossary-index ul li a:hover {
    text-decoration: none;
    color: var(--blue-600);
}

/* Glossary index: no card wrapper, terms float on background */
.glossary-index {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0;
}

/* Glossary entry: keep the card, just polish it */
.glossary-entry {
    border-top: 3px solid var(--blue-600);
}

/* === CATEGORIES STYLES === */

.categories-index h1 { display: none; }
.categories-index > p:first-of-type { display: none; } /* handled by hero */

.categories-index {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0;
}

.categories-index h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16A34A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.categories-index h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--slate-200), transparent);
}

.categories-index h2:first-of-type { margin-top: 0; }

.categories-index ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.categories-index ul li {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.categories-index ul li:hover {
    border-left-color: #16A34A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.categories-index ul li p { margin: 0; }

.category-detail h1 { display: none; }
.category-detail { border-top: 3px solid #16A34A; }

.category-detail h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.category-detail h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3rem;
    background: linear-gradient(180deg, #16A34A, #3B82F6);
    border-radius: 2px;
    flex-shrink: 0;
}

/* === COMPARISONS STYLES === */

.compare-index h1 { display: none; }
.compare-index > p:first-of-type { display: none; }

.compare-index {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0;
}

.compare-index ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compare-index ul li {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.compare-index ul li:hover {
    border-left-color: #7C3AED;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.compare-index ul li p { margin: 0; }

.compare-index h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7C3AED;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compare-index h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--slate-200), transparent);
}

.compare-index h2:first-of-type { margin-top: 0; }

.comparison-detail h1 { display: none; }
.comparison-detail { border-top: 3px solid #7C3AED; }

.comparison-detail h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.comparison-detail h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3rem;
    background: linear-gradient(180deg, #7C3AED, #3B82F6);
    border-radius: 2px;
    flex-shrink: 0;
}

/* === ABOUT STYLES === */

.about-content h1 { display: none; }
.about-content { border-top: 3px solid var(--slate-500); }

.about-content h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.about-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3rem;
    background: linear-gradient(180deg, var(--slate-500), var(--blue-600));
    border-radius: 2px;
    flex-shrink: 0;
}

/* === FOOTER === */

.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 2.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--slate-200);
        flex-direction: column;
        padding: 0.5rem 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.06);
    }

    .nav-links.open { display: flex; }
    .nav-links li a { padding: 0.6rem 0.75rem; }

    .hero { padding: 2.5rem 1rem; }
    .hero h1 { font-size: 1.75rem; }
    .section-hero { padding: 2rem 1rem 1.5rem; }
    .hero-title { font-size: 1.75rem; }
    .glossary-index-hero .hero-title,
    .categories-hero .hero-title,
    .compare-hero .hero-title,
    .about-hero .hero-title { font-size: 2rem; }

    .content { padding: 1.5rem 1.25rem; border-radius: 0; }
    .content-wrap { padding: 1.5rem 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-sub { font-size: 0.95rem; }
    .content h1 { font-size: 1.5rem; }
    .content h2 { font-size: 1.2rem; }
}

/* ── Hero Image Styles ────────────────────────────────────── */
.hero-wrapper { display: flex; align-items: center; gap: 48px; width: 100%; text-align: left; }
.hero-content-left, .hero-inner-left { flex: 1.2; }
.hero-image { flex: 0.8; display: flex; justify-content: flex-end; position: relative; z-index: 2; }
.hero-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 992px) {
    .hero-wrapper { flex-direction: column; gap: 32px; text-align: center; }
    .hero-image { order: -1; justify-content: center; }
}

/* --- Enhanced Image Constraints --- */
.content-wrap img, .content img, article img {
    max-width: 80% !important;
    display: block !important;
    margin: 32px auto !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .content-wrap img, .content img, article img {
        max-width: 100% !important;
    }
}

/* Force Image Width Correction */
.content-wrap .content img, 
article.content img,
main.content-wrap img {
    max-width: 80% !important;
    width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 40px auto !important;
}

/* --- Global Image Size Fix --- */
.content img, .content-wrap img, article img, main img {
    max-width: 80% !important;
    width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 40px auto !important;
}

@media (max-width: 768px) {
    .content img, .content-wrap img, article img, main img {
        max-width: 100% !important;
        width: 100% !important;
    }
}
