.card[data-product="pitch-3d"] .card-frame img { object-fit: cover; }

.card:is([data-product="prairie-law-legal"], [data-product="town-hall"], [data-product="demo-day"]) .card-frame {
  container-type: inline-size;
}

/* Typeset the two lines of the native CrossEX start screen on the Library surface. */
.card[data-product="prairie-law-legal"] .card-frame {
  background: repeating-linear-gradient(90deg, transparent 0 23px, #765d3521 23px 24px), linear-gradient(125deg, #fffae9, #e3cc9d);
  border: 1px solid #b1986e;
}

.cx-library-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  color: #342a21;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
}

.cx-library-imprint {
  font-size: 6.4cqw;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cx-library-title {
  font-size: 23.8cqw;
  line-height: .9;
  letter-spacing: .08em;
}

.cx-library-mark span span { color: #815b21; }
:root[data-library-theme="light"] .cx-library-imprint span { color: #785916; }
:root[data-library-theme="light"] .cx-library-title span { color: #805f1a; }

.card[data-product="demo-day"] .card-frame img {
  filter: saturate(.55) brightness(.73) blur(1px);
  scale: 1.025;
}

.card[data-product="demo-day"] .demo-day-card-title {
  inset: auto auto 9% 0;
  padding: .15em .46em .13em;
  border-left: .09em solid #edb64e;
  background: #14233b;
  color: #fffaf1;
  font: 400 15.5cqw/1 "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: .035em;
  text-shadow: none;
}

.civic-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5cqw;
  padding: 0 9%;
  border-left: 2.7cqw solid #9b342e;
  background: #f5edda;
  color: #18374a;
}

.civic-rule, .civic-agenda {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.civic-rule {
  align-self: flex-start;
  padding-bottom: 1.8cqw;
  border-bottom: .6cqw solid #9b342e;
  font-size: 4.2cqw;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.civic-title {
  font: 700 13.6cqw/1.03 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}

.civic-agenda {
  margin-top: 1.5cqw;
  padding-top: 2.3cqw;
  border-top: .35cqw solid #7f8a83;
  font-size: 4.3cqw;
  letter-spacing: .02em;
}

.card[data-product="history-with-history"] .card-frame { container-type:inline-size; }
.history-card-title {
  padding: 3% 5% 5%;
  text-align: center;
  font: 600 clamp(16px,8cqw,35px)/1 Georgia, serif;
  letter-spacing: -.035em;
  color: #fff4d8;
  background: transparent;
}
.card[data-product="laboratory"] .laboratory-cover img { object-fit:cover; object-position:center; }
.card .card-frame {
  border: 1px solid color-mix(in srgb, var(--text) 48%, var(--page));
}

#home .catalogue-grid .card-frame {
  border: 0;
  outline: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  outline-offset: -1px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 9%),
              0 3px 10px -3px color-mix(in srgb, var(--text) 16%, transparent);
}
@media (hover: hover) {
  #home .catalogue-grid a.card-link:hover .card-frame {
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%),
                0 5px 14px -3px color-mix(in srgb, var(--text) 23%, transparent);
  }
}
#home .catalogue-grid a.card-link:focus-visible .card-frame {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.card[data-product="brandywine"] .card-frame { container-type: inline-size; }
.card[data-product="brandywine"] .brandywine-card img {
  object-fit: cover;
  object-position: center;
  transform: none;
}
.card-link:hover .brandywine-card img { transform: scale(1.025); }
/* Waterloo: the painting, lettered in the top right (Callahan, Nov 21 2026). */
.brandywine-card::after {
  background: radial-gradient(ellipse 70% 60% at 100% 0%, #000000a8, transparent 72%);
}
.brandywine-card .brandywine-card-title {
  inset: 7% 6% auto auto;
  transform: none;
  color: #fff7df;
  font: 600 12.5cqw/1 Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000, 0 2px 12px #000c;
  pointer-events: none;
}

/* History with History: archival photographs, titled like a documentary (Callahan, Nov 21 2026). */
.card[data-product="history-with-history"] .card-frame { background:#111; }
.card[data-product="history-with-history"] .card-frame img { object-fit: cover; object-position: center; }
.card[data-product="history-with-history"] .history-card-title {
  position: absolute; inset: 81% 0 0; z-index: 1; display:grid; place-items:center; padding:0; text-align:center; white-space:nowrap;
  background:#201d19;
  color: #fff; font: 400 8.4cqw/1 "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  letter-spacing: .04em; text-transform: uppercase; text-shadow: none; pointer-events: none;
}

/* The Socratic Seminar artwork has a rectangular rim inside the image. */
#home .catalogue-grid .card[data-product="prairie"] .card-frame img {
  scale: 1.02;
}


/* Keep cover lettering proportional to the responsive Library grid. */
.card:is([data-product="sablewood"], [data-product="pitch-3d"], [data-product="seminar-3d"],
         [data-product="laboratory"], [data-product="horizonmini"], [data-product="kings-dilemma"],
         [data-product="semantic-search"]) .card-frame { container-type:inline-size; }
.sablewood-title, .seminar-forum-title, .pitch-script, .lab-cover-title {
  position:absolute; z-index:1; pointer-events:none;
}
.sablewood-title {
  top:11%; left:7%; color:#fff2cd;
  font:600 12.5cqw/1 Georgia,serif; letter-spacing:-.055em;
}
.pitch-script {
  inset:auto auto 5.5% 6%; width:34%; height:29%;
  filter:brightness(0) invert(94%) sepia(13%) saturate(350%);
  background:url('/prairie/assets/art/catalogue-covers/pitch-script.png') left bottom / contain no-repeat;
}
.seminar-forum-title {
  left:0; right:0; bottom:0; padding:12% 5.5% 5%;
  display:flex; align-items:baseline; gap:2.2cqw; white-space:nowrap;
  background:linear-gradient(transparent,rgba(47,35,23,.76)); color:#fff5de;
  font:600 8.9cqw/1 Georgia,serif; letter-spacing:-.045em;
}
.seminar-forum-title small {
  color:#fff0cc; font:650 4.4cqw/1 "DM Sans",sans-serif; letter-spacing:.04em;
}
.lab-cover-title {
  left:6%; bottom:9%; padding:.26em .5em .21em; color:#1c3438;
  background:#faf8e9; border-left:.13em solid #476d72;
  font:400 9.1cqw/1 "Bebas Neue","Arial Narrow",sans-serif; text-transform:uppercase; letter-spacing:.055em;
}
.card .ascii-throne {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0;
  background:#171918; color:#e8e1cb;
}
.ascii-crown {
  margin:0 0 3.8cqw; padding:0; background:transparent; color:#e4cb93;
  font:650 4.45cqw/1.03 ui-monospace,Menlo,Consolas,"Liberation Mono",monospace;
}
.ascii-throne-title {font:500 7.8cqw/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:-.035em;}
.card .horizon-code {
  display:grid; place-items:center; background:#1f1e1d; color:#e8e6dc;
}
:root[data-library-theme="light"] .card .horizon-code {background:#f5f4ed;color:#30302e;}
.horizon-menu {
  margin:0; padding:0; white-space:pre; color:inherit; background:none;
  font:400 3.02cqw/1.11 "Anthropic Mono",anthropicMono,ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  letter-spacing:normal; text-align:left;
}
/* An alpha mask keeps the original Anthropic Mono glyphs and takes the theme's ink color. */
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .horizon-menu {
    width:77%; height:76%; overflow:hidden; font-size:0; line-height:0; background:currentColor;
    -webkit-mask:url('/prairie/assets/art/catalogue-covers/horizonmini-menu-type.png') center / contain no-repeat;
    mask:url('/prairie/assets/art/catalogue-covers/horizonmini-menu-type.png') center / contain no-repeat;
  }
}
.cx-title-line {display:flex;align-items:center;justify-content:center;gap:3.1cqw;}
.cx-title-line .cx-library-title {color:#342a21; font-size:19.7cqw;}
.cx-gavel {
  flex:none; position:relative; width:14.2cqw; height:14.2cqw;
  color:#654b28; transform:rotate(-42deg);
}
.cx-gavel::before, .cx-gavel::after {content:"";position:absolute;background:currentColor;}
.cx-gavel::before {width:77%;height:31%;top:8%;left:10%;border-radius:.7cqw;box-shadow:inset 1cqw 0 #927544,inset -1cqw 0 #927544;}
.cx-gavel::after {width:15%;height:66%;top:34%;left:41%;border-radius:0 0 .7cqw .7cqw;}
.card .semantic-search-cover {
  display:grid; place-items:center; background:#e9eff1; color:#233b46;
}
.search-tool-art {display:grid;width:81%;row-gap:2.4cqw;}
.search-tool-query {
  display:flex; align-items:center; gap:3cqw; background:#fdfefe;
  border:1px solid #97aab0; border-radius:1.4cqw; padding:4cqw 3.7cqw;
  font:600 6.9cqw/1 "DM Sans",system-ui,sans-serif; letter-spacing:-.035em; white-space:nowrap;
}
.search-tool-glass {
  display:block; flex:none; width:4.3cqw; height:4.3cqw; box-sizing:border-box; border:.65cqw solid currentColor;
  border-radius:50%; position:relative; margin-right:.7cqw;
}
.search-tool-glass::after {content:"";position:absolute;width:2.4cqw;height:.65cqw;background:currentColor;top:89%;left:78%;transform:rotate(45deg);transform-origin:0 50%;}
.search-result-line {display:block;margin-left:2cqw;width:70%;height:1.1cqw;background:linear-gradient(to right,#477080 2.5cqw,transparent 2.5cqw 5cqw,#a6b9c0 5cqw);border-radius:.3cqw;}
.search-result-line:nth-child(3){width:57%;}
.search-result-line:nth-child(4){width:64%;}
