/* Tanah Mympi guest app: report a problem + meet the team */

/* ---------- Account card ---------- */
.repcard { margin-top: 4px; }
.repcard h2 { font-size: var(--fs-h3); color: var(--teal); }
.repcard p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.repcard p.ropen { color: var(--navy); }
.rbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.rnew { display: inline-block; min-width: 18px; padding: 0 8px; margin-left: 2px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 0.75rem; line-height: 18px; vertical-align: 1px; }
.repnote { margin: 18px 0 0; text-align: center; }

/* ---------- Report sheet ---------- */
#repRoot .sheet, #teamRoot .sheet { max-height: 94vh; max-height: 94dvh; }
.rlabel { display: block; font-size: 0.95rem; color: var(--navy); font-weight: 500; margin: 16px 0 8px; }
#repText { min-height: 110px; resize: vertical; font-size: 1rem; }
.rph { display: flex; gap: 12px; align-items: center; }
.rthumb { display: block; flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sand-light); }
.rthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rthumb.big { width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 3; margin-top: 8px; }
.rpi { min-width: 0; flex: 1; font-size: 0.95rem; }
.rerr { color: var(--danger); }
#repRoot .spinner { width: 22px; height: 22px; border-width: 3px; margin: 21px auto; }

/* ---------- My reports ---------- */
.rep .rw { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.rep .rd { font-size: 1.05rem; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.rep .meta { font-size: 0.88rem; margin-top: 4px; }
.rep.cancelled { opacity: 0.85; border-style: dashed; }
.reta { margin-top: 12px; padding: 8px 12px; background: var(--sand-light); border-radius: 10px; font-size: 0.95rem; }
.reta.late { background: #fbf1dc; color: #7a5410; }
.reta em { color: var(--muted); }
.rmsg { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--sky); background: var(--white); border-radius: 0 10px 10px 0; font-size: 0.97rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.rmsg .rl { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.rdone { margin-top: 12px; font-size: 0.97rem; color: var(--success); }
.rdone div { color: var(--navy); margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep > .link { margin-top: 10px; }
.rconf { margin-top: 12px; padding: 12px; border: 1px solid var(--sand); border-radius: 10px; background: var(--cream); }
.rconf p { margin: 0; }

/* ---------- Island sections: scroll sideways when there are too many to fit ---------- */
#p-island .seg { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#p-island .seg::-webkit-scrollbar { display: none; }
#p-island .seg button { flex: 1 0 auto; padding: 0 16px; white-space: nowrap; }

/* ---------- Meet the team ---------- */
.mtgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
@media (min-width: 600px) { .mtgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .mtgrid { grid-template-columns: repeat(4, 1fr); } }
.mtcard { display: block; text-align: left; width: 100%; padding: 8px 8px 12px; background: var(--white); border: 1px solid var(--sand-light); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; }
.mtcard:active { background: var(--sand-light); }
.mtcard:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.mtcard .mtph { aspect-ratio: 4 / 5; width: 100%; }
.mtcard .mtph.tm-photo-empty span { font-size: 3rem; }
.mtcard .mtn { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--teal); margin: 10px 4px 0; line-height: 1.15; }
.mtcard .mtr { display: block; font-size: 0.9rem; color: var(--muted); margin: 2px 4px 0; line-height: 1.25; }
.mtprof .mtbig { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 14px; }
.mtprof .mtbig.tm-photo-empty span { font-size: 5rem; }
.mtprof .mtrole { text-align: center; color: var(--teal); font-size: 1.1rem; margin-top: 12px; }
.mtprof .mtfacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.mtprof .mtbio { margin-top: 14px; padding-bottom: 8px; overflow-wrap: anywhere; }
.mtprof .mtbio p { margin: 0 0 12px; }
