:root {
  --accent: #2d9cdb;
  --accent-dark: #1c75a1;
  --bg: #f5f7fb;
  --text: #1a1c1f;
  --muted: #6f7781;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

app-header,
app-footer {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(45, 156, 219, 0.1);
  color: var(--text);
}

.main-content {
  width: min(960px, 90vw);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  flex: 1;
}

.hero {
  background: linear-gradient(135deg, rgba(45, 156, 219, 0.1), rgba(45, 219, 174, 0.1));
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(45, 156, 219, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(45, 156, 219, 0.25);
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card h2 {
  margin: 0;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page-header p {
  color: var(--muted);
  margin: 0;
  max-width: 96ch;
}

.page-header .btn {
  align-self: flex-start;
}

.calendar-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.calendar-frame::before {
  content: "";
  display: block;
  padding-bottom: 75%;
}

.calendar-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@supports (aspect-ratio: 4 / 3) {
  .calendar-frame {
    aspect-ratio: 4 / 3;
  }

  .calendar-frame::before {
    display: none;
    padding-bottom: 0;
  }
}

.helper-text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 1rem;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.summaries,
.notice-list {
  display: grid;
  gap: 1.5rem;
}

.summary-card,
.notice-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.notice-section {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.notice-section:last-of-type {
  margin-bottom: 0;
}

.notice-card.expired {
  border: 1px dashed rgba(0, 0, 0, 0.1);
  background: rgba(111, 119, 129, 0.08);
}

.summary-card h2,
.notice-card h2 {
  margin-top: 0;
}

.notice-expiration {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.notice-expiration time {
  font-weight: 600;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(45, 156, 219, 0.12);
  color: var(--muted);
  font-style: italic;
}

.summary-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.file-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tips ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    inset: 64px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    border-radius: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .page-header .btn {
    align-self: stretch;
    justify-content: center;
  }
}