/* Tree ID certificate — print-friendly */
:root {
  --card-forest: #1a3c34;
  --card-bright: #2e7d32;
  --card-accent: #43a047;
  --card-muted-bg: #eceff1;
}

.tree-id-lookup-main .tree-id-search-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.tree-id-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tree-id-search-row input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(45, 106, 79, 0.35);
  border-radius: 999px;
  font-size: 1rem;
}

.tree-id-search-btn {
  border: 0;
  white-space: nowrap;
}

.ttm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

.ttm-card-actions--top {
  margin-top: 0.25rem;
  margin-bottom: 0.55rem;
}

.ttm-card-page {
  padding-bottom: 3rem;
}

.tree-id-card-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ttm-card-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.ttm-card {
  max-width: 540px;
  width: 540px;
  margin: 0;
}

.ttm-card__border {
  background: #fff;
  border: 5px solid var(--card-forest);
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 12px 40px rgba(26, 60, 52, 0.15);
}

.ttm-card__header {
  text-align: center;
  margin-bottom: 0.25rem;
}

.ttm-card__logo-img {
  margin: 0 auto 0.35rem;
  object-fit: contain;
}

.ttm-card__logo-img--big {
  width: min(340px, 96%);
  height: auto;
  margin: 0 auto 0.15rem;
}

.ttm-card__brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.ttm-card__brand-the,
.ttm-card__brand-move {
  color: var(--card-forest);
}

.ttm-card__brand-tree {
  color: var(--card-accent);
}

.ttm-card__tagline-rule {
  height: 2px;
  width: min(280px, 90%);
  margin: 0.35rem auto;
  background: linear-gradient(90deg, transparent, var(--card-bright), transparent);
}

.ttm-card__tagline {
  margin: 0.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-forest);
}

.ttm-card__banner {
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;
  gap: 0;
  margin-top: 4.2rem;
  padding: 0.65rem 0.95rem;
  background: var(--card-forest);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  min-height: 84px;
  overflow: hidden;
}

.ttm-card__banner span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.ttm-card__banner span:first-child {
  grid-column: 1;
}

.ttm-card__banner span:last-child {
  grid-column: 3;
}

.ttm-card__photo-ring {
  display: flex;
  justify-content: center;
  margin: -9.1rem auto 0.95rem;
  position: relative;
  z-index: 1;
}

.ttm-card__photo-inner {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 6px solid var(--card-bright);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-inline: auto;
}

.ttm-card__photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttm-card__photo-inner.is-default img {
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.ttm-card__ribbon {
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f7a34;
  margin: 0.2rem 0 0.65rem;
  letter-spacing: 0.03em;
}

.ttm-card__id-box {
  background: #fff !important;
  border: 2px solid #dce9d7 !important;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: center;
  margin: 0.2rem 0 0.7rem;
  box-shadow: none !important;
}

.ttm-card__id-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #103b2f;
  margin-bottom: 0.45rem;
}

.ttm-card__id-code {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111;
  word-break: break-all;
  line-height: 1;
}

.ttm-card__name {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--card-forest);
  margin: 0.55rem 0 0.15rem;
}

.ttm-card__meta {
  text-align: center;
  font-size: 0.95rem;
  color: #5c6b5f;
  margin: 0 0 0.85rem;
}

.ttm-card__footer-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: end;
  gap: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(26, 60, 52, 0.12);
}

.ttm-card__leaf-deco {
  display: none;
}

.ttm-card__footer-center {
  text-align: left;
  padding-bottom: 0.1rem;
}

.ttm-card__sign-img {
  display: block;
  margin: 0;
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

.ttm-card__qr {
  justify-self: end;
}

.ttm-card__qr img {
  display: block;
  border-radius: 8px;
}

.ttm-card-sample-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

@media print {
  .site-header,
  .site-footer,
  .no-print,
  .ttm-card-actions {
    display: none !important;
  }

  body.page-tree-id--card {
    background: #fff;
  }

  .ttm-card__border {
    box-shadow: none;
    border-width: 2px;
  }

  .ttm-card-wrap {
    width: auto !important;
    margin: 0 auto !important;
    transform: none !important;
    height: auto !important;
  }
}
