.wc-cache-mockup{
  width:100%;
  max-width:900px;
  margin-left:auto;
  display:grid;
  gap:18px;
}

.wc-cache-mockup__card{
  padding:18px 18px 16px;
  border:1px solid #cfe8df;
  border-radius:12px;
  background:linear-gradient(180deg,#fbfffd 0%,#f7fcfa 100%);
}

.wc-cache-mockup__card--preload{
  border-color:#ffd8bf;
  background:linear-gradient(180deg,#fffaf6 0%,#fff7f1 100%);
}

.wc-cache-mockup__head{
  margin-bottom:16px;
}

.wc-cache-mockup__head strong{
  display:block;
  margin:0 0 2px;
  color:#18212d;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.wc-cache-mockup__head span{
  display:block;
  color:#758194;
  font-size:14px;
  line-height:1.35;
}

.wc-cache-mockup__diagram{
  display:grid;
  grid-template-columns:minmax(150px,1.05fr) 38px minmax(145px,1fr) 38px minmax(145px,1fr) 38px minmax(160px,1.15fr);
  grid-template-rows:auto 42px auto;
  align-items:center;
  column-gap:0;
  row-gap:0;
}

.wc-cache-mockup__node{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid #d8dee5;
  border-radius:9px;
  background:#fff;
  color:#14202d;
  box-shadow:0 2px 6px rgba(24,33,45,.025);
}

.wc-cache-mockup__node--dark{
  border-color:#252a29;
  background:#252a29;
  color:#fff;
}

.wc-cache-mockup__node--response{
  border-color:#bfe8d7;
  background:#ecfaf4;
  color:#087b55;
}

.wc-cache-mockup__node--preload,
.wc-cache-mockup__node--warmed{
  border-color:#ffcaa8;
  background:#fff7f0;
  color:#c24b05;
}

.wc-cache-mockup__icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
}

.wc-cache-mockup__icon svg{
  display:block;
  width:30px;
  height:30px;
}

.wc-cache-mockup__icon--nginx{
  width:34px;
  height:38px;
  flex-basis:34px;
  background:#0aa66f;
  color:#fff;
  clip-path:polygon(50% 0,93% 24%,93% 76%,50% 100%,7% 76%,7% 24%);
  font-size:20px;
  font-weight:900;
}

.wc-cache-mockup__icon--wordpress{
  border:2px solid #1c2b3a;
  border-radius:50%;
  color:#1c2b3a;
  font-family:Georgia,serif;
  font-size:24px;
  font-weight:700;
  line-height:1;
}

.wc-cache-mockup__icon--php{
  width:40px;
  height:22px;
  flex-basis:40px;
  border-radius:50%;
  background:#6976ad;
  color:#fff;
  font-family:Georgia,serif;
  font-size:13px;
  font-style:italic;
  font-weight:700;
}

.wc-cache-mockup__label{
  min-width:0;
  line-height:1.15;
}

.wc-cache-mockup__label strong{
  display:block;
  color:inherit;
  font-size:15px;
  font-weight:800;
  white-space:nowrap;
}

.wc-cache-mockup__label small{
  display:block;
  margin-top:4px;
  color:#4e5d6d;
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
}

.wc-cache-mockup__node--dark .wc-cache-mockup__label small{
  color:#d9dfdd;
}

.wc-cache-mockup__node--response .wc-cache-mockup__label small{
  color:#477563;
}

.wc-cache-mockup__node--preload .wc-cache-mockup__label small,
.wc-cache-mockup__node--warmed .wc-cache-mockup__label small{
  color:#8d5b3e;
}

.wc-cache-mockup__arrow{
  display:grid;
  place-items:center;
  color:#94a0ad;
  font-size:27px;
  line-height:1;
}

.wc-cache-mockup__cache-hit{
  grid-column:4 / 7;
  grid-row:1;
  position:relative;
  height:46px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  color:#079761;
  font-size:14px;
  font-weight:800;
}

.wc-cache-mockup__cache-hit::before{
  content:"";
  position:absolute;
  left:14px;
  right:17px;
  top:30px;
  height:2px;
  background:#0aa66f;
}

.wc-cache-mockup__cache-hit::after{
  content:"";
  position:absolute;
  right:11px;
  top:25px;
  width:9px;
  height:9px;
  border-top:2px solid #0aa66f;
  border-right:2px solid #0aa66f;
  transform:rotate(45deg);
}

.wc-cache-mockup__miss{
  grid-column:3;
  grid-row:2;
  align-self:stretch;
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:3px;
  color:#758194;
  font-size:13px;
}

.wc-cache-mockup__miss::before{
  content:"";
  position:absolute;
  top:20px;
  bottom:5px;
  left:50%;
  border-left:2px dashed #9aa6b3;
}

.wc-cache-mockup__miss::after{
  content:"";
  position:absolute;
  left:calc(50% - 5px);
  bottom:1px;
  width:8px;
  height:8px;
  border-right:2px solid #9aa6b3;
  border-bottom:2px solid #9aa6b3;
  transform:rotate(45deg);
}

.wc-cache-mockup__visitor{grid-column:1;grid-row:1}
.wc-cache-mockup__visitor-arrow{grid-column:2;grid-row:1}
.wc-cache-mockup__nginx{grid-column:3;grid-row:1}
.wc-cache-mockup__response{grid-column:7;grid-row:1}
.wc-cache-mockup__php{grid-column:3;grid-row:3}
.wc-cache-mockup__php-arrow{grid-column:4;grid-row:3}
.wc-cache-mockup__wordpress{grid-column:5;grid-row:3}
.wc-cache-mockup__wp-arrow{grid-column:6;grid-row:3}
.wc-cache-mockup__database{grid-column:7;grid-row:3}

.wc-cache-mockup__preload-row{
  display:grid;
  grid-template-columns:minmax(180px,1.25fr) 38px minmax(145px,.9fr) 38px minmax(160px,1fr) 38px minmax(180px,1.15fr);
  align-items:center;
}

.wc-cache-mockup__preload-row .wc-cache-mockup__arrow{
  font-size:27px;
}

.wc-cache-mockup--compact{
  max-width:690px;
  margin:28px 0 0;
}

.wc-cache-mockup--compact .wc-cache-mockup__card{
  padding:14px;
}

.wc-cache-mockup--compact .wc-cache-mockup__head strong{
  font-size:17px;
}

.wc-cache-mockup--compact .wc-cache-mockup__head span{
  font-size:12px;
}

.wc-cache-mockup--compact .wc-cache-mockup__diagram{
  grid-template-columns:minmax(125px,1.05fr) 28px minmax(120px,1fr) 28px minmax(125px,1fr) 28px minmax(140px,1.15fr);
  grid-template-rows:auto 38px auto;
}

.wc-cache-mockup--compact .wc-cache-mockup__preload-row{
  grid-template-columns:minmax(145px,1.2fr) 28px minmax(115px,.9fr) 28px minmax(125px,1fr) 28px minmax(145px,1.15fr);
}

.wc-cache-mockup--compact .wc-cache-mockup__node{
  min-height:60px;
  padding:9px 10px;
  gap:8px;
}

.wc-cache-mockup--compact .wc-cache-mockup__icon{
  width:28px;
  height:28px;
  flex-basis:28px;
}

.wc-cache-mockup--compact .wc-cache-mockup__icon svg{
  width:25px;
  height:25px;
}

.wc-cache-mockup--compact .wc-cache-mockup__icon--nginx{
  height:31px;
  font-size:16px;
}

.wc-cache-mockup--compact .wc-cache-mockup__icon--php{
  width:34px;
  height:19px;
  flex-basis:34px;
  font-size:11px;
}

.wc-cache-mockup--compact .wc-cache-mockup__label strong{font-size:12px}
.wc-cache-mockup--compact .wc-cache-mockup__label small{font-size:9px}
.wc-cache-mockup--compact .wc-cache-mockup__cache-hit{font-size:11px}
.wc-cache-mockup--compact .wc-cache-mockup__miss{font-size:10px}

/* Managed WordPress performance section: match the approved two-column mockup
   and reserve enough width for the cache diagram so it never sits under the
   Panel screenshot. */
@media(min-width:1201px){
  .wc-hosting-feature--performance{
    grid-template-columns:minmax(0,620px) minmax(0,1fr);
    gap:64px;
  }
  .wc-hosting-feature--performance .wc-hosting-feature__copy{
    max-width:none;
    min-width:0;
  }
  .wc-hosting-feature--performance .wc-cache-mockup--compact{
    width:100%;
    max-width:620px;
  }
  .wc-hosting-feature--performance .wc-hosting-shot{
    min-width:0;
    width:100%;
  }
}

@media(max-width:1200px){
  .wc-hosting-feature--performance{
    grid-template-columns:1fr;
    gap:44px;
  }
  .wc-hosting-feature--performance .wc-hosting-feature__copy{
    max-width:none;
  }
  .wc-hosting-feature--performance .wc-cache-mockup--compact{
    max-width:690px;
  }
}

@media(max-width:1100px){
  .wc-cache-mockup{margin-inline:auto}
}

@media(max-width:760px){
  .wc-cache-mockup__card{padding:16px}
  .wc-cache-mockup__diagram,
  .wc-cache-mockup--compact .wc-cache-mockup__diagram{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .wc-cache-mockup__diagram>*{width:100%}
  .wc-cache-mockup__arrow{transform:rotate(90deg);min-height:20px}
  .wc-cache-mockup__cache-hit{
    order:4;
    height:auto;
    padding:8px 0;
    border:1px solid #bfe8d7;
    border-radius:8px;
    background:#ecfaf4;
  }
  .wc-cache-mockup__cache-hit::before,
  .wc-cache-mockup__cache-hit::after,
  .wc-cache-mockup__miss::before,
  .wc-cache-mockup__miss::after{display:none}
  .wc-cache-mockup__miss{
    order:6;
    align-self:auto;
    padding:5px 0;
  }
  .wc-cache-mockup__visitor{order:1}
  .wc-cache-mockup__visitor-arrow{order:2}
  .wc-cache-mockup__nginx{order:3}
  .wc-cache-mockup__response{order:5}
  .wc-cache-mockup__php{order:7}
  .wc-cache-mockup__php-arrow{order:8}
  .wc-cache-mockup__wordpress{order:9}
  .wc-cache-mockup__wp-arrow{order:10}
  .wc-cache-mockup__database{order:11}
  .wc-cache-mockup__preload-row,
  .wc-cache-mockup--compact .wc-cache-mockup__preload-row{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .wc-cache-mockup__preload-row .wc-cache-mockup__arrow{transform:rotate(90deg);min-height:20px}
  .wc-cache-mockup__node{width:100%}
}
