

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #e6eff8;
  --grid: #dbe7f3;
  --sheet: #ffffff;
  --ink: #0a1a30;
  --ink-2: #31465f;
  --muted: #4f6480;
  --line: rgba(10, 26, 48, 0.13);
  --accent: #1b6cf2;
  --accent-text: #0b57c4;
  --accent-hover: #1764dc;
  --on-accent: #ffffff;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --edge: 32px;
  --rail: 288px;
}

/* The board's stylesheet locks the page for its frame inside Business Central. This page scrolls. */
html, body { height: auto; overflow: visible; }
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; overflow-x: clip; touch-action: manipulation; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 90px 90px;
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > header h1, main h1, main h2, main p, .foot h2, .foot p, .foot ul { margin: 0; padding: 0; }
.foot ul { list-style: none; }
a { color: inherit; }
main :focus-visible, .bar :focus-visible, .foot :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 8px 16px; background: var(--ink); color: var(--sheet); border-radius: 8px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* BOARD: the row by job is the switch here, and "Put your firm on it" is the color control. */
#controlAddIn .ss-switch, #controlAddIn .ss-brandbtn { display: none; }

/* BOARD: the one quiet hint, a still dotted line under the number. It goes after the first press. */
#controlAddIn.try-hint .lk-bright .hero-fig { text-decoration: underline dotted 3px var(--brand-ink); text-underline-offset: 8px; text-decoration-skip-ink: none; }

/* The site's bar */
.bar { position: relative; z-index: 6; display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 var(--edge); }
.mark { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; white-space: nowrap; }
.nav a { color: var(--ink-2); text-decoration: none; transition: color var(--fast) var(--curve); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color var(--fast) var(--curve), transform var(--fast) var(--curve); }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn-small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.menu-btn { display: none; height: 40px; padding: 0 16px; margin-left: auto; font: inherit; font-size: 15px; font-weight: 600; color: var(--sheet); background: var(--ink); border: 0; border-radius: 8px; }
.menu { position: absolute; left: 16px; right: 16px; top: 56px; z-index: 7; padding: 8px; background: var(--sheet); border-radius: 12px; box-shadow: 0 8px 24px rgba(10, 26, 48, 0.18); }
.menu a { display: block; padding: 12px; text-decoration: none; }

/* What this is */
.intro { display: flex; align-items: baseline; gap: 24px; padding: 4px var(--edge) 10px; }
.intro h1 { flex: none; font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; }
.sub { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.asof { padding: 0 var(--edge) 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 108ch; }

/* The row by job */
.jobs { display: flex; align-items: center; gap: 12px; padding: 0 var(--edge) 8px; }
.jobs-label { flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.jobs-row { display: flex; gap: 6px; flex: none; }
.job { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 46px; padding: 6px 14px; font: inherit; text-align: left; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: background-color var(--fast) var(--curve), border-color var(--fast) var(--curve); }
.job-who { font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.job-look { font-size: 12.5px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.job[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.job[aria-pressed="true"] .job-look { color: #c5d3e3; }
.jobs-note { margin-left: auto; font-size: 14px; color: var(--ink-2); text-align: right; }

/* One line of help, and the way back */
.helpbar { display: flex; align-items: center; gap: 16px; min-height: 32px; padding: 0 var(--edge) 6px; outline: none; }
.help { font-size: 15px; font-weight: 600; color: var(--accent-text); }
.restart { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.restart-note { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.btn-quiet { height: 32px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background-color var(--fast) var(--curve); }
.btn-quiet:active { transform: scale(0.97); transition: transform 100ms var(--curve); }

/* The label, always on screen */
.label { position: sticky; top: 0; z-index: 5; margin: 0 var(--edge); padding: 5px 12px; font-size: 13px; line-height: 1.35; color: var(--ink); background: #d3e2f2; border-radius: 8px 8px 0 0; }

/* The board and what sits beside it */
.work { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); column-gap: 20px; align-items: start; padding: 0 var(--edge) 32px; }
.frame { position: relative; height: max(640px, min(900px, calc(100vh - 236px))); height: max(640px, min(900px, calc(100svh - 236px))); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; background: var(--sheet); }
#controlAddIn { width: 100%; height: 100%; }
.rail { display: flex; flex-direction: column; gap: 10px; }
.panel { padding: 12px 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.panel h2 { font-size: 16px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.panel-note { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.panel-record { border-color: var(--accent); }
.panel-record p { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
#clip-slot { margin-bottom: 8px; }
#clip-slot video { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--ink); }
#clip-slot .clip-caption { margin-top: 4px; font-size: 13px; }
#clip-slot .clip-credit { margin-top: 2px; font-size: 12px; }

/* The ending */
.next-line { font-size: 16px; font-weight: 600; margin-bottom: 8px !important; }
.panel-next .btn { width: 100%; }
.placeholder-note { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.placeholder-note.is-pressed { color: var(--ink); font-weight: 600; }
.next-step { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.next-price { margin-top: 6px; font-size: 14px; font-weight: 600; }
.next-price:empty { display: none; }
.send { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.send-note { margin-top: 4px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.send-note:empty { display: none; }

/* Put your firm on it */
.field { display: block; margin-bottom: 8px; }
.field > span { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
#firm-name { width: 100%; height: 36px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--sheet); border: 1px solid rgba(10, 26, 48, 0.3); border-radius: 6px; }
#firm-name::placeholder { color: var(--muted); opacity: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch { width: 26px; height: 26px; padding: 0; border: 2px solid var(--sheet); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.firm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pick { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: 14px; font-weight: 500; cursor: pointer; }
.pick input[type="color"] { width: 28px; height: 28px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.pick-word { text-decoration: underline; text-underline-offset: 3px; }
.pick:focus-within .pick-word { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* More to try */
.try { display: block; width: 100%; padding: 7px 0; font: inherit; font-size: 15px; font-weight: 500; text-align: left; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.try:last-child { padding-bottom: 2px; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .btn-ink:hover { background: var(--ink-2); }
  .btn-primary:hover { background: var(--accent-hover); }
  .job:not([aria-pressed="true"]):hover { border-color: var(--ink-2); }
  .btn-quiet:hover { background: var(--ground); }
  .try:hover { color: var(--accent-text); }
}

/* The site's footer */
.foot { padding: 40px var(--edge) 32px; font-size: 14px; line-height: 20px; color: var(--ink-2); background: var(--sheet); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); column-gap: 32px; row-gap: 24px; padding-bottom: 28px; }
.foot-grid .mark { display: block; margin-bottom: 8px; color: var(--ink); }
.foot-grid h2 { margin-bottom: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.foot-grid ul a { display: inline-block; padding: 2px 0; text-underline-offset: 3px; }
.foot-legal { padding-top: 16px; border-top: 1px solid var(--line); }
.foot-legal p + p { margin-top: 4px; }

@media (max-width: 1320px) {
  .nav { gap: 14px; font-size: 14px; }
  .jobs-note { display: none; }
}
@media (max-width: 1099px) {
  .work { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .nav, .btn-small { display: none; }
  .menu-btn { display: block; }
  .jobs { flex-wrap: wrap; }
  .jobs-row { flex-wrap: wrap; flex: 1 1 100%; }
}
@media (max-width: 767px) {
  :root { --edge: 12px; }
  .intro { display: block; padding-bottom: 8px; }
  .intro h1 { font-size: 30px; margin-bottom: 4px; }
  .jobs { display: block; padding-bottom: 8px; }
  .jobs-label { display: block; margin-bottom: 4px; }
  .jobs-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { min-height: 48px; padding: 6px 10px; }
  .job[data-job="map"] { grid-column: 1 / -1; }
  .helpbar { display: block; }
  .restart { margin: 4px 0 2px; justify-content: space-between; }
  .btn-quiet { height: 40px; }
  .label { font-size: 12px; padding: 5px 10px; }
  .frame { height: max(560px, calc(100vh - 130px)); height: max(560px, calc(100svh - 130px)); }
  .swatch { width: 32px; height: 32px; }
  .try { padding: 11px 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

/* The breadcrumb takes its own line above the heading. */
.intro { flex-wrap: wrap; }
.intro .crumb { flex: 0 0 100%; margin-bottom: 0; }
/* Reading text at most about 75 characters a line. */
@media (min-width: 768px) { .foot-grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); } }
.intro .sub, .panel p, .foot p { max-width: 52ch; }
.asof { max-width: calc(52ch + 2 * var(--edge)); }
