/* HatchDesk theme: blogs styles. Used by Home/Blogs, Home/BlogDetail, Career/Jobs, Career/Training (CTA band, buttons). Requires core.css. */

/* ==========================================================================
   Blogs page (/Home/Blogs) - markup lives in Views/Home/Blogs.cshtml
   Share buttons open #shareModal from _ShareBlogPartial (.share-btn + data-url).
   ========================================================================== */
.hd.hd-bl { background: var(--hd-paper); margin-top: -96px; overflow-x: clip; }
.hd .hd-bl-h1 { max-width: 900px; }
.hd .hd-bl-hero-foot { display: grid; gap: 28px; align-items: end; }
.hd .hd-bl-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #fff; box-shadow: 0 20px 40px -20px rgba(11, 16, 32, .5); }
.hd .hd-bl-search i { color: rgba(11, 16, 32, .4); }
.hd .hd-bl-search input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 15px; color: var(--hd-ink); }
.hd .hd-bl-search input::placeholder { color: rgba(11, 16, 32, .4); }
.hd .hd-bl-search button { flex-shrink: 0; padding: 12px 22px; border-radius: 999px; background: var(--hd-ink); font-family: var(--hd-display); font-size: 14px; font-weight: 700; color: #fff; transition: background-color .25s; }
.hd .hd-bl-search button:hover { background: var(--hd-brand); }

.hd .hd-bl-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hd .hd-bl-section-head h2 { font-family: var(--hd-display); font-size: 24px; font-weight: 700; color: var(--hd-ink); }
.hd .hd-bl-section-head span { font-size: 12px; color: rgba(11, 16, 32, .4); }

/* featured post */
.hd .hd-bl-featured { padding: 56px 0 0; scroll-margin-top: 16px; }
.hd .hd-bl-lead { position: relative; display: flex; align-items: flex-end; min-height: 420px; margin-top: 20px; overflow: hidden; border-radius: 28px; background: var(--hd-ink); }
.hd .hd-bl-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .8s var(--hd-ease); }
.hd .hd-bl-lead:hover img { transform: scale(1.04); }
/* covers carry their own artwork and text: keep them in the background behind the title */
.hd .hd-bl-lead::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--hd-ink) 0%, rgba(11, 16, 32, .9) 40%, rgba(11, 16, 32, .5) 75%, rgba(11, 16, 32, .2) 100%), linear-gradient(to right, rgba(11, 16, 32, .6), rgba(11, 16, 32, 0) 70%); }
.hd .hd-bl-lead-body { position: relative; z-index: 2; max-width: 720px; padding: 28px; color: rgba(255, 255, 255, .75); }
.hd .hd-bl-lead-cat { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--hd-lime); font-size: 12px; font-weight: 700; color: var(--hd-ink); }
.hd .hd-bl-lead h3 { margin-top: 16px; font-family: var(--hd-display); font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.hd .hd-bl-lead h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.hd .hd-bl-lead-body > p { margin-top: 12px; font-size: 16px; }
.hd .hd-bl-lead-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.hd .hd-bl-lead-foot .hd-bl-read { color: #fff; }
.hd .hd-bl-share.hd-bl-lead-share { position: absolute; right: 20px; top: 20px; z-index: 4; width: 44px; height: 44px; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hd .hd-bl-share.hd-bl-lead-share:hover { background: var(--hd-lime); color: var(--hd-ink); }
/* social share icons on the featured post (Views/Shared/_ShareButtons.cshtml, light variant) */
.hd .hd-bl-lead-share { position: absolute; right: 20px; top: 20px; z-index: 4; }

/* list + sidebar */
.hd .hd-bl-feed { padding: 56px 0 24px; }
.hd .hd-bl-layout { display: grid; gap: 48px; }
.hd .hd-bl-layout > * { min-width: 0; }
.hd .hd-bl-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hd-line); }
.hd .hd-bl-list-head h2 { font-family: var(--hd-display); font-size: 20px; font-weight: 700; color: var(--hd-ink); }
.hd .hd-bl-list-head span { font-size: 14px; color: rgba(11, 16, 32, .5); }
.hd .hd-bl-list-head b { color: var(--hd-ink); }
.hd .hd-bl-row { position: relative; display: grid; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--hd-line); }
.hd .hd-bl-row > * { min-width: 0; }
.hd .hd-bl-thumb { order: -1; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: rgba(15, 117, 189, .08); }
.hd .hd-bl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--hd-ease); }
.hd .hd-bl-row:hover .hd-bl-thumb img { transform: scale(1.06); }
.hd .hd-bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: rgba(11, 16, 32, .45); }
.hd .hd-bl-cat { padding: 3px 9px; border-radius: 6px; background: rgba(15, 117, 189, .1); font-weight: 600; color: var(--hd-brand); }
.hd .hd-bl-row h3 { margin-top: 12px; font-family: var(--hd-display); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--hd-ink); }
.hd .hd-bl-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* lime underline sweeps in under the title on hover */
.hd .hd-bl-row h3 span { background: linear-gradient(var(--hd-lime), var(--hd-lime)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--hd-ease); }
.hd .hd-bl-row:hover h3 span, .hd .hd-bl-row h3 a:focus-visible span { background-size: 100% 3px; }
.hd .hd-bl-excerpt { margin-top: 10px; font-size: 15.5px; line-height: 1.7; }
.hd .hd-bl-actions { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.hd .hd-bl-read { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hd-display); font-size: 14px; font-weight: 700; color: var(--hd-ink); }
.hd .hd-bl-read i { font-size: 11px; transition: transform .25s var(--hd-ease); }
.hd .hd-bl-row:hover .hd-bl-read i, .hd .hd-bl-lead:hover .hd-bl-read i { transform: translateX(4px); }
.hd .hd-bl-share { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: rgba(11, 16, 32, .55); transition: color .2s, background-color .2s; }
.hd .hd-bl-share:hover { color: var(--hd-brand); }
.hd .hd-bl-none { padding: 40px 0; text-align: center; color: rgba(11, 16, 32, .5); }

.hd .hd-bl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; font-family: var(--hd-display); font-size: 14px; font-weight: 600; }
.hd .hd-bl-pager-step { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: var(--hd-ink); transition: background-color .2s; }
.hd .hd-bl-pager-step:hover { background: #fff; color: var(--hd-brand); }
.hd .hd-bl-pager-step.is-off { color: rgba(11, 16, 32, .3); }
.hd .hd-bl-pager-step.is-off:hover { background: none; color: rgba(11, 16, 32, .3); }
.hd .hd-bl-pager-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.hd .hd-bl-pager-nums a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; color: var(--hd-ink); transition: background-color .2s, color .2s; }
.hd .hd-bl-pager-nums a:hover { background: #fff; }
.hd .hd-bl-pager-nums a.is-on, .hd .hd-bl-pager-nums a.is-on:hover { background: var(--hd-ink); color: #fff; }

.hd .hd-bl-side { display: grid; gap: 20px; align-content: start; }
.hd .hd-bl-topics h3 { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(11, 16, 32, .4); }
.hd .hd-bl-topics ul { display: grid; gap: 2px; margin-top: 12px; }
.hd .hd-bl-topics button { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 14px 9px 22px; border-radius: 10px; text-align: left; font-size: 14.5px; color: rgba(11, 16, 32, .6); transition: background-color .2s, color .2s; }
.hd .hd-bl-topics button:hover { background: #fff; color: var(--hd-ink); }
.hd .hd-bl-topics button.is-on { background: #fff; font-weight: 600; color: var(--hd-ink); box-shadow: 0 0 0 1px rgba(11, 16, 32, .05); }
.hd .hd-bl-topics button.is-on::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 999px; background: var(--hd-brand); }
.hd .hd-bl-topics small { font-family: var(--hd-mono); font-size: 11px; color: rgba(11, 16, 32, .35); }
.hd .hd-bl-side-cta { display: block; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, var(--hd-brand), var(--hd-indigo)); color: #fff; }
.hd .hd-bl-side-cta:hover, .hd .hd-bl-side-cta:focus { color: #fff; }
.hd .hd-bl-side-cta span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.hd .hd-bl-side-cta strong { display: block; color: #fff; margin-top: 8px; font-family: var(--hd-display); font-size: 20px; font-weight: 700; line-height: 1.3; }
.hd .hd-bl-side-cta em { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-style: normal; font-size: 14px; font-weight: 600; }
.hd .hd-bl-side-cta em i { transition: transform .3s var(--hd-ease); }
.hd .hd-bl-side-cta:hover em i { transform: none; }

/* empty state */
.hd .hd-bl-empty-sec { padding: 64px 0 24px; }
.hd .hd-bl-empty { padding: 56px 24px; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 0 0 1px rgba(11, 16, 32, .05); }
.hd .hd-bl-empty > i { font-size: 36px; color: var(--hd-brand); }
.hd .hd-bl-empty h2 { margin-top: 16px; font-family: var(--hd-display); font-size: 26px; font-weight: 800; color: var(--hd-ink); }
.hd .hd-bl-empty p { margin-top: 8px; }
.hd .hd-bl-empty .hd-bl-btn-ink { margin-top: 24px; }

/* lime CTA band */
.hd .hd-bl-band-sec { padding: 56px 0 80px; }
.hd .hd-bl-band { position: relative; display: grid; gap: 28px; align-items: center; overflow: hidden; padding: 40px 28px; border-radius: 32px; background: var(--hd-lime); color: rgba(11, 16, 32, .7); }
.hd .hd-bl-band > div { position: relative; }
.hd .hd-bl-band-icon { position: absolute; right: -24px; top: -24px; font-size: 180px; color: rgba(11, 16, 32, .05); }
.hd .hd-bl-band h2 { font-family: var(--hd-display); font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--hd-ink); }
.hd .hd-bl-band p { margin-top: 10px; max-width: 520px; }
.hd .hd-bl-band-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hd .hd-bl-btn-ink { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: var(--hd-ink); font-family: var(--hd-display); font-size: 15px; font-weight: 700; color: #fff; transition: background-color .25s; }
.hd .hd-bl-btn-ink:hover, .hd .hd-bl-btn-ink:focus { background: var(--hd-brand); color: #fff; }
.hd .hd-bl-btn-line { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 999px; border: 1px solid rgba(11, 16, 32, .3); font-family: var(--hd-display); font-size: 15px; font-weight: 700; color: var(--hd-ink); transition: background-color .25s; }
.hd .hd-bl-btn-line:hover, .hd .hd-bl-btn-line:focus { background: rgba(255, 255, 255, .5); color: var(--hd-ink); }

@media (min-width: 640px) {
    .hd .hd-bl-row { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 28px; }
    .hd .hd-bl-thumb { order: 0; aspect-ratio: 4 / 3; }
    .hd .hd-bl-row h3 { font-size: 26px; }
    .hd .hd-bl-lead { min-height: 460px; border-radius: 32px; }
    .hd .hd-bl-lead-body { padding: 40px; }
    .hd .hd-bl-lead h3 { font-size: 38px; }
    /* cover art on the right, fading out before the headline */
    .hd .hd-bl-lead img { left: auto; width: 62%; opacity: .85; -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 60%); mask-image: linear-gradient(to right, transparent 25%, #000 60%); }
    .hd .hd-bl-lead::before { background: linear-gradient(to top, rgba(11, 16, 32, .85) 0%, rgba(11, 16, 32, .35) 45%, rgba(11, 16, 32, 0) 100%); }
    .hd .hd-bl-band { padding: 56px; border-radius: 40px; }
    .hd .hd-bl-band h2 { font-size: 38px; }
}
@media (min-width: 1024px) {
    .hd .hd-bl-hero-foot { grid-template-columns: 1fr auto; gap: 40px; }
    .hd .hd-bl-search { width: 420px; }
    .hd .hd-bl-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
    .hd .hd-bl-side { position: sticky; top: 24px; }
    .hd .hd-bl-band { grid-template-columns: 1fr auto; }
}
@media (max-width: 639px) {
    .hd .hd-bl-featured { padding-top: 40px; }
    .hd .hd-bl-lead { min-height: 400px; border-radius: 24px; }
    .hd .hd-bl-lead img { opacity: .35; } /* the text covers the whole card on phones */
    .hd .hd-bl-feed { padding-top: 40px; }
    .hd .hd-bl-pager-step { padding: 12px; }
    .hd .hd-bl-band { border-radius: 24px; }
    .hd .hd-bl-band-ctas a { flex: 1; justify-content: center; }
    .hd .hd-bl-band-sec { padding: 40px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .hd .hd-bl-lead img, .hd .hd-bl-thumb img, .hd .hd-bl-row h3 span { transition: none; }
}
