/* Axis events page (muslimaxis): same card language as the homepage feed.
   List: left title + tabs | centre type chips + event cards | right shortcuts. Single: event card + about/registration | details, map, more events. */
.evg{display:grid;grid-template-columns:232px minmax(0,1fr) 300px;grid-template-areas:"crumbs crumbs crumbs" "left main right";gap:12px 24px;
  max-width:1180px;margin:0 auto;padding:16px 20px 0;align-items:start}
.evg-one{grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"crumbs crumbs" "main right";max-width:1080px}
.evg-crumbs{grid-area:crumbs;min-width:0}
.evg-crumbs [aria-current]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.evg-left{grid-area:left;position:sticky;top:80px;display:grid;gap:12px;min-width:0}
.evg-main{grid-area:main;min-width:0;display:grid;gap:12px}
.evg-right{grid-area:right;display:grid;gap:12px;min-width:0}
.evg h1,.evg h2{letter-spacing:0}
.evg a:focus-visible,.evg button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* the card every block sits in */
.ev-card{background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0}
.ev-card h2{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:16px;font-weight:600;color:var(--text)}
.ev-ic{flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--soft,var(--primary-soft));color:var(--c,var(--on-soft))}
.ev-ic-lg{flex-basis:44px;width:44px;height:44px}
.ev-ic-xl{flex-basis:56px;width:56px;height:56px}
.ev-more{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px -8px 0;padding:8px;border-radius:10px;font-size:14px;font-weight:600;color:var(--primary)}
.ev-more:hover{background:var(--surface)}
.ev-more svg{flex:0 0 18px}

/* list, left: title card with cover band + when tabs */
.ev-id{padding:0 0 12px;text-align:center;overflow:hidden}
.ev-id-band{height:60px;background:linear-gradient(120deg,var(--primary-soft),color-mix(in srgb,var(--primary) 30%,var(--primary-soft)) 60%,var(--blue-soft))}
.ev-id-ic{display:grid;place-items:center;width:64px;height:64px;margin:-32px auto 8px;border-radius:50%;border:3px solid var(--bg);background:var(--primary);color:var(--on-primary)}
.ev-id h1{margin:0;padding:0 14px;font-size:19px;font-weight:600;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.ev-id-sub{margin:4px 0 0;padding:0 14px;font-size:14px;line-height:1.5;color:var(--muted)}
.ev-id-n{margin:8px 0 0;padding:0 14px;font:600 14px "Roboto",var(--font);color:var(--primary)}
.ev-tabs{display:grid;gap:2px;margin:12px 0 0;padding:8px 8px 0;border-top:1px solid var(--line);text-align:start}
.ev-tabs a{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:10px;font-size:15px;font-weight:500;color:var(--text)}
.ev-tabs a svg{flex:0 0 18px;color:var(--muted)}
.ev-tabs a:hover{background:var(--surface)}
.ev-tabs a.on{background:var(--primary-soft);color:var(--on-soft);font-weight:600}
.ev-tabs a.on svg{color:var(--on-soft)}

/* list, centre: type chips */
.ev-filter{padding:12px}
.ev-types{margin:0;gap:8px;justify-content:flex-start}
.ev-types .chip{background:var(--bg);border-radius:999px;height:34px;padding:0 14px;font-size:14px}
.ev-types .chip svg{color:var(--c,var(--muted))}
.ev-types .chip:hover{background:var(--surface)}
.ev-types .chip.on{background:var(--primary-soft);border-color:transparent;color:var(--on-soft)}
.ev-types .chip.on svg{color:var(--on-soft)}

/* list, centre: event cards (header line, body with the date tile, action row) */
.ev-feed{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ev-post{padding:0;overflow:hidden}
.ev-ph{display:flex;align-items:center;gap:12px;padding:14px 16px 6px}
.ev-ph-txt{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.ev-ph-txt b{font-size:15px;font-weight:600;color:var(--c)}
.ev-ph-txt small{font-size:13px;color:var(--muted)}
.ev-body{display:flex;align-items:flex-start;gap:14px;margin:4px 8px 0;padding:10px 8px 12px;border-radius:12px;color:var(--text)}
.ev-body:hover{background:var(--surface)}
.ev-body:hover .ev-title{color:var(--primary)}
.ev-tile{flex:0 0 60px;display:flex;flex-direction:column;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--bg);line-height:1.15;text-align:center}
.ev-tile small:first-child{display:block;width:100%;padding:3px 4px;background:var(--c);color:var(--bg);font-size:12px;font-weight:600}
.ev-tile b{padding:4px 0 0;font:600 24px/1.1 "Roboto",var(--font);color:var(--text)}
.ev-tile small:last-child{padding:0 0 5px;font:500 11px "Roboto",var(--font);color:var(--muted)}
.ev-body-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ev-title{display:block;font-size:17px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ev-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:14px;color:var(--muted)}
.ev-line>span{display:inline-flex;align-items:center;gap:5px;min-width:0}
.ev-line svg{flex:0 0 15px}
.ev-online{color:var(--blue)}
.ev-snip{color:var(--muted);font-size:15px;line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.ev-post.is-past .ev-tile,.ev-post.is-past .ev-ic{opacity:.6}
.ev-post.is-past .ev-tile small:first-child{background:var(--muted)}
.ev-post.is-past .ev-title{color:var(--muted)}

/* action row (list cards and the single event card) */
.ev-pf{display:flex;flex-wrap:wrap;gap:4px;padding:4px 8px;border-top:1px solid var(--line)}
.ev-pf a,.ev-pf button{flex:1 1 0;min-width:max-content;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 10px;border:0;border-radius:8px;
  background:transparent;font:600 14px var(--font);color:var(--muted);cursor:pointer}
.ev-pf a:hover,.ev-pf button:hover{background:var(--surface);color:var(--text)}
.ev-pf .ev-pf-main{color:var(--primary)}

.pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.pager a{display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border-radius:999px;color:var(--muted);font:500 15px "Roboto",var(--font);background:var(--bg);border:1px solid var(--line)}
.pager a:hover{background:var(--surface);color:var(--text)}
.pager a.on{background:var(--primary-soft);border-color:transparent;color:var(--on-soft);font-weight:600}

.ev-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:40px 16px}
.ev-empty h2{margin:0;justify-content:center}

/* right: shortcuts */
.ev-short{padding:14px 8px}
.ev-short h2{padding:0 8px}
.ev-short ul{list-style:none;margin:0;padding:0}
.ev-short a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;font-size:15px;font-weight:500;color:var(--text)}
.ev-short a:hover{background:var(--surface)}

/* single: the event card (cover band, date tile over it, title, facts, actions) */
.ev-hero{padding:0;overflow:hidden}
.ev-band{position:relative;height:120px;overflow:hidden;color:var(--c);
  background:linear-gradient(120deg,var(--soft),color-mix(in srgb,var(--c) 26%,var(--soft)) 65%,var(--primary-soft))}
.ev-band svg{position:absolute;inset-inline-end:24px;top:-10px;opacity:.18}
.ev-hero-in{padding:0 20px 16px}
.ev-cal{width:96px;margin:-48px 0 12px;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;
  border-radius:14px;border:3px solid var(--bg);background:var(--bg);box-shadow:var(--shadow);text-align:center}
.ev-cal-m{display:block;width:100%;padding:4px 6px;background:var(--c);color:var(--bg);font-size:13px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-cal-d{display:block;padding:4px 0 0;font:600 36px/1.1 "Roboto",var(--font);color:var(--text)}
.ev-cal-w{display:block;max-width:100%;padding:0 6px 8px;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-kind{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px;color:var(--c);font-size:14px;font-weight:600}
.ev-when{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:var(--soft);color:var(--c);font-size:13px;font-weight:600}
.ev-hero.is-past .ev-when{background:var(--surface-2);color:var(--muted)}
.ev-hero.is-past .ev-cal-m{background:var(--muted)}
.ev-hero h1{margin:0;font-size:26px;font-weight:600;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.ev-meta{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:15px}
.ev-meta li{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ev-meta svg{flex:0 0 18px}
.ev-tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.ev-tags .chip{height:30px;padding:0 12px;border-radius:999px;font-size:13px;color:var(--muted)}

/* single: about, registration */
.ev-about{padding:16px 20px}
.ev-desc{color:var(--text);font-size:16px;line-height:1.85;overflow-wrap:anywhere}
.ev-rsvp{padding:16px 20px;scroll-margin-top:84px}
.ev-rsvp h2 svg{color:var(--primary)}
.ev-rsvp .card-note{margin:0 0 14px}
.ev-rsvp .btn{border-radius:999px}
.ev-bar{height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden;margin:0 0 14px}
.ev-bar span{display:block;height:100%;border-radius:4px;background:var(--primary)}
.ev-back{margin:0}
.ev-back .btn-text{padding:0 8px}

/* single, right: details list, map, more events */
.ev-facts dl{margin:0;display:grid;gap:12px}
.ev-facts dl>div{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;align-items:start}
.ev-facts .ev-ic{grid-row:span 2}
.ev-facts dt{font-size:13px;color:var(--muted);line-height:1.4}
.ev-facts dd{margin:0;font-size:15px;font-weight:500;line-height:1.45;color:var(--text);overflow-wrap:anywhere}
.ev-facts dd small{display:block;font-size:13px;font-weight:400;color:var(--muted)}
.ev-mapcard{display:grid}
.ev-map{height:220px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.ev-next-list{list-style:none;margin:0;padding:0}
.ev-next-list a{display:flex;align-items:center;gap:12px;padding:7px 8px;margin:0 -8px;border-radius:10px;color:var(--text)}
.ev-next-list a:hover{background:var(--surface)}
.ev-mini{flex:0 0 44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:var(--soft);color:var(--c);line-height:1.1}
.ev-mini small{font-size:11px;font-weight:600}
.ev-mini b{font:600 17px "Roboto",var(--font)}
.ev-next-t{flex:1;min-width:0;display:grid}
.ev-next-t b{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-next-t small{color:var(--muted);font-size:13px}

/* tablet: two columns, the left column folds under the right one */
@media (max-width:1060px){
  .evg{grid-template-columns:minmax(0,1fr) 290px;grid-template-areas:"crumbs crumbs" "main right" "main left";grid-template-rows:auto auto 1fr}
  .evg-one{grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"crumbs crumbs" "main right";grid-template-rows:none}
  .evg-left{position:static;align-self:start}
}
/* phone: one column; on the list the title card comes first */
@media (max-width:760px){
  .evg,.evg-one{grid-template-columns:minmax(0,1fr);grid-template-areas:"crumbs" "left" "main" "right";grid-template-rows:none;padding:12px 16px 0;gap:12px}
  .evg-one{grid-template-areas:"crumbs" "main" "right"}
  .ev-card{border-radius:14px}
  .ev-id{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px;padding:14px;text-align:start}
  .ev-id-band{display:none}
  .ev-id-ic{grid-row:span 3;width:52px;height:52px;margin:0;border:0}
  .ev-id h1,.ev-id-sub,.ev-id-n{padding:0}
  .ev-id h1{font-size:20px}
  .ev-id-sub{margin:2px 0 0}
  .ev-id-n{margin:4px 0 0}
  .ev-tabs{grid-column:1/-1;grid-template-columns:1fr 1fr;margin-top:12px;padding:10px 0 0}
  .ev-tabs a{justify-content:center}
  .ev-hero h1{font-size:22px}
  .ev-band{height:96px}
  .ev-cal{width:84px;margin-top:-42px}
  .ev-cal-d{font-size:30px}
  .ev-hero-in{padding:0 16px 14px}
  .ev-about,.ev-rsvp{padding:16px}
  .ev-pf a,.ev-pf button{padding:0 6px;font-size:13px;gap:6px}
}
@media (max-width:420px){
  .ev-pf a,.ev-pf button{min-width:min(100%,max-content)}
  .ev-tile{flex-basis:52px}
  .ev-tile b{font-size:20px}
  .ev-body{gap:12px;margin-inline:4px;padding-inline:8px}
}

/* the map keeps its own stacking layer, so its panes never cover the sticky top bar */
.leaflet-container{isolation:isolate;z-index:0}

/* ===== Compass: the events list as a travel diary. Title page, a legend of entry kinds, one timeline down the page with
   a chapter per month, each event a dated entry hanging from the line. ===== */
.crd{max-width:900px}
.cr-eyebrow{margin:0 0 6px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary)}
.crd-head{margin-top:12px;padding:26px 0 18px;border-bottom:2px solid var(--text)}
.crd-head h1{margin:0;font:600 36px/1.15 Georgia,"Noto Sans Arabic",serif}
.crd-sub{margin:10px 0 0;max-width:64ch;color:var(--muted);font-size:16px;line-height:1.7}
.crd-sub b{color:var(--text);font-weight:600}
.crd-tabs{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:16px}
.crd-tabs a{display:inline-flex;align-items:center;gap:8px;min-height:40px;color:var(--muted);font-weight:600;text-decoration:none;border-bottom:3px solid transparent}
.crd-tabs a.on{color:var(--text);border-bottom-color:var(--primary)}
.crd-tabs a:hover{color:var(--text)}
.crd-types{display:flex;flex-wrap:wrap;gap:4px 16px;margin:14px 0 6px;font-size:14px}
.crd-types a{display:inline-flex;align-items:center;gap:6px;min-height:36px;color:var(--muted);text-decoration:none}
.crd-types a svg{color:var(--c,var(--muted))}
.crd-types a.on{color:var(--text);font-weight:700;text-decoration:underline;text-decoration-color:var(--primary);text-decoration-thickness:2px;text-underline-offset:6px}
.crd-types a:hover{color:var(--text)}
.crd-month h2{margin:30px 0 10px;font:600 22px/1.3 Georgia,"Noto Sans Arabic",serif;color:var(--primary)}
.crd-line{list-style:none;margin:0;padding:0;position:relative}
.crd-line::before{content:"";position:absolute;top:8px;bottom:8px;inset-inline-start:31px;width:2px;background:var(--line)}
.crd-entry{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;padding:0 0 26px}
.crd-date{position:relative;z-index:1;display:grid;justify-items:center;align-content:start;gap:2px;width:64px;padding:8px 0;border:2px solid var(--c,var(--primary));border-radius:50%;aspect-ratio:1/1;background:var(--bg);box-sizing:border-box}
.crd-date b{font:700 22px/1 Georgia,"Noto Sans Arabic",serif;color:var(--text);margin-top:4px}
.crd-date small{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.crd-text{min-width:0;padding:4px 0 18px;border-bottom:1px dashed var(--line)}
.crd-kind{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:13px;font-weight:600;color:var(--c,var(--muted))}
.crd-when{color:var(--muted);font-weight:500}
.crd-when::before{content:"\00B7";margin-inline-end:10px}
.crd-text h3{margin:4px 0 6px;font:600 20px/1.35 Georgia,"Noto Sans Arabic",serif;overflow-wrap:anywhere}
.crd-text h3 a{color:var(--text);text-decoration:none}
.crd-text h3 a:hover{color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.crd-line-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;font-size:14px;color:var(--muted)}
.crd-line-meta>span{display:inline-flex;align-items:center;gap:6px}
.crd-snip{margin:8px 0 0;max-width:68ch;font-style:italic;line-height:1.7;color:var(--text)}
.crd-acts{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:10px;font-size:14px}
.crd-acts a,.crd-acts button{min-height:36px;padding:0;border:0;background:none;color:var(--primary);font:600 14px var(--font);cursor:pointer;text-decoration:none}
.crd-acts a:hover,.crd-acts button:hover{text-decoration:underline;text-underline-offset:3px}
.crd a:focus-visible,.crd button:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
.crd-entry.is-past .crd-date{border-style:dashed}
.crd-pager{margin-top:20px}
.crd-empty{margin-top:26px;padding:30px 0;text-align:center;border-top:1px dashed var(--line)}
.crd-empty h2{margin:0 0 6px;font:600 22px Georgia,"Noto Sans Arabic",serif}
.crd-empty p{margin:0 0 16px;color:var(--muted)}
@media (max-width:600px){
  .crd-head h1{font-size:28px}
  .crd-line::before{inset-inline-start:23px}
  .crd-entry{grid-template-columns:48px minmax(0,1fr);gap:12px}
  .crd-date{width:48px;padding:5px 0}
  .crd-date b{font-size:17px;margin-top:2px}
  .crd-date small{font-size:9.5px}
}
.crd-sub b{display:block;margin-top:4px}
.crd-acts{align-items:center}
.crd-acts a,.crd-acts button{display:inline-flex;align-items:center;line-height:1.3}
