:root {
  --page-width: 1120px;
  --text: #141414;
  --muted: #626b77;
  --line: #e5e8ec;
  --link: #0866e8;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --shadow: 0 10px 35px rgba(25, 35, 50, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--page-width));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-header {
  padding: 30px 34px 24px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.last-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.status {
  padding: 28px 34px;
  color: var(--muted);
  font-size: 15px;
}

.status[hidden] {
  display: none;
}

.status.is-error {
  color: #a0382d;
}

.event-list {
  padding: 0 34px 8px;
}

.date-group {
  padding-top: 22px;
}

.date-heading {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.4;
}

.event-group {
  border-top: 1px solid var(--line);
}

.event-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 108px;
  gap: 18px;
  align-items: start;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
}

.event-time {
  color: #222a33;
  font-size: 15px;
  line-height: 1.55;
  white-space: nowrap;
}

.event-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.event-location {
  margin: 4px 0 0;
  color: #303844;
  font-size: 15px;
  line-height: 1.55;
}

.event-description {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.65;
}

.event-link-wrap {
  align-self: center;
  text-align: right;
}

.event-link {
  color: var(--link);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.event-link:hover,
.event-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-link.is-unavailable {
  color: var(--muted);
  cursor: default;
  font-weight: 400;
}

.page-footer {
  margin-top: 26px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
  color: #7a828d;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 700px) {
  html {
    background: var(--surface);
  }

  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page-header {
    padding: 28px 20px 20px;
  }

  .page-header h1 {
    font-size: 29px;
  }

  .last-updated {
    margin-top: 7px;
    font-size: 14px;
  }

  .status {
    padding: 24px 20px;
  }

  .event-list {
    padding: 0 16px 4px;
  }

  .date-group {
    padding-top: 22px;
  }

  .date-heading {
    margin-left: 4px;
    font-size: 18px;
  }

  .event-group {
    border-top: 0;
  }

  .event-row {
    display: block;
    margin-bottom: 10px;
    padding: 16px 16px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(25, 35, 50, 0.035);
  }

  .event-time {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .event-title {
    font-size: 18px;
  }

  .event-location,
  .event-description {
    font-size: 15px;
  }

  .event-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .event-link-wrap {
    margin-top: 10px;
    text-align: right;
  }

  .page-footer {
    margin-top: 30px;
    padding-inline: 20px;
  }
}
