
/* Overrides */

.permalink {
    display: none;
}

.wh_search_button {
    background-color: #8c8c8c;
}

.wh_publication_title {
    display: inline;
    margin-left: 10px;
    font-size: xx-large;
}

.topictitle2 {
    font-style: normal;
}

.topictitle3 {
    font-style: normal;
}

.wh_search_input {
    padding: 10px 0 10px 0;
    background: #005a8c;
    /*     background: url('images/bgr_right_small.png') right no-repeat #005A8C; */
}

.wh_main_page .wh_search_input {
    padding: 10px 0 10px 0;
    background: #005a8c;
    /*  background: url('images/bgr_right_small.png') right no-repeat #005A8C; */
}

.wh_publication_title > a {
    font-size: 2em;
    margin: 0 0 0 0;
}

.wh_top_menu {
    margin: 1em 0 0 0;
}

.wh_top_menu a {
    color: black;
}

.wh_theme_btn {
    color: black;
}

:root[data-wh-theme = "dark"] .wh_theme_btn {
    color: white;
}

.wh_publication_title a {
    color: black;
}

:root[data-wh-theme = "dark"] .wh_publication_title a {
    color: white;
}

:root[data-wh-theme = "dark"] .wh_top_menu a {
    color: white;
}

.wh_header {
    padding: 1em 0 1em 0;
    background-color: rgb(232, 243, 246);
}

:root[data-wh-theme = "dark"] .wh_header {
    background-color: rgb(43, 48, 53);
}

.wh_search_input {
    background-color: rgb(232, 243, 246);
}

:root[data-wh-theme = "dark"] .wh_search_input {
    background-color: rgb(43, 48, 53);
}

.pre {
    margin-left: 1em;
}

/* 
 * Example of removing ToC item with given id
 * 
.wh_top_menu *[data-id='topic_introduction'] {
    display:none;
}
*/

/* Custom elements */

.wh_alternative_links {
    display: inline;
    margin-left: 1em;
}

.wh_alternative_link {
}

#wh_download_links {
    display: inline-flex;
    position: absolute;
    top: 0px;
    right: 10px;
}

#wh_forkme_banner {
    padding: 5px 50px 5px 5px;
    color: #fff;
    margin-right: 5px;
    background: url('images/blacktocat.png') #005a8c no-repeat 95% 50%;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#wh_download_pdf {
    padding: 5px 50px 5px 5px;
    color: #fff;
    margin-right: 5px;
    background: url('images/pdf_file_format_symbol.png') #005a8c no-repeat 95% 50%;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#wh_beta_message {
    padding: 5px 5px 5px 5px;
    color: #fff;
    background-color: #DE911D;
    margin-right: 5px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#wh_download_banner {
    padding: 5px 50px 5px 5px;
    color: #fff;
    margin-right: 5px;
    background: url('images/icon_download.png') #005a8c no-repeat 95% 50%;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#wh_download_beta_banner {
    padding: 5px 50px 5px 5px;
    color: #fff;
    margin-right: 5px;
    background: url('images/icon_download.png') #005a8c no-repeat 95% 50%;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.userinput {
    background: #005A8C;
}

.keyword {
    font-style: italic;
}

.wh_logo {
    width: 128px;
    height: 128px;
}

.wh_logo img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

/* Swap to dark-mode logo when Oxygen dark theme is active */
:root[data-wh-theme = "dark"] .wh_logo img {
    content: url('images/database-phon-dark.png');
}

/* ── Feedback page form ───────────────────────────────────────────────────── */

#phon-feedback-page {
    max-width: 600px;
}

#phon-feedback-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 14px 0 4px;
}

.phon-feedback-optional {
    font-weight: 400;
    color: #888;
}

.phon-feedback-required {
    color: #c0392b;
}

#phon-feedback-form input[type = "email"],
#phon-feedback-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafafa;
    color: #222;
    resize: vertical;
    transition: border-color 0.15s;
}

#phon-feedback-form input[type = "email"]:focus,
#phon-feedback-form textarea:focus {
    outline: none;
    border-color: #005a8c;
    background: #fff;
}

/* Screenshot previews */
#phon-feedback-previews {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.phon-feedback-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.phon-feedback-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phon-feedback-remove-screenshot {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.phon-feedback-remove-screenshot:hover {
    background: rgba(0, 0, 0, 0.8);
}

#phon-feedback-add-screenshot {
    margin-top: 6px;
    padding: 6px 14px;
    border: 1px dashed #999;
    border-radius: 4px;
    background: transparent;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
}

#phon-feedback-add-screenshot:hover {
    border-color: #005a8c;
    color: #005a8c;
}

/* Actions */
#phon-feedback-actions {
    margin-top: 18px;
}

#phon-feedback-submit {
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    background: #005a8c;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#phon-feedback-submit:hover:not(:disabled) {
    background: #004570;
}

#phon-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success / error messages */
.phon-feedback-msg p {
    font-weight: 600;
    padding: 12px 0;
}

#phon-feedback-success p {
    color: #1a7a3f;
}

#phon-feedback-error p {
    color: #c0392b;
}

/* ── Dark mode overrides ──────────────────────────────────────────────────── */

:root[data-wh-theme = "dark"] #phon-feedback-form input[type = "email"],
:root[data-wh-theme = "dark"] #phon-feedback-form textarea {
    background: #2a2a2a;
    color: #ddd;
    border-color: #555;
}

:root[data-wh-theme = "dark"] #phon-feedback-form input[type = "email"]:focus,
:root[data-wh-theme = "dark"] #phon-feedback-form textarea:focus {
    border-color: #4da6d9;
    background: #333;
}

:root[data-wh-theme = "dark"] .phon-feedback-preview-item {
    border-color: #555;
}

:root[data-wh-theme = "dark"] #phon-feedback-add-screenshot {
    border-color: #666;
    color: #aaa;
}

:root[data-wh-theme = "dark"] #phon-feedback-add-screenshot:hover {
    border-color: #4da6d9;
    color: #4da6d9;
}

