/* ==========================================================================
   Control panel showcase (Varnish Cache, WordPress / Drupal / Joomla Manager)
   Screenshot viewer with tabs + browser frame. Builds on ah-blocks.css (.ah-theme).
   ========================================================================== */
.ah-shots { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
.ah-shots__tabs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ah-shots__tab {
    display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
    border: 1px solid #e3e8f2; border-radius: 16px; background: #ffffff; color: #1f2937; font: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.ah-shots__tab:hover { border-color: var(--ah-accent-line, #c9d1f0); transform: translateY(-1px); }
.ah-shots__tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--ah-accent, #2a3bb0) 35%, transparent); outline-offset: 2px; }
.ah-shots__tab[aria-selected="true"] {
    border-color: var(--ah-accent, #2a3bb0); background: var(--ah-accent-soft, #eef0fb);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--ah-accent, #2a3bb0) 14%, transparent);
}
.ah-shots__tab-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
    background: #f1f4fb; color: var(--ah-accent-deep, #131b5f); font-size: 1rem;
}
.ah-shots__tab[aria-selected="true"] .ah-shots__tab-icon { background: linear-gradient(135deg, var(--ah-accent, #2a3bb0), var(--ah-accent-deep, #131b5f)); color: #ffffff; }
.ah-shots__tab strong { display: block; margin-bottom: 3px; color: #111827; font-size: 1rem; }
.ah-shots__tab span.ah-shots__tab-text { display: block; color: #526173; font-size: .92rem; line-height: 1.55; }

.ah-frame {
    position: relative; overflow: hidden; border: 1px solid #dde3ef; border-radius: 18px; background: #eef1f7;
    box-shadow: 0 30px 60px -24px rgba(19, 27, 95, .35), 0 12px 24px -12px rgba(19, 27, 95, .18);
}
.ah-frame__bar { display: flex; gap: 7px; align-items: center; padding: 11px 16px; border-bottom: 1px solid #dde3ef; background: #ffffff; }
.ah-frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e6ee; }
.ah-frame__bar i:nth-child(1) { background: #ff6058; } .ah-frame__bar i:nth-child(2) { background: #ffbd2e; } .ah-frame__bar i:nth-child(3) { background: #28c840; }
.ah-frame__url {
    flex: 1; margin-left: 10px; padding: 5px 12px; border-radius: 8px; background: #f2f4f8; color: #6b7280; font-size: .8rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-frame__view { position: relative; max-height: 620px; overflow: hidden auto; scrollbar-width: thin; }
.ah-frame__view img { display: block; width: 100%; height: auto; }
.ah-frame__view img[hidden] { display: none; }
.ah-frame__caption { margin: 12px 4px 0; color: #6b7280; font-size: .85rem; text-align: center; }

/* Varnish: the speed comparison beside the screenshots (navy section) */
.ah-vc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.ah-vc .ah-bench__card { height: auto; }
.ah-vc__big { margin: 2px 0 6px; color: #ffffff; font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ah-vc__big small { margin-left: 6px; color: #ffcf2d; font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.ah-vc__checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ah-vc__checks li { display: flex; gap: 12px; align-items: flex-start; color: #dfe5f5; line-height: 1.55; }
.ah-vc__checks li i { flex: none; margin-top: 3px; color: #ffcf2d; }
.ah-vc__checks strong { color: #ffffff; }
.ah-sec--navy .ah-shots__tabs { flex-direction: row; flex-wrap: wrap; margin-bottom: 14px; }
.ah-sec--navy .ah-shots__tab { width: auto; padding: 9px 14px; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #dfe5f5; }
.ah-sec--navy .ah-shots__tab strong { margin: 0; color: inherit; font-size: .92rem; }
.ah-sec--navy .ah-shots__tab-icon { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #ffcf2d; font-size: .8rem; }
.ah-sec--navy .ah-shots__tab[aria-selected="true"] { border-color: #ffcf2d; background: rgba(255, 207, 45, .12); color: #ffffff; box-shadow: none; }
.ah-sec--navy .ah-shots__tab[aria-selected="true"] .ah-shots__tab-icon { background: #ffcf2d; color: #131b5f; }
.ah-sec--navy .ah-frame { border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); }
.ah-sec--navy .ah-frame__caption { color: #aab4d4; }

/* Managers overview (web hosting page) */
.ah-mgr-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ah-accent, #2a3bb0); font-weight: 700; }

@media (max-width: 991px) {
    .ah-shots, .ah-vc { grid-template-columns: 1fr; }
    .ah-shots__tabs { flex-direction: row; flex-wrap: wrap; }
    .ah-shots__tab { width: auto; flex: 1 1 220px; }
    .ah-frame__view { max-height: 520px; }
}
@media (max-width: 575px) {
    .ah-shots__tab span.ah-shots__tab-text { display: none; }
    .ah-shots__tab { flex: 1 1 140px; padding: 12px; }
}

/* Manager cards with a screenshot (web hosting page) */
.ah-mgr-card { overflow: hidden; }
.ah-mgr-card__shot {
    display: block; height: 170px; margin: -28px -28px 20px; overflow: hidden; border-bottom: 1px solid #e3e8f2; background: #eef1f7;
}
.ah-mgr-card__shot img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.ah-mgr-card:hover .ah-mgr-card__shot img { transform: scale(1.03) translateY(-4px); }

/* Speed card: longer labels than the NGINX benchmark ("Built by WordPress") */
.ah-vc .ah-bench__row { grid-template-columns: 150px minmax(0, 1fr) auto; }
.ah-vc .ah-bench__value { min-width: 64px; }
@media (max-width: 575px) {
    .ah-vc .ah-bench__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
    .ah-vc .ah-bench__label { grid-column: 1 / -1; }
}

.ah-vc__big small { display: inline-block; white-space: nowrap; }
