/* Shared styling for the signed-in pages. Two rules of thumb: a club secretary
   is often on a phone, and a programme editor prints the page. */
* { box-sizing: border-box; margin: 0; font-family: -apple-system, "Segoe UI", Arial, sans-serif; }
body { background: #f2f4f1; color: #182420; }

header { background: #141414; color: #fff; padding: 12px 18px; }
header .inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
header .site { color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; letter-spacing: .2px; }
/* The two places a club goes are the whole navigation, so they are tabs rather
   than small print, and the one you are on is obvious. */
header nav { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
header nav a.tab { color: #fff; text-decoration: none; font-size: 15px; font-weight: 700;
  padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); line-height: 1; }
header nav a.tab:hover { background: rgba(255,255,255,.14); }
header nav a.tab.on { background: #fff; color: #141414; border-color: #fff; }
header nav .who { opacity: .6; font-size: 12.5px; margin-left: 6px; }
header nav .out { color: #fff; text-decoration: none; opacity: .6; font-size: 12.5px; }
header nav .out:hover { text-decoration: underline; }

@media (max-width: 560px) {
  header .inner { gap: 10px; }
  header nav { margin-left: 0; width: 100%; gap: 8px; }
  header nav a.tab { flex: 1; text-align: center; padding: 10px 8px; }
  header nav .who { display: none; }
  header nav .out { margin-left: 2px; }
}

main { max-width: 760px; margin: 0 auto; padding: 18px 14px 40px; }
h1 { font-size: 21px; margin-bottom: 6px; }
h2 { font-size: 15px; margin: 22px 2px 8px; }
p.sub { font-size: 13.5px; color: #5c6b62; margin-bottom: 16px; max-width: 620px; line-height: 1.5; }

.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
/* 16px keeps iOS from zooming in when a field is tapped */
input, select { padding: 10px 11px; border: 1px solid #cdd6cc; border-radius: 8px; font-size: 16px; width: 100%; min-width: 0; }
button.primary { margin-top: 12px; padding: 13px 18px; border: none; border-radius: 9px; background: #0e7a37; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
button.primary:disabled { opacity: .6; cursor: default; }
.hint { font-size: 12.5px; color: #5c6b62; margin-top: 10px; line-height: 1.5; }
.warn { background: #fdecea; border-left: 4px solid #c62828; padding: 11px 13px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.note { background: #eef4ee; border-left: 4px solid #0e7a37; padding: 11px 13px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.code-input { letter-spacing: 8px; font-size: 26px; font-weight: 800; text-align: center; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: #5c6b62; padding: 9px 12px; border-bottom: 1px solid #e4e9e3; }
td { padding: 10px 12px; border-bottom: 1px solid #e4e9e3; font-size: 14.5px; vertical-align: top; }
tr:last-child td { border-bottom: none; }
.sub2 { font-size: 12px; color: #5c6b62; }

/* "Nothing has changed", the one thing most clubs need most weeks. */
.status { border-left: 4px solid #c8d3cb; }
.status.good { border-left-color: #0b6b34; background: #f4fbf6; }
.status b { font-size: 15px; }

/* Whether the club itself has been through the list. A tick when it has, and no
   pretending otherwise when it has not. Prints, because it matters most to the
   person holding the printout. */
.tick { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px;
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 5px 11px; }
.tick .mark { font-size: 13px; line-height: 1; }
.tick.fresh { background: #e7f6ec; color: #0b6b34; }
.tick.stale { background: #fdf3e0; color: #7a5300; }
.tick.never { background: #f1f2f1; color: #6b736e; }
.grid a .tick { display: inline-flex; margin: 6px 0 0; font-size: 11.5px; font-weight: 700; padding: 3px 8px; }

/* The two things a programme editor is really after, across the top. */
.staffline { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 16px; }
.staffline .k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: #5c6b62; margin-bottom: 3px; }
.staffline b { font-size: 15px; }
.staffline .unknown { font-size: 13.5px; color: #97a49c; font-style: normal; }
.num { color: #5c6b62; width: 44px; font-variant-numeric: tabular-nums; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .3px; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; }
.tag.gk { background: #fff4d6; color: #6b4e00; }
.tag.capt { background: #e2ecff; color: #17417e; }
.tag.mgr { background: #e6e0ff; color: #3c2a86; }

a.plain { color: #1c4a86; }
.filterbox { margin-bottom: 12px; }

/* the club's own page: correcting a player, and marking one as gone */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editlink { display: block; font-size: 12px; color: #1c4a86; text-decoration: underline; cursor: pointer; margin-top: 5px; }
.editbox { display: none; margin-top: 8px; gap: 6px; align-items: center; flex-wrap: wrap; }
tr.editing .editbox { display: flex; }
tr.editing .editlink { display: none; }
.editbox input, .editbox select { max-width: 180px; }
.save { padding: 9px 15px; border: none; border-radius: 8px; background: #0e7a37; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.btns { text-align: right; white-space: nowrap; }
.btns button.gone { padding: 7px 12px; border-radius: 999px; border: 1.5px solid #cdd6cc; background: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.btns button.gone:hover { border-color: #c62828; color: #c62828; }
.goneline { font-size: 14px; padding: 4px 0; }
.goneline a { color: #1c4a86; font-size: 12.5px; text-decoration: underline; cursor: pointer; margin-left: 8px; }

@media (max-width: 480px) {
  .pair { grid-template-columns: 1fr; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.grid a { background: #fff; border-radius: 10px; padding: 12px 13px; text-decoration: none; color: #182420; font-weight: 700; font-size: 14.5px; }
.grid a span { display: block; font-weight: 500; font-size: 12px; color: #5c6b62; margin-top: 3px; }
.grid a:hover { outline: 2px solid #0e7a37; }

footer { text-align: center; font-size: 12px; color: #5c6b62; padding: 18px; }
#toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #182420; color: #fff; padding: 9px 17px; border-radius: 999px; font-size: 13px; display: none; }
#toast.on { display: block; }

@media (max-width: 480px) {
  main { padding: 14px 9px 30px; }
  td, th { padding: 8px 7px; }
  td { font-size: 13.5px; }
}

/* Printing: the programme editor wants the squad on paper, not the furniture */
@media print {
  header, footer, nav, #toast, .noprint { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  /* Browsers drop background colours when printing, so the tick line has to read
     on its words alone. */
  .tick { padding: 0; background: none !important; color: #000 !important; }
  table { font-size: 11.5pt; }
  td, th { padding: 4px 6px; }
  h1 { font-size: 15pt; }
}
