/* Magicians' Round Table - Club Manager */
:root { --mrt-ink: #1f1a14; --mrt-accent: #7a1f1f; --mrt-paper: #faf7f0; --mrt-line: #d9d2c3; --mrt-ok: #1d5c3a; }

.mrt-test-banner { background: #b8860b; color: #fff; text-align: center; padding: 6px 12px; font-weight: 600; font-size: 14px; }

.mrt-lead { font-size: 1.15em; }
.mrt-actions .button { margin: 0 8px 8px 0; }
.mrt-small { font-size: .9em; color: #555; }
.mrt-big { font-size: 1.25em; }
.mrt-ok { background: #e8f3ec; border-left: 4px solid var(--mrt-ok); padding: 10px 14px; }
.mrt-alert { background: #fbeaea; border-left: 4px solid var(--mrt-accent); padding: 10px 14px; font-weight: 600; }

/* Event cards */
.mrt-card { display: flex; gap: 18px; border: 1px solid var(--mrt-line); background: #fff; padding: 16px; margin: 0 0 16px; border-radius: 4px; }
.mrt-card.mrt-cancelled { opacity: .7; }
.mrt-card.mrt-cancelled h3 a { text-decoration: line-through; }
.mrt-date-badge { flex: 0 0 74px; text-align: center; background: var(--mrt-accent); color: #fff; border-radius: 4px; padding: 8px 4px; line-height: 1.2; height: fit-content; }
.mrt-date-badge span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.mrt-date-badge strong { display: block; font-size: 30px; }
.mrt-card-body { flex: 1 1 auto; min-width: 0; }
.mrt-card-body h3 { margin: 0 0 6px; font-size: 1.25em; }
/* The event's own picture, fitted to the right of the card */
.mrt-card-img { flex: 0 0 30%; max-width: 230px; display: flex; align-items: center; justify-content: center; }
.mrt-card-img img { display: block; width: 100%; height: auto; max-height: 230px; object-fit: contain; }
.mrt-when { margin: 0 0 6px; font-weight: 600; }
.mrt-meta { margin: 0 0 10px; color: #555; font-size: .95em; }
.mrt-btn { background: var(--mrt-accent) !important; color: #fff !important; }

/* Calendar: three small months side by side; event days are filled links */
.mrt-cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.mrt-cal-nav h2 { margin: 0; font-size: 1.3em; text-align: center; }
.mrt-cal-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 28px; align-items: start; }
table.mrt-cal { table-layout: fixed; width: 100%; border-collapse: collapse; margin: 0; }
.mrt-cal caption { font-weight: 700; padding: 0 0 4px; text-align: center; }
.mrt-cal th { text-align: center; background: var(--mrt-paper); padding: 3px 0; font-size: 12px; }
.mrt-cal th abbr { text-decoration: none; border: 0; }
.mrt-cal td { text-align: center; border: 1px solid var(--mrt-line); padding: 2px; font-size: 13px; line-height: 1.8; }
.mrt-cal td.mrt-empty { background: #f6f6f6; }
.mrt-cal td.mrt-today { outline: 2px solid #b8860b; outline-offset: -2px; font-weight: 700; }
.mrt-cal-ev { display: block; background: var(--mrt-accent); color: #fff !important; border-radius: 3px; font-weight: 700; text-decoration: none !important; }
.mrt-cal-ev:hover, .mrt-cal-ev:focus { background: var(--mrt-ink); }
.mrt-cal-ev.mrt-cancelled { background: #999; text-decoration: line-through !important; }
@media (max-width: 760px) { .mrt-cal-months { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* Event page */
.mrt-event-head { background: var(--mrt-paper); border: 1px solid var(--mrt-line); padding: 16px 20px; margin-bottom: 20px; }
.mrt-big-date { font-size: 1.5em; font-weight: 700; margin: 0 0 8px; color: var(--mrt-accent); }
.mrt-facts { margin: 0; list-style: none; }
.mrt-facts li { margin: 4px 0; }
.mrt-register { border-top: 2px solid var(--mrt-accent); margin-top: 28px; padding-top: 12px; }
.mrt-timeline { font-size: .92em; color: #444; }

/* Sign-up form */
.mrt-person { border: 1px solid var(--mrt-line); padding: 12px 16px; margin: 0 0 16px; background: #fff; }
.mrt-person legend { font-weight: 700; padding: 0 6px; }
.mrt-person.mrt-collapsed { display: none; }
.mrt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.mrt-grid p { margin: 0 0 10px; }
.mrt-grid label { display: block; font-size: .9em; font-weight: 600; }
.mrt-grid input { width: 100%; }
.mrt-f-address1, .mrt-f-address2 { grid-column: span 2; }
.mrt-self.mrt-off .mrt-grid { opacity: .45; }

/* Checkout policy */
.mrt-policy-box { background: var(--mrt-paper); border: 1px solid var(--mrt-line); padding: 12px 16px; margin: 0 0 14px; font-size: .92em; }

.mrt-acct-ev { margin-bottom: 24px; }

/* Email confirmation */
.mrt-verify { max-width: 520px; margin: 0 auto 40px; }
.mrt-verify-form label { display: block; font-weight: 600; }
.mrt-verify-form input { font-size: 1.6em; letter-spacing: .3em; width: 9em; text-align: center; }
.mrt-linkbtn { background: none; border: 0; padding: 0; color: var(--mrt-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.single-mrt_event .post-navigation { display: none; }
.single-mrt_event img.wp-post-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 50vh; margin: 0 auto 1em; } /* at most half the window's height, any shape */

/* Club banner across the top of every page */
.mrt-banner { background: #fff; border-bottom: 3px solid var(--mrt-accent); padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.mrt-banner-img { flex: 0 1 1064px; min-width: 0; }
.mrt-banner img { display: block; width: 100%; height: auto; }
.mrt-scroll { flex: 0 0 auto; color: var(--mrt-accent); width: 48px; height: 48px; animation: mrt-bob 1.8s ease-in-out infinite; }
.mrt-scroll:hover, .mrt-scroll:focus { color: #000; }
.mrt-scroll svg { display: block; width: 100%; height: 100%; }
@keyframes mrt-bob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mrt-scroll { animation: none; } }
@media (max-width: 640px) { .mrt-banner { gap: 6px; padding: 8px; } .mrt-scroll { width: 26px; height: 26px; } }
html { scroll-behavior: smooth; }

/* Top menu: the whole header width, kept on one line; tighter spacing on small laptops and tablets */
@media (min-width: 768px) {
	body .site-header .main-navigation { width: 100%; float: none; margin-right: 0; }
	.site-header .main-navigation ul.menu { white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1099px) {
	.site-header .main-navigation ul.menu > li > a { padding-left: .55em; padding-right: .55em; font-size: .92em; }
}
.site-header { padding-top: 1em; }
.mrt-with-dues { background: var(--mrt-paper); border: 1px solid var(--mrt-line); padding: 10px 14px; }

.mrt-headline { color: var(--mrt-accent); font-size: 1.8em; margin-bottom: .3em; }
/* No tickets at the door */
.mrt-door { background: #fff4e5; border: 2px solid var(--mrt-accent); border-radius: 4px; padding: 12px 16px; margin: 20px 0; }
.mrt-door p { margin: 0 0 6px; }
.mrt-door p:last-child { margin-bottom: 0; }
.mrt-door strong { color: var(--mrt-accent); }
.mrt-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.mrt-section-head a { font-weight: 600; white-space: nowrap; }
.mrt-schedule li { margin: 4px 0; }

/* History photo gallery */
.mrt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 0 0 24px; }
.mrt-gallery figure { margin: 0; background: #fff; border: 1px solid var(--mrt-line); padding: 6px; }
.mrt-gallery img { display: block; width: 100%; height: 200px; object-fit: cover; }
.mrt-gallery figcaption { font-size: .88em; padding: 6px 2px 2px; line-height: 1.35; }

/* Mailing list sign-up */
.mrt-list-signup { background: var(--mrt-paper); border: 1px solid var(--mrt-line); padding: 16px 20px; margin: 28px 0; }
.mrt-list-signup h2 { margin-top: 0; }
.mrt-list-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
.mrt-list-form p { margin: 0 0 10px; }
.mrt-list-form label { display: block; font-size: .9em; font-weight: 600; }
.mrt-list-form input { width: 100%; }
.mrt-list-form p:last-child { grid-column: 1 / -1; }
.mrt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .mrt-list-form { grid-template-columns: 1fr; } }

/* Map and directions */
.mrt-getting-there { margin-top: 28px; }
.mrt-map iframe { display: block; width: 100%; height: 340px; border: 1px solid var(--mrt-line); border-radius: 4px; }
.mrt-map p { margin-top: 10px; }
.mrt-venue-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.mrt-venue-photos figure { margin: 0; }
.mrt-venue-photos img { display: block; width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--mrt-line); border-radius: 4px; }
.home.page .entry-header { display: none; }

@media (max-width: 640px) {
	.mrt-grid { grid-template-columns: 1fr; }
	.mrt-f-address1, .mrt-f-address2 { grid-column: auto; }
	.mrt-card { flex-direction: column; }
	.mrt-date-badge { width: 74px; }
	.mrt-card-img { flex-basis: auto; max-width: 220px; align-self: center; }
}

/* Upcoming events gallery: photo, name and date of each event */
.mrt-gallery-up { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 8px 0 28px; }
.mrt-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mrt-line); border-radius: 8px; overflow: hidden; color: var(--mrt-ink) !important; text-decoration: none !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s; }
.mrt-tile:hover, .mrt-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); }
.mrt-tile-photo { position: relative; aspect-ratio: 4 / 5; background: var(--mrt-paper); overflow: hidden; }
.mrt-tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s; }
.mrt-tile:hover .mrt-tile-photo img { transform: scale(1.04); }
.mrt-tile-photo .mrt-date-badge { position: absolute; top: 12px; left: 12px; width: 58px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
/* no photo yet: a plain panel with the club colors */
.mrt-tile-nophoto { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--mrt-accent), #3d0f0f); color: #fff; font-size: 1.1em; font-weight: 700; text-align: center; padding: 20px; }
.mrt-tile-text { padding: 14px 16px 16px; }
.mrt-tile-name { display: block; margin: 0 0 4px; font-size: 1.15em; font-weight: 700; line-height: 1.25; color: var(--mrt-accent); }
.mrt-tile-date { display: block; font-size: .95em; color: #555; }
@media (prefers-reduced-motion: reduce) { .mrt-tile, .mrt-tile-photo img { transition: none; } }
