/* HatchDesk theme: article styles. Used by Home/BlogDetail (after blogs.css). Requires core.css. */

/* ==========================================================================
   Blog article (/Home/BlogDetail/{id}) - markup lives in Views/Home/BlogDetail.cshtml
   Reuses the Blogs page pieces (.hd-bl-side-cta, .hd-bl-band, .hd-bl-thumb, .hd-bl-cat).
   ========================================================================== */
.hd.hd-ar { background: var(--hd-paper); margin-top: -96px; overflow-x: clip; }
.hd-ar-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 1100; height: 3px; pointer-events: none; }
.hd-ar-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--hd-lime), var(--hd-brand)); transform: scaleX(0); transform-origin: 0 50%; }

.hd .hd-ar-hero { padding-bottom: 120px; }
.hd .hd-ar-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.hd .hd-ar-crumbs a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.hd .hd-ar-crumbs a i { font-size: 11px; transition: transform .25s var(--hd-ease); }
.hd .hd-ar-crumbs a:hover i { transform: translateX(-4px); }
.hd .hd-ar-h1 { max-width: 920px; margin-top: 22px; font-family: var(--hd-display); font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.hd .hd-ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hd .hd-ar-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.hd .hd-ar-by b { color: #fff; font-weight: 600; }
.hd .hd-ar-by > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--hd-lime); font-family: var(--hd-display); font-style: normal; font-size: 11px; font-weight: 800; color: var(--hd-ink); }

.hd .hd-ar-cover { position: relative; z-index: 2; margin: -96px 0 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: var(--hd-ink); box-shadow: 0 40px 80px -40px rgba(11, 16, 32, .55); }
.hd .hd-ar-cover img { width: 100%; height: 100%; object-fit: cover; }

.hd .hd-ar-main { padding: 48px 0 24px; }
.hd .hd-ar-layout { display: grid; gap: 28px; }
.hd .hd-ar-layout > * { min-width: 0; }

/* table of contents */
.hd .hd-ar-toc { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 16, 32, .06); }
.hd .hd-ar-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; list-style: none; cursor: pointer; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(11, 16, 32, .5); }
.hd .hd-ar-toc summary::-webkit-details-marker { display: none; }
.hd .hd-ar-toc summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--hd-brand); }
.hd .hd-ar-toc[open] summary::after { content: "\2212"; }
.hd .hd-ar-toc summary small { margin-left: auto; margin-right: 12px; font-size: 11px; color: rgba(11, 16, 32, .35); }
.hd .hd-ar-toc ol { display: grid; gap: 2px; padding: 0 12px 14px; counter-reset: toc; }
.hd .hd-ar-toc li { counter-increment: toc; }
.hd .hd-ar-toc li.is-sub { padding-left: 16px; }
.hd .hd-ar-toc a { position: relative; display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: rgba(11, 16, 32, .6); transition: background-color .2s, color .2s; }
.hd .hd-ar-toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; padding-top: 2px; font-family: var(--hd-mono); font-size: 11px; color: rgba(11, 16, 32, .3); }
.hd .hd-ar-toc a:hover { background: var(--hd-paper); color: var(--hd-ink); }
.hd .hd-ar-toc a.is-on { background: rgba(15, 117, 189, .08); font-weight: 600; color: var(--hd-ink); }
.hd .hd-ar-toc a.is-on::before { color: var(--hd-brand); }

.hd .hd-ar-side-x { display: none; }
.hd .hd-ar-share { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 16, 32, .06); }
.hd .hd-ar-share .hd-mono { margin-right: auto; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(11, 16, 32, .5); }
.hd .hd-ar-share a, .hd .hd-ar-share button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--hd-paper); font-size: 14px; color: var(--hd-ink); transition: background-color .2s, color .2s, transform .2s var(--hd-ease); }
.hd .hd-ar-share a:hover, .hd .hd-ar-share button:hover { background: var(--hd-ink); color: #fff; transform: translateY(-2px); }
.hd .hd-ar-share button.is-done { background: var(--hd-lime); color: var(--hd-ink); }

/* article typography */
.hd .hd-ar-body { max-width: 720px; font-size: 17px; line-height: 1.8; color: rgba(11, 16, 32, .78); }
.hd .hd-ar-body > p, .hd .hd-ar-body > ul, .hd .hd-ar-body > ol { margin: 0 0 24px; }
.hd .hd-ar-body > p:first-child { font-size: 19px; line-height: 1.7; color: var(--hd-ink); }
.hd .hd-ar-body > h2 { margin: 48px 0 16px; font-family: var(--hd-display); font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--hd-ink); scroll-margin-top: 96px; }
.hd .hd-ar-body > h3 { margin: 36px 0 12px; font-family: var(--hd-display); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--hd-ink); scroll-margin-top: 96px; }
.hd .hd-ar-body > h2:first-child, .hd .hd-ar-body > h3:first-child { margin-top: 0; }
.hd .hd-ar-body > ul, .hd .hd-ar-body > ol { display: grid; gap: 10px; padding-left: 0; list-style: none; counter-reset: li; }
.hd .hd-ar-body > ul li, .hd .hd-ar-body > ol li { position: relative; padding-left: 32px; }
.hd .hd-ar-body > ul li::before { content: ""; position: absolute; left: 8px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--hd-lime); box-shadow: 0 0 0 3px rgba(198, 243, 61, .25); transform: rotate(45deg); }
.hd .hd-ar-body > ol li { counter-increment: li; }
.hd .hd-ar-body > ol li::before { content: counter(li); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--hd-ink); font-family: var(--hd-mono); font-size: 11px; line-height: 1; color: #fff; }

/* in-article CTA */
.hd .hd-ar-cta { position: relative; display: grid; gap: 18px; margin: 40px 0; padding: 28px; overflow: hidden; border-radius: 24px; background: var(--hd-ink); color: rgba(255, 255, 255, .7); font-size: 15.5px; line-height: 1.6; }
.hd .hd-ar-cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 999px; background: radial-gradient(closest-side, rgba(15, 117, 189, .55), transparent); }
.hd .hd-ar-cta > * { position: relative; }
.hd .hd-ar-cta-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hd-lime); font-size: 18px; color: var(--hd-ink); }
.hd .hd-ar-cta strong { display: block; font-family: var(--hd-display); font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; }
.hd .hd-ar-cta p { margin-top: 6px; }
.hd .hd-ar-cta .hd-bl-btn-ink { justify-self: start; background: var(--hd-lime); color: var(--hd-ink); }
.hd .hd-ar-cta .hd-bl-btn-ink:hover, .hd .hd-ar-cta .hd-bl-btn-ink:focus { background: #fff; color: var(--hd-ink); }

.hd .hd-ar-endbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); }
.hd .hd-ar-endbar .hd-bl-cat { font-size: 13px; }

.hd .hd-ar-author { display: flex; gap: 18px; margin-top: 32px; padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 16, 32, .06); font-size: 15px; line-height: 1.65; }
.hd .hd-ar-author-mark { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--hd-brand), var(--hd-indigo)); font-family: var(--hd-display); font-size: 16px; font-weight: 800; color: #fff; }
.hd .hd-ar-author .hd-mono { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(11, 16, 32, .4); }
.hd .hd-ar-author strong { display: block; margin-top: 2px; font-family: var(--hd-display); font-size: 18px; font-weight: 700; color: var(--hd-ink); }
.hd .hd-ar-author p { margin-top: 6px; }
.hd .hd-ar-author a { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--hd-display); font-size: 14px; font-weight: 700; color: var(--hd-brand); }
.hd .hd-ar-author a i { font-size: 11px; transition: transform .25s var(--hd-ease); }
.hd .hd-ar-author a:hover i { transform: translateX(4px); }

/* related posts */
.hd .hd-ar-related { padding: 56px 0 0; }
.hd .hd-ar-related .hd-bl-section-head a { font-size: 12px; color: var(--hd-brand); }
.hd .hd-ar-rel-grid { display: grid; gap: 28px; margin-top: 24px; }
.hd .hd-ar-rel { position: relative; }
.hd .hd-ar-rel .hd-bl-thumb { order: 0; margin-bottom: 16px; }
.hd .hd-ar-rel:hover .hd-bl-thumb img { transform: scale(1.06); }
.hd .hd-ar-rel h3 { margin-top: 10px; font-family: var(--hd-display); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--hd-ink); }
.hd .hd-ar-rel h3 a::after { content: ""; position: absolute; inset: 0; }
.hd .hd-ar-rel:hover h3 a { color: var(--hd-brand); }

@media (min-width: 640px) {
    .hd .hd-ar-h1 { font-size: 48px; }
    .hd .hd-ar-cover { border-radius: 32px; aspect-ratio: 2 / 1; }
    .hd .hd-ar-body { font-size: 18px; }
    .hd .hd-ar-body > p:first-child { font-size: 21px; }
    .hd .hd-ar-body > h2 { font-size: 30px; }
    .hd .hd-ar-cta { grid-template-columns: auto 1fr; align-items: start; padding: 32px; }
    .hd .hd-ar-cta .hd-bl-btn-ink { grid-column: 2; }
    .hd .hd-ar-rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .hd .hd-ar-hero { padding-bottom: 150px; }
    .hd .hd-ar-h1 { font-size: 58px; }
    .hd .hd-ar-cover { margin-top: -120px; aspect-ratio: 21 / 9; }
    .hd .hd-ar-main { padding-top: 64px; }
    .hd .hd-ar-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
    .hd .hd-ar-side { position: sticky; top: 24px; display: grid; gap: 16px; }
    .hd .hd-ar-toc summary { pointer-events: none; }
    .hd .hd-ar-toc summary::after, .hd .hd-ar-toc[open] summary::after { content: none; }
    .hd .hd-ar-toc summary small { margin-right: 0; }
    .hd .hd-ar-toc ol { max-height: calc(100vh - 360px); overflow-y: auto; }
    .hd .hd-ar-side-x { display: grid; gap: 16px; }
}
@media (max-width: 639px) {
    .hd .hd-ar-hero { padding-bottom: 96px; }
    .hd .hd-ar-cover { margin-top: -72px; border-radius: 20px; }
    .hd .hd-ar-main { padding-top: 32px; }
    .hd .hd-ar-cta { padding: 24px; border-radius: 20px; }
    .hd .hd-ar-cta .hd-bl-btn-ink { justify-self: stretch; justify-content: center; }
    .hd .hd-ar-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .hd-ar-progress { display: none; }
    .hd .hd-ar-share a, .hd .hd-ar-share button, .hd .hd-ar-crumbs a i, .hd .hd-ar-author a i { transition: none; }
}

/* admin summary ("In short"), social share rows (Views/Shared/_ShareButtons.cshtml) */
.hd .hd-ar-sum { margin: 0 0 32px; padding: 20px 22px; border-left: 4px solid var(--hd-lime); border-radius: 0 18px 18px 0; background: #fff; box-shadow: 0 0 0 1px rgba(11, 16, 32, .06); font-size: 16.5px; line-height: 1.65; color: var(--hd-ink); }
.hd .hd-ar-sum .hd-mono { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--hd-brand); }
.hd .hd-ar-sum p { margin: 0; }
.hd .hd-ar-share { flex-wrap: wrap; }
.hd .hd-ar-share > .hd-mono { flex-basis: 100%; margin: 0 0 4px; }
.hd .hd-ar-endshare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; font-weight: 500; color: rgba(11, 16, 32, .6); }
.hd .hd-ar-rel .hd-share { margin-top: 12px; }
