/* Extracted inline styles for CSP compliance */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #06c;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.theme--dark .skip-link {
  background: #4d9fff;
  color: #000;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #06c;
  outline-offset: 2px;
}

.theme--dark a:focus,
.theme--dark button:focus,
.theme--dark input:focus,
.theme--dark textarea:focus,
.theme--dark select:focus {
  outline-color: #4d9fff;
}

a {
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a {
  cursor: pointer;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 200px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
  z-index: 1000;
}

.theme--light .sub-menu {
  background: hsl(240deg, 40%, 95%);
  box-shadow: 0 4px rgba(240, 40%, 95%, .8), -4px 4px rgba(240, 40%, 95%, .8), 4px 4px rgba(240, 40%, 95%, .8);
}

.theme--dark .sub-menu {
  background: hsl(240deg, 20%, 10%);
  box-shadow: 0 4px rgba(0, 0, 0, .8), -4px 4px rgba(0, 0, 0, .8), 4px 4px rgba(0, 0, 0, .8);
}

.sub-menu li {
  flex: none;
  padding: 4px 8px;
  border: 2px dotted;
  margin-bottom: -2px;
}

.theme--light .sub-menu li {
  border-color: hsl(240deg, 100%, 50%);
}

.theme--dark .sub-menu li {
  border-color: hsl(240deg, 100%, 50%);
}

.sub-menu a {
  display: flex;
  text-decoration: none;
  white-space: nowrap;
}

.sub-menu a:hover {
  text-decoration: underline;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
  display: block;
}

.mobile-child a {
  padding-left: 20px;
  font-size: .9em;
}

.menu-item-has-children > a:focus + .sub-menu,
.sub-menu:focus-within {
  display: block;
}

table {
  border-collapse: collapse;
  width: auto;
  margin: 0;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

@media (max-width: 900px) {
  .table-wrapper {
    display: block;
    text-align: center;
  }
  .table-wrapper table {
    margin: 0 auto;
  }
}

@media (max-width: 684px) {
  .tool-section {
    padding: .5rem;
  }
  table {
    font-size: 13px;
  }
  th, td {
    padding: 8px 4px;
  }
  pre {
    font-size: 12px;
    overflow-x: auto;
  }
  code {
    word-break: break-word;
  }
  .diff-input-grid {
    grid-template-columns: 1fr !important;
  }
  .tool-section textarea {
    min-height: 150px;
  }
  .tool-section button {
    width: 100%;
    margin: .5rem 0;
  }
  .tool-section {
    font-size: 14px;
  }
  .diff-view {
    grid-template-columns: 1fr !important;
  }
  .output-box, .success, .error {
    padding: .75rem;
    font-size: 13px;
  }
  .log-lines {
    font-size: 12px;
    padding: 10px;
  }
  .skip-link:focus {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (max-width: 900px) and (min-width: 685px) {
  .tool-section {
    padding: .75rem;
  }
}
