/* Base Styles similar to HN */
body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11pt;
    color: #000000;
    background-color: #f6f6ef;
    margin: 0;
    padding: 0;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Main Container centered */
.container {
    width: 85%;
    margin: 0 auto;
    background-color: #f6f6ef;
}

@media (max-width: 750px) {
    .container {
        width: 100%;
        padding: 0 5px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .site-title {
        font-size: 11pt;
    }
    
    nav ul li {
        font-size: 10pt;
    }
    
    /* Table Mobile Stacking */
    table, tbody, tr, td {
        display: block;
        width: 100%;
    }
    
    td.rank {
        display: none; /* Hide rank on small screens to save space */
    }
    
    td.title {
        padding-top: 10px;
        padding-bottom: 0;
    }
    
    td {
        padding: 2px 0;
        text-align: left;
    }

    tr.spacer {
        display: block;
        height: 15px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 10px;
    }
}

/* Header Bar */
header {
    background-color: #ff6600;
    padding: 2px;
    line-height: 14pt;
    height: 28px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-logo {
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 11pt;
    display: inline-block;
}

.site-title {
    font-weight: bold;
    margin-right: 10px;
    font-size: 12pt;
}

nav {
    display: inline-block;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline;
}

nav ul li {
    display: inline;
    font-size: 11pt;
}

nav ul li:after {
    content: " | ";
    color: #000000;
}

nav ul li:last-child:after {
    content: "";
}

nav a {
    color: #000000;
}

/* Main Content Area */
main {
    padding: 10px 0;
    background-color: #f6f6ef;
}

h1 {
    font-size: 14pt;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

h2 {
    font-size: 13pt;
    font-weight: bold;
    margin: 0; /* Reset margin for h2 inside tables */
    padding: 0;
    color: #000000;
    display: inline; /* Keep it inline with the link behavior if needed, or block */
}

p {
    margin-top: 5px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Table / List Styling */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11pt;
}

/* Adding spacing between rows */
tr.spacer {
    height: 10px;
}

td {
    vertical-align: top;
    padding: 4px 5px;
}

/* Rank/Number column */
td.rank {
    color: #828282;
    text-align: right;
    width: 30px;
    font-size: 12pt;
}

/* Title/Link column */
td.title {
    color: #000000;
    overflow-wrap: break-word;
}

.market-link {
    color: #000000;
    font-weight: bold;
    font-size: 13pt;
}

.market-link:visited {
    color: #828282;
}

/* Subtext (URL, info) */
.subtext {
    font-size: 9pt;
    color: #828282;
    display: block;
    margin-top: 3px;
}

.description-text {
    color: #000000;
    font-size: 10.5pt;
    margin-bottom: 4px;
    display: block;
}

.subtext a {
    color: #828282;
}

.subtext a:hover {
    text-decoration: underline;
}

/* Button styling changed to simple text link for HN feel, or minimal button */
.login-btn {
    font-size: 9pt;
    color: #000000;
    text-decoration: underline;
}

/* Footer */
footer {
    border-top: 2px solid #ff6600;
    margin-top: 30px;
    padding: 15px 0;
    text-align: center;
    font-size: 10pt;
    color: #828282;
}

footer a {
    color: #828282;
}

/* Form Styling */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

input, select, textarea {
    font-family: monospace;
    border: 1px solid #828282;
    padding: 2px;
}

button {
    margin-top: 5px;
}

/* Code snippets */
code {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 1px 3px;
}
