/* Searchable workflow catalog in the original ApplauseLab visual system.
   Card schematics use the site's pixel grammar: cut-corner boxes, square
   dash flows, pixel cells (twinkled by pixel-svg.js), one solid output. */

.wfo-page {
  background: var(--al-black);
  color: var(--al-white);
  font-family: var(--al-font-body);
}

.wfo-page *,
.wfo-page *::before,
.wfo-page *::after {
  box-sizing: border-box;
}

.wfo-page h1,
.wfo-page h2,
.wfo-page h3,
.wfo-page h4 {
  font-family: var(--al-font-display);
}

.wfo-page p,
.wfo-page button,
.wfo-page input {
  font-family: var(--al-font-body);
}

.wfo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wfo-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid rgba(0, 255, 78, 0.3);
}

.wfo-hero > .al-editorial-hero-art {
  position: absolute;
  z-index: 0;
  inset: 4.5rem -8% 2rem 28%;
  min-height: 0;
  margin: 0;
  opacity: 0.44;
  transform: rotate(-3deg);
}

.wfo-hero > .al-editorial-hero-art::before {
  display: none;
}

.wfo-hero > .al-container {
  position: relative;
  z-index: 1;
}

.wfo-hero-copy {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.wfo-hero h1 {
  grid-column: 1 / 9;
  max-width: 13ch;
  margin: 0;
  color: var(--al-white);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}

.wfo-hero-copy > p {
  grid-column: 9 / 13;
  max-width: 42ch;
  margin: 0 0 0.55rem;
  color: var(--al-gray-200);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.95);
}

.wfo-hero-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: clamp(1.75rem, 4vh, 2.75rem) 0 0;
  color: var(--al-gray-400);
  font-size: 0.78rem;
  line-height: 1.5;
}

.wfo-tally-item strong {
  color: var(--al-white);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.wfo-tally-item[data-tally="delivered"] strong {
  color: var(--al-primary);
}

.wfo-tally-dot {
  color: var(--al-gray-600);
}

.wfo-query {
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
}

.wfo-query > label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--al-white);
  font-size: 0.82rem;
  font-weight: 600;
}

.wfo-query-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 4.6rem;
  overflow: hidden;
  background: #050805;
  border: 1px solid rgba(0, 255, 78, 0.34);
  border-radius: var(--al-radius-sm);
  transition: border-color var(--al-transition-fast), background-color var(--al-transition-fast);
}

.wfo-query-field:focus-within {
  background: #070c08;
  border-color: var(--al-primary);
}

.wfo-query-field > span {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 6.2rem;
  color: var(--al-primary);
  border-right: 1px solid rgba(0, 255, 78, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.wfo-query-field input {
  width: 100%;
  min-width: 0;
  padding: 1.1rem 1.35rem;
  color: var(--al-white);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.35;
}

.wfo-query-field input::placeholder {
  color: var(--al-gray-400);
  opacity: 1;
}

.wfo-query-field input::-webkit-search-cancel-button {
  display: none;
}

.wfo-query-field button {
  align-self: stretch;
  min-width: 5rem;
  padding: 0 1.2rem;
  color: var(--al-black);
  background: var(--al-primary);
  border: 0;
  border-left: 1px solid var(--al-primary);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.wfo-query-field button:hover,
.wfo-query-field button:focus-visible {
  background: var(--al-primary-light);
}

.wfo-query-field button:focus-visible,
.wfo-query-examples button:focus-visible,
.wfo-status-filter button:focus-visible,
.wfc-card button:focus-visible,
.wfc-card a:focus-visible {
  outline: 2px solid var(--al-primary);
  outline-offset: 3px;
}

.wfo-query-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.85rem;
}

.wfo-query-examples > span {
  color: var(--al-gray-400);
  font-size: 0.72rem;
}

.wfo-query-examples button {
  padding: 0.42rem 0.8rem;
  color: var(--al-gray-200);
  background: transparent;
  border: 1px solid var(--al-gray-800);
  border-radius: var(--al-radius-sm);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.wfo-query-examples button:hover {
  color: var(--al-black);
  background: var(--al-primary);
  border-color: var(--al-primary);
}

.wfo-query-controls {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.wfo-status-filter {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--al-gray-800);
  border-radius: var(--al-radius-sm);
}

.wfo-status-filter button {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  color: var(--al-gray-300);
  background: var(--al-black);
  border: 0;
  border-right: 1px solid var(--al-gray-800);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
}

.wfo-status-filter button:last-child {
  border-right: 0;
}

.wfo-status-filter button:hover {
  color: var(--al-white);
  background: var(--al-gray-900);
}

.wfo-status-filter button[aria-pressed="true"] {
  color: var(--al-black);
  background: var(--al-primary);
}

.wfo-result-count {
  color: var(--al-gray-300);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wfo-catalog-section {
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(7rem, 12vw, 11rem);
}

.wfo-catalog-heading {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.wfo-catalog-heading h2 {
  margin: 0;
  color: var(--al-white);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wfo-catalog-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--al-gray-400);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: right;
}

.wfo-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

/* Tier headers span the grid so the proof hierarchy stays visible in scroll. */
.wfo-tier {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 255, 78, 0.3);
}

.wfo-tier:first-child {
  margin-top: 0;
}

.wfo-tier h3 {
  margin: 0;
  color: var(--al-white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wfo-tier-count {
  color: var(--al-primary);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.wfo-tier p {
  max-width: 52ch;
  margin: 0 0 0 auto;
  color: var(--al-gray-400);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.wfc-card {
  min-width: 0;
  height: 41rem;
  perspective: 1500px;
  scroll-margin-top: 6rem;
}

.wfc-card[hidden] {
  display: none !important;
}

.wfc-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.22, 0.72, 0.24, 1);
}

.wfc-card.is-flipped .wfc-card-inner {
  transform: rotateY(180deg);
}

.wfc-face {
  position: absolute;
  inset: 0;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  overflow: hidden;
  background: #030503;
  border: 1px solid #202a22;
  border-radius: var(--al-radius-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color var(--al-transition-fast), background-color var(--al-transition-fast);
}

.wfc-card:hover .wfc-front,
.wfc-card:focus-within .wfc-front {
  background: #050805;
  border-color: #334137;
}

.wfc-card[data-status="validation"] .wfc-face {
  border-style: dashed;
}

.wfc-back {
  background: #071008;
  border-color: rgba(0, 255, 78, 0.42);
  transform: rotateY(180deg);
}

.wfc-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 1.25rem;
  color: var(--al-gray-400);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wfc-meta [data-status-label="delivered"] {
  color: var(--al-primary);
}

.wfc-meta [data-status-label="pattern"] {
  color: var(--al-gray-200);
}

.wfc-meta [data-status-label="validation"] {
  color: var(--al-gray-400);
}

/* ---- Workflow schematic ------------------------------------------------ */

.wfc-visual {
  margin: 0.7rem 0 0.9rem;
}

/* Cap the schematic so a wide single-column card cannot render a giant
   diagram; the viewBox letterboxes and stays fully visible. */
.wfv {
  display: block;
  width: 100%;
  height: auto;
  max-height: 13.5rem;
  overflow: visible;
}

.wfv path {
  vector-effect: non-scaling-stroke;
}

.wfv text {
  fill: var(--al-gray-200);
  font-family: var(--al-font-data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wfv .wfv-caption,
.wfv .wfv-bar-label {
  fill: var(--al-gray-400);
  font-size: 9px;
}

.wfv-flow {
  fill: none;
  stroke: var(--al-primary);
  stroke-dasharray: 2 6;
  stroke-linecap: butt;
  stroke-width: 2;
}

.wfv-node path,
.wfv-start path,
.wfv-sheet > path:first-child {
  fill: #070b08;
  stroke: #3d4a41;
  stroke-width: 1;
}

.wfv-sheet-mark,
.wfv-signal-base {
  fill: none;
  stroke: #33413a;
  stroke-linecap: butt;
  stroke-width: 1;
}

.wfv-diamond {
  fill: var(--al-black);
  stroke: var(--al-primary);
  stroke-width: 1.4;
}

.wfv-cluster rect,
.wfv-glyph rect,
.wfv-bars rect {
  fill: var(--al-primary);
}

.wfv-output path {
  fill: var(--al-primary);
  stroke: none;
}

.wfv-output text {
  fill: var(--al-black);
  font-weight: 700;
}

.wfv-panel > path {
  fill: #08130a;
  stroke: var(--al-primary);
  stroke-width: 1;
}

.wfv-panel text {
  fill: var(--al-primary);
  font-weight: 700;
}

.wfv-queue-row {
  fill: #275030;
}

/* Pattern entries: neutral artifact, the flow itself stays alive. */
.wfv--pattern .wfv-output path {
  fill: var(--al-gray-100);
}

.wfv--pattern .wfv-glyph rect,
.wfv--pattern .wfv-cluster rect,
.wfv--pattern .wfv-bars rect {
  fill: var(--al-gray-100);
}

.wfv--pattern .wfv-diamond {
  stroke: var(--al-gray-200);
}

.wfv--pattern .wfv-flow {
  stroke: var(--al-gray-400);
}

.wfv--pattern .wfv-panel > path {
  stroke: var(--al-gray-200);
}

.wfv--pattern .wfv-panel text {
  fill: var(--al-gray-100);
}

.wfv--pattern .wfv-queue-row {
  fill: var(--al-gray-600);
}

/* Validation entries: the output is drawn hollow; nothing reads as shipped. */
.wfv--validation .wfv-output path {
  fill: none;
  stroke: var(--al-primary);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.wfv--validation .wfv-output text {
  fill: var(--al-primary);
}

.wfv--validation .wfv-glyph rect,
.wfv--validation .wfv-cluster rect,
.wfv--validation .wfv-bars rect {
  fill: #1f4429;
}

.wfv--validation .wfv-flow {
  opacity: 0.6;
}

.wfv--validation .wfv-diamond {
  stroke: rgba(0, 255, 78, 0.5);
}

.wfv--validation .wfv-panel > path {
  fill: none;
  stroke: rgba(0, 255, 78, 0.55);
  stroke-dasharray: 4 4;
}

.wfv--validation .wfv-panel text {
  fill: #58c877;
}

.wfv--validation .wfv-queue-row {
  fill: #1f4429;
}

.wfc-card:hover .wfv-flow,
.wfc-card:focus-within .wfv-flow {
  animation: wfv-travel 1.2s linear infinite;
}

@keyframes wfv-travel {
  to { stroke-dashoffset: -16; }
}

/* ---- Card front -------------------------------------------------------- */

.wfc-front-copy {
  min-width: 0;
}

.wfc-taxonomy {
  margin: 0 0 0.6rem;
  color: var(--al-gray-400);
  font-size: 0.7rem;
  line-height: 1.45;
}

.wfc-front h4 {
  max-width: 18ch;
  margin: 0;
  color: var(--al-white);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.wfc-for {
  margin: 0.45rem 0 0;
  color: var(--al-gray-400);
  font-size: 0.74rem;
  line-height: 1.4;
}

.wfc-for strong {
  color: var(--al-gray-100);
  font-weight: 600;
}

.wfc-outcome {
  margin: 0.7rem 0 0;
  color: var(--al-gray-300);
  font-size: 0.84rem;
  line-height: 1.55;
}

.wfc-front-result {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.9rem;
}

.wfc-metric {
  display: block;
  color: var(--al-white);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wfc-metric-label {
  display: block;
  margin: 0.3rem 0 0.85rem;
  color: var(--al-gray-400);
  font-size: 0.65rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.wfc-shift {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.wfc-shift-before {
  color: var(--al-gray-400);
}

.wfc-shift-arrow {
  width: 0.95rem;
  flex: 0 0 auto;
  color: var(--al-primary);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.wfc-shift-after {
  color: var(--al-white);
  font-weight: 700;
}

.wfc-card[data-status="validation"] .wfc-shift-after {
  color: var(--al-gray-200);
}

.wfc-shift-note {
  display: block;
  margin-top: 0.55rem;
  color: var(--al-primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wfc-front-footer {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #202a22;
}

/* Reserve two lines so a wrapping maturity note cannot shove one card's
   footer rule out of line with its neighbours in the same row. */
.wfc-front-footer p {
  max-width: 24ch;
  min-height: 2.9em;
  margin: 0;
  color: var(--al-gray-400);
  font-size: 0.66rem;
  line-height: 1.45;
}

.wfc-card button,
.wfc-card a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
  color: var(--al-primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.wfc-card button:hover,
.wfc-card a:hover {
  color: var(--al-white);
}

.wfc-card button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
  transition: transform var(--al-transition-fast);
}

.wfc-front-footer button:hover svg,
.wfc-front-footer button:focus-visible svg {
  transform: translate(2px, -2px);
}

.wfc-back-actions button:hover svg,
.wfc-back-actions button:focus-visible svg {
  transform: translateX(-2px);
}

/* ---- Card back --------------------------------------------------------- */

.wfc-back-copy {
  margin-top: 1.5rem;
}

.wfc-back h4 {
  max-width: 18ch;
  margin: 0;
  color: var(--al-white);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.wfc-briefing {
  margin: 1.1rem 0 0;
  color: var(--al-gray-200);
  font-size: 0.88rem;
  line-height: 1.62;
}

.wfc-back dl {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.wfc-back dl > div {
  padding-top: 0.95rem;
  border-top: 1px solid #243028;
}

.wfc-back dt {
  color: var(--al-primary);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wfc-back dd {
  margin: 0.5rem 0 0;
  color: var(--al-gray-200);
  font-size: 0.8rem;
  line-height: 1.55;
}

.wfc-back-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid #2c3a30;
}

.wfc-back-proof span,
.wfc-back-proof strong,
.wfc-back-proof small {
  display: block;
}

.wfc-back-proof span {
  color: var(--al-gray-400);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.wfc-back-proof strong {
  margin-top: 0.25rem;
  color: var(--al-white);
  font-size: 0.8rem;
  line-height: 1.35;
}

.wfc-back-proof small {
  min-height: 2.8em;
  margin-top: 0.25rem;
  color: var(--al-gray-400);
  font-size: 0.62rem;
  line-height: 1.4;
}

.wfc-back-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
}

.wfc-back-actions button {
  margin-left: auto;
}

/* ---- Empty state, coda, chrome ----------------------------------------- */

.wfo-empty {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(0, 255, 78, 0.3);
  border-bottom: 1px solid rgba(0, 255, 78, 0.3);
}

.wfo-empty h3 {
  max-width: 28ch;
  margin: 0;
  color: var(--al-white);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
}

.wfo-empty h3 span {
  color: var(--al-primary);
}

.wfo-empty p {
  margin: 1rem 0 0;
  color: var(--al-gray-300);
  font-size: 0.9rem;
}

.wfo-coda {
  padding: clamp(7rem, 12vw, 11rem) 0;
  border-top: 1px solid #1f2821;
}

.wfo-coda > .al-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.wfo-coda h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--al-white);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}

.wfo-coda p {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  color: var(--al-gray-300);
  font-size: 0.98rem;
  line-height: 1.65;
}

.wfo-coda .al-btn {
  margin-bottom: 0.35rem;
}

.workflows-page {
  scrollbar-color: var(--al-gray-700) var(--al-black);
}

.workflows-page::-webkit-scrollbar {
  width: 12px;
}

.workflows-page::-webkit-scrollbar-track {
  background: var(--al-black);
}

.workflows-page::-webkit-scrollbar-thumb {
  background: var(--al-gray-700);
  border: 3px solid var(--al-black);
}

.workflows-page::-webkit-scrollbar-thumb:hover {
  background: var(--al-primary-dark);
}

.workflows-page > footer {
  margin-top: 0 !important;
}

/* Narrow three-column band: cards lose width, so copy wraps further. */
@media (min-width: 1101px) and (max-width: 1360px) {
  .wfc-card {
    height: 44rem;
  }
}

@media (max-width: 1100px) {
  .wfo-hero h1 {
    grid-column: 1 / 9;
  }

  .wfo-hero-copy > p {
    grid-column: 8 / 13;
  }

  .wfo-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wfc-card {
    height: 41rem;
  }

  .wfc-front h4 {
    font-size: 1.55rem;
  }
}

@media (max-width: 800px) {
  .wfo-page .al-container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .wfo-hero {
    min-height: 100svh;
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }

  .wfo-hero > .al-editorial-hero-art {
    inset: 5.5rem -25% 8rem 20%;
    opacity: 0.33;
  }

  .wfo-hero-copy {
    display: block;
  }

  .wfo-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 12.5vw, 4.2rem);
  }

  .wfo-hero-copy > p {
    max-width: 38ch;
    margin-top: 1.3rem;
    margin-bottom: 0;
  }

  .wfo-hero-tally {
    margin-top: 1.5rem;
  }

  .wfo-query {
    margin-top: 1.8rem;
  }

  .wfo-query-controls {
    display: grid;
    gap: 0.8rem;
  }

  .wfo-status-filter {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wfo-status-filter button:nth-child(2) {
    border-right: 0;
  }

  .wfo-status-filter button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--al-gray-800);
  }

  .wfo-result-count {
    justify-self: end;
  }

  .wfo-catalog-heading {
    display: block;
  }

  .wfo-catalog-heading p {
    margin-top: 0.8rem;
    text-align: left;
  }

  .wfo-tier {
    flex-wrap: wrap;
  }

  .wfo-tier p {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }

  .wfc-card {
    height: 41rem;
  }

  .wfo-coda > .al-container {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .wfo-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 470px) {
  .wfo-hero {
    padding-top: 6.5rem;
    padding-bottom: 1.75rem;
  }

  .wfo-hero > .al-editorial-hero-art {
    inset: 5rem -48% 10rem 9%;
    opacity: 0.28;
  }

  .wfo-hero-copy > p {
    margin-top: 1rem;
  }

  .wfo-hero-tally {
    margin-top: 1.1rem;
  }

  .wfo-query {
    margin-top: 1.3rem;
  }

  .wfo-query > label {
    margin-bottom: 0.5rem;
  }

  .wfo-query-field {
    min-height: 3.8rem;
  }

  .wfo-query-examples {
    margin-top: 0.65rem;
  }

  .wfo-query-controls {
    margin-top: 0.75rem;
  }

  .wfo-query-field > span {
    min-width: 3.5rem;
    font-size: 0.6rem;
  }

  .wfo-query-field input {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.86rem;
  }

  .wfo-query-field button {
    min-width: 3.8rem;
    padding: 0 0.75rem;
  }

  .wfc-card {
    height: 38rem;
  }

  .wfc-face {
    padding: 1rem;
  }

  .wfc-back-copy {
    margin-top: 1.25rem;
  }

  .wfc-back dl {
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .wfc-back dl > div {
    padding-top: 0.75rem;
  }

  .wfc-front-footer,
  .wfc-back-actions {
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfc-card-inner,
  .wfc-face,
  .wfc-card button svg,
  .wfo-query-field {
    transition: none;
  }

  .wfc-card:hover .wfv-flow,
  .wfc-card:focus-within .wfv-flow {
    animation: none;
  }
}
