/* Homepage-style pages (home, Blog, Coming soon). Colors come from the palette in site.css :root. */
body.home{
  font-family:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--ink);
}
.home .logo,.home h1,.home h2{font-family:"Source Serif 4",Georgia,"Times New Roman",serif;font-weight:500}
.home header.site{background:var(--bg)}
.home header.site nav.main{font-family:var(--sans)}  /* same header on every page */
.home .logo{font-size:26px;letter-spacing:-.3px;color:var(--primary)}
.home nav.main a{padding:12px 0}
.home .hw{max-width:760px;margin:0 auto;padding:0 20px}
.home .hw.wide{max-width:1120px}
.home .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* score chips (shared by hero example and top picks) */
.sc{display:flex;flex-direction:column;align-items:center;gap:1px;border-radius:12px;padding:8px 6px 6px;min-width:0;text-align:center}
.sc .l{font-size:12px;line-height:1.2}
.sc .n{font-size:22px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.sc.hi{background:var(--hi-bg);color:var(--hi-ink)}
.sc.md{background:var(--md-bg);color:var(--md-ink)}
.sc.lo{background:var(--lo-bg);color:var(--lo-ink)}
.sc.na{background:var(--na-bg);color:var(--na-ink)}
.sc.rk{outline:2px solid var(--primary);outline-offset:0}

/* hero (search first, centered) */
.hhero{padding:72px 0 40px;text-align:center}
.eyebrow{margin:0 0 18px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:500}
.hhero h1{margin:0 0 16px;font-size:clamp(36px,6vw,60px);line-height:1.08;letter-spacing:-1px}
.hhero .sub{margin:0 auto 32px;font-size:19px;line-height:1.55;color:var(--muted);max-width:600px}
.hs{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:8px 8px 8px 16px;box-shadow:0 8px 28px rgba(31,90,58,.08);text-align:left;color:var(--muted)}
.hs:focus-within{outline:2px solid var(--focus);outline-offset:2px;outline-offset:2px}
.hs input{flex:1;min-width:0;min-height:48px;border:0;outline:0;background:transparent;font:inherit;font-size:18px;color:var(--ink);padding:0 4px}
.hs button{min-height:48px;padding:0 24px;border-radius:12px;border:0;background:var(--primary);color:var(--on-primary);font:inherit;font-weight:500}
.hs button:hover{background:var(--primary-hover)}
.pop{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin-top:18px}
.pop .pl{font-size:14px;color:var(--muted);margin-right:2px}
.pop a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:14px;color:var(--ink);text-decoration:none}
.pop a:hover{background:var(--tint);border-color:var(--primary);color:var(--primary)}
.browse{margin:20px 0 0;font-size:16px}
.browse a{font-weight:600;display:inline-flex;align-items:center;min-height:44px}

/* score preview (minimal centered) */
.preview{max-width:620px;margin:0 auto;padding:16px 20px 56px;text-align:center}
.pv-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pv-boxes .sc{padding:12px 6px 10px;border-radius:14px}
.pv-boxes .sc .n{font-size:30px}
.pv-boxes .cap{margin:10px 0 0;font-size:14px;color:var(--muted)}
.eg{margin:22px 0 0;font-size:14px;color:var(--muted)}
.key{margin:14px 0 0;font-size:14px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center}
.sc.k{display:inline-flex;flex-direction:row;padding:5px 12px;border-radius:99px;font-size:13px;font-weight:500}

/* sections */
.hsec{padding:24px 0 48px}
.shead{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-bottom:20px}
.shead h2{margin:0;font-size:clamp(24px,3vw,32px)}
.shead>a{font-size:15px;font-weight:600;display:inline-flex;align-items:center;min-height:44px}

/* browse by type */
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.tile{display:grid;grid-template-columns:1fr auto;grid-template-areas:"th th" "tt ar";gap:12px 8px;align-items:end;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;color:var(--ink);text-decoration:none;height:100%}
.tile:hover{border-color:var(--primary)}
.tile .th{grid-area:th}.tile .tt{grid-area:tt}.tile .ar{grid-area:ar;font-size:20px;color:var(--muted)}
.th,.ph{display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--photo-frame);border-radius:12px}
.th{aspect-ratio:1/1}.ph{aspect-ratio:1/1;margin-bottom:12px}
.th img,.ph img{width:100%;height:100%;object-fit:contain}
.tn{display:block;font-weight:600;font-size:16px;line-height:1.25}
.tc{display:block;font-size:13px;color:var(--muted);margin-top:2px}

/* top picks */
.tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:2px;-webkit-overflow-scrolling:touch}
.tab{flex:none;min-height:44px;padding:0 18px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:15px;white-space:nowrap}
.tab:hover{background:var(--tint)}
.tab[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.tpl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tpl[hidden]{display:none}
.tp{display:block;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;color:var(--ink);text-decoration:none;height:100%}
.tp:hover{border-color:var(--primary)}
.tp .tb{display:block;min-width:0}
.tp .nm{display:block;font-weight:600;font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.tp .mt{display:block;font-size:14px;color:var(--muted);margin:3px 0 10px;line-height:1.35}
.tp .chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.note{margin:16px 0 0;font-size:14px;color:var(--muted)}

/* footer */
.hfoot{background:var(--bg);border-top:1px solid var(--line);margin-top:24px;padding:32px 0 40px;color:var(--muted)}
.hfoot .wrap{max-width:1120px}
.hfoot .frow{display:flex;gap:20px 40px;justify-content:space-between;flex-wrap:wrap}
.hfoot .tag{margin:6px 0 0;font-size:14px}
.hfoot nav{display:flex;gap:4px 22px;flex-wrap:wrap}
.hfoot nav a,.hfoot .small a{color:var(--muted)}
.hfoot nav a{display:inline-flex;align-items:center;min-height:44px}
.hfoot .small{margin:14px 0 0}
.hfoot .attrib{margin-top:6px}

@media (max-width:1100px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .hhero{padding:40px 0 28px}
  .hhero .sub{font-size:17px}
  .hs{padding:6px 6px 6px 12px}
  .hs button{padding:0 18px}
  .tiles{grid-template-columns:1fr;gap:10px}
  .tile{grid-template-columns:64px 1fr auto;grid-template-areas:"th tt ar";align-items:center;padding:10px 14px}
  .tile .th{aspect-ratio:1/1}
  .tpl{grid-template-columns:1fr;gap:10px}
  .tp{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:start;padding:10px}
  .tp .ph{margin:0;aspect-ratio:1/1}
  .tp .mt{margin:2px 0 8px}
  .tp .chips{gap:6px}
  .tp .sc .n{font-size:18px}
  .pv-boxes{gap:8px}
  .pv-boxes .sc .n{font-size:24px}
}

/* touch targets */
.home .logo{display:inline-flex;align-items:center;min-height:44px}
.eg a,.key>a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.eg{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}

/* inner pages that share the homepage look (Lists, Coming soon) */
.hhero.page{padding:56px 0 24px;text-align:left}
.hhero.page h1{margin:0 0 12px}
.lead{margin:0 0 18px;font-size:19px;line-height:1.55;color:var(--muted);max-width:640px}
.ask{margin:0;font-size:16px}
.note.first{margin:0 0 18px;max-width:760px}
.llist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.lrow{display:grid;grid-template-columns:36px 84px minmax(0,1fr) auto;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px 14px 10px 10px;color:var(--ink);text-decoration:none}
.lrow:hover{border-color:var(--primary)}
.lrow .rank{font:500 22px "Source Serif 4",Georgia,serif;color:var(--muted);text-align:center}
.lrow .th{aspect-ratio:1/1}
.lrow .nm{display:block;font-weight:600;font-size:16px;line-height:1.25}
.lrow .mt{display:block;font-size:14px;color:var(--muted);margin-top:3px;line-height:1.35}
.lrow .chips{display:grid;grid-template-columns:repeat(3,76px);gap:8px}
@media (max-width:760px){
  .lrow{grid-template-columns:28px 64px minmax(0,1fr);padding:10px}
  .lrow .chips{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .lrow .sc .n{font-size:18px}
}

/* Overall (same bands as the other chips; provisional = dashed border) */
.sc.prov{border:1.5px dashed currentColor}
.pv-overall{display:flex;flex-direction:column;align-items:center;margin:0 0 22px}
.pv-overall .sc.big{padding:14px 28px 12px;border-radius:16px;min-width:140px}
.pv-overall .sc.big .l{font-size:14px}
.pv-overall .sc.big .n{font-size:40px}

/* Top picks as the directory list view (table styles come from site.css) */
div.tpl{display:block}
div.tpl[hidden]{display:none}
/* small Quality / Value / Taste bars between the stats and the Overall box */
.mbars{display:flex;flex-direction:column;gap:3px;min-width:170px}
.mb{display:grid;grid-template-columns:52px minmax(0,1fr) 28px;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
.mb .mtk{height:6px;border-radius:99px;background:var(--bar-track);overflow:hidden;display:block}
.mb .fill{display:block;height:100%;border-radius:99px}
.mb .fill.high{background:var(--bar-hi)}.mb .fill.mid{background:var(--bar-md)}.mb .fill.low{background:var(--bar-lo)}
.mb .mv{text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
div.tpl table.list td.name .mbars{display:none}
@media (max-width:860px){
  div.tpl table.list td.lbars{display:none}
  div.tpl table.list td.name .mbars{display:flex;margin-top:6px;min-width:0}
}
.soonh{margin:36px 0 10px}
