/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Heritage Traits library, catalog cards and saved collections.
 */
.htw-page .htw-header .htc-library-meta { display:flex; flex-wrap:wrap; gap:6px 10px; margin:16px 0 0; font-size:13px; }
.htc-page .htc-library-meta > span { display:inline-flex; align-items:center; gap:8px; padding:5px 12px; border:1px solid var(--hd-border); border-radius:999px; background:var(--hd-surface); color:var(--hd-forest); font-weight:500; }
.htc-page .htc-library-meta .dna-icon { width:14px; height:14px; }
.htc-page .htc-library-meta > .htc-library-meta-limited { background:var(--hd-sand); }
.htc-page--library .htc-scope-note, .htc-page--category .htc-scope-note { margin-bottom:30px; }
.htc-page .htc-scope-note p:last-child { margin-bottom:0; }
.htc-page .htc-category-search { min-width:260px; }
.htc-page .htc-category-search label { margin:0; }
.htc-page .htc-category-search input { display:block; width:100%; margin-top:6px; padding:9px 12px; }
.htc-page .htc-category-search label, .htc-page .htc-filters > label { font-size:12px; font-weight:600; color:var(--hd-muted); }
.htc-page .htc-category-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.htc-page .htc-category-card { position:relative; display:flex; flex-direction:column; gap:18px; padding:24px; border:1px solid var(--hd-border); background:var(--hd-surface); border-radius:12px; transition:border-color .15s ease, box-shadow .15s ease; }
.htc-page .htc-category-card:hover, .htc-page .htc-category-card:focus-within { border-color:var(--hd-forest); box-shadow:0 6px 18px rgba(31,51,41,.08); }
.htc-page .htc-category-icon { width:72px; height:72px; position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--hd-forest); background:var(--hd-sage); border-radius:12px; }
.htc-page .htc-category-icon .dna-icon { width:26px; height:26px; }
.htc-page .htc-category-icon img { position:absolute; inset:10px; width:52px; height:52px; object-fit:contain; background:var(--hd-sage); }
.htc-page .htc-category-body { display:flex; flex-direction:column; flex:1; min-width:0; }
.htc-page .htc-category-card h3 { margin:0 0 6px; font-size:28px; overflow-wrap:anywhere; }
.htc-page .htc-category-link { text-decoration:none; color:inherit; }
.htc-page .htc-category-link::after { content:''; position:absolute; inset:0; border-radius:12px; }
.htc-page .htc-category-link:focus-visible { outline:none; }
.htc-page .htc-category-link:focus-visible::after { outline:2px solid var(--hd-forest); outline-offset:2px; }
.htc-page .htc-category-stats { margin:0 0 12px; font-size:12px; font-weight:600; color:var(--hd-forest); }
.htc-page .htc-category-description { font-size:14px; color:var(--hd-muted); margin:0 0 12px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.htc-page .htc-category-examples { font-size:12px; color:var(--hd-muted); font-style:italic; margin:0 0 12px; }
.htc-page .htc-category-action { display:inline-flex; align-items:center; gap:12px; min-height:44px; margin-top:auto; font-size:13px; font-weight:600; color:var(--hd-forest); }
.htc-page .htc-category-hero-main { display:flex; align-items:start; gap:24px; min-width:0; }
.htc-page .htc-category-hero-main > div:last-child { min-width:0; }
.htc-page .htc-switcher { margin:0 0 24px; overflow-x:auto; scrollbar-width:thin; }
.htc-page .htc-switcher ul { display:flex; gap:8px; list-style:none; margin:0; padding:2px 2px 8px; }
.htc-page .htc-switcher a { display:inline-flex; align-items:center; min-height:40px; padding:8px 14px; white-space:nowrap; border:1px solid var(--hd-border); border-radius:999px; background:var(--hd-surface); color:var(--hd-forest); font-size:13px; text-decoration:none; }
.htc-page .htc-switcher a:hover { border-color:var(--hd-forest); }
.htc-page .htc-switcher a[aria-current='page'] { background:var(--hd-forest); border-color:var(--hd-forest); color:#fff; font-weight:600; }
.htc-page .htc-summary { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin:0 0 18px; }
.htc-page .htc-summary-total { margin:0; font-size:14px; color:var(--hd-muted); }
.htc-page .htc-summary-total strong { color:var(--hd-forest); font-size:18px; }
.htc-page .htc-summary-options { display:flex; flex-wrap:wrap; gap:8px; }
.htc-page .htc-summary-options button { min-height:44px; padding:8px 14px; border:1px solid var(--hd-border); border-radius:999px; background:var(--hd-surface); color:var(--hd-forest); font:500 13px/1.4 var(--hd-sans); cursor:pointer; }
.htc-page .htc-summary-options button strong { margin-right:4px; }
.htc-page .htc-summary-options button:hover { border-color:var(--hd-forest); }
.htc-page .htc-summary-options button[aria-pressed='true'] { background:var(--hd-forest); border-color:var(--hd-forest); color:#fff; }
.htc-page .htc-filters.htc-filters--no-category { grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(150px,1fr)); }
.htc-page .htc-reading-guide { margin-top:44px; padding-top:30px; border-top:1px solid var(--hd-border); }
.htc-page .htc-reading-guide dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin:24px 0; }
.htc-page .htc-reading-guide dt { font-size:15px; color:var(--hd-forest); font-weight:600; margin-bottom:8px; }
.htc-page .htc-reading-guide dd { margin:0; color:var(--hd-muted); font-size:14px; }
.htc-page .htc-reading-guide > p { font-size:13px; color:var(--hd-muted); }
.htc-page .htc-access-panel { display:flex; align-items:center; justify-content:space-between; gap:28px; background:var(--hd-sand); border:1px solid var(--hd-border); border-radius:12px; padding:28px; margin-top:30px; }
.htc-page .htc-access-panel h2 { font-size:28px; margin-bottom:10px; }
.htc-page .htc-access-panel p { font-size:14px; color:var(--hd-muted); margin:0; max-width:90ch; }
.htc-page .htc-access-panel > a { flex-shrink:0; }
.htc-page .htc-scope-note { display:flex; align-items:start; gap:14px; }
.htc-page .htc-scope-note > .dna-icon { flex-shrink:0; margin-top:4px; }
.htc-page .htc-scope-note strong { display:block; margin-bottom:6px; }
.htc-page .htc-scope-note p { margin:0 0 8px; }
.htc-page .htc-category-notes { border:1px solid var(--hd-border); border-radius:10px; padding:0 22px; background:var(--hd-surface); margin:0 0 28px; }
.htc-page .htc-category-notes > summary { min-height:48px; padding:13px 0; cursor:pointer; font-size:14px; color:var(--hd-forest); font-weight:600; }
.htc-page .htc-category-notes > div { padding:6px 0 22px; font-size:14px; }
.htc-page .htc-filters { display:grid; grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(150px,1fr)); gap:18px; padding:22px; background:var(--hd-surface); border:1px solid var(--hd-border); border-radius:12px; }
.htc-page .htc-filters > label { margin:0; min-width:0; }
.htc-page .htc-filters :is(input[type='search'],select) { width:100%; margin-top:6px; padding:9px 12px; background-image:none; }
.htc-page .htc-filter-bottom { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; border-top:1px solid var(--hd-border); padding-top:16px; }
.htc-page .htc-checkbox { display:flex; align-items:center; min-height:44px; gap:10px; margin:0; font-size:13px; cursor:pointer; }
.htc-page .htc-checkbox input { width:18px; height:18px; }
.htc-page .htc-view-options { display:flex; gap:6px; margin-left:auto; }
.htc-page .htc-view-options button, .htc-page .htc-clear, .htc-page .htc-remove-all { min-height:44px; padding:10px 14px; border:1px solid var(--hd-border); background:var(--hd-bg); border-radius:7px; color:var(--hd-forest); font:500 13px/1.5 var(--hd-sans); }
.htc-page .htc-view-options button { display:flex; align-items:center; gap:8px; }
.htc-page .htc-view-options button[aria-pressed='true'] { background:var(--hd-forest); color:#fff; border-color:var(--hd-forest); }
.htc-page .htc-remove-all { background:var(--hd-surface); border-color:#ddc7b6; color:#794b35; }
.htc-page .htc-results-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:16px 0 22px; }
.htc-page .htc-status { color:var(--hd-muted); font-size:13px; margin:0; }
.htc-page .htc-feedback { color:var(--hd-forest); font-size:13px; margin:0; }
.htc-page .htc-feedback[data-error='true'] { color:#874e2d; }
.htc-page .htc-local-note { color:var(--hd-muted); font-size:12px; margin:0; }
.htc-page .htc-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:22px; }
.htw-page .htc-card { display:flex; flex-direction:column; min-width:0; padding:24px; border:1px solid var(--hd-border); border-radius:12px; background:var(--hd-surface); }
.htw-page .htc-card-heading { display:flex; align-items:start; gap:14px; }
.htw-page .htc-card-heading > div { min-width:0; flex:1; }
.htw-page .htc-card-icon { position:relative; display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:10px; flex-shrink:0; background:var(--hd-sand); color:var(--hd-forest); }
.htw-page .htc-card-icon img { position:absolute; inset:6px; width:36px; height:36px; object-fit:contain; background:var(--hd-sand); }
.htw-page .htc-card-category { display:block; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--hd-muted); margin-bottom:4px; }
.htw-page .htc-card h3 { margin:0; font-size:25px; line-height:1.15; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.htw-page .htc-card h3 a { text-decoration:none; }
.htw-page .htc-card-status { display:inline-flex; align-items:center; margin-top:10px; padding:3px 10px; border-radius:999px; border:1px solid var(--hd-border); background:var(--hd-bg); color:var(--hd-forest); font-size:11px; font-weight:600; }
.htw-page .htc-card-status:is([data-direction='higher'],[data-direction='intermediate'],[data-direction='lower']) { background:var(--hd-sage); border-color:#c3d0c3; }
.htw-page .htc-card-status[data-direction='locked'] { background:var(--hd-sand); }
.htw-page .htc-save { min-width:44px; min-height:44px; padding:7px; display:flex; flex-direction:column; align-items:center; gap:3px; flex-shrink:0; border:1px solid var(--hd-border); border-radius:7px; background:var(--hd-bg); color:var(--hd-muted); font-size:10px; }
.htw-page .htc-save[aria-pressed='true'] { background:var(--hd-sage); color:var(--hd-forest); border-color:#c3d0c3; }
.htw-page .htc-save[aria-busy='true'] { opacity:.65; cursor:progress; }
.htw-page .htc-card-excerpt { color:var(--hd-muted); font-size:13px; line-height:1.7; margin:16px 0 0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.htw-page .htc-card-result { margin:20px 0; padding:20px 0; border-block:1px solid var(--hd-border); }
.htw-page .htc-result-eyebrow { display:block; font-size:11px; color:var(--hd-muted); margin-bottom:8px; }
.htw-page .htc-result-prose { color:var(--hd-forest); font-size:15px; line-height:1.65; overflow-wrap:anywhere; }
.htw-page .htc-result-prose :is(p,ul,ol) { margin:0 0 12px; }
.htw-page .htc-result-prose :last-child { margin-bottom:0; }
.htw-page .htc-card .ti-scale-container { padding:14px 18px; margin-top:16px; }
.htw-page .htc-card .ti-scale-labels { font-size:10px; }
.htw-page .htc-card .ti-scale-badge { font-size:12px; }
.htw-page .htc-sensitive > summary { display:flex; align-items:center; gap:10px; min-height:46px; padding:10px 12px; border:1px solid var(--hd-border); border-radius:6px; color:var(--hd-forest); font-size:13px; font-weight:600; cursor:pointer; background:var(--hd-bg); }
.htw-page .htc-sensitive[open] > summary { margin-bottom:16px; }
.htw-page .htc-sensitive > summary::after { content:'+'; margin-left:auto; font-size:18px; }
.htw-page .htc-sensitive[open] > summary::after { content:'−'; }
.htw-page .htc-result-note { color:var(--hd-muted); font-size:12px; margin:14px 0 0; }
.htw-page .htc-research { display:flex; gap:12px; align-items:start; }
.htw-page .htc-research > .dna-icon { flex-shrink:0; margin-top:5px; color:var(--hd-forest); }
.htw-page .htc-research strong { display:block; color:var(--hd-forest); font-size:14px; margin-bottom:6px; }
.htw-page .htc-research p { font-size:13px; color:var(--hd-muted); margin:0; }
.htw-page .htc-admin { font-size:11px; color:var(--hd-muted); margin:12px 0 0; }
.htw-page .htc-card-meta { display:flex; flex-wrap:wrap; gap:6px 18px; margin:0; }
.htw-page .htc-card-meta > div { display:flex; align-items:baseline; gap:6px; min-width:0; }
.htw-page .htc-card-meta dt { color:var(--hd-muted); font-size:11px; font-weight:400; }
.htw-page .htc-card-meta dd { color:var(--hd-forest); margin:0; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.htw-page .htc-influence { display:flex; flex-wrap:wrap; gap:4px 18px; color:var(--hd-muted); font-size:11px; margin:16px 0 0; }
.htw-page .htc-study { display:flex; gap:12px; flex-wrap:wrap; color:var(--hd-muted); font-size:11px; margin:12px 0 0; }
.htw-page .htc-card-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:auto; padding-top:22px; }
.htw-page .htc-card-footer > .hd-btn { min-height:44px; font-size:12px; padding:10px 14px; }
.htw-page .htc-card-footer .scoring-buttons-container { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.htw-page .htc-card-footer .score-btn { min-height:44px; min-width:44px; background:var(--hd-bg); color:var(--hd-forest); border-color:var(--hd-border); padding:8px 10px; }
.htw-page .htc-card-footer .score-text { display:inline; font-size:11px; }
.htc-page .htc-list.is-list { grid-template-columns:minmax(0,1fr); }
.htc-page .htc-list.is-list .htc-card { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr); gap:0 30px; }
.htc-page .htc-list.is-list .htc-card-result { grid-column:2; grid-row:1 / span 4; margin:0; padding:0 0 0 26px; border:0; border-left:1px solid var(--hd-border); }
.htc-page .htc-list.is-list .htc-card-meta { margin-top:20px; }
.htc-page .htc-list.is-list .htc-card-footer { grid-column:1/-1; }
@media(max-width:1199px) { .htc-page .htc-list,.htc-page .htc-category-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .htc-page .htc-filters,.htc-page .htc-filters.htc-filters--no-category { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:899px) { .htc-page .htc-category-card { padding:22px; } .htc-page .htc-category-icon { width:56px; height:56px; } .htc-page .htc-category-icon img { inset:8px; width:40px; height:40px; } .htc-page .htc-category-hero-main { gap:16px; } .htc-page .htc-reading-guide dl { grid-template-columns:minmax(0,1fr); gap:20px; } }
@media(max-width:767px) { .htc-page .htc-category-list,.htc-page .htc-list { grid-template-columns:minmax(0,1fr); } .htc-page .htc-category-search { width:100%; min-width:0; } .htc-page .htc-access-panel { flex-direction:column; align-items:start; padding:22px; } .htc-page .htc-list.is-list .htc-card { display:flex; } .htc-page .htc-list.is-list .htc-card-result { margin:20px 0; padding:20px 0; border:0; border-block:1px solid var(--hd-border); } .htc-page .htc-list.is-list .htc-card-meta { margin-top:0; } .htc-page .htc-results-heading { flex-direction:column; align-items:start; gap:8px; } }
@media(max-width:479px) { .htc-page .htc-filters { grid-template-columns:minmax(0,1fr); padding:18px; gap:14px; } .htc-page .htc-filter-bottom { gap:12px; } .htc-page .htc-view-options { margin-left:0; } .htc-page .htc-remove-all { width:100%; } .htw-page .htc-card { padding:20px; } .htw-page .htc-card h3 { font-size:24px; } .htw-page .htc-card-icon { display:none; } .htw-page .htc-card-footer .score-text { font-size:12px; } .htc-page .htc-category-card h3 { font-size:26px; } .htc-page .htc-scope-note > .dna-icon { display:none; } .htc-page .htc-filters.htc-filters--no-category { grid-template-columns:minmax(0,1fr); } .htc-page .htc-category-icon--hero { display:none; } }
@media print { .htc-page :is(.htc-filters,.htc-feedback,.htc-status,.htc-save,.htc-remove-all,.htc-card-footer,.htc-category-search,.htc-switcher,.htc-summary-options,.htc-category-action) { display:none !important; } .htc-page :is(.htc-list,.htc-category-list,.htc-reading-guide dl) { display:block; } .htw-page .htc-card h3,.htw-page .htc-card-excerpt,.htc-page .htc-category-description { display:block; -webkit-line-clamp:unset; overflow:visible; } .htw-page .htc-card,.htc-page .htc-category-card { break-inside:avoid; margin-bottom:16px; } }
