/* Device Notes Guides — FRP hub pages (/guides/, /devices/, /tools/). Loads after home.css. */
.dnhb .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dnhb [hidden]{display:none!important}

/* hero */
.dnhb-hero{display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding-block:48px}
.dnhb-hero-copy{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:18px}
.dnhb-hero h1{margin:0;font-family:var(--serif);font-weight:500;font-size:clamp(34px,5vw,58px);line-height:1.06;letter-spacing:-.5px;color:var(--ink)}
.dnhb-hero .dnhp-lead{max-width:600px}
.dnhb-crumb{font-size:14px;color:var(--muted)}
.dnhb-crumb a{text-decoration:none}
.dnhb-stats{flex:1 1 340px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:28px;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 44px rgba(32,55,40,.10)}
.dnhb-stats div{display:flex;flex-direction:column;gap:4px}
.dnhb-stats strong{font-family:var(--serif);font-weight:500;font-size:36px;line-height:1.1;color:var(--dnhp-accent)}
.dnhb-stats span{font-size:14px;color:var(--muted)}
.dnhb-finder{gap:16px}
.dnhb-small-link{font-size:14px;font-weight:600}

/* dark "updated this week" strip */
.dnhb-strip{background:var(--ink);color:#D3E3D8}
.dnhb-strip-in{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding-block:14px;font-size:14px}
.dnhb-strip strong{color:#fff;font-weight:600}
.dnhb-dot{color:#7FD1A0}
.dnhb-strip a{color:#D3E3D8!important}

/* filter bar (scrolls with the page, not sticky) */
.dnhb-bar{background:var(--paper);border-block:1px solid var(--line)}
.dnhb-bar-gap{margin-top:40px}
.dnhb-band{background:var(--soft);border-block:1px solid var(--line)}
.dnhb-bar-in{display:flex;flex-direction:column;gap:14px;padding-block:18px}
.dnhb-band .dnhb-bar-in{padding-block:22px}
.dnhb-search{display:flex;flex-wrap:wrap;gap:10px}
.dnhb-search input[type=search]{flex:999 1 380px}
.dnhb-search select{flex:1 1 170px;width:auto}
.dnhb input[type=search]{width:100%;min-width:0;height:48px;padding:0 12px;border-radius:8px;border:1px solid var(--field);background:#fff;font:inherit;font-size:15px;color:var(--text);margin:0;-webkit-appearance:none;appearance:none}
.dnhb-chiprow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dnhb-chiplabel{width:76px;font-size:13px;font-weight:600;color:var(--muted)}
.dnhb-chips{display:flex;flex-wrap:wrap;gap:8px}
.dnhb button.dnhp-chip{cursor:pointer;font-family:inherit}
.dnhb .dnhp-chip[aria-pressed=true]{border:1.5px solid var(--dnhp-accent);background:#EDF2E9;font-weight:600}
.dnhb:not(.is-js) .dnhb-chiprow,.dnhb:not(.is-js) [data-dnhb-sort],.dnhb:not(.is-js) [data-dnhb-select],.dnhb:not(.is-js) .dnhb-az{display:none}

/* cards */
.dnhb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}
.dnhb-cards-wide{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.dnhb-card{gap:10px;padding:24px;border-radius:14px}
.dnhb-tags{display:flex;flex-wrap:wrap;gap:6px}
.dnhb-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:600;color:#33493D;text-decoration:none}
.dnhb-badge.is-line{background:var(--paper);border:1px solid var(--line)}
.dnhb-badge.is-draft{background:#FBEDE8;color:#6B2A14}
a.dnhb-badge.is-ok{background:#E3F0E6;color:var(--dnhp-accent)!important}
.dnhb-card-title{font-family:var(--serif);font-size:21px;line-height:1.3;color:var(--ink)}
.dnhb-card-title-l{font-size:23px;line-height:1.25}
.dnhb-facts{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:#33493D}
.dnhb-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.dnhb-foot .dnhp-cta{margin-top:0;font-size:13px}
.dnhb-foot-line{border-top:1px solid var(--line);padding-top:12px}
.dnhb-strong{font-weight:600;color:#33493D}
.dnhb-count{margin:0 0 28px!important;font-size:14px;color:var(--muted)}
.dnhb .dnhp-row-head{margin-bottom:0}
.dnhb .dnhp-row-head .dnhp-title{margin:6px 0 24px}
.dnhb .dnhp-row-head>a{margin-bottom:28px}
.dnhb-feature{min-height:230px;padding:28px;justify-content:flex-end;gap:12px}
.dnhb-feature .dnhp-kicker{color:#BFD6C7}
.dnhb-feature-title{font-family:var(--serif);font-size:25px;line-height:1.25}
.dnhb-feature .dnhp-cta{color:#D9EBDF}
.dnhb-brandgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px}
.dnhb-brandcard{gap:4px}
.dnhb-brandcard strong{font-size:18px}
.dnhb-empty{margin-top:20px!important;padding:18px 20px;border-radius:10px;background:var(--soft);color:var(--ink)}
.dnhb-none{padding:28px;border-radius:14px;border:1px dashed var(--field);background:#fff;color:var(--muted)}
.dnhb-more{display:flex;justify-content:center;margin-top:28px}
.dnhb-btn-ghost{height:50px;padding:0 28px;border-radius:8px;border:1px solid var(--field);background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
.dnhb-link-btn{padding:0;border:0;background:none;color:var(--dnhp-accent);font:inherit;font-weight:600;cursor:pointer;text-decoration:underline}

/* devices */
.dnhb-spec{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;padding:12px 0;border-block:1px solid var(--line);font-size:13px}
.dnhb-spec span{color:var(--muted)}
.dnhb-spec strong{font-size:13px;color:var(--ink)}
.dnhb-az{display:flex;flex-wrap:wrap;gap:4px;margin:-8px 0 24px}
.dnhb-az button{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 8px;border-radius:6px;border:1px solid var(--line);background:#fff;font:inherit;font-weight:600;font-size:14px;color:var(--ink);cursor:pointer}
.dnhb-az button[aria-pressed=true]{border-color:var(--dnhp-accent);background:#EDF2E9}
.dnhb-az button:disabled{opacity:.35;cursor:default}
.dnhb-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:24px;align-items:start}
.dnhb-group{padding:24px 26px 10px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.dnhb-group-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.dnhb-group-head h3{margin:0;font-family:var(--serif);font-weight:500;font-size:26px;color:var(--ink)}
.dnhb-group-list{display:flex;flex-direction:column;margin-top:10px}
.dnhb-devrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text)!important}
.dnhb-devrow:last-child{border-bottom:0}
.dnhb-devrow>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.dnhb-devrow strong{font-size:16px;color:var(--ink)}
.dnhb-steps{padding-block:0}
.dnhb-ranks{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.dnhb-ranks li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 4px;border-bottom:1px solid var(--line)}
.dnhb-rank{width:34px;font-family:var(--serif);font-size:24px;color:var(--dnhp-accent)}
.dnhb-rank-name{flex:1 1 200px;display:flex;flex-direction:column;gap:2px}
.dnhb-rank-name strong{font-size:16px;color:var(--ink)}

/* tools */
.dnhb-tool-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dnhb-needs{padding:8px 10px;border-radius:8px;background:#F4F7F1;font-size:13px;color:#33493D}
.dnhb-needs strong{font-size:13px}
.dnhb-pick .dnhb-card-title{font-size:22px}
.dnhb-matrix-wrap{position:relative;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
.dnhb-matrix{width:100%;min-width:720px;border-collapse:collapse;margin:0;font-size:15px}
.dnhb-matrix th,.dnhb-matrix td{padding:13px 8px;border:0;border-top:1px solid var(--line);text-align:center;background:none}
.dnhb-matrix thead th{border-top:0;background:var(--soft);font-size:13px;font-weight:600;color:#33493D}
.dnhb-matrix th[scope=row],.dnhb-matrix thead th:first-child{padding-inline:18px;text-align:left}
.dnhb-matrix th[scope=row] a{font-weight:600;color:var(--ink)!important;text-decoration:none}
.dnhb-matrix td{font-weight:700;color:var(--dnhp-accent)}
.dnhb-no{color:#A5B3A8}
.dnhb-note{margin-top:12px!important}
.dnhb-compare{gap:12px}
.dnhb-compare-in{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px}
.dnhb-compare-in>div{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:10px}
.dnhb-compare-in .is-free{background:var(--soft)}
.dnhb-compare-in .is-free .dnhb-badge{background:#fff}
.dnhb-compare-in .is-paid{background:var(--paper);border:1px solid var(--line)}
.dnhb-compare-in .dnhb-badge{align-self:flex-start}
.dnhb-timeline{margin:0 0 0 8px;padding:0;list-style:none;border-left:2px solid var(--line)}
.dnhb-timeline li{position:relative;padding:0 0 26px 26px}
.dnhb-timeline li::before{content:'';position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--dnhp-accent)}
.dnhb-timeline time{font-size:13px;color:var(--muted)}
.dnhb-tl-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px}
.dnhb-tl-head a{font-weight:600;font-size:17px;color:var(--ink)!important;text-decoration:none}
.dnhb-timeline p{margin-top:4px!important}
.dnhb-checks{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:12px;font-size:16px;line-height:1.65;color:#33493D}
.dnhb-aside-p{margin:0 0 14px!important;font-size:15px;line-height:1.6;color:#33493D}
.dnhb-faq-sec{padding-bottom:64px}

@media (prefers-reduced-motion:no-preference){
  .dnhb-hero-copy>*,.dnhb-stats{animation:dnhp-rise .7s cubic-bezier(.2,.7,.2,1) both}
  .dnhb-hero-copy>:nth-child(2){animation-delay:.06s}
  .dnhb-hero-copy>:nth-child(3){animation-delay:.12s}
  .dnhb-hero-copy>:nth-child(4){animation-delay:.18s}
  .dnhb-stats,.dnhb-finder{animation-delay:.26s}
  .dnhb-devrow,.dnhb-az button,.dnhb-btn-ghost{transition:padding .25s,background-color .25s,border-color .25s}
  .dnhb-devrow:hover,.dnhb-devrow:focus-visible{padding-left:10px}
  .dnhb-az button:not(:disabled):hover,.dnhb-btn-ghost:hover{border-color:var(--dnhp-accent);background:var(--soft)}
  .dnhb [data-dnhb-item]{animation:dnhb-in .35s ease both}
  @keyframes dnhb-in{from{opacity:0}to{opacity:1}}
}
@media (max-width:600px){
  .dnhb-hero{padding-block:36px;gap:28px}
  .dnhb-stats{padding:22px;gap:16px}
  .dnhb-stats strong{font-size:30px}
  .dnhb-chiplabel{width:100%}
  .dnhb-group{padding:20px 18px 6px}
}
@media print{.dnhb-bar,.dnhb-band,.dnhb-more,#dnhp-engage{display:none}}
