/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Heritage article reading layout, contents, rich text and sharing.
 */
.hb-post .hb-post__topline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 20px; }
.hb-post .hb-post__back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--hd-forest); font-size: 12px; font-weight: 600; text-decoration: none; }
.hb-post .hb-post__header { max-width: 1160px; margin: 0 auto 40px; padding: 0 0 36px; border-bottom: 1px solid var(--hd-border); }
.hb-post .hb-post__header--illustrated { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 40px; align-items: center; }
.hb-post .hb-post__header--illustrated:has(> .hb-post__cover[hidden]) { display: block; }
.hb-post .hb-post__introduction { min-width: 0; }
.hb-post .hb-post__introduction h1 { max-width: 30ch; font-size: clamp(40px,4.6vw,64px); line-height: 1.08; }
.hb-post .hb-post__standfirst { max-width: 62ch; margin-top: 20px; color: var(--hd-muted); font-size: 16px; line-height: 1.8; }
.hb-post .hb-post__metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; color: var(--hd-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hb-post .hb-post__author { color: var(--hd-forest); font-weight: 600; }
.hb-post .hb-post__context-note { margin-top: 12px; color: var(--hd-muted); font-size: 11px; line-height: 1.6; }
.hb-post .hb-post__cover { width: 100%; aspect-ratio: 4 / 3; background: var(--hd-sage); border-radius: 14px; overflow: hidden; }
.hb-post .hb-post__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-post .hb-post__reading { display: grid; grid-template-columns: minmax(0,220px) minmax(0,760px); gap: 48px; justify-content: center; align-items: start; scroll-margin-top: calc(var(--nav-height,72px) + 24px); }
.hb-post .hb-post__reading[data-sidebar-empty="true"] { grid-template-columns: minmax(0,760px); }
.hb-post .hb-post__reading > * { min-width: 0; }
.hb-post .hb-post__sidebar { position: sticky; top: calc(var(--nav-height,72px) + 20px); max-height: calc(100dvh - var(--nav-height,72px) - 40px); overflow-y: auto; padding: 3px; }
.hb-post .hb-post__contents { margin-bottom: 24px; padding: 18px 0; border-top: 1px solid var(--hd-border); border-bottom: 1px solid var(--hd-border); }
.hb-post .hb-post__contents summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; color: var(--hd-forest); font-size: 14px; font-weight: 600; }
.hb-post .hb-post__contents summary::-webkit-details-marker { display: none; }
.hb-post .hb-post__contents[open] summary .dna-icon { transform: rotate(180deg); }
.hb-post .hb-post__contents ol { list-style: none; margin: 10px 0 0; padding: 0; }
.hb-post .hb-post__contents li { margin: 0; padding: 0; }
.hb-post .hb-post__contents li.hb-post__toc-sub { margin-left: 14px; }
.hb-post .hb-post__contents a { display: block; padding: 8px 0; font-size: 12px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.hb-post .hb-post__contents a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-post .hb-post__source { padding: 20px; border: 1px solid var(--hd-border); border-radius: 12px; background: var(--hd-sand); }
.hb-post .hb-post__source h2 { font-size: 26px; line-height: 1.1; }
.hb-post .hb-post__source > p:not(.hb-eyebrow) { margin-top: 12px; color: var(--hd-muted); font-size: 12px; line-height: 1.75; }
.hb-post .hb-post__source a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-size: 12px; font-weight: 600; text-decoration: none; }
.hb-post .hb-post__paper { padding: 40px; border: 1px solid var(--hd-border); border-radius: 16px; background: var(--hd-surface); }
.hb-post .hb-prose { display: flow-root; min-width: 0; color: var(--hd-ink); font: 400 17px/1.85 var(--hd-sans); overflow-wrap: anywhere; }
.hb-post .hb-prose > * { max-width: 100%; }
.hb-post .hb-prose > :first-child { margin-top: 0; }
.hb-post .hb-prose > :last-child { margin-bottom: 0; }
.hb-post .hb-prose :is(p,ul,ol,dl,figure) { margin: 0 0 1.35em; }
.hb-post .hb-prose :is(p,li,dd) { color: inherit; font: inherit; }
.hb-post .hb-prose :is(ul,ol) { padding-left: 1.5em; }
.hb-post .hb-prose ul { list-style: disc; }
.hb-post .hb-prose ol { list-style: decimal; }
.hb-post .hb-prose li { margin: 0 0 .45em; padding: 0; }
.hb-post .hb-prose li :is(ul,ol) { margin-top: .5em; margin-bottom: .5em; }
.hb-post .hb-prose :is(h1,h2,h3,h4,h5,h6) { margin: 1.25em 0 .55em; color: var(--hd-forest); font-family: var(--hd-serif); font-weight: 500; line-height: 1.2; scroll-margin-top: calc(var(--nav-height,72px) + 24px); }
.hb-post .hb-prose :is(h1,h2,h3,h4,h5,h6) * { font-family: inherit; }
.hb-post .hb-prose :is(h1,h2) { font-size: 34px; }
.hb-post .hb-prose h3 { font-size: 28px; }
.hb-post .hb-prose :is(h4,h5,h6) { font-size: 23px; }
.hb-post .hb-prose a { color: var(--hd-forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hb-post .hb-prose :is(img,video,svg,iframe) { max-width: 100%; }
.hb-post .hb-prose :is(img,video,svg) { height: auto; }
.hb-post .hb-prose :is(figure,pre,blockquote) { margin-inline: 0; }
.hb-post .hb-prose figcaption { margin-top: 10px; color: var(--hd-muted); font-size: 12px; line-height: 1.6; }
.hb-post .hb-prose blockquote { border-left: 3px solid var(--hd-gold); padding: 14px 22px; background: var(--hd-bg); margin-block: 28px; }
.hb-post .hb-prose blockquote p:last-child { margin-bottom: 0; }
.hb-post .hb-prose :is(pre,code,kbd,samp) { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .85em; color: var(--hd-ink); }
.hb-post .hb-prose pre { max-width: 100%; padding: 20px; border-radius: 8px; background: var(--hd-bg); overflow-x: auto; line-height: 1.65; white-space: pre; }
.hb-post .hb-prose pre * { font-family: inherit; }
.hb-post .hb-prose hr { border: 0; border-top: 1px solid var(--hd-border); margin: 32px 0; }
.hb-post .hb-table-wrap { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--hd-border); border-radius: 8px; }
.hb-post .hb-table-wrap:focus-visible { outline: 3px solid var(--hb-accent); outline-offset: 4px; }
.hb-post .hb-prose table { min-width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.hb-post .hb-prose :is(th,td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hd-border); vertical-align: top; }
.hb-post .hb-prose th { background: var(--hd-sage); color: var(--hd-forest); font-weight: 600; text-align: left; }
.hb-post .hb-prose caption { padding: 12px 16px; color: var(--hd-muted); font-size: 12px; }
.hb-post .hb-post__share { margin-top: 36px; padding: 28px 0 0; border: 0; border-top: 1px solid var(--hd-border); scroll-margin-top: calc(var(--nav-height,72px) + 24px); }
.hb-post .hb-post__share h2 { font-size: 30px; line-height: 1.1; }
.hb-post .hb-post__share-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hb-post .hb-post__share-links :is(a,button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hd-border); border-radius: 8px; background: var(--hd-bg); color: var(--hd-forest); font: 600 12px/1.5 var(--hd-sans); text-decoration: none; }
.hb-post .hb-post__share-links :is(a,button):hover { background: var(--hd-sage); }
.hb-post .hb-post__share-links button:disabled { opacity: .65; cursor: default; }
.hb-post .hb-post__copy-status { min-height: 1.6em; margin-top: 10px; color: var(--hd-muted); font-size: 12px; line-height: 1.6; }
.hb-post .hb-post__about { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; padding: 24px 0 0; border-top: 1px solid var(--hd-border); background: transparent; color: var(--hd-ink); }
.hb-post .hb-post__about-icon { display: inline-grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hd-sage); color: var(--hd-forest); }
.hb-post .hb-post__about h2 { font-size: 25px; line-height: 1.2; }
.hb-post .hb-post__about p { margin-top: 8px; color: var(--hd-muted); font-size: 12px; line-height: 1.8; }
.hb-post .hb-post__about a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
.hb-post .hb-post__related { margin-top: 52px; }
.hb-post .hb-post__footer-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hd-border); }
.hb-post .hb-post__footer-nav a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 12px; font-weight: 600; text-decoration: none; }
.hb-post__copy-field { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 1100px) {
    .hb-post .hb-post__header--illustrated { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 28px; }
    .hb-post .hb-post__reading { grid-template-columns: minmax(0,190px) minmax(0,1fr); gap: 28px; }
    .hb-post .hb-post__paper { padding: 28px; }
}
@media (max-width: 991px) {
    .hb-post .hb-post__reading, .hb-post .hb-post__reading[data-sidebar-empty="true"] { grid-template-columns: minmax(0,1fr); max-width: 800px; margin-inline: auto; gap: 22px; }
    .hb-post .hb-post__sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
    .hb-post .hb-post__contents { margin-bottom: 0; padding: 12px 18px; border: 1px solid var(--hd-border); border-radius: 10px; background: var(--hd-surface); }
    .hb-post .hb-post__contents a { min-height: 44px; }
    .hb-post .hb-post__source { margin-top: 16px; }
}
@media (max-width: 767px) {
    .hb-post .hb-post__header--illustrated { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .hb-post .hb-post__header { margin-bottom: 28px; padding-bottom: 28px; }
    .hb-post .hb-post__introduction h1 { font-size: clamp(36px,7vw,48px); }
    .hb-post .hb-post__cover { max-height: 320px; aspect-ratio: 16 / 9; }
    .hb-post .hb-post__standfirst { margin-top: 16px; font-size: 15px; }
    .hb-post .hb-post__metadata { font-size: 11px; margin-top: 18px; }
    .hb-post .hb-post__topline { margin-bottom: 14px; }
}
@media (max-width: 575px) {
    .hb-post .hb-post__paper { background: transparent; border: 0; border-radius: 0; padding: 0; }
    .hb-post .hb-prose { font-size: 17px; line-height: 1.8; }
    .hb-post .hb-prose :is(h1,h2) { font-size: 31px; }
    .hb-post .hb-prose h3 { font-size: 27px; }
    .hb-post .hb-post__share-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hb-post .hb-post__about { gap: 12px; }
}
@media print {
    .hb-post .hb-post__reading { display: block; }
    .hb-post .hb-post__sidebar { position: static; max-height: none; overflow: visible; }
    .hb-post .hb-post__paper { padding: 0; border: 0; }
    .hb-post :is(.hb-post__contents,.hb-post__share,.hb-post__topline,.hb-post__related,.hb-post__footer-nav) { display: none; }
    .hb-post .hb-post__source { margin-bottom: 24px; }
    .hb-post .hb-prose a { text-decoration: underline; }
}
