/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Heritage Traits library, catalog cards and saved collections.
 */
.htc-page .htc-introduction { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); gap:48px; padding:12px 0 36px; margin-bottom:30px; border-bottom:1px solid var(--hd-border); }
.htc-page .htc-introduction h2 { font-size:36px; }
.htc-page .htc-introduction p { max-width:76ch; color:var(--hd-muted); font-size:15px; margin:0; }
.htc-page .htc-introduction aside { padding:24px; background:var(--hd-surface); border:1px solid var(--hd-border); border-radius:10px; }
.htc-page .htc-introduction aside strong { display:block; margin-bottom:8px; color:var(--hd-forest); font-size:15px; }
.htc-page .htc-introduction aside p { font-size:14px; margin-bottom:14px; }
.htc-page .htc-introduction aside a { min-height:44px; display:inline-flex; align-items:center; gap:12px; font-size:13px; }
.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(2,minmax(0,1fr)); gap:18px; }
.htc-page .htc-category-card { display:grid; grid-template-columns:64px minmax(0,1fr); gap:22px; padding:28px; border:1px solid var(--hd-border); background:var(--hd-surface); border-radius:12px; }
.htc-page .htc-category-icon { width:60px; height:60px; position:relative; display:flex; align-items:center; justify-content:center; color:var(--hd-forest); background:var(--hd-sage); border-radius:10px; }
.htc-page .htc-category-icon .dna-icon { width:25px; height:25px; }
.htc-page .htc-category-icon img { position:absolute; inset:10px; width:40px; height:40px; object-fit:contain; background:var(--hd-sage); }
.htc-page .htc-category-card h3 { margin:0 0 12px; font-size:28px; }
.htc-page .htc-category-card h3 a { text-decoration:none; }
.htc-page .htc-category-card p { font-size:14px; color:var(--hd-muted); margin:0 0 16px; }
.htc-page .htc-category-action { display:inline-flex; align-items:center; gap:12px; min-height:44px; font-size:13px; font-weight:600; }
.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:42px; height:42px; border-radius:8px; flex-shrink:0; background:var(--hd-sand); color:var(--hd-forest); }
.htw-page .htc-card-icon img { position:absolute; inset:7px; width:28px; height:28px; object-fit:contain; background:var(--hd-sand); }
.htw-page .htc-card-category { display:block; font-size:11px; color:var(--hd-muted); margin-bottom:6px; }
.htw-page .htc-card h3 { margin:0; font-size:25px; overflow-wrap:anywhere; }
.htw-page .htc-card h3 a { text-decoration:none; }
.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.8; margin:18px 0 0; }
.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:grid; grid-template-columns:.8fr .8fr 1.5fr; gap:12px; margin:0; }
.htw-page .htc-card-meta > div { min-width:0; }
.htw-page .htc-card-meta dt { color:var(--hd-muted); font-size:10px; font-weight:400; }
.htw-page .htc-card-meta dd { color:var(--hd-forest); margin:5px 0 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; 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 { grid-template-columns:repeat(2,minmax(0,1fr)); } .htc-page .htc-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:899px) { .htc-page .htc-introduction { grid-template-columns:minmax(0,1fr); gap:22px; } .htc-page .htc-category-card { grid-template-columns:44px minmax(0,1fr); gap:16px; padding:22px; } .htc-page .htc-category-icon { width:44px; height:44px; } .htc-page .htc-category-icon img { inset:7px; width:30px; height:30px; } .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; } }
@media print { .htc-page :is(.htc-filters,.htc-feedback,.htc-status,.htc-save,.htc-remove-all,.htc-card-footer,.htc-category-search) { display:none !important; } .htc-page :is(.htc-list,.htc-category-list,.htc-introduction,.htc-reading-guide dl) { display:block; } .htw-page .htc-card,.htc-page .htc-category-card { break-inside:avoid; margin-bottom:16px; } }
