/* ICS - SSSIHMS brand (white, Playfair Display headings, Lato body). Mobile-first:
   designed at 375 px, widens to a 2-3 column tile grid. Fonts are self-hosted (OFL). */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/lato-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/lato-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/playfair-display-700-latin.woff2") format("woff2"); }

:root {
  --sss-blue-deep: #003366;
  --sss-orange: #E07B39;
  --sss-gold: #C8A84B;
  --sss-blue-mid: #1A5276;
  --sss-blue-light: #D6E8F7;
  --sss-white: #FFFFFF;
  --sss-grey-dark: #2C2C2C;
  --sss-grey-mid: #6C6C6C;
  --sss-grey-light: #F4F4F4;
  --sss-danger: #C0392B;
  --sss-success: #2E7D4F;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  color: var(--sss-grey-dark); background: var(--sss-white); }

.bar { background: var(--sss-blue-deep); color: var(--sss-white);
  border-bottom: 2px solid var(--sss-gold); }
.bar-inner { max-width: 960px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1;
  color: var(--sss-white); text-decoration: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px;
  color: var(--sss-blue-light); letter-spacing: .02em; }

main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
h1, h2 { font-family: var(--font-display); color: var(--sss-blue-deep); line-height: 1.1; }
h1 { font-size: 28px; margin: 4px 0 8px; }
h2 { font-size: 22px; margin: 0 0 4px; }
.muted { color: var(--sss-grey-mid); font-size: 14px; }
.who { color: var(--sss-grey-mid); font-size: 14px; margin: 0 0 20px; }
.who strong { color: var(--sss-blue-mid); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: 1fr; }
.tile a { display: block; min-height: 96px; padding: 16px; border: 1px solid var(--sss-blue-light);
  border-left: 4px solid var(--sss-orange); border-radius: 6px; background: var(--sss-white);
  color: inherit; text-decoration: none; }
.tile a:hover, .tile a:focus-visible { background: var(--sss-grey-light); outline: none;
  border-color: var(--sss-blue-mid); border-left-color: var(--sss-orange); }
.tile h2 { font-size: 20px; }
.tile p { margin: 0; font-size: 14px; }
.tag { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--sss-blue-mid);
  background: var(--sss-blue-light); padding: 2px 8px; border-radius: 10px; }

.btn { display: inline-block; min-height: 44px; padding: 10px 18px; border-radius: 6px;
  font: 700 16px/1.5 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--sss-blue-deep); background: var(--sss-blue-deep); color: var(--sss-white); }
.btn:hover, .btn:focus-visible { background: var(--sss-blue-mid); }
.btn-quiet { min-height: 40px; padding: 6px 12px; font-size: 14px; background: transparent;
  border-color: var(--sss-blue-light); color: var(--sss-white); }
.btn-quiet:hover, .btn-quiet:focus-visible { background: var(--sss-blue-mid); }

.panel { max-width: 440px; margin: 24px auto 0; padding: 24px 20px; border: 1px solid var(--sss-blue-light);
  border-top: 3px solid var(--sss-gold); border-radius: 6px; }
.panel p { margin: 0 0 16px; }
.notice { color: var(--sss-danger); }

footer { max-width: 960px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--sss-gold);
  color: var(--sss-grey-mid); font-size: 13px; }

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 32px; }
}
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 36px; }
}
.after { margin-top: 16px; }

/* ── Forms, lists, tables (M2+) ── */
.crumbs { margin: 0 0 4px; font-size: 14px; }
.crumbs a, .list a, a.small { color: var(--sss-blue-mid); }
.form { max-width: 560px; }
.field { margin: 0 0 14px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin: 0 0 4px; color: var(--sss-grey-dark); }
.field input[type=text], .field input[type=date], .field select, .field textarea, .search input, .sus-row input, .sus-row select {
  width: 100%; min-height: 44px; padding: 8px 10px; font: 16px/1.4 var(--font-body); color: var(--sss-grey-dark);
  border: 1px solid #B8C7D6; border-radius: 6px; background: var(--sss-white); }
.field textarea { min-height: 88px; }
.field-check label { font-weight: 400; display: flex; gap: 10px; align-items: center; min-height: 44px; }
.field-check input, .choice input { width: 22px; height: 22px; }
fieldset { border: 0; padding: 0; margin: 0; }
.field .choice { display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 400; margin: 0; }
.help { margin: 4px 0 0; font-size: 13px; color: var(--sss-grey-mid); }
.req { color: var(--sss-danger); }
.field-error { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--sss-danger); }
.error { color: var(--sss-danger); border-left: 4px solid var(--sss-danger); padding: 8px 12px; background: #FBEDEB; }
.ok { color: var(--sss-success); border-left: 4px solid var(--sss-success); padding: 8px 12px; background: #EAF5EE; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.search { margin-bottom: 20px; }
.search label { display: block; font-weight: 700; margin-bottom: 6px; }
.card { border: 1px solid var(--sss-blue-light); border-radius: 6px; padding: 12px 16px; margin: 0 0 20px; }
.list { list-style: none; padding: 0; margin: 0 0 20px; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--sss-grey-light); }
.actions { margin-bottom: 24px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-small { min-height: 44px; padding: 10px 12px; font-size: 14px; }
.btn-edit { background: var(--sss-white); color: var(--sss-blue-deep); }
.btn-edit:hover, .btn-edit:focus-visible { background: var(--sss-blue-light); }
/* list rows with an Edit link: tap targets at least 44 px (F-L10) */
.row-edit { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.edit-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--sss-blue-light); border-radius: 6px; color: var(--sss-blue-mid); font-size: 14px;
  font-weight: 700; text-decoration: none; flex: 0 0 auto; }
.edit-link:hover, .edit-link:focus-visible { background: var(--sss-grey-light); }
.count { display: inline-block; min-width: 28px; padding: 0 8px; border-radius: 12px; font: 700 14px/24px var(--font-body);
  text-align: center; vertical-align: middle; color: var(--sss-blue-deep); background: var(--sss-blue-light); }
.sus { margin: 8px 0 16px; }
.sus legend { font-weight: 700; }
.sus-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--sss-grey-light); }
.sus-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sus-inline span { font-size: 13px; background: var(--sss-grey-light); padding: 2px 8px; border-radius: 10px; }
.grid { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
.grid th { background: var(--sss-blue-deep); color: var(--sss-white); text-align: left; padding: 6px 8px; }
.grid td { padding: 6px 8px; border-bottom: 1px solid var(--sss-grey-light); }
.grid tbody tr:nth-child(even) { background: var(--sss-blue-light); }
.table-wrap { overflow-x: auto; }
@media (min-width: 640px) { .sus-row { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ── Configuration ── */
.verify-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--sss-white); background: var(--sss-orange); border-radius: 8px; padding: 1px 6px; vertical-align: middle; }
.verify-list li { margin: 0 0 6px; font-size: 14px; }
.unit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.small { font-size: 13px; }
.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--sss-grey-light); }
.btn-danger { background: var(--sss-white); color: var(--sss-danger); border-color: var(--sss-danger); }
.btn-danger:hover, .btn-danger:focus-visible { background: #FBEDEB; }
