h1 {
    font-size: 22px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 18px;
}

body {
    line-height: 1.6;
    font-size: 18px;
    padding: 0 12px;
    margin: 20px auto;
    max-width: 650px;
    font-family: 'Inter', sans-serif;
}

#reportcontent {
    max-width: 42em;
    margin: 15px auto;
}

.site-title {
    font-size: 18px;
    font-weight: normal;
}

/* Header layout */
header[role="banner"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    color: #0000008d;
}

/* Simple top navigation */
.top-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-nav .nav-btn {
    text-decoration: none;
    color: #0000008d;
}

.top-nav .nav-btn.active {
    text-decoration: underline;
}

.content-title {
    margin-bottom: 20px;
}

.diff-emphasis {
    font-weight: bold;
}

details {
    padding-bottom: 5px;
}

.single-result {
    margin-bottom: 20px;
}

/* Icons and Badges */
.result-icon {
    width: 40px;
    vertical-align: middle;
}

.result-icon-container {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.result-icon-badge {
    position: absolute;
    top: -9px;
    right: -4px;
    height: 16px;
    border-radius: 3px;
    font-size: 14px;
    box-shadow: 0 0 0 2px #fff;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    line-height: 15px;
    padding-right: 3px;
    padding-left: 3px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Symbols drawn with layered background gradients (no extra markup needed) */

.badge-up {
    background-color: #46a469;
}

.badge-down {
    background-color: #ca5555;
}

.badge-equal {
    background-color: #f59e0b;
}

/* End of badges */

/* Summary layout to keep text in its own column next to the icon */

summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hide default disclosure marker across browsers */
details>summary {
    list-style: none;
}

details>summary::marker {
    content: "";
}

.result-summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.result-summary-row .result-icon-container {
    margin-right: 0;
    flex: 0 0 auto;
}

.result-summary-text {
    flex: 1 1 0;
    min-width: 0;
}

/* Custom caret: keep indicator in same row and rotate on open */
details summary::-webkit-details-marker {
    display: none;
}

details>summary .disclosure-caret {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #444;
    transition: transform 0.15s ease;
    flex: 0 0 auto;
}

details[open]>summary .disclosure-caret {
    transform: rotate(90deg);
}

/* End of custom caret and summary layout */

.detailed-interpretation {
    font-size: 16px;
    color: #0000008d;
    font-weight: normal;
    font-style: italic;
    padding-bottom: 10px;
}

/* Example table styling */
.example-table {
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-size: 15px;
    line-height: 1.1;
    max-width: 560px;
    margin: 20px auto;
}

.prompt-label,
.model-label {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 8px;
}

.prompt-section {
    background-color: #f4f4f4;
    padding: 5px;
    border-bottom: 2px solid #ccc;
}

.prompt-label {
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
}

.prompt-text {
    color: #000;
}

.responses {
    display: flex;
}

.response {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    min-width: 0;
    padding: 5px 10px;
    text-align: center;
    font-size: 0.95em;
}

/* Scoped typography for content inside response columns */
.response h1,
.response h2,
.response h3 {
    text-align: left;
    font-size: 1.15em;
    line-height: 1.25;
}

.response h2 {
    font-size: 1.1em;
}

.response h3 {
    font-size: 1.05em;
}

.response h1 {
    padding-bottom: 8px;
}

.response.model-A {
    background-color: #fff3cd;
    border-right: 2px solid #ccc;
}

.response.model-B {
    background-color: #d8eff3;
}

.model-label {
    font-weight: bold;
    color: #00000091;
}

.response-text {
    color: #000000;
    text-align: left;
}

/* Minimal news box styling */
.news-box {
    background-color: #fff8d6;
    border: 1px solid #f0e6b6;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 40px 20px;
}

.news-box h3 {
    margin: 0 0 8px;
}

.news-box ul {
    margin: 0;
    padding-left: 18px;
}

/* Example navigation controls */
.prompt-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.prompt-header .prompt-label {
    text-align: center;
    margin-bottom: 0;
}

.example-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    margin-bottom: 8px;
}

.example-nav button {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
}

.ex-counter {
    font-size: 14px;
    color: #666;
    font-family: monospace;
}

/* Primary compare button */
.compare-btn {
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 7px;
    border: 1px solid #3b3b3b;
    background: #4c4c4c;
    color: #fff;
    cursor: pointer;
}

.compare-btn:not(:disabled):hover {
    background: #000;
    border-color: #000;
}

.compare-btn:disabled {
    background: #f0f0f0;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* Model selection dropdowns */
.select-row {
    display: flex;
    justify-content: left;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.select-field {
    position: relative;
}

.select-badge {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    pointer-events: none;
}

.select-badge.badge-a {
    background-color: #fff3cd;
    border: 1px solid #e6d69b;
}

.select-badge.badge-b {
    background-color: #d8eff3;
    border: 1px solid #9ed0d9;
}

.model-select {
    -webkit-appearance: none;
    appearance: none;
    min-width: 260px;
    font-size: 16px;
    color: #111;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 8px 36px 8px 44px;
    /* room for badge */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

/* Traits icon grid (About page) */
.trait-grid {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    gap: 8px 12px;
    align-items: center;
    width: 100%;
}

.trait-icon {
    width: 60px;
    height: 60px;
    display: block;
}