
/* transitions-dev tokens & utilities */
:root {
    --t-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
    --t-spring-bouncy: cubic-bezier(0.34, 3.85, 0.64, 1);
}

@keyframes tResultReveal {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes tTextSwap {
    0% {
        opacity: 0;
        transform: translateY(6px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes tNumPop {
    0% {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==========================================================================
   W-SIS Help Center — Modern SaaS Deep Indigo & Aurora Glow
   Aesthetics: Rich micro-interactions, ambient mesh gradients, clean light surfaces
   ========================================================================== */

.help-search {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #0f172a;
    font-family: 'Sarabun', sans-serif;
    position: relative;
}

/* Ambient glow orb behind hero */
.help-intro {
    position: relative;
    padding: 24px 0 28px;
}

.help-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(147, 51, 234, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #4338ca;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
}

.help-intro h2 {
    margin: 14px 0 8px;
    color: #0f172a;
    font: 700 clamp(26px, 3.2vw, 38px)/1.35 'Kanit', sans-serif;
    letter-spacing: -0.02em;
}

.help-intro p {
    color: #475569;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
    max-width: 720px;
}

/* Search Form with Ambient Card Feel */
.help-form {
    position: relative;
    padding: 26px 28px;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 50%, #faf5ff 100%);
    border-radius: 18px;
    border: 1px solid rgba(199, 210, 254, 0.85);
    box-shadow: 0 12px 32px -4px rgba(79, 70, 229, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.help-form::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.help-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    z-index: 1;
}

.help-input-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Enhanced search input with inner icon and clear button */
.help-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.help-search-icon {
    position: absolute;
    left: 18px;
    color: #6366f1;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.help-input-wrapper input {
    width: 100%;
    min-height: 56px;
    padding: 12px 46px 12px 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font: inherit;
    font-size: 15.5px;
    color: #0f172a;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.help-input-wrapper input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 8px 20px -4px rgba(99, 102, 241, 0.12);
}

.help-input-wrapper input:focus + .help-search-icon {
    transform: scale(1.1);
    color: #4f46e5;
}

.help-input-wrapper input::placeholder {
    color: #94a3b8;
}

.help-clear-btn {
    position: absolute;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.help-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

.help-search button,
.help-search select {
    font: inherit;
}

.help-input-row button[type="submit"] {
    padding: 12px 28px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 50%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    font-size: 15.5px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-input-row button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
    filter: brightness(1.06);
}

.help-input-row button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

.help-search button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.help-note {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Quick Search Example Chips */
.help-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 0 24px;
}

.help-examples > span {
    margin-right: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.help-examples button,
.help-state button {
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    color: #334155;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: transform 320ms var(--t-spring-bouncy), background 200ms ease, border-color 200ms ease, box-shadow 300ms var(--t-ease);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.help-examples button:hover,
.help-state button:hover {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border-color: #818cf8;
    color: #4338ca;
    transform: translateY(-2.5px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.16);
    transition-timing-function: var(--t-ease);
}

/* Symptom Explorer Section */
.help-symptoms-section {
    margin: 10px 0 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.help-symptoms-title {
    margin: 0 0 18px;
    font: 600 18px/1.5 'Kanit', sans-serif;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.help-symptom-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    background: linear-gradient(160deg, #ffffff 0%, #fafbff 100%);
    text-align: left;
    cursor: pointer;
    transition: transform 320ms var(--t-spring-bouncy), border-color 220ms ease, box-shadow 320ms var(--t-ease), background 220ms ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.help-symptom-card:hover {
    border-color: #818cf8;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.16), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    transition-timing-function: var(--t-ease);
}

.help-symptom-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    color: #4f46e5;
    transition: transform 0.2s ease;
}

.help-symptom-card:hover .help-symptom-icon {
    transform: scale(1.08);
}

.help-symptom-info {
    flex: 1;
    min-width: 0;
}

.help-symptom-name {
    font-weight: 700;
    font-size: 14.5px;
    color: #0f172a;
    margin-bottom: 3px;
}

.help-symptom-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

.help-symptom-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.help-symptom-arrow {
    color: #cbd5e1;
    font-size: 17px;
    align-self: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.help-symptom-card:hover .help-symptom-arrow {
    transform: translateX(4px);
    color: #4f46e5;
}

/* Toolbar */
.help-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0 14px;
}

.help-toolbar h3 {
    font: 600 20px/1.4 'Kanit', sans-serif;
    color: #0f172a;
    margin: 0;
}

.help-toolbar h3 span {
    font: 500 13px 'Sarabun', sans-serif;
    color: #64748b;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #f1f5f9;
    white-space: nowrap;
}

.help-toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.help-toolbar select {
    max-width: 200px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #0f172a;
    padding: 8px 12px;
    font-weight: 500;
    transition: border-color 0.15s;
}

.help-toolbar select:focus {
    outline: none;
    border-color: #6366f1;
}

.help-query {
    margin: 16px 0 10px;
    font-size: 15px;
    overflow-wrap: anywhere;
    color: #475569;
}

/* Featured Direct Answer Hero Card */
.help-results-container {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 8px;
}

.help-featured-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 50%, #faf6ff 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 16px 36px -6px rgba(79, 70, 229, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    animation: tResultReveal 480ms var(--t-ease) forwards;
    will-change: transform, opacity, filter;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 35%, #a855f7 70%, #ec4899 100%);
}

.help-featured-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.help-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    color: #3730a3;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.help-featured-crumbs {
    font-size: 13px;
    color: #64748b;
}

.help-crumb-sep {
    margin: 0 4px;
    color: #cbd5e1;
}

.help-crumb-label {
    color: #4338ca;
    font-weight: 700;
}

.help-featured-title {
    font: 700 23px/1.4 'Kanit', sans-serif;
    color: #0f172a;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.help-featured-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.help-box-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.help-label-cause {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.help-label-fix {
    background: #dcfce7;
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.help-featured-cause,
.help-featured-fix {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.help-featured-cause p,
.help-featured-fix p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: #334155;
}

.help-featured-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.help-featured-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 50%, #7c3aed 100%);
    color: white !important;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-featured-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
    filter: brightness(1.06);
}

.help-featured-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4338ca;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.help-featured-btn-secondary:hover {
    background: #f8faff;
    border-color: #818cf8;
    color: #312e81;
    transform: translateY(-1px);
}

/* Other Results */
.help-other-title {
    font: 600 19px/1.5 'Kanit', sans-serif;
    color: #0f172a;
    margin: 18px 0 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.help-result {
    padding: 22px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: transform 0.22s var(--t-ease);
    animation: tResultReveal 420ms var(--t-ease) backwards;
    will-change: transform, opacity, filter;
}

.help-result:nth-child(1) { animation-delay: 30ms; }
.help-result:nth-child(2) { animation-delay: 75ms; }
.help-result:nth-child(3) { animation-delay: 120ms; }
.help-result:nth-child(4) { animation-delay: 165ms; }
.help-result:nth-child(5) { animation-delay: 210ms; }
.help-result:nth-child(n+6) { animation-delay: 250ms; }

.help-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.help-source > span {
    padding: 3px 9px;
    border-radius: 6px;
    background: #edf6f0;
    color: #166534;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid rgba(22, 101, 52, 0.15);
}

.help-result h4 {
    font: 600 20px/1.5 'Kanit', sans-serif;
    margin: 10px 0;
}

.help-result h4 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.help-result h4 a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.help-excerpt,
.help-answer {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 14px;
}

.help-answer p {
    margin: 4px 0;
    color: #334155;
}

.help-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4338ca;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.help-open:hover {
    color: #312e81;
    transform: translateX(2px);
}

.help-search mark {
    color: inherit;
    background: rgba(254, 240, 138, 0.65);
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Empty / Error States */
.help-state {
    padding: 40px 0;
    line-height: 1.9;
    color: #64748b;
    text-align: center;
}

.help-empty-state {
    padding: 48px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1.5px dashed #cbd5e1;
    margin-top: 18px;
}

.help-empty-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.help-empty-state h4 {
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 8px;
    font-family: 'Kanit', sans-serif;
}

.help-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.help-btn-support {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%) !important;
    color: white !important;
    font-weight: 700;
    border: none !important;
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    transition: transform 260ms var(--t-ease), box-shadow 260ms var(--t-ease), background 320ms var(--t-ease) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.help-btn-support.copied {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
}

.help-btn-support .btn-text-swap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    animation: tTextSwap 260ms var(--t-ease) forwards;
}

.help-btn-support:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.help-btn-reset {
    border: 1.5px solid #cbd5e1 !important;
    background: white !important;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-btn-reset:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Directory */
.help-directory {
    padding: 18px 0 28px;
}

.help-directory-hint {
    margin: 0 0 24px;
    font-size: 14px;
    color: #64748b;
}

.help-directory-section + .help-directory-section {
    margin-top: 36px;
}

.help-directory-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.help-directory-heading h4 {
    margin: 0;
    font: 600 18px/1.5 'Kanit', sans-serif;
    color: #0f172a;
}

.help-directory-heading > span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.help-directory-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.help-directory-group {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.help-directory-group:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.help-directory-group[open] {
    grid-column: 1 / -1;
    border-color: #818cf8;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.help-directory-group summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    border-radius: 14px;
    transition: background 0.15s ease;
}

.help-directory-group summary::-webkit-details-marker {
    display: none;
}

.help-directory-group summary:hover {
    background: #f8faff;
}

.help-directory-group[open] summary {
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    border-radius: 14px 14px 0 0;
}

.help-group-name {
    min-width: 0;
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.help-group-count {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.help-group-chevron {
    flex: 0 0 16px;
    text-align: center;
    color: #4f46e5;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-directory-group[open] .help-group-chevron {
    transform: rotate(180deg);
}

.help-directory-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    padding: 6px 18px 16px;
    margin: 0;
    list-style: none;
}

.help-directory-links li {
    min-width: 0;
}

.help-directory-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 6px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.help-directory-links a > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.help-directory-links a > span:last-child {
    flex: 0 0 auto;
    color: #6366f1;
    transition: transform 0.15s ease;
}

.help-directory-links a:hover {
    color: #4338ca;
    background: #f8faff;
    padding-left: 10px;
    padding-right: 10px;
}

.help-directory-links a:hover > span:last-child {
    transform: translateX(2px);
}

.help-directory-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.help-search :is(a, button, input, select, summary):focus-visible,
.doc-brand a:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

.doc-help-link {
    border-bottom: 1px solid #eef0f4;
}

.doc-help-link .doc-nav-label {
    color: #4338ca;
    font-weight: 700;
}

.doc-search-target {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .help-intro {
        padding-top: 5px;
    }
    .help-form {
        padding: 18px 16px;
    }
    .help-input-row {
        flex-direction: column;
    }
    .help-input-row button[type="submit"] {
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }
    .help-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .help-directory-groups,
    .help-directory-links {
        grid-template-columns: 1fr;
    }
    .help-symptoms-grid {
        grid-template-columns: 1fr;
    }
    .help-featured-card {
        padding: 20px 16px;
    }
    .help-featured-title {
        font-size: 19px;
    }
    .help-featured-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .help-featured-btn-primary,
    .help-featured-btn-secondary {
        justify-content: center;
        width: 100%;
    }
    .help-result h4 {
        font-size: 18px;
    }
    .help-examples {
        padding-bottom: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .help-directory-groups,
    .help-directory-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .help-symptoms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
