/* Phone layout: contain navigation scrolling, keep body content on one column. */
.mp-submenu-hint{display:none}
@media(max-width:760px){
 .mp-site .mp-wrap{width:calc(100% - 32px)}
 .mp-site .mp-header{padding-inline:16px}
 .mp-site .mp-header>.mp-brand img{width:148px;max-width:100%;height:auto}
 html.mp-mobile-compact .mp-site>.mp-header>.mp-brand img{width:128px}
 .mp-site .mp-equipment-submenu{padding-block:12px 8px;min-width:0}
 .mp-equipment-submenu>span{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:11px;letter-spacing:.05em}
 .mp-equipment-submenu .mp-submenu-hint{display:inline;font-size:11px;font-weight:400;letter-spacing:0;color:#aaa794}
 .mp-equipment-submenu>div{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8d8160 transparent;padding:2px 2px 8px;scroll-padding-inline:2px}
 .mp-equipment-submenu>div::-webkit-scrollbar{height:3px}
 .mp-equipment-submenu>div::-webkit-scrollbar-thumb{background:#8d8160;border-radius:3px}
 .mp-equipment-submenu>div::-webkit-scrollbar-button{display:none}
 .mp-equipment-submenu a{flex:none;min-height:44px;padding:9px 13px;font-size:14px;white-space:nowrap;border-color:#d7c48220;background:#ffffff03}
 .mp-equipment-submenu a[aria-current="page"]{background:#d7c4821c;border-color:#d7c48280}
 .mp-site .mp-hero{padding-block:28px 32px}
 .mp-site .mp-hero h1{font-size:clamp(26px,7.1vw,34px);line-height:1.4;letter-spacing:-.025em;margin-block:16px 18px;text-wrap:pretty}
 .mp-site .mp-hero .mp-lead,.mp-home .mp-home-hero .mp-lead{font-size:16px;line-height:1.85;margin-block:16px 0}
 .mp-site :is(.mp-hero,.mp-simulation-intro,.mp-home-hero) .mp-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:24px}
 .mp-site :is(.mp-hero,.mp-simulation-intro,.mp-home-hero) .mp-actions>a{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;padding:12px 16px;font-size:15px;line-height:1.6;white-space:normal;text-align:center}
 .mp-home .mp-home-grid{padding-block:28px 32px;gap:28px}
 .mp-home .mp-home-hero h1{font-size:clamp(28px,7.6vw,36px);line-height:1.4;margin-block:14px 18px}
 .mp-home .mp-home-position{font-size:16px;line-height:1.7;margin-top:16px!important}
 .mp-home .mp-home-diagram-link{margin-block:12px 0}
 .mp-home .mp-home-diagram-link a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
 .mp-home .mp-home-incident{margin-top:16px;padding-top:16px}
 .mp-home .mp-home-incident a{display:inline-flex;align-items:center;min-height:44px;line-height:1.7}
 .mp-home .mp-simulation-teaser{padding:22px 20px;gap:18px;margin-block:28px}
 .mp-home .mp-simulation-teaser h2{font-size:24px;line-height:1.5;margin-block:12px}
 .mp-home .mp-simulation-teaser p{font-size:15px;line-height:1.85}
 .mp-home .mp-simulation-teaser>.mp-button{width:100%;min-height:48px;justify-content:center}
 .mp-technology{--tech-gutters:32px}
 .mp-technology .hardware-heading>div{min-width:0;max-width:100%}
 .mp-technology .hardware-heading :is(.section-label,.concept-status){white-space:normal;overflow-wrap:anywhere}
 .mp-technology .resilience-grid{gap:20px}
 .mp-technology .resilience-grid article{padding:22px 18px}
 .mp-technology .resilience-grid .ha-explainer{padding:22px 14px}
 .mp-technology .ha-demo{padding:16px 10px;margin-top:20px;border-radius:10px}
 .mp-technology .ha-demo-label{gap:6px;font-size:12px;line-height:1.6}
 .mp-technology .ha-demo-label>span:last-child{font-size:11px}
 .mp-technology .ha-topology{margin-block:18px;max-height:none}
 .mp-technology .ha-topology text{font-size:22px}
 .mp-technology .ha-topology .ha-role-text{font-size:19px}
 .mp-technology .ha-topology .ha-sync-label{font-size:18px}
 .mp-technology .ha-status-legend{display:flex;gap:8px 12px;margin:0 0 16px;font-size:12px}
 .mp-technology .ha-status-legend li{gap:5px}
 .mp-technology .ha-stage-select{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .mp-technology .ha-stage-select button{min-height:48px;padding:10px 6px;font-size:14px;line-height:1.5}
 .mp-technology .resilience-grid .ha-description{min-height:0;margin:16px 0 20px;font-size:14px;line-height:1.85}
 .mp-technology .ha-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .mp-technology .ha-controls button{min-width:0;min-height:48px;padding:10px 8px;font-size:13px;line-height:1.6;white-space:normal}
 .mp-technology .ha-controls #ha-reset{grid-column:1/-1;margin:0;border:1px solid #ffffff20}
 .mp-simulation-intro{padding-block:24px 0}
 .mp-simulation-intro .mp-breadcrumb{margin-bottom:20px;font-size:12px;line-height:1.6}
 .mp-simulation-intro h1{font-size:clamp(26px,7vw,34px);line-height:1.4}
 .mp-simulation-intro .mp-lead{font-size:16px;line-height:1.85}
 .mp-simulation-workspace .sr-section:not(.is-expanded){margin-top:24px;margin-inline:0;width:100%}
 .mp-simulation-workspace .sr-section:not(.is-expanded) .sr-heading{padding:24px 18px;gap:18px}
 .mp-simulation-workspace .sr-section:not(.is-expanded) .sr-heading h3{font-size:24px;line-height:1.5}
 .mp-simulation-workspace .sr-section:not(.is-expanded) .sr-heading p{font-size:15px;line-height:1.8}
 .mp-simulation-workspace .sr-section:not(.is-expanded) .sr-heading-actions{width:100%}
 .mp-simulation-workspace .sr-section.sr-ready:not(.is-expanded) [data-room-expand]{width:100%;min-height:52px;font-size:17px}
 .mp-site .mp-simulation-guide{gap:20px;margin-bottom:22px}
 .mp-site .mp-form :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){max-width:100%;min-width:0;font-size:16px}
 .mp-site .mp-back-to-top{right:10px;bottom:max(10px,env(safe-area-inset-bottom));min-width:44px;min-height:44px;padding:10px;font-size:11px}
}
@media(max-width:360px){
 .mp-equipment-submenu>span{font-size:10px;gap:6px}
 .mp-equipment-submenu .mp-submenu-hint{font-size:10px}
 .mp-site .mp-header>.mp-brand img{width:128px}
 .mp-technology .ha-status-legend{font-size:11px;gap:8px}
}
/* Longer English SVG labels need their own fit within the existing device boxes. */
@media(max-width:760px){
 html[lang^="en"] .mp-technology .ha-topology text{font-size:18px}
 html[lang^="en"] .mp-technology .ha-topology .ha-role-text{font-size:15px}
 html[lang^="en"] .mp-technology .ha-topology .ha-sync-label{font-size:13px}
}

/* Closed cover displays use a single readable column. */
@media (max-width:380px) {
  .mp-site .mp-wrap { width:calc(100% - 24px); }
  .mp-site .mp-header { padding-inline:12px; }
  .mp-site .mp-home-grid > *, .mp-site .mp-form > * { min-width:0; }
  .mp-home .mp-brand2026-poster-copy { padding-inline:18px; }
  .mp-home .mp-brand2026-poster-bottom { padding-inline:18px; }
  .mp-home .mp-brand2026-poster { min-height:500px; }
}

/* Let an opened phone use its extra width without squeezing three posters into two panes. */
@media (min-width:600px) and (max-width:999px) {
  .mp-home .mp-brand2026-poster-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .mp-home .mp-brand2026-poster { min-height:480px; aspect-ratio:auto; }
  .mp-home .mp-brand2026-poster-copy, .mp-home .mp-brand2026-poster-bottom { padding-inline:20px; }
  .mp-home .mp-brand2026-poster h3 { font-size:clamp(22px,3vw,28px); }
  .mp-site .mp-equipment-submenu > div { display:flex; flex-wrap:wrap; gap:8px; }
  .mp-site .mp-equipment-submenu a { min-height:44px; white-space:normal; }
  .mp-site .mp-equipment-submenu .mp-submenu-hint { display:none; }
}

/* A spanning browser reports the actual panel edges, including any occluded hinge. */
@media (horizontal-viewport-segments:2), (horizontal-viewport-segments:3) {
  .mp-home .mp-brand2026-posters {
    width:100%; max-width:none; padding-inline:0;
  }
  .mp-home .mp-brand2026-section-head { margin-inline:16px; }
  .mp-home .mp-brand2026-poster-grid {
    display:grid; column-gap:0; row-gap:16px;
    grid-template-columns:env(viewport-segment-width 0 0) calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0)) env(viewport-segment-width 1 0);
  }
  .mp-home .mp-brand2026-poster { width:auto; min-width:0; margin-inline:12px; }
  .mp-home .mp-brand2026-poster:nth-child(odd) { grid-column:1; }
  .mp-home .mp-brand2026-poster:nth-child(even) { grid-column:3; }
}
@media (horizontal-viewport-segments:3) {
  .mp-home .mp-brand2026-poster-grid {
    grid-template-columns:env(viewport-segment-width 0 0) calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0)) env(viewport-segment-width 1 0) calc(env(viewport-segment-left 2 0) - env(viewport-segment-right 1 0)) env(viewport-segment-width 2 0);
  }
  .mp-home .mp-brand2026-poster:nth-child(3) { grid-column:5; }
}

/* HK SME topic: keep anchored heading below both sticky menus. */
#hk-sme-ai-2026{scroll-margin-top:180px}

/* SME visual guide: scoped, static, three-language layout. */
#hk-sme-ai-2026 .sme-visual{margin:40px 0 48px;padding:clamp(18px,3vw,36px);border:1px solid #635a43;background:#171916;border-radius:18px}
#hk-sme-ai-2026 .sme-visual-kicker{color:#d8bf80;font-size:12px;letter-spacing:.12em;font-weight:700}
#hk-sme-ai-2026 .sme-visual figcaption h3{font-size:clamp(24px,3vw,34px);line-height:1.35;margin:12px 0}
#hk-sme-ai-2026 .sme-visual figcaption>p:last-child{max-width:64ch;color:#c4c6bd;line-height:1.8}
#hk-sme-ai-2026 .sme-visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:28px}
#hk-sme-ai-2026 .sme-visual-card{min-width:0;border:1px solid #454a3e;border-radius:12px;overflow:hidden;background:#22251f}
#hk-sme-ai-2026 .sme-visual-scene{position:relative;background:#1c201b;border-bottom:1px solid #454a3e;color:#d8bf80;display:flex;justify-content:center;padding:12px 22px}
#hk-sme-ai-2026 .sme-visual-scene svg{display:block;width:min(100%,300px);height:auto}
#hk-sme-ai-2026 .sme-visual-number{position:absolute;top:16px;left:18px;color:#8d947f;font:12px monospace}
#hk-sme-ai-2026 .sme-v-alert{stroke:#f09b83}
#hk-sme-ai-2026 .sme-v-safe{stroke:#9fd2ae}
#hk-sme-ai-2026 .sme-visual-copy{padding:22px}
#hk-sme-ai-2026 .sme-visual-risk{font-size:11px;font-weight:700;letter-spacing:.1em;color:#f09b83;margin:0 0 8px}
#hk-sme-ai-2026 .sme-visual h4{font-size:22px;line-height:1.4;margin:0 0 20px;color:#f3efe5}
#hk-sme-ai-2026 .sme-visual h5{font-size:18px;line-height:1.5;margin:6px 0;color:#f3efe5}
#hk-sme-ai-2026 .sme-visual-control,#hk-sme-ai-2026 .sme-visual-service{padding:16px 0 0;border-top:1px solid #48503f;margin-top:16px}
#hk-sme-ai-2026 .sme-visual-control>span,#hk-sme-ai-2026 .sme-visual-service>span{font-size:11px;letter-spacing:.08em;font-weight:700;color:#9fd2ae}
#hk-sme-ai-2026 .sme-visual-service>span{color:#d8bf80}
#hk-sme-ai-2026 .sme-visual-copy p:not(.sme-visual-risk){font-size:15px;line-height:1.8;color:#c9ccbf;margin:6px 0}
#hk-sme-ai-2026 .sme-visual-service a{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:#edce89;text-underline-offset:5px;font-size:15px;font-weight:600}
#hk-sme-ai-2026 .sme-visual-service a:focus-visible{outline:2px solid #edce89;outline-offset:4px}
#hk-sme-ai-2026 .sme-visual-note{font-size:13px;line-height:1.8;color:#b9beae;margin:22px 0 0}
@media(max-width:640px){#hk-sme-ai-2026 .sme-visual-grid{grid-template-columns:1fr;gap:18px}#hk-sme-ai-2026 .sme-visual-copy{padding:18px}#hk-sme-ai-2026 .sme-visual-scene{padding:6px 22px}}

/* GDMME SME security briefing */
#hk-sme-ai-2026 {
  --brief-muted: #d0c7bb;
  --brief-gold: #edb47d;
  --brief-line: #534a40;
  max-width: 1240px;
  padding-top: 24px;
  color: #f5f1eb;
}
#hk-sme-ai-2026 :is(h2, h3, h4, p, ol) { margin: 0; }
#hk-sme-ai-2026 p {
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}
#hk-sme-ai-2026 .sme-brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: #191816;
  border: 1px solid var(--brief-line);
  border-top: 2px solid #bc8957;
  border-radius: 6px;
}
#hk-sme-ai-2026 .sme-brief-intro {
  align-self: center;
  padding: clamp(24px, 3.4vw, 52px);
}
#hk-sme-ai-2026 .mp-label {
  color: var(--brief-gold);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
}
#hk-sme-ai-2026 h2 {
  margin: .65rem 0 1rem;
  color: #faf7f1;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.035em;
  text-wrap: balance;
}
#hk-sme-ai-2026 .sme-brief-deck {
  max-width: 48ch;
  color: #e2d7c9;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}
#hk-sme-ai-2026 .sme-title-line { display: block; }
#hk-sme-ai-2026 .sme-title-phrase { display: inline-block; }
#hk-sme-ai-2026 .sme-brief-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 52% center;
  mask-image: linear-gradient(to right, transparent, #000 14%);
}
#hk-sme-ai-2026 .sme-brief-context {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 26px;
  color: var(--brief-muted);
}
#hk-sme-ai-2026 .sme-brief-source {
  border-inline-start: 2px solid #9b7958;
  padding-inline-start: 16px;
  font-size: .875rem;
}
#hk-sme-ai-2026 :is(.sme-brief-source, .sme-review) a {
  color: var(--brief-gold);
  text-decoration: underline;
  text-underline-offset: .19em;
}
#hk-sme-ai-2026 :is(.sme-services, .sme-plan, .sme-brief-footer) {
  margin-top: clamp(40px, 5vw, 72px);
}
#hk-sme-ai-2026 h3 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.025em;
}
#hk-sme-ai-2026 h4 {
  color: #f5efe7;
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  line-height: 1.5;
  font-weight: 650;
  text-wrap: balance;
}
#hk-sme-ai-2026 .sme-visual {
  margin: clamp(40px, 5vw, 72px) 0 0;
  border: 0;
  padding: 0;
  background: transparent;
}
#hk-sme-ai-2026 .sme-visual-grid { gap: 16px; }
#hk-sme-ai-2026 .sme-visual-card {
  background: #292725;
  border-color: #504b43;
  border-radius: 6px;
}
#hk-sme-ai-2026 .sme-visual-scene { background: #211f1c; border-color: #504b43; }
#hk-sme-ai-2026 .sme-visual-scene svg { width: min(100%, 205px); }
#hk-sme-ai-2026 .sme-risk-detail { border-top: 1px solid var(--brief-line); margin-top: 10px; }
#hk-sme-ai-2026 .sme-risk-detail summary {
  padding: 11px 0;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  color: #e9c6a6;
}
#hk-sme-ai-2026 .sme-risk-detail summary:hover { color: #ffe0ba; }
#hk-sme-ai-2026 .sme-risk-detail summary:focus-visible { outline: 2px solid #ffd29f; outline-offset: 2px; }
@media (min-width: 1150px) {
  #hk-sme-ai-2026 .sme-visual-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #hk-sme-ai-2026 .sme-visual-copy { padding: 18px; }
}
#hk-sme-ai-2026 .sme-service-list { border-top: 2px solid #a07b56; }
#hk-sme-ai-2026 .sme-service {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.5fr) auto;
  gap: 12px clamp(16px, 2.2vw, 32px);
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--brief-line);
}
#hk-sme-ai-2026 .sme-service p { color: var(--brief-muted); }
#hk-sme-ai-2026 .sme-service-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .55em;
  min-height: 44px;
  color: var(--brief-gold);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #8a6c50;
  text-underline-offset: .3em;
}
#hk-sme-ai-2026 .sme-service-link::after { content: "→" / ""; }
#hk-sme-ai-2026 a:hover { text-decoration: underline; text-underline-offset: .23em; }
#hk-sme-ai-2026 a:focus-visible { outline: 2px solid #ffd29f; outline-offset: 4px; }
#hk-sme-ai-2026 .sme-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 36px);
  padding: 0;
  list-style: none;
}
#hk-sme-ai-2026 .sme-timeline li {
  border-top: 2px solid #a27a54;
  padding-top: 14px;
}
#hk-sme-ai-2026 .sme-timeline strong { color: var(--brief-gold); }
#hk-sme-ai-2026 .sme-timeline p { margin-top: 5px; color: var(--brief-muted); }
#hk-sme-ai-2026 .sme-brief-footer {
  padding: clamp(20px, 2.7vw, 36px);
  border: 1px solid var(--brief-line);
  border-inline-start: 3px solid #bb8b5c;
  background: #282521;
}
#hk-sme-ai-2026 :is(.sme-scope, .sme-enquiry-note, .sme-review) {
  max-width: 88ch;
  font-size: .9rem;
  color: var(--brief-muted);
}
#hk-sme-ai-2026 .mp-actions { margin: 18px 0 12px; }
#hk-sme-ai-2026 .sme-review { margin-top: 12px; font-size: .8rem; }
@media (max-width: 790px) {
  /* Leave space for the compact sticky header and chapter bar after a deep link. */
  #hk-sme-ai-2026 { scroll-margin-top: 164px !important; }
  #hk-sme-ai-2026 .sme-brief-hero { grid-template-columns: 1fr; }
  #hk-sme-ai-2026 .sme-brief-art {
    height: auto;
    aspect-ratio: 3 / 1;
    object-position: center 50%;
    mask-image: none;
  }
  #hk-sme-ai-2026 .sme-brief-context { grid-template-columns: 1fr; gap: 16px; }
  #hk-sme-ai-2026 .sme-service {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
  }
  #hk-sme-ai-2026 .sme-service p { grid-column: 1; }
  #hk-sme-ai-2026 .sme-service-link { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 600px) {
  #hk-sme-ai-2026 .sme-brief-intro { padding: 23px 20px; }
  #hk-sme-ai-2026 h2 { font-size: clamp(1.7rem, 7.5vw, 2.25rem); }
  #hk-sme-ai-2026 .sme-brief-art { aspect-ratio: 2.5 / 1; }
  #hk-sme-ai-2026 :is(.sme-service, .sme-timeline) { grid-template-columns: 1fr; }
  #hk-sme-ai-2026 .sme-service { gap: 6px; }
  #hk-sme-ai-2026 .sme-service-link { grid-column: auto; grid-row: auto; }
  #hk-sme-ai-2026 .sme-timeline { gap: 0; }
  #hk-sme-ai-2026 .sme-timeline li {
    border-top: 0;
    border-inline-start: 2px solid #a27a54;
    padding: 0 0 20px 18px;
  }
  #hk-sme-ai-2026 .sme-timeline li:last-child { padding-bottom: 0; }
}
@media (max-width: 360px) {
  #hk-sme-ai-2026 h2 { font-size: 1.5rem; }
}
