@import url("/guides/guides.css");
.event-navigation { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 12px 0; }
.event-navigation > span { color: var(--muted); font-size: 11px; }
.event-navigation button { display: grid; place-items: center; width: 44px; min-height: 36px; padding: 8px; border-radius: 8px; border: 1px solid var(--time-hairline); color: var(--ink); background: var(--surface); box-shadow: var(--time-control-shadow); }
.event-navigation button:hover:not(:disabled) { background: var(--canvas); color: var(--ink); border-color: var(--rule); }
.event-navigation button:active:not(:disabled) { background: var(--mac-panel); transform: translateY(1px); box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.time-page { max-width: 1280px; margin: auto; padding: 0 32px 80px; }
.intro { padding: 72px 0 48px; }
.intro h1 { font-size: clamp(64px, 9vw, 112px); letter-spacing: -.07em; margin-bottom: 22px; }
.intro .lead { font-size: clamp(24px, 3.5vw, 38px); line-height: 1.5; font-weight: 650; }
.intro-note, .help, .life-assumption { color: var(--muted); }
.personal { border-top: 2px solid var(--ink); padding: 28px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.personal h2 { font-size: 23px; margin-bottom: 10px; }
.personal p { max-width: 520px; font-size: 14px; }
.birth-controls label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.input-row { display: flex; flex-wrap: wrap; gap: 10px; }
input, button { font: inherit; color: var(--ink); border: 1px solid var(--rule); background: var(--surface); border-radius: 9px; padding: 10px 15px; min-height: 44px; }
input { min-width: 0; max-width: 100%; color-scheme: light dark; }
button { cursor: pointer; font-size: 14px; font-weight: 650; }
button:hover:not(:disabled), button[aria-pressed="true"] { background: var(--brand); color: var(--mac-on-link); border-color: var(--brand); }
button:disabled { opacity: .45; cursor: default; }
input:focus-visible, button:focus-visible, .ruler:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.text-button { border: 0; background: none; padding: 5px 0; text-decoration: underline; font-size: 13px; }
#input-error { margin: 0; color: var(--ink); font-weight: 700; }
.life-assumption { font-size: 12px; margin: 4px 0 40px; }
.explorer { border: 1px solid var(--rule); border-radius: 24px; background: var(--surface); padding: 30px; }
.explorer-heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.explorer-heading .eyebrow { margin-bottom: 8px; }
.explorer-heading h2 { font-size: 23px; margin-bottom: 20px; }
#scale-label { color: var(--muted); font-size: 13px; text-align: right; max-width: 40%; font-variant-numeric: tabular-nums; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-note { font-size: 12px; margin-top: 20px; color: var(--muted); }
.ruler { height: 280px; position: relative; margin: 0 2px; border-radius: 10px; border: 1px solid var(--rule); background: var(--mac-panel); overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.ruler.dragging { cursor: grabbing; }
.ticks { position: absolute; top: 184px; bottom: 34px; left: 0; right: 0; border-top: 2px solid var(--ink); }
.tick { position: absolute; top: 0; border-left: 1px solid var(--ink); height: 18px; }
.tick.major { height: 30px; }
.centimeters { position: absolute; bottom: 0; left: 0; right: 0; height: 30px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.centimeters span { position: absolute; transform: translateX(-50%); }
.event-pins { position: absolute; inset: 0; }
.pin { position: absolute; top: 16px; padding: 0; border: 0; background: none; border-radius: 0; width: 1px; height: 170px; min-height: 0; border-left: 1px solid var(--muted); color: var(--ink); }
.pin::after { content: ''; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; position: absolute; left: -4px; bottom: -4px; }
.ruler { --event-label-width: 130px; }
.pin span { position: absolute; top: 0; left: 8px; width: var(--event-label-width); text-align: left; font-size: 12px; line-height: 1.4; font-weight: 700; }
.pin[data-row="1"] span { top: 48px; }
.pin[data-row="2"] span { top: 96px; }
.pin.edge span { left: auto; right: 8px; text-align: right; }
.pin:hover:not(:disabled) { background: none; color: var(--brand); }
.pin.personal-pin { border-left: 2px solid var(--brand); }
.life-band { position: absolute; top: 160px; height: 24px; background: var(--brand); opacity: .75; min-width: 2px; pointer-events: none; }
.life-band span { position: absolute; bottom: -42px; left: 4px; white-space: nowrap; font-size: 11px; }
.range-labels { display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--muted); margin: 12px 0 20px; font-variant-numeric: tabular-nums; }
.range-labels span { max-width: 48%; }
.range-labels span:last-child { text-align: right; }
.center-stage { display: grid; justify-items: center; gap: 3px; padding: 10px 8px 14px; text-align: center; color: var(--ink); pointer-events: none; overflow-wrap: anywhere; }
.center-stage strong { font-size: 18px; font-weight: 650; }
.center-stage span { font-size: 10px; color: var(--muted); }
.range-labels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); align-items: start; gap: 12px; }
.range-labels > span { max-width: none; }
.center-readout { display: grid; gap: 4px; justify-items: center; max-width: 340px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.center-readout span { max-width: none; font-size: 10px; color: var(--muted); text-align: center; }
.center-readout strong { font-size: 12px; overflow-wrap: anywhere; }
.center-readout [hidden] { display: none; }
@media (max-width: 760px) { .range-labels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .center-readout { grid-column: 1 / -1; grid-row: 2; justify-self: center; max-width: calc(100% - 28px); } }
.help { font-size: 12px; line-height: 1.7; margin-top: 16px; }
.event-detail { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 22px; }
.event-detail .eyebrow { color: var(--brand); margin-bottom: 8px; }
.event-detail h3 { margin-bottom: 10px; }
.event-detail p { font-size: 14px; max-width: 820px; }
.event-detail a { font-size: 13px; }
.life-summary { padding: 18px; border-radius: 12px; background: var(--mac-panel); font-size: 14px; }
.editorial { margin-top: 80px; }
.section-head { max-width: 740px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 42px); }
.section-head p:last-child { color: var(--muted); }
.event-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.event-list li { border-top: 1px solid var(--rule); padding: 26px 0; margin: 0; }
.event-list h3 { margin: 8px 0; font-size: 21px; }
.event-list p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.event-time { font-size: 12px; font-weight: 750; color: var(--brand); }
.event-list .jump { font-size: 12px; padding: 5px 12px; }
.event-meta { font-size: 12px; margin: 0 0 8px; }
.open-end { display: flex; align-items: flex-start; gap: 28px; padding: 32px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); }
.open-end > span { font-size: 64px; line-height: 1; }
.open-end p { font-size: 15px; margin: 0; }
.reading, .sources { max-width: 820px; }
.reading p, .sources p, .sources li { font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .time-page { padding-inline: 20px; }
  .intro { padding-top: 48px; }
  .personal { grid-template-columns: 1fr; gap: 10px; }
  .explorer { padding: 18px 12px; border-radius: 16px; }
  .explorer-heading { display: block; }
  #scale-label { text-align: left; max-width: none; }
  .ruler { height: 280px; }
  .ruler { --event-label-width: 95px; }
  .pin span { font-size: 10px; }
  .presets { gap: 6px; }
  .presets button { padding: 8px 10px; font-size: 12px; }
  .event-list { grid-template-columns: 1fr; }
  .open-end { padding: 22px; gap: 16px; }
  .editorial { margin-top: 56px; }
  .header-inner { padding-inline: 20px; }
  .site-header nav { gap: 12px; font-size: 12px; }
  .brand { gap: 8px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Time Ruler uses the site's semantic macOS palette as an application surface. */
:root {
  --time-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 12px 36px color-mix(in srgb, var(--ink) 5%, transparent);
  --time-control-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent);
  --time-hairline: color-mix(in srgb, var(--rule) 65%, transparent);
}
body { font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.site-header { background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(20px); }
.header-inner { min-height: 64px; padding-block: 10px; max-width: 1192px; }
.brand { gap: 9px; font-size: 17px; font-weight: 650; }
.brand-mark { width: 32px; height: 32px; padding: 5px; border-radius: 8px; }
.site-header nav { gap: 6px; font-size: 12px; font-weight: 550; }
.site-header nav a { padding: 6px 12px; border-radius: 7px; }
.site-header nav a:hover { background: var(--surface); color: var(--ink); }
.time-page { max-width: 1192px; padding-inline: 28px; }
.intro { padding: 58px 0 38px; max-width: 760px; margin: auto; text-align: center; }
.intro .eyebrow { font-size: 11px; letter-spacing: .045em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.intro h1 { font-size: clamp(42px, 5.5vw, 64px); font-weight: 750; letter-spacing: -.045em; margin-bottom: 16px; }
.intro .lead { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; margin: 0 auto 16px; line-height: 1.5; letter-spacing: -.025em; }
.intro-note { font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.personal { background: var(--surface); border: 1px solid var(--time-hairline); border-radius: 13px; padding: 22px 24px; gap: 32px; grid-template-columns: 1fr auto; box-shadow: var(--time-control-shadow); align-items: center; }
.personal h2 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 7px; }
.personal p { color: var(--muted); font-size: 12px; margin-bottom: 0; max-width: 480px; }
.birth-controls { min-width: 320px; }
.birth-controls label { font-size: 12px; font-weight: 550; margin-bottom: 6px; }
input, button { border-radius: 7px; font-size: 13px; font-weight: 500; }
button { box-shadow: 0 1px 1px color-mix(in srgb, var(--ink) 4%, transparent); }
button:hover:not(:disabled) { color: var(--ink); background: var(--mac-panel); border-color: var(--rule); }
button:active:not(:disabled) { background: var(--canvas); }
button:disabled { opacity: .45; box-shadow: none; }
input { background: var(--mac-panel); border-color: var(--rule); font-size: 14px; padding-inline: 10px; }
#apply-birth { background: var(--brand); color: var(--mac-on-link); border-color: transparent; font-weight: 600; }
#apply-birth:hover { background: color-mix(in srgb, var(--brand) 85%, var(--ink)); color: var(--mac-on-link); }
.text-button { box-shadow: none; text-decoration: none; color: var(--brand); min-height: 32px; font-size: 11px; }
.text-button:hover:not(:disabled) { background: none; color: var(--brand); text-decoration: underline; }
.life-assumption { margin: 12px 4px 28px; font-size: 11px; }
.explorer { padding: 0 24px 24px; border-radius: 14px; border-color: var(--time-hairline); box-shadow: var(--time-shadow); overflow: hidden; }
.explorer-heading { background: var(--mac-panel); border-bottom: 1px solid var(--time-hairline); padding: 18px 24px; margin: 0 -24px 20px; align-items: center; }
.explorer-heading .eyebrow { color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .03em; margin-bottom: 3px; }
.explorer-heading h2 { font-size: 17px; font-weight: 650; margin: 0; }
#scale-label { margin: 0; font-size: 11px; }
.explorer > .presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: fit-content; max-width: 100%; gap: 3px; background: var(--canvas); border: 1px solid var(--time-hairline); border-radius: 9px; padding: 3px; }
.explorer > .presets button { padding: 7px 18px; min-height: 38px; border: 1px solid transparent; background: transparent; color: var(--muted); box-shadow: none; border-radius: 6px; font-size: 12px; }
.explorer > .presets button[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--time-hairline); box-shadow: var(--time-control-shadow); font-weight: 650; }
.explorer > .presets button:hover:not(:disabled):not([aria-pressed="true"]) { color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.mode-note { margin: 16px 0 12px; font-size: 11px; }
.ruler { background: var(--mac-panel); border-color: var(--time-hairline); border-radius: 9px; box-shadow: inset 0 1px 3px color-mix(in srgb, var(--ink) 4%, transparent); }
.ticks { border-top-width: 1px; border-color: var(--muted); }
.tick { border-color: var(--rule); height: 12px; }
.tick.major { border-color: var(--muted); height: 22px; }
.pin { border-left-color: var(--rule); box-shadow: none; }
.pin span { font-weight: 550; font-size: 11px; }
.pin:hover:not(:disabled) { border-left-color: var(--brand); background: transparent; }
.pin::after { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.pin.personal-pin { border-left-color: var(--brand); }
.life-band { border-radius: 4px; opacity: .65; }
.centimeters { font-size: 10px; }
.centimeters span { white-space: nowrap; }

.range-labels { font-size: 11px; margin-block: 10px 16px; }
.help { font-size: 11px; margin-top: 14px; }
.event-detail { border-color: var(--time-hairline); padding-top: 18px; margin-top: 20px; }
.event-detail .eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .025em; color: var(--muted); }
.event-detail h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.event-detail p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.event-detail a { color: var(--brand); font-size: 12px; }
.event-detail .presets { margin-bottom: 16px; }
.life-summary { border: 1px solid var(--time-hairline); background: var(--mac-panel); border-radius: 9px; padding: 14px 16px; font-size: 12px; }
.editorial { margin-top: 48px; }
.section-head { max-width: 680px; margin-bottom: 22px; }
.section-head .eyebrow, .reading > .eyebrow, .sources > .eyebrow { color: var(--muted); font-weight: 600; font-size: 10px; letter-spacing: .05em; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 650; margin-bottom: 12px; letter-spacing: -.025em; }
.section-head p { font-size: 13px; }
.event-list { background: var(--surface); border: 1px solid var(--time-hairline); border-radius: 13px; gap: 0; overflow: hidden; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent); }
.event-scroll { max-height: min(70vh, 720px); overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-gutter: stable; scroll-padding-block: 12px; border: 1px solid var(--time-hairline); border-radius: 13px; background: var(--surface); scrollbar-color: var(--muted) var(--mac-panel); }
.event-scroll:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.event-scroll .event-list { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.life-event-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.life-event-list li { padding: 22px 24px; border-bottom: 1px solid var(--time-hairline); }
.life-event-list li:nth-child(odd) { border-right: 1px solid var(--time-hairline); }
.life-event-list h3 { font-size: 16px; margin: 6px 0 10px; }
.life-event-list p { font-size: 12px; line-height: 1.75; margin-bottom: 10px; }
.life-event-list .life-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.life-jump { font-size: 11px; min-height: 36px; padding: 6px 11px; }
@media (max-width: 760px) { .life-event-list { grid-template-columns: 1fr; } .life-event-list li { padding: 20px; } .life-event-list li:nth-child(odd) { border-right: 0; } }
.event-list li { padding: 22px 24px; border: 0; border-bottom: 1px solid var(--time-hairline); }
.event-list li:nth-child(odd) { border-right: 1px solid var(--time-hairline); }
.event-list li:last-child { border-bottom: 0; }
.event-time { color: var(--muted); font-size: 11px; font-weight: 550; }
.event-list h3 { font-size: 16px; font-weight: 650; margin-block: 6px 10px; letter-spacing: -.02em; }
.event-list p { font-size: 12px; line-height: 1.75; }
.event-meta { color: var(--muted); font-size: 10px; }
.event-meta a { color: var(--brand); }
.event-list .jump { font-size: 11px; min-height: 36px; padding: 6px 11px; }
.open-end { background: var(--surface); border-color: var(--time-hairline); border-radius: 13px; padding: 24px; gap: 20px; }
.open-end > span { color: var(--brand); font-size: 42px; font-weight: 400; }
.open-end h3 { font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.open-end p { color: var(--muted); font-size: 12px; }
.reading, .sources { max-width: none; background: var(--surface); border: 1px solid var(--time-hairline); border-radius: 13px; padding: 26px; }
.reading h2, .sources h2 { font-size: 23px; font-weight: 650; margin-bottom: 18px; }
.reading p, .sources p, .sources li { font-size: 13px; max-width: 850px; line-height: 1.8; }
.reading p:last-child, .sources p:last-child { margin-bottom: 0; }
.sources ul { list-style: none; padding: 0; margin-bottom: 22px; }
.sources li { border-top: 1px solid var(--time-hairline); padding: 12px 0; margin: 0; }
.sources a { color: var(--brand); text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.site-footer { background: var(--canvas); color: var(--muted); border-top: 1px solid var(--rule); padding-block: 28px; }
.site-footer strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.site-footer nav { font-size: 12px; gap: 16px; }
.site-footer .small { font-size: 11px; }
@media (max-width: 760px) {
  .time-page { padding-inline: 16px; }
  .header-inner { padding-inline: 16px; }
  .site-header nav { gap: 0; }
  .site-header nav a { padding-inline: 8px; font-size: 11px; }
  .intro { padding: 36px 0 28px; }
  .intro h1 { font-size: 44px; }
  .intro .lead { font-size: 21px; }
  .intro-note { font-size: 12px; }
  .personal { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .birth-controls { min-width: 0; }
  .input-row { gap: 8px; }
  .input-row input { flex: 1; min-width: 140px; }
  #apply-birth { padding-inline: 12px; font-size: 12px; }
  .life-assumption { margin-bottom: 20px; }
  .explorer { padding: 0 14px 18px; }
  .explorer-heading { margin-inline: -14px; padding: 16px; }
  .explorer-heading h2 { font-size: 16px; }
  #scale-label { margin-top: 8px; }
  .explorer > .presets { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer > .presets button { padding-inline: 8px; }
  .pin span { font-size: 10px; }
  .range-labels { gap: 12px; font-size: 10px; }
  .editorial { margin-top: 32px; }
  .event-list li { padding: 20px; }
  .event-list li:nth-child(odd) { border-right: 0; }
  .open-end { padding: 20px; gap: 14px; }
  .reading, .sources { padding: 20px; }
}

.date-field { display: flex; flex: 1; align-items: center; min-width: 160px; max-width: 240px; background: var(--mac-panel); border: 1px solid var(--rule); border-radius: 7px; }
.date-field:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.date-field input { width: 100%; min-width: 0; flex: 1; border: 0; background: transparent; outline: none; font-variant-numeric: tabular-nums; }
.date-field input:focus-visible { outline: none; }
#open-calendar { padding: 8px; width: 42px; min-width: 42px; border: 0; background: transparent; box-shadow: none; display: grid; place-items: center; }
.date-picker { position: fixed; margin: 0; width: 336px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 48px color-mix(in srgb, var(--mac-dark-surface) 30%, transparent); }
.date-picker::backdrop { background: color-mix(in srgb, var(--mac-dark-surface) 12%, transparent); }
.calendar-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calendar-titlebar h2 { font-size: 14px; font-weight: 650; margin: 0; }
.calendar-titlebar button { width: 32px; min-height: 32px; padding: 2px; border: 0; background: var(--mac-panel); box-shadow: none; font-size: 20px; }
.calendar-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 70px 32px 32px; gap: 6px; align-items: center; margin-bottom: 14px; }
.calendar-toolbar label, .calendar-toolbar input, .calendar-toolbar select { min-width: 0; width: 100%; }
.calendar-toolbar input, .calendar-toolbar select { font: inherit; font-size: 13px; min-height: 36px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 7px; color: var(--ink); background: var(--mac-panel); }
.calendar-toolbar button { width: 32px; min-height: 36px; padding: 2px; font-size: 22px; box-shadow: none; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekdays { font-size: 11px; text-align: center; color: var(--muted); margin-bottom: 6px; }
.calendar-days button { min-width: 0; min-height: 36px; padding: 4px; border: 1px solid transparent; background: transparent; border-radius: 7px; font-size: 13px; font-weight: 500; box-shadow: none; font-variant-numeric: tabular-nums; }
.calendar-days button:hover:not(:disabled) { background: var(--mac-panel); border-color: var(--rule); }
.calendar-days button[aria-current="date"] { border-color: var(--brand); }
.calendar-days button[aria-pressed="true"] { background: var(--brand); color: var(--mac-on-link); font-weight: 700; }
.calendar-days button[aria-pressed="true"]:hover { background: var(--brand); color: var(--mac-on-link); }
.calendar-days button:disabled { color: var(--muted); opacity: .4; }
.calendar-help { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 14px 0 10px; }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 10px; }
.calendar-footer button { padding: 6px 12px; min-height: 36px; font-size: 12px; color: var(--brand); background: var(--mac-panel); }
.calendar-toolbar select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  :root { --ink: var(--mac-white); --muted: var(--mac-white); --mac-secondary-label: var(--mac-white); --mac-on-link: var(--mac-white); --brand: #0066cc; }
  /* Use the existing macOS link blue for filled controls so white text remains legible. */
  body, input, select, option, button, a, a:hover { color: var(--mac-white); }
  input::placeholder { color: var(--mac-white); opacity: 1; }
  .sources a, .event-meta a, .text-button, .event-detail a, .event-time, .open-end > span, .calendar-footer button { color: var(--mac-white); }
  .text-button:hover:not(:disabled), .sources a:hover, .event-detail a:hover, .calendar-footer button:hover:not(:disabled), .pin:hover:not(:disabled) { color: var(--mac-white); }
  button:disabled { color: var(--mac-white); opacity: 1; border-style: solid; }
  .calendar-days button:disabled { color: var(--mac-white); opacity: 1; background: var(--mac-panel); border-color: transparent; border-style: solid; }
  .calendar-days button[aria-pressed="true"], .calendar-days button[aria-pressed="true"]:hover { color: var(--mac-white); }
}
@media (max-width: 760px) {
  .date-field { max-width: none; min-width: 150px; }
  .date-field input { min-width: 0; }
}

/* A fixed 30cm instrument beneath the moving temporal scale. */
.ruler { height: 348px; width: min(100%, 30cm); margin-inline: auto; border-radius: 12px; background: var(--mac-panel); box-shadow: inset 0 1px 0 var(--surface), inset 0 -1px 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.ruler::before { content: ''; position: absolute; inset: 246px 0 7px; border-radius: 5px 5px 9px 9px; border-top: 1px solid var(--surface); border-bottom: 4px solid var(--rule); background: linear-gradient(180deg, var(--surface) 0%, var(--canvas) 9%, var(--surface) 12%, var(--mac-panel) 32%, var(--canvas) 70%, var(--rule) 100%); box-shadow: 0 5px 9px color-mix(in srgb, var(--mac-dark-surface) 18%, transparent), inset 0 0 0 1px var(--rule); pointer-events: none; }
.ruler::after { content: 'TIME RULER · 30 cm'; position: absolute; bottom: 18px; left: 16px; font-size: 9px; font-weight: 650; letter-spacing: .16em; color: var(--muted); text-shadow: 0 1px 0 var(--surface); pointer-events: none; }
.ticks { top: 184px; bottom: auto; height: 26px; border-color: var(--rule); }
.time-labels { position: absolute; left: 0; right: 0; top: 216px; height: 22px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.time-labels span { position: absolute; white-space: nowrap; }
.metric-ticks { position: absolute; left: 0; right: 0; top: 249px; height: 33px; pointer-events: none; }
.metric-tick { position: absolute; top: 0; height: 10px; border-left: 1px solid color-mix(in srgb, var(--ink) 65%, var(--rule)); }
.metric-tick.half-tick { height: 18px; border-color: var(--ink); }
.metric-tick.centimeter-tick { height: 28px; border-color: var(--ink); }
.centimeters { top: 285px; bottom: auto; height: 25px; color: var(--ink); font-size: 12px; font-weight: 600; text-shadow: 0 1px 0 var(--surface); pointer-events: none; }
.life-band span { bottom: auto; top: -22px; }
@media (prefers-color-scheme: dark) {
  .ruler::before { background: linear-gradient(180deg, var(--rule) 0%, var(--surface) 6%, var(--mac-window) 12%, var(--surface) 35%, var(--mac-panel) 80%, var(--mac-window) 100%); border-top-color: var(--rule); }
  .ruler::after, .centimeters { text-shadow: 0 1px 0 var(--mac-panel); }
}
@media (max-width: 760px) {
  .centimeters span[data-major="false"] { display: none; }
  .centimeters { font-size: 11px; }
  .time-labels { font-size: 9px; }
  .metric-tick:not(.half-tick):not(.centimeter-tick) { opacity: .3; }
  .ruler::after { font-size: 8px; }
}

/* Keep supporting copy in the guide and reserve result panels for actual results. */
.ruler::before, .ruler::after { display: none; }
.metric-body { position: absolute; top: 246px; bottom: 7px; overflow: hidden; border-radius: 5px 5px 9px 9px; border-top: 1px solid var(--surface); border-bottom: 4px solid var(--rule); background: linear-gradient(180deg, var(--surface) 0%, var(--canvas) 9%, var(--surface) 12%, var(--mac-panel) 32%, var(--canvas) 70%, var(--rule) 100%); box-shadow: 0 5px 9px color-mix(in srgb, var(--mac-dark-surface) 18%, transparent), inset 0 0 0 1px var(--rule); pointer-events: none; }
.metric-body::after { content: 'TIME RULER · ORIGINAL 30 cm'; position: absolute; bottom: 8px; left: 16px; white-space: nowrap; font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.metric-body.cut-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.metric-body.cut-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.centimeters .fine-metric-label { display: block; font-size: 10px; font-weight: 500; white-space: pre; line-height: 1.2; }
@media (max-width: 760px) { .centimeters .fine-metric-label { font-size: 9px; } }
@media (prefers-color-scheme: dark) { .metric-body { background: linear-gradient(180deg, var(--rule) 0%, var(--surface) 6%, var(--mac-window) 12%, var(--surface) 35%, var(--mac-panel) 80%, var(--mac-window) 100%); border-top-color: var(--rule); } }
.personal { margin-bottom: 28px; }
.event-detail[hidden], .life-summary[hidden] { display: none; }
.information-scroll { max-height: min(60vh, 420px); padding: 16px; }
.information-scroll > :first-child { margin-top: 0; }
.information-scroll > :last-child { margin-bottom: 0; }
.information-scroll [id] { scroll-margin-block: 12px; }

/* The plot spans the complete inner width of its table panel. */
.explorer { --plot-gutter: 24px; }
.ruler { width: calc(100% + var(--plot-gutter) * 2); max-width: none; margin-inline: calc(-1 * var(--plot-gutter)); border-inline: 0; border-radius: 0; }
.range-labels { margin-inline: calc(-1 * var(--plot-gutter)); padding-inline: 8px; }
.model-note { font-size: 11px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 760px) { .explorer { --plot-gutter: 14px; } }

/* Keep the interactive instrument and its controls together in the first viewport. */
.header-inner { min-height: 52px; padding-block: 8px; }
.experience { height: calc(100dvh - 53px); min-height: 490px; display: flex; flex-direction: column; gap: 6px; padding-block: 6px; }
.experience > * { flex-shrink: 0; }
.experience .explorer { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 8px; margin: 0; }
.explorer > * { flex-shrink: 0; }
.explorer-heading { margin-bottom: 4px; padding-block: 5px; }
.explorer-heading h2 { font-size: 13px; }
#scale-label { font-size: 10px; max-width: 55%; }
.explorer > .presets { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2px; gap: 2px; }
.explorer > .presets button { min-height: 28px; padding: 3px 4px; font-size: 11px; white-space: nowrap; }
.model-note { font-size: 10px; margin: 3px 0 0; line-height: 1.4; }
.center-stage { gap: 1px; padding: 5px 4px; min-width: 0; }
.center-stage > strong { font-size: 15px; line-height: 1.3; }
.center-stage > span { font-size: 9px; line-height: 1.3; }
.center-readout { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 1.4; }
.center-readout strong { font-size: 12px; }
.center-readout span { font-size: 10px; }
.ruler { flex: 1; min-height: 170px; height: auto; }
.ticks { top: auto; bottom: 98px; height: 1px; }
.time-labels { top: auto; bottom: 58px; height: 20px; }
.metric-body, .ruler::before { top: auto; height: 54px; bottom: 4px; }
.metric-ticks { top: auto; bottom: 24px; height: 28px; }
.centimeters { top: auto; bottom: 3px; height: 24px; font-size: 10px; }
.metric-body::after { bottom: 2px; font-size: 6px; }
.centimeters { padding-bottom: 6px; }
.pin { top: 8px; height: calc(100% - 107px); }
.pin[data-row="1"] span { top: 30px; }
.pin[data-row="2"] span { top: 60px; }
.pin span { font-size: 10px; line-height: 1.3; }
.life-band { top: auto; bottom: 99px; height: 14px; }
.life-band span { top: -17px; font-size: 9px; }
.range-labels { display: flex; margin-block: 3px; gap: 8px; line-height: 1.3; font-size: 9px; }
.range-labels > span { max-width: 49%; }
.event-navigation { margin: 4px 0; gap: 12px; }
.event-navigation button { min-height: 30px; padding: 5px; }
.event-detail { flex-shrink: 1; min-height: 0; max-height: 82px; overflow: auto; overscroll-behavior: contain; margin-top: 5px; padding-top: 5px; }
.event-detail .eyebrow { font-size: 9px; margin-bottom: 2px; }
.event-detail h3 { font-size: 13px; margin-bottom: 2px; }
.event-detail p, .event-detail a { font-size: 11px; line-height: 1.4; margin-bottom: 3px; }
.event-detail .presets { margin: 3px 0; }
.life-summary { padding: 3px 6px; margin-top: 3px; font-size: 9px; line-height: 1.3; }
@media (max-width: 760px) {
  .time-page { padding-inline: 10px; }
  .explorer-heading { display: flex; gap: 6px; }
  .explorer-heading h2 { font-size: 11px; }
  #scale-label { font-size: 9px; }
  .center-readout { grid-column: auto; grid-row: auto; max-width: 100%; }
  .event-detail { max-height: 62px; }
}
@media (max-height: 700px) {
  .explorer-heading { padding-block: 3px; }
  .explorer-heading h2 { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  #scale-label { max-width: 100%; text-align: center; width: 100%; }
  .center-stage > strong { font-size: 13px; }
  .event-detail { max-height: 46px; }
  .life-summary { font-size: 8px; }
}
.ruler-toolbar { display: flex; align-items: center; justify-content: center; gap: 20px; padding-block: 3px; }
.ruler-toolbar .event-navigation { margin: 0; gap: 8px; }
.event-detail { flex-shrink: 0; max-height: 70px; }
.ruler { min-height: 190px; }
.metric-body::after { display: none; }
@media (max-width: 760px) {
  .ruler-toolbar { gap: 12px; }
  .ruler-toolbar .event-navigation > span { font-size: 10px; }
  .ruler-toolbar .event-navigation button { width: 32px; }
  .event-detail { max-height: 50px; }
}
@media (max-height: 700px) {
  .event-detail { max-height: 40px; }
}
@media (max-height: 600px) {
  .header-inner { min-height: 44px; padding-block: 4px; }
  .brand-mark { width: 28px; height: 28px; }
  .experience { height: calc(100dvh - 45px); min-height: 0; gap: 3px; padding-block: 3px; }
  .explorer > .presets button { min-height: 24px; font-size: 10px; line-height: 1.3; }
  .center-stage { padding-block: 3px; }
  .center-stage > strong { font-size: 12px; }
  .center-stage > span { font-size: 8px; }
  .center-readout strong { font-size: 11px; }
  .event-detail { max-height: 32px; }
  .life-summary { max-height: 22px; overflow: auto; }
}

.pin span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-height: 2.6em; }
.pin[data-row="1"] span { top: 28px; }
.pin[data-row="2"] span { top: 56px; }
.explorer { position: relative; }
.fullscreen-toggle { position: absolute; top: 3px; right: 8px; z-index: 2; display: flex; align-items: center; gap: 4px; min-height: 24px; padding: 3px 6px; font-size: 10px; line-height: 1.3; background: var(--surface); border-color: var(--time-hairline); box-shadow: var(--time-control-shadow); }
.explorer-heading { padding-right: 100px; }
.explorer:fullscreen, .experience .explorer.is-expanded { width: 100vw; height: 100dvh; max-height: none; min-height: 0; margin: 0; border: 0; border-radius: 0; padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); background: var(--surface); display: flex; flex-direction: column; }
.explorer.is-expanded { position: fixed; inset: 0; z-index: 100; }
body.display-expanded { overflow: hidden; }
.explorer:fullscreen .event-detail, .explorer.is-expanded .event-detail { max-height: min(18dvh, 120px); }
.explorer:fullscreen .ruler, .explorer.is-expanded .ruler { min-height: 190px; }

/* A macOS-style instrument panel, using the shared semantic palette. */
.experience .explorer { border-radius: 16px; border-color: var(--time-hairline); background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 16px 48px color-mix(in srgb, var(--ink) 8%, transparent); }
.explorer-heading { min-height: 40px; margin-bottom: 0; padding-block: 9px; padding-right: 112px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, var(--canvas)), var(--canvas)); border-color: var(--time-hairline); }
.explorer-heading h2 { font-size: 12px; font-weight: 550; letter-spacing: -.015em; }
#scale-label { font-size: 10px; font-weight: 450; letter-spacing: .01em; }
.fullscreen-toggle, .fullscreen-toggle[aria-pressed="true"] { top: 7px; right: 12px; min-height: 27px; padding: 4px 8px; gap: 5px; border-radius: 6px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--time-hairline); color: var(--ink); font-size: 11px; font-weight: 500; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent), inset 0 1px 0 color-mix(in srgb, var(--mac-white) 8%, transparent); }
.fullscreen-toggle:hover:not(:disabled) { background: var(--surface); border-color: var(--rule); }
.fullscreen-toggle:active:not(:disabled) { background: var(--canvas); box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent); }
.fullscreen-toggle:focus-visible { outline: 2px solid var(--mac-blue); outline-offset: 2px; }
.explorer > .presets { align-self: center; width: min(100%, 560px); margin-block: 8px 0; padding: 3px; gap: 2px; border-radius: 9px; border-color: transparent; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.explorer > .presets button { min-height: 28px; padding-block: 4px; font-size: 11px; font-weight: 500; border-radius: 6px; }
.explorer > .presets button[aria-pressed="true"] { background: var(--surface); border-color: var(--time-hairline); font-weight: 550; box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 3%, transparent); }
.model-note { text-align: center; margin-top: 5px; font-size: 10px; font-weight: 400; }
.model-note a { text-decoration-color: var(--rule); }
.center-stage { padding-block: 9px 11px; gap: 3px; }
.center-stage > strong { font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.center-readout { gap: 3px 10px; }
.center-readout strong { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.center-stage > span { font-size: 10px; font-weight: 400; }
.ruler { border-top: 1px solid var(--time-hairline); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--mac-blue) 3%, var(--mac-panel)), transparent 75%), linear-gradient(var(--mac-panel), color-mix(in srgb, var(--canvas) 35%, var(--mac-panel))); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--mac-white) 3%, transparent); }
.pin { border-left-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.pin span { font-weight: 500; font-size: 11px; }
.pin::after { width: 6px; height: 6px; left: -3.5px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mac-blue) 10%, transparent); }
.pin.personal-pin { border-left-color: var(--mac-blue); }
.ticks { border-top-width: 1px; }
.tick { border-left-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.tick.major { border-left-color: color-mix(in srgb, var(--ink) 70%, transparent); }
.time-labels { font-weight: 450; }
.centimeters, .centimeters .fine-metric-label { font-weight: 500; text-shadow: none; }
.range-labels { padding-inline: 12px; margin-block: 6px; font-weight: 400; }
.ruler-toolbar { margin-inline: calc(-1 * var(--plot-gutter)); padding: 8px 12px; background: color-mix(in srgb, var(--canvas) 55%, var(--surface)); border-block: 1px solid var(--time-hairline); }
.event-navigation > span { font-size: 11px; font-weight: 500; min-width: 58px; text-align: center; }
.event-navigation button { width: 34px; min-height: 28px; padding: 5px; border-radius: 7px; border-color: var(--time-hairline); background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent); }
.event-navigation button svg { width: 15px; height: 15px; stroke-width: 1.6; }
.event-navigation button:disabled { opacity: .4; }
.event-detail { border-top: 0; padding-top: 0; margin-top: 7px; }
.event-detail h3 { font-weight: 550; }
.life-summary { background: transparent; border: 0; padding-inline: 0; }
.explorer:fullscreen, .experience .explorer.is-expanded { border-radius: 0; }
@media (max-height: 700px) {
  .explorer-heading { min-height: 32px; padding-block: 5px; }
  .fullscreen-toggle, .fullscreen-toggle[aria-pressed="true"] { top: 4px; min-height: 24px; padding-block: 3px; font-size: 10px; }
  .explorer > .presets { margin-top: 5px; padding: 2px; }
  .explorer > .presets button { min-height: 25px; padding-block: 3px; }
  .model-note { margin-top: 3px; }
  .center-stage { padding-block: 5px; gap: 1px; }
  .center-stage > strong { font-size: 14px; }
  .center-readout strong { font-size: 12px; }
  .center-stage > span { font-size: 9px; }
  .ruler-toolbar { padding-block: 5px; }
  .range-labels { margin-block: 3px; }
  .event-detail { margin-top: 4px; }
}
@media (max-width: 760px) {
  .explorer-heading { padding-right: 100px; }
  .fullscreen-toggle, .fullscreen-toggle[aria-pressed="true"] { right: 8px; }
  .pin span { font-size: 10px; }
}
.fullscreen-toggle, .fullscreen-toggle[aria-pressed="true"] { width: 28px; height: 27px; padding: 5px; justify-content: center; }

/* The instrument is an in-app section rather than a separate window. */
.experience .explorer { border-radius: 0; border: 0; border-top: 1px solid var(--time-hairline); background: var(--surface); box-shadow: none; }
.explorer-heading { background: transparent; border: 0; }
.explorer-heading h2 { font-weight: 600; }
.fullscreen-toggle, .fullscreen-toggle[aria-pressed="true"] { border-color: transparent; background: transparent; box-shadow: none; border-radius: 6px; }
.fullscreen-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: transparent; }
.fullscreen-toggle:active:not(:disabled) { background: color-mix(in srgb, var(--ink) 11%, transparent); box-shadow: none; }
.ruler-toolbar { background: transparent; border-block: 0; }
.event-navigation button { box-shadow: none; background: transparent; border-color: var(--time-hairline); }
.event-navigation button:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.event-navigation button:active:not(:disabled) { box-shadow: none; }
.event-detail { border-top: 1px solid var(--time-hairline); padding-top: 4px; }
.lineage-portrait { margin: 0 0 7px; display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--ink); }
.lineage-portrait[hidden] { display: none; }
.lineage-art { width: 94px; height: 82px; }
.lineage-art svg { display: block; width: 100%; height: 100%; }
.play-ad { display: none; }
.play-ad-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .05em; }
.play-ad-space { position: relative; width: 300px; height: 250px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.play-ad-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.play-ad .adsbygoogle { position: relative; display: inline-block; width: 300px; height: 250px; background: var(--surface); }
.play-ad .adsbygoogle[hidden] { display: none; }
.play-ad[data-ad-state="requested"] .play-ad-placeholder { display: none; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .experience .explorer { padding-right: calc(300px + 150px + var(--plot-gutter)); }
  .play-ad { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 300px; text-align: center; }
  .fullscreen-toggle, .fullscreen-toggle[aria-pressed="true"] { right: calc(300px + 150px + 12px); }
}
.lineage-portrait figcaption { display: grid; justify-items: center; gap: 1px; max-width: 100%; line-height: 1.3; }
.lineage-portrait strong { font-size: 12px; font-weight: 550; }
.lineage-portrait figcaption > span { font-size: 10px; }
.lineage-portrait a { font-size: 9px; color: var(--muted); text-decoration: none; }
.lineage-portrait a:hover { text-decoration: underline; }
.lineage-portrait a { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 800px) {
  .lineage-art { width: 63px; height: 55px; }
  .lineage-portrait strong { font-size: 11px; }
}
@media (max-height: 700px) {
  .lineage-art { width: 48px; height: 42px; }
  .lineage-portrait { margin-bottom: 4px; gap: 0; }
  .lineage-portrait strong { font-size: 10px; }
  .lineage-portrait figcaption > span, .lineage-portrait a { font-size: 8px; }
}
@media (max-height: 600px) {
  .center-stage { padding-block: 0; }
  .lineage-portrait { margin-bottom: 0; }
  .ruler-toolbar { padding-block: 2px; }
}
