/* Layout: shared app bar, gradient brief header, alert band for unconfirmed
   changes, day strip, then three columns: travel (left), timeline (center),
   meetings (right). Colors follow the Equinix 2026 colorways; pick one with
   data-colorway on <html>. */

:root {
  /* Colorway: Blue/Green (default) */
  --eq-hero-primary: #04448B;
  --eq-hero-mid: #166E78;
  --eq-hero-accent: #2C9C64;
  --eq-content-tint: #D4FEFD;
  --eq-cta: #04448B;

  --eq-white: #FFFFFF;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #5B6470;
  --border: #D0D0D0;
  --tint: var(--eq-content-tint);
  --link: var(--eq-cta);

  /* Semantic status, kept apart from the brand accent */
  --st-conflict: #B42318;
  --st-conflict-bg: #FDECEA;
  --st-risk: #A15C00;
  --st-risk-bg: #FFF3DC;
  --st-tbc: #5B6470;
  --st-tbc-bg: #ECEEF1;
  --st-new: #04448B;
  --st-new-bg: #E3EEFB;
  --st-update: #A15C00;
  --st-update-bg: #FFF7E6;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --radius: 6px;
  --gutter: clamp(16px, 3vw, 48px);
}
:root[data-colorway="red-violet"] {
  --eq-hero-primary: #DF1C2A; --eq-hero-mid: #871B59; --eq-hero-accent: #5B1B71;
  --eq-content-tint: #FFD7E5; --eq-cta: #DF1C2A;
}
:root[data-colorway="purple-blue"] {
  --eq-hero-primary: #460267; --eq-hero-mid: #2936A8; --eq-hero-accent: #115CD3;
  --eq-content-tint: #F0E4FC; --eq-cta: #460267;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161B; --surface: #1B2027; --text: #EEF1F4; --muted: #9AA4B0; --border: #333B45;
    --tint: #1E2A33; --link: #8FC2FF;
    --st-conflict: #FF8A80; --st-conflict-bg: #3A1D1B;
    --st-risk: #F5B95A; --st-risk-bg: #33281A;
    --st-tbc: #B3BCC6; --st-tbc-bg: #262C34;
    --st-new: #8FC2FF; --st-new-bg: #1B2B40;
    --st-update: #F5B95A; --st-update-bg: #2E2618;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161B; --surface: #1B2027; --text: #EEF1F4; --muted: #9AA4B0; --border: #333B45;
  --tint: #1E2A33; --link: #8FC2FF;
  --st-conflict: #FF8A80; --st-conflict-bg: #3A1D1B;
  --st-risk: #F5B95A; --st-risk-bg: #33281A;
  --st-tbc: #B3BCC6; --st-tbc-bg: #262C34;
  --st-new: #8FC2FF; --st-new-bg: #1B2B40;
  --st-update: #F5B95A; --st-update-bg: #2E2618;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--surface);
}
a { color: var(--link); }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.appbar-inner, .hero-inner, .updates, .days, .board, .foot {
  max-width: 2400px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* App bar: identical on the dashboard and the editor */
.appbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
}
.appbar::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--eq-hero-primary), var(--eq-hero-mid), var(--eq-hero-accent));
}
.appbar-inner {
  min-height: 60px; padding-block: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
}
.brand { font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.appbar select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; max-width: 100%; min-width: 0;
}
.appbar .spacer { flex: 1 1 0; }
.appnav {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) + 3px);
}
.appnav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 18px; border-radius: var(--radius);
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700;
}
.appnav a:hover { color: var(--text); background: var(--surface); }
.appnav a.edit:not([aria-current="page"]) { color: var(--link); }
.appnav a[aria-current="page"] { background: var(--eq-cta); color: var(--eq-white); }
.appnav svg { width: 15px; height: 15px; flex: 0 0 auto; }
.who { font-size: 13px; color: var(--muted); white-space: nowrap; }
.signout {
  background: none; border: 1px solid var(--border); color: var(--text); cursor: pointer;
  border-radius: var(--radius); padding: 7px 14px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.signout:hover { border-color: var(--muted); }

/* Sign-in page */
.login-wrap {
  min-height: calc(100vh - 64px); display: grid; place-items: center;
  padding-block: 48px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.login-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.login-band {
  background: linear-gradient(45deg, var(--eq-hero-primary) 0%, var(--eq-hero-mid) 55%, var(--eq-hero-accent) 100%);
  color: var(--eq-white); padding: 28px 32px 30px;
}
.login-band h1 { margin: 6px 0 0; font-size: 30px; }
.login-body { padding: 28px 32px 32px; display: grid; gap: 18px; }
.login-field { display: grid; gap: 8px; }
.login-field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.login-field input {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; width: 100%;
}
.login-field input:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: transparent; }
.login-msg { margin: 0; font-size: 14px; color: var(--st-conflict); background: var(--st-conflict-bg); border-radius: 4px; padding: 10px 12px; }
.login-btn { padding: 13px 16px; font-size: 16px; width: 100%; }
.login-btn:disabled { opacity: .6; cursor: wait; }
.login-help { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Hero */
.hero {
  background: linear-gradient(45deg, var(--eq-hero-primary) 0%, var(--eq-hero-mid) 55%, var(--eq-hero-accent) 100%);
  color: var(--eq-white);
}
.hero a { color: var(--eq-white); }
.hero-inner { padding-block: 36px 40px; display: grid; gap: 18px; }
.logo { height: 24px; width: auto; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hero h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; text-wrap: balance; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: 15px; }
.hero-meta b { font-weight: 700; }
.hero-meta span { opacity: .92; }
.hero-sources { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 14px; }

/* Updates band */
.updates { padding-block: 28px 0; }
.updates-box {
  border: 1px solid var(--st-update); background: var(--st-update-bg);
  border-radius: var(--radius); padding: 18px 22px;
}
.updates-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.updates-head strong { font-size: 16px; }
.updates-head .spacer { flex: 1; }
.updates-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.updates-list li {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px;
  padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--st-update) 25%, transparent);
}
.updates-list .u-day { font-weight: 700; min-width: 96px; }
.updates-list .u-text { flex: 1 1 280px; min-width: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; text-align: left; }

.btn {
  border: 1px solid var(--eq-cta); background: var(--eq-cta); color: var(--eq-white);
  border-radius: var(--radius); padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--link); border-color: var(--border); }
.btn:hover { filter: brightness(1.08); }

/* Day strip */
.days { padding-block: 28px 8px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; min-width: 140px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; display: grid; gap: 3px; position: relative;
}
.day .d-wk { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day .d-date { font-size: 17px; font-weight: 700; }
.day .d-city { font-size: 12px; color: var(--muted); white-space: nowrap; }
.day[aria-current="true"] { border-color: var(--eq-cta); box-shadow: inset 0 -3px 0 var(--eq-cta); }
.day .d-flags { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.upd { background: var(--st-update); }
.dot.iss { background: var(--st-conflict); }
.day .d-today { font-size: 10px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .08em; }

/* Board */
.board {
  padding-block: 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.col { min-width: 0; display: grid; gap: 18px; }
.col > div { display: grid; gap: 16px; min-width: 0; }
.col-title {
  margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.col > div > .col-title { margin-top: 12px; }
.day-head h3 { margin: 0; font-size: 22px; text-wrap: balance; }
.day-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.callout { background: var(--tint); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: grid; gap: 8px; min-width: 0; scroll-margin-top: 90px;
}
.card.is-updated { border-color: var(--st-update); box-shadow: 0 0 0 1px var(--st-update) inset; }
.card.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--st-update-bg); } to { background: var(--surface); } }
.card h4 { margin: 0; font-size: 16px; line-height: 1.3; }
.card .when { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.card .row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.card .sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.card .note { font-size: 14px; }
.card .ppl { font-size: 14px; margin: 0; padding-left: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-top: 2px; }
.links .pending { color: var(--muted); font-style: italic; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 4px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.route { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.route .arrow { font-size: 14px; color: var(--muted); }
.copy { cursor: pointer; border: 1px dashed var(--border); border-radius: 4px; padding: 0 5px; background: none; color: inherit; font-weight: 700; }

.pill {
  display: inline-block; flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.pill.conflict { color: var(--st-conflict); background: var(--st-conflict-bg); }
.pill.at-risk, .pill.check { color: var(--st-risk); background: var(--st-risk-bg); }
.pill.tentative, .pill.tbc { color: var(--st-tbc); background: var(--st-tbc-bg); }
.pill.new { color: var(--st-new); background: var(--st-new-bg); }
.pill.updated { color: var(--st-update); background: var(--st-update-bg); border: 1px solid var(--st-update); }

.change {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px;
  background: var(--st-update-bg); border-radius: 4px; padding: 10px 12px; font-size: 14px;
}
.change span { flex: 1 1 180px; min-width: 0; }
.change .btn { padding: 5px 12px; font-size: 13px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.tl {
  display: grid; grid-template-columns: 92px 16px minmax(0, 1fr); gap: 0 16px;
  padding: 0; position: relative;
}
.tl .t { text-align: right; padding-top: 16px; }
.tl .t b { display: block; font-size: 15px; }
.tl .t small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tl .rail { position: relative; }
.tl .rail::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl:first-child .rail::before { top: 20px; }
.tl:last-child .rail::before { bottom: calc(100% - 20px); }
.tl .rail i {
  position: absolute; left: 1px; top: 19px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--muted);
}
.tl.k-meeting .rail i, .tl.k-call .rail i, .tl.k-meal .rail i { background: var(--eq-cta); border-color: var(--eq-cta); }
.tl.k-flight .rail i, .tl.k-rail .rail i { background: var(--eq-hero-accent); border-color: var(--eq-hero-accent); }
.tl.k-personal .rail i, .tl.k-work .rail i { border-style: dashed; }
.tl.s-conflict .rail i { background: var(--st-conflict); border-color: var(--st-conflict); }
.tl .body { padding: 8px 0; min-width: 0; }
.tl .body .card { padding: 14px 18px; gap: 6px; }
.tl .kind { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl.is-next .t b { color: var(--link); }
.tl.is-next .body .card { border-color: var(--link); }
.tl .jump { all: unset; cursor: pointer; display: grid; gap: 6px; }
.tl .jump:hover h4 { text-decoration: underline; }

/* Issues */
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.issues li { display: flex; gap: 10px; align-items: baseline; }
.issues li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--st-conflict); transform: translateY(-1px); }

.foot {
  padding-block: 22px 32px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  font-size: 10pt; color: var(--muted); border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }
  .col-meetings { grid-column: 1 / -1; }
  .col-meetings > div#meetings { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 720px) {
  .board { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .col-schedule { order: -1; }
  .col-meetings > div#meetings { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: 64px 16px minmax(0, 1fr); gap: 0 10px; }
  .hero-inner { padding-block: 24px 28px; }
  .appbar .spacer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card.flash { animation: none; }
  html { scroll-behavior: auto; }
}
