/* Snorkel skill pill — difficulty signal in the shared hero status row. */

.hg-snorkel-pill-wrap {
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
}

.hg-snorkel-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .25px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.hg-snorkel-pill:hover,
.hg-snorkel-pill:focus {
  color: #fff;
  text-decoration: none;
}

.hg-snorkel-pill:focus {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.hg-snorkel-pill-beginner {
  background: #1d9771;
}

.hg-snorkel-pill-beginner:hover,
.hg-snorkel-pill-beginner:focus {
  background: #147a5a;
}

.hg-snorkel-pill-intermediate {
  background: #f27a24;
}

.hg-snorkel-pill-intermediate:hover,
.hg-snorkel-pill-intermediate:focus {
  background: #c95f14;
}

.hg-snorkel-pill-advanced {
  background: #c3232f;
}

.hg-snorkel-pill-advanced:hover,
.hg-snorkel-pill-advanced:focus {
  background: #9d1822;
}

.hg-snorkel-pill-neutral {
  background: #1866b4;
}

.hg-snorkel-pill-neutral:hover,
.hg-snorkel-pill-neutral:focus {
  background: #134f8c;
}

.hg-snorkel-pill-icon {
  font-size: 13px;
  opacity: .95;
  flex: 0 0 auto;
}

.hg-snorkel-pill-text {
  display: inline-block;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.hg-snorkel-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.hg-snorkel-modal.is-open {
  display: flex;
}

.hg-snorkel-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
}

.hg-snorkel-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.hg-snorkel-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.hg-snorkel-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #117a4a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.hg-snorkel-modal-head h3 {
  margin: 0;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.2;
}

.hg-snorkel-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.hg-snorkel-modal-close:hover,
.hg-snorkel-modal-close:focus {
  background: #e5e7eb;
}

.hg-snorkel-modal-body {
  padding: 18px 22px 10px;
}

.hg-snorkel-modal-summary {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.hg-snorkel-modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 14px;
}

.hg-snorkel-modal-fact {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f8fafb;
}

.hg-snorkel-modal-fact span {
  display: block;
  margin: 0 0 3px;
  color: #74808a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.hg-snorkel-modal-fact strong {
  display: block;
  color: #223844;
  font-size: 14px;
  line-height: 1.3;
}

.hg-snorkel-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}

.hg-snorkel-modal-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf8f3;
  color: #12674c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.hg-snorkel-modal-note {
  margin: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #fff8ed;
  color: #64451f;
  font-size: 14px;
  line-height: 1.45;
}

.hg-snorkel-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid #eef2f5;
  background: #fbfcfd;
}

.hg-snorkel-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: #173047;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.hg-snorkel-modal-cta:hover,
.hg-snorkel-modal-cta:focus {
  color: #fff;
  opacity: .92;
  text-decoration: none;
}

.hg-snorkel-modal-cta-secondary {
  background: #eef4f7;
  color: #243946;
}

.hg-snorkel-modal-cta-secondary:hover,
.hg-snorkel-modal-cta-secondary:focus {
  color: #243946;
}

@media (max-width: 600px) {
  .hg-snorkel-pill-wrap { margin: 4px 3px; }
  .hg-snorkel-pill {
    gap: 5px;
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: .1px;
  }
  .hg-snorkel-pill-text { max-width: 22ch; }
  .hg-snorkel-modal-card { max-height: 90vh; }
  .hg-snorkel-modal-head,
  .hg-snorkel-modal-body,
  .hg-snorkel-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hg-snorkel-modal-facts {
    grid-template-columns: 1fr;
  }
  .hg-snorkel-modal-foot {
    justify-content: stretch;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .hg-snorkel-pill {
    padding: 5px 8px;
    font-size: 10px;
  }
  .hg-snorkel-pill-text { max-width: 20ch; }
}

@media print {
  .hg-snorkel-pill-wrap,
  .hg-snorkel-modal {
    display: none;
  }
}
