/* Homeless Services Learning Lab — component styles. Loads after tokens.css. Class prefix: hs- */

/* ---------- Base ---------- */
.hs, .hs-base { font-family: var(--font-sans); font-size: 17px; line-height: 28px; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
.hs :where(h1, h2, h3) { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-wrap: balance; margin: 0; }
.hs :where(p) { margin: 0; text-wrap: pretty; }
.hs-em { font-style: normal; color: var(--teal-deep); }
.hs-eyebrow { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .2px; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 10px; }
.hs-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--teal); flex: none; }
.hs-eyebrow.is-plain::before { display: none; }
.hs-muted { color: var(--ink-muted); }
.hs-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.25em; }
.hs :focus-visible, .hs-focus:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.hs-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Button ---------- */
.hs-btn { --_bg: var(--action); --_fg: var(--on-action); --_bd: var(--action);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  font: 600 16px/20px var(--font-sans); color: var(--_fg); background: var(--_bg); border: 1.5px solid var(--_bd);
  border-radius: var(--radius-control); text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-calm), transform var(--duration-calm) var(--ease-calm); }
.hs-btn:hover { --_bg: var(--action-hover); --_bd: var(--action-hover); text-decoration: none; transform: translateY(-1px); }
.hs-btn:active { transform: translateY(0); }
.hs-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hs-btn--secondary { --_bg: var(--gold); --_fg: var(--on-gold); --_bd: var(--gold); }
.hs-btn--secondary:hover { --_bg: var(--gold-hover); --_bd: var(--gold-hover); }
.hs-btn--quiet { --_bg: transparent; --_fg: var(--ink); --_bd: var(--line-strong); }
.hs-btn--quiet:hover { --_bg: var(--ground-mist); --_bd: var(--ink); }
.hs-btn--on-harbor { --_bg: var(--gold); --_fg: var(--on-gold); --_bd: var(--gold); }
.hs-btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.hs-btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.hs-btn[aria-disabled="true"], .hs-btn:disabled { --_bg: var(--ground-mist); --_fg: var(--ink-muted); --_bd: var(--line); cursor: not-allowed; transform: none; }
.hs-btn.is-loading { cursor: progress; }
.hs-btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: hs-spin 900ms linear infinite; }
.hs-btn .hs-icon { width: 20px; height: 20px; }
@keyframes hs-spin { to { transform: rotate(360deg); } }

/* ---------- Text link ---------- */
.hs-link { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.hs-link:hover { color: var(--ink); text-decoration-thickness: 2.5px; }
.hs-link--plain { text-decoration: none; color: var(--ink); }
.hs-link--plain:hover { text-decoration: underline; }
.hs-link .hs-icon { width: 18px; height: 18px; }

/* ---------- Tag & status ---------- */
.hs-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-xs); font: 500 13px/16px var(--font-mono); letter-spacing: .4px; color: var(--ink); background: var(--teal-wash); }
.hs-tag--gold { background: var(--gold-wash); }
.hs-tag--coral { background: var(--coral); color: #06344a; }
.hs-tag--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.hs-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--radius-pill); font: 600 14px/20px var(--font-sans); }
.hs-status .hs-icon { width: 18px; height: 18px; }
.hs-status--steady { color: var(--steady); background: var(--steady-wash); }
.hs-status--heads-up { color: var(--heads-up); background: var(--heads-up-wash); }
.hs-status--urgent { color: var(--urgent); background: var(--urgent-wash); }
.hs-status--info { color: var(--info); background: var(--info-wash); }

/* ---------- Alert ---------- */
.hs-alert { --_fg: var(--info); --_bg: var(--info-wash); display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--_bg); color: var(--ink); }
.hs-alert > .hs-icon { width: 24px; height: 24px; color: var(--_fg); grid-row: span 2; }
.hs-alert__title { font: 650 17px/24px var(--font-sans); color: var(--_fg); margin: 0; }
.hs-alert__body { font-size: 15px; line-height: 24px; margin: 0; }
.hs-alert--steady { --_fg: var(--steady); --_bg: var(--steady-wash); }
.hs-alert--heads-up { --_fg: var(--heads-up); --_bg: var(--heads-up-wash); }
.hs-alert--urgent { --_fg: var(--urgent); --_bg: var(--urgent-wash); }

/* ---------- Content note (trauma-informed pre-warning) ---------- */
.hs-content-note { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 24px; display: grid; gap: 16px; max-width: 640px; }
.hs-content-note__head { display: flex; gap: 12px; align-items: center; }
.hs-content-note__head .hs-icon { width: 28px; height: 28px; color: var(--teal); }
.hs-content-note__title { font: 650 19px/26px var(--font-sans); margin: 0; }
.hs-content-note__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hs-content-note__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Pause point ---------- */
.hs-pause { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--radius-sm); background: var(--gold-wash); color: var(--ink); max-width: 720px; }
.hs-pause__ring { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--gold); display: grid; place-items: center; color: var(--ink); }
.hs-pause__ring .hs-icon { width: 26px; height: 26px; }
.hs-pause__title { font: 400 24px/31px var(--font-display); margin: 0 0 4px; }
.hs-pause__body { font-size: 15px; line-height: 24px; margin: 0; }

/* ---------- Doorway frame ---------- */
.hs-doorway { margin: 0; background: var(--ground-tide); border-radius: var(--radius-arch) var(--radius-arch) var(--radius-sm) var(--radius-sm); overflow: hidden; max-width: 100%; display: grid; }
.hs-doorway img { width: 100%; height: auto; object-fit: contain; display: block; }
.hs-doorway--wide { border-radius: var(--radius-md); }
.hs-doorway figcaption { font-size: 14px; line-height: 20px; color: var(--ink-muted); padding: 12px 4px 0; }

/* ---------- Resource card ---------- */
.hs-resource { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color var(--duration-quick) var(--ease-calm); }
.hs-resource:hover { border-color: var(--line-strong); text-decoration: none; }
.hs-resource__cover { background: var(--ground-tide); display: grid; place-items: center; padding: 28px; }
.hs-resource__cover img { width: min(100%, 220px); height: auto; box-shadow: var(--shadow-cover); display: block; }
.hs-resource__body { padding: 24px 28px 28px; display: grid; gap: 12px; align-content: start; }
.hs-resource__title { font: 600 26px/32px var(--font-display); letter-spacing: -.4px; margin: 0; }
.hs-resource__desc { font-size: 15px; line-height: 24px; color: var(--ink-muted); margin: 0; }
.hs-resource__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-resource__foot { margin-top: 8px; }

/* ---------- Pathway (progress stepper) ---------- */
.hs-pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: step; }
.hs-pathway__step { position: relative; display: grid; gap: 8px; justify-items: start; padding-right: 12px; }
.hs-pathway__step::before { content: ""; position: absolute; top: 15px; left: 32px; right: 0; border-top: 2px dotted var(--line-strong); }
.hs-pathway__step:last-child::before { display: none; }
.hs-pathway__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center; font: 500 14px/1 var(--font-mono); background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); }
.hs-pathway__dot .hs-icon { width: 18px; height: 18px; }
.hs-pathway__step.is-done .hs-pathway__dot { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.hs-pathway__step.is-done::before { border-top-style: solid; border-color: var(--gold); }
.hs-pathway__step.is-current .hs-pathway__dot { background: var(--action); color: var(--on-action); box-shadow: 0 0 0 4px var(--teal-wash); }
.hs-pathway__label { font: 600 15px/20px var(--font-sans); }
.hs-pathway__meta { font: 500 13px/16px var(--font-mono); color: var(--ink-muted); }
@media (max-width: 640px) { .hs-pathway { grid-auto-flow: row; gap: 16px; } .hs-pathway__step { grid-template-columns: 32px 1fr; column-gap: 12px; } .hs-pathway__step::before { top: 32px; bottom: -16px; left: 15px; right: auto; border-top: 0; border-left: 2px dotted var(--line-strong); } .hs-pathway__step.is-done::before { border-left-style: solid; border-color: var(--gold); } .hs-pathway__dot { grid-row: span 2; } }

/* ---------- Module outline (course) ---------- */
.hs-module { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.hs-module__head { padding: 20px 24px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); background: var(--ground-mist); }
.hs-module__code { font: 500 13px/16px var(--font-mono); letter-spacing: 1px; color: var(--teal); text-transform: uppercase; }
.hs-module__title { font: 400 26px/32px var(--font-display); margin: 0; }
.hs-module__list { list-style: none; margin: 0; padding: 0; }
.hs-module__item { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hs-module__item:first-child { border-top: 0; }
.hs-module__item:hover { background: var(--ground-mist); }
.hs-module__item .hs-icon { width: 22px; height: 22px; color: var(--teal); }
.hs-module__item.is-done .hs-icon { color: var(--steady); }
.hs-module__time { font: 500 13px/16px var(--font-mono); color: var(--ink-muted); }

/* ---------- Forms ---------- */
.hs-field { display: grid; gap: 6px; max-width: 480px; }
.hs-field__label { font: 600 16px/22px var(--font-sans); color: var(--ink); }
.hs-field__optional { font-weight: 400; color: var(--ink-muted); }
.hs-field__help { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.hs-input, .hs-select, .hs-textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 17px/24px var(--font-sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-xs); }
.hs-textarea { min-height: 120px; resize: vertical; }
.hs-input:hover, .hs-select:hover, .hs-textarea:hover { border-color: var(--ink-muted); }
.hs-input:focus-visible, .hs-select:focus-visible, .hs-textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.hs-field.is-invalid .hs-input, .hs-field.is-invalid .hs-select, .hs-field.is-invalid .hs-textarea { border-color: var(--urgent); border-width: 2px; }
.hs-field__error { display: flex; gap: 6px; align-items: flex-start; font: 600 14px/20px var(--font-sans); color: var(--urgent); margin: 0; }
.hs-field__error .hs-icon { width: 18px; height: 18px; margin-top: 1px; }
.hs-choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.hs-choice-group legend { font: 600 16px/22px var(--font-sans); padding: 0; margin-bottom: 6px; }
.hs-choice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-xs); cursor: pointer; background: var(--surface); }
.hs-choice:hover { border-color: var(--line-strong); }
.hs-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.hs-choice:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); }
.hs-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Knowledge check ---------- */
.hs-kcheck { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; display: grid; gap: 16px; background: var(--surface); max-width: 640px; }
.hs-kcheck__q { font: 400 24px/31px var(--font-display); margin: 0; }
.hs-kcheck__feedback { padding: 14px 16px; border-radius: var(--radius-xs); background: var(--steady-wash); color: var(--ink); font-size: 15px; line-height: 24px; }
.hs-kcheck__feedback strong { color: var(--steady); }
.hs-kcheck__feedback.is-retry { background: var(--info-wash); }
.hs-kcheck__feedback.is-retry strong { color: var(--info); }

/* ---------- Reflection prompt ---------- */
.hs-reflect { background: var(--ground-mist); border-radius: var(--radius-sm); padding: 28px; display: grid; gap: 14px; max-width: 720px; }
.hs-reflect__q { font: italic 400 26px/34px var(--font-display); margin: 0; }

/* ---------- FAQ disclosure ---------- */
.hs-faq { border-top: 1px solid var(--line); }
.hs-faq details { border-bottom: 1px solid var(--line); }
.hs-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font: 650 18px/26px var(--font-sans); color: var(--ink); }
.hs-faq summary::-webkit-details-marker { display: none; }
.hs-faq summary::after { content: "+"; font: 400 26px/1 var(--font-sans); color: var(--teal); width: 24px; text-align: center; flex: none; }
.hs-faq details[open] summary::after { content: "\2212"; }
.hs-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hs-faq__answer { padding: 0 40px 22px 0; font-size: 16px; line-height: 27px; color: var(--ink-muted); max-width: var(--measure); }

/* ---------- Quote ---------- */
.hs-quote { margin: 0; display: grid; gap: 16px; max-width: 720px; }
.hs-quote blockquote { margin: 0; font: italic 400 28px/38px var(--font-editorial); color: var(--ink); text-wrap: balance; }
.hs-quote blockquote::before { content: "\201C"; display: block; font: 400 72px/0.6 var(--font-editorial); color: var(--gold); margin-bottom: 12px; }
.hs-quote figcaption { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.hs-quote figcaption strong { color: var(--ink); display: block; font-weight: 650; }

/* ---------- Section band ---------- */
.hs-band { background: var(--harbor); color: var(--on-harbor); border-radius: var(--radius-sm); padding: 56px 32px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.hs-band .hs-eyebrow { color: var(--gold); }
.hs-band .hs-eyebrow::before { background: var(--gold); }
.hs-band__title { font: 400 48px/54px var(--font-display); letter-spacing: -1px; color: var(--on-harbor); margin: 0; text-wrap: balance; }
.hs-band__title em { color: var(--gold); }

/* ---------- Site header ---------- */
.hs-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); background: var(--ground); flex-wrap: wrap; }
.hs-header__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.hs-header__nav a { font: 500 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.hs-header__nav a:hover { border-bottom-color: var(--line-strong); }
.hs-header__nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* ---------- Brand lockup (type-set wordmark beside the mark) ---------- */
.hs-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.hs-lockup img { width: 44px; height: 44px; display: block; }
.hs-lockup__words { display: grid; line-height: 1; }
.hs-lockup__name { font: 600 19px/22px var(--font-display); letter-spacing: -.2px; }
.hs-lockup__sub { font: 500 11px/14px var(--font-mono); letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.hs-lockup--stacked { flex-direction: column; text-align: center; gap: 10px; }
.hs-lockup--stacked img { width: 72px; height: 72px; }
.hs-lockup--stacked .hs-lockup__name { font-size: 28px; line-height: 32px; }
.hs-lockup--stacked .hs-lockup__sub { font-size: 13px; letter-spacing: 4px; }
.hs-lockup--reversed { color: var(--on-harbor); }
.hs-lockup--reversed .hs-lockup__sub { color: var(--gold); }

/* ---------- Dialog ---------- */
.hs-dialog { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-dialog); max-width: 560px; width: calc(100% - 32px); padding: 28px; }
.hs-dialog::backdrop { background: var(--scrim); }
.hs-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.hs-dialog__title { font: 600 26px/32px var(--font-display); margin: 0; }
.hs-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-xs); border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.hs-icon-btn:hover { background: var(--ground-mist); }
.hs-icon-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Product cover template (US Letter ratio) ---------- */
.hs-cover { aspect-ratio: 8.5 / 11; max-width: 100%; background: var(--harbor); color: #ffffff; padding: 9% 9% 7%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 5%; font-family: var(--font-sans); container-type: inline-size; position: relative; overflow: hidden; }
.hs-cover__top { display: flex; justify-content: space-between; align-items: center; }
.hs-cover__top img { width: 13cqi; height: auto; }
.hs-cover__series { font: 500 2.4cqi/1.3 var(--font-mono); letter-spacing: .3cqi; text-transform: uppercase; color: #f3c66b; }
.hs-cover__title { font: 600 9cqi/1 var(--font-display); letter-spacing: -.2cqi; margin: 0; color: #ffffff; text-wrap: balance; }
.hs-cover__title em { display: block; color: #f3c66b; font-size: .62em; margin-top: .3em; }
.hs-cover__promise { font: 400 3.1cqi/1.45 var(--font-sans); color: #d7e6ea; margin: 2cqi 0 0; max-width: 80%; }
.hs-cover__art { border-radius: 4cqi; overflow: hidden; background: #0b4a63; min-height: 0; height: 100%; }
.hs-cover__art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hs-cover__foot { display: flex; justify-content: space-between; gap: 2cqi; font: 500 2cqi/1.4 var(--font-mono); color: #b8ced5; letter-spacing: .1cqi; }

/* ---------- Social post template (1:1) ---------- */
.hs-social { aspect-ratio: 1 / 1; max-width: 100%; container-type: inline-size; position: relative; overflow: hidden; display: grid; align-content: space-between; padding: 8cqi; background: #073c52; color: #ffffff; }
.hs-social--mist { background: #f5f6f4; color: #06344a; }
.hs-social--gold { background: #f3c66b; color: #073c52; }
.hs-social__eyebrow { font: 500 3.2cqi/1.3 var(--font-mono); letter-spacing: .4cqi; text-transform: uppercase; color: #f3c66b; position: relative; }
.hs-social--mist .hs-social__eyebrow { color: #16788a; }
.hs-social--gold .hs-social__eyebrow { color: #073c52; }
.hs-social__text { font: 600 9.5cqi/1.05 var(--font-display); letter-spacing: -.25cqi; margin: 0; position: relative; text-wrap: balance; }
.hs-social__text em { color: #f3c66b; }
.hs-social--mist .hs-social__text em { color: #16788a; }
.hs-social--gold .hs-social__text em { color: #073c52; }
.hs-social__foot { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; position: relative; font: 600 3cqi/1.2 var(--font-sans); }
.hs-social__foot img { width: 11cqi; height: auto; }
.hs-social__foot > span { max-width: 52%; }
.hs-social__rings { position: absolute; right: -18cqi; bottom: -18cqi; width: 70cqi; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4cqi #16788a, 0 0 0 9cqi #073c52, 0 0 0 13cqi #e58a6c; opacity: .9; }
.hs-social--mist .hs-social__rings { box-shadow: 0 0 0 4cqi #d7ecee, 0 0 0 9cqi #f2f7f7, 0 0 0 13cqi #fbefd2; }
.hs-social--gold .hs-social__rings { box-shadow: 0 0 0 4cqi var(--gold-hover), 0 0 0 9cqi #f3c66b, 0 0 0 13cqi #e58a6c; }

/* ---------- Certificate template (landscape Letter) ---------- */
.hs-cert { aspect-ratio: 11 / 8.5; max-width: 100%; container-type: inline-size; background: #ffffff; color: #06344a; padding: 6cqi 7cqi; display: grid; grid-template-columns: 1fr 22cqi; gap: 4cqi; position: relative; overflow: hidden; border: 1px solid #d9e3e7; }
.hs-cert::before { content: ""; position: absolute; inset: 2cqi; border: .3cqi solid #073c52; border-radius: 1cqi; pointer-events: none; }
.hs-cert__main { display: grid; align-content: space-between; gap: 2cqi; position: relative; }
.hs-cert__kicker { font: 500 1.6cqi/1.3 var(--font-mono); letter-spacing: .4cqi; text-transform: uppercase; color: #16788a; }
.hs-cert__title { font: 600 5cqi/1.05 var(--font-display); margin: .8cqi 0 0; }
.hs-cert__name { font: italic 400 4.6cqi/1.1 var(--font-editorial); color: #073c52; border-bottom: .15cqi solid #7f969f; padding-bottom: 1cqi; margin: 0; }
.hs-cert__course { font: 400 2cqi/1.45 var(--font-sans); margin: 0; max-width: 46cqi; }
.hs-cert__course strong { font-weight: 650; }
.hs-cert__meta { display: flex; gap: 4cqi; font: 500 1.5cqi/1.4 var(--font-mono); color: #54646b; }
.hs-cert__meta b { display: block; color: #06344a; font: 600 1.8cqi/1.3 var(--font-sans); }
.hs-cert__side { background: #073c52; border-radius: 11cqi 11cqi 1cqi 1cqi; display: grid; place-items: center; align-content: center; gap: 2cqi; padding: 3cqi; position: relative; }
.hs-cert__side img { width: 13cqi; }
.hs-cert__seal { font: 500 1.4cqi/1.4 var(--font-mono); letter-spacing: .3cqi; color: #f3c66b; text-transform: uppercase; text-align: center; }

/* ---------- Email header (600px) ---------- */
.hs-email { max-width: 600px; background: #ffffff; color: #06344a; font-family: var(--font-sans); border: 1px solid #d9e3e7; }
.hs-email__bar { background: #073c52; padding: 20px 28px; display: flex; align-items: center; gap: 12px; color: #ffffff; }
.hs-email__bar img { width: 36px; height: 36px; }
.hs-email__bar span { font: 600 16px/20px var(--font-display); }
.hs-email__body { padding: 32px 28px; display: grid; gap: 16px; }
.hs-email__title { font: 600 30px/36px var(--font-display); margin: 0; }
.hs-email__foot { border-top: 1px solid #d9e3e7; padding: 18px 28px; font-size: 13px; line-height: 20px; color: #54646b; }

/* ---------- Slide title template (16:9) ---------- */
.hs-slide { aspect-ratio: 16 / 9; max-width: 100%; container-type: inline-size; background: #f5f6f4; color: #06344a; display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.hs-slide__copy { padding: 6cqi 5cqi; display: grid; align-content: space-between; }
.hs-slide__kicker { font: 500 1.4cqi/1.3 var(--font-mono); letter-spacing: .3cqi; text-transform: uppercase; color: #16788a; }
.hs-slide__title { font: 600 5.2cqi/1.04 var(--font-display); letter-spacing: -.12cqi; margin: 0; text-wrap: balance; }
.hs-slide__title em { color: #16788a; }
.hs-slide__sub { font: 400 1.7cqi/1.45 var(--font-sans); color: #54646b; margin: 1.6cqi 0 0; }
.hs-slide__foot { display: flex; align-items: center; gap: 1.2cqi; font: 600 1.3cqi/1.2 var(--font-sans); }
.hs-slide__foot img { width: 3.6cqi; }
.hs-slide__art { margin: 4cqi 4cqi 0 0; border-radius: 4cqi; overflow: hidden; background: #e6f0f2; }
.hs-slide__art img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Templates are fixed artwork: pin heading colors so the theme's ink never reaches them. */
.hs .hs-cert__title, .hs .hs-email__title, .hs .hs-slide__title { color: #06344a; }
.hs .hs-cover__title { color: #ffffff; }
.hs .hs-email .hs-eyebrow::before, .hs .hs-cert .hs-eyebrow::before { background: #16788a; }

@media (prefers-reduced-motion: reduce) { .hs *, .hs-btn, .hs-resource { transition: none !important; animation: none !important; } .hs-btn:hover { transform: none; } }

/* v1.1 compact shelf: preserve the entire cover beside a readable decision. */
.hs-resource--shelf { grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: 1fr; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; overflow: visible; gap: var(--space-5); padding-block: var(--space-6); }
.hs-resource--shelf .hs-resource__cover { padding: var(--space-3); border-radius: var(--radius-xs); align-self: start; }
.hs-resource--shelf .hs-resource__body { padding: 0; }
.hs-resource--shelf .hs-resource__title { font-size: 28px; line-height: 32px; }
.hs-resource--shelf:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.hs-resource--shelf .hs-resource__foot { min-height: 44px; }
.hs-btn:active { transform: translateY(1px); }
@media (max-width: 420px) { .hs-resource--shelf { grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-4); }.hs-resource--shelf .hs-resource__title { font-size: 24px; line-height: 28px; } }
@media(max-width:600px){
  .hs-resource--shelf{grid-template-columns:88px minmax(0,1fr);column-gap:var(--space-5)}
  .hs-resource--shelf .hs-resource__body{display:contents}
  .hs-resource--shelf .hs-resource__cover{grid-column:1;grid-row:1 / span 2;padding:var(--space-2)}
  .hs-resource--shelf .hs-resource__meta,.hs-resource--shelf .hs-resource__title{grid-column:2}
  .hs-resource--shelf .hs-resource__desc,.hs-resource--shelf .hs-resource__foot{grid-column:1 / -1}
}
@media(prefers-reduced-motion:reduce){.hs-btn:active{transform:none}}

/* v1.2: calm clarity. Pill controls and rounded product stages, not ornamental glass. */
.hs-resource:not(.hs-resource--shelf){border:0;border-radius:var(--radius-panel)}
.hs-resource__cover{background:var(--ground-tide)}
.hs-resource__desc{font-size:16px;line-height:26px}
.hs-quote{font-family:var(--font-editorial)}
.hs ::selection{color:var(--ink);background:var(--teal-wash)}

/* v1.2 fixed artwork uses the same clear, unitalicized headline hierarchy. */
.hs-cover__title em,.hs-social__text em,.hs-slide__title em{font-style:normal}
.hs-social__rings{display:none}
