/* Pomelli-inspired cards, expressed through TASIRI's existing editorial system. */
body.ts-site .ts-home-page { width: 100%; }
body.ts-site .ts-home-page > .tasiri-section { gap: 1.75rem; }
body.ts-site :is(.ts-card-grid, .ts-manifesto-grid, .ts-gallery-grid) { width: 100%; min-width: 0; align-items: stretch; }
body.ts-site .ts-section-heading .tasiri-body { max-width: 40rem; }
body.ts-site .ts-home-hero .tasiri-title em { color: #f4a083; }
body.ts-site .ts-home-hero .ts-format-tags { margin-top: .5rem; }
body.ts-site .ts-format-tag { background: #ffffff0a; line-height: 1.6; }
body.ts-site .ts-home-hero .ts-scroll-cue { margin-top: 0; }
body.ts-site :is(.ts-info-card, .ts-service-card, .ts-card-support) {
  min-width: 0;
  border-radius: 0;
  transition: border-color 280ms, box-shadow 360ms, transform 360ms var(--ts-ease), background-color 280ms;
}
body.ts-site :is(.ts-info-card, .ts-service-card, .ts-card-support) .tasiri-card-title { font-size: clamp(1.55rem, 2.25vw, 2.15rem); line-height: 1.2; }
body.ts-site :is(.ts-info-card, .ts-service-card, .ts-card-support) .tasiri-body { font-size: .95rem; line-height: 1.8; }
body.ts-site :is(.ts-info-card, .ts-service-card, .ts-card-support) .tasiri-link { margin-top: auto; }
body.ts-site .ts-service-card { color: var(--ts-ink); }
body.ts-site .ts-service-card .tasiri-small { color: var(--ts-green); display: flex; align-items: center; min-height: 32px; }
body.ts-site .ts-service-card:focus-visible { outline-offset: 5px; border-color: var(--ts-orange); background: #fff; }

/* Full-bleed photograph cards: the scrim stays behind every caption. */
body.ts-site .ts-gallery-card { isolation: isolate; }
body.ts-site .ts-gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #071a1500 15%, #071a1538 45%, #071a15ed 100%);
  pointer-events: none;
}
body.ts-site .ts-gallery-card > img.ts-gallery-photo { height: 100%; width: 100%; object-fit: cover; transition: transform 850ms var(--ts-ease), filter 600ms; }
body.ts-site .ts-gallery-caption { color: #fff; padding-right: 5rem; transition: transform 360ms var(--ts-ease); }
body.ts-site .ts-gallery-caption .tasiri-card-title { color: #fff; font-size: clamp(1.65rem, 2.5vw, 2.4rem); line-height: 1.18; }
body.ts-site .ts-gallery-caption .tasiri-kicker { color: #f4c1ab; font-size: .68rem; line-height: 1.7; letter-spacing: .11em; }
body.ts-site .ts-gallery-card::after {
  content: '↗';
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  color: #fff;
  font: 400 1.35rem/1 var(--ts-body);
  transition: background-color 280ms, transform 360ms var(--ts-ease);
}
body.ts-site .ts-gallery-card:focus-visible { outline-offset: 5px; }
body.ts-site .ts-gallery-card:focus-visible::after { background: var(--ts-green); transform: translate(2px, -2px); }

/* Dynamic editorial listings keep their category, excerpt and action together. */
.ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: stretch; }
.ts-grid .ts-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e2d9; overflow: clip; transition: border-color 280ms, box-shadow 360ms, transform 360ms var(--ts-ease); }
.ts-grid .ts-card-media { margin-bottom: 0; flex: 0 0 auto; aspect-ratio: 1.5; }
.ts-grid .ts-card-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; flex: 1; }
.ts-grid .ts-card :is(h2, h3) { margin: 0; font-size: clamp(1.55rem, 2.35vw, 2.15rem); line-height: 1.2; }
.ts-grid .ts-card-body > p { margin: 0; }
.ts-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.ts-card-meta time, .ts-latest-card-meta time { font-size: .72rem; line-height: 1.6; }
.ts-grid-featured .ts-card:first-child { grid-column: auto; grid-row: auto; }
.ts-grid-featured .ts-card:first-child .ts-card-media { aspect-ratio: 1.5; }
.ts-grid-featured .ts-card:first-child h2 { font-size: clamp(1.55rem, 2.35vw, 2.15rem); }
.ts-grid-featured .ts-card:first-child p { font-size: .92rem; }
.ts-grid-featured .ts-card:first-child .ts-kicker { font-size: .67rem; }

@media (hover: hover) and (pointer: fine) {
  body.ts-site :is(.ts-service-card, .ts-card-support):hover { transform: translateY(-4px); border-color: #b5c4b8; box-shadow: 0 14px 34px #17251f0d; background: #fff; }
  .ts-grid .ts-card:hover { transform: translateY(-4px); border-color: #b5c4b8; box-shadow: 0 14px 34px #17251f12; }
  body.ts-site .ts-gallery-card:hover > img.ts-gallery-photo { transform: scale(1.055); filter: saturate(1.08); }
  body.ts-site .ts-gallery-card:hover .ts-gallery-caption { transform: translateY(-4px); }
  body.ts-site .ts-gallery-card:hover::after { transform: translate(2px, -2px); background: var(--ts-green); }
}
@media (max-width: 767px) {
  body.ts-site :is(.ts-card-grid, .ts-gallery-grid, .ts-manifesto-grid) { grid-template-columns: 1fr; }
  body.ts-site :is(.ts-info-card, .ts-service-card, .ts-card-support) { padding: 1.5rem; }
  body.ts-site .ts-gallery-caption { padding: 1.5rem 4.5rem 1.5rem 1.5rem; }
  body.ts-site .ts-gallery-card::after { right: 1rem; bottom: 1.5rem; }
}
@media (max-width: 580px) {
  .ts-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  body.ts-site .ts-gallery-card { aspect-ratio: 1.15; }
  .ts-grid .ts-card-body { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.ts-site :is(.ts-service-card, .ts-card-support, .ts-card, .ts-gallery-caption, img.ts-gallery-photo):hover,
  body.ts-site .ts-gallery-card:is(:hover, :focus-visible)::after { transform: none !important; }
}
