/* R36 Premium contextual content system: service guides + MEGAMIST ecosystem resource */
:root{
  --mega-r36-ink:#071d31;
  --mega-r36-ink-soft:#365269;
  --mega-r36-line:rgba(19,74,112,.16);
  --mega-r36-line-strong:rgba(19,74,112,.24);
  --mega-r36-blue:#0a3558;
  --mega-r36-blue-2:#174f78;
  --mega-r36-surface:#fff;
  --mega-r36-surface-soft:#f7fafc;
  --mega-r36-focus:#1e6ca1;
  --mega-r36-shadow:0 12px 34px rgba(13,43,65,.07);
  --mega-r36-shadow-hover:0 18px 44px rgba(13,43,65,.12);
}

/* Technical guides */
.mega-service-guides{
  position:relative;
  padding-block:clamp(44px,6vw,76px);
  background:linear-gradient(180deg,rgba(248,251,253,.88),rgba(244,248,251,.94));
  overflow:hidden;
}
.mega-service-guides::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(17,72,111,.14),transparent);
}
.mega-service-guides>.container{position:relative;z-index:1}
.mega-service-guides h2{
  position:relative;
  margin:0 0 clamp(24px,3vw,34px);
  color:var(--mega-r36-ink);
  font-size:clamp(1.8rem,3.2vw,2.7rem);
  line-height:1.08;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.mega-service-guides h2::before{
  content:"";
  display:block;
  width:92px;
  height:7px;
  margin-bottom:18px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--mega-r36-blue) 0 66%,#c8d9e6 66% 100%);
}
.mega-guide-related{
  display:grid;
  gap:14px;
}
.mega-guide-related>a{
  position:relative;
  display:grid;
  grid-template-columns:62px minmax(0,1fr) 48px;
  align-items:center;
  min-height:92px;
  padding:16px 18px;
  color:var(--mega-r36-ink);
  font-size:clamp(1rem,1.5vw,1.2rem);
  font-weight:760;
  line-height:1.38;
  text-decoration:none;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,251,253,.98));
  border:1px solid var(--mega-r36-line);
  border-radius:20px;
  box-shadow:var(--mega-r36-shadow);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;
}
.mega-guide-related>a::before{
  content:"";
  width:46px;
  height:46px;
  border-radius:14px;
  background:
    linear-gradient(var(--mega-r36-blue),var(--mega-r36-blue)) 14px 13px/18px 2px no-repeat,
    linear-gradient(var(--mega-r36-blue),var(--mega-r36-blue)) 14px 19px/18px 2px no-repeat,
    linear-gradient(var(--mega-r36-blue),var(--mega-r36-blue)) 14px 25px/13px 2px no-repeat,
    linear-gradient(135deg,rgba(210,226,238,.95),rgba(244,248,251,.98));
  border:1px solid rgba(17,72,111,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.mega-guide-related>a::after{
  content:"›";
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  justify-self:end;
  border-radius:13px;
  color:var(--mega-r36-blue);
  background:#f0f5f8;
  font-size:2rem;
  font-weight:450;
  line-height:1;
  transition:transform .22s ease,background .22s ease,color .22s ease;
}
.mega-guide-related>a:hover{
  transform:translateY(-2px);
  border-color:var(--mega-r36-line-strong);
  box-shadow:var(--mega-r36-shadow-hover);
  background:#fff;
}
.mega-guide-related>a:hover::after{transform:translateX(3px);background:var(--mega-r36-blue);color:#fff}
.mega-guide-related>a:focus-visible{
  outline:3px solid color-mix(in srgb,var(--mega-r36-focus) 42%,transparent);
  outline-offset:4px;
  border-color:var(--mega-r36-focus);
}

/* MEGAMIST ecosystem resource */
.mega-ecosystem-link-r35{
  max-width:1180px;
  margin:clamp(34px,5vw,68px) auto;
  padding-inline:clamp(16px,3vw,28px);
}
.mega-ecosystem-link-r35__inner{
  position:relative;
  isolation:isolate;
  min-height:180px;
  display:grid;
  align-content:center;
  padding:clamp(28px,4vw,42px) clamp(24px,4vw,46px) clamp(28px,4vw,42px) clamp(108px,10vw,132px);
  overflow:hidden;
  border:1px solid var(--mega-r36-line);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(255,255,255,.99),rgba(247,251,254,.98));
  box-shadow:0 16px 42px rgba(12,43,65,.08);
}
.mega-ecosystem-link-r35__inner::before{
  content:"◇";
  position:absolute;
  left:clamp(24px,3.5vw,42px);
  top:50%;
  translate:0 -50%;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:17px;
  color:var(--mega-r36-blue-2);
  font-size:2.2rem;
  font-weight:700;
  background:linear-gradient(145deg,#e8f0f6,#f7fafc);
  border:1px solid rgba(19,74,112,.08);
  box-shadow:inset 0 1px 0 #fff;
}
.mega-ecosystem-link-r35__inner::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-76px;
  bottom:-92px;
  width:380px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(58,126,172,.11),rgba(58,126,172,0) 68%);
  transform:rotate(-10deg);
  pointer-events:none;
}
.mega-ecosystem-link-r35__eyebrow{
  display:block;
  margin:0 0 10px;
  color:#5c7487;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.13em;
  line-height:1.35;
  text-transform:uppercase;
}
.mega-ecosystem-link-r35 p{
  margin:0;
  max-width:88ch;
  color:var(--mega-r36-ink-soft);
  font-size:clamp(1rem,1.4vw,1.08rem);
  line-height:1.75;
}
.mega-ecosystem-link-r35 a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-inline:4px;
  padding:7px 13px;
  border:1px solid rgba(9,52,87,.18);
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--mega-r36-blue),#0d436d);
  box-shadow:0 7px 18px rgba(8,51,85,.16);
  font-weight:780;
  line-height:1.25;
  text-decoration:none;
  text-underline-offset:.18em;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.mega-ecosystem-link-r35 a::after{
  content:"↗";
  font-size:.9em;
  line-height:1;
}
.mega-ecosystem-link-r35 a:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(8,51,85,.22);filter:brightness(1.04)}
.mega-ecosystem-link-r35 a:focus-visible{outline:3px solid color-mix(in srgb,var(--mega-r36-focus) 45%,transparent);outline-offset:4px}

@media (max-width:768px){
  .mega-service-guides{padding-block:38px 46px}
  .mega-service-guides h2{margin-bottom:22px}
  .mega-guide-related>a{grid-template-columns:52px minmax(0,1fr) 40px;min-height:82px;padding:14px;border-radius:17px}
  .mega-guide-related>a::before{width:40px;height:40px;border-radius:12px;background-position:12px 11px,12px 17px,12px 23px,0 0;background-size:16px 2px,16px 2px,12px 2px,auto}
  .mega-guide-related>a::after{width:36px;height:36px;border-radius:11px;font-size:1.7rem}
  .mega-ecosystem-link-r35__inner{min-height:0;padding:28px 24px 28px 92px;border-radius:20px}
  .mega-ecosystem-link-r35__inner::before{left:24px;width:50px;height:50px;border-radius:15px;font-size:1.9rem}
}

@media (max-width:520px){
  .mega-service-guides h2{font-size:clamp(1.65rem,8vw,2.05rem)}
  .mega-service-guides h2::before{width:72px;height:6px;margin-bottom:15px}
  .mega-guide-related{gap:11px}
  .mega-guide-related>a{grid-template-columns:42px minmax(0,1fr) 32px;column-gap:10px;min-height:76px;padding:12px;border-radius:15px;font-size:.98rem}
  .mega-guide-related>a::before{width:36px;height:36px;border-radius:11px;background-position:11px 10px,11px 16px,11px 22px,0 0;background-size:14px 2px,14px 2px,11px 2px,auto}
  .mega-guide-related>a::after{width:30px;height:30px;border-radius:9px;font-size:1.45rem}
  .mega-ecosystem-link-r35{margin:28px auto;padding-inline:16px}
  .mega-ecosystem-link-r35__inner{display:block;padding:24px 20px;border-radius:18px}
  .mega-ecosystem-link-r35__inner::before{position:static;translate:none;width:46px;height:46px;margin-bottom:16px;border-radius:14px;font-size:1.7rem}
  .mega-ecosystem-link-r35__eyebrow{font-size:.7rem;letter-spacing:.11em}
  .mega-ecosystem-link-r35 p{font-size:.98rem;line-height:1.68}
  .mega-ecosystem-link-r35 a{margin:8px 0 2px;padding:8px 12px}
}

@media (prefers-reduced-motion:reduce){
  .mega-guide-related>a,.mega-guide-related>a::after,.mega-ecosystem-link-r35 a{transition:none!important}
}
