.tn-weekly-rides,
.tn-weekly-ride-single {
  --tn-site-header-offset: clamp(112px, 12vw, 156px);
  --tn-page-bg: #f7fafc;
  --tn-page-surface: #ffffff;
  --tn-page-ink: #0f1729;
  --tn-page-muted: #65758b;
  --tn-page-primary: #00a0cc;
  --tn-page-primary-dark: #008cb3;
  --tn-page-accent: #ff531a;
  --tn-page-border: #e1e7ef;
  background: var(--tn-page-bg);
  color: var(--tn-page-ink);
  font-family: inherit;
}

body.post-type-archive-awd_weekly_ride .box-crumb,
body.single-awd_weekly_ride .box-crumb {
  display: none !important;
}

body.post-type-archive-awd_weekly_ride .zapedah-custom-header,
body.single-awd_weekly_ride .zapedah-custom-header {
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10000;
}

.tn-weekly-rides *,
.tn-weekly-ride-single * {
  box-sizing: border-box;
}

.tn-weekly-rides p,
.tn-weekly-ride-single p {
  font-family: "Poppins", sans-serif !important;
  font-size: 17px !important;
}

.tn-weekly-rides h3,
.tn-weekly-ride-single h3 {
  font-family: "Poppins", sans-serif !important;
  font-size: 20px !important;
}

.tn-weekly-rides-hero,
.tn-weekly-single-hero {
  background:
    linear-gradient(120deg, rgba(15, 23, 41, .96), rgba(15, 23, 41, .78)),
    linear-gradient(90deg, var(--tn-page-primary), var(--tn-page-accent));
  color: #fff;
}

.tn-weekly-rides-hero {
  padding: var(--tn-site-header-offset) 20px clamp(42px, 7vw, 74px);
}

.tn-weekly-rides-hero > div,
.tn-weekly-rides-grid,
.tn-weekly-single-body {
  margin: 0 auto;
  max-width: 1180px;
  width: min(1180px, calc(100% - 40px));
}

.tn-weekly-single-hero__inner {
  margin: 0 auto;
  max-width: 1335px;
  padding-top: 50px;
  width: min(1335px, calc(100% - 40px));
}

.tn-weekly-kicker {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: 14px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.tn-weekly-rides h1,
.tn-weekly-single-hero h1 {
  color: inherit;
  font-size: clamp(2.7rem, 8vw, 6.2rem);
  letter-spacing: 0;
  line-height: .95;
  margin: 0 0 18px;
  max-width: 850px;
}

.tn-weekly-rides-hero p,
.tn-weekly-single-hero p {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

.tn-weekly-rides-grid {
  display: grid;
  gap: 18px;
  padding: clamp(34px, 6vw, 70px) 0;
}

.tn-weekly-card {
  align-items: stretch;
  background: var(--tn-page-surface);
  border: 1px solid var(--tn-page-border);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(15, 23, 41, .06);
  display: grid;
  gap: 0;
  grid-template-columns: 116px minmax(0, 1fr);
  overflow: hidden;
}

.tn-weekly-date {
  align-content: center;
  background: #0f1729;
  color: #fff;
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 22px 14px;
}

.tn-weekly-date span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tn-weekly-date strong {
  font-size: 52px;
  line-height: .95;
}

.tn-weekly-card__body {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
}

.tn-weekly-pill {
  background: #e9faff;
  border-radius: 999px;
  color: var(--tn-page-primary-dark);
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  letter-spacing: .08em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.tn-weekly-card h2 {
  color: #061735;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.08;
  margin: 0;
}

.tn-weekly-card h2 a {
  color: inherit;
  text-decoration: none;
}

.tn-weekly-card p {
  color: var(--tn-page-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 820px;
}

.tn-weekly-meta {
  color: #48607c;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-weekly-meta span {
  background: #f1f6fa;
  border: 1px solid var(--tn-page-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.tn-weekly-card__actions,
.tn-weekly-single-actions,
.tn-weekly-calendar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tn-weekly-button,
.tn-weekly-calendar-row a {
  align-items: center;
  background: var(--tn-page-accent);
  border: 1px solid var(--tn-page-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.tn-weekly-button--ghost,
.tn-weekly-calendar-row a {
  background: #fff;
  border-color: var(--tn-page-border);
  color: #0f1729;
}

.tn-weekly-empty {
  background: #fff;
  border: 1px dashed var(--tn-page-border);
  border-radius: 8px;
  color: var(--tn-page-muted);
  display: grid;
  gap: 4px;
  padding: 28px;
}

.tn-weekly-empty strong {
  color: #061735;
  font-size: 1.2rem;
}

.tn-weekly-single-hero__inner {
  display: grid;
  gap: clamp(24px, 5vw, 54px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
}

.tn-weekly-single-hero .tn-weekly-single-actions {
  grid-column: 1 / -1;
}

.tn-weekly-single-hero .tn-weekly-hero-route-map {
  align-self: start;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  margin: clamp(20px, 3vw, 30px) 0 0;
  overflow: hidden;
}

.tn-weekly-single-hero .tn-weekly-single-actions {
  margin-top: 0;
}

.tn-weekly-single-hero {
  padding: var(--tn-site-header-offset) 0 clamp(46px, 8vw, 84px);
  width: 100%;
}

.tn-weekly-back {
  color: rgba(255, 255, 255, .82);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 18px;
  text-decoration: none;
}

.tn-weekly-facts {
  align-self: end;
  background: #21284B;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  padding: clamp(18px, 3vw, 26px);
}

.tn-weekly-facts > span {
  color: rgba(255, 255, 255, .72);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.tn-weekly-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tn-weekly-facts div {
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.tn-weekly-facts dt {
  color: #FCBF1E;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tn-weekly-facts dd {
  color: #fff;
  font-weight: 900;
  margin: 0;
}

.tn-weekly-single-body {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  padding: clamp(34px, 6vw, 70px) 0;
}

.tn-weekly-description,
.tn-weekly-register {
  background: #fff;
  border: 1px solid var(--tn-page-border);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(15, 23, 41, .06);
  padding: clamp(22px, 4vw, 34px);
}

.tn-weekly-description h2,
.tn-weekly-register h2 {
  color: #061735;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.tn-weekly-description p {
  color: #42526a;
  line-height: 1.75;
}

.tn-weekly-route-panel {
  background: #f8fbfe;
  border: 1px solid var(--tn-page-border);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin: 26px 0;
  overflow: hidden;
}

.tn-weekly-route-panel--overview {
  margin: 22px 0 18px;
}

.tn-weekly-route-panel__copy {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 24px);
}

.tn-weekly-route-panel__copy span {
  color: var(--tn-page-primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tn-weekly-route-panel__copy h3 {
  color: #061735;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.1;
  margin: 0;
}

.tn-weekly-route-panel__copy p {
  margin: 0;
}

.tn-weekly-start-link {
  color: var(--tn-page-accent);
  font-weight: 900;
  text-decoration: none;
}

.tn-weekly-map-grid {
  display: grid;
  gap: 14px;
}

.tn-weekly-route-map {
  background: #e8eef4;
  border-top: 1px solid var(--tn-page-border);
  margin: 0;
}

.tn-weekly-route-map figcaption {
  background: #0f1729;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin: 0;
  padding: 10px 14px;
  text-transform: uppercase;
}

.tn-weekly-route-map img {
  display: block;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  width: 100%;
}

.tn-weekly-route-map iframe {
  border: 0;
  display: block;
  height: min(420px, 56vw);
  min-height: 260px;
  width: 100%;
}

.tn-weekly-register {
  align-self: start;
  position: sticky;
  top: 30px;
}

.tn-weekly-register > span {
  color: var(--tn-page-primary-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tn-weekly-rsvp-summary {
  color: var(--tn-page-muted);
  font-weight: 900;
  margin: 0 0 14px;
}

.tn-weekly-register form {
  display: grid;
  gap: 12px;
}

.tn-weekly-register label {
  color: #42526a;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.tn-weekly-register input,
.tn-weekly-register textarea {
  border: 1px solid var(--tn-page-border);
  border-radius: 8px;
  color: var(--tn-page-ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

.tn-weekly-register button {
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.tn-weekly-register button:disabled {
  cursor: wait;
  opacity: .72;
}

.tn-weekly-form-notice {
  border-radius: 8px;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.tn-weekly-form-notice.is-success {
  background: #def9ec;
  color: #0d7650;
}

.tn-weekly-form-notice.is-error {
  background: #fff1ec;
  color: var(--tn-page-accent);
}

.tn-weekly-hp {
  left: -9999px;
  position: absolute;
}

@media (max-width: 1024px) {
  body.single-awd_weekly_ride .elementor-section .elementor-container,
  body.post-type-archive-awd_weekly_ride .elementor-section .elementor-container {
    flex-wrap: nowrap;
  }

  .tn-weekly-single-hero__inner,
  .tn-weekly-single-body {
    grid-template-columns: 1fr;
  }

  .tn-weekly-register {
    position: static;
  }

  .tn-weekly-facts {
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  .tn-weekly-rides-hero > div,
  .tn-weekly-rides-grid,
  .tn-weekly-single-hero__inner,
  .tn-weekly-single-body {
    width: min(100% - 20px, 1180px);
  }

  .tn-weekly-rides h1,
  .tn-weekly-single-hero h1 {
    font-size: clamp(2.3rem, 14vw, 3.8rem);
  }

  .tn-weekly-card {
    grid-template-columns: 1fr;
  }

  .tn-weekly-card__actions,
  .tn-weekly-single-actions,
  .tn-weekly-calendar-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tn-weekly-button,
  .tn-weekly-calendar-row a {
    width: 100%;
  }

  .tn-weekly-date {
    align-items: center;
    grid-auto-flow: column;
    justify-content: start;
    min-height: 0;
  }

  .tn-weekly-date strong {
    font-size: 38px;
  }
}
