/* Website styles, worker b (client change list) */

/* ---- Website menu: "Registration and Compliances" and "Signing & PKI Infra" (client change D6) ----
   Wide icon-card dropdowns that sit under the whole header bar, plus the mobile accordion cards. */
.ms-nav>.ms-ni.wide{position:static}
.ms-dd.wide{left:0;right:0;margin-left:auto;margin-right:auto;width:max-content;max-width:calc(100vw - 24px)}
.ms-reg{display:grid;gap:2px 14px;padding:16px}
.ms-reg.three{grid-template-columns:repeat(3,minmax(250px,1fr))}
.ms-reg.two{grid-template-columns:repeat(2,minmax(270px,1fr))}
.ms-reg .ms-mi{align-items:center}
.ms-reg .ms-mi small{margin-top:1px}
.ms-reg .ms-foot{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:6px;padding:12px 10px 2px;border-top:1px solid var(--ms-line);font-size:13.5px;font-weight:700;color:var(--ms-g6);text-decoration:none}
.ms-reg .ms-foot:hover{color:var(--ms-g8)}
.ms-reg .ms-foot svg{width:15px;height:15px}
@media (max-width:1180px){.ms-reg.three{grid-template-columns:repeat(3,minmax(215px,1fr))}.ms-reg.two{grid-template-columns:repeat(2,minmax(230px,1fr))}}

/* ---- Website service pages (/services and /services/{name}) ---- */
.ms-sv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,410px);gap:48px;align-items:start}
.ms-sv-block{margin-bottom:36px}
.ms-sv-block h2{margin:0 0 14px;font-size:clamp(21px,2.3vw,27px);line-height:1.25;color:var(--ms-ink)}
.ms-sv-block>p{margin:0;font-size:16.5px;line-height:1.75;color:var(--ms-text)}
.ms-sv-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ms-sv-list li{display:flex;gap:11px;align-items:flex-start;font-size:16px;line-height:1.55;color:var(--ms-text)}
.ms-sv-list li svg{flex:none;margin-top:2px;color:var(--ms-g5)}
.ms-sv-list.plain li{align-items:center;padding:11px 14px;background:var(--ms-bg);border:1px solid var(--ms-line);border-radius:12px}
.ms-sv-list.plain li svg{margin-top:0}
.ms-sv-steps{counter-reset:svs;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ms-sv-steps li{counter-increment:svs;display:flex;gap:12px;align-items:center;padding:14px;background:#fff;border:1px solid var(--ms-line);border-radius:14px;font-size:15.5px;line-height:1.45;color:var(--ms-ink);font-weight:600}
.ms-sv-steps li::before{content:counter(svs);flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ms-g8);color:#fff;font-size:14px;font-weight:800}
.ms-sv-block>.ms-sv-note{margin-top:16px;font-size:14px;color:var(--ms-mute)}
.ms-sv-jump{display:none;margin-bottom:26px;width:100%}
.ms-sv-side{position:sticky;top:96px}
.ms-sv-form{padding:26px}
.ms-sv-form h2{margin:0;font-size:21px;line-height:1.3;color:var(--ms-ink)}
.ms-sv-form .sub{margin:6px 0 20px;font-size:15px;color:var(--ms-mute)}
.ms-sv-f{margin-bottom:15px}
.ms-sv-f .req{color:var(--ms-bad)}
.ms-sv-f .opt{font-weight:400;color:#94a3b8}
.ms-sv-f .err{margin:6px 0 0;font-size:13.5px;color:var(--ms-bad)}
.ms-sv-submit{width:100%}
.ms-sv-fine{margin:10px 0 0;text-align:center;font-size:12.5px;color:var(--ms-mute)}
.ms-sv-alt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;padding-top:18px;border-top:1px dashed var(--ms-line)}
.ms-sv-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:14px 0}
.ms-sv-done .ok{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--ms-g0);color:var(--ms-g6);box-shadow:0 0 0 8px rgb(238 248 245/.6)}
.ms-sv-done h2{margin:6px 0 0}
.ms-sv-done p{margin:0;font-size:15px;line-height:1.6;color:var(--ms-text)}
.ms-sv-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:22px}
.ms-sv-head h2{margin:0;font-size:clamp(22px,2.6vw,30px);line-height:1.25;color:var(--ms-ink)}
.ms-sv-head p{margin:6px 0 0;color:var(--ms-mute);font-size:15.5px}
.ms-sv-head>a{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-weight:700;color:var(--ms-g6);text-decoration:none}
.ms-sv-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ms-sv-card{display:flex;align-items:center;gap:14px;padding:18px;background:#fff;border:1px solid var(--ms-line);border-radius:16px;color:var(--ms-ink);text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.ms-sv-card:hover{border-color:var(--ms-g1);box-shadow:var(--ms-shadow);transform:translateY(-2px)}
.ms-sv-card .ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--ms-g0);color:var(--ms-g6)}
.ms-sv-card .ic svg{width:24px;height:24px}
.ms-sv-card .tx{min-width:0}
.ms-sv-card b{display:block;font-size:16.5px;line-height:1.3}
.ms-sv-card small{display:block;margin-top:3px;font-size:14px;line-height:1.4;color:var(--ms-mute)}
.ms-sv-card .go{margin-left:auto;flex:none;color:var(--ms-g5)}
@media (max-width:1023px){
  .ms-sv{grid-template-columns:minmax(0,1fr);gap:8px}
  .ms-sv-side{position:static}
  .ms-sv-jump{display:inline-flex}
  .ms-sv-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .ms-sv-steps{grid-template-columns:minmax(0,1fr)}
  .ms-sv-cards{grid-template-columns:minmax(0,1fr)}
  .ms-sv-form{padding:20px}
  .ms-sv-head{flex-direction:column;align-items:flex-start}
}

/* A dropdown opened from an item near the right end of the menu grows to the left, so it never leaves the screen. */
.ms-dd.right{left:auto;right:0}

/* Five menus in the main bar (Buy DSC, Buy USB Tokens, Registration and Compliances, Signing & PKI Infra, Resources):
   tighter spacing on small laptops, and the phone-style menu button below 1100px where they no longer fit. */
@media (min-width:1100px) and (max-width:1279px){
  .ms-nl{padding:10px 8px;font-size:14px}
  .ms-nav{margin-left:0;gap:0}
  .ms-bar .ms-wrap{gap:12px}
  .ms-ab{padding:0 10px}
}
@media (max-width:1099px){
  .ms-header{top:0}
  .ms-top{display:none}
  .ms-nav,.ms-actions .ms-desk{display:none}
  .ms-bar .ms-wrap{height:62px;gap:10px}
  .ms-burger{display:inline-flex}
}
.ms-top a[aria-current]{color:#fff}

/* Product photos (client change D5): the whole photo is always visible, in the square product page box and in the wider
   product cards alike (an in-flow image in a grid box was cropped by the card's 16:10 shape). */
.ms-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
