
.hy-brandbar,.hy-hero,.hy-nav {font-family:Tahoma,'Noto Sans Thai',system-ui,sans-serif;box-sizing:border-box}
.hy-brandbar{display:flex;align-items:center;justify-content:space-between;max-width:1240px;margin:auto;padding:10px 22px;border-bottom:1px solid #dce2d5}
.hy-brandbar .brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#19342f;font-size:15px;letter-spacing:normal}
.hy-brandbar .wordmark{color:#193e30;font-size:24px;line-height:1;font-weight:900;letter-spacing:-1.2px}
.hy-brandbar .wordmark>span{font-weight:500;color:#618372}
.hy-brandbar .brandperson{font-size:13px;color:#19342f;font-weight:700;padding-left:12px;border-left:1px solid #ced9d0}
.hy-brandbar .edition{font-size:10px;letter-spacing:1px;color:#63766d;font-weight:700}
.hy-hero .race-summary {color:white;border-radius:12px}
.hy-hero .racedate b {color:white}
.hy-hero .racedate small {margin:0;letter-spacing:normal}
.hy-hero .countfocus strong {font-variant-numeric:tabular-nums}
body[data-admin="false"] main:has(>.hy-hero){max-width:1240px;margin:auto;padding-top:0}
body[data-admin="false"] .hy-hero{padding:12px 0}
.hy-nav{display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:0 0 6px;border-bottom:1px solid #dce2d5;overflow-x:auto}
.hy-nav>a,.hy-nav>button{flex:none;margin:0;border:0;border-radius:10px;background:transparent;color:#51695f;font:700 13px/1.5 Tahoma,system-ui,sans-serif;text-decoration:none;padding:9px 11px;white-space:nowrap}
.hy-nav>.active{background:#19342f;color:white}
.hy-nav + .fuel-header{margin-top:16px}
@media(max-width:600px){.hy-brandbar{padding:9px 12px}.hy-brandbar .edition{display:none}body[data-admin="false"] main:has(>.hy-hero){padding-inline:10px}}
.hero .race.race-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 16px;
  background:#193e32;
}
.race-summary .racedate {
  display:flex; flex-flow:row wrap; align-items:baseline; justify-content:flex-start;
  gap:2px 8px; padding:0; border:0; text-align:start;
}
.race-summary .racedate b {flex-basis:100%;font-size:16px;line-height:1.3}
.race-summary .racedate time,.race-summary .racedate small {color:#dce9df;font-size:12px;line-height:1.4}
.race-summary .countfocus {
  display:flex; flex-direction:column; align-items:center; gap:0;
  position:relative; padding-inline-start:14px; border-inline-start:1px solid #567563;
}
.race-summary #countLabel {align-self:flex-start;color:#deeadf;font-size:12px;line-height:1.2}
.race-summary .count-amount {display:flex;align-items:baseline;gap:4px}
.race-summary #raceDays {color:#dcf4a5;font-size:30px;line-height:1.1;font-weight:750}
.race-summary #countUnit {color:#dcf4a5;font-size:14px}

/* The shared calendar meters and legend inherit their palette from the host. */
.calendar {
  --exercise-gradient: linear-gradient(to top, #b0d4bf, #65a686 35%, #348062 65%, #16543e);
  --food-gradient: linear-gradient(to top, #f7d4a8, #e8a15f 35%, #c87532 65%, #934414);
}

/* Keep the tabs accessible while the selected day's heading scrolls with its card. */
.hy-nav { z-index: 3; }
#daydetail > .sectionhead { position: static; }

.race-summary.race-date-gauge { position: relative; overflow: hidden; }
.race-date-gauge::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(to right, #dcf4a5 var(--race-elapsed), #638475 var(--race-elapsed));
}
