:root {
  color-scheme: light;
  --page: #f4f4f4;
  --surface: #ffffff;
  --surface-muted: #f9f9f9;
  --text: #151515;
  --muted: #686868;
  --line: #d7d7d7;
  --line-strong: #bdbdbd;
  --link: #0645ad;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: auto;
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 1.25rem;
}

.brand-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.site-title {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-subtitle,
.breadcrumb,
.section-kicker,
.nav-group h2,
.panel-heading span,
.page-footer {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-subtitle {
  display: block;
  margin-top: 0.15rem;
}

.nav-group {
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.nav-group h2 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-group a {
  display: block;
  border: 1px solid transparent;
  padding: 0.3rem 0.45rem;
  color: var(--text);
  text-decoration: none;
}

.nav-group a:hover,
.nav-group a:focus-visible,
.nav-group a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface-muted);
}

.content {
  width: min(100%, 62rem);
  padding: 2rem;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.breadcrumb,
.section-kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.65rem;
  font-size: 2.2rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.lede {
  max-width: 44rem;
  margin-bottom: 0;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.7rem;
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
}

.section {
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.section-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
}

.panel,
.panel-list {
  padding: 1.25rem;
}

.panel-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.panel-list .panel {
  background: var(--surface);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.panel p:last-child,
.page-header p:last-child {
  margin-bottom: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--line);
  padding: 0.75rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.data-table tr:first-child th,
.data-table tr:first-child td {
  border-top: 0;
}

.data-table th {
  width: 10rem;
  color: var(--muted);
  font-weight: 700;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

@media (max-width: 780px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .content {
    padding: 1rem;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }
}
