/* Shared by every page. Colours follow the HoNY app and new website palette.
   System fonts only: nothing is loaded from anywhere but this site. */
:root {
  --navy: #1A3A6B; --blue: #294895; --peri: #5366A6; --gold: #F1C348;
  --sky: #DCE4EC; --mist: #F3F6F9; --text: #3E4752; --muted: #5E6875;
  --white: #FFFFFF; --error: #A33A2B; --ok: #2E6B3F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.bar {
  background: var(--navy); color: var(--white); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
header.bar .brand { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.2; }
header.bar .brand small { display: block; font-family: system-ui, sans-serif; font-size: 13px; opacity: .85; }
header.bar a, header.bar button.link { color: var(--white); font-size: 15px; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1180px; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 10px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
.card { background: var(--white); border: 1px solid var(--sky); border-radius: 10px; padding: 16px; margin: 0 0 16px; }
.urgent { background: var(--gold); color: #2B2410; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; }
.urgent a { color: #2B2410; font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); font-size: 15px; }
.error { color: var(--error); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.hidden { display: none !important; }
label { display: block; font-weight: 600; margin: 12px 0 4px; color: var(--navy); }
label .muted { font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #AEB9C6;
  border-radius: 8px; background: var(--white); color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
button, a.button {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--blue); color: var(--white); border: 0; border-radius: 8px;
  padding: 11px 18px; min-height: 44px; margin-top: 12px;
}
button.secondary, a.button.secondary { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
button.danger { background: var(--white); color: var(--error); border: 1px solid var(--error); }
button.small { padding: 6px 12px; min-height: 36px; margin: 0 6px 0 0; font-size: 15px; }
button.link { background: none; color: var(--blue); border: 0; padding: 0; min-height: 0; margin: 0; text-decoration: underline; font-weight: 400; }
button:disabled { opacity: .55; cursor: default; }
.tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.tabs button { flex: 1; margin: 0; background: var(--white); color: var(--blue); border: 1px solid var(--sky); }
.tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { border-top: 1px solid var(--sky); padding: 12px 0; }
ul.list li:first-child { border-top: 0; }
.thread { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; white-space: normal; }
.msg.mine { align-self: flex-end; background: #E4EAF6; }
.msg.theirs { align-self: flex-start; background: var(--white); border: 1px solid var(--sky); }
.pill { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--sky); color: var(--navy); }
.pill.warn { background: #FBE7B0; color: #5A4300; }
.pill.ended { background: #F2D9D5; color: var(--error); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--sky); vertical-align: top; }
th { color: var(--navy); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) { .cols { grid-template-columns: 340px 1fr; } }
.scroll-x { overflow-x: auto; }
