.lux-research { color: #203047; font-size: 16px; line-height: 1.6; }
.lux-research [hidden] { display: none !important; }
.research-heading { padding: 150px 0 42px; background: linear-gradient(120deg,#021331,#203a5f); color: #fff; }
.lux-research .research-heading h1 { color: #fff; font-size: 44px; line-height: 1.1; margin: 0 0 16px; }
.lux-research .research-heading p { color: #fff; max-width: 780px; margin-bottom: 0; }
.lux-research .research-eyebrow { color: #98703e; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.lux-research .research-heading .research-eyebrow { color: #dfbc8d; }
.research-content { padding-top: 20px; padding-bottom: 60px; }
.lux-research h2 { font-size: 24px; font-weight: 500; line-height: 1.2; color: #102541; margin: 0 0 14px; }
.research-workspace, .research-welcome { padding: 18px; background: #fff; border: 1px solid #dce1e7; border-radius: 8px; box-shadow: 0 14px 36px rgba(0, 0, 0, .06);}
.research-welcome { max-width: 820px; }
.research-welcome .research-actions { margin: 24px 0; }
.research-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.research-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lux-research button { font-family: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.lux-research .research-primary, .lux-research .research-secondary { padding: 11px 16px; border-radius: 8px; background: #203a5f; color: #fff; font-weight: 600; }
.lux-research .research-secondary { background: #7390af ; color: #fff; }
.lux-research button:disabled { opacity: .5; cursor: default; }
.lux-research button:focus-visible, .lux-research a:focus-visible, .lux-research input:focus-visible, .lux-research select:focus-visible, .lux-research textarea:focus-visible, .research-comparison:focus-visible { outline: 3px solid #7390af ; outline-offset: 3px; }
.lux-research .research-text-button { background: none; border: 0; color: #7d2828; text-decoration: underline; padding: 8px 0; }
.research-save-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.research-save-row label { flex: 1 1 260px; max-width: 480px; }
.lux-research label { color: #203047; font-size: 14px; font-weight: 600; margin: 0; }
.lux-research input[type=text], .lux-research select, .lux-research textarea { display: block; width: 100%; border: 1px solid #a8b3c0; border-radius: 8px; padding: 10px 12px; background-color: #fff; color: #203047; font: inherit; font-weight: 400; margin: 5px 0 0; }
.lux-research select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23203a5f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.lux-research input[type=checkbox] { appearance: auto; width: 17px; height: 17px; margin: 0 6px 0 0; accent-color: #203a5f; vertical-align: middle; }
.lux-research .research-muted, .lux-research .research-context { font-size: 14px; color: #3f3f3f; }
.research-context { margin: 18px 0 0; }
.research-print-option { display: block; margin-bottom: 16px !important; }
.research-comparison { overflow-x: auto; margin-top: 16px; }
.research-mobile-property { display: none; }
.research-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.research-table th, .research-table td { border-bottom: 1px solid #dce1e7; padding: 12px; vertical-align: top; text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.research-table th[scope=row] { position: sticky; left: 0; background: #f0f3f6; width: 160px; z-index: 1; color: #203047; font-weight: 600; }
.research-table th[scope=col] { background: #d4dfe1; font-weight: 600; }
.research-table .research-property-title { display: block; font-size: 16px; margin: 9px 0; }
.research-photo { width: 100%; height: 175px; object-fit: cover; border-radius: 8px; background: #edf0f4; }
.research-table textarea { min-height: 110px; resize: vertical; font-size: 14px; }
.research-table .research-note-print { display: none; white-space: pre-wrap; }
.research-table .research-remove { display: block; margin-top: 8px; color: #7d2828; border: 0; background: none; text-decoration: underline; }
.research-empty { padding: 25px; margin: 0; background: #F3F3F3; border-radius: 8px; }
.research-message:empty { display: none; }
.lux-research .research-message { padding: 14px 18px; background: #eef4fa; color: #17314e; border-left: 4px solid #203a5f; }
.lux-research .research-message.is-error { background: #fff1ee; color: #752817; border-left-color: #a83c24; }
.research-tools { flex: 0 1 340px; min-width: 0; }
.research-tools > .research-actions { justify-content: flex-end; }
.research-saved { margin: 14px 0 0; }
.lux-research .research-saved h2 { font-size: 17px; margin-bottom: 8px; }
.research-saved p { font-size: 13px; margin: 0; }
.research-tools #research-saved-list { max-height: none; overflow: visible; }
.research-tools .research-saved-button { width: 100%; }
.research-browser { margin-top: 32px; }
#browse-heading { scroll-margin-top: 110px; }
.research-start-help { margin-bottom: 12px; }
#research-saved-list { display: flex; flex-wrap: wrap; gap: 10px; }
.research-saved-button { text-align: left; border: 1px solid #ccd4de; padding: 12px 16px; border-radius: 8px; color: #203a5f; background: #fff; }
.research-saved-button span { display: block; font-size: 13px; color: #3f3f3f; margin-top: 3px; }
.research-filters { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; align-items: end; margin-bottom: 24px; }
.research-favorite-filter { grid-column: span 3; padding-bottom: 10px; }
.research-catalog { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.research-card { border: 1px solid #dce1e7; border-radius: 8px; background: #fff; overflow: hidden; }
.research-card .research-photo { height: 170px; border-radius: 0; }
.research-card-content { padding: 18px; }
.lux-research .research-card h3 { font-size: 18px; font-weight: 500; line-height: 1.15; margin: 8px 0 12px; color: #102541; }
.lux-research .research-card p { font-size: 14px; color: #33455c; margin: 6px 0; }
.research-card button { margin-top: 12px; width: 100%; }
.research-status { font-size: 12px; font-weight: 600; color: #3f3f3f; text-transform: uppercase; letter-spacing: .06em; }
.research-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.research-print-date { display: none; }
@media (max-width: 991.98px) { .research-catalog { grid-template-columns: repeat(2,1fr); } .research-filters { grid-template-columns: repeat(2,1fr); } .research-favorite-filter { grid-column: auto; } }
@media (max-width: 575.98px) {
    .research-heading { padding-top: 125px; padding-bottom: 30px; }
    .lux-research .research-heading h1 { font-size: 34px; }
    .research-workspace, .research-welcome { padding: 18px; }
    .research-section-heading { display: block; }
    .research-tools > .research-actions { justify-content: flex-start; }
    .research-filters { grid-template-columns: 1fr; }
    .research-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .research-card-content { padding: 12px; }
    .lux-research .research-card h3 { font-size: 17px; }
    .lux-research .research-card p { font-size: 13px; }
    .research-card button { padding: 10px 6px; font-size: 13px; }
    .research-save-row label { max-width: none; }
    .research-actions { margin-top: 12px; }
    .research-table th[scope=row] { width: 125px; }
    .research-card .research-photo { height: 120px; }
}
@media screen and (max-width: 575.98px) {
    .research-comparison { overflow: visible; }
    .research-table { display: block; min-width: 0 !important; }
    .research-table thead, .research-table tbody, .research-table tr { display: block; }
    .research-table thead tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
    .research-table thead th:first-child { display: none; }
    .research-table th[scope=col] { display: block; min-width: 0; padding: 10px; border: 0; border-radius: 8px; }
    .research-table .research-photo { height: 90px; }
    .research-table .research-property-title { font-size: 14px; }
    .research-table tbody tr { margin-bottom: 16px; border: 1px solid #dce1e7; border-radius: 8px; overflow: hidden; }
    .research-table th[scope=row] { display: block; position: static; width: auto; padding: 10px 12px; border: 0; }
    .research-table td { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 12px; }
    .research-table td:last-child { border-bottom: 0; }
    .research-mobile-property { display: block; color: #3f3f3f; font-size: 13px; line-height: 1.5; }
    .research-comparison-value { text-align: right; font-weight: 600; }
    .research-table .research-note-row td { display: block; }
    .research-table textarea { font-size: 16px; }
}
@media print {
    @page { size: landscape; margin: 12mm; }
    body.lux-research-page > :not(main), .research-controls, .research-message { display: none !important; }
    .research-heading { padding: 0 0 6px; background: #fff; color: #000; }
    .lux-research .research-heading h1 { font-size: 20px; color: #000; margin: 0; }
    .lux-research .research-heading p, .lux-research .research-eyebrow, #research-save-state { display: none; }
    .research-section-heading { margin: 0; }
    .research-content, .research-workspace { padding: 0; border: 0; }
    .lux-research .container { max-width: none; width: 100%; }
    .research-comparison { overflow: visible; margin-top: 8px; }
    .research-table { min-width: 0 !important; width: 100%; }
    .research-table th, .research-table td { font-size: 10.5px; padding: 4px 7px; line-height: 1.25; }
    .research-table tr { break-inside: avoid; }
    .research-table th[scope=row] { position: static; width: 120px; }
    .research-photo { height: 120px; }
    .research-table .research-property-title { font-size: 11px; margin: 4px 0; }
    .research-status { font-size: 9px; }
    .research-table textarea, .research-table .research-remove, .research-table a { display: none !important; }
    .research-note-row { display: none; }
    .research-print-with-notes .research-note-row { display: table-row; }
    .research-print-with-notes .research-note-row { break-inside: auto; }
    .research-print-with-notes .research-note-print { display: block; }
    .research-print-date { display: block; font-size: 9px; margin: 6px 0 0; }
    .lux-research .research-context { font-size: 9px; line-height: 1.3; margin-top: 8px; }
    .lux-research h2 { font-size: 17px; margin: 6px 0; }
}

/* Keep template submit-button hover effects out of the research controls. */
.lux-research button.research-primary, .lux-research button.research-secondary { transition: none; transform: none; animation: none; letter-spacing: normal; }
.lux-research button.research-primary:hover, .lux-research button.research-primary:focus-visible { background: #102541; color: #fff; transform: none; letter-spacing: normal; }
.lux-research button.research-secondary:hover, .lux-research button.research-secondary:focus-visible { background: #000; color: #fff; transform: none; letter-spacing: normal; }

/* Independent columns keep the introduction aligned as comparisons accumulate. */
.research-workspace-top { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 28px; }
.research-workspace-intro { min-width: 0; }
.research-intro { margin-bottom: 24px; }
.research-hero { background-attachment: scroll; }
.lux-research button.research-saved-button,
.lux-research button.research-saved-button:hover,
.lux-research button.research-saved-button:focus-visible {background: #d4dfe1; border: 1px solid #ccd4de; font-size: 15px; font-weight: 600; padding: 12px 16px; color: #203a5f; transition: none; transform: none; animation: none; }
.lux-research button.research-saved-button:hover,
.lux-research button.research-saved-button:focus-visible { background: #edf1f6; border-color: #203a5f; }
.lux-account-side-links a.lux-account-tool-detail { display: block; text-transform: none; }
.lux-account-tool-detail strong { display: block; font-size: 14px; }
.lux-account-tool-detail small { display: block; font-size: 14px; font-weight: 400; line-height: 1.5; margin-top: 1px; color: #fff; letter-spacing: normal; }
@media screen and (max-width: 767.98px) {
    .research-workspace-top { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .research-tools > .research-actions { justify-content: flex-start; }
}
@media print {
    .research-workspace-top { display: block; }
    .research-hero { padding: 0 0 8px; min-height: 0; height: auto; background: none !important; }
    .research-hero::before, .research-hero .subtitle { display: none; }
    .research-hero .title { color: #000; font-size: 20px; margin: 0; }
}

/* Print comparisons from below the current page hero. Screen layout is unchanged. */
@media print {
    body.lux-research-page #research-main > .banner-header {
        display: none !important;
    }
    body.lux-research-page #research-main {
        margin: 0 !important;
        padding: 0 !important;
    }
    body.lux-research-page #research-main > .research-content {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 !important;
    }
    body.lux-research-page .research-content > .row:first-child {
        margin: 0;
    }
    body.lux-research-page .research-content > .row:first-child > [class*="col-"] {
        padding: 0;
    }
    body.lux-research-page .research-content .section-subtitle {
        margin: 0 0 4px;
        color: #000;
        font-size: 9px;
        line-height: 1.3;
    }
    body.lux-research-page .research-content .section-title {
        margin: 0 0 10px;
        color: #000;
        font-size: 20px;
        line-height: 1.2;
    }
    body.lux-research-page .research-workspace {
        border-radius: 0;
        box-shadow: none;
    }
    body.lux-research-page .research-table thead {
        display: table-header-group;
    }
}

/* Agent attribution beside the research page headings, including printed copies. */
.lux-research .research-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.lux-research .research-page-heading-copy { min-width: 0; }
.lux-research .research-page-heading .section-title { margin-bottom: 0; }
.lux-research .research-agent-credit { flex-shrink: 0; margin: 0; color: inherit; font-size: 18px; font-weight: 500; line-height: 1.5; text-align: right; }
@media screen and (max-width: 767.98px) {
    .lux-research .research-page-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
    .lux-research .research-agent-credit { text-align: left; }
}
@media print {
    body.lux-research-page .research-page-heading { margin-bottom: 10px; }
    body.lux-research-page .research-content .research-page-heading .section-title { margin-bottom: 0; }
    body.lux-research-page .research-agent-credit { color: #000; font-size: 12px; }
}
