/* Article layout; the design examples live in isolated documents. */
.slop-shell {
  padding: clamp(36px, 6vw, 76px) var(--pad-x) 90px;
}
.slop-hero h1 {
  max-width: 1200px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.05em;
  text-transform: none;
}
.slop-lead {
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
}
.slop-intro {
  max-width: 820px;
  margin: 28px 0 64px;
  font-size: 16px;
  line-height: 1.8;
}
.slop-intro p + p { margin-top: 16px; }
.slop-section__head { margin-bottom: 24px; }
.slop-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.35;
  letter-spacing: -.035em;
  text-transform: none;
}
.slop-shell :is(a, button, input):focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 4px;
}
.slop-shell [hidden] { display: none !important; }
.slop-shell button, .slop-shell input { font: inherit; border-radius: var(--radius-control, 6px); }
.slop-gallery__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 20px;
}
.slop-gallery__tabs, .slop-gallery__devices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slop-tab, .slop-device, .slop-filter, .slop-motion {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control, 6px);
  background: transparent;
  color: var(--steel);
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.4;
  cursor: pointer;
}
.slop-tab[aria-pressed=true], .slop-device[aria-pressed=true], .slop-filter[aria-pressed=true] {
  border-color: var(--taupe);
  background: color-mix(in srgb, var(--taupe) 30%, transparent);
  color: var(--ink);
}
.slop-tab:hover, .slop-device:hover, .slop-filter:hover, .slop-motion:hover { color: var(--ink); }
.slop-gallery__viewport {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 600px;
  overflow: hidden;
  position: relative;
}
.slop-gallery__screen {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 600px;
  overflow: hidden;
  border-radius: var(--radius-media, 12px);
}
.slop-gallery__frame {
  display: block;
  width: 100%;
  height: 780px;
  max-width: none;
  border: 0;
  transform-origin: top left;
}
.slop-gallery__viewport[data-device=mobile] .slop-gallery__screen { max-width: 375px; }
.slop-gallery__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 16px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.7;
}
.slop-gallery__foot p { max-width: 820px; }
.slop-gallery__foot a { white-space: nowrap; }
.slop-demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  font-size: 14px;
}
.slop-download {
  display: inline-block;
  margin-top: 24px;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.7;
}
:is(.slop-gallery__foot, .slop-demo-links, .slop-source, .slop-outro) a, .slop-download {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.slop-download:hover { color: var(--ink); }
.slop-caption {
  max-width: 640px;
  margin-top: 8px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.7;
}
.slop-catalog { margin-top: 80px; }
.slop-tools { margin-bottom: 12px; }
.slop-search-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.slop-search-label {
  display: grid;
  flex: 1;
  gap: 8px;
  max-width: 680px;
  color: var(--steel);
  font-size: 14px;
}
.slop-search-label input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--taupe);
  border-radius: var(--radius-control, 6px);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
}
.slop-search-label input::placeholder { color: var(--steel); opacity: .8; }
.slop-motion { text-decoration: underline; text-underline-offset: 4px; }
.slop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.slop-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 16px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.6;
}
.slop-result button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.slop-empty { padding: 32px 0; font-size: 16px; line-height: 1.8; }
.slop-specimen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 40px 0;
}
.slop-specimen h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -.025em;
  text-transform: none;
}
.slop-specimen h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.slop-specimen__note {
  max-width: 580px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
}
.slop-specimen__check {
  margin-top: 16px;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.8;
}
.slop-specimen__sample { min-width: 0; overflow: hidden; border-radius: var(--radius-media, 12px); }
.slop-specimen__frame {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: var(--bone);
}
.slop-source {
  max-width: 820px;
  margin-top: 48px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.8;
}
.slop-outro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  font-size: 14px;
}
.page-ai-slop :is(.slop-specimen, .slop-section__head h2) { scroll-margin-top: calc(var(--header-h) + 24px); }
.slop-shell button:disabled { cursor: default; color: var(--steel); opacity: .7; }
@media (max-width: 900px) {
  .slop-gallery__viewport, .slop-gallery__screen { height: 520px; }
}
@media (max-width: 650px) {
  .slop-shell { padding-top: 36px; padding-bottom: 64px; }
  .slop-hero h1 { font-size: clamp(32px, 8.8vw, 42px); }
  .slop-lead { margin-top: 20px; font-size: 18px; }
  .slop-intro { margin: 24px 0 48px; }
  .slop-section__head { margin-bottom: 20px; }
  .slop-section__head h2 { font-size: 25px; }
  .slop-gallery__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .slop-tab { width: fit-content; text-align: left; }
  .slop-gallery__foot { flex-direction: column; align-items: start; gap: 10px; }
  .slop-catalog { margin-top: 56px; }
  .slop-search-row { flex-direction: column; align-items: start; gap: 12px; }
  .slop-search-label { width: 100%; }
  .slop-filters { margin-top: 8px; }
  .slop-result { align-items: start; gap: 12px; }
  .slop-specimen { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .slop-specimen h3 { font-size: 22px; }
  .slop-specimen__note { margin-top: 16px; }
  .slop-specimen__frame { height: 290px; }
  .slop-source { margin-top: 32px; }
  .slop-outro { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .slop-shell * { scroll-behavior: auto; transition: none; }
}
