/* Westway launcher. Brand tokens live here and nowhere else.
 *
 * Fonts are served from this origin, not from Google Fonts, for the same
 * reason MSAL is vendored: the content security policy is font-src 'self'
 * and style-src 'self', and adding a third-party font host would weaken the
 * policy on the page every person in the company loads first.
 */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/oswald-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/oswald-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --ground: #ffffff;
  --surface: #f2f2f0;
  --ink: #111111;
  --body: #2a2a2a;
  --muted: #6a6d64;          /* 4.69:1 on --surface, 5.26:1 on --ground */
  --line: #dedcd7;

  --accent: #00a676;         /* brand green. Background only, never text on white */
  --accent-fg: #006b4d;      /* foreground-safe accent: 6.54:1 on --ground */
  --accent-bg-hover: #00b882;   /* 7.35:1 against --on-accent */
  --accent-soft: #e4f4ec;
  --on-accent: #111111;      /* 6.04:1 on --accent. Never white: that is 3.13:1 */

  --bar: #111111;
  --bar-ink: #ffffff;
  --bar-muted: #9a9d96;

  --display: Oswald, "Franklin Gothic Medium", Arial, sans-serif;
  --text: "Source Sans 3", Arial, Helvetica, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #191b17;
    --surface: #21241f;
    --ink: #f2f3ef;
    --body: #cfd2ca;
    --muted: #8b8f85;
    --line: #333730;

    --accent: #26c892;
    --accent-fg: #7ee3bc;     /* 11.24:1 on --ground */
    --accent-bg-hover: #7ee3bc;
    --accent-soft: #1e2f27;
    --on-accent: #0e100c;     /* 8.89:1 on --accent, 12.39:1 on --accent-bg-hover */

    --bar: #0e100c;
    --bar-ink: #ffffff;
    --bar-muted: #9aa093;
  }
}

/* The UA rule for [hidden] is display:none, which any author display value
 * beats. Every element in this page that relies on the hidden attribute needs
 * this, and !important is correct: the attribute must win over layout. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(20px, 3.2vw, 27px); }
h2 { font-size: 16px; letter-spacing: 0.1em; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent-fg);   /* 6.54:1 on --ground */
  outline-offset: 2px;
}

/* The ring has to be visible against whatever is behind it. --accent-fg is
 * only 2.89:1 on the black bar, and no green is visible against the green
 * skip-link background, so both get their own ring colour. */
.topbar :focus-visible { outline-color: var(--accent); }   /* 6.04:1 on --bar */
.skip:focus-visible { outline-color: var(--ink); }         /* 6.04:1 on --accent */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- top bar ---- */

.topbar { background: var(--bar); color: var(--bar-ink); }

.bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.lockup {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--bar-ink);
}
.lockup span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.5em;
  color: var(--bar-muted);
  margin-top: 3px;
}

.who {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;                 /* lets the name shrink instead of overflowing */
  font-size: 14.5px;
}
.who .nm {
  min-width: 0;
  overflow-wrap: anywhere;      /* a long UPN is one unbreakable token */
  color: var(--bar-ink);
  font-weight: 600;
}
.topbar .linkish { color: var(--bar-muted); padding: 5px 2px; }
.topbar .linkish:hover { color: var(--bar-ink); }

/* ---- board ---- */

.board {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}
.board:focus { outline: none; }

.h { margin-bottom: 6px; }

.p { max-width: 62ch; margin-top: 10px; font-size: 17px; }
.p.small { font-size: 15px; color: var(--muted); }

.msg {
  max-width: 62ch;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 15.5px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent-fg);
  color: var(--body);
}

.actions { margin-top: 22px; }

.ref {
  margin-top: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hint {
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted);
}

.planned-wrap {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---- tiles ---- */

.tiles {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.tiles li { display: flex; }

.tile {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 118px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  color: var(--body);
  text-decoration: none;
}

a.tile:hover,
a.tile:focus-visible {
  border-left-color: var(--accent-fg);
  background: var(--accent-soft);
}

.tile .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.tile .desc { font-size: 15px; }

.tile .go {
  margin-top: auto;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-fg);
}

.tile.planned {
  background: transparent;
  border: 1px dashed var(--line);
}
.tile.planned .name,
.tile.planned .desc,
.tile.planned .go { color: var(--muted); }

/* ---- buttons ---- */

.btn {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-bg-hover);
  border-color: var(--accent-bg-hover);
}

.linkish {
  font-family: var(--text);
  font-size: inherit;
  padding: 4px 2px;             /* keeps the hit target at or above 24px */
  background: none;
  border: 0;
  color: var(--accent-fg);
  text-decoration: underline;
  cursor: pointer;
}

/* Busy, not disabled: the control keeps its contrast, stays focusable and
 * stays in the tab order while the check runs. */
.btn[aria-busy="true"],
.linkish[aria-busy="true"] { cursor: progress; }

/* ---- foot ---- */

.foot {
  flex: 0 0 auto;
  background: var(--bar);
  color: var(--bar-muted);
  font-size: 13px;
  padding: 22px 20px;
}
.foot p { max-width: 1100px; margin: 0 auto; }
