/* This file was modified using AI tooling (claude code). */

/* Vertex brand colors */
:root {
  --navy: #003970;
  --dark-blue: #004d7d;
  --deep-blue: #00609c;
  --bright-blue: #008fdc;
  --light-blue: #4cb0e6;
  --teal: #008299;
  --bright-teal: #00a2bf;
  --light-teal: #4cbed2;
  --dark-grey: #3b3d3f;
  --grey: #636569;
  --medium-grey: #a3a7aa;
  --light-grey: #bec1c3;
  --lightest-grey: #f6f6f6;
  --white: #ffffff;
  --yellow: #f3cf40;
}

/* Base */
html {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-grey);
  background: var(--lightest-grey);
}

body {
  min-height: 100vh;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--navy);
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--light-grey);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0.5rem 0;
}

a {
  color: var(--deep-blue);
  text-decoration: none;
}

a:hover {
  color: var(--bright-blue);
  text-decoration: underline;
}

/* Breadcrumbs */
nav.breadcrumbs,
nav.context-breadcrumbs {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 0.4rem;
}

nav.breadcrumbs {
  margin-bottom: 0.2rem;
}

nav.breadcrumbs span,
nav.context-breadcrumbs span {
  color: var(--dark-grey);
  font-weight: 500;
}

nav.context-breadcrumbs {
  margin-bottom: 0.75rem;
}

.caret {
  margin: 0 0.4em;
  color: var(--medium-grey);
  font-weight: 400;
  user-select: none;
}

/* XPath */
code.xpath {
  display: block;
  font-size: 0.8rem;
  color: var(--grey);
  background: var(--lightest-grey);
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  margin-bottom: 1rem;
  word-break: break-all;
}

/* Inline code */
code {
  font-size: 0.875em;
  background: var(--lightest-grey);
  border: 1px solid var(--light-grey);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: var(--dark-blue);
}

/* Code block */
pre {
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.5;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

thead {
  background: var(--dark-blue);
  color: var(--white);
}

thead th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

tbody tr {
  border-bottom: 1px solid var(--lightest-grey);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #eef5fb;
}

tbody td {
  padding: 0.55rem 1rem;
  vertical-align: top;
}

tbody td:first-child {
  white-space: nowrap;
}

/* info-table: two-column key/value, no header */
table.info-table {
  margin-top: 0;
}

table.info-table td:first-child {
  width: 140px;
  color: var(--grey);
}

/* template-params: equals-sign middle column */
table.template-params td:nth-child(2) {
  width: 2rem;
  text-align: center;
  color: var(--medium-grey);
}

/* Sections */
section {
  margin-top: 2rem;
}

section.description,
section.children,
section.details,
section.rules {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

section h2 {
  margin-top: 0;
  border-bottom-color: var(--lightest-grey);
}

/* Table inside a section should skip extra shadow */
section table {
  box-shadow: none;
  border: 1px solid var(--lightest-grey);
}

/* Table blocks (raw HTML tables from markdown) */
div.table-block {
  overflow-x: auto;
  margin: 0.75rem 0;
}

div.table-block table {
  min-width: 400px;
}

/* Index page list */
main > h1 + ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

main > h1 + ul > li {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-blue);
}

main > h1 + ul > li > ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

main > h1 + ul > li > ul > li {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grey);
  padding: 0.2rem 0;
}

main > h1 + ul > li > ul > li > ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.25rem 0;
}

main > h1 + ul > li > ul > li > ul > li {
  font-weight: 400;
  color: var(--dark-grey);
  padding: 0.1rem 0;
}

/* Status markers */
.hidden-marker {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--yellow);
  color: var(--dark-grey);
  border-radius: 3px;
  padding: 0.1em 0.45em;
  vertical-align: middle;
  margin-left: 0.4rem;
}

span.removed {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--light-grey);
  color: var(--grey);
  border-radius: 3px;
  padding: 0.1em 0.45em;
  margin-left: 0.3rem;
}

s a {
  color: var(--medium-grey);
}

/* Responsive */
@media (max-width: 640px) {
  main {
    padding: 1rem 1rem 3rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  tbody td:first-child {
    white-space: normal;
  }
}
