/***********************************************/
/* HELP CENTER - LAYOUT */
/***********************************************/
.help-wrap {
    width: calc(100% - 60px);
    max-width: 1100px;
    margin: 20px 0 40px 45px;
    padding: 0 15px 36px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.help-title {
    margin: 0 0 18px;
    color: #0759a5;
    font-size: 32px;
    font-weight: 700;
    text-align: left;
}

/***********************************************/
/* TOOLBAR - BUTTONS AND SEARCH ON SAME ROW */
/***********************************************/
.help-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 12px 0 20px;
}

.help-toolbar .help-search {
    display: block;
    flex: 0 1 215px;
    width: 215px;
    min-width: 130px;
    max-width: 315px;
    height: 44px;
    margin: 0 0 0 25px;
    padding: 8px 8px;
    background: #ffffff;
    border: 1px solid #818181;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
}

/***********************************************/
/* HELP TOPIC CARDS */
/***********************************************/
.help-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.help-topic {
    width: 415px;
    max-width: 100%;
    padding: 8px 8px;
    background: #f4faff;
    border: 1px solid #aed5fb;
    border-radius: 12px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

.help-topic[hidden] {
    display: none !important;
}

.help-topic .category {
    margin-bottom: 2px;
    color: #567;
    font-size: 12px;
}

.help-topic h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.help-topic h3 a {
    color: #0759a5;
    font-weight: 700;
    text-decoration: none;
}

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

.help-topic .body {
    margin-top: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.help-topic:has(.body) {
    width: 850px;
}

/***********************************************/
/* HELP EDITOR FORM */
/***********************************************/
.help-form label {
    display: block;
    margin: 12px 0 5px;
    font-weight: bold;
}

.help-form input:not([type="checkbox"]),
.help-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #a8c9e9;
    border-radius: 7px;
    box-sizing: border-box;
}

.help-form textarea {
    min-height: 280px;
}

.help-form .check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.help-btn {
    padding: 9px 14px;
    background: #0870c9;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.help-btn:hover {
    background: #005ba8;
}

/***********************************************/
/* RESPONSIVE */
/***********************************************/
@media (max-width: 900px) {
    .help-wrap {
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
    }

    .help-toolbar .help-search {
        margin-left: 5px;
    }
}

@media (max-width: 700px) {
    .help-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .help-toolbar .help-search {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 5px 0 0;
    }
}

@media (max-width: 600px) {
    .help-wrap {
        width: auto;
        margin: 15px 10px 30px;
        padding: 0 5px;
    }

    .help-title {
        font-size: 26px;
    }

    .help-topic,
    .help-topic:has(.body) {
        width: 100%;
        padding: 12px;
    }
}


.policy-page{max-width:850px;margin:24px auto;padding:24px 28px;box-sizing:border-box;background:#fff;border:1px solid #c8d8e8;border-radius:12px;box-shadow:0 3px 12px rgba(0,0,0,.08);color:#253247;line-height:1.65}
.policy-page h1{color:#07569b;margin:0 0 8px;font-size:1.8rem}
.policy-page h2{color:#07569b;font-size:1.17rem;margin:24px 0 6px}
.policy-page p{margin:8px 0 12px}
.policy-page ul{padding-left:24px;margin:8px 0 12px}
.policy-page .updated{font-size:.9rem;color:#59687a}
@media(max-width:600px){.policy-page{margin:12px 10px;padding:18px 16px}.policy-page h1{font-size:1.5rem}}

.help-sort-list { list-style: none; margin: 12px 0; padding: 0; }
.help-sort-row {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; margin: 3px 0;
    background: #fff; border: 1px solid #d2dbe5; border-radius: 5px;
}
.help-sort-row.dragging { opacity: .4; }
.help-sort-row.drag-over { border-top: 3px solid #2364b2; }
.help-drag { cursor: grab; user-select: none; font-size: 20px; color: #526477; touch-action: none; }
.help-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-row-meta { color: #666; font-size: 12px; white-space: nowrap; }
.help-draft { color: #a34b00; font-weight: bold; }
.help-row-edit { white-space: nowrap; }
#sortMessage { min-height: 1.2em; margin: 8px 0; }
@media (max-width: 600px) {
    .help-sort-row { gap: 6px; padding: 8px 6px; }
    .help-row-meta { display: none; }
}

.help-home {
    width: min(100% - 28px, 1050px);
    margin: 20px auto 36px;
}
.help-home-intro {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 22px;
}
.help-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.help-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 22px;
    border: 2px solid #64a7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #e9f5ff 100%);
    box-shadow: 0 5px 14px rgba(0, 58, 130, .16);
    text-decoration: none;
    color: #173b68;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.help-card:hover,
.help-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 58, 130, .25);
    border-color: #0069d2;
}
.help-card:focus-visible { outline: 3px solid #e6399b; outline-offset: 3px; }
.help-card img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 10px;
}
.help-card-title { font-size: 1.3rem; font-weight: bold; margin: 0 0 7px; }
.help-card-description { font-size: .93rem; line-height: 1.45; margin: 0; }
@media (max-width: 600px) {
    .help-home { width: min(100% - 24px, 440px); margin: 14px auto 28px; }
    .help-card-grid { grid-template-columns: 1fr; gap: 14px; }
    .help-card { padding: 12px 14px 16px; }
    .help-card img { max-width: 170px; margin-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .help-card { transition: none; }
    .help-card:hover { transform: none; }
}
