/* Events UI 1.12.20: isolated styles, no global theme form overrides. */
.tbe-page{max-width:1120px;margin-inline:auto;padding:24px 16px 60px;min-width:0;color:var(--tb-text,#211d3e)}
.tbe-page,.tbe-page *{box-sizing:border-box}
.tbe-page [hidden]{display:none!important}
.tbe-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin:4px 0 22px}
.tbe-header h1{font-size:clamp(24px,3vw,34px);line-height:1.25;margin:4px 0 8px}
.tbe-header p{color:#696783;line-height:1.8;font-size:14px;margin:0}
.tbe-eyebrow{font-size:12px;font-weight:800;letter-spacing:.06em;color:#6554d8;margin:0}
.tbe-button,.tbe-page .tbe-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:13px;background:#604fe2;color:#fff;text-decoration:none;padding:12px 17px;font:inherit;font-weight:750;cursor:pointer;box-shadow:0 6px 18px rgba(87,75,203,.14)}
.tbe-button:hover{background:#5140cd}
.tbe-button-light{background:#f2f0ff;color:#5140bf;box-shadow:none}
.tbe-button-light:hover{background:#e8e3ff}
.tbe-button:focus-visible,.tbe-page a:focus-visible,.tbe-page button:focus-visible{outline:3px solid #a99af5;outline-offset:2px}
.tbe-filters{margin:0 0 22px;background:#fff;border:1px solid #e4e3ef;border-radius:20px;padding:19px 22px;box-shadow:0 10px 30px rgba(24,17,62,.035)}
.tbe-filters summary{font-weight:750;cursor:pointer}
.tbe-filters input,.tbe-filters select{border:1px solid #dcd9ea;border-radius:10px;min-height:41px;padding:7px 11px;max-width:100%;background:#fff;color:#23213d;font:inherit}
.tbe-filters input[type=checkbox]{min-height:0;width:16px;height:16px;accent-color:#604fe2}
.tbe-filters .tbe-filter-row{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.tbe-filters .tbe-filter-row label{display:grid;gap:6px;font-size:13px}
.tbe-calendar{background:#fff;border:1px solid #e7e5f1;border-radius:22px;padding:clamp(13px,2vw,26px);box-shadow:0 12px 38px rgba(24,17,62,.04);min-width:0}
.tbe-cal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.tbe-cal-head h2{margin:4px 0;font-size:clamp(20px,2.3vw,28px)}
.tbe-cal-head small{font-size:12px;color:#79758f}
.tbe-month-nav{display:flex;align-items:center;gap:6px}
.tbe-month-nav a{display:grid;place-items:center;min-width:36px;height:37px;padding:0 9px;border:1px solid #e8e7f2;border-radius:10px;text-decoration:none;color:#5246c7;background:#f9f8fe;font-size:18px;font-weight:750}
.tbe-month-nav a:nth-child(2){font-size:12px}
.tbe-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;min-width:0}
.tbe-weekday{text-align:center;color:#8c87a2;font-size:12px;font-weight:700;padding:7px 0}
.tbe-cal-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:1.35;min-height:47px;min-width:0;background:#f6f6fc;color:#25213f;border:1px solid transparent;border-radius:11px;font:inherit;font-size:14px;cursor:pointer;transition:background .15s,border-color .15s}
.tbe-cal-day:hover{background:#eceaff}
.tbe-cal-day.is-today{border-color:#c0b9ed}
.tbe-cal-day.is-selected{background:#6350df;border-color:#6350df;color:#fff;box-shadow:0 5px 15px rgba(99,80,223,.25)}
.tbe-day-marks{height:6px;display:flex;gap:3px}
.tbe-dot-event,.tbe-dot-occasion{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:#7a67eb}
.tbe-dot-occasion{background:#f2a43b}
.tbe-cal-day.is-selected .tbe-dot-event{background:#fff}
.tbe-legend{display:flex;gap:20px;align-items:center;margin-top:15px;font-size:12px;color:#6b6784}
.tbe-legend span{display:inline-flex;align-items:center;gap:7px}
.tbe-results{margin:23px 0 0}
.tbe-results>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}
.tbe-results h2{font-size:20px;margin:0 0 5px}
.tbe-selected-date{font-size:12px;color:#736e90;margin:0;direction:ltr;text-align:start}
.tbe-result-count{border-radius:999px;background:#efeafe;color:#5743bd;padding:6px 13px;font-size:13px;font-weight:700}
.tbe-event-card{background:#fff;border:1px solid #e6e5ef;border-radius:17px;padding:18px 22px;margin:10px 0;min-width:0}
.tbe-event-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#817d97;font-size:12px}
.tbe-tag{font-size:11px;font-weight:750;border-radius:999px;padding:5px 11px;background:#ede9ff;color:#5743c6;display:inline-block}
.tbe-tag-occasion{background:#fff3df;color:#a66616}
.tbe-event-card h3{font-size:17px;margin:10px 0 7px;line-height:1.5}
.tbe-event-card h3 a{text-decoration:none;color:#262144}
.tbe-event-card h3 a:hover{color:#5947d2}
.tbe-place{font-size:13px;color:#66617e;margin:6px 0}
.tbe-description{font-size:13px;color:#615e74;line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tbe-links{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:12px;font-size:13px}
.tbe-links a{text-decoration:none;color:#5442bf;font-weight:650}
.tbe-empty{background:#fff;border:1px dashed #d9d5ea;border-radius:15px;padding:26px 18px;color:#77708f;text-align:center}
.tbe-disclaimer{font-size:12px;color:#77718c;background:#f7f6ff;padding:14px 18px;border-radius:12px;line-height:1.9}
.tbe-back{display:inline-flex;color:#5746c7;text-decoration:none;font-size:13px;margin-bottom:16px}
.tbe-detail{max-width:900px;margin:0 auto;background:white;border:1px solid #e7e5f1;border-radius:22px;padding:clamp(20px,4vw,42px);box-shadow:0 12px 38px rgba(24,17,62,.04)}
.tbe-detail h1{font-size:clamp(25px,3vw,36px);line-height:1.45;margin:20px 0}
.tbe-detail-facts{display:flex;flex-wrap:wrap;gap:10px 22px;color:#625e79;font-size:14px}
.tbe-detail-description{line-height:2;white-space:normal;margin:28px 0;font-size:15px}
.tbe-detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.tbe-form-wrap{max-width:860px;margin-inline:auto}
.tbe-form-intro{margin:0 0 23px}
.tbe-form-intro h1{font-size:clamp(25px,3vw,36px);margin:5px 0 9px}
.tbe-form-intro p{color:#77728d;line-height:1.8}
.tbe-form{background:white;border:1px solid #e5e3f0;border-radius:22px;padding:clamp(16px,3vw,33px);box-shadow:0 12px 38px rgba(24,17,62,.045)}
.tbe-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:0 0 28px;padding:0}
.tbe-steps li{background:#f7f6fb;color:#928ca7;border-radius:12px;padding:11px 5px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px}
.tbe-steps li span{font-size:15px;font-weight:800}
.tbe-steps li small{font-size:11px}
.tbe-steps li.is-current{background:#efeaff;color:#5842d5}
.tbe-step{border:none;min-width:0;padding:0;margin:0}
.tbe-step legend{font-size:19px;font-weight:800;margin:0 0 18px}
.tbe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tbe-field{display:grid;gap:8px;min-width:0;color:#292543;font-size:13px;font-weight:700}
.tbe-field.tbe-span{grid-column:1/-1}
.tbe-field input,.tbe-field select,.tbe-field textarea{width:100%;min-width:0;max-width:100%;height:47px;padding:12px 13px;border:1px solid #d9d6e8;border-radius:11px;background:#fff;font:inherit;color:#242039;font-weight:400}
.tbe-field textarea{height:auto;min-height:126px;resize:vertical;line-height:1.65}
.tbe-field input:focus,.tbe-field select:focus,.tbe-field textarea:focus{outline:2px solid #b9afff;outline-offset:0;border-color:#8270dd}
.tbe-actions{display:flex;justify-content:space-between;gap:12px;margin-top:26px}
.tbe-actions [data-tbe-next],.tbe-actions [data-tbe-submit]{margin-inline-start:auto}
.tbe-form-note{font-size:12px;color:#716c84;line-height:1.9;margin-top:22px}
@media(max-width:700px){.tbe-page{padding:16px 10px 40px}.tbe-calendar{border-radius:16px;padding:12px}.tbe-calendar-grid{gap:3px}.tbe-cal-day{min-height:42px;aspect-ratio:1.08;font-size:12px;border-radius:8px}.tbe-cal-head{flex-wrap:wrap}.tbe-event-card{padding:16px}.tbe-fields{grid-template-columns:minmax(0,1fr)}.tbe-steps{gap:4px}.tbe-steps li{padding:9px 3px}.tbe-steps li small{font-size:10px}.tbe-filters{padding:14px}}

/* Up-front country preferences. Real c[] form controls remain in the complete picker. */
.tbe-country-bar{display:grid;gap:12px;min-width:0}
.tbe-country-title{display:grid;gap:5px}
.tbe-country-title strong{font-size:16px;line-height:1.45}
.tbe-country-title small{color:#77718d;font-size:12px;line-height:1.6}
.tbe-country-pills{display:flex;gap:9px;flex-wrap:wrap;align-items:center;min-width:0}
.tbe-country-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #e0ddef;background:#f8f7fd;border-radius:999px;padding:8px 11px;cursor:pointer;font-size:13px;line-height:1.35;white-space:nowrap;transition:background .15s,border-color .15s}
.tbe-country-pill:has(input:checked){background:#eeeaff;border-color:#8d7ae8;color:#4935b5;font-weight:700}
.tbe-country-pill input,.tbe-filters input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:#6350df;flex:none}
.tbe-country-all{border:1px solid #dcd4ff;background:white;color:#513fba;border-radius:999px;padding:9px 13px;cursor:pointer;font:inherit;font-size:12px;font-weight:750}
.tbe-more-countries{border-top:1px solid #eae8f1;padding-top:11px}
.tbe-more-countries summary{font-size:13px;color:#5344bd;cursor:pointer}
.tbe-country-search-label{display:grid;gap:6px;margin:12px 0;color:#555071;font-size:13px}
.tbe-country-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:7px;max-height:270px;overflow:auto;padding:5px}
.tbe-continent-title{grid-column:1/-1;font-size:13px;font-weight:800;border-bottom:1px solid #ece9f2;padding-top:9px}
.tbe-country-full{display:flex;align-items:center;gap:7px;font-size:13px;padding:6px 4px;border-radius:8px}
.tbe-country-full:hover{background:#f7f5fe}
.tbe-filters .tbe-filter-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:end}
.tbe-filters .tbe-filter-row label{display:grid;gap:7px;min-width:0}
.tbe-filters .tbe-filter-row label input,.tbe-filters .tbe-filter-row label select{width:100%;min-width:0}
@media(max-width:700px){.tbe-country-pills{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding:3px 0 8px}.tbe-country-pill,.tbe-country-all{scroll-snap-align:start;flex:none}.tbe-filters .tbe-filter-row{grid-template-columns:minmax(0,1fr)}.tbe-country-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tbe-country-all.is-active{background:#f1edff;border-color:#a798ed;color:#4c38b6}
.tbe-filters .tb-btn{display:inline-flex;justify-content:center;align-items:center;background:#604fe2;color:#fff;border:0;border-radius:11px;min-height:44px;font:inherit;font-weight:750;cursor:pointer;padding:10px 16px}
.tbe-filters .tb-btn:hover{background:#4f3ac9}

.tbe-advanced-filters{border-top:1px solid #eae8f1;padding-top:11px}
.tbe-advanced-filters summary{color:#5344bd;cursor:pointer;font-size:13px}
.tbe-advanced-filters .tbe-filter-row{padding-top:13px}

/* 1.12.24: accessible progressive-disclosure countries; keeps 249 choices out of initial view. */
.tb-country-picker{display:block;min-width:0;max-width:100%;margin:6px 0 12px;padding:12px;border:1px solid var(--tb-line,#ddd);border-radius:12px}
.tb-country-picker legend{font-weight:700;padding:0 6px}
.tb-country-continent,.tb-country-other{margin:3px 0;border-bottom:1px solid var(--tb-line,#ddd);padding:4px 0}
.tb-country-continent>summary,.tb-country-other>summary{cursor:pointer;padding:8px 4px;font-weight:650}
.tb-country-other{margin-inline-start:14px}
.tb-country-choice{display:flex!important;align-items:center;gap:8px;margin:3px 0!important;padding:7px 12px;font-weight:400!important;cursor:pointer}
.tb-country-choice input{flex:none}
.tb-geo-home .tb-country-picker{max-height:55vh;overflow:auto}
.tb-home-event-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:9px}
.tb-home-event-list li a{display:grid;gap:3px;text-decoration:none}
.tb-home-event-list li small{color:var(--tb-muted,#777)}

.tbe-geo-continent{border-bottom:1px solid #ccc;padding:4px 0}.tbe-geo-head{font-weight:700;display:flex;align-items:center;gap:8px}.tbe-geo-expand{margin-inline-start:15px}.tbe-geo-other{margin-inline-start:15px}.tbe-geo-expand>summary,.tbe-geo-other>summary{padding:6px 0;cursor:pointer}.tbe-country-options{display:grid;gap:6px}

/* 1.12.26: visible validation and Gregorian date guidance on all devices. */
.tbe-form-error{padding:14px 17px;border:1px solid #e7a3ab;background:#fff2f2;color:#912b3b;border-radius:12px;font-weight:700;line-height:1.8;margin:13px 0}
.tbe-date-note{grid-column:1/-1;font-size:13px;color:var(--tb-muted,#666);line-height:1.9;margin:0}

/* External-source transparency */

/* External source provenance on event cards and detail pages */
.tbe-source-notice{font-size:13px;line-height:1.65;border:1px solid var(--tb-line,#ddd);border-inline-start:3px solid var(--tb-primary,#6852b8);background:var(--tb-soft,#f6f3fd);padding:10px 12px;border-radius:9px;margin:10px 0}.tbe-source-notice p{margin:4px 0 0}
