/* css/clips-hour.css — Clips: one free hour (js/clips/clips-hour.js; ROUND-2.md item 8).

   ⚠️ THE APPROVED MOCKUP IS THE SPEC ("Clips: one free hour", steps 1 to 17): one column, each
   screen a white card with a rounded edge (the mockup's phone), a bar with where you are and a pill
   or the clock, a headline in Bricolage Grotesque, short lines, then the buttons at the foot. Its
   sizes and radii, on the app's tokens (design-tokens.css), so the build sits beside the mockup.
   The same card on a laptop, centred ("The same screens run on a laptop").

   .clh-* ONLY. The post sheet (post-sheet.css, .psh-*) and the video facade (video-embed-runtime.js)
   draw inside it with their own styles. */

.clh-host { padding: 0; }
.clh { font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text);
  max-width: 440px; margin: 8px auto 24px; padding: 0 16px; box-sizing: border-box; }
.clh * { box-sizing: border-box; }

.clh-card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: 0 1px 2px rgba(29, 27, 38, .06), 0 8px 24px rgba(29, 27, 38, .07);
  padding: 16px 14px 18px; min-height: 470px; display: flex; flex-direction: column; gap: 10px; max-width: 100%; }
.clh-card-wait { min-height: 470px; }
.clh-card-post { padding-bottom: 0; }

.clh-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); min-height: 26px; }
.clh-back { appearance: none; border: 0; background: none; padding: 6px 4px; margin: -6px 0; font: 600 13px "Inter", sans-serif; color: var(--text-2); cursor: pointer; min-height: 32px; }
.clh-timer { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 999px; padding: 4px 10px; font: 600 12.5px "Inter", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clh-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font: 600 12px "Inter", sans-serif; white-space: nowrap; }
.clh-pill-beta { background: var(--accent-soft); color: var(--accent-deep); }
.clh-pill-ok { background: var(--good-soft); color: var(--good); }
.clh-pill-wait { background: var(--warn-soft); color: var(--warn); }

.clh-h { font: 700 21px/1.2 "Bricolage Grotesque", Georgia, serif; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
.clh-h-s { font-size: 18px; }
.clh-p { color: var(--text-2); font-size: 14px; margin: 0; }
.clh-p.clh-ink { color: var(--text); }
.clh-p.clh-lead { color: var(--text); font-weight: 500; }
.clh-small { font-size: 12.5px; }
.clh-center { text-align: center; }
.clh-spacer { flex: 1; }
.clh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clh-warn { color: var(--warn); font-size: 13px; margin: 0; text-align: center; }

.clh-btn { display: block; width: 100%; text-align: center; border-radius: 12px; padding: 12px 14px; min-height: 48px;
  font: 600 15px "Inter", sans-serif; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.clh-btn-p { background: var(--accent); color: #fff; }
.clh-btn-p:hover { background: var(--accent-deep); }
.clh-btn-s { background: transparent; color: var(--text); border-color: var(--border); }
.clh-btn-s:hover { background: var(--surface-2); }
.clh-btn[disabled], .clh-btn[aria-busy="true"] { opacity: .45; cursor: default; }
.clh-btn:focus-visible, .clh-idea:focus-visible, .clh-scale button:focus-visible, .clh-link:focus-visible, .clh-back:focus-visible {
  outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.clh-link { appearance: none; border: 0; background: none; padding: 6px 0; color: var(--accent-deep); font: 600 13.5px "Inter", sans-serif;
  text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.clh-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.clh-list li { display: flex; gap: 8px; align-items: baseline; }
.clh-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; align-self: flex-start; }
.clh-list li.is-done::before { background: var(--good); }

.clh-in { border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; background: var(--surface); }
.clh-meta { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.clh-meta-gap { margin-top: 6px; }
.clh-seats { display: flex; gap: 5px; flex-wrap: wrap; }
.clh-seat { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); display: inline-block; }
.clh-seat-free { background: transparent; border: 2px dashed var(--border-strong); }

.clh-idea { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; min-height: 48px; }
.clh-idea b { font-size: 14px; }
.clh-idea small { color: var(--text-2); font-size: 12px; }
.clh-idea.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.clh-prog { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.clh-prog i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }

.clh-vid { position: relative; border-radius: 16px; background: linear-gradient(160deg, #3a2f6e, #7a5c9e) center / cover no-repeat;
  aspect-ratio: 9 / 16; max-height: 250px; align-self: center; width: 62%; overflow: hidden; }
.clh-vid .video-facade { position: absolute; inset: 0; border: 0; padding: 10px; cursor: pointer; background: transparent center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center; }
.clh-vid-t { position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; font: 800 13px/1.15 "Inter", sans-serif;
  text-align: center; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.clh-vid .video-player { position: absolute; inset: 0; }
.clh-vid .video-player video { width: 100%; height: 100%; object-fit: cover; }

.clh-scale { display: flex; gap: 4px; }
.clh-scale button { flex: 1; text-align: center; border: 1px solid var(--border); border-radius: 8px; padding: 6px 0; min-height: 44px;
  font: 600 14px "Inter", sans-serif; background: var(--surface); color: var(--text); cursor: pointer; }
.clh-scale button.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.clh-field { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: 14px/1.45 "Inter", sans-serif;
  color: var(--text); background: var(--surface); min-height: 64px; resize: vertical; }
.clh-field::placeholder { color: var(--text-3); }

/* Step 5: the Clips page's own two doors (js/clips/clips-search.js doorsHtml, css/clips.css .clp-door*),
   one above the other in the card at every width, with who Maya thinks they help on the trending door. */
.clh .clh-doors { margin-top: 2px; font-size: 15px; }
.clh .clh-doors .clp-doors { margin-bottom: 0; gap: 10px; }
.clh .clh-doors .clp-door-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.clh .clh-doors .clp-door { padding: 14px; border-radius: 16px; gap: 9px; }
.clh .clh-doors .clp-door-top h3 { font-size: 17px; }
.clh .clh-doors .clp-door-p { font-size: 14px; flex: none; }
.clh .clh-doors .clp-idea { min-height: 76px; font-size: 15px; }
.clh .clh-doors .clp-idea-line { font-size: 13.5px; }
.clh .clh-doors .clp-allow { font-size: 14px; padding: 10px 12px; }
.clh .clh-who { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.clh .clh-who .clh-p.clh-ink { font-size: 14px; }
.clh .clh-who .clh-link { justify-self: start; padding-bottom: 0; }
.clh .clh-who .clh-btn { margin-top: 4px; }

/* The post sheet's tall layout, inside the card (step 16). */
.clh-card-post .clh-post-main { padding: 0; }
.clh-card-post .clh-post-foot { padding: 12px 0 16px; position: sticky; bottom: 0; background: var(--surface); }
/* The sheet makes its foot solid in the page colour (.psh-foot.psh-foot); inside this white card it
   takes the card's own colour, so the card ends cleanly instead of on a grey band. */
.clh-card-post .clh-post-foot.psh-foot { background: var(--surface); box-shadow: 0 -1px 0 var(--border); }

/* THE LAUNCH (Alex, 11 Oct evening): the door's little video, which opens his post, and the comment
   preview on "Share it in Riding the Wave" (their name, their words, their video, as it will sit). */
.clh-launch-vid { position: relative; display: block; align-self: center; width: 52%; max-height: 230px; aspect-ratio: 9 / 16;
  border-radius: 16px; background: linear-gradient(160deg, #3a2f6e, #7a5c9e) center / cover no-repeat; text-decoration: none; }
.clh-launch-play, .clh-banner-vid span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent-deep); display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.clh-comment { display: flex; flex-direction: column; gap: 8px; }
.clh-comment-who { font: 600 13.5px "Inter", sans-serif; color: var(--text); }
.clh-comment-words { font-size: 14px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1em; }
.clh-comment-words:empty { display: none; }
.clh-comment .clh-vid { width: 48%; max-height: 200px; align-self: flex-start; }
.clh-in-h { display: block; font: 600 14px "Inter", sans-serif; color: var(--text); margin-bottom: 2px; }
.clh-link.clh-link-a { display: inline-block; }

/* The share sheet from Clips (CBSheet.panel body). */
.clh-sheet { display: flex; flex-direction: column; gap: 8px; font: 14px/1.5 "Inter", system-ui, sans-serif; }

/* The dashboard banner (control-centre.js → clips-hour.js ccBanner): one row on a laptop, stacked
   on a phone, with the little video that opens the post. */
.clh-banner { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; font: 14px/1.45 "Inter", system-ui, sans-serif; color: var(--text); }
.clh-banner-vid { position: relative; flex: none; width: 54px; aspect-ratio: 9 / 16; border-radius: 10px;
  background: linear-gradient(160deg, #3a2f6e, #7a5c9e) center / cover no-repeat; }
.clh-banner-vid span { width: 26px; height: 26px; font-size: 11px; }
.clh-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.clh-banner-text b { font: 700 16px/1.25 "Bricolage Grotesque", Georgia, serif; }
.clh-banner-text span { color: var(--text-2); }
.clh-banner-act { flex: none; display: flex; align-items: center; gap: 6px; }
.clh-banner-act .clh-btn { width: auto; min-height: 44px; padding: 10px 16px; }
.clh-banner-x { appearance: none; border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; font-size: 22px;
  line-height: 1; color: var(--text-2); cursor: pointer; }
.clh-banner-x:hover { background: var(--surface); }

@media (max-width: 420px) {
  .clh { padding: 0 12px; margin-top: 4px; }
  .clh-card { min-height: 440px; }
}
@media (max-width: 640px) {
  .clh-banner { flex-wrap: wrap; }
  .clh-banner-text { flex-basis: calc(100% - 70px); }
  .clh-banner-act { width: 100%; }
  .clh-banner-act .clh-btn { flex: 1; }
  .clh-banner { margin-top: 56px; }
}
