:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .65);

  --accent: #111827;

  --brand: #5B7553;
  --warn: #f59e0b;

  --border: rgba(15, 23, 42, .10);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --shadow-soft: 0 2px 16px rgba(15,23,42,.06);
}

/* Ensure background fills the entire viewport */
html, body { height: 100%; }
body { min-height: 100vh; }

* { box-sizing: border-box; }
img, svg { max-width: 100%; height: auto; }

body{
  margin: 0;
  color: var(--text);
  background:
	radial-gradient(1200px 700px at 10% -10%, rgba(91,117,83,.16), transparent 55%),
	radial-gradient(900px 600px at 90% 10%, rgba(17,24,39,.08), transparent 55%),
	var(--bg);

  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 28px;
}

.muted{ color: var(--muted); }
b{ color: var(--text); font-weight: 800; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246,247,251,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbarInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* centered layout */
.topbarCentered{
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 0;
}

.logoMark{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}

.logoText{
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* bigger logo */
.logoBig{ gap: 12px; }
.logoMarkBig{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
  border-color: color-mix(in srgb, var(--brand) 22%, white);
  background: color-mix(in srgb, var(--brand) 10%, white);
}
.logoTextBig{
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* subtle animation */
@keyframes logoFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-2px)} }
@keyframes logoGlow {
  0%,100%{ box-shadow: 0 10px 26px rgba(15,23,42,.10); }
  50%{ box-shadow: 0 14px 34px rgba(15,23,42,.12), 0 0 0 6px rgba(91,117,83,.10); }
}
@media (prefers-reduced-motion: no-preference){
  .logoBig{ animation: logoFloat 2.8s ease-in-out infinite; }
  .logoMarkBig{ animation: logoGlow 2.8s ease-in-out infinite; }
}

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navCentered{
  justify-content: center;
  margin-top: 10px;
}

.navLink{
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
}

.navLink:hover{
  border-color: var(--border);
  background: rgba(255,255,255,.7);
}

.navButton{
  text-decoration: none;
  color: white;
  background: var(--accent);
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.12);
  text-align: center;
}

.navButton:hover{ filter: brightness(1.05); }

/* Hero */
.hero{
  margin-top: 10px;
  padding: 18px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.heroText{ min-width: 0; }

.heroCentered{
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* pill last updated */
.lastPill{
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;

  background: color-mix(in srgb, var(--brand) 14%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, white);
  color: color-mix(in srgb, var(--brand) 78%, black);

  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.lastPill::before{ content: "⏱"; font-size: 1rem; }

h1{
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.sub{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

/* Layout */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 860px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .cardWide{ grid-column: 1 / -1; }
}

/* card enter */
@keyframes cardIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

.card{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference){
  .card{
	opacity: 0;
	transform: translateY(14px);
	animation: cardIn .65s cubic-bezier(.2,.8,.2,1) forwards;
  }
  .grid .card:nth-child(1){ animation-delay: .04s; }
  .grid .card:nth-child(2){ animation-delay: .10s; }
  .grid .card:nth-child(3){ animation-delay: .16s; }
}

/* Card header */
.cardHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cardTitle{
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.statusRight{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* flicker */
@keyframes flickerBrand {
  0%{opacity:1;box-shadow:0 0 0 3px rgba(91,117,83,.22),0 0 10px rgba(91,117,83,.30)}
  20%{opacity:.45;box-shadow:0 0 0 2px rgba(91,117,83,.12),0 0 4px rgba(91,117,83,.16)}
  40%{opacity:1;box-shadow:0 0 0 4px rgba(91,117,83,.26),0 0 16px rgba(91,117,83,.45)}
  55%{opacity:.60;box-shadow:0 0 0 2px rgba(91,117,83,.12),0 0 6px rgba(91,117,83,.22)}
  70%{opacity:1;box-shadow:0 0 0 4px rgba(91,117,83,.26),0 0 18px rgba(91,117,83,.50)}
  100%{opacity:1;box-shadow:0 0 0 3px rgba(91,117,83,.22),0 0 10px rgba(91,117,83,.30)}
}
@keyframes flickerWarn {
  0%{opacity:1;box-shadow:0 0 0 3px color-mix(in srgb,var(--warn) 22%,white),0 0 10px color-mix(in srgb,var(--warn) 38%,white)}
  20%{opacity:.45;box-shadow:0 0 0 2px color-mix(in srgb,var(--warn) 14%,white),0 0 4px color-mix(in srgb,var(--warn) 20%,white)}
  40%{opacity:1;box-shadow:0 0 0 4px color-mix(in srgb,var(--warn) 26%,white),0 0 16px color-mix(in srgb,var(--warn) 52%,white)}
  55%{opacity:.60;box-shadow:0 0 0 2px color-mix(in srgb,var(--warn) 14%,white),0 0 6px color-mix(in srgb,var(--warn) 26%,white)}
  70%{opacity:1;box-shadow:0 0 0 4px color-mix(in srgb,var(--warn) 26%,white),0 0 18px color-mix(in srgb,var(--warn) 58%,white)}
  100%{opacity:1;box-shadow:0 0 0 3px color-mix(in srgb,var(--warn) 22%,white),0 0 10px color-mix(in srgb,var(--warn) 38%,white)}
}

.statusLight{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(15,23,42,.25);
  box-shadow: 0 0 0 3px rgba(15,23,42,.06);
}
.statusLight.is-yes{ background: var(--brand); border-color: rgba(91,117,83,.75); animation: flickerBrand .85s steps(2,end) infinite; }
.statusLight.is-no{ background: var(--warn); border-color: color-mix(in srgb,var(--warn) 70%,black); animation: flickerWarn .85s steps(2,end) infinite; }
.statusLight.is-unknown{ background: rgba(15,23,42,.32); border-color: rgba(15,23,42,.22); opacity: .9; }

/* Icon container */
.icon{
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, white);
  color: var(--accent);
}
.icon svg{ width: 18px; height: 18px; }

.iconLessons.is-yes{
  color: color-mix(in srgb, var(--brand) 75%, black);
  background: color-mix(in srgb, var(--brand) 16%, white);
  border-color: color-mix(in srgb, var(--brand) 30%, white);
}
.iconLessons.is-no{
  color: #92400e;
  background: color-mix(in srgb, var(--warn) 18%, white);
  border-color: color-mix(in srgb, var(--warn) 32%, white);
}
.iconLessons.is-unknown{
  color: rgba(15,23,42,.75);
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
}

.statusLine{ margin: 10px 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.statusExtra{ margin: 0; line-height: 1.45; }
.hint{ margin: 10px 0 0; font-size: .92rem; line-height: 1.4; }

/* Badge */
.badge{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  min-width: 70px;
  text-align: center;
}
.badge.yes{
  background: color-mix(in srgb, var(--brand) 16%, white);
  border-color: color-mix(in srgb, var(--brand) 30%, white);
  color: color-mix(in srgb, var(--brand) 78%, black);
}
.badge.no{
  background: color-mix(in srgb, var(--warn) 18%, white);
  border-color: color-mix(in srgb, var(--warn) 32%, white);
  color: #92400e;
}
.badge.unknown{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
  color: rgba(15,23,42,.85);
}

/* Lessons card background */
.card.status-yes{ background: color-mix(in srgb, var(--brand) 10%, white); border-color: color-mix(in srgb, var(--brand) 26%, white); }
.card.status-no{ background: color-mix(in srgb, var(--warn) 14%, white); border-color: color-mix(in srgb, var(--warn) 34%, white); }

/* Announcements */
.announcementsList{ display: grid; gap: 12px; margin-top: 10px; }
.announcementsList .post{
  border: 1px solid color-mix(in srgb, var(--brand) 22%, white);
  background: color-mix(in srgb, var(--brand) 10%, white);
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.announcementsList .post::before{
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--brand);
  opacity: .95;
}
.announcementsList .postTitle{ font-weight: 900; margin: 0; display:flex; align-items:center; gap:8px; }
.announcementsList .postTitle::before{ content:"📰"; font-size: 1rem; }
.announcementsList .postMeta{ font-size: .92rem; color: var(--muted); margin: 6px 0 8px; }
.announcementsList .post p{ margin: 0; line-height: 1.55; }
.announcementsList .post.pinned{ border-color: color-mix(in srgb, var(--brand) 34%, white); background: color-mix(in srgb, var(--brand) 14%, white); }
.announcementsList .post.pinned::before{ width: 7px; }
.announcementsList .post.pinned .postTitle::before{ content: "📌"; }

/* Footer */
.footer{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px 0 6px;
  flex-wrap: wrap;
  text-align: center;
}
.dot{ opacity: .6; }
.footerLink{ color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(15,23,42,.25); }
.footerLink:hover{ border-bottom-color: rgba(15,23,42,.55); }

/* Mobile */
@media (max-width: 640px){
  .wrap{ padding: 14px 14px 22px; }
  .hero{ padding: 14px; }
  .card{ padding: 14px; }
}
@media (max-width: 520px){
  .nav{ justify-content: center; gap: 8px; }
  .navButton{ width: 100%; padding: 11px 12px; }
}
@media (max-width: 380px){
  .logoText{ font-size: 1rem; }
  .cardTitle{ font-size: 1rem; }
}