/* Final Description and Results content uses the shared Design/Protocols reading layers. */
html body.content-final-v27 main .source27-image-group{width:min(100%,820px);margin:28px auto 32px;clear:both}
html body.content-final-v27 main .source27-panel{position:relative;width:min(100%,var(--figure-width,760px));margin:0 auto 16px;padding:0;border:0;background:transparent;box-shadow:none}
html body.content-final-v27 main .source27-panel:has(>.progress3-panel-label){padding-top:20px}
html body.content-final-v27 main .source27-panel>.progress3-panel-label{position:absolute;top:0;left:0;font-size:11px!important;font-weight:700;line-height:1.2;margin:0;color:var(--reading-black,#000)}
html body.content-final-v27 main .source27-panel img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border:0;border-radius:0;box-shadow:none;margin:0}
html body.content-final-v27 main .source27-image-group>.progress3-pair{width:100%;gap:24px;margin:0 auto;align-items:start}
html body.content-final-v27 main .source27-image-group>.progress3-pair>.source27-panel{width:100%;min-width:0}
html body.content-final-v27 main .source27-image-group>figcaption{margin:14px 0 0;text-align:left}
html body.content-final-v27 main .source27-image-group>figcaption p{margin:0;text-align:left}
html body.content-final-v27 main .source27-asset-placeholder{display:grid;place-items:center;box-sizing:border-box;width:100%;aspect-ratio:var(--asset-ratio,16/9);min-height:150px;max-height:360px;padding:24px;border:1px dashed var(--dogma-line,#b7cbd9);border-radius:0;background:color-mix(in srgb,var(--dogma-blue,#216a9e) 3%,transparent);color:var(--dogma-muted,#526a7d);font-size:13px;line-height:1.6;text-align:center}
html body.content-final-v27 main .source27-hypothesis{padding:18px 22px;border-left:3px solid var(--dogma-blue,#216a9e);background:color-mix(in srgb,var(--dogma-blue,#216a9e) 6%,transparent)}
/* Four cards open the same protein facts and images as the current HP page. */
.content-final-v27 .hp-protein-card-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}
.content-final-v27 .hp-protein-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:18px 16px;border:1px solid var(--dogma-line,#cedde7);border-radius:14px;background:var(--dogma-page,#f7fafc);text-align:left;font:inherit;cursor:pointer;transition:transform .2s,border-color .2s}
.content-final-v27 .hp-protein-card:hover{transform:translateY(-3px);border-color:var(--dogma-blue,#216a9e)}
.content-final-v27 .hp-protein-card:focus-visible{outline:2px solid var(--dogma-blue,#216a9e);outline-offset:4px}
html body.content-final-v27 main .hp-protein-card-name{font-size:18px!important;font-weight:800;color:var(--dogma-blue,#216a9e)!important}
html body.content-final-v27 main .hp-protein-card-note{font-size:14px!important;line-height:1.5!important}
.content-final-v27 #hpProteinModal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:24px;background:#071e36a6;backdrop-filter:blur(5px)}
.content-final-v27 #hpProteinModal.is-on{display:flex}
.content-final-v27 .hp-protein-modal{position:relative;width:min(1100px,94vw);max-height:90svh;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:40px;border-radius:20px;background:var(--dogma-page,#f7fafc);color:var(--reading-black,#000);box-shadow:0 24px 80px #071e3640}
.content-final-v27 .edu-modal-close{position:absolute;right:16px;top:16px;width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--dogma-line,#ccdde9);border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.content-final-v27 .edu-modal-close svg{width:18px;height:18px}
.content-final-v27 .edu-modal-tag{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--dogma-blue,#216a9e)}
.content-final-v27 #hpProteinTitle{font-size:clamp(24px,3vw,34px);line-height:1.2;margin:14px 30px 28px 0;font-weight:800}
.content-final-v27 .hp-protein-modal-head{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:32px;align-items:start}
.content-final-v27 .hp-protein-facts{display:grid;grid-template-columns:180px minmax(0,1fr);gap:7px 20px;margin:12px 0 0;font-size:16px;line-height:1.7}
.content-final-v27 .hp-protein-facts dt{font-weight:700}
.content-final-v27 .hp-protein-facts dd{margin:0;overflow-wrap:anywhere}
.content-final-v27 .hp-protein-modal-body figure{margin:0;padding:0;border:0;background:transparent}
.content-final-v27 .hp-protein-structure img{display:block;width:100%;height:240px;object-fit:contain}
.content-final-v27 .hp-protein-modal-body h4{font-size:22px;line-height:1.35;font-weight:700;margin:30px 0 12px}
.content-final-v27 .hp-protein-modal-body a{color:var(--dogma-blue,#216a9e)}
.content-final-v27 .hp-protein-refs p{font-size:14px;line-height:1.7;color:var(--reference-ink,#216a9e)}
.content-final-v27 .hp-protein-research img{display:block;width:min(100%,560px);height:auto;max-height:300px;object-fit:contain;margin:30px auto 0}
@media(max-width:1080px){.content-final-v27 .hp-protein-card-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html body.content-final-v27 main .source27-image-group>.progress3-pair{grid-template-columns:minmax(0,1fr);gap:24px}html body.content-final-v27 main .source27-panel{width:min(100%,760px)}.content-final-v27 .hp-protein-modal{padding:30px 20px}.content-final-v27 .hp-protein-modal-head{grid-template-columns:1fr}.content-final-v27 .hp-protein-structure img{height:200px}.content-final-v27 .hp-protein-facts{grid-template-columns:140px minmax(0,1fr);gap:8px 14px}}
@media(max-width:480px){.content-final-v27 .hp-protein-card-row{grid-template-columns:1fr}.content-final-v27 #hpProteinModal{padding:10px}.content-final-v27 .hp-protein-facts{grid-template-columns:1fr;gap:3px}.content-final-v27 .hp-protein-facts dd{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.content-final-v27 .hp-protein-card{transition:none;transform:none}}
/* These source slides already carry panel letters; avoid duplicate labels when filled. */
html body.content-final-v27 main .source27-panel[data-embedded-panel-letter]:has(img)>.progress3-panel-label{display:none}

/* Semantic target-protein table, with the existing HP dialogs. */
.content-final-v27 .source28-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:28px 0;scrollbar-width:thin}
html body.content-final-v27 main .source28-protein-table{border-collapse:collapse;width:100%;min-width:680px;table-layout:fixed;font-size:16px;line-height:1.65}
html body.content-final-v27 main .source28-protein-table caption{text-align:left;font-size:14px;line-height:1.7;padding:0 0 14px;color:var(--caption-title,#173955);font-weight:700}
html body.content-final-v27 main .source28-protein-table :is(th,td){padding:16px;border:1px solid var(--dogma-line,#cbdce7);text-align:left;vertical-align:top;overflow-wrap:break-word}
html body.content-final-v27 main .source28-protein-table thead th{background:var(--dogma-blue,#216a9e);color:var(--dogma-page,#fff)!important;font-weight:700}
.content-final-v27 .source28-protein-table th:first-child{width:21%}.content-final-v27 .source28-protein-table th:nth-child(2){width:32%}.content-final-v27 .source28-protein-table th:nth-child(3){width:47%}
.content-final-v27 .source28-protein-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--dogma-blue,#216a9e) 4%,transparent)}
html body.content-final-v27 main .source28-protein-link{border:0;padding:0;background:none;color:var(--dogma-blue,#216a9e);text-decoration:underline;text-underline-offset:4px;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.content-final-v27 .source28-protein-link:focus-visible{outline:2px solid var(--dogma-blue,#216a9e);outline-offset:4px}
.content-final-v27 .source28-table-scroll:focus-visible{outline:2px solid var(--dogma-blue,#216a9e);outline-offset:3px}
@media(max-width:700px){html body.content-final-v27 main .source28-protein-table{font-size:14px}.content-final-v27 .source28-protein-table :is(th,td){padding:12px}}
