.country-flag{font-size:21px;vertical-align:middle;letter-spacing:normal}.preferences #country-form{display:flex;gap:5px;align-items:center}.preferences #country-select{max-width:205px}.mark-hint{font-size:12px;color:var(--muted);margin:0 0 9px}.month td.day button{width:100%;height:100%;min-height:25px;border:0;background:transparent;color:inherit;font:inherit;border-radius:4px;padding:0;cursor:pointer;position:relative}.month td.day button:hover{outline:1px solid var(--green);outline-offset:-1px}.month td.religious:not(.holiday){background:var(--mint);color:var(--green);font-weight:750}.month td.history-day{outline:1.5px solid #a16bdf;outline-offset:-1.5px}.month td.history-day button:after{content:'';width:4px;height:4px;border-radius:100%;background:#9b5bd6;position:absolute;right:2px;top:2px}.month td.marked{background:#fff0bc!important;color:#723b00!important;box-shadow:inset 0 0 0 1.5px #e6a128;font-weight:800}.month td.marked.history-day{outline:2px solid #9b5bd6;outline-offset:-2px}.month td.today:not(.marked){color:#fff;background:var(--green2)}.legend .l-religious{background:var(--mint);border:1px solid var(--green)}.legend .l-history{border:1.5px solid #9b5bd6;background:transparent}.legend .l-mark{background:#fff0bc;border:1px solid #e6a128}.religious-date{background:var(--mint);color:var(--green)}.notes-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.notes-head h2{margin-bottom:0}.personal-notes ul{list-style:none;margin:8px 0 0;padding:0}.personal-notes li{display:flex;gap:12px;align-items:baseline;padding:6px 0;border-top:1px solid var(--line);font-size:13px;overflow-wrap:anywhere;break-inside:avoid}.personal-notes li strong{min-width:105px;color:var(--ink)}.personal-notes li span{white-space:pre-wrap;flex:1}.personal-notes li button{padding:3px 6px;font-size:11px;min-height:24px}.history-grid{display:grid;gap:14px}.history-card{display:flex;align-items:flex-start;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.history-card:last-child{border-bottom:0}.history-content{min-width:0;flex:1}.history-meta{font-size:11px;color:var(--muted)}.history-card h3{font-size:16px;line-height:1.3;margin:4px 0 6px}.history-card .history-summary{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 7px}.history-image{margin:0;width:min(32%,200px);flex-shrink:0}.history-image img.event-photo{display:block;max-width:100%;width:100%;height:auto;max-height:170px;object-fit:contain;background:var(--bg);border-radius:7px}.history-image figcaption{font-size:10px;color:var(--muted);line-height:1.4;margin-top:4px;overflow-wrap:anywhere}.license-badge{display:inline-block;vertical-align:middle;width:88px;height:31px;object-fit:contain}.note-dialog{width:min(460px,calc(100% - 30px));max-width:460px;background:var(--paper);color:var(--ink)}.note-dialog form{text-align:left}.note-dialog label{display:block;font-size:13px;font-weight:650;margin-bottom:6px}.note-dialog textarea{display:block;width:100%;min-height:85px;font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:8px;resize:vertical}.dialog-buttons{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}.note-error{color:var(--red)!important}.footer-button{padding:0;color:var(--green);background:none;border:0;font:inherit}.country-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.country-grid a{display:block;padding:8px;border:1px solid var(--line);background:var(--paper);border-radius:6px}.info-wrap{max-width:920px;margin:20px auto;padding:20px}.info-wrap h1{font-size:30px}.info-wrap h2{margin-top:25px}.info-wrap p,.info-wrap li{font-size:14px;line-height:1.6}.info-wrap a{overflow-wrap:anywhere}.info-wrap .license-badge{margin-right:8px}.license-note{font-size:12px;color:var(--muted)}
@media(max-width:730px){.preferences #country-select{max-width:155px}.month td.day button{min-height:24px}.history-card{gap:10px}.history-image{width:30%}.personal-notes li{gap:7px;flex-wrap:wrap}.personal-notes li strong{min-width:75px}}
@media print{@page{size:A4 landscape;margin:8mm}.header,.preferences,.toolbar,.side,.footer,.year-form,.mark-hint,.legend,.section-head,#history,.year-facts,.event-dialog,.notes-head button,#notes-list button,#no-notes{display:none!important}.content{display:block!important}.main{padding:0!important}.intro{display:block!important;margin:0 0 3mm!important}.intro h1{font-size:20pt!important}.intro .kicker{display:block!important;font-size:9pt!important;color:#111!important}.country-flag{display:none}.month,.month.is-current{border:1px solid #999!important;background:white!important;color:#111!important;padding:1.7mm!important;break-inside:avoid;box-shadow:none!important}.months{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1.7mm!important}.month-header{margin:0 0 1mm!important;min-height:0!important}.month h3{font-size:10pt!important}.month-info{display:none!important}.month table{border-spacing:1px!important}.month th{height:3.1mm!important;font-size:7pt!important}.month tbody th,.month tbody td{height:4.1mm!important;font-size:7.5pt!important}.month td.day button{min-height:0!important;padding:0!important;font-size:7.5pt!important}.month td.holiday{color:#a0001d!important;background:#fbecee!important}.month td.religious:not(.holiday){color:#176b59!important;background:#e8f4ee!important}.month td.marked{background:#fff0bc!important;color:#723b00!important;box-shadow:inset 0 0 0 1px #c47c00!important}.month td.history-day{outline:1px solid #8242bc!important;outline-offset:-1px!important}.month td,.month th,.month button,.personal-notes{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}.personal-notes.details.has-notes{display:block!important;background:white!important;color:#111!important;box-shadow:none!important;border:0!important;padding:2mm 0 0!important;margin:3mm 0 0!important}.personal-notes:not(.has-notes){display:none!important}.personal-notes h2{color:#111!important;font-size:12pt;margin:0}.personal-notes li{color:#111!important;font-size:9pt;padding:1.2mm 0}.personal-notes li strong{color:#111!important}.personal-notes .notes-head{display:block!important}.personal-notes ul{margin:1mm 0 0}.personal-notes li span{color:#111!important}.personal-notes h2{break-after:avoid}.month td.today:not(.marked){background:#fff!important;color:#111!important}}
