/* NHL Games Hub front-end 0.1.0 */
.nh-wrap{--nh-accent:#2B6CB0;--nh-dark:#0A1628;--nh-bg:#fff;--nh-bg2:#f5f7fa;--nh-line:#e3e8ef;--nh-text:#0f172a;--nh-muted:#64748b;--nh-live:#d61f2c;--nh-r:12px;--nh-sh:0 1px 2px rgba(15,23,42,.06),0 4px 14px rgba(15,23,42,.05);
  color:var(--nh-text);font-size:15px;line-height:1.5;max-width:100%;box-sizing:border-box}
.nh-wrap *,.nh-wrap *::before,.nh-wrap *::after{box-sizing:border-box}
.nh-wrap a{color:var(--nh-accent)}
.nh-wrap .nh-h2{font-size:1.4rem;line-height:1.25;margin:2rem 0 .75rem;text-align:center;color:var(--nh-dark);scroll-margin-top:72px}
.nh-wrap .nh-h3{font-size:1.05rem;margin:1.25rem 0 .5rem;color:var(--nh-dark)}
.nh-intro{font-size:1.05rem;margin:0 0 1rem}
.nh-p{margin:.5rem 0 1rem}
.nh-muted{color:var(--nh-muted)}
.nh-empty{padding:1rem;border:1px dashed var(--nh-line);border-radius:var(--nh-r);color:var(--nh-muted);text-align:center}
.nh-adminnote{background:#fff7e6;border:1px solid #f5c26b;border-radius:8px;padding:.6rem .9rem;margin:0 0 1rem;font-size:.9rem}
.nh-upd{font-size:.8rem;color:var(--nh-muted);text-align:center;margin:1rem 0 0}
.nh-more{text-align:right;font-size:.9rem;margin:.25rem 0 0}

/* Key numbers */
.nh-kn{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem;margin:0 0 1.25rem}
.nh-kn-i{background:var(--nh-bg);border:1px solid var(--nh-line);border-radius:var(--nh-r);padding:.7rem .8rem;box-shadow:var(--nh-sh);display:flex;flex-direction:column;gap:.1rem;text-align:center}
.nh-kn-v{font-size:1.45rem;font-weight:700;color:var(--nh-dark);line-height:1.1}
.nh-kn-l{font-size:.74rem;color:var(--nh-muted);text-transform:uppercase;letter-spacing:.03em}
.nh-kn-s{font-size:.78rem;color:var(--nh-muted)}

/* Toolbar / filters */
.nh-bar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:center;margin:0 0 .75rem}
.nh-toolbar{justify-content:flex-end}
.nh-toggle{display:inline-flex;border:1px solid var(--nh-line);border-radius:999px;overflow:hidden;background:var(--nh-bg)}
.nh-tg{border:0;background:transparent;padding:.35rem .8rem;font:inherit;font-size:.82rem;cursor:pointer;color:var(--nh-muted)}
.nh-tg.is-active{background:var(--nh-accent);color:#fff}
.nh-tabs{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:center}
.nh-tab{border:1px solid var(--nh-line);background:var(--nh-bg);border-radius:999px;padding:.35rem .75rem;font:inherit;font-size:.82rem;cursor:pointer;color:var(--nh-dark)}
.nh-tab.is-active{background:var(--nh-dark);color:#fff;border-color:var(--nh-dark)}
.nh-tab-y{opacity:.6;font-size:.72rem}
.nh-select select{font:inherit;font-size:.85rem;padding:.35rem .6rem;border:1px solid var(--nh-line);border-radius:8px;background:var(--nh-bg);color:var(--nh-text)}
.nh-month-body{min-height:80px}
.nh-month-body.is-loading{opacity:.5}

/* Table */
.nh-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 .75rem;border:1px solid var(--nh-line);border-radius:var(--nh-r);background:var(--nh-bg);box-shadow:var(--nh-sh)}
.nh-table{width:100%;border-collapse:collapse;margin:0;font-size:.92rem}
.nh-table th{background:var(--nh-bg2);color:var(--nh-muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;padding:.55rem .7rem;text-align:left;border-bottom:1px solid var(--nh-line);white-space:nowrap}
.nh-table td{padding:.55rem .7rem;border-bottom:1px solid var(--nh-line);vertical-align:middle}
.nh-table tbody tr:last-child td{border-bottom:0}
.nh-table tbody tr:hover td{background:#fafbfd}
.nh-c-time{white-space:nowrap;width:1%}
.nh-c-tv{white-space:nowrap;max-width:180px;font-size:.85rem}
.nh-c-st{white-space:nowrap;width:1%;text-align:right}
.nh-c-date{white-space:nowrap;width:1%}
.nh-time{font-weight:600;color:var(--nh-dark)}
.nh-row-live td{background:#fff5f5}
.nh-row-final .nh-time{color:var(--nh-muted);font-weight:500}

/* Matchup */
.nh-mu{display:flex;flex-direction:column;gap:.25rem;min-width:200px}
.nh-t{display:flex;align-items:center;gap:.5rem;padding-left:.4rem;border-left:3px solid var(--tc,var(--nh-line))}
.nh-logo{width:26px;height:26px;object-fit:contain;flex:0 0 26px}
.nh-logo-ab{display:inline-flex;align-items:center;justify-content:center;font-size:.62rem;font-weight:700;border-radius:50%;background:var(--tc,#ccc);color:#fff;letter-spacing:.02em}
.nh-n{font-weight:600;color:var(--nh-text);text-decoration:none}
a.nh-n:hover{text-decoration:underline}
.nh-ab{display:none;color:var(--nh-muted);font-size:.75rem}
.nh-s{margin-left:auto;font-weight:700;font-variant-numeric:tabular-nums;min-width:1.4em;text-align:right;color:var(--nh-dark)}
.nh-win .nh-n{color:var(--nh-dark)}
.nh-win .nh-s{color:var(--nh-accent)}
.nh-row-final .nh-t:not(.nh-win) .nh-n,.nh-row-final .nh-t:not(.nh-win) .nh-s{color:var(--nh-muted);font-weight:500}
.nh-per{font-size:.74rem;color:var(--nh-muted);margin-top:.25rem;padding-left:.6rem}

/* Status */
.nh-st{display:inline-block;font-size:.74rem;font-weight:700;padding:.2rem .55rem;border-radius:999px;background:var(--nh-bg2);color:var(--nh-muted);white-space:nowrap}
.nh-st-live{background:var(--nh-live);color:#fff;animation:nh-pulse 1.6s ease-in-out infinite}
.nh-st-final{background:var(--nh-dark);color:#fff}
.nh-st-postponed,.nh-st-canceled{background:#fde68a;color:#7c5a00}
@keyframes nh-pulse{0%,100%{opacity:1}50%{opacity:.65}}

/* Cards mode (mobile default, or forced) */
@media (max-width:640px){.nh-wrap:not(.nh-force-table) .nh-table{display:block}
  .nh-wrap:not(.nh-force-table) .nh-table thead{display:none}
  .nh-wrap:not(.nh-force-table) .nh-table tbody,.nh-wrap:not(.nh-force-table) .nh-table tr{display:block}
  .nh-wrap:not(.nh-force-table) .nh-table tr{padding:.6rem .7rem;border-bottom:1px solid var(--nh-line)}
  .nh-wrap:not(.nh-force-table) .nh-table td{display:block;border:0;padding:.15rem 0}
  .nh-wrap:not(.nh-force-table) .nh-c-time,.nh-wrap:not(.nh-force-table) .nh-c-date{display:inline-block;margin-right:.6rem}
  .nh-wrap:not(.nh-force-table) .nh-c-st{display:inline-block;float:right;text-align:right}
  .nh-wrap:not(.nh-force-table) .nh-c-tv::before{content:"TV: ";color:var(--nh-muted);font-size:.78rem}
  .nh-wrap:not(.nh-force-table) .nh-mu{min-width:0;margin:.3rem 0}
  .nh-wrap:not(.nh-force-table) .nh-tablewrap{overflow:visible}}
.nh-wrap.nh-cards .nh-table{display:block}
.nh-wrap.nh-cards .nh-table thead{display:none}
.nh-wrap.nh-cards .nh-table tbody,.nh-wrap.nh-cards .nh-table tr{display:block}
.nh-wrap.nh-cards .nh-table tr{padding:.6rem .7rem;border-bottom:1px solid var(--nh-line)}
.nh-wrap.nh-cards .nh-table td{display:block;border:0;padding:.15rem 0}
.nh-wrap.nh-cards .nh-c-time,.nh-wrap.nh-cards .nh-c-date{display:inline-block;margin-right:.6rem}
.nh-wrap.nh-cards .nh-c-st{display:inline-block;float:right}
.nh-wrap.nh-cards .nh-c-tv::before{content:"TV: ";color:var(--nh-muted);font-size:.78rem}
.nh-wrap.nh-cards .nh-mu{min-width:0;margin:.3rem 0}
.nh-wrap.nh-cards .nh-tablewrap{overflow:visible}

/* Section pill bar */
.nh-pills{display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:none;padding:.45rem .5rem;margin:0 0 1rem;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.2) blur(6px);border:1px solid var(--nh-line);border-radius:999px;position:sticky;top:0;z-index:20}
.nh-pills::-webkit-scrollbar{display:none}
.nh-pills a{flex:0 0 auto;font-size:.8rem;font-weight:600;color:var(--nh-dark);text-decoration:none;padding:.3rem .75rem;border-radius:999px}
.nh-pills a.is-active,.nh-pills a:hover{background:var(--nh-accent);color:#fff}
.nh-pills.nh-fixed{position:fixed;top:var(--nh-fixtop,0);left:var(--nh-fixleft,0);width:var(--nh-fixw,auto);border-radius:0 0 12px 12px}
.admin-bar .nh-pills{top:32px}
@media (max-width:782px){.admin-bar .nh-pills{top:46px}}

/* FAQ */
.nh-faq{display:flex;flex-direction:column;gap:.5rem}
.nh-faq-i{background:var(--nh-bg);border:1px solid var(--nh-line);border-radius:var(--nh-r);padding:0;box-shadow:var(--nh-sh)}
.nh-faq-i summary{list-style:none;cursor:pointer;padding:.8rem 2.5rem .8rem 1rem;position:relative}
.nh-faq-i summary::-webkit-details-marker{display:none}
.nh-faq-i summary::after{content:"+";position:absolute;right:1rem;top:.65rem;font-size:1.3rem;color:var(--nh-accent);line-height:1}
.nh-faq-i[open] summary::after{content:"\2212"}
.nh-faq-q{font-size:1rem;margin:0;display:inline;font-weight:600;color:var(--nh-dark)}
.nh-faq-a{padding:0 1rem .9rem}
.nh-faq-a p{margin:0}

/* Days accordion (scores) */
.nh-day{margin:0 0 .5rem}
.nh-day summary{cursor:pointer;list-style:none}
.nh-day summary::-webkit-details-marker{display:none}
.nh-day summary .nh-h3{display:inline-block;margin:.4rem 0}
.nh-day summary .nh-h3::before{content:"\25B8";margin-right:.4rem;color:var(--nh-accent)}
.nh-day[open] summary .nh-h3::before{content:"\25BE"}

/* Key dates */
.nh-dates{margin:0;padding:0 0 0 1.1rem}
.nh-dates li{margin:.25rem 0}

/* Share */
.nh-share{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;margin:1.25rem auto 0;max-width:720px;padding:.7rem .9rem;border:1px solid var(--nh-line);border-radius:var(--nh-r);background:var(--nh-bg2)}
.nh-share-l{font-size:.85rem;font-weight:600;color:var(--nh-dark);margin-right:.3rem}
.nh-sh{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 .7rem;border-radius:999px;border:1px solid var(--nh-line);background:var(--nh-bg);color:var(--nh-dark);font:inherit;font-size:.82rem;font-weight:700;text-decoration:none;cursor:pointer}
.nh-sh:hover{background:var(--nh-accent);color:#fff;border-color:var(--nh-accent)}

/* Print */
@media print{.nh-bar,.nh-share,.nh-pills,.nh-toggle{display:none!important}.nh-tablewrap{box-shadow:none}}

/* ---- 0.2.0: standings ---- */
.nh-viewbar{justify-content:space-between}
.nh-view[hidden]{display:none}
.nh-cap{caption-side:top;text-align:left;font-weight:700;color:var(--nh-dark);padding:.5rem .7rem;background:var(--nh-bg2);border-bottom:1px solid var(--nh-line);font-size:.85rem}
.nh-st-table td,.nh-st-table th{text-align:center;padding:.5rem .45rem;font-variant-numeric:tabular-nums}
.nh-st-table th.nh-c-team,.nh-st-table td.nh-c-team{text-align:left;min-width:190px}
.nh-st-table .nh-c-rk{width:1%;color:var(--nh-muted)}
.nh-st-table .nh-c-pts{font-size:1rem}
.nh-st-table .nh-t{border-left-width:3px}
.nh-st-table .nh-mu{min-width:0}
.nh-strow.nh-hl td{background:#eef4fb}
.nh-strow.nh-cut td{border-bottom:2px solid var(--nh-accent)}
.nh-strow.nh-elim .nh-n{color:var(--nh-muted)}
.nh-pos{color:#15803d;font-weight:600}
.nh-neg{color:#b91c1c}
.nh-tag{display:inline-block;font-size:.68rem;font-weight:800;padding:.05rem .35rem;border-radius:4px;background:var(--nh-dark);color:#fff;vertical-align:middle;margin-left:.2rem}
.nh-legend{font-size:.8rem;color:var(--nh-muted);margin:.5rem 0 0}
@media (max-width:640px){.nh-wrap:not(.nh-force-table) .nh-st-table thead{display:none}
  .nh-wrap:not(.nh-force-table) .nh-st-table td{display:inline-block;padding:.15rem .4rem .15rem 0;font-size:.82rem}
  .nh-wrap:not(.nh-force-table) .nh-st-table td::before{content:attr(data-label) " ";color:var(--nh-muted);font-size:.7rem}
  .nh-wrap:not(.nh-force-table) .nh-st-table td.nh-c-team{display:block;min-width:0}
  .nh-wrap:not(.nh-force-table) .nh-st-table td.nh-c-team::before,.nh-wrap:not(.nh-force-table) .nh-st-table td.nh-c-rk::before{content:none}
  .nh-wrap:not(.nh-force-table) .nh-st-table td.nh-c-rk{float:left;margin-right:.4rem;font-weight:700}}
.nh-wrap.nh-cards .nh-st-table thead{display:none}
.nh-wrap.nh-cards .nh-st-table td{display:inline-block;padding:.15rem .4rem .15rem 0;font-size:.82rem}
.nh-wrap.nh-cards .nh-st-table td::before{content:attr(data-label) " ";color:var(--nh-muted);font-size:.7rem}
.nh-wrap.nh-cards .nh-st-table td.nh-c-team{display:block;min-width:0}
.nh-wrap.nh-cards .nh-st-table td.nh-c-team::before,.nh-wrap.nh-cards .nh-st-table td.nh-c-rk::before{content:none}
.nh-wrap.nh-cards .nh-st-table td.nh-c-rk{float:left;margin-right:.4rem;font-weight:700}

/* ---- teams hub ---- */
.nh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.6rem;margin:0 0 1rem}
.nh-tcard{display:flex;gap:.7rem;align-items:center;background:var(--nh-bg);border:1px solid var(--nh-line);border-left:4px solid var(--tc,var(--nh-accent));border-radius:var(--nh-r);padding:.7rem .8rem;text-decoration:none;color:var(--nh-text);box-shadow:var(--nh-sh);transition:transform .12s}
.nh-tcard:hover{transform:translateY(-2px);text-decoration:none}
.nh-tcard-logo{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
.nh-tcard-body{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.nh-tcard-name{font-weight:700;color:var(--nh-dark)}
.nh-tcard-rec{font-size:.8rem;color:var(--nh-muted)}
.nh-tcard-next{font-size:.76rem;color:var(--nh-accent)}

/* ---- team page ---- */
.nh-hero{display:flex;gap:1rem;align-items:center;background:var(--nh-bg);border:1px solid var(--nh-line);border-radius:16px;padding:1rem 1.2rem;margin:0 0 1rem;box-shadow:var(--nh-sh);position:relative;overflow:hidden}
.nh-hero::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(var(--tc),var(--tc2,var(--tc)))}
.nh-hero-logo{width:84px;height:84px;object-fit:contain;flex:0 0 84px;border-radius:50%;background:var(--nh-bg2);padding:6px;box-shadow:0 0 0 3px var(--tc)}
.nh-hero-logo.nh-logo-ab{font-size:1rem;display:inline-flex;align-items:center;justify-content:center}
.nh-hero-sub{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--nh-muted)}
.nh-hero-rec{font-size:1.8rem;font-weight:800;color:var(--nh-dark);line-height:1.1}
.nh-hero-pts{font-size:1rem;font-weight:600;color:var(--nh-accent);margin-left:.4rem}
.nh-hero-meta{font-size:.85rem;color:var(--nh-muted);margin-top:.2rem}
.nh-mrow td{background:var(--nh-bg2);font-weight:700;color:var(--nh-dark);font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}
.nh-ha{display:inline-block;width:1.6em;color:var(--nh-muted);font-size:.8rem}
.nh-table-team td{vertical-align:middle}
.nh-table-team .nh-t{display:inline-flex;border-left:0;padding-left:0}
.nh-res{display:inline-block;min-width:2.2em;text-align:center;font-size:.72rem;font-weight:800;padding:.1rem .3rem;border-radius:4px;background:var(--nh-bg2);color:var(--nh-muted)}
.nh-w .nh-res{background:#dcfce7;color:#166534}
.nh-l .nh-res{background:#fee2e2;color:#991b1b}
.nh-otl .nh-res{background:#fef3c7;color:#92400e}
@media (max-width:640px){.nh-wrap:not(.nh-force-table) .nh-mrow td{display:block}.nh-hero{flex-direction:column;text-align:center}.nh-hero::before{width:100%;height:6px;bottom:auto}}
.nh-wrap.nh-cards .nh-mrow td{display:block}
