:root{
  --max-width:720px;
  --accent:#111;
  --muted:#666;
  --border:#e6e6e6;
  --radius:8px;
  --gap:18px;
}

body{
  margin:0;
  background:#fff;
  color:var(--accent);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:100vh;
  padding:40px 16px;
  box-sizing:border-box;
}

.container{
  width:100%;
  max-width:var(--max-width);
  text-align:left;
}

.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
  margin-bottom:24px;
}

.logo{
  width:clamp(160px,28vw,320px);
  height:auto;
}

.intro{
  margin:0;
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.45;
}

.hero .intro + .intro{
  margin-top:8px;
}

.role{
  margin:4px 0 0 0;
  font-size:1.15rem;
  font-weight: 600;
  color:var(--muted);
  font-style:italic;
}

h1{
  margin:0;
  font-size:1.4rem;
  line-height:1.1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 6px 18px rgba(16,24,40,0.03);
  display:flex;
  justify-content:center;
}

#events-status{
font-size:0.85rem;
color:var(--muted);
margin-bottom:8px;
}

#events-table{
width:auto;
margin:0 auto;
min-width:320px;
max-width:100%;
border-collapse:separate;
border-spacing:0;
font-size:0.95rem;
}

thead th{
  text-align:left;
  font-weight:600;
  font-size:0.85rem;
  color:var(--muted);
  padding:8px 10px;
  border-bottom:1px solid var(--border);
}

tbody td{
  padding:10px;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 var(--border);
  vertical-align:middle;
}
tbody tr:last-child td{ border-bottom:0; }

/* Prevent excessive wrapping on desktop */
td, th { white-space:nowrap; }

/* Column width hints */
 td:nth-child(1){ width:36%; } / date /
 td:nth-child(2){ width:28%; } / time /
 td:nth-child(3){ width:36%; } / location */

/* Location link styling */
td a{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px dotted rgba(0,0,0,0.06);
}
td a:hover{ text-decoration:underline; }

@media (max-width:520px){
  thead th{ display:none; }

  tbody tr{
    display:block;
    padding:8px 0;
    border:0;
  }

  tbody td{
    display:block;
    padding:4px 0;
    white-space:normal;
    border-bottom: none;
    box-shadow: inset 0 -1px 0 var(--border);
  }

  tbody tr:last-child td {
    box-shadow: none;
  }

  tbody td:first-child{
    font-weight:600;
  }

  tbody td:nth-child(2){
    color:var(--muted);
  }
}

.center{
  display:flex;
  justify-content:center;
}

.ical-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 8px;
  border-radius:6px;
  color:var(--accent);
  text-decoration:none;
  transition:background .12s, color .12s;
}
.ical-link:hover,
.ical-link:focus {
  background: rgba(0,0,0,0.03);
  color:var(--accent);
  outline: none;
}

.ical-link svg {
  width:20px;
  height:20px;
  display:block;
  vertical-align:middle;
  fill:currentColor;
}

.ical-link .label {
  margin-left:8px;
  font-size:0.9rem;
  white-space:nowrap;
}

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