/* Root Variables */
:root {
    --accent: #2337ff;
    --accent-dark: #000d8a;
    --accent-dark-mode: #4b6bff;
    --black: 15, 18, 25;
    --black-dark-mode: 245, 245, 245;
    --gray: 96, 115, 159;
    --gray-light: 229, 233, 240;
    --gray-dark: 34, 41, 57;
    --gray-light-dark-mode: 26, 32, 44;
    --gray-dark-dark-mode: 221, 228, 236;
    --gray-gradient: rgba(var(--gray-light), 50%), #fff;
    --gray-gradient-dark-mode: rgba(var(--gray-light-dark-mode), 50%), #1a202c;
    --box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%), 0 16px 32px rgba(var(--gray), 33%);
    --status-online-light: #059669;
    --status-offline-light: #dc2626;
    --status-text-light: #374151;
    --status-bg-online-light: rgba(34, 197, 94, 0.1);
    --status-bg-offline-light: rgba(239, 68, 68, 0.1);
    --status-online-dark: #10b981;
    --status-offline-dark: #f87171;
    --status-text-dark: #d1d5db;
    --status-bg-online-dark: rgba(16, 185, 129, 0.2);
    --status-bg-offline-dark: rgba(248, 113, 113, 0.2);
}

/* Font Faces */
@font-face {
    font-family: 'Atkinson';
    src: url('/fonts/atkinson-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson';
    src: url('/fonts/atkinson-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Body Styles */
body {
    font-family: 'Atkinson', sans-serif;
    margin: 0;
    padding: 0;
    text-align: left;
    background: linear-gradient(var(--gray-gradient)) no-repeat;
    background-size: 100% 600px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: rgb(var(--gray-dark));
    font-size: 20px;
    line-height: 1.7;
}

/* Main Content Styles */
main {
    width: 720px;
    max-width: calc(100% - 2em);
    margin: auto;
    padding: 2em 1em;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5rem 0;
    color: rgb(var(--black));
    line-height: 1.2;
}

h1 { font-size: 3.052em; }
h2 { font-size: 2.441em; }
h3 { font-size: 1.953em; }
h4 { font-size: 1.563em; }
h5 { font-size: 1.25em; }

/* Anchor Link Pseudo Class Sticky Header Fix */
.anchor-link::before {
    content: '';
    display: block;
    height: 125px;
    margin-top: -125px;
    visibility: hidden;
    pointer-events: none;
}

/* Text Styles */
strong, b {
    font-weight: 700;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

p {
    margin-bottom: 1em;
}

prose p {
    margin-bottom: 2em;
}

textarea, input {
    font-size: 16px;
}

/* Privacy Page Styles */
.privacy-h1 {
    font-size: 30px;
}

.privacy-h2 {
    font-size: 22px;
}

.privacy-li {
    font-size: 16px;
}

/* TOS Page Styles */
.tos-h1 {
    font-size: 30px;
}

.tos-h2 {
    font-size: 22px;
}

.tos-li {
    font-size: 16px;
}

/* Table Styles */
table {
    width: 100%;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Current Flag */
.dropdown-toggle .current-flag {
    display: inline-block;
    margin-right: 5px;
    font-size: 16px;
}

/* Code Styles */
code {
    padding: 2px 5px;
    background-color: rgb(var(--gray-light));
    border-radius: 2px;
}

pre {
    padding: 1.5em;
    border-radius: 8px;
}

pre > code {
    all: unset;
}

/* Product Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-grid h1 {
    font-size: 20px;
}

.product-grid h2 {
    font-size: 14px;
}

.product-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: scale(1.05);
}

.product-link {
    color: inherit;
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: auto;
}

/* Blockquote Styles */
blockquote {
    border-left: 4px solid var(--accent);
    padding: 0 0 0 20px;
    margin: 0px;
    font-size: 1.333em;
}

/* Horizontal Rule Styles */
hr {
    border: none;
    border-top: 1px solid rgb(var(--gray-light));
}

/* Screen Reader Only Styles */
.sr-only {
    border: 0;
    padding: 0;
    margin: 0;
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Thank you page */
.thank-you {
    text-align: center;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(var(--black), 5%);
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

/* Logo light/dark swap — CSS-driven, zero JS flash */
.logo-dark  { display: block; }
.logo-light { display: none; }
.dark-mode .logo-dark  { display: none; }
.dark-mode .logo-light { display: block; }


.nav-container {
    display: flex;
    align-items: center;
}

.nav-container a {
    padding: 1em 0.5em;
    color: var(--black);
    text-decoration: none;
}

.logo-container a {
    padding: 1em 0.5em;
    color: var(--black);
    text-decoration: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
    margin-right: auto;
}

.internal-links {
    display: flex;
    align-items: center;
}

.dropdown-container,
.hamburger-menu-container {
    margin-left: 1em;
}

.social-links-container {
    display: flex;
    justify-content: center;
    margin-left: 10px;
}

.social-links,
.social-links a {
    display: flex;
    padding: 0 4px;
    color: #333;
}

.right-side-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 0;
}

.dark-mode-toggle,
.hamburger-menu-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
}

.hamburger-menu-toggle {
    display: none;
}

.hamburger-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
}

.internal-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: inherit;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 8px rgba(var(--black), 5%);
    top: 100%;
    z-index: 1001;
    background-color: white;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* Contact Form Styles */
.contact-container {
    padding-top: 12px;
    max-width: 40rem;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

.contact-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
}

.form-group {
    margin-top: 1rem;
    text-align: center;
}

.form-control {
    padding: 0.75rem 1rem;
    width: 75%;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #a0a0a0;
}

.submit-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
    font-size: 1rem;
    border: 1px solid transparent;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 0.5rem;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.response-text {
    color: black;
    margin-top: 1rem;
    text-align: center;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
}

.caret {
    margin-left: 5px;
    margin-right: 5px;
    color: #000000;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-menu .dropdown-item {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #333;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:hover .dropdown-toggle {
    background-color: #333;
}

.dropdown:hover .caret {
    color: #fff;
}

/* Dark Mode Checkbox Styles */
.dark-mode-checkbox {
    height: 0;
    width: 0;
    visibility: hidden;
}

.dark-mode-label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px;
    height: 25px;
    background: grey;
    display: block;
    border-radius: 100px;
    position: relative;
    z-index: 3;
}

.dark-mode-label .icon {
    display: none;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 2;
}

.dark-mode-label .icon-moon {
    left: 10px;
}

.dark-mode-label .icon-sun {
    right: 10px;
}

.ball {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 21px;
    transition: 0.2s;
    background-image: URL('/icons/light.svg');
    z-index: 1;
}

.dark-mode-container {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.dark-mode-checkbox:checked + .dark-mode-label .ball {
    left: 27px;
}

.dark-mode-checkbox:checked + .dark-mode-label {
    background: lightgrey;
}

.dark-mode-checkbox:checked + .dark-mode-label .icon-sun {
    display: block;
}

.dark-mode-checkbox:not(:checked) + .dark-mode-label .icon-moon {
    display: block;
}

/* Prose Styles */
div.prose h1 { font-size: 32px; }
div.prose h2 { font-size: 26px; }
div.prose h3 { font-size: 24px; }
div.prose h4 { font-size: 18px; }

/* Dark Mode Styles */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
    --border-color: #000000;
    --status-online-light: var(--status-online-dark);
    --status-offline-light: var(--status-offline-dark);
    --status-text-light: var(--status-text-dark);
    --status-bg-online-light: var(--status-bg-online-dark);
    --status-bg-offline-light: var(--status-bg-offline-dark);
}

.dark-mode body {
    background: linear-gradient(var(--gray-gradient-dark-mode)) no-repeat;
    background-size: 100% 600px;
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode a {
    color: var(--accent-dark-mode);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h4.title,
.dark-mode h5,
.dark-mode h6 {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode p,
.dark-mode li,
.dark-mode span {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode nav,
.dark-mode main,
.dark-mode header,
body.dark-mode footer,
body.dark-mode {
    background-color: #333333;
}

.dark-mode code {
    background-color: rgb(var(--gray-light-dark-mode));
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode blockquote {
    border-left-color: var(--accent-dark-mode);
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode hr {
    border-top-color: rgb(var(--gray-light-dark-mode));
}

.dark-mode footer {
    background-color: #333333;
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode footer p,
.dark-mode footer span,
.dark-mode footer a {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode footer a:hover {
    color: var(--accent-dark-mode);
}

.dark-mode .social-links a {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .social-links a:hover {
    color: var(--accent-dark-mode);
}

.dark-mode .nav-container a,
.dark-mode .logo-container a {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .nav-container a:hover,
.dark-mode .logo-container a:hover {
    color: var(--accent-dark-mode);
}

.dark-mode header {
    background: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .internal-links a {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .internal-links a:hover {
    color: var(--accent-dark-mode);
}

.dark-mode .contact-container {
    background-color: #333333;
    border-color: rgba(var(--gray-dark-dark-mode), 0.3);
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .contact-title,
.dark-mode .contact-container h1 {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .form-control {
    background-color: #444444;
    border-color: rgba(var(--gray-dark-dark-mode), 0.3);
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .form-control:focus {
    border-color: var(--accent-dark-mode);
}

.dark-mode .response-text {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .product-item {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .product-link {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .product-link:hover {
    color: var(--accent-dark-mode);
}

.dark-mode table {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode th,
.dark-mode td {
    color: rgb(var(--gray-dark-dark-mode));
    border-color: rgba(var(--gray-dark-dark-mode), 0.3);
}

.dark-mode .privacy-h1,
.dark-mode .privacy-h2,
.dark-mode .tos-h1,
.dark-mode .tos-h2 {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .privacy-li,
.dark-mode .tos-li {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .thank-you {
    color: rgb(var(--gray-dark-dark-mode));
}

/* Station directory dark mode */
.dark-mode .station-card {
    background: #2a2a2a;
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .station-name,
.dark-mode .station-location,
.dark-mode .station-description,
.dark-mode .directory-header h2,
.dark-mode .directory-description {
    color: rgb(var(--gray-dark-dark-mode));
}

.dark-mode .website-button {
    background: #444;
    color: rgb(var(--gray-dark-dark-mode));
}

/* About section dark mode */
.dark-mode .about-section {
    background: #1e1e1e;
}

.dark-mode .about-content h2,
.dark-mode .about-content p {
    color: rgb(var(--gray-dark-dark-mode));
}

#hamburger-menu-toggle {
    color: #333;
}

.dark-mode #hamburger-menu-toggle span {
    background-color: #fff;
}

.dark-mode .dropdown-menu {
    background-color: #333;
}

.dark-mode .dropdown-menu .dropdown-item {
    color: #333;
}

.dark-mode .caret {
    color: white;
}

.dark-mode .dropdown-menu .caret {
    color: white;
}

.dark-mode .dropdown-menu .dropdown-item:hover {
    background-color: #333;
}

.dark-mode .dark-mode-label {
    background: black;
}

.dark-mode .dark-mode-label .ball {
    background: white;
}

.dark-mode-checkbox:checked + .dark-mode-label {
    background: white;
}

.dark-mode-checkbox:checked + .dark-mode-label .ball {
    background: black;
    background-image: URL('/icons/moon.svg');
}

/* Sticky player pulse after autoplay countdown */
@keyframes stickyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Responsive Styles */
@media (max-width: 720px) {
    body {
        font-size: 18px;
    }
    main {
        padding: 1em;
    }
}

@media (max-width: 720px) {
    .social-links {
        display: none;
    }
}

@media (max-width: 768px) {
    #icons-container {
        display: flex;
        align-items: center;
    }
    #dark-mode {
        display: flex;
        margin-right: 10px;
    }
    .hamburger-menu-toggle {
        display: block;
    }
    .internal-links {
        display: none;
    }
    .social-links-container {
        display: none;
    }
    .internal-links {
        display: none;
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 8px rgba(var(--black), 5%);
    }
    .dark-mode .internal-links {
        background-color: #333333;
    }
    body.dark-mode .internal-links.open {
        background-color: #333333 !important;
    }
    .social-links-container {
        display: none;
    }
}

@media only screen and (max-width: 320px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo-container {
        margin-top: 2px;
    }
    .internal-links {
        flex-direction: column;
    }
    .logo-container img {
        width: 80px;
    }
    .dark-mode-container {
        margin-top: 2px;
    }
    .right-side-container {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
}

@media only screen and (min-width: 321px) and (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 180px;
        margin-top: 2px;
    }
    .dark-mode-container {
        margin-top: 2px;
    }
    .right-side-container {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
}

@media only screen and (min-width: 481px) and (max-width: 600px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 120px;
    }
    .dark-mode-container {
        margin-top: 2px;
    }
    .right-side-container {
        display: flex;
        align-items: center;
        margin-left: auto;
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 150px;
    }
    .dark-mode-container {
        margin-top: 2px;
    }
    .right-side-container {
        display: flex;
        align-items: center;
        margin-left: auto;
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 180px;
    }
    .dark-mode-container {
        margin-top: 2px;
    }
    .right-side-container {
        display: flex;
        align-items: center;
        margin-left: 0;
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1280px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 200px;
    }
    .right-side-container {
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media only screen and (min-width: 1281px) and (max-width: 1440px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 220px;
    }
    .right-side-container {
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media only screen and (min-width: 1441px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .internal-links {
        flex-direction: row;
    }
    .logo-container img {
        width: 240px;
    }
    .right-side-container {
        justify-content: flex-end;
        margin-left: 0;
    }
}
a[data-astro-cid-eimmu3lg]{display:inline-block;text-decoration:none}a[data-astro-cid-eimmu3lg].active{font-weight:bolder;text-decoration:underline}footer[data-astro-cid-sz7xmlte]{padding:2em 1em 6em 1em;background:linear-gradient(var(--gray-gradient)) no-repeat;color:rgb(var(--gray));text-align:center}.social-links[data-astro-cid-sz7xmlte]{display:flex;justify-content:center;gap:1em;margin-top:1em}.social-links[data-astro-cid-sz7xmlte] a[data-astro-cid-sz7xmlte]{text-decoration:none;color:rgb(var(--gray))}.social-links[data-astro-cid-sz7xmlte] a[data-astro-cid-sz7xmlte]:hover{color:rgb(var(--gray-dark))}