/* The preset gallery shares LightTable's local fonts, white, and charcoal. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.presets-main { padding: 52px 0 80px; }
.preset-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding-bottom: 38px; }
.preset-intro .eyebrow, .preset-sidebar .eyebrow, .submission-intro .eyebrow { font-size: 11px; letter-spacing: .06em; margin: 0 0 16px; }
.preset-intro h1, .submission-intro h1 { margin: 0; font-size: clamp(34px, 4.1vw, 58px); line-height: 1.06; }
.preset-intro p:last-child { max-width: 660px; font-size: 13px; margin: 20px 0 0; }
.text-link, .back-link { font-size: 12px; }
.preset-intro > a { white-space: nowrap; padding-bottom: 3px; }
.preset-filters { position: sticky; top: 0; z-index: 5; background: var(--background); display: grid; grid-template-columns: minmax(320px, 1fr) minmax(200px, .8fr) 160px; gap: 22px; align-items: center; padding: 17px 0; border-block: 1px solid var(--line); }
.collection-switch { display: flex; align-items: center; gap: 22px; }
.collection-switch button { position: relative; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.collection-switch button::after { content: ""; position: absolute; bottom: 4px; left: 0; width: 100%; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.collection-switch button[aria-pressed="true"] { color: var(--text); }
.collection-switch button[aria-pressed="true"]::after, .collection-switch button:hover::after { transform: scaleX(1); }
.preset-filters input, .preset-filters select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--background); font: inherit; font-size: 12px; color: var(--text); }
.preset-filters input::placeholder { color: var(--muted); }
.preset-filters :is(input, select):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.gallery-context { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 24px; }
.gallery-context p { margin: 0; font-size: 11px; color: var(--muted); }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.preset-tile { min-width: 0; }
.tile-photo { position: relative; aspect-ratio: 3/2; background: var(--surface); }
.tile-photo > a { display: block; width: 100%; height: 100%; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.tile-photo > a:hover img { transform: scale(1.025); }
.tile-photo > a:focus-visible { outline-offset: 4px; }
.photo-link { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.78); color: white; padding: 7px 10px; font-size: 10px; opacity: 0; transform: translateY(3px); transition: opacity 160ms ease, transform 160ms ease; }
.tile-photo > a:hover .photo-link, .tile-photo > a:focus-visible .photo-link { opacity: 1; transform: none; }
.compare-toggle { position: absolute; left: 12px; bottom: 12px; min-height: 34px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.45); border-radius: 0; background: rgba(0,0,0,.72); color: white; font-size: 10px; }
.compare-toggle[aria-pressed="true"] { background: white; color: black; }
.compare-toggle:focus-visible { outline-color: white; }
.tile-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 15px; }
.tile-heading h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 550; }
.tile-heading a { text-decoration: none; }
.tile-heading a:hover { text-decoration: underline; }
.tile-arrow { font-size: 16px; }
.tile-description { margin: 11px 0 16px; font-size: 11px; line-height: 1.7; }
.tile-credit { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 9px; border-top: 1px solid var(--line); padding-top: 11px; }
.tile-credit a { text-decoration: none; }
.tile-credit a:hover { text-decoration: underline; }
.empty-results { padding: 65px 0; text-align: center; }
.empty-results h2 { font-size: 28px; margin: 0; }
.empty-results p { font-size: 13px; margin: 14px 0 22px; }
.gallery-invitation { margin-top: 75px; padding: 35px 0 0; border-top: 1px solid var(--line); max-width: 740px; }
.gallery-invitation h2 { font-size: 30px; font-weight: 550; letter-spacing: -.035em; margin: 0; }
.gallery-invitation p { font-size: 13px; margin: 15px 0 20px; }
.presets-footer { display: flex; gap: 22px; justify-content: space-between; align-items: center; padding: 25px 0; border-top: 1px solid var(--line); font-size: 11px; }
.presets-footer > a:first-child { color: var(--text); text-decoration: none; }
.no-script { font-size: 12px; }
.preset-detail { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(30px, 5vw, 72px); margin-top: 36px; align-items: start; }
.preset-sidebar { position: sticky; top: 32px; }
.preset-sidebar h1 { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.05; margin: 0; }
.detail-author { margin: 18px 0 26px; font-size: 12px; }
.detail-description { font-size: 14px; line-height: 1.85; }
.detail-tags { margin: 18px 0 28px; font-size: 11px; color: var(--muted); }
.preset-actions { display: grid; gap: 16px; justify-items: start; }
.preset-actions .button-primary { background: var(--text); border-color: var(--text); font-size: 12px; min-height: 48px; }
.preset-actions .button-primary:hover { background: var(--secondary); border-color: var(--secondary); }
.download-link { display: inline-flex; align-items: center; gap: 20px; min-height: 32px; font-size: 12px; }
.install-help, .import-help p, .preserved-settings, .preset-parent { font-size: 11px; line-height: 1.8; color: var(--muted); }
.install-help { margin: 20px 0 13px; }
.import-help summary { font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.import-help p { margin: 12px 0 0; }
.preset-facts { margin: 28px 0 18px; font-size: 11px; }
.preset-facts > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 14px; border-top: 1px solid var(--line); padding: 11px 0; }
.preset-facts > div:last-child { border-bottom: 1px solid var(--line); }
.preset-facts dd { margin: 0; color: var(--text); }
.report-link { display: inline-block; margin-top: 12px; font-size: 10px; }
.preset-example + .preset-example { margin-top: 36px; }
.comparison { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--surface); touch-action: pan-y; }
.comparison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.comparison-before { clip-path: inset(0 calc(100% - var(--compare)) 0 0); }
.comparison-label { position: absolute; top: 12px; padding: 5px 9px; font-size: 10px; color: white; background: rgba(0,0,0,.78); pointer-events: none; }
.label-before { left: 12px; }
.label-after { right: 12px; }
.comparison-divider { position: absolute; inset: 0 auto 0 var(--compare); width: 1px; background: white; box-shadow: 0 0 1px black; pointer-events: none; }
.comparison-divider > span { position: absolute; left: -17px; top: calc(50% - 17px); width: 34px; height: 34px; display: grid; place-items: center; background: white; color: black; border: 1px solid #bbb; font-size: 20px; }
.comparison-range { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: .001; cursor: ew-resize; }
.comparison:focus-within { outline: 2px solid black; outline-offset: 5px; }
.preset-example figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 10px; }
.preset-example figcaption span:last-child { color: var(--muted); font-size: 9px; }
.comparison-help { color: var(--muted); font-size: 10px; margin-top: 26px; }
.submission-intro { max-width: 750px; padding: 42px 0; }
.submission-intro p:last-child { max-width: 650px; font-size: 14px; margin: 24px 0 0; }
.submission-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 75px; border-top: 1px solid var(--line); padding-top: 10px; }
.submission-steps > section { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-number { font-size: 11px; padding-top: 4px; }
.submission-layout h2 { font-size: 24px; letter-spacing: -.035em; font-weight: 550; line-height: 1.2; margin: 0 0 16px; }
.submission-layout p { font-size: 12px; line-height: 1.85; margin: 0 0 15px; }
.submission-steps .button { margin-top: 8px; font-size: 12px; }
.submission-email { margin-top: 20px !important; }
.submission-notes { padding-top: 28px; }
.submission-notes h2 { font-size: 19px; }
.submission-notes h2:not(:first-child) { margin-top: 32px; }
@media (max-width: 1100px) {
  .preset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .preset-filters { grid-template-columns: minmax(265px,1fr) minmax(160px,.8fr) 140px; gap: 16px; }
  .collection-switch { gap: 17px; }
  .preset-detail { gap: 32px; }
  .submission-layout { gap: 40px; }
}
@media (max-width: 800px) {
  .preset-filters { grid-template-columns: 1fr 150px; gap: 10px; }
  .collection-switch { grid-column: 1 / -1; }
  .preset-intro { align-items: start; flex-direction: column; gap: 20px; }
  .preset-detail { grid-template-columns: 1fr; }
  .preset-sidebar { position: static; grid-row: 1; }
  .preset-sidebar h1 { font-size: 42px; }
  .preset-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
  .detail-description, .install-help, .preserved-settings { max-width: 660px; }
  .preset-facts { max-width: 440px; }
  .submission-layout { grid-template-columns: 1fr; }
  .submission-notes { max-width: 630px; }
}
@media (max-width: 570px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 5px; padding: 15px 0 6px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .site-nav a { font-size: 11px; }
  .presets-main { padding-top: 32px; padding-bottom: 48px; }
  .preset-intro h1 { font-size: 38px; }
  .preset-intro { padding-bottom: 27px; }
  .preset-intro p:last-child { font-size: 12px; }
  .preset-filters { margin-inline: -20px; padding: 10px 20px 14px; grid-template-columns: minmax(0, 1fr) 125px; }
  .gallery-context { flex-direction: column; gap: 4px; padding: 16px 0 20px; }
  .preset-grid { grid-template-columns: 1fr; gap: 34px; }
  .tile-heading h2 { font-size: 25px; }
  .tile-description { font-size: 12px; }
  .tile-credit { font-size: 10px; }
  .photo-link { display: none; }
  .presets-footer { flex-wrap: wrap; gap: 8px 20px; font-size: 10px; }
  .presets-footer > span { display: none; }
  .gallery-invitation { margin-top: 48px; padding-top: 28px; }
  .gallery-invitation h2 { font-size: 27px; }
  .submission-intro { padding: 35px 0; }
  .submission-layout { gap: 12px; }
  .preset-example figcaption { display: block; }
  .preset-example figcaption span { display: block; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-photo img, .photo-link, .collection-switch button::after { transition: none; }
  .tile-photo > a:hover img { transform: none; }
}
