/* MMGT Holdings — shared document/letterhead styling for property-management forms */
:root {
  --ink: #1f2937;
  --gold: #d9a520;
  --gold-deep: #a07d1c;
  --gray: #4b5563;
  --muted: #6b7280;
  --light: #9ca3af;
  --line: #e5e7eb;
  --blank: #c9b98a;
  --cream: #faf3dd;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px; line-height: 1.55; color: var(--ink);
  background: #eef2f7;
}
.sheet { max-width: 830px; margin: 22px auto 40px; background: #fff; box-shadow: 0 1px 10px rgba(0,0,0,.09); }

/* ── toolbar (screen only) ── */
.toolbar {
  position: sticky; top: 0; z-index: 50;
  max-width: 830px; margin: 0 auto;
  background: #1e293b; color: #fff;
  padding: 8px 22px; font-size: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.toolbar a { color: #94a3b8; text-decoration: none; font-weight: 600; }
.toolbar a:hover { color: #fff; }
.toolbar .tb-mid { color: #94a3b8; }
.toolbar .tb-btns { display: flex; gap: 8px; }
.toolbar button {
  border: none; border-radius: 4px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.toolbar .btn-print { background: var(--gold); color: #1f2937; }
.toolbar .btn-print:hover { filter: brightness(1.08); }
.toolbar .btn-clear { background: transparent; color: #94a3b8; border: 1px solid #475569; }
.toolbar .btn-clear:hover { color: #fff; }

/* ── letterhead ── */
.lh { padding: 36px 52px 0; }
.lh-mark { font-size: 27px; font-weight: 800; letter-spacing: .5px; color: var(--ink); line-height: 1; }
.lh-mark .g { color: var(--gold); }
.lh-sub { font-size: 9.5px; font-weight: 600; letter-spacing: 3.4px; color: var(--gray); text-transform: uppercase; margin: 3px 0 0 1px; }
.lh-rule { border: none; border-top: 1px solid var(--line); margin: 16px 0 0; }

/* ── document body ── */
.doc { padding: 22px 52px 34px; }
.doc-date { font-size: 12.5px; color: var(--gray); margin-bottom: 8px; }
.doc-title { font-size: 21px; font-weight: 700; color: var(--ink); }
.doc-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--gold); margin-top: 7px; }
.doc-sub { font-style: italic; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.doc p { margin: 10px 0; }

/* gold section headers, like the MMGT reference forms */
.sec { color: var(--gold-deep); font-weight: 700; font-size: 13.5px; margin: 18px 0 7px; }
.sec::before { content: '\25CF\00A0\00A0'; font-size: 8px; vertical-align: 2.5px; color: var(--gold); }

/* fill-in blanks: gold underline style */
input.bl, textarea.bl, select.bl {
  font-family: inherit; font-size: 13px; color: var(--ink);
  border: none; border-bottom: 1px solid var(--blank);
  background: transparent; outline: none; padding: 2px 4px; margin: 0 2px;
  border-radius: 0;
}
input.bl:focus, textarea.bl:focus, select.bl:focus { border-bottom-color: var(--gold); background: #fdfaf1; }
.w-xs { width: 62px; } .w-s { width: 100px; } .w-m { width: 180px; } .w-l { width: 300px; }
.w-full { width: 100%; display: block; margin: 4px 0; }
textarea.bl { width: 100%; display: block; resize: vertical; line-height: 1.5; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; min-height: 54px; }
textarea.bl:focus { border-color: var(--gold); }

/* labeled row (label + underline to edge), like "Full Legal Name: ____" */
.fr { display: flex; align-items: baseline; gap: 8px; margin: 9px 0; }
.fr > label { font-weight: 700; white-space: nowrap; font-size: 13px; }
.fr > label .opt { font-weight: 400; font-style: italic; color: var(--muted); font-size: 11px; }
.fr > input.bl, .fr > .frgrow { flex: 1; min-width: 60px; }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }

/* checkboxes / radios */
label.ck { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-size: 13px; cursor: pointer; }
label.ck input { width: 14px; height: 14px; accent-color: var(--ink); cursor: pointer; }

/* cream highlight bar (key terms) */
.hl { background: var(--cream); padding: 11px 15px; margin: 12px 0; font-weight: 700; border-radius: 3px; }
.hl .bl { background: #fff; }

/* fine print / terms */
.terms { font-size: 11px; color: var(--gray); line-height: 1.55; margin: 10px 0; }
.smallnote { font-style: italic; color: var(--muted); font-size: 11.5px; }

/* numbered agreement sections */
.agree-s { margin: 13px 0; }
.agree-s .t { font-weight: 700; text-decoration: underline; }

/* signature blocks */
.sigrow { display: grid; grid-template-columns: 1.6fr .8fr; gap: 26px; margin-top: 26px; }
.sigrow.even { grid-template-columns: 1fr 1fr; }
.sig { border-bottom: 1.4px solid var(--ink); height: 30px; }
.sig-cap { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
input.bl.sigline { border-bottom: 1.4px solid var(--ink); width: 100%; font-size: 15px; }

/* simple tables */
table.ft { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
table.ft th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 3px 6px; border-bottom: 1px solid var(--line); }
table.ft td { padding: 4px 6px; border-bottom: 1px solid #f3f4f6; }
table.ft input.bl { width: 100%; }

/* checklist rows */
.chkline { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.chkline .q { flex: 1; }
.chkline .yn { white-space: nowrap; }

/* footer */
.ftr {
  text-align: center; font-size: 10px; color: var(--light);
  border-top: 1px solid var(--line);
  padding: 13px 52px; margin-top: 10px;
}

/* ── print ── */
@page { margin: 0.55in; }
@media print {
  body { background: #fff; }
  .sheet { box-shadow: none; margin: 0; max-width: 100%; }
  .toolbar { display: none !important; }
  .lh { padding: 0 0 0; }
  .lh-rule { margin-top: 12px; }
  .doc { padding: 16px 0 20px; }
  .ftr { padding: 10px 0 0; }
  .hl, .sec::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  input.bl, select.bl { border-bottom: 1px solid #b5a266; }
  textarea.bl { border: 1px solid #cfcaba; }
  input::placeholder, textarea::placeholder { color: transparent !important; }
  .avoid-break { break-inside: avoid; }
  .pagebreak { break-before: page; }
}
/* one-page print compaction (apply .one-page on .sheet) */
@media print {
  .one-page { font-size: 11.5px; line-height: 1.45; }
  .one-page .lh-mark { font-size: 22px; }
  .one-page .lh-rule { margin-top: 10px; }
  .one-page .doc { padding-top: 10px; padding-bottom: 12px; }
  .one-page .doc-title { font-size: 17px; }
  .one-page .doc-title::after { margin-top: 5px; }
  .one-page .doc-sub { margin-top: 5px; font-size: 11px; }
  .one-page .doc p { margin: 6px 0; }
  .one-page .sec { margin: 10px 0 4px; font-size: 12px; }
  .one-page .fr { margin: 5px 0; }
  .one-page .terms { font-size: 9.4px; line-height: 1.4; margin: 6px 0; }
  .one-page .hl { padding: 7px 11px; margin: 8px 0; }
  .one-page .smallnote { font-size: 10px; }
  .one-page .sigrow { margin-top: 12px; }
  .one-page .sig { height: 24px; }
  .one-page .ftr { margin-top: 2px; padding-top: 7px; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .lh, .doc, .ftr { padding-left: 20px; padding-right: 20px; }
  .fr2, .sigrow { grid-template-columns: 1fr; }
}
