/* Risen Kings Rules Navigation 0.1.0
   Only affects Risen Kings rules pages. Inherits Genesis Sample typography,
   global colors, header, footer, body text, buttons, and entry formatting. */

.rk-rules-view .rk-nav-widget {
  margin-bottom: 32px;
}

.rk-rules-view .rk-nav-heading {
  margin-bottom: 16px;
}

.rk-rules-view .rk-nav-heading a {
  color: inherit;
  text-decoration: none;
}

.rk-rules-view .rk-nav-heading a:hover,
.rk-rules-view .rk-nav-heading a:focus-visible {
  color: var(--rk-theme-link, currentColor);
  text-decoration: underline;
}

.rk-rules-view .rk-nav-search {
  margin-bottom: 24px;
}

.rk-rules-view .rk-nav-search input[type="search"] {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 12px;
  width: 100%;
}

.rk-rules-view .rk-nav-search button {
  margin-top: 8px;
  padding: 9px 16px;
}

.rk-rules-view .rk-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rk-rules-view .rk-nav-item {
  margin: 0;
  list-style: none;
}

.rk-rules-view .rk-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 1px solid #eee;
}

.rk-rules-view .rk-nav-link {
  display: block;
  padding: 10px 4px 10px 0;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  color: inherit;
  overflow-wrap: anywhere;
}

.rk-rules-view .rk-nav-link:focus-visible,
.rk-rules-view .rk-nav-link:hover {
  color: var(--rk-theme-link, currentColor);
  text-decoration: underline;
}

.rk-rules-view .rk-is-current > .rk-nav-row > .rk-nav-link {
  color: var(--rk-theme-link, currentColor);
  font-weight: 700;
}

.rk-rules-view .rk-nav-children {
  margin-left: 13px;
  padding-left: 12px;
  border-left: 1px solid #eee;
}

.rk-rules-view .rk-nav-expand {
  flex: 0 0 30px;
  width: 30px;
  min-height: 35px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: 15px;
  text-align: center;
}

.rk-rules-view .rk-nav-expand:hover,
.rk-rules-view .rk-nav-expand:focus-visible {
  background: #f5f5f5;
  color: var(--rk-theme-link, currentColor);
}

.rk-rules-view .rk-nav-expand span {
  display: inline-block;
  transition: transform .15s ease;
  transform: rotate(-90deg);
}

.rk-rules-view .rk-nav-expand[aria-expanded="true"] span {
  transform: rotate(0);
}

.rk-rules-view .rk-nav-panel[hidden],
.rk-rules-view .rk-nav-children[hidden] {
  display: none !important;
}

/* Genesis Sample already provides the two-column .sidebar-content layout. */
.rk-rules-view .rk-nav-mobile {
  display: none;
}

@media only screen and (min-width: 960px) {
  .rk-rules-view .sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .rk-rules-view.admin-bar .sidebar {
    top: 132px;
    max-height: calc(100vh - 144px);
  }
}

@media only screen and (max-width: 959px) {
  .rk-rules-view .sidebar {
    display: none;
  }

  .rk-rules-view .rk-nav-mobile {
    display: block;
  }

  .rk-rules-view .rk-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    background: #f5f5f5;
    border-radius: 0;
    color: inherit;
    text-align: left;
  }

  .rk-rules-view .rk-nav-trigger:hover,
  .rk-rules-view .rk-nav-trigger:focus-visible {
    color: inherit;
    background: #eee;
  }

  .rk-rules-view .rk-nav-panel {
    margin-bottom: 24px;
    border: 1px solid #eee;
    padding: 20px;
  }
}

@media print {
  .rk-rules-view .sidebar,
  .rk-rules-view .rk-nav-mobile {
    display: none !important;
  }
  .rk-rules-view .content {
    width: 100% !important;
    float: none !important;
  }
}
