/* Photo calendar: scoped styles coordinated with the homepage. */
body.crf-calendar { margin: 0; background: #090909; color: #f0f0f0; font: 16px/1.6 Arial,Helvetica,sans-serif; }
.cal-shell, .cal-shell * { box-sizing: border-box; }
.cal-shell { max-width: 1400px; margin: auto; padding: 28px 24px; }
.cal-shell a { color: #ffb44d; }
.cal-shell a:focus-visible, .cal-shell button:focus-visible, .cal-shell select:focus-visible { outline: 3px solid #61a7ff; outline-offset: 3px; }
.cal-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.cal-eyebrow { margin: 0 0 5px; color: #ffb44d; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cal-heading h1 { margin: 0; font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.2; }
.cal-intro { margin: 8px 0 0; color: #bcbcbc; font-size: .9rem; }
.cal-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-stats > span { background: #181818; border: 1px solid #363636; border-radius: 6px; padding: 8px 13px; color: #bbb; font-size: .8rem; }
.cal-stats strong { color: #ffb44d; font-size: 1.05rem; margin-right: 4px; }
.cal-filter-note { margin: 10px 0 18px; color: #ccc; font-size: .85rem; overflow-wrap: anywhere; }
.cal-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; background: #181818; border: 1px solid #363636; border-radius: 7px; }
.cal-month-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-shell .cal-nav-button, .cal-shell .cal-today-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #7b5927; border-radius: 5px; background: #202020; color: #ffb44d; padding: 8px 12px; font-size: .85rem; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.cal-shell .cal-nav-button:hover, .cal-shell .cal-today-button:hover { color: #111; background: #ffa323; border-color: #ffa323; }
.cal-shell .cal-nav-button.is-disabled { color: #777; border-color: #363636; background: #171717; }
.cal-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cal-jump select, .cal-jump button { min-height: 44px; max-width: 100%; border: 1px solid #999; border-radius: 4px; padding: 8px 10px; font: 16px/1.4 Arial,Helvetica,sans-serif; background: #f4f4f4; color: #111; }
.cal-jump button { background: #ffa323; border-color: #ffa323; font-weight: bold; cursor: pointer; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; color: #aaa; font-size: .75rem; margin: 15px 4px 9px; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffa323; display: inline-block; }
.cal-grid { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 8px; margin: 0; }
.cal-grid th { color: #aaa; font-size: .8rem; font-weight: normal; padding: 4px 0; text-align: center; }
.cal-grid abbr { text-decoration: none; }
.cal-grid td { vertical-align: top; padding: 0; }
.cal-day { display: block; height: 154px; padding: 10px; background: #131313; border: 1px solid #2a2a2a; border-radius: 7px; color: #aaa; text-decoration: none; overflow: hidden; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; line-height: 1.4; }
.cal-day time { color: #aaa; font-weight: 700; font-size: .95rem; }
.cal-shell .cal-day.has-photos { background: #1d1b17; border-color: #80602c; color: #f0f0f0; }
.cal-day.has-photos time { color: #ffbf65; }
.cal-shell .cal-day.has-photos:hover { background: #292217; border-color: #ffb44d; text-decoration: none; }
.cal-count { display: inline-block; padding: 3px 6px; border-radius: 4px; background: #332a1b; color: #ffd394; font-size: .68rem; white-space: nowrap; }
.cal-thumbnail { display: flex; align-items: center; justify-content: center; margin-top: 8px; height: 96px; }
.cal-thumbnail img { display: block; width: auto; height: auto; max-width: 100%; max-height: 96px; border-radius: 3px; }
.cal-empty-message { display: block; margin-top: 45px; text-align: center; color: #828282; font-size: .65rem; }
.cal-cell.is-today .cal-day { outline: 2px solid #ffa323; outline-offset: -2px; }
.cal-cell.is-today time { color: #111; background: #ffa323; border-radius: 4px; padding: 1px 5px; }
.cal-outside { background: transparent; }
.cal-photo-days { display: none; margin-top: 24px; }
.cal-photo-days h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 12px; }
.cal-photo-list { display: grid; gap: 12px; }
.cal-shell .cal-photo-card { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: center; padding: 12px; background: #181818; border: 1px solid #534124; border-radius: 7px; text-decoration: none; }
.cal-photo-card img { display: block; max-width: 96px; max-height: 84px; width: auto; height: auto; margin: auto; border-radius: 3px; }
.cal-photo-card strong { display: block; color: #f0f0f0; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.cal-card-count { display: block; margin-top: 6px; color: #ffb44d; font-size: .85rem; }
.cal-no-results { margin: 22px 8px; color: #ccc; }
.cal-bottom-link { margin: 24px 8px 0; font-size: .9rem; }
.cal-visits { margin: 22px 8px 0; color: #aaa; font-size: .75rem; }
.cal-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
 .cal-count-unit { display: none; }
 .cal-day { height: 132px; padding: 8px; }
 .cal-thumbnail, .cal-thumbnail img { max-height: 78px; }
 .cal-thumbnail { height: 78px; }
 .cal-empty-message { margin-top: 35px; }
}
@media (max-width: 699.98px) {
 .cal-shell { padding: 20px 12px; }
 .cal-heading { align-items: flex-start; gap: 14px; }
 .cal-heading h1 { font-size: 1.9rem; }
 .cal-toolbar { padding: 12px; gap: 12px; }
 .cal-month-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; gap: 6px; }
 .cal-shell .cal-nav-button { padding: 8px 4px; font-size: .75rem; }
 .cal-jump { width: 100%; gap: 6px; }
 .cal-jump select { min-width: 0; }
 .cal-jump select[name="month"] { flex: 1 1 110px; }
 .cal-jump select[name="year"] { flex: 0 1 82px; }
 .cal-jump button { flex: 0 0 auto; }
 .cal-shell .cal-today-button { flex: 0 0 auto; padding: 8px; font-size: .8rem; }
 .cal-grid { border-spacing: 3px; }
 .cal-grid th { font-size: .7rem; }
 .cal-day { height: 72px; padding: 5px 2px; border-radius: 5px; }
 .cal-day-head { flex-direction: column; align-items: center; gap: 4px; }
 .cal-day time { font-size: .85rem; }
 .cal-count { font-size: .65rem; padding: 2px 4px; }
 .cal-thumbnail, .cal-empty-message { display: none; }
 .cal-photo-days { display: block; }
 .cal-legend { font-size: .7rem; margin-left: 3px; }
 .cal-shell .cal-photo-card { grid-template-columns: 84px minmax(0,1fr); gap: 12px; }
 .cal-photo-card img { max-width: 84px; max-height: 80px; }
}
