/* --- tu.miami public styles (scoped) --- */

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Color tokens */
:root {
  --page-bg: #f5f5f5;
  --frame-bg: #ffffff;

  --text: #111111;
  --muted: #6b6b6b;
  --rule: #e2e2e2;
  --card: #fafafa;

  --accent: #2563eb;
  --accent-soft-bg: #e5efff;
}

/* Root */
#tu-app {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
}

/* Frame */
#tu-app .frame {
  width: 100%;
  max-width: 880px;
  background: var(--frame-bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  padding: 24px 24px 28px;
  margin: 0 auto;
}

/* Header */
#tu-app .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#tu-app .title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 4px 0;
  position: relative;
}

#tu-app .title::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-left: 8px;
  transform: translateY(-2px);
}

/* Lang */
#tu-app .lang select {
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  background: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--accent);
  line-height: 1;
  appearance: none;
}

#tu-app .lang select:hover {
  background: var(--accent-soft-bg);
}

/* Tagline */
#tu-app .tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

/* Intro */
#tu-app .intro {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 16px 18px;
  margin: 18px 0 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Week */
#tu-app .week {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

#tu-app .updated {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin: 0 0 14px 0;
}

/* Events */
#tu-app .list {
  margin-top: 6px;
}

#tu-app .event {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: 18px 0 16px;
  display: grid;
  gap: 6px;
  transition: background 0.12s ease;
}

#tu-app .event:hover {
  background: #fafafa;
}

#tu-app .event:hover::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

/* Name */
#tu-app .name {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
}

/* Meta */
#tu-app .meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Badge line */
#tu-app .meta-top {
  margin-bottom: 2px;
}

/* Human-readable time line (NEW) */
#tu-app .meta-mid {
  color: #333;
  font-size: 13px;
  margin-bottom: 2px;
}

/* Bottom line */
#tu-app .meta-bottom {
  font-size: 13px;
  color: var(--muted);
}

/* Badge */
#tu-app .meta-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

/* Description */
#tu-app .desc {
  font-size: 14px;
  color: #222;
  line-height: 1.6;
  max-width: 72ch;
}

/* Links */
#tu-app .links {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  font-size: 13px;
}

#tu-app .links a {
  color: var(--accent);
  text-decoration: none;
}

#tu-app .links a:hover {
  text-decoration: underline;
}

/* Footer */
#tu-app .footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}