/* =========================================================================
   dexwatch — homepage-specific styles (hero, featured, cards, lists)
   ========================================================================= */

/* ---- hero ---- */
.hero { padding: 64px 0 24px; position: relative; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { max-width: 16ch; margin-top: 18px; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 56ch; margin-top: 18px; line-height: 1.5; }
.hero-search { margin-top: 28px; max-width: 620px; }
.hero-hint { margin-top: 12px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-hint .chip { cursor: pointer; }
.hero-hint .chip:hover { border-color: var(--accent); color: var(--ink); }

.hero-tools { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tools a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  font-size: 13.5px; font-weight: 650; color: var(--ink-2);
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  transition: border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.hero-tools a:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.hero-tools a svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.hero-status-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.hero-stat { padding: 18px 22px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: none; }
.hs-val { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.hs-lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
@media (max-width: 760px){ .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-stat:nth-child(2){ border-right: none; } .hero-stat:nth-child(1),.hero-stat:nth-child(2){ border-bottom: 1px solid var(--line); } }

/* ---- awards / highlights ---- */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px){ .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .awards-grid { grid-template-columns: 1fr; } }
.award {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s, border-color .15s;
}
.award:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.award-ic { flex: none; width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-wash); color: color-mix(in oklch, var(--accent) 72%, var(--ink)); border: 1px solid var(--accent-line); }
.award-ic svg { width: 20px; height: 20px; }
.award-body { min-width: 0; }
.award-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.award-name { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.award-note { font-size: 12px; color: var(--ink-3); }

/* ---- featured label row ---- */
.feat-card .lblrow { margin-top: -2px; }

/* ---- section header ---- */
.sec { padding-top: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sec-head .sec-sub { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; }

/* ---- featured ---- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px){ .featured-grid { grid-template-columns: 1fr; } }
.feat-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .12s ease, box-shadow .15s, border-color .15s; }
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feat-top { display: flex; align-items: center; gap: 12px; }
.feat-id { display: flex; flex-direction: column; }
.feat-name { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.feat-ticker { font-size: 11px; color: var(--ink-3); }
.feat-top .badge { margin-left: auto; }
.feat-tag { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; }
.feat-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat-stats > div { display: flex; flex-direction: column; gap: 2px; }
.fs-l { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.fs-v { font-size: 15px; font-weight: 600; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; }

/* ---- explorer header ---- */
.explorer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.explorer-head .left-side { display: flex; align-items: baseline; gap: 12px; }
.explorer-head h2 { font-size: clamp(20px, 2.2vw, 26px); }
#explorerLabel { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.layout-switch { display: inline-flex; }

/* ---- table scroll ---- */
.tbl-scroll { overflow-x: auto; }
.tbl-scroll::-webkit-scrollbar { height: 8px; }
.tbl-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

/* ---- cards grid ---- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ex-card { position: relative; transition: transform .12s ease, box-shadow .15s, border-color .15s; }
.ex-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.ex-card-link { display: block; padding: 18px; }
.ex-card-top { display: flex; align-items: center; gap: 12px; }
.ex-card-top .nm { font-weight: 750; font-size: 15.5px; }
.ex-card-top .tk { font-size: 11px; color: var(--ink-3); }
.ex-card-type { margin-top: 14px; }
.ex-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ex-card-grid > div { display: flex; flex-direction: column; gap: 2px; }
.ex-card-grid .l { font-size: 10.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ex-card-grid .v { font-size: 15px; font-weight: 600; }
.ex-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; }
.card-star { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 18px; }

/* ---- mini lists ---- */
.lists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px){ .lists-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px){ .lists-grid { grid-template-columns: 1fr; } }
.mini { overflow: hidden; }
.mini-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.mini-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.mini-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.mini-body { padding: 6px; }
.ml-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); transition: background .12s; }
.ml-item:hover { background: var(--surface-hover); }
.ml-rank { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); width: 14px; }
.ml-nm { font-weight: 650; font-size: 14px; }
.ml-v { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.ml-item .delta { margin-left: auto; }

/* ---- nav search (desktop) ---- */
.nav-search { position: relative; width: 240px; }
.nav-search .search { height: 38px; font-size: 14px; padding-left: 38px; box-shadow: none; }
.nav-search .search-ic { left: 12px; }
.nav-search .search-ic svg { width: 16px; height: 16px; }
@media (max-width: 860px){ .nav-search { display: none; } .nav-links { display: none; } }

/* ---- learn ---- */
.learn-ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 16px; background: var(--accent-wash); color: color-mix(in oklch, var(--accent) 70%, var(--ink)); border: 1px solid var(--accent-line); }
