/* collectionList/teardown-cards: the teardowns hub grid. Built 2026-10-23, not a Webflow port. Linked only on pages that
   use the design (components/PageView.astro). Colours from the Slate style guide: O1 #F66719, D1 #16161E, D2 #343446,
   L1 #F6F4F1. Light by day, dark by night (body class), like the rest of the site. */
.tdc {
  --tdc-bg: #f6f4f1;
  --tdc-card: #ffffff;
  --tdc-text: #16161e;
  --tdc-muted: #5f5f6b;
  --tdc-line: #e3dfd8;
  --tdc-accent: #f66719;
  background: var(--tdc-bg);
  color: var(--tdc-text);
  padding: 5rem 0 7rem;
}
body.dark-mode .tdc {
  --tdc-bg: #16161e;
  --tdc-card: #1f1f2a;
  --tdc-text: #f6f4f1;
  --tdc-muted: #a9a7b4;
  --tdc-line: #343446;
}
.tdc *, .tdc *::before, .tdc *::after { box-sizing: border-box; }
.tdc-wrap { max-width: 80rem; margin: 0 auto; padding: 0 2.5rem; }

/* header */
.tdc-head { max-width: 46rem; margin-bottom: 3rem; }
.tdc-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--_font---font-secondary), monospace;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tdc-accent);
}
.tdc-h2 {
  margin: 0;
  font-family: 'Forma DJR Text', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: pre-line;
}
.tdc-intro { margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--tdc-muted); }

/* grid and cards */
.tdc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tdc-card {
  display: flex;
  flex-direction: column;
  background: var(--tdc-card);
  border: 1px solid var(--tdc-line);
  border-radius: 1rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.tdc-card:hover, .tdc-card:focus-visible { border-color: var(--tdc-accent); transform: translateY(-2px); }
.tdc-card:focus-visible { outline: 2px solid var(--tdc-accent); outline-offset: 3px; }

.tdc-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 100% 100%, rgba(246, 103, 25, .75) 0%, rgba(246, 103, 25, .25) 30%, rgba(22, 22, 30, 0) 62%),
    radial-gradient(rgba(246, 244, 241, .14) 1px, transparent 1.2px) 0 0 / 14px 14px,
    #16161e;
  color: #f6f4f1;
}
.tdc-kicker {
  font-family: var(--_font---font-secondary), monospace;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f89762;
}
.tdc-logo {
  display: block;
  width: auto;
  max-width: 70%;
  height: 2.75rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1); /* any logo shown in white, like the teardown covers */
}
.tdc-name {
  font-family: 'Forma DJR Text', Arial, sans-serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.02em;
}

.tdc-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.tdc-industry {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(246, 103, 25, .1);
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--tdc-accent);
}
.tdc-title {
  margin: 0;
  font-family: 'Forma DJR Text', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.tdc-text { margin: .75rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--tdc-muted); }
.tdc-facts { margin: 1rem 0 0; font-size: .875rem; color: var(--tdc-text); }
.tdc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.tdc-date { font-size: .875rem; color: var(--tdc-muted); }
.tdc-cta { display: inline-flex; align-items: center; gap: .375rem; font-size: .9375rem; color: var(--tdc-accent); }
.tdc-card:hover .tdc-cta svg { transform: translateX(3px); }
.tdc-cta svg { transition: transform .2s; }

@media (max-width: 991px) {
  .tdc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tdc { padding: 3.5rem 0 5rem; }
  .tdc-wrap { padding: 0 1.25rem; }
  .tdc-head { margin-bottom: 2rem; }
  .tdc-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .tdc-cover { min-height: 8.5rem; }
  .tdc-name { font-size: 2.5rem; }
  .tdc-logo { height: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tdc-card, .tdc-cta svg { transition: none; }
  .tdc-card:hover, .tdc-card:focus-visible { transform: none; }
  .tdc-card:hover .tdc-cta svg { transform: none; }
}
