/* style.css */
/* Minimalist High-Contrast Terminal Aesthetic */
/* Configured for maximum refreshable Braille layout predictability and crisp font rendering */

body {
    background-color: #000000; /* Pure Black Background */
    color: #ffffff; /* Simple White Lettering */
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

/* Screen reader utility helper class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
    border-bottom: 2px solid #ffffff; /* Clean white split rule */
    padding-bottom: 10px;
    margin-top: 0;
    color: #ffffff;
}

nav {
    background-color: #000000;
    padding: 15px;
    border: 1px dashed #ffffff; /* Clean white dashed boundary */
    margin-bottom: 30px;
}

nav h2 {
    margin-top: 0;
    color: #ffffff;
}

ol {
    padding-left: 20px;
    margin-bottom: 0;
}

li {
    margin-bottom: 8px;
}

a {
    color: #ffffff;
    text-decoration: underline; /* Ensures links are unmistakable */
}

a:focus, a:hover {
    background-color: #ffffff;
    color: #000000;
    outline: 2px solid #ffffff;
}

#chat-log {
    border: 1px solid #ffffff;
    background-color: #000000;
    padding: 15px;
    margin-bottom: 25px;
}

article {
    border-left: 3px solid #ffffff; /* Simple white track separator */
    padding: 10px 20px;
    margin-bottom: 25px;
}

/* Standardized contrast mappings for prompt vs response elements */
article.prompt-article {
    border-left-color: #ffffff;
}

article.response-article {
    border-left-color: #ffffff;
}

/* Explicit heading tracks matching level-5 and level-6 layout requirements */
article h5 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

article h6 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: bold;
}

p {
    margin: 0 0 12px 0;
    color: #ffffff;
}

p:last-child {
    margin-bottom: 0;
}

/* Navigable Table Semantics Rules */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    color: #ffffff;
}

th, td {
    border: 1px solid #ffffff;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
}

ul {
    padding-left: 20px;
    margin: 10px 0;
    color: #ffffff;
}

/* Terminal Input dock styling rules */
.input-area {
    margin-top: 40px;
    border-top: 2px solid #ffffff;
    padding-top: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

textarea {
    width: 100%;
    height: 100px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

textarea:focus {
    outline: 2px solid #ffffff;
}

.action-row {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* High Visibility Action Row Elements */
button {
    background-color: #ffff00; /* Crisp Yellow Background */
    border: 2px solid #ffff00;
    color: #000000; /* Black Text */
    font-weight: bold;
    padding: 8px 16px;
    font-family: inherit;
    cursor: pointer;
}

button:focus, button:hover {
    background-color: #000000;
    color: #ffff00; /* Inverts color mapping precisely on keyboard hover/focus tracking */
    border-color: #ffff00;
    outline: 2px solid #ffffff;
}
