/* The Home page's kit stylesheet (public/BCM_Home.html — design Q; its classes .hk-…): cards, labels, the sheet and the
   sticky bar, shared with home-lean.v1.css. Linked only by the Home and served with a one-year cache: the server adds
   ?h=<the first 8 hex digits of this file's SHA-1> to its <link> (sendPage, like the /js scripts), so an edit is a new
   address. */

/* ── Page: room under the content for the sticky bar while it shows ── */
body.hk-has-sticky{padding-bottom:72px}

/* ── Building blocks ── */
.hk-root [hidden],.hk-sheet [hidden],.hk-sticky[hidden]{display:none!important}
.hk-root *:focus-visible,.hk-sheet *:focus-visible,.hk-sticky *:focus-visible,.hk-sell *:focus-visible{outline:3px solid #FDBA74;outline-offset:2px}
.hk-wrap{max-width:1160px;margin:0 auto;padding:0 16px}
.hk-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:12px 18px;border:0;border-radius:10px;background:#C2410C;color:#fff;font-family:'Sora',sans-serif;font-size:16px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background .15s}
.hk-btn:hover{background:#9A3412}
.hk-btn[disabled]{background:#64748B;cursor:default}
.hk-btn-o{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:11px 18px;border:2px solid #0A2540;border-radius:10px;background:#fff;color:#0A2540;font-family:'Sora',sans-serif;font-size:15px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}
.hk-btn-o:hover{background:#F1F5F9}
.hk-link{display:inline-block;background:none;border:0;padding:6px 0;color:#0A2540;font-family:'Sora',sans-serif;font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;text-align:left}
.hk-h2{font-size:20px;font-weight:700;color:#0A2540;margin:0 0 12px;line-height:1.3}
.hk-sec{padding-top:24px;padding-bottom:24px}
.hk-msg{font-size:14px;line-height:1.45;margin-top:10px;color:#B91C1C}
.hk-msg:empty{display:none}
.hk-ok{font-size:15px;line-height:1.5;color:#0A2540}
.hk-ok-h{font-size:20px;font-weight:700;color:#0A2540;margin-bottom:6px}
.hk-ok p{margin:0 0 8px}

/* ── Card (K5) ── */
.hk-card{display:flex;flex-direction:column;background:#fff;border:1px solid #E2E8F0;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(10,37,64,.06)}
.hk-ph{position:relative;display:block;aspect-ratio:16/10;background:#0A2540;overflow:hidden;color:#fff;text-decoration:none}
.hk-ph img{display:block;width:100%;height:100%;object-fit:cover}
.hk-ph-none{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#fff;font-size:15px;font-weight:600;padding:12px;text-align:center}
.hk-illus{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:600;padding:2px 8px;border-radius:100px}
.hk-cb{display:flex;flex-direction:column;flex:1;padding:12px 14px 14px;gap:4px}
.hk-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:2px}
.hk-chips:empty{display:none}
.hk-lbl{display:inline-block;font-size:12px;font-weight:600;line-height:1.3;padding:2px 8px;border-radius:6px;background:#F1F5F9;color:#334155;border:1px solid #E2E8F0}
.hk-lbl-ex{background:#F3F4F6;color:#4B5563}
.hk-lbl-sp{background:#FEF3C7;color:#78350F;border-color:#FCD34D}
.hk-lbl-paid{background:#EFF6FF;color:#1E3A8A;border-color:#BFDBFE}
.hk-t{font-size:17px;font-weight:700;line-height:1.3;color:#0A2540;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hk-t a{color:inherit;text-decoration:none}
.hk-t a:hover{text-decoration:underline}
.hk-loc{font-size:14px;color:#475569}
.hk-price{font-size:15px;font-weight:700;color:#0A2540}
.hk-cash{font-size:14px;color:#334155}
.hk-cbtn{margin-top:auto;padding-top:10px}
.hk-card .hk-btn,.hk-card .hk-btn-o{min-height:46px}
.hk-sent{background:#065F46!important}
/* compact (D's results): 96px square photo on the left */
.hk-card.hk-compact{display:grid;grid-template-columns:96px 1fr;gap:0 12px;padding:12px;border-radius:12px}
.hk-compact .hk-ph{width:96px;height:96px;aspect-ratio:auto;border-radius:8px}
.hk-compact .hk-ph-none{font-size:11px;padding:6px}
.hk-compact .hk-illus{left:4px;bottom:4px;font-size:9.5px;padding:1px 5px}
.hk-compact .hk-cb{padding:0;gap:2px}
.hk-compact .hk-t{font-size:15px}
.hk-compact .hk-loc,.hk-compact .hk-cash{font-size:13px}
.hk-compact .hk-price{font-size:14px}
.hk-compact .hk-cbtn{grid-column:1/-1;padding-top:10px}
/* skeleton at the card's final height */
.hk-skel{border:1px solid #E2E8F0;border-radius:14px;overflow:hidden;background:#fff}
.hk-skel-ph{aspect-ratio:16/10;background:#E2E8F0}
.hk-skel-b{height:150px;padding:14px}
.hk-skel-b i{display:block;height:14px;border-radius:6px;background:#E2E8F0;margin-bottom:10px}
.hk-skel-b i:nth-child(2){width:70%}.hk-skel-b i:nth-child(3){width:45%}
.hk-skel.hk-compact{height:178px}
@media(prefers-reduced-motion:no-preference){.hk-skel-ph,.hk-skel-b i{animation:hkPulse 1.4s ease-in-out infinite}}
@keyframes hkPulse{50%{opacity:.55}}

/* ── Forms ── */
.hk-form-card,#e-alert,.hk-b-main,#hk-trades{scroll-margin-top:76px}
.hk-f{display:block;margin-bottom:12px}
.hk-f>span,.hk-legend{display:block;font-size:14px;font-weight:600;color:#0A2540;margin-bottom:5px}
.hk-f input,.hk-f select,.hk-f textarea{display:block;width:100%;min-height:46px;padding:10px 12px;border:1.5px solid #94A3B8;border-radius:10px;background:#fff;color:#0A2540;font-family:'Sora',sans-serif;font-size:16px}
.hk-f textarea{min-height:84px;resize:vertical;line-height:1.4}
.hk-f input:focus,.hk-f select:focus,.hk-f textarea:focus{border-color:#0A2540;outline:3px solid #FDBA74;outline-offset:0}
@media(min-width:400px){.hk-row2{grid-template-columns:1fr 1fr}}
.hk-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#334155;margin:4px 0 12px;cursor:pointer;line-height:1.4}
.hk-check input{width:20px;height:20px;margin-top:0;flex:0 0 auto}
.hk-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.hk-fine{font-size:13px;color:#475569;margin-top:10px;line-height:1.45}
.hk-fine a{color:#0A2540}

/* ── Chips (D's quiz, the trades block, F's best time) ── */
.hk-chip{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 10px;border:1.5px solid #94A3B8;border-radius:10px;background:#fff;color:#0A2540;font-family:'Sora',sans-serif;font-size:14.5px;font-weight:600;line-height:1.25;text-align:center;text-decoration:none;cursor:pointer}
.hk-chip:hover{border-color:#0A2540;background:#F8FAFC}
.hk-chip[aria-pressed="true"]{background:#0A2540;border-color:#0A2540;color:#fff}
.hk-trades{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.hk-trades .hk-chip{min-height:44px;border-radius:100px;padding:8px 14px;font-size:14px}

/* ── Sheet (K6: bottom sheet on a phone, right panel from 1024px) ── */
.hk-sheet-bg{position:fixed;inset:0;background:rgba(10,15,30,.55);z-index:900}
.hk-sheet{position:fixed;left:0;right:0;bottom:0;max-height:90vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#fff;color:#0A2540;border-radius:16px 16px 0 0;z-index:901;padding:16px 16px calc(20px + env(safe-area-inset-bottom));font-family:'Sora',sans-serif;box-shadow:0 -8px 30px rgba(10,37,64,.25)}
.hk-sheet-x{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;border-radius:10px;background:#F1F5F9;color:#0A2540;font-size:20px;line-height:1;cursor:pointer}
.hk-sheet-h{font-size:19px;font-weight:700;line-height:1.3;margin:4px 52px 4px 0}
.hk-sheet-sub{font-size:14px;color:#475569;margin-bottom:4px}
.hk-sheet-head{border-bottom:1px solid #E2E8F0;padding-bottom:12px;margin-bottom:14px}
.hk-noscroll{overflow:hidden}

/* ── Sticky bar (phone) ── */
.hk-sticky{position:fixed;left:0;right:0;bottom:0;z-index:800;background:#0A2540;padding:10px 16px calc(10px + env(safe-area-inset-bottom));display:flex;gap:10px;box-shadow:0 -4px 16px rgba(10,37,64,.25)}
.hk-sticky .hk-btn{flex:1}

/* ── Seller band (K9) ── */
.hk-sell{background:#F1F5F9;padding:28px 0}
.hk-sell-in{max-width:1160px;margin:0 auto;padding:0 16px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.hk-sell-t{font-size:18px;font-weight:700;color:#0A2540}
.hk-sell .hk-btn-o{width:auto}

/* the sticky bar is for phones (900px and below) */
@media(min-width:901px){
  .hk-sticky{display:none!important}
  body.hk-has-sticky{padding-bottom:0}
}
@media(min-width:1024px){
  .hk-btn{width:auto;display:inline-flex}
  .hk-btn-o{width:auto;display:inline-flex}
  .hk-form-card .hk-btn,.hk-sheet .hk-btn,.hk-card .hk-btn,.hk-card .hk-btn-o{width:100%;display:flex}
  .hk-sheet{top:0;bottom:0;left:auto;right:0;width:440px;max-height:none;height:100%;border-radius:0;padding:24px 24px 32px;box-shadow:-8px 0 30px rgba(10,37,64,.25)}
  .hk-sell-in{flex-direction:row;align-items:center;justify-content:space-between}
}
.hk-f small,.hk-legend small{font-weight:400;color:#475569;font-size:.92em}
