/* AURIA LASH — Socials page.
   One composer on the left, one preview card per platform on the right.
   The reformatting is the product, so the previews get the real estate. */

.head-note {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.compose-grid {
  display: grid;
  gap: calc(var(--unit) * 3);
  align-items: start;
}

@media (min-width: 940px) {
  .compose-grid { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
  .compose-card { position: sticky; top: calc(var(--unit) * 2); }
}

/* ---------- the composer ---------- */

.field-label,
.acct-head {
  display: block;
  margin-bottom: calc(var(--unit));
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#post-text {
  width: 100%;
  padding: calc(var(--unit) * 1.5);
  background: var(--white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

#post-text:focus {
  outline: 2px solid var(--champagne);
  outline-offset: 1px;
  border-color: var(--rose);
}

.compose-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--unit);
  margin: calc(var(--unit)) 0 calc(var(--unit) * 3);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* media zone: the same frame language as every other placeholder here */
.drop {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: calc(var(--unit) * 3) calc(var(--unit) * 2);
  margin-bottom: calc(var(--unit) * 3);
  background: var(--white);
  border: 1px dashed var(--bone);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}

/* display:grid above outranks the hidden attribute; restore it */
.drop[hidden] { display: none; }

.drop:hover { border-color: var(--rose); }
.drop:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

/* a file is over the target */
.drop.over {
  border-color: var(--rose-vivid);
  border-style: solid;
  background: var(--ivory);
}

/* ---------- the loaded asset ---------- */

.asset {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 1.5);
  padding: calc(var(--unit));
  margin-bottom: calc(var(--unit) * 3);
  background: var(--white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
}

.asset[hidden] { display: none; }

.asset-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--bone);
  background: var(--pearl);
}

.asset-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }

.asset-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-spec {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.asset-acts { display: flex; gap: calc(var(--unit) * 1.5); flex: none; }

.drop-mark {
  width: 30px;
  height: 22px;
  border: 1.5px solid var(--rose);
  border-radius: 2px;
  position: relative;
}

.drop-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 8px;
  background: var(--rose);
  opacity: 0.5;
  clip-path: polygon(0 100%, 32% 22%, 56% 100%, 74% 52%, 100% 100%);
}

.drop-line { font-size: 12.5px; font-weight: 600; color: var(--ink); }

.drop-sub {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.acct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--rose-vivid);
  font: inherit;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.link-btn:hover { color: var(--ink); }

.accts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--unit);
  margin-bottom: calc(var(--unit) * 3);
}

/* An account toggle: the mark alone, no name beside it. Held at 40px so
   it stays a reliable touch target on a phone while the disc inside
   stays 24px; the ring carries the on/off state the label used to. */
.acct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--bone);
  border-radius: 50%;
  cursor: pointer;
}

/* PLATFORM MARK. Official assets supplied by the operator and used as
   supplied, per his ruling on each firm's usage guidelines; some are
   color, some are black, and none is altered, recolored or cropped.
   Sources live in assets/_socials/.
   The ground is a LITERAL white, not a token: two of these marks are
   solid black, and three of the four themes run dark grounds, so a
   theme-following disc would swallow them. */
.mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--bone);
  overflow: hidden;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* never crop a mark to fit the circle */
  display: block;
}

/* OPTICAL SIZING. Measured, not eyeballed: TikTok's asset carries its
   own margin and its ink occupies 75% of its canvas, while LinkedIn and
   X fill theirs corner to corner. Held at equal box size those two read
   heavier, so they are stepped back to sit level in the row. LinkedIn
   goes a shade further than X because a solid black square carries more
   weight than an outline glyph of the same area. The assets themselves
   are untouched; only the space they occupy inside the disc changes. */
.mark.m-x img  { width: 76%; height: 76%; }
.mark.m-li img { width: 72%; height: 72%; }

.acct.on {
  border-color: var(--rose);
  color: var(--ink);
}

.acct.on .mark { border-color: var(--rose); }
.acct:not(.on) .mark { opacity: 0.45; }

.acct:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

.post-btn { width: 100%; }

.post-note {
  margin: calc(var(--unit) * 1.5) 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- the previews ---------- */

.preview-head {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 1.5);
  margin-bottom: calc(var(--unit) * 2);
}

.preview-head .rule { width: 28px; height: 2px; background: var(--champagne); }

.preview-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.preview-grid {
  display: grid;
  gap: calc(var(--unit) * 2);
}

@media (min-width: 640px) {
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pv {
  display: grid;
  gap: calc(var(--unit) * 1.25);
  align-content: start;
  padding: calc(var(--unit) * 2);
  background: var(--white);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.pv.off { opacity: 0.38; }

.pv-head {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 1.25);
}

/* the same placeholder disc, a step larger where the card announces
   itself; the mark leads, the name follows */
.pv-mark {
  width: 30px;
  height: 30px;
  padding: 4px;
}

.pv-name {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.pv-budget {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.pv-budget.over { color: var(--sel-border); font-weight: 600; }

/* the crop the platform gets; ratio and height driven inline by the
   script. Empty it shows the ratio; loaded it shows the actual asset,
   cover-cropped to that platform's frame. */
.pv-crop {
  position: relative;
  flex: none;
  width: 74px;
  background: var(--pearl);
  border: 1px solid var(--bone);
  border-radius: 2px;
  overflow: hidden;
}

.pv-crop::after {
  content: attr(data-ratio);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.pv-crop.loaded::after { content: none; }

.pv-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* the platform's crop, shown honestly */
  display: block;
}

.pv-body {
  display: flex;
  gap: calc(var(--unit) * 1.5);
  align-items: flex-start;
}

.pv-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pv-text .tags { color: var(--rose-vivid); }

.pv-text .empty { color: var(--text-muted); font-style: italic; }

.pv-note {
  padding-top: calc(var(--unit));
  border-top: 1px solid var(--pearl);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pv-note b { color: var(--rose-vivid); font-weight: 600; }
