/* Explore: built on the variables of the site's main.css. */
.ex-hero { padding: 104px 0 32px; }
.ex-hero h1 { margin-bottom: 8px; animation: none; }
.ex-page { padding: 32px 0 72px; }
.ex-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }

.ex-search { margin-bottom: 18px; }
.ex-search input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); font: inherit; font-size: 14px; color: var(--text); outline: none; }
.ex-search input:focus { border-color: var(--text-muted); background: var(--bg); }
.ex-group { margin-bottom: 18px; }
.ex-group h4, .ex-group summary { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light); }
.ex-group summary { cursor: pointer; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text-dim); font-size: 13px; line-height: 1.3; text-decoration: none; transition: border-color .15s; }
.ex-chip:hover { border-color: var(--text-muted); }
.ex-chip.on { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }

.ex-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ex-sort { display: flex; gap: 14px; font-size: 14px; white-space: nowrap; }
.ex-sort a { color: var(--text-light); text-decoration: none; }
.ex-sort a.on { color: var(--text); font-weight: 600; }

.ex-grid { columns: 3; column-gap: 16px; }
.ex-card { display: block; break-inside: avoid; margin-bottom: 16px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ex-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ex-thumb { position: relative; display: block; background: var(--bg-soft); }
.ex-thumb:not(:has(img)) { min-height: 170px; }
.ex-thumb img { display: block; width: 100%; height: auto; }
.ex-pills { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-pill { padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; }
.ex-pill-amber { background: var(--amber); }
.ex-dur { position: absolute; right: 10px; bottom: 10px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.ex-card-body { display: block; padding: 11px 13px 13px; }
.ex-card-title { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ex-card-author { display: block; font-size: 13px; color: var(--text-light); }
.ex-empty { padding: 60px 0; text-align: center; color: var(--text-light); }
.ex-pager { margin-top: 20px; }

.ex-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.ex-player { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-dark); }
.ex-player:has(iframe) { display: block; min-height: 0; background: none; }
.ex-player img { width: 100%; max-height: 640px; object-fit: contain; }
.ex-player iframe { display: block; width: 100%; height: 760px; border: 0; background: #fff; }
.ex-play { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.ex-play svg { width: 26px; height: 26px; margin-left: 3px; }
.inner-hero .ex-author { font-size: 14px; }

.ex-author a.ex-source { margin-left: 10px; }
.ex-specs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; margin: 0 0 18px; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; background: var(--border-light); }
.ex-specs div { padding: 9px 12px; background: var(--bg); }
.ex-specs dt { font-size: 12px; color: var(--text-light); }
.ex-specs dd { margin: 0; font-size: 14px; font-weight: 600; }
.ex-note { margin: 0 0 14px; padding: 10px 13px; border-radius: var(--radius); background: var(--amber-light); color: #7a4e06; font-size: 14px; }
.ex-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light); }
.ex-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.ex-refs img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius); }
.ex-cta { margin-bottom: 22px; }
.ex-generate { border: 0; cursor: pointer; }
.ex-disclaimer { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-light); }
.ex-prompt { margin-bottom: 18px; padding: 15px 17px; border-radius: var(--radius); background: var(--bg-soft); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.ex-dialog { width: min(480px, calc(100vw - 32px)); margin: auto; padding: 26px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.ex-dialog::backdrop { background: rgba(10, 10, 10, .5); }
.ex-dialog h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.ex-dialog p { margin: 0 0 14px; color: var(--text-dim); }
.ex-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 13px; border-radius: var(--radius); background: var(--bg-soft); font-size: 14px; cursor: pointer; }
.ex-check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--green); }
.ex-dialog-actions { display: flex; justify-content: flex-end; align-items: stretch; gap: 10px; }
.ex-dialog-actions .btn-green { justify-content: center; }
.ex-cancel { padding: 0 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.ex-cancel:hover { border-color: var(--text-muted); }
.ex-disabled { opacity: .4; pointer-events: none; }

.ex-text { max-width: 760px; }
.ex-text h2 { margin-top: 28px; font-size: 20px; }
.ex-text p { color: var(--text-dim); }

@media (max-width: 1000px) {
  .ex-layout { grid-template-columns: 1fr; gap: 20px; }
  .ex-grid { columns: 2; }
  .ex-detail { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .ex-grid { column-gap: 10px; }
  .ex-card { margin-bottom: 10px; }
  .ex-specs { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .ex-refs { grid-template-columns: repeat(2, 1fr); }
  .ex-dialog-actions { flex-direction: column-reverse; }
  .ex-cancel { padding: 12px 22px; }
}

.ex-trap { position: absolute; left: -9999px; }
.ex-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ex-type, .ex-proof { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-light); cursor: pointer; }
.ex-type b, .ex-proof b { display: block; font-size: 14px; color: var(--text); }
.ex-proof { margin-bottom: 10px; }
.ex-code { padding: 3px 10px; border-radius: 7px; background: var(--green-light); color: var(--green-dark); letter-spacing: .04em; }

.ex-author a, .ex-disclaimer a, .ex-text a, .ex-page a.ex-source { color: var(--text-dim); font-weight: 500; text-decoration: none; transition: color .15s; }
.ex-author a:hover, .ex-disclaimer a:hover, .ex-text a:hover { color: var(--text); }

/* The site styles every <nav> as its fixed header, the pager's included. */
.ex-pager nav { position: static; display: flex; justify-content: center; margin: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.ex-pager .join { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ex-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: 14px; text-decoration: none; transition: border-color .15s; }
.ex-pager a:hover { border-color: var(--text-muted); }
.ex-pager a.btn-active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
