/*
 * Honest Webbing's layer on every sample site (/examples): the strip across the top, the
 * "What's on this page?" guide, the toast that answers a click on something that isn't hooked up,
 * and the small "Add-on" tag. It keeps its own look and fonts, so it never reads as part of the
 * made-up business.
 */
.hw-strip,
.hw-guide,
.hw-toast,
.hw-addon,
.hw-tag {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hw-strip {
  position: relative;
  z-index: 60;
  background: #0b1210;
  color: #d5ebe0;
  border-bottom: 1px solid #1f3b31;
  font-size: 13px;
  line-height: 1.35;
}
.hw-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.hw-strip__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hw-strip__brand img {
  width: 18px;
  height: 18px;
}
.hw-strip__brand em {
  font-style: normal;
  color: #34d399;
  font-weight: 600;
}
.hw-strip__note {
  margin: 0;
  flex: 1 1 280px;
  color: #a9c7b9;
}
.hw-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #2c5446;
  border-radius: 999px;
  background: transparent;
  color: #e7f5ee;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.hw-pill:hover {
  background: #132520;
}
.hw-pill--go {
  border-color: #34d399;
  color: #34d399;
}
.hw-viewas {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #1f3b31;
  border-radius: 999px;
}
.hw-viewas b {
  padding: 0 6px 0 8px;
  color: #7fa594;
  font-weight: 600;
}
.hw-viewas a {
  padding: 4px 10px;
  border-radius: 999px;
  color: #d5ebe0;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hw-viewas a:hover {
  background: #132520;
}
.hw-viewas a[aria-current="page"] {
  background: #34d399;
  color: #06231a;
}

/* The guide: a panel from the right listing what the sample shows and what each piece is. */
.hw-guide {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgb(0 0 0 / 0.45);
}
.hw-guide[hidden] {
  display: none;
}
.hw-guide__panel {
  width: min(400px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #0f1a17;
  color: #d5ebe0;
  border-left: 1px solid #1f3b31;
  padding: 20px 20px 40px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: -12px 0 40px rgb(0 0 0 / 0.35);
}
.hw-guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hw-guide h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-family: inherit;
}
.hw-guide p {
  margin: 8px 0 0;
  color: #a9c7b9;
}
.hw-guide h3 {
  margin: 22px 0 8px;
  color: #34d399;
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hw-guide ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #1f3b31;
}
.hw-guide li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #1f3b31;
}
.hw-guide li a {
  color: #e7f5ee;
  text-decoration: none;
}
.hw-guide li a:hover {
  text-decoration: underline;
}
.hw-guide__close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid #2c5446;
  border-radius: 999px;
  background: transparent;
  color: #e7f5ee;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hw-guide__cta {
  display: block;
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #34d399;
  color: #06231a;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.hw-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.hw-tag--in {
  background: #12392c;
  color: #6ee7b7;
}
.hw-tag--add {
  background: #3a2c10;
  color: #f2c46b;
}
.hw-tag--app {
  background: #1d2a44;
  color: #9cc0ff;
}

/* "Add-on" next to a heading on the sample itself. It takes the sample's own text color. */
.hw-addon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1.5px dashed currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  opacity: 0.85;
  cursor: help;
}

/* The answer to a click on something that isn't hooked up. Sits above any bottom bar. */
.hw-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 110;
  width: min(460px, calc(100% - 32px));
  transform: translate(-50%, 20px);
  padding: 12px 16px;
  border: 1px solid #2c5446;
  border-radius: 14px;
  background: #0f1a17;
  color: #e7f5ee;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.hw-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.hw-toast b {
  color: #34d399;
}
@media (max-width: 767px) {
  .hw-toast {
    bottom: 96px;
  }
  .hw-strip__note {
    flex-basis: 100%;
    order: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hw-toast {
    transition: none;
  }
}
@media print {
  .hw-strip,
  .hw-guide,
  .hw-toast {
    display: none !important;
  }
}
