/* Exact Manus home components. Keep this final layer after the legacy rules. */
.tui-container,
.tui-header-inner {
  width: 100% !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 1.25rem !important;
  padding-left: 1.25rem !important;
}

.tui-site-header .tui-header-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}

.tui-header-brand-col,
.tui-header-actions-col {
  flex: 0 0 auto;
}

.tui-header-nav-col {
  flex: 1 1 auto;
  justify-content: center;
}

.tui-site-header nav ul {
  gap: 28px !important;
}

.tui-site-header nav .tui-nav-submenu {
  gap: 0 !important;
}

.tui-site-header .wp-block-navigation-item__content {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .025em;
}

.tui-home > section {
  height: auto !important;
  margin-block-start: 0 !important;
  transform: none !important;
}

.tui-home .tui-hero {
  display: flex;
  min-height: 560px;
  height: 88vh !important;
  align-items: center;
  justify-content: center;
}

.tui-home .tui-hero-content {
  width: min(768px, calc(100% - 40px));
  padding: 0 !important;
  transform: none !important;
}

.tui-home .tui-hero .tui-kicker {
  margin: 0 0 20px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .25em;
}

.tui-home .tui-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
}

.tui-home .tui-hero-content > p:not(.tui-kicker) {
  max-width: 576px;
  margin: 24px auto 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.625;
}

.tui-home .tui-hero .tui-actions {
  margin-top: 36px;
  gap: 16px;
}

.tui-home .tui-hero .wp-block-button.tui-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 9999px !important;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.tui-home .tui-hero .wp-block-button.tui-button.secondary .wp-block-button__link {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.15);
  box-shadow: none;
}

.tui-weather-section {
  position: relative;
  z-index: 4;
  margin-top: -34px !important;
}

.tui-weather-section[hidden] {
  display: none !important;
}

.tui-weather-card {
  display: flex;
  height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(22,58,103,.1);
  border-radius: 16px;
  align-items: stretch;
  color: #163a67;
  background: #fff;
  box-shadow: 0 14px 32px rgba(22,58,103,.14);
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
}

.tui-weather-card::-webkit-scrollbar {
  display: none;
}

.tui-weather-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tui-weather-current {
  display: flex;
  height: 70px;
  min-width: 520px;
  padding: 8px 18px;
  align-items: center;
  gap: 16px;
  border-right: 1px solid rgba(22,58,103,.1);
  background: linear-gradient(135deg, rgba(22,58,103,.055), rgba(62,124,177,.03));
  scroll-snap-align: start;
}

.tui-weather-heading p,
.tui-weather-heading h2,
.tui-weather-now p,
.tui-weather-current-copy p,
.tui-weather-day p,
.tui-weather-meta p {
  margin: 0;
}

.tui-weather-kicker {
  display: none;
}

.tui-weather-heading h2 {
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.tui-weather-now {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tui-weather-now-label {
  display: none;
}

.tui-weather-temperature {
  font-family: var(--wp--preset--font-family--display, "Baloo 2", sans-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.tui-weather-current-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.tui-weather-current-copy .tui-weather-condition {
  color: #163a67;
  font-size: 12px;
  font-weight: 800;
}

.tui-weather-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #3e7cb1;
}

.tui-weather-now .tui-weather-icon {
  width: 32px;
  height: 32px;
  color: #f2b705;
}

.tui-weather-icon-clear-night,
.tui-weather-icon-partly-cloudy-night,
.tui-weather-icon-rain,
.tui-weather-icon-storm {
  color: #3e7cb1;
}

.tui-weather-days {
  display: flex;
  height: 70px;
  flex: 0 0 auto;
}

.tui-weather-day {
  display: grid;
  grid-template-columns: 25px auto auto;
  grid-template-rows: 16px 25px;
  width: 135px;
  height: 70px;
  padding: 7px 12px;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 2px 7px;
  text-align: center;
  white-space: nowrap;
  scroll-snap-align: start;
}

.tui-weather-day + .tui-weather-day {
  border-left: 1px solid rgba(22,58,103,.1);
}

.tui-weather-day time {
  grid-column: 1 / -1;
  grid-row: 1;
  color: #163a67;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.tui-weather-day-condition {
  display: none;
}

.tui-weather-day-range {
  grid-column: 2;
  grid-row: 2;
  font-size: 11px;
  font-weight: 800;
}

.tui-weather-day .tui-weather-icon {
  grid-column: 1;
  grid-row: 2;
}

.tui-weather-day-range span:last-child {
  color: #7b8798;
  font-weight: 600;
}

.tui-weather-rain {
  grid-column: 3;
  grid-row: 2;
  color: #3e7cb1;
  font-size: 9px;
  font-weight: 700;
}

.tui-weather-meta {
  display: flex;
  width: 260px;
  height: 70px;
  padding: 8px 16px;
  border-left: 1px solid rgba(22,58,103,.1);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  color: #78869a;
  background: rgba(22,58,103,.018);
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  scroll-snap-align: start;
}

.tui-weather-meta a {
  color: #536783;
  font-weight: 700;
}

.tui-weather-stale {
  color: #9a633f;
}

.tui-home-intro {
  padding: 64px 0 !important;
  text-align: center;
}

.tui-home-intro .tui-intro {
  width: 100%;
  max-width: 672px !important;
  padding: 0 32px !important;
  transform: none !important;
}

.tui-home-intro .tui-wave {
  height: 36px;
  margin: 0 auto;
}

.tui-home-intro h2,
.tui-segments-section h2,
.tui-routes-section h2,
.tui-smart-section h2,
.tui-events-section h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: 0;
}

.tui-home-intro h2 {
  margin-top: 8px;
}

.tui-app-section h2 {
  margin: 0;
  font-size: 36px;
  line-height: 45px;
}

.tui-social-section h2 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
}

.tui-home-intro .tui-lead {
  margin: 20px 0 0;
  color: #667085;
  font-size: 18px;
  line-height: 29.25px;
}

.tui-facts-section {
  padding: 8px 0 0;
}

.tui-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  height: 93px;
  min-height: 93px;
  margin: 0;
  padding: 20px 32px;
  border: 1px solid rgba(22,58,103,.1);
  border-radius: 16px;
  color: #536783;
  background: rgba(22,58,103,.03);
  list-style: none;
}

.tui-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.tui-facts li:not(:last-child)::after {
  content: "◆";
  color: rgba(176,98,58,.7);
  font-size: 11px;
}

.tui-segments-section {
  padding: 40px 0 64px !important;
  background: #fff;
}

.tui-segments-section h2 {
  margin-bottom: 40px;
  text-align: center;
}

.tui-home .tui-segments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tui-home .tui-segment-card {
  position: relative;
  display: block;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  line-height: 1.5;
  text-decoration: none;
  transition-property: all;
  transition-duration: .3s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.tui-home .tui-segment-card::after {
  content: none;
}

.tui-home .tui-segment-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

.tui-home .tui-segment-overlay {
  position: absolute;
  inset: 0;
  z-index: auto;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2), transparent);
}

.tui-home .tui-segment-photo {
  position: absolute;
  inset: 0;
  z-index: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition-property: transform;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.tui-home .tui-segment-card:hover .tui-segment-photo {
  transform: scale(1.05);
}

.tui-home .tui-segment-color {
  position: absolute;
  z-index: auto;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
}

.tui-home .tui-segment-icon {
  position: absolute;
  z-index: auto;
  top: 16px;
  left: 16px;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

.tui-home .tui-segment-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tui-home .tui-segment-code {
  position: absolute;
  z-index: auto;
  top: 24px;
  right: 16px;
  font-family: var(--tui-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 20px;
  color: rgba(255,255,255,.9);
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.12));
}

.tui-home .tui-segment-content {
  position: absolute;
  z-index: auto;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  text-align: left;
}

.tui-home .tui-segment-content h3 {
  margin: 0;
  color: #fff;
  font-family: var(--tui-font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.12));
}

.tui-home .tui-segment-content p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  line-height: 19.25px;
}

.tui-home .tui-segment-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  opacity: 0;
  transition-property: opacity;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.tui-home .tui-segment-more svg {
  width: 16px;
  height: 16px;
}

.tui-home .tui-segment-card:hover .tui-segment-more,
.tui-home .tui-segment-card:focus-visible .tui-segment-more {
  opacity: 1;
}

.tui-routes-section {
  padding: 64px 0 !important;
  background: #eef5fb;
}

.tui-home .tui-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 36px;
  transform: none !important;
}

.tui-home .tui-section-head .tui-kicker {
  margin: 0 0 8px;
  color: #407cbf;
  line-height: 16px;
}

.tui-section-link {
  margin: 0;
}

.tui-section-link a {
  color: #407cbf;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.tui-home .tui-featured-routes {
  gap: 24px;
}

.tui-home .tui-route-card {
  border: 1px solid #e1e7ed;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(15,42,77,.07);
}

.tui-home .tui-route-card img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tui-home .tui-route-card-body {
  min-height: 216px !important;
  padding: 23px 24px;
}

.tui-home .tui-route-card-body > small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #5e8c6a;
  font-size: 12px;
}

.tui-home .tui-route-card-body > small span {
  font-size: 20px;
}

.tui-home .tui-route-card-body > strong {
  margin: 0;
  font-size: 20px;
}

.tui-home .tui-route-summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.625;
}

.tui-home .tui-route-meta {
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
}

.tui-home .tui-route-meta b {
  color: #5e8c6a;
}

.tui-smart-section {
  padding: 64px 0 !important;
  background: #fff;
}

.tui-home .tui-smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}

.tui-home .tui-smart-copy {
  transform: none !important;
}

.tui-home .tui-smart-copy .tui-kicker {
  margin: 0 0 12px;
  color: #407cbf;
  line-height: 16px;
}

.tui-home .tui-smart-copy h2 {
  max-width: 520px;
}

.tui-home .tui-smart-lead {
  margin: 16px 0 0 !important;
  color: #667085;
  font-size: 18px;
  line-height: 29.25px !important;
}

.tui-smart-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  color: #163a67;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  list-style: none;
}

.tui-smart-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.tui-smart-points span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #407cbf;
  font-size: 13px;
}

.tui-home .tui-map-card {
  align-self: center;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15,42,77,.15);
}

.tui-home .tui-map-card .tui-map {
  height: 342px !important;
  min-height: 342px !important;
  border-radius: 16px 16px 0 0;
}

.tui-home .tui-map-card-footer {
  min-height: 56px;
  padding: 0 16px;
  color: #fff;
  background: #163a67;
  font-size: 13px;
}

.tui-home .tui-map-card-footer a {
  color: #f2b705;
  font-size: 14px;
}

.tui-app-section {
  padding: 64px 0 !important;
  background: #eef5fb;
}

.tui-home .tui-app-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 371px !important;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 24px;
}

.tui-home .tui-app-panel > .tui-app-copy:first-child {
  padding: 48px;
  transform: none !important;
}

.tui-home .tui-app-copy .tui-kicker {
  margin: 0 0 12px;
  line-height: 16px;
}

.tui-home .tui-app-copy > p:not(.tui-kicker) {
  margin-top: 16px;
  font-size: 16px;
  line-height: 26px;
}

.tui-home .tui-app-copy .tui-actions {
  margin-top: 32px;
  gap: 12px;
}

.tui-home .wp-block-button.tui-button.store .wp-block-button__link {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px !important;
  font-size: 14px;
}

.tui-home .wp-block-button.tui-button.apple .wp-block-button__link {
  color: #163a67;
  background: #fff;
}

.tui-home .wp-block-button.tui-button.google .wp-block-button__link {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: rgba(255,255,255,.15);
}

.tui-home .tui-app-image {
  position: relative;
  min-height: 371px !important;
  height: auto !important;
}

.tui-home .tui-app-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #163a67, transparent 36%);
}

.tui-events-section {
  padding: 64px 0 !important;
  background: #fff;
}

.tui-home .tui-events-section .tui-event-list {
  gap: 24px;
}

.tui-home .tui-events-section .tui-event {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 185px !important;
  height: 185px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px;
}

.tui-home .tui-events-section .tui-event time {
  display: flex;
  width: auto;
  height: auto;
  padding: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 0;
}

.tui-home .tui-events-section .tui-event > div {
  padding: 20px;
}

.tui-home .tui-events-section .tui-event time span {
  font-size: 30px;
}

.tui-home .tui-events-section .tui-event time small {
  margin-top: 2px;
  font-size: 12px;
}

.tui-home .tui-events-section .tui-event h3 {
  font-size: 18px;
}

.tui-home .tui-events-section .tui-event p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 14px;
  line-height: 1.55;
}

.tui-social-section {
  padding: 56px 0 !important;
  color: #fff;
  background: #163a67;
}

.tui-home .tui-social-inner {
  transform: none !important;
}

.tui-home .tui-social-icon {
  display: none;
}

.tui-home .tui-social-section h2 {
  color: #fff;
}

.tui-home .tui-social-section p {
  margin: 12px 0 0 !important;
  line-height: 24px;
  color: rgba(255,255,255,.8);
}

.tui-home .tui-social-section .tui-actions {
  margin-top: 28px !important;
  gap: 12px;
}

.tui-home .wp-block-button.tui-button.social .wp-block-button__link {
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 9999px !important;
  color: #fff;
  background: rgba(255,255,255,.1);
}

@media (min-width: 640px) {
  .tui-container,
  .tui-header-inner { max-width: 640px !important; }
}

@media (min-width: 768px) {
  .tui-container,
  .tui-header-inner { max-width: 768px !important; }
}

@media (min-width: 1024px) {
  .tui-container,
  .tui-header-inner {
    max-width: 1024px !important;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
  }
}

@media (min-width: 1280px) {
  .tui-container,
  .tui-header-inner { max-width: 1280px !important; }
}

@media (min-width: 1536px) {
  .tui-container,
  .tui-header-inner { max-width: 1536px !important; }
}

@media (max-width: 1023px) {
  .tui-header-nav-col { display: flex !important; }
  .tui-site-header nav .tui-nav-list,
  .tui-site-header nav .tui-nav-submenu { gap: 0 !important; }
  .tui-home .tui-featured-routes,
  .tui-home .tui-events-section .tui-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tui-home .tui-route-card:last-child,
  .tui-home .tui-event:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .tui-home .tui-hero { height: 88svh !important; }
  .tui-home .tui-hero .tui-kicker { font-size: 12px; }
  .tui-home .tui-hero h1 { font-size: 44px; }
  .tui-home .tui-hero-content > p:not(.tui-kicker) { font-size: 16px; }
  .tui-home .tui-hero .tui-actions { align-items: stretch; flex-direction: column; }
  .tui-home .tui-hero .wp-block-button__link { width: 100%; }
  .tui-weather-section { margin-top: -26px !important; }
  .tui-weather-card { height: 60px; border-radius: 14px; }
  .tui-weather-current {
    height: 60px;
    min-width: 330px;
    padding: 6px 12px;
    gap: 10px;
  }
  .tui-weather-heading h2 { font-size: 15px; }
  .tui-weather-now .tui-weather-icon { width: 27px; height: 27px; }
  .tui-weather-temperature { font-size: 25px; }
  .tui-weather-current-copy p:not(.tui-weather-condition) { display: none; }
  .tui-weather-current-copy .tui-weather-condition { max-width: 105px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
  .tui-weather-days { height: 60px; }
  .tui-weather-day {
    grid-template-columns: 22px auto auto;
    grid-template-rows: 15px 23px;
    width: 118px;
    height: 60px;
    padding: 5px 8px;
    gap: 1px 5px;
  }
  .tui-weather-day .tui-weather-icon { width: 22px; height: 22px; }
  .tui-weather-meta { width: 220px; height: 60px; padding: 6px 12px; }
  .tui-home-intro { padding: 64px 0 !important; }
  .tui-home-intro h2,
  .tui-segments-section h2,
  .tui-routes-section h2,
  .tui-smart-section h2,
  .tui-events-section h2 { font-size: 30px; line-height: 36px; }
  .tui-app-section h2 { font-size: 30px; line-height: 37.5px; }
  .tui-social-section h2 { font-size: 24px; line-height: 32px; }
  .tui-facts-section { padding-top: 8px; }
  .tui-facts { height: auto; min-height: 0; align-items: stretch; padding: 16px 20px; flex-direction: column; }
  .tui-facts li { font-size: 14px; line-height: 20px; }
  .tui-facts li { justify-content: center; }
  .tui-facts li:not(:last-child)::after { display: none; }
  .tui-home .tui-featured-routes,
  .tui-home .tui-events-section .tui-event-list { grid-template-columns: 1fr; }
  .tui-home .tui-route-card:last-child,
  .tui-home .tui-event:last-child { grid-column: auto; }
  .tui-home .tui-section-head { align-items: flex-start; gap: 12px; flex-direction: column; }
  .tui-home .tui-section-link { margin: 0 !important; }
  .tui-home .tui-route-card { height: 402px; }
  .tui-home .tui-route-card-body { min-height: 202px !important; }
  .tui-home .tui-smart-grid,
  .tui-home .tui-app-panel { grid-template-columns: 1fr; }
  .tui-home .tui-smart-grid { gap: 40px; }
  .tui-home .tui-smart-grid > * { margin-block-start: 0 !important; }
  .tui-home .tui-map-card .tui-map { height: 362px !important; min-height: 362px !important; }
  .tui-home .tui-app-panel > .tui-app-copy:first-child { padding: 40px 28px; }
  .tui-home .tui-app-image { min-height: 260px !important; }
  .tui-home .tui-app-image img { height: 260px !important; min-height: 260px !important; }
  .tui-home .tui-app-copy .tui-actions { align-items: stretch; flex-direction: column; }
  .tui-home .tui-app-copy .tui-actions { gap: 10px; }
  .tui-home .wp-block-button.tui-button.store .wp-block-button__link { width: 100%; min-height: 50px; }
  .tui-home .tui-events-section .tui-section-head { min-height: 100px; }
  .tui-home .tui-events-section .tui-event { height: 154.6667px !important; min-height: 154.6667px !important; }
  .tui-home .tui-social-section .tui-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .tui-home .wp-block-button.tui-button.social .wp-block-button__link { width: 100%; }
}

@media (min-width: 640px) {
  .tui-home .tui-segments-section h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .tui-home .tui-segments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tui-home .tui-segments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Footer dimensions and controls from the reference page. */
.tui-footer-main {
  padding: 56px 0 18px;
}

.tui-footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.tui-footer-brand {
  grid-column: span 2;
}

.tui-footer-grid h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.tui-footer-brand > p,
.tui-footer-contact p,
.tui-footer-nav a {
  font-size: 14px;
}

.tui-footer-brand > p {
  max-width: 560px;
}

.tui-footer-social a {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
}

.tui-footer-contact ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 20px;
  list-style: none;
}

.tui-footer-funding {
  min-height: 140px;
}

.tui-footer-bottom {
  padding: 16px 0;
}

@media (max-width: 767px) {
  .tui-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tui-footer-brand { grid-column: auto; }
  .tui-footer-bottom .tui-container { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tui-footer-main { padding: 56px 0 54px; }
  .tui-footer-logos { height: 56px; margin-bottom: 20px; }
  .tui-footer-logos img:first-child { width: 90px; height: 48px; }
  .tui-footer-logos img:last-child { width: 35px; height: 56px; }
  .tui-footer-brand > p { margin: 0; font-size: 14px; line-height: 22.75px; }
  .tui-footer-social { margin-top: 24px; gap: 8px; }
  .tui-footer-social a { width: 32px; height: 32px; min-height: 32px; padding: 0; justify-content: center; }
  .tui-footer-nav ul { gap: 12px; }
  .tui-footer-nav li,
  .tui-footer-nav a { line-height: 18px; }
  .tui-footer-funding { min-height: 128px; }
  .tui-footer-bottom { min-height: 52px; }
}
