/* HKAWM R17: scoped layout and accessible controls. */
.r17-intro,.r17-ecosystem,.r17-resources{padding-top:3.5rem;padding-bottom:3.5rem}
.r17-intro h2,.r17-cta h2,.r17-resources h1,.r17-about h1{font-size:clamp(1.65rem,3vw,2.4rem);font-weight:700;line-height:1.4;margin:0 0 1rem}
.r17-lead{max-width:70ch;line-height:1.85;margin:0 0 1.5rem;color:#294b48}
.r17-directions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;margin:2rem 0}
.r17-directions article{padding:1.25rem 0;border-top:2px solid #0a6f69}
.r17-directions h3{font-size:1.12rem;font-weight:700;margin:0 0 .6rem;color:#0a4845}
.r17-directions p{margin:0;color:#3d4d4b}
.r17-text-link{display:inline-flex;align-items:center;min-height:44px;color:#0a6f69;text-decoration:underline;text-underline-offset:.2em}
.r17-cta{background:#edf5f3;padding:3rem 0;margin-top:2rem}
.r17-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.25rem}
.r17-about>div:first-child{padding-top:3rem}
.r17-about .reveal{opacity:1;transform:none}
.r17-about section{padding-top:2.5rem;padding-bottom:2.5rem}
.r17-about .values-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:0!important;background:none!important}
.r17-about .values-grid>div{padding:2rem;background:#f5f7fa;text-align:left;min-width:0}
.r17-about .values-grid>div>p:first-child{font-size:1.65rem;margin:0 0 1rem;line-height:1.4}
.r17-resources .hk-v3{margin-top:2rem}
.r17-news-note,.r17-news-status{color:#45635f;font-size:.95rem;line-height:1.7;margin:.75rem 0}
.r17-news-status:empty{display:none}
.r17-resource-link{padding:1rem 0;margin:0}
.r17-resource-link a{display:inline-flex;min-height:44px;align-items:center;color:#0a6f69;text-decoration:underline}
body[data-hkawm-release=R17] .hk-v3-ecosystem>.hk-v3-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;align-items:stretch}
.hk-v3-ecosystem .r17-reg-card{display:flex;flex-direction:column;min-width:0;min-height:26rem;padding:1.5rem;background:white}
.hk-v3-ecosystem .r17-reg-card>.r17-reg-detail{margin-top:auto;padding-top:1rem;border-top:1px solid #d7e3e0}
.r17-reg-card>a{display:inline-flex;align-items:center;min-height:44px;margin:0 0 .7rem;align-self:flex-start}
.r17-reg-detail>summary{min-height:44px;padding:.6rem 0;cursor:pointer;font-weight:600;color:#0a6f69}
.r17-reg-detail[open]>summary{margin-bottom:.75rem}
.r17-reg-detail .mu-section,.r17-reg-detail .hk-reg-body{padding:0;margin:0;background:none;border:0}
.r17-reg-detail .portal-heading h2{font-size:1.1rem;margin:.75rem 0}
.r17-reg-detail .industry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.r17-reg-detail .industry-value{font-size:1.4rem}
.r17-reg-detail .industry-card{padding:.75rem;min-width:0}
.r17-reg-detail .industry-table-wrap,.r17-reg-detail .hk-reg-table-wrap{overflow:visible;max-height:none;min-width:0}
.r17-reg-detail table{width:100%;min-width:0;table-layout:fixed;font-size:.9rem}
.r17-reg-detail th,.r17-reg-detail td{white-space:normal;overflow-wrap:anywhere;padding:.65rem .35rem}
.r17-reg-detail .hk-reg-category{width:auto}
.r17-reg-detail .hk-reg-count{width:25%}
.r17-reg-detail .hk-reg-unit{width:20%}
.r17-reg-detail .industry-table th:first-child{width:40%}
.r17-reg-detail .industry-table td{font-variant-numeric:tabular-nums}
.mu-news-item .r17-news-summary{margin:.7rem 0;font-size:1rem;line-height:1.7;color:#3d4d4b}
.r17-news-language{font-size:.85rem;color:#50625f}
.r17-pagination{display:flex;gap:1rem;align-items:center;margin-top:1.5rem}
.r17-pagination button{min-height:44px;padding:.5rem 1rem;border:1px solid #0a6f69;color:#0a6f69;background:white}
.r17-pagination button:disabled{opacity:.5;cursor:default}
body[data-hkawm-release=R17] .btn-primary{background:#0a6f69;border-color:#0a6f69;color:white}
body[data-hkawm-release=R17] :is(button,summary,a,input,select):focus-visible{outline:3px solid #6667ab;outline-offset:3px}
body[data-hkawm-release=R17] .harbour-services a,body[data-hkawm-release=R17] .portal-link{min-height:44px;display:inline-flex;align-items:center}
body[data-hkawm-release=R17] .hk-growth-hero-title{max-width:22ch;line-height:1.45;font-size:clamp(1.7rem,3.7vw,3.6rem)}
@media(max-width:767px){
 .r17-directions{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
 body[data-hkawm-release=R17] .hk-v3-ecosystem>.hk-v3-grid{grid-template-columns:1fr}
 .hk-v3-ecosystem .r17-reg-card{min-height:0;padding:1.25rem}
 .hk-v3-ecosystem .r17-reg-card>.r17-reg-detail{margin-top:1rem}
 .r17-about .values-grid{grid-template-columns:1fr}
 .r17-intro,.r17-ecosystem,.r17-resources{padding-top:2rem;padding-bottom:2rem}
 .r17-reg-detail .industry-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .r17-reg-detail .industry-table tr{display:block;border-bottom:1px solid #d7e3e0;padding:.5rem 0}
 .r17-reg-detail .industry-table th,.r17-reg-detail .industry-table td{display:block;width:auto!important;border:0;text-align:left}
 .r17-reg-detail .industry-table td:before{content:attr(data-label) '：';font-weight:500;color:#45635f}
 .r17-reg-detail .industry-table td[colspan]:before{content:''}
 .r17-reg-detail .industry-table th{font-weight:700}
}
@media(max-width:359px){.r17-directions{grid-template-columns:1fr}}

.r17-example{padding:1.5rem 0}.r17-example h3{font-weight:700;margin:1rem 0}.r17-example-table{width:100%;table-layout:fixed;border-collapse:collapse}.r17-example-table th,.r17-example-table td{padding:.75rem;border:1px solid #d7e3e0;vertical-align:top;overflow-wrap:anywhere}.r17-example-table caption{text-align:left;margin:1rem 0;font-weight:600}
@media(max-width:767px){.r17-example-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.r17-example-table tr{display:block;margin-bottom:1rem}.r17-example-table th,.r17-example-table td{display:block;width:auto}.r17-example-table td:before{content:attr(data-label) "：";font-weight:600}}

body[data-hkawm-release=R17] .hk-v3-ecosystem>.hk-v3-grid:has(.r17-reg-detail[open]){align-items:start}

/* R17-H1: the SFC detail is now inside a card; override the former full-width layout. */
body[data-hkawm-release=R17] .r17-reg-detail .portal-industry{
 padding:1rem;margin:0;min-width:0;
}
body[data-hkawm-release=R17] .r17-reg-detail .portal-industry .industry-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;
}
body[data-hkawm-release=R17] .r17-reg-detail .portal-industry .industry-card{
 min-width:0;padding:.5rem;border-left:0;
}
body[data-hkawm-release=R17] .r17-reg-detail .portal-industry .industry-value{
 font-size:1.5rem;line-height:1.35;white-space:nowrap;font-variant-numeric:tabular-nums;
}
body[data-hkawm-release=R17] .r17-reg-detail .portal-industry .industry-label{
 overflow-wrap:anywhere;line-height:1.6;
}

/* R17-H3: keep the homepage statistics on the established content axis. */
body[data-hkawm-release=R17] .harbour-main #metrics{
 padding:1.75rem 0!important;border:0;background:#fff!important;
}
body[data-hkawm-release=R17] .harbour-main #metrics>.r17-metrics-shell{
 width:calc(100% - 3rem);max-width:1200px;margin-inline:auto;
 display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,2fr);
 gap:1rem 2rem;align-items:center;box-sizing:border-box;
}
body[data-hkawm-release=R17] .harbour-main #metrics .metrics-heading h2{
 font-size:1.7rem!important;line-height:1.45;margin:0;
}
body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;
 width:100%;min-width:0;margin:0;
}
body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid>div{
 min-width:0;padding:.5rem 0 .5rem 1.5rem;text-align:left;
 border:0;border-left:1px solid #d7e3e0;background:transparent;
}
body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid>div[hidden]{display:none!important}
body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid .stat-number{
 margin:0 0 .4rem;font-size:2.5rem!important;line-height:1.2!important;
 text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;
}
body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid .stat-label{
 margin:0;font-size:.9375rem;line-height:1.6;text-align:left;
}
body[data-hkawm-release=R17] .harbour-main #metrics .metrics-footnote{
 grid-column:2;display:flex;flex-wrap:wrap;justify-content:flex-start;
 gap:.35rem 1rem;margin:0;padding-left:1.5rem;font-size:.8125rem;line-height:1.6;
}
body[data-hkawm-release=R17] .r17-cta>.r17-home-connect{
 display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
 gap:2.5rem;align-items:start;
}
.r17-home-action,.r17-home-contact{min-width:0}
.r17-home-contact{border-left:1px solid #c5dad5;padding-left:2.5rem;scroll-margin-top:7rem}
.r17-home-contact h3{font-size:1.2rem;font-weight:700;line-height:1.5;margin:0 0 1rem;color:#0a4845}
.r17-home-contact address{font-style:normal;font-size:1rem;line-height:1.8;margin:0 0 .8rem;color:#294b48}
.r17-home-contact a{display:inline-flex;align-items:center;min-height:44px;color:#0a6f69;text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere}
body[data-hkawm-release=R17] .site-footer .footer-copy{line-height:1.85;max-width:28rem}
@media(max-width:767px){
 body[data-hkawm-release=R17] .harbour-main #metrics>.r17-metrics-shell{grid-template-columns:minmax(0,1fr);gap:1.25rem}
 body[data-hkawm-release=R17] .harbour-main #metrics .metrics-heading h2{font-size:1.5rem!important}
 body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid{gap:1rem}
 body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid>div{border-left:0;border-top:1px solid #d7e3e0;padding:1rem 0 0}
 body[data-hkawm-release=R17] .harbour-main #metrics #stats-grid .stat-number{font-size:2rem!important}
 body[data-hkawm-release=R17] .harbour-main #metrics .metrics-footnote{grid-column:1;padding-left:0}
 body[data-hkawm-release=R17] .r17-cta>.r17-home-connect{grid-template-columns:minmax(0,1fr);gap:2rem}
 .r17-home-contact{border-left:0;border-top:1px solid #c5dad5;padding:1.5rem 0 0}
}
@media(max-width:640px){
 body[data-hkawm-release=R17] .harbour-main #metrics>.r17-metrics-shell{width:calc(100% - 2.5rem)}
}
/* R18: page titles clear the measured fixed header; existing home geometry stays intact. */
html{scroll-padding-top:calc(var(--hkawm-header-height,5.75rem) + 1rem)}
body[data-hkawm-release=R17] .r17-about>.r18-page-header{
 padding:calc(var(--hkawm-header-height,5.75rem) + 2rem) 0 1.75rem;
 background:#fff;border-bottom:1px solid #d7e3e0;
}
.r18-page-header h1{margin:0 0 .75rem;line-height:1.35}
.r18-page-header .r17-lead{margin:0;max-width:70ch}
body[data-hkawm-release=R17] .r17-resources{padding-top:calc(var(--hkawm-header-height,5.75rem) + 2rem)}
body[data-hkawm-release=R17] :is(section,article,[id="main-content"],[id="activity-18"]){
 scroll-margin-top:1rem;
}
.r18-cooperation-note{margin:1.25rem 0 0;padding:1rem 0 0;border-top:1px solid #d7e3e0;line-height:1.75;color:#45635f;font-size:.9375rem}
.r18-cooperation-note a{color:#0a6f69;text-decoration:underline;text-underline-offset:.2em;display:inline-block;min-height:44px;padding:.5rem 0}
body[data-hkawm-release=R17] .activity-contact{padding:2.5rem 0}
body[data-hkawm-release=R17] .activity-contact-grid{align-items:center;gap:1.5rem 2.5rem}
body[data-hkawm-release=R17] .activity-contact-title{max-width:35ch;line-height:1.5;overflow-wrap:break-word}
@media(max-width:767px){
 body[data-hkawm-release=R17] .r17-about>.r18-page-header{padding-top:calc(var(--hkawm-header-height,5rem) + 1.5rem)}
 body[data-hkawm-release=R17] .activity-contact{padding:2rem 0}
 body[data-hkawm-release=R17] .activity-contact-grid{grid-template-columns:minmax(0,1fr)}
}
