/* Full official emblem, without cropping it to a circle. */
.brand-emblem {
  width: 48px;
  height: 64px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  flex: none;
}

.brand-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.schedule-box {
  grid-column: 1 / -1;
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, #fff7e7 0%, #fff0d5 100%);
  border: 1px solid #f2d6a2;
  box-shadow: 0 12px 28px rgba(116, 75, 24, .08);
}

.schedule-box h3 {
  margin: 0 0 16px;
  font: 700 19px Manrope, "IBM Plex Sans Thai", sans-serif;
  color: var(--ink);
}

.schedule-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e7e9e5;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(19, 45, 54, .06);
}

.schedule-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
  table-layout: fixed;
}

.schedule-route-column { width: 38%; }
.schedule-service-column { width: 22%; }
.schedule-time-column { width: 13.33%; }

.schedule-table th,
.schedule-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.schedule-table th {
  color: #fff;
  background: #075f6c;
  font-weight: 700;
  line-height: 1.25;
}

.schedule-table thead tr + tr th { background: #0d7380; }
.schedule-table th[colspan] { text-align: center; }
.schedule-table td { border-bottom: 1px solid #e8eeeb; color: var(--ink); }
.schedule-table tbody tr:nth-child(4n + 1) td,
.schedule-table tbody tr:nth-child(4n + 2) td { background: #fffaf1; }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-route-cell { font-weight: 700; white-space: normal; color: #075f6c !important; }
.schedule-service-cell { color: #63777c !important; font-weight: 600; }
.schedule-table th:nth-child(n + 3),
.schedule-time-cell { text-align: center; white-space: nowrap; }
.schedule-table tbody tr:hover td { background: #eaf5f3; }

@media (max-width: 720px) {
  .schedule-box { padding: 18px; }
  .schedule-table { min-width: 680px; font-size: 13px; }
  .schedule-table th,
  .schedule-table td { padding: 11px 12px; }
}

.transfer-label { color: var(--orange); }

/* Home screen uses the same water, sand and orange palette as the trip planner. */
.home-screen {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 56px 28px;
  color: #f9f5e9;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.home-screen::after {
  content: "";
  position: absolute;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  right: -18vw;
  top: -28vw;
  border: 1px solid #54abb2;
  border-radius: 50%;
  opacity: .5;
}

.home-content { width: min(100%, 850px); position: relative; z-index: 1; }
.home-screen .eyebrow { color: #f6ae39; }
.home-screen h1 { margin: 0; font: 800 clamp(42px, 7vw, 76px)/.98 Manrope, "IBM Plex Sans Thai", sans-serif; letter-spacing: -.06em; }
.home-screen h1 em { color: #a9e1dc; font-style: normal; }
.home-lead { max-width: 680px; margin: 22px 0 32px; color: #d7ece9; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.home-action { min-height: 106px; padding: 18px 22px; border-radius: 14px; font: 700 18px/1.35 "IBM Plex Sans Thai", sans-serif; text-align: left; text-decoration: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.home-action.primary { height: auto; background: var(--orange); box-shadow: 0 12px 26px #001f2740; }
.home-action:hover { transform: translateY(-2px); }
.home-action span { display: block; margin-top: 5px; font: 600 12px/1.45 Manrope, "IBM Plex Sans Thai", sans-serif; letter-spacing: .01em; }
.home-feedback { color: var(--ink); background: #EBD478; border: 1px solid #EBD478; box-shadow: 0 12px 26px #001f2730; }

/* Keep every navigation control usable on narrow screens. */
@media (max-width: 720px) {
  .topbar {
    min-height: auto;
    padding: 10px 18px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand { justify-content: center; }

  .topbar nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar nav > a[href="#calculator"],
  .topbar nav > a[href="#piers"] {
    display: none;
  }

  .topbar nav a,
  .topbar nav button {
    display: flex;
    min-width: 0;
    min-height: 40px;
    padding: 6px 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
    white-space: normal;
  }

  .topbar nav a:not(.rating-link) {
    border: 1px solid #b7c7c6;
    border-radius: 99px;
  }

  .topbar nav .rating-link {
    border: 1px solid #b7c7c6;
    border-radius: 99px;
    white-space: nowrap;
  }

  .topbar nav .language-link { white-space: nowrap; }

  .hero { padding-top: 38px; }

  .home-screen { min-height: calc(100vh - 148px); padding: 44px 22px; place-items: start center; }
  .home-screen h1 { font-size: clamp(40px, 12vw, 58px); }
  .home-actions { grid-template-columns: 1fr; }
  .home-action { min-height: 90px; font-size: 16px; }
}

@media (max-width: 410px) {
  .topbar { padding-inline: 12px; }
  .topbar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-emblem { width: 42px; height: 56px; }
  .topbar nav a,
  .topbar nav button { min-height: 38px; font-size: 11px; }
}
