:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1e293b;
  --sub: #64748b;
  --accent: #0f766e;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.app-header {
  background: var(--card);
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.app-header h1 {
  font-size: 1.15rem;
}

.meta {
  font-size: 0.78rem;
  color: var(--sub);
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.tab-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.container {
  max-width: 760px;
  margin: 16px auto;
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cafeteria-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cafeteria-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cafeteria-heading h2 {
  font-size: 1.05rem;
  color: var(--text);
}

.source-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.today-card {
  border-left: 4px solid var(--accent);
}

.today-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.today-list li {
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.muted-text {
  font-size: 0.88rem;
  color: var(--sub);
}

.weekly-details {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.weekly-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.weekly-grid {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.weekly-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 8px;
  align-items: baseline;
}

.menu-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.pdf-frame {
  width: 100%;
  height: 65vh;
  border: none;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
}