/* mobile (phones) */

html, body { background: #fff; }

body {
  padding: 0;
  font-size: 13px;
}

#container {
  width: auto;
  border: 0;
}

#content { padding: 8px 6px; gap: 10px; }

.d-only { display: none !important; }
.m-only { display: block; }

/* header: just a little blue strip */

#header { padding: 5px 6px; justify-content: flex-start; }
#logo { gap: 4px; }
#logo img { width: 18px; height: 18px; }
.brand { font-size: 15px; letter-spacing: 0; }
.brand .tld { display: none; }
.m-tag { display: inline; font-size: 10px; color: #ffd38a; }
#nav, #quicklogin { display: none; }

#mbar {
  display: block;
  padding: 5px 6px;
  background: #d4e0ef;
  border-bottom: 1px solid #7f97b8;
}

.flash { margin: 6px 6px 0; font-weight: normal; }

/* footer: "0 Menu" bar */

#footer { display: none; }
#mfooter {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px;
  border-top: 1px solid #7f97b8;
  background: #f4f7fb;
  font-size: 12px;
}

/* numbered menus (1 Messages, 2 People ...) */

.mmenu, .actionlist {
  display: flex;
  flex-direction: column;
  margin: 0 -6px;
  border-top: 1px solid #d5dfec;
}
.mmenu a, .actionlist a, .actionlist button {
  display: flex;
  justify-content: space-between;
  padding: 10px 6px;
  border-bottom: 1px solid #d5dfec;
  text-decoration: underline;
}
.actionlist form { display: block; }
.actionlist button {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid #d5dfec;
  font: inherit;
  color: #0033aa;
  text-align: left;
  cursor: pointer;
}
.actionlist span.off { padding: 10px 6px; border-bottom: 1px solid #d5dfec; color: #777; }
.mmenu .hot { color: #cc5500; font-weight: bold; text-decoration: none; }

/* type & forms */

h1.title, h1.big { font-size: 16px; }
.lead { font-size: 12px; }
.hero { padding-top: 0; text-align: left; }

input.text, select, textarea { font-size: 16px; } /* no zoom on iphone */
input.w-l, input.w-m { width: 100%; box-sizing: border-box; }
.btn, .btn-go { font-size: 14px; padding: 5px 14px; }

.box { padding: 8px 6px; }
.signup { width: auto; }

.formgrid { grid-template-columns: 1fr; gap: 4px; }
.formgrid > label { text-align: left; margin-top: 4px; }

.searchbar { gap: 6px 10px; padding: 6px; }

/* people lists become plain rows */

.cards { grid-template-columns: 1fr; gap: 0; margin: 0 -6px; border-top: 1px solid #d5dfec; }
.card { border: 0; border-bottom: 1px solid #d5dfec; padding: 6px; }
.card .pic img { width: 40px; height: 40px; }

.thumbs { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.thumbs .pic img { width: 48px; height: 48px; }
.thumbs.small .pic img { width: 36px; height: 36px; }

/* profile */

.cols { gap: 8px; }
.col-side { flex: 0 0 auto; }
.pic-big { padding: 2px; }
.pic-big img { width: 64px; height: 74px; }
.col-side .morelink { display: none; }
.profile-meta { font-size: 12px; }
.actions { display: none; }
table.details { max-width: none; font-size: 12px; }
.prose { font-size: 13px; }
.welcome .pic { display: none; }

/* messages: list OR message, never both */

.tabs a { padding: 4px 8px; }
.mailbox { display: block; }
.msglist { margin: 0 -6px; border: 0; border-top: 1px solid #d5dfec; }
.msglist li { border-bottom: 1px solid #d5dfec; }
.msglist li:last-child { border-bottom: 1px solid #d5dfec; }
.msglist .pic { display: none; }
.msglist a { padding: 7px 6px; }
.msglist .who { text-decoration: underline; }
.msglist .star { display: inline; }
.msglist .subj { white-space: normal; }
.reader { border: 0; margin: 0 -6px; }
.reader.blank { display: none; }
.reading .msglist, .reading .tabs { display: none; }
.thread li { padding: 6px; }
.backlink { display: block; padding: 4px 6px; }
