/* A separate static explorer: no shared app state, auth, or retrieval dependencies. */
:root {
  color-scheme:light;
  --bg:#f5f5f1;
  --panel:#fff;
  --ink:#193330;
  --muted:#586965;
  --line:#dce4de;
  --accent:#17664f;
  --soft:#e7f2e9;
  --gold:#a16a26;
  --shadow:0 5px 25px #19333007;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55
}

a {
  color:var(--accent);
  text-underline-offset:3px
}

button,input,select {
  font:inherit
}

button,.button {
  border:1px solid var(--line);
  background:white;
  color:var(--ink);
  border-radius:8px;
  padding:8px 13px;
  cursor:pointer;
  font-weight:600;
  text-decoration:none
}

button:hover,.button:hover {
  background:var(--soft);
  border-color:#8bb09b
}

button:disabled {
  opacity:.45;
  cursor:default
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #bc7730;
  outline-offset:3px
}

button.primary,.button.primary {
  background:var(--accent);
  color:white;
  border-color:var(--accent)
}

input[type=search],select {
  width:100%;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
  color:var(--ink)
}

label {
  display:block;
  font-size:.85rem;
  font-weight:650;
  margin:15px 0 6px
}

h1,h2,h3,p {
  margin-top:0
}

h1 {
  font-size:clamp(1.7rem,3vw,2.5rem);
  letter-spacing:-.055em;
  margin-bottom:0
}

h2 {
  font-size:clamp(1.55rem,2.8vw,2.7rem);
  letter-spacing:-.035em;
  line-height:1.18
}

h3 {
  font-size:1.08rem;
  line-height:1.35;
  margin-bottom:12px
}

p {
  margin-bottom:15px
}

code {
  font-size:.88em;
  overflow-wrap:anywhere
}

button svg {
  pointer-events:none
}

[hidden] {
  display:none!important
}

.shell {
  max-width:1660px;
  margin:auto;
  padding:0 36px
}

.site-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:22px 0
}

.brand {
  color:var(--ink);
  font-size:1.08rem;
  text-decoration:none;
  letter-spacing:-.025em
}

.brand span {
  font-size:.9rem;
  color:var(--muted)
}

.quiet-link {
  font-size:.85rem
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:34px 0 25px
}

.eyebrow,.step {
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:700;
  color:var(--accent);
  margin-bottom:10px
}

.snapshot-badge {
  background:var(--soft);
  border:1px solid #bdd2c0;
  border-radius:30px;
  padding:7px 13px;
  font-size:.8rem;
  white-space:nowrap
}

.section-nav {
  display:flex;
  gap:28px;
  border-bottom:1px solid var(--line);
  margin-bottom:28px;
  overflow-x:auto
}

.section-nav a {
  padding:10px 0 14px;
  text-decoration:none;
  white-space:nowrap;
  color:var(--muted);
  font-weight:600;
  font-size:.9rem;
  border-bottom:3px solid transparent
}

.section-nav a[aria-current=page] {
  color:var(--accent);
  border-color:var(--accent)
}

.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:25px;
  box-shadow:var(--shadow)
}

.hero {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:70px;
  padding:48px;
  margin-bottom:22px;
  background:linear-gradient(105deg,#fff,#f2f7f0)
}

.hero h2 {
  font-size:clamp(2rem,4vw,3.5rem);
  margin-bottom:24px
}

.lead {
  font-size:1.06rem;
  max-width:540px;
  color:var(--muted)
}

.actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px
}

.retrieval-stack {
  display:grid;
  gap:12px;
  align-content:center
}

.retrieval-stack div {
  display:flex;
  flex-direction:column;
  border-left:3px solid #81a592;
  background:#ffffffbd;
  padding:15px 20px;
  border-radius:0 8px 8px 0
}

.retrieval-stack b {
  font-size:1rem
}

.retrieval-stack span {
  font-size:.87rem;
  color:var(--muted)
}

.three-cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:22px 0
}

.three-cards p {
  font-size:.91rem;
  color:var(--muted);
  margin:0
}

.scope-note,.small-meta,.graph-hint {
  color:var(--muted);
  font-size:.82rem
}

.scope-note {
  max-width:880px;
  margin-top:24px
}

.section-intro {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:24px;
  margin-bottom:22px
}

.section-intro h2 {
  font-size:1.75rem;
  margin-bottom:10px
}

.section-intro p {
  font-size:.91rem;
  max-width:750px;
  color:var(--muted);
  margin-bottom:0
}

.section-intro>.small-meta {
  white-space:nowrap
}

.explorer-layout {
  display:grid;
  grid-template-columns:230px minmax(380px,1fr) 290px;
  gap:18px;
  align-items:start
}

.entity-browser {
  padding:18px;
  position:sticky;
  top:16px
}

.entity-browser>label:first-child {
  margin-top:0
}

.examples {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:12px 0 18px
}

.examples button {
  font-size:.72rem;
  padding:5px 8px
}

.entity-results {
  list-style:none;
  padding:0;
  margin:0;
  max-height:350px;
  overflow-y:auto
}

.entity-results button {
  display:block;
  width:100%;
  border:0;
  border-radius:6px;
  text-align:left;
  font-size:.85rem;
  font-weight:500;
  padding:9px
}

.entity-results button[aria-pressed=true] {
  background:var(--soft);
  color:var(--accent);
  font-weight:700
}

.entity-results small {
  display:block;
  color:var(--muted);
  font-size:.7rem
}

.graph-column {
  min-width:0
}

.graph-panel {
  padding:18px
}

.graph-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap
}

.graph-heading h3 {
  margin:0;
  font-size:1rem
}

.segmented {
  display:flex;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden
}

.segmented button {
  border:0;
  border-radius:0;
  font-size:.75rem;
  padding:7px 9px
}

.segmented button[aria-pressed=true] {
  background:var(--accent);
  color:white
}

.graph-toolbar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin:16px 0 6px
}

.graph-toolbar button {
  font-size:.75rem;
  padding:5px 9px
}

.graph-toolbar label {
  margin:0 0 0 auto;
  font-size:.74rem;
  display:flex;
  align-items:center;
  gap:4px
}

.graph-toolbar input {
  accent-color:var(--accent)
}

#ontology-graph {
  display:block;
  width:100%;
  height:460px;
  background:radial-gradient(#dce4de 1px,transparent 1px);
  background-size:20px 20px;
  border-radius:8px;
  touch-action:none;
  cursor:grab
}

#ontology-graph:active {
  cursor:grabbing
}

.graph-node {
  cursor:pointer
}

.graph-node circle {
  stroke:white;
  stroke-width:3
}

.graph-node.selected circle {
  stroke:var(--ink);
  stroke-width:4
}

.graph-node text {
  font-size:19px;
  fill:var(--ink);
  font-weight:600;
  paint-order:stroke;
  stroke:#fff;
  stroke-width:5px;
  stroke-linejoin:round
}

.graph-edge {
  stroke:#83988d;
  stroke-width:1.7;
  fill:none
}

.graph-edge.highlight {
  stroke:var(--accent);
  stroke-width:3
}

.edge-label {
  font-size:14px;
  fill:#496158;
  paint-order:stroke;
  stroke:white;
  stroke-width:5px
}

.cluster-label {
  font-size:22px;
  fill:#53665e;
  font-weight:650
}

.graph-hint {
  font-size:.72rem;
  margin:6px 0 13px
}

.graph-panel>.small-meta {
  margin:10px 0 0
}

.legend {
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  font-size:.7rem;
  color:var(--muted)
}

.legend span {
  display:flex;
  align-items:center;
  gap:5px
}

.legend i {
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block
}

.relationship-panel {
  margin-top:16px;
  padding:20px
}

.table-scroll {
  overflow:auto
}

table {
  width:100%;
  border-collapse:collapse;
  font-size:.83rem;
  text-align:left
}

th {
  font-weight:650;
  color:var(--muted);
  font-size:.75rem
}

td,th {
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top
}

tbody tr:last-child td,tbody tr:last-child th {
  border-bottom:0
}

td button {
  padding:0;
  border:0;
  background:transparent;
  color:var(--accent);
  text-align:left;
  font-weight:600;
  font-size:inherit
}

td button:hover {
  text-decoration:underline;
  background:none
}

.details-panel {
  padding:22px;
  position:sticky;
  top:16px;
  overflow-wrap:anywhere;
  max-height:calc(100vh - 40px);
  overflow-y:auto
}

.details-panel h3 {
  font-size:1.4rem;
  letter-spacing:-.025em;
  margin:10px 0 4px
}

.details-panel h4 {
  margin:22px 0 10px;
  font-size:.85rem
}

.entity-type {
  font-size:.73rem;
  display:inline-block;
  background:var(--soft);
  color:var(--accent);
  border-radius:30px;
  padding:4px 9px
}

.canonical-id {
  font-size:.7rem;
  color:var(--muted);
  word-break:break-all
}

.details-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:15px 0
}

.details-actions button {
  font-size:.73rem;
  padding:7px 9px
}

.aliases {
  display:flex;
  flex-wrap:wrap;
  gap:5px
}

.aliases span {
  font-size:.76rem;
  background:#f3f4f0;
  border:1px solid var(--line);
  padding:3px 7px;
  border-radius:5px
}

.attributes {
  margin:0;
  display:grid;
  gap:9px
}

.attributes dt {
  font-size:.7rem;
  color:var(--muted)
}

.attributes dd {
  font-size:.86rem;
  margin:0
}

.detail-relations {
  padding-left:17px;
  font-size:.81rem
}

.detail-relations li {
  margin:10px 0
}

.detail-relations button {
  border:0;
  padding:0;
  color:var(--accent);
  background:none;
  text-align:left;
  font-size:inherit
}

.provenance {
  font-size:.78rem;
  color:var(--muted)
}

.provenance code {
  display:block;
  margin:6px 0
}

.provenance summary {
  cursor:pointer;
  color:var(--accent);
  margin:12px 0
}

.connect-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:20px
}

.endpoint {
  display:flex;
  align-items:center;
  gap:10px;
  background:#f2f5ef;
  border-radius:9px;
  padding:12px;
  margin:18px 0
}

.endpoint code {
  flex:1
}

.endpoint button {
  font-size:.75rem;
  white-space:nowrap
}

.connect-grid li {
  margin:14px 0
}

.connect-grid p,.connect-grid li {
  font-size:.94rem
}

.prompt-heading {
  margin-top:30px
}

.prompt-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.prompt-card {
  display:flex;
  flex-direction:column;
  align-items:start
}

.prompt-card p {
  margin:15px 0 20px;
  font-size:.93rem
}

.prompt-card button {
  margin-top:auto;
  font-size:.82rem
}

.coverage-table {
  font-size:.92rem
}

.coverage-table th[scope=row] {
  font-size:.85rem;
  color:var(--ink);
  width:190px
}

.coverage-table td {
  padding:19px 12px
}

.limitations {
  margin:25px 0;
  font-size:.93rem
}

.error {
  border:1px solid #d2a5a1;
  background:#fff0ed;
  border-radius:9px;
  padding:15px;
  color:#7d302e
}

footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid var(--line);
  margin-top:38px;
  padding:20px 0;
  color:var(--muted);
  font-size:.72rem
}

#notification {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:white;
  border-radius:9px;
  padding:10px 18px;
  font-size:.85rem;
  z-index:10;
  pointer-events:none;
  opacity:0;
  transition:opacity .2s
}

#notification.visible {
  opacity:1
}

.skip-link {
  position:absolute;
  top:-100px;
  left:15px;
  background:white;
  padding:10px;
  z-index:20
}

.skip-link:focus {
  top:10px
}

@media(min-width:1500px) {
  #ontology-graph {
    height:520px
  }
}

@media(max-width:1150px) {
  .explorer-layout {
    grid-template-columns:210px minmax(0,1fr)
  }
  .details-panel {
    grid-column:1/-1;
    position:static;
    max-height:none;
    overflow-y:visible
  }
  .details-panel .attributes {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .hero {
    gap:30px;
    padding:32px
  }
  .graph-toolbar label {
    margin-left:0
  }
}

@media(max-width:700px) {
  .shell {
    padding:0 16px
  }
  .site-header {
    padding:17px 0
  }
  .brand span {
    display:none
  }
  .page-heading {
    display:block;
    padding:25px 0 18px
  }
  .snapshot-badge {
    display:inline-block;
    margin-top:14px
  }
  .section-nav {
    gap:22px;
    margin-bottom:22px
  }
  .hero,.connect-grid,.three-cards,.prompt-grid {
    grid-template-columns:1fr
  }
  .hero {
    padding:25px;
    gap:30px
  }
  .hero h2 {
    font-size:2.2rem
  }
  .panel {
    padding:20px
  }
  .section-intro {
    display:block
  }
  .section-intro>.small-meta {
    display:block;
    margin-top:12px
  }
  .explorer-layout {
    grid-template-columns:1fr
  }
  .entity-browser {
    position:static
  }
  .entity-results {
    max-height:165px
  }
  .details-panel {
    grid-column:auto
  }
  .details-panel .attributes {
    grid-template-columns:1fr 1fr
  }
  #ontology-graph {
    height:360px
  }
  .graph-node text {
    font-size:27px
  }
  .edge-label {
    font-size:20px
  }
  .graph-heading {
    gap:12px
  }
  .graph-toolbar label {
    width:100%;
    margin-top:4px
  }
  .endpoint {
    flex-direction:column;
    align-items:start
  }
  .endpoint code {
    font-size:.79rem
  }
  footer {
    flex-direction:column;
    gap:5px
  }
  .coverage-table {
    min-width:540px
  }
  .quiet-link {
    font-size:.78rem
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
