detective access
by tomarriola
HTML
<!--
Crime Scene — Detective Subscription Gate Banner
Insert via WordPress functions.php or a plugin using wp_head / shortcode.
See csi-subscriber-banner-functions.php for the WordPress integration.
-->
<div class="csi-gate-banner" role="alert" aria-label="Detective subscription required">
<div class="csi-gate-inner">
<div class="csi-gate-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"
width="36" height="36" aria-hidden="true">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"/>
<path d="M7 11V7a5 5 0 0 1 10 0v4"/>
</svg>
</div>
<div class="csi-gate-text">
<p class="csi-gate-heading">Detective Access Required</p>
<p class="csi-gate-sub">This document is available to Case Detectives only.</p>
<p class="csi-gate-free">
<a href="https://pp.crimescene.com/">You can access the featured case for free.</a>
</p>
</div>
<div class="csi-gate-actions">
<a href="/pro/" class="csi-gate-btn csi-gate-btn--primary">Subscribe Now</a>
<a href="/wp-login.php" class="csi-gate-btn csi-gate-btn--secondary">Log In</a>
</div>
</div>
</div>
CSS
/* ============================================================
Crime Scene — Detective Gate Banner
Matches site CSS variables from themes/csi/style.css
Paste into your child theme's style.css or the WordPress
Customizer → Additional CSS panel.
============================================================ */
/* --- Banner wrapper --- */
.csi-gate-banner {
box-sizing: border-box;
width: 100%;
margin: 24px 0 32px 0;
background-color: #000000;
border: 4px solid #fff100;
padding: 24px 20px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
}
/* --- Inner flex row (icon + text + buttons) --- */
.csi-gate-inner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px 24px;
max-width: 860px;
margin: 0 auto;
}
/* --- Lock icon --- */
.csi-gate-icon {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
background-color: #fff100;
border-radius: 6px;
color: #000000;
}
/* --- Text block --- */
.csi-gate-text {
flex: 1 1 200px;
}
.csi-gate-heading {
font-family: "newshound-banner", "ibm-plex-sans", sans-serif;
font-weight: 500;
font-size: 1.25rem;
line-height: 1.15;
color: #fff100;
margin: 0 0 5px 0;
padding: 0;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.csi-gate-sub {
font-family: "ibm-plex-sans", sans-serif;
font-weight: 300;
font-size: 0.9rem;
line-height: 1.4;
color: #ffffff;
margin: 0 0 6px 0;
padding: 0;
}
/* Free case line — slightly dimmer, links in site orange */
.csi-gate-free {
font-family: "ibm-plex-sans", sans-serif;
font-weight: 300;
font-size: 0.85rem;
line-height: 1.4;
color: #bdbdbd;
margin: 0;
padding: 0;
}
.csi-gate-free a,
.csi-gate-free a:visited {
color: #F7931E;
...