/* Full LRS Architecture Explorer - fills a fixed-height iframe (100vh).
   The network takes the full width; the information panel sits below it
   (three columns from 600 px up, stacked below 600 px). */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; }
body { background: aliceblue; }

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    border: 1px solid silver;
}
.title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 6px 8px 2px 8px;
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 2px 10px 4px 10px;
}
.legend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 13px; color: #222; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg.source { color: #555; font-style: italic; }
.sw { display: inline-block; width: 22px; height: 14px; border-radius: 3px; border: 2px solid #333; }
/* Okabe-Ito bluish green and yellow; light gray dashed for designed */
.sw-built { background: #009e73; border-color: #00664a; }
.sw-partial { background: #f0e442; border-color: #8a8020; }
.sw-designed { background: #eeeeee; border: 2px dashed #777; }
.sw-context { background: #ffffff; border-color: #333; }
.toolbar-controls { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.toolbar-controls button { font-size: 14px; padding: 3px 10px; }

.graph-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 0 6px;
    background: white;
    border: 1px solid #d6dde6;
    border-radius: 8px;
    overflow: hidden;
}
#network { position: absolute; inset: 0; }
.load-error {
    position: absolute;
    inset: 30% 10% auto 10%;
    padding: 12px;
    background: #fff3e0;
    border: 1px solid #d55e00;
    border-radius: 8px;
    font-size: 15px;
}

.panel {
    margin: 6px;
    padding: 8px 10px;
    height: 150px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.35;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 4px 14px;
    align-content: start;
}
.panel h2 { grid-column: 1 / -1; font-size: 16px; margin: 0; }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #555; margin: 0 0 2px 0; }
.panel ul { margin: 0; padding-left: 16px; }
.panel .full { grid-column: 1 / -1; }
.panel .quiz-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.panel .quiz-row button { font-size: 13px; padding: 3px 8px; }
.panel .ok { color: #006b4f; font-weight: bold; }
.panel .bad { color: #a33c00; font-weight: bold; }
.badge { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: bold; border: 1px solid #333; }
.badge.built { background: #009e73; color: white; }
.badge.partial { background: #f0e442; color: #222; }
.badge.designed { background: #eeeeee; color: #222; border-style: dashed; }
.badge.context { background: white; color: #222; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 599px) {
    .title { font-size: 17px; }
    .legend { font-size: 12px; gap: 2px 10px; }
    .toolbar-controls { font-size: 13px; }
    .panel { grid-template-columns: 1fr; height: 150px; font-size: 13px; }
}
