@charset "UTF-8";

* {
  box-sizing: border-box;
}

html {
  padding: 0;
  margin: 0;
  font-size: 16px;
}

body {
  max-width: 1024px;
  margin: 0 auto;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #172849;
  background-color: #eef2ff;
}

#contents {
  min-height: 100vh;
  padding-bottom: 12px;
  background-color: #ffffff;
}

.inner {
  margin: 16px;
}

h1,
h2,
h3 {
  padding: 10px 12px;
  margin: 0;
  color: #000055;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #c0cbff;
}

h1 small {
  display: inline-block;
  font-size: 0.65em;
  font-weight: normal;
  white-space: nowrap;
}

h2 {
  font-size: 1.2rem;
  background-color: #e8edff;
}

h3 {
  font-size: 1.1rem;
  font-weight: normal;
  background-color: #f0f3ff;
}

p {
  margin: 10px 0;
}

ul,
ol {
  padding-left: 24px;
}

a {
  color: #244da5;
  text-underline-offset: 0.15em;
}

a[href^="http://"]::after,
a[href^="https://"]::after {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.75em;
  content: "↗";
}

strong {
  color: #af2434;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

#siteswap {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-family: ui-monospace, monospace;
  font-size: 1.2rem;
  color: inherit;
  border: 1px solid #7a89ac;
  border-radius: 6px;
}

.hint {
  font-size: 0.875rem;
  color: #52617d;
  overflow-wrap: anywhere;
}

.form-actions,
.share-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.form-actions {
  margin-top: 12px;
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.share-actions {
  margin-top: 16px;
}

button {
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-weight: bold;
  color: #244078;
  cursor: pointer;
  background-color: #edf2ff;
  border: 1px solid #9aaed7;
  border-radius: 6px;
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

.example-actions button {
  padding: 6px 8px;
  font-size: 0.875rem;
  font-weight: normal;
}

button:hover:not(:disabled) {
  background-color: #dae5ff;
}

button.primary {
  min-width: 88px;
  color: #ffffff;
  background-color: #305bb1;
  border-color: #305bb1;
}

button.primary:hover {
  background-color: #23468c;
}

:focus-visible {
  outline: 3px solid #416bcb;
  outline-offset: 3px;
}

.result-status {
  margin-top: 16px;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.error {
  color: #a32130;
}

[aria-invalid="true"] {
  border-color: #a32130 !important;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

caption {
  margin-bottom: 6px;
  font-size: 0.875rem;
  text-align: left;
}

th,
td {
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #b6c2de;
}

th {
  font-weight: bold;
  color: #000055;
  white-space: nowrap;
  background-color: #e8edff;
}

tbody tr:nth-child(even) {
  background-color: #f7f9ff;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

#result-table {
  width: auto;
  max-width: 100%;
}

#result-table th:nth-child(2) {
  width: 5em;
}

#result-table td:first-child {
  max-width: 20em;
}

#result-table td:nth-child(2) {
  text-align: center;
}

.method {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;
  font-size: 0.875rem;
  white-space: nowrap;
  background-color: #e8edff;
  border-radius: 4px;
}

.row-actions {
  min-width: 6em;
}

.row-actions a {
  padding: 6px 0;
  white-space: nowrap;
}

.copy-button {
  font-size: 0.875rem;
}

.clipboard-text {
  position: fixed;
  top: 0;
  left: -9999px;
}

pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

summary {
  padding: 8px;
  cursor: pointer;
  background-color: #e8edff;
}

[hidden] {
  display: none !important;
}

@media (width <= 480px) {
  .inner {
    margin: 12px;
  }

  h1 {
    font-size: 1.25rem;
  }

  button {
    padding: 8px 10px;
  }

  th,
  td {
    padding: 6px;
  }

  #result-table {
    width: 100%;
    table-layout: fixed;
  }

  #result-table th {
    font-size: 0.8rem;
    white-space: normal;
  }

  #result-table th:first-child {
    width: 23%;
  }

  #result-table th:nth-child(2) {
    width: 18%;
  }

  #result-table th:nth-child(3) {
    width: 27%;
  }

  #result-table td:first-child {
    min-width: 0;
  }

  .method {
    padding: 2px 4px;
    margin: 2px 0;
    font-size: 0.75rem;
  }

  .row-actions {
    min-width: 0;
    font-size: 0.875rem;
  }
}
