/*
Theme Name: Pentest Firms
Description: The Pentest Firms buyer directory and publication.
Version: 1.0
*/
@font-face {
  font-family: 'Inter'; src: url('media/inter.woff2') format('woff2');
  font-style: normal; font-weight: 400 800; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono'; src: url('media/plex-mono.woff2') format('woff2');
  font-style: normal; font-weight: 500; font-display: swap;
}
:root {
  --ink: #15242b; --muted: #4b5a60; --navy: #14282f; --paper: #f8f7f3;
  --line: #d9d9d0; --accent: #ffbe91; --dark-accent: #8e4926;
  --mono: 'IBM Plex Mono', monospace;
  color: var(--ink); background: var(--paper);
  font: 400 1rem/1.6 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { color: var(--dark-accent); }
:focus-visible { outline: 3px solid #a8592d; outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,p,ul,figure { margin: 0; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(2.25rem, 6.7vw, 4.45rem); font-weight: 730; }
h2 { font-size: clamp(1.65rem, 3.7vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.26rem; font-weight: 700; }
p { max-width: 68ch; }
button, input, textarea, select { font: inherit; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.section { padding-block: 3.75rem; }
.skip { position: absolute; left: 1rem; top: 1rem; padding: .65rem; background: #fff; z-index: 5; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { height: 4.8rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem; }
.wordmark { display: inline-flex; align-items: center; width: fit-content; font-size: 1.25rem; font-weight: 760; letter-spacing: -.05em; text-decoration: none; }
.wordmark > span:last-child { color: var(--dark-accent); }
.mark { display: inline-flex; position: relative; width: 1.65rem; height: 1.35rem; margin-right: .65rem; align-items: center; justify-content: center; }
.mark::before, .mark::after { content: ''; position: absolute; inset: 0 auto 0 0; width: .5rem; border: 1.5px solid currentColor; border-right: 0; }
.mark::after { left: auto; right: 0; border: 1.5px solid currentColor; border-left: 0; }
.mark b { width: 8px; height: 8px; background: #aa5933; }
.main-nav { display: flex; align-items: center; gap: clamp(.65rem, 3.1vw, 2.15rem); }
.main-nav a, .masthead-partner { font-size: .9rem; font-weight: 620; text-decoration: none; white-space: nowrap; }
.main-nav a[aria-current] { text-decoration: underline; }
.masthead-partner { justify-self: end; border: 1px solid #b8bdb6; padding: .48rem .85rem; }
.masthead-partner:hover { border-color: var(--dark-accent); }
.hero { background: var(--navy); color: #f7f4e9; padding-block: 3.7rem 2.6rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(16rem, .75fr); gap: clamp(2rem, 6.8vw, 6.5rem); align-items: end; }
.eyebrow, .stamp { font: 500 .77rem/1.5 var(--mono); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.eyebrow span { width: .52rem; height: .52rem; background: #aa5933; flex: none; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow span { background: var(--accent); }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 5.7rem); line-height: .99; letter-spacing: -.064em; }
.hero-copy > p:last-child { font-size: clamp(1rem, 2vw, 1.22rem); color: #d6dedb; margin-top: 1.4rem; max-width: 39ch; }
.hero-index { border-top: 1px solid #6e8182; padding-top: .95rem; }
.hero-index .stamp { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.hero-index a { position: relative; display: block; padding: 1.12rem 1.6rem 1.12rem 0; border-bottom: 1px solid #6e8182; text-decoration: none; }
.hero-index a:hover { color: var(--accent); }
.hero-index strong, .hero-index small { display: block; }
.hero-index strong { font-size: clamp(1.18rem, 2.6vw, 1.48rem); letter-spacing: -.035em; }
.hero-index small { color: #d6dedb; font-size: .85rem; }
.hero-index a > span { position: absolute; right: .25rem; top: 50%; transform: translateY(-55%); font-size: 1.65rem; color: var(--accent); }
.hero-filter { margin-top: 2.1rem; }
.filters { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.1fr) auto; gap: .8rem; padding: 1.15rem; border: 1px solid var(--line); background: #efeee8; align-items: end; margin-bottom: 1.5rem; }
.hero .filters { background: #21373d; border-color: #577071; margin: 0; }
label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 650; min-width: 0; }
input:not([type=hidden]), select, textarea { width: 100%; min-width: 0; padding: .6rem .68rem; border: 1px solid #9baba8; border-radius: 0; background: #fff; color: var(--ink); font-size: .95rem; }
input,select,button,.button { min-height: 2.75rem; }
button,.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: .6rem 1rem; border: 1px solid transparent; background: var(--navy); color: #fff; font-weight: 650; font-size: .9rem; text-decoration: none; cursor: pointer; }
button:hover,.button:hover { border-color: var(--navy); background: #fff; color: var(--navy); }
.hero button { background: var(--accent); color: var(--ink); }
.hero button:hover { background: #ffe0c8; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .85rem 1.5rem; margin-bottom: 1.25rem; }
.section-head p { margin-top: .45rem; color: var(--muted); }
.section-head > a { flex: none; font-size: .9rem; font-weight: 650; }
.firm-list,.link-index { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.firm-list li,.link-index li { border-bottom: 1px solid var(--line); }
.firm-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr) minmax(0,.85fr) 1rem; gap: 1.45rem; align-items: center; padding: 1rem .6rem; text-decoration: none; }
.firm-row:hover,.link-index a:hover { background: #f0eee5; }
.firm-row strong { display: block; font-size: 1.1rem; line-height: 1.23; letter-spacing: -.025em; }
.firm-row small { color: var(--muted); display: block; margin-top: .28rem; font-size: .8rem; }
.row-detail { font-size: .91rem; color: var(--muted); }
.row-badges { font: 500 .78rem/1.45 var(--mono); color: var(--dark-accent); }
.row-chevron { font-size: 1.45rem; justify-self: end; color: var(--dark-accent); }
.band { background: #eeeee7; border-block: 1px solid var(--line); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,7vw,6rem); }
.two-up h2 { margin-bottom: 1rem; }
.link-index { margin-bottom: 1.7rem; }
.link-index a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 590; padding: .8rem .45rem; text-decoration: none; }
.link-index a span { color: var(--dark-accent); }
.place-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 1.4rem; }
.footer-inner { padding-block: 2.25rem; display: flex; justify-content: space-between; align-items: start; gap: 1.25rem; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer p { margin-top: .38rem; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; font-size: .85rem; }
.subpage { padding-top: 2.2rem; }
.crumb { margin-bottom: 1.45rem; display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .85rem; }
.page-title { margin-bottom: 1.65rem; }
.page-title h1 { max-width: 19ch; }
.dek { color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.28rem); margin-block: .8rem 1.35rem; }
.reading { max-width: 66ch; }
.prose h2 { margin: 2.05rem 0 .78rem; font-size: clamp(1.43rem, 3.1vw, 1.95rem); }
.prose h3 { margin: 1.45rem 0 .55rem; }
.prose p + p,.prose ul + p { margin-top: .85rem; }
.prose p + ul,.prose p + ol,.prose p + table { margin-top: .7rem; }
.prose ul,.prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .3rem; }
.prose a { overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th,.prose td { border-bottom: 1px solid var(--line); padding: .7rem .55rem; text-align: left; vertical-align: top; }
.prose th { background: #eae9df; font-weight: 700; }
.prose blockquote { margin: 1rem 0; padding: .5rem 0 .5rem 1rem; border-left: 2px solid #aa5933; }
.prose blockquote footer { font-size: .83rem; color: var(--muted); margin-top: .4rem; }
.section-label { margin-block: 2rem .9rem; }
.profile-layout,.partner-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(15rem,21rem); gap: clamp(1.5rem,6vw,5rem); align-items: start; }
.profile-article { max-width: 47rem; }
.profile-figure img { width: 100%; background: #eae9df; }
.profile-figure figcaption { margin-top: .4rem; color: var(--muted); font-size: .8rem; }
.profile-aside,.enquiry { padding: 1.2rem; border: 1px solid var(--line); background: #efeee8; }
.profile-aside h2,.enquiry h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.profile-aside dl { margin: .6rem 0 1rem; }
.profile-aside dt { font: 500 .78rem/1.5 var(--mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: .55rem; }
.profile-aside dd { margin: .2rem 0 .55rem; font-size: .94rem; }
.profile-aside .button { width: 100%; }
.capabilities { display: flex; flex-wrap: wrap; gap: .36rem .65rem; list-style: none; padding-left: 0 !important; }
.prose .capabilities li { border: 1px solid var(--line); padding: .16rem .45rem; margin: 0; font-size: .86rem; }
.sources { font-size: .9rem; }
.sources .stamp { color: var(--muted); }
.faq { border-top: 1px solid var(--line); padding: .7rem 0; }
.faq summary { cursor: pointer; font-weight: 630; }
.faq p { padding-top: .5rem; }
.placement { color: var(--muted); border-block: 1px solid var(--line); padding: .6rem 0; margin-block: 1.25rem; font-size: .86rem; max-width: none; }
.sponsored { border: 1px solid var(--line); border-left: 3px solid #aa5933; padding: 1rem; margin-block: 1.25rem; background: #f1ede6; }
.sponsored h2 { margin-block: .4rem; font-size: 1.3rem; }
.enquiry form { display: grid; gap: .8rem; }
.partner-jump { margin-top: .2rem; }
#enquiry { scroll-margin-top: 1rem; }
.honey { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-bottom: .65rem; padding: .5rem; border-left: 2px solid var(--dark-accent); background: #fff; }
.form-privacy { color: var(--muted); font-size: .8rem; }
.pagination { display: flex; gap: .75rem; font-size: .89rem; align-items: center; }
.article-row { margin-block: 1.25rem; }
.article-row h2 { font-size: 1.36rem; }
@media (max-width: 810px) {
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 2rem; }
  .profile-layout,.partner-layout { gap: 1.35rem; grid-template-columns: minmax(0,1fr) minmax(13rem,15rem); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .section { padding-block: 2.3rem; }
  .masthead-inner { height: auto; min-height: 4rem; padding-block: .85rem .65rem; grid-template-columns: 1fr auto; gap: .6rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.25rem; }
  .masthead-partner { grid-column: 2; grid-row: 1; padding: .25rem .52rem; }
  .hero { padding-block: 2.2rem 1.5rem; }
  .hero-grid,.two-up,.profile-layout,.partner-layout { grid-template-columns: minmax(0,1fr); }
  .desktop-break { display: none; }
  .hero h1 { max-width: 12ch; }
  .hero-grid { gap: 1.5rem; }
  .hero-index a { padding-block: .58rem; }
  .hero-filter { margin-top: 1.25rem; }
  .filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: .7rem; }
  .filters label:first-child { grid-column: 1/-1; }
  .filters button { grid-column: 1/-1; }
  .section-head,.footer-inner { align-items: start; flex-direction: column; }
  .firm-row { grid-template-columns: minmax(0,1fr) 1rem; gap: .32rem .55rem; padding: .76rem .25rem; }
  .row-detail,.row-badges { grid-column: 1; }
  .row-chevron { grid-column: 2; grid-row: 1 / span 3; }
  .place-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .8rem; }
  .profile-aside { grid-row: 1; }
  .prose table,.prose tbody,.prose tr,.prose td { display: block; width: 100%; }
  .prose thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .prose tr { border: 1px solid var(--line); margin-bottom: .65rem; padding: .4rem .65rem; }
  .prose td { border: 0; padding: .22rem 0; }
  .prose td:first-child { font-weight: 700; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 1.5rem); }
  .main-nav { gap: .9rem; }
  .place-index { grid-template-columns: minmax(0,1fr); }
}
