/* Contact: quieter hierarchy and one consistently aligned identity card. */
.page-id-9967 .tn-wide-landing__hero {
  padding-top: clamp(2rem, 4vw, 3rem) !important;
  padding-bottom: 0.55rem !important;
}

.page-id-9967 .tn-wide-landing__hero .wp-block-post-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
}

.tn-contact-page {
  padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.tn-contact-layout {
  gap: clamp(2rem, 4vw, 3.5rem);
}

.tn-contact-main > :first-child,
.tn-contact-card > :first-child,
.tn-contact-identity__copy > :first-child {
  margin-top: 0;
}

.tn-contact-intro {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: var(--wp--preset--color--ink-soft);
  line-height: 1.48;
}

.tn-contact-main > h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
}

.tn-contact-card {
  box-sizing: border-box;
  padding: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(37, 50, 47, 0.045);
}

.tn-contact-card > * {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.tn-contact-identity {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.tn-contact-portrait {
  width: 108px;
  margin: 0 !important;
}

.tn-contact-portrait img {
  display: block;
  width: 108px !important;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
}

.tn-contact-identity__copy {
  min-width: 0;
}

.tn-contact-identity__copy h3 {
  margin-bottom: 0.15rem;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.tn-contact-identity__copy p {
  margin-top: 0;
  color: var(--wp--preset--color--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.tn-contact-card__rule {
  width: 100%;
  margin: 1.25rem 0 !important;
  border-color: var(--wp--preset--color--line);
}

.tn-contact-card > h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.tn-contact-card > p {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
  line-height: 1.5;
}

.tn-contact-card > p:last-child {
  margin-bottom: 0;
}

/* Current Real Skills event: image-led, compact, and easy to edit each time. */
.tn-rs-event {
  padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.tn-rs-event__intro {
  margin-bottom: 1rem;
  color: var(--wp--preset--color--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}

.tn-rs-event__layout {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: flex-start !important;
}

.tn-rs-event__media,
.tn-rs-event__details {
  display: flex;
  align-self: flex-start !important;
}

.tn-rs-event__poster {
  width: 100%;
  margin: 0 !important;
}

.tn-rs-event__poster a,
.tn-rs-event__poster img {
  display: block;
  width: 100% !important;
  height: 100%;
}

.tn-rs-event__poster img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.tn-rs-event-card {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  background: rgba(231, 240, 234, 0.58);
}

.tn-rs-event-card > * {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.tn-rs-event-card > :first-child {
  margin-top: 0;
}

.tn-rs-event-card__kicker {
  margin-bottom: 0.55rem;
  color: var(--wp--preset--color--moss-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.tn-rs-event-card h1 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem) !important;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tn-rs-event-card__subtitle {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--wp--preset--color--ink-soft);
  font-size: 1rem;
  line-height: 1.4;
}

.tn-rs-event-card__detail {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.45;
}

.tn-rs-event-card .wp-block-buttons {
  margin-top: 1rem;
}

.tn-rs-event-card .wp-block-button__link {
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
}

.tn-rs-event-card__note {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--wp--preset--color--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (min-width: 782px) {
  .tn-rs-event__media {
    box-sizing: border-box;
    padding-top: 2.2rem;
  }

  #rs-contribute .wp-block-columns > .wp-block-column:last-child {
    padding-top: 1.2rem;
  }
}

@media (max-width: 781px) {
  .tn-contact-layout,
  .tn-rs-event__layout {
    gap: 2rem;
  }

  .tn-contact-card,
  .tn-rs-event-card {
    max-width: none;
  }

  .tn-rs-event__media,
  .tn-rs-event__details {
    display: block;
  }
}

@media (max-width: 480px) {
  .page-id-9967 .tn-wide-landing__hero .wp-block-post-title {
    font-size: 2.4rem !important;
  }

  .tn-contact-identity {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .tn-contact-portrait,
  .tn-contact-portrait img {
    width: 88px !important;
    height: 88px;
  }

  .tn-rs-event-card h1 {
    font-size: 1.7rem !important;
  }

  .tn-rs-event-card .wp-block-button,
  .tn-rs-event-card .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}
