/* Hearing request (hearing.html): the US Sailing paper form, page for page,
   on top of the quiz pages' header, dialogs and menus (quiz.css). */

:root {
  --hr-ink: #000;
  --hr-grey: #dcdcdc;       /* the side band and the grey bars */
  --hr-grey-soft: #efefef;  /* "for committee use", the approval half */
  --hr-paper-w: 816px;      /* 8.5in */
  --hr-form: Verdana, Tahoma, "DejaVu Sans", Geneva, sans-serif;
}

.hr-body { background: #e9ecf1; }
.hr-app-icon { color: #fff; background: var(--qz-accent); border-radius: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hr-doc-name { font-family: var(--qz-display); font-size: 18px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-view-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: var(--qz-accent-tint); color: var(--qz-accent); font-size: 12px; font-weight: 500; white-space: nowrap; }

.hr-main { padding: 24px 16px 48px; }
.hr-credit { max-width: var(--hr-paper-w); margin: 0 auto; color: var(--qz-muted); font-size: 12px; text-align: center; }
.hr-credit svg { vertical-align: -3px; }

/* ── A sheet of paper ───────────────────────────────────────────────────── */
.hr-paper {
  position: relative; width: 100%; max-width: var(--hr-paper-w); min-height: 1056px; /* 11in */
  margin: 0 auto 24px; padding: 34px 44px 56px;
  background: #fff; color: var(--hr-ink); box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25), 0 4px 12px rgba(60, 64, 67, 0.12);
  font-family: var(--hr-form); font-size: 12.5px; line-height: 1.25;
}
.hr-paper b { font-weight: 700; }
.hr-foot { position: absolute; left: 44px; right: 44px; bottom: 28px; display: flex; justify-content: space-between; font-size: 10px; }

/* The boxes you write in. */
.hr-in {
  display: block; width: 100%; min-width: 0; height: 28px; padding: 4px 6px; margin: 0;
  border: 1px solid #333; border-radius: 0; background: #fff;
  font-family: var(--hr-form); font-size: 12.5px; color: #000;
}
.hr-in:focus { outline: none; border-color: var(--qz-accent); box-shadow: 0 0 0 2px var(--qz-accent-soft); background: #f8fbff; }
.hr-in::placeholder { color: #9aa0a6; }
.hr-in.hr-line { height: 22px; border: 0; border-bottom: 1px solid #333; background: transparent; padding: 2px 4px; }
.hr-in.hr-line:focus { box-shadow: 0 2px 0 0 var(--qz-accent); }
.hr-area { height: auto; resize: none; line-height: 1.4; padding: 6px 8px; }
.hr-readonly .hr-in:focus { box-shadow: none; border-color: #333; background: #fff; }
.hr-readonly .hr-in.hr-line:focus { background: transparent; }

/* Checkboxes: plain squares, as on the paper. */
.hr-check { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.hr-check input {
  -webkit-appearance: none; appearance: none; margin: 0; width: 15px; height: 15px; flex: 0 0 auto;
  border: 1px solid #555; background: #fff; display: inline-grid; place-content: center; cursor: pointer;
}
.hr-check input::before { content: ""; width: 9px; height: 9px; transform: scale(0); background: #000; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.hr-check input:checked::before { transform: scale(1); }
.hr-check input:focus-visible { outline: 2px solid var(--qz-accent); outline-offset: 1px; }
.hr-check input:disabled { cursor: default; }
.hr-readonly .hr-check { cursor: default; }

/* ── Page 1 ─────────────────────────────────────────────────────────────── */
.hr-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.hr-logo { flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: #333; }
.hr-logo img { width: 56px; height: 56px; display: block; }
.hr-titles { flex: 0 0 auto; padding-top: 2px; }
.hr-h1 { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; }
.hr-h2 { font-size: 15px; line-height: 1.2; max-width: 215px; }
.hr-head2 .hr-h2 { font-size: 14px; }
.hr-committee {
  flex: 1 1 auto; margin-left: 4px; padding: 2px 6px 6px; min-width: 0;
  border: 1px dotted #444; background: var(--hr-grey-soft); font-size: 11.5px;
}
.hr-committee-label { font-size: 10px; margin-bottom: 4px; }
.hr-crow { display: grid; grid-template-columns: 2.5fr 1fr; gap: 8px; margin-top: 6px; }
.hr-crow label { display: flex; align-items: flex-end; gap: 4px; white-space: nowrap; }
.hr-crow .hr-indent { padding-left: 22px; }
.hr-crow .hr-c2 { padding-left: 4px; }
.hr-committee .hr-in.hr-line { font-size: 11px; height: 20px; padding: 2px 2px; }
.hr-crow .hr-in { flex: 1 1 auto; }

.hr-race { display: grid; grid-template-columns: 56px 252px 1fr; gap: 12px; margin-bottom: 16px; }
.hr-fld { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.hr-race .hr-in { height: 30px; }
.hr-date b { margin-left: -2px; }

.hr-type { display: grid; grid-template-columns: 210px 1fr 1fr 1fr; align-items: center; margin-bottom: 16px; font-size: 13.5px; }

.hr-parties { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.hr-party { padding-right: 12px; }
.hr-party-right { padding: 0 0 0 16px; border-left: 1px solid #555; }
.hr-ph { display: flex; flex-direction: column; margin-bottom: 8px; font-size: 13.5px; }
.hr-ph small { font-size: 10px; }
.hr-prow { display: grid; grid-template-columns: 158px 1fr; align-items: center; margin-bottom: 4px; font-size: 12.5px; }
.hr-prow small { font-size: 9.5px; }

/* The grey band down the left side. */
.hr-band { border-left: 12px solid var(--hr-grey); padding: 0 0 0 10px; }
.hr-band-head { padding: 2px 0 6px; font-size: 12.5px; }
.hr-band-head b { font-size: 13.5px; }

.hr-igrid {
  display: grid; grid-template-columns: 200px 106px 186px 104px 1fr; align-items: center; row-gap: 4px;
  padding-left: 10px;
}
.hr-when-head { background: var(--hr-grey); padding: 3px 6px; text-align: center; font-size: 12.5px; margin: 0 -6px 0 -6px; }
.hr-yn { display: inline-flex; gap: 6px; align-self: stretch; align-items: center; background: transparent; }
.hr-igrid > .hr-in:nth-child(5n + 3) { box-shadow: -6px 0 0 0 var(--hr-grey); }
.hr-ilabel { font-size: 12.5px; }
.hr-ilabel.hr-r { text-align: right; padding-right: 6px; }
.hr-inform { padding-bottom: 6px; }

.hr-incident { padding-bottom: 2px; }
.hr-q { display: block; padding-left: 10px; margin: 6px 0 2px; font-size: 12.5px; }
.hr-q .hr-in { margin: 6px 0 0 -10px; width: calc(100% + 10px); }
.hr-incident-text { min-height: 222px; }
.hr-rules { display: grid; grid-template-columns: 286px 1fr; align-items: center; margin-top: 6px; }

/* ── Page 2 ─────────────────────────────────────────────────────────────── */
.hr-greybar { background: var(--hr-grey); padding: 5px 22px; font-size: 13.5px; }
.hr-band-flush .hr-band-head { padding-top: 6px; }

/* The diagram: a plain white area for the board and / or words. */
.hr-diagram {
  position: relative; display: flex; flex-direction: column; min-height: 640px; margin: 0 0 6px;
  background: #fff;
}
.hr-diagram-board { position: relative; }
.hr-diagram-board .qz-board { margin: 10px 8px 0; border-color: #555; border-radius: 4px; }
.hr-diagram-board .qz-board-stage { aspect-ratio: 4 / 3; }
.hr-board-tools { display: flex; justify-content: flex-end; gap: 4px; margin: 4px 8px 0; }
.hr-board-tools button { background: #fff; }
.hr-diagram-add {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 34px auto 0; padding: 18px 22px;
  background: rgba(255, 255, 255, 0.94); border: 1px dashed #9aa0a6; border-radius: 12px; font-family: var(--qz-font);
}
.hr-diagram-add-text { display: inline-flex; align-items: center; gap: 8px; color: var(--qz-muted); font-size: 14px; }
.hr-diagram-add-text svg { color: var(--qz-accent); }
.hr-diagram-add-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hr-diagram-text {
  flex: 1 1 auto; min-height: 140px; border: 0; background: transparent; resize: none; line-height: 1.5; padding: 14px 16px;
}
.hr-diagram-text:focus { background: #f8fbff; box-shadow: inset 0 0 0 2px var(--qz-accent-soft); }
.hr-diagram.has-board .hr-diagram-text { flex: 0 0 auto; min-height: 120px; }
.hr-readonly .hr-diagram-text:focus { background: transparent; box-shadow: none; }
.hr-witness { padding-left: 0; }
.hr-witness .hr-in { margin-left: -10px; }

.hr-withdraw { border: 1px solid #555; margin-top: 12px; font-size: 13.5px; }
.hr-wd-head { padding: 3px 6px 2px; font-weight: 700; }
.hr-wd-cols { display: grid; grid-template-columns: 1fr 1fr; }
.hr-wd-col { padding: 0 6px 4px; }
.hr-wd-grey { background: var(--hr-grey-soft); }
.hr-wd-sign { display: flex; align-items: flex-end; gap: 8px; }
.hr-wd-sign > span { white-space: nowrap; padding-bottom: 14px; }
.hr-sign-slot { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hr-sign-slot small { font-size: 7.5px; line-height: 1.4; }
.hr-sign {
  position: relative; width: 100%; height: 40px; border-bottom: 1px dotted #555;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.hr-sign img { max-height: 46px; max-width: 100%; display: block; margin-bottom: -4px; }
.hr-sign[role="button"] { cursor: pointer; }
.hr-sign[role="button"]:hover, .hr-sign[role="button"]:focus-visible { background: var(--qz-accent-tint); outline: none; }
.hr-sign-hint { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--qz-accent); font-family: var(--qz-font); font-size: 12px; font-weight: 500; }
.hr-wd-name { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px; padding: 6px 0 0 80px; }

/* Signature pad */
.hr-pad-canvas { display: block; width: 100%; height: 180px; border: 1px solid var(--qz-line); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(to top, transparent 44px, #bdc1c6 44px, #bdc1c6 45px, transparent 45px); }
.hr-pad-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* Share */
.hr-share-h { margin: 4px 0 10px; font-family: var(--qz-display); font-size: 15px; font-weight: 500; }
.hr-share-h + .hr-share-row { padding-top: 0; }
.hr-share-add { display: flex; gap: 8px; margin-bottom: 10px; }
.hr-share-add input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--qz-line); border-radius: 8px; font-size: 14px; }
.hr-share-add input:focus { outline: none; border-color: var(--qz-accent); box-shadow: inset 0 0 0 1px var(--qz-accent); }
.hr-share-add .qz-btn-primary.small { height: 40px; }
.hr-share-people { list-style: none; margin: 0 0 18px; padding: 0; max-height: 240px; overflow: auto; }
.hr-share-people li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.hr-person-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: var(--qz-accent); color: #fff; font-weight: 500; }
.hr-person-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hr-person-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-person-role { color: var(--qz-muted); font-size: 13px; }
.hr-share-row { display: flex; align-items: center; gap: 14px; padding: 4px 0 14px; }
.hr-share-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--qz-hover); color: var(--qz-muted); }
.hr-share-icon.on { background: #e6f4ea; color: var(--qz-green); }
.hr-share-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hr-share-scope, .hr-share-role { font: inherit; font-weight: 500; color: var(--qz-ink); border: 0; background: transparent; padding: 4px 2px; border-radius: 6px; cursor: pointer; }
.hr-share-scope { align-self: flex-start; margin-left: -4px; font-size: 14px; }
.hr-share-role { flex: 0 0 auto; font-size: 13px; }
.hr-share-scope:hover:not(:disabled), .hr-share-role:hover:not(:disabled) { background: var(--qz-hover); }
.hr-share-scope:disabled, .hr-share-role:disabled { cursor: default; opacity: 1; appearance: none; -webkit-appearance: none; }
.hr-share-link { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--qz-field); }
.hr-share-link input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--qz-muted); font-size: 13px; }
.hr-share-note { margin: 14px 0 0; }

/* Messages (not found, sign in, in the trash) */
.hr-message { max-width: 460px; margin: 15vh auto 0; padding: 32px; text-align: center; background: #fff; border-radius: 12px; box-shadow: var(--qz-shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hr-message > svg { color: var(--qz-accent); }
.hr-message h1 { margin: 4px 0 0; font-family: var(--qz-display); font-size: 22px; font-weight: 400; }
.hr-message p { margin: 0 0 10px; color: var(--qz-muted); }

/* ── Phones: the paper reflows ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .hr-main { padding: 12px 8px 32px; }
  .hr-paper { min-height: 0; padding: 20px 16px 52px; }
  .hr-foot { left: 16px; right: 16px; }
  .hr-head { flex-wrap: wrap; }
  .hr-committee { flex-basis: 100%; margin-left: 0; }
  .hr-crow { grid-template-columns: 1fr; }
  .hr-crow .hr-indent, .hr-crow .hr-c2 { padding-left: 0; }
  .hr-race { grid-template-columns: 70px 1fr; }
  .hr-event { grid-column: 1 / -1; }
  .hr-type { grid-template-columns: 1fr 1fr 1fr; row-gap: 8px; }
  .hr-type > b { grid-column: 1 / -1; }
  .hr-parties { grid-template-columns: 1fr; row-gap: 16px; }
  .hr-party, .hr-party-right { padding: 0; border: 0; }
  .hr-prow { grid-template-columns: 136px 1fr; gap: 6px; font-size: 12px; }
  .hr-igrid { grid-template-columns: 1fr auto; padding-left: 0; gap: 6px; }
  .hr-igrid > span:empty, .hr-when-head { display: none; }
  .hr-igrid > .hr-in { grid-column: 1 / -1; box-shadow: none !important; }
  .hr-ilabel.hr-r { text-align: left; grid-column: 1 / -1; }
  .hr-rules { grid-template-columns: 1fr; gap: 6px; }
  .hr-diagram { min-height: 420px; }
  .hr-wd-cols { grid-template-columns: 1fr; }
  .hr-wd-name { padding-left: 0; }
  .hr-wd-sign { flex-wrap: wrap; }
  .hr-doc-name { font-size: 16px; }
  .hr-view-chip span { display: none; }
}

/* ── Printing (and Save as PDF): just the two pages ─────────────────────── */
@page { size: letter; margin: 0; }
@media print {
  .hr-body { background: #fff; }
  .hr-top, .hr-credit, .qz-snack, .hr-diagram-add, .hr-board-tools, .hr-sign-hint, .qz-board-bar, .qz-board-shield, .qz-board-status { display: none !important; }
  .hr-main { padding: 0; }
  .hr-paper { box-shadow: none; margin: 0; max-width: none; width: 8.5in; height: 11in; min-height: 0; overflow: hidden; break-after: page; page-break-after: always; }
  .hr-paper:last-of-type { break-after: auto; page-break-after: auto; }
  .hr-in::placeholder { color: transparent; }
  .hr-in:focus { box-shadow: none !important; background: #fff !important; }
  .hr-diagram-text:focus, .hr-in.hr-line:focus { background: transparent !important; }
  .hr-diagram-board .qz-board { border-radius: 0; }
  .hr-sign { background: transparent !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
