/* Palette and type lifted from pietercolpaert.be so the playground reads
   as part of the same family. */
:root {
  --primary: #3b6790;
  --primary-light: #8cadcc;
  --accent: #ffb347;
  --text: #313231;
  --bg: #f9f9f9;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Ubuntu Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.result-tabs { display: flex; gap: .4rem; border-bottom: 1px solid #cbd8e4; }
.result-tabs button { padding: .7rem 1.1rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--primary); font-weight: bold; }
.result-tabs button[aria-selected="true"] { border-color: var(--accent); background: white; }
#triples-pane { display: grid; gap: 1rem; min-width: 0; }
.explore-navigation { display: flex; align-items: flex-start; position: relative; }
.explore-navigation .view-tabs { flex: 1; }
.more-views { flex: 0 0 auto; margin: .65rem; }
.more-views > summary { cursor: pointer; padding: .25rem .6rem; font-size: 1.2rem; }
.more-views > div { position: absolute; right: .6rem; z-index: 10; background: white; padding: .5rem; border: 1px solid #bdcddd; box-shadow: 0 4px 15px #0002; max-height: 22rem; overflow-y: auto; }
.more-views button { display: block; width: 100%; text-align: left; border: 0; background: white; padding: .45rem .8rem; color: var(--primary); }
.more-views button:hover { background: #eef4fb; }
.globe { width: 100%; height: min(65vh, 620px); min-height: 340px; background: #10283f; border-radius: 8px; }
.geometry-list { max-height: 20rem; overflow: auto; }
.geometry-list p, .geometry-issues p { font-size: .82rem; overflow-wrap: anywhere; }
.feature-popup h3 { margin: 0 1.25rem .4rem 0; color: var(--primary); font-size: 1rem; }
.feature-popup h3 a { color: inherit; }
.feature-popup dl { display: grid; grid-template-columns: minmax(5rem, auto) minmax(0, 1fr); gap: .2rem .6rem; margin: 0; max-height: 15rem; overflow: auto; font-size: .76rem; }
.feature-popup dt { color: #536779; font-family: var(--font-mono); font-weight: bold; }
.feature-popup dd { margin: 0; overflow-wrap: anywhere; }
#messages-panel select { max-width: 100%; padding: .4rem; }
@media (max-width: 650px) { .message-slider-row { flex-wrap: wrap; } #message-slider { flex-basis: 50%; } }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

/* ----------------------------
   Header
----------------------------- */
.site-header.post-header {
  background: linear-gradient(135deg, #345c83 0%, #3b6790 50%, #2f5377 100%);
  color: white;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.site-header.post-header .intro {
  max-width: 700px;
  margin: 0 auto;
}

.site-header.post-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
}

.site-header.post-header h3 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.6rem 0 1.2rem;
}

.site-header.post-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.site-header.post-header a {
  color: #fff;
}

.site-header.post-header a:hover {
  color: var(--accent);
}

/* ----------------------------
   Full-width address bar, like a browser/search toolbar
----------------------------- */
.url-bar-band {
  width: 100%;
  background: #eef4fb;
  border-bottom: 1px solid #d6deea;
  padding: 1rem 1.5rem;
}

.url-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #bfcce0;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(59, 103, 144, 0.12);
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
}

.url-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 2px 14px rgba(59, 103, 144, 0.22);
}

.url-bar-icon {
  font-size: 1.1rem;
  opacity: 0.6;
}

.url-bar input[type="url"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.6rem 0.25rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
}

.url-bar button {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.url-bar button:hover {
  background: #345c83;
}

.examples-row {
  max-width: 1100px;
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.examples-label {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: #52606f;
}

.examples-list {
  display: flex;
  min-width: 0;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.15rem;
}

.example-chip {
  flex-shrink: 0;
  border: 1px solid #bfcce0;
  background: #ffffff;
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.example-chip:hover {
  background: #eef4fb;
  border-color: var(--primary);
}

.example-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.more-examples { position: relative; flex: 0 0 auto; }
.more-examples > summary {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #bfcce0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
}
.more-examples > summary::-webkit-details-marker { display: none; }
.more-examples > summary:hover { background: #eef4fb; border-color: var(--primary); }
.example-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + .45rem);
  right: 0;
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(34rem, 70vh);
  overflow-y: auto;
  padding: .6rem;
  border: 1px solid #bdcddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 25px #0002;
}
.example-menu section + section { border-top: 1px solid #e2e8f0; margin-top: .55rem; padding-top: .55rem; }
.example-menu h3 { margin: 0 .45rem .3rem; color: #647180; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.example-menu .example-chip { display: block; width: 100%; border: 0; border-radius: 5px; text-align: left; }

.advanced {
  max-width: 1100px;
  margin: 0.65rem auto 0;
}

.advanced > summary {
  width: max-content;
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.advanced-options {
  display: grid;
  grid-template-columns: 12rem minmax(16rem, 1fr);
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.8rem 0.25rem 0;
}

.proxy-field {
  min-width: 0;
}

.proxy-field p {
  margin: 0 0 0.4rem;
}

.proxy-toggle-label {
  display: block;
  margin-bottom: 0.4rem;
}

.proxy-field input[type="url"] {
  width: 100%;
  border: 1px solid #bfcce0;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.format-field {
  min-width: 0;
}

.format-field select {
  width: 100%;
  border: 1px solid #bfcce0;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.frame-options {
  grid-column: 1 / -1;
  min-width: 0;
}

/* ----------------------------
   Headings, in the site's small-caps style
----------------------------- */
h2, h3 {
  font-weight: 700;
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-top: 0;
  color: var(--primary);
}

.panel h2::before {
  content: "» ";
  color: var(--primary);
}

/* ----------------------------
   Layout
----------------------------- */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.layout > *, .panel, .viewer-controls, .view-tabs, .view-body, .editor { min-width: 0; }
#status { overflow-wrap: anywhere; }

.panel {
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem 1.25rem;
}

.panel h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.hint {
  font-family: var(--font-body);
  font-variant: normal;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
  color: #666;
  font-size: 0.8em;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

button {
  font: inherit;
  cursor: pointer;
}

.copy-btn {
  border: 1px solid #c6d3e3;
  background: #f9fbfd;
  color: var(--text);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: #ecf2f9;
  border-color: var(--primary-light);
}

#status {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  min-height: 1.3em;
}

#status.error { color: #b3452e; font-weight: 600; }

/* ----------------------------
   Detected Linked Data views
----------------------------- */
.viewer {
  padding: 0;
  overflow: hidden;
}

.viewer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.85rem;
  background: linear-gradient(120deg, #f4f8fc, #fffaf2);
  border-bottom: 1px solid #dfe7f0;
}

.viewer-heading h2 { margin-bottom: 0.1rem; }
.viewer-scope { margin: 0; font-size: 0.78rem; color: #647180; }

.viewer-controls { flex: 0 1 31rem; display: flex; align-items: flex-end; justify-content: flex-end; gap: 0.6rem; }
.viewer-filter, .viewer-graph, .viewer-language {
  display: grid;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #52606f;
}
.viewer-filter { flex: 1 1 17rem; }
.viewer-graph { flex: 0 1 12rem; }
.viewer-language { flex: 0 0 7rem; }

.viewer-filter input, .viewer-graph select, .viewer-language select {
  width: 100%;
  border: 1px solid #bfcce0;
  border-radius: 999px;
  background: white;
  padding: 0.45rem 0.85rem;
  font: inherit;
  color: var(--text);
}

.viewer-filter input:focus, .viewer-graph select:focus, .viewer-language select:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; }

.view-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.65rem 1rem 0;
  border-bottom: 1px solid #e4e9ef;
  scrollbar-width: thin;
}

.view-tabs button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #52606f;
  padding: 0.5rem 0.65rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.view-tabs button span {
  display: inline-block;
  min-width: 1.4em;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e8eef5;
  color: #53687c;
  font-size: 0.72rem;
}

.view-tabs button:hover { color: var(--primary); background: #f7f9fb; }
.view-tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--accent); background: #f8fbfe; }
.view-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.view-body { min-height: 12rem; padding: 1.15rem 1.25rem 1.35rem; }
.view-body h3 { text-transform: none; font-variant: normal; letter-spacing: 0; }
.view-count, .view-note { color: #647180; font-size: 0.82rem; }
.view-count { margin-top: 0; }
.view-note { margin-bottom: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat-grid div {
  display: grid;
  padding: 0.75rem;
  border-radius: 7px;
  background: #f4f8fc;
  text-align: center;
}

.stat-grid strong { color: var(--primary); font-size: 1.5rem; line-height: 1.1; }
.stat-grid span { color: #647180; font-size: 0.72rem; }

.type-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.type-cloud span, .constraint-badges span {
  padding: 0.25rem 0.55rem;
  border: 1px solid #dae3ed;
  border-radius: 999px;
  background: #fbfcfe;
  font-size: 0.75rem;
}
.type-cloud b { color: var(--primary); }

.table-scroll { max-width: 100%; overflow-x: auto; }
.entity-table, .details-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.entity-table th, .entity-table td, .details-table th, .details-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #e8edf2;
  text-align: left;
  vertical-align: top;
}
.entity-table thead th { color: #617080; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.details-table th { width: 13rem; color: var(--primary); font-family: var(--font-mono); }

.entity-link {
  border: 0;
  background: none;
  color: var(--primary);
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.entity-link:hover { color: #b76d00; }
.literal { overflow-wrap: anywhere; }
.details-table small { color: #718096; font-family: var(--font-mono); }

.entity-inspector { border-top: 1px solid #e4e9ef; background: #fbfcfd; }
.entity-inspector > summary { cursor: pointer; padding: 0.75rem 1.25rem; color: var(--primary); font-size: 0.83rem; font-weight: 700; }
.entity-inspector > div { padding: 0 1.25rem 1.25rem; }
.entity-heading { margin-bottom: 0.65rem; }
.entity-heading h3 { margin: 0; }
.entity-heading a { font-family: var(--font-mono); font-size: 0.75rem; overflow-wrap: anywhere; }

.blank-node-id, .blank-node-summary { color: #596a7b; font-family: var(--font-mono); font-size: .78rem; overflow-wrap: anywhere; }
.blank-node-description { display: inline-flex; max-width: 100%; flex-wrap: wrap; align-items: baseline; gap: .25rem .45rem; padding: .15rem .35rem; border-radius: 5px; background: #f3f6f8; }
.blank-node-summary small { color: #788694; font-family: var(--font-body); font-size: .66rem; }
.blank-node-toggle { border: 0; background: transparent; color: var(--primary); padding: .1rem .2rem; font: inherit; font-size: .72rem; text-decoration: underline; cursor: pointer; }
.blank-node-properties { flex-basis: 100%; display: grid; gap: .3rem; margin-top: .2rem; padding: .45rem; border-left: 2px solid #b8c8d6; background: white; }
.blank-node-properties[hidden] { display: none; }
.blank-node-row { display: grid; grid-template-columns: minmax(6rem, .45fr) minmax(8rem, 1fr); gap: .5rem; font-size: .75rem; }
.blank-node-row > b { color: #5c6d7d; font-family: var(--font-mono); overflow-wrap: anywhere; }
.blank-node-row > span { min-width: 0; overflow-wrap: anywhere; }

.profile-grid, .image-grid, .shape-grid, .domain-card-grid, .credential-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.8rem;
}

.profile-card, .shape-card, .domain-card-grid article, .credential-card {
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.profile-card { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.8rem; }
.profile-card[data-select-entity], .ontology-list article[data-select-entity], .canvas-strip figure[data-select-entity], .annotation-list article[data-select-entity] { cursor: pointer; }
.profile-card > div { min-width: 0; }
.profile-card img, .profile-placeholder { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.profile-placeholder { display: grid; place-items: center; background: #dce8f3; color: var(--primary); font-size: 1.7rem; font-weight: 700; }
.profile-card h3, .shape-card h3, .domain-card-grid h3, .credential-card h3 { margin: 0 0 0.4rem; color: var(--primary); }
.profile-card p, .shape-card p, .domain-card-grid p, .credential-card p { margin: 0.25rem 0; font-size: 0.82rem; }
.profile-meta b { color: #566a7d; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0; }
.profile-links a, .profile-links span { padding: 0.15rem 0.45rem; border-radius: 999px; background: #eef4f9; font-size: 0.72rem; }

.image-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.image-grid figure { margin: 0; border: 1px solid #dfe6ee; border-radius: 8px; overflow: hidden; background: #f5f7f9; }
.image-grid img { display: block; width: 100%; height: 12rem; object-fit: contain; background: repeating-conic-gradient(#f4f4f4 0 25%, white 0 50%) 50% / 16px 16px; }
.image-grid figcaption { padding: 0.45rem 0.65rem; background: white; font-size: 0.78rem; }

.view-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.action-button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.action-button:hover { background: #345c83; color: white; }
.action-button.secondary { border: 1px solid #bfcce0; background: white; color: var(--primary); }
.action-button.secondary:hover { background: #eef4fb; }
.constraint-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.55rem 0; }
.constraint-badges span { border-radius: 5px; }

.validation-result { margin: 0.85rem 0; }
.validation-result.pending, .validation-result.conforms, .validation-result.failed, .validation-result.violations {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border-left: 4px solid #8295a8;
  background: #f5f7f9;
  font-size: 0.82rem;
}
.validation-result.conforms { border-left-color: #34805a; background: #f0f9f4; }
.validation-result.failed, .validation-result.violations { border-left-color: #b3452e; background: #fff5f2; }
.validation-result.violations { display: block; }
.validation-result.violations > strong { display: block; margin-bottom: 0.5rem; }

.credential-card { position: relative; border-left: 4px solid #718096; }
.credential-status { float: right; padding: 0.15rem 0.45rem; border-radius: 999px; background: #edf0f3; color: #56616c; font-size: 0.7rem; font-weight: 700; }

.simple-map { position: relative; width: min(100%, 800px); aspect-ratio: 2 / 1; margin: 0 auto 1rem; overflow: hidden; border: 1px solid #b9cadb; border-radius: 50% / 45%; background: radial-gradient(ellipse at center, #d7edfa, #b8d5e8); }
.map-graticule { position: absolute; inset: 5%; border-radius: 50%; opacity: 0.45; background: repeating-linear-gradient(90deg, transparent 0 98px, #779ab3 99px 100px), repeating-linear-gradient(0deg, transparent 0 78px, #779ab3 79px 80px); }
.map-point { position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; border: 2px solid white; border-radius: 50%; background: #d94b3d; box-shadow: 0 1px 5px rgba(0,0,0,.35); padding: 0; }
.map-point:hover, .map-point:focus { z-index: 2; transform: translate(-50%, -50%) scale(1.35); }
.map-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.35rem 1rem; }
.map-list p { display: flex; justify-content: space-between; margin: 0; padding: 0.3rem 0; border-bottom: 1px solid #edf0f3; font-size: 0.8rem; }
.map-list span { color: #647180; font-family: var(--font-mono); }

.timeline-axis { position: relative; height: 4rem; margin: 2.2rem 0 0; border-top: 3px solid #9db4c8; }
.timeline-mark { position: absolute; top: -10px; width: 18px; height: 18px; transform: translateX(-50%); padding: 0; border: 2px solid white; border-radius: 50%; background: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.timeline-mark:hover, .timeline-mark:focus { background: var(--accent); transform: translateX(-50%) scale(1.3); }
.timeline-labels { display: flex; justify-content: space-between; margin-top: -2.7rem; margin-bottom: 3rem; font-family: var(--font-mono); font-size: 0.72rem; color: #647180; }

.taxonomy > ul { padding-left: 0; }
.taxonomy ul { list-style: none; }
.taxonomy li { position: relative; margin: 0.25rem 0; padding-left: 1rem; }
.taxonomy li::before { content: ""; position: absolute; left: 0; top: 0.7rem; width: 0.6rem; border-top: 1px solid #aebdcc; }
.taxonomy li > ul { border-left: 1px solid #aebdcc; margin-left: 0.2rem; padding-left: 1rem; }
.warning-badge { margin-left: 0.3rem; color: #9b3e29; font-size: 0.7rem; font-weight: 700; }
.view-error { padding: 1rem; border-left: 4px solid #b3452e; background: #fff5f2; }

.shape-flow {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(15rem, 2fr);
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fbfe;
}

.shape-node {
  border: 1px solid #aebfd0;
  border-radius: 6px;
  background: white;
  color: var(--primary);
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  text-align: left;
}

.shape-node:hover, .shape-node:focus-visible { border-color: var(--accent); background: #fffaf1; }
.shape-node.main { border-left: 4px solid var(--primary); font-weight: 700; }
.shape-branches { display: grid; gap: 0.45rem; }
.shape-branches > div { display: grid; grid-template-columns: minmax(7rem, 0.55fr) minmax(8rem, 1fr); gap: 0.45rem; align-items: center; }
.shape-branches span { color: #627487; font-family: var(--font-mono); font-size: 0.72rem; overflow-wrap: anywhere; }

.ontology-list, .chart-list { display: grid; gap: 0.8rem; }
.ontology-list article, .chart-list > section {
  padding: 0.85rem;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: white;
}
.ontology-list h3, .chart-list h3 { margin: 0 0 0.5rem; color: var(--primary); }
.ontology-list p { margin: 0.3rem 0; font-size: 0.82rem; }

.time-series-list, .hypermedia-list { display: grid; gap: .8rem; }
.time-series-list > section, .hypermedia-list > article {
  min-width: 0;
  padding: .85rem;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: white;
}
.time-series-list h3, .hypermedia-list h3 { margin: 0 0 .5rem; color: var(--primary); }
.time-series-chart { display: block; width: 100%; max-height: 18rem; overflow: visible; }
.time-series-chart line { stroke: #a9b8c7; stroke-width: 1; }
.time-series-chart polyline { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.time-series-point { fill: var(--accent); stroke: white; stroke-width: 2; cursor: pointer; }
.time-series-point:hover, .time-series-point:focus { fill: var(--primary); stroke: var(--accent); stroke-width: 3; outline: none; }
.time-series-point.inert { cursor: default; }
.time-series-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; color: #647180; font-family: var(--font-mono); font-size: .7rem; overflow-wrap: anywhere; }
.time-series-legend b { color: var(--text); }
.hypermedia-list article > p { margin: .3rem 0; font-size: .82rem; }
.hypermedia-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.hypermedia-link { display: inline-flex; align-items: center; gap: .2rem; }
.hypermedia-link a { padding: .3rem; color: var(--primary); text-decoration: none; }
.relation-controls { padding: 0; list-style: none; }
.relation-controls li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid #edf0f3; }
.relation-controls li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.relation-controls li span { color: #647180; font-size: .76rem; }
.hydra-template { margin-top: .65rem; padding: .65rem; border-radius: 6px; background: #f4f7fa; }
.hydra-template code { overflow-wrap: anywhere; }
.hydra-template ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .45rem 0 0; padding: 0; list-style: none; font-size: .76rem; }
.hydra-search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .65rem; margin-top: .75rem; }
.hydra-search-fields label { display: grid; gap: .2rem; min-width: 0; color: #46596c; font-size: .78rem; font-weight: 700; }
.hydra-search-fields label > span b { color: #b3452e; }
.hydra-search-fields input { min-width: 0; width: 100%; border: 1px solid #b7c7d6; border-radius: 5px; background: white; padding: .5rem .6rem; color: var(--text); font: inherit; }
.hydra-search-fields input:focus { border-color: var(--primary); outline: 2px solid #bcd3e8; outline-offset: 1px; }
.hydra-search-fields small { color: #748393; font-weight: 400; }
.hydra-search-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .75rem; }
.hydra-search-actions [role="status"] { color: #9b3e29; font-size: .76rem; }

.pipeline-diagram { display: block; width: 100%; max-height: 26rem; margin-bottom: 1rem; overflow: auto; }
.pipeline-edge { fill: none; stroke: #9db4c8; stroke-width: 1.5; }
.pipeline-edge-label { fill: #647180; font-family: var(--font-mono); font-size: 9px; text-anchor: middle; }
#pipeline-arrow path { fill: #9db4c8; }
.pipeline-node rect { fill: white; stroke: #aebfd0; stroke-width: 1; }
.pipeline-node.processor { cursor: pointer; }
.pipeline-node.processor rect { stroke-width: 1.5; }
.pipeline-node.processor:hover rect, .pipeline-node.processor:focus-visible rect { stroke: var(--accent); fill: #fffaf1; }
.pipeline-node.processor:focus-visible { outline: none; }
.pipeline-node.external rect { stroke-dasharray: 4 3; fill: #f4f7fa; }
.pipeline-node-type { fill: var(--primary); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.pipeline-node-label { fill: var(--text); font-size: 10px; }
.pipeline-list { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.pipeline-list article { padding: 0.85rem; border: 1px solid #dfe6ee; border-radius: 8px; background: white; }
.pipeline-list article[data-select-entity] { cursor: pointer; }
.pipeline-list h3 { margin: 0 0 0.5rem; color: var(--primary); font-family: var(--font-mono); font-size: 0.85rem; }
.pipeline-io { margin: 0.4rem 0; }
.pipeline-io b { display: block; margin-bottom: 0.2rem; color: #566a7d; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pipeline-io ul { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.pipeline-io li { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.8rem; }
.pipeline-io li span:first-child { color: #647180; font-family: var(--font-mono); font-size: 0.72rem; }
.pipeline-external { color: #9b6b3e; font-style: italic; }

.bar-chart { display: grid; gap: 0.3rem; }
.bar-chart button, .bar-chart .bar-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  gap: 0.75rem;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #f0f4f8;
  padding: 0.35rem 0.5rem;
  color: var(--text);
  text-align: left;
}
.bar-chart button > span, .bar-chart .bar-row > span { position: absolute; inset: 0 auto 0 0; z-index: 0; background: linear-gradient(90deg, #bed8ed, #dbeaf5); }
.bar-chart button:hover > span, .bar-chart button:focus-visible > span { background: linear-gradient(90deg, #f2cf93, #f8e7c8); }
.bar-chart b, .bar-chart em { position: relative; z-index: 1; font-size: 0.75rem; }
.bar-chart em { font-family: var(--font-mono); font-style: normal; }

.presentation-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.presentation-heading h3 { margin-top: 0; color: var(--primary); }
.presentation-heading span { color: #647180; font-size: 0.78rem; }
.iiif-structures { margin: 0.6rem 0 1rem; }
.iiif-structures h3 { margin: 0 0 0.4rem; color: var(--primary); }
.canvas-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 42%);
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.65rem;
  scroll-snap-type: x proximity;
}
.canvas-strip figure { margin: 0; border: 1px solid #dfe6ee; border-radius: 8px; overflow: hidden; background: white; scroll-snap-align: start; }
.canvas-image { display: grid; place-items: center; min-height: 13rem; background: repeating-conic-gradient(#f1f3f5 0 25%, white 0 50%) 50% / 18px 18px; }
.canvas-image > button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.canvas-image img { display: block; width: 100%; height: 18rem; object-fit: contain; }
.image-unavailable { padding: 2rem; color: #647180; font-size: 0.8rem; text-align: center; }
.canvas-strip figcaption { display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.7rem; font-size: 0.8rem; }
.canvas-strip figcaption b { display: grid; place-items: center; min-width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--primary); color: white; }
.canvas-strip figcaption span { margin-left: auto; color: #647180; font-size: 0.68rem; }
.iiif-dialog { width: min(96vw, 90rem); max-width: none; height: min(92vh, 60rem); padding: 0; border: 0; border-radius: 12px; color: var(--text); box-shadow: 0 1.5rem 5rem #0008; }
.iiif-dialog::backdrop { background: #17212bcc; backdrop-filter: blur(2px); }
.iiif-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid #dfe6ee; }
.iiif-dialog-heading span { color: #647180; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.iiif-dialog-heading h3 { margin: 0.1rem 0 0; }
.iiif-dialog-heading button { width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: #edf2f7; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.iiif-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); height: calc(100% - 4.2rem); }
.iiif-detail-stage { display: grid; place-items: center; min-width: 0; overflow: auto; padding: 1rem; background: #202832; }
.iiif-detail-stage-inner { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.iiif-detail-stage img { display: block; max-width: 100%; max-height: calc(92vh - 6.5rem); object-fit: contain; }
.iiif-region { position: absolute; padding: 0; border: 2px solid #ffcf33; background: #ffcf3326; color: #17212b; cursor: pointer; box-shadow: 0 0 0 1px #0005; }
.iiif-region span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 0 0 50% 0; background: #ffcf33; font: 700 0.72rem/1 sans-serif; }
.iiif-region:hover, .iiif-region.active { z-index: 2; border-color: #ff7a00; background: #ff7a0044; }
.iiif-detail-annotations { overflow-y: auto; padding: 1rem; border-left: 1px solid #dfe6ee; }
.iiif-detail-annotations h4 { display: flex; justify-content: space-between; margin: 0 0 0.7rem; }
.iiif-detail-annotations ol { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.iiif-detail-annotations button { width: 100%; padding: 0.65rem; border: 1px solid #dfe6ee; border-radius: 7px; background: white; color: var(--text); text-align: left; cursor: pointer; }
.iiif-detail-annotations button:hover, .iiif-detail-annotations button.active { border-color: var(--primary); background: #edf5ff; }
.iiif-detail-annotations button span, .iiif-detail-annotations button small { display: block; margin-top: 0.25rem; }
.iiif-detail-annotations button small { color: #647180; }
.annotation-list { margin-top: 0.8rem; }
.annotation-list > h3 { color: var(--primary); }
.annotation-list article { margin: 0.45rem 0; padding: 0.65rem 0.8rem; border-left: 3px solid #9db4c8; background: #f7f9fb; }
.annotation-list h4 { margin: 0 0 0.3rem; color: var(--primary); }
.annotation-list p { margin: 0.2rem 0; font-size: 0.78rem; }

.form-preview-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.form-preview-list > section { padding: 0.9rem; border: 1px solid #dfe6ee; border-radius: 8px; background: #fbfcfe; }
.form-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.8rem; }
.form-preview-heading h3 { margin: 0; color: var(--primary); }
.shape-field { display: grid; gap: 0.25rem; margin: 0.75rem 0; font-size: 0.78rem; font-weight: 700; }
.shape-field span b { color: #b3452e; }
.shape-field input { width: 100%; border: 1px solid #bac8d6; border-radius: 5px; background: white; padding: 0.5rem 0.6rem; color: #657381; }
.shape-field small { color: #647180; font-weight: normal; }

.dataset-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.8rem; }
.dataset-profile-grid section { padding: 0.8rem; border: 1px solid #dfe6ee; border-radius: 8px; background: #fbfcfe; }
.dataset-profile-grid h3 { margin: 0 0 0.6rem; color: var(--primary); }
.dataset-profile-grid ol { list-style: none; margin: 0; padding: 0; }
.dataset-profile-grid li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #e6ebf0; font-family: var(--font-mono); font-size: 0.72rem; overflow-wrap: anywhere; }
.dataset-profile-grid li:last-child { border-bottom: 0; }
.dataset-profile-grid li b { color: var(--primary); }

.relationship-focus { width: fit-content; max-width: 100%; margin: 0 auto 0.8rem; padding: 0.65rem 1rem; border: 2px solid #a9bfd2; border-radius: 8px; background: #f4f8fc; text-align: center; }
.relationship-focus p { margin: 0 0 0.2rem; color: #647180; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }
.relationship-focus h3 { margin: 0; }
.relationship-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.relationship-columns section { border: 1px solid #dfe6ee; border-radius: 8px; overflow: hidden; }
.relationship-columns h3 { margin: 0; padding: 0.55rem 0.7rem; background: #f1f5f8; color: var(--primary); font-size: 0.85rem; }
.relationship-columns ul { list-style: none; margin: 0; padding: 0; }
.relationship-columns li { display: grid; grid-template-columns: minmax(7rem, 0.7fr) 1fr; gap: 0.5rem; padding: 0.45rem 0.7rem; border-top: 1px solid #e7ecf1; font-size: 0.78rem; }
.relationship-columns li > span { color: #647180; font-family: var(--font-mono); overflow-wrap: anywhere; }
.relationship-columns .empty-relation { display: block; color: #647180; }

#prefixes-field {
  width: 100%;
}

#prefixes-field summary {
  cursor: pointer;
  font-weight: 700;
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-size: 1rem;
}

#prefix-count {
  font-variant: normal;
  text-transform: none;
  color: #666;
  font-family: var(--font-body);
  font-weight: normal;
}

#prefixes-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  max-height: 12rem;
  overflow-y: auto;
}

#prefixes-list li {
  padding: 0.15rem 0;
  color: #666;
  word-break: break-all;
}

#prefixes-list code {
  color: var(--primary);
  font-weight: 700;
}

.editor {
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.editor::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 4;
}

.output-editor .CodeMirror {
  height: 22rem;
}

.message-slider-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

#message-slider {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #d6deea;
  outline: none;
}

#message-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

#message-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

#message-position {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 6.5rem;
  text-align: right;
}

#load-more-messages {
  flex-shrink: 0;
  border: 1px solid #c6d3e3;
  background: #f9fbfd;
  color: var(--text);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

#load-more-messages:hover {
  background: #ecf2f9;
  border-color: var(--primary-light);
}

#frame-editor .CodeMirror {
  height: 14rem;
}

@media (max-width: 650px) {
  .examples-row { align-items: flex-start; flex-direction: column; }
  .examples-list { flex-wrap: wrap; }
  .example-menu { position: fixed; top: 8rem; right: 1rem; left: 1rem; width: auto; }
  .advanced-options {
    display: block;
  }

  .format-field {
    max-width: none;
  }

  .proxy-field {
    min-width: 0;
    margin-top: 0.8rem;
  }

  .viewer-heading { align-items: stretch; flex-direction: column; }
  .viewer-controls { flex-basis: auto; flex-direction: column; align-items: stretch; }
  .viewer-filter { flex-basis: auto; }
  .viewer-graph { flex-basis: auto; }
  .viewer-language { flex-basis: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .details-table th { width: auto; }
  .shape-flow { grid-template-columns: 1fr; }
  .shape-branches > div { grid-template-columns: 1fr; }
  .canvas-strip { grid-auto-columns: 88%; }
  .iiif-dialog { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .iiif-detail-layout { display: block; height: calc(100% - 4.2rem); overflow-y: auto; }
  .iiif-detail-stage { min-height: 45vh; overflow: visible; }
  .iiif-detail-stage img { max-height: 65vh; }
  .iiif-detail-annotations { overflow: visible; border-top: 1px solid #dfe6ee; border-left: 0; }
  .relationship-columns { grid-template-columns: 1fr; }
}

.CodeMirror {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.snippet { margin-bottom: 1.25rem; }
.snippet:last-child { margin-bottom: 0; }

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.snippet-header h3 {
  margin: 0;
  font-size: 1rem;
}

.snippet pre {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: #fafafa;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

footer {
  font-size: 0.85rem;
  color: #666;
  padding: 2rem 0;
  text-align: center;
  background: white;
  border-top: 1px solid #ddd;
}

/* ----------------------------
   CodeMirror theme, matching the Rouge "site palette" theme used for
   Turtle code blocks on pietercolpaert.be
----------------------------- */
.cm-s-pietercolpaert.CodeMirror {
  background: #ffffff;
  color: var(--text);
}

.cm-s-pietercolpaert .CodeMirror-gutters {
  background: #fafafa;
  border-right: 1px solid #eee;
}

.cm-s-pietercolpaert .CodeMirror-linenumber {
  color: #999;
}

.cm-s-pietercolpaert .CodeMirror-cursor {
  border-left: 1px solid var(--text);
}

.cm-s-pietercolpaert .CodeMirror-selected {
  background: rgba(140, 173, 204, 0.25);
}

/* Comments -- and, in this Turtle mode, capitalised local names too */
.cm-s-pietercolpaert .cm-comment {
  color: #8a8f99;
  font-style: italic;
}

/* @prefix / @base / a */
.cm-s-pietercolpaert .cm-meta {
  color: var(--primary);
  font-weight: 600;
}

/* lowercase local names (predicates) */
.cm-s-pietercolpaert .cm-keyword {
  color: var(--primary);
}

/* string and numeric literals */
.cm-s-pietercolpaert .cm-string,
.cm-s-pietercolpaert .cm-string-2,
.cm-s-pietercolpaert .cm-number {
  color: #b7791f;
}

/* full IRIs */
.cm-s-pietercolpaert .cm-atom {
  color: #276749;
}

/* namespace prefix (before the colon) */
.cm-s-pietercolpaert .cm-variable-3 {
  color: #276749;
  font-weight: 600;
}

/* colon between prefix and local name */
.cm-s-pietercolpaert .cm-operator {
  color: #4a4a4a;
}

/* JSON mode, used by the output editor when JSON-LD is selected */
.cm-s-pietercolpaert .cm-property {
  color: var(--primary);
}

.cm-s-pietercolpaert .cm-def {
  color: var(--primary);
}
