/* The heat network finder (/heat-network/). Uses the site's tokens from styles.css; each has a plain fallback because
   the page also reads well before the shared stylesheet arrives. */
.hn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; align-items: end; margin: 22px 0 10px; padding: 16px; background: var(--white, #fff); border: 1px solid var(--line, #E6DFD4); border-radius: var(--r-md, 14px); }
.hn-form[hidden] { display: none; }
.hn-field { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 4px; font-weight: 700; font-size: var(--fs-14); }
.hn-field select, .hn-field input { font: inherit; font-weight: 400; font-size: var(--fs-16); min-height: 44px; padding: 8px 10px; border: 1.5px solid #B9AE9F; border-radius: var(--r-sm, 10px); background: var(--white, #fff); color: var(--ink, #16202B); width: 100%; min-width: 0; box-sizing: border-box; }
.hn-field select:focus, .hn-field input:focus { outline: 3px solid var(--orange, #F26430); outline-offset: 1px; border-color: var(--ink, #16202B); }
.hn-field--q { grid-column: 1 / -1; }
.hn-btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink, #16202B); background: transparent; color: var(--ink, #16202B); font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }
.hn-btn:hover { background: var(--ink, #16202B); color: #fff; }
.hn-btn:focus-visible, .hn-link:focus-visible { outline: 3px solid var(--orange, #F26430); outline-offset: 2px; }
.hn-btn[hidden] { display: none; }
.hn-all { margin: 14px 0 0; }
.hn-count { font-weight: 700; margin: 12px 0 4px; }
.hn-count:focus { outline: none; }
.hn-more { margin: 4px 0; color: var(--grey-700, #39424D); }
.hn-link { font: inherit; font-weight: 700; color: var(--ink, #16202B); background: none; border: 0; padding: 4px 0; min-height: 24px; text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: var(--orange, #F26430); text-underline-offset: 3px; cursor: pointer; }
.hn-empty { margin: 14px 0 0; padding: var(--pad-compact); border: 1px solid var(--line, #E6DFD4); border-radius: var(--r-md, 14px); background: var(--sand-50, #F6F1E9); max-width: 50rem; }
.hn-empty ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.hn-read { margin: 10px 0; } .hn-read summary { cursor: pointer; font-weight: 700; padding: 6px 0; min-height: 24px; }
.hn-group[hidden], .hn-card[hidden] { display: none; }
main ul.hn-cards { list-style: none; padding: 0; margin: 10px 0 0; }
.hn-card { margin: 0; padding: 12px 0 13px; border-bottom: 1px solid var(--line, #E6DFD4); overflow-wrap: anywhere; scroll-margin-top: calc(var(--header-h, 64px) + var(--tk-h, 0px) + 12px); }
/* long list: rows beyond the first few are laid out only as they near the screen (size = median row at 390px) */
.hn-card:nth-child(n+5) { content-visibility: auto; contain-intrinsic-size: auto 225px; }
.hn-card:target { background: var(--sand-50, #F6F1E9); box-shadow: -8px 0 0 var(--sand-50, #F6F1E9), 8px 0 0 var(--sand-50, #F6F1E9); }
.hn-card > a:first-child { font-weight: 700; }
.hn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; }
.hn-tags span { font-size: var(--fs-14); line-height: 1.4; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line, #E6DFD4); background: var(--white, #fff); color: var(--grey-700, #39424D); }
.hn-tags .hn-tag--link { border-style: dashed; }
.hn-acts { display: block; margin: 6px 0 0; font-size: var(--fs-14); }
.hn-acts a { display: inline-block; padding: 3px 0; }
@media print { .hn-form, #hn-note { display: none; } .hn-card { content-visibility: visible; break-inside: avoid; } }
