@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin-wght-normal-0555e090.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-latin-400-normal-a258e185.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f7f6f2;
  --ink: #20232d;
  --muted: #596172;
  --line: #dbdde4;
  --blue: #284bd8;
  --blue-dark: #1b38b6;
  --code: #1a1e29;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.5 Inter, system-ui, sans-serif; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4364ec; outline-offset: 3px; }
.shell { width: min(calc(100% - 64px), 1152px); margin-inline: auto; }

.site-header { border-bottom: 1px solid #e4e2dc; }
.masthead { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 730; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: white; font: .825rem var(--mono); }
.source-link, .quiet-link { color: #38446a; font-size: .875rem; font-weight: 650; text-underline-offset: 4px; text-decoration-color: #a2abd0; }
.source-link:hover, .quiet-link:hover { color: var(--blue); text-decoration-color: currentColor; }

.hero { padding-top: 38px; }
.hero h1 { font-size: clamp(2.25rem, 4.3vw, 3.6rem); line-height: 1.02; font-weight: 790; letter-spacing: -.065em; }
.intro { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.search-form { margin-top: 23px; }
.search-form label { display: inline-block; margin-bottom: .42rem; font-weight: 650; font-size: .875rem; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-row input { min-width: 0; min-height: 49px; padding: 0 15px; color: var(--ink); border: 1px solid #c7cad5; border-radius: 8px; background: white; }
.primary { background: var(--blue); color: #fff; border: 1px solid transparent; padding: 0 21px; min-height: 49px; border-radius: 8px; font-size: .925rem; font-weight: 680; }
.primary:hover { background: var(--blue-dark); }
.primary:disabled { background: #dce1f6; color: #3c4b7b; cursor: wait; }
.form-status { min-height: 25px; padding-top: 4px; color: var(--muted); font-size: .875rem; }
.form-status[data-error] { color: #9b2d26; }

.comparison { margin-top: 13px; }
.comparison-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 11px; min-height: 28px; }
.response-status { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.response-tag { border: 1px solid #d9d9e8; border-radius: 6px; padding: .15rem .5rem; color: #46436c; background: #eeedf6; font-size: .8125rem; font-weight: 640; }
.response-tag[data-live] { background: #e5f0e7; border-color: #c8dfcd; color: #245836; }
.response-details { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 14px #22222e09; }
.panel-header { display: flex; align-items: center; justify-content: space-between; height: 50px; gap: .6rem; padding: 0 18px; border-bottom: 1px solid #e7e9ef; }
.panel-header h2 { font-size: .925rem; font-weight: 730; }
.panel-header span { font-size: .8125rem; color: var(--muted); }
.html-panel { background: #fff; }
.html-panel iframe { display: block; border: 0; width: 100%; height: 335px; }
.json-panel { color: #e6ebf8; background: var(--code); border-color: #303448; }
.json-panel .panel-header { background: #232838; border-color: #33394b; }
.json-panel pre { height: 335px; padding: 18px 20px; margin: 0; overflow: auto; color: #cfd6e8; }
.json-panel pre:focus-visible { outline-offset: -4px; }
.json-panel code { font: .84rem/1.65 var(--mono); }
.json-key { color: #9dc7ff; }
.json-string { color: #c6dfad; }
.json-literal { color: #f3be95; }
.text-button { background: transparent; color: #d9e2fa; border: 1px solid #515c79; border-radius: 6px; padding: .28rem .55rem; font-size: .8125rem; }
.text-button:hover { border-color: #9cacd2; background: #2d354c; }
.tab-list { display: none; }

.integration { margin: 30px 0 45px; border-top: 1px solid #dfded8; padding-top: 23px; }
.integration-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.integration-header h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.integration-header p { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.integration-header a { white-space: nowrap; }
.endpoint { display: flex; align-items: center; gap: .75rem; min-width: 0; margin: 14px 0 11px; border: 1px solid #d9dded; border-radius: 8px; padding: .67rem .8rem; background: #eff1fa; }
.method { flex: none; padding: .15rem .4rem; border-radius: 4px; color: #243ba0; background: #e0e6ff; font: .8rem var(--mono); }
.endpoint code { min-width: 0; overflow-wrap: anywhere; color: #273660; font: .86rem/1.5 var(--mono); }
.integration-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.secondary { min-height: 34px; display: inline-flex; align-items: center; color: #344369; background: #fff; border: 1px solid #ccd0e0; border-radius: 6px; padding: .35rem .65rem; font-size: .82rem; font-weight: 640; text-decoration: none; }
.secondary:hover { border-color: #8d9acf; background: #f2f4ff; }
.copy-status { color: var(--muted); margin-inline-start: .2rem; font-size: .875rem; }

@media (max-width: 780px) {
  .shell { width: calc(100% - 40px); }
  .hero { padding-top: 28px; }
}
@media (max-width: 620px) {
  .masthead { height: 55px; }
  .hero h1 { letter-spacing: -.055em; }
  .search-row { gap: 7px; }
  .primary { padding-inline: 12px; white-space: nowrap; }
  .panes { display: block; }
  .comparison-header { align-items: end; }
  .tab-list { display: flex; gap: 4px; border: 1px solid #d8dbe7; padding: 3px; border-radius: 8px; background: #eaeaf1; }
  .tab-list button { border: 0; padding: .3rem .55rem; background: transparent; color: #434e71; border-radius: 5px; font-size: .82rem; }
  .tab-list [aria-selected="true"] { background: #fff; color: #263c94; box-shadow: 0 1px 3px #191e3a22; }
  .comparison:not([data-active-tab="json"]) .json-panel,
  .comparison[data-active-tab="json"] .html-panel { display: none; }
  .panel-header { padding-inline: 14px; }
  .endpoint { gap: .5rem; }
}
