/*************************************************************
 * HELP ARTICLE STYLESHEET
 * Unified CSS for all help articles rendered via Help.aspx
 * All rules scoped under .help-body
 *************************************************************/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

/*************************************************************
 * HELP.MASTER — Layout styles for anonymous help pages
 *************************************************************/
.help-master-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 10pt;
    color: #999;
}

.help-master-footer a {
    color: #888;
    text-decoration: none;
}

.help-master-footer a:hover {
    text-decoration: underline;
}

/*************************************************************
 * HELP ARTICLE CONTENT — All rules scoped under .help-body
 *************************************************************/

/* === CONTAINER === */
.help-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Inter', -apple-system, sans-serif !important;
    color: #2a2a2a;
    line-height: 1.6;
    font-size: 17px;
}

.help-body * {
    font-family: inherit;
}

/* === HEADINGS === */
.help-body h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #2a2a2a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.help-body h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e5e5e0;
}

.help-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* === BODY TEXT === */
.help-body p {
    margin-bottom: 1rem;
}

.help-body ul, .help-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-body li {
    margin-bottom: 0.4rem;
}

/* === LINKS === */
.help-body a {
    color: #1a6b4a;
    text-decoration: none;
}

.help-body a:hover {
    text-decoration: underline;
}

/* === SUBTITLE (date, byline, etc.) === */
.help-body .help-subtitle {
    font-size: 1.1rem;
    color: #5a5a5a;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* === PITCH (bold lead-in paragraph) === */
.help-body .help-pitch {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 1rem;
}

/* === CALLOUT BOX (green accent — key points) === */
.help-body .help-callout {
    background: #e8f5ee;
    border-left: 4px solid #1a6b4a;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.help-body .help-callout p {
    margin-bottom: 0.4rem;
}

.help-body .help-callout p:last-child {
    margin-bottom: 0;
}

.help-body .help-callout strong {
    color: #1a6b4a;
}

/* === WARNING BOX (amber accent) === */
.help-body .help-warning {
    background: #f8f8f5;
    border: 1px solid #e0ddd5;
    border-left: 4px solid #ba7517;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.help-body .help-warning p {
    margin-bottom: 0.4rem;
}

.help-body .help-warning p:last-child {
    margin-bottom: 0;
}

/* === DISTINCTION BOX (blue accent — important clarification) === */
.help-body .help-distinction {
    background: #eef0fa;
    border-left: 5px solid #4a5899;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.help-body .help-distinction strong {
    color: #4a5899;
    font-size: 1.15rem;
}

.help-body .help-distinction p {
    margin-bottom: 0.4rem;
}

.help-body .help-distinction p:last-child {
    margin-bottom: 0;
}

/* === HIGHLIGHT BOX (yellow — key info) === */
.help-body .help-highlight {
    background: #fff8e1;
    border: 1px solid #e6d98a;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

/* === EXAMPLE BOX (white card with border) === */
.help-body .help-example {
    background: #fff;
    border: 1px solid #e5e5e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.help-body .help-example-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a6b4a;
    margin-bottom: 0.75rem;
}

/* === TABLES === */
.help-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 1rem 0;
}

.help-body th {
    text-align: left;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #e5e5e0;
    color: #5a5a5a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-body td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0ec;
    vertical-align: top;
}

.help-body tr:last-child td {
    border-bottom: none;
}

/* Summary table variant (label-value pairs) */
.help-body .help-summary-table th {
    width: 35%;
    white-space: nowrap;
}

/* === FAQ (definition list) === */
.help-body .help-faq dt {
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
}

.help-body .help-faq dd {
    color: #5a5a5a;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* === STATUS INDICATORS (for tables) === */
.help-body .status-good {
    color: #1a7a3a;
    font-weight: 600;
}

.help-body .status-moderate {
    color: #b07d10;
    font-weight: 600;
}

.help-body .status-poor {
    color: #c0392b;
    font-weight: 600;
}

.help-body .text-used {
    color: #1a6b4a;
    font-weight: 600;
}

.help-body .text-excluded {
    color: #888;
}

/* === FIGURES (images, diagrams) === */
.help-body .help-figure {
    display: block;
    max-width: 75%;
    border: 1px solid #e5e5e0;
    border-radius: 6px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Smaller figure variant (audio samples, small screenshots) */
.help-body .help-figure-sm {
    display: block;
    max-width: 55%;
    border: 1px solid #e5e5e0;
    border-radius: 6px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Full-width figure (no side indent) for wide screenshots */
.help-body .help-figure-lg {
    display: block;
    max-width: 100%;
    border: 1px solid #e5e5e0;
    border-radius: 6px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Scale any figure image to fit its figure (prevents wide images overflowing) */
.help-body figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Figure container (for image + caption or play link) */
.help-body .help-media {
    text-align: center;
    margin: 1.5rem auto;
}

.help-body .help-media img {
    max-width: 55%;
    border: 1px solid #e5e5e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.help-body .help-media .help-play {
    display: block;
    margin-top: 0.4rem;
    font-size: 1rem;
    color: #1a6b4a;
    text-decoration: none;
}

.help-body .help-media .help-play:hover {
    text-decoration: underline;
}

/* Diagram container (SVG, charts) */
.help-body .help-diagram {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e5e0;
    border-radius: 8px;
}

.help-body .help-diagram svg {
    max-width: 100%;
}

/* === CTA (call-to-action link) === */
.help-body .help-cta {
    text-align: center;
    margin-top: 2rem;
}

.help-body .help-cta a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a6b4a;
    text-decoration: none;
}

.help-body .help-cta a:hover {
    text-decoration: underline;
}

/* === CLOSING (footer/summary paragraph) === */
.help-body .help-closing {
    margin-top: 1.5rem;
    color: #5a5a5a;
}

.help-body .help-closing strong {
    color: #2a2a2a;
}

/* === CONTACT LINE === */
.help-body .help-contact {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: #5a5a5a;
}

.help-body .help-contact a {
    color: #1a6b4a;
    text-decoration: none;
}

.help-body .help-contact a:hover {
    text-decoration: underline;
}

/* === FOOTER NOTE (small print disclaimer) === */
.help-body .help-footer-note {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e0;
    font-size: 14px;
    color: #888;
}

/* === SEARCH === */
.help-search {
    position: relative;
    margin-bottom: 2rem;
}

.help-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 11pt;
    font-family: 'Inter', -apple-system, sans-serif;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.help-search-input:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
    border-color: #007bff;
}

.help-search-results {
    display: none;
    margin-top: 8px;
    border: 1px solid #e5e5e0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.help-search-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0ec;
}

.help-search-item:last-child {
    border-bottom: none;
}

.help-search-item a {
    font-size: 11pt;
    font-weight: 600;
    color: #1a6b4a;
    text-decoration: none;
}

.help-search-item a:hover {
    text-decoration: underline;
}

.help-search-category {
    font-size: 9pt;
    color: #888;
    margin-left: 8px;
}

.help-search-desc {
    font-size: 9.5pt;
    color: #5a5a5a;
    margin-top: 2px;
    line-height: 1.4;
}

.help-search-empty {
    padding: 12px 16px;
    color: #888;
    font-style: italic;
}

/* === CATEGORY INDEX === */
.help-category-heading {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.help-article-link {
    padding: 4px 0 4px 12px;
}

.help-article-link a {
    font-size: 10.5pt;
    color: #1a6b4a;
    text-decoration: none;
}

.help-article-link a:hover {
    text-decoration: underline;
}

/* === FAQ ACCORDION === */
.help-faq {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.help-faq summary {
    cursor: pointer;
    font-weight: bold;
    color: Navy;
    font-size: 10.5pt;
}

.help-faq summary:hover {
    text-decoration: underline;
}

.help-faq p {
    margin: 8px 0 0 0;
    font-size: 10pt;
    line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .help-body {
        padding: 1rem;
    }

    .help-body .help-figure,
    .help-body .help-figure-sm,
    .help-body .help-media img {
        max-width: 100%;
    }
}
