:root {
    --primary: #101828;
    --border-color: #EAECF0;
    --med-text: #475467;
    --light-text: #7E8BA3;
    /* --brand-color: rgb(0,109,170); */
    --brand-color: #379392;
    --brand-color-hover: #2a7271;
  /* --brand-color: rgb(93,97,229); */
    /* --brand-color-hover: rgb(1, 94, 148); */
    /* --brand-color-hover: rgb(60,64,216); */
    --max-width: 80rem;
    --sm-break: 49rem;
    --accent-color: #b3f6e8;
    --featured: #fff7d3;
    --featured-border-color: #e8e2bc;
}
@view-transition {
  navigation: auto;
}
#primary{
  view-transition-name: primary;
}
.local body {
  border-top: 10px solid var(--brand-color);
  position: relative;
}

.local body::before {
  content: "Local";
  position: fixed;
  top: 0;
  right: 0;
  background: var(--brand-color);
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  z-index: 9999;
  border-bottom-left-radius: 4px;
}
 body {
    font: 100%/1.4em 'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";

    color: var(--primary);
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;

  }
  body > *{
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-items: top;
  }
  body > style,
  body > script{
    display: none;
  }
  h1{
    margin: 1em 0;
    line-height: 1.3em;
}
h2 {
  line-height: 1.3em;
  font-size: 2em;
  margin: 2rem auto;
}
h3{
    margin: 2em 0 1em;
}
.lc {
    max-width: 65rem;
    width: 100%;
    padding: 0 1em;
    margin: auto;
    box-sizing: border-box;
  }
  main.lc{
    width: 100%;
    background: #fff;
    min-height: 100vh;
    overflow: hidden;
    max-width: 40em;
}
input,
  textarea {
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    font-size: 1em;
    padding: 0.6em 0.4em;
  }
  .statusLabel{
    padding: .3rem .5rem;
    border-radius: .3em;
    font-size: .9em;
    font-weight: bold;
    position: relative;

}
#canny-changelog-iframe{
  min-height: auto;
}
.statusLabel.in-hand{
    background-color: rgb(253,246,222);
    color: rgb(104,85,28);
}
.statusLabel.in-hand::before{
    background-color: rgb(104,85,28);
}
.statusLabel.grading{
  color: rgb(43,85,145);
  background-color: rgb(231,242,254)
}
.statusLabel.grading:before{
  background-color: rgb(43,85,145);
}
.statusLabel.incoming{
  color: rgb(116,69,36);
  background-color: rgb(250,241,233)
}
.statusLabel.incoming:before{
  background-color: rgb(116,69,36);
}
.statusLabel.will-grade{
  color: rgb(126,63,206);
  background-color: rgb(218,209,230)
}
.statusLabel.will-grade:before{
  background-color: rgb(126,63,206);
}
.statusLabel.not-grading{
  color: rgb(43,92,92);
  background-color: rgb(218,248,248)
}
.statusLabel.not-grading:before{
  background-color: rgb(43,92,92);
}
.statusLabel.for-sale{
  color: rgb(115,13,81);
  background-color: rgb(251,223,242)
}
.statusLabel.for-sale:before{
  background-color: rgb(115,13,81);
}
.statusLabel.holding{
  color: rgb(52,69,86);
  background-color: rgb(230,235,239)
}
.statusLabel.holding:before{
  background-color: rgb(52,69,86);
}
.statusLabel.sold{
  color: rgb(20,82,41);
  background-color: rgb(222,247,231)
}
.statusLabel.sold:before{
  background-color: rgb(20,82,41);
}
contain-element > .grid-two-up:first-child,
contain-element > .grid-three-up:first-child{
  margin: 2em 0 0;
}
.grid-four-up{
  display: grid;
    align-items: baseline;
    grid-column-gap: 1em;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
@media screen and (min-width: 49rem){
  .grid-large-auto{
    display: grid;
    align-items: baseline;
    grid-template-columns: repeat(auto-fit, minmax(10px, auto));;
    grid-column-gap: 1em;
  }
  .grid-three-up{
    display: grid;
      align-items: baseline;
      grid-template-columns: 1fr 1fr 1fr;
      grid-column-gap: 1em;
      grid-auto-rows: 1fr;
      align-items: stretch;
  }
  .grid-two-up{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1em;
  }
  .grid-two-up p{
      justify-self: end;
  }
}
.form-list {
    list-style-type: none;
    padding: 0;
    margin: 3em 0 2em;
    width: 100%;
}
h3+.form-list{
    margin-top: 1em;
}
.form-list .note{
    display: block;
    margin: 0;
    font-size: .9em;
    color: var(--medium);
    font-style: italic;
}
.form-list .note + .note{
  margin-top: 1.2em;
}
.form-list li{
    display: block;
    margin-bottom: 2em;
}
.form-list label{
    display: block;
    margin-bottom: .5em;
}
.form-list label small{
  display: block;
  color: var(--medium);
}
.form-list .inline label{
    display: grid;
    grid-template-columns: 1em auto;
    gap: 0.8em;
    font-size: 1rem;
}
.form-list input[type="text"],
.form-list input[type="email"],
.form-list input[type="url"],
.form-list input[type="password"] {
    padding: .7em 1em;
    width: 100%;
    box-sizing: border-box;
}
.form-list select{
    border: 1px solid var(--light);
    width: 100%;
    padding: .7em 1em;
    font-size: 1rem;
}
.form-list textarea{
    width: 100%;
    height: 25em;
}
.form-list textarea.concise{
  height: 10em;
}
.form-list input[type="submit"] {
    width: 100%;
    padding: 1em;
}
.form-list b{
    color: red;
}
select{
    border: 1px solid var(--border-color);
width: 100%;
padding: .7em 1em;
font-size: 1rem;
  }

.btn{
  background: var(--brand-color);
  color: #fff;
  padding: .5em 1.4em;
  text-decoration: none;
  border-radius: .3em;
  box-sizing: border-box;
}
.btn:hover{
  background: var(--brand-color-hover)
}
input[type="submit"].btn,
button.btn{
  border: 0;
  font-size: 1rem;
  line-height: 1.4em;
}
.btn-light{
  background: #fff;
  color: var(--primary);
  border: 1px solid #e7e7e7;
  box-shadow: 0 0 0 1px #e7e7e7;
  text-transform: uppercase;
}
.btn-light:hover{
  background: #f7f7f7;
}
.btn-alt{
    padding: .5em 1.4em;
    color: var(--brand-color);
    background: white;
    border: 1px solid var(--brand-color);
    text-decoration: none;
    border-radius: .3em;
    box-sizing: border-box;
    position: relative;
    transition: all 0.2s ease-in-out;
  }
  .btn-alt:hover{
    background: var(--border-color);
  }
/* class to hide content visually leaving it available to screenreaders.
See notes in cookbook recipe.
https://github.com/h5bp/html5-boilerplate/issues/1985#issuecomment-394096182
https://medium.com/@matuzo/writing-css-with-accessibility-in-mind-8514a0007939
*/
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: auto;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* table styles */
table{
  width: 100%;
  margin: 1em auto;
  border: 1px solid var(--border-color);
  border-radius: .4em;
  border-collapse: collapse;
}
td {
  padding: .8em .5em;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  border-left:1px solid var(--border-color);
}
thead{
border-radius:.4em;
}
thead th{
  border-bottom: 1px solid var(--border-color);
  padding: .8em .5em;
  color: var(--med-text);
  font-weight: normal;
  font-size: .8em;
}
th{
text-align: left;
}
tbody{
  font-size: .9em;
}
tbody td{
border: 0;
border-bottom: 1px solid var(--border-color);
vertical-align: middle;
}
tfoot td{
  border: 0;
  border-top: 1px solid var(--border-color);
  padding: .8em .5em;
  font-weight: bold;
  font-size: .9em;
}
.num{
  text-align: right;
}

/* ═══════════════════════════════════════════════
   PRESENTATION MODE — broadcast dark theme
   ═══════════════════════════════════════════════ */

/* ── Base slide layout ── */
body.presenting .slide,
body.presenting .slide-table-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4vw 7vw;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow: hidden;
  z-index: 1000;
  box-sizing: border-box;
  font-family: inherit;
}
body.presenting .slide.active,
body.presenting .slide-table-page.active {
  opacity: 1;
  pointer-events: auto;
}

/* Subtle grid background */
body.presenting .slide::before,
body.presenting .slide-table-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(55,147,146,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,147,146,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Teal accent bar at top */
body.presenting .slide::after,
body.presenting .slide-table-page::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #379392, #46dedc, transparent);
  z-index: 0;
}

/* Ensure slide content sits above pseudo-elements */
body.presenting .slide > *,
body.presenting .slide-table-page > * {
  position: relative;
  z-index: 1;
}

/* ── Background orb animations ── */
@keyframes present-orb-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(8vw, -6vh) scale(1.1); }
  66%  { transform: translate(-6vw, 8vh) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes present-orb-2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-8vw, 7vh) scale(0.9); }
  66%  { transform: translate(7vw, -7vh) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes present-orb-3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-7vw, -6vh) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

#present-bg {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  display: none;
  background: #0d1117;
}
body.presenting #present-bg { display: block; }

#present-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
#present-bg .orb-1 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(55,147,146,0.45), transparent 70%);
  top: -20%; left: -15%;
  animation: present-orb-1 8s ease-in-out infinite;
}
#present-bg .orb-2 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(70,222,220,0.3), transparent 70%);
  bottom: -15%; right: -10%;
  animation: present-orb-2 10s ease-in-out infinite;
}
#present-bg .orb-3 {
  width: 35vw; height: 35vw;
  background: radial-gradient(circle, rgba(55,147,146,0.25), transparent 70%);
  top: 35%; left: 50%;
  animation: present-orb-3 7s ease-in-out infinite;
}

/* ── Slide 1: Title card ── */
body.presenting #slide-1 {
  justify-content: center;
  align-items: flex-start;
}
body.presenting #slide-1 .str-page-header {
  border: none;
  padding: 0;
  max-width: 70%;
}
body.presenting .str-page-eyebrow {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #379392;
  margin-bottom: 1.875rem;
}
body.presenting .str-page-title {
  font-size: clamp(4.5rem, 9vw, 8.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin: 0 0 1.875rem;
}
body.presenting .str-page-sub {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  color: rgba(255,255,255,0.5);
  margin: 0 0 3rem;
  line-height: 1.5;
}
body.presenting .str-page-meta {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.35);
  gap: 2.25rem;
  padding: 0;
}
body.presenting .str-page-meta strong {
  color: rgba(255,255,255,0.6);
}
body.presenting .present-btn { display: none; }

/* ── Section slides: shared header ── */
body.presenting .editorial-section {
  border: none !important;
  margin: 0;
  padding: 0;
}
body.presenting .section-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #379392;
  margin-bottom: 0.9rem;
}
body.presenting .section-headline {
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.05;
}
body.presenting .section-dek {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.875rem;
}

/* ── Card + row stagger-in animation ── */
@keyframes present-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes present-row-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes present-header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide header elements animate in */
body.presenting .slide.active .str-page-eyebrow,
body.presenting .slide.active .section-label {
  animation: present-header-in 0.4s ease both;
  animation-delay: 0.05s;
}
body.presenting .slide.active .str-page-title,
body.presenting .slide.active .section-headline {
  animation: present-header-in 0.45s ease both;
  animation-delay: 0.15s;
}
body.presenting .slide.active .str-page-sub,
body.presenting .slide.active .str-page-meta,
body.presenting .slide.active .section-dek {
  animation: present-header-in 0.4s ease both;
  animation-delay: 0.25s;
}

/* Cards stagger in */
body.presenting .slide.active .hot-card:nth-child(1) {
  animation: present-card-in 0.45s ease both;
  animation-delay: 0.3s;
}
body.presenting .slide.active .hot-card:nth-child(2) {
  animation: present-card-in 0.45s ease both;
  animation-delay: 0.48s;
}
body.presenting .slide.active .hot-card:nth-child(3) {
  animation: present-card-in 0.45s ease both;
  animation-delay: 0.66s;
}
body.presenting .slide.active .hot-card:nth-child(4) {
  animation: present-card-in 0.45s ease both;
  animation-delay: 0.84s;
}
body.presenting .slide.active .hot-card:nth-child(5) {
  animation: present-card-in 0.45s ease both;
  animation-delay: 1.02s;
}
body.presenting .slide.active .hot-card:nth-child(6) {
  animation: present-card-in 0.45s ease both;
  animation-delay: 1.2s;
}

/* Table rows stagger in from the left */
body.presenting .slide-table-page.active tbody tr:nth-child(1) {
  animation: present-row-in 0.4s ease both;
  animation-delay: 0.2s;
}
body.presenting .slide-table-page.active tbody tr:nth-child(2) {
  animation: present-row-in 0.4s ease both;
  animation-delay: 0.32s;
}
body.presenting .slide-table-page.active tbody tr:nth-child(3) {
  animation: present-row-in 0.4s ease both;
  animation-delay: 0.44s;
}
body.presenting .slide-table-page.active tbody tr:nth-child(4) {
  animation: present-row-in 0.4s ease both;
  animation-delay: 0.56s;
}
body.presenting .slide-table-page.active tbody tr:nth-child(5) {
  animation: present-row-in 0.4s ease both;
  animation-delay: 0.68s;
}
body.presenting .slide-table-page.active .slide-table-label {
  animation: present-header-in 0.4s ease both;
  animation-delay: 0.05s;
}
body.presenting .slide-table-page.active .slide-table-title {
  animation: present-header-in 0.45s ease both;
  animation-delay: 0.12s;
}
body.presenting .slide-table-page.active thead {
  animation: present-header-in 0.4s ease both;
  animation-delay: 0.18s;
}

/* ── Presentation cards (hottest/movers/fallers/sport) ── */
body.presenting .hot-grid,
body.presenting .movers-grid,
body.presenting .sport-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 65vh;
  overflow: hidden;
}

/* Each card: single full-width row */
body.presenting .hot-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(55,147,146,0.2);
  border-left: 3px solid #379392;
  border-radius: 12px;
  padding: 1.125rem 1.875rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  transition: none;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}
body.presenting .hot-card:hover { box-shadow: none; }

/* Left: avatar/rank + identity — fixed width */
body.presenting .card-header {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  width: 28%;
  flex-shrink: 0;
}
body.presenting .card-header-text {
  min-width: 0;
}
body.presenting .trend-up { color: #4ade80; }
body.presenting       .trend-down { color: #e05252; }
body.presenting .card-name {
  font-size: clamp(1.5rem, 2.7vw, 1.95rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
}
body.presenting .card-sport {
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* Middle: chips — flex 1, horizontal row */
body.presenting .card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
body.presenting .card-chips {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: center;
}
body.presenting .card-chips .stat-chip {
  flex: 1;
  text-align: center;
  max-width: 10.5rem;
}
body.presenting .card-gain {
  font-size: 1.2rem;
  color: #46dedc;
  font-weight: 700;
  white-space: nowrap;
  margin-right: 1.5rem;
}

/* Right: score */
body.presenting .card-score {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  text-align: right;
  flex-shrink: 0;
  width: 9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
body.presenting .card-score .score-label {
  color: rgba(255,255,255,0.3);
  font-size: 0.825rem;
}
body.presenting .score-high { color: #4ade80; }
body.presenting .score-med  { color: #fbbf24; }
body.presenting .score-low  { color: #f87171; }

body.presenting .stat-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 1.125rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}
body.presenting .stat-chip strong { color: #fff; }
body.presenting .trend-up  { color: #4ade80; }
body.presenting .trend-down { color: #f87171; }

body.presenting .hot-rank {
  width: 5.25rem;
  height: 5.25rem;
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 50%;
  background: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.presenting .hot-rank span { color: #0d1117; }
body.presenting .card-avatar-wrap { flex-shrink: 0; }
body.presenting .card-avatar-wrap .rank-avatar { width: auto; height: 8.25rem; }
body.presenting .rank-avatar { width: auto; height: 8.25rem; margin-right: 0; }
body.presenting .card-emoji { font-size: 3.75rem; width: 5.25rem; flex-shrink: 0; }

body.presenting .card-rank-badge { 
  width: 3.75rem;
  height: 3.75rem;
  font-size: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  top: -3rem;
  margin-bottom: -3rem;
  border: 3px solid rgba(0,0,0,.5);
 }
/* ── Ranked table slides ── */
body.presenting table.rank-table {
  width: 100%;
  border-collapse: collapse;
}
body.presenting table.rank-table td {
  padding: 1.2rem 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.presenting table.rank-table thead tr {
  border-bottom: 1px solid rgba(55,147,146,0.4);
}
body.presenting table.rank-table th {
  color: rgba(255,255,255,0.3);
  font-size: 0.975rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.9rem 0.9rem;
}
body.presenting .rank-num {
  font-size: 2.4rem;
  color: rgba(255,255,255,0.45);
  font-weight: 900;
}
body.presenting .rank-name {
  font-size: 1.65rem;
  color: #fff;
  font-weight: 700;
}
body.presenting .rank-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.125rem;
}
body.presenting .rank-sport {
  color: rgba(255,255,255,0.35);
}
body.presenting .rank-score {
  font-size: 2.7rem;
  font-weight: 900;
  color: #fff;
}
body.presenting .rank-score.score-high { color: #4ade80; }
body.presenting .rank-score.score-med  { color: #fbbf24; }
body.presenting .rank-score.score-low  { color: #f87171; }
body.presenting .slide-table-page .rank-sport { display: none; }
body.presenting .rank-num-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}
body.presenting .rank-change {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1;
  padding-top: .3em;
}
body.presenting .rank-change-up   { color: #4ade80; }
body.presenting .rank-change-down { color: #f87171; }
body.presenting .rank-change-same { color: rgba(255,255,255,0.15); }
body.presenting .rank-change-new  { color: #a78bfa; }

/* ── Table slide header ── */
.slide-table-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #379392;
  margin-bottom: 0.9rem;
}
.slide-table-title {
  font-size: clamp(2.7rem, 5.25vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 2.25rem;
  color: #fff;
}

/* ── Counter + nav hint ── */
#present-counter {
  position: fixed;
  bottom: 1.75rem;
  right: 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  z-index: 2000;
  display: none;
}
#present-nav-hint {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.02rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  z-index: 2000;
  display: none;
}
body.presenting #present-counter,
body.presenting #present-nav-hint { display: block; }