/* /cinematic-prompt-guide/ (scripts/optics-page.mjs). Builds on seo.css (.bp, .seo-table, .table-wrap, .pp-win). */
.cg-page { --cg-lime: #D6FF3D; }
.cg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.cg-cta .btn { min-height: 44px; }

.cg-steps { display: grid; gap: 10px; margin: 0 0 16px; padding-left: 1.4em; }
.cg-steps li { padding-left: 4px; line-height: 1.6; }

/* Looks: dark studio cards, the one place the AI-studio look is used */
.cg-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.cg-looks > .cg-look { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: radial-gradient(90% 120% at 100% 0%, rgba(124, 58, 237, 0.32) 0%, rgba(124, 58, 237, 0) 60%), var(--term-bg); color: var(--term-text); box-shadow: inset 0 0 0 1px var(--term-border); }
.cg-looks .cg-look p { margin: 0; }
.cg-looks .cg-look-k { font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cg-lime); }
.cg-looks .cg-look h3 { margin: 0; font: 700 19px/1.25 var(--font-display); color: #FFFFFF; }
.cg-looks .cg-look-d { font-size: 14.5px; line-height: 1.5; color: var(--term-text); }
.cg-looks .cg-look-s { font: 500 12.5px/1.5 var(--font-mono); color: var(--term-text-dim); }
.cg-looks .cg-look-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 8px; }
.cg-looks .cg-look-go a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: #FFFFFF; color: #17171B; font-weight: 700; font-size: 14px; text-decoration: none; }
.cg-looks .cg-look-go a + a { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.cg-looks .cg-look-go a:hover { text-decoration: underline; }
.cg-looks .cg-look-go a:focus-visible { outline: 2px solid var(--cg-lime); outline-offset: 2px; }

/* Tables */
.cg-table { margin: 14px 0 6px; }
.cg-table caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.cg-table td:first-child { min-width: 9.5em; }
.cg-table td code { white-space: normal; overflow-wrap: anywhere; }
.cg-table small { color: var(--ink-muted); font-weight: 500; }
.cg-only { text-transform: capitalize; }
.cg-pic { display: block; width: 160px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.cg-models td:nth-child(2) { min-width: 16em; }
.cg-clashes li { margin-bottom: 6px; }
.cg-page .pp-win + .pp-win { margin-top: 12px; }
.cg-page .seo-section > .pp-win { margin: 12px 0; }

@media (max-width: 560px) {
  .cg-looks { grid-template-columns: 1fr; }
  /* Tables become one card per row on phones; each cell shows its column name */
  .cg-table, .cg-table tbody, .cg-table tr, .cg-table td { display: block; width: auto; }
  .cg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cg-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border-line); }
  .cg-table td { padding: 2px 0; border: 0; min-width: 0 !important; }
  .cg-table td:first-child { font-size: 16px; }
  .cg-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-muted); }
  .cg-cta .btn { flex: 1 1 100%; justify-content: center; }
}
