.pfmp-calendar{border:1px solid #e2d4da;border-radius:18px;background:#fff;padding:clamp(18px,3vw,34px);margin:28px 0 18px;color:#30262c}
.pfmp-calendar-heading h2{margin:12px 0 10px;color:#762039;font-size:clamp(24px,3vw,34px)}
.pfmp-calendar-heading p{margin:0 0 22px;max-width:65ch;color:#655f64}
.pfmp-calendar-filters{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.pfmp-calendar-filters label{display:flex;flex-direction:column;gap:8px;flex:1 1 340px;min-width:0;font-weight:650}
.pfmp-calendar-filters select{box-sizing:border-box;min-height:48px;width:100%;max-width:100%;border:1px solid #bbaab2;border-radius:8px;padding:10px;color:#30262c;background:#fff;font:inherit;font-weight:400}
.pfmp-calendar-filters button{min-height:48px;padding:10px 17px;border:1px solid #762039;border-radius:8px;color:#762039;background:#faf6f3;font:inherit;cursor:pointer}
.pfmp-calendar-filters button[aria-pressed=true]{background:#762039;color:#fff}
.pfmp-calendar-filters :is(button,select):focus-visible{outline:3px solid #277bb3;outline-offset:3px}
.pfmp-calendar-status{font-size:14px;color:#655f64;margin:16px 0}
.pfmp-calendar-results{display:grid;gap:18px}
.pfmp-class{border:1px solid #e2d4da;border-radius:12px;overflow:hidden;margin:0}
.pfmp-class h3{background:#f6f0ed;color:#762039;margin:0;padding:16px 20px;font-size:20px}
.pfmp-class h3 span{display:block;font-size:15px;font-weight:400;margin-top:6px;line-height:1.5}
.pfmp-class ul{list-style:none;padding:0;margin:0}
.pfmp-class li{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(0,1.4fr);gap:18px;padding:16px 20px;align-items:center;line-height:1.65}
.pfmp-class li+li{border-top:1px solid #eee5e8}
.pfmp-period-kind{font-size:14px;display:inline-block;color:#762039}
.pfmp-period-kind.is-y{color:#8b2760}.pfmp-period-kind.is-ufa{color:#725715}
.pfmp-calendar-note{border-left:3px solid #b58f65;background:#faf8f4;margin-top:22px;padding:12px 18px}
.pfmp-calendar-note p{font-size:14px;line-height:1.6;margin:6px 0}
/* Compact, predictable navigation: keep tree beside filters on desktop. */
.admin-app .page-browser-tree .page-tree-row:focus-visible{outline:2px solid #2271b1;outline-offset:-3px}
.admin-app .page-tree-row.selected{border-left:4px solid #2271b1}
@media(max-width:640px){.pfmp-calendar-filters label{flex-basis:100%}.pfmp-calendar-filters button{width:100%}.pfmp-class li{grid-template-columns:1fr;gap:4px;padding:14px}.pfmp-class h3{padding:14px}.pfmp-calendar-note{padding:10px 12px}}
@media print{.pfmp-calendar-filters,.pfmp-calendar-status{display:none}.pfmp-class{break-inside:avoid}.pfmp-calendar{border:0;padding:0}}
.pfmp-class>p{padding:16px 20px}
/* Compact brochure card below the essential contribution information. */
.cms-block[data-cms-block="tax-flyer"] .cms-feature{grid-template-columns:minmax(0,1fr) 120px;gap:24px;align-items:center}
.cms-block[data-cms-block="tax-flyer"] img.cms-feature-image{aspect-ratio:auto;object-fit:contain;width:120px;max-width:100%;height:auto;max-height:none;margin:0;border-radius:4px;background:white;box-shadow:0 3px 12px #3a162018}
.cms-block[data-cms-block="tax-flyer"] h2{font-size:clamp(20px,2vw,24px);line-height:1.3;margin:0 0 12px}
.cms-block[data-cms-block="tax-flyer"] figure{margin:0}
@media(max-width:640px){.cms-block[data-cms-block="tax-flyer"] .cms-feature{grid-template-columns:minmax(0,1fr) 76px;gap:12px}.cms-block[data-cms-block="tax-flyer"] img.cms-feature-image{width:76px}.cms-block[data-cms-block="tax-flyer"] a{font-size:14px;padding:10px 12px}}

.cms-brochure-preview{display:inline-block;cursor:zoom-in;border-radius:4px;line-height:0}
.cms-brochure-preview:focus-visible{outline:3px solid #277bb3;outline-offset:5px}
.cms-brochure-preview:hover{box-shadow:0 4px 16px #3a16202b}

.pfmp-checklist-help{margin:0 0 20px;line-height:1.6;color:#5e5357}
.pfmp-checklist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.pfmp-checklist-card{min-width:0;margin:0;border:1px solid #e2d4da;border-radius:12px;background:#fff;overflow:hidden}
.pfmp-checklist-card h3{font-size:20px;line-height:1.4;color:#762039;padding:20px 20px 16px;margin:0}
.pfmp-checklist-card .document-preview{height:auto;aspect-ratio:210/320;border:0;border-top:1px solid #eee5e8;border-bottom:1px solid #eee5e8;border-radius:0}
.pfmp-checklist-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 20px;font-size:14px}
@media(max-width:760px){.pfmp-checklist-grid{grid-template-columns:1fr}.pfmp-checklist-card h3{font-size:18px;padding:16px}.pfmp-checklist-actions{padding:14px 16px}.pfmp-checklist-card .document-preview{min-height:360px}}

[data-cms-block="pfmp-documents"] .resource-link>span:first-child{display:flex;flex-direction:column;gap:7px;font-size:16px}
[data-cms-block="pfmp-documents"] .resource-link>span:last-child{flex:0 0 auto;font-size:20px}
[data-cms-block="pfmp-documents"] .resource-link small{font-size:14px;line-height:1.5;color:#655f64}

/* Show the actual PDF, with native, keyboard-accessible checkbox controls. */
.pfmp-interactive-pages{border-block:1px solid #eee5e8}
.pfmp-interactive-sheet{position:relative;width:100%;background:#fff;overflow:hidden}
.pfmp-interactive-sheet+.pfmp-interactive-sheet{border-top:1px solid #e2d4da}
.pfmp-interactive-sheet canvas{display:block;width:100%;height:100%}
.pfmp-sheet-checkbox{position:absolute;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;margin:0;z-index:1;background:#fff}
.pfmp-sheet-checkbox::before{content:"";position:absolute;inset:-14px}
.pfmp-sheet-checkbox input{position:relative;appearance:auto;accent-color:#762039;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;cursor:pointer;border-radius:2px}
.pfmp-sheet-checkbox input:focus-visible{outline:3px solid #277bb3;outline-offset:4px}
.pfmp-sheet-checkbox:hover input{outline:2px solid #76203955;outline-offset:3px}
.pfmp-checklist-progress{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:0 20px 14px;font-size:14px;color:#655f64}
.pfmp-checklist-card button.text-link{border:0;background:transparent;font:inherit;padding:4px 0;color:#762039;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.pfmp-checklist-card button:disabled{opacity:.5;cursor:default}
.pfmp-checklist-card button:focus-visible{outline:3px solid #277bb3;outline-offset:4px}
.pfmp-checklist-loading,.pfmp-checklist-error{margin:16px 20px;line-height:1.6}
.pfmp-checklist-error{color:#8c263e}
.pfmp-sheet-error{position:absolute;inset:35% 10% auto;background:#fff;padding:16px;border:1px solid #e2d4da;font-size:14px}
/* Remove accumulated section padding directly after the PFMP calendar. */
.cms-section-layout:has([data-cms-block="pfmp-demarches"]){row-gap:0}
.cms-section-layout:has([data-cms-block="pfmp-demarches"]) [data-cms-block="content"]{padding-bottom:0}
.cms-section-layout:has([data-cms-block="pfmp-demarches"]) [data-cms-block="content"] .pdf-adaptation{margin-bottom:0;padding-bottom:0;border-bottom:0}
[data-cms-block="pfmp-demarches"]{padding-top:16px}

.pfmp-editor fieldset{min-width:0;border:1px solid #c3c4c7;border-radius:8px;margin:20px 0;padding:20px}
.pfmp-editor legend{font-size:20px;font-weight:700;padding:0 8px}
.pfmp-cms-card{background:#fff;border:1px solid #dcdcde;padding:14px 18px;margin:12px 0;border-radius:6px}
.pfmp-cms-card summary{cursor:pointer;font-weight:650;color:#762039}.pfmp-cms-card summary span{font-weight:400;float:right;color:#655f64}
.pfmp-cms-card[open] summary{margin-bottom:20px}
.pfmp-editor .field{display:flex;flex-direction:column;gap:7px;margin:14px 0}
.pfmp-editor :is(input:not([type=checkbox]),textarea,select){font:inherit;max-width:100%;width:100%;box-sizing:border-box;padding:10px;border:1px solid #a7aaad;border-radius:4px;background:#fff;color:#202a34}
.pfmp-editor textarea{resize:vertical}.pfmp-step-editor{border-top:1px solid #e2e4e7;padding:16px 0}
.pfmp-step-editor .row strong{margin-right:auto}.pfmp-editor .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pfmp-editor button{cursor:pointer;min-height:38px}.pfmp-editor button:disabled{opacity:.5;cursor:default}
.pfmp-period-editor{display:grid;grid-template-columns:1.1fr 1fr 1fr auto;gap:12px;align-items:end;border-top:1px solid #ddd;padding:14px 0}
.pfmp-period-editor label{min-width:0;display:flex;flex-direction:column;gap:6px}.pfmp-editor .pfmp-verified{display:flex;gap:10px;align-items:center;margin:24px 0;font-weight:600}
.pfmp-editor :focus-visible{outline:3px solid #2271b1;outline-offset:3px}
@media(max-width:800px){.pfmp-period-editor{grid-template-columns:1fr 1fr}.pfmp-editor fieldset{padding:14px}.pfmp-cms-card{padding:12px}}

.preconvention-tool details{border:1px solid #e1d4d8;border-radius:16px;background:#faf7f5;padding:1.2rem 1.5rem}.preconvention-tool summary{cursor:pointer;color:#762039;font-weight:700;font-size:1.12rem}.preconvention-tool details[open] summary{margin-bottom:1rem}.preconvention-tool fieldset{border:0;border-top:1px solid #e1d4d8;margin:1.5rem 0;padding:1.2rem 0 0;min-width:0}.preconvention-tool legend{font-weight:700;padding:0 .6rem 0 0;color:#762039}.preconvention-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.preconvention-wide{grid-column:1/-1}.preconvention-fields .field,.preconvention-day .field{display:flex;flex-direction:column;gap:.4rem;font-size:.92rem}.preconvention-tool input,.preconvention-tool textarea,.preconvention-tool select{box-sizing:border-box;min-width:0;width:100%;background:#fff;padding:.65rem;border:1px solid #b8a8af;border-radius:8px;color:#26252a;font:inherit}.preconvention-tool input:focus-visible{outline:3px solid #91b3ff;outline-offset:2px}.preconvention-day{display:grid;grid-template-columns:85px repeat(4,minmax(0,1fr)) 80px;gap:.7rem;align-items:end;padding:.85rem 0;border-bottom:1px solid #e4dcdf}.preconvention-day h4{margin:0 0 .7rem;font-size:1rem}.preconvention-day output{font-weight:700;text-align:right;margin-bottom:.7rem;white-space:nowrap}.preconvention-hour-error{grid-column:2/-1;margin:0;color:#a21c35;font-size:.9rem}.preconvention-tool input[aria-invalid=true]{border-color:#b52340}.preconvention-week{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border-radius:8px;background:#762039;color:#fff}.preconvention-privacy{font-size:.9rem;color:#645a60}.preconvention-blank{font-size:.95rem}.preconvention-tool button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:700px){.preconvention-day{grid-template-columns:repeat(2,minmax(0,1fr))}.preconvention-day h4{grid-column:1/-1}.preconvention-day output{grid-column:1/-1;text-align:left}.preconvention-hour-error{grid-column:1/-1}.preconvention-fields{grid-template-columns:1fr}.preconvention-tool details{padding:1rem}}

button.preconvention-link{font:inherit;text-align:left;width:100%;cursor:pointer;background:#fff;color:inherit}
.preconvention-dialog{margin:auto;padding:0;border:1px solid #e2d4da;border-radius:18px;width:min(1040px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);color:#30262c;background:white;box-shadow:0 24px 80px #25111955}
.preconvention-dialog::backdrop{background:#20111999;backdrop-filter:blur(3px)}
.preconvention-dialog[open]{display:flex;flex-direction:column}
.preconvention-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 26px;border-bottom:1px solid #e2d4da;background:white;flex-shrink:0}
.preconvention-dialog-header h2{margin:0;font-size:25px;color:#762039}
.preconvention-dialog-header .button{white-space:nowrap;font-size:14px;padding:10px 16px}
.preconvention-dialog-body{overflow:auto;padding:20px 28px;overscroll-behavior:contain}
.preconvention-dialog .preconvention-intro{margin-top:0}.preconvention-dialog .preconvention-resume{padding:12px 16px;background:#faf7f5;border-radius:8px}.preconvention-dialog .preconvention-resume summary{font-size:15px}.preconvention-dialog .preconvention-resume .field{display:grid;gap:10px}
.preconvention-dialog .preconvention-download{border-top:1px solid #e2d4da;padding-top:18px}.preconvention-dialog :focus-visible{outline:3px solid #91b3ff;outline-offset:3px}
@media(max-width:700px){.preconvention-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.preconvention-dialog-header{padding:12px 16px}.preconvention-dialog-header h2{font-size:21px}.preconvention-dialog-body{padding:16px}.preconvention-tool input,.preconvention-tool select,.preconvention-tool textarea{font-size:16px}.preconvention-dialog .preconvention-day{padding:18px 0}.preconvention-dialog .preconvention-download>.button{width:100%}}
