.htu-lib {
  --htu-cobalt: #1769ff;
  --htu-cobalt-hover: #0d4fd6;
  --htu-navy: #0b1f3a;
  --htu-pale: #eaf2ff;
  --htu-tint: #f5f8ff;
  --htu-border: #e2e8f5;
  --htu-muted: #4a5a72;

  /*min-height: 100vh;*/
  background: var(--htu-tint);
  color: var(--htu-navy);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.htu-lib *,
.htu-lib *::before,
.htu-lib *::after {
  box-sizing: border-box;
}

.htu-lib [hidden] {
  display: none !important;
}

.htu-lib .htu-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.htu-lib .htu-svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.htu-lib .htu-cat-ico .htu-svg {
  width: 20px;
  height: 20px;
}

/* Hero */
.htu-lib .htu-hero {
  padding: 56px 0 8px;
}

.htu-lib .htu-crumbs {
  margin: 0 0 10px;
  color: var(--htu-muted);
  font-size: 13px;
}

.htu-lib .htu-crumbs a {
  color: var(--htu-cobalt);
  text-decoration: none;
}

.htu-lib .htu-crumbs a:hover {
  text-decoration: underline;
}

.htu-lib .htu-eyebrow {
  margin: 0 0 10px;
  color: var(--htu-cobalt);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.htu-lib h1.htu-title {
  margin: 0;
  color: var(--htu-navy);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.htu-lib .htu-sub {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--htu-muted);
  font-size: 16px;
  line-height: 1.6;
}

.htu-lib .htu-hero-cta,
.htu-lib .htu-final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* Buttons and links */
.htu-lib .htu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.htu-lib .htu-btn-primary {
  border-color: var(--htu-cobalt);
  background: var(--htu-cobalt);
  color: #fff;
}

.htu-lib .htu-btn-primary:hover {
  border-color: var(--htu-cobalt-hover);
  background: var(--htu-cobalt-hover);
  color: #fff;
  text-decoration: none;
}

.htu-lib .htu-btn-ghost {
  border-color: var(--htu-border);
  background: #fff;
  color: var(--htu-navy);
}

.htu-lib .htu-btn-ghost:hover {
  border-color: var(--htu-cobalt);
  color: var(--htu-cobalt);
  text-decoration: none;
}

.htu-lib .htu-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--htu-cobalt);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.htu-lib .htu-textlink:hover {
  color: var(--htu-cobalt-hover);
  text-decoration: underline;
}

.htu-lib a:focus-visible,
.htu-lib button:focus-visible,
.htu-lib input:focus-visible,
.htu-lib select:focus-visible {
  outline: 2px solid var(--htu-cobalt);
  outline-offset: 2px;
}

/* Outcome framework */
.htu-lib .htu-section {
  margin-top: 32px;
}

.htu-lib h2.htu-h2 {
  margin: 0 0 6px;
  color: var(--htu-navy);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 800;
}

.htu-lib .htu-section-sub {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--htu-muted);
  font-size: 15px;
}

.htu-lib .htu-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.htu-lib .htu-outcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--htu-border);
  border-radius: 14px;
  background: #fff;
}

.htu-lib .htu-outcome-ico,
.htu-lib .htu-card-ico,
.htu-lib .htu-cat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--htu-pale);
  color: var(--htu-cobalt);
}

.htu-lib .htu-outcome-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.htu-lib .htu-outcome h3 {
  margin: 2px 0 4px;
  color: var(--htu-navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.htu-lib .htu-outcome p {
  margin: 0;
  color: var(--htu-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Sticky filter toolbar */
.htu-lib .htu-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--htu-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.06);
}

.htu-lib .htu-toolbar-label {
  margin: 0 0 10px;
  color: var(--htu-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.htu-lib .htu-toolbar-sub {
  margin: 2px 0 10px;
  color: var(--htu-muted);
  font-size: 13px;
}

.htu-lib .htu-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.htu-lib .htu-select {
  max-width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--htu-border);
  border-radius: 999px;
  background: #fff;
  color: var(--htu-navy);
  font: inherit;
  font-size: 14px;
}

.htu-lib .htu-select-goal,
.htu-lib .htu-select-jump {
  flex: 0 1 auto;
}

.htu-lib .htu-select-goal {
  display: none;
}

.htu-lib .htu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.htu-lib .htu-chip {
  padding: 7px 13px;
  border: 1px solid var(--htu-border);
  border-radius: 999px;
  background: #fff;
  color: var(--htu-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.htu-lib .htu-chip:hover {
  border-color: var(--htu-cobalt);
  color: var(--htu-cobalt);
}

.htu-lib .htu-chip[aria-pressed="true"] {
  border-color: var(--htu-cobalt);
  background: var(--htu-cobalt);
  color: #fff;
}

.htu-lib .htu-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--htu-border);
  color: var(--htu-muted);
  font-size: 13px;
}

.htu-lib .htu-toolbar-meta p {
  margin: 0;
}

/* Category chapters */
.htu-lib .htu-cat {
  margin-top: 26px;
  padding: 0 16px 18px;
  scroll-margin-top: 112px;
  border: 1px solid var(--htu-border);
  border-radius: 18px;
  background: #fff;
}

.htu-lib .htu-cat-alt {
  background: #f2f6fd;
}

.htu-lib .htu-cat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -16px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #d4e4ff;
  border-radius: 18px 18px 0 0;
  background: var(--htu-pale);
}

.htu-lib .htu-cat-ico {
  width: 34px;
  height: 34px;
  border: 1px solid #d4e4ff;
  border-radius: 10px;
  background: #fff;
}

.htu-lib .htu-cat-headings {
  min-width: 0;
}

.htu-lib h2.htu-cat-title {
  margin: 0;
  color: var(--htu-navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.htu-lib .htu-cat-desc {
  margin: 3px 0 0;
  color: var(--htu-muted);
  font-size: 13px;
  line-height: 1.45;
}

.htu-lib .htu-cat-count {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid #d4e4ff;
  border-radius: 999px;
  background: #fff;
  color: #14417f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.htu-lib .htu-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.htu-lib .htu-grid {
  display: grid;
  align-items: stretch;
  gap: 14px;
}

/* Industry cards */
.htu-lib .htu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 15px 15px 13px;
  border: 1px solid var(--htu-border);
  border-radius: 16px;
  background: #fff;
}

.htu-lib .htu-card-open {
  border-color: var(--htu-cobalt);
}

.htu-lib .htu-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
}

.htu-lib .htu-card-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.htu-lib h3.htu-card-title {
  min-width: 0;
  margin: 0;
  color: var(--htu-navy);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
}

.htu-lib .htu-guide-flag {
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 9px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: var(--htu-pale);
  color: var(--htu-cobalt);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.htu-lib .htu-card-desc {
  display: -webkit-box;
  min-height: 63px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--htu-muted);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.htu-lib .htu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.htu-lib .htu-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--htu-pale);
  color: #14417f;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.htu-lib .htu-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.htu-lib .htu-guide-link {
  font-size: 13px;
}

.htu-lib .htu-chevron {
  display: inline-flex;
  transition: transform 0.18s ease;
}

.htu-lib .htu-toggle[aria-expanded="true"] .htu-chevron,
.htu-lib .htu-chevron-open {
  transform: rotate(180deg);
}

/* Full-width row drawer */
.htu-lib .htu-drawer {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #cfe0ff;
  border-left: 4px solid var(--htu-cobalt);
  border-radius: 14px;
  background: var(--htu-pale);
}

.htu-lib .htu-drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.htu-lib .htu-drawer-head h3 {
  margin: 0;
  color: var(--htu-navy);
  font-size: 17px;
  font-weight: 800;
}

.htu-lib .htu-drawer-head .htu-tags {
  margin-top: 0;
}

.htu-lib .htu-drawer-head .htu-tag {
  background: #fff;
}

.htu-lib .htu-drawer h4 {
  margin: 0 0 8px;
  color: var(--htu-navy);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.htu-lib .htu-drawer ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 28px;
}

.htu-lib .htu-drawer li {
  margin-bottom: 5px;
  break-inside: avoid;
  color: var(--htu-muted);
  font-size: 14px;
  line-height: 1.5;
}

.htu-lib .htu-example {
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #d4e4ff;
  border-radius: 12px;
  background: #fff;
  color: #14417f;
  font-size: 13.5px;
  line-height: 1.5;
}

.htu-lib .htu-example strong {
  display: block;
  margin-bottom: 4px;
  color: var(--htu-navy);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.htu-lib .htu-aliases {
  margin: 10px 0 0;
  color: var(--htu-muted);
  font-size: 12.5px;
}

.htu-lib .htu-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #cfe0ff;
}

/* Empty state, compliance note and final CTA */
.htu-lib .htu-empty {
  margin-top: 26px;
  padding: 34px 20px;
  border: 1px solid var(--htu-border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.htu-lib .htu-empty h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.htu-lib .htu-empty p {
  margin: 0 0 16px;
  color: var(--htu-muted);
  font-size: 14px;
}

.htu-lib .htu-note {
  margin: 26px 0 0;
  color: var(--htu-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.htu-lib .htu-final {
  margin: 26px 0 60px;
  padding: 28px 22px;
  border: 1px solid var(--htu-border);
  border-radius: 18px;
  background: #fff;
}

.htu-lib .htu-final h2 {
  max-width: 900px;
  margin: 0 0 10px;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 800;
  line-height: 1.25;
}

.htu-lib .htu-final p {
  max-width: 760px;
  margin: 0;
  color: var(--htu-muted);
  font-size: 15px;
  line-height: 1.6;
}

.htu-lib .htu-final-cta {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .htu-lib .htu-drawer ul {
    columns: 1;
  }
}

/* Mobile: discovery controls precede the explanatory outcome framework. */
@media (max-width: 640px) {
  .htu-lib .htu-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .htu-lib .htu-flow {
    display: flex;
    flex-direction: column;
  }

  .htu-lib .htu-hero {
    order: 1;
    padding-top: 40px;
  }

  .htu-lib .htu-toolbar {
    position: static;
    order: 2;
    margin-top: 20px;
  }

  .htu-lib .htu-outcomes-section {
    order: 3;
  }

  .htu-lib .htu-library {
    order: 4;
  }

  .htu-lib .htu-note {
    order: 5;
  }

  .htu-lib .htu-final {
    order: 6;
  }

  .htu-lib .htu-chips,
  .htu-lib .htu-select-jump {
    display: none;
  }

  .htu-lib .htu-select-goal {
    display: block;
    flex: 1 1 100%;
    width: 100%;
  }

  .htu-lib .htu-select {
    flex: 1 1 100%;
    width: 100%;
  }

  .htu-lib .htu-btn {
    flex: 1 1 auto;
  }

  .htu-lib .htu-outcomes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .htu-lib .htu-outcome {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .htu-lib .htu-outcome-ico {
    width: 28px;
    height: 28px;
  }

  .htu-lib .htu-outcome h3 {
    margin: 0 0 3px;
    font-size: 12.5px;
  }

  .htu-lib .htu-outcome p {
    font-size: 13px;
    line-height: 1.45;
  }

  .htu-lib .htu-cat {
    padding: 0 12px 14px;
  }

  .htu-lib .htu-cat-head {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 8px;
    margin: 0 -12px 14px;
    padding: 12px;
  }

  .htu-lib .htu-cat-headings,
  .htu-lib .htu-cat-count {
    grid-column: 2;
  }

  .htu-lib .htu-cat-count {
    justify-self: start;
  }

  .htu-lib .htu-card-top,
  .htu-lib .htu-card-desc {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htu-lib *,
  .htu-lib *::before,
  .htu-lib *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
