/* =====================================================================
   Cybersecurity Terms Glossary index — isolated styles (only /blog/cybersecurity-terms/)
   All selectors are scoped under `.prv-trm`;
   loaded AFTER custom.min.css (wp_head), so it wins the cascade.
   ===================================================================== */

/* animatable percentage for the rotating edge light (global; unique name) */
@property --prv-wrapp { syntax:"<percentage>"; inherits:false; initial-value:0%; }
@keyframes prv-wrap-border { from { --prv-wrapp:0%; } to { --prv-wrapp:100%; } }

.prv-trm{
  --ink:#161616;
  --ink-2:#3a3f4a;
  --ink-3:#697079;
  --line:#e2e4ea;
  --accent:#7f24cf;
  --accent-dk:#6a1cb0;
  --hover:#f4f5f9;
  --toc-w:248px;
  --stick:150px; /* sticky offset below the fixed header (announce+nav) */

  background:#fff;
  color:var(--ink);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  line-height:1.5;
  padding-bottom:10px;
}
.prv-trm *{ box-sizing:border-box; }
.prv-trm .wrap{ max-width:1240px; margin:0 auto; padding:0 32px; }

/* two columns: sticky TOC on the left + content on the right */
.prv-trm .layout{
  display:grid; grid-template-columns:var(--toc-w) 1fr; gap:56px; align-items:start;
}

/* LEFT VERTICAL STICKY MENU (scrollspy) */
.prv-trm .toc{ position:sticky; top:var(--stick); padding:52px 0 40px; }
.prv-trm .toc-label{
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink-3); padding:0 0 16px 18px;
}
.prv-trm .toc ul{ list-style:none; margin:0; padding:0; }
.prv-trm .toc li{ margin:0; }
.prv-trm .toc a{
  display:block; font-size:14.5px; font-weight:500; color:var(--ink-3);
  padding:9px 0 9px 18px; border-left:2px solid var(--line); line-height:1.35; transition:.15s;
}
.prv-trm .toc a:hover{ color:var(--ink); border-left-color:#c9cdd6; }
.prv-trm .toc a.active{ color:var(--ink); font-weight:700; border-left-color:var(--accent); }

/* RIGHT CONTENT */
.prv-trm .content{ padding-top:52px; min-width:0; }
.prv-trm .block-h2{
  font-size:40px; font-weight:300; letter-spacing:-.02em; color:var(--ink); line-height:1.15; margin:0;
}
.prv-trm .block-copy{
  font-size:18px; font-weight:300; color:var(--ink-2); margin:14px 0 0; max-width:60ch;
}
.prv-trm .cat-meta{ font-size:14px; font-weight:600; color:var(--ink-3); margin:10px 0 4px; }
.prv-trm .viewall{
  display:inline-flex; align-items:center; gap:9px; margin-top:16px;
  font-size:15px; font-weight:600; color:var(--accent);
}
.prv-trm .viewall svg{ width:17px; height:17px; stroke:var(--accent); stroke-width:2; fill:none; transition:.2s; }
.prv-trm .viewall:hover svg{ transform:translateX(5px); }

.prv-trm .sec{ padding:0 0 60px; scroll-margin-top:var(--stick); }
.prv-trm .sec + .sec{ padding-top:52px; border-top:1px solid var(--line); }

/* CARD GRID — white boxes + thin hairline grid */
.prv-trm .grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px; margin-top:30px;
  background:var(--line); border:1px solid var(--line);
}
.prv-trm .grid.p3{ grid-template-columns:repeat(3,1fr); }
.prv-trm .card{
  background:#fff; padding:28px; display:flex; flex-direction:column; min-height:180px;
  position:relative; isolation:isolate; text-decoration:none;
}
/* IBM "wrap-border" hover — a purple light rotating around the box */
.prv-trm .card::after{
  content:""; position:absolute; inset:0; z-index:4; pointer-events:none; padding:2px;
  background:conic-gradient(from 0deg, var(--accent) 0%, var(--accent) var(--prv-wrapp), transparent var(--prv-wrapp) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0;
}
.prv-trm .card:hover::after{ opacity:1; animation:prv-wrap-border .7s cubic-bezier(.2,0,.38,.9) forwards; }
.prv-trm .card h4,
.prv-trm .card .card-title{
  font-size:18px; font-weight:600; letter-spacing:-.01em; line-height:1.3; color:var(--ink); margin:0;
}
.prv-trm .card .tag{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--ink-3); margin-bottom:10px;
}
.prv-trm .card p{
  font-size:14.5px; font-weight:400; color:var(--ink-2); margin:13px 0 0; flex:1; line-height:1.55;
}
.prv-trm .card .foot{ display:flex; align-items:flex-end; justify-content:space-between; margin-top:20px; }
.prv-trm .card .pic{ width:44px; height:44px; stroke:var(--ink-2); fill:none; stroke-width:1.4; }
.prv-trm .card .arw{ width:22px; height:22px; stroke:var(--accent); stroke-width:2; fill:none; margin-top:20px; }
.prv-trm .card .foot .arw{ margin-top:0; }

/* filter view header info */
.prv-trm .filter-top{ padding:52px 0 0; }
.prv-trm .backlink{
  display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--ink-3); margin-bottom:18px;
}
.prv-trm .backlink:hover{ color:var(--accent); }
.prv-trm .backlink svg{ width:15px; height:15px; stroke:currentColor; stroke-width:2; fill:none; }

/* (CTA band removed — the .next class now belongs to pagination only) */

@media(max-width:920px){
  .prv-trm .block-h2{ font-size:30px; }
  .prv-trm .layout{ grid-template-columns:1fr; gap:0; }
  .prv-trm .toc{ display:none; }
  .prv-trm .content{ padding-top:36px; }
  .prv-trm .grid, .prv-trm .grid.p3{ grid-template-columns:1fr; }
}

/* ===================== SEARCH + A-Z + CATEGORY + PAGINATION ===================== */

/* Search box inside the hero (on the dark hero) */
.prv-hero-search{ display:flex; align-items:center; gap:0; width:100%; max-width:640px; box-sizing:border-box; margin:26px auto 0; position:relative;
  background:#fff; border-radius:12px; padding:6px 6px 6px 52px; box-shadow:0 12px 40px rgba(0,0,0,.28); }
.prv-hero-search svg{ position:absolute; left:18px; top:50%; transform:translateY(-50%); width:22px; height:22px; stroke:#8b96ad; fill:none; }
.prv-hero-search input{ flex:1; border:0; outline:0; background:transparent; font:inherit; font-size:16px; color:#161616; padding:12px 8px; }
.prv-hero-search input::placeholder{ color:#9aa3b2; }
.prv-hero-search button{ flex:none; border:0; cursor:pointer; font:inherit; font-weight:700; font-size:15px; color:#fff;
  background:linear-gradient(90deg,#0c3569,#7f24cf); padding:12px 26px; border-radius:9px; }
.prv-hero-search button:hover{ filter:brightness(1.08); }

/* Control bar */
.prv-trm .controls{ padding:22px 0 6px; border-bottom:1px solid var(--line); margin-bottom:8px; }
.prv-trm .controls-row{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.prv-trm .catsel-wrap{ display:flex; align-items:center; gap:12px; min-width:0; max-width:100%; }
.prv-trm .ctl-label{ font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); }
.prv-trm .catsel{ font:inherit; font-size:14.5px; font-weight:600; color:var(--ink); cursor:pointer;
  padding:11px 16px; border:1.5px solid var(--line); border-radius:10px; background:#fff; max-width:100%; min-width:0;
  text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.prv-trm .catsel:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px #f3ecff; }
.prv-trm .ctl-count{ font-size:14px; color:var(--ink-3); }
.prv-trm .ctl-count strong{ color:var(--ink); font-weight:700; }

/* A-Z strip */
.prv-trm .az{ display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; }
.prv-trm .az-chip{ min-width:34px; height:34px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; border-radius:8px; color:var(--ink-2); background:#f4f5f9; transition:.14s; }
.prv-trm a.az-chip:hover{ background:var(--accent); color:#fff; transform:translateY(-1px); }
.prv-trm .az-chip.active{ background:var(--accent); color:#fff; }
.prv-trm .az-chip.off{ color:#c2c8d4; background:transparent; cursor:default; }

/* List view heading */
.prv-trm .list-head{ padding:34px 0 0; }
.prv-trm .list-grid{ margin-top:30px; }
.prv-trm .noresult{ padding:60px 0; text-align:center; color:var(--ink-3); font-size:16px; font-weight:600; }

/* Pagination */
.prv-trm .pagination{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin-top:44px; }
.prv-trm .pagination .pg{ min-width:40px; height:40px; padding:0 12px; margin:0; position:static; top:auto; vertical-align:middle;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:14.5px; font-weight:600; color:var(--ink-2); background:#fff; border:1px solid var(--line); border-radius:9px; transition:.14s; }
/* Guard against .next/.prev name clashes: reset margin/position */
.prv-trm .pagination .pg.next, .prv-trm .pagination .pg.prev{ margin-top:0; margin-bottom:0; position:static; top:auto; }
.prv-trm .pagination a.pg:hover{ border-color:var(--accent); color:var(--accent); }
.prv-trm .pagination .pg.cur{ background:var(--accent); border-color:var(--accent); color:#fff; }
.prv-trm .pagination .pg.off{ color:#c2c8d4; background:#fafbfd; cursor:default; }
.prv-trm .pagination .pg.dots{ border:0; background:transparent; min-width:20px; }
.prv-trm .pagination .pg.prev, .prv-trm .pagination .pg.next{ font-weight:700; }

@media(max-width:920px){
  .prv-trm .controls-row{ gap:12px; }
  .prv-hero-search{ margin-top:20px; }
}

/* Mobile: the native <select> sizes itself to its LONGEST option (e.g. "Endpoint, Operating
   System and Hardware Security (12)"), which pushed the page to ~476px wide on phones.
   Stack the label above the picker and force the select to the column width. */
@media(max-width:640px){
  .prv-trm .controls-row{ flex-direction:column; align-items:stretch; }
  .prv-trm .catsel-wrap{ flex-direction:column; align-items:stretch; gap:8px; width:100%; }
  .prv-trm .catsel{ width:100%; }
  .prv-trm .wrap{ padding:0 16px; }
  .prv-trm .az-chip{ min-width:30px; height:32px; }
  /* hero search: never wider than the hero column (it overflowed by ~40px at 390px) */
  .prv-hero-search{ width:100%; max-width:100%; box-sizing:border-box; padding-left:44px; }
  .prv-hero-search svg{ left:14px; width:20px; height:20px; }
  .prv-hero-search input{ min-width:0; font-size:15px; }
  .prv-hero-search button{ padding:12px 16px; }
}

/* Visually hidden label for the hero search field (accessible name) */
.prv-hero-search .screen-reader-text{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
