:root{--discovery-accent:#315b44;--discovery-paper:#f6f4ec;--discovery-ink:#1c3028}body[data-theme=prairie]{--discovery-accent:#82613b;--discovery-paper:#f7f0e4}body[data-theme=sea]{--discovery-accent:#176878;--discovery-paper:#f0f6f3}.preview-note{padding:9px 18px;background:#e5c776;color:#263027;text-align:center;font:600 13px/1.5 system-ui}.discovery-panel{max-width:1180px;margin:28px auto;padding:24px;background:var(--discovery-paper);color:var(--discovery-ink);border-radius:18px}.discovery-panel h2{font:600 25px/1.3 system-ui;margin:0 0 18px}.discovery-panel a{color:var(--discovery-accent)}.discovery-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.discovery-month{background:#fff;padding:16px;border-radius:12px;min-width:0}.discovery-month h3{margin:0 0 12px;font:600 17px system-ui}.discovery-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.discovery-day{min-height:46px;border:1px solid #e1e6de;border-radius:5px;padding:4px;font:12px system-ui}.discovery-weekday{font:600 11px system-ui;text-align:center;padding:5px}.discovery-day.empty{border-color:transparent}.discovery-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--discovery-accent);margin:2px}.discovery-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0}.discovery-actions button{padding:8px 14px;border:1px solid #b7c6b7;border-radius:7px;background:#fff;color:#213b2a;cursor:pointer}.discovery-actions button:disabled{opacity:.4;cursor:default}.discovery-calendar-page[hidden]{display:none}.discovery-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.discovery-card{display:block;background:#fff;border:1px solid #dbe2d8;border-radius:12px;padding:18px;text-decoration:none}.discovery-card h3{margin:8px 0;font:600 18px/1.35 system-ui}.discovery-card p{font:14px/1.6 system-ui;color:#3e5047}.discovery-status{font:600 11px system-ui;text-transform:uppercase;letter-spacing:.06em}.discovery-empty{padding:25px;background:#fff;border:1px dashed #bdcabe;border-radius:10px}.discovery-cross{border-top:1px solid #d5dfd3;margin-top:24px;padding-top:18px}.discovery-cross nav{display:flex;gap:18px;flex-wrap:wrap}.preview-hub{max-width:950px;margin:50px auto;padding:30px}.preview-hub a{display:block;margin:20px 0;padding:22px;border:1px solid #ccd8cc;border-radius:12px;color:#264f37}.article .discovery-status{display:block;margin:16px 0}.langs{display:flex;flex-wrap:wrap;gap:16px}.sourcebox a{overflow-wrap:anywhere}@media(max-width:640px){.discovery-panel{padding:16px;margin:18px 10px}.discovery-months,.discovery-cards{grid-template-columns:1fr}.discovery-day{min-height:40px}.discovery-actions{flex-wrap:wrap}}
:where([data-calendar]) [hidden]{display:none!important}
.discovery-filter{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:22px 0 8px;font:500 14px/1.5 system-ui}
.discovery-filter label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.discovery-filter select{max-width:100%;min-height:44px;padding:9px 32px 9px 12px;border:1px solid #93a895;border-radius:8px;background:#fff;color:#1c3028;font:500 15px system-ui}
[data-calendar] a:focus-visible,[data-calendar] button:focus-visible,[data-calendar] select:focus-visible{outline:3px solid #82613b;outline-offset:3px}
[data-calendar-count],.discovery-calendar-note{font:14px/1.6 system-ui;color:#3e5047}
.discovery-overview-note{border-left:3px solid var(--discovery-accent);padding:10px 14px;background:#fff;border-radius:0 8px 8px 0}
.discovery-day[data-duration-active=true]{background:#e5eee3;border-color:#b5c9b2}
.discovery-duration-trigger{display:flex;align-items:center;justify-content:space-between;gap:3px;width:100%;min-height:24px;margin-top:2px;padding:2px 3px;border:0;border-radius:4px;background:transparent;color:#294c32;font:600 11px/1.2 system-ui;cursor:pointer}
.discovery-duration-trigger:hover,.discovery-duration-trigger[aria-expanded=true]{background:#ccdfc8}
.discovery-duration-trigger:disabled{cursor:default;opacity:1}
.discovery-duration-bar{display:block;flex:1;min-width:7px;height:5px;border-radius:2px;background:#50794e}
.discovery-calendar-legend{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0 4px;font:13px/1.5 system-ui}
.discovery-calendar-legend>span{display:flex;align-items:center;gap:9px}
.discovery-legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--discovery-accent)}
.discovery-legend-duration{display:inline-block;width:26px;height:17px;border-radius:3px;background:#e5eee3;border:1px solid #b5c9b2;box-shadow:inset 0 -4px #50794e}
.discovery-duration-panel{margin-top:18px;padding:18px;background:#fff;border:1px solid #b5c9b2;border-radius:12px}
.discovery-duration-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.discovery-duration-header h3{margin:0;font:600 19px/1.4 system-ui}
.discovery-duration-header button{min-height:40px;padding:7px 12px;border:1px solid #93a895;border-radius:6px;background:#fff;color:#1c3028;cursor:pointer}
.discovery-duration-panel>p{font:13px/1.5 system-ui;color:#3e5047}
.discovery-duration-panel ul{padding-left:22px;margin-bottom:0}.discovery-duration-panel li{margin:12px 0;font:14px/1.6 system-ui}
.discovery-event-group{margin:28px 0}.discovery-event-group>h3,.discovery-event-group>summary{font:600 20px/1.4 system-ui}.discovery-event-group>summary{cursor:pointer;padding:10px 0}
.discovery-language{display:block;font:12px/1.5 system-ui;color:#55645d;margin-top:5px}
.discovery-dot{width:14px;height:14px;margin:2px;border:2px solid white;box-sizing:border-box}
.discovery-hub{margin:0;background:#e9eee6;color:#1c3028;font-family:system-ui,sans-serif}
.discovery-hub-header,.discovery-hub-regions{max-width:1180px;margin:42px auto;padding:0 24px}
.discovery-hub-header>p{text-transform:uppercase;letter-spacing:.16em;font-size:12px}.discovery-hub-header h1{font-size:clamp(28px,5vw,48px);font-weight:550;letter-spacing:-.03em;margin:10px 0 22px}
.discovery-hub .langs a{color:#315b44}.discovery-hub .langs a[aria-current]{font-weight:700}
.discovery-region-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.discovery-region-links a{display:flex;flex-direction:column;gap:10px;padding:24px;background:#f6f4ec;border:1px solid #ccd8cc;border-radius:12px;color:#264f37;text-decoration:none}.discovery-region-links span{font-size:14px}
@media(max-width:640px){.discovery-filter{align-items:flex-start}.discovery-filter label{width:100%}.discovery-filter select{width:100%}.discovery-region-links{grid-template-columns:1fr}.discovery-hub-header,.discovery-hub-regions{padding:0 18px}.discovery-dot{width:12px;height:12px;margin:1px}.discovery-actions [data-calendar-period]{font:12px/1.4 system-ui}}

/* One primary project per event; small local SVGs, independent of emoji fonts. */
.discovery-project-flag{display:inline-block;width:20px;height:14px;object-fit:contain;flex:none;vertical-align:middle}
.discovery-day-markers{display:flex;flex-wrap:wrap;gap:2px;margin-top:2px}
.discovery-event-marker{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;box-sizing:border-box;border-radius:3px;text-decoration:none;flex:none}
.discovery-event-marker:hover{background:#d5e3d1}
.discovery-project-badge{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.discovery-project-legend{display:flex;flex-wrap:wrap;gap:10px 22px;margin:14px 0 4px;font:600 12px/1.5 system-ui}
.discovery-project-legend>span{display:inline-flex;align-items:center;gap:7px}
.discovery-duration-panel a>.discovery-project-flag{margin-right:7px}
.discovery-region-picker{margin:22px 0 12px;font:500 14px/1.5 system-ui}
.discovery-region-picker>p{margin:0 0 8px}
.discovery-region-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.discovery-region-choice{display:flex;align-items:center;gap:10px;min-width:0;min-height:60px;padding:11px 13px;border:1px solid #b7c6b7;border-radius:10px;background:#fff;color:#1c3028;text-align:left;font:500 14px/1.4 system-ui;cursor:pointer}
.discovery-region-choice[aria-pressed=true]{border-color:var(--discovery-accent);box-shadow:inset 0 0 0 1px var(--discovery-accent);background:#e7eee4}
.discovery-region-choice:hover{border-color:var(--discovery-accent);background:#eff3eb}
.discovery-region-choice:disabled{cursor:default}
.discovery-region-choice .discovery-project-flag{width:36px;height:26px}
.discovery-region-choice>span{min-width:0;overflow-wrap:anywhere}
.discovery-region-choice strong,.discovery-region-choice small{display:block}
.discovery-region-choice strong{font-weight:650;letter-spacing:.03em}
.discovery-region-choice small{margin-top:2px;font-size:12px;color:#405248}
@media(max-width:800px){.discovery-region-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.discovery-region-choices{grid-template-columns:1fr}}
@media(max-width:360px){.discovery-month{padding:10px}.discovery-day{padding:3px}.discovery-grid{gap:2px}}

/* 0.7.5: keep the seven-column calendar; enlarge its surrounding controls. */
@media(max-width:800px){
 .discovery-actions button,.discovery-duration-header button{min-height:44px;white-space:normal}
 .discovery-filter select{font-size:16px}
 .discovery-duration-header>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .discovery-duration-panel a,.discovery-card h3{overflow-wrap:anywhere}
 .discovery-hub .langs a,.discovery-cross nav a{display:inline-flex;align-items:center;min-height:44px}
}
