/**
 * Hourly Vibe — Dawn Vedic timeline
 * Cream paper · maroon · gold · sage, matching Today's Analysis.
 */

.hv-page {
  --hv-maroon: #8C2A3A;
  --hv-maroon-deep: #6E1F2B;
  --hv-gold: #C89B3C;
  --hv-sage: #5D7A4E;
  --hv-sage-deep: #3E5A34;
  --hv-rose: #A33B3B;
  --hv-cream: #F6F1E7;
  --hv-paper: #FFFDF8;
  --hv-sand: #EFE2CE;
  --hv-line: #E6DCC6;
  --hv-ink: #2A2117;
  --hv-muted: #6B5A44;
  --hv-kicker: #854F0B;
  --hv-shadow: 0 10px 28px rgba(58, 42, 18, 0.08);
  min-width: 320px;
  overflow-x: clip;
  color: var(--hv-ink);
  background: transparent;
}

.hv-page [hidden] {
  display: none !important;
}

.hv-page .container {
  max-width: min(1100px, 100%) !important;
  width: 100%;
}

.hv-hero {
  padding: clamp(36px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--hv-line);
  background: linear-gradient(165deg, #FFFDF8 0%, #FBF3E4 100%);
}

.hv-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.hv-hero .eyebrow,
.hv-section .eyebrow,
.hv-picker .eyebrow {
  margin: 0 0 9px;
  color: var(--hv-kicker) !important;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hv-hero h1 {
  margin: 0;
  color: #3C1219 !important;
  font: 700 clamp(2.6rem, 6vw, 4.5rem)/0.95 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.035em;
}

.hv-hero__lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--hv-muted) !important;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hv-date-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 16px 18px;
  border: 1px solid var(--hv-line);
  border-radius: 16px;
  background: var(--hv-paper);
  box-shadow: var(--hv-shadow);
}

.hv-date-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #FBEEE8;
  background: linear-gradient(160deg, #6E1F2B, #8C2A3A);
  font-size: 1.35rem;
}

.hv-date-card small {
  display: block;
  color: var(--hv-kicker);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hv-date-card strong {
  display: block;
  margin-top: 3px;
  color: var(--hv-ink);
  font-size: 0.88rem;
}

.hv-workspace {
  padding: clamp(28px, 5vw, 56px) 0 88px;
}

.hv-picker {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--hv-line);
  border-radius: 22px;
  background: var(--hv-paper);
  box-shadow: var(--hv-shadow);
}

.hv-picker > header,
.hv-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.hv-picker h2,
.hv-section-heading h2 {
  margin: 0;
  color: #3C1219 !important;
  font: 700 clamp(1.85rem, 3.5vw, 2.75rem)/1.05 "Cormorant Garamond", Georgia, serif;
}

.hv-picker > header > p,
.hv-section-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--hv-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: right;
}

.hv-picker__controls {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}

.hv-picker label {
  display: grid;
  gap: 6px;
  color: var(--hv-kicker);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-picker select,
.hv-picker input[type="date"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hv-ink);
  font: 600 0.95rem/1.2 inherit;
}

.hv-picker__feedback {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--hv-rose);
  font-size: 0.85rem;
}

.hv-state {
  margin-top: 28px;
  padding: 48px 24px;
  border: 1px dashed var(--hv-line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.7);
  text-align: center;
}

.hv-state h2 {
  margin: 12px 0 8px;
  font: 700 1.8rem/1.1 "Cormorant Garamond", Georgia, serif;
  color: #3C1219;
}

.hv-state p {
  margin: 0 auto 18px;
  max-width: 46ch;
  color: var(--hv-muted);
}

.hv-state__icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--hv-sand);
  color: var(--hv-maroon);
  font-size: 1.4rem;
}

.hv-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--hv-sand);
  border-top-color: var(--hv-maroon);
  border-radius: 50%;
  animation: hv-spin 0.8s linear infinite;
}

@keyframes hv-spin {
  to { transform: rotate(360deg); }
}

.hv-report {
  margin-top: 28px;
  display: grid;
  gap: 28px;
}

.hv-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--hv-line);
  border-radius: 22px;
  background: var(--hv-paper);
  box-shadow: var(--hv-shadow);
}

.hv-banner h2 {
  margin: 0 0 8px;
  font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 "Cormorant Garamond", Georgia, serif;
  color: #3C1219;
}

.hv-banner p {
  margin: 0;
  color: var(--hv-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hv-banner__meta {
  display: grid;
  gap: 10px;
}

.hv-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hv-cream);
  color: var(--hv-ink);
  font-size: 0.82rem;
}

/*
 * Inherit, never restate.
 *
 * monochrome-theme.css sweeps [class*="chip"] to a maroon background with
 * white text and !important — but only on the chip itself, not its children.
 * A fixed colour here therefore survived the sweep and put dark maroon text on
 * a maroon chip. Inheriting means the value is white when the sweep applies
 * and ink when it does not, without this file needing to know which.
 *
 * The label keeps its hierarchy through weight and a little transparency
 * rather than a second hue, for the same reason.
 */
.hv-chip b {
  color: inherit;
  font-weight: 750;
}

.hv-chip > span {
  color: inherit;
  opacity: 0.82;
}

.hv-mode {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.16);
  color: var(--hv-kicker);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hv-mode.is-generic {
  background: rgba(163, 59, 59, 0.1);
  color: var(--hv-rose);
}

.hv-section-heading {
  margin-bottom: 18px;
}

.hv-chart-section {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hv-chart {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hv-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hv-chart-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--hv-line);
  border-radius: 14px;
  background: var(--hv-paper);
  box-shadow: var(--hv-shadow);
}

.hv-chart-stat span {
  color: var(--hv-kicker);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-chart-stat strong {
  color: #3C1219;
  font: 700 0.95rem/1.2 "Cormorant Garamond", Georgia, serif;
}

.hv-chart-stat small {
  color: var(--hv-muted);
  font-size: 0.78rem;
}

.hv-chart-stat.is-best {
  border-color: rgba(93, 122, 78, 0.35);
  background: linear-gradient(180deg, #F7FBF4, var(--hv-paper));
}

.hv-chart-stat.is-care {
  border-color: rgba(163, 59, 59, 0.28);
}

.hv-chart-stat.is-now {
  border-color: var(--hv-maroon);
  box-shadow: 0 0 0 1px rgba(140, 42, 58, 0.12), var(--hv-shadow);
}

.hv-vibe-chart-scroll {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 190px;
  aspect-ratio: 960 / 320;
  overflow: hidden;
  border: 1px solid var(--hv-line);
  border-radius: 18px;
  background: var(--hv-paper);
  box-shadow: var(--hv-shadow);
}

.hv-vibe-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hv-vibe-dayband {
  fill: #FFF8EE;
}

.hv-vibe-nightband {
  fill: #F3E9D6;
}

.hv-vibe-grid {
  stroke: #E6DCC6;
  stroke-width: 1;
  pointer-events: none;
}

.hv-vibe-y,
.hv-vibe-tick,
.hv-vibe-axis-note {
  fill: var(--hv-muted);
  font: 650 12px/1 "Work Sans", system-ui, sans-serif;
  pointer-events: none;
}

.hv-vibe-axis-note {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hv-vibe-area,
.hv-vibe-line,
.hv-vibe-dot {
  pointer-events: none;
}

.hv-vibe-line {
  fill: none;
  stroke: #6E1F2B;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hv-vibe-dot {
  stroke: #fff;
  stroke-width: 1.5;
}

.hv-vibe-now {
  stroke: var(--hv-maroon);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.hv-vibe-now-label {
  fill: var(--hv-maroon);
  font: 800 12px/1 "Work Sans", system-ui, sans-serif;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.hv-vibe-col {
  cursor: pointer;
}

/*
 * The bars are gone; the column groups are hit areas now. Their focus state
 * has to show on the dot instead, or keyboard users get a silent selection.
 */
.hv-vibe-col:focus,
.hv-vibe-col:focus-visible {
  outline: none;
}

.hv-vibe-col.is-current .hv-vibe-dot {
  filter: drop-shadow(0 2px 4px rgba(110, 31, 43, 0.28));
}

.hv-chart-readout {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--hv-line);
  border-radius: 16px;
  background: var(--hv-cream);
}

.hv-chart-readout__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.hv-chart-readout strong {
  display: block;
  color: #3C1219;
  font: 700 1.15rem/1.2 "Cormorant Garamond", Georgia, serif;
}

.hv-chart-readout span,
.hv-chart-readout em {
  display: block;
  color: var(--hv-muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.45;
}

.hv-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--hv-muted);
  font-size: 0.78rem;
}

.hv-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.hv-chart-caption {
  margin: 0;
  color: var(--hv-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hv-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--hv-sand);
  display: grid;
  gap: 10px;
}

.hv-block {
  position: relative;
  margin-left: 18px;
  border: 1px solid var(--hv-line);
  border-radius: 16px;
  background: var(--hv-paper);
  box-shadow: var(--hv-shadow);
  overflow: hidden;
}

.hv-block::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--family, var(--hv-gold));
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--family, var(--hv-gold));
}

.hv-block[data-family="warm"] { --family: #C45A6A; }
.hv-block[data-family="bright"] { --family: #5D7A4E; }
.hv-block[data-family="bold"] { --family: #8C2A3A; }
.hv-block[data-family="fire"] { --family: #D27A2A; }
.hv-block[data-family="sharp"] { --family: #B33A3A; }
.hv-block[data-family="quiet"] { --family: #6B5A44; }
.hv-block[data-family="scatter"] { --family: #7A5F9A; }
.hv-block[data-family="light"] { --family: #3E7A74; }
.hv-block[data-family="space"] { --family: #5A6A7A; }
.hv-block[data-family="soft"] { --family: #C89B3C; }

.hv-block.is-current {
  border-color: var(--hv-maroon);
  box-shadow: 0 0 0 2px rgba(140, 42, 58, 0.12), var(--hv-shadow);
}

.hv-block__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.hv-block__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--hv-cream);
  color: var(--family, var(--hv-maroon));
  font-size: 1.1rem;
}

.hv-block__when {
  display: block;
  color: var(--hv-kicker);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-block__headline {
  display: block;
  margin-top: 3px;
  color: #3C1219;
  font: 700 1.15rem/1.2 "Cormorant Garamond", Georgia, serif;
}

.hv-block__blurb {
  margin: 6px 0 0;
  color: var(--hv-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hv-block__now {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--hv-maroon);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-block__why {
  display: none;
  padding: 0 16px 16px 68px;
  color: var(--hv-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hv-block.is-open .hv-block__why {
  display: block;
}

.hv-block__why dt {
  margin: 10px 0 0;
  color: var(--hv-kicker);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-block__why dd {
  margin: 2px 0 0;
}

.hv-method {
  padding: 16px 18px;
  border: 1px solid var(--hv-line);
  border-radius: 16px;
  background: var(--hv-cream);
  color: var(--hv-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hv-method summary {
  cursor: pointer;
  color: #3C1219;
  font-weight: 700;
}

@media (max-width: 800px) {
  .hv-hero__inner,
  .hv-banner,
  .hv-picker > header,
  .hv-section-heading,
  .hv-picker__controls {
    grid-template-columns: 1fr;
  }

  .hv-picker > header > p,
  .hv-section-heading > p {
    text-align: left;
  }

  .hv-block__why {
    padding-left: 16px;
  }

  .hv-chart-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .hv-chart-stats {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------- chart hover tracking */

.hv-vibe-chart-scroll {
  position: relative;
}

/*
 * The tracking readout. Follows the pointer along the day, and is clamped to
 * the scroller so an hour near either edge still shows its whole label.
 */
.hv-chart-tip {
  position: absolute;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #241C18;
  color: #FFFFFF;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  max-width: 260px;
}

.hv-chart-tip[hidden] { display: none; }

.hv-chart-tip strong { font-size: 0.82rem; }

.hv-chart-tip span,
.hv-chart-tip em {
  /* 0.75rem is the 12px floor at the site's 16px root; 0.74 resolved to
     11.84px and the legibility guard caught it. */
  font-size: 0.75rem;
  font-style: normal;
  opacity: 0.82;
}

.hv-vibe-cursor {
  stroke: #241C18;
  stroke-width: 1;
  stroke-opacity: 0.35;
  transition: opacity 120ms ease;
  pointer-events: none;
}

/* The selected hour's dot grows, since there is no bar left to highlight. The
   radius itself is set from JS: the dots are siblings of the hit areas, not
   children, so no selector here can reach the right one. */
.hv-vibe-dot.is-active {
  stroke-width: 2.4;
  stroke: #3C1219;
}

.hv-vibe-line {
  stroke-linejoin: round;
  stroke-linecap: round;
}



@media (prefers-reduced-motion: reduce) {
  .hv-vibe-cursor { transition: none; }
}
