/* V2.3: one-row, human-first mobile masthead and task-first directories.
   Scoped styles; preserves desktop editorial identity and existing paths. */
.v23-menu-toggle,.v23-language-picker{display:none}
.v23-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}
.v23-directory-purpose{margin:0 0 12px;color:#4f6b68;font-size:12px;line-height:1.75;max-width:810px}
.v23-after-directory{margin:18px 0 12px}
.v23-people-after-results{margin-top:30px;border-top:1px solid #d8e1da;padding-top:22px}
.v23-home-find{max-width:600px;margin:18px 0 13px}
.v23-home-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:5px;border:1px solid #618076;background:#f9fbf7;border-radius:5px}
.v23-home-search input{min-width:0;width:100%;height:43px;border:0;border-radius:3px;background:transparent;padding:8px 12px;color:#183e3f;font-size:13px;font-family:inherit}
.v23-home-search input::placeholder{color:#77898a;opacity:1}
.v23-home-search button{min-height:44px;min-width:75px;padding:9px 14px;border:0;border-radius:3px;background:#b9926d;color:#102d38;font-size:12px;font-weight:760;font-family:inherit;cursor:pointer}
.v23-home-search:focus-within{outline:2px solid #d4b88e;outline-offset:2px}
.v23-home-tasks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:9px}
.v23-home-tasks a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:43px;padding:7px 9px;border:1px solid #718e8a;border-radius:4px;color:#f3f8f3;text-align:center;font-size:11px;font-weight:680;line-height:1.5;text-decoration:none}
.v23-home-tasks a:hover{background:#3e655f;border-color:#d2b78a}
.v23-home-search button:focus-visible,.v23-home-tasks a:focus-visible{outline:3px solid #f3cf9b;outline-offset:2px}
@media(min-width:1021px){
 .v15-site-header .v15-lang a{min-height:39px;min-width:36px;display:inline-flex;align-items:center;justify-content:center;padding:7px 5px}
}
@media(max-width:1020px){
 html{scroll-padding-top:78px}
 .v15-site-header{position:sticky;top:0;z-index:110}
 .v15-site-header .v15-header-shell{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:64px;align-items:center;gap:8px;min-height:64px;position:relative}
 .v15-site-header .v15-masthead-brand{grid-row:1;grid-column:1;min-width:0;max-width:100%;gap:8px}
 .v15-site-header .v15-brand-symbol{width:36px;height:36px;font-size:15px;flex:none}
 .v15-site-header .v15-brand-wordmark b{font-size:12px}
 .v15-site-header .v15-brand-wordmark small{font-size:7px;letter-spacing:.02em}
 .v15-site-header .v15-lang{display:none!important}
 .v23-language-picker{display:block;grid-column:2;grid-row:1;position:relative;z-index:5}
 .v23-language-picker summary{cursor:pointer;min-width:51px;height:44px;display:flex;gap:5px;align-items:center;justify-content:center;padding:8px;border:1px solid #627971;border-radius:4px;color:#f7f4ec;background:#243e42;font-size:12px;font-weight:760;list-style:none;user-select:none}
 .v23-language-picker summary::-webkit-details-marker{display:none}
 .v23-language-picker summary::marker{display:none}
 .v23-language-picker .v23-chevron{font-size:16px;line-height:1;opacity:.8}
 .v23-language-picker[open] .v23-chevron{transform:rotate(180deg)}
 .v23-language-choices{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:176px;display:grid;gap:2px;padding:7px;border:1px solid #a3b7ae;border-radius:5px;background:#fffefa;box-shadow:0 10px 25px #071a2340;z-index:115}
 .v23-language-choices a{min-height:44px;display:flex;align-items:center;padding:9px 12px;border-radius:3px;color:#1d4a41;text-decoration:none;font-size:13px}
 .v23-language-choices a:hover,.v23-language-choices a[aria-current=page]{background:#e3efe7;font-weight:730}
 .v23-menu-toggle{display:inline-flex;grid-column:3;grid-row:1;align-items:center;justify-content:center;height:44px;width:44px;padding:0;border:1px solid #607b72;border-radius:4px;background:#223a43;color:#fff;cursor:pointer}
 .v23-menu-lines{display:grid;gap:5px;width:19px}
 .v23-menu-lines i{height:2px;width:100%;background:currentColor;border-radius:3px}
 .v23-menu-toggle[aria-expanded=true]{background:#b99169;color:#1f3840;border-color:#b99169}
 .v23-menu-toggle[aria-expanded=true] .v23-menu-lines i:nth-child(1){transform:translateY(7px) rotate(45deg)}
 .v23-menu-toggle[aria-expanded=true] .v23-menu-lines i:nth-child(2){opacity:0}
 .v23-menu-toggle[aria-expanded=true] .v23-menu-lines i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
 .v15-site-header .v15-main-nav{grid-column:1/-1;grid-row:2;position:absolute;inset-inline:0;top:100%;z-index:110;width:100%;height:auto;max-height:calc(100dvh - 75px);overflow-x:hidden;overflow-y:auto;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch;justify-content:stretch;padding:12px 15px 16px;background:#182f39;border:1px solid #425b58;border-top:2px solid #b88e69;box-shadow:0 14px 23px #081d2b44;scrollbar-width:thin}
 html.v23-js .v15-site-header .v15-main-nav:not(.v23-is-open){display:none!important}
 .v15-site-header .v15-main-nav a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;flex:1 1 auto;padding:10px 11px!important;font-size:12px;line-height:1.45;background:#243e44;color:#f6f6ec;text-align:center;white-space:normal;border:1px solid #4d6666;border-radius:4px}
 .v15-site-header .v15-main-nav a:hover,.v15-site-header .v15-main-nav a[aria-current=page]{background:#3b665e;border-color:#b6a07d;color:#fff}
 .v15-site-header .v15-main-nav a[aria-current=page]:after{display:none}
 .v23-menu-toggle:focus-visible,.v23-language-picker summary:focus-visible,.v23-language-choices a:focus-visible,.v15-site-header .v15-main-nav a:focus-visible{outline:3px solid #d9ad7c;outline-offset:2px}
 .v18-studio-hero .v18-hero-inner{padding:17px 0 13px}
 .v18-studio-hero .v18-hero-inner h1{margin:6px 0;font-size:clamp(23px,4vw,29px)}
 .v18-studio-hero .v18-hero-meta{margin-top:9px;padding-top:8px}
 .v18-studio-hero .v18-studio-art{display:none}
 .v15-page-masthead .v15-masthead-inner{padding:17px 0 13px;min-height:0}
 .v15-page-masthead .v15-page-heading h1{font-size:clamp(23px,4vw,31px);margin:4px 0 3px;line-height:1.35}
 .v15-page-masthead .v15-page-heading p{font-size:12px;line-height:1.7}
 .v15-page-content{padding-top:12px}
 .v15-calendar-intro{margin:0 0 11px}
 .v15-calendar-intro h2{font-size:20px}
 .v20-calendar-deadline-cta{margin-top:4px}
}
@media(max-width:760px){
 .v15-site-header .v15-header-shell{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:64px;min-height:64px;gap:8px}
 .v15-home-hero-grid{padding-block:19px 25px;gap:17px}
 .v15-home-intro h1{font-size:clamp(25px,5.7vw,35px);margin:8px 0 11px}
 .v23-home-find{margin:12px 0 10px}
 .v23-home-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v23-home-tasks a{min-height:44px;font-size:11px}
 .v15-home-actions{display:none}
 .v15-home-proof{margin-top:12px}
 .v15-page-content{padding-top:12px}
 .v16-controls{padding:10px}
 .v16-controls .filter-grid input,.v16-controls .filter-grid select{min-height:44px;height:44px}
 .v16-clear{min-height:44px}
 .v15-page-content .v15-people-intro.v23-people-after-results{margin:20px 0 0}
 .v23-directory-purpose{font-size:11px;margin:0 0 10px}
 .v18-studio-main{padding-top:10px}
}
@media(max-width:380px){
 .v15-site-header .v15-brand-wordmark small{font-size:6.5px}
 .v15-site-header .v15-header-shell{gap:5px}
 .v23-language-picker summary{min-width:47px;padding:6px}
 .v23-home-search input{padding-inline:8px;font-size:12px}
 .v23-home-search button{min-width:62px;padding:7px 10px;font-size:11px}
 .v15-page-masthead .v15-page-heading h1{font-size:23px}
}
@media(prefers-reduced-motion:no-preference){
 .v23-menu-lines i{transition:transform .15s,opacity .15s}
}
@media print{.v23-menu-toggle,.v23-language-picker,.v23-home-find{display:none!important}}

/* Calendar action-first: original event controls precede summary and long list. */
.v23-calendar-deadline-cta{margin:5px 0 12px;padding:11px 14px;align-items:center}
.v23-calendar-deadline-cta h2{margin:0;font-size:14px}
.v23-calendar-deadline-cta a{min-height:44px}
.v16-calendar .v16-calendar-overview{margin-top:14px;margin-bottom:16px}
@media(max-width:1020px){
 .v18-subnav a,.v16-calendar-actions a{min-height:44px;display:inline-flex;align-items:center}
 .v17-calendar-event-tools .v17-calendar-app,.v17-calendar-event-tools .v17-favorite{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .v23-calendar-deadline-cta{flex-direction:row;align-items:center;gap:8px}
 .v23-calendar-deadline-cta h2{font-size:13px}
 .v23-calendar-deadline-cta a{padding:8px 12px;font-size:11px;white-space:normal;text-align:center}
 .v16-calendar .v16-calendar-overview{margin-top:12px;padding:12px}
}
@media(max-width:380px){.v23-calendar-deadline-cta{padding:10px}.v23-calendar-deadline-cta h2{font-size:12px}}

/* Deadline research: first user task is the date filter, not the counters. */
.v20-deadline-page .v20-deadline-stats{margin-top:13px}
.v20-deadline-page .r21-report-cta{margin-top:12px}
@media(max-width:1020px){
 .v20-deadline-hero{padding:18px 0 20px}
 .v20-deadline-hero h1{font-size:clamp(26px,4vw,34px);margin:5px 0}
 .v20-deadline-hero p{font-size:12px;line-height:1.72;margin:6px 0 8px}
 .v20-deadline-hero a{display:inline-flex;align-items:center;min-height:44px}
 .v20-deadline-page{padding-top:12px}
 .v20-deadline-filters input[type=search],.v20-deadline-filters select,#v20-deadline-clear{min-height:44px;height:44px}
 .v20-deadline-actions a{min-height:44px}
 .v20-deadline-links a,.v20-deadline-links button{min-height:42px}
 html:has(.v20-deadline-page){scroll-padding-top:82px}
 .v20-deadline-page .v20-deadline-filters{scroll-margin-top:80px}
}

/* Do not repeat large festival/people CTAs beneath the same quick-task actions. */
.v15-home-hero .v15-home-actions{display:none!important}
.v23-home-tasks{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){.v23-home-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Progressive enhancement: ordinary page links remain navigable if JS is unavailable. */
@media(max-width:1020px){
 html:not(.v23-js) .v23-menu-toggle{display:none!important}
 html:not(.v23-js) .v15-site-header .v15-header-shell{grid-template-rows:64px 46px}
 html:not(.v23-js) .v15-site-header .v15-main-nav{position:static!important;grid-row:2;grid-column:1/-1;width:100%;height:46px;max-height:46px;display:flex!important;flex-direction:row;flex-wrap:nowrap;gap:4px;padding:2px 0 0;background:transparent;overflow-x:auto;overflow-y:hidden;box-shadow:none;border:0;border-top:1px solid #527069}
 html:not(.v23-js) .v15-site-header .v15-main-nav a{flex:0 0 auto;min-height:42px;white-space:nowrap;padding:7px 12px!important}
}
/* Non-JS fallback uses a normal two-column list, never a wide horizontal scroller. */
@media(max-width:1020px){
 html:not(.v23-js) .v15-site-header .v15-header-shell{grid-template-rows:64px auto}
 html:not(.v23-js) .v15-site-header .v15-main-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;height:auto;max-height:none;overflow:visible;gap:4px;padding:6px 0}
 html:not(.v23-js) .v15-site-header .v15-main-nav a{min-width:0;max-width:100%;min-height:44px;white-space:normal;flex:none}
}
/* Five human tasks, balanced in two rows on phones (3 + 2), never an orphan action. */
@media(max-width:760px){
 .v23-home-tasks{grid-template-columns:repeat(6,minmax(0,1fr))}
 .v23-home-tasks a{grid-column:span 2}
 .v23-home-tasks a:nth-child(4),.v23-home-tasks a:nth-child(5){grid-column:span 3}
}
/* Consistent minimum 44px focus/touch targets for the mobile home search. */
.v23-home-search input{height:44px;min-height:44px}
@media(min-width:1021px){.v15-site-header .v15-lang a{min-height:44px}}
