/* Appended: TYPES OF CASES section */
.section-types{
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--bg);
}
.types-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.type{
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  min-height: 240px;
}
.type-num{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.type-title{
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.type-body{
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.type-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.type-tags span{
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: lowercase;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-4);
}
/* clickable tiles — the .case-card treatment on the light surface */
a.type{ transition: background .2s, border-color .2s, box-shadow .2s; }
a.type:hover{
  background: color-mix(in srgb, var(--bg) 100%, #fff 30%);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--rule));
  /* grid cells own only their right/bottom borders — paint the other
     two edges so the accent ring reads like a card border */
  box-shadow: inset 1px 1px 0 0 color-mix(in srgb, var(--accent) 50%, var(--rule));
}
.type-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 10px;
  flex-wrap: wrap;
}
.type-foot .type-tags{ margin-top: 0; padding-top: 0; }
.type-read{
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
a.type:hover .type-read{ color: var(--accent); }

@media (max-width: 1060px){ .types-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .types-grid{ grid-template-columns: 1fr; } }
