/* Page styles: /schedule/ (schedule). Owned by this page's agent. Shared styles live in /assets/css/site.css. */

/* ---------------------------------------------------------------- shared bits */

.schedule-tagline { font-family: var(--font-display); font-size: clamp(1.125rem, 1.2vw + 0.8rem, 1.75rem); line-height: 1.12; color: var(--muted); max-width: 18em; text-wrap: balance; }

/* Pixel drawings: unit rectangles on a small grid */
.schedule-arc__ico svg,
.schedule-signal__ico svg,
.schedule-sky__ico { display: block; fill: currentColor; shape-rendering: crispEdges; overflow: visible; }
.schedule-a { fill: var(--accent); }
.schedule-d { opacity: 0.3; }

/* Parts that light in turn. Still state: everything lit. Motion only while .is-live
   (added by schedule.js while the drawing is on screen). */
.is-live .schedule-seq { animation: schedule-seq var(--dur, 3.4s) steps(1, end) infinite; animation-delay: calc(var(--i, 0) * var(--step, 0.4s) - var(--dur, 3.4s)); }
@keyframes schedule-seq { 0% { opacity: 1; } 30% { opacity: 0.25; } 100% { opacity: 0.25; } }

/* Three short phrases with a block dash */
.schedule-triad { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(18px, 3vw, 44px); margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.schedule-triad li { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(0.9375rem, 0.5vw + 0.8rem, 1.1875rem); line-height: 1.2; color: var(--text); }
.schedule-triad li::before { content: ''; flex: none; width: 14px; height: 4px; background: var(--accent); }

/* ------------------------------------------------------------ 1 hero: hour clock */

.schedule-clock { max-width: 660px; margin-inline: auto; }
.schedule-clock__face { padding: clamp(8px, 1.6vw, 18px); }
.schedule-clock__face svg { display: block; width: 100%; height: auto; overflow: visible; }
.schedule-clock__fallback { padding: 24px 12px; text-align: center; }
.schedule-clock__fallback .small { margin-top: 18px; }
/* Without JavaScript: the same hour as a flat strip */
.schedule-strip { display: flex; gap: 2px; height: 56px; }
.schedule-strip i { flex: var(--w) 1 0; min-width: 2px; border-radius: 1px; }
.schedule-strip .t-p { background: rgba(243, 241, 236, 0.92); }
.schedule-strip .t-c { background: rgba(243, 241, 236, 0.66); }
.schedule-strip .t-r { background: rgba(243, 241, 236, 0.46); }
.schedule-strip .t-g { background: rgba(243, 241, 236, 0.3); }
.schedule-strip .t-v { background: var(--accent); }
.schedule-strip .t-a { background: #2c2c2c; box-shadow: inset 0 0 0 1px #5a5a5a; }
.schedule-strip .t-i { background: #fff; }
.schedule-strip__times { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-display); font-size: 0.6875rem; color: var(--subtle); }

.sc-ring { fill: none; stroke: var(--panel-line); stroke-width: 1; }
.sc-tick { stroke: var(--panel-line-strong); stroke-width: 2; }
.sc-tick--q { stroke: var(--accent-dim); stroke-width: 3; }
.sc-time { font-family: var(--font-display); font-size: 15px; fill: var(--subtle); text-anchor: middle; dominant-baseline: middle; }

.sc-blk { fill: #171717; }
.sc-blk.is-lit.t-p { fill: var(--text); fill-opacity: 0.92; }
.sc-blk.is-lit.t-c { fill: var(--text); fill-opacity: 0.66; }
.sc-blk.is-lit.t-r { fill: var(--text); fill-opacity: 0.46; }
.sc-blk.is-lit.t-g { fill: var(--text); fill-opacity: 0.3; }
.sc-blk.is-lit.t-v { fill: var(--accent); }
.sc-blk.is-lit.t-a { fill: #2c2c2c; stroke: #5a5a5a; stroke-width: 1; }
.sc-blk.is-lit.t-i { fill: #fff; }
.sc-blk.is-hot { fill: #fff !important; fill-opacity: 1 !important; stroke: none !important; }
.sc-blk.is-hot2 { fill: var(--text) !important; fill-opacity: 1 !important; stroke: none !important; }

.sc-lab { font-family: var(--font-display); font-size: 16px; fill: var(--muted); dominant-baseline: middle; opacity: 0; }
.sc-lab.is-on { opacity: 1; }
.sc-lab--ads { fill: var(--subtle); }
.sc-lab__feel { font-family: var(--font-body); font-size: 13px; fill: var(--subtle); }
.schedule-clock__face.is-narrow .sc-lab { display: none; }

.sc-hand { fill: var(--text); }
.sc-hand__tip { fill: var(--accent); }
.is-done .sc-hand, .is-static .sc-hand { display: none; }
.sc-done { fill: none; stroke: transparent; stroke-width: 3; stroke-dasharray: 6 4; }
.is-done .sc-done { stroke: var(--accent); }

.sc-read { text-anchor: middle; }
.sc-read__k { font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--accent); }
.sc-read__v { font-family: var(--font-display); font-size: 42px; fill: var(--text); }
.sc-read__v.is-long { font-size: 34px; }
.sc-read__s { font-family: var(--font-body); font-size: 16px; fill: var(--muted); }
.sc-read__t { font-family: var(--font-display); font-size: 15px; fill: var(--subtle); }

.is-clearing .sc-blk, .is-clearing .sc-lab { opacity: 0; transition: opacity 0.9s steps(6); }

.schedule-legend { justify-content: center; gap: 8px 20px; }
.schedule-legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.schedule-sw { display: block; width: 16px; height: 10px; border-radius: 1px; }
.schedule-sw--song { background: linear-gradient(to right, var(--text) 0 25%, rgba(243, 241, 236, 0.66) 25% 50%, rgba(243, 241, 236, 0.46) 50% 75%, rgba(243, 241, 236, 0.3) 75%); }
.schedule-sw--voice { background: var(--accent); }
.schedule-sw--ads { background: #2c2c2c; border: 1px solid #5a5a5a; }
.schedule-sw--id { width: 5px; height: 14px; background: #fff; }

/* ------------------------------------------------------- 3 how people listen */

.schedule-sweep__lane { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 10px); height: 112px; padding-bottom: 2px; border-bottom: 1px solid var(--panel-line-strong); }
.schedule-sweep__col { flex: 1 1 0; min-width: 0; height: calc(var(--h) * 16px); color: var(--text); background: repeating-linear-gradient(to top, currentColor 0 13px, transparent 13px 16px); }
.schedule-sweep.is-live .schedule-sweep__col { animation: schedule-seq 4.9s steps(1, end) infinite; animation-delay: calc(var(--i) * 0.7s - 4.9s); }
.schedule-sweep__brk { position: relative; flex: none; width: 6px; height: 100%; background: var(--accent-dim); }
.schedule-sweep__brk b { position: absolute; top: 0; left: 12px; font-family: var(--font-display); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.schedule-sweep__brk:last-child b { left: auto; right: 12px; }
.schedule-sweep__notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.schedule-arc { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin: clamp(56px, 8vw, 104px) 0 0; padding: 0; list-style: none; }
.schedule-arc::before { content: ''; position: absolute; left: 16.6%; right: 16.6%; top: 27px; height: 2px; background: var(--panel-line-strong); }
.schedule-arc__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.schedule-arc__step .small { max-width: 22em; }
.schedule-arc__ico { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: var(--text); background: var(--panel); border: 1px solid var(--panel-line-strong); border-radius: var(--radius); }
.schedule-arc__ico svg, .schedule-arc__ico .ico { width: 32px; height: 32px; }
.schedule-arc__note { margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; }
@media (max-width: 640px) {
  .schedule-arc { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .schedule-arc::before { display: none; }
}

.schedule-quote { font-family: var(--font-display); font-size: clamp(1.625rem, 3.2vw + 0.4rem, 3.25rem); line-height: 1.06; text-align: center; text-wrap: balance; max-width: 17em; margin: clamp(64px, 10vw, 128px) auto 0; }

/* ------------------------------------------------------------- 4 the method */

.schedule-chapter { display: flex; align-items: flex-end; min-height: min(72vh, 620px); padding-block: clamp(72px, 12vw, 150px) clamp(40px, 6vw, 72px); overflow: hidden; }
.schedule-chapter > .wrap { width: 100%; }
.schedule-chapter__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2vw, 24px); }
.schedule-chapter__copy h2 { font-size: clamp(2rem, 4.6vw + 0.4rem, 4.5rem); line-height: 1; max-width: 13em; }

.schedule-method__intro { margin-bottom: clamp(24px, 4vw, 36px); }
.schedule-trap .label { color: var(--subtle); }
.schedule-trap--path .label { color: var(--accent); }
.schedule-trap--path { border-color: var(--accent-dim); }
.schedule-trap__chart { display: block; width: 100%; height: auto; margin-block: 4px 6px; background: var(--panel-black); border: 1px solid var(--panel-line); border-radius: var(--radius); }
.schedule-trap__mid { fill: none; stroke: var(--panel-line-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.schedule-trap__line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: miter; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0.1, 0.2, 1); transition-delay: calc(0.3s + var(--n, 0) * 0.16s); }
.schedule-trap--path .schedule-trap__line { stroke: var(--accent); stroke-width: 3; }
html.js:not(.no-reveal) .schedule-trap:not(.is-in) .schedule-trap__line { stroke-dashoffset: 1; }

.schedule-avoid { margin-top: clamp(40px, 6vw, 72px); align-items: start; gap: clamp(24px, 4vw, 64px); }
.schedule-avoid__say { font-family: var(--font-display); font-size: clamp(1.375rem, 1.8vw + 0.6rem, 2.25rem); line-height: 1.14; text-wrap: balance; }

/* --------------------------------------------------------------- 5 music data */

.schedule-signal { flex-direction: row; align-items: center; gap: 16px; }
.schedule-signal__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: var(--text); background: var(--panel-black); border: 1px solid var(--panel-line-strong); border-radius: var(--radius); }
.schedule-signal__ico svg { width: 32px; height: 32px; }
.schedule-signal .card__body { margin-top: 4px; }
.schedule-lvl { transform-box: fill-box; transform-origin: 50% 100%; }
.is-live .schedule-lvl { animation: schedule-level 3.4s steps(4, end) infinite; }
@keyframes schedule-level { 0% { transform: scaleY(var(--from, 1)); } 20% { transform: scaleY(var(--from, 1)); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
.schedule-signals__more { margin-top: 28px; text-align: center; }

.schedule-format { margin-top: clamp(80px, 12vw, 150px); }
.schedule-checks { align-self: stretch; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.schedule-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.schedule-checks .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

.schedule-brief__srcs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.schedule-brief__src { display: grid; grid-template-columns: 24px 8.5em minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; color: var(--text); background: var(--panel-raised); border: 1px solid var(--panel-line); border-radius: var(--radius); }
.schedule-brief__src b { font-family: var(--font-display); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.02em; }
.schedule-brief__src.is-on { border-color: var(--accent-dim); }
.schedule-brief__src.is-on .mock-line { background: var(--accent-dim); }
.schedule-brief__lbl { margin-top: 20px; }
.schedule-brief__rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.schedule-brief__row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel-black); border: 1px solid var(--panel-line-strong); border-radius: var(--radius); }
.schedule-brief__row .tag { justify-self: start; }
html.js .schedule-brief__src:not(.is-on) { opacity: 0.35; }
html.js .schedule-brief__row:not(.is-on) { opacity: 0.2; }
.schedule-brief__foot { color: var(--muted); }
.schedule-brief__foot.is-done { color: var(--accent); }
@media (max-width: 440px) {
  .schedule-brief__row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .schedule-brief__row .mock-line { display: none; }
  .schedule-brief__src { grid-template-columns: 24px minmax(0, 1fr); }
  .schedule-brief__src .mock-line { display: none; }
}

/* ---------------------------------------------------------------- 6 direction */

.schedule-dial .panel__body { display: flex; flex-direction: column; gap: 14px; }
.schedule-dial__label { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.schedule-dial__track { position: relative; }
.schedule-dial__input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.schedule-dial__input::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(to right, var(--panel-line-strong), var(--accent-dim)); border-radius: 1px; }
.schedule-dial__input::-moz-range-track { height: 8px; background: linear-gradient(to right, var(--panel-line-strong), var(--accent-dim)); border-radius: 1px; }
.schedule-dial__input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 28px; margin-top: -10px; background: var(--text); border: 2px solid #0a0a0b; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--text); }
.schedule-dial__input::-moz-range-thumb { width: 18px; height: 24px; background: var(--text); border: 2px solid #0a0a0b; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--text); }
.schedule-dial__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.schedule-dial__detents { display: flex; justify-content: space-between; padding-inline: 10px; margin-top: 2px; }
.schedule-dial__detents i { width: 2px; height: 6px; background: var(--panel-line-strong); }
.schedule-dial__ends { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.schedule-dial__mix { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--panel-line); }
.schedule-dial__row { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); align-items: center; gap: 12px; }
.schedule-dial__row .label { color: var(--muted); }
.schedule-dial__row .schedule-dial__fill { color: var(--accent); }
.schedule-dial__state { min-height: 3.2em; font-size: clamp(0.9375rem, 0.4vw + 0.85rem, 1.0625rem); line-height: 1.5; color: var(--muted); }
.schedule-dial__state strong { font-weight: 500; color: var(--accent); }
@media (max-width: 640px) {
  .schedule-dial__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ------------------------------------------------------------------ 7 context */

.schedule-sky { --pad: clamp(20px, 2.2vw, 28px); overflow: hidden; }
.schedule-sky__top { align-self: stretch; display: flex; align-items: center; justify-content: center; height: clamp(124px, 12vw, 164px); margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 6px; color: var(--text); background-color: var(--panel-black); background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 19px 19px; background-position: center; border-bottom: 1px solid var(--panel-line); }
.schedule-sky__ico { width: 76px; height: 76px; }
.schedule-sky__feel { font-family: var(--font-display); font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.5rem); line-height: 1.15; color: var(--accent); }

.is-live .schedule-drop { animation: schedule-drop 1.6s steps(1, end) infinite; animation-delay: calc(var(--i) * -0.4s); }
@keyframes schedule-drop {
  0% { transform: translateY(-1px); opacity: 0; }
  20% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(1px); opacity: 1; }
  60% { transform: translateY(2px); opacity: 1; }
  80% { transform: translateY(3px); opacity: 0; }
  100% { transform: translateY(3px); opacity: 0; }
}
.is-live .schedule-star { animation: schedule-star 3.2s steps(1, end) infinite; animation-delay: calc(var(--i) * -0.9s); }
@keyframes schedule-star { 0% { opacity: 0.25; } 25% { opacity: 0.6; } 40% { opacity: 1; } 65% { opacity: 0.6; } 80% { opacity: 0.25; } 100% { opacity: 0.25; } }

.schedule-nudge { align-self: stretch; display: grid; grid-template-columns: 4.5em minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.schedule-nudge .label { color: var(--subtle); }
.schedule-nudge__bar { display: flex; gap: 3px; height: 12px; }
.schedule-nudge__bar i { flex: 1 1 0; min-width: 0; background: #1c1c1c; border-radius: 1px; }
.schedule-nudge__bar i.is-on { background: var(--text); }
.schedule-nudge__bar i.is-nudge { background: var(--accent); }
.schedule-nudge__bar i.is-drop { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-dim); }
.is-live .schedule-nudge__bar i.is-nudge { animation: schedule-nudge-up 3.4s steps(1, end) infinite; }
.is-live .schedule-nudge__bar i.is-drop { animation: schedule-nudge-down 3.4s steps(1, end) infinite; animation-delay: calc(var(--i, 0) * -0.5s); }
@keyframes schedule-nudge-up { 0% { background: #1c1c1c; } 35% { background: var(--accent); } 100% { background: var(--accent); } }
@keyframes schedule-nudge-down { 0% { background: var(--text); box-shadow: none; } 35% { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-dim); } 100% { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-dim); } }

.schedule-context__close { margin: clamp(28px, 4vw, 44px) auto 0; }
.schedule-context__note { margin-top: 56px; }

/* ----------------------------------------------------------- 8 fits, 9 close */

a.chain__tag { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.chain__tag:hover { color: var(--text); }

.schedule-why__n { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-family: var(--font-display); font-size: 0.9375rem; color: var(--accent); border: 1px solid var(--accent-dim); border-radius: var(--radius); }
.closing__panel .link-more { margin-top: 2px; }

/* Narrow clock: the dial is cropped closer, so the small type is set larger */
.schedule-clock__face.is-narrow .sc-read__k { font-size: 17px; }
.schedule-clock__face.is-narrow .sc-read__s { font-size: 22px; }
.schedule-clock__face.is-narrow .sc-read__t,
.schedule-clock__face.is-narrow .sc-time { font-size: 19px; }

/* Placeholder notes: the shared tag does not wrap, so give it the full line on small screens */
.schedule-ph { display: block; width: min(100%, 24em); margin-inline: auto; }
.schedule-ph::before { white-space: normal; width: max-content; max-width: calc(100% + 10px); text-align: left; }
.schedule-dial__note { margin-top: 36px; }
