:root {
  --api-get-bg: #d9edf7;
  --api-get-border: #b9d8e8;
  --api-get-accent: #3a87ad;
  --api-post-bg: #dff0d8;
  --api-post-border: #c8e2bd;
  --api-post-accent: #468847;
  --api-patch-bg: #fcf8e3;
  --api-patch-border: #ece3bd;
  --api-patch-accent: #9a6a21;
  --api-put-bg: #eee3ff;
  --api-put-border: #d9c2f4;
  --api-put-accent: #7655b7;
  --api-delete-bg: #f2dede;
  --api-delete-border: #e7c8c8;
  --api-delete-accent: #b94a48;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) 290px;
  gap: 30px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.toc {
  grid-column: 2;
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 0 0 16px;
}

.content-shell {
  grid-column: 1;
  grid-row: 1;
}

.browser-link {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: #337ab7;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.browser-link span {
  display: block;
  font-size: 12px;
  font-weight: 400;
}

.toc h2,
.doc-section h2,
.resources-section h2 {
  margin: 18px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.toc nav {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.content-table {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  list-style: square;
}

.content-table a {
  font-size: 14px;
}

.page-header,
.doc-section,
.resources-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
}

.page-header p,
.doc-section p {
  margin: 0 0 10px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice {
  padding: 12px;
  border: 1px solid #e0d3a6;
  border-radius: var(--radius);
  background: #fff9df;
}

.resources-list,
.operations {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource {
  border-bottom: 1px solid var(--border);
}

.resource > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.resource > button:hover {
  text-decoration: underline;
}

.resource-summary {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.operations {
  display: none;
  padding-bottom: 8px;
}

.resource.is-open .operations {
  display: block;
}

.operation {
  margin: 0 0 10px;
}

.operation-heading {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  color: #000000;
  font: inherit;
  text-align: left;
}

.operation-heading strong {
  display: inline-flex;
  width: 58px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 2px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.operation-heading span {
  font-weight: 600;
}

.operation-content {
  display: none;
  padding: 10px;
  border: 1px solid transparent;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.operation.is-open .operation-content {
  display: block;
}

.operation-content h4 {
  margin: 14px 0 5px;
  font-size: 16px;
  font-weight: 600;
}

.operation-content h4:first-child {
  margin-top: 0;
}

.operation-content p {
  margin: 0 0 8px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.52);
  color: #26323a;
  font-size: 12px;
}

.get .operation-heading,
.get .operation-content {
  border-color: var(--api-get-border);
  background: var(--api-get-bg);
}

.get .operation-heading strong {
  background: var(--api-get-accent);
}

.get h4 {
  color: var(--api-get-accent);
}

.post .operation-heading,
.post .operation-content {
  border-color: var(--api-post-border);
  background: var(--api-post-bg);
}

.post .operation-heading strong {
  background: var(--api-post-accent);
}

.post h4 {
  color: var(--api-post-accent);
}

.patch .operation-heading,
.patch .operation-content {
  border-color: var(--api-patch-border);
  background: var(--api-patch-bg);
}

.patch .operation-heading strong {
  background: var(--api-patch-accent);
}

.patch h4 {
  color: var(--api-patch-accent);
}

.put .operation-heading,
.put .operation-content {
  border-color: var(--api-put-border);
  background: var(--api-put-bg);
}

.put .operation-heading strong {
  background: var(--api-put-accent);
}

.put h4 {
  color: var(--api-put-accent);
}

.delete .operation-heading,
.delete .operation-content {
  border-color: var(--api-delete-border);
  background: var(--api-delete-bg);
}

.delete .operation-heading strong {
  background: var(--api-delete-accent);
}

.delete h4 {
  color: var(--api-delete-accent);
}

@media (max-width: 980px) {
  .layout {
    display: block;
    width: min(100% - 24px, 760px);
  }

  .toc {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .page-header h1 {
    font-size: 30px;
  }

  .operation-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding-right: 8px;
  }

  .operation-heading strong {
    margin-right: 0;
  }

  .operation-heading span {
    overflow-wrap: anywhere;
  }
}
