/* Ultimate 2D Sprite Effects Bundle pages (/sprite-effects/, /docs/, /docs/effects/). Loaded after site.css, padseat.css
   and blueprintmover.css; uses their tokens, section modes and ps-* / bm-* pieces. Light-only like the other studio pages
   (color-scheme: only light), and every block sets its own background and text colour. */
:root { --map: #1C1F33; }  /* the overview map's panel colour, behind the renders while they load */

/* opener: the hero contact sheet */
.se-hero img { background: var(--map); }

/* the pack in numbers (Swiss: big numerals, flush left, rules) */
.se-count { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: 34px; border-top: 1.5px solid var(--ink); }
.se-count div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.se-count dt { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: clamp(54px, 3.4vw + 34px, 92px); line-height: .9; letter-spacing: -.01em; }
.se-count dt small { display: block; margin-top: 8px; font-family: var(--display); font-stretch: 90%; font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: 0; }
.se-count dd { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--mute); max-width: 34ch; }
.se-count div:first-child dt { color: var(--signal-ink); }
@media (min-width: 1100px) { .se-count { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* category switcher on graphite: eight tabs instead of the Blueprint Mover page's three */
.se-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.se-tabs button { font-size: 14.5px; }
@media (min-width: 560px) { .se-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .se-tabs { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.se-catshot img { background: var(--map); }
.se-catshot picture { display: block; }
.se-names { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: 120ch; }
.se-names a { display: block; padding: 4px 9px 5px; border: 1px solid var(--rule-d); border-radius: 3px; font-size: 14px; line-height: 1.35; color: #D9D8D3; text-decoration: none; }
.se-names a:hover { border-color: var(--on-dark); color: var(--on-dark); }
.se-names b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--mute-d); margin-right: 5px; }

/* six effects we did not find elsewhere */
.se-six { display: grid; gap: 28px 24px; margin-top: 34px; }
@media (min-width: 700px) { .se-six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .se-six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.se-six figure { margin: 0; min-width: 0; }
.se-six img { width: 100%; border: 1px solid var(--rule-d); border-radius: 4px; background: var(--map); }
.se-six figcaption { margin-top: 12px; }
.se-six figcaption b { display: block; font-family: var(--display); font-stretch: 90%; font-weight: 700; font-size: 19px; line-height: 1.2; }
.se-six figcaption b span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--signal-ink); margin-right: 6px; }
.se-six figcaption p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--mute); max-width: 52ch; }

/* where it works: image + text rows */
.se-rows { display: grid; gap: 56px; margin-top: 40px; }
.se-row { display: grid; gap: 22px 48px; align-items: start; }
@media (min-width: 960px) {
  .se-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .se-row--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .se-row--flip > figure { order: 2; }
}
.se-row .h3 { font-size: 26px; font-weight: 720; margin-bottom: 10px; }
.se-row p { max-width: 60ch; }
.se-row p + p, .se-row p + ul, .se-row ul + p { margin-top: 12px; }
.se-row .ps-list { margin-top: 14px; }
.se-row figure { margin: 0; min-width: 0; }
.se-row img { width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: var(--map); }
.se-row figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--mute); }
.se-row code { font-family: var(--mono); font-size: .86em; background: rgba(19, 21, 20, .07); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }

/* test table on the overview: four short columns stay a table on phones, with wrapping heads */
@media (max-width: 699px) { .ps-table.se-tt th { white-space: normal; } .ps-table.se-tt td { padding-right: 8px; } }
.se-req .soft { margin-top: 16px; font-size: 14.5px; max-width: 70ch; }

/* docs: a wide figure on dark renders */
.ps-doc .se-fig img { background: var(--map); }
.ps-doc .ps-table td code { white-space: normal; }
.ps-doc .note.warn { border-left-color: var(--ink); }
.ps-doc dl.se-dl { margin-top: 12px; max-width: 76ch; border-top: 1.5px solid var(--ink); }
.ps-doc dl.se-dl div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; padding: 9px 0 10px; border-bottom: 1px solid var(--rule); }
.ps-doc dl.se-dl dt { font-weight: 700; }
.ps-doc dl.se-dl dd { font-size: 15.5px; line-height: 1.5; }
@media (min-width: 760px) { .ps-doc dl.se-dl div { grid-template-columns: 210px minmax(0, 1fr); } }
.ps-doc .faq h3 { font-family: var(--text); font-stretch: 100%; font-weight: 700; font-size: 18px; margin-top: 24px; }

/* ---------- effect reference ---------- */
.se-find { padding: 18px 20px 16px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); }
.se-find[hidden] { display: none; }
.se-find-row { display: grid; gap: 14px 20px; }
@media (min-width: 820px) { .se-find-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.se-find label > span, .se-f legend { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--mute); margin-bottom: 6px; }
.se-find input[type="search"], .se-find select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 4px;
  background: var(--white); color: var(--ink); font: 500 16px/1.3 var(--text); }
.se-find input[type="search"]:focus-visible, .se-find select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.se-f { margin: 14px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.se-f legend { width: 100%; padding: 0; }
.se-f label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; cursor: pointer; }
.se-f input { width: 20px; height: 20px; accent-color: var(--signal-ink); }
.se-status { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink); min-height: 1.4em; }
.se-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.se-jump a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 4px; text-decoration: none; font-weight: 650; font-size: 14.5px; line-height: 1.2; background: var(--white); }
.se-jump a span { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--mute); }
.se-jump a:hover { background: var(--ink); color: var(--on-dark); }
.se-jump a:hover span { color: var(--mute-d); }
.se-how { margin-top: 22px; padding: 12px 16px; border-left: 4px solid var(--signal); background: var(--paper); max-width: 96ch; font-size: 15.5px; }
.se-how code, .fx code { font-family: var(--mono); font-size: .86em; background: rgba(19, 21, 20, .07); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.se-how a { text-decoration-color: var(--signal); }
.se-none { margin-top: 28px; font-weight: 650; }
.se-none[hidden] { display: none; }

.fx-cat { margin-top: clamp(40px, 5vw, 64px); }
.fx-cat[hidden] { display: none; }
.fx-cat h2 { font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: clamp(30px, 1.8vw + 20px, 46px); line-height: 1.05; letter-spacing: -.012em;
  padding-top: 12px; border-top: 1.5px solid var(--ink); scroll-margin-top: 16px; }
.fx-cnt { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--mute); vertical-align: middle; margin-left: 6px; }
.fx { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.fx[hidden] { display: none; }
.fx h3 { font-family: var(--display); font-stretch: 90%; font-weight: 700; font-size: 23px; line-height: 1.15; }
.fx-n { display: inline-block; min-width: 2.6em; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--signal-ink); vertical-align: 2px; }
.fx-d { margin-top: 6px; max-width: 86ch; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fx-tags span { font-family: var(--mono); font-size: 11.5px; font-weight: 500; line-height: 1.3; padding: 2px 7px 3px; border: 1px solid var(--ink); border-radius: 3px; }
.fx-meta { display: grid; gap: 0 32px; margin-top: 12px; max-width: 1100px; }
.fx-meta div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 6px 0 7px; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.fx-meta dt { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--mute); padding-top: 2px; }
@media (min-width: 1000px) { .fx-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-p { margin-top: 12px; }
.fx-p summary { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer; font-weight: 650; font-size: 15px; list-style: none; }
.fx-p summary::-webkit-details-marker { display: none; }
.fx-p summary::before { content: "+"; font-family: var(--mono); font-weight: 500; margin-right: 8px; }
.fx-p[open] summary::before { content: "\2212"; }
.fx-p summary:hover { background: var(--ink); color: var(--on-dark); }
.fx-table { margin-top: 12px; }
.fx-table table { font-size: 14px; }
@media (min-width: 700px) { .fx-table table { min-width: 720px; } }
.fx-table td:first-child { white-space: nowrap; }
.fx-table td:nth-child(3), .fx-table td:nth-child(4) { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.fx-table tr.grp th { padding: 16px 0 6px; font-family: var(--display); font-stretch: 90%; font-size: 15px; font-weight: 700; color: var(--ink); white-space: normal; border-bottom: 1px solid var(--ink); }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid rgba(19, 21, 20, .35); border-radius: 2px; vertical-align: -1px; }
@media (max-width: 699px) {
  .fx-table td:first-child, .fx-table td:nth-child(3), .fx-table td:nth-child(4) { white-space: normal; }
  .fx-table tr.grp { display: block; padding: 14px 0 4px; border-bottom: 1px solid var(--ink); }
  .fx-table tr.grp th { display: block; padding: 0; border: 0; }
  .fx-meta div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
