/* Mobile-first, minimal, accessible. Same palette as wifi-intake-portal. */

/*
 * Noto Sans Ethiopic — vendor this file from Google Fonts.
 * Download the WOFF2 and place it at ./fonts/NotoSansEthiopic-Regular.woff2
 * Uncomment the @font-face below once the file is vendored.
 */
/*
@font-face {
  font-family: 'Noto Sans Ethiopic';
  src: url('./fonts/NotoSansEthiopic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --bg: #faf9f6;
  --fg: #222;
  --muted: #666;
  --accent: #3b5bdb;
  --card: #ffffff;
  --border: #e5e5e5;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

/* Amharic text uses Ge'ez script and needs a taller line-height */
body[data-lang="am"] {
  font-family: 'Noto Sans Ethiopic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Language switcher pill in top-right */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.lang-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.15s;
}

.lang-pill:hover {
  background: #eee;
}

.lang-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Hero / header */
.hero {
  text-align: center;
  padding: 16px 0 24px;
}

.logo-placeholder {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--accent);
}

.hero h1 {
  font-size: 24px;
  margin: 0 0 6px;
}

.hero p {
  margin: 0;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

/* Activity / announcement items */
.activity-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-title {
  font-weight: 600;
  font-size: 15px;
}

.activity-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.activity-desc {
  font-size: 14px;
  margin-top: 4px;
}

.announcement-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-title {
  font-weight: 600;
  font-size: 15px;
}

.announcement-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.announcement-body {
  font-size: 14px;
  margin-top: 4px;
}

/* Quick links grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.tile:active { opacity: 0.85; }

.foot { text-align: center; }

/* Empty state */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 12px 0;
  font-size: 14px;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 30px; }
}
