/* Riang · the platform's own additions: nothing here restyles a theme. */

/* The owner's draft preview says so; a catalogue preview and a published page never show it. */
.riang-preview {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 120;
  padding: 6px 14px; border-radius: 999px; background: rgb(20 20 20 / .82); color: #fff;
  font: 600 .75rem/1.2 system-ui, sans-serif; white-space: nowrap; pointer-events: none;
}
.riang-noscript { padding: 24px; text-align: center; font-family: system-ui, sans-serif; }

/* Notices the forms print (a reply recorded, a wish awaiting review) sit above the form, not under it. */
.sec--rsvp .hint[role="status"], .sec--wishes .hint[role="status"] { margin: 0 0 12px; font-size: .9rem; }

/* A form on its way to the server. */
form[aria-busy="true"] { opacity: .7; }

/* RIANG-002: base.css gives .field a display, which beats the browser's own rule for [hidden], so
   "Jumlah orang" stayed on screen after "Tidak hadir". Hidden means hidden, for everything drawn here. */
#gate [hidden], .inv [hidden], .riang-music[hidden] { display: none !important; }

/* The source styled a form's textarea by its own theme codes, which the import re-keyed; without this
   the RSVP note is a bare browser textarea beside styled inputs. */
.field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--field-line, var(--card-line)); border-radius: 12px;
  background: var(--field-bg, #fff); color: var(--field-ink, var(--ink)); font: inherit; line-height: 1.4; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(0 0 0 / .06); }

/* RIANG-003: on a phone a round button in the corner sat on the last words of whatever line was behind
   it. Every section keeps a 22px gutter (--sec-pad), so the button becomes a tab on the right edge that
   is no wider than that gutter; its tap area reaches further in, unseen. A wide screen has the room for
   the round button and keeps it. */
@media (max-width: 1023px) {
  .riang-music {
    right: 0; bottom: max(22vh, 120px); width: 22px; height: 52px; border-radius: 14px 0 0 14px; border-right: 0;
    box-shadow: -3px 4px 12px rgb(0 0 0 / .18);
  }
  .riang-music::before { content: ""; position: absolute; top: -4px; bottom: -4px; right: 0; width: 44px; }
  .riang-music .ic { width: 16px; height: 16px; }
}

/* A short phone (360x640) had "Buka Undangan" below the fold. The cover tightens until it fits. */
@media (max-height: 700px) and (max-width: 1023px) {
  .gate__in { padding-top: 10px; padding-bottom: 12px; }
  .photo--cover { width: min(37vw, 150px); margin-bottom: 8px; }
  .gate__in .orn--top svg, .gate__in .orn--top img { width: 78px; margin-bottom: 6px; }
  .gate__date { margin-top: 6px; }
  .guest { margin-top: 8px; padding: 7px 14px; }
  .guest__s { margin-top: 2px; }
  .btn--open { margin-top: 10px; padding-block: 11px; }
}
