/* Reel Hook Generator: hook card, form, five panels (hooks, script, storyboard, caption, checks), example lists. */
.rh-wrap { --st-c: #5B2EE0; --st-on: #fff; }
.rh-wrap .st-chip { min-height: 44px; }
.rh-top { align-items: start; }
.rh-card-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rh-card-col .sc-card { position: static; width: 100%; }
.rh-card-col .st-acts .st-btn { flex: 1 1 auto; }
.rh-form { gap: 14px; }
.rh-hint { margin: -6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-secondary); }
.rh-hint:empty { display: none; }
.rh-status { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }
.rh-status:empty { display: none; }
.rh-mini { margin: 0; font: 700 14.5px/1.35 var(--font-display); color: var(--ink-primary); }
.rh-more { border: 1px solid var(--border-line); border-radius: 14px; background: var(--bg-card); }
.rh-more > summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font: 600 14.5px/1.3 var(--font-body); color: var(--ink-primary); cursor: pointer; }
.rh-more[open] > summary { border-bottom: 1px solid var(--border-line); }
.rh-more-body { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.rh-points { gap: 8px; }

.rh-tabs { margin: 0 0 18px; }
.rh-panel { margin-top: 0; }
.rh-panel[hidden] { display: none; }
.rh-lead { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-secondary); }
.rh-m { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }

/* hooks */
.rh-hooks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rh-hook { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--border-line); background: var(--bg-card); }
.rh-hook.rh-on { border-color: var(--st-c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-c) 22%, transparent); }
.rh-formula { align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: var(--accent-light); color: var(--accent-ink); font: 600 12.5px/1.2 var(--font-body); }
.rh-hook-text { margin: 0; font: 800 21px/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--ink-primary); overflow-wrap: anywhere; }
.rh-why { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-secondary); }

/* script */
.rh-beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rh-beat { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.8fr); gap: 12px 14px; align-items: start; padding: 14px; border-radius: 16px; border: 1px solid var(--border-line); background: var(--bg-card); }
.rh-beat-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rh-time { font: 600 13px/1.2 var(--font-mono); color: var(--accent-ink); }
.rh-bname { font: 700 15px/1.25 var(--font-display); color: var(--ink-primary); }
.rh-wc { font: 500 12px/1.2 var(--font-mono); color: var(--ink-muted); }
.rh-wc.rh-over { color: var(--cat-text-accent); font-weight: 700; }
.rh-beat .st-field textarea { min-height: 74px; }
.rh-pace { margin: 0; font: 700 15px/1.35 var(--font-display); color: var(--ink-primary); }
.rh-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rh-notes:empty { display: none; }
.rh-notes li { padding: 8px 12px; border-radius: 10px; background: var(--bg-card-subtle); font-size: 13.5px; line-height: 1.45; color: var(--ink-secondary); }

/* storyboard table */
.rh-tablewrap { overflow-x: auto; }
.rh-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.rh-table th { padding: 8px 10px; text-align: left; font: 600 12.5px/1.2 var(--font-body); color: var(--ink-muted); border-bottom: 1px solid var(--border-line); white-space: nowrap; }
.rh-table td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid var(--border-line); color: var(--ink-primary); }
.rh-table td:nth-child(1) { white-space: nowrap; }
.rh-table td:nth-child(2) { white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
.rh-table td:nth-child(5) { min-width: 17em; }
.rh-scene-n { display: block; font: 800 17px/1.1 var(--font-display); }
.rh-scene-n small { display: block; margin-top: 3px; font: 600 12.5px/1.2 var(--font-body); color: var(--ink-secondary); }
.rh-prompt { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-card-subtle); font: 400 13px/1.55 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.rh-switch { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--bg-card-subtle); border: 1px solid var(--border-line); }
.rh-table td:nth-child(6) { white-space: nowrap; }
.rh-table .rh-m { display: block; margin-bottom: 6px; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.rh-switch button { min-height: 44px; min-width: 44px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 9px; background: none; color: var(--ink-secondary); font: 600 13.5px/1.2 var(--font-body); cursor: pointer; }
.rh-switch button[aria-pressed="true"] { background: var(--st-c); color: var(--st-on); }

/* the example hooks in the page: a compact row for each line, two columns on a wide screen */
.seo-section .sc-wishes[data-formula] { max-width: none; gap: 8px; }
.sc-wishes[data-formula] li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 6px 8px 6px 14px; }
.sc-wishes[data-formula] .sc-w { font-size: 15.5px; line-height: 1.45; }
@media (min-width: 861px) { .seo-section .sc-wishes[data-formula] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sc-wishes[data-formula] li { grid-template-columns: minmax(0, 1fr) auto; } .sc-wishes[data-formula] .rh-m { grid-column: 1 / -1; } }

/* caption */
.rh-wrap pre { font-size: 15px; }

/* checks */
.rh-score { margin: 0; font: 700 15px/1.3 var(--font-display); color: var(--ink-primary); }
.rh-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rh-ck { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-card-subtle); font-size: 14.5px; line-height: 1.4; color: var(--ink-primary); }
.rh-ck small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-secondary); }
.rh-ico { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; font: 800 13px/1 var(--font-body); }
.rh-pass .rh-ico { background: var(--success-bg); color: var(--success); }
.rh-fail .rh-ico { background: var(--cat-text); color: var(--cat-text-accent); }

@media (max-width: 860px) {
  .rh-card-col { max-width: 420px; width: 100%; margin-inline: auto; }
  .rh-beat { grid-template-columns: 1fr; }
  .rh-beat-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
}
@media (max-width: 700px) {
  /* the storyboard table becomes one card for each scene; every cell says what it is */
  .rh-table, .rh-table tbody, .rh-table tr, .rh-table td { display: block; width: auto; }
  .rh-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rh-table tr { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--border-line); border-radius: 14px; background: var(--bg-card); }
  .rh-table td { padding: 4px 0; border: 0; min-width: 0 !important; white-space: normal !important; }
  .rh-table td[data-label]::before { content: attr(data-label) ": "; font: 600 12.5px/1.4 var(--font-body); color: var(--ink-muted); }
  .rh-table td:nth-child(5)::before { display: block; margin-bottom: 4px; }
}
@media (max-width: 560px) {
  .rh-hook-text { font-size: 19px; }
  .rh-card-col .st-acts .st-btn { flex: 1 1 100%; }
}
