/* The microsite builder.
   ------------------------------------------------------------------
   A page is a stack of sections and the editor is the same stack, in
   the same order, with a form open on each. No canvas, no drag layer:
   the thing you are editing and the thing you are looking at have the
   same shape, so there is nothing to translate in your head. */

.blockcard {
  border: 1px solid var(--line, #e4e4de);
  border-radius: 14px;
  background: var(--card, #fff);
  padding: 0 0 4px;
  margin: 0 0 16px;
  overflow: hidden;
}
.blockcard .card {
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  background: transparent;
}
.blockcard .card + .card { border-top: 1px solid var(--line, #e4e4de); }

.blockhead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--bg, #f5f5f2);
  border-bottom: 1px solid var(--line, #e4e4de);
}
.blockhead > b { font-size: 14.5px; }
.blockacts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.blockacts form { display: inline; }

/* ------------------------------------------------------------------
   Picking a section to add. Each one says what it is for, because
   "Hero" and "Feature grid" mean nothing to somebody who fits
   bathrooms. */

.blockmenu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}
.blockmenu form { display: block; }

.blockpick {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1.5px solid var(--line, #e4e4de);
  border-radius: 12px;
  background: var(--card, #fff);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.blockpick:hover {
  border-color: var(--accent, #125a50);
  background: var(--accenttint, #eef4f2);
}
.blockpick:focus-visible { outline: 2px solid var(--accent, #125a50); outline-offset: 2px; }
.blockpick b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.blockpick > span > span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted, #6b6b64);
  font-weight: 400;
}
.bico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--bg, #f5f5f2);
}
.bico svg { width: 17px; height: 17px; }

/* The preview frame is taller here than on a card, because a site is
   scrolled rather than glanced at. */
.cardtop .cardphone { height: 620px; }
@media (max-width: 820px) {
  .cardtop .cardphone { height: 480px; }
}
