/* === Relay-info page-specific CSS === */

/* Hostname verification status */
.verified-hostname { color: var(--color-hostname-verified); }
.unverified-hostname { color: var(--color-hostname-unverified); }

/* Section box - gray background container for major sections */
.section-box {
    margin: 20px 0;
    padding: 15px;
    background: var(--color-bg-light);
    border-radius: 8px;
}

/* Subsection cards - visual containers for Level 2 content */
.subsection-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}
.subsection-card dl { margin-bottom: 0; }

/* Subsection headers - Level 2 in information hierarchy */
.subsection-header {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text-dark);
    border-bottom: 2px solid var(--color-border-light);
}

.section-header {
    position: relative;
    display: inline-block;
}

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

/* Highlight section when targeted (outline avoids layout shift/overlap) */
:target {
    background-color: var(--color-highlight-bg) !important;
    border-radius: 4px;
    outline: 3px solid var(--color-highlight-border);
    outline-offset: 4px;
    transition: background-color 0.3s;
}
dt:target {
    padding: 4px 6px;
    margin: -4px -6px 6px;
}

/* Backward-compat anchor aliases: invisible but still scrollable */
.compat-anchor {
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* Health Status Grid Layout */
.health-status-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;  /* 60/40 split */
    gap: 8px 24px;
}

.health-status-grid dl {
    margin: 0;
    font-size: 14px;
}

.health-status-grid .health-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.health-status-grid dt {
    width: 100px;
    font-weight: bold;
    color: var(--color-text-dark);
    flex-shrink: 0;
}

.health-status-grid dd {
    margin: 0;
    flex: 1;
}

/* Responsive: Stack on mobile */
@media (max-width: 767px) {
    .health-status-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared section styling for new consolidated sections (#bandwidth, #uptime, #operator, etc.) */
.relay-section {
    margin-top: 15px;
    padding: 15px;
    background: var(--color-bg-light);
    border-radius: 8px;
}
.relay-section > h4:first-child {
    margin-top: 0;
    margin-bottom: 12px;
}
