/* =========================================================
   GlobeWarn — watch.css

   The watch-areas card, and the mark a watched row carries.

   The mark is deliberately quiet: a small outlined chip in the accent
   colour, ahead of the source name. A row that falls inside someone's own
   area should read as *theirs*, not as more urgent than the agency said it
   was. Severity belongs to the issuing agency; this only says "you asked
   about this place".
   ========================================================= */

/* --- the card ------------------------------------------------------------ */

/* The page's cards carry no padding of their own — every child pads itself
   by 14px, which is how the head, the note and the tables line up. This card
   was written as a grid with no side padding, so its contents sat on the
   border. 14px, like everything else in a card. */
.watch-grid {
  padding: 0 14px 14px;
  display: grid;
  gap: 1.1rem 1.6rem;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 46rem) {
  .watch-grid { grid-template-columns: 1fr; }
}

/* --- making one ---------------------------------------------------------- */

.watch-form {
  display: grid;
  gap: 0.7rem;
}

.watch-field { display: grid; gap: 0.28rem; }

.watch-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft, #55606d);
}

.watch-field input,
.watch-field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;              /* 16 px: iOS will not zoom the page */
  line-height: 1.4;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line-strong, #8c99a8);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
}

.watch-field input:focus-visible,
.watch-field select:focus-visible {
  outline: 2px solid var(--accent, #D9480F);
  outline-offset: 1px;
  border-color: transparent;
}

.watch-form .btn { justify-self: start; }

.watch-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft, #55606d);
}

.watch-note:empty {
  display: none;
}

.watch-note.is-good { color: var(--sev-green, #2E8B57); }
.watch-note.is-bad { color: var(--sev-red, #D7263D); }

/* --- the areas ----------------------------------------------------------- */

.watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.watch-none {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft, #55606d);
}

.watch-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line, #c9d2dc);
  border-left: 3px solid var(--accent, #D9480F);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.watch-item__main { min-width: 0; display: grid; gap: 0.1rem; }

.watch-item__name {
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-item__where {
  font-size: 0.84rem;
  color: var(--ink-soft, #55606d);
}

.watch-item__dormant {
  font-size: 0.84rem;
  color: var(--ink-faint, #6b7683);
}

/* Kept, not watched. Faded rather than hidden, because the reader's own
   work is still there and will come back the moment the licence does. */
.watch-item.is-dormant {
  border-left-color: var(--line-strong, #8c99a8);
  opacity: 0.72;
}

.watch-item__go {
  margin-left: auto;
  flex: none;
  font: inherit;
  font-size: 0.86rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong, #8c99a8);
  background: transparent;
  color: var(--ink-soft, #55606d);
  cursor: pointer;
}

.watch-item__go:hover {
  border-color: var(--sev-red, #D7263D);
  color: var(--sev-red, #D7263D);
}

.watch-item__go:focus-visible {
  outline: 2px solid var(--accent, #D9480F);
  outline-offset: 2px;
}

/* --- the key ------------------------------------------------------------- */

.watch-key {
  margin: 0 14px 14px;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line, #c9d2dc);
}

.watch-key__line {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft, #55606d);
}

.watch-key__line a { color: var(--accent, #D9480F); }

.watch-key__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.watch-key__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft, #55606d);
}

.watch-key__row input {
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong, #8c99a8);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
}

.watch-key__row input:focus-visible {
  outline: 2px solid var(--accent, #D9480F);
  outline-offset: 1px;
  border-color: transparent;
}

.watch-key__note {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 1.2em;
  color: var(--ink-soft, #55606d);
}

.watch-key__note.is-bad { color: var(--sev-red, #D7263D); }

/* --- the mark on a row --------------------------------------------------- */

.watch-tag {
  display: inline-block;
  margin-right: 0.42rem;
  padding: 0.03rem 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid var(--accent, #D9480F);
  border-radius: 999px;
  color: var(--accent, #D9480F);
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: baseline;
}

.row.is-watched { box-shadow: inset 3px 0 0 var(--accent, #D9480F); }

/* --- seats --------------------------------------------------------------- */

.watch-seats { margin-top: 0.7rem; }

.watch-seats__list {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.watch-seats__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  border: 1px solid var(--line, #c9d2dc);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.watch-seats__list li > span:first-child {
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-seats__when {
  margin-left: auto;
  flex: none;
  font-size: 0.86rem;
  color: var(--ink-soft, #55606d);
}
