/* Public catalogs: compact discovery controls, readable cards and bounded navigation. */
.module-page .m-heading{min-height:0;padding-block:24px;gap:16px}.module-page .m-heading p{margin:8px 0 0;font-size:var(--fs-body);line-height:1.5}
.module-page .m-filter-panel{padding:16px;min-height:0}.module-page .m-result-top{margin:12px 0}
.module-page .business-links,.tools-content>.business-links{max-width:1280px;box-sizing:border-box;margin:24px auto 0;padding:12px 16px;border:0;border-top:1px solid var(--gray-200);border-radius:0;background:transparent;gap:8px 20px;flex-wrap:wrap;font-size:var(--fs-small)}
.catalog-advanced summary,.catalog-intro summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600;font-size:var(--fs-small)}
.catalog-advanced summary::before,.catalog-intro summary::before{content:'＋';font-size:var(--fs-body)}.catalog-advanced[open] summary::before,.catalog-intro[open] summary::before{content:'−'}
.module-capabilities .m-capability-intro{display:block;margin-bottom:12px}.module-capabilities .m-capability-intro>section{min-height:0;padding:0 16px;border:1px solid var(--gray-200);background:white}.module-capabilities .catalog-intro .m-row{padding-top:8px}.module-capabilities .catalog-intro ol{margin:12px 0 16px}
.module-capabilities .m-summary-bar{display:flex;justify-content:flex-start;gap:24px;padding:12px 4px;border:0;background:transparent}.module-capabilities .m-summary-bar>div{display:flex;flex-direction:row;align-items:baseline;gap:8px}.module-capabilities .m-summary-bar strong{font-size:var(--fs-h3)}.module-capabilities .m-summary-bar span{font-size:var(--fs-caption)}
.module-capabilities #capability-filters{min-height:0}.module-capabilities .catalog-toolbar>.m-search{margin:0}.catalog-advanced .m-filter-row{margin-top:12px}.catalog-advanced .m-filter-chips{margin-top:8px}.module-capabilities .m-tabs{margin:8px 0 12px}
.module-page .m-policy{display:flex;flex-direction:column;gap:12px;padding:20px;min-height:0}.module-page .m-policy h3{font-size:var(--fs-h3);line-height:1.4;margin:0}.module-page .m-policy>p{height:auto;min-height:0;margin:0;font-size:var(--fs-body);line-height:1.65}.module-page .m-policy .m-policy-meta{margin:0;font-size:var(--fs-caption);line-height:1.7}.module-page .m-policy .m-card-bottom{margin-top:auto;padding-top:12px}.module-page .m-policy .m-card-bottom a{min-height:44px;display:inline-flex;align-items:center}
.module-space .m-space-cover{min-height:0;height:100%;box-sizing:border-box;padding:20px;gap:12px}.module-space .m-space-cover h3{font-size:var(--fs-h3);line-height:1.4;margin:0}.module-space .m-space-position{font-size:var(--fs-body);line-height:1.65;margin:0}.module-space .m-space-sectors{margin:0}.module-space .m-space-card-bottom{min-height:44px;padding-top:12px;box-sizing:border-box}
.module-market .m-market-toolbar{max-width:1280px;margin:auto;height:auto;padding:12px 24px;box-sizing:border-box;gap:16px;align-items:center}.module-market .m-info-bar{margin:0;flex:1;line-height:1.6;font-size:var(--fs-small)}.module-market .m-market-toolbar>.m-search{width:auto;flex:1;margin:0;min-height:44px}.module-market .m-market-toolbar input{min-height:44px}
.module-training .m-training-hero{height:auto;min-height:0;padding:20px 24px;margin-bottom:16px}.module-training .m-training-hero p{margin-bottom:12px}.module-training .m-training-filter{margin:12px 0}.module-training .m-event-body>p{height:auto;min-height:0}.module-training .m-event-text-cover{height:112px;min-height:0;padding:16px}.module-training .m-event-text-cover .m-poster-line{display:none}.module-training .m-event-text-cover strong{font-size:var(--fs-h3);line-height:1.4}
body.tools-page #app:has(>.tools-content){display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;max-width:1600px;margin:auto;gap:24px;padding:24px;box-sizing:border-box}
body.tools-page #app>.tools-sidebar{position:sticky;top:88px;left:auto;bottom:auto;width:auto;height:auto;max-height:calc(100vh - 112px);overflow-y:auto;align-self:start;padding:8px;background:white;border:1px solid var(--gray-200);border-radius:12px}
body.tools-page #app>.tools-content{margin:0;padding:0;min-width:0;width:auto}.tools-content .tool-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.tools-content .tool-tile{height:auto;min-height:104px;padding:16px;gap:12px}.tools-content .tool-image{width:40px;height:40px;min-width:40px}.tools-content .tool-tile-copy{min-width:0}.tools-content .tool-tile-copy h3{white-space:normal;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.45;max-height:none;margin:0 0 6px}.tools-content .tool-tile-copy p{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5}
.footer-main{min-height:0;align-items:flex-start}
.footer-brand{align-items:flex-start}
.footer-brand img{flex:none}
.footer-brand strong,.footer-links strong{display:block;line-height:1.5}
.footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.footer-links>div{display:grid;align-content:start;min-width:0}
.footer-links strong{margin:0 0 4px}
.footer-links a{display:flex;align-items:center;min-height:44px;margin:0;line-height:1.45;overflow-wrap:anywhere}
.footer-bottom{margin-top:16px}
@media(min-width:769px){
 .footer-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px)}
 .footer-links{grid-template-columns:minmax(0,2fr) minmax(0,1fr);column-gap:24px}
 .footer-links>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 .footer-links>div:first-child strong{grid-column:1/-1}
}
body:has(.module-page) #message-fab,body:has(.module-page) #service-assistant,body:has(.module-page) #page-backtop,body:has(.tools-content) #message-fab,body:has(.tools-content) #service-assistant,body:has(.tools-content) #page-backtop{display:none!important}
body:has(.module-page) .quick-fab,body:has(.tools-content) .quick-fab{position:relative;inset:auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin:16px 24px 90px;z-index:auto}body:has(.module-page) .quick-menu,body:has(.tools-content) .quick-menu{position:static}body:has(.module-page) #quick-toggle,body:has(.tools-content) #quick-toggle{width:48px;height:48px;border-radius:24px;background:var(--ksi-black);color:white;font-size:var(--fs-h3);border:0}
@media(max-width:768px){
 .module-page .m-heading{padding:18px 16px;align-items:center}.module-page .m-heading h1{font-size:var(--fs-h2)}.module-page .m-heading p{font-size:var(--fs-small)}.module-page .m-heading-action button{min-height:44px;padding:8px 12px}.module-page .module-content{padding-inline:16px}.module-market>.module-content{padding-inline:0}
 .module-capabilities .m-summary-bar{gap:16px;justify-content:space-between}.module-capabilities .m-summary-bar>div{gap:5px}.module-capabilities .m-capability-intro>section{padding-inline:12px}.module-capabilities .m-filter-panel{padding:12px}.module-capabilities .m-filter-row{display:grid;grid-template-columns:1fr;gap:10px}.module-capabilities .m-capability{display:flex;flex-direction:column;gap:12px;padding:16px}.module-capabilities .m-capability h3{font-size:var(--fs-h3);margin:0 0 8px}
 .module-page .m-policy{padding:16px;gap:12px}.module-space .m-space-cover{height:auto;min-height:0;padding:16px}.module-space .space-grid{gap:14px}
 .module-market .m-market-toolbar{padding:12px 16px;gap:8px}.module-market .m-market-layout{padding:12px 16px}.module-market .m-demand{margin-right:0;padding:16px}.module-market .m-market-toolbar>*{flex-basis:100%}.module-market .m-demand h3{font-size:var(--fs-h3)}
 .module-training .module-content{padding-top:16px}.module-training .m-training-hero{padding:18px 16px;min-height:0;margin-bottom:12px}.module-training .m-training-hero h1{font-size:var(--fs-h2);line-height:1.3}.module-training .m-training-hero p{max-width:none;margin:8px 0}.module-training .m-event-text-cover{height:auto;min-height:96px;padding:12px 16px}.module-training .m-event-body{padding:16px}.module-training .m-event-body h3{font-size:var(--fs-h3)}
 body.tools-page #app:has(>.tools-content){display:block;padding:0 16px 24px}body.tools-page #app>.tools-sidebar{position:sticky;top:65px;max-height:none;display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;width:auto;margin:0 -16px 20px;border-radius:0;padding:8px;border-inline:0;z-index:12;min-height:52px;height:auto}body.tools-page #app>.tools-sidebar a{flex-shrink:0}body.tools-page #app>.tools-content{margin:0}.tools-content .tool-grid{grid-template-columns:1fr}.tools-content .tool-tile{min-height:96px;padding:14px 16px}
 footer{padding:24px 20px 80px}.footer-main{gap:20px;min-height:0}.footer-links{width:100%;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.footer-links>div{gap:4px}.footer-links a{font-size:var(--fs-small);min-height:44px}.footer-bottom{margin-top:20px;padding-top:16px}
}
.bw-catalog-filter{min-width:0}.bw-catalog-filter summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:600}.bw-catalog-filter summary::before{content:'＋';margin-right:8px}.bw-catalog-filter[open] summary::before{content:'−'}.bw-catalog-fields{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.bw-catalog-fields>label{min-width:130px;flex:1}.bw-tools:has(>.bw-catalog-filter){display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,2fr);align-items:start}.bw-catalog-filter button{min-height:44px}
@media(max-width:768px){.bw-tools:has(>.bw-catalog-filter){grid-template-columns:1fr;gap:8px}.bw-catalog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bw-catalog-fields>label{min-width:0}.bw-catalog-fields select{width:100%}}

/* Detail reading: retain full content and the existing dialog action footer. */
#module-detail-dialog .m-detail-prose{font-size:var(--fs-body);line-height:1.75;max-width:72ch;white-space:pre-wrap;overflow-wrap:anywhere}
#module-detail-dialog .m-detail-scroll>section{margin-block:0 20px}
.m-service-overview{display:grid;gap:12px;background:var(--gray-50);padding:16px;margin:0 0 20px;border-radius:var(--radius-md)}
.m-service-overview>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px}
.m-service-overview dt{color:var(--gray-600)}.m-service-overview dd{margin:0;overflow-wrap:anywhere}
.m-market-response{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;text-decoration:none;margin-bottom:20px}
#entry-apply{scroll-margin-top:100px}
.m-secondary-help{font-size:var(--fs-caption);line-height:1.7;color:var(--gray-600)}
@media(max-width:768px){#module-detail-dialog .m-detail-scroll{padding:20px 16px}.m-service-overview{padding:14px}.m-service-overview>div{grid-template-columns:64px minmax(0,1fr)}}
