/* Abacus frames for cards, shared by every page and with Applied AI, Simplified.
   A card is a small wooden abacus: two rounded dowels standing just outside it and overhanging
   it, joined by a thin wooden rod top and bottom. The wood is the frame; never a shadow, never
   a field of dots. Hovering a card turns its top rod rust. */
:root {
  --dowel: linear-gradient(90deg, #b48a5c 0%, #d8bb94 24%, #f1e3cc 48%, #dcc29e 70%, #ad8455 100%);
  --rod-wood: linear-gradient(180deg, #e9d8bd 0%, #f4eadb 35%, #d2b48d 75%, #b8946a 100%);
  --rod-on: #e0301e;
}
.case-card, .pub-card, .about-card, .metric-card, .recruiter-card, .gallery-card,
.news-card, .principle-card, .abacus-box, .result, .cite, .frame, .abacus-frame {
  position: relative; overflow: visible !important;
  border-color: transparent !important;
  border-radius: 4px !important;
  
  background-image: var(--rod-wood), var(--rod-wood) !important;
  background-size: 100% 3px, 100% 3px !important;
  background-position: center top, center bottom !important;
  background-repeat: no-repeat !important;
}
.case-card::before, .pub-card::before, .about-card::before, .metric-card::before, .recruiter-card::before, .gallery-card::before,
.news-card::before, .principle-card::before, .abacus-box::before, .result::before, .cite::before, .frame::before, .abacus-frame::before,
.case-card::after, .pub-card::after, .about-card::after, .metric-card::after, .recruiter-card::after, .gallery-card::after,
.news-card::after, .principle-card::after, .abacus-box::after, .result::after, .cite::after, .frame::after, .abacus-frame::after {
  content: "" !important; position: absolute !important; top: -5px !important; bottom: -5px !important; inset-inline: auto !important;
  width: 7px !important; height: auto !important; border-radius: 4px !important; pointer-events: none;
  background: var(--dowel) !important; opacity: 1 !important; -webkit-mask-image: none !important; mask-image: none !important; z-index: 1;
}
.case-card::before, .pub-card::before, .about-card::before, .metric-card::before, .recruiter-card::before, .gallery-card::before,
.news-card::before, .principle-card::before, .abacus-box::before, .result::before, .cite::before, .frame::before, .abacus-frame::before { left: -4px !important; right: auto !important; }
.case-card::after, .pub-card::after, .about-card::after, .metric-card::after, .recruiter-card::after, .gallery-card::after,
.news-card::after, .principle-card::after, .abacus-box::after, .result::after, .cite::after, .frame::after, .abacus-frame::after { right: -4px !important; left: auto !important; }
.case-card:hover, .pub-card:hover, .about-card:hover, .metric-card:hover, .gallery-card:hover,
.news-card:hover, .principle-card:hover, .abacus-box:hover, .result:hover, .cite:hover, .abacus-frame:hover {
  
  background-image: linear-gradient(var(--rod-on), var(--rod-on)), var(--rod-wood) !important;
}

/* the posts overhang a card by 4px; on a full-width card that would spill past the screen */
html { overflow-x: clip; }
