/* The menu website, phone first: one column, big buttons. No inline
   styles anywhere: the Content-Security-Policy allows only this file. */

:root {
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #dadce0;
  --page: #f1f3f4;
  --card: #ffffff;
  --accent: #0b57d0;
  --ok: #188038;
  --warn: #b06000;
  --bad: #c5221f;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* also for elements given a display below */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  /* room for the bar at the bottom */
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
a { color: var(--accent); }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
p { margin: .25rem 0 .75rem; }
code { overflow-wrap: anywhere; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem; background: var(--card); border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
main { max-width: 42rem; margin: 0 auto; padding: 1rem; }

.card {
  display: block; margin: 0 0 1rem; padding: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: inherit; text-decoration: none;
}
a.card:active { background: #f8f9fa; }
.flash { padding: .75rem 1rem; background: #e8f0fe; border-radius: 12px; }
.summary { font-size: 1.4rem; font-weight: 700; }
.muted { color: var(--muted); font-size: .95rem; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }

/* The bar at the bottom: Home, TVs, Together, Branches. */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex;
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 3.75rem;
  color: var(--muted); font-weight: 600; text-decoration: none;
}
.bar a[aria-current] { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }

.tabs { display: flex; gap: .5rem; margin: 0 0 1rem; }
.tabs a {
  flex: 1; padding: .8rem 0; text-align: center; font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.tabs a[aria-current] { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Forms */
label { display: block; margin: 0 0 .75rem; font-weight: 600; }
input[type=text], input[type=password], input[type=number], select {
  display: block; width: 100%; min-height: 3rem; margin-top: .35rem; padding: .5rem .75rem;
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
input[type=file] { display: block; width: 100%; margin-top: .35rem; padding: .5rem 0; font: inherit; }
.every select { display: inline-block; width: auto; margin: 0 .35rem; }
fieldset.shows { margin: 0 0 1rem; padding: 0; border: 0; }
fieldset.shows legend { margin-bottom: .25rem; padding: 0; font-weight: 600; }
label.choice { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; margin: 0; font-weight: 400; }
label.choice.sub { padding-left: 2rem; }
label.choice input { flex: none; width: 1.4rem; height: 1.4rem; margin: 0; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3rem; min-height: 3rem; padding: .5rem 1.25rem;
  font: inherit; font-weight: 600; color: #fff; text-decoration: none;
  background: var(--accent); border: 1px solid var(--accent); border-radius: 12px; cursor: pointer;
}
button:disabled { opacity: .4; cursor: default; }
button.plain { color: var(--accent); background: var(--card); }
button.danger { color: var(--bad); background: var(--card); border-color: var(--bad); }
button.small { min-height: 2.5rem; padding: .25rem .9rem; }
.buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
progress { display: block; width: 100%; height: 1.25rem; margin: .5rem 0; }

/* Previews */
.thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: #3c4043; border-radius: 10px;
}
.items { margin: 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 7rem 1fr auto; gap: .75rem; align-items: start; }
.moves { display: flex; flex-direction: column; gap: .5rem; }
.version {
  display: grid; grid-template-columns: 5rem 1fr; gap: .5rem; align-items: center;
  margin-top: .5rem; color: inherit; font-size: .95rem; text-decoration: none;
}
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: .5rem; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .4rem; }

/* How the branches and shop PCs are doing */
.dot {
  display: inline-block; flex: none; width: .85rem; height: .85rem; margin-right: .5rem;
  border-radius: 50%; background: var(--ok);
}
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.pcline { display: flex; align-items: baseline; }
ul.plain { margin: 0 0 .75rem; padding: 0; list-style: none; }
ul.plain li { margin: .3rem 0; }
pre.keylines {
  padding: .75rem; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
  background: #f8f9fa; border: 1px solid var(--line); border-radius: 10px;
}
.offscreen { position: fixed; top: 0; left: -9999px; }

@media (min-width: 40rem) {
  .item { grid-template-columns: 12rem 1fr auto; }
}
