/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Heritage application products: technical previews, workflow specifications and edition choices.
 */
.happ-hero { padding: 32px 0 48px; }
.happ-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.happ-hero-copy { min-width: 0; }
.happ-hero h1 { font-size: clamp(3.4rem, 5.2vw, 5rem); line-height: 1.04; max-width: 13ch; margin-bottom: 24px; }
.happ-hero-description { font-size: 17px; line-height: 1.85; max-width: 48ch; margin-bottom: 28px; }
.happ-page .happ-download-note { font-size: 14px; line-height: 1.8; margin: 18px 0 0; }
.happ-hero-spec { display: flex; flex-wrap: wrap; gap: 14px 24px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--hd-border); }
.happ-hero-spec > span { font-size: 13px; line-height: 1.7; color: #53664e; }
.happ-stage { min-width: 0; background: #213a2f; border-radius: 16px; padding: 24px; }
.happ-stage-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid #617165; color: #e4decf; font: 500 12px/1.7 ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.happ-stage-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; padding-top: 24px; }
.happ-stage-annotations { min-width: 0; }
.happ-stage-annotations > div { padding-block: 18px; border-bottom: 1px solid #617165; }
.happ-stage-annotations > div:last-child { border-bottom: 0; }
.happ-stage-annotations span { display: block; color: #d6c49d; font: 400 12px/1.6 ui-monospace, Consolas, monospace; margin-bottom: 8px; }
.happ-stage .happ-stage-annotations strong { color: #faf8f4; font-size: 15px; line-height: 1.5; }
.happ-stage .happ-stage-annotations p { color: #d5dfd8; font-size: 13px; line-height: 1.8; margin: 8px 0 0; }
.happ-screen { min-width: 0; margin: 0; }
.happ-screen-image { max-width: 258px; margin-inline: auto; padding: 7px; border-radius: 22px; background: #15291f; border: 1px solid #6a786b; overflow: hidden; }
.happ-screen-image > a { display: block; border-radius: 16px; overflow: hidden; }
.happ-screen-image:focus-within { outline: 3px solid #b9a77f; outline-offset: 5px; }
.hpl-page .happ-screen-image img { display: block; width: 100%; height: auto; }
.happ-screen-fallback { color: #faf8f4; min-height: 240px; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; line-height: 1.8; }
.happ-screen-fallback:not([hidden]) { display: flex; }
.happ-screen [hidden] { display: none !important; }
.happ-screen figcaption { padding-top: 18px; }
.happ-screen figcaption > strong { display: block; color: var(--hd-forest); font-size: 15px; line-height: 1.7; }
.happ-screen figcaption p { margin: 8px 0 0; font-size: 13px; line-height: 1.85; }
.happ-screen figcaption a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.happ-screen figcaption .dna-icon { width: 12px; height: 12px; }
.happ-stage .happ-screen figcaption strong, .happ-stage .happ-screen figcaption a { color: #faf8f4; }
.happ-stage .happ-screen figcaption p { color: #d5dfd8; }
.happ-workflow { list-style: none; padding: 0; margin: 0; border-top: 1px solid #cbbd9f; }
.happ-workflow li { display: grid; grid-template-columns: 56px minmax(0, .8fr) minmax(0, 1.2fr); gap: 26px; padding-block: 28px; border-bottom: 1px solid #cbbd9f; align-items: start; }
.happ-workflow-number { color: #765e34; font: 500 1.7rem/1.2 var(--hd-serif); white-space: nowrap; }
.happ-workflow h3 { font-size: 1.9rem; margin-bottom: 8px; }
.happ-workflow-label { color: #53664e; font-size: 12px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.happ-workflow p { font-size: 15px; line-height: 1.9; margin-bottom: 0; }
.happ-screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; align-items: start; }
.happ-spec-list { margin: 0; border-top: 1px solid var(--hd-border); }
.happ-spec-list > div { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--hd-border); }
.happ-spec-list dt { color: var(--hd-forest); font-size: 14px; font-weight: 600; }
.happ-spec-list dd { margin: 0; color: var(--hd-muted); font-size: 14px; line-height: 1.9; }
.happ-edition-list { border-top: 1px solid var(--hd-border); }
.happ-edition { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.2fr) minmax(0, .55fr); gap: 32px; padding-block: 28px; border-bottom: 1px solid var(--hd-border); align-items: center; }
.happ-edition h3 { margin-bottom: 8px; font-size: 1.9rem; }
.happ-edition p { font-size: 14px; line-height: 1.85; margin-bottom: 0; }
.happ-edition a { justify-self: end; }
.happ-page .hpl-faq-list summary { padding-right: 6px; }
.happ-desktop-hero { padding: 32px 0 48px; }
.happ-desktop-hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px 64px; align-items: center; }
.happ-desktop-hero h1 { font-size: clamp(3.1rem, 5.2vw, 5rem); line-height: 1.05; max-width: 17ch; margin-bottom: 24px; }
.happ-application-brief { padding: 24px 0 24px 32px; border-left: 1px solid var(--hd-border); min-width: 0; }
.happ-application-brief > strong { display: block; font: 500 1.9rem/1.2 var(--hd-serif); color: var(--hd-forest); }
.happ-application-brief > p { margin: 16px 0 0; font-size: 14px; line-height: 1.9; }
.happ-application-brief dl { margin: 24px 0 0; }
.happ-application-brief dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--hd-border); font-size: 13px; line-height: 1.8; }
.happ-application-brief dt { color: var(--hd-muted); font-weight: 400; }
.happ-application-brief dd { margin: 0; color: var(--hd-forest); }
.happ-desktop-hero-preview { grid-column: 1 / -1; min-width: 0; }
.happ-screen--wide .happ-screen-image { max-width: none; border-radius: 12px; padding: 8px; background: #213a2f; }
.happ-screen--wide .happ-screen-image > a { border-radius: 5px; background: #fff; }
.happ-screen--wide figcaption { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr) auto; gap: 14px 28px; align-items: start; }
.happ-screen--wide figcaption p { margin: 0; }
.happ-screen--wide figcaption a { min-height: 44px; margin-top: -9px; white-space: nowrap; }
.happ-desktop-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.happ-desktop-gallery .happ-screen--wide figcaption { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.happ-desktop-gallery .happ-screen--wide figcaption a { justify-self: start; margin-top: 0; }
.happ-comparison { max-width: 100%; overflow-x: auto; border: 1px solid var(--hd-border); border-radius: 12px; background: #fff; }
.happ-comparison:focus-visible { outline: 3px solid #8b7343; outline-offset: 4px; }
.happ-comparison table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.8; }
.happ-comparison th, .happ-comparison td { padding: 18px 24px; border-bottom: 1px solid var(--hd-border); vertical-align: top; }
.happ-comparison thead th { background: var(--hd-sand); color: var(--hd-forest); font-weight: 600; }
.happ-comparison tbody th { color: var(--hd-forest); font-weight: 500; }
.happ-comparison tbody td { color: var(--hd-muted); }
.happ-comparison tbody tr:last-child > * { border-bottom: 0; }
.happ-comparison-note { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
@media (max-width: 1100px) {
    .happ-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .happ-hero h1 { max-width: 18ch; font-size: clamp(3.4rem, 6.5vw, 4.8rem); }
    .happ-hero-description { max-width: 65ch; }
    .happ-stage-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .happ-stage { max-width: 720px; width: 100%; margin-inline: auto; }
    .happ-screen-grid { gap: 24px; }
    .happ-edition { grid-template-columns: minmax(0, .65fr) minmax(0, 1.3fr); gap: 20px; }
    .happ-edition a { grid-column: 2; justify-self: start; }
    .happ-desktop-hero-layout { gap: 32px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .happ-desktop-hero h1 { font-size: clamp(3rem, 5.8vw, 4.4rem); }
    .happ-screen--wide figcaption { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
    .happ-screen--wide figcaption a { grid-column: 2; margin-top: 0; justify-self: start; }
}
@media (max-width: 767px) {
    .happ-hero { padding: 24px 0 36px; }
    .happ-hero h1 { font-size: clamp(3.05rem, 12vw, 4.3rem); line-height: 1.05; }
    .happ-hero-description { font-size: 16px; }
    .happ-hero .hpl-actions { flex-direction: column; align-items: stretch; }
    .happ-stage { padding: 22px; }
    .happ-stage-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .happ-stage-header { flex-wrap: wrap; gap: 6px 18px; }
    .happ-stage-annotations { display: grid; grid-template-columns: minmax(0, 1fr); }
    .happ-stage-annotations > div { padding-block: 16px; }
    .happ-workflow li { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
    .happ-workflow li > p { grid-column: 2; }
    .happ-screen-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .happ-screen-grid .happ-screen-image { max-width: 258px; }
    .happ-spec-list > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .happ-edition { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .happ-edition a { grid-column: 1; justify-self: stretch; }
    .happ-desktop-hero { padding: 24px 0 36px; }
    .happ-desktop-hero-layout, .happ-desktop-gallery { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .happ-desktop-hero h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
    .happ-desktop-hero .hpl-actions { flex-direction: column; align-items: stretch; }
    .happ-application-brief { border-left: 0; border-top: 1px solid var(--hd-border); padding: 24px 0 0; }
    .happ-screen--wide .happ-screen-image { padding: 5px; border-radius: 9px; }
    .happ-screen--wide figcaption { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .happ-screen--wide figcaption a { grid-column: 1; }
}
@media print { .happ-screen-image { max-width: 180px; } .happ-screen { break-inside: avoid; } }
