@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

/* Yogic Numerology - rolling date picker
   Replaces the three dropdowns. The <select>s stay in the DOM and stay the source of
   truth; this only changes how they are driven. If wheel.js never runs, the original
   dropdowns are still shown and the app works exactly as before. */

.ynw-host {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* wheel.js adds this - so a JS failure leaves the original selects visible */
.ynw-host.ynw-on > select { display: none; }

.ynw {
  --ynw-row: 36px;
  --ynw-clay: #A66C65;
  --ynw-ink: #1B1C1B;
  --ynw-ink-2: #6E716E;
  --ynw-ink-3: #A9ACA9;
  --ynw-hair: #E0E3E0;
  --ynw-surface: #FFFFFF;
  --ynw-band: rgba(166, 108, 101, .10);
  font-family: 'Jost', 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

/* ---------- the drum ---------- */
.ynw-picker {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: .72fr 1.35fr .93fr;
  background: var(--ynw-surface);
  border: 1px solid var(--ynw-hair);
  border-radius: 16px;
  overflow: hidden;
}
.ynw-rail {
  position: absolute;
  left: 7px; right: 7px; top: 50%;
  height: var(--ynw-row);
  transform: translateY(-50%);
  background: var(--ynw-band);
  border-radius: 9px;
  pointer-events: none;
  z-index: 2;
}
.ynw-wheel {
  height: calc(var(--ynw-row) * 5);
  overflow-y: hidden;
  scroll-snap-type: y mandatory;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  perspective: 700px;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
  outline: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 74%, transparent 100%);
}
.ynw-wheel::-webkit-scrollbar { display: none; }
/* Inert until engaged: while overflow is hidden the mouse wheel falls through to the
   page, so passing over the picker never steals the scroll or changes the date.
   overscroll-behavior MUST be scoped here too, or it blocks that fall-through. */
.ynw-wheel.ynw-live { overflow-y: scroll; overscroll-behavior: contain; }
.ynw-wheel.ynw-drag { cursor: grabbing; }
.ynw-wheel:focus-visible { box-shadow: inset 0 0 0 2px var(--ynw-clay); }
.ynw-pad { height: calc(var(--ynw-row) * 2); }

/* .ynw-opt is the snap target and is never transformed - the curve lives on the inner
   span, so the snap grid stays exactly on the row height. */
.ynw-opt {
  height: var(--ynw-row);
  scroll-snap-align: center;
  transform-style: preserve-3d;
  cursor: pointer;
}
.ynw-opt-in {
  display: block;
  height: 100%;
  line-height: var(--ynw-row);
  text-align: center;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ynw-ink-2);
  font-variant-numeric: tabular-nums;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.ynw-opt[aria-selected="true"] .ynw-opt-in { color: var(--ynw-clay); font-weight: 500; }
.ynw-wheel--month .ynw-opt-in { font-size: 17px; }

/* ---------- the typed field ---------- */
.ynw-field {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  background: var(--ynw-surface);
  border: 1px solid var(--ynw-hair);
  border-radius: 16px;
  padding: 16px 18px;
  box-sizing: border-box;
}
.ynw-seg { display: flex; flex-direction: column; gap: 5px; }
.ynw-seg label {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ynw-ink-3);
  font-weight: 600;
  text-align: center;
}
.ynw-seg input {
  font-family: inherit;
  font-size: 28px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ynw-ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ynw-hair);
  padding: 2px 4px 4px;
  margin: 0;
  text-align: center;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ynw-seg input:focus {
  outline: none;
  border-bottom-color: var(--ynw-clay);
  color: var(--ynw-clay);
}
.ynw-seg input:focus-visible { outline: 2px solid var(--ynw-clay); outline-offset: 3px; }
.ynw-m, .ynw-d { width: 2.3ch; }
.ynw-y { width: 4.3ch; }
.ynw-sep { font-size: 24px; color: var(--ynw-ink-3); padding-bottom: 6px; user-select: none; }

/* ---------- the toggle: a quiet text link, tucked under the picker ---------- */
.ynw-swap {
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ynw-ink-3);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(166, 108, 101, .3);
  text-underline-offset: 3px;
}
.ynw-swap:hover { color: var(--ynw-clay); text-decoration-color: var(--ynw-clay); }
.ynw-swap:focus-visible { outline: 2px solid var(--ynw-clay); outline-offset: 3px; border-radius: 2px; }

.ynw [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ynw-opt-in { transform: none !important; opacity: 1 !important; }
  .ynw-wheel { scroll-behavior: auto; }
}
