/* Calendar pages (list, month, one event). Clean look: same colors and fonts as site.css. Plain CSS, no plug-in styles.
   Link this file after site.css:  <link rel="stylesheet" href="/assets/calendar.css">
   Phone width is 767px and under. */

.cal { padding: 40px 15px 60px; background: var(--white); }
.cal-wrap { max-width: 900px; margin: 0 auto; }
.cal-wide { max-width: var(--page); }
.cal a { color: var(--blue); }
.cal a:hover { color: var(--blue-link); }

.cal-h1 { font-family: var(--font-head); font-weight: 800; font-size: var(--h2); line-height: 1.1; color: var(--blue-light); text-align: center; margin: 0 0 10px; }
.cal-h1.cal-left { text-align: left; font-size: var(--h3); margin: 14px 0 8px; }
.cal-count { text-align: center; color: var(--text); margin: 0 0 24px; font-size: 15px; }
.cal-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* view switch */
.cal-views { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.cal .cal-view { display: inline-block; padding: 10px 22px; border: 2px solid var(--blue); border-radius: 6px; font: 600 15px/1 var(--font-body); color: var(--blue); background: var(--white); }
.cal .cal-view:hover { background: var(--blue); color: var(--white); }
.cal .cal-view.is-on { background: var(--blue); color: var(--white); }
.cal .cal-today { border-color: var(--green); color: var(--green); }
.cal .cal-today:hover { background: var(--green); color: var(--white); }

/* list */
.cal-month { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--blue); margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--green); }
.cal-rows { list-style: none; margin: 0; padding: 0; }
.cal-row { display: flex; align-items: flex-start; gap: 18px; padding: 18px 0; border-bottom: 1px solid #e3e6ec; }
.cal-tag { flex: 0 0 64px; text-align: center; background: var(--blue); color: var(--white); border-radius: 8px; padding: 8px 4px; font-family: var(--font-head); }
.cal-tag-wd { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cal-tag-day { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.cal-pic { flex: 0 0 200px; }
.cal-pic img { display: block; width: 200px; height: 200px; object-fit: cover; border-radius: 8px; }
.cal-info { flex: 1 1 auto; min-width: 0; }
.cal-row-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.cal-row-title a { color: var(--blue); }
.cal-when { font-size: 15px; color: var(--text); margin: 0 0 8px; }
.cal-when-big { font-size: 18px; font-weight: 600; color: var(--blue); margin-bottom: 20px; }
.cal-feat { display: inline-block; background: var(--green); color: var(--white); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; letter-spacing: .03em; margin-right: 4px; }
.cal-teaser { margin: 0; color: var(--text); line-height: 1.6; }
.cal .cal-row.is-featured .cal-tag { background: var(--green); }

/* subscribe */
.cal-sub { margin: 40px 0 0; text-align: center; }
.cal-sub summary { display: inline-block; cursor: pointer; padding: 10px 20px; border: 2px solid var(--blue); border-radius: 6px; color: var(--blue); font: 600 15px/1 var(--font-body); list-style: none; }
.cal-sub summary::-webkit-details-marker { display: none; }
.cal-sub[open] summary { background: var(--blue); color: var(--white); }
.cal-sub ul { list-style: none; margin: 12px auto 0; padding: 0; max-width: 320px; border: 1px solid #e3e6ec; border-radius: 8px; overflow: hidden; }
.cal-sub li a { display: block; padding: 11px 16px; border-bottom: 1px solid #e3e6ec; }
.cal-sub li:last-child a { border-bottom: 0; }
.cal-sub li a:hover { background: var(--off-white); }

/* month */
.cal-monthnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.cal-month-title { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--blue); margin: 0; text-align: center; }
.cal .cal-mprev, .cal .cal-mnext { padding: 8px 16px; border: 2px solid var(--blue); border-radius: 6px; font-weight: 600; white-space: nowrap; }
.cal .cal-mprev:hover, .cal .cal-mnext:hover { background: var(--blue); color: var(--white); }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { background: var(--blue); color: var(--white); font: 600 13px/1 var(--font-head); padding: 10px 4px; text-transform: uppercase; letter-spacing: .04em; }
.cal-wd-full { display: none; }
.cal-cell { vertical-align: top; height: 112px; border: 1px solid #e3e6ec; padding: 6px; background: var(--white); }
.cal-cell.is-other { background: var(--off-white); }
.cal-cell.is-other .cal-daynum { color: #b0b4bd; }
.cal-cell.is-today { background: #eef4fb; box-shadow: inset 0 0 0 2px var(--blue-light); }
.cal-daynum { font: 700 14px/1 var(--font-head); color: var(--blue); margin: 0 0 6px; }
.cal .cal-chip { display: block; margin: 0 0 4px; padding: 4px 6px; border-radius: 4px; background: #e8f1fb; border-left: 4px solid var(--blue-light); color: var(--blue); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.cal .cal-chip.is-featured { background: #e6f6e9; border-left-color: var(--green); }
.cal .cal-chip:hover { background: var(--blue); color: var(--white); }
.cal-chip-time { display: block; font-weight: 600; }
.cal-mlist { display: none; list-style: none; margin: 26px 0 0; padding: 0; }
.cal-mday { margin: 0 0 18px; }
.cal-mdate { font: 800 20px/1.2 var(--font-head); color: var(--blue); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 3px solid var(--green); }
.cal-mday ul { list-style: none; margin: 0; padding: 0; }
.cal-mev { padding: 8px 0; }
.cal-mev a { display: block; font: 700 17px/1.3 var(--font-head); }
.cal-mev .cal-when { display: block; margin: 4px 0 0; font-size: 14px; }

/* one event */
.cal .cal-back { display: inline-block; margin: 0 0 8px; font-weight: 600; }
.cal-notice { background: #fff7e0; border-left: 4px solid #f0b429; padding: 10px 14px; margin: 10px 0; color: #5c4a10; }
.cal-hero { margin: 0 0 24px; }
.cal-hero img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 8px; }
.cal-desc { line-height: 1.7; margin: 0 0 30px; }
.cal-desc p { margin: 0 0 14px; }
.cal-desc h2, .cal-desc h3, .cal-desc h4 { font-family: var(--font-head); font-weight: 800; color: var(--blue-light); line-height: 1.2; margin: 22px 0 10px; }
.cal-desc h2 { font-size: 30px; }
.cal-desc h3 { font-size: 22px; }
.cal-desc strong { color: var(--blue); }
.cal-desc a { text-decoration: underline; }
.cal-desc img { max-width: 100%; height: auto; border-radius: 6px; }
.cal-box { border: 1px solid #e3e6ec; border-radius: 10px; padding: 18px 22px; margin: 0 0 20px; background: var(--off-white); }
.cal-box h2 { font: 800 22px/1.2 var(--font-head); color: var(--blue); margin: 0 0 12px; }
.cal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cal .cal-links a { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--green); color: var(--white); font-weight: 600; }
.cal .cal-links a:hover { background: var(--blue-link); color: var(--white); }
.cal-box dl { margin: 0; }
.cal-box dt { font-weight: 700; color: var(--blue); margin: 10px 0 2px; }
.cal-box dd { margin: 0; overflow-wrap: anywhere; }
.cal-organizer ul { list-style: none; margin: 0; padding: 0; }
.cal-organizer li { margin: 0 0 6px; }
.cal-label { font-weight: 700; color: var(--blue); margin-right: 6px; }
.cal-prevnext { display: flex; justify-content: space-between; gap: 14px; margin: 30px 0 0; }
.cal .cal-prevnext a { font-weight: 600; max-width: 48%; }
.cal .cal-pn-next { text-align: right; }

@media (max-width: 767px) {
  .cal { padding: 28px 12px 44px; }
  .cal-row { flex-wrap: wrap; gap: 12px; }
  .cal-tag { flex-basis: 56px; }
  .cal-pic { flex: 1 1 calc(100% - 70px); }
  .cal-pic img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .cal-info { flex: 1 1 100%; }
  .cal-row-title { font-size: 20px; }
  .cal-grid { display: none; }
  .cal-mlist { display: block; }
  .cal-month-title { font-size: 22px; }
  .cal-prevnext { flex-direction: column; }
  .cal .cal-prevnext a { max-width: 100%; text-align: left; }
}

/* Month view: the small event picture (same file as the list view) on each event strip. */
.cal-chip-img { float: left; width: 36px; height: 36px; margin: 0 6px 2px 0; border-radius: 6px; object-fit: cover; }
.cal-chip::after { content: ""; display: block; clear: both; }
.cal-mev.has-img { position: relative; min-height: 52px; padding-left: 48px; }
.cal-mev-img { position: absolute; left: 0; top: 8px; width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
