/* Ridgelift MOSAIC Inspection Readiness Checker (/hangar/mosaic-inspection/).
   Same hangar language as styles.css: Basalt #1C2220, Blaze #E8692A, paper #F4F1EA, Barlow / Barlow Condensed. */

.mt-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.mt-panel, .mt-result-wrap { background: var(--basalt-raised); border: 1px solid var(--rule); border-top: 3px solid var(--blaze); padding: 1.4rem 1.4rem 1.5rem; }
.mt-panel fieldset { border: 0; margin: 0 0 1.15rem; padding: 0; min-width: 0; }
.mt-panel legend, .mt-label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: var(--bone); margin-bottom: 0.45rem; padding: 0; }
.mt-step { display: inline-block; min-width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; border-radius: 50%; background: var(--blaze); color: var(--basalt-deep); margin-right: 0.45rem; font-size: 0.85rem; }
.mt-panel select, .mt-panel textarea, .mt-builder input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--bone); background: var(--basalt-deep);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0.6rem 0.65rem;
}
.mt-panel textarea { min-height: 7rem; resize: vertical; font-size: 0.95rem; }
.mt-panel select:focus, .mt-panel textarea:focus, .mt-builder input:focus { outline: 2px solid var(--blaze); outline-offset: 1px; }
.mt-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.9rem; }
.mt-choices label { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted); font-size: 0.95rem; cursor: pointer; }
.mt-choices input { accent-color: var(--blaze); width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.mt-hint { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0; }
.mt-panel .btn { width: 100%; margin-top: 0.4rem; }

.mt-result-wrap h2 { margin: 0 0 0.8rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.mt-placeholder { color: var(--muted); }
.mt-status { border: 1px solid var(--rule-strong); border-left-width: 6px; padding: 0.9rem 1rem; margin: 0 0 1rem; background: var(--basalt-deep); }
.mt-status p { margin: 0; }
.mt-status-k { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--muted); }
.mt-status-v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; color: var(--bone); }
.mt-status.is-ready { border-left-color: #6fb37f; }
.mt-status.is-ready .mt-status-v { color: #9fd3aa; }
.mt-status.is-amend { border-left-color: var(--blaze); }
.mt-status.is-amend .mt-status-v { color: var(--blaze-hover); }
.mt-status.is-owner { border-left-color: #d9b24a; }
.mt-status.is-owner .mt-status-v { color: #e6c66e; }
.mt-status.is-no { border-left-color: #c0574a; }
.mt-status.is-no .mt-status-v { color: #f0a090; }
.mt-why { color: var(--bone) !important; }
.mt-notes, .mt-steps { color: var(--muted); padding-left: 1.2rem; margin: 0.6rem 0 1rem; }
.mt-notes li, .mt-steps li { margin: 0.35rem 0; }
.mt-result-wrap h4, .mt-sec h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem; margin: 1.1rem 0 0.3rem; color: var(--bone); }
.mt-cites { font-size: 0.9rem; }
.mt-fine { font-size: 0.85rem; color: var(--muted); opacity: 0.9; }
.mt-result-actions { margin-top: 1rem; }

/* Optional "Email me this result" step under the result. */
.mt-email { margin-top: 1.1rem; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.mt-email summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; color: var(--bone); }
.mt-email[open] summary { color: var(--blaze-hover); }
.mt-email-form { margin-top: 0.8rem; }
.mt-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 0.6rem; align-items: end; }
.mt-email-row .mt-label { grid-column: 1 / -1; margin: 0; }
.mt-email-row input { width: 100%; font: inherit; font-size: 1rem; color: var(--bone); background: var(--basalt-deep); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0.6rem 0.65rem; }
.mt-email-row input:focus { outline: 2px solid var(--blaze); outline-offset: 1px; }
.mt-email-news { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.7rem 0 0; color: var(--muted); font-size: 0.95rem; cursor: pointer; }
.mt-email-news input { accent-color: var(--blaze); width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.mt-email .form-status { margin: 0.5rem 0 0; }

/* Packet builder */
.mt-mode { margin: 0 0 1rem; color: var(--muted); }
.mt-mode .badge { margin-right: 0.5rem; }
.mt-kit-status { display: block; margin-top: 0.4rem; color: #f0b3a0; }
.mt-builder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem 0.9rem; margin: 0 0 1rem; }
.mt-builder .field label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; color: var(--muted); }
.mt-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.4rem; }
.mt-actions .btn { flex: 0 1 auto; }
.mt-actions [hidden] { display: none !important; }
.mt-price { font-family: var(--font-display); font-weight: 800; color: var(--blaze); }

/* The paper itself */
.mt-paper { position: relative; overflow: hidden; background: #F4F1EA; color: #1C2220; padding: clamp(1.1rem, 3vw, 2.4rem); border-top: 6px solid var(--blaze); box-shadow: var(--shadow); }
.mt-paper p, .mt-paper li, .mt-paper td { color: #1C2220; }
.mt-paper h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.35rem; color: #1C2220; border-bottom: 2px solid #1C2220; padding-bottom: 0.2rem; margin: 1.6rem 0 0.6rem; }
.mt-paper h4 { color: #1C2220 !important; }
.mt-paper-head h3 { margin-top: 0.2rem; font-size: clamp(1.5rem, 3vw, 2rem); border: 0; }
.mt-paper-brand { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blaze-deep) !important; }
.mt-paper .mt-fine { color: #4a4f4c; }
.mt-doc-meta { text-align: right; }
.mt-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.8rem; font-size: 0.9rem; }
.mt-table th, .mt-table td { border: 1px solid #b9b2a2; padding: 0.35rem 0.5rem; text-align: left; vertical-align: top; }
.mt-table th { background: #e6dcc6; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; }
.mt-check td:first-child { width: 2.2rem; text-align: right; }
.mt-box { width: 2.6rem; }
.mt-blank { display: inline-block; border-bottom: 1px solid #555; height: 1em; vertical-align: -0.15em; }
.mt-sig { display: inline-block; min-width: 13rem; border-top: 1px solid #333; margin: 1.8rem 1.4rem 0 0; padding-top: 0.15rem; font-size: 0.8rem; }
.mt-insert { border: 1px dashed #8a8475; padding: 0.7rem 0.8rem; }
.mt-paper-foot { margin-top: 1.6rem; font-size: 0.78rem; color: #5a5f5c; border-top: 1px solid #c8c0ae; padding-top: 0.6rem; }
.mt-sec { position: relative; }
.mt-sec.is-locked .mt-sec-body { filter: blur(4px); user-select: none; pointer-events: none; max-height: 13rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.mt-lock-note { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); margin: 0; background: #1C2220; color: #F4F1EA !important; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; padding: 0.45rem 0.9rem; border-left: 3px solid var(--blaze); white-space: nowrap; }
.mt-watermark { position: absolute; top: 9rem; left: -10%; right: -10%; margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4.6rem); color: rgba(232, 105, 42, 0.16) !important; transform: rotate(-18deg); pointer-events: none; z-index: 2; }

/* FAQ */
.faq { margin-top: 2.5rem; }
.faq h2 { margin-bottom: 0.8rem; }
.faq-item { border-top: 1px solid var(--rule); padding: 0.8rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--bone); list-style-position: outside; }
.faq-item p { margin: 0.5rem 0 0; color: var(--muted); }
.faq-item[open] summary { color: var(--blaze-hover); }

.step-list { counter-reset: s; list-style: none; padding: 0 !important; }
.step-list > li { counter-increment: s; position: relative; padding: 0.2rem 0 0.8rem 2.6rem; }
.step-list > li::before { content: counter(s); position: absolute; left: 0; top: 0.1rem; width: 1.8rem; height: 1.8rem; line-height: 1.8rem; text-align: center; border-radius: 50%; background: var(--blaze); color: var(--basalt-deep); font-family: var(--font-display); font-weight: 800; }
.step-list strong { color: var(--bone); }
.rule-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.rule-table th, .rule-table td { border-bottom: 1px solid var(--rule); padding: 0.55rem 0.5rem; text-align: left; vertical-align: top; color: var(--muted); }
.rule-table th { color: var(--bone); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.answer-first { background: var(--basalt-raised); border-left: 3px solid var(--blaze); padding: 1rem 1.2rem; margin: 0 0 2rem; }
.answer-first p { color: var(--bone) !important; margin: 0; }

@media (max-width: 860px) {
  .mt-grid { grid-template-columns: 1fr; }
  .mt-builder { grid-template-columns: 1fr 1fr; }
  .mt-choices { grid-template-columns: 1fr; }
  .rule-table { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  .mt-email-row { grid-template-columns: 1fr; }
  .mt-builder { grid-template-columns: 1fr; }
  .mt-table { font-size: 0.8rem; }
  .mt-actions .btn { width: 100%; }
}

/* Print: only the target (free summary or packet) is printed. */
@media print {
  body.mt-print * { visibility: hidden !important; }
  body.mt-print .mt-print-target, body.mt-print .mt-print-target * { visibility: visible !important; }
  body.mt-print .mt-print-target { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; background: #fff; color: #000; }
  body.mt-print .mt-print-target .mt-result-actions, body.mt-print .mt-print-target [data-mt-email] { display: none; }
  body.mt-print .mt-status-v, body.mt-print .mt-why, body.mt-print .mt-notes, body.mt-print .mt-steps { color: #000 !important; }
  body.mt-print .mt-sec { break-inside: auto; }
  body.mt-print #mt-worksheet, body.mt-print #mt-asi, body.mt-print #mt-checklist, body.mt-print #mt-logs { break-before: page; }
}
