/* Core-hardware discovery, with author credit and full source requirements. */
.build-finder { margin-top:48px; padding-top:36px; border-top:1px solid var(--line,#dce0d5); color:var(--ink,#20271f); }
.build-finder :where(h2,h3,h4,p,ul) { margin:0; }
.build-finder :where(h2,h3) { text-wrap:balance; }
.build-finder p { text-wrap:pretty; }
.build-finder [hidden] { display:none!important; }
.build-finder :where(a,button,input,select,summary):focus-visible { outline:3px solid #557a18; outline-offset:3px; }
.build-finder svg { width:18px; height:18px; flex:none; }
.bf-heading h2 { font-family:'News Cycle',var(--font,sans-serif); font-size:clamp(28px,3vw,38px); font-weight:600; line-height:1.15; }
.bf-heading > p { max-width:58ch; margin-top:12px; font-size:var(--text-16); line-height:1.6; color:var(--muted,#60685d); }
.bf-controls { margin-top:24px; padding:20px; border:1px solid var(--line,#dce0d5); border-radius:10px; background:var(--surface,#fff); }
.bf-picker { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.bf-picker label { display:grid; gap:8px; font-size:var(--text-13); font-weight:600; }
.bf-device-field { flex:1 1 220px; min-width:0; }
.bf-count-field { width:80px; flex:none; }
.build-finder :where(input,select) { min-height:48px; width:100%; min-width:0; padding:10px 12px; border:1px solid var(--line,#dce0d5); border-radius:6px; color:var(--ink,#20271f); background:var(--surface,#fff); font:400 16px var(--font,sans-serif); }
.build-finder :where(input,time),.bf-quantity,.bf-match { font-variant-numeric:tabular-nums; }
.bf-button { display:inline-flex; min-height:48px; justify-content:center; align-items:center; padding:10px 16px; border:1px solid var(--line,#dce0d5); border-radius:6px; color:var(--ink,#20271f); background:var(--surface,#fff); font:600 14px var(--font,sans-serif); cursor:pointer; }
.bf-button:hover { background:var(--bg,#f7f8fa); }
.bf-add { background:var(--ink,#20271f); color:var(--surface,#fff); border-color:var(--ink,#20271f); }
.bf-add:hover { background:#344030; }
.bf-help { margin-top:12px!important; color:var(--muted,#60685d); font-size:var(--text-13); line-height:1.65; }
.bf-help a { display:inline-flex; min-height:44px; align-items:center; color:inherit; text-decoration:underline; text-underline-offset:3px; }
.bf-notice { margin-top:12px!important; color:var(--ink,#20271f); font-size:var(--text-13); line-height:1.55; }
.bf-selected { margin-top:18px; border-top:1px solid var(--line,#dce0d5); padding-top:12px; }
.bf-selected-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bf-selected-heading h3 { font:600 14px var(--font,sans-serif); }
.bf-text-button { min-height:44px; padding:8px 0 8px 12px; color:var(--muted,#60685d); background:none; border:0; text-decoration:underline; text-underline-offset:3px; font:400 13px var(--font,sans-serif); cursor:pointer; }
.bf-selected ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 24px; list-style:none; padding:4px 0 0; }
.bf-selected li { display:flex; align-items:center; min-width:0; gap:12px; padding-block:6px; }
.bf-selected li > span { flex:1; font-size:var(--text-14); line-height:1.4; overflow-wrap:anywhere; }
.bf-selected-quantity { display:flex; align-items:center; gap:8px; color:var(--muted,#60685d); font-size:var(--text-12); }
.bf-selected-quantity input { width:64px; min-height:44px; padding:8px; }
.bf-remove { width:44px; min-height:44px; flex:none; border:1px solid var(--line,#dce0d5); border-radius:6px; background:none; color:var(--ink,#20271f); font-size:var(--text-24); line-height:1; cursor:pointer; }
.bf-results-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; margin-block:28px 16px; }
.bf-results-heading > p:first-child { font-size:var(--text-14); font-weight:600; }
.bf-results-heading > p:last-child { max-width:56ch; font-size:var(--text-12); line-height:1.6; color:var(--muted,#60685d); }
.bf-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:16px; }
.bf-card { min-width:0; padding:24px; border:1px solid var(--line,#dce0d5); border-radius:9px; background:var(--surface,#fff); }
.bf-credit { color:var(--muted,#60685d); font-size:var(--text-12); line-height:1.5; }
.bf-card h3 { margin-top:8px; font-family:'News Cycle',var(--font,sans-serif); font-size:var(--text-22); font-weight:600; line-height:1.2; }
.bf-summary { margin-top:12px!important; color:var(--muted,#60685d); font-size:var(--text-14); line-height:1.6; }
.bf-core { margin-top:18px; }
.bf-core > span { color:var(--muted,#60685d); font-size:var(--text-12); }
.bf-core ul { display:flex; flex-wrap:wrap; gap:4px 12px; padding:0; list-style:none; }
.bf-core a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--ink,#20271f); font-size:var(--text-14); font-weight:600; text-decoration:none; }
.bf-core a:hover { text-decoration:underline; text-underline-offset:3px; }
.bf-quantity { color:var(--muted,#60685d); font-weight:400; }
.bf-match { margin-block:4px 12px!important; font-size:var(--text-12); line-height:1.5; color:var(--muted,#60685d); }
.bf-match[data-covered="true"] { color:#365314; }
.bf-revision { padding:12px; margin-block:8px 12px!important; border-left:3px solid #9bae81; background:#f3f5ed; font-size:var(--text-13); line-height:1.6; }
.bf-details { border-top:1px solid var(--line,#dce0d5); }
.bf-details > summary { min-height:48px; padding-block:14px; cursor:pointer; color:var(--muted,#60685d); font-size:var(--text-13); line-height:1.5; }
.bf-details-body { padding:4px 0 20px; font-size:var(--text-13); line-height:1.65; }
.bf-details-body h4 { margin-top:16px; font-size:var(--text-13); font-weight:600; }
.bf-details-body h4:first-child { margin-top:0; }
.bf-details-body > ul { padding-left:18px; margin-top:8px; }
.bf-details-body > p { margin-top:8px; }
.bf-details-body li + li { margin-top:5px; }
.bf-source-date { color:var(--muted,#60685d); padding-top:12px; }
.bf-details-body .bf-sources { padding:0; list-style:none; border-top:1px solid var(--line,#dce0d5); margin-top:16px; padding-top:8px; }
.bf-sources a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:inherit; font-size:var(--text-12); line-height:1.5; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.bf-sources li > p { font-size:var(--text-12); color:var(--muted,#60685d); }
.bf-guide { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; padding:12px 0 0; color:var(--ink,#20271f); font-size:var(--text-14); font-weight:600; text-decoration:none; border-top:1px solid var(--line,#dce0d5); }
.bf-guide:hover { text-decoration:underline; text-underline-offset:4px; }
.bf-empty { padding:32px 24px; border:1px solid var(--line,#dce0d5); border-radius:8px; }
.bf-empty h3 { font-size:var(--text-22); }
.bf-empty p { margin-top:10px; font-size:var(--text-14); color:var(--muted,#60685d); }
.bf-empty button { margin-top:20px; }
.bf-footnote { max-width:80ch; margin-top:20px!important; color:var(--muted,#60685d); font-size:var(--text-12); line-height:1.7; }
@media (max-width:760px) {
  .build-finder { margin-top:32px; padding-top:28px; }
  .bf-heading > p { font-size:var(--text-14); }
  .bf-controls { padding:16px; }
  .bf-picker { display:grid; grid-template-columns:minmax(0,1fr) 76px; }
  .bf-count-field { width:auto; }
  .bf-device-field { min-width:0; }
  .bf-add { grid-column:1/-1; }
  .bf-import { grid-column:1/-1; }
  .bf-selected ul,.bf-results { grid-template-columns:minmax(0,1fr); }
  .bf-help { margin-top:8px!important; }
  .bf-card { padding:20px; }
  .bf-card h3 { font-size:var(--text-22); }
}
@media (max-width:360px) {
  .bf-controls,.bf-card { padding:16px; }
  .bf-selected li { gap:8px; }
  .bf-selected-quantity > span { display:none; }
}
/* Carry a guide's core parts into a plan; keep the original guide alongside it. */
.bf-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; border-top:1px solid var(--line,#dce0d5); padding-top:16px; }
.bf-setup { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; border:1px solid var(--ink,#20271f); border-radius:6px; background:var(--ink,#20271f); color:var(--surface,#fff); font-size:var(--text-14); font-weight:600; line-height:1.4; text-decoration:none; }
.bf-setup:hover { background:#344030; }
.bf-actions .bf-guide { border-top:0; padding:8px 0; min-height:44px; gap:8px; font-size:var(--text-13); }
@media(max-width:480px) {
  .bf-setup { width:100%; }
  .bf-actions .bf-guide { width:100%; }
}
