/* Public sky pages (/sky/<slug>), on top of app.css. */

.sky-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sky-head h1 { font-size: clamp(32px, 7vw, 56px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ok); }
.small { font-size: 13px; }
.center { text-align: center; }
.notes { white-space: pre-line; }

.kp-strip { display: flex; gap: 8px; }
.kp { display: grid; justify-items: center; min-width: 56px; padding: 6px 10px; border-radius: 12px; font-weight: 700;
      font-size: 20px; border: 1px solid var(--line); background: var(--surface); }
.kp small { font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.kp-low { color: var(--text-2); }
.kp-mid { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.kp-high { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent);
           box-shadow: 0 0 24px -6px color-mix(in srgb, var(--ok) 70%, transparent); }

.sky-grid { display: grid; gap: 20px; }
.sky-grid > * { min-width: 0; }
.sky-main, .sky-side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 60rem) {
  .sky-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

/* All frames in one grid cell: the loaded ones give the box the picture's own shape. */
.loop { display: grid; border-radius: 14px; overflow: hidden; background: #000; }
.loop img { grid-area: 1 / 1; width: 100%; height: auto; display: block; opacity: 0; }
.loop img.on { opacity: 1; }
.small-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.night-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
              grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.night-list a { color: var(--text); text-decoration: none; gap: 4px; }
.night-list a:hover { border-color: var(--accent); }
figure.event-thumb { margin: 0; }

/* Owner form for the public page. */
textarea { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
           color: var(--text); font: inherit; resize: vertical; }

/* Facts of the current picture. */
.now-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: grid; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
        font-weight: 600; font-size: 15px; }
.fact small { font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .8px; }

/* Embedded widget (roadmap C9): just the picture and a line, no page around it. */
body.widget { min-height: 0; }
body.widget::after { display: none; }
.widget-link { display: grid; gap: 6px; padding: 8px; color: var(--text); text-decoration: none; }
.widget-img { width: 100%; height: auto; border-radius: 12px; background: #000; display: block; }
.embed-code { width: 100%; font-family: ui-monospace, monospace; font-size: 13px; }
.ovation { width: 100%; border-radius: 12px; background: #000; }
