/**
 * TruGrain Site Components
 *
 * Purpose:
 * Shared, site-specific component styles that should not live in the active
 * WordPress theme. Version 0.1.0 contains documentation only and intentionally
 * produces no visual changes.
 *
 * Naming convention for future rules:
 * - Component classes: .trugrain-component-name
 * - Component elements: .trugrain-component-name__element
 * - Component modifiers: .trugrain-component-name--modifier
 *
 * Global typography, navigation, header, footer, buttons, forms, and mobile
 * menu styles must not be added here without an approved implementation task.
 */

/* TG PHASE 2B-1: PARTNER */
.tg-partner-value {
  --tg-ink: #211d1a;
  --tg-muted: #6c625b;
  --tg-leather: #8d5f43;
  --tg-line: #d9d0c7;
  margin-block: 0 72px;
  padding: clamp(72px, 8vw, 112px) 0;
  color: var(--tg-ink);
  background: #f7f3ee;
}

.tg-partner-value .tg-partner-value__shell {
  width: min(calc(100% - 64px), 1240px);
  max-width: 1240px;
  margin-inline: auto;
}

.tg-partner-value .tg-partner-value__grid {
  gap: clamp(56px, 7vw, 112px);
  margin: 0;
}

.tg-partner-value .tg-partner-value__visual {
  flex-basis: 42%;
}

.tg-partner-value .tg-partner-value__content {
  flex-basis: 58%;
}

.tg-partner-value .tg-partner-value__image {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #e9e4de;
}

.tg-partner-value .tg-partner-value__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-partner-value .tg-partner-value__caption {
  margin: 13px 0 0;
  color: var(--tg-muted);
  font-size: 12px;
  letter-spacing: .02em;
}

.tg-partner-value .tg-partner-value__eyebrow {
  margin: 0 0 18px;
  color: var(--tg-leather);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tg-partner-value h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(2.35rem, 4.1vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.tg-partner-value .tg-partner-value__intro {
  max-width: 680px;
  margin: 0;
  color: var(--tg-muted);
  font-size: 18px;
  line-height: 1.65;
}

.tg-partner-value .tg-partner-value__list {
  margin: 42px 0 34px;
  border-top: 1px solid var(--tg-line);
}

.tg-partner-value .tg-partner-value__item {
  gap: 20px;
  align-items: flex-start;
  margin-block-start: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--tg-line);
}

.tg-partner-value .tg-partner-value__number {
  flex: 0 0 42px;
  margin: 3px 0 0;
  color: var(--tg-leather);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tg-partner-value .tg-partner-value__item h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.3;
}

.tg-partner-value .tg-partner-value__item p:not(.tg-partner-value__number) {
  margin: 0;
  color: var(--tg-muted);
  font-size: 16px;
  line-height: 1.55;
}

.tg-partner-value .wp-block-button__link {
  min-height: 48px;
  padding: 13px 22px;
}

@media (max-width: 781px) {
  .tg-partner-value {
    margin-bottom: 56px;
    padding: 64px 0;
  }

  .tg-partner-value .tg-partner-value__shell {
    width: min(calc(100% - 40px), 1240px);
  }

  .tg-partner-value .tg-partner-value__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .tg-partner-value .tg-partner-value__visual,
  .tg-partner-value .tg-partner-value__content {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .tg-partner-value .tg-partner-value__visual {
    max-width: 620px;
  }

  .tg-partner-value .tg-partner-value__image {
    aspect-ratio: 4 / 4.7;
  }

  .tg-partner-value h2 {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
    line-height: 1.08;
  }

  .tg-partner-value .tg-partner-value__intro {
    font-size: 17px;
  }

  .tg-partner-value .tg-partner-value__list {
    margin-top: 34px;
  }

  .tg-partner-value .tg-partner-value__item {
    gap: 12px;
  }
}

/* TG PHASE 2B-1: COOPERATION */
.tg-cooperation-paths {
  --tg-ink: #211d1a;
  --tg-muted: #6c625b;
  --tg-leather: #8d5f43;
  --tg-line: #d9d0c7;
  margin: 0;
  padding: clamp(78px, 8vw, 116px) 0;
  color: var(--tg-ink);
  background: #fff;
}

.tg-cooperation-paths .tg-cooperation-paths__shell {
  width: min(calc(100% - 64px), 1240px);
  max-width: 1240px;
  margin-inline: auto;
}

.tg-cooperation-paths .tg-cooperation-paths__heading {
  gap: clamp(52px, 8vw, 112px);
  margin: 0 0 60px;
}

.tg-cooperation-paths .tg-cooperation-paths__heading > .wp-block-column:first-child {
  flex-basis: 60%;
}

.tg-cooperation-paths .tg-cooperation-paths__heading > .wp-block-column:last-child {
  flex-basis: 40%;
}

.tg-cooperation-paths .tg-cooperation-paths__eyebrow {
  margin: 0 0 18px;
  color: var(--tg-leather);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tg-cooperation-paths h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.tg-cooperation-paths .tg-cooperation-paths__intro {
  margin: 0 0 5px;
  color: var(--tg-muted);
  font-size: 17px;
  line-height: 1.65;
}

.tg-cooperation-paths .tg-cooperation-paths__grid {
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--tg-ink);
  border-bottom: 1px solid var(--tg-line);
}

.tg-cooperation-paths .tg-cooperation-paths__path {
  position: relative;
  box-sizing: border-box;
  min-height: 400px;
  padding: 36px 34px 128px;
  border-right: 1px solid var(--tg-line);
}

.tg-cooperation-paths .tg-cooperation-paths__path:last-child {
  border-right: 0;
}

.tg-cooperation-paths .tg-cooperation-paths__path--featured {
  background: #f7f3ee;
}

.tg-cooperation-paths .tg-cooperation-paths__number {
  position: absolute;
  top: 36px;
  right: 34px;
  margin: 0;
  color: var(--tg-leather);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tg-cooperation-paths .tg-cooperation-paths__kicker {
  margin: 0 0 46px;
  color: var(--tg-leather);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tg-cooperation-paths .tg-cooperation-paths__path h3 {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 530;
  line-height: 1.15;
}

.tg-cooperation-paths .tg-cooperation-paths__path > p:not(.tg-cooperation-paths__number):not(.tg-cooperation-paths__kicker) {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--tg-muted);
  font-size: 16px;
  line-height: 1.6;
}

.tg-cooperation-paths .tg-cooperation-paths__input {
  position: absolute;
  right: 34px;
  bottom: 28px;
  left: 34px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--tg-line);
  font-size: 14px;
  line-height: 1.55;
}

.tg-cooperation-paths .tg-cooperation-paths__actions {
  gap: 14px;
  margin-top: 40px;
}

.tg-cooperation-paths .tg-cooperation-paths__actions .wp-block-button__link {
  min-height: 50px;
  padding: 14px 24px;
}

@media (max-width: 781px) {
  .tg-cooperation-paths {
    padding: 68px 0;
  }

  .tg-cooperation-paths .tg-cooperation-paths__shell {
    width: min(calc(100% - 40px), 1240px);
  }

  .tg-cooperation-paths .tg-cooperation-paths__heading {
    gap: 24px;
    margin-bottom: 42px;
  }

  .tg-cooperation-paths h2 {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
    line-height: 1.08;
  }

  .tg-cooperation-paths .tg-cooperation-paths__grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tg-cooperation-paths .tg-cooperation-paths__path {
    min-height: 390px;
    padding: 32px 26px 108px;
    border-right: 0;
    border-bottom: 1px solid var(--tg-line);
  }

  .tg-cooperation-paths .tg-cooperation-paths__path:last-child {
    border-bottom: 0;
  }

  .tg-cooperation-paths .tg-cooperation-paths__number {
    top: 32px;
    right: 26px;
  }

  .tg-cooperation-paths .tg-cooperation-paths__input {
    right: 26px;
    bottom: 24px;
    left: 26px;
  }

  .tg-cooperation-paths .tg-cooperation-paths__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tg-cooperation-paths .tg-cooperation-paths__actions .wp-block-button,
  .tg-cooperation-paths .tg-cooperation-paths__actions .wp-block-button__link {
    width: 100%;
  }
}

/* TG PHASE 2B-1: PROCESS */
.tg-process-steps {
  --tg-light: #f7f3ee;
  --tg-muted: #c7bdb5;
  --tg-accent: #d2b49a;
  --tg-line: #665d57;
  margin: 0;
  padding: clamp(78px, 8vw, 116px) 0;
  color: var(--tg-light);
  background: #26211e;
}

.tg-process-steps .tg-process-steps__shell {
  width: min(calc(100% - 64px), 1240px);
  max-width: 1240px;
  margin-inline: auto;
}

.tg-process-steps .tg-process-steps__header {
  gap: clamp(52px, 8vw, 112px);
  margin: 0 0 66px;
}

.tg-process-steps .tg-process-steps__header > .wp-block-column:first-child {
  flex-basis: 60%;
}

.tg-process-steps .tg-process-steps__header > .wp-block-column:last-child {
  flex-basis: 40%;
}

.tg-process-steps .tg-process-steps__eyebrow {
  margin: 0 0 18px;
  color: var(--tg-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tg-process-steps h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.tg-process-steps .tg-process-steps__intro {
  margin: 0 0 5px;
  color: var(--tg-muted);
  font-size: 17px;
  line-height: 1.65;
}

.tg-process-steps .tg-process-steps__track {
  gap: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--tg-line);
}

.tg-process-steps .tg-process-steps__step {
  position: relative;
  min-height: 250px;
  padding: 44px 24px 24px 0;
}

.tg-process-steps .tg-process-steps__step::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tg-accent);
  content: "";
}

.tg-process-steps .tg-process-steps__number {
  margin: 0 0 24px;
  color: var(--tg-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tg-process-steps .tg-process-steps__step h3 {
  max-width: 190px;
  margin: 0 0 13px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.tg-process-steps .tg-process-steps__step > p:last-child {
  max-width: 190px;
  margin: 0;
  color: var(--tg-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tg-process-steps .tg-process-steps__link {
  margin: 0;
}

.tg-process-steps .tg-process-steps__link a {
  display: inline-flex;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 781px) {
  .tg-process-steps {
    padding: 68px 0;
  }

  .tg-process-steps .tg-process-steps__shell {
    width: min(calc(100% - 40px), 1240px);
  }

  .tg-process-steps .tg-process-steps__header {
    gap: 24px;
    margin-bottom: 50px;
  }

  .tg-process-steps h2 {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
    line-height: 1.08;
  }

  .tg-process-steps .tg-process-steps__track {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 36px;
    border-top: 0;
    border-left: 1px solid var(--tg-line);
  }

  .tg-process-steps .tg-process-steps__step {
    min-height: 0;
    padding: 0 0 38px 30px;
  }

  .tg-process-steps .tg-process-steps__step::before {
    top: 5px;
    left: -5px;
  }

  .tg-process-steps .tg-process-steps__number {
    margin-bottom: 8px;
  }

  .tg-process-steps .tg-process-steps__step h3,
  .tg-process-steps .tg-process-steps__step > p:last-child {
    max-width: none;
  }
}

/* TG PHASE 2B-1: TRUST */
.tg-trust-evidence {
  --tg-ink: #211d1a;
  --tg-muted: #6c625b;
  --tg-leather: #8d5f43;
  --tg-line: #d9d0c7;
  margin: 0 0 72px;
  padding: clamp(78px, 8vw, 116px) 0;
  color: var(--tg-ink);
  background: #f7f3ee;
}

.tg-trust-evidence .tg-trust-evidence__shell {
  width: min(calc(100% - 64px), 1240px);
  max-width: 1240px;
  margin-inline: auto;
}

.tg-trust-evidence .tg-trust-evidence__grid {
  gap: clamp(60px, 7vw, 108px);
  margin: 0;
}

.tg-trust-evidence .tg-trust-evidence__gallery {
  flex-basis: 54%;
}

.tg-trust-evidence .tg-trust-evidence__content {
  flex-basis: 46%;
}

.tg-trust-evidence .tg-trust-evidence__gallery-grid {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: 14px;
  height: 650px;
  margin: 0;
}

.tg-trust-evidence .tg-trust-evidence__large,
.tg-trust-evidence .tg-trust-evidence__small-stack {
  min-width: 0;
}

.tg-trust-evidence .tg-trust-evidence__large figure,
.tg-trust-evidence .tg-trust-evidence__small-stack figure {
  margin: 0;
  overflow: hidden;
  background: #e9e4de;
}

.tg-trust-evidence .tg-trust-evidence__large figure {
  height: 650px;
}

.tg-trust-evidence .tg-trust-evidence__small-stack {
  display: grid;
  grid-template-rows: 1fr .72fr;
  gap: 14px;
}

.tg-trust-evidence .tg-trust-evidence__small-stack figure {
  height: 100%;
  min-height: 0;
}

.tg-trust-evidence .tg-trust-evidence__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-trust-evidence .tg-trust-evidence__eyebrow {
  margin: 0 0 18px;
  color: var(--tg-leather);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tg-trust-evidence h2 {
  margin: 0 0 24px;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.tg-trust-evidence .tg-trust-evidence__intro {
  margin: 0;
  color: var(--tg-muted);
  font-size: 17px;
  line-height: 1.65;
}

.tg-trust-evidence .tg-trust-evidence__points {
  margin: 40px 0 34px;
  border-top: 1px solid var(--tg-line);
}

.tg-trust-evidence .tg-trust-evidence__point {
  gap: 18px;
  align-items: flex-start;
  margin-block-start: 0;
  padding: 21px 0;
  border-bottom: 1px solid var(--tg-line);
}

.tg-trust-evidence .tg-trust-evidence__number {
  flex: 0 0 38px;
  margin: 3px 0 0;
  color: var(--tg-leather);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tg-trust-evidence .tg-trust-evidence__point h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.3;
}

.tg-trust-evidence .tg-trust-evidence__point p:not(.tg-trust-evidence__number) {
  margin: 0;
  color: var(--tg-muted);
  font-size: 16px;
  line-height: 1.55;
}

.tg-trust-evidence .wp-block-button__link {
  min-height: 48px;
  padding: 13px 22px;
}

@media (max-width: 900px) {
  .tg-trust-evidence .tg-trust-evidence__grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tg-trust-evidence .tg-trust-evidence__gallery {
    max-width: 720px;
  }
}

@media (max-width: 781px) {
  .tg-trust-evidence {
    margin-bottom: 56px;
    padding: 68px 0;
  }

  .tg-trust-evidence .tg-trust-evidence__shell {
    width: min(calc(100% - 40px), 1240px);
  }

  .tg-trust-evidence .tg-trust-evidence__grid {
    gap: 48px;
  }

  .tg-trust-evidence .tg-trust-evidence__gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 350px 185px;
    height: auto;
  }

  .tg-trust-evidence .tg-trust-evidence__large {
    grid-column: 1 / 3;
  }

  .tg-trust-evidence .tg-trust-evidence__large figure {
    height: 350px;
  }

  .tg-trust-evidence .tg-trust-evidence__small-stack {
    display: contents;
  }

  .tg-trust-evidence .tg-trust-evidence__small-stack figure {
    height: 185px;
  }

  .tg-trust-evidence h2 {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
    line-height: 1.08;
  }
}

/* TG PHASE 2: product records and B2B process flows. All selectors are scoped. */
.tg-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 28px 0 56px;
}
.tg-product-card {
  min-width: 0;
  border: 1px solid #ddd4ca;
  background: #fff;
}
.tg-product-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f1ece6;
}
.tg-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tg-product-card__media--empty { display: grid; place-items: center; color: #6c625b; font-size: 14px; }
.tg-product-card__body { padding: 22px 22px 24px; }
.tg-product-card__title { margin: 0 0 10px; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.tg-product-card__title a { color: inherit; text-decoration: none; }
.tg-product-card__excerpt { margin: 0 0 18px; color: #6c625b; font-size: 15px; line-height: 1.6; }
.tg-product-card__link, .tg-product-grid__empty-cta, .tg-product-detail__cta a { color: #211d1a; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tg-product-grid__empty { margin: 28px 0 56px; padding: 34px; border: 1px dashed #b9aa9d; background: #f7f3ee; color: #51483f; }
.tg-product-grid__empty-title { margin: 0 0 10px; color: #211d1a; font-size: 20px; font-weight: 600; }
.tg-product-grid__empty p:not(.tg-product-grid__empty-title) { max-width: 680px; }
.tg-product-detail { max-width: 980px; margin: 24px auto 72px; }
.single-tg_product .wp-block-post-featured-image,
.single-tg_product .wp-block-post-featured-image + .wp-block-group,
.single-tg_product .wp-block-post-author,
.single-tg_product .wp-block-post-author-name,
.single-tg_product .wp-block-post-date,
.single-tg_product .wp-block-post-terms,
.single-tg_product .taxonomy-category { display: none; }
.tg-product-media { max-width: 860px; margin: 0 auto 34px; }
.tg-product-media__stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f3ee; touch-action: pan-y; }
.tg-product-media__figure { width: 100%; height: 100%; margin: 0; background: #f7f3ee; }
.tg-product-media__image { display: block; width: 100%; height: 100%; object-fit: contain; background: #f7f3ee; }
.tg-product-media__control { position: absolute; z-index: 1; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid #d9d0c7; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #211d1a; font-size: 22px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.tg-product-media__control:hover, .tg-product-media__control:focus-visible { border-color: #8d5f43; outline: 2px solid rgba(141, 95, 67, .25); outline-offset: 2px; }
.tg-product-media__control--previous { left: 18px; }
.tg-product-media__control--next { right: 18px; }
.tg-product-media__status { margin: 12px 0; color: #6c625b; font-size: 13px; text-align: center; }
.tg-product-media__thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.tg-product-media__thumbnail { flex: 0 0 74px; width: 74px; height: 74px; padding: 0; overflow: hidden; border: 1px solid #d9d0c7; background: #f7f3ee; cursor: pointer; }
.tg-product-media__thumbnail.is-current, .tg-product-media__thumbnail:focus-visible { border: 2px solid #8d5f43; outline: none; }
.tg-product-media__thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tg-product-detail__intro { margin-bottom: 30px; padding: 26px 30px; background: #f7f3ee; }
.tg-product-detail__eyebrow { margin: 0 0 8px; color: #8d5f43; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tg-product-detail__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 38px; background: #ddd4ca; }
.tg-product-detail__spec { padding: 18px 20px; background: #fff; }
.tg-product-detail__spec dt { margin-bottom: 7px; color: #6c625b; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tg-product-detail__spec dd { margin: 0; color: #211d1a; line-height: 1.55; }
.tg-product-detail__body .wp-block-gallery { margin-top: 30px; }
.tg-product-detail__custom-development { margin-top: 42px; padding: 30px; border: 1px solid #ddd4ca; background: #f7f3ee; }
.tg-product-detail__custom-development h2 { margin: 0 0 12px; color: #211d1a; font-size: clamp(24px, 3vw, 34px); line-height: 1.16; }
.tg-product-detail__custom-development > p:not(.tg-product-detail__eyebrow) { max-width: 700px; margin: 0; color: #51483f; line-height: 1.65; }
.tg-product-detail__custom-development-cta { display: inline-block; margin-top: 22px; padding: 12px 18px; border: 1px solid #211d1a; background: #211d1a; color: #fff; font-weight: 600; text-decoration: none; }
.tg-product-detail__custom-development-cta:hover, .tg-product-detail__custom-development-cta:focus-visible { background: #8d5f43; border-color: #8d5f43; color: #fff; outline: 2px solid rgba(141, 95, 67, .25); outline-offset: 2px; }
.tg-product-detail__cta { margin-top: 42px; padding: 28px 30px; background: #211d1a; color: #fff; }
.tg-product-detail__cta a { color: #fff; }
.tg-process-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 28px 0 40px; padding: 0; list-style: none; counter-reset: tg-process; }
.tg-process-flow__item { position: relative; min-height: 190px; padding: 22px 22px 22px 20px; border-top: 1px solid #b9aa9d; border-right: 1px solid #b9aa9d; background: #f7f3ee; }
.tg-process-flow__item:nth-child(4n+1) { border-left: 1px solid #b9aa9d; }
.tg-process-flow__number { display: block; margin-bottom: 24px; color: #8d5f43; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.tg-process-flow__item h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.tg-process-flow__item p { margin: 0; color: #6c625b; font-size: 15px; line-height: 1.55; }
.tg-process-flow--manufacturing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-process-flow--manufacturing .tg-process-flow__item { background: #fff; }
@media (max-width: 900px) {
  .tg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-process-flow, .tg-process-flow--manufacturing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-process-flow__item:nth-child(4n+1) { border-left: 0; }
  .tg-process-flow__item:nth-child(2n+1) { border-left: 1px solid #b9aa9d; }
}
@media (max-width: 600px) {
  .tg-product-grid { grid-template-columns: 1fr; gap: 24px; }
  .tg-product-grid__empty { padding: 24px 20px; }
  .tg-product-detail { margin: 18px 0 56px; }
  .tg-product-detail__intro, .tg-product-detail__custom-development, .tg-product-detail__cta { padding: 22px 20px; }
  .tg-product-detail__specs { grid-template-columns: 1fr; }
  .tg-product-media { margin-bottom: 28px; }
  .tg-product-media__control { width: 44px; height: 44px; }
  .tg-product-media__control--previous { left: 12px; }
  .tg-product-media__control--next { right: 12px; }
  .tg-product-media__thumbnail { flex-basis: 62px; width: 62px; height: 62px; }
  .tg-process-flow, .tg-process-flow--manufacturing { grid-template-columns: 1fr; }
  .tg-process-flow__item, .tg-process-flow__item:nth-child(2n+1) { min-height: 0; border-left: 1px solid #b9aa9d; border-right: 1px solid #b9aa9d; border-bottom: 0; }
  .tg-process-flow__item:last-child { border-bottom: 1px solid #b9aa9d; }
}

/* TG PHASE 2: keep newly added URL/select fields aligned with the approved form comfort rules. */
.trugrain-contact-form-card input[type=url],
.trugrain-contact-form-card select {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin-top: 9px;
  padding: 13px 16px;
  border: 1px solid #aebbc1;
  border-radius: 6px;
  background: #fff;
  color: #172126;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}
.trugrain-contact-form-card select { appearance: auto; }
.trugrain-contact-form-card input[type=url]:focus,
.trugrain-contact-form-card select:focus {
  border-color: #286f78;
  outline: 2px solid rgba(40,111,120,.16);
  outline-offset: 1px;
}
@media(max-width:700px) {
  .trugrain-contact-form-card input[type=url],
  .trugrain-contact-form-card select {
    min-height: 54px;
    padding: 14px 16px;
  }
}
