/* Page 20 only: Projects & Samples collection. */
body.page-id-20 .tc-projects-main,
body.page-id-20 .tc-projects-main > .wp-block-shortcode {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-20 .tc-projects-main {
  min-height: 0;
  background: var(--tc-paper);
}

.tc-projects-main .tc-projects-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.tc-projects-main .tc-projects-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 410px;
  overflow: hidden;
  background: #f3f0e9;
}

.tc-projects-main .tc-projects-hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,249,243,.96) 0%, rgba(250,249,243,.86) 35%, rgba(250,249,243,.1) 70%, rgba(250,249,243,0) 100%);
  pointer-events: none;
}

.tc-projects-main .tc-projects-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.tc-projects-main .tc-projects-hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 50px 56px;
}

.tc-projects-main .tc-projects-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 33px;
  color: #515d50;
  font-size: 12px;
}

.tc-projects-main .tc-projects-breadcrumb a:hover,
.tc-projects-main .tc-projects-breadcrumb a:focus-visible {
  color: var(--tc-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-projects-main .tc-projects-eyebrow {
  margin: 0 0 11px;
  color: var(--tc-green);
  font: 700 11px/1.4 var(--tc-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tc-projects-main .tc-projects-hero h1 {
  max-width: 580px;
  margin: 0 0 17px;
  color: var(--tc-ink);
  font: 500 clamp(3.7rem, 5.2vw, 5rem)/1.03 var(--tc-display);
  letter-spacing: -.035em;
}

.tc-projects-main .tc-projects-hero-intro {
  max-width: 490px;
  margin: 0;
  color: #4d574c;
  font-size: 17px;
  line-height: 1.57;
}

.tc-projects-main .tc-projects-hero-note {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 17px;
  max-width: 280px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(250, 249, 243, .93);
  color: #344535;
  font-size: 11px;
  line-height: 1.35;
}

.tc-projects-main .tc-projects-content {
  padding-top: 31px;
  padding-bottom: 67px;
}

.tc-projects-main .tc-projects-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.tc-projects-main .tc-projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tc-projects-main .tc-projects-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 22px;
  border: 1px solid #e7e9dd;
  border-radius: 999px;
  background: #f0f2e9;
  color: #28402c;
  font: 600 13px/1.3 var(--tc-body);
  text-align: center;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.tc-projects-main .tc-projects-filter:hover { background: #e1e9d5; }

.tc-projects-main .tc-projects-filter.is-active,
.tc-projects-main .tc-projects-filter.is-active:hover {
  border-color: #174c31;
  background: #174c31;
  color: #fffdf8;
}

.tc-projects-main .tc-projects-filter-note {
  flex: 0 1 215px;
  margin: 0;
  color: #667066;
  font-size: 12px;
  line-height: 1.5;
}

.tc-projects-main .tc-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.tc-projects-main .tc-projects-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e7dc;
  border-radius: 14px;
  background: #fffefa;
}

.tc-projects-main .tc-projects-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tc-projects-main .tc-projects-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8ebe2;
}

.tc-projects-main .tc-projects-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.tc-projects-main .tc-projects-card-body.is-linked:hover img { transform: scale(1.025); }

.tc-projects-main .tc-projects-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 28px);
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #233b2d;
  background: #e0ecd7;
  font: 700 11px/1.3 var(--tc-body);
}

.tc-projects-main .tc-projects-status.is-prototype { background: #dceef3; }
.tc-projects-main .tc-projects-status.is-development { background: #f7e8bf; }

.tc-projects-main .tc-projects-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 19px;
}

.tc-projects-main .tc-projects-card h2 {
  margin: 0 0 9px;
  color: var(--tc-ink);
  font: 500 clamp(1.4rem, 1.8vw, 1.75rem)/1.19 var(--tc-display);
  letter-spacing: -.025em;
}

.tc-projects-main .tc-projects-card-summary {
  display: block;
  margin-bottom: 20px;
  color: #5a6258;
  font-size: 14px;
  line-height: 1.58;
}

.tc-projects-main .tc-projects-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #174c31;
  font-size: 13px;
  font-weight: 700;
}

.tc-projects-main .tc-projects-card-body.is-linked:hover .tc-projects-view { text-decoration: underline; text-underline-offset: 3px; }

.tc-projects-main .tc-projects-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #dfeaad;
  color: #29452e;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.tc-projects-main .tc-projects-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 310px;
  padding: 45px 0 58px;
  border-top: 1px solid var(--tc-border);
  border-bottom: 1px solid var(--tc-border);
}

.tc-projects-main .tc-projects-empty h2 {
  max-width: 650px;
  margin: 0 0 12px;
  color: var(--tc-ink);
  font: 500 clamp(1.9rem, 3vw, 2.5rem)/1.12 var(--tc-display);
  letter-spacing: -.025em;
}

.tc-projects-main .tc-projects-empty p {
  margin: 0;
  color: var(--tc-muted);
  font-size: 16px;
  line-height: 1.55;
}

.tc-projects-main .tc-projects-empty a {
  margin-top: 22px;
  color: #174c31;
  font-size: 14px;
  font-weight: 700;
}

.tc-projects-main .tc-projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.tc-projects-main .tc-projects-pagination > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  color: var(--tc-green);
  font: 700 13px/1.2 var(--tc-body);
}

.tc-projects-main .tc-projects-pagination a:hover,
.tc-projects-main .tc-projects-pagination .is-current {
  border-color: #174c31;
  background: #174c31;
  color: #fffdf8;
}

.tc-projects-main .tc-projects-pagination .tc-projects-page-ellipsis { border-color: transparent; }

.tc-projects-main .tc-projects-cta {
  padding: 47px 0;
  background: #e9efdb;
}

.tc-projects-main .tc-projects-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.tc-projects-main .tc-projects-cta .tc-projects-eyebrow { font-size: 10px; }

.tc-projects-main .tc-projects-cta h2 {
  max-width: 660px;
  margin: 0 0 10px;
  color: var(--tc-ink);
  font: 500 clamp(2rem, 3.1vw, 2.8rem)/1.1 var(--tc-display);
  letter-spacing: -.025em;
}

.tc-projects-main .tc-projects-cta p:last-child {
  max-width: 600px;
  margin: 0;
  color: #3c4d3a;
  font-size: 15px;
  line-height: 1.55;
}

.tc-projects-main .tc-projects-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 10px;
  min-height: 49px;
  padding: 12px 23px;
  border-radius: 999px;
  background: #174c31;
  color: #fffdf8;
  font: 700 13px/1.2 var(--tc-body);
}

.tc-projects-main .tc-projects-cta-button:hover { background: #103d27; }

.tc-projects-main a:focus-visible {
  outline: 2px solid #174c31;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .tc-projects-main .tc-projects-filter-row { align-items: flex-start; flex-direction: column; gap: 15px; }
  .tc-projects-main .tc-projects-filter-note { flex-basis: auto; }
}

@media (max-width: 900px) {
  .tc-projects-main .tc-projects-hero { min-height: 360px; }
  .tc-projects-main .tc-projects-hero::before { background: linear-gradient(90deg, rgba(250,249,243,.96), rgba(250,249,243,.78) 50%, rgba(250,249,243,.06)); }
  .tc-projects-main .tc-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .tc-projects-main .tc-projects-container { width: min(100% - 36px, 480px); }
  .tc-projects-main .tc-projects-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .tc-projects-main .tc-projects-hero::before { display: none; }
  .tc-projects-main .tc-projects-hero-inner { order: 1; padding-block: 26px 27px; }
  .tc-projects-main .tc-projects-hero-image { position: relative; order: 2; height: 195px; object-position: 72% center; }
  .tc-projects-main .tc-projects-hero-note { right: 12px; bottom: 10px; max-width: 250px; font-size: 10px; }
  .tc-projects-main .tc-projects-breadcrumb { margin-bottom: 24px; }
  .tc-projects-main .tc-projects-hero h1 { font-size: clamp(3.1rem, 12vw, 4.3rem); margin-bottom: 12px; }
  .tc-projects-main .tc-projects-hero-intro { font-size: 15px; }
  .tc-projects-main .tc-projects-content { padding-top: 23px; padding-bottom: 43px; }
  .tc-projects-main .tc-projects-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .tc-projects-main .tc-projects-filter { min-height: 53px; padding: 8px; font-size: 12px; white-space: normal; }
  .tc-projects-main .tc-projects-filter-note { font-size: 12px; }
  .tc-projects-main .tc-projects-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tc-projects-main .tc-projects-empty { min-height: 238px; padding-block: 34px; }
  .tc-projects-main .tc-projects-empty h2 { font-size: 1.9rem; }
  .tc-projects-main .tc-projects-empty p { font-size: 14px; }
  .tc-projects-main .tc-projects-cta { padding: 33px 0 38px; }
  .tc-projects-main .tc-projects-cta-inner { display: block; }
  .tc-projects-main .tc-projects-cta h2 { font-size: 2.05rem; }
  .tc-projects-main .tc-projects-cta p:last-child { font-size: 14px; }
  .tc-projects-main .tc-projects-cta-button { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-projects-main .tc-projects-card-image img,
  .tc-projects-main .tc-projects-filter { transition: none; }
}

/* Page 20 correction only. Existing card selectors and shared theme CSS are unchanged. */
body.page-id-20 .tc-ad .tc-projects-hero-note{max-width:565px;margin:0 0 20px;color:#4c584b;font-size:12px;line-height:1.5}
body.page-id-20 .tc-ad .tc-projects-collection-note{margin-top:12px;color:#596558;font-size:12px;line-height:1.5}
body.page-id-20 .tc-projects-topic-nav{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 24px}
body.page-id-20 .tc-projects-topic{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 17px;border:1px solid #cbd5c5;border-radius:999px;color:#254630;background:#fffdf8;font-size:12px;font-weight:700;line-height:1.3;text-align:center;text-decoration:none}
body.page-id-20 .tc-projects-topic:hover,body.page-id-20 .tc-projects-topic:focus-visible{border-color:#174c31;background:#edf2e9}
body.page-id-20 .tc-projects-topic.is-active{border-color:#174c31;background:#174c31;color:#fffdf8}
body.page-id-20 .tc-projects-topic-empty{min-height:220px;padding:40px 24px;border:1px solid var(--tc-border);border-radius:16px;background:var(--tc-surface)}
body.page-id-20 .tc-projects-topic-empty h3{margin:0 0 10px;font-size:clamp(1.5rem,2.3vw,2rem)}
body.page-id-20 .tc-projects-topic-empty p{margin:0;color:var(--tc-muted);font-size:14px}
body.page-id-20 .tc-projects-stages{padding-block:45px 52px;border-top:1px solid var(--tc-border)}
body.page-id-20 .tc-projects-stages h2{margin:0 0 13px}
body.page-id-20 .tc-projects-stages p{max-width:900px;margin:0 0 24px;color:var(--tc-muted);font-size:14px;line-height:1.6}
body.page-id-20 .tc-projects-stages dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0}
body.page-id-20 .tc-projects-stages dl>div{min-width:0;padding:20px;border:1px solid var(--tc-border);border-radius:14px;background:var(--tc-surface)}
body.page-id-20 .tc-projects-stages dt{margin:0 0 8px;font-weight:700;font-size:14px}
body.page-id-20 .tc-projects-stages dd{margin:0;color:var(--tc-muted);font-size:12px;line-height:1.5}
@media(max-width:800px){body.page-id-20 .tc-projects-stages dl{grid-template-columns:1fr}}
@media(max-width:600px){body.page-id-20 .tc-projects-topic-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.page-id-20 .tc-projects-topic{padding:8px 10px}body.page-id-20 .tc-projects-stages{padding-block:36px 42px}}
