
.document-contents-text-container {
    overflow-y: scroll;
    height: 70vh;
}

.tagify.form-control[readonly] {
    background-color: white;
    border: 0;
}

/* ===================================================================
   Public marketing / search landing page
   =================================================================== */
.public-home-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 20px 64px;
    box-sizing: border-box;
}

/* Hero */
.public-hero {
    text-align: center;
    padding: 28px 16px 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e6e8eb;
}
.public-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #1b2733;
}
.public-hero p {
    font-size: 1.05rem;
    color: #55606b;
    max-width: 720px;
    margin: 0 auto;
}

/* Two-column layout: main search/results + account sidebar */
.public-content-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.public-main {
    flex: 1 1 auto;
    min-width: 0;
}
.public-sidebar {
    flex: 0 0 320px;
}

/* Search card — makes the "what do I do" area obvious */
.public-search-card {
    background: #fff;
    border: 1px solid #e0e3e7;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}
.search-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1b2733;
}
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}
.search-filters label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}
.search-input-row {
    display: flex;
    gap: 10px;
}
.search-input-row input[type="text"] {
    flex: 1 1 auto;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid #c4ccd4;
    border-radius: 6px;
}
.search-input-row .btn {
    white-space: nowrap;
}
.search-status-text {
    display: block;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #6b7785;
}

/* Results */
.results-section {
    margin-bottom: 24px;
}
.results-section h3 {
    font-size: 1.05rem;
    color: #1b2733;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f4;
}
.results-placeholder {
    display: block;
    color: #97a1ab;
    font-style: italic;
    padding: 32px 20px;
    text-align: center;
    border: 1px dashed #d6dbe0;
    border-radius: 8px;
    background: #fafbfc;
}
.result-div .panel,
.result-div .Wt-panel {
    margin-bottom: 12px;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
}
.result-heading {
    display: block;
    margin-bottom: 6px;
    color: #1b2733;
    font-size: 0.95rem;
}
.result-citation {
    font-weight: 400;
    color: #6b7785;
    font-size: 0.85em;
}
.result-paragraph {
    display: block;
    color: #33404b;
    line-height: 1.55;
}

/* Account sidebar ("Why create a free account") */
.public-sidebar .public-marketing {
    background: #f7f9fb;
    border: 1px solid #e0e3e7;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 20px;
}
.public-sidebar .public-marketing h2 {
    font-size: 1.2rem;
    margin: 0 0 6px;
    color: #1b2733;
}
.public-sidebar .public-marketing > p {
    font-size: 0.9rem;
    color: #55606b;
    margin: 0 0 6px;
}
.benefits-list {
    margin: 12px 0 16px;
}
.benefit-item {
    padding: 10px 0;
    border-top: 1px solid #e9edf1;
    font-size: 0.875rem;
    color: #44505b;
    line-height: 1.45;
}
.benefit-item:first-child {
    border-top: 0;
}
.benefit-item strong {
    color: #1b2733;
}
.public-sidebar .btn {
    width: 100%;
    margin-top: 4px;
}

/* Free-limit-reached callout */
.guest-limit-reached {
    background: #fff8e6;
    border: 1px solid #f0d98c;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}
.guest-limit-reached h3 {
    margin-top: 0;
}

/* Stack to one column on narrow screens */
@media (max-width: 880px) {
    .public-content-layout {
        flex-direction: column;
    }
    .public-sidebar {
        flex-basis: auto;
        width: 100%;
    }
    .public-sidebar .public-marketing {
        position: static;
    }
}
