/* A plain working surface for the registry's search page. */
.header {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 22px;
  gap: 46px;
  border-color: #d3d3d3;
}
.brand {
  color: #242424;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.6px;
  height: auto;
}
.nav { margin: 0; gap: 27px; height: auto; align-self: stretch; }
.nav a { color: #666; font-weight: 400; font-size: 14px; padding: 0; }
.nav a:hover { color: #111; }
.nav a.active { color: #111; border-bottom: 2px solid #333; }
.prototype-label { position: static; color: #777; background: none; border: 0; padding: 0; font-size: 12px; }
.search-view {
  --ink: #242424;
  --muted: #686868;
  --blue: #344a5a;
  --line: #dedede;
  --font: Arial, Helvetica, sans-serif;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: calc(100dvh - 58px);
  min-height: 530px;
  color: var(--ink);
  font-family: var(--font);
  animation: none;
}
.search-sidebar { display: contents; }
.search-controls {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 22px;
  border-bottom: 1px solid #d3d3d3;
  background: #fafafa;
}
.search-controls h1.sr-only { padding: 0; margin: -1px; }
#search-form { flex: 1 1 320px; max-width: 560px; }
.search-input { height: 38px; padding: 0; gap: 0; border: 1px solid #aaa; border-radius: 0; box-shadow: none; }
.search-input:focus-within { border-color: #454545; box-shadow: none; outline: 1px solid #454545; outline-offset: 0; }
.search-input input { padding: 9px 11px; color: #222; font-size: 14px; }
.search-input input::placeholder { color: #777; }
.search-input button { width: auto; height: 36px; padding: 0 13px; margin: 0; border-left: 1px solid #aaa; border-radius: 0; color: #222; background: #f0f0f0; font-size: 14px; }
.search-input button:hover { background: #e7e7e7; }
.location-row { margin: 0; gap: 8px; font-size: 14px; color: #666; }
.location-row select { color: #222; padding: 5px 0; background: transparent; font-size: 14px; max-width: 190px; }
.location-row .text-button { margin-left: 0; font-size: 12px; }
.search-view .text-button { color: #666; text-decoration: underline; text-underline-offset: 3px; border-radius: 0; }
.search-view .text-button:hover { color: #111; background: none; }
.filters { gap: 17px; flex-wrap: wrap; }
.filter { display: inline-flex; padding: 0; border: 0; border-radius: 0; gap: 7px; font-size: 14px; color: #444; cursor: pointer; }
.filter input { margin: 0; width: 14px; height: 14px; accent-color: #444; }
.result-heading { grid-column: 1; grid-row: 2; padding: 15px 20px 12px; margin: 0; border-right: 1px solid #d3d3d3; font-size: 14px; }
.result-heading strong { font-weight: 400; font-family: ui-monospace, Consolas, monospace; }
.results { grid-column: 1; grid-row: 3; min-height: 0; overflow-y: auto; padding: 0; border-right: 1px solid #d3d3d3; scrollbar-color: #ccc transparent; }
.result-card { border: 0; border-top: 1px solid #e4e4e4; border-radius: 0; padding: 16px 20px; box-shadow: none; background: white; }
.result-card:hover, .result-card.selected { background: #f3f3f3; border-color: #e4e4e4; }
.result-title-row { gap: 10px; align-items: baseline; }
.result-number, .result-card.selected .result-number { min-width: 19px; height: auto; top: 0; padding: 0; border-radius: 0; color: #888; background: none; font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 400; }
.result-card h2 { font-size: 16px; font-weight: 500; letter-spacing: -.2px; line-height: 1.35; color: #222; }
.result-publisher { margin: 6px 0 5px 29px; font-size: 12px; line-height: 1.45; color: #666; }
.result-meta { margin-left: 29px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: 12px; color: #737373; line-height: 1.5; }
.result-meta .separator { color: #aaa; }
.sidebar-footer { grid-column: 1; grid-row: 4; padding: 12px 20px; font-size: 12px; color: #777; background: white; border-color: #dedede; border-right: 1px solid #d3d3d3; }
.map-panel { grid-column: 2; grid-row: 2 / 5; min-height: 0; height: auto; }
.map-toolbar { top: 14px; left: 14px; right: 14px; }
.map-place, .map-button { padding: 7px 10px; color: #555; background: #fff; border: 1px solid #ccc; border-radius: 0; box-shadow: none; font-size: 13px; }
.map-place { border-color: transparent; background: #ffffffdc; }
.map-button:hover { background: #f0f0f0; }
.search-map-button { top: 60px; padding: 9px 12px; border: 1px solid #777; border-radius: 0; box-shadow: none; background: white; color: #333; font-size: 14px; }
.search-map-button:hover { background: #f3f3f3; }
.empty-results { padding: 32px 22px; text-align: left; }
.empty-results h2 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.empty-results p { font-size: 14px; color: #777; }
.empty-results .secondary-button { border-radius: 0; font-weight: 400; }
@media (min-width: 1550px) { .search-view { grid-template-columns: 400px minmax(0,1fr); } }
@media (max-width: 1100px) {
  .search-controls { gap: 13px 20px; }
  #search-form { max-width: none; flex-basis: calc(100% - 310px); }
  .filters { width: 100%; }
}
@media (max-width: 800px) {
  .header { display: flex; flex-wrap: wrap; height: 91px; padding: 12px 18px 0; gap: 0; align-content: space-between; }
  .brand { font-size: 17px; }
  .prototype-label { position: static; margin-left: auto; font-size: 12px; }
  .nav { order: 3; flex: 0 0 100%; height: 40px; margin: 0; justify-content: flex-start; gap: 25px; }
  .nav a { padding: 0; font-size: 14px; }
  .search-view { height: calc(100dvh - 91px); grid-template-columns: 335px minmax(0,1fr); }
}
@media (max-width: 650px) {
  .search-view { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .search-controls { order: 0; display: flex; padding: 16px 18px; gap: 12px; }
  #search-form { flex: 1 1 100%; }
  .search-input { height: 40px; }
  .search-input button { height: 38px; }
  .search-input input { font-size: 16px; }
  .location-row { width: 100%; gap: 8px; }
  .location-row select { flex: 1; max-width: 230px; padding: 3px 0; }
  .location-row .text-button { margin-left: auto; }
  .filters { width: 100%; gap: 22px; }
  .filter { font-size: 14px; }
  .map-panel { order: 1; height: 260px; min-height: 260px; }
  .map-place, .map-button { font-size: 13px; }
  .result-heading { order: 2; border-right: 0; padding: 14px 20px 11px; }
  .results { order: 3; overflow: visible; border: 0; }
  .result-card { padding: 15px 20px; }
  .sidebar-footer { order: 4; justify-content: flex-start; border-right: 0; padding: 13px 20px; }
}
@media (max-width: 375px) { .nav { gap: 22px; } .nav a { font-size: 13px; } .brand { font-size: 16px; } }

/* The registry model uses the same plain visual language as search. */
.schema-view { background: white; padding: 27px 22px; min-height: calc(100dvh - 58px); animation: none; }
.schema-view .page-heading { margin-bottom: 22px; }
.schema-view h1 { font-size: 24px; font-weight: 500; letter-spacing: -.5px; color: #222; }
.schema-view .page-heading p { font-size: 14px; color: #666; }
.schema-picker { color: #666; font-size: 14px; }
.schema-picker select { border: 1px solid #bbb; border-radius: 0; color: #333; padding: 8px 10px; background: white; }
.schema-workspace { grid-template-columns: minmax(0,1fr) 325px; gap: 18px; height: calc(100dvh - 205px); min-height: 600px; }
.graph-panel { border-color: #d3d3d3; border-radius: 0; background: white; background-image: none; }
.graph-topline { padding: 10px 14px; color: #737373; font-size: 12px; background: white; border-bottom: 1px solid #eee; }
.graph-topline .icon-button { border-radius: 0; color: #666; border-color: #ddd; }
.graph-scroller { justify-content: flex-start; }
.graph-scroller > svg { min-width: 780px; min-height: 550px; }
.graph-node:hover .node-bg { fill: #fafafa; stroke: #888; }
.graph-node.selected .node-bg { fill: #f5f5f5; stroke: #333; stroke-width: 1.7; }
.graph-legend { justify-content: flex-start; padding: 12px 14px; color: #777; font-size: 12px; background: white; border-top: 1px solid #eee; }
.node-detail { padding: 21px; border-color: #d3d3d3; border-radius: 0; color: #333; }
.registry-category { color: #777; font-size: 12px; margin-bottom: 9px; }
.node-detail h2 { font-size: 22px; font-weight: 500; letter-spacing: -.4px; }
.node-detail .node-description { margin: 12px 0 21px; color: #666; font-size: 14px; }
.registry-storage { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e3e3e3; }
.registry-storage span { color: #777; font-size: 12px; }
.registry-storage code { color: #444; font-size: 13px; line-height: 1.5; }
.node-detail h3 { font-size: 14px; font-weight: 500; }
.registry-properties { margin: 13px 0 22px; }
.registry-properties > div { display: block; margin: 0; padding: 10px 0; border-bottom: 1px solid #ededed; }
.registry-properties dt { font-size: 13px; color: #444; margin-bottom: 5px; }
.registry-properties dd { text-align: left; font-size: 13px; color: #777; line-height: 1.55; }
.registry-rule, .registry-example { margin-top: 20px; }
.registry-rule p, .registry-example p { margin-top: 7px; font-size: 14px; color: #666; line-height: 1.6; }
.registry-source { display: inline-block; font-size: 13px; color: #555; margin-top: 23px; text-underline-offset: 3px; }
.field-view-label { color: #777; font-size: 13px; }
.field-actions { margin-top: 23px; }
.detail-dialog { border-radius: 2px; }
.detail-dialog .primary-button { background: #333; border-color: #333; border-radius: 0; }
.detail-dialog .primary-button:hover { background: #111; }
.detail-dialog .secondary-button { border-radius: 0; color: #555; border-color: #ccc; }
.detail-dialog .field-table { font-size: 14px; margin: 15px 0 25px; }
.detail-dialog .field-table td:first-child { font-size: 13px; }
.detail-dialog .field-table td { padding: 13px 0; }
@media (max-width: 1000px) {
  .schema-workspace { grid-template-columns: 1fr; height: auto; }
  .graph-panel { height: 640px; }
  .graph-scroller > svg { min-height: 510px; }
  .node-detail { max-height: none; }
  .registry-properties { max-width: 600px; }
}
@media (max-width: 650px) {
  .schema-view { padding: 23px 18px; min-height: calc(100dvh - 91px); }
  .schema-view .page-heading h1 { font-size: 23px; }
  .schema-picker { margin-top: 17px; }
  .schema-picker select { max-width: calc(100vw - 108px); }
  .graph-panel { height: 575px; }
  .graph-scroller > svg { min-width: 750px; height: 480px; min-height: 480px; }
  .graph-topline { padding: 9px; }
  .graph-topline > div { gap: 3px; }
  .graph-legend { font-size: 12px; }
  .node-detail { padding: 21px; }
}

/* Stored registry records and access plans. */
.search-notes{max-height:180px;overflow:auto;padding:0 22px;color:#656565;font-size:13px;overflow-wrap:anywhere}
.search-notes:empty{display:none}
.search-notes details{padding:10px 0}
.search-notes ul{padding-left:20px}
.search-notes p{margin:6px 0}
.record-section{margin-top:24px;padding-top:20px;border-top:1px solid #ddd}
.record-section h3{margin:0 0 12px;font-size:16px}
.record-section details{margin:12px 0}
.record-section summary{cursor:pointer;overflow-wrap:anywhere}
.record-facts{margin:16px 0;font-size:13px}
.record-facts div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;margin:8px 0}
.record-facts dt{color:#666}.record-facts dd{margin:0;overflow-wrap:anywhere}
.record-json{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f5f5;padding:12px;font-size:12px;max-height:360px;overflow:auto}
.record-key{overflow-wrap:anywhere;font-size:12px}
.plan-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.plan-controls input{width:100px;padding:8px;border:1px solid #bbb;font:inherit}
#plan-result{margin-top:14px;overflow-wrap:anywhere}
.detail-actions{flex-wrap:wrap}
@media(max-width:540px){.record-facts div{grid-template-columns:1fr;gap:4px}}

.site-footer{padding:12px 24px;color:#656565;font-size:12px;border-top:1px solid #ddd}
.terms-page{max-width:820px;margin:40px auto;padding:0 24px 50px;line-height:1.65}
.terms-page h2{margin-top:28px}
.record-section p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Suggested searches, the agent connection page and what the registry holds. */
.suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.suggestion{border:1px solid #c8c8c8;padding:5px 10px;font-size:13px;color:#333;background:#fff}
.suggestion:hover{background:#f0f0f0}
#holdings>p{font-size:14px;color:#555;margin-bottom:12px}
.holding{padding:14px 0;border-top:1px solid #e3e3e3}
.holding h3{font-size:15px;font-weight:500}
.holding>p{font-size:13px;color:#666;margin-top:2px}
.holding .record-facts{margin:10px 0 0}
.council-list{margin-top:10px;font-size:13px}
.council-list summary{cursor:pointer;color:#1f548c}
.council-states{max-height:420px;overflow:auto;margin-top:6px;padding-right:4px}
.council-list h4{display:flex;justify-content:space-between;gap:12px;margin:12px 0 4px;font-size:13px;font-weight:500}
.council-list h4 span:last-child,.council-list li span:last-child{color:#666;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
.council-list ul{list-style:none;margin:0;padding:0}
.council-list li{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-top:1px solid #eee;color:#444}
.local-setup{margin:0 0 25px;font-size:14px;color:#555}
.local-setup summary{cursor:pointer;font-weight:500;color:#333}
.local-setup p{margin:10px 0;line-height:1.6}
.connection-card code,.local-setup code,.example-note code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
#mcp-command,#config-preview,#executor-config{white-space:pre-wrap;overflow-wrap:anywhere}

/* The site menu at the top right of every page. Pages without the registry's own navigation
   keep a one-row header on small screens. */
.header-tools{display:flex;align-items:center;gap:16px;margin-left:auto;min-width:0}
.brand{flex-shrink:0}
.placeholder{display:flex;flex-direction:column;min-height:100dvh}
.placeholder>main{flex:1 0 auto;width:100%}
.placeholder .content-heading{margin-bottom:28px}

/* The blog: posts in one column, newest first. */
.blog-page{max-width:860px}
.post{border-top:1px solid #ddd;padding-top:26px;margin-bottom:34px;line-height:1.65}
.post time{display:block;font-size:13px;color:#666;margin-bottom:6px}
.post h2{font-size:26px;margin-bottom:14px}
.post h2 a{color:inherit;text-decoration:none}
.post h2 a:hover{text-decoration:underline}
.post p{margin:0 0 14px;max-width:680px}
.post ul{margin:0 0 14px;padding-left:22px;max-width:680px}
.post li{margin:4px 0}
.post figure{margin:20px 0 24px}
.post img{display:block;width:100%;height:auto;border:1px solid #ddd}
.post figcaption{font-size:13px;color:#666;margin-top:8px;line-height:1.5}
.post figcaption strong{font-weight:500;color:#444}
@media(max-width:800px){
  .header-tools{flex:1 1 0;justify-content:flex-end;gap:12px}
  .header-tools .prototype-label{margin-left:0;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .header:not(:has(.nav)){height:58px;padding:0 18px;align-content:center}
}

/* The home page: one plain tile per part of the site. */
.home{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:48px 22px;font-family:Arial,Helvetica,sans-serif}
.home-note{margin:0;max-width:760px;font-size:13px;line-height:1.5;color:#686868;text-align:center}
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:760px}
.tile{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;min-height:170px;padding:22px;border:1px solid #d3d3d3;background:#fff;color:#242424;text-decoration:none}
.tile:hover{background:#fafafa;border-color:#999}
.tile:focus-visible{outline:3px solid #454545;outline-offset:2px}
.tile-name{font-size:20px;font-weight:500;letter-spacing:-.3px}
.tile-note{font-size:14px;color:#686868}
@media(max-width:560px){.home{align-items:flex-start;padding:24px 18px}.tiles{grid-template-columns:1fr;gap:12px}.tile{min-height:110px;padding:18px}.home-note{text-align:left}}
