/* Howtiva Site Polish 1.0.0 — additive only, no theme files altered */
.hsp-reading p, .hsp-reading li, .hsp-reading blockquote {
  font-size: 17px !important;
  line-height: 1.78 !important;
  overflow-wrap: break-word;
}
.hsp-reading h2 { margin-block: 1.7em .75em; line-height: 1.3; }
.hsp-reading h3 { margin-block: 1.45em .6em; line-height: 1.35; }
.hsp-reading figure, .hsp-reading img { max-width: 100%; height: auto; }
.hsp-reading figure { margin-inline: 0; }
.hsp-reading figcaption { font-size: .89rem; line-height: 1.5; opacity: .87; }
.hsp-reading a { text-underline-offset: 3px; }
.hsp-reading a:focus-visible, .hsp-topic-card:focus-visible, .hsp-menu-link:focus-visible, .hsp-suggestion-list a:focus-visible {outline: 3px solid #53cfda; outline-offset:3px;}
.hsp-related {margin-block:2.2rem 1.4rem; padding:1.1rem 1.2rem; border:1px solid rgba(128,175,196,.32); border-radius:12px; background:rgba(52,121,149,.10);}
.hsp-related h2 {font-size:1.2rem; margin:0 0 .7rem;}
.hsp-related ul {padding-left:1.2rem;margin:.3rem 0;}
.hsp-related li + li {margin-top:.5rem;}
.hsp-topic-directory {max-width:1180px;margin:0 auto;padding:1rem .3rem 2rem;}
.hsp-topic-intro {font-size:1.06rem;opacity:.86;margin:0 0 1.6rem;}
.hsp-topic-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;}
.hsp-topic-card {display:flex;flex-direction:column;gap:.55rem;min-height:148px;padding:1.25rem;border-radius:14px;border:1px solid rgba(130,178,198,.3);background:rgba(32,90,114,.14);color:inherit;text-decoration:none!important;transition:transform .18s,border-color .18s;}
.hsp-topic-card:hover {transform:translateY(-2px);border-color:#43bbcc;}
.hsp-topic-card strong {font-size:1.15rem;line-height:1.35;}
.hsp-topic-card span {opacity:.85;line-height:1.55;}
.hsp-topic-card small {opacity:.65;margin-top:auto;}
.hsp-search-parent {position:relative;}
.hsp-suggestion-list {position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:100000;max-height:335px;overflow-y:auto;list-style:none;padding:5px!important;margin:0!important;border:1px solid #37677b;border-radius:12px;background:#0d2331;color:#f3f9ff;box-shadow:0 16px 30px rgba(0,0,0,.3);min-width:min(340px, 85vw);}
.hsp-suggestion-list[hidden] {display:none!important;}
.hsp-suggestion-list li {list-style:none!important;padding:0!important;margin:0!important;}
.hsp-suggestion-list a {display:block;padding:10px 12px;color:inherit!important;text-decoration:none!important;font-size:14px;line-height:1.35;}
.hsp-suggestion-list li.is-active a, .hsp-suggestion-list a:hover {background:#174960;border-radius:8px;}
.hsp-menu-item {list-style:none;}
.hsp-menu-link {text-decoration:none;white-space:nowrap;}
@media (max-width:900px) {.hsp-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:600px) {
  .hsp-reading p, .hsp-reading li, .hsp-reading blockquote {font-size:16px!important;line-height:1.72!important;}
  .hsp-topic-grid{grid-template-columns:1fr;gap:.65rem;}
  .hsp-topic-card {min-height:0;padding:1rem;}
  .hsp-related {padding:1rem;}
}

/* v1.1 desktop sticky table of contents. Only enabled on matching identified sidebar containers. */
@media (min-width: 1024px) and (min-height: 680px) {
  .hsp-sticky-sidebar {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 90px !important;
    align-self: start !important;
    height: fit-content !important;
    max-height: calc(100vh - 105px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
@media (max-width: 1023px), (max-height: 679px) {
  .hsp-sticky-sidebar {position:static !important;max-height:none !important;overflow:visible !important;}
}
.hsp-finance-worked-example {display:flow-root;}
.hsp-loan-reading-hook {font-weight:600;}

/* v1.2: a legitimate right-rail stickiness rule, only for verified desktop sidebars. */
@media (min-width:1024px) and (min-height:680px) {
 .hsp-sticky-sidebar { position:sticky!important;top:90px!important;align-self:start!important;
   max-height:calc(100dvh - 104px)!important;overflow-y:auto!important;overscroll-behavior:contain; }
}
.hsp-schematic-nosnippet {display:flow-root;max-width:100%;}
.hsp-schematic-nosnippet > figure {margin-inline:0;max-width:100%;}

/* v1.3 contextual topic pathways; no duplicate links or extra article headings. */
.hsp-contextual-next {
  margin: 1.6rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem .6rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid #43c9d4;
  border-radius: 0 10px 10px 0;
  background: rgba(39,131,148,.12);
}
.hsp-contextual-next span { color: #9bb9c8; font-size: .84rem; letter-spacing: .03em; }
.hsp-contextual-next a { color: #7ce7ee; font-weight: 650; text-underline-offset: 3px; }
.hsp-category-hub { border-top: 1px solid rgba(128,175,196,.2); margin: 1rem 0 0; padding-top: .7rem; }
.hsp-category-hub a { text-decoration: underline; text-underline-offset: 3px; }
