/* Allaire HomeSite 4.5 (apps/homesite). Editor colours are HomeSite's
   defaults: tags navy, anchors green, images purple, tables teal, forms
   orange, scripts maroon, attribute values blue, comments grey. */

.hs-app {
  font: 11px var(--ui-font);
}

.hs-app .hidden,
.hs-dialog .hidden {
  display: none !important;
}

/* ---------------------------------------------------------------- menus */

.menu .mi .hs-mkey {
  float: right;
  margin-left: 28px;
  margin-right: -8px;
}

.menu .mi:hover:not(.disabled) .hs-mkey {
  color: #fff;
}

/* -------------------------------------------------------------- toolbars */

.hs-toolbar,
.hs-quickbar {
  position: absolute;
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--hilite);
}

.hs-quickpanel {
  position: absolute;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hilite), inset -2px -2px var(--shadow);
}

.hs-tbtn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--face);
  border: none;
  outline: none;
  color: #000;
}

.hs-tbtn:hover:not(:disabled) {
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--hilite);
}

.hs-tbtn:active:not(:disabled) {
  box-shadow: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow);
}

.hs-tbtn:active:not(:disabled) > * {
  transform: translate(1px, 1px);
}

.hs-tbtn:disabled canvas {
  filter: grayscale(1) opacity(0.45);
}

.hs-glyph {
  font: bold 12px 'Times New Roman', Times, serif;
  color: #000080;
  line-height: 14px;
  white-space: nowrap;
}

.hs-glyph.small {
  font: bold 9px Tahoma, Verdana, var(--ui-font);
  letter-spacing: -0.3px;
}

.hs-glyph.g-b {
  color: #000;
  font-size: 14px;
}

.hs-glyph.g-i {
  color: #000;
  font-style: italic;
  font-size: 14px;
}

.hs-glyph.g-u {
  color: #000;
  text-decoration: underline;
  font-size: 14px;
}

.hs-glyph.g-s {
  color: #000;
  text-decoration: line-through;
  font-size: 14px;
}

.hs-tsep {
  position: absolute;
  box-shadow: inset 1px 0 var(--shadow), inset -1px 0 var(--hilite);
}

.hs-tsep.h {
  box-shadow: inset 0 1px var(--shadow), inset 0 -1px var(--hilite);
}

/* ------------------------------------------------------------------ tabs */

.hs-tabs {
  position: absolute;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 2px;
}

.hs-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 7px;
  margin-right: -1px;
  background: var(--face);
  box-shadow: inset 1px 1px var(--hilite), inset -1px 0 var(--dark), inset -2px 0 var(--shadow);
  border-radius: 2px 2px 0 0;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.hs-tab canvas {
  flex: none;
}

.hs-tab.sel {
  height: 19px;
  z-index: 1;
  padding: 0 9px;
  margin: 0 -2px 0 -2px;
}

.hs-tabs.bottom {
  align-items: flex-start;
  box-shadow: inset 0 1px var(--hilite);
}

.hs-tabs.bottom .hs-tab {
  border-radius: 0 0 2px 2px;
  box-shadow: inset 1px 0 var(--hilite), inset -1px -1px var(--dark), inset -2px -2px var(--shadow);
}

.hs-tabs.bottom .hs-tab.sel {
  height: 18px;
  margin-top: -1px;
}

/* ---------------------------------------------------------- resource tab */

.hs-resource,
.hs-respane,
.hs-docarea {
  position: absolute;
}

.hs-tree {
  position: absolute;
  overflow: auto;
  background: var(--window);
  box-shadow: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
  padding: 2px 0;
  outline: none;
  box-sizing: border-box;
}

.hs-node {
  display: flex;
  align-items: center;
  height: 17px;
  white-space: nowrap;
  gap: 2px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.hs-exp {
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  font: 9px/8px var(--arial);
  text-align: center;
  color: #000;
}

.hs-exp.box {
  box-shadow: inset 0 0 0 1px var(--shadow);
  background: var(--window);
}

.hs-nodetext {
  padding: 0 2px;
  line-height: 14px;
}

.hs-nodetext.sel {
  background: var(--select);
  color: #fff;
}

.hs-filelist .ftp-lvrow {
  cursor: default;
}

.hs-snippets {
  background: var(--window);
  box-shadow: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
  padding: 3px 2px;
  box-sizing: border-box;
  overflow: auto;
}

.hs-snip {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  white-space: nowrap;
  cursor: default;
}

.hs-snip.sel span {
  background: var(--select);
  color: #fff;
}

/* --------------------------------------------------------------- editor */

.hs-pathlabel {
  position: absolute;
  right: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #000;
  line-height: 16px;
  text-align: right;
}

.hs-edtools {
  position: absolute;
}

.hs-editor {
  position: absolute;
  background: var(--window);
  box-shadow: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
  overflow: hidden;
}

.hs-gutter {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  overflow: hidden;
  background: var(--face);
  box-shadow: inset -1px 0 var(--shadow);
}

.hs-gutter-text {
  position: absolute;
  right: 5px;
  top: 4px;
  margin: 0;
  font: 11px/15px 'Courier New', Courier, monospace;
  color: #808080;
  text-align: right;
  white-space: pre;
}

.hs-layer,
.hs-ta {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
}

.hs-layer {
  overflow: hidden;
  pointer-events: none;
}

.hs-hl,
.hs-ta {
  margin: 0;
  padding: 4px;
  border: 0;
  font: 13px/15px 'Courier New', Courier, monospace;
  font-variant-ligatures: none;
  font-kerning: none;
  letter-spacing: 0;
  tab-size: 4;
  -moz-tab-size: 4;
  white-space: pre;
  overflow-wrap: normal;
  word-wrap: normal;
  text-rendering: optimizeSpeed;
}

.hs-hl {
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  transform-origin: 0 0;
}

.hs-ta {
  box-sizing: border-box;
  width: auto;
  resize: none;
  outline: none;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #000;
  overflow: scroll;
  border-radius: 0;
  -webkit-user-select: text;
  user-select: text;
}

.hs-ta::selection {
  background: #000080;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.hs-hl .hs-tag,
.hs-hl .hs-doctype {
  color: #000080;
}

.hs-hl .hs-anchor {
  color: #008000;
}

.hs-hl .hs-image {
  color: #800080;
}

.hs-hl .hs-table {
  color: #008080;
}

.hs-hl .hs-form {
  color: #ff8000;
}

.hs-hl .hs-script {
  color: #800000;
}

.hs-hl .hs-code {
  color: #800000;
}

.hs-hl .hs-value {
  color: #0000ff;
}

.hs-hl .hs-comment {
  color: #808080;
}

.hs-hl .hs-entity {
  color: #808000;
}

/* Tag Insight */
.hs-insight {
  position: absolute;
  width: 120px;
  max-height: 100px;
  overflow-y: auto;
  background: var(--window);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--dark);
  padding: 1px;
  z-index: 5;
  font: 11px var(--ui-font);
}

.hs-insight.hidden {
  display: none;
}

.hs-insight-item {
  height: 14px;
  line-height: 14px;
  padding: 0 4px 0 20px;
  position: relative;
  white-space: nowrap;
  cursor: default;
}

.hs-insight-item::before {
  content: '<>';
  position: absolute;
  left: 3px;
  font: bold 8px/14px Tahoma, var(--ui-font);
  color: #000080;
}

.hs-insight-item.sel {
  background: var(--select);
  color: #fff;
}

.hs-insight-item.sel::before {
  color: #fff;
}

/* Browse */
.hs-browse {
  position: absolute;
  background: var(--window);
  box-shadow: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
  padding: 2px;
  box-sizing: border-box;
}

.hs-preview {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* ------------------------------------------------------------ status bar */

.hs-status .ftp-spanel:nth-child(-n + 3) {
  text-align: center;
}

/* --------------------------------------------------------------- dialogs */

.hs-dialog {
  font: 11px var(--ui-font);
}

.hs-iconbtn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-aboutrule {
  position: absolute;
  box-shadow: inset 0 1px var(--shadow), inset 0 -1px var(--hilite);
}

.hs-puburl {
  font-family: 'Courier New', Courier, monospace !important;
}
