/* Layout only. Colors, fonts, and type sizes come from assets/styles.css. */
.shell {
  min-height: calc(100svh - var(--mast));
  display: grid;
  align-content: center;
  justify-items: center;
  padding: var(--gut);
}
.shell .form-card {
  width: min(100%, 560px);
}
.shell .form-status {
  margin-top: 16px;
}
.desk {
  width: min(100%, 720px);
}
.desk-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.desk-row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  min-height: 44px;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* L2 board desk. Layout only. Type comes from the site classes (h-lg, fine, label); colors are the site's own tokens. */
.shell-top {
  align-content: start;
}
.counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 720px) {
  .counts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.count {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
}
.count-n {
  color: var(--red);
}
.count-zero .count-n {
  color: var(--green-stamp);
}
.count-on {
  box-shadow: 5px 5px 0 var(--ink);
}
.desk-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
}
.desk-tabs .btn,
.desk-filters summary {
  min-height: 44px;
}
.desk-filters {
  margin: 0 0 20px;
}
.desk-filters summary {
  list-style: none;
  cursor: pointer;
}
.desk-filters summary::-webkit-details-marker {
  display: none;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
  margin-top: 16px;
}
@media (min-width: 720px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.filter-grid select {
  min-height: 44px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.filter-grid .btn {
  margin-bottom: 12px;
}
.desk-h {
  margin-top: 8px;
}
.desk-row {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.due-late {
  color: var(--red);
}
.desk-foot {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.shell .form-card .ledger-follow {
  margin-top: 36px;
}
.shell .form-card .ledger-history {
  margin-top: 36px;
}
.shell .handover-continue {
  margin-top: 36px;
}

/* Not in effect, and never has been: three missing closing braces in an earlier merge (after .shell .handover-continue,
   .check-amber and .register s) left every rule below nested inside the rule above, so browsers have ignored them.
   Turning them on would change how the register forms, the website preview and the public HOA websites look, so they
   stay off: Andrew's decision, Nov 12, 6:54 PM (went with the suggestion to leave them off).
.shell .register {
  width: min(100%, 720px);
  overflow-wrap: anywhere;
}
.shell .register .btn,
.shell .register input,
.shell .register select,
.shell .register textarea {
  min-height: 44px;
  max-width: 100%;
}
.shell .register .check-amber {
  color: color-mix(in srgb, var(--red) 45%, var(--ink));
.shell .register s {
  text-decoration: line-through;
header.site-head .mast-row {
  height: auto;
  min-height: var(--mast);
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}
header.site-head .nav-links {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  gap: 8px 16px;
}
.mast .nav-links {
  flex-wrap: wrap;
  white-space: normal;
  gap: 8px 16px;
}
.site-main {
  width: min(100%, 960px);
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 48px;
}
.site-block {
  margin: 28px 0;
}
.site-alert {
  border: 2px solid var(--ink);
  padding: 12px 14px;
  margin: 0 0 20px;
}
.site-foot {
  padding-bottom: 40px;
}
.preview-phone {
  width: min(100%, 390px);
}
.preview-desk {
  width: min(100%, 960px);
}
.article ul {
  list-style: disc;
  padding-left: 1.2em;
}
.article ol {
  list-style: decimal;
  padding-left: 1.2em;
}
.article li {
  margin: 0.2em 0;
}
*/

/* AT-18 tap targets (Andrew, Nov 12, 6:24 PM): a text link in a paragraph, list item or .link-run becomes a box with 13 px above
   and below its text, so its tap area is at least 44 px tall; its line gets taller and nothing else changes. Left out:
   buttons (.btn, already big enough), links inside a sentence (.in-text, so the sentence still wraps normally) and
   anything in the website preview (.preview-phone, .preview-desk), which must look exactly like the public site. */
.shell :is(p, li, .link-run) > a:not(.btn, .in-text):not(:is(.preview-phone, .preview-desk) a) {
  display: inline-block;
  padding-block: 13px;
  min-width: 44px;
}
/* A run of links separated by dots: each link keeps its dot, so no line starts with one. */
.shell .link-run {
  white-space: nowrap;
}

/* Checkboxes inside a form field sit beside their label, and the whole 44 px row is the tap area (the shared .field
   style stretches every input to full width, which pushed each box away from its name). Andrew, Nov 12, 7:15 PM. */
.shell .field input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  flex: none;
}
.shell .field label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* "Send it" choices on a request: one per line, each a 44 px tap row (they ran together on one line). Andrew, Nov 13. */
.shell .send-way {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.shell .send-way input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
}

/* Board members page (Andrew, Nov 12): room between people, and between the page's parts. */
.board-people li {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--ink);
}
.board-people li > p {
  margin: 0 0 12px;
}
.board-people .btn-sm {
  min-height: 44px;
}
.board-page .desk-h {
  margin-top: 32px;
}
