:root {
  --blue: #13007c;
  --ink: #23212b;
  --muted: #625f6a;
  --line: #dcdbe2;
  --pale: #f6f5f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 Arial, Helvetica, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.topline { height: 5px; background: var(--blue); }
.site-header { max-width: 1120px; min-height: 82px; margin: auto; padding: 14px 28px; display: flex; align-items: center; gap: 42px; }
.brand img { display: block; width: 132px; max-height: 54px; }
.site-header nav { display: flex; gap: 28px; align-items: center; flex: 1; font-size: 14px; }
.site-header nav a { color: var(--muted); }
.site-header nav .nav-active { color: var(--blue); font-weight: 700; }
.language-switch { display: flex; align-items: center; gap: 5px; color: var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; }
.language-switch button { border: 0; background: none; color: var(--muted); padding: 4px 2px; font-size: 12px; font-weight: 700; }
.language-switch button[aria-pressed="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.account-name { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.account-name button, .text-button { border: 0; background: none; color: var(--blue); font-weight: 700; padding: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 3px; padding: 10px 15px; font-size: 14px; font-weight: 700; border: 1px solid var(--blue); text-decoration: none; }
.button:hover { text-decoration: none; }
.button-outline { background: #fff; color: var(--blue); }
.button-outline:hover { background: var(--pale); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #2b198f; }
.hero { background: var(--blue); color: #fff; }
.hero-inner { max-width: 1120px; margin: auto; padding: 47px 28px 50px; }
.eyebrow { margin: 0 0 11px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
.hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 12px; }
.hero-inner > p:last-child { max-width: 580px; margin: 0; font-size: 16px; }
.content { max-width: 1120px; margin: auto; padding: 47px 28px 90px; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-top h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.calendar-export, .card-calendar { color: var(--blue); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.filters { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.filter { position: relative; background: none; border: 0; color: var(--muted); padding: 0 0 12px; font-size: 14px; }
.filter.active { color: var(--blue); font-weight: 700; }
.filter.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--blue); }
.event-list { display: block; }
.event-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 142px; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.event-date { color: var(--blue); line-height: 1; text-align: center; padding-top: 2px; }
.event-date b { display: block; font-size: 31px; font-weight: 700; letter-spacing: -.04em; }
.event-date span { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.event-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.event-heading h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.event-tag { font-size: 11px; color: var(--blue); font-weight: 700; }
.event-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.event-desc { margin: 11px 0 0; color: #504e57; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-side { display: flex; flex-direction: column; align-items: flex-start; padding-top: 3px; font-size: 13px; }
.event-side > span { font-weight: 700; }
.event-side small { color: var(--muted); font-size: 12px; }
.event-side button { background: none; border: 0; color: var(--blue); padding: 0; margin-top: auto; font-size: 13px; font-weight: 700; text-align: left; }
.event-side .card-calendar { margin-top: 6px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.admin-actions button { border: 0; background: none; color: var(--blue); font-size: 12px; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.admin-bar { padding: 17px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.admin-bar button { border: 1px solid var(--blue); border-radius: 3px; background: #fff; color: var(--blue); padding: 7px 11px; font-size: 13px; font-weight: 700; }
.empty { padding: 36px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); max-width: 1120px; margin: auto; padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 17px; }
.footer-brand img { width: 80px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.hidden { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background: #1614209c; z-index: 10; display: grid; place-items: center; padding: 15px; }
.modal { position: relative; width: min(100%, 450px); max-height: calc(100vh - 30px); overflow: auto; background: #fff; border-radius: 4px; padding: 30px; box-shadow: 0 12px 40px #0003; }
.modal-close { position: absolute; top: 13px; right: 16px; border: 0; background: none; color: var(--muted); font-size: 26px; }
.modal h2 { font-size: 26px; margin: 0 0 7px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.eth-login, .full { width: 100%; }
.note { font-size: 12px; color: var(--muted); background: var(--pale); padding: 10px; margin: 12px 0; border-radius: 3px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider:before, .divider:after { content: ''; height: 1px; background: var(--line); flex: 1; }
.modal form { display: grid; gap: 12px; }
.modal label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.modal label small { font-weight: 400; }
.modal input, .modal textarea, .modal select { width: 100%; padding: 9px 10px; border: 1px solid #c9c8d1; border-radius: 3px; background: #fff; color: var(--ink); }
.modal input:focus, .modal textarea:focus, .modal select:focus { outline: 2px solid #b3abdf; outline-offset: 1px; }
.form-error { font-size: 13px; color: #aa2340; margin: 0; }
.switch-text { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.event-modal #event-description { white-space: pre-wrap; color: #45434e; font-size: 14px; margin: 20px 0; }
.event-facts { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.event-facts span { background: var(--pale); padding: 6px 8px; border-radius: 3px; }
.event-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.event-bottom strong, .event-bottom small { display: block; }
.event-bottom small { color: var(--muted); font-size: 12px; }
.event-modal > .calendar-export { display: block; margin-top: 15px; }
.admin-modal { width: min(100%, 560px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; background: var(--blue); color: #fff; padding: 11px 15px; border-radius: 3px; font-size: 14px; }
@media (max-width: 760px) {
  .event-row { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .event-side { grid-column: 2; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 8px; padding: 0; }
  .event-side button { margin: 0 5px 0 0; }
  .event-side .card-calendar { margin: 0; }
  footer { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .site-header { gap: 10px; padding: 12px 18px; }
  .brand img { width: 100px; }
  .site-header nav { gap: 10px; font-size: 12px; }
  .language-switch { gap: 2px; }
  .language-switch button { font-size: 11px; }
  .site-header nav a:nth-child(2) { display: none; }
  .site-header .button { padding: 7px 9px; font-size: 12px; }
  .account-name { font-size: 12px; }
  .account-name > span { display: none; }
  .hero-inner { padding: 37px 20px 40px; }
  .eyebrow { font-size: 10px; }
  .hero-inner > p:last-child { font-size: 14px; }
  .content { padding: 36px 20px 65px; }
  .section-top { align-items: start; flex-direction: column; gap: 9px; }
  .filters { gap: 14px; }
  .filter { flex: none; white-space: nowrap; font-size: 13px; }
  .event-row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 23px 0; }
  .event-date b { font-size: 26px; }
  .event-date span { font-size: 10px; }
  .event-heading h3 { font-size: 18px; }
  .event-meta, .event-desc { font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 25px 20px; }
  footer { padding: 28px 20px; }
}
