/* Saudi eVisa package case study: on top of case-v3.css. Scoped to <body class="ev">. */
.ev { --ev: #ff2d78; --ev-soft: #fff0f5; }

/* what made it hard: six numbered cards */
.ev-rules, .ev-limits { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: var(--wide); counter-reset: rule; }
.ev-rules li, .ev-limits li { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px 26px; counter-increment: rule; }
.ev-rules li::before { content: counter(rule, decimal-leading-zero); display: block; font: 500 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ev); }
.ev-rules h3, .ev-limits h3 { margin-top: .9rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--fg); }
.ev-limits h3 { margin-top: 0; }
.ev-rules p, .ev-limits p { margin-top: .4rem; font-size: .9375rem; line-height: 1.5; color: var(--fg-muted); }
/* limitations: quieter, on the cream */
.ev-limits li { background: var(--bg-elev); border-color: transparent; }
.ev-limits li::before { content: ""; display: block; width: 18px; height: 2px; margin-bottom: 1rem; background: var(--fg-faint); border-radius: 2px; }

/* key decisions */
.ev-calls { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--wide); }
.ev-calls li { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 24px 26px; display: flex; flex-direction: column; }
.ev-calls h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--fg); }
.ev-calls p { margin-top: .6rem; font-size: .9375rem; line-height: 1.55; color: var(--fg-muted); }
.ev-calls .cv-cost { margin-top: auto; padding-top: 1rem; }

/* the research board: four clusters of sticky notes on a dotted cream board */
.ev-board { margin: 2.5rem 0 0; max-width: var(--wide); border-radius: 24px; padding: clamp(20px, 3vw, 36px);
  background: var(--bg-elev) radial-gradient(circle, rgba(17,17,17,.07) 0 1.2px, transparent 1.6px) 0 0 / 18px 18px; }
.ev-board__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.ev-cluster h3 { font: 500 .6875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 14px; }
.ev-cluster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-cluster li { --r: -1.2deg; position: relative; padding: 16px 14px 18px; min-height: 88px; font-size: .875rem; line-height: 1.4; font-weight: 500; color: #2a2620;
  background: var(--note); border-radius: 3px 3px 10px 3px; rotate: var(--r);
  box-shadow: 0 1px 1px rgba(40,30,10,.08), 0 8px 14px -6px rgba(40,30,10,.28); }
.ev-cluster li:nth-child(2n) { --r: 1deg; }
.ev-cluster li:nth-child(3n) { --r: -.4deg; }
.ev-cluster li::before { content: ""; position: absolute; top: -6px; left: 50%; width: 38px; height: 12px; margin-left: -19px; background: rgba(255,255,255,.55); rotate: -2deg; }
.ev-cluster--y { --note: #fde98a; }
.ev-cluster--g { --note: #c9efb0; }
.ev-cluster--p { --note: #ffc9dc; }
.ev-cluster--b { --note: #bfe1ff; }

/* empty slots for screenshots added later */
.ev-slots { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--wide); }
.ev-slots--3 { margin-top: 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-slot figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 24px; border: 1px dashed var(--line); background: #fff; overflow: hidden; }
.ev-slots--3 .ev-slot figure { aspect-ratio: 4 / 5; }
.ev-slot figure:has(img) { border-style: solid; background: var(--bg-elev); }
.ev-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 980px) {
  .ev-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ev-rules, .ev-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-calls { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ev-rules, .ev-limits, .ev-slots, .ev-slots--3 { grid-template-columns: 1fr; }
  .ev-board__grid { grid-template-columns: 1fr; }
}

/* captions run two or three lines: a fixed height keeps every card's title on one line across the row */
.ev .cv-cap { min-height: 6.4rem; }
@media (max-width: 640px) { .ev .cv-cap { min-height: 0; } }
/* empty slots: a visible dashed edge */
.ev-slot figure:not(:has(img)) { border: 1.5px dashed #d8d2c6; background: transparent; }
/* phones: each cluster's notes two across, so the board stays a board */
@media (max-width: 600px) {
  .ev-board__grid { gap: 22px; }
  .ev-cluster ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ev-cluster li { min-height: 76px; padding: 14px 11px 14px; font-size: .8125rem; }
}
