﻿/* Anchor Styles */

/* Hidden anchor link with muted text color */
.hanchor {
    font-size: 0.7em;
    visibility: hidden;
    color: var(--text-color-muted);
    margin-left: -1.5em;
}

/* Anchor link color on hover */
.hanchor:hover {
    color: var(--text-color);
}

/* Show anchor link when its parent is hovered */
.anchored:hover a { 
    visibility: visible;    
}

/* Adjust margin and padding for anchored elements */
.anchored {
    margin-inline-start: -1.875rem;
    padding-inline-start: 1.875rem;
}

/* Scroll to Top Button */

/* Initial hidden state and positioning */
#scrollToTopButton {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 12px;
    border: none;
    outline: none;
    background-color: var(--base-color-brand--fire);
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
}

/* Button color change on hover */
#scrollToTopButton:hover {
    background-color: var(--base-color-brand--scarlet);
}

/* Custom Select Dropdown */

/* Reset margin, padding, and box-sizing for all elements */
.select-dropdown,
.select-dropdown * {
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

/* Dropdown container styling */
.select-dropdown {
    position: relative;
    background-color: #E6E6E6;
    border-radius: 4px;
    width: 200px;
}

/* Select element styling */
.select-dropdown select {
    font-size: 1rem;
    font-weight: normal;
    max-width: 100%;
    padding: 8px 24px 8px 10px;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    color: var(--text-color);
    background-color: var(--background-surface-alt);
    border-radius: var(--radius-small);
}

/* Remove outline and box-shadow on focus and active states */
.select-dropdown select:active, 
.select-dropdown select:focus {
    outline: none;
    box-shadow: none;
}

/* Custom arrow for the dropdown */
.select-dropdown:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-top: 5px solid #aaa;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

/* Tabs Styles */

/* Tabs container styling */
ul.tabs {
    margin: var(--none);
    list-style: none;
    position: relative;
    background: var(--primary-dark);
    margin-top: var(--medium);
    display: flex;
    flex-wrap: wrap;
}

/* Bottom border for tabs container */
ul.tabs:after {
    position: absolute;
    content: "";
    width: 100%;
    bottom: 0;
    left: 0;
    border-bottom: 1px solid var(--border-color-seperator);
}

/* Individual tab link styling */
ul.tabs .tab-link {
    color: var(--text-color);
    display: inline-block;
    padding: var(--small);
    margin: var(--none);
    cursor: pointer;
    position: relative;
    z-index: 0;
}

/* Current tab styling */
ul.tabs .current {
    background-color: var(--background-surface);
    /* z-index: 100; */
}

/* Tab link hover effect */
ul.tabs .tab-link:hover {
    background-color: var(--background-surface-alt);
    display: inline-block;
    cursor: pointer;
}

/* Current tab hover effect */
ul.tabs .current:hover {
    z-index: 2;
}

/* Tab content styling */
.tab-content {
    display: none;
    background: #ededed;
    padding: var(--medium);
    background-color: transparent;
    border: 1px solid var(--border-color-seperator);
}

/* Display current tab content */
.tab-content.current {
    display: inherit;
}

/* Updated and Feedback Styles */

/* Styling for updated and feedback text */
.updated,
.feedback {
    font-size: var(--font-size-12);
    line-height: var(--line-height-14);
    color: var(--text-color-muted);
    margin-top: var(--none);
    margin-bottom: var(--none);
}

/* Feedback link styling */
.feedback > a {
    color: var(--text-color-muted);
    padding-left: var(--extra-small);
    padding-right: var(--extra-small);
}

/* Feedback hover effect */
.feedback:hover {
    background-color: var(--background-surface-alt);
    border-radius: var(--radius-small);
}