
*{box-sizing:border-box}body{margin:0;background:#fafbf8;color:#20251f;font:16px/1.6 'Segoe UI',Arial,sans-serif}a{color:inherit;text-underline-offset:4px}a:focus-visible,summary:focus-visible{outline:3px solid #336ab0;outline-offset:4px}.wrap{max-width:860px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-bottom:24px}.brand{font-size:28px;font-weight:800}main>section{background:var(--mode-accent,#ffda6b);border-radius:24px;padding:28px;margin-bottom:24px}h1{font-size:clamp(28px,5vw,42px);line-height:1.2;margin:8px 0 16px}h2{font-size:23px}p{margin:12px 0}details{background:#fff;border:1px solid #dce1d7;border-radius:16px;padding:18px;margin:12px 0}summary{cursor:pointer;font-weight:650}details p{color:#485143}.notice{font-size:14px}footer{padding:24px 0;font-size:14px}.skip{position:absolute;left:24px;top:-100px;background:white;padding:12px}.skip:focus{top:8px}@media(max-width:380px){.wrap{padding:16px}main>section{padding:22px}header{flex-wrap:wrap}}
button{font:inherit;cursor:pointer;border:1px solid #bcc4b6;background:white;border-radius:10px;padding:10px 16px;color:#20251f}button:focus-visible{outline:3px solid #336ab0;outline-offset:4px}.calendar-actions{display:flex;justify-content:space-between;gap:12px}.calendar{background:white!important;border:1px solid #dce1d7}table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center}caption{font-size:24px;font-weight:700;padding:20px 0}th{font-size:14px;color:#485143}td{height:48px;padding:4px}td time{display:inline-block;min-width:32px;padding:4px;border-radius:50%}time[aria-current="date"]{background:var(--mode-accent,#ffda6b);font-weight:700}abbr{text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:380px){.calendar{padding:12px!important}caption{font-size:21px}td{height:42px}}

#profile-copy{font:inherit;max-width:100%;margin:12px 0}#profile-preview{margin-top:28px}#profile-preview p{white-space:pre-line;overflow-wrap:anywhere}.profile-section{background:white;border:1px solid #dce1d7;border-radius:20px;padding:24px;margin:16px 0}.profile-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px}.profile-projects img{width:100%;height:220px;object-fit:contain;border-radius:14px;background:#f0f2eb}.profile-projects h4{overflow-wrap:anywhere}

#profile-preview h2,#profile-preview h3,#profile-preview h4{overflow-wrap:anywhere}

@media print{body.profile-page{background:white;color:#20251f}.profile-page .wrap{max-width:none;padding:0}.profile-page header,.profile-page footer,.profile-page .skip,.profile-page label[for="profile-copy"],.profile-page #profile-copy,.profile-page #profile-status,.profile-page #profile-clear,.profile-page #profile-print,.profile-page #profile-print-help{display:none}.profile-page .profile-intro{background:white;padding:0;border-radius:0}.profile-page .profile-intro>p:not(.notice),.profile-page .profile-intro h1{display:none}.profile-page .profile-section{padding:16px;border-color:#aaa;break-inside:avoid}.profile-page .profile-projects{display:block}.profile-page .profile-projects>section{break-inside:avoid;margin-bottom:20px}.profile-page .profile-projects img{height:auto;max-height:260px;width:auto;max-width:100%}.profile-page #profile-preview{margin-top:0}}

header nav{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:flex-end}header nav a[aria-current="page"]{font-weight:700;text-decoration-thickness:3px}@media(max-width:600px){header{align-items:flex-start}header nav{font-size:14px;gap:8px 12px}}

#profile-clear,#profile-print{margin:0 8px 10px 0}

#calendar-month{display:block;font:inherit;max-width:100%;min-height:44px;border:1px solid #bcc4b6;border-radius:10px;padding:8px;margin-top:8px}

.profile-loaded .profile-intro{padding:18px}.profile-loaded .profile-intro>p:not(.notice){display:none}.profile-loaded .profile-intro h1{font-size:24px;margin:0}.profile-loaded #profile-preview>h2{font-size:clamp(26px,5vw,36px);line-height:1.2}

.profile-project-filter input{font:inherit;width:100%;box-sizing:border-box;min-height:44px;border:1px solid #bcc4b6;border-radius:10px;padding:10px}.profile-project-filter input:focus-visible{outline:3px solid #336ab0;outline-offset:4px}
@media print{.profile-page .profile-project-filter{display:none}.profile-page .profile-projects>section[hidden]{display:block!important}}

.help-filter input{font:inherit;width:100%;box-sizing:border-box;min-height:44px;border:1px solid #bcc4b6;border-radius:10px;padding:10px}.help-filter input:focus-visible{outline:3px solid #336ab0;outline-offset:4px}

header .brand{display:block;width:112px;height:43px;overflow:hidden;position:relative;flex-shrink:0}header .brand img{position:absolute;width:200px;max-width:none;left:-43px;top:-80px}header nav{display:flex;flex-wrap:wrap;gap:12px}header{flex-wrap:wrap}

#calendar-private[hidden]{display:none}#calendar-login input:not([type=checkbox]){display:block;width:100%;min-height:44px;font:inherit;border:1px solid #aebba5;border-radius:10px;padding:10px}#calendar-login label{display:block;margin:16px 0 6px}#calendar-login input:focus-visible{outline:3px solid #336ab0;outline-offset:3px}

footer{margin-top:28px;padding:24px 0;border-top:1px solid #e8ebe4;color:#62695f;font-size:14px;line-height:1.6}

#calendar-reservation-list article{overflow-wrap:anywhere;min-width:0;padding:18px;border:1px solid #dce1d7;border-radius:16px;background:#fff;margin:16px 0}#calendar-reservation-list article:focus{outline:3px solid #336ab0;outline-offset:3px}

#calendar-reservation-status:focus{outline:3px solid #526c35;outline-offset:4px;border-radius:6px}

/* Touch navigation and device safe areas; desktop keeps its existing layout. */
@media screen and (max-width:600px){
.wrap{padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
header nav a{display:inline-flex;align-items:center;min-height:44px;padding:6px 8px}
summary{min-height:44px;padding:8px 0}
button{min-height:44px}
input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px}
}

#calendar-reservation-list article p{white-space:pre-wrap}


/* Recovery page: neutral, task-focused and usable without JavaScript. */
.not-found-page .brand{min-block-size:44px}
.not-found-panel{padding-block:clamp(32px,7vh,88px);max-inline-size:44rem}
.not-found-code{font-weight:700;margin-block:0 20px}
.not-found-panel h1{max-inline-size:18ch}
.not-found-description{max-inline-size:42ch}
.not-found-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:28px}
.not-found-actions a{display:inline-flex;justify-content:center;align-items:center;min-block-size:48px;max-inline-size:100%;padding:12px 20px;border:1px solid currentColor;border-radius:12px;text-align:center;text-decoration:none;font-weight:650;overflow-wrap:anywhere}
.not-found-actions .not-found-home{background:#20251f;color:#fff;border-color:#20251f}
html[data-theme="dark"] .not-found-actions .not-found-home{background:#edf2e9;color:#141a14;border-color:#edf2e9}
@media(max-width:480px){.not-found-actions{flex-direction:column;align-items:stretch}}

.not-found-page .skip{background:#20251f;color:#fff}
html[data-theme="dark"] .not-found-page .brand img{filter:brightness(0) invert(1)}
