/* Midtown Calendar 1.1.0. Uses the theme's own tokens: --ink, --paper, --ox, --navy, --forest, --yellow, --line, --muted, --display, --body. */

/* Home strip and Weekly Rhythm (unchanged from 1.0.0) */
.ticket .tag.mmc-source{margin-left:6px;background:transparent;border:1px solid currentColor;font-weight:600}
.ticket .mmc-link{display:inline-block;margin-right:14px}
@media(min-width:1300px){.mmc-rhythm .week-board{grid-template-columns:repeat(4,1fr)}}
.mmc-rhythm a.week-line{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.mmc-rhythm .week-line{white-space:normal}
.mmc-rhythm .week-day,.mmc-rhythm .week-day>div{min-width:0}
@media(max-width:640px){.mmc-rhythm .week-board{grid-template-columns:minmax(0,1fr)}}

/* Shared */
.mmc-caps{font:800 .7rem/1.3 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--forest);margin:0}
.mmc-cal [hidden],.mmc-event [hidden]{display:none!important}
.mmc-btn{display:inline-flex;align-items:center;gap:8px;background:var(--ox);color:#fff;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);padding:9px 15px;font-weight:700;font-size:.82rem;line-height:1.3;text-decoration:none;white-space:nowrap}
.mmc-btn:hover{color:#fff;transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}
.mmc-textlink{font-weight:700;font-size:.82rem;color:var(--forest);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.mmc-textlink:hover{color:var(--ox)}

/* Calendar section: the grid follows the hero closely */
.section.mmc-section{padding-top:44px}

/* Toolbar */
.mmc-cal{position:relative}
.mmc-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;padding-bottom:18px;margin-bottom:26px;border-bottom:2px solid var(--ink)}
.mmc-view{display:flex}
.mmc-view button,.mmc-month-nav button{padding:10px 18px;background:#fff;border:2px solid var(--ink);font-size:.85rem;font-weight:700;color:var(--ink);line-height:1.3}
.mmc-view button+button{margin-left:-2px}
.mmc-view button[aria-pressed=true]{background:var(--navy);color:#fff;box-shadow:3px 3px 0 var(--yellow);position:relative}
.mmc-month-nav{display:flex;gap:10px}
.mmc-month-nav button:disabled{opacity:.4;cursor:default}
.mmc-filter{display:flex;align-items:center;gap:10px;margin:0}
.mmc-filter select{border:2px solid var(--ink);background:#fff;padding:8px 12px;font-size:.9rem;font-weight:600;color:var(--ink);max-width:100%}
.mmc-subscribe{font-weight:700;font-size:.9rem;text-decoration:underline;text-underline-offset:3px}

/* Month grid */
.mmc-month-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px}
.mmc-month-title{margin:0;font-size:clamp(2.1rem,3.6vw,3.3rem);text-transform:uppercase}
.mmc-status{margin:8px 0 18px;color:var(--muted)}
.mmc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:2px solid var(--ink)}
.mmc-dayname{background:var(--navy);color:#fff;padding:8px 10px;font:700 .72rem var(--body);letter-spacing:.12em;text-transform:uppercase}
.mmc-dayname abbr{text-decoration:none}
.mmc-day{position:relative;background:var(--paper);min-height:120px;min-width:0}
.mmc-day.is-blank{background:#f1f0ea}
.mmc-num{display:block;padding:8px 10px 0;font:600 1.05rem/1.2 var(--display);color:var(--muted)}
.mmc-day.is-past .mmc-num{color:#a3a29c}
.mmc-day.is-today .mmc-num{color:var(--ink);text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:4px;text-underline-offset:4px}
.mmc-day.has-events{background:#fff}
.mmc-day.has-events:before{content:'';position:absolute;left:0;right:0;top:0;height:4px;background:var(--yellow)}
.mmc-day-btn{display:flex;flex-direction:column;align-items:stretch;width:100%;min-height:120px;height:100%;margin:0;padding:0 0 10px;border:0;background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.mmc-day-btn .mmc-num{color:var(--ox)}
.mmc-day-btn:focus-visible{outline:3px solid var(--ox);outline-offset:-3px}
.mmc-day.has-events:hover,.mmc-day.is-open{background:#fff7e0}
.mmc-day.is-open{z-index:20}
.mmc-day.is-empty .mmc-day-btn{cursor:default}
.mmc-day.is-empty:before{display:none}
.mmc-peek{display:flex;flex-direction:column;gap:5px;padding:6px 10px 0;min-width:0}
.mmc-peek-item{font-size:.74rem;line-height:1.3;font-weight:700;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.mmc-peek-item:nth-child(n+4){display:none}
.mmc-peek-time{color:var(--ox);font-weight:800;white-space:nowrap}
.mmc-more{font-size:.72rem;font-weight:800;color:var(--forest)}
.mmc-dots{display:none}
.mmc-empty{margin:18px 0 0;font-weight:600}

/* Pop out card: overlaps its cell by 6px so the pointer never crosses a gap */
.mmc-pop{position:absolute;z-index:30;top:calc(100% - 6px);left:-2px;width:min(380px,calc(100vw - 32px));max-height:min(72vh,600px);overflow:auto;overscroll-behavior:contain;background:#fff;border:2px solid var(--ink);box-shadow:7px 8px 0 rgba(24,25,26,.22);padding:12px 16px 14px;text-align:left;cursor:auto}
.mmc-day[data-col="4"] .mmc-pop,.mmc-day[data-col="5"] .mmc-pop,.mmc-day[data-col="6"] .mmc-pop,.mmc-pop.is-right{left:auto;right:-2px}
.mmc-pop.is-left{left:-2px;right:auto}
.mmc-pop.is-above{top:auto;bottom:calc(100% - 6px)}
.mmc-pop-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.mmc-pop-close{border:0;background:none;padding:6px 0 6px 8px;font-size:.8rem;font-weight:700;color:var(--forest);text-decoration:underline;text-underline-offset:3px;min-height:36px}
.mmc-pop-item{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:start;padding:12px 0}
.mmc-pop-item+.mmc-pop-item{border-top:1px solid var(--line)}
.mmc-pop-media{display:block;width:112px;aspect-ratio:1}
.mmc-pop-media img,.mmc-row-thumb img,.mmc-more-thumb{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;border:1px solid var(--ink);background:#e9e8e2}
.mmc-pop-body{min-width:0}
.mmc-pop-title{margin:3px 0 6px;font-size:1.3rem;line-height:1.1;letter-spacing:-.01em}
.mmc-pop-title a,.mmc-row-title a{text-decoration:none}
.mmc-pop-title a:hover,.mmc-row-title a:hover{color:var(--ox);text-decoration:underline}
.mmc-pop-when{margin:0 0 4px;font-size:.86rem;font-weight:700}
.mmc-pop-adm,.mmc-row-adm{margin:0 0 6px;font-size:.84rem;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.mmc-pop-go{display:inline-flex;gap:6px;align-items:center;font-weight:800;font-size:.86rem;color:var(--ox);text-underline-offset:3px;min-height:32px}
@media (prefers-reduced-motion:no-preference){
.mmc-pop:not([hidden]){animation:mmc-pop-in .16s ease-out}
@keyframes mmc-pop-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
}

/* List */
.mmc-list{margin-top:70px}
.mmc-list-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 24px;padding-bottom:12px;border-bottom:2px solid var(--ink)}
.mmc-list-head h2{margin:0}
.mmc-list-head h2:focus{outline:none}
.mmc-list-head p{margin:0;color:var(--muted)}
.mmc-list-month{margin:34px 0 14px;font-size:1.5rem;text-transform:uppercase;letter-spacing:.03em;color:var(--navy)}
.mmc-rows{display:grid;gap:16px}
.mmc-row{display:grid;grid-template-columns:120px 78px minmax(0,1fr) auto;gap:22px;align-items:center;background:#fff;border:2px solid var(--ink);box-shadow:5px 6px 0 #d0cfca;padding:14px 22px 14px 14px}
.mmc-row-thumb{display:block;width:120px;aspect-ratio:1}
.mmc-row-date{margin:0;padding-right:18px;border-right:2px dashed #999;text-align:center;font:500 1rem/1.15 var(--display);text-transform:uppercase;color:var(--ox)}
.mmc-row-date span{display:block}
.mmc-row-date strong{display:block;font-size:2.7rem;line-height:1.05}
.mmc-row-body{min-width:0}
.mmc-row-title{margin:3px 0 6px;font:600 1.55rem/1.1 var(--display);letter-spacing:-.01em}
.mmc-row-when{margin:0 0 4px;font-size:.92rem;font-weight:700}
.mmc-row-adm{margin:0}
.mmc-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}

/* Event page */
.mmc-event-head{padding-top:56px;padding-bottom:64px}
.mmc-event-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:minmax(0,500px) minmax(0,1fr);gap:56px;align-items:center}
.mmc-event-poster{margin:0}
.mmc-event-poster img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border:2px solid var(--ink);box-shadow:var(--shadow)}
.mmc-event-text{min-width:0}
.mmc-event-text .eyebrow a{text-decoration:none}
.mmc-event-text .eyebrow a:hover{text-decoration:underline}
.mmc-event-head h1{font-size:clamp(2.4rem,4.4vw,4.4rem);margin-bottom:22px;overflow-wrap:break-word}
.mmc-past{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;background:#fff7e0;border:1px solid var(--yellow);padding:10px 14px}
.mmc-past .mmc-caps{color:var(--ox)}
.mmc-facts{display:grid;gap:14px;margin:0 0 28px}
.mmc-facts>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:baseline}
.mmc-facts dt{margin:0}
.mmc-facts dd{margin:0;font-weight:600}
.mmc-note{color:var(--muted);font-weight:500;font-size:.88rem}
.mmc-event-actions{display:flex;flex-wrap:wrap;gap:14px}
.mmc-event-cols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:56px;align-items:start}
.mmc-event-desc{font-size:1.2rem;max-width:680px}
.mmc-more ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mmc-more a{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;text-decoration:none;font-weight:700;font-size:.9rem}
.mmc-more a:hover span{color:var(--ox);text-decoration:underline}
.mmc-more-thumb{width:64px;height:64px}
.mmc-back{display:inline-flex;gap:8px;margin-top:40px;font-weight:800}

@media(max-width:1020px){
.mmc-row{grid-template-columns:104px minmax(0,1fr) auto;padding-right:16px}
.mmc-row-thumb{width:104px}
.mmc-row-date{display:none}
}
@media(max-width:850px){
.mmc-event-grid,.mmc-event-cols{grid-template-columns:minmax(0,1fr);gap:32px}
.mmc-event-poster{max-width:520px}
.mmc-row{grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start}
.mmc-row-thumb{width:96px;grid-row:span 2}
.mmc-row-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 18px}
}
@media(max-width:700px){
.mmc-toolbar{gap:12px 16px}
.mmc-month-nav{width:100%}
.mmc-month-nav button{flex:1;padding:10px 8px}
.mmc-grid{border-width:2px}
.mmc-dayname{padding:6px 0;text-align:center;font-size:.62rem;letter-spacing:.06em}
.mmc-day,.mmc-day-btn{min-height:58px}
.mmc-num{padding:6px 0 0;text-align:center;font-size:.98rem}
.mmc-peek{display:none}
.mmc-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:5px 3px 0}
.mmc-dots i{display:block;width:7px;height:7px;border-radius:50%;background:var(--ox)}
.mmc-dots i:nth-child(n+4){display:none}
.mmc-day-btn{padding-bottom:6px}
.mmc-day-btn .mmc-num{color:var(--ink)}
.mmc-pop,.mmc-day[data-col] .mmc-pop{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-height:78vh;z-index:1000;box-shadow:0 -5px 0 var(--yellow),0 14px 44px rgba(0,0,0,.38)}
.mmc-pop.is-above{bottom:12px}
.mmc-pop-item{grid-template-columns:96px minmax(0,1fr)}
.mmc-pop-media{width:96px}
.mmc-list{margin-top:54px}
.mmc-row{padding:12px;box-shadow:4px 5px 0 #d0cfca}
.mmc-row-title{font-size:1.3rem}
.section.mmc-section{padding-top:30px}
.mmc-event-head{padding-top:36px;padding-bottom:44px}
.mmc-facts>div{grid-template-columns:minmax(0,1fr);gap:2px}
}
@media(max-width:640px){
.mmc-row{grid-template-columns:84px minmax(0,1fr)}
.mmc-row-thumb{width:84px}
}
