/* Work is a readable list first; filters enhance the same records. */
.work-page-heading{max-width:none}
.static-page .work-crumbs ol{margin-bottom:16px}
.static-page main .work-page-heading h1{max-width:none;margin:0;font:400 clamp(2.75rem,5.3vw,4.875rem)/.97 var(--print-display,var(--serif));letter-spacing:-.02em}
.work-page-counts{color:var(--muted);font-size:.8125rem;margin:0;padding:0 4px}
.work-page-counts span{color:var(--border)}
.work-page-note{max-width:780px;color:var(--muted);font-size:14px;line-height:1.7}
.work-page-filter-slot{display:grid;grid-template-columns:minmax(0,1fr);container:work-filters / inline-size;font-size:1rem}
html[data-work-load] .work-page-filter-slot,.work-page-filter-slot:has(.work-page-filters:not([hidden])){margin-top:14px}
.work-page-filter-slot>*{grid-area:1/1}
.work-page-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:8px 12px;margin:0;padding:10px 0;border:0;border-block:1px solid var(--border);border-top-color:var(--print-ink,var(--ink));border-radius:0;background:transparent}
main>:is(.work-page-intro,.work-page-filter-slot,.work-page-tools,.work-page-list,[data-work-comparison]){max-width:none}
.work-page-intro>.work-crumbs,.work-page-tools>.work-export-status{max-width:var(--measure)}
.work-page-filters[hidden],.work-page-empty[hidden],.work-page-group[hidden],.work-listing[hidden],.work-page-groups[hidden],.work-results-actions>[hidden],.work-load-status[hidden]{display:none}
/* Keep the real controls in the layout while the enhancer loads. The failure
   notice shares the search slot without making unavailable controls tabbable. */
html[data-work-load] .work-page-filters[hidden]{display:grid!important;visibility:hidden}
html[data-work-load] .work-results-actions>[hidden]{display:inline-flex!important;visibility:hidden}
html[data-work-load] .work-count-native{display:none}
html[data-work-load] .work-count-compact[hidden]{display:inline!important}
html[data-work-load="failed"] .work-page-filter-fields{display:none}
html[data-work-load="pending"] .work-page-list{visibility:hidden}
html[data-work-load="pending"] :is(.work-page-more,.site-footer,.work-page-advice){visibility:hidden}
html[data-work-load="pending"] [data-work-group]{position:relative}
html[data-work-load="pending"] :is(.work-page-results,.work-results-actions){visibility:hidden}
html[data-work-load="pending"] [data-work-group] .work-load-status{position:absolute;inset-block-start:8px;margin:0;visibility:visible}
.work-page-filters label{display:grid;gap:4px;font-size:.8125rem;line-height:1.5;font-weight:500}
.static-page .work-page-filters :is(input,select){width:100%;min-width:0;min-height:44px;padding:9px 12px;font-size:1rem;font-weight:400;color:var(--ink);border-color:var(--print-control,#73766b);background:transparent}
.work-page-filters input::placeholder{color:var(--muted);opacity:1}
.work-page-filters button,.work-page-empty button{min-height:44px;padding:9px 12px;border:1px solid var(--print-control,#73766b);border-radius:4px;background:transparent;color:var(--ink);font-size:.8125rem;cursor:pointer}
.work-page-filters :is(input,select,button,summary):focus-visible,.work-page-empty button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.work-page-results{color:var(--muted);font-size:13px;line-height:1.6;margin:0 auto 0 0}
.work-results-toolbar,.work-results-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;min-width:0}
.work-results-actions :is(a,button),.work-load-status button{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:transparent;color:var(--green);font-size:.875rem;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.work-results-actions :is(a,button):hover,.work-load-status button:hover{text-decoration-thickness:2px}
.work-export-status:empty{display:none}
.work-load-status{margin:8px 0;color:var(--muted);font-size:14px}
.work-page-filter-slot .work-load-status{align-self:center;margin:6px 0}
.work-page-filter-slot .work-load-status p{margin:0 0 4px}
.work-no-js-message{display:none}
.work-page-group>h2:target+noscript>.work-no-js-message{display:block}
.work-page-groups{margin:0}
.work-section-disclosure>summary{display:list-item;align-content:center;min-height:44px;width:fit-content;padding:0;cursor:pointer;color:var(--green);font-size:14px}
.work-section-disclosure ul{display:flex;flex-wrap:wrap;gap:0 12px;padding:0;margin:0;list-style:none}
.work-section-disclosure li{margin:0}
.work-section-disclosure a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.work-section-disclosure a span,.work-group-count{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums;margin-inline-start:6px}
.work-group-count{font-family:var(--sans);font-weight:500}
.work-section-disclosure :is(summary,a):focus-visible{outline:2px solid var(--green);outline-offset:2px}
.work-page-group{--work-listing-columns:minmax(0,1.5fr) minmax(0,.82fr) minmax(0,.87fr);margin:0 0 28px;scroll-margin-top:100px}
.work-page-group>h2{margin:0 0 8px;padding:0;border:0;font:400 clamp(1.875rem,3vw,2.5rem)/1 var(--print-display,var(--serif))}
.work-page-group>p.muted{max-width:760px;margin:0 0 12px;font-size:14px}
.work-listings{list-style:none;margin:0;padding:0}
.work-listing-columns,.work-listing{display:grid;grid-template-columns:var(--work-listing-columns);column-gap:24px;align-items:start}
.work-listing-columns{padding:6px 0;border-top:1px solid var(--print-ink,var(--ink));color:var(--muted);font-size:.8125rem;font-weight:600}
.work-listing{grid-template-areas:"identity offer review" "conditions conditions action" "terms terms terms";gap:4px 24px;margin:0;padding:10px 0 6px;border-top:1px solid var(--border);min-width:0;overflow-wrap:anywhere}
.work-listing:focus,.work-page-group>h2:focus{outline:2px solid var(--green);outline-offset:2px}
.work-listing,.work-page-group>h2{scroll-margin-top:88px}
.work-heading{grid-area:identity;min-width:0}
.work-heading .work-company{display:inline-block;font-size:.875rem;font-weight:550;line-height:1.4;margin:0 8px 0 0;color:var(--muted)}
.work-heading h3{font:inherit;font-size:1.1875rem;font-weight:650;line-height:1.3;letter-spacing:-.02em;margin:0;color:var(--ink);overflow-wrap:anywhere}
.work-heading h3>a{display:inline-block;min-width:44px;min-height:45px;align-content:center;color:var(--ink);text-decoration-color:var(--print-control,#73766b);text-underline-offset:3px}
.work-heading h3>a:hover{color:var(--green);text-decoration-color:currentColor}
.work-status{display:inline-block;font-size:.8125rem;line-height:1.4;color:var(--amber,#795418)}
.work-offer{grid-area:offer;min-width:0}
.work-offer:empty{display:none}
.work-pay{margin:0 0 4px}
.work-pay strong{display:block;font-size:1.1875rem;font-weight:650;line-height:1.3;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.work-pay .sub,.work-place{font-size:.8125rem;line-height:1.5;color:var(--muted)}
.work-place{margin:0}
.work-listing-conditions{grid-area:conditions;min-width:0}
.work-listing-conditions .sub{font-size:.8125rem;line-height:1.55;margin-top:3px;color:var(--muted)}
.work-reviewed{grid-area:review;margin:0;align-self:start;font-size:14px;line-height:1.5;color:var(--muted)}
.work-listing>.work-terms{grid-area:terms;min-width:0;align-self:start;margin:0}
.work-listing>.work-terms>summary{display:list-item;width:fit-content;min-width:44px;min-height:44px;padding:8px 0;font-size:.8125rem;line-height:1.5;color:var(--green);cursor:pointer}
.work-listing>.work-terms[open]{padding-bottom:12px}
.work-listing>.work-terms :is(p,li,blockquote){font-size:13px;line-height:1.7}
.work-listing>.work-terms blockquote{margin:16px 0;padding-left:16px}
.work-terms a{display:inline-flex;align-items:center;min-height:44px}
.work-terms li>small{display:block;font-size:inherit;color:var(--muted)}
.work-listing-action{grid-area:action;align-self:start;justify-self:start;margin:0;min-width:0}
.work-listing-action>a,.work-compare-action{display:inline-flex;align-items:center;gap:6px;min-width:44px;max-width:100%;min-height:44px;font-size:.8125rem;line-height:1.5;text-underline-offset:3px}
:is(.work-listing-action>a,.work-compare-action)::after{flex:none}
.work-listing-action .sub{font-size:.8125rem;line-height:1.5;margin-top:2px}
.work-page-secondary{padding:0;border:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-radius:0;background:transparent;margin-bottom:-1px}
.work-page-secondary>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 0;font-size:17px;line-height:1.4;list-style:none;cursor:pointer}
.work-page-secondary>summary::-webkit-details-marker{display:none}
.work-page-secondary>summary::after{content:'+';font-size:24px;font-weight:300;color:var(--green)}
.work-page-secondary[open]>summary::after{content:'−'}
.work-page-secondary>summary>span{margin-left:auto;font-size:13px;color:var(--muted)}
.work-page-secondary>h2{font-size:24px;margin:10px 0}
.work-page-secondary .work-listings{padding-bottom:28px}
.work-page-empty{padding:24px 0;border:0;border-block:1px solid var(--border);border-radius:0;background:transparent;margin:24px 0}
.work-page-empty p{margin:0 0 16px}
.work-page-more{margin:32px 0 0;font-size:14px}
.work-page-more a{display:inline-flex;align-items:center;min-height:44px}
.work-compare-scroll{overflow-x:auto}
.work-compare-scroll table{width:100%}
.work-compare-scroll :is(th,td){padding:8px;text-align:left}
.work-compare-scroll :is(dl,dd){margin:0}
@media(min-width:701px){
 .work-compare-scroll dt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:700px){
 .work-compare-scroll tbody tr{display:grid;grid-template-columns:minmax(0,1fr);row-gap:8px}
 .work-compare-scroll tbody :is(th,td){margin:0;padding:0}
 .work-compare-scroll tbody th{font-size:1rem;line-height:1.4}
 .work-compare-scroll dt{color:var(--muted);font-size:.8125rem;font-weight:600;line-height:1.6}
 .work-compare-fields{display:grid;grid-template-columns:4rem minmax(0,1fr);column-gap:8px}
 .work-compare-fields dd{grid-column:2}
 .work-compare-fields+.work-compare-terms{margin-top:8px}
}
@media(max-width:759px){
 .work-listing-columns{display:none}
 .work-listing{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"identity identity" "offer review" "conditions conditions" "action terms";column-gap:16px}
 .work-listing:has(>.work-terms[open]){grid-template-areas:"identity identity" "offer review" "conditions conditions" "action action" "terms terms"}
 .work-page-group>h2{margin-top:4px}
}
@media(max-width:600px){
 .work-results-toolbar{display:grid;grid-template-columns:minmax(0,1fr);padding-top:4px}
}

/* Search stays exposed; the secondary controls use a native disclosure. */
.work-page-search{min-width:0}
.work-page-search input:placeholder-shown::-webkit-search-cancel-button{display:none}
.work-page-filter-options{margin:0;padding:0;border:0;background:none}
.work-page-filter-options>summary{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:fit-content;min-width:44px;min-height:44px;padding:9px 12px;border:1px solid var(--print-control,#73766b);border-radius:4px;background:transparent;color:var(--ink);font-size:14px;line-height:1.5;font-weight:500;list-style:none;cursor:pointer}
.work-page-filter-options>summary::-webkit-details-marker{display:none}
.work-page-filter-options>summary::after{content:'+';font-size:18px;line-height:1}
.work-page-filter-options[open]>summary::after{content:'−'}
/* Size columns in the option font, leaving room for padding and the native arrow. */
.work-page-filter-fields{
 --work-option-size:max(16px,.875rem);
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,max(calc((100% - 24px) / 3),calc(17ch + 44px))),1fr));
 align-items:end;
 gap:12px;
 margin-top:12px;
 padding-top:12px;
 border-top:1px solid var(--border);
 font-size:var(--work-option-size);
}
.work-page-filter-fields label{font-size:max(12px,.75rem)}
.static-page .work-page-filter-fields select{font-size:var(--work-option-size);padding-inline:8px}
.work-page-clear{justify-self:start}
@supports (grid-template-columns:subgrid) and selector(::details-content){
 .work-page-filters{grid-template-columns:minmax(44px,1fr) max-content;grid-template-rows:auto auto;row-gap:0}
 /* The label sits above the controls and stays on one line as the filter count appears. */
 .work-page-search{grid-area:1/1;grid-template-columns:minmax(0,1fr);align-self:end;z-index:1;white-space:nowrap}
 .work-page-filter-options{display:grid;grid-column:1/-1;grid-row:1/-1;grid-template-columns:subgrid;grid-template-rows:subgrid}
 .work-page-filter-options>summary{grid-area:1/2;align-self:end}
 .work-page-filter-options::details-content{grid-area:2/1/3/-1}
 /* Stack the search and filter controls if larger text uses up the shared row. */
 @container work-filters (inline-size < 25ch){
  .work-page-filters{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;row-gap:8px}
  .work-page-filter-options{display:block;grid-area:2/1}
 }
}
@media(max-width:380px){
 .work-page-filters{column-gap:6px}
 .work-page-search input{padding-inline:7px}
 .work-page-filter-options>summary{gap:6px;padding-inline:8px}
 .work-page-group>h2{padding-top:12px}
 .static-page main .work-page-heading h1{font-size:clamp(2.25rem,11.2vw,2.75rem)}
 .work-listing{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
}
.work-page-disclosures{margin-bottom:8px}
.work-page-advice{max-width:780px;margin:0;padding:0;border:0}
.work-page-advice>summary{display:list-item;min-height:44px;padding:11px 0;font-size:14px;line-height:1.5;color:var(--green);cursor:pointer}
.work-page-advice[open]{padding-bottom:8px}
.work-page-advice .note{margin-bottom:0}
main:not(:has(.work-page-filter-options[open])) .work-page-disclosures:not(:has(details[open]:not([hidden]))){display:flex;flex-wrap:wrap;gap:0 16px}
@media(orientation:landscape) and (max-height:460px){
 .static-page main:has(.work-page-heading){padding-top:10px}
 .static-page .work-crumbs ol{margin-bottom:8px}
 .static-page main .work-page-heading h1{font-size:2.25rem}
 .work-listing-columns{display:none}
}
@media(min-width:760px) and (max-height:460px) and (orientation:landscape){
 .static-page:has(.work-page-intro) .site-header{min-height:44px;padding-block:4px}
 .static-page:has(.work-page-intro) .site-header>.site-nav{min-height:44px}
 .static-page:has(.work-page-intro) .site-header>.site-nav a{min-width:44px;justify-content:center}
 .static-page main:has(.work-page-intro){padding-top:4px}
 /* The heading shares a row with the breadcrumb when both fit. */
 .work-page-intro{display:flex;flex-flow:row-reverse wrap;align-items:center;justify-content:space-between;gap:0 16px}
 .work-page-intro>.work-page-heading,.static-page .work-page-intro :is(h1,.work-crumbs ol){margin-bottom:0}
 .work-crumbs ol{align-items:center}
 .work-crumbs a{display:inline-flex;align-items:center;min-width:44px;min-height:44px}
 html[data-work-load] .work-page-filter-slot,.work-page-filter-slot:has(.work-page-filters:not([hidden])){margin-top:4px}
 .work-page-filters{padding-block:2px}
 .work-page-filters .work-page-search{grid-template-columns:fit-content(40%) minmax(0,1fr);align-items:center;gap:8px;white-space:normal}
 /* Keep the results anchor and actions together, with room for open disclosures. */
 .work-page-tools{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0 12px}
 .work-results-toolbar{flex-direction:column;align-items:flex-start;gap:0;padding:2px 0 0}
 .work-page-disclosures{margin-bottom:0}
 .work-page-disclosures:has(details[open]:not([hidden])),.work-page-tools>.work-export-status:not(:empty){flex-basis:100%;max-width:none}
 .work-page-tools>.work-export-status{padding-block:2px}
 .work-page-list .work-page-group>h2{margin-bottom:4px;padding-block:8px 4px}
}
@media(forced-colors:active){
 .work-page-filters select:has(option:checked:not([value=""])){forced-color-adjust:none;border:2px solid Highlight;background:Canvas;color:CanvasText}
 .work-page-filters :is(input,select,button,summary):focus-visible{outline:2px solid Highlight;outline-offset:3px}
}
