/* Screens: tidy mock-ups of the product, drawn in markup so the words stay words.
   See build/screens.mjs for why these are not drawings. Everything here themes from the site's own
   tokens, so dark mode needs no second set of rules. */

.scr-wrap { margin-top: var(--s-5); }

.scr {
  max-width: 44rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -16px rgb(0 0 0 / 0.25);
  overflow: hidden;
}

.scr--wide { max-width: 52rem; }

.scr__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2, color-mix(in srgb, var(--line) 22%, transparent));
}

/* Three dots, the universal shorthand for "this is a window". Decorative, so no text. */
.scr__dots { flex: 0 0 auto; width: 34px; height: 8px; background:
  radial-gradient(circle 4px at 4px 4px, var(--line) 98%, transparent) 0 0/13px 8px repeat-x; }

.scr__title { flex: 1 1 auto; margin: 0; font-size: 0.875rem; font-weight: 600; }

.scr__body { padding: var(--s-3); display: grid; gap: var(--s-3); }

/* ---------------------------------------------------------------- a table of sites */

.scr__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.scr__table th,
.scr__table td { padding: var(--s-2) var(--s-2); text-align: left; border-bottom: 1px solid var(--line); }
.scr__table th { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }
.scr__table tbody tr:last-child td { border-bottom: 0; }
.scr__table .num { text-align: right; }

/* ---------------------------------------------------------------- rows of people and jobs */

.scr__rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.scr__rows > li { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--surface); font-size: 0.9375rem; }
.scr__who { flex: 1 1 auto; font-weight: 600; }
.scr__when { color: var(--muted); font-size: 0.875rem; }
.scr__rows > li.is-done .scr__who { color: var(--muted); text-decoration: line-through; }

.scr__tick { flex: 0 0 auto; width: 15px; height: 15px; border: 1.5px solid var(--line-strong, var(--muted)); border-radius: 4px; }
.scr__tick--on { border-color: transparent; background: var(--ok, #1a7f45); }

.scr__split { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.scr__chat { margin: 0; padding: var(--s-2) var(--s-3); border-radius: 8px; background: color-mix(in srgb, var(--accent, var(--text)) 8%, transparent); font-size: 0.9375rem; }
.scr__chat .scr__who { font-weight: 700; margin-right: 0.4em; }

/* ---------------------------------------------------------------- asking and answering */

.scr__ask { margin: 0; padding: var(--s-2) var(--s-3); border-radius: 12px 12px 12px 4px; background: color-mix(in srgb, var(--accent, var(--text)) 10%, transparent); font-weight: 600; }
.scr__say { margin: 0; font-size: 0.9375rem; }

.scr__preview { display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; }
.scr__cap { margin: 0 0 var(--s-1); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }
.scr__lines { display: block; height: 72px; border: 1px solid var(--line); border-radius: 6px; }
.scr__lines--loose { background: repeating-linear-gradient(var(--line) 0 2px, transparent 2px 18px) 0 8px/100% 100% no-repeat; }
.scr__lines--tight { background: repeating-linear-gradient(var(--line) 0 2px, transparent 2px 11px) 0 6px/100% 100% no-repeat; }

.scr__foot { margin: 0; color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------- pills */

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; white-space: nowrap; }
.pill--ok { background: color-mix(in srgb, #1a7f45 16%, transparent); color: color-mix(in srgb, #1a7f45 82%, var(--text)); }
.pill--wait { background: color-mix(in srgb, #9a6700 16%, transparent); color: color-mix(in srgb, #9a6700 82%, var(--text)); }
.pill--off { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }

/* ---------------------------------------------------------------- Robin's advisories

   Three severities, three left edges. Colour is never the only signal: each card also says what it
   saw and what it could cost, which is what the product does and the only part that teaches
   anybody anything. */

.robins { display: grid; gap: var(--s-2); max-width: 36rem; }

.robin {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--robin, var(--muted));
  border-radius: 8px;
  background: var(--surface);
}

.robin--note { --robin: #4b6bbd; }
.robin--warn { --robin: #9a6700; }
.robin--alert { --robin: #b3243c; }

.robin__what { margin: 0; font-weight: 700; font-size: 0.9375rem; }
.robin__why { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------- social marks and posts */

.smarks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); padding: 0; list-style: none; }

.smark__link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.smark__link:hover,
.smark__link:focus-visible { color: var(--smark-on, var(--text)); border-color: currentColor; }

/* The brand hue is carried on the mark itself, so the row reads as the real platforms rather than
   as five grey squares - which is what the founder was asking for. It stays a hue, mixed with the
   page's own ink, so it still sits inside this site's look on either theme. */
.smark { color: color-mix(in srgb, var(--smark) 78%, var(--text)); }

/* One hue per platform, set here rather than inline: the site's security header blocks a style
   attribute, and build.mjs --check refuses one. Same reasoning as the channel marks in the app. */
.smark--facebook { --smark: #1877f2; }
.smark--instagram { --smark: #c13584; }
.smark--x { --smark: #111827; }
.smark--google { --smark: #1a73e8; }
.smark--tripadvisor { --smark: #34a853; }

.posts { display: grid; gap: var(--s-3); }
.posts__row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.post { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.post__head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.post__who { font-weight: 650; font-size: 0.875rem; }
.post__text { margin: 0; padding: var(--s-2) var(--s-3) var(--s-3); font-size: 0.875rem; }

/* A stand-in for the hotel's own photograph: a plain wash, never a picture of somewhere real. */
/* The hotel's own photograph, which is what a post actually carries. One of our own illustrations:
   see test/site/image-sources.test.mjs for why nothing here may come from a stock library. */
.post__shot { display: block; width: 100%; height: 150px; object-fit: cover; }
.post__shot--square { height: 168px; }

@media (max-width: 560px) {
  .scr__preview { grid-template-columns: 1fr; }
  .scr__table th:nth-child(2),
  .scr__table td:nth-child(2) { white-space: nowrap; }
}
